dev env: Pre-populate open graph cache in populate_db.

Getting this error on do-destroy-rebuild-database, when not connected to the internet.
+ ./manage.py populate_db -n100 --threads=1
2018-02-06 00:31:57.070 ERR  [] Unable to fetch information from url https://zulip.readthedocs.io/en/latest/subsystems/emoji.html, traceback: Traceback (most recent call last):
  File "/srv/zulip-py3-venv/lib/python3.4/site-packages/urllib3/connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "/srv/zulip-py3-venv/lib/python3.4/site-packages/urllib3/util/connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
  File "/usr/lib/python3.4/socket.py", line 533, in getaddrinfo
    for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno -2] Name or service not known

Tim says:
It's trying to do an open graph preview, I think.
Because that's part of the test data.
I think we should be able to address that by pre-populating a certain cache a bit earlier in populate_db.
In particular, all the URLs in zerver/fixtures/config.generate_data.json should probably be pre-populated.

Yes, basically we want the data stored as though get_link_embed_data had been called for the links that we use in  config.generate_data.json.

@zulipbot claim.

@sinwar I think config.generate_data.json is the better place for these to live.  Why did you want to move them?


added helper functions for friends table

Description
added helper functions for the friends table. routes are currently in progress
Fixes # (issue)
Type of change
Please delete options that are not relevant.

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

Change Status

[ ] Complete, tested, ready to review and merge
[ ] Complete, but not tested (may need new tests)
[X ] Incomplete/work-in-progress, PR is for discussion/feedback

How Has This Been Tested?

[ ] Test A
[ ] Test B

Checklist

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] My code has been reviewed by at least one peer
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[X ] There are no merge conflicts

Think it might be a good idea to create a helper function that will return all of a user's friends. Maybe a getFriendsById

think we should also return business info when calling findBy

Changes look good for findById and findBy helpers

I tested on my end and looks great. Thanks for fixing the model. Restricted middleware is also working as wanted


Parse gml:Point / gml:pos

This recreates some of the parse-gml-polygon code? Why not submit a PR there?
Do you want push access in order not to manage a fork?

Do you want push access in order not to manage a fork?

Yes, that would be good for the initial development stages. To be honest I only have experience with forks to submit patches to already established projects.

This recreates some of the parse-gml-polygon code? Why not submit a PR there?

It's actually work in progress, I'm experimenting with signatures etc. so I did not give it much thought yet.
How would you do it? Make wfs-gml-to-geojson require parse-gml-polygon?
For me it looks like wfs-gml-to-geojson is actually a superset of parse-gml-polygon. So if wfs-gml-to-geojson is complete there will be no much need in parse-gml-polygon, will there?
So at the moment I'd tend to implement wfs-gml-to-geojson as an independent project - even if this would be copy-pasting/recreating some of the code from parse-gml-polygon.

To be honest I only have experience with forks to submit patches to already established projects.

You just push to a branch, visit https://github.com/user/repo/compare/branch-name?expand=1 and pull request from there.

How would you do it? Make wfs-gml-to-geojson require parse-gml-polygon?

Yup, that sounds sensible right now.

So if wfs-gml-to-geojson is complete there will be no much need in parse-gml-polygon, will there?

Depends how much wfs-gml-to-geojson will do. If it will be the same minimal lib (no XML parsing, no proj4 included, etc) than I guess parse-gml-polygon will become obsolete.

@derhuerst Could you please add me as a collaborator to the parse-gml-polygon as well?

Closing in favor of derhuerst/parse-gml-polygon#14.


METRON-616: Added support for double and long literals in Stellar.

Added support for double and long literals in Stellar. The double and long literals are based on java's longs/doubles. However, octal, binary, and hexadecimal formats were not implemented. Int literals were also updated to not allow numbers such as 0001, 009, etc.

Just a question to start - does this only work if the input value has the marking ( D,L etc )?

@ottobackwards Depends. It should work very similar to java. For example, doubles will not require a D/d (eg. .4, 0.5, 1., etc). All these examples are doubles. Floats require an f/F, and to be a long, it requires an l/L. It should be very similar to https://docs.oracle.com/javase/specs/jls/se8/html/jls-3.html#jls-3.10.1

So - the case I am thinking of is a stellar transform on an incoming string field that contains a number, but that number will not be marked - so only doubles would work unless I'm mistaken.  I am not sure that requiring the fields to be marked up works so well when you don't have control of the sources.
By specifying TO_XXXX are you explicitly saying you want it treated at a string of number marked as type?   Why impose the restriction of having to have the string marked?

I think it should work as follows for literals:

1234 should be an int
1234.0 should be a double
1234L should be a long
1234f should be a float

My only question is whether<PHONE_NUMBER>0 should be a long.  My instinct is that it should probably should, but I'd like feedback on that assertion.
Numbers coming in via the parser or as a result of a Stellar function are the types that the function or parser creates them as.

@cestella  - should I be able to do TO_FLOAT(field) when the field is a string and could be 1231 or 12.31?

@ottobackwards  Yep, the TO_$TYPE stellar functions should work with inputs that are strings or numbers of other types.  To wit,

TO_FLOAT('1231') should yield a float (1231.0f) from the input string
TO_FLOAT('12.31') should yield a float(12.31f) from the input string
TO_FLOAT(1231) should yield a float (1231.0f) from the input int
TO_FLOAT(12.31) should yield a float(12.31f) from the input double

OK - thanks for explaining

@cestella I thought about the case where a number such as '12345678910' should be considered a long or not. The biggest reason why I chose not to go this way, was because we were basing many things on the way Java does things, and Java would throw a compile time error if this example was not followed by any l/L. Also, I had some concerns in a scenario where two integers were added, a long was automatically created from them, and then passed to a function that only accepts integers. In this case a very interesting error may occur, and confuse end users. Not sure if any of those are valid, but that was my thought process. What do you think?

and I'll add some tests that specifically test expected type of these number literals.

@jjmeyer0 I think that's fine; mimicking java is probably the right move here.

I think we need the following test cases around numerical literals:

In conditionals:

1.0f < 2.0f
1.0l < 3.0f
1 < 3.0f
1.0 < 3.0f
if 1.0l < 3.0f then 'true' else 'false'

In function args:

TO_FLOAT(1231)
TO_FLOAT(12.31)
TO_FLOAT(12.31f)
TO_FLOAT(12L)
TO_FLOAT(12.31) < 10.2f

In arithmetical expressions:

1.2f + 3.7
12L*(1.2f + 7)
TO_FLOAT(12.2) * (1.2f + 7L)

Anyone have any others?

@cestella @ottobackwards is there anything else you all would like to see on this one?

Nope, I like it.  +1 from me by inspection
On Wed, Dec 14, 2016 at 2:59 PM, JJ Meyer<EMAIL_ADDRESS>wrote:

@cestella https://github.com/cestella @ottobackwards
https://github.com/ottobackwards is there anything else you all would
like to see on this one?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/apache/incubator-metron/pull/392#issuecomment-267139581,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAg-xx0DvWIoOjMLzC2xoxG1hE_2uhqNks5rIEqXgaJpZM4LI3dS
.

+1 by inspection


Download verification

There is no checksum that I could see to verify the downloads, but if you enter incorrect password, the file is returned as a HTML document, with the error inside.

Interestingly, the instant client downloads do provide a cksum:

Not sure why that's the only one that does

Java download page for e.g. 8u121, provides a link JDK 8u121 checksum

Oracle XE - not officially (on OTN downloads pages), but on the docker repository: https://github.com/oracle/docker-images/blob/master/OracleDatabase/dockerfiles/<IP_ADDRESS>/Checksum.xe

Checking status codes, invalid file URL is good, as it ends with a 404. But invalid authentication doesn't end with 403.
go run main.go --component apex --version 5.1 --os na --arch na --lang en --accept-license
Beginning download process for apex 5.1
Request:  https://edelivery.oracle.com/akam/otn/java/appexpress/apex_5.1_en.zip
Response:  200 200 OK
X-Oracle-Dms-Ecid: [005I3uMmD9N9xWw70Fq2UF0000Tj00039k]
X-Powered-By: [Servlet/2.5 JSP/2.1]
Content-Type: [text/html;charset=UTF-8]
Content-Language: [en]
Date: [Sat, 11 Feb 2017 10:22:18 GMT]
Content-Length: [4025]
Set-Cookie: --

Response2:  200 200 OK
Set-Cookie: --
X-Oracle-Dms-Ecid: [005I3uMnC_V9xWw70Fq2UF0000Tj00039o]
X-Powered-By: [Servlet/2.5 JSP/2.1]
Content-Type: [text/html;charset=UTF-8]
Content-Language: [en]
Date: [Sat, 11 Feb 2017 10:22:18 GMT]
Content-Length: [3690]
apex_5.1_en.zip: 3.60 KB / 3.60 KB [==========================================================] 100.00% 0
Download complete.


Adds presence check of rswift script, otherwise the build fails

Added a safety check that asks to run pod install if rswift script is not found

Do we need all pod related stuff?

Nope


'can't find module sqlite3' in the publish app that used electron-packager,but does well in development environment

[ ] I have read the contribution documentation for this project.
[x] I agree to follow the code of conduct that this project follows, as appropriate.
[ ] I have searched the issue tracker for an issue that matches the one I want to file, without success.

Please describe your issue:
when i use 'sqlite3' in electron i have rebuilt it success and use it success in developmet environmet,but when i use electron-package to pack the app,the app does't get well when run the 'sqlite3',it show the wrong 'can't find module sqlite3 '.but i run it well in development.what shoul i do to slove this problem.thanks

Console output when you run electron-packager with the environment variable DEBUG=electron-packager. Please include the stack trace if one exists.
cant't find module 'sqlite3'
error
Put the console output here

**What command line arguments are you passing? Alternatively, if you are using the API, what
parameters are you passing to the `packager()` function?**

Put the arguments or parameters here

