Merge of 0.7 and 1.0

Hey,
until today I had 2 instances running ... one for 0.7 with normal mode and one for TV mode:
        {
            "platform": "HarmonyHubWebSocket",
            "name": "HarmonyHub",
            "hubIP": "192.168.XXX.XXX",
            "showTurnOffActivity": "inverted",
            "devicesToPublishAsAccessoriesSwitch": [
                "Beleuchtung TV;PowerOn",
                "Beleuchtung TV;PowerOff",
                "Yamaha AVR;VolumeUp",
                "Yamaha AVR;VolumeDown",
                "Beleuchtung Theke;PowerToggle"
            ]
        },
        {
            "platform": "HarmonyHubWebSocket",
            "name": "Media",
            "hubIP": "192.168.XXX.XXX",
            "TVPlatformMode": true,
            "mainActivity": "Apple TV",
            "numberOfCommandsSentForVolumeControl": 4
        },

Today I merged it to one after the upgrad, but it won't work:
        {
            "platform": "HarmonyHubWebSocket",
            "name": "Media",
            "hubIP": "192.168.XX.XXX",
            "TVPlatformMode": true,
            "mainActivity": "Apple TV",
            "switchAccessories": true,
            "showTurnOffActivity": "inverted",
            "devicesToPublishAsAccessoriesSwitch": [
                "Beleuchtung TV;PowerOn",
                "Beleuchtung TV;PowerOff",
                "Yamaha AVR;VolumeUp",
                "Yamaha AVR;VolumeDown",
                "Beleuchtung Theke;PowerToggle"
            ],
            "numberOfCommandsSentForVolumeControl": 4
        },

Did I miss something or does it just notr work.
My goal is to have all single switches back again, I need them for my automations ...
Thanks.
iOS and homebridge are latest. homebridge-harmony is latest prod version. Or do I have to use another one?

Hi, I will check asap. Are the turnOffSwitch / devices switch there ? Only activities switch are missing ? Did you clean your homebridge cache ?

All missing....
Now the bridge is cxrashing ....
You mean cleaning with the switch to do it?

try the following sequence :
option cleancache to true in the config
restart homebridge
stop homebridge
cleancache to false
start again

will add "cleancache": true to it and try.

At the moment it is like I said, homebridge crashing:
Aug 15 18:03:08 phoenixpi homebridge[29292]: [2019-8-15 18:03:08] [Media] INFO - shutdown
Aug 15 18:03:08 phoenixpi homebridge[29292]: [2019-8-15 18:03:08] TypeError: platform.harmonyBase.harmony.end is not a function
Aug 15 18:03:08 phoenixpi homebridge[29292]:     at HarmonyPlatform.<anonymous> (/usr/lib/node_modules/homebridge-harmony/harmonyPlatform.js:60:42)
Aug 15 18:03:08 phoenixpi homebridge[29292]:     at API.emit (events.js:193:13)
Aug 15 18:03:08 phoenixpi homebridge[29292]:     at process.<anonymous> (/usr/lib/node_modules/homebridge/lib/cli.js:48:19)
Aug 15 18:03:08 phoenixpi homebridge[29292]:     at process.emit (events.js:193:13)

I really think your cache is messed up. If cleancach does not work, delete files in perist folder and try again.
The following works for me, which seems pretty the same :
   "platforms": [
        {
            "DEVMODE" : true,
            "platform": "HarmonyHubWebSocket",
            "name": "NicoHarmonyHub",
            "hubIP": "<IP_ADDRESS>",
            "mainActivity": "La TV",
            "switchAccessories": true,
            "showTurnOffActivity": "inverted",
            "devicesToPublishAsAccessoriesSwitch": [
                "Caisson"
            ],
            "numberOfCommandsSentForVolumeControl": 4
        }

Log :
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Adding Accessory : NicoHarmonyHub-DEVTV
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - configuring Main TV Service
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Creating TV Service
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - accessories : main activity name : DEVLa TV
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - accessories : activity to configure : DEVVinyl
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Creating Input Service - DEVVinyl
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - accessories : activity to configure : DEVLa PS4
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Creating Input Service - DEVLa PS4
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - accessories : activity to configure : DEVLa Switch
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Creating Input Service - DEVLa Switch
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - accessories : activity to configure : DEVLa TV
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Configuring Main Activity DEVLa TV
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Creating TV Speaker Service
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Creating Input Service - DEVLa TV
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - accessories : activity to configure : DEVUn Film
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Creating Input Service - DEVUn Film
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - accessories : activity to configure : DEVLa musique
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Creating Input Service - DEVLa musique
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Adding Accessory : NicoHarmonyHub-DEVVinyl
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Discovered Activity : DEVVinyl
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Creating Switch Service DEVVinyl/DEVVinyl
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Adding Accessory : NicoHarmonyHub-DEVLa PS4
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Discovered Activity : DEVLa PS4
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Creating Switch Service DEVLa PS4/DEVLa PS4
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Adding Accessory : NicoHarmonyHub-DEVPowerOff
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Discovered Activity : DEVPowerOff
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Creating Switch Service DEVPowerOff/DEVPowerOff
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Adding Accessory : NicoHarmonyHub-DEVLa Switch
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Discovered Activity : DEVLa Switch
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Creating Switch Service DEVLa Switch/DEVLa Switch
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Adding Accessory : NicoHarmonyHub-DEVLa TV
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Discovered Activity : DEVLa TV
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Creating Switch Service DEVLa TV/DEVLa TV
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Adding Accessory : NicoHarmonyHub-DEVUn Film
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Discovered Activity : DEVUn Film
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Creating Switch Service DEVUn Film/DEVUn Film
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Adding Accessory : NicoHarmonyHub-DEVLa musique
[15/08/2019 à 18:02:14] [NicoHarmonyHub] (NicoHarmonyHub)INFO - Discovered Activity : DEVLa musique
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Creating Switch Service DEVLa musique/DEVLa musique
[15/08/2019 à 18:02:14] [NicoHarmonyHub] WARNING - setupFoundAccessories - TV accessory added in your bridge, if another plugin is exposing a TV accessory this one might not be visible in your remote widget
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Loading devices...
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Discovered Device : DEVCaisson
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Activating  PowerToggle for DEVCaisson
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Adding Accessory : NicoHarmonyHub-DEVCaisson-PowerToggle
[15/08/2019 à 18:02:14] [NicoHarmonyHub] INFO - Creating Switch Service DEVCaisson/DEVCaisson-PowerToggle

I have to try after homebridge is working again .... Thank you for the quick support....

clean your persist folder it should be ok :)

Service won't start anymore .... Don't know why

Aug 15 18:33:27 phoenixpi homebridge[14531]:     at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:90:36)
Aug 15 18:33:27 phoenixpi homebridge[14531]:     at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:59:10)
Aug 15 18:33:27 phoenixpi homebridge[14531]:     at Object. (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
Aug 15 18:33:27 phoenixpi homebridge[14531]:     at Module._compile (internal/modules/cjs/loader.js:816:30)
Aug 15 18:33:27 phoenixpi homebridge[14531]:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:827:10)
Aug 15 18:33:27 phoenixpi homebridge[14531]:     at Module.load (internal/modules/cjs/loader.js:685:32)
Aug 15 18:33:27 phoenixpi homebridge[14531]:     at Function.Module._load (internal/modules/cjs/loader.js:620:12)
Aug 15 18:33:27 phoenixpi homebridge[14531]:     at Function.Module.runMain (internal/modules/cjs/loader.js:877:12)
Aug 15 18:33:27 phoenixpi homebridge[14531]:     at internal/main/run_main_module.js:21:11
Strange ... do not know what now happened ... only restarted the bridge ....
This is not from the plugin, right?

don't see any log plugin related, you can still try to remove the plugin conf and the plugin from the pluigin directory to check. Do you have the beginning of the error ?

no... how can I see all the errors?
I will also tryx to reinstall/remove plugins....

@Phoenix-DH any luck in restoring your homebridge ?

Still on my way ... have to create all new .. rooms ... will try again the next days

ok, let me know if there is any problem . D'ont really see why the plugin would have corrupt your homebridge but sorry if it is the case.

Can‘t imagine ... everything working again ...

Glad to here !
Sent with GitHawk


Activity worker and godeps and  testing helpers

/cc @fabiokung @ryanbrainard @dgouldin @dpiddy
this is some initial work on an ActivityWorker which brings similar things to the Activity side of things that FSM brings to the decision side of things.
One main motivation here is to be easily able to provide mock activity workers that  just return data based on their inputs without doing any work, so we can exercise FSMs more in actual against swf testing. These mocks can be written to fail most of the time so we can exercise failure scenarios well in FSMs.
Will point out some relevant areas in comments below, this is still very much WIP.
TODO:  abstract out long-lived/heartbeating activity workers and fit them in here, or in a seperate LongLivedActivityWorker abstraction.

Good work! The overall strategy lgtm.
I'm not particularly happy with all the reflection in activity.NewActivityHandler, but I can't suggest anything better though. It's just Go's type system not being good enough.

Gonna bring this in now, open new issues for long-lived activity worker abstraction, and documentation on testing code


Nginx subfolder install and proxy configuration

Hello, first of all i would like thank you for share that work! I really appreciate.
Im running on VM (micro) at GCP with Nginx. At first time running on root from domain works great. But i would like run peer-calls inside a subdirectory to have my website (blog) at front.

I tryed to build with:
npm run build -c /var/www/mywebsite.com/peer-calls/server/config.yml --prod
config.yml file:
base_url: '/try'
bind_host: 'localhost'
bind_port: 3000
ice_servers:

urls:

'stun:stun.l.google.com:19302'

urls:

'stun:global.stun.twilio.com:3478?transport=udp'
store:
type: memory
network:
type: mesh
prometheus:
access_token: "mytoken"

Error:

Apparently the application searches for files in the wrong location, disregarding the current root url.
Where can I configure to make a new build considering the work directory?
Thank you

Hi, the npm run build command only builds the JavaScript and CSS resources and is not supposed to accept any config files. The -c /path/to/config.yaml CLI argument should be provided to the binary that you can either build manually or download from the releases section.
You can also pass the argument to go run locally, using either go run main.go -c <config> or npm run start:server -- -c <config>. Just make sure to execute npm run build before so that the JavaScript and CSS resources are built.


Subfolders are breaking the build process

