Columns in report

Kelleigh would like the columns in the report lined up the best they can be.

Re-opening this issue in case it is possible to improve alignment.

What, specifically needs to be improved?
On Mon, Mar 9, 2015 at 2:28 PM, jpechmann<EMAIL_ADDRESS>wrote:

Re-opening this issue in case it is possible to improve alignment.
—
Reply to this email directly or view it on GitHub
https://github.com/agrc/bb-econ/issues/69#issuecomment-77935192.

--
Scott Davis
Utah AGRC http://gis.utah.gov/developer/
<EMAIL_ADDRESS>@ScottAGRC https://twitter.com/ScottAGRC

The contact name, contact phone, and contact email are all slightly off.

Okay, Kelleigh has a new request for the columns. She wants the broadband columns re-ordered as follows in hopes it'll help with the alignment.
Fiber Providers: Provider, Website, Phone Number, Contact Name, Contact Email, Providing Fiber in:,
Other Fixed Broadband Providers: Provider, Website, Phone Number (the remaining columns would be empty with no headers or other content)

Sorry, I probably explained this poorly. Kelleigh doesn't want the Contact Name or Contact Email under "other fixed broadband providers". So no header text, and no values in the rows. Other than that everything looks great

@jpechmann Thanks for catching this. You were clear in the original message. I just didn't read it correctly. Fix is coming shortly.


Make new datatypes optional (for compatibility with older torch versions)

This patch should unbreak HEAD with shark, but I think something is wrong with the checkout on that runner since it is referring to a line that no longer exists.


chore: upgrade eslint

rm -r node_modules
npm uninstall eslint
npm install --save-dev eslint

This project doesn't have eslint setup, shifting this issue to addressing that


EurekaServer - XML/Json marshalling initialized twice

In org.springframework.cloud.netflix.eureka.server.EurekaServerInitializerConfiguration.start():
...
XmlXStream
    .getInstance()
    .setMarshallingStrategy(
    new DataCenterAwareMarshallingStrategy());
DataCenterAwareJacksonCodec.init();
...

This initialisation has already been done when building the Eureka Client (see org.springframework.cloud.netflix.eureka.EurekaClientAutoConfiguration.init()). The Eureka server requires an eureka client instance. So it is guaranteed the initialization has already been done.
Although replicating this init code here doesn't harm, it makes the things harder to maintain and is error prone.

Closed via 8f9acab3bdbebfcf5687ec601904ee4f718ae25d


fix(query-devtools): Update default devtools button position to bottom-right 🌱

Summary
This pull request addresses a comment from the maintainers regarding the default position of the query devtools. The change aligns the default devtools position with the bottom-right corner to maintain consistency between adapters and documentation.
Changes Made
Updated the default position of the query devtools to bottom-right.
Adjusted relevant documentation to reflect the updated default position.
Context
The maintainers suggested aligning the default devtools position with the bottom-right corner to maintain consistency across adapters and documentation. This adjustment ensures a unified experience for users and developers using the query library.
Related Issues
Closes #6242

I was just working on the Angular devtools and fixed this in there. Sorry for the conflict.
Noticed that default seems to have changed for position as well: it is mentioned the default is bottom but it's shown at the right when nothing is set.

Hi @arnoud-dv, awesome thanks for fixing it for Angular, I updated the branch and fixed the conflicts 👌
Also checked the position attribute and it's working well 👍


Should we expose videoresize event & support scaleY css property?

@ibc This is useful when switching between portrait and landscape mode in situations where we want all all app screens are locked to a specific orientation excepting the video ui view which is already listening to resize events. In landscape mode scaleX is not good enough, we also need to flip the video depending on orientation direction.
If you're fine with that, I can submit a PR.

Send a PR please, but I do not understand why your concern cannot be solved with the already implemented object-fit: cover CSS property.

Because object-fit has nothing to do with orientation. You implemented "mirror", my proposal is basically for "flip" effect.

object-fit has no relationship with the "mirror" effect. Anyhow feel free to send a PR so I can understand better what you mean :)

I know, I was commenting on "but I do not understand why your concern cannot be solved with the already implemented object-fit: cover CSS property". Anyway, for some reason I don't think I'm properly coming through with my communications. Will just send a PR.

Point is if you take the iOSRTCApp, rotate the device from portrait to landscape, the video orientation doesn't follow through. This needs to be fixed.

Point is if you take the iOSRTCApp, rotate the device from portrait to landscape, the video orientation doesn't follow through. This needs to be fixed.

I don't even remember how iOSRTCApp works and cannot spend time on it (not even sure if it still works). I don't fully know which its behavior should be when device orientation is changed.
Note however that whether a Cordova app can change its orientation (and which its orientation is) may be decided/fixed by the own application. In our company app, when changing the orientation we call iosrtc.refreshVideos() and it does properly work. But sure you mean something complete so let's see that PR :)