**Please provide either a failing minimal testcase (with a link to the code) or detailed steps to
reproduce your problem. Using [electron-quick-start](https://github.com/electron/electron-quick-start)
is a good starting point.**

I think I'm running into a similar issue here. My problem is that I have a nested dependency being left out when I package my app. I've only noticed one so far however.
The module causing problems is request, once packaged it is missing its dependency form-data. As far as I've been able to tell, no other dependencies by anything else are being left out, just this.
Dependencies listed in my package.json:
  "devDependencies": {
    "babel-core": "^6.14.0",
    "babel-loader": "^6.4.1",
    "babel-preset-es2015": "^6.14.0",
    "babel-preset-react": "^6.23.0",
    "chai": "^3.5.0",
    "chai-immutable": "^1.6.0",
    "css-loader": "^0.27.3",
    "electron": "^1.6.2",
    "electron-packager": "^7.4.0",
    "ignore-styles": "^5.0.1",
    "jsdom": "^9.12.0",
    "mocha": "^3.2.0",
    "mocha-standard": "^1.0.0",
    "node-sass": "^4.5.1",
    "react-addons-test-utils": "^15.4.2",
    "sass-loader": "^6.0.3",
    "sinon": "^2.0.0",
    "standard": "^9.0.2",
    "style-loader": "^0.16.0",
    "webpack": "^2.3.1",
    "webpack-dev-server": "^2.4.2"
  },
  "dependencies": {
    "immutable": "^3.8.1",
    "electron-json-storage": "^3.0.4",
    "jszip": "^3.1.1",
    "moment": "^2.18.1",
    "react": "^15.4.2",
    "react-addons-pure-render-mixin": "^15.4.2",
    "react-bootstrap": "^0.30.8",
    "react-dom": "^15.4.2",
    "react-redux": "^5.0.3",
    "react-router": "^4.0.0",
    "react-router-dom": "^4.0.0",
    "redux": "^3.6.0",
    "request": "^2.74.0"
  }

My script to package (I have one for each OS where only platform flag is different. All OS packages are being affected):
electron-packager . --overwrite --prune=true --platform=win32 --arch=all --out=dist --icon=assets/icons/icon.ico --ignore=assets --ignore=test --ignore=src --ignore=data/* --ignore=.gitignore --ignore=README.md

If relevant, here are the dependencies listed in the request module, while form-data is indeed listed its being left out in the package:
    "aws-sign2": "~0.6.0",
    "aws4": "^1.2.1",
    "caseless": "~0.12.0",
    "combined-stream": "~1.0.5",
    "extend": "~3.0.0",
    "forever-agent": "~0.6.1",
    "form-data": "~2.1.1",
    "har-validator": "~4.2.1",
    "hawk": "~3.1.3",
    "http-signature": "~1.1.0",
    "is-typedarray": "~1.0.0",
    "isstream": "~0.1.2",
    "json-stringify-safe": "~5.0.1",
    "mime-types": "~2.1.7",
    "oauth-sign": "~0.8.1",
    "performance-now": "^0.2.0",
    "qs": "~6.4.0",
    "safe-buffer": "^5.0.1",
    "stringstream": "~0.0.4",
    "tough-cookie": "~2.3.0",
    "tunnel-agent": "^0.6.0",
    "uuid": "^3.0.0"

@AlyxMoon Can you share your electron package config 👍

@MarshallOfSound Sorry I'm not entirely sure what you mean by that, can you clarify?

@AlyxMoon Either the object you pass to the Electron Packager API or the CLI args you pass to it

@MarshallOfSound  Sure, I run it as a script through npm.
"package:win": "electron-packager . --overwrite --prune=true --platform=win32 --arch=all --out=dist --icon=assets/icons/icon.ico --ignore=assets --ignore=test --ignore=src --ignore=data/* --ignore=.gitignore --ignore=README.md"

@AlyxMoon I'm like 99% sure you've just got a rogue ignore 👍 In particular this one --ignore=src will ignore all src directories in the tree, not just your top level one 👍
You probably need a more precise ignore regexp.  Try removing all your ignores and seeing if the app works 👍

@MarshallOfSound Indeed that did the trick.
Well, sorry for butting in on this thread then. I don't know if this is what was causing OP's problem, but overzealous ignores was causing the issue for me, I hadn't considered that the ignore flag would cause problems with things in node_modules.

Since the original issue reporter has not responded to the request for additional information in about two weeks, I'm going to assume that they either found the answer in another manner or decided not to pursue this issue. If I'm incorrect, they can respond with answers to the questions posed, and I'll reopen.

I have this error too.
Say it again: In development mode, it's running well, after electron-packager packeged, cannot find module sqlite3

In my case, it was --asar. As soon as removed it, it all worked fine.

You cannot use native modules and asar at the same time without using --asar.unpackDir (via the CLI).


Internationalization of notifications & emails

Maybe i18n should be performed at the client side ?
In this case should we return a string in the error ? Or just a type + code ?

Indeed, we should by putting i18n on the client.
I'd rather promote that choice as it would be easier for the client lib users to customize the common error messages.
What do you think ?


Support for translations

Any chances of translating this project to other languages? I could do Spanish and Catalan. 😃

This has been raised before. I still think Koel doesn't need a translation given how simple the app is (and should be).

It's simple, but there's a lot of people that doesn't know a simple word in English - focusing on end users, not devs.

Well that's the thing – Koel aims at developers, as told on its homepage.
But I'm open to the idea.
On Sat, Sep 30, 2017 at 08:55 David Girón<EMAIL_ADDRESS>wrote:

It's simple, but there's a lot of people that doesn't know a simple word
in English - focusing on end users, not devs.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/phanan/koel/issues/657#issuecomment-333291746, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AHrt0pvv7s5sqVKVbQvSPRXgCRM1RIhKks5snfQLgaJpZM4PitVP
.

You're welcome to try and send a PR over :)

I'm not familiar with Laravel nor Vue. Should I just add a folder in ressources/lang with the same files for english but translated ?

I could translate it to Brazilian portuguese!


Compiler Breaks Blade Extensions

The minifier seems to ignore custom Blade extensions that are added via Blade::extend. The extension is successfully added to the BladeCompiler::extensions array, but when the BladeCompiler::compileExtensions() is run, those extensions are no longer in the extensions array.

Read my preferred way of minifying HTML in Laravel 5/5.1+ apps here: Using Gulp to Minify Laravel Blade Templates

I have designed a solution, without changing the package files themselves. I have left the resolver ID blade.php and I have written custom Facade to resolve the LaravelHtmlMinifyCompiler.
<?php
use \Illuminate\Support\Facades\Facade;

/**
 * @see \Illuminate\View\Compilers\BladeCompiler
 */
class LaravelHtmlMinifyFacede extends Facade {

    /**
     * Get the registered name of the component.
     *
     * @return string
     */
    protected static function getFacadeAccessor()
    {
        return static::$app['view']->getEngineResolver()->resolve('blade.php')->getCompiler();
    }

}

With this facade I can easily do the extending like with Blade:
LaravelHtmlMinifyFacede::extend(function ($view, $compiler) {
    $pattern = $compiler->createMatcher('continue');
    return preg_replace($pattern, '<?php continue; ?>', $view);
});

If you create alias of LaravelHtmlMinifyFacede in app config, you can even call it like: LaravelHtmlMinify::extend.


[pluto.tv] fails to download episode when the when url not matching pattern

failing to obtain the right url when trying to use episode number by using digits at the end of url.
this only fails when the season number is included in the url or the episode number is the episode number for all episodes and not out the number out of episodes in one specific season

fixed as of 69efd4e5ddf95dbe6859441961f8cda6bba4f601


fix mergify, template was out of date

Description
Mergify updated its template and so was not working. This updates to address that and fixes automerge
Other changes
n/a
Tested
n/a
Related issues

Fixes  automerge

Backwards compatibility
n/a
Documentation
n/a

https://docs.mergify.com/actions/queue/#id2


[added] Add isItemSelectable prop function  (#237)

This adds a bool function prop of isItemSelectable, allowing for category headers or other extraneous information to be presented within the list items. (#237)
This function evaluates on any item that is attempted to be selected (via mouse or keyboard) and prevents these event handlers from occurring (or skips over the item when using arrow key navigation) if the function evaluates false.
By default this function returns true for all items.
(Request is divided into two commits, the first only adds the functionality and the second is the new example page for Categorized Menu)

(side note, did not update the README because I saw a script that appeared to autogenerate it based off my function header comments.  If that was wrong, just let me know)

Hey @CMTegner ! Sorry for the delay.  I've actually gone through and updated the logic to be in line with the changes you made to highlighting functionality back in June.
That should cover all the conflicts that have arisen since then.  I still believe the Custom Menu showcases a fundamentally different use case than the new Categorized one does (custom rendering vs. the boolean isSelectable) so I'm of the opinion we should retain both.
Let me know if you have any more concerns

I'm in need of displaying disabled items too.
Is there anything I can do to help merge this functionality? or is this available in v2 soon?
ty :)

I second @midgethoen on needing to display disabled items too. This would be fantastic!

Sorry for taking so long, I haven't had much time to tend to this project lately. I rebased your changes, fixed a few bugs, added a few more tests, and rewrote the "custom menu" example to use isItemSelectable. Released in 1.8.0. Hope you don't mind me hijacking your branch. For my own sanity I try to keep the commit history as clean as possible, and this PR was getting a bit cluttered with all the merges and fixes.
Thanks for the work!


Build failed

Hi,
I am trying to build lsquic-client in windows 10 64bit machine. I have all the dependencies. All the library paths in the target_link_libraries of the CMakeLists.txt is correct. However it still cannot build the lsquic.lib library in either the debug version or the optimized version. These are the errors I got in the optimized version

The first screenshot seems to indicate that BoringSSL include files are missing some declarations.  Is the BoringSSL version correct?

The debug version gives LINK error cannot find lsquic.lib

Please let me know where I am going wrong

I installed borringssl as directed in the documentation from here:
https://boringssl.googlesource.com/boringssl
Which version of borringssl should I use?

AFAIK, chromium-stable branch should work.  Did you build BoringSSL as described in BUILD-WINDOWS.md?

Thanks for pointing that out to me. I built lsquic on ubuntu 16  and it works perfectly. I tried the examples for fetching pages as provided in the examples.txt. However, I was wondering if there is possible way to stream a video using the library. If there is a way please direct me how to do it. Thanks!

If streaming video involves something other than the usual HTTP messaging, you'd have to program it yourself.  http_client is just a bare-bones program that shows how to use the API.

You weren't able to build on Windows in the end?


Update Thunder R2 to support IPackageManager

This will update the Thunder tooling to be able to parse and generate code for the IPackageManager interface

Blackduck scan failure details
Summary: 0 violations, 0 files pending approval, 1 file pending identification.


Gcp migration ha

Codecov Report

Merging #637 (cdc12e8) into master (4807f49) will decrease coverage by 0.08%.
The diff coverage is 20.61%.

@@            Coverage Diff             @@
##           master     #637      +/-   ##
==========================================
- Coverage   42.39%   42.30%   -0.09%
==========================================
  Files         330      331       +1
  Lines       23311    23417     +106
==========================================
+ Hits         9882     9906      +24
- Misses      13429    13511      +82

Flag
Coverage Δ

unittests
42.30% <20.61%> (-0.09%)
:arrow_down:

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

Impacted Files
Coverage Δ

dbaas/drivers/replication_topologies/base.py
51.69% <ø> (ø)

dbaas/logical/views.py
14.05% <ø> (ø)

dbaas/maintenance/admin/host_migrate.py
39.70% <ø> (ø)

dbaas/maintenance/tasks.py
16.27% <0.00%> (ø)

dbaas/maintenance/tasks_database_migrate.py
0.00% <0.00%> (ø)

dbaas/workflow/steps/util/infra.py
0.00% <0.00%> (ø)

dbaas/physical/models.py
74.40% <12.50%> (-0.33%)
:arrow_down:

dbaas/workflow/steps/util/host_provider.py
56.44% <21.05%> (-0.08%)
:arrow_down:

dbaas/workflow/steps/util/database.py
34.24% <57.14%> (+0.52%)
:arrow_up:

dbaas/drivers/mongodb.py
38.07% <77.77%> (+1.07%)
:arrow_up:

... and 6 more

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 4807f49...cdc12e8. Read the comment docs.


Copy URL broken

The button doesn't copy anything

I'm having the same issue - using Copy URL button doesn't give any feedback and doesn't copy selected tabs.
@Flozad _muchas gracias_for creating this extension to continue Copy All URLs one!  I hope you can fix this issue 🤞

@Keith94 @rdonkin thanks for bringing this up. Can you give me more context.
Does it work with simpler tabs?
Are you adding some customization to copy format?
Can you share url example of what you are trying to copy and it’s failing?

@rdonkin @Keith94 I rolled out a new version (1.1.0) with the latest commit on the Chrome store. Let me know if this fixed the issue on your devices.

It's fixed on my end now. Thanks!


Fix deadlock in clock.Timer

The following deadlock occurs in clock.Timer code from time to time:
fatal error: all goroutines are asleep - deadlock!

goroutine 1 [chan send]:
github.com/WatchBeam/clock.(*mockTimer).Stop(0xc42000e140, 0x0)
        /Users/pbor/src/github.com/WatchBeam/clock/timer.go:78 +0xb6
main.main()
        /tmp/repro.go:14 +0x1aa

goroutine 3122 [semacquire]:
sync.runtime_Semacquire(0xc42000e154)
        /usr/local/Cellar/go/1.7.3/libexec/src/runtime/sema.go:47 +0x30
sync.(*Mutex).Lock(0xc42000e150)
        /usr/local/Cellar/go/1.7.3/libexec/src/sync/mutex.go:85 +0xd0
github.com/WatchBeam/clock.(*mockTimer).setInactive(0xc42000e140)
        /Users/pbor/src/github.com/WatchBeam/clock/timer.go:28 +0x3a
github.com/WatchBeam/clock.(*mockTimer).wait(0xc42000e140)
        /Users/pbor/src/github.com/WatchBeam/clock/timer.go:46 +0x1a2
created by github.com/WatchBeam/clock.(*mockTimer).Reset
        /Users/pbor/src/github.com/WatchBeam/clock/timer.go:66 +0x124

The following small program reproduces the problem in a fraction of a
second:
package main

import "fmt"
import "time"
import "github.com/WatchBeam/clock"

func main() {
	now := time.Date(2016, 10, 28, 10, 10, 10, 0, time.Local)
	cl := clock.NewMockClock(now)

	tmr := cl.NewTimer(0)
	for {
		fmt.Println("iteration")
		if !tmr.Stop() {
			<-tmr.Chan()
		}
		tmr.Reset(0)
	}
}

This occurs because setInactive() called from wait() cannot read from
'release' channel (it cannot proceed because of the locked mutex) and
Stop() cannot proceed because no-one is reading the channel.
This could have been fixed by using TryLock() in setInactive(), but,
unfortunately, Go's 'sync' package doesn't provide such a primitive.
So this patches changes Timer from using a Mutex for locking to using a
buffered channel, which allows to kind of simulate TryLock semantics
using 'select' statement.
Signed-off-by: Pavel Borzenkov<EMAIL_ADDRESS>

@pborzenkov, thanks for your PR! By analyzing the history of the files in this pull request, we identified @connor4312 to be a potential reviewer.

Thanks! 👍


SASL OAUTHBEARER support in Kafka binding

Describe the feature
In enterprise settings, authentication - particularly federated authentication - is a requirement for shared platforms like a message queue or event stream such as Kafka. Dapr is a great tool-set for easing access to EDA, but is lacking in some enterprise-grade features like better support of federated authentication. I'm looking for interesting in adding support for federated authentication to Kafka specifically via an open-standard like OAuth2/OIDC via the SASL OAUTHBEARER protocol.
Currently the only path I see to using federated identity between Dapr and Kafka is either a custom listener in Kafka (which rules out using something like Strimzi easily) or using commercial Kafka that has LDAP for using with the SASL username/password. Since the underlying Sarama client supports OAUTHBEARER, the only addition would be generating a valid token in Dapr to pass along and correctly respond to token expiration by generating a new token.
I could see two methods for this:

Make Dapr a OAuth2 client directly
Allow the application to host a Dapr callback that would generate the token. This has the effect (benefit?) of allowing universal binding configuration, but allowing each client service to bring-their-own-identity.

Release Note
RELEASE NOTE: ADD Support OAuth2 authentication with Kafka for pub/sub binding

@yaron2, any thoughts on this? Dapr has concessions for OAuth handling for service invocation via middleware, but doesn't extend to bindings. At the same time, there have been asks for more direct access to sarama supported auth scenarios (e.g. https://github.com/dapr/components-contrib/issues/349 for SSL, not OAuth) which may point to this being easier to manage on a per component basis.

Just wanted to come back to this - I'd be happy to put together a PR with something in place if there is interest in merging it.

@sthussey it'd be great if you can add this to the existing components. Re: general purpose, lets open a separate issue for that :)

I'm working on the PR for this. First draft of code is finished, just need to take time to setup an integration environment to test it.
https://github.com/sthussey/components-contrib/tree/feat/kafka-oidc-support

PR #1229 is still in progress.

Reopened


[Bug] Can't build on macOS Catalina

🐛 Bug
I'm getting these errors when trying to build:
error: failed to run custom build command for `grpcio-sys v0.5.0-alpha.4`

Caused by:
  process didn't exit successfully: `/Users/davidwg/libra/target/debug/build/grpcio-sys-a6701245efebd237/build-script-build` (exit code: 101)
--- stdout
cargo:rerun-if-changed=grpc_wrap.cc
cargo:rerun-if-changed=grpc
cargo:rerun-if-env-changed=UPDATE_BIND
cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS
cargo:rerun-if-env-changed=GRPCIO_SYS_USE_PKG_CONFIG
cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS
running: "cmake" "/Users/davidwg/.cargo/registry/src/github.com-1ecc6299db9ec823/grpcio-sys-0.5.0-alpha.4/grpc" "-DGO_EXECUTABLE=fake-go-nonexist" "-DgRPC_INSTALL=false" "-DgRPC_BUILD_CSHARP_EXT=fa
lse" "-DgRPC_BUILD_CODEGEN=false" "-DgRPC_BENCHMARK_PROVIDER=none" "-DCMAKE_INSTALL_PREFIX=/Users/davidwg/libra/target/debug/build/grpcio-sys-a4f609f3cbcecdbb/out" "-DCMAKE_C_FLAGS= -ffunction-sect
ions -fdata-sections -fPIC -m64" "-DCMAKE_C_COMPILER=/usr/bin/cc" "-DCMAKE_CXX_FLAGS= -stdlib=libc++ -ffunction-sections -fdata-sections -fPIC -m64" "-DCMAKE_CXX_COMPILER=/usr/bin/c++" "-DCMAKE_BUI
LD_TYPE=Debug"
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/davidwg/libra/target/debug/build/grpcio-sys-a4f609f3cbcecdbb/out/build
running: "cmake" "--build" "." "--target" "grpc_unsecure" "--config" "Debug" "--"
[  0%] Built target address_sorting
[  4%] Built target zlibstatic
[ 19%] Built target gpr
[ 33%] Built target c-ares
[100%] Built target grpc_unsecure
cargo:root=/Users/davidwg/libra/target/debug/build/grpcio-sys-a4f609f3cbcecdbb/out
cargo:rerun-if-env-changed=CARGO_CFG_TARGET_OS
cargo:rustc-link-search=native=/Users/davidwg/libra/target/debug/build/grpcio-sys-a4f609f3cbcecdbb/out/build
cargo:rustc-link-search=native=/Users/davidwg/libra/target/debug/build/grpcio-sys-a4f609f3cbcecdbb/out/build/third_party/cares/cares/lib
cargo:rustc-link-search=native=/Users/davidwg/libra/target/debug/build/grpcio-sys-a4f609f3cbcecdbb/out/build/third_party/zlib
cargo:rustc-link-search=native=/Users/davidwg/libra/target/debug/build/grpcio-sys-a4f609f3cbcecdbb/out/build/third_party/boringssl/ssl
cargo:rustc-link-search=native=/Users/davidwg/libra/target/debug/build/grpcio-sys-a4f609f3cbcecdbb/out/build/third_party/boringssl/crypto
cargo:rustc-link-lib=static=z
cargo:rustc-link-lib=static=cares
cargo:rustc-link-lib=static=gpr
cargo:rustc-link-lib=static=address_sorting
cargo:rustc-link-lib=static=grpc_unsecure
TARGET = Some("x86_64-apple-darwin")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-apple-darwin")
CXX_x86_64-apple-darwin = None
CXX_x86_64_apple_darwin = None
HOST_CXX = None
CXX = None
CXXFLAGS_x86_64-apple-darwin = None
CXXFLAGS_x86_64_apple_darwin = None
HOST_CXXFLAGS = None
CXXFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("true")
CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2,sse3,ssse3")
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-I" "grpc/include" "-Wall" "-Wextra" "-std=c++11" "-Werror" "-o" "/Users/davidwg/libra/ta
rget/debug/build/grpcio-sys-a4f609f3cbcecdbb/out/grpc_wrap.o" "-c" "grpc_wrap.cc"
exit code: 0
AR_x86_64-apple-darwin = None
AR_x86_64_apple_darwin = None
HOST_AR = None
AR = None
running: "ar" "crs" "/Users/davidwg/libra/target/debug/build/grpcio-sys-a4f609f3cbcecdbb/out/libgrpc_wrap.a" "/Users/davidwg/libra/target/debug/build/grpcio-sys-a4f609f3cbcecdbb/out/grpc_wrap.o"
exit code: 0
cargo:rustc-link-lib=static=grpc_wrap
cargo:rustc-link-search=native=/Users/davidwg/libra/target/debug/build/grpcio-sys-a4f609f3cbcecdbb/out
CXXSTDLIB_x86_64-apple-darwin = None
CXXSTDLIB_x86_64_apple_darwin = None
HOST_CXXSTDLIB = None
CXXSTDLIB = None
cargo:rustc-link-lib=c++
cargo:rerun-if-changed=bindings/x86_64-unknown-linux-gnu-bindings.rs

--- stderr
CMake Warning at cmake/protobuf.cmake:48 (message):
  gRPC_PROTOBUF_PROVIDER is "module" but PROTOBUF_ROOT_DIR is wrong
Call Stack (most recent call first):
  CMakeLists.txt:140 (include)

CMake Warning at cmake/gflags.cmake:26 (message):
  gRPC_GFLAGS_PROVIDER is "module" but GFLAGS_ROOT_DIR is wrong
Call Stack (most recent call first):
  CMakeLists.txt:142 (include)

CMake Warning (dev):
  Policy CMP0042 is not set: MACOSX_RPATH is enabled by default.  Run "cmake
  --help-policy CMP0042" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  MACOSX_RPATH is not specified for the following targets:

   zlib

This warning is for project developers.  Use -Wno-dev to suppress it.

././grpc/include/grpc/impl/codegen/port_platform.h:182:10: fatal error: 'Availability.h' file not found
././grpc/include/grpc/impl/codegen/port_platform.h:182:10: fatal error: 'Availability.h' file not found, err: true
thread 'main' panicked at 'Unable to generate grpc bindings: ()', src/libcore/result.rs:1165:5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed

fixed it by using MacOS' default clang instead of brew clang

@mimoo I run into the same problem, do you mind be more specific on what did you do to resolve it? thanks

what does
which clang

gives you?

I did install xcode, also ran xcode-select --install for some other toolchain
my clang is in /usr/local/opt/llvm/bin/clang

That's mine:
➜  ~ which clang
/usr/bin/clang
➜  ~ clang -v
Apple clang version 11.0.0 (clang-1<IP_ADDRESS>)
Target: x86_64-apple-darwin19.0.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin

did you install llvm with brew?

yeah, I resolve the issue by brew uninstall llvm, I used to have /usr/local/opt/llvm/bin in my PATH and I also clear that out. then my clang fall back to default Apple's clang installed with xcode toolchain.
Thanks David!

learn from you.

no worries, my struggles were not in vain :)


Go mod tidy: "import path  should not have @version" using custom GOPATH inside project directory

What version of Go are you using (go version)?

$ go version
1.19.5

But issues occur in the following versions too:
1.20, 1.19.5, 1.19.4, 1.19.3, 1.19.2, 1.19.1, 1.18.Xs, and 1.17.Xs.
Does this issue reproduce with the latest release?
Yes, I can reproduce it in go 1.20.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE="auto"
GOARCH="amd64"
GOBIN="/Users/cwirawan/projects/gopath-bug/go/bin"
GOCACHE="/Users/cwirawan/Library/Caches/go-build"
GOENV="/Users/cwirawan/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/cwirawan/projects/gopath-bug/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/cwirawan/projects/gopath-bug/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/Users/cwirawan/go-sdk/go1.19.5"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/Users/cwirawan/go-sdk/go1.19.5/pkg/tool/darwin_amd64"
GOVCS=""
GOVERSION="go1.19.5"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/cwirawan/projects/gopath-bug/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch x86_64 -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/yn/mz9b94gd08q9kxqr6b40l5gr0000gp/T/go-build4200323998=/tmp/go-build -gno-record-gcc-switches -fno-common"

What did you do?

I'm dealing with multiple go projects in my organization. For each project, we decided to have a custom configuration for GOPATH. We did it to separate Go projects so that each project has its own GOPATH. This method works well for us until recently when we upgraded the go version to 1.19.5. But it's the same with version 1.20.
NOTE that this issue only occurs if the GOPATH is set to be inside of the project directory.

Note that go mod tidy will not consider packages in the main module in directories named testdata or with names that start with . or _ unless those packages are explicitly imported by other packages.

Quoted from https://go.dev/ref/mod#go-mod-tidy
When setting the GOPATH to an ignored path in the directory (e.g. <project-dir>/.go). It works without any issue. However, we are not sure if this is a good practice or not and will it cause any issues?
I'm not a go module expert and we don't want any core dump in our production code. :)
Source Files:
main.go
package main