I am a big fan of xdpm so far. But I am running into a problem when I have subfolders in my project structure (e.g. additional libraries, config files etc.)
e.g. "./data/samples/sample1.json"
I think xdpm is not creating all folders recursively. Right now I cannot use xdpm.
Or am I just missing something?
Here is the error log:
INFO: Boilerplate changed; reinstalling...
fs.js:902
  return binding.mkdir(pathModule.toNamespacedPath(path),
                 ^

Error: ENOENT: no such file or directory, mkdir '/Users/simonwidjaja/Library/Application Support/Adobe/Adobe XD CC/develop/com.trendspurt.xd.boilerplate/src/data/wireframes/mobile/wires'
    at Object.fs.mkdirSync (fs.js:902:18)
    at files.forEach.file (/Data/Temp/MAX2018/XD Lab/Resources/xdpm/commands/install.js:90:20)
    at Array.forEach (<anonymous>)
    at args.map.pluginToInstall (/Data/Temp/MAX2018/XD Lab/Resources/xdpm/commands/install.js:85:15)
    at Array.map (<anonymous>)
    at install (/Data/Temp/MAX2018/XD Lab/Resources/xdpm/commands/install.js:39:26)
    at FSWatcher.watcher.on.debounce (/Data/Temp/MAX2018/XD Lab/Resources/xdpm/commands/watch.js:76:13)
    at Timeout.later [as _onTimeout] (/Data/Temp/MAX2018/XD Lab/Resources/xdpm/node_modules/debounce/index.js:27:23)
    at ontimeout (timers.js:466:11)
    at tryOnTimeout (timers.js:304:5)
Simons-MBP-2:dist simonwidjaja$ xdpm watch
path.js:1087
          cwd = process.cwd();
                        ^

Error: ENOENT: no such file or directory, uv_cwd
    at Object.resolve (path.js:1087:25)
    at Function.Module._resolveLookupPaths (internal/modules/cjs/loader.js:435:17)
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:542:20)
    at Function.Module._load (internal/modules/cjs/loader.js:475:25)
    at Module.require (internal/modules/cjs/loader.js:598:17)
    at require (internal/modules/cjs/helpers.js:11:18)
    at Object.<anonymous> (/Data/Temp/MAX2018/XD Lab/Resources/xdpm/index.js:19:17)
    at Module._compile (internal/modules/cjs/loader.js:654:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
    at Module.load (internal/modules/cjs/loader.js:566:32)

@simonwidjaja
thank you for reporting an issue!
is there any subfolder which does not contain any files?
e.g.,
data contains subfolders (type1, type2 and type3) but does not have any files.

I don't think it's a problem with empty folders. I don't have any in my
project. It's the nested folder structure. I was able to narrow it down:

xdpm is not able to recreate the nested folder structure before copying
all the files
if I initially copy the entire folder structure to the plugins folder
manually xdpm works. That means if the folders already exist then "xdpm
watch" works perfectly

(working on macOS 10.12.6)
On Tue, Oct 23, 2018 at 9:06 AM Yoshiki Takeoka<EMAIL_ADDRESS>wrote:

@simonwidjaja https://github.com/simonwidjaja
thank you for reporting an issue!
is there any subfolder which does not contain any files?
e.g.,
data contains subfolders (type1, type2 and type3) but does not have any
files.
[image: image]
https://user-images.githubusercontent.com/685218/47373578-19b83880-d727-11e8-9a45-3a25bacc799d.png
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/AdobeXD/xdpm/issues/1#issuecomment-432308463, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABrQ1ljaDKbgDn1HdK9XEJNBQssxy4Zmks5unz6KgaJpZM4Xyhd4
.

--
--
Simon Widjaja
CEO
Web professional driven by pure passion
Adobe Certified Expert (ACE)
Adobe Certified Instructor (ACI)
Adobe Community Professional (ACP)
Author and trainer for interactive media
Frequent speaker at int. conferences (Adobe MAX, FITC, Reasons…)

@simonwidjaja Since @yoshikinoko created this quick fix, does it work for you now (then, we could close this issue 😉)?

I finally found the time to test again. It seems to work now!
Thanks and keep up the amazing work!


fix: allow automatic content API package installs

Question for @grayside or @engelke:

Is this better built into a Docker image, or installed via setup.sh?

(Docker images are better performance-wise, but will have outdated dependencies until they're rebuilt [either nightly or post-main-merge]. Note that Docker doesn't like files outside its parent directory [not even symlinks!], so we'll have to somehow fetch the right contents to use.)

The seeding script fails if its dependencies aren't installed; I'm trying to fix that.

Closing in favor of #507.
(@grayside and I agreed that it's better to skip the seeding process in CI entirely rather than install the required dependencies.)


Trying to check a lockfile fails with console error

Tried on Chrome, Safari & Firefox. Fails with error:
rollbar.umd.min.js:2618 Error: Form responses must redirect to another location

Sorry nevermind, I was using the Gemfile itself.


Add images in the wiki (config/shop)

1 image missing > buyStoreSoulstone

To upload the pictures, I go in edit the readme.md, put the picture, then paste the link in the wiki... since it's still not implemented correctly...

All good, I did add the last missing one ;)


Event-time Aggregation and Watermarking in Apache Spark’s Structured Streaming / Databricks

URL:
https://databricks.com/blog/2017/05/08/event-time-aggregation-watermarking-apache-sparks-structured-streaming.html
Review (1-2 sentences):
If you use Spark Streaming and you are interested in how to handle late-arriving data this article gives you a practical approach to which windows strategy use and how watermark can help you.

Published in Digest #5.


PWM - Driver implementation

There are no interrupts for zephyr PWM when it acts as output pin, but in Secure-IOT the PWM pins are only output pins.


get MouseState from EventPump?

Is there any reason the MouseState and associated functions aren't available through EventPump?
I'm using the typical solution of struct containing an event pump, but doing things slightly different by using egself.pump.keyboard_state().is_scancode_pressed(scancode). But this has thrown a spanner in the works as I have to pass in the required (MouseState, i32, i32) returned from mouse_state() for the rest of my code to work the way I was hoping.
*fyi, I'm doing it this way as I don't care if a key is up or down, only if it was pressed.

Have made required source changes and opened pull request https://github.com/AngryLawyer/rust-sdl2/pull/559


Update README.md

I want your contribute
https://github.com/tosinori-nt/AttractingContributors-ProgrammingLanguage/blob/main/README.md

Thx!
I also added your list.


Info Window for Managing Gold - Help Screen wordings are incorrect

the info window for managing gold - the help section found an incorrect spelling path shown here: https://i.imgur.com/lAt4G4A.jpeg - the word in help section is spelled automatcly <- when the correct spelling should be -> automatically
look very closely at the spelling and u will notice a mistake

As I told you, I've already fixed this. I'll make a PR for it soon.

ill close this since it is Merged from PR #494


Update watchhtlcstream.py

update the text seen when there is a link_fail_event to show when your balance is wrong. you were calling the same outcome == in 2 different places in cascaded if

I actually removed this logic altogether in a recent commit. Unless I'm mistaken, link_fail_event only triggers on the outbound channel, so the following balance check was redundant.
I'm also not sure that eventinfo has a detail attribute, does the given code work as is?


Link missing

Type of issue
Typo
Description
Documentation for filter property says "Please reference our Query API REST documentation for how to properly format the filter." But that sentence should link to that documentation. Now finding the documentation requires extra searching.
Page URL
https://learn.microsoft.com/en-us/dotnet/api/azure.resourcemanager.costmanagement.models.querydataset?view=azure-dotnet
Content source URL
https://github.com/Azure/azure-docs-sdk-dotnet/blob/master/xml/Azure.ResourceManager.CostManagement.Models/QueryDataset.xml
Document Version Independent Id
3a594e35-3369-947e-36af-79b38bbee0d9
Article author
@azure-sdk
Metadata

ID: fbdf26e1-f935-8bcf-17fa-ebd3d470ed00
Service: azure

Thank you for your feedback.  Tagging and routing to the team member best able to assist.

Thank you for your feedback @hugovdb1965 , @HarveyLink please look into this issue.

@hugovdb1965
Thank you for reaching out to us.
You can find the document content you requested at the following link: https://learn.microsoft.com/en-us/rest/api/cost-management/query/usage?view=rest-cost-management-2024-08-01&tabs=HTTP#queryfilter
Regarding your request to add hyperlinks within the document, we currently do not have this feature available, and there are no immediate plans to implement it. However, should we incorporate this functionality in the future, I will inform you promptly.
Thank you for your understanding and patience.


Create Find The Running Median.c

Related Issue
Solved issue number: #311
Describe the changes you've made
Added a file in C
Describe if there is any unusual behaviour of your code(Write NA if there isn't)
NA
Language used for coding
C
Checklist:

[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have documented the code.
[x] New and existing unit tests pass locally with my changes.

Add comments to your code.

Add comments to your code.

Ho gaya


[INLONG-2161][Feature][Manager] Manager support getSortClusterConfig interface.

Title Name: [INLONG-2161][component] Manager support getSortClusterConfig interface.
Fixes #2161
Motivation
Interface that sort acquire configs of current cluster.  Which consists of a series tasks that inlcudes the topic of caches where fetch data, and the address of sinks data sent to.
Modifications
Add controller of getSortClusterConfig, the table has not defined.
Verifying this change

[ ] Make sure that the change passes the CI checks.

(Please pick either of the following options)
This change is a trivial rework / code cleanup without any test coverage.
(or)
This change 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 deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Documentation

Does this pull request introduce a new feature? (yes / no)
If yes, how is the feature documented? (not applicable / docs / JavaDocs / not documented)
If a feature is not applicable for documentation, explain why?
If a feature is not documented yet in this PR, please create a followup issue for adding the documentation

Codecov Report

Merging #2278 (69c07e0) into master (013b31e) will decrease coverage by 0.04%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #2278      +/-   ##
============================================
- Coverage     12.59%   12.54%   -0.05%
- Complexity     1208     1217       +9
============================================
  Files           417      420       +3
  Lines         35735    36235     +500
  Branches       5590     5674      +84
============================================
+ Hits           4500     4545      +45
- Misses        30433    30881     +448
- Partials        802      809       +7

Impacted Files
Coverage Δ

...q/server/broker/msgstore/disk/FileSegmentList.java
7.86% <0.00%> (-2.75%)
:arrow_down:

...ubemq/server/broker/msgstore/disk/FileSegment.java
20.84% <0.00%> (-2.17%)
:arrow_down:

...emq/server/common/paramcheck/PBParameterUtils.java
24.20% <0.00%> (-1.55%)
:arrow_down:

.../inlong/tubemq/corebase/policies/FlowCtrlItem.java
38.88% <0.00%> (-1.12%)
:arrow_down:

...tubemq/server/broker/msgstore/mem/MsgMemStore.java
35.22% <0.00%> (-0.68%)
:arrow_down:

.../tubemq/corebase/policies/FlowCtrlRuleHandler.java
34.07% <0.00%> (-0.45%)
:arrow_down:

...apache/inlong/tubemq/server/broker/TubeBroker.java
0.00% <0.00%> (ø)

...ache/inlong/tubemq/server/broker/BrokerConfig.java
0.00% <0.00%> (ø)

...long/tubemq/server/broker/BrokerServiceServer.java
0.00% <0.00%> (ø)

...ng/tubemq/server/broker/msgstore/MessageStore.java
0.00% <0.00%> (ø)

... and 16 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 013b31e...69c07e0. Read the comment docs.


Add Datalogue to adopters

We love Circe here at Datalogue. Thanks Travis!

Codecov Report

Merging #566 into master will increase coverage by 0.1%.

@@            Coverage Diff            @@
##           master     #566     +/-   ##
=========================================
+ Coverage   82.57%   82.67%   +0.1%
=========================================
  Files          72       72
  Lines        1997     1997
  Branches      147      147
=========================================
+ Hits         1649     1651      +2
+ Misses        348      346      -2

Impacted Files
Coverage Δ

...rc/main/scala/io/circe/numbers/BiggerDecimal.scala
90.74% <ø> (-0.62%)
:x:

...re/shared/src/main/scala/io/circe/KeyDecoder.scala
45.94% <ø> (+2.7%)
:white_check_mark:

...rc/main/scala/io/circe/shapes/SizedInstances.scala
92.85% <ø> (+14.28%)
:white_check_mark:

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 bc54533...3747e0a. Read the comment docs.

Thanks, Bryan! I've cherry-picked this in #567 since there's a conflict with #565—will close when that's green + merged.

Okay, this commit's merged in #567—thanks again!

Thank you!


Pinned Messages

Is your feature request related to a problem? Please describe.
Trying to put a poll link in chat e.g. https://www.strawpoll.me/42962832 and for it not to be flushed away by chat in large rooms.
Describe the solution you'd like
A way to select a pinned message.
Describe alternatives you've considered
Putting the link the in description. Though it is not clear.
Additional context
Low priority, but a fairly easy feature to add, just add the message id if they are eventually logged and get the content, or copy the text and set that as the pinned message in the backend etc.

It would be cool if DogeHouse integrated with the strawpoll API to show the results live, instead of someone either reading the results out or putting them in chat. Could be animated and updated in realtime (would need to use polling as their api doesn't support subscriptions).
https://github.com/strawpoll/strawpoll/wiki/API

Although at that point, you might as well create a fully integrated polling system. Making a new issue.

#2160 for reference

room description sovles it, we already have it, just on the kibbeh version.


Error with Blob SAS Token

This tutorial does not work - I have associated a storage account, and subsequently a blob continer, to my IoT Hub. I have passed a viable connection string into the code, and yet it is telling me that it is unable to generate a Blob SAS access token?

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

ID: e6526ec7-ffd0-78da-b1f8-e5577a8c0c66
Version Independent ID: b0bd1eff-f666-822b-1b01-5fb42f7dfbb6
Content: Upload files from devices to Azure IoT Hub with Node
Content Source: articles/iot-hub/iot-hub-node-node-file-upload.md
Service: iot-hub
GitHub Login: @dominicbetts
Microsoft Alias: dobett

Customer opened a GitHub Issue against a second document that is also referenced in the tutorial. That is GitHub Issue #13956.

@manchejs0 Thanks for the feedback! I have assigned the issue to the content author to evaluate and update as appropriate.

@dominicbetts The Python version of this same tutorial is also not working correctly. An issue was filed through GitHub Issue #13928. There could be an issue with the azure-iothub-device-client and not necessarily the tutorial itself but, it appears the Node.js version of the tutorial uses different client libraries.

@manchejs0 - can you confirm that this is the SimulatedDevice.js app that's giving you an error message? If so, can you share the output from the app. For reference, when I run the two apps I see:
$ node FileNotification.js
Service client connected
File upload from device:
{"deviceId":"MyNodeDevice","blobUri":"https://mystorageaccount.blob.core.windows.net/uploadcontainer/MyNodeDevice/myimage.png","blobName":"MyNodeDevice/myimage.png","lastUpdatedTime":"2018-08-28T15:50:48+00:00","blobSizeInBytes":13488,"enqueuedTimeUtc":"2018-08-28T15:50:51.298345Z"}

And:
$ node SimulatedDevice.js
Client connected
File uploaded

Thank you,
Dominic

Hi @manchejs0 - did you succeed in getting the tutorial to work? Thanks.

Hi @manchejs0 - I'm going to request that this issue is closed. Please feel free to reopen it if you have any further questions about the File Upload tutorial. Thanks, Dominic
#please-close

@dominicbetts I'm getting the same error reported above. I'm seeing this on running the code example:
Error uploading file: BlobSasError: Could not obtain blob shared access signature.

Actually, this was user error on my part. This is now working for me.
The issue was that I had not completed the process in the azure portal where you setup the storage container for the IoT Hub file upload. So basically I had no storage container associated with my hub. But I do think a better error message would have helped. I suspect that is the origin of this issue for the original reporter as noted here

@manchejs0 We will now close this issue. If there are further questions regarding this matter, please reply to @femsulu and we will gladly continue the discussion.

@dominicbetts @femsulu  hey, sorry for the delayed response.  I would like to get back to this.  @iammatthe2 suggested that I did not have a storage container associated with my hub, but as far as I am aware I had a storage account and a blob container associated prior to attempting the tutorial.

actually, I think it had something to do with the node installation.   Disregard my earlier post, we can keep this closed.


TypeError: vm.$el.querySelector is not a function

><EMAIL_ADDRESS>unit C:\Users\flny\Desktop\新建文件夹\xxxxxx
> cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run

20 09 2017 09:51:39.954:INFO [karma]: Karma v1.7.1 server started at http://<IP_ADDRESS>:9876/
20 09 2017 09:51:39.963:INFO [launcher]: Launching browser Chrome with unlimited concurrenc

20 09 2017 09:51:39.987:INFO [launcher]: Starting browser Chrome
20 09 2017 09:51:43.090:INFO [Chrome 60.0.3112 (Windows 7 0.0.0)]: Connected on socket EWR3
4CGWgI1y0CzxAAAA with id 59744408
INFO LOG: 'Download the Vue Devtools extension for a better development experience:
https://github.com/vuejs/vue-devtools'

  Hello.vue
    √ should render correct contents
ERROR LOG: '[Vue warn]: Error in getter for watcher "loginNum": "TypeError: Cannot read pro
perty 'state' of undefined"

(found in <Root>)'
ERROR LOG: TypeError{}
ERROR LOG: '[Vue warn]: Error in render function: "TypeError: Cannot read property 'state'
of undefined"

(found in <Root>)'
ERROR LOG: TypeError{}
ERROR LOG: '[Vue warn]: Error in mounted hook: "TypeError: Cannot read property 'state' of
undefined"

(found in <Root>)'
ERROR LOG: TypeError{}

  Login.vue
    × 登陆
        TypeError: vm.$el.querySelector is not a function
            at Context.<anonymous> (webpack:///test/unit/specs/Login.spec.js:15:18 <- index
.js:44684:19)

Chrome 60.0.3112 (Windows 7 0.0.0): Executed 2 of 2 (1 FAILED) (0.893 secs / 0.053 secs)
TOTAL: 1 FAILED, 1 SUCCESS

1) 登陆
     Login.vue
     TypeError: vm.$el.querySelector is not a function
    at Context.<anonymous> (webpack:///test/unit/specs/Login.spec.js:15:18 <- index.js:4468
4:19)

=============================== Coverage summary ===============================
Statements   : 1.93% ( 18/934 )
Branches     : 0% ( 0/222 )
Functions    : 0.58% ( 1/173 )
Lines        : 1.93% ( 18/934 )
================================================================================

npm ERR! Windows_NT 6.1.7600
npm ERR! argv "E:\\nodejs\\node.exe" "E:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run"
 "unit"
npm ERR! node v6.11.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>unit: `cross-env BABEL_ENV=test karma start test/unit/karma.conf.js -
-single-run`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>unit script 'cross-env BABEL_ENV=test karma start test/
unit/karma.conf.js --single-run'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the xxxxxx package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     cross-env BABEL_ENV=test karma start test/unit/karma.conf.js --single-run
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs xxxxxx
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls xxxxxx
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\flny\Desktop\新建文件夹\xxxxxx\npm-debug.log

npm ERR! Windows_NT 6.1.7600
npm ERR! argv "E:\\nodejs\\node.exe" "E:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run"
 "test"
npm ERR! node v6.11.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR<EMAIL_ADDRESS>test: `npm run unit`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>test script 'npm run unit'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the xxxxxx package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run unit
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs xxxxxx
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls xxxxxx
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\flny\Desktop\新建文件夹\xxxxxx\npm-debug.log

karma.config
config.set({
    // to run in additional browsers:
    // 1. install corresponding karma launcher
    //    http://karma-runner.github.io/0.13/config/browsers.html
    // 2. add it to the `browsers` array below.
    browsers: ['Chrome'],
    frameworks: ['mocha', 'sinon-chai', 'phantomjs-shim'],
    reporters: ['spec', 'coverage'],
    files: ['./index.js'],
    preprocessors: {
      './index.js': ['webpack', 'sourcemap']
    },
    webpack: webpackConfig,
    webpackMiddleware: {
      noInfo: true
    },
    coverageReporter: {
      dir: './coverage',
      reporters: [
        { type: 'lcov', subdir: '.' },
        { type: 'text-summary' }
      ]
    }

A similar issue was opened on the Webpack Vue template repository here, and appears to have been solved. Please take a look at the solution there.


feature/datasource_at merge to master

What this PR does:
Which issue(s) this PR fixes:

Fixes #205
Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Codecov Report

Merging #213 (a64b5da) into master (02df300) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #213   +/-   ##
=======================================
  Coverage   63.33%   63.33%
=======================================
  Files          49       49
  Lines        2070     2070
=======================================
  Hits         1311     1311
  Misses        695      695
  Partials       64       64

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

pls fix ci


gcc is missing from build-plugin

Make sure you have done the following

[X] I have updated to the latest version of blink.cmp
[X] I have read the README

Bug Description
build-plugin will not run w/o gcc on system, this should be added to the flake
Relevant configuration
No response
neovim version
n/a
blink.cmp version: branch, tag, or commit
latest commit

I dont want to make a fork cause then I will have to update it sorry I just added gcc to the packages in devShells.default

What's your system triple?

let me clarify, I used the devshell just to add the gcc, after adding gcc to my system config it is fixed, but having compilers in system config is (I hear) not the best practice. Whats a system triple?

Makes sense, thanks. A system triple would be i.e. aarch64-linux-gnu

It sounds like you're looking to avoid forking the repository to manage updates. Instead, you’ve added gcc to the devShells.default packages.
Regarding your question, could you clarify your system triple? Just a reminder that the build-plugin doesn’t utilize the dev shell.
Let me know if you need further assistance!


Introduce sentry config

I need to setup new env variables in order to configure sentry integration.

I'm allowing myself to merge quickly because it's easy to revert and I would like to make some tests today (and I don't expect people to review on Sunday of course !)


get quotes library json error

when i try following I get below response for most of the quotes
quotes, err := s.kiteClient.GetQuote(symbols...)
response:
Error parsing JSON response: invalid character '<' looking for beginning of value
symbols are in format 'NSE:ADANIPOWER' so on...

Is this issue reproducible always? I tried running a test script and I was able to retrieve data.

Is this issue reproducible always? I tried running a test script and I was able to retrieve data.

I queried 3times for 1k, 1k and 500 symbols of NSE and for all 3 I got above error for many stocks while others were parsed successfully

It seems that querying about 500 stocks instead of 1000 at a time doesn't give the above trace. closing it.


Writing Hexadecimal CSV File

Hello - I have a CSV file that when opened in a text editor has been encoded in Hexadecimal format.
When I open this up using your framework and re-save it. It's saved as a comma delimited text, when I open it up I'm asked what the delimiter is. Is there anyway to re-save the file in it's original format so that any styling/information is preserved?
I think the file has been saved as an Excel CSV file which has some more bells and whistles added. Should allow you to re-produce?

When you save a CSV in Excel - and you want to keep their formatting / delimiter recognised. You save it in biff8 format with a `CSV extension.
That achieves what I was trying to do. Will close


adding unit tests for all top level classes, updating gitingore, setting up docs folder for Sphinx

I've updated the git ignore and added a config file for  Sphinx documentation generator.
(Also one file was updated with minor style changes)

I've also added a unittest on the component class and some minor changes in the component class . Plus some changes in the travisCI config.

I've added unit tests for all the top level classes*, all of the are passing at the moment:
https://travis-ci.org/zoltuz/biocrnpyler/builds
An example run can be view here:
https://travis-ci.org/zoltuz/biocrnpyler/jobs/568308266
*except: ComplexSpecies, we need to talk about this class at some point.

You should also add the webhooks required so that the unit tests get run across all new PRs.

We can merge this pull request and I can fix the two test errors with SBML in my pull request.
Also, just as a note, on running Python Coverage  package, it is reporting that our current unit test framework covers around 50% of the code - a good start in my opinion, and we can work on improving it later.

@ayush9pandey thanks for checking the PR! The two SBML errors are a bit strange, I guess something has change in the underlying code.
The third error is python 3.6 specific, somehow the way I test for file content is not working in python 3.6, but works well in python 3.7... (I will look into it later)

Yeah, I will fix the two SBML errors with my PR.


Only bridge smol Strings to tagged NSStrings if we're pretty sure they'll fit, otherwise make a regular String

@swift-ci please smoke benchmark

Performance: -O

TEST
OLD
NEW
DELTA
RATIO

Regression

ObjectiveCBridgeToNSString
422
618
+46.4%
0.68x

ObjectiveCBridgeToNSArray
14000
15950
+13.9%
0.88x (?)

SevenBoom
857
973
+13.5%
0.88x (?)

ObjectiveCBridgeToNSSet
19150
21600
+12.8%
0.89x (?)

PlistPerfEncode
527
582
+10.4%
0.91x (?)

Improvement

ObjectiveCBridgeStubToNSString
2480
1810
-27.0%
1.37x (?)

ObjectiveCBridgeStubToArrayOfNSString2
4000
3320
-17.0%
1.20x (?)

Performance: -Osize

TEST
OLD
NEW
DELTA
RATIO

Regression

ObjectiveCBridgeToNSString
425
627
+47.5%
0.68x

ObjectiveCBridgeToNSSet
19050
21450
+12.6%
0.89x (?)

PlistPerfEncode
523
588
+12.4%
0.89x (?)

ObjectiveCBridgeToNSArray
14100
15800
+12.1%
0.89x (?)

SevenBoom
903
1005
+11.3%
0.90x (?)

Improvement

ObjectiveCBridgeStubToNSString
2520
1840
-27.0%
1.37x

ObjectiveCBridgeStubToArrayOfNSString2
3980
3340
-16.1%
1.19x (?)

Performance: -Onone

TEST
OLD
NEW
DELTA
RATIO

Regression

ObjectiveCBridgeToNSString
515
713
+38.4%
0.72x

ObjectiveCBridgeToNSSet
19700
22150
+12.4%
0.89x (?)

SevenBoom
1021
1146
+12.2%
0.89x (?)

PlistPerfEncode
549
602
+9.7%
0.91x (?)

JSONPerfEncode
641
693
+8.1%
0.92x (?)

Improvement

ObjectiveCBridgeStubToNSString
2590
1910
-26.3%
1.36x (?)

ObjectiveCBridgeStubToArrayOfNSString2
4080
3360
-17.6%
1.21x (?)

StrComplexWalk
7290
6620
-9.2%
1.10x (?)

How to read the data
The tables contain differences in performance which are larger than 8% and
differences in code size which are larger than 1%.
If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.
Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac Pro
  Model Identifier: MacPro6,1
  Processor Name: 12-Core Intel Xeon E5
  Processor Speed: 2.7 GHz
  Number of Processors: 1
  Total Number of Cores: 12
  L2 Cache (per Core): 256 KB
  L3 Cache: 30 MB
  Memory: 64 GB

Hmph. PlistPerfEncode regressing is interesting… I should dig into that.

Also I should see how things change once I land eager smol bridging

Please test with following pull request:
https://github.com/apple/swift/pull/23409
@swift-ci please smoke benchmark

Sigh… looks like it didn't pick up the base PR. That's ok, I have more changes.

Performance: -O

TEST
OLD
NEW
DELTA
RATIO

Regression

ObjectiveCBridgeToNSString
371
522
+40.7%
0.71x

SevenBoom
749
851
+13.6%
0.88x (?)

NSError
148
168
+13.5%
0.88x (?)

PlistPerfEncode
476
513
+7.8%
0.93x (?)

Improvement

ObjectiveCBridgeStubToNSString
2220
1580
-28.8%
1.41x

ObjectiveCBridgeStubToArrayOfNSString2
3620
2920
-19.3%
1.24x (?)

Performance: -Osize

TEST
OLD
NEW
DELTA
RATIO

Regression

ObjectiveCBridgeToNSString
374
524
+40.1%
0.71x (?)

ObjectiveCBridgeToNSSet
16050
18100
+12.8%
0.89x (?)

SevenBoom
801
876
+9.4%
0.91x (?)

PlistPerfEncode
476
519
+9.0%
0.92x (?)

DictionaryBridgeToObjC_Access
828
892
+7.7%
0.93x (?)

Improvement

ObjectiveCBridgeStubToNSString
2220
1580
-28.8%
1.41x

ObjectiveCBridgeStubToArrayOfNSString2
3620
2960
-18.2%
1.22x (?)

Performance: -Onone

TEST
OLD
NEW
DELTA
RATIO

Regression

ObjectiveCBridgeToNSString
451
603
+33.7%
0.75x

ObjectiveCBridgeToNSSet
16650
18800
+12.9%
0.89x (?)

SevenBoom
916
1020
+11.4%
0.90x (?)

PlistPerfEncode
485
536
+10.5%
0.90x (?)

AngryPhonebook
5054
5544
+9.7%
0.91x (?)

JSONPerfEncode
565
616
+9.0%
0.92x (?)

Improvement

DataAppendDataLargeToLarge
45800
33000
-27.9%
1.39x (?)

ObjectiveCBridgeStubToNSString
2290
1660
-27.5%
1.38x (?)

ObjectiveCBridgeStubToArrayOfNSString2
3480
2940
-15.5%
1.18x (?)

ArrayOfPOD
764
692
-9.4%
1.10x (?)

How to read the data
The tables contain differences in performance which are larger than 8% and
differences in code size which are larger than 1%.
If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.
Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac Pro
  Model Identifier: MacPro6,1
  Processor Name: 8-Core Intel Xeon E5
  Processor Speed: 3 GHz
  Number of Processors: 1
  Total Number of Cores: 8
  L2 Cache (per Core): 256 KB
  L3 Cache: 25 MB
  Memory: 64 GB

Can one of the admins verify this patch?

Please update the base branch to main by Oct 5th otherwise the pull request will be closed automatically.

How to change the base branch: (Link)
More detail about the branch update: (Link)


StreamProvider.last doesn't provide the last value of the stream

Describe the bug
StreamProvider.last doesn't provide the last value of the stream as expected.
Instead it returns each value of the stream in order of how it is added.
To Reproduce
test('test', () {
      final StreamController<int> _streamController = StreamController();
      final ProviderContainer providerContainer = ProviderContainer(
        overrides: [
          countStreamProvider.overrideWithProvider(StreamProvider<int>((ref) {
            return _streamController.stream;
          }, name: 'testProvider')),
        ],
      );

      _streamController.add(1);
      _streamController.add(2);
      _streamController.add(3);

      expect(providerContainer.read(countStreamProvider.last), completion(3));
    });

Expected behavior
I expected that StreamProvider.last returns 3, instead it completed to 1.
If I add await providerContainer.read(countStreamProvider.last); before the expect I get back 2.
If I add one more line like above I get the expected result 3.
For now I fixed using:
expect(providerContainer.read(countStreamProvider.stream).skip(2), emits(3));

The issue appears to be your test instead.
By default, streams queue their events. So even if you called add 3 times at once, the value aren't received at the same time.
A proof would be:
import 'dart:async';

void main()async {
  final StreamController<int> _streamController = StreamController();

  _streamController.add(1);
  _streamController.add(2);
  _streamController.add(3);

  _streamController.stream.listen((value) {
    print('received $value');
  });

  print('a');
  await Future.value();
    print('b');
  await Future.value();
    print('c');
  await Future.value();
}

This prints:
a
received 1
b
received 2
c
received 3

You may want to use a StreamController.broadcast instead

Sorry I didn't think the problem was the behavior of the streams in dart.
I'm a little disappointed with the behavior it has, as by testing real code I can't have to "count" how many events to ignore.
I tried the same code I showed you above with the BehaviorSubject of RxDart and it works fine as I expected, but I don't want to use another state manager in addition to Riverpod.
Do you have any suggestions on how to do it in pure Dart (maybe with the help of Riverpod) without adding too much boilerplate?

I'm not quite sure. Maybe you could share why this is an issue for you?

Because the add method of the stream controller is not a future, so I thought that the listeners would be notified synchronously.
But I still don't understand why if I run
_streamController.add(1);
await Future.value();
_streamController.add(2);
await Future.value();
_streamController.add(3);
await Future.value();

has not effect, I still get 1 in the expect, while
await providerContainer.read(countStreamProvider.last);

works fine

This all depends on when you call .last
If you read it before a value is emitted, the future will resolve with the very next value received. So if you do:
final future = read(provider.last);

controller.add(1);
await
controller.add(2);
await

print(await future);

you'll get 1, not 2
That is expected because when the future was created, no value was emitted yet.

Thank you for your help! I really appreciate it. If you want you can close the issue


Feature request for URL bar autocomplete

Can we get this?

If I type "twi" in other browsers, they'll pre-populate the URL input, so I can simply click enter to go to twitter.com. This trips me up regularly in Beaker. That flow is burned into my muscle memory.

@taravancil @pfrazee I'm looking to contribute to Beaker and am wondering if this is a good place to start. Do you have any thoughts on how you'd like to see this implemented? If not, I'll get started on my own. Thank you!

Is there already a Last Recently Used concept in Beaker?

@millette From what I saw Beaker does have autocomplete suggestions, but you have to tab down to them right now.
@taravancil @pfrazee Although I started looking into this, I will be busy with family & work for the rest of the week. So if @SaFrMo wants to take a stab at it that's fine with me 👍.
@SaFrMo From what I observed in Firefox, this feature could be broken down into the following requirements:

Auto-fill the rest of the URL bar when one of the auto-suggestions starts with the currently typed string.
Select the untyped characters of the auto-suggested URL.
Highlight the corresponding auto-suggestion in the list so that when you hit Enter it will launch that suggestion
Ensure that Backspace won't trigger auto-filling the url.

Thanks @webdesserts for the suggestions! Looks good to me - I'll start work on it in the next day or two 👍

FYI that URL bar is pretty complex, so I hope that's not an overly discouraging element to work on. There are a couple of code smells in the chrome UI, and that's one of them (though it's not only incidental complexity at fault).

Snapshot of current work - so far, I've got two changes going:

The selection of the first matching autocomplete is working, and
The new autocompleteSuggestion var keeps track of the characters to add to the end of the current input value - so the er.com/ in this issue's original screenshot.

@SaFrMo cool! looking forward to seeing the final product

Done! Big props to @SaFrMo


Update ts codegen tooling

@pyramation just released cosmwasm-typescript-gen as @cosmwasm/ts-codegen
Let's use that now.
beaker wasm ts-gen xyz leads to:
Need to install the following packages:
  cosmwasm-typescript-gen

blocked by https://github.com/CosmWasm/ts-codegen/issues/52

should be ready!

resolved by #100


Is uint32 overflow in uint32-accepting function arguments by design?

Hey! Me again. Not sure if this one's a bug, or just non-obvious expected / undefined behaviour.
Describe the bug
When registering a Go function that accepts only ValueTypeI32s, I sometimes start getting a value x that overflows an uint32, such that uint32(x) is the correct value. So for example instead of the correct 49998 I'll get<PHONE_NUMBER>.
To Reproduce
Code is here: https://github.com/cube2222/wasmsql/tree/minimal-reproduce
Short description: toy compiler that compiles nodes and expressions to wasm. It appends them to an existing WASM file that was compiled to from Rust. The main.go file in the linked file just ranges from 1 to 50000 and outputs it all to a Go buffer. It does that by first allocating a single page of memory, and then calling a flush function repeatedly, as the buffer gets full.
Steps to run: go run . 2> test.txt
Interesting notes:

There's a debug host function that gets two arguments, prints them both, and returns the second one. It's what's used to demonstrate the problem.
The code reads a file the rustlib/rustlib.wasm file, adds an "execute" function to it along with a few imports, then writes that to test.wasm, and executes it.
There's a test.wat file in the root you can take a look at, relevant function is $execute
main.go:140 you can find the debug function definition
it's emitted in output.go:69; it prints the value of i, the range's output, in a loop.

Expected behavior
In the test.txt file you should get debug incorrect 42 i and debug correct 42 iwhere i ranges from 1 to 49999. What you'll find is debug incorrect having the second argument flipped right away, and the first argument (42) also flipping at some point, fairly randomly.
Using the interpreter instead of the compiler works correctly.
Environment (please complete the relevant information):

Go version: go1.19
wazero Version: v1.0.0-rc.1
Host architecture: arm64 M2 MacBook
Runtime mode: works correctly on interpreter, incorrectly on compiler

Additional context
As mentioned, I'm not actually sure if this is a bug or non-obvious "expected behaviour". Just casting all the function arguments from uint64 to uint32 works. It's still weird I'm getting values bigger than uint32 if the function is defined as accepting i32s.

yes, this is by design the upper 32bits are arbitrary and you are recommended to always cast it to 32-bit variant. See https://github.com/tetratelabs/wazero/blob/main/api/wasm.go#L319-L320

Alright, thanks for the quick response!


Reusing the same figure mutliple times with the same figure number

I like to redisplay relevant content (mainly equations and figures) whenever I bring it up again and the previous time it appeared isn't on that page. This seems especially attractive for tufte-style templates with the big margin because the margin is there; might as well use it.
This is relatively easy to do with equations. This Stackoverflow answer gives a way to do this with regular figures, but I couldn't figure out how to get it working with marginfigures. Any chance you could look into this or guide me a bit on how I might do this?

Sorry for the late reply. Here's what I came up with, inspired by the answer you linked:
\makeatletter
\NewDocumentEnvironment{sourcemarginfigure}{o}{%
    % Renew the \label command to save the label of the figure
    \let\oldlabel\label%
    \RenewDocumentCommand{\label}{m}{%
        \gdef\sfname{sf:##1}%
        \oldlabel{##1}%
    }%
    \marginskip{\kaomarginskipabove}%
    \begin{lrbox}{\@sidenotes@marginfigurebox}%
        \begin{minipage}{\marginparwidth}%
            \captionsetup{type=figure}%
}{%
        \end{minipage}%
    \end{lrbox}%
    \IfNoValueOrEmptyTF{#1}%
    {\marginnote[0pt]{\usebox{\@sidenotes@marginfigurebox}}}%
    {\marginnote[#1]{\usebox{\@sidenotes@marginfigurebox}}}%
    \marginskip{\kaomarginskipbelow}%
    % Copy the current box holding the minipage into a new box
    \global\expandafter\newsavebox\csname \sfname savebox\endcsname%
    \global\setbox\csname \sfname savebox\endcsname=\copy\@sidenotes@marginfigurebox%
}

\NewDocumentCommand{\reusemarginfigure}{o m}{%
    \renewcommand{\theHfigure}{dupe-fig}% If you're using hyperref
    \renewcommand{\label}[1]{}% Make \label inactive
    \IfNoValueOrEmptyTF{#1}%
    {\marginnote[0pt]{\usebox{\csname sf:#2savebox\endcsname}}}%
    {\marginnote[#1]{\usebox{\csname sf:#2savebox\endcsname}}}%
}

\makeatother

Add the above to the preamble of the main.tex, and use it as described in the stackoverflow answer, except that the commands are now sourcemarginfigure and \reusemarginfigure. the sourcemarginfigure environment is exactly equal to the marginfigure environment from the point of view of the user. The \reusemarginfigure command takes one optional argument, the vertical offset, and one mandatory argument, the label of the source figure.
Tip: if you use \labfig instead of \label, when you call \reusemarginfigure pass it "fig:label" as a label, instead of the raw label. E.g. if you have
\begin{sourcemarginfigure}
\includegraphics{...}
\labfig{myfigure}
\end{sourcemarginfigure}

then call
\reusemarginfigure{fig:myfigure}


improved docs

@aaditya0909 Please do not create so many spam PRs for Hacktoberfest, it's against the rules and values, and not fair on maintainers.
https://hacktoberfest.digitalocean.com/details#spam
@jab: Please apply an invalid label to this PR (and any others like it) so it doesn't count to Hacktoberfest.

Ah, didn't realize it was already that time of year again. :sweat: Thanks for the reminder.


Sensory repositories no longer available.

Is there an alternative for the Alexa wake word?

You are asking if there as an alternative to the Sensory libraries. I haven't had a chance to look at it.


LICENSE file?

First of all, thank you @lf- for making this code available, found the viewer quite useful already!
I want to hack it a bit, to customize some things (graph layout, mainly, but also the way it "inits" the graph), while making use of the overall structure. Although I found it via your NixCon2022 blog post on debugging closure sizes, which mentions this project being "open-source under under the MIT license", I couldn't find an explicit mention to the license (edit: except the package.json).
Would you consider adding a LICENSE file to make it more explicit, of whichever license you chose?
Once again, thank you for this repo!

omg lol oops. yes it was intended to be MIT all along. @parsonsmatt would you be able to add one?

Thank you. @prikhi!


Don't working in IDEA 2019.1 version

No response on "View collection content"

same for me

same fpr me

Just upgraded to DataGrip 2019.1 on Mac Mojave and this is broken for me as well.

also no response on "View collection content"
with version 2019.1.2

See if the zip I've attached to #269 fixes it for you:
mongo4idea.zip

this zip fixes the issue for me on Rubymine 2019.1.3 OSX 10.14.5

The plugin has been fixed and available on the Marketplace.
sorry for the delay

IntelliJ IDEA 2019.3 comes with long-awaited MongoDB support.


make sure entities return active/inactive

Codecov Report
Attention: Patch coverage is 12.50000% with 14 lines in your changes missing coverage. Please review.

Project coverage is 25.72%. Comparing base (1d56ae0) to head (0dd16e0).

Files with missing lines
Patch %
Lines

...liance-api/src/compliance_api/models/base_model.py
0.00%
3 Missing :warning:

...mpliance-api/src/compliance_api/services/agency.py
0.00%
3 Missing :warning:

...iance-api/src/compliance_api/services/case_file.py
0.00%
2 Missing :warning:

...ompliance-api/src/compliance_api/services/topic.py
0.00%
2 Missing :warning:

compliance-api/src/compliance_api/models/agency.py
50.00%
1 Missing :warning:

...pliance-api/src/compliance_api/models/case_file.py
50.00%
1 Missing :warning:

...pliance-api/src/compliance_api/services/project.py
0.00%
1 Missing :warning:

...ance-api/src/compliance_api/services/staff_user.py
0.00%
1 Missing :warning:

:exclamation:  There is a different number of reports uploaded between BASE (1d56ae0) and HEAD (0dd16e0). Click for more details.
HEAD has 1 upload less than BASE

Flag
BASE (1d56ae0)
HEAD (0dd16e0)

compliance-web
1
0

Additional details and impacted files
@@             Coverage Diff              @@
##           develop      #45       +/-   ##
============================================
- Coverage    50.46%   25.72%   -24.75%
============================================
  Files           69       59       -10
  Lines         1078     1901      +823
  Branches       281        0      -281
============================================
- Hits           544      489       -55
- Misses         532     1412      +880
+ Partials         2        0        -2

Flag
Coverage Δ

compliance-api
25.72% <12.50%> (?)

compliance-web
?

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

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

@dinesh-aot please fix the lint errors


"flush" wal_pos reported in keepalive unless we have pending transactions

The server may generate WAL that doesn't correspond to a transaction commit, e.g.:

automatic checkpoints driven by checkpoint_timeout
transactions that roll back

Currently we only update our "flush lsn" when we see a COMMIT, so if enough of this non-committed-transaction activity occurs before we see a COMMIT, the server may run out of WAL space and crash.  I believe this is the root cause of #68.
The server's regular keepalive messages are already informing us of the updated wal_pos resulting from this activity.  So this commit makes us acknowledge it as "flushed" (even though we didn't actually do anything about it), provided that we aren't currently waiting for Kafka to acknowledge a transaction in flight (in which case acknowledging the subsequent activity would could result in us losing the transaction in flight, in case of a restart).
I believe this design is sound, but I'm not yet 100% sure this is the right implementation.  In particular, right now this triggers the "Commits not in WAL order!" warning the first time an actual COMMIT comes in.  I think that is actually due to a (harmless) bug - we do a redundant extra checkpoint of transaction 0 (aka the snapshot) - but I'm not sure yet.  In any case I was hoping to get some eyes on this - @ept if you have any spare time your thoughts would be much appreciated :)

Correction, this actually triggers the "not in WAL order" warning each time a COMMIT comes in, rather than just the first time.

Closing this in favour of #73 which does some additional refactoring and in which I have higher confidence.


[$500] Request money - Parent / child category is case sensitive

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Precondition : Admin invited a member to the control or collect policy

Create a parent category as "test" or "TEST"
Create sub categories as "Test:Test1" and "Test:Test2"
Go to member account and go to workspace chat created in precondition
Request money and go to category field
Scroll down to the parent child category lists

Expected Result:
"Test" parent category should be selectable irrespective of case
Actual Result:
Not selectable it is disabled
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android: Native
[ ] Android: mWeb Chrome
[ ] iOS: Native
[ ] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
Add any screenshot/video evidence
https://github.com/Expensify/App/assets/93399543/19e9df67-3a38-4ee5-ab92-cb292bd11829
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~010d446f2173534e11
Upwork Job ID:<PHONE_NUMBER>370691072
Last Price Increase: 2023-11-28

Interesting, I think this is how it works on OldDot today:

I think this might be intentional, unless it's a bug in both places, but @joekaufmanexpensify & @puneetlath can chime in having worked on this.

If you don't want the "parent" category to be selectable in the category list, then you don't enter the standalone value in the category editor.
If you enter the parent category as a standalone value in the category editor, it'll be selectable in the category list.

Are those accurate statements?

Yep to both statements. This is intentional and not a bug. This gives more customization options to companies, as some may want the parent to be selectable, and some not.
If case sensitivity was impacting the ability to select a category that would not seem expected to me. But based on my read here, it seems like the report is actually just related to the parent being selectable based on whether it's enabled as a standalone category, rather than anything case sensitivity-related. If that's the case, we can close!

Oh yeah, kinda' interesting that having TEST as a category you then have the Test label above the nested values as shown here.
.. but if you have Test as a category then you don't have the little label:

Ah, yeah. That is interesting. We could change that, but I am not convinced that is really a bug. If someone is using caps in one place, in all likelihood they are going to use caps in all, and vice versa.
I'm thinking the logic has probably worked this way on OldDot since the beginning of time, and if it hasn't come up, feels fine to me to leave as is.

Cool, sounds good to me. Closing this out then! :)


update report over budget

Coverage increased (+0.02%) to 75.934% when pulling c0993a2618a0856f4ea389b0e514264fbe1a2b08 on indriHutabalian:dev into 1aafeabd1d90dee1368d81b6dc3f030b12de7351 on danliris:dev.


Is sending a pull request the only means of providing corrections/feedback?

First off, thank you for making this available on GH. It just helps!
I couldn't find an instruction in the book preface or the GH repo about how to submit errata. Can that be clarified somewhere (preferably the preface)? If sending a PR is the way to go, please clarify it here and close the issue. I will send a PR.

PR is preferred but you can also file an issue with the requested change.

If it is PR, I believe a separate PR is needed for every atomic change, right? I can send a PR.
But for something that is likely to be more contentious, perhaps an issue is better because then we can have a discussion, reach a consensus, and then a PR can be sent.


[feature request] please update to 1.21

Description
love this mod plase update to 1.21
thank you!
Disclaimer

[X] I have searched for existing issues and this is not a duplicate.
[X] I have read the project's contributing guidelines.
[X] I have read and understood the project's code of conduct.

Will look into it in the next week or so.

thank you so much!

Starting work on this tonight.

Initial port is live on chore/migrate-mc-1.21. I have not tested this yet, though. This is a WIP branch to simply get things compiling on the newest version of Forge/Fabric.

thank you so much!

now do i just download it and put it in the mods folder?

I'll upload some JAR files tonight after I get off work for you to test. You can put them in your mods folder like normal, yes.

@Momcube If you want to test this yourself ahead of me you can grab the development builds from the artifact's section of the last successful build job. There should be there artifacts:

common-dev
fabric-dev
forge-dev

Grab the one for your choosen mod loader (note that common-dev is the common code for both Fabric and Forge and will never work in any mod loader). That will get you a ZIP file containing three JAR files. Place the JAR that does not have the word javadoc or sources in the filename into your mods folder and you should be good to go. Let me know if you run into any issues.

it worked perfectly thank you so much!

it worked perfectly thank you so much!

Awesome! So happy to hear! I'll do some more testing myself tonight and, if all looks good, merge the pull request, close this issue, and publish the release to CurseForge/Modrinth.

thank you so much! i really appreciate it!


Create command 'rosa list user-roles'

The new command is implemented similarly to the rosa list ocm-roles command.
The code checks if a role name contains the User infix and in addition,
checks if the role has the tag rosa_role_type: User, because 'user' is a common word.

Related: SDA-5412

@pvasant @vkareh @zgalor @zvikorn @leshemnoa PTAL

/lgtm

/lgtm


Feature/dependency bump

add some code formatting rules
tighten checkstyle so we hopefully do not have to go through this again

(in particular, check out the merge which was tricky)

after this is merged, checkout the coding style section in the readme for configuration

[x] Check that you pass the basic style checks and unit tests by running mvn clean install

Coverage decreased (-0.2%) to 71.765% when pulling c674618ed70e1a80308bcf3bb3d5cded277aed32 on feature/dependency_bump into 98eef3032b7d37d8a03d820c868a50cec7f7f922 on develop.


What functionalty should be included in Version 2?

Let's use this issue to collect ideas about what functionality (technology choices, feature functionality, etc.) you would like to see in the next iteration of the OSM Editor or may just OSM geoprocessing tools.

Optimize the Load OSM File code to run faster, while maintaining the ability to run with low RAM. Relevant reference: https://github.com/Esri/arcgis-osm-editor/issues/79

Re-factor the XAPI download tool (code) to be more robust and user friendly, taking note of the issues and wishes detected in the references. Make it work more like the QGIS OSM download option, that automatically detects the data frame's extent and shows download progress. Relevant references: https://github.com/Esri/arcgis-osm-editor/pull/82, https://github.com/Esri/arcgis-osm-editor/issues/86, https://github.com/Esri/arcgis-osm-editor/issues/87

Review the DIFF workflow and if possible make it more performant (although this is a difficult operation by itself, other tools for this also seem to struggle keeping render databases up-to-date with OSM's main PostGreSQL edit databse). Better document how to use it and what exactly it does, maybe even graphically using graphics showing what a DIFF does to database records, like in the ArcGIS Help. DIFFs are pretty difficult subject in GIS / databases in general, all the more reason to spend some time to really thoroughly document it. Relevant reference: Improve performance of DIFF files #59

Fix the remaining issue I detected with processing OSM buildings (Schloss Bellevue in Berlin type problem): https://github.com/Esri/arcgis-osm-editor/issues/72#issuecomment-75931043. Buildings are important, and having parts missing will be disturbing to users.

Possibly switch to 256 (variable width) character fields, as per @ajturner's suggestion here: https://github.com/Esri/arcgis-osm-editor/issues/81#issuecomment-100412776 instead of 30 for the "default" fields (e.g. "highway","railway"), and 100 for other fields. This will prevent truncation of values. This will need investigation. Truncation may not be that common given current tag values, and there may be a penalty for large values of width on a variable width field, as per the link I gave here: https://github.com/Esri/arcgis-osm-editor/issues/81#issuecomment-100498500 due to row size overestimation in database query optimizers...

Another option that struck me as missing and being nice to have: a specialized "identification" option for osm tags, that specifically extracts and displays all tags for the selected feature as present in the ESRI tag storage (special editor field osmTags). This option should therefore not show any ordinary attribute fields, but only the real tags as defined by OSM users.

This option would allow to see all tags present, instead of an arbitrary subset as represented by fields extracted by the OSM Attribute Selector.

And another small functionality that may be desirable: a progress indicator for the "Counting elements in OSM file..." step, which is the very first step of the loading process. Currently, there is no indication whatsoever of progress. While OK for small extracts, with large extracts the "Counting elements in OSM file..." step could actually take quite some time. At the very least, if no 0-100% progress can be shown for this step due to technical limitations, at least an "activity" indicator would be nice.

It would be super cool to add overpass api requests in the load osm file (or in a new tool).
I made a python script witch import osm data in a planet file using overpass api and it works.
I can help if you want...


Invalid/Expired Discord Invite

@thunderbiscuit the provided discord invitation link can't be used anymore as it is probably expired.

Found one still valid discord invitation link and replaced the others with non expiring invitation links in #179

Fixed with #179. Thanks!


fluentd docker-compose error:  `require': cannot load such file -- elasticsearch/transport/transport/connections/selector (LoadError)

Describe the bug
I have created docker-compose.yml and fluentd/etc + fluentd/fluent.conf with respect to the documentation on https://docs.fluentd.org/v/0.12/container-deployment/docker-compose. When i run cmd docker-compose up it failed with an error :"/usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- elasticsearch/transport/transport/connections/selector (LoadError)". I have searched net and found some tips but they didnt work on my environment.
To Reproduce
just create docker-compose.yml / fluent.conf and Dockerfile wrt https://docs.fluentd.org/v/0.12/container-deployment/docker-compose
Expected behavior
get fluentd working without error
Your Environment
- Fluentd version: fluent/fluentd:v0.12-debian
- TD Agent version: td4
- Operating system: Ubuntu 18.04.4 LTS
- Kernel version:5.3.0-28-generic

Your Configuration
fluent.conf file:

<source>
  @type forward
  port 24224
  bind <IP_ADDRESS>
</source>
<match *.**>
  @type copy
  <store>
    @type elasticsearch
    host elasticsearch
    port 9200
    logstash_format true
    logstash_prefix fluentd
    logstash_dateformat %Y%m%d
    include_tag_key true
    type_name access_log
    tag_key @log_name
    flush_interval 1s
  </store>
  <store>
    @type stdout
  </store>
</match>

Your Error Log
web_1            | WARNING: no logs are available with the 'fluentd' log driver
fluentd_1        | 2023-02-06 12:04:19 +0000 [info]: parsing config file is succeeded path="/fluentd/etc/fluent.conf"
fluentd_1        | 2023-02-06 12:04:19 +0000 [info]: gem 'fluent-plugin-elasticsearch' version '5.0.3'
fluentd_1        | 2023-02-06 12:04:19 +0000 [info]: gem 'fluentd' version '1.12.0'
fluentd_1        | /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- elasticsearch/transport/transport/connections/selector (LoadError)
fluentd_1        | 	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
fluentd_1        | 	from /usr/local/bundle/gems/fluent-plugin-elasticsearch-5.0.3/lib/fluent/plugin/elasticsearch_fallback_selector.rb:1:in `<top (required)>'
fluentd_1        | 	from /usr/local/bundle/gems/fluent-plugin-elasticsearch-5.0.3/lib/fluent/plugin/out_elasticsearch.rb:31:in `require_relative'
fluentd_1        | 	from /usr/local/bundle/gems/fluent-plugin-elasticsearch-5.0.3/lib/fluent/plugin/out_elasticsearch.rb:31:in `<top (required)>'
fluentd_1        | 	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
fluentd_1        | 	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/registry.rb:102:in `block in search'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/registry.rb:99:in `each'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/registry.rb:99:in `search'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/registry.rb:44:in `lookup'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/plugin.rb:160:in `new_impl'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/plugin.rb:109:in `new_output'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/plugin/multi_output.rb:72:in `block in configure'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/plugin/multi_output.rb:63:in `each'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/plugin/multi_output.rb:63:in `configure'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/plugin/out_copy.rb:38:in `configure'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/plugin.rb:178:in `configure'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/agent.rb:132:in `add_match'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/agent.rb:74:in `block in configure'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/agent.rb:64:in `each'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/agent.rb:64:in `configure'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/label.rb:31:in `configure'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/root_agent.rb:143:in `block in configure'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/root_agent.rb:143:in `each'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/root_agent.rb:143:in `configure'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/engine.rb:105:in `configure'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/engine.rb:80:in `run_configure'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/supervisor.rb:641:in `run_supervisor'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/lib/fluent/command/fluentd.rb:341:in `<top (required)>'
fluentd_1        | 	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
fluentd_1        | 	from /usr/local/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require'
fluentd_1        | 	from /usr/local/bundle/gems/fluentd-1.12.0/bin/fluentd:8:in `<top (required)>'
fluentd_1        | 	from /usr/local/bundle/bin/fluentd:23:in `load'
fluentd_1        | 	from /usr/local/bundle/bin/fluentd:23:in `<main>'
main_fluentd_1 exited with code 1

Additional context
No response

Related: https://stackoverflow.com/questions/71120621/efk-system-is-build-on-docker-but-fluentd-cant-start-up

The document is outdated since it's for fluentd v0.12 which is already deprecated.
Please see https://github.com/fluent/fluentd-docs-gitbook/issues/391


why_run_supported should be whyrun_supported

The function name is incorrect

Closing in favor of #20 which includes this change.


Negative numbers

Hey, long time user, first time poster.
Curious if there are any plans to support negative ids?
It's an odd use case and not something I can't get around, but would be nice to get hashes from either side of zero to divide a larger set of things.
Thanks. Appreciate the library.

@joshbruce Sorry for the late reply. There's no plans atm to support negative numbers. However, you could abstract by prepending your own designated number, like [1, 2, -3] could become [1, 2, 0, 3]. Of course there are other downsides to that.

Thanks @ivanakimov, appreciate that alternative. I figured out an alternative to ultimately hit the same goal.


Restart addon pod on managed cluster after restore

After a backup+restore, submariner-addon pods on managed cluster are still trying to reach old hub. The pods need to be restarted to pick up new hub config.
Add an env variable to submariner-addon deployment with hub's API server. When new hub is restored, it will result in forced restart of the pods on managed cluster.
Fixes #584
Signed-off-by: Vishal Thapar<EMAIL_ADDRESS>

I take it the idea here is that a change in host hub will result in a change in the pod descriptor, and thus a restart of the pod, is that right?

I take it the idea here is that a change in host hub will result in a change in the pod descriptor, and thus a restart of the pod, is that right?

Yes. The value in env variable will change and this change in deployment will result in pod restart. I found this to be cleanest and simplest solution. Some other options I tried or considered:

Check for informer/listers getting errors and recreate the hubclient. This approach is used in another addon [I think search addon] but doesn't work for us coz we use multiple controllers taking hub kubeclient as arguent with no access to hub config.

Check for errors in informer/listers and restart the pod. Better than 1 but tricky in implementation. Even a panic won't force pod restart coz all controllers run in separate threads. Also, the error we get is Timeout which can also happen if network is slow and api server times out. False negatives can lead to unnecessary restarts.

This works best coz this change will be trigerred by addon code running on hub and it will only change value in case of backup/restore, avoiding any false negatives.

/cc @skitt @tpantelis

/retest-required

/lgtm

/approve


Application calculates BMI for as many people as desired until the...

…"q" key is entered.  Types simplified to use double for all numerics.

Looks good, maybe even an overkill for hw1and2


[Blockly][Codegenerator] Allow openSenseMap Block without Interval Block around

Block description
Currently the openSenseMap Block needs to be nested inside the interval block. When using other structures such as the case structure the interval block is not needed

I mean a825b1d works but ulitmately I am not sure if this is the correct way. Was not really able to figure out where LOOP_TYPES is defined

@Thiemann96 see here: https://github.com/sensebox/React-Ardublockly/pull/246/commits/85c7dacec76cc99a1cba2b5ef7175d9d2845458c one can just add more blocks to the LOOP_TYPES


Focus search input

This PR auto-focuses the search input.  I always find myself wanting to immediately search for a specific lock so I thought this would be helpful and not mess up anything.

@NiXXeD do I need to follow any contribution guidelines?

Sorry, I didn't even notice this PR until today. I must not have notifications set right.
There are actually hot keys to do this as well, "S" will focus the search box. On mobile it's just a tap. I think having the search box selected by default would be annoying if you weren't going to search, as on mobile the keyboard would cover half the screen. So I think for now we'd like to keep behavior as it is currently. Sorry for the late reply!


utmp parsing should handle utmp, utmpx in a platform-independent manner

Summary
Currently, a s4 instance will attempt to parse a utmp file only based on the current platform. utmp files from other platforms may not be parseable. This breaks a common user scenario of reviewing logs archived from other platforms. e.g. parsing FreeBSD logs on an Ubuntu workstation.
Problem Details
A utmp file using an older layout, like in FreeBSD 13 (see #107) has a different layout than a wtmp file on Ubuntu 22 (utmpx layout).
Ubuntu 22 looks something like this:
/* The structure describing an entry in the user accounting database.  */
struct utmp
{
  short int ut_type;		/* Type of login.  */
  pid_t ut_pid;			/* Process ID of login process.  */
  char ut_line[UT_LINESIZE]
    __attribute_nonstring__;	/* Devicename.  */
  char ut_id[4]
    __attribute_nonstring__;	/* Inittab ID.  */
  char ut_user[UT_NAMESIZE]
    __attribute_nonstring__;	/* Username.  */
  char ut_host[UT_HOSTSIZE]
    __attribute_nonstring__;	/* Hostname for remote login.  */
  struct exit_status ut_exit;	/* Exit status of a process marked
				   as DEAD_PROCESS.  */
/* The ut_session and ut_tv fields must be the same size when compiled
   32- and 64-bit.  This allows data files and shared memory to be
   shared between 32- and 64-bit applications.  */
#if __WORDSIZE_TIME64_COMPAT32
  int32_t ut_session;		/* Session ID, used for windowing.  */
  struct
  {
    int32_t tv_sec;		/* Seconds.  */
    int32_t tv_usec;		/* Microseconds.  */
  } ut_tv;			/* Time entry was made.  */
#else
  long int ut_session;		/* Session ID, used for windowing.  */
  struct timeval ut_tv;		/* Time entry was made.  */
#endif

  int32_t ut_addr_v6[4];	/* Internet address of remote host.  */
  char __glibc_reserved[20];		/* Reserved for future use.  */
};

And FreeBSD 13 looks like:
struct utmpx {
	short		ut_type;	/* Type of entry. */
	struct timeval	ut_tv;		/* Time entry was made. */
	char		ut_id[8];	/* Record identifier. */
	pid_t		ut_pid;		/* Process ID. */
	char		ut_user[32];	/* User login name. */
	char		ut_line[16];	/* Device name. */
#if __BSD_VISIBLE
	char		ut_host[128];	/* Remote hostname. */
#else
	char		__ut_host[128];
#endif
	char		__ut_spare[64];
};

Suggested behavior
Attempt to parse utmp layouts from different platforms.

Solution 1
My first idea is to embed all possible layouts in the library.
Then attempt to extract all of them from the file. Since these are just bit copies without any checking, a possible check would be for obvious invalid values. e.g. an Ubuntu 22 layout utmpx.ut_id that is just zero bytes is probably invalid. So try a FreeBSD layout utmpx.
Concerns
A likely problem will be confidence determining which is the valid layout. I'd imagine a lot of valid utmp record entries are just null bytes.
It's unlikely, but perhaps trying to maintain the layout for all possible utmp will be complicated.

Solution 2
Each utmp layout has a unique size. The file size modulo with possible utmp sizes should in many cases point to the payout to use.

A helpful tool for development might be a Python tool that takes a file, and for the first entry, prints the data using all possible layouts.

See #217 regarding file format of utmp on Mac OS and Linux.


Resolves #113

@prathamthe1st please provide screenshot of the changes made by you.

Good work @prathamthe1st!

Thank You very much!!


Knative Serving service shows IngressNotConfigured and unable to access the application via Kong Ingress

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
I've set up Knative Serving in EKS cluster with Kong configured for Ingress gateway.
Below are the cluster details:
Kubernetes Version: 1.23
Knative Version: 1.7.1
Kong Version: 2.6.9
Installed Knative using:
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.7.1/serving-crds.yaml
kubectl apply -f https://github.com/knative/serving/releases/download/knative-v1.7.1/serving-core.yaml

Updated Domain name:
kubectl patch configmap/config-domain \
  --namespace knative-serving \
  --type merge \
  --patch '{"data":{"test.com":""}}'

Updated ingress class:
kubectl patch configmap/config-network \
  --namespace knative-serving \
    --type merge \
      --patch '{"data":{"ingress.class":"prod-kong-ingress"}}'

Deployed the application by following this.
After deploying the application yaml, kubectl get ksvc displays the URL in which application can be accessible.  But READY shows Unknows and REASON as IngressNotConfigured
NAME    URL                             LATESTCREATED   LATESTREADY   READY     REASON
hello   http://hello.default.test.com   hello-00001     hello-00001   Unknown   IngressNotConfigured

While accessing the application URL, am seeing the below:
{"message":"no Route matched with those values"}
It looks like the K8s service is not being assigned to the ingress.
But I could see the below annotation available in K8s service created by Knative:
networking.knative.dev/ingress.class: prod-kong-ingress
Can someone help me identify the cause and fix this?
Am I updating the ingress class properly?
Expected Behavior
READY should be True and the application URL should be accessible.
Steps To Reproduce
No response
Kong Ingress Controller version
v2.6.9

Kubernetes version
1.23

Anything else?
No response

I've reached out to Knative community but I've been redirected here

Hi @MaharaJothi 👋

Kong Ingress Controller version v2.6.9

Are you sure you didn't mean v2.6.0? Or you meant Kong version v2.6.9 as in the Current Behavior section?

Hi @pmalek , Yes It's 2.6.0.  It was a typo from my end which I corrected. Thanks for pointing it out.

OK, got it.
#2543 might be the same issue but we'd need to take a closer, in depth look at it to verify.
Please note, that as mentioned in https://github.com/Kong/kubernetes-ingress-controller/issues/2543#issuecomment-1195910238, Knative support in KIC is still behind a feature flag (as per https://github.com/Kong/kubernetes-ingress-controller/blob/main/FEATURE_GATES.md#feature-gates-for-alpha-or-beta-features) and still marked as Alpha.
While we're trying to account for all the reports from our users we might be lacking resources to address all of them, especially those for alpha/beta features behind feature gates.
This will, as all the other issues be accounted for in our project's board but as mentioned above it might end up having lower priority than other issues.
Let us know if the above makes sense and also please be aware that we always welcome contributions from outside contributors.

Thanks for the update @pmalek
I was able to make it work.
Earlier I installed Kong and then Knative.  Whenever I install in this order, I got the issue I have reported.
However, if I install Knative first and then Kong, it all seems to work fine without any issue.
I notice the same order has been mentioned in kong documentation as well: https://docs.konghq.com/kubernetes-ingress-controller/2.6.x/guides/using-kong-with-knative/


Configure fails

Environment

Tesseract Version: Master branch
Commit Number: MSVC 8.0 was released in 2005 and we don't support it.
Platform: Linux

Current Behavior:
Configuration failed
Expected Behavior:
Configuration should Pass.
Suggested Fix: Unknown
Following error were seen:
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
./configure: line 4234: syntax error near unexpected token -mavx,' ./configure: line 4234: AX_CHECK_COMPILE_FLAG(-mavx, avx=true, avx=false)'

Please read previous issues and close this one.


Can't access onClick function in the column's button formater

open() {
this.setState({showStatusModal: true});
}
actionsFormatter(cell,row) {
return
<Link to={"/edit_campaign/"+cell}>  Edit Campaign
<Link to={"/internalReport/"+cell}>  Internal Report
<Link to={"/clientReport/"+cell}>  Client Report
<MenuItem onClick={() => this.open()} eventKey="3">Change Status

}

HI it too hard for me to reproduce this issue, if ok, please give me a repo or full example but keep it simple and minimal. BTW, any event defined in dataFormat is work well for a long time, so I think it's not a bug, thanks

@ajits731 I've faced a similar kind of issue before. If you are using react-bootstrap library, it the issue of with MenuItem which is not being clickable. Please confirm if you are using react-bootstrap.
Thanks.

@prajapati-parth  👍

Yes I'm using react-bootstrap but Never mind I used the modal as a component and bypassed the click event.


AbstractPolicy: no need to use a constructor for setting members

@blueyed Umm, Sorry I had a mistake when resolved a conflict.
Could you fix it?

Trying the update button again, but can rebase it properly later.

Codecov Report

Merging #214 into master will decrease coverage by 0.11%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #214      +/-   ##
==========================================
- Coverage   70.77%   70.66%   -0.12%
==========================================
  Files         133      133
  Lines        7737     7707      -30
  Branches     1252     1252
==========================================
- Hits         5476     5446      -30
  Misses       1932     1932
  Partials      329      329


why not use curl

I would like to ask why you want to use file_get_content this inefficient way, instead of using curl

Because not everyone has curl


broken document link - Sylvilagus floridanus (J. A. Allen, 1890) https://www.mammaldiversity.org/taxon/1001131

to reproduce:

visit https://www.mammaldiversity.org/taxon/1001131
locate document link
click on http://digitallibrary.amnh.org/bitstream/handle/2246/582//v2/dspace/ingest/pdfSource/bul/B003a08.pdf?sequence=1&isAllowed=y

This is fixed in the unreleased version, we now link to http://hdl.handle.net/2246/582 for this species.

Suggest to include the md5 hash of the linked document.

there appears to be a bunch more non-200 OK responses associated with the authority links.
curl "https://www.mammaldiversity.org/mdd.json" | jq --raw-output .[].authoritySpeciesLink | grep -v null | xargs -L1 curl -I

Also, did you consider building a corpus of literature similar to https://bat-literature.github.io / or https://taxodros.github.io . These pesky download links are likely to do dead sooner or later. . .

I have virtually all confirmed references as PDFs. I'd like to publish those at some point but haven't pursued it, partly because we'd have to deal with copyright restrictions.
We're aiming to link species descriptions to the Biodiversity Heritage Library where possible, so we don't rely on too many small websites that may all change or go down. This one either isn't on BHL or my script couldn't find it.
The unreleased version mostly replaces the existing links in MDD with links from my Hesperomys database. I found a lot of dead links while doing that replacement, but I haven't done a full scan like you suggested above. I might add a script that crawls all the links every so often (once a year?) and flags ones that no longer work.

Awesome, great to have those links resolving via [http://hdl.handle.net/] -- is that your own service for Hesperomys, @JelleZijlstra ?

No, HDL is a general document-resolving service. I don't know too much about it but it's apparently run by CNRI: https://www.handle.net/. I try to use HDL links (or DOIs) if possible because they are likely to be more stable than the raw URLs.


Fix wrong link in condvar doc

Cause of CI fmt and docs failing: probably the same with https://github.com/async-rs/async-std/pull/845#issuecomment-667351867


Address bug issue

-fix address bug (save session and carry over)
-added service layers

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found

CI: No security warnings found


Use relative urls

This replaces all the absolute URLs with relative URLs. When running behind a reverse proxy like Nginx, as absolute URLs have the domain or IP hardcoded, all the navigation links fail.
In particular, I need this for starting the development version of our documentation.

cc @hezanathos

Tested in dev and production mode, looks good. Approved @hezanathos


Check the qbittorrent used port and update it if it's different to the vpn port

Is it possible to add a check port of the current configured port of Qbittorrent and restart the script if the port is different between vpn and Qbittorrent ?
On another project I see some line to find the current used port of qbittorrent that can give some ideas :
https://github.com/soxfor/qbittorrent-natmap/blob/main/data/start.sh
When i have some update of my docker stack I see gluetun-qbittorrent-port-manager log to says succefull change port but it's not the reality.
Qbittorrent version 4.6.2

bump

I created a fork of this project that does this/rechecks every 5 minutes as gluetun loses connection occasionally, and some VPNs vary the port on every (re)connect.  The function of the script is very different to this version as it requires/calls on the Gluetun control server API vs checking /tmp/gluetun/forwarded_port file, error checks to ensure it receives a port number.  Also added in compose dependencies and healthchecks
Not trying to steal this creator's thunder, just based on their repos they  might be a very busy person as it's been a number of months with no response.
patrickaclark/gluetun-qbittorrent-port-manager


add add-on manager

What
The add-on manager is a very simple process that triggers the install of the kuadrant components onto a spoke cluster. Currently there is no image build and published for this. We should add a new workflow to cover this image

[x] Ensure image built from tagging repo
[x] Ensure installed in quick start
[x] Ensure image available and can be installed with kustomize
[x] Update https://github.com/Kuadrant/multicluster-gateway-controller/blob/main/docs/how-to/kuadrant-addon-walkthrough.md
[ ] Stretch update e2e test to trigger install of add-on

https://github.com/Kuadrant/multicluster-gateway-controller/pull/447

https://github.com/Kuadrant/multicluster-gateway-controller/pull/453


AJ-1658: Prefer CollectionId

Change signatures of CollectionDao#dropSchema and CollectionDao#alterSchema to use CollectionId instead of UUID.

This should be the last PR to get CollectionDao and its direct neighbors cut over to using CollectionID instead of UUID.