I do that too (I'm not using iOSRTCApp either), not sure how it's working for you though, holding two iPhones side by side one with the standard camera app open and one with the plugin's video view, flip both to the side to landscape mode you'd see completely different behaviour - same happens in all four orientation degrees, it's inconsistent...

I'll send a PR anyway allowing for manually controlling the direction of the video (i.e. adding support for rotateY)

closing this for now, will send PR instead


When in 'accessibility' mode and input field has focus, slick should not move

Slick uses arrow keys to allow the user to navigate the carousel which is great, but, this functionality shouldn't obstruct navigating an input field.
When the user's focus is on an input field, the right/left keys should not invoke the transition of the slick panels.  This, I believe, goes against general accessibility principles.
Here's what I could find that I think applies to this situation...
From WCAG:
3.2.1 On Focus: When any component receives focus, it does not initiate a change of context. (Level A)
How to Meet 3.2.1 | Understanding 3.2.1
3.2.2 On Input: Changing the setting of any user interface component does not automatically cause a change of context unless the user has been advised of the behavior before using the component. (Level A)
I've created a PR https://github.com/kenwheeler/slick/pull/1492 , that contains an example of a fix.

Resolved in the master. Thanks!


[Android] suppressVolumeIndicator consumes all key press events, not just volume keys

Describe the bug
When suppressVolumeIndicator is set to true when calling watchVolume, all key press events are consumed instead of just volume keys. This means that, among other things, the back button does not function while volume keys are being watched.
To Reproduce
Steps to reproduce the behavior:

Call watchVolume with suppressVolumeIndicator set to true
Press the device's back button

Expected behavior
The back button should either go back in the history stack, or emit the backButton event in the @capacitor/app plugin
Screenshots
N/A
Desktop (please complete the following information):

N/A

Smartphone (please complete the following information):

Device: Emulated Pixel 4 Pro API 33
OS: Android 13
Browser: Mozilla/5.0 (Linux; Android 13; sdk_gphone64_x86_64 Build/TE1A.220922.010; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/103.0.5060.71 Mobile Safari/537.36
Version: "@capacitor/core": "^6.1.1", "@capacitor-community/volume-buttons": "^6.0.0"

Additional context
N/A

@DoctorMcKay thank you for the issue. I confirm the problem and implemented the required fix (see https://github.com/capacitor-community/volume-buttons/pull/13). Can you please test it on your end and let me know your thoughts? Thank you

@DoctorMcKay thank you for the issue. I confirm the problem and implemented the required fix (see #13). Can you please test it on your end and let me know your thoughts? Thank you

:+1: Looks good, I tested it and it works. Thanks!

The new version 6.0.1 with the required change has been released. For more details please see CHANGELOG


调试的时候特别特别卡，几乎吃满了cpu

所需的数据太大，无法直接发送。我们已经将其写入剪贴板，请粘贴。

The author is reporting a performance issue in his native language. I'm telling him how to report a performance issue in English.
To be simple, I will contact to him in his language directly.
This issue can be closed and the author will open a new one to report the performance issue.

用英文反馈。这个 issue 直接 close，新开一个。
反馈性能问题，不要在 GitHub 上直接开 issue，看这里——

你要说一下详细的重现步骤，或者在进行什么操作时出现这个问题（高 CPU）。
祝你好运。


alternative to download filter

The pipeline is working incredibly well. I just had trouble proceeding to the Level 3: PSF subtraction part because SVO database is currently down (which happens not infrequently). Does it make sense to have the JWST coronagraphy filter profiles included in the package to avoid this bottleneck?

Hmm... there should already be a workaround implemented if SVO is not responding. Perhaps it only works on initialization and if SVO stops responding afterward, then it won't fall back to the webbpsf profiles. Can you show the error traceback?

@JarronL There was another place in spaceKLIP where data was downloaded from SVO. This patch will fix the issue. It is currently only in the dev/jk branch but will be merged into develop soon.


Preprocessor imports

It should be possible to import arbitrary files when using a preprocessor.
For example, I have some definitions that are common for all components. Like responsive breakpoints or color schemes.
// /app/components/application-navbar/styles.sass
// /tmp/tree_merger-tmp_dest_dir-xxx.tmp/styles.sass

@import "../../styles/definitions.sass"

// expected: /app/styles/definitions.sass
// actual:   /styles/definitions.sass

This yields and error, as the cwd for the sass compiler is the tmp directory located at /tmp/tree_merger-tmp_dest_dir-xxx.tmp and not the actual location of the component directory.
As a workaround I can use this path, which exits the tmp directory and enters the app dir:
// /app/components/application-navbar/styles.sass
// /tmp/tree_merger-tmp_dest_dir-xxx.tmp/styles.sass

@import "../../app/styles/definitions.sass"

This is ugly and feels hacky. A possible solution would be adding the actual path of the component or the /app/styles directory itself to the lookup paths of the preprocessor.

The issue here is that the pod stylesheets get concatenated into pod-styles.sass at the root level, therefore it seems to just be ignoring the ../../, so you should be able to just do: @import 'app/styles/definitions'.
My question is, why not just import definitions.sass into your app.sass file? Since you import pod-styles into the app stylesheet, it'll have access to everything you may need.

@buschtoens we should get a test in for this. It might be supported in v0.2.1

Oh! This thread solved a problem for me!
I didn't realize that you ought to import "pod-styles" after anything that you want to use in your component styles. (I didn't know what this add-on was doing in the background to implement it's functionality... makes perfect sense now).
Much cleaner than importing things with ../../ in front of them as I was doing.


ToCode Solution: תרגול מבני נתונים

01: it would be much better to use a dictionary to store the usernames and passwords
03: There is no need to split the row twice. Try doing it only once.
Also there is an empty row in the 'hosts' file and the code blows up on that.

👍


Update quickstart.rst

Updated the documentation to show the ultimates being pulled from the full_triangle and not as a separate attribute.  It could also be written as full_triangle.Ult.astype(int)  but I like to have my columns more explicit.

Codecov Report

Merging #18 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #18   +/-   ##
=======================================
  Coverage   59.56%   59.56%
=======================================
  Files          12       12
  Lines        1286     1286
  Branches      262      262
=======================================
  Hits          766      766
  Misses        443      443
  Partials       77       77

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 ce8caab...c4bac7f. Read the comment docs.


Unable to set custom user agent

To enable Microsoft Teams, I need to set a custom user agent #262.
This should be no problem, using the webviewOptions in the plugin's package.json, like described in the documentations of Franz plugins [1] and the Electron webview [2].
"webviewOptions": {
      "disablewebsecurity": "",
      "useragent": "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 [...]"
}

However, the new setting is ignored by Franz and loading of Microsoft Teams fails.
For testing, the user agent can be set via Network conditions in the Developer Tools. The plugin then works as expected. E.g. Chrome 52 on Windows works fine Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2725.0 Safari/537.36
[1] https://github.com/meetfranz/plugins/blob/develop/docs/configuration.md
[2] https://electron.atom.io/docs/api/webview-tag/#useragent

I'm having this issue as well when trying to build a plugin for google Allo.
@janmattfeld have you had any luck?

Unfortunately, there is no chance for us to fix this issue from the outside.
As Franz seems to be abandoned, I consider switching to Rambox. Additionally to Microsoft Teams, it also has a Google Allo integration (not tested): https://github.com/saenzramiro/rambox/issues/1066

Thanks for sharing. I wish they would open source this so the community could take over. I love the ease of creating plugins.


fix(cli): include full eleventy config

What I did

Create an object with all eleventyConfig method as empty functions

thank you 🤗


Fix: Add pipes to start and end of lines

Addressing #1

Thank you for contributing to this tiny repo. @AhmedThahir
But always adding pipes is as bad as always not adding pipes.
We need check whether there's pipes in input and preserve it. Or add an option for this behavior.


CB-8910: Fix null pointer exception when repairing FreeIPA

Fix a null pointer exception that would be thrown when repairing
FreeIPA without specifying which instances to repair. This is
supposed to automatically detect which instance to repair.
This was texted manually using a local deployment of cloudbreak.
See detailed description in the commit message.

I will add a unit test, please do not merge until I add it.


Fix #45 - make gain vector optional in root_locus

As a consequence of this change, root_locus now returns two items, the roots and the gains used (consistent with matlab.rlocus).
This PR also fixes some mistakes I found in the documentation.

Coverage increased (+0.02%) to 72.95% when pulling 45e0450c005026145a66c37e634efb80e66092a5 on cwrowley:gh-45 into b7e7ae94defe5f28cea4954a6022bc50b0ffcf4d on python-control:master.

Coverage increased (+0.02%) to 72.95% when pulling 45e0450c005026145a66c37e634efb80e66092a5 on cwrowley:gh-45 into b7e7ae94defe5f28cea4954a6022bc50b0ffcf4d on python-control:master.

Coverage increased (+0.02%) to 72.95% when pulling 45e0450c005026145a66c37e634efb80e66092a5 on cwrowley:gh-45 into b7e7ae94defe5f28cea4954a6022bc50b0ffcf4d on python-control:master.


[SUGGESTION]Use explorer window as a file navigation system(to replace nerd tree)

+1 for this. As of now, when I double clicked a file on explorer window, it would open my default editor instead of opening it as a tab in Goneovim. Is it possible to configure it with current implementation, or should it be implemented in the code first?

Hi
For this suggestion, I made it possible to define a command to open it in the config file.
Please try the latest build the following.
https://github.com/akiyosi/goneovim/actions/runs/1015680857
Configuration example:
Add FileOpenCmd settings to settings.toml as shown below.
[Editor]
# ...
FileOpenCmd = ":tabe"
# ...

@akiyosi Thanks for implementing this feature. I have tested in the new version and when I double click a file in explorer, it will open as a new tab in nvim. Following this, I have new question, can we make explorer open folder like nerdtree? With the current behavior, if we double click a folder, it will open like a file would.


how can i solve it?

Repro steps:

Action: cosmosDB.attachDatabaseAccount
Error type: Error
Error Message: failed to connect to server [<IP_ADDRESS>:27017] on first connect [MongoError: connect ECONNREFUSED <IP_ADDRESS>:27017]
Version: 0.7.2
OS: win32

Thanks for reporting the issue! We really appreciate your feedback. :)
From a first look, it looks like you're trying to connect to a local mongodb instance.
Please let us know if this comment helps.
It currently looks like this issue is a duplicate of #662.

I'm closing this as I feel this is a dupe of #662.
Please feel free to reopen if the problem still persists, we'd love to hear your scenario.

Hi @cmrdoguzhan ,  the merged fix was published today (version 0.8.0). Hope this fixes your issue. :-)
Let us know how the fix holds up with your use-case.

I fixed it thanks @PrashanthCorp


Accessibility Options have permanently disabled checkboxes?

Testing #12519
I don't know what they do but I want to check them, and I can't!

Just chatted with @Tyriar - apparently, these aren't checkboxes... they are empty icons masquerading as checkboxes.

This is chrome://accessibility, I guess Electron adds it to the menu by default now?

We should take this out for the stable release and only have it in insiders.

Closing, we do not control the contents of the accessibility page from chrome.


restore php 5.3 compat in HeaderValue. #129

Error in HeaderValue (version 2.4.11 and 2.4.10) for PHP 5.3.26

this was just example for https://github.com/zendframework/zend-mail/issues/129


FE-assignment-2

Metric
Value

alert_status
:white_check_mark: OK

bugs
8

code_smells
64

reliability_rating
D (at least 1 Critical Bug)Note: A being best, E being worst

security_rating
A (0 Vulnerabilities)Note: A being best, E being worst

vulnerabilities
0


rxdart dependency

possibility to use PublishSubject or BehaviorSubject for the store

Hey there @quantosapplications -- Overall, I get what you're trying to achieve, but I'm not sure this fits in well with this Redux library specifically.
Since we're trying our best to emulate the default Redux.js functionality in a Dart world, I really think adding in Rx would be overkill for this little library. I think this might be better as a specialized fork for your particular needs!


JMX Monitoring documentation improvements

Summary of the changes / Why this improves CrateDB

use correct placeholders
remove duplicate docker image name
use double quotes for CRATE_JAVA_OPTS as backslash does not work with
single quotes

Checklist

[x] Added an entry in CHANGES.txt for user facing changes
[x] Updated documentation & sql_features table for user facing changes
[x] Touched code is covered by tests
[x] CLA is signed
[x] This does not contain breaking changes, or if it does:

It is released within a major release
It is recorded in CHANGES.txt
It was marked as deprecated in an earlier release if possible
You've thought about the consequences and other components are adapted
(E.g. AdminUI)

retest this please

@norosa FYI: I just rebased my commit on current master and force pushed. Last test run had a failed check
BlobPathITest > testDataIsDeletedSpecificIndexBlobPath FAILED
java.lang.RuntimeException at [C81272B36C493795:EC119A262107020]:0
Caused by: java.nio.file.NoSuchFileException at UnixException.java:92

I could get the test to run again (I thought "retest this please" should trigger a rerun of the checks 🤔).
I hope it's fine that I rebased and force pushed.

hm.. still failing 🤷

retest this please

@jayeff I can't help with the Java error. but @mkleen probably can :)

@jayeff I can't help with the Java error. but @mkleen probably can :)

https://github.com/crate/crate/pull/11150

@mergifyio rebase

@Mergifyio rebase


Added ability to delete a single user over MQTT via UID

Nicely done, at some point in time I remember styling of whitespaces, somehow it got messy.  Thank you.


Need year and month separate navigation

I have been using your date picker and now there is a requirement in which i need the month and the year having separate navigations. As in the current version, there is a year and month navigation which only changes months.
I have attached a screenshot of what exactly i need. It would be great if i can get some help. Thanks!!

Click the title twice you can enter the year picker panel.


Publish to playstore

For those of us on phones managed by Work Profiles, we're not able to directly download and install APKs.
I'd be grateful if you could publish this to the playstore :)

Heya, thanks for trying out!
I am veeeerry busy at the moment and also have 0 experience on publishing personal apps on play store and maintaining them, so the idea is a little bit intimidating for me haha.
But hopefully in the future with the help of people who find it useful and wants to contribute with their free time!
In the meantime, I'm leaving the issue open


[GodotPhysics] Unexpected behavior while interacting with linear_velocity and state.linear_velocity.

Godot version
Godot 4 stable and Godot 3.x LTS
System information
Fedora linux
Issue description
If you use some custom logic inside _integrate_forces() to alter the state linear velocity and there is any reference to linear_velocity in physics process, the result in godot 3.5 is that it moves just a little bit, while in godot 4 is totally still.
Steps to reproduce
For the example i created a simple scene in which i apply a force on the linear velocity in  _integrate_forces()  and added a line that add zero to it in physics process. You will not see any move, but it will work fine if you comment the line adding zero.
Minimal reproduction project
PhysicsBugReproduction.zip

Can you reproduce this in 3.5 when using GodotPhysics instead of Bullet?

Yes. With Godot physics it behaves like in Godot 4. But the problem is still present.

Just to clarify - you do NOT see the problem with Bullet physics in 3.x?

I'm sorry, let me clarify:
In godot 3.x the problem is exactly the same as in godot 4 with godot physics. With bullet, it almost equal, but seems like it still apply some kind of impulse. I think the difference is in implementation there, but the bug is present.

I would like to attempt to resolve this. I am a little inexperienced with godot but I'd like to try. Where should I start?

The 3D physics server code is at: https://github.com/godotengine/godot/blob/8367152723ebb96b1c799a9c6c9ac1d85178f80a/servers/physics_server_3d.cpp#L57
That said, physics is notoriously a difficult area to learn, so it may prove challenging to fix.

I'm sorry if this is not useful information, but this error happens when using Godot Jolt too, which is weird cause they are different physics engine. Maybe this help to locate the problem? or this is a bug on a part of the code that Godot Jolt do NOT change / from which inherits, or this same error happens by pure chance on another whole different engine too.


make r-base run-time dependency optional

Checklist

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

Hi! This is the friendly automated conda-forge-linting service.
I wanted to let you know that I linted all conda-recipes in your PR (recipe) and found some lint.
Here's what I've got...
For recipe:

If r-base is a host requirement, it should be a run requirement.

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

The approach of making r-base a run_constrained dependency doesn't seem to be a valid approach, so I am closing this merge request.


Crashdetect giving weird errors

So I'm just totally lost with these crashdetect errors. I'm not sure if it's an issue with the plugin but the errors are not helpful at all when it comes to knowing what the problem is and fixing it. I'm creating an issue here in an attempt to see if it's crashdetect or maybe simply how we are using the plugin.
[06/11/2014 11:44:48] [debug] Server crashed while executing VortexRoleplay.amx
[06/11/2014 11:44:48] [debug] AMX backtrace:
[06/11/2014 11:44:48] [debug] #0 00000030 in ?? (... <12 arguments>) at C:\Program Files (x86)\pawno\include\float.inc:108
[06/11/2014 11:44:48] [debug] #1 00000030 in public cmd_accept () at C:\Program Files (x86)\pawno\include\float.inc:108
[06/11/2014 11:44:48] [debug] #2 native CallLocalFunction () [080dc700] from samp03svr
[06/11/2014 11:44:48] [debug] #3 0001f018 in public OnPlayerCommandText (playerid=16, cmdtext[]=@0x0471661c "/accept vehicle") at C:\Program Files (x86)\pawno\include\zcmd.inc:110
[06/11/2014 11:44:48] [debug] Native backtrace:
[06/11/2014 11:44:48] [debug] #0 f739909b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #1 f73942d2 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #2 f7394ebc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #3 f7395366 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #4 f7398cec in ?? () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #5 f7775410 in ?? ()
[06/11/2014 11:44:48] [debug] #6 f00fdc78 in ?? () from `Â¨sÃ·^HÂ¦sÃ·|Ã¸^S^O|Ã¸^S^O}Ã¸^S^O|Ã¸^S^O-Ãº^S^O|Ãº^S^OÃ´Ã™sÃ·^X
[06/11/2014 11:44:48] [debug] #7 f7394218 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #8 f7397aa9 in ?? () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #9 080dc9a2 in ?? () from ./samp03svr
[06/11/2014 11:44:48] [debug] #10 08093f54 in ?? () from ./samp03svr
[06/11/2014 11:44:48] [debug] #11 f7391b9c in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #12 f7397d38 in ?? () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #13 f739e1f8 in amx_Exec () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #14 f7394218 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #15 f7397aa9 in ?? () from plugins/crashdetect.so
[06/11/2014 11:44:48] [debug] #16 080a3f62 in ?? () from ./samp03svr
[06/11/2014 11:44:48] [debug] #17 080af9c1 in ?? () from ./samp03svr
[06/11/2014 11:44:48] [debug] #18 08071af8 in ?? () from ./samp03svr
[06/11/2014 11:44:48] [debug] #19 08071bf2 in ?? () from ./samp03svr
[06/11/2014 11:44:48] [debug] #20 0807bab0 in ?? () from ./samp03svr
[06/11/2014 11:44:48] [debug] #21 080ad09d in ?? () from ./samp03svr
[06/11/2014 11:44:48] [debug] #22 080ad242 in ?? () from ./samp03svr
[06/11/2014 11:44:48] [debug] #23 080a85ce in ?? () from ./samp03svr
[06/11/2014 11:44:48] [debug] #24 f74844d3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6

[06/11/2014 13:02:22] [debug] Server crashed while executing VortexRoleplay.amx
[06/11/2014 13:02:22] [debug] AMX backtrace:
[06/11/2014 13:02:22] [debug] #0 00000030 in ?? (... <13 arguments>) at C:\Program Files (x86)\pawno\include\float.inc:108
[06/11/2014 13:02:22] [debug] #1 00000030 in public OnPlayerDisconnect () at C:\Program Files (x86)\pawno\include\float.inc:108
[06/11/2014 13:02:22] [debug] Native backtrace:
[06/11/2014 13:02:22] [debug] #0 f73c509b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[06/11/2014 13:02:22] [debug] #1 f73c02d2 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[06/11/2014 13:02:22] [debug] #2 f73c0ebc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[06/11/2014 13:02:22] [debug] #3 f73c1366 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[06/11/2014 13:02:22] [debug] #4 f73c4cec in ?? () from plugins/crashdetect.so
[06/11/2014 13:02:22] [debug] #5 f77a1410 in ?? ()
[06/11/2014 13:02:22] [debug] #6 ea19fc78 in ?? () from `hvÃ·^HfvÃ·$%Ãµ
[06/11/2014 13:02:22] [debug] $%Ãµ
[06/11/2014 13:02:22] [debug] %%Ãµ
[06/11/2014 13:02:22] [debug] $%Ãµ
[06/11/2014 13:02:22] [debug] Ã•&Ãµ
[06/11/2014 13:02:22] [debug] $'Ãµ
[06/11/2014 13:02:22] [debug] Ã´<99>vÃ·^X
[06/11/2014 13:02:22] [debug] #7 f73c0218 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so
[06/11/2014 13:02:22] [debug] #8 f73c3aa9 in ?? () from plugins/crashdetect.so
[06/11/2014 13:02:22] [debug] #9 080a3b6a in ?? () from ./samp03svr
[06/11/2014 13:02:22] [debug] #10 080ce111 in ?? () from ./samp03svr
[06/11/2014 13:02:22] [debug] #11 080ab934 in ?? () from ./samp03svr
[06/11/2014 13:02:22] [debug] #12 080ad189 in ?? () from ./samp03svr
[06/11/2014 13:02:22] [debug] #13 080ad242 in ?? () from ./samp03svr
[06/11/2014 13:02:22] [debug] #14 080a85ce in ?? () from ./samp03svr
[06/11/2014 13:02:22] [debug] #15 f74b04d3 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6

[06/11/2014 18:02:46] [debug] Server crashed while executing VortexRoleplay.amx
[06/11/2014 18:02:46] [debug] AMX backtrace:
[06/11/2014 18:02:46] [debug] #0 00000039 in ?? (... <13 arguments>) at C:\Program Files (x86)\pawno\include\float.inc:108
[06/11/2014 18:02:46] [debug] #1 00000039 in public OneSecondPublicPlayer@_yT () at C:\Program Files (x86)\pawno\include\float.inc:108

The weird thing is the server was fine for a while after the last script update. Hopefully you understand these crash errors better than I can or can steer me in the right direction for how to get more informative debug info.

não estou conseguindo resolver isso . alguém

poderia me ajudar


connect promise never resolves on reconnect if initial connect fails

Hi,I found a question.If I close the amqp server,such as ActiveMQ, and start my client,then start ActiveMQ server, I found this code to run:
self._session.once(Session.Mapped, function(s) {
  debug('mapped');
  resolve(self);
});

but in my code not run to then method. i guess it is promise problem, so I write a test case for promise,like this:
var Promise = require("promise");
function t(){
  console.log("test");
}

function test(){
  return new Promise(function(fulfill,reject){
    setInterval(function(){
      fulfill(true);
    },1000);
  });
}

test().then(t)

the result only output "test" once.
Do you understand me?

@kolonse are you saying that when you run this code, you never get to the console.log('do something here');:
var AmqpClient = require('amqp10').Client;
var client = new AmqpClient();
client.connect('amqp://<your server>')
  .then(function() {
    console.log('do something here');     // <--- does this ever happen?
  });

If that is the case, could you try running that script with the DEBUG=amqp* environment variable set?

@mbroadst   Yes! I tried it!  Never get to console.log('do something here');  But get to debug('mapped');

@kolonse would it be possible for you to provide a trace log using the environment variable "DEBUG=amqp*" before your script? This will help us better diagnose what's happening

@mbroadst  here is my print:
"C:\Program Files (x86)\JetBrains\WebStorm 8.0.3\bin\runnerw.exe" C:\node\node.exe testLogClient.js
Fri, 20 Nov 2015 02:49:35 GMT amqp10:client connecting to: amqp://localhost
run
Fri, 20 Nov 2015 02:49:35 GMT amqp10:connection Connecting to localhost:5672 via straight-up sockets
Fri, 20 Nov 2015 02:49:35 GMT amqp10:connection Transitioning from DISCONNECTED to START due to connect
Fri, 20 Nov 2015 02:49:36 GMT amqp10:connection Error from socket: Error: connect ECONNREFUSED
Fri, 20 Nov 2015 02:49:36 GMT amqp10:client connection error:  { [Error: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect' }
Fri, 20 Nov 2015 02:49:36 GMT amqp10:client disconnected
Fri, 20 Nov 2015 02:49:36 GMT amqp10:connection Transitioning from START to DISCONNECTED due to error
Fri, 20 Nov 2015 02:49:36 GMT amqp10:client connecting to: amqp://localhost
Fri, 20 Nov 2015 02:49:36 GMT amqp10:connection Connecting to localhost:5672 via straight-up sockets
Fri, 20 Nov 2015 02:49:36 GMT amqp10:connection Transitioning from DISCONNECTED to START due to connect
Fri, 20 Nov 2015 02:49:37 GMT amqp10:connection Error from socket: Error: connect ECONNREFUSED
Fri, 20 Nov 2015 02:49:37 GMT amqp10:client connection error:  { [Error: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect' }
Fri, 20 Nov 2015 02:49:37 GMT amqp10:client disconnected
Fri, 20 Nov 2015 02:49:37 GMT amqp10:connection Transitioning from START to DISCONNECTED due to error
Fri, 20 Nov 2015 02:49:38 GMT amqp10:client connecting to: amqp://localhost
Fri, 20 Nov 2015 02:49:38 GMT amqp10:connection Connecting to localhost:5672 via straight-up sockets
Fri, 20 Nov 2015 02:49:38 GMT amqp10:connection Transitioning from DISCONNECTED to START due to connect
Fri, 20 Nov 2015 02:49:39 GMT amqp10:connection Error from socket: Error: connect ECONNREFUSED
Fri, 20 Nov 2015 02:49:39 GMT amqp10:client connection error:  { [Error: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect' }
Fri, 20 Nov 2015 02:49:39 GMT amqp10:client disconnected
Fri, 20 Nov 2015 02:49:39 GMT amqp10:connection Transitioning from START to DISCONNECTED due to error
Fri, 20 Nov 2015 02:49:40 GMT amqp10:client connecting to: amqp://localhost
Fri, 20 Nov 2015 02:49:40 GMT amqp10:connection Connecting to localhost:5672 via straight-up sockets
Fri, 20 Nov 2015 02:49:40 GMT amqp10:connection Transitioning from DISCONNECTED to START due to connect
Fri, 20 Nov 2015 02:49:41 GMT amqp10:connection Error from socket: Error: connect ECONNREFUSED
Fri, 20 Nov 2015 02:49:41 GMT amqp10:client connection error:  { [Error: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect' }
Fri, 20 Nov 2015 02:49:41 GMT amqp10:client disconnected
Fri, 20 Nov 2015 02:49:41 GMT amqp10:connection Transitioning from START to DISCONNECTED due to error
Fri, 20 Nov 2015 02:49:43 GMT amqp10:client connecting to: amqp://localhost
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Connecting to localhost:5672 via straight-up sockets
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Transitioning from DISCONNECTED to START due to connect
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Sending Header 414d515000010000
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Transitioning from START to HDR_SENT due to connected
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Rx: 414d515000010000
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Server AMQP Version: 414d515000010000 vs 414d515000010000
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Transitioning from HDR_SENT to HDR_EXCH due to validVersion
Fri, 20 Nov 2015 02:49:43 GMT amqp10:framing:amqp Encoding performative: {"descriptor":{"buffer":[0,0,0,0,0,0,0,16],"offset":0},"value":{"id":"conn1447987783644","hostname":"localhost","maxFrameSize":{"typeName":"uint","value":4294967295},"channelMax":{"typeName":"ushort","value":65535},"idleTimeout":{"typeName":"uint","value":120000},"outgoingLocales":{"contents":"en-US"},"incomingLocales":{"contents":"en-US"},"offeredCapabilities":null,"desiredCapabilities":null,"properties":{},"encodeOrdering":["id","hostname","maxFrameSize","channelMax","idleTimeout","outgoingLocales","incomingLocales","offeredCapabilities","desiredCapabilities","properties"]}}
Fri, 20 Nov 2015 02:49:43 GMT amqp10:framing Sending frame: OpenFrame: [0,0,0,76,2,0,0,0,0,83,16,192,63,10,161,17,99,111,110,110,49,52,52,55,57,56,55,55,56,51,54,52,52,161,9,108,111,99,97,108,104,111,115,116,112,255,255,255,255,96,255,255,112,0,1,212,192,163,5,101,110,45,85,83,163,5,101,110,45,85,83,64,64,193,1,0]: 0000004c02000000005310c03f0aa111636f6e6e31343437393837373833363434a1096c6f63616c686f737470ffffffff60ffff700001d4c0a305656e2d5553a305656e2d55534040c10100
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Transitioning from HDR_EXCH to OPEN_SENT due to sendOpen
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Rx: 000000a602000000005310c0990aa100a10070ffffffff607fff7000003a984040e01201a30f414e4f4e594d4f55532d52454c415940c16e0aa30770726f64756374a1084163746976654d51a30c746f7069632d707265666978a108746f7069633a2f2fa30c71756575652d707265666978a10871756575653a2f2fa30776657273696f6ea106352e31322e31a308706c6174666f726da10d4a6176612f312e382e305f3630
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Transitioning from OPEN_SENT to OPENED due to openReceived
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Connected with params { maxFrameSize=4294967295, channelMax=32767, idleTimeout=15000 }
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Setting heartbeat check timeout to 1875
Fri, 20 Nov 2015 02:49:43 GMT amqp10:client connected
Fri, 20 Nov 2015 02:49:43 GMT amqp10:session Transitioning from UNMAPPED to BEGIN_SENT due to sendBegin
Fri, 20 Nov 2015 02:49:43 GMT amqp10:framing:amqp Encoding performative: {"descriptor":{"buffer":[0,0,0,0,0,0,0,17],"offset":0},"value":{"remoteChannel":null,"nextOutgoingId":{"typeName":"uint","value":1},"incomingWindow":{"typeName":"uint","value":100},"outgoingWindow":{"typeName":"uint","value":100},"handleMax":{"typeName":"uint","value":4294967295},"offeredCapabilities":null,"desiredCapabilities":null,"properties":{},"encodeOrdering":["remoteChannel","nextOutgoingId","incomingWindow","outgoingWindow","handleMax","offeredCapabilities","desiredCapabilities","properties"]}}
Fri, 20 Nov 2015 02:49:43 GMT amqp10:framing Sending frame: BeginFrame: [0,0,0,31,2,0,0,1,0,83,17,192,18,8,64,82,1,82,100,82,100,112,255,255,255,255,64,64,193,1,0]: 0000001f02000001005311c012084052015264526470ffffffff4040c10100
Fri, 20 Nov 2015 02:49:43 GMT amqp10:connection Rx: 0000001a02000000005311c00d0560000152014343700000ffff0000001802000000005313c00b045201707fffffff520143
Fri, 20 Nov 2015 02:49:43 GMT amqp10:session processing frame(BeginFrame): {"frameType":0,"channel":0,"remoteChannel":1,"nextOutgoingId":1,"incomingWindow":0,"outgoingWindow":0,"handleMax":65535,"properties":{}}
Fri, 20 Nov 2015 02:49:43 GMT amqp10:session Transitioning from BEGIN_SENT to MAPPED due to beginReceived
Fri, 20 Nov 2015 02:49:43 GMT amqp10:session On BEGIN_RCVD, setting params to (1,0,0,65535)
Fri, 20 Nov 2015 02:49:43 GMT amqp10:client mapped
Fri, 20 Nov 2015 02:49:43 GMT amqp10:session processing frame(FlowFrame): {"frameType":0,"channel":0,"nextIncomingId":1,"incomingWindow":2147483647,"nextOutgoingId":1,"outgoingWindow":0,"drain":false,"echo":false,"properties":{}}
Fri, 20 Nov 2015 02:49:43 GMT amqp10:session New Incoming Window (known id):<PHONE_NUMBER> = 1 +<PHONE_NUMBER> - 1
Fri, 20 Nov 2015 02:49:51 GMT amqp10:framing Sending frame: HeartbeatFrame: [0,0,0,8,2,0,0,0]:<PHONE_NUMBER>000000

@kolonse one more question: what broker are you running against? (version as well please)

@kolonse hmm very strange, I can see right at the end there that it says:
Fri, 20 Nov 2015 02:49:43 GMT amqp10:client mapped

This indicates that the connect promise should be resolved properly. Could you post the source code for testLogClient.js? Maybe there's a typo there we can help sort out for you.

@mbroadst  OK! testLogClient.js is a test file.  MsgSenderClient.js is my real code!
MsgSenderClient.js:
'use strict';
var AMQPClient = require("amqp10").Client;
console.debug = console.trace;
var MsgSenderClient = function(opt){
opt = opt || {
reconnect:{
forever:true,
strategy: 'fibonacci',
retries:10
}
} ;
this.opt = opt ;
this.logger = opt.logger || console ;
this.uri = opt.uri || "amqp://localhost" ;
this.name = opt.name || "amq.msg.queue" ;
this.client = new AMQPClient();
this.sender = null ;
}
MsgSenderClient.prototype.run = function(callback){
var self = this ;
callback = callback || function(){} ;
self.client.connect(this.uri)
.then(function(){
// 创建接收者
return self.client.createSender(self.name);
})
.then(function(sender){
self.sender = sender ;
callback(null);
})
.catch(function(err){
// 出现错误那么要通知用户层
callback(err);
});
}
MsgSenderClient.prototype.send = function(message,callback){
callback = callback || function(){} ;
var self = this ;
if(self.sender){
self.sender.send(message)
.then(function(){
callback(null);
})
.then(function(err){
callback(err)
});
}else{
callback(new Error("当前发送器未创建成功"));
}
}
MsgSenderClient.prototype.sendMsg = function(event,data,callback){
var message = {
event:event,
createAt:new Date(),
data:data
}
this.send(message,callback);
}
module.exports = function(opt){
var ret = new MsgSenderClient(opt);
//ret.run();
return ret ;
}
testLogClient.js:
var Client = require("./module/MsgSenderClient/MsgSenderClient.js");
var Promise = require("promise");
var moment = require("moment");
var client = Client();
console.log("run");
client.run(function(err){
console.log("go");
if(err) {
console.log(err);
return;
}
var message = {event:"test",data:{
uid:30078,
itemID:2001,
sysID:1,
type:0,
num:1000,
time:moment().format("YYYY-MM-DD HH:mm:ss")
}};
setTimeout(function(){
var arr = [];
function job(msg){
return new Promise(function(fulfill,reject){
client.send(msg,function(err){
if(err) reject(err);
else fulfill();
})
});
}
var count = 1 ;
var Times = 1 ;
for(var j = 0; j < count; j ++){
for( var i = 0; i < Times; i ++ ){
arr.push(job(message));
}
var b = new Date().getTime();
Promise.all(arr).then(function(){
var time = new Date().getTime() - b ;
console.log("Cost Time All: ",time / 1000 ," s");
console.log("Cost Time All: ",Times * 1000 / time, " 个/s");
}).catch(function(){
console.log("error");
})
}
},20000);
})

MsgSenderClient.prototype.send = function(message,callback){
  callback = callback || function(){} ;
  var self = this ;
  if(self.sender){
    self.sender.send(message)
      .then(function(){
        callback(null);
      })
      .then(function(err){
        callback(err)
      });
  }else{
    callback(new Error("当前发送器未创建成功"));
  }
}

That second then(function(err)... should be catch(function(err)..., but other than that the code seems reasonable.
So if you set a breakpoint or add a console.log before createSender here:
MsgSenderClient.prototype.run = function(callback){
  var self = this ;
  callback = callback || function(){} ;
  self.client.connect(this.uri)
    .then(function(){
// 创建接收者
      return self.client.createSender(self.name);

it never gets hit? @mbroadst is right, if you look at the logs your session is getting mapped, and we're even getting a flow frame back from the server, so we should be resolving the promise.

yeah that then should be a catch, but even more confusingly in MsgSenderClient.prototype.sendMsg you seem to want a "callback" API for AMQPClient.send, but then in testLogClient.js you wrap the newly made callback API with another promise! (see: function job(msg)) Why not just use the original promise offered by the amqp10 API? I'll try to run this locally and get a cleaned up version, there are a few more tricks you can use if you indeed want a callback api (and perhaps something we can expose if enough people are interested in it)

@kolonse I've run your code locally against qpidd and even without changing that extra then to a catch it still works for me.
If you're using a broker we don't currently test against then you might have uncovered a bug (either on our side, or the broker's side), so it would be helpful to provide more information about what broker you're using, and how it's configured.

@mbroadst   I use apache-activemq for broker. config is default!

@noodlefrenzy   Thanks for you !   I will modify it!

@kolonse hm I'm not sure what to say. I just downloaded ActiveMQ version 5.12.1, and ran it from the downloads folder completely unmodified. Then I ran your code, also completely unmodified, and here was the output:
mbroadst@retinoid:issue190 (remove-lodash)$ DEBUG=amqp* node testLogClient.js
run
  amqp10:client connecting to: amqp://<IP_ADDRESS> +0ms
  amqp10:connection Connecting to <IP_ADDRESS>:5672 via straight-up sockets +9ms
  amqp10:connection Transitioning from DISCONNECTED to START due to connect +1ms
  amqp10:connection Sending Header 414d515000010000 +3ms
  amqp10:connection Transitioning from START to HDR_SENT due to connected +0ms
  amqp10:connection Rx: 414d515000010000 +184ms
  amqp10:connection Server AMQP Version: 414d515000010000 vs 414d515000010000 +1ms
  amqp10:connection Transitioning from HDR_SENT to HDR_EXCH due to validVersion +0ms
  amqp10:framing:amqp Encoding performative: {"descriptor":{"buffer":{"type":"Buffer","data":[0,0,0,0,0,0,0,16]},"offset":0},"value":{"id":"conn1448120733950","hostname":"<IP_ADDRESS>","maxFrameSize":{"typeName":"uint","value":4294967295},"channelMax":{"typeName":"ushort","value":65535},"idleTimeout":{"typeName":"uint","value":120000},"outgoingLocales":{"contents":"en-US"},"incomingLocales":{"contents":"en-US"},"offeredCapabilities":null,"desiredCapabilities":null,"properties":{},"encodeOrdering":["id","hostname","maxFrameSize","channelMax","idleTimeout","outgoingLocales","incomingLocales","offeredCapabilities","desiredCapabilities","properties"]}} +2ms
  amqp10:framing Sending frame: OpenFrame: {"type":"Buffer","data":[0,0,0,78,2,0,0,0,0,83,16,192,65,10,161,17,99,111,110,110,49,52,52,56,49,50,48,55,51,51,57,53,48,161,11,49,57,50,46,49,54,56,46,49,46,57,112,255,255,255,255,96,255,255,112,0,1,212,192,163,5,101,110,45,85,83,163,5,101,110,45,85,83,64,64,193,1,0]}: 0000004e02000000005310c0410aa111636f6e6e31343438313230373333393530a10b3139322e3136382e312e3970ffffffff60ffff700001d4c0a305656e2d5553a305656e2d55534040c10100 +1ms
  amqp10:connection Transitioning from HDR_EXCH to OPEN_SENT due to sendOpen +1ms
  amqp10:connection Rx: 000000a602000000005310c0990aa100a10070ffffffff607fff7000003a984040e01201a30f414e4f4e594d4f55532d52454c415940c16e0aa30770726f64756374a1084163746976654d51a308706c6174666f726da10d4a6176612f312e372e305f3835a30c746f7069632d707265666978a108746f7069633a2f2fa30c71756575652d707265666978a10871756575653a2f2fa30776657273696f6ea106352e31322e31 +21ms
  amqp10:connection Transitioning from OPEN_SENT to OPENED due to openReceived +3ms
  amqp10:connection Connected with params { maxFrameSize=4294967295, channelMax=32767, idleTimeout=15000 } +0ms
  amqp10:connection Setting heartbeat check timeout to 1875 +1ms
  amqp10:client connected +0ms
  amqp10:session Transitioning from UNMAPPED to BEGIN_SENT due to sendBegin +2ms
  amqp10:framing:amqp Encoding performative: {"descriptor":{"buffer":{"type":"Buffer","data":[0,0,0,0,0,0,0,17]},"offset":0},"value":{"remoteChannel":null,"nextOutgoingId":{"typeName":"uint","value":1},"incomingWindow":{"typeName":"uint","value":100},"outgoingWindow":{"typeName":"uint","value":100},"handleMax":{"typeName":"uint","value":4294967295},"offeredCapabilities":null,"desiredCapabilities":null,"properties":{},"encodeOrdering":["remoteChannel","nextOutgoingId","incomingWindow","outgoingWindow","handleMax","offeredCapabilities","desiredCapabilities","properties"]}} +0ms
  amqp10:framing Sending frame: BeginFrame: {"type":"Buffer","data":[0,0,0,31,2,0,0,1,0,83,17,192,18,8,64,82,1,82,100,82,100,112,255,255,255,255,64,64,193,1,0]}: 0000001f02000001005311c012084052015264526470ffffffff4040c10100 +1ms
  amqp10:connection Rx: 0000001a02000000005311c00d0560000152014343700000ffff0000001802000000005313c00b045201707fffffff520143 +8ms
  amqp10:session processing frame(BeginFrame): {"frameType":0,"channel":0,"remoteChannel":1,"nextOutgoingId":1,"incomingWindow":0,"outgoingWindow":0,"handleMax":65535,"properties":{}} +1ms
  amqp10:session Transitioning from BEGIN_SENT to MAPPED due to beginReceived +0ms
  amqp10:session On BEGIN_RCVD, setting params to (1,0,0,65535) +0ms
  amqp10:client mapped +1ms
  amqp10:session processing frame(FlowFrame): {"frameType":0,"channel":0,"nextIncomingId":1,"incomingWindow":2147483647,"nextOutgoingId":1,"outgoingWindow":0,"drain":false,"echo":false,"properties":{}} +2ms
  amqp10:session New Incoming Window (known id):<PHONE_NUMBER> = 1 +<PHONE_NUMBER> - 1 +0ms
  amqp10:link undefined:0: Transitioning from DETACHED to ATTACHING due to sendAttach +3ms
  amqp10:link attach CH=1, Handle=0 +1ms
  amqp10:framing:amqp Encoding performative: {"descriptor":{"buffer":{"type":"Buffer","data":[0,0,0,0,0,0,0,18]},"offset":0},"value":{"name":"amq.msg.queue_4fa3c456-ec7a-4744-ad3e-12c4f0b864fb","handle":{"typeName":"uint","value":0},"role":false,"senderSettleMode":{"typeName":"ubyte","value":2},"receiverSettleMode":{"typeName":"ubyte","value":0},"source":{"descriptor":{"buffer":{"type":"Buffer","data":[0,0,0,0,0,0,0,40]},"offset":0},"address":"localhost","durable":0,"expiryPolicy":"session-end","timeout":0,"dynamic":false},"target":{"descriptor":{"buffer":{"type":"Buffer","data":[0,0,0,0,0,0,0,41]},"offset":0},"address":"amq.msg.queue","durable":0,"expiryPolicy":{"contents":"session-end"},"timeout":0,"dynamic":false},"unsettled":{},"incompleteUnsettled":false,"initialDeliveryCount":{"typeName":"uint","value":1},"maxMessageSize":{"typeName":"ulong","value":0},"offeredCapabilities":null,"desiredCapabilities":null,"properties":{},"encodeOrdering":["name","handle","role","senderSettleMode","receiverSettleMode","source","target","unsettled","incompleteUnsettled","initialDeliveryCount","maxMessageSize","offeredCapabilities","desiredCapabilities","properties"]}} +1ms
  amqp10:framing Sending frame: AttachFrame: {"type":"Buffer","data":[0,0,0,168,2,0,0,1,0,83,18,192,155,14,161,50,97,109,113,46,109,115,103,46,113,117,101,117,101,95,52,102,97,51,99,52,53,54,45,101,99,55,97,45,52,55,52,52,45,97,100,51,101,45,49,50,99,52,102,48,98,56,54,52,102,98,67,66,80,2,80,0,0,83,40,192,38,11,161,9,108,111,99,97,108,104,111,115,116,67,163,11,115,101,115,115,105,111,110,45,101,110,100,67,66,193,1,0,64,193,1,0,64,64,64,0,83,41,192,36,7,161,13,97,109,113,46,109,115,103,46,113,117,101,117,101,67,163,11,115,101,115,115,105,111,110,45,101,110,100,67,66,193,1,0,64,193,1,0,66,82,1,68,64,64,193,1,0]}: 000000a802000001005312c09b0ea132616d712e6d73672e71756575655f34666133633435362d656337612d343734342d616433652d313263346630623836346662434250025000005328c0260ba1096c6f63616c686f737443a30b73657373696f6e2d656e644342c1010040c10100404040005329c02407a10d616d712e6d73672e717565756543a30b73657373696f6e2d656e644342c1010040c10100425201444040c10100 +34ms
  amqp10:connection Rx:<PHONE_NUMBER>000000005312c08b07a132616d712e6d73672e71756575655f34666133633435362d656337612d343734342d616433652d313263346630623836346662434150025000005328c02308a1096c6f63616c686f737443a30b73657373696f6e2d656e644342c1010040c10100005329c02306a10d616d712e6d73672e717565756543a30b73657373696f6e2d656e644342c101000000002002000000005313c013075201707fffffff52014343520170000003e8 +44ms
  amqp10:session processing frame(AttachFrame): {"frameType":0,"channel":0,"name":"amq.msg.queue_4fa3c456-ec7a-4744-ad3e-12c4f0b864fb","handle":0,"role":true,"senderSettleMode":2,"receiverSettleMode":0,"source":{"descriptor":{"buffer":{"type":"Buffer","data":[0,0,0,0,0,0,0,40]},"offset":0},"address":"localhost","durable":0,"expiryPolicy":{"contents":"session-end"},"timeout":0,"dynamic":false,"dynamicNodeProperties":{},"distributionMode":null,"filter":{}},"target":{"descriptor":{"buffer":{"type":"Buffer","data":[0,0,0,0,0,0,0,41]},"offset":0},"address":"amq.msg.queue","durable":0,"expiryPolicy":{"contents":"session-end"},"timeout":0,"dynamic":false,"dynamicNodeProperties":{}},"unsettled":{},"incompleteUnsettled":false,"maxMessageSize":0,"properties":{}} +1ms
  amqp10:link amq.msg.queue_4fa3c456-ec7a-4744-ad3e-12c4f0b864fb:0: Transitioning from ATTACHING to ATTACHED due to attachReceived +0ms
  amqp10:link amq.msg.queue_4fa3c456-ec7a-4744-ad3e-12c4f0b864fb: attached CH=[1=>0], Handle=[0=>0] +0ms
  amqp10:session processing frame(FlowFrame): {"frameType":0,"channel":0,"nextIncomingId":1,"incomingWindow":2147483647,"nextOutgoingId":1,"outgoingWindow":0,"handle":0,"deliveryCount":1,"linkCredit":1000,"drain":false,"echo":false,"properties":{}} +13ms
  amqp10:session New Incoming Window (known id):<PHONE_NUMBER> = 1 +<PHONE_NUMBER> - 1 +1ms
  amqp10:link:sender setting credits (1000,2147483647) +1ms
go
  amqp10:framing Sending frame: HeartbeatFrame: {"type":"Buffer","data":[0,0,0,8,2,0,0,0]}:<PHONE_NUMBER>000000 +9s
  amqp10:framing Sending frame: HeartbeatFrame: {"type":"Buffer","data":[0,0,0,8,2,0,0,0]}:<PHONE_NUMBER>000000 +8s
  amqp10:link:sender canSend(1000,2147483647) = true +3s
  amqp10:link:sender sending:  +1ms { event: 'test',
  data:
   { uid: 30078,
     itemID: 2001,
     sysID: 1,
     type: 0,
     num: 1000,
     time: Sat Nov 21 2015 10:45:34 GMT-0500 (EST) } }
  amqp10:framing:amqp Encoding performative: {"descriptor":{"buffer":{"type":"Buffer","data":[0,0,0,0,0,0,0,20]},"offset":0},"value":{"handle":{"typeName":"uint","value":0},"deliveryId":{"typeName":"uint","value":1},"deliveryTag":{"type":"Buffer","data":[49]},"messageFormat":{"typeName":"uint","value":0},"settled":false,"more":false,"receiverSettleMode":{"typeName":"ubyte","value":null},"state":null,"resume":false,"aborted":false,"batchable":false,"encodeOrdering":["handle","deliveryId","deliveryTag","messageFormat","settled","more","receiverSettleMode","state","resume","aborted","batchable"]}} +4ms
  amqp10:framing Sending frame: TransferFrame: {"type":"Buffer","data":[0,0,0,121,2,0,0,1,0,83,20,192,15,11,67,82,1,160,1,49,67,66,66,64,64,66,66,66,0,83,119,193,88,4,161,5,101,118,101,110,116,161,4,116,101,115,116,161,4,100,97,116,97,193,66,12,161,3,117,105,100,113,0,0,117,126,161,6,105,116,101,109,73,68,113,0,0,7,209,161,5,115,121,115,73,68,84,1,161,4,116,121,112,101,84,0,161,3,110,117,109,113,0,0,3,232,161,4,116,105,109,101,131,0,0,1,81,42,184,210,82]}:<PHONE_NUMBER>000001005314c00f0b435201a001314342424040424242005377c15804a1056576656e74a10474657374a10464617461c1420ca103756964710000757ea1066974656d494471000007d1a10573797349445401a104747970655400a1036e756d71000003e8a10474696d6583000001512ab8d252 +2ms
  amqp10:connection Rx:<PHONE_NUMBER>000000005315c00b0541520152014100532445 +14ms
  amqp10:session processing frame(DispositionFrame): {"frameType":0,"channel":0,"role":true,"first":1,"last":1,"settled":true,"state":{"descriptor":{"buffer":{"type":"Buffer","data":[0,0,0,0,0,0,0,36]},"offset":0}},"batchable":false} +1ms
Cost Time All:  0.014  s

@mbroadst  Yeah!  If your ActiveMQ is running before the testLogClient run, it's OK! But I want test this case: first, I start node testLogClient.js . second, start ActiveMQ!  My question is happen!  Other case is ok!

@kolonse hey, thanks for the bug report! I think we finally figured this one out, and I hope you don't mind me changing the title of the issue. I've published version 2.1.2 with an included fix for this reconnect issue, please give it a shot

@mbroadst  Very Thanks! It work! Receive my knees!


GitHub: Cannot upload files to empty github repo

Related to #2976
Steps

Create a new repository on github
Configure the github addon for a project and select the new repository
Go to the project's files tab
Click on the github addon folder and look at the branch select menu
Upload a file to the linked github repo

Expected
The branch select menu is set to "master" and I can upload files to the repository.
Actual
The select menu is empty:

When I try to upload a file, I get an error message:

@GaryKriebel I will work on this

Got it @bdyetton -- and we'll get you added to COS org so we can assign directly.

This should be fixed now thanks to @bdyetton

Yes, this fix will be in release 0.43.0

@sloria Uploading is already fixed on prod.


Correctness tests

Write tests that check that the resulted lumping is a lumping by substitution, similarly to _check_lumping in CLUE

added system consistency check, still need to write tests

done


Use 'awk' in place of 'bc' for wider platform support

bc is not installed by default on many systems while awk is pre-installed on most systems and defined as core or base package in those systems.
So I think it would be better to use awk for wider platform support.

Thanks! math in shell scripts is so crappy. :[ thanks for this fix!!


clientSecret hash is leaked on GET request

Currently the hash of the clientsecret is leaked if details to a clientId are requested.
It would be better to nullify this value in Oauth2ClientClientIdGetHandler.java before returning it.

Thanks for pointing out this issue. I have revisited all get endpoints and using client copy to replace the object returned from in-memory data grid. When we are doing this, there is no way for client owner to get secret if they forget it. We need to give another interface to reset secret or query secret somehow. Must login as client owner to do that. Currently, the security is not enabled by default on these microservices but will soon be enabled and only portal will be able to access these registration endpoints.


auto update is never triggered

it seems that the update script is never executed.
as i had a sever that was online for more than 14 days.
and after i did a manual restart it started to update.
also would it maby be a good idea that there is also a forced restart time window.
to circumvent the issue above
also it would be nice if we could set the timezone  so the update window time reflect your timezone

In the docker-compose.yaml file, there is a timezone setting: - TZ=America/Los_Angeles        # Timezone setting: Change this to your local timezone. Ex.America/New_York, Europe/Berlin, Asia/Tokyo. To change the container to the correct timezone instead of using the default UTC, simply replace America/Los_Angeles with your own timezone.

yes. damn i completely overlooked that line.
and do you have any ideas on the update script?

you can enable the POK monitor and set the interval to one so it searches for updates every hour and you should see in the container log when the update script kick in and says no update available and that means the the script is running.. another thing to see if the devs have release an update for unofficial servers you can check on here  https://steamdb.info/app/2430930/depots/ to see if the devs have release an update

from my own testing today it seems like the auto updated is working fine here are the docker logs from my host machine and it seems to give the countdown then shutdown and restart the server correctly as seen here below:
[2024.02.08-23.05.00:377][ 57]2024.02.08_23.05.00: SERVER: Server restarting in 5 minute(s) for updates.
[2024.02.08-23.05.36:947][157]2024.02.08_23.05.36: Tribe Juicy Cactus, ID<PHONE_NUMBER>: Day 1312, 09:34:57: Nemisis froze dmg - Lvl 216 (Procoptodon))
[2024.02.08-23.05.36:959][157]Frozen by ID: 00025cef0b744e5ebc8d9662de71500d
[2024.02.08-23.05.47:239][441]2024.02.08_23.05.47: Tribe Juicy Cactus, ID<PHONE_NUMBER>: Day 1312, 09:37:05: Nemisis froze More Aussie - Lvl 22 (Procoptodon))
[2024.02.08-23.05.47:243][441]Frozen by ID: 00025cef0b744e5ebc8d9662de71500d
[2024.02.08-23.05.55:143][660]2024.02.08_23.05.55: Tribe Juicy Cactus, ID<PHONE_NUMBER>: Day 1312, 09:38:38: Nemisis froze Hp Stam Wait - Lvl 143 (Procoptodon))
[2024.02.08-23.05.55:172][660]Frozen by ID: 00025cef0b744e5ebc8d9662de71500d
[2024.02.08-23.06.02:971][873]2024.02.08_23.06.02: Tribe Juicy Cactus, ID<PHONE_NUMBER>: Day 1312, 09:40:00: Nemisis froze HW - Lvl 94 (Procoptodon))
[2024.02.08-23.06.02:993][873]Frozen by ID: 00025cef0b744e5ebc8d9662de71500d
[2024.02.08-23.08.03:743][502]2024.02.08_23.08.03: Saving world...
[2024.02.08-23.08.03:764][502]2024.02.08_23.08.03: World Save Complete. Took: 1.111845
[2024.02.08-23.09.50:501][741]2024.02.08_23.09.50: SERVER: Server restarting in 10 second(s) for updates.
Server received, But no response!!
Server received, But no response!!
[2024.02.08-23.09.51:588][774]2024.02.08_23.09.51: SERVER: Server restarting in 9 second(s) for updates.
Server received, But no response!!
[2024.02.08-23.09.52:672][806]2024.02.08_23.09.52: SERVER: Server restarting in 8 second(s) for updates.
Server received, But no response!!
[2024.02.08-23.09.53:777][839]2024.02.08_23.09.53: SERVER: Server restarting in 7 second(s) for updates.
Server received, But no response!!
[2024.02.08-23.09.54:876][872]2024.02.08_23.09.54: SERVER: Server restarting in 6 second(s) for updates.
Server received, But no response!!
[2024.02.08-23.09.55:977][905]2024.02.08_23.09.55: SERVER: Server restarting in 5 second(s) for updates.
Server received, But no response!!
[2024.02.08-23.09.57:063][938]2024.02.08_23.09.57: SERVER: Server restarting in 4 second(s) for updates.
Server received, But no response!!
[2024.02.08-23.09.58:172][971]2024.02.08_23.09.58: SERVER: Server restarting in 3 second(s) for updates.
Server received, But no response!!
[2024.02.08-23.09.59:258][  4]2024.02.08_23.09.59: SERVER: Server restarting in 2 second(s) for updates.
Server received, But no response!!
[2024.02.08-23.10.00:350][ 37]2024.02.08_23.10.00: SERVER: Server restarting in 1 second(s) for updates.
World Saved
Gracefully shutting down the ARK server...
[2024.02.08-23.10.02:533][ 70]2024.02.08_23.10.02: Saving world...
[2024.02.08-23.10.02:539][ 70]2024.02.08_23.10.02: World Save Complete. Took: 1.088650
Exiting...
[2024.02.08-23.10.02:642][ 73]Closing by request
[2024.02.08-23.10.08:657][ 74]Log file closed, 02/08/24 15:10:08
Starting the ARK server...
New server installation or update required...
Current build ID is 13408231, initiating installation/update...


Create ansible playbook for a deployed node #1

Addressing issue #1
Create ansible playbook for a deployed node #1
The best way would be not to interfere with installed packages and use pipenv to be sure all packages meet requirements, example of script:
#!/usr/bin/env bash

SCRIPT_DIRECTORY="$(readlink -f "$(dirname "${BASH_SOURCE[0]}")")"

if [[ ! "$(id -u "${USER}")" == "0" ]]; then
    echo "Run this script as root user (UID=0). Exiting."
    return 1
fi

apt update
yes | apt upgrade
yes | apt satisfy "python3 (>=3.9), python3-dev (>= 3.9), python3-pip"
yes | apt install libevent-dev
python3 -m pip install --user pipenv
cd "${SCRIPT_DIRECTORY}"
pipenv install
pipenv run ansible-galaxy collection install -r "${SCRIPT_DIRECTORY}/collections.yaml"

USERSPACE_BIN="$(readlink -f "${HOME}/.local/bin")"
if [[ ! $(grep "${USERSPACE_BIN}" <<< "${PATH}") ]]; then
    export PATH="${USERSPACE_BIN}:${PATH}" &&
    echo 'export PATH="'${USERSPACE_BIN}':${PATH}"' >> "${HOME}/.bashrc"
fi

NOTICE ==> Ubuntu 20.04 uses Python3.9 as default, but Ubuntu 22.04 does not allow by default version lower than Python3.10. This is why Pipfile lockfile can not be created as we allow different versions of base python3.
Then also required files need to be added:
Pipfile
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
ansible = "~=6.7"
ansible-core = "~=2.13"
botocore = "~=1.27"
docker = "~=6.0"
jinja2 = "~=3.1"
jmespath = "~=1.0"
xlsxwritter = "~=3.0"
pyopenssl = "~=23.0"
ipaddr
netaddr
requests

[requirements]
python_version = "3"

collections.yaml
---
collections:
  - name: community.general
    version: '>=6.0.1,<7.0.0'
  - name: community.docker
    version: '>=3.0.1,<4.0.0'
  - name: ansible.posix
    version: '>=1.3.0,<2.0.0'

Major maas-setup.yml updates included, additional adjustments will be added with upcoming commits. Currently included:

YAML standard 1.2.2 adjustment, removed all yes/no occurrence: "According to specification document, starting from YAML 1.2, allowed bool values are true and false only. YAML-1.2.2 We have removed unique implicit typing rules and have updated these rules to align them with JSON's productions. In this version of YAML, Boolean values may be serialized as true or false;

Ansible standard requirements mostly meet: -- "Always use the full module name, specially when calling ansible.builtin modules." -- "All tasks, roles and plays must be named." -- "Prefer using ansible.builtin.command module instead ansible.builtin.shell if only one command is called and no advanced scripting is needed" -- "If task is allowed to fail use failed_when:  instead ignore_errors: true when defining error cases. For allowing task to fail and not highlighting it in the console output failed_when: false can be used.

Minor errors corrected, like for example using pipelines | without firstly specifying shell binary as /bin/bash and not explicitly catching pipeline errors can produce undefined behaviour but return success on task exit.  Best would be not to use pipeline, and if this is mandatory set bash to exit on any errors including pipe-conneted ones by adding: set -eo pipefail

Below, is potential system-wide error scripting, as regexp of net.ipv4.ip_forward would treat . as any single symbol and would wrongly replace only the first occurrence of any found string including ones that are not wanted by the user.
- name: Enable ipv4 forward in the /etc/sysctl.conf
  replace:
    path: /etc/sysctl.conf
    regexp: '#net.ipv4.ip_forward=1'
    replace: 'net.ipv4.ip_forward=1'

Instead regexp should be more specific and lineinfile module should be used in form included in the commit. This way the file will be searched for all occurrences of the string, leaving there only one, with value as intended.
- name: Enable IPv4 forward in the /etc/sysctl.conf
  ansible.builtin.lineinfile:
    path: /etc/sysctl.conf
    regexp: '^(# *){0,1}net\.ipv4\.ip_forward *='
    line: net.ipv4.ip_forward=1

Included 2 PR in one as some corrections had to be done :-)
Now I have tested the install scripting and ansible-playbook deployment for maas controller with DB.


Implement Complex Number spelled out

Bump: is this the best way to spell out complex numbers?

Bump: is this the best way to spell out complex numbers?

This should technically be closed.  See #43

This should technically be closed.  See #43


The auto under the different settings

Hi @smehringer,
I think I still dont fully comprehend the different auto styles.
What I found was this description:
auto         => will copy the vector, but we wanted a reference
auto&        => will only bind to modifiable lvalues
const auto&  => will bind to anything but make it const, giving us const_iterator
const auto&& => will bind only to rvalues

Yet for auto&& is still very confusing.
When to use auto&& and when to use auto& for seqan3 library?

I'll try to explain with examples:
non-const version
int a = 5; // normal variable you can bind to

auto copy_a = a;
auto & ref_a = a;
auto && also_ref_a = a;
// ^^ compiler knows a is not a temporary (rvalue) so it creates a reference and not a copy.
// You say the `&&` is collapsing to `&`
// In this case `auto &` and `auto &&` are both fine and behave the same.

// we don't have a variable now

auto copy_5 = 5;
auto & error = 5; // ERROR, does not compile because you cannot bind to a temporary
auto && also_ref_a = 5;
// ^^ Now this compiles because && can bind to temporaries.
// In this case `auto` and `auto &&` behave the same.

In summary:

Use auto if you sure you want to copy
Use auto & if you sure you can take a reference
If you are not sure what exactly you get, auto && works well because it makes sure that you only take by value/copy if necessary (2. example) and be reference if you can (1. example)

const version
Now with const this behaves just a little differently because a const reference CAN bind temporaries but a const && can ONLY bind temporaries. (not exaclty sure why in the c++ universe right now but I'm sure it has a sane explanation)
So the examples are now this:
int a = 5; // normal variable you can bind to

auto const copy_a = a;
auto const & ref_a = a;
auto const && error = a; // ERROR does not compile
// ^^ compiler knows a is not a temporary (rvalue) so it complains.

// we don't have a variable now

auto copy_5 = 5;
auto const & ref_5 = 5;
auto const && also_ref_a = 5;
// ^^ Now this compiles because && bind to temporaries.
// In this case `auto const` and `auto const &&` behave the same.

In summary:

Use auto const if you sure you want to const copy
Use auto const && If you are sure you are getting a temporary
If you are not sure what exactly you get, auto const & works well because it makes sure that you only take by value/copy if necessary (2. example) and be reference if you can (1. example)

Thank you @smehringer ! This is very nice written.
So from what I understand:

a const lvalue reference can accept both a lvalue and a rvalue
a lvalue reference can accept only a lvalue (no temps); to fix this I would need to use the auto &&
the auto && is slower than auto &?
the auto const & is slower than auto const &&

Thank you @smehringer ! This is very nice written. So from what I understand:
* a **const** lvalue reference can accept both a lvalue and a rvalue

yes

* a lvalue reference can accept only a lvalue (no temps); to fix this I would need to use the `auto &&`

yes

* the `auto &&` is slower than `auto &`?

no because if it binds an lvalue auto && behaves the same as auto &. If it's an rvalue and auto && binds it (allocating memory) , well it is technically slower but since you have a temporary there is nothing you can do better anyway.

* the `auto const &` is slower than `auto const &&`

no. I don't even think comparing the slowness makes sense. It strongly depends on your application. Just remember to capture by reference if you can.

Thank you @smehringer !


Connect and pair

Hi, your project is awsome but if I close the Mifit app yout app not function. ¿How can I connect and pair with Mi Band 2 programamtically? Without use the Mifit officical app. Thanks in advance.

Hi ,
Thanks for your code, the app gets connected to the device and it gets connected also.
While getting the heart rate i am getting the error
java.lang.NullPointerException: Attempt to invoke virtual method 'android.bluetooth.BluetoothGattCharacteristic android.bluetooth.BluetoothGattService.getCharacteristic(java.util.UUID)' on a null object reference
at id.aashari.code.miband2.Activities.MainActivity.startScanHeartRate(MainActivity.java:149)
at id.aashari.code.miband2.Activities.MainActivity$5.onClick(MainActivity.java:119)

The SO answer really works (using Mi Band 3). But such auth process takes much time and requires clicking the button on a band.
Does anyone know how does it work in GadgetBridge? It requires clicking on a button only for the first time, subsequent connections happen automatically.

Hi all, thanks for creating the issue and replying the issue, but unfortunately I'm not maintaining this repository anymore, so sorry about this, I hope you find the answer by yourself


Referencing _collection instead of using Collection?

https://github.com/jagi/meteor-astronomy/blob/76251adaf7cf6410bfe642c5c14ccdeb229ed51e/lib/modules/storage/utils/document_update.js#L78
Hey, I'm just curious why on this line you use Collection._collection instead of calling Collection.update? Is there any difference between the two?

It's a huge difference. Calling Collection._collection.insert will call only local version of the method, however Collection.insert would call meteor method that would executed method in both client and server.


预计什么时候会开源吗？

同问，关注好久了

期货开源

It won't happen, don't waste time to wait.
Same like Chinese opensourced repo:
https://github.com/kwai/KwaiYii
https://github.com/XiaoMi/MiLM-6B
It's a special phenomenon called README opensource.

It won't happen, don't waste time to wait.
Same like Chinese opensourced repo:
https://github.com/kwai/KwaiYii https://github.com/XiaoMi/MiLM-6B
It's a special phenomenon called README opensource.
so，你发的和这个repo有个der的关系

It won't happen, don't waste time to wait.
Same like Chinese opensourced repo:
https://github.com/kwai/KwaiYii https://github.com/XiaoMi/MiLM-6B
It's a special phenomenon called README opensource.
so，你发的和这个repo有个der的关系

都是属于占坑选手

你们觉得会开源吗？

您的邮件已收到，我会尽快回复，谢谢。张琦


Check out Pramp and AlJohri/practice

https://github.com/AlJohri/practice
https://www.pramp.com/

Closed https://github.com/andreis/interview/commit/6a065e8a360d423623bec1d81f1bc653646fd157


Management Command to synchronize subscriptions from paddle

We need a management command to synchronize subscriptions from paddle.
Unfortunately, the Paddle API is not quite RESTful. However, there is an endpoint which lists all "users" including their subscriptions: https://developer.paddle.com/api-reference/subscription-api/subscription-users/listusers

Hi, is there any work being done on this?

Hi, is there any work being done on this?

Not yet, feel free to take on this one!

I just began work on #19.


Fix IMU parent link names for gz-sim-yarp-plugins

By checking if the modifications introduced by https://github.com/icub-tech-iit/ergocub-software/pull/253 were also working on the modern Gazebo, I found a mistake I made in https://github.com/icub-tech-iit/ergocub-software/pull/250.

CC @Nicogene @traversaro

BTW, I should implement a smoke test to be run automatically by the CI in order to not having to do this manually every time 😅

BTW, I should implement a smoke test to be run automatically by the CI in order to not having to do this manually every time 😅

Yes, I think an executable that just loads the model, checks if the yarprobotinterface loaded correctly and shut downs and report if success or failure would be quite useful.


content-api: direct links to product code example

Opening pr again due to error on previous ???

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

BingAds/shopping-content/manage-products.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

BingAds/shopping-content/manage-products.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

@swhite-msft this should be good to go if you want to hit the merge button.


Implement a NeuroML2 model instead of the example Basket Cell Model

What would it take for us to replace the example basket cell model with a NeuroML2 Channel model?
There is some work on using a LEMS sim by @pgleeson over here, and some discussion here.

Working on updating that example & maybe adding a pure NeuroML example to neurotune. See also a simpler example using neurotune here: https://github.com/pgleeson/neurotune/blob/master/examples/example_3. Much easier to run & tweak parameters there.
Relevant for https://github.com/pgleeson/neurotune/issues/2 too

The issue with optimizing a "pure" NML2 model using neurotune is that many of the parameters you want to change are deep, i.e. you want to alter muscle/0/SingleCompMuscleCell/biophys/membraneProperties/k_slow_all/erev etc.
That's why the framework around c302 is convenient: it does the difficult part of assigning a unique string to each parameter (e.g. k_slow_cond_density) and setting these via a python script:
   mp.channel_densities.append(ChannelDensity(cond_density=self.get_bioparameter("k_slow_cond_density").value,
                                               id="k_slow_all",
                                               ion_channel="k_slow",
                                               erev=self.get_bioparameter("k_slow_erev").value,
                                               ion="k"))

This makes it easier to set these values in neurotune and optimise over a number of them:
https://github.com/openworm/CElegansNeuroML/blob/master/CElegans/pythonScripts/c302/tune/c302tuner.py#L195

It would be better if this was a generic solution for NeuroML, but c302 is serving as a useful test case & a generic framework could be built up from this initial impl


Set Sprite Event Changing when copied from a Scene

Describe the bug
A clear and concise description of what the bug is.
I have a scene where there is an event that changes an actor (not the player) sprite sheet. When this scene is copied, the new event switches it to the players sprite that is being set (instead of the actor that was on the original scene).
To Reproduce
Steps to reproduce the behavior:

Set up a scene where an actors (not the players) sprite is being set to a different sprite sheet.
Copy the scene
Paste the scene
See that the sprite being changed is now the players sprite sheet instead of the actor in the original scene.

Expected behavior
When you copy the scene, it should keep the same actor's sprite sheet that is being updated.
Screenshots

Platform (please complete the following information):
-Windows 10 (19041.508)

App version 2.0.0-beta2

Additional context
Add any other context about the problem here.

Thanks for the thorough write up, clear screenshots, and noting the version!
Could you please test the latest v2beta development builds and confirm this issue is fixed by #585
Link to builds.
https://github.com/chrismaltby/gb-studio/tree/v2beta#beta-builds

Thanks Richard, I just confirmed that #585 did fix this issue.
I don't test software or use Github, so I apologize. I should have searched through the issues first before submitting.


Winget does not start, 0x80070057 in Event Viewer

Brief description of your issue
Winget does not start at all.
Steps to reproduce
Install Winget from MSIX bundle. This works fine on my other Windows boxes.
Expected behavior
I expected Winget to work properly.
Actual behavior
Winget does not start. In the CMD or in PowerShell, nothing is printed.
After running winget, the Event Viewer contains two identical (same time, same content) events from AppModel-State, with description
Échec de l’instanciation du dossier de stockage C:\Users\...\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState pour le package Microsoft.DesktopAppInstaller_8wekyb3d8bbwe avec le code d’erreur : -2147024809

Detailed data:
<EventData>
  <Data Name="FolderString">C:\Users\...\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState</Data>
  <Data Name="PackageString">Microsoft.DesktopAppInstaller_8wekyb3d8bbwe</Data>
  <Data Name="Error">-2147024809</Data>
</EventData>

I tried uninstalling the Microsoft.DesktopAppInstaller package (to reinstall it afterwards), but even that fails.
PS C:\WINDOWS\system32> Remove-AppxPackage Microsoft.DesktopAppInstaller
Remove-AppxPackage : Échec du déploiement avec HRESULT : 0x80073CFA, Échec de la suppression. Contactez votre fournisseur de logiciel. (Exception de HRESULT : 0x80073CFA)
Le gestionnaire de package a abandonné l’opération Remove, car un argument non valide a été transmis : Microsoft.DesktopAppInstaller.
REMARQUE: pour obtenir des informations supplémentaires, recherchez [ActivityId] 2305a5aa-867d-0000-e22e-20237d86d801 dans le journal des événements ou utilisez la ligne de commande Get-AppPackageLog -ActivityID 2305a5aa-867d-0000-e22e-20237d86d801
Au caractère Ligne:1 : 1
+ Remove-AppxPackage Microsoft.DesktopAppInstaller
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : WriteError: (Microsoft.DesktopAppInstaller:String) [Remove-AppxPackage], IOException
    + FullyQualifiedErrorId : DeploymentError,Microsoft.Windows.Appx.PackageManager.Commands.RemoveAppxPackageCommand

Short of reinstalling Windows (which is obviously a non-solution), I don't see anything else to try.
Environment
Winget does not start, so I can't run winget --info.
Windows 10 Pro 21H2 19044.1766 x64

My guess is that C:\Users\...\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe has gotten into a bad state somehow.  If you can remove that location, then I think it should start working.  There might be more subtle ways than that, but it should be effective without causing any large issues (just some minor data loss if you had been using it before).

@JohnMcPMS just tried, now I'm getting a different error!

Let's see what pwsh has to say about it:

Did you Add-AppxPackage it back?  I don't know what state the package is in at this point.  If it is "there", you could try to Reset it from the settings app.

Reinstalling the latest GH appx file using Add-AppxPackage fixed the problem. Still no idea how it ended in the broken state it was in before (winget never worked on this machine). Thanks!


Adding Github Classroom support to hub?

Hi,
We are planning to create a CLI tool for Github Classroom , which will basically be a wrapper over git. It will support cloning multiple repos (i.e. all submissions for an assignment) and working in context of assignment (which contains multiple git repos) including reviewing, submitting etc and we are wondering if we can include our specific features into hub itself and wanted to know what you guys think.
That way we don't need to start from scratch and users can use a single tool.

Hi, thanks for letting me know about your plans! However, the features that you need sound very specific to your use-case and hub was always historically maintained as a general-purpose git+GitHub tool that doesn't implement any specific workflow.
On the other hand, I had a plan to add a hub api command to hub that makes it easier to write CLI tools (in bash, for instance) by allowing you to query specific API endpoints while hub takes care of authentication, JSON encoding and JSON parsing. If I'm successful in making this, it might help you write your CLI tool that only uses hub as a lightweight API wrapper.
What do you think?

I think its will be awesome to have an api otherwise we will be reinventing the wheel. I am available to help, let me know about your plans.
@johndbritton What do you think?

@sahilshekhawat I think we're going to need an API for Classroom to implement any desktop or CLI tool. Like I said on the other thread, I don't know if Hub is the right place for this, but I wouldn't be opposed to it if they're open to it.

Well, to conclude my thoughts about the initial idea for this thread, I don't think hub will be adding any Classroom-specific features, but it can make things easier for CLI API hackers by providing some generic API querying functionality.
The GitHub API will still have to expose the necessary features to enable whatever functionality you need to get this going.

Closing this for now since there's nothing actionable yet, but please ping me with future ideas!


An example file so that you can see the rules applied

Still think this is a good idea. Maybe something from NYTPhotoViewer? + @Twigz


RoadMap

Hello, the repository has roadmap? we would like to continue to contribute and know how we can collaborate and perform a work plan in order to avoid write the same features.
Thanks.

Hi, project doesn't have a definite roadmap yet, but I have some things on todo list, eg:

user defined (plugin like) custom page elements, with custom templates and lifecycle callbacks; all elements should work this way eventually,
some directives for viewing/analysing responses, maybe simple charts,
google docs integration
reduction of external dependencies
tests

We can create roadmap wiki page and define roadmap there. As to collaboration, please submit new issue (with label 'enhancment') when you are about to implement something new. I'll do the same.
Regards


[DOC]: Please better document/clarify the steps required to run the image viewer tool

How would you describe the priority of this documentation request
None
Please provide a link or source to the relevant docs
https://github.com/NVIDIA/nv-ingest/blob/main/src/util/image_viewer.py
Describe the problems in the documentation
It requires tkinter which is not included in the requirements.txt file user is instructed to install
(Optional) Propose a correction or improvement
No response

README now includes pip install tkinter step


Netflix Error Notification at Kodi startup

Netflix add-on version: 0.16.0
Operating system version/name: Windows 10

Describe the bug
Since updating to version 0.16.0 Netflix addon notifies just after Kodi starts:
"Netflix addon error
The Background services may not yet be available if you just started kodi/addon.
In this case try again in a moment."
Expected behavior
This is not necessary since Kodi doesn't even had the chance to properly load all services. And the addon wasn't even triggered for use.
Normally i always saw the text at the bottom of the screen: Netflix is starting services.
Actual behavior
Netflix addon notifies just after Kodi starts:
"Netflix addon error
The Background services may not yet be available if you just started kodi/addon.
In this case try again in a moment."
Screenshots
https://imgur.com/Ltwv6F7

this message is only displayed if you try to open the addon before starting the service

What's your problem? I don't understand

Is it possible to add a delay to load Netflix addon ?
Thank you.

explain in detail the reasons and the cases of use

if i remove this check, in slow devices it will cause always error in starting the addon, this is because it is mandatory to have the service full started BEFORE the frontend

RPI4 + Aura skin : I use a widget for Netflix and I have the notification "Netflix addon error
The Background services may not yet be available if you just started kodi/addon.
In this case try again in a moment."
Sorry, but my English is very limited.

you use Aura or Aura-notoco?
Widgets always cause problems...i will run some tests
will not be a short-term remedy, surely i will have to wait for an answer from the author of the skin to find a solution. Currently the skins that use widgets forcing the addons to start without respecting the services, this also causes other problems, such as list updates that do not work

BTW. The aura-notoco and arctic-zephyr2-notoco skins have no such changes compared to the original. If there are changes in the original, it also appears in mine.

thanks notoco i hope we can find a good solution to all

As you probably remember, it was my first note to the plugin that there is a problem with widgets. I started to use the library, etc ...

Do you know another skin that works fine with Netflix addon ?

you use Aura or Aura-notoco?

I use Aura

will not be a short-term remedy, surely i will have to wait for an answer from the author of the skin to find a solution...
jurialmunkey/skin.aura#77

Thank you for your help.

This problem will remain unresolved indefinitely,
I have tried a temporary solution, which has not been accepted at the moment
If one day the developers of the projects related to the skins will work together for a global solution in order to work with all the skins, we can consider how to implement a right solution

Due to too many fragmented projects/forks that manage the skins and lacked help and solutions from other devs, i decided to include a workaround,
It is a solution that will not work 100% of the cases, so it is possible that this message will be displayed in some cases
will be included in the next release


Error : InvalidKeyOrUnauthorizedURLMapError

We use dburles:google maps for allowing Google auto-complete search (for addresses), but the following error message always prompts
"This page was unable to display a Google Maps element. The provided Google API key is invalid or this site is not authorized to use it. Error Code: InvalidKeyOrUnauthorizedURLMapError"
We ensured that our browser key has been generated correctly as recommended by Google doc. and we added all possible referrers. However, the same error message still appears.
Any pointers what's wrong?

Hey @Basems did you end up resolving this one? It's not something I've come across before, are you able to make use of the key by manually loading the maps library (paste the script tag in your application <head> tags)

That should help determine whether it's an issue with this package or something amiss with the configuration

Hi David,
Thanks for your follow up and suggestions.
We did fix the issue. It was the way we specify the key in meteor start up.
We specified it in the settings.js file
We used to specify it this way: GoogleMaps.load({v: "3", key:
Meteor.settings.googleMap_key, libraries: 'places'});
Instead we directly specified the key in the function call
Meteor.startup(function() {
GoogleMaps.load({
key: "AIzaSyB_z8lci1uGf8cFnv-iKm7TbaCMhRgLz5A",
...
Best Regards,
Basem Suleiman  | Director and CIO
PhD. Soft. Eng.(UNSW) MSc. Comp. (UWS)
M: 0410 983 800
E<EMAIL_ADDRESS>W: Crowd Conga | crowdconga.com.au http://crowdconga.com.au/
On Thu, Jan 21, 2016 at 6:14 PM, David Burles<EMAIL_ADDRESS>wrote:

That should help determine whether it's an issue with this package or
something amiss with the configuration
—
Reply to this email directly or view it on GitHub
https://github.com/dburles/meteor-google-maps/issues/104#issuecomment-173480965
.

Great


Pam module need python 3 support

pam.py is coded for python 2 but we can find some pam-python based on python 3 now.
See https://github.com/boltgolt/howdy/pull/709 to fixed this.

I'm not sure I understand.
With python2, #709 breaks howdy?
Which version of python 2?

We are deprecating (and have been for the last few years, it's been a long process) the dependency on pam-python completely in the next version, which should also fix this. It could be merged on dev branch in the meantime to support arch installs if that helps. Continue discussion in #709


Fix Refrigerate Boost

The description for Refrigerate claims it has been updated to the 1.2x boost applied in Gen 7, however the value is still set to the 1.3x from previous generations

Looks like someone goofed... Good catch, thanks! 👍

Huh, oops, sorry!


Nowcast array maximal value

Dear Georgy,
I've been playing recently with provided example and found out, that I always end with nwcst prediction array
that has maximal value around 1.219. No matter what RY_latest maximum precipitation was provided.
Is tere something that I'm missing?
Some kind of 'descaling' or 'denormalization' possibly?

Dear @giszters,
I suppose that you are right and it could be related to preprocessing routines that are pretty complex, i.e., scaling, taking log, etc.
Good luck!

Did you find a solution, @giszters ? I'm facing the same problem.

Dear Georgy

Dear Georgy,

Dear Georgy,
I‘m facing the same problem, this is the newest colab demo with just some data source url updated.
https://colab.research.google.com/drive/1KXrnsmAf9Za1SC0PKw6LF102p0uQ4xgU#scrollTo=PTzKBwBRPXNd
I hope to get your help or any idea with nwcst array maximal value 1.219
Sincerely

maybe this is the reason why 1.219 occurs
/examples/RainNet_Training.ipynb
class Dataset(tf.keras.utils.Sequence):
....
y = np.squeeze(data_preprocessing(np.array(self.dataset[self.keys[i+3]])[np.newaxis,:,:]))

i+3 should be i+4


info.context question

Since CreateFile is the first function called, inside that function i set a value to info.Context.
On subsequent calls to other functions like SetEndOfFile, ReadFile or WriteFile that variable sometimes is null, sometimes is not.
I read on dokan documentation that the context should remain the same in everything between CreateFile and CloseFile so can you please help me understand how it actually works?

Hi @maurosampietro ,
it is right, the context should be the same between CreateFile and CloseFile.
You should also know that there could be different context for the same file. The system is offen going to call CreateFile a multiple time in the same moment. Therefore you will have one new context for each request.
Ex:
#1 CreateFile \test.txt
#2 CreateFile \test.txt
#1 Write
#2 Lock
#1 CloseFile
#2 CloseFile

I create a new WriteStream every time CreateFile w/ FileMode.CreateNew is called. How do you usually manage this situation to avoid 'file already in use' exceptions?
(I never get Lock function called but it may not be a problem now)

You have to handle sharing mode with https://msdn.microsoft.com/fr-fr/library/system.io.fileshare(v=vs.110).aspx at open.

So i'm already doing the right way :) thank you!

I'm sorry to bore you but i have a few other question in order to complete my file system...
Suppose i want to copy a file i have on my desktop called 'file.dat' to my volume. The final destination path is '\subdir1\subdir2'. I open explorer browse to this destination folder and paste my file.dat.
In debug i see  CreateFile  is called w/ FIleMode.CreateNew parameter but the path is missing the actual name of the file: i receive ''\subdir1\subdir2' but i expected ''\subdir1\subdir2\file.dat' in order to properly create the file. What's happening here?

At first the device open the folder ''\subdir1\subdir2' to be sure that it exist and only after it is going to call you with '\subdir1\subdir2\file.dat'.
Do you check if the request is made for a directory ?
https://github.com/dokan-dev/dokan-dotnet/blob/master/sample/DokanNetMirror/Mirror.cs#L83
https://github.com/dokan-dev/dokan-dotnet/blob/master/sample/DokanNetMirror/Mirror.cs#L121

I write on Console any request of create file. I don't seem to receive the proper  '\subdir1\subdir2\file.dat' request

Humm so there should be something wrong in your implementation before this call.
It is pretty hard for me to give you advice at this point :cry:
Did you start your project by editing the mirror ?

You seem quite sure it's something related to my implementation so I'll will investigate some more. Back to you if this persists. thank you.

@maurosampietro You can pass in a ConsoleLogger when doing the mount. So you don't need to log your self.

@maurosampietro do you still have issues or I can close the ticket ?


all: fix spelling and typos

Found with gospel.
Please take a look.

Codecov Report

Merging #1784 (834f4d0) into master (7a7ecd3) will decrease coverage by 0.15%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #1784      +/-   ##
==========================================
- Coverage   73.42%   73.27%   -0.16%
==========================================
  Files         523      505      -18
  Lines       61719    61061     -658
==========================================
- Hits        45317    44740     -577
+ Misses      13847    13800      -47
+ Partials     2555     2521      -34

Impacted Files
Coverage Δ

blas/gonum/gonum.go
88.88% <ø> (ø)

blas/gonum/level2float32.go
0.00% <ø> (ø)

blas/gonum/level2float64.go
76.16% <ø> (ø)

cmplxs/cmplxs.go
94.92% <ø> (ø)

diff/fd/diff.go
76.47% <ø> (ø)

graph/coloring/coloring.go
89.72% <ø> (-0.61%)
:arrow_down:

graph/community/k_communities.go
85.71% <ø> (ø)

graph/formats/cytoscapejs/cytoscapejs.go
70.07% <ø> (ø)

graph/multi/weighted_undirected.go
90.36% <ø> (ø)

graph/path/dijkstra.go
90.90% <ø> (ø)

... and 36 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 7a7ecd3...834f4d0. Read the comment docs.

gospel looks really nice.
(just added to my toolbelt, thanks.)


Allow mock_batch_simple to mock a FAILED result

The mock_batch_simple functionality is a great way to test integration with AWS batch, but it always sets the job status to SUCCEEDED. It would be great to parameterize this, so I could simulate a failure.
Something like this would be great:
with mock_batch_simple(succeed=False):
    ...

Hi I would like to work on this issue

I'd love to have a timer functionality such that, after a while, the job fails.

@mahi072 how are you getting on with this? I can take over if not much progress has been made

@rafcio19 Thanks for looking into this! I don't think that Moto supports anything similar at the moment, so there is no existing solution that we can apply here. When you get around to it, it might be good to share your suggested solution here first so we can talk it through, just to make sure it fits in with Moto's design.

This is now part of moto >= 4.1.8.dev11. You can now set an environment variable to simulate a failure in mock_batch_simple:
MOTO_SIMPLE_BATCH_FAIL_AFTER=0 --> fail immediately
MOTO_SIMPLE_BATCH_FAIL_AFTER=x --> fail after x seconds


Added the function GetTag.

Improves the work with interface "FieldLevel"
The function returns the name of the tag on which the function was called. This makes it possible to know what Tag name is being processed if multiple tags have the same function c.
Change Details:

Change "FieldLevel" interface, added method "GetTag"
Added method "GetTag" for "validate" struct

@go-playground/admins

Coverage decreased (-0.1%) to 99.766% when pulling b01869e6de66276303dc7756c1e18a84611ea3e8 on LRichi:v9 into cd1bd581694a11c089aea885a26247c5f783a4cf on go-playground:v9.