import (
	"go.uber.org/atomic"
)

func main() {
	_ = atomic.NewBool()
}

go.mod
module test

go 1.19

require go.uber.org/atomic v1.9.0

require (
	github.com/stretchr/testify v1.7.0 // indirect
	gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
)

I also tested it using other different dependencies and some of them reproduce this issue, some of them don't.
go.sum
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
go.uber.org/atomic v1.9.0 h1:ECmE8Bn/WFTYwEW/bpKD3M8VtR/zQVbavAoalC1PYyE=
go.uber.org/atomic v1.9.0/go.mod h1:fEN4uk6kAWBTFdckzkM89CLk9XfWZrxpCo0nPH17wJc=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

These are the steps to reproduce the issues:

Create a directory and create/copy the files above to the directory.
In the directory, run:

export GOPATH=`pwd`/go

Verify that the GOPATH is inside the project directory by running:

go env GOPATH

Run go mod tidy, the first time should be successful.

$ go mod tidy
go: downloading go.uber.org/atomic v1.9.0
go: downloading github.com/stretchr/testify v1.7.0
go: downloading gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/pmezard/go-difflib v1.0.0

Run go mod tidy again, you should see some errors:

$ go mod tidy
<EMAIL_ADDRESS>import path<EMAIL_ADDRESS>should not have @version
<EMAIL_ADDRESS>import path<EMAIL_ADDRESS>should not have @version

What did you expect to see?
I expect to see a successful go mod tidy with exit code 0 no matter how many times I run it.
It used to work without any problem in version 1.16.8.
What did you see instead?
$ go mod tidy
<EMAIL_ADDRESS>import path<EMAIL_ADDRESS>should not have @version
<EMAIL_ADDRESS>import path<EMAIL_ADDRESS>should not have @version

working as intended.
go stores downloaded dependencies in GOPATH/go/pkg by default.
Modules are intended to be independent projects, covering everything within it, acting independently of GOPATH except to use it as a (shared) cache. You shouldn't need to create new GOPATHs for each project in module mode, and what you're doing now will clearly cause errors.
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
For questions please refer to https://github.com/golang/go/wiki/Questions

@seankhliao Your answer does not preclude having a GOPATH dir per project, but makes an unsubstantiated claim that having a GOPATH dir per project causes a problem. I truly believe this is worth looking into, because the behavior did change somewhere between v1.16 and later, and there's no mention in Go documentation whatsoever.
Nor Go documentation places any limitations as to where the GOPATH directory can or cannot be, and we decided that our chosen location is as good as any.
Would you be so kind to present any proof as to why, and I quote from your answer, "what you're doing now will clearly cause errors."
Thanks!


Post release automated changes for resources releases

Post release automated changes for azure-arm-resources

API change check
API changes are not detected in this pull request.


Preferences window reworked with toolbar

The new release doesn't start syntching anymore for me.

Found the cause:     //[_syncthing runExecutable]; in STApplication, looks like leftover debug change :)

Thats a oops! I will release a new one today :+)

@virusman done!
https://github.com/xor-gate/syncthing-macosx/releases/tag/v0.14.8-1


Add typescript definition

Hi,
I would like to contribute with typescript definition file (index.d.ts) to project.
There's no typings in DefinetelyTyped and TS project has to create their own d.ts everytime. So, instead of  creating PR to DefinitelyTyped, it makes more sense to create PR directly to this Repo, because repo wasn't updated for a while and it is not going (probably) to change API.
Several IDEs would also benefits from this and they will be able to provide intellisense for user. This is not only exclusive for Typescript devs but it could be used for JS aswell.

@bevacqua Please, is there something I can do better or different to make this PR merged ? Thanks

What happened to this issue?

still waiting for response

hello? @bevacqua

FWIW I created @types/fuzzysearch before I noticed this PR. It’s effectively the same.

Sorry folks. I don't remember reviewing this PR.


Add preset config option for command Dendron: Publish Export

Please select if your request is either something new or an enhancement

[x] Enhancement of an existing Feature.
[ ] Request of a new feature.

Please select the area your request applies to. (Multiple selections are possible)

[ ] Onboard. Initial vault setup and import/export pods
[ ] Create. Note creation, lookup, snippets and templates
[ ] Retrieve. Backlinks, references, graph view
[ ] Structure. Refactoring, multi-vault and schemas
[x] Publish. Sharing your repo with the world
[x] Misc (Choose this if your not sure)

Is your feature request related to a problem? Please describe
I'm using Dendron v0.69.1, vscodium v1.62.3
The execution duration of command Dendron: Publish Export now is quite long. 40 min for my vault with 144 notes. The longest process is Installing dependencies, which takes at least 35 min
I feel unease to answer these 4 questions at separated stages, whenever I run the command Dendron: Publish Export

default behavior or config?
skip build process?
select export target?
docs folder already exists. Remove and continue?

Describe the solution you'd like
I would like to have a feature to set the default answer for all of these 4 questions when running Dendron: Publish Export from command palette, or at least allow me to choose all the answer at the beginning instead of during running phase
Describe alternatives you've considered
Currently, whenever I want to publish notes and sync to Github, I consider to type in terminal:
> dendron publish init
> dendron publish build
> dendron publish export --target github --yes

then use command palette to run Dendron: Workspace: Sync,
which is not as short and easy as running from command palette
Additional context
I'm all ears to know how to improve my current publishing workflow

Thanks for the suggestion. having something similar to --yes or have things prompt before everything makes sense. We'll let you know once we get to the fix!

Update: I've just moved my repo folder to the SSD from the old location on HDD. And try to publish using CLI, the duration reduces drastically to only 2min. Impressive! So it was my slow HDD which seems to be the problem.
But I would love to achieve the same results via command palette, since CLI is quite daunting to me 😄

Thanks for the followup! The UX around Dendron features should make sense for machines of all capabilities and your suggestion still makes sense for sufficiently powerful machines. Stay tuned for the update 😃


Production GNIS Setup

GNIS-LD is, as a product, is ready to be released to the production Kubernetes cluster. On the production cluster we'll need a few things first.

[x] gnis namespace
[x] gnis user
[x] A CephFS persistent volume
[x] Updated Ingress rules

The cert-manager requirement has been fulfilled so I checked it off of your list; logs and proof here

Updating this issue to track that https://gnis-ld.org:30443/ has now been deployed. Our last issue to resolve is the port 80/443 configuration.

@ThomasThelen all tasks in this issue have been completed - pls reopen this if there are other items that need to be done.


pause and resume are never called in Android live wallpapers

Please ensure you have given all the following requested information in your report.
Issue details
The reference here is extremely old and device-specific. Since this looks like a bug in the system, it is likely solved after all these years (I can not trigger such errors with all my Android devices).
https://github.com/libgdx/libgdx/blob/79cf00af53b7f38667291fbacf544d3074a811bd/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidLiveWallpaper.java#L95-L111
My particular use case is that the application can send commands to the wallpaper, which is in the background and does not have a GL context. Since some of the commands require loading textures, they need to be enqueued until there is a context.
However,  the state of the application is only ever communicated to the ApplicationAdapter when the graphics is paused, which never happens.
https://github.com/libgdx/libgdx/blob/79cf00af53b7f38667291fbacf544d3074a811bd/backends/gdx-backend-android/src/com/badlogic/gdx/backends/android/AndroidGraphics.java#L474-L484
I might be able to determine that the GL surface is not available in other ways, but can not receive an event when it becomes available. This is also very confusing since it is not documented.
If pausing the graphics is still undesired, maybe we can at least call these lifecycle methods somewhere?
Reproduction steps/code
N/A
Version of libGDX and/or relevant dependencies
1.10.0
Stacktrace
N/A
Please select the affected platforms

[x] Android
[ ] iOS
[ ] HTML/GWT
[ ] Windows
[ ] Linux
[ ] macOS

I actually do get a call to "resume", but not for "pause".
Workaround that might be useful (though the callbacks are called sometimes more than they should):
    override fun onCreateEngine(): Engine {
        return object : AndroidWallpaperEngine() {
            override fun onVisibilityChanged(visible: Boolean) {
                super.onVisibilityChanged(visible)
                Log.d("AppLog", "onVisibilityChanged:$visible")
            }

            override fun onPause() {
                super.onPause()
                Log.d("AppLog", "onPause")
            }

            override fun onResume() {
                super.onResume()
                Log.d("AppLog", "onResume")
            }
        }
    }

Also wrote about it here:
https://github.com/kloverde/android-LibGdxLiveWallpaperTemplate/issues/2

Yes, resume is actually being called. onPause getting called multiple times is actually fine for me, as long as it is not called if the application has already been resumed. I only need a flag to delay the loading of textures.


Basemaps not loading, Token required

Basically same issue as a previously resolved one #15

Android
Flutter 3.13.1 • channel stable

W/ArcgisMapController(11826): changeMap: Failed to load map.Check getCause() for further error information.
W/ArcgisMapController(11826): changeMap: Failed to load map.Token Required.
D/MAP     (11826): loadStatusChanged: FAILED_TO_LOAD
E/MAP     (11826): loadStatusChanged: Check getCause() for further error information.
E/MAP     (11826): loadStatusChanged: Token Required.

@atnegrete Hey, that apiKey issue.
Can you try the migration-2.0.0 branch?
Here I set the credentials/tokens
https://github.com/valentingrigorean/arcgis_maps_flutter/blob/migration-2.0.0/example/lib/utils/credentials.dart


Just a minor contribution, to test the curation workflow

Type: Incomplete
Summary:
Just a minor contribution, to test the curation workflow
Details:
the globs for the Facets were missing. This curation just adds the globs for examples and tests.
Resolution:
If I try to add a glob for docs the web application crashes and all entered values in the UI reset. (The error in the JS log is Uncaught (in promise) DOMException: Failed to execute 'setItem' on 'Storage': Setting the value of 'reduxPersist:ui' exceeded the quota. )
Affected definitions:

lz4 dfed9fa1d77f0434306d377c4da1f7191d3ba08a

As far as I can see the curation curations/git/github/lz4/lz4.yaml is already one of the more complicated or advanced ones, right? Or is there a more complete example of a curation?
To find a complex curation I have tried the following command:
curations$ find . -type f -exec wc -l {} \; | sort -n -r | head -20
75 ./nuget/nuget/-/Moq.yaml
58 ./nuget/nuget/-/Microsoft.IdentityModel.Clients.ActiveDirectory.yaml
55 ./nuget/nuget/-/Bond.CSharp.yaml
50 ./nuget/nuget/-/Bond.Runtime.CSharp.yaml
47 ./nuget/nuget/-/Microsoft.Azure.KeyVault.yaml
43 ./nuget/nuget/-/Newtonsoft.Json.yaml
41 ./nuget/nuget/-/WindowsAzure.Storage.yaml
41 ./nuget/nuget/-/Microsoft.ApplicationInsights.yaml
41 ./nuget/nuget/-/Castle.Core.yaml
39 ./sourcearchive/mavencentral/com.fasterxml.jackson.core/jackson-databind.yaml
39 ./sourcearchive/mavencentral/com.fasterxml.jackson.core/jackson-core.yaml
39 ./sourcearchive/mavencentral/com.fasterxml.jackson.core/jackson-annotations.yaml
38 ./git/github/lz4/lz4.yaml
37 ./nuget/nuget/-/Microsoft.Azure.KeyVault.WebKey.yaml
36 ./nuget/nuget/-/WebActivatorEx.yaml
36 ./nuget/nuget/-/Microsoft.WindowsAzure.ConfigurationManager.yaml
36 ./nuget/nuget/-/Microsoft.NETCore.DotNetAppHost.yaml
32 ./nuget/nuget/-/Microsoft.AspNetCore.yaml
32 ./nuget/nuget/-/Microsoft.ApplicationInsights.DependencyCollector.yaml
31 ./nuget/nuget/-/xunit.yaml

but most of these files just contain multiple versions of the same simple curation.


Does not use passive listeners to improve scrolling performance

pure-react-carousel version: 8.5.5
react version:
browser used:
node version:

Relevant code or config:
What you did:
I ran a audit on LightHouse Audit
What happened:
And it threw an error for passive scrolling event listener

Suggested solution:
Use passive listeners to improve scrolling performance

Sorry, its taken so long for me to get back to you, thank you for the issue. After auditing the event listeners I am not seeing the opportunity to change any to passive. Closing as wont fix


Clients don't receive while the server works

I didn't change the code on both client side and server side, and no update on nodejs and express
But today I found the things don't work properly.
When client connects to the server, server side debugs there is a client connection, and get pings every few seconds. but the client can't see anything. I tried to make the problem easy so I followed a simple example, still don't work on the client side
For example, when io connects to the server, server side can see the client while client could not,  there is no debug output from the client side
var socket = io.connect('http://localhost:3001');
socket.on('connect', function() {
 console.log("connected to the socket");

});
What is the problem

The only change I found is the Chrome version is updated to 15.0.8 74.106 now, that could be the problem?

I have same problem here with:
Google Chrome	16.0.912.21 (Official Build 108057) dev
OS	Linux
WebKit	535.7 (@98741)
JavaScript	V8 3.6.6.
Log:
info  - socket.io started
debug - served static /socket.io.js
debug - client authorized
info  - handshake authorized<PHONE_NUMBER>469645333
debug - setting request GET /socket.io/1/websocket/1832490397469645333
debug - set heartbeat interval for client<PHONE_NUMBER>469645333
warn  - websocket connection invalid
info  - transport end

Looks like chrome was updated to websocket version 13.
https://github.com/vti/protocol-websocket/issues/8

Hey, I'm seeing the same thing... I'm running<EMAIL_ADDRESS>according to NPM.
Do we need the latest version from GitHub rather than NPM?

Also, here is my debug log:
debug - emitting heartbeat for client<PHONE_NUMBER>1857688854
debug - websocket writing 2::
debug - set heartbeat timeout for client<PHONE_NUMBER>1857688854
debug - got heartbeat packet
debug - cleared heartbeat timeout for client<PHONE_NUMBER>1857688854
debug - set heartbeat interval for client<PHONE_NUMBER>1857688854
debug - setting request GET /socket.io/1/websocket/20225576041857688854
debug - set heartbeat interval for client<PHONE_NUMBER>1857688854
warn - websocket connection invalid
info - transport end
debug - set close timeout for client<PHONE_NUMBER>1857688854
debug - cleared close timeout for client<PHONE_NUMBER>1857688854
debug - cleared heartbeat interval for client<PHONE_NUMBER>1857688854
Before this happens, things are ticking along just fine and data is being sent and received by both client and server. It's always after the "debug - set heartbeat interval for client" that it happens.

I've been delving into this some more and have come to an interesting point...
I've found that the connection dies (gets the warn - websocket connection invalid) after receiving a request from another IP address that is not my own directly to the websocket URL.
I traced the IP back to a pool owned by my ISP. It looks like if I browse to any site my ISP will follow up with a browse to it shortly afterwards... even if that is to a websocket URL. Once that occurs the socket dies.
I'm going to try and confirm that this is the case by blocking their IP and checking the result.

Yup, looks like after accessing the websocket URL (albeit using the http protocol rather than ws://) the websocket dies.
Any way to protect against this?

OK, I've now CONFIRMED that this is the problem. ISP is following up every URL with a call itself. Also, I've found some more info about WHY they're doing it... see http://www.talktalkmembers.com/forums/archive/index.php/t-63522.html

I've created a temporary fix for this... in /socket.io/lib/manager.js line 530 I added:
// If we have an id, check that the id comes from the same initial IP as the first one did!
if (this.transports[data.id]) {
	if (this.transports[data.id].req.connection.remoteAddress != req.connection.remoteAddress) {
		// The new connection comes from a different IP from the original one so drop it now
		console.log('Access to transport from third-party IP attempted from ' + req.connection.remoteAddress);
		res.writeHead(404);
		res.end('404');

		return;
	}
}

That code checks the original request against the new incoming one. If the IP's for each do not match then it rejects the request.

coolbloke1324, please, specify the place for fix. Several lines before or after fix would be appreciated. Thanks.

Hey, I turned it into a pull request here: https://github.com/LearnBoost/socket.io/pull/624
Thanks!

sudo npm update socket.io
Did the trick for me.
Thanks @rlidwka


Remove compilation warnings

This PR removes the following warnings
warning: variable "deps" does not exist and is being expanded to "deps()", please use parentheses to remove the ambiguity or change the variable name
  /Users/Me/Project/src/deps/mixpanel_api_ex/mix.exs:12

warning: variable "description" does not exist and is being expanded to "description()", please use parentheses to remove the ambiguity or change the variable name
  /Users/Me/Project/src/deps/mixpanel_api_ex/mix.exs:15

warning: variable "package" does not exist and is being expanded to "package()", please use parentheses to remove the ambiguity or change the variable name
  /Users/Me/Project/src/deps/mixpanel_api_ex/mix.exs:16

Thanks!


Updates to dashboard chart PR

Generate legend data from data groups to keep it in sync for developers easier
Support both stacked and line charts: defaults to stacked, useLines to use line
Removed sizing by percentage width={size.height * 0.1}. This will not scale well with different sizes.

Done as a part of addressing review.


Is the norm dim In NormHead right?

I found that 'norm_weight = nn.functional.normalize(self.weight)' in modeling_baichuan.py. But the shape of weight is (vocab_size, hidden_size). Should it change to nn.functional.normalize(self.weight, dim=1) ? Or, am I miss something ?

I found that 'norm_weight = nn.functional.normalize(self.weight)' in modeling_baichuan.py. But the shape of weight is (vocab_size, hidden_size). Should it change to nn.functional.normalize(self.weight, dim=1) ? Or, am I miss something ?

The two methods is not the same?

Sorry, I thought the default value is dim=0. Yes they are the same, the default dim=1


MacOS Support

[Edge for MacOS when installed will not work on system running anything less than 10.13, different to this page that states 10.12]

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

ID: 86847b80-8f8e-9493-86ff-5dfd6412b48f
Version Independent ID: 2ce02bc3-24a1-8c9f-c787-34ab90e9f31d
Content: Microsoft Edge Supported Operating Systems
Content Source: edgeenterprise/microsoft-edge-supported-operating-systems.md
Product: microsoft-edge
GitHub Login: @srugh
Microsoft Alias: srugh

@BergaDev Thanks for the feedback!  We have updated the Supported Operating Systems page.


refactor: correct the implementation of all_schemas()

Which issue does this PR close?

Closes #5192.
Rationale for this change
Currently, all_schema() can return schema of child of child. (due to recursively call all_schema())
But, plan shouldn't get schema of child of child (or child of child of child of child ......).
It should just get info of itself and children.
For example
A join (Project (B.id = 3) -- B)

join shouldn't get schema of B.
So, I refactor this implementation, remove recursion.
What changes are included in this PR?
Just return children schema and itself schema
Are these changes tested?

Are there any user-facing changes?

I wonder if we can work on getting rid of it entirely.

This is my ultimate goal, I will continue to try to work on it.

Thanks again @jackwener


Adding missing set subcommand to inputpermission

Samples were missing the set subcommand

Unfortunately for APIs, those should automatically update and have changed a lot since this PR.


OPS: Create branch rules on github

Branch rules were configured to enforce better collaboration standards. The rules include the following:
Merge restrictions: All collaborators are required to obtain at least one review before merging changes.
Admin bypass: As an administrator, I am allowed to bypass these rules when necessary.
This ensures stricter control over the code quality while still allowing flexibility for administrative tasks.


test: Add Github Action to test SDK:main -> Databroker:master

Closes: #83
result can be seen here:

https://github.com/boschglobal/kuksa-android-sdk/blob/work/feature-83/README.md and
https://github.com/boschglobal/kuksa-android-sdk/blob/work/feature-83/docs/CONTRIBUTING.md

LGTM, cool badge :)


Debug baby_name_generator

Describe the bug
There is some issue with the baby name generator example that needs fixing

apparently there was no problem


Refine ProgramState mat id

We also can provide setUniformID manually for user to avoid calculate uniformID with uniform buffer automatically, what do you think about?

That would be a good idea, in case the performance is affected by the XXH32 calculation.

@rh101 Please help review the latest commit, I implement the idea

The latest commit with the setUniformID seems fine.

Thanks

well, i have test again, with seems with your implementation, cocos-re full fbo test fps is 36fps

so, currently, i think your implementation is best

I don't know much about rendering pipelines and such, so please correct me if I'm wrong, but isn't the sprite texture stored in the FBO?  If that is the case, then the XXH32 processing time would greatly affected by the texture size, and that would explain the low FPS.

Because every render node call setUniform per frame

I understand, so it would be quite intensive if the hashing algorithm is running every frame.

I understand, so it would be quite intensive if the hashing algorithm is running every frame.

Yes, so I modify the code, let's user to call updateUniformID when their shader have unstable uniform variables needs to set

@rh101 If you have no other qusetion, I will merge this pr

The changes look good.  Thank you for working on all of this.

Thanks, merged


Verdaccio returns "500 Internal Server Error" when running "npm audit" on a project.

Describe the bug
Verdaccio returns following error when running "npm audit" on a project:
npm WARN audit 500 Internal Server Error - POST http://localhost:4873/-/npm/v1/security/audits/quick
To Reproduce

Install verdaccio 5.0.4 with npm install -g<EMAIL_ADDRESS>Start verdaccio
Create a project testbug/ with package.json:

{
  "name": "test",
  "version": "0.0.0",
  "dependencies": {
    "typescript": "^4.2.4"
  }
}

In testbug/, perform "npm install" and then "npm audit". You will now get :

npm WARN audit 500 Internal Server Error - POST http://localhost:4873/-/npm/v1/security/audits/quick
Expected behavior
Running "npm audit" should not fail with above error.
Configuration File (cat ~/.config/verdaccio/config.yaml)
storage: ./storage
plugins: ./plugins

web:
  title: Verdaccio

auth:
  htpasswd:
    file: ./htpasswd

uplinks:
  npmjs:
    url: https://registry.npmjs.org/

packages:
  '@*/*':
    # scoped packages
    access: $all
    publish: $authenticated
    unpublish: $authenticated
    proxy: npmjs

  '**':
    access: $all
    publish: $authenticated
    unpublish: $authenticated
    proxy: npmjs

server:
  keepAliveTimeout: 60

middlewares:
  audit:
    enabled: false

logs: { type: stdout, format: pretty, level: trace}

Environment information
  System:
    OS: Windows 10 10.0.18363
    CPU: (8) x64 Intel(R) Core(TM) i7-8665U CPU @ 1.90GHz
  Binaries:
    npm: 7.11.1 - ~\work\tools\node-12.20.2\npm.CMD
  Virtualization:
    Docker: 19.03.12 - C:\Program Files\Docker\Docker\resources\bin\docker.EXE
  Browsers:
    Chrome: 90.0.4430.93
    Edge: Spartan (44.18362.449.0)

Debugging output

$ NODE_DEBUG=request verdaccio display request calls (verdaccio <--> uplinks):

http --- <IP_ADDRESS> requested 'POST /-/npm/v1/security/advisories/bulk'
http --- 404, user: verdaccio(<IP_ADDRESS>), req: 'POST /-/npm/v1/security/advisories/bulk', bytes: 54/173
http --- <IP_ADDRESS> requested 'POST /-/npm/v1/security/audits/quick'
http --- 500, user: null(<IP_ADDRESS>), req: 'POST /-/npm/v1/security/audits/quick', bytes: 0/0

$ DEBUG=express:* verdaccio enable extreme verdaccio debug mode (verdaccio api)

  express:router dispatching POST /-/npm/v1/security/advisories/bulk +12s
  express:router query  : /-/npm/v1/security/advisories/bulk +2ms
  express:router expressInit  : /-/npm/v1/security/advisories/bulk +0ms
  express:router corsMiddleware  : /-/npm/v1/security/advisories/bulk +2ms
  express:router <anonymous>  : /-/npm/v1/security/advisories/bulk +1ms
 http --- <IP_ADDRESS> requested 'POST /-/npm/v1/security/advisories/bulk'
  express:router errorReportingMiddleware  : /-/npm/v1/security/advisories/bulk +3ms
  express:router <anonymous>  : /-/npm/v1/security/advisories/bulk +0ms
  express:router compression  : /-/npm/v1/security/advisories/bulk +1ms
  express:router trim prefix (/-/npm/v1/security) from url /-/npm/v1/security/advisories/bulk +1ms
  express:router router /-/npm/v1/security : /-/npm/v1/security/advisories/bulk +1ms
  express:router dispatching POST /advisories/bulk +4ms
  express:router router  : /-/npm/v1/security/advisories/bulk +0ms
  express:router dispatching POST /-/npm/v1/security/advisories/bulk +1ms
  express:router <anonymous>  : /-/npm/v1/security/advisories/bulk +1ms
(node:17928) [DEP0106] DeprecationWarning: crypto.createDecipher is deprecated.
  express:router jsonParser  : /-/npm/v1/security/advisories/bulk +30ms
  express:router <anonymous>  : /-/npm/v1/security/advisories/bulk +70ms
  express:router encodeScopePackage  : /-/npm/v1/security/advisories/bulk +1ms
  express:router router  : /-/npm/v1/security/advisories/bulk +3ms
  express:router dispatching POST /-/npm/v1/security/advisories/bulk +1ms
  express:router <anonymous>  : /-/npm/v1/security/advisories/bulk +0ms
  express:router setSecurityWebHeaders  : /-/npm/v1/security/advisories/bulk +1ms
  express:router <anonymous>  : /-/npm/v1/security/advisories/bulk +1ms
  express:router final  : /-/npm/v1/security/advisories/bulk +0ms
 http --- 404, user: verdaccio(<IP_ADDRESS>), req: 'POST /-/npm/v1/security/advisories/bulk', bytes: 54/173
  express:router dispatching POST /-/npm/v1/security/audits/quick +24ms
  express:router query  : /-/npm/v1/security/audits/quick +1ms
  express:router expressInit  : /-/npm/v1/security/audits/quick +1ms
  express:router corsMiddleware  : /-/npm/v1/security/audits/quick +0ms
  express:router <anonymous>  : /-/npm/v1/security/audits/quick +0ms
 http --- <IP_ADDRESS> requested 'POST /-/npm/v1/security/audits/quick'
  express:router errorReportingMiddleware  : /-/npm/v1/security/audits/quick +1ms
  express:router <anonymous>  : /-/npm/v1/security/audits/quick +0ms
  express:router compression  : /-/npm/v1/security/audits/quick +1ms
  express:router trim prefix (/-/npm/v1/security) from url /-/npm/v1/security/audits/quick +0ms
  express:router router /-/npm/v1/security : /-/npm/v1/security/audits/quick +0ms
  express:router dispatching POST /audits/quick +1ms
 http --- 500, user: null(<IP_ADDRESS>), req: 'POST /-/npm/v1/security/audits/quick', bytes: 0/0

$ npm -ddd prints:

npm verb cli [
npm verb cli   'C:\\Users\\dtoch\\work\\tools\\node-12.20.2\\node.exe',
npm verb cli   'C:\\Users\\dtoch\\work\\tools\\node-12.20.2\\node_modules\\npm\\bin\\npm-cli.js',
npm verb cli   '-ddd'
npm verb cli ]
npm info using<EMAIL_ADDRESS>npm info using<EMAIL_ADDRESS>npm timing npm:load:whichnode Completed in 5ms
npm timing config:load:defaults Completed in 3ms
npm timing config:load:file:C:\Users\dtoch\work\tools\node-12.20.2\node_modules\npm\npmrc Completed in 7ms
npm timing config:load:builtin Completed in 7ms
npm timing config:load:cli Completed in 5ms
npm timing config:load:env Completed in 1ms
npm timing config:load:file:C:\Users\dtoch\.npmrc Completed in 6ms
npm timing config:load:project Completed in 8ms
npm timing config:load:file:c:\Users\dtoch\.npmrc Completed in 5ms
npm timing config:load:user Completed in 5ms
npm timing config:load:file:C:\Users\dtoch\work\tools\node-12.20.2\etc\npmrc Completed in 2ms
npm timing config:load:global Completed in 2ms
npm timing config:load:validate Completed in 4ms
npm timing config:load:credentials Completed in 2ms
npm timing config:load:setEnvs Completed in 1ms
npm timing config:load Completed in 39ms
npm timing npm:load:configload Completed in 39ms
npm timing npm:load:setTitle Completed in 0ms
npm timing npm:load:setupLog Completed in 3ms
npm timing npm:load:cleanupLog Completed in 4ms
npm timing npm:load:configScope Completed in 0ms
npm timing npm:load:projectScope Completed in 1ms
npm timing npm:load Completed in 105ms
npm timing config:load:flatten Completed in 2ms
npm <command>

Usage:

npm install        install all the dependencies in your project
npm install <foo>  add the <foo> dependency to your project
npm test           run this project's tests
npm run <foo>      run the script named <foo>
npm <command> -h   quick help on <command>
npm -l             display usage info for all commands
npm help <term>    search for help on <term> (in a browser)
npm help npm       more involved overview (in a browser)

All commands:

    access, adduser, audit, bin, bugs, cache, ci, completion,
    config, dedupe, deprecate, diff, dist-tag, docs, doctor,
    edit, exec, explain, explore, find-dupes, fund, get, help,
    hook, init, install, install-ci-test, install-test, link,
    ll, login, logout, ls, org, outdated, owner, pack, ping,
    prefix, profile, prune, publish, rebuild, repo, restart,
    root, run-script, search, set, set-script, shrinkwrap, star,
    stars, start, stop, team, test, token, uninstall, unpublish,
    unstar, update, version, view, whoami

Specify configs in the ini-formatted file:
    c:\Users\dtoch\.npmrc
or on the command line via: npm <command> --key=value

More configuration info: npm help config
Configuration fields: npm help 7 config

<EMAIL_ADDRESS>C:\Users\dtoch\work\tools\node-12.20.2\node_modules\npm
npm verb exit 0
npm timing npm Completed in 1473ms
npm info ok

$ npm config get registry prints:

http://localhost:4873/

Hm, just noticed that it is expected behaviour : https://verdaccio.org/docs/en/configuration#audit . Issue can thus be rejected.

Hm, just noticed that it is expected behaviour : https://verdaccio.org/docs/en/configuration#audit . Issue can thus be rejected.


Adds viewsObjects for subscriptionDashboard

https://github.com/Shippable/pm/issues/8503

This is in rc.


Add Mongoid field aliases

This makes it so the field name is printed with the alias in parentheses instead of the alias being printed as the field name.

@HarlemSquirrel I'm not 100% sure how appraisals work with the CI and what not but I had to add newer versions to even get the tests to run for me.


getAccountBalances throwing error

Hi,
i have been  trying to get all account balances and it keeps throwing me an error
error: failed to execute "open" on xmlhttprequest : invalid URL.
i use node v.20 and next 13.5.4..
how do i fix this?

@shazzar-ox  Can you please specify the chainId which you are using to initialize the primeSDK?

Sepolia: 11155111

@shazzar-ox  Can you please try some other chains? Like, goerli: 5, mumbai: 80001.

I’m getting invalid project key. Do you mind letting me know what the project key is meant to be.

I’m getting invalid project key. Do you mind letting me know what the project key is meant to be.

A project key serves as a secure code that functions to identify and authenticate either an application or user when accessing data wrapper endpoints.

You require a valid project key to access the data wrapper endpoints.

How do I get it please. Or where do I get one

How do I get it please. Or where do I get one

hey,
Please create a ticket in our Discord https://discord.etherspot.io

Gotten. Thank you


Remove unsigned integers in DataValue

👋 Hey,
Feature
We should remove the unsigned variants of the DataValue structure.
Benefit
This brings this structure closer to CLIF's idea of a DataValue, which does not distinguish between signed and unsigned in types. Instead in CLIF we only have that distinction in the operations that are performed (see as an example sdiv vs udiv)
It can also bring some issues to the interpreter if not handled correctly. For example if a operation returns a unsigned DataValue it can cause a test failure such as Failed test: run: %usubof_i64(0, 0) == 0, actual: 0 since we parse the values in test cases as signed integers.
Overall this is quite confusing in the interpreter and causes a bunch of casting between types that could probably be avoided.
Implementation
As far as I'm aware the only user of these values is the interpreter. Which casts values to unsigned when it needs to perform operations as unsigned, and then has to cast them back to signed values before returning them.
We can instead separate those operations like we do in CLIF instructions. As an example right now we have Value::div which does signed or unsigned division based on the signedness of the input DataValue, but we can change that to have Value::sdiv and Value::udiv like we have for CLIF instructions.
Alternatives
We can keep using this system and changing the PartialEq implementation to fix some of the issues above, but that does not sound like the best solution to me.
See the following zulip thread for some additional context.

Is this still available? If so I'd like to take a crack at it.

As far as I'm aware no one has started working on it yet!

@bahildebrand I'm looking to do this but if you already started let me know, can defer this to you

@tnachen I have already started, but it seems like you might have as well.


Support for multiple entities

Hey @dblock,
I have created this pull request to add support for multiple entities in grape-swagger. One of usage case is when I would like to specify some entity as required for input and I would like to return other entity in response for that query. I have described following case in specs.
Thanks in advantage for any clues if there is something to fix.

This is great, merged squashed via https://github.com/tim-vandecasteele/grape-swagger/commit/21f5f2a7320b8c6cf47d094b72a71c9de50835d7.
I think I would also like to be able to do both entities: [ ] and entity: ..., maybe you can make an additional PR for that?


fix toggleterm & add config for diffview.nvim

toggleterm.nvim: fix toggleterm start_in_insert not working.
diffview.nvim: disable lsp diagnostics in Diffview mode, otherwise, lsp goes crazy due to the conflict markers (<<<) and then crashes.

Can't repro on my wsl.
Approve.

Can't repro on my wsl.
What you introduced is set in the default setup function as diffview.nvim's readme said.

Are you using 0.10, because I'm gussing it's a nightly issue for autocmd.

I ran into this problem yesterday and I thought it wasn't turned on by default, sorry about this. I will try to create a repro code and raise issue in diffview.

No, I tested it for 0.9. You should open a pr for 0.10 branch instead of main.


It does not work for PLUS account during progress quiz

It does not work for PLUS account during progress quiz @
https://www.duolingo.com/progress-quiz/es

I don't have a Plus account, unfortunately.
If the structure of the quiz seems similar to one of the other test/skill/practice/etc. types, then you could load an unpacked copy of the extension and try tweaking onMutation() in content.js to see if the existing logic will work. You should be able to change one of these conditions:
    const isPractice = window.location.href.indexOf('/practice') != -1;
    const isSkill = window.location.href.indexOf('/skill/') != -1;
    const isSkillTest = isSkill && window.location.href.endsWith('/test');
    const isBigTest = window.location.href.indexOf('/bigtest/') != -1;
    const isCheckpoint = window.location.href.indexOf('/checkpoint/') != -1;
    const isStory = window.location.href.indexOf('/stories/') != -1;

For example, you could change the first line to:
    const isPractice = window.location.href.indexOf('/practice') != -1 ||
                       window.location.href.indexOf('/progress-quiz/') != 1;

to make progress quiz URLs get the same treatment as practice URLs.

I don't have it anymore either. If / when i get another free week of my friends i'll give it a try.

Hi there, So I got a week of plus and gave it a try.
I made the changes as you suggested and it worked.
Please add  the changes to next release.

Thanks for testing it. I've uploaded 0.23 to the Chrome Web Store.


[DO_NOT_MERGE] temp diff to triage test failure

Tips

Thank you very much for contributing to Apache Hudi.
Please review https://hudi.apache.org/contribute/how-to-contribute before opening a pull request.

What is the purpose of the pull request
(For example: This pull request adds quick-start document.)
Brief change log
(for example:)

Modify AnnotationLocation checkstyle rule in checkstyle.xml

Verify this pull request
(Please pick either of the following options)
This pull request is a trivial rework / code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(example:)

Added integration tests for end-to-end.
Added HoodieClientWriteTest to verify the change.
Manually verified the change by running a job locally.

Committer checklist

[ ] Has a corresponding JIRA in PR title & commit

[ ] Commit message is descriptive of the change

[ ] CI is green

[ ] Necessary doc changes done or have another open PR

[ ] For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.

@hudi-bot run azure

Closing this as CI on master is green now.  Feel free to reopen it if needed.


Bead_Sort

Submission Title
Bead_Sort
Submission Type
Algorithm
Submission Description
Also known as Gravity sort, this algorithm was inspired from natural phenomenons and was designed keeping in mind objects(or beads) falling under the influence of gravity.
Folder Related To
Algorith => Sorting_Algorithm => Bead_Sort => Bead_Sort.extension
Contributors

[ ]  C++ -
[ ]  C -
[ ]  Python -
[ ] Java -
[ ] JavaScript -
[ ] TypeScript -
[ ] Golang -
[ ] Ruby -
[ ] php -
[ ] Swift -
[ ] C# -

hey , i would like to take it up for c++implementation

Assign this to me for python

Would like to work on this using Java, kindly assign it.

I can do it with Ruby 👌

thanks everyone :v:


Compression in GroupChat

Why are these changes needed?
Add compression in groupchat.

Related issue number

Checks

[ ] I've included any doc changes needed for https://microsoft.github.io/autogen/. See https://microsoft.github.io/autogen/docs/Contribute#documentation to build and test documentation locally.
[ ] I've added tests (if relevant) corresponding to the changes introduced in this PR.
[ ] I've made sure all auto checks have passed.

Codecov Report

Merging #497 (b25b024) into main (f052977) will decrease coverage by 20.56%.
Report is 3 commits behind head on main.
The diff coverage is 8.55%.

@@             Coverage Diff             @@
##             main     #497       +/-   ##
===========================================
- Coverage   32.25%   11.69%   -20.56%
===========================================
  Files          22       24        +2
  Lines        2784     3052      +268
  Branches      633      700       +67
===========================================
- Hits          898      357      -541
- Misses       1819     2692      +873
+ Partials       67        3       -64

Flag
Coverage Δ

unittests
11.69% <8.55%> (-20.49%)
:arrow_down:

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

Files
Coverage Δ

autogen/agentchat/groupchat.py
22.13% <14.28%> (-39.08%)
:arrow_down:

...utogen/agentchat/contrib/compressible_groupchat.py
0.00% <0.00%> (ø)

autogen/agentchat/contrib/compressible_agent.py
12.35% <12.35%> (ø)

... and 9 files with indirect coverage changes

Take out comments from history due to long deploy logs:
I have change the structure of the the CompressibleGroupChatManager. I used a hybrid of composition and inheritance, hope this clear things up.
I add a check for "check_groupchat_status_func" in run_chat of the original groupchat.
New structure:

Inherit from GroupChatManager: set the check_groupchat_status_func.
Composition with CompressibleAgent: use CompressibleAgent to manage the compression.

Another log @thinkall :

Hi @kevin666aa what's the plan to update this PR? there are some conflicts in the groupchat.py file due to some recent updates.

Hi @kevin666aa what's the plan to update this PR? there are some conflicts in the groupchat.py file due to some recent updates.

I just fixed the conflict. If there are no more comments on the PR, I think it is good to go.

@kevin666aa bump

See test fails.


No JPEG data found in image

Full error
[mjpeg @ 0x7f9713809400] No JPEG data found in image
Error while decoding stream #0:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished

If you get this error, you probably tried to infer against a model URL that doesn't exist.
We should surface this and not let the script try to compile the inference video without output frames

I encountered this issue - for anyone that might be having this in the future:
As stated above, the script is inferring against a URL that doesn't exist.

First thing to change is the set the host to https://detect.roboflow.com (this seems to replacement to infer. You can change the default, or set --host)

Then, Search for "access_token" and change this to say "api_key' instead, to reflect the new parameter name

I was getting the same error due to the detect.roboflow.com API returning slightly different error messages than those being checked in infer.sh, which I've fixed in PR https://github.com/roboflow/video-inference/pull/4.
Might be worth adding a sanity check to ensure the returned data is actually a JPEG on the first API call.


Add support for an ssh repo locator

The locator package currently only specifies an HTTP locator, we should add support for an SSH one as well: https://github.com/askgitdev/askgit/blob/main/pkg/locator/locator.go#L58

Fixed by #185


Add Pod6 tutorial

Part of https://github.com/perl6/doc/issues/657.
It seems like there no pod6 tutorial yet.

how about starting with an entry under Language with a copy of S26?

http://perl6intro.com/ is published under CC, what means we can nick it. Would need to be transformed into pod6 tho.

No we can't. The docs are under artistic license and CC does not allow a change of license.


[Guidance] Why the need for the _assets dir?

In doing some initial POC work with Vite and SSR, I noticed that it is using the _assets directory within the output directory during builds. This seems superfluous and unintuitive: if I say output should go to the /server directory it actually goes to /server/_assets...
What is the reason for this directory?

Probably related to FAB: https://fab.dev/kb/fab-structure#_assets-directory

Because files inside public are copied verbatim to dist root. _assets contains everything compiled and emitted by Vite.


Change \not glyph to non-combining character, fix \mathit{/}

Move \not glyph (\@not) from U+338 (COMBINING LONG SOLIDUS OVERLAY) to U+2044 (FRACTION SLASH).  Both choices are a hack; what we want is a non-combining LONG SOLIDUS, but that doesn't exist in Unicode.  FRACTION SLASH seems unlikely to be used by a user, as it's not a mathematical operator (DIVISION SLASH is for that), and even if they did, this symbol is not a terrible rendering of a slash.
This aims to fix the high-priority bug https://github.com/KaTeX/KaTeX/issues/1842 which reveals that combining characters are problematic on Chrome 72.
Here's a screenshot with this new font set that confirms this fixes the problem on Chrome 72:

Along the way, I noticed a bug in the advanceWidth of \mathit{/} because \not used to (?) map to 0x2F (/). That old code is removed, and now everything renders correctly.

Hmm, it looks like this may not support \boldsymbol:

Found the problem.  Will upload a fix in a moment.

Sorry for the late review. What about using a PUA character, i.e., U+E000?

@edemaine Actually that's what exactly PUAs are for, defining characters that are not defined in the Unicode. Icon fonts such as Font Awesome use them for their icons. There isn't and can't be consensus on them.

OK, given that there's no exact match, perhaps PUA is best.
Wow, actually, there are many PUA characters already being used in KaTeX's fonts, so this is definitely the right choice -- thanks @ylemkimon!  I'm going to use 0xE020.
$ grep 0xE0 makeFF
    0x75 => [0xE000,0,605], # radical extension (PUA)
    0x76 => [0xE001,0,565], # radical top (PUA)
    0x00 => 0xE00C,         # \lvertneqq
    0x01 => 0xE00D,         # \gvertneqq
    0x0A => 0xE010,         # \nleqslant
    0x0B => 0xE00F,         # \ngeqslant
    0x14 => 0xE011,         # \nleqq
    0x15 => 0xE00E,         # \ngeqq
    0x20 => 0xE01A,         # \varsubsetneq
    0x21 => 0xE01B,         # \varsupsetneq
    0x22 => 0xE016,         # \nsubseteqq
    0x23 => 0xE018,         # \nsupseteqq
    0x26 => 0xE017,         # \varsubsetneqq
    0x27 => 0xE019,         # \varsupsetneqq
    0x2E => 0xE006,         # \nshortmid
    0x2F => 0xE007,         # \nshortparallel
    0x7A => 0xE008,         # \digamma  (non-standard, for IE)
    0x7B => 0xE009,         # \varkappa (non-standard, for IE)

@ylemkimon Do you want to double check the new comments? Also, do you understand why all the fonts are changing in each build? I thought you fixed that.

Also, do you understand why all the fonts are changing in each build? I thought you fixed that.

It is because fonts are still timestamped, which will be fixed in #56 by setting SOURCE_DATE_EPOCH.
Thank you for the fix and again sorry for the late review.

Ah, right -- a good reminder to finally review #56. 😄 I will try to do that tomorrow...


Check WM_NAME length before copying to avoid garbage (fixes #11)

Fixes #11, by checking both the size of WM_NAME and the dest size.

Thanks.

Would it be possible to have a new release (v0.5.4) for this commit?

Yes: done.


installing better-sqlite3 on mac

so i have been trying to install this for like the past few hours, and ive been getting various errors, one of them is gyp ERR! configure error  gyp ERR! stack Error: Can't find Python executable "/path/to/executable/python2.7", you can set the PYTHON env variable.
i've also been getting errors like
gyp ERR! stack Error: make failed with exit code: 2
and other stuff.
i already have the build-tools, because when i try to install them it says i already have them or something along those lines.
soo.., why does this happen,what am i doing wrong?

I'm on macos 10.15.2 (19C57) and it's working for me using yarn.

Let me know it this fixes it, run before install: npm i -g node-gyp@latest

@cekvenich it doesnt fix it

@setpixel I tested. If you wish to give me your steps and what you get w/
node-gyp -v
here are notes for my package: https://www.npmjs.com/package/mbakex

This should be fixed in the latest version of better-sqlite3 (v6.0.1).


Bug: Switchbot fails to load since updating to version 3.7.0

Describe the Bug
Since updating to version 3.7.0, I've lost all switchbot devices showing up and the plug-in fails to load with the error "No plugin was found for the platform "SwitchBot" in your config.json. Please make sure the corresponding plugin is installed correctly." Reverting back to v3.6.0 does not resolve the issue, nor does trying the latest beta version.
To Reproduce
Upgrade to version 3.7.0 on Synology DSM
Expected Behavior
Plug-in update successfully and continue working
Relevant Log Output
[7/22/2024, 7:39:48 PM] ====================
[7/22/2024, 7:39:48 PM] ERROR LOADING PLUGIN @switchbot/homebridge-switchbot:
[7/22/2024, 7:39:48 PM] Error: Cannot find package 'node-switchbot' imported from<EMAIL_ADDRESS>    at new NodeError (node:internal/errors:406:5)
    at packageResolve (node:internal/modules/esm/resolve:789:9)
    at moduleResolve (node:internal/modules/esm/resolve:838:20)
    at defaultResolve (node:internal/modules/esm/resolve:1043:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:383:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:352:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:228:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36)
[7/22/2024, 7:39:48 PM] ====================
...
...
...
[7/22/2024, 7:39:48 PM] No plugin was found for the platform "SwitchBot" in your config.json. Please make sure the corresponding plugin is installed correctly.

Config for homebridge-switchbot
{
    "name": "SwitchBot",
    "credentials": {
        "token": "tokencode",
        "secret": "secret",
        "notice": "Keep your Token & Secret a secret!"
    },
    "options": {
        "logging": "debug"
    },
    "platform": "SwitchBot"
}

Screenshots
No response
Device and Model
Synology- DS423
Node.js Version
v20.9.0
NPM Version
v3.7.0
Homebridge Version
v1.8.4
Homebridge Switchbot Plugin Version
v3.7.0
Homebridge Config UI X Plugin Version
v4.56.4
Operating System
Synology DSM

first and foremost, when you say you lost all switchbot devices are you talking about Homebridge UI or Home App. If Homebridge UI, you can't really rely on that to tell you if devices are still in the Home App or not. If the Home App, that shouldn't happen, so there must be a Homebridge config setup wrong.

Do you have the plugin setup as a child bridge?

Have you tried reinstalling? looks like node-switchbot didn't get installed for some reason.

Apologies, I meant in Homebridge UI under the Plugin Config

The Plugin was never setup as a Child Bridge.
I've tried reinstalling multiple times, reverting to v3.6.0 and tried the beta. I also tried to restore a backup from earlier this morning, but nothing it working with the error message above occurring each time :(

then for some reason the environment you are using isn't allowing for node-switchbot to be installed.

It was very strange, tried reinstalling a couple more times and it is working fine now - thanks for the quick response and apologies for the confusion.


Docs: minor fixes

@julen thanks for submitting, can you rebase this? This should fix the tests and we'll probably be able to merge this fast :)

Oh, I even removed the repo... :bomb: I'll close this and open a new one.


chore(react-hooks)!: Update to AFJ 0.3.2

Align the types of the react-hooks package with AFJ 0.3.2. Specifically, renamed ProofRecord to ProofExchangeRecord and added a check to make sure its defined in utils.
Fixed #185

Codecov Report

Merging #184 (c040818) into main (24e883c) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #184   +/-   ##
=======================================
  Coverage   86.78%   86.78%
=======================================
  Files          24       24
  Lines        1241     1241
  Branches      287      277   -10
=======================================
  Hits         1077     1077
  Misses        150      150
  Partials       14       14

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@TimoGlastra I cannot merge. When the PR is ready, able to so a squash merge. Some of my commits are not helpful for the history.


No gif in the readme ?

Do I understand this correctly, you want me to add something like "supports animated gifs" to the readme?

Just include a small screencast like here https://github.com/tmux-plugins/tmux-resurrect or  with a gif like here https://github.com/easymotion/vim-easymotion.

I don't think a screencast is worth the hassle, I will add some screenshots with the release of version 0.3, which is currently under heavy development, though.


Update faqs.md

Proposed changes

setting DOCKER_HOST to http:// fails with error Invalid bind address format: http://localhost:2375
Unreleased project version (optional)

Related issues (optional)

Thanks, @Paxxi :)


Unity Exception: Can not sign the application.

I was getting the error Unity Exception: Can not sign the application when trying to build the project. I did not make any edits to the project settings or anything.
I "fixed" it by unchecking the Custom Keystore setting in Project Settings -> Player -> Publishing Settings.
Not sure if that's a good move or not /shrug

Thanks @SommerChase for bringing this up.
I changed the settings so that it won't try to use a custom Keystore as you did. You can see the commit here


Declare variable at the begin of scope

To avoid compile errors using visual studio

Hi,
Can you  initialize the variable (even if reassigned after) and amend the commit message "using Visual Studio version prior to VS 2013 " ?
I willthen merge the pull request :)
Thanks for reporting issues !
vincent

updated


Can currently add draft recipe to your shopping list

It shouldn't allow that until the recipe is published!


grape-swagger needs rack-test

Fixes #908

I specified ~> 2 because it's kind of optimistic not to provide a version constraint, but maybe it can work with older versions?..

thanks @x-yuri … think it should be fine with version ~>2


SecureComms: Add e2e tests without KBS

Activate SecureComms using peerpod configMap while setting:

Activate secure comms in CAA
Set the KBS url in CAA to "false", indicating no KBS
Rely on CAA reporting to APF that Secure Comms was activated using daemonConfig

Run the standard tests

@bpradipt, @stevenhorsman


File Detail Page: Revisions table extends past border

Reported by @nicipfeiffer on the 0.43 Trello board:
Related to #3152?
Occurs on ALL browsers

Occurs when the screen width is decreased (becomes more narrow)

Also occurs for registrations

Comments by @caneruguz:

The main problem here is not that the content extends beyond the border at certain widths; at those widths the content is not really readable anyway so making it fit is not the best UI solution. The better solution is to think about how we can change the table layout in revisions so that it never gets as cramped as this. Maybe column layout changes could help, maybe we should use cards. I'm deffering this issue to figure out a proper solution.

I want to move this to discussion, because I had a suggestion for this to do the table as cards and I think we should think about a comprehensive solution.

Here is the version that I rewrote this table to that Steve vetoed. He is right that we need more discussion on this so I would like to make a case to use "card" style for this information. The card below is the highlighted (i.e. current version), others will be grey.

I actually really like it!

@sloria @JeffSpies should I make a proposal for this or can we discuss my solution in the thread? I made a case above for using cards and I believe it will be a significant improvement.

@caneruguz This does look like proposal worthy to me, for discussion and clarification, maybe even inclusion in larger efforts (unless anyone disagrees). Ping @erinmayhood as FYI.

While we need to consider what info goes here, can we just lock in a width and force non-responsiveness?


RFE: is it possible to start making github releases?🤔

Is it possible next time on release new version make the github release to have entry on https://github.com/NLnetLabs/unbound/releases? 🤔
I'm only asking because on the creation of a new GH release a notification is spread to all those whom have set in the web UI Watch->Releases.
My automation process uses those notifications by trying to make preliminary automated upgrades of building packages, which allows saving some time on maintaining packaging procedures.
More about gh releases is possible to find on
https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository
https://github.com/marketplace/actions/github-release
https://pgjones.dev/blog/trusted-plublishing-2023/
https://github.com/ESSS/pytest-regressions/commit/bcd06142
https://github.com/jbms/sphinx-immaterial/issues/281#issuecomment-1700933026

Here is 1.19.0, https://github.com/NLnetLabs/unbound/releases/tag/release-1.19.0 .