Allow to disable logger.info in method change_text_property

Description of the feature
In a script for creating a schematic using pyaedt, I have to create and modify like about 100 to 300 text. Method "change_text_property" is displaying 4 different message for each text modification, using logger.info,  in pyaedt.log, resulting in 1000+ lines in pyaedt.log(maybe slow down the execution of the script aas well).
I suggest to add an optional boolean parameter loggerinfo to the method.
Default is true, setting this parameter to False will disable logger.info for the method
Steps for implementing the feature
def change_text_property(self, property_id, property_name, property_value, loggerinfo=True):
...
...
if loggerinfo:
self.logger.info("Property {} Changed correctly.".format(property_name))
return True
Useful links and references
No response

After discussing with Massimo we agreed that the best is to change self.logger.info("Property {} Changed correctly.".format(property_name)) with self.logger.debug("Property {} Changed correctly.".format(property_name)) as this information are mainly valuable for debugging.

Issued tackled in PR #3362 thus closing issue.
Thanks @amichel0205


You could implement the storage by yourself. Today, we have metrics exporter.

does the configuration work？
exporter:
grpc:
targetHost: ${SW_EXPORTER_GRPC_HOST:<IP_ADDRESS>}
targetPort: ${SW_EXPORTER_GRPC_PORT:9870}

It works. Why open an issue rather than trying?


Permit more complex environmental integrity checks

It would be kinda cool if chitin could enforce a sane working environment at all times:

Does a BAM have a BAI? Is it in date?

Oh, turns out we did this. Nice job, @samstudio8.

I like the way you talk to yourself :)


Issue #10 Adding multi-threaded bandwidth tester and updated makefile for it

This closes issue #10.  It is the client-tcp.c file with added options to open multiple sockets in their own thread, send specified amount of packets, output total packets sent every x seconds, and you can change the delay between packet sends.
The Makefile has an option to compile this program.

Code looks good.  Can you add a comment here that shows some output from the program, preferably connecting to some local server (high bandwidth) and some distant server (lower bandwidth)?

Local server (High Bandwidth):
➜  bandwidth git:(master) ✗ time ./multi-bandwidth-test -n 100 -t 3 -x 1
Sending 100 packets
Connecting to <IP_ADDRESS>:1234
Creating 3 worker threads
New thread created with id 255975424
New thread created with id 256512000
New thread created with id 257048576
[255975424] Sending complete!
[257048576] Sending complete!
[256512000] Sending complete!
Done -- sent 303 packets.
./multi-bandwidth-test -n 100 -t 3 -x 1  0.00s user 0.00s system 85% cpu 0.006 total

Offsite server (Low bandwidth):
➜  bandwidth git:(master) ✗ time ./multi-bandwidth-test -p 20012 -h teehee.me -n 100 -t 3 -x 1
Sending 100 packets
Connecting to teehee.me:20012
Creating 3 worker threads
New thread created with id 2826240
New thread created with id 3362816
New thread created with id 3899392
[3899392] Sending complete!
[3362816] Sending complete!
[2826240] Sending complete!
Done -- sent 303 packets.
./multi-bandwidth-test -p 20012 -h teehee.me -n 100 -t 3 -x 1  0.00s user 0.00s system 12% cpu 0.037 total

@atryus's server is running on Google Fiber so he does not have a significant bottleneck to effect the speed :p

OK, looks good!  Later we will add more statistics to show information like the send rate achieved, but this is fine for now.

@nks5295 @phil-lopreiato what am I supposed to run as the server to use your bandwidth tester?

You can run the code from #13.
So in threads/, run make server-tcp && ./server-tcp


ExternalService bug fix for discovery type DNS

If no hosts are provided for an ExternalService of discovery type DNS, the hosts field should be used to populate the hosts field for CDS

/lgtm

@GregHanson: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-bookInfoTests.sh
8859779d1612209fafd904bb8ee64d554f77d107
link
/test e2e-bookInfo

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@GregHanson: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

prow/e2e-bookInfoTests.sh
8859779d1612209fafd904bb8ee64d554f77d107
link
/test e2e-bookInfo

prow/e2e-simpleTests.sh
8859779d1612209fafd904bb8ee64d554f77d107
link
/test e2e-simple

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

resolves https://github.com/istio/istio/issues/3773


Cleanup wasm fetch methods

What
Remove get_remote_wasm function, it's moved to cli
Why
See discussion here
https://github.com/stellar/stellar-cli/issues/1488#issuecomment-2251938955
Known limitations
N/A

I missed this PR, but I do feel that perhaps we should make some other crate that acts like the js-stellar-sdk, as devs might want to have more connivence methods and it could be where the transaction builder lives.


Reorgenize streaming edge tool tip

Streaming edge tool tip content is not clear to user, needs to be reorgenized.
Node1 - > Node2
When messages are sent from Node1 to Node2
< Node1Name > :
reqRate: 5.66 -> Messages produce rate: 5.66 per sec
queueSize: 37 -> Messages in queue: 37
queueTimeMs: 6790.84 -> Time messages spent in queue: 6790 ms
avgQueueSize: 37 -> Avg number of messages in queue: 37
roundTripTimeMs: 49.85 -> Handle acknowledge revieved after: 49.85 ms
totalRequests: 56 -> Total sent: 56
totalResponses: 18 -> Total handle acknowledged: 18
totalDropped: 0 -> Dropped messages: 0
< Node2Name>
(Should only appear in case Node2 is stateless)  currentSize: 1  -> Number of instances: 1
(Should only appear in case Node2 is stateless)   requiered: 2 ->  Needed instances: 2
(Should only appear in case Node2 is stateless)   resRate: 2.17 -> Process rate: 2.17 Messages per second
processingTimeMs: 0.04 -> Message process time: 0.4 ms
durationsRate:  -> remve it
grossDurationsRate: 20.06 -> remove it
throughput: -> remove it
desiered -> remove it
status - > remove it

 (Src)
Messages produce rate: 5.66 per sec
Messages in queue: 37
Time messages spent in queue: 6790 ms
Avg number of messages in queue: 37
Handle acknowledge received after: 49.85 ms
Total sent: 56
Total handle acknowledged: 18
Dropped messages: 0
 (Dst)
(Should only appear in case Node2 is stateless)  Number of instances: 1
(Should only appear in case Node2 is stateless)  Needed instances: 2
(Should only appear in case Node2 is stateless)  Process rate: 2.17 Messages per second
Message process time: 0.4 ms


Respect quoting config in dbt-py models

resolves #6103
resolves #6619
Description
From our code comment:

Quoting seems like something very specific to sql so far. For all python implementations we are seeing, there's no quoting.

Initial user feedback has proven otherwise!

We do need to respect quoting in methods that return stringified relation names (dbt.ref(), dbt.source(), dbt.this())
Because relation names are interpolated into Python dataframe code as strings, we need to escape relation names that contain double quotes ("). This is principally relevant to Snowflake today, but several other data platforms also use " as their quoting character.

Checklist

[x] I have read the contributing guide and understand what's expected of me
[x] I have signed the CLA
[x] I have run this code in development and it appears to resolve the stated issue
[x] This PR includes tests, or tests are not required/relevant for this PR — relevant tests in adapter repos
[x] I have opened an issue to add/update docs, or docs changes are not required/relevant for this PR
[x] I have run changie new to create a changelog entry

I'm reading the principle change here as quoting all necessary "s very \ escapes within the Python environment.

Correct! This isn't specific to Snowflake, it would also be relevant on any other data platform that uses " as its quoting character. (As it happens, both BigQuery + Spark/Databricks use backticks, and don't allow other special characters in identifier names.)
Big idea: in Python models, dbt.ref() is really producing this code:
session.table("database.schema.table")

Where the table identifier is a Python string, i.e. quoted. If there are any instances of quotation marks (") in database, schema, or table, we need to escape, just as you would for any Python string containing quotes:
>>> string = "hello, \"world\"!"
>>> print(string)
hello, "world"!

The automated test confirming that this change works is really in https://github.com/dbt-labs/dbt-snowflake/pull/399, which also resolves a dbt-snowflake-specific bug in its own right.


Missing Favicon in Plugin Page

Closing this because the plugin page has been rewritten and integrated with our main website: https://github.com/gulpjs/gulpjs.github.io


Update documentation around mender-convert requiring mender.conf

Not completely correct. I'll rework.


Document the http_headers_getsetcookie and `urlsearchparams_delete_…

Document the http_headers_getsetcookie and urlsearchparams_delete_has_value_arg flags

This is under issue #9240

@irvinebroque

Closing this out as it seems to be outdated + merge conflicts.
(does not address the underlying issue of the undocumented compat flag noted in #10586)


Relay and Lightclient Integration

On hold due to blocker due to changes on the lightclient and sdk version on Centauri chain.
Prioritization currently on centralized relay and Injective deployment.


draft of repo and readme

Please review
/cc @raphael-proust @mseri @shonfeder

Thanks a lot!

anything left to be done here? from my perspective, this is fine to merge.

is it fine to merge, we can adjust later by follow-up PRs if necessary.


Out of memory on error

I've noticed that there is an error that, once throw, results in an out of memory exception. This is particularly annoying, as it hides the actual error.
It seems to happen when there is a type mismatch, and an object type was expected and an interface or union type was returned. I've traced it down to here: https://github.com/webonyx/graphql-php/blob/master/src/Executor/Executor.php#L986
I'm pretty sure the print_r call is the culprit (educated guess though), but I'm not sure how to replace it, while still providing the same valuable information.

Oh, you are right. This is a bug.

Fixed in https://github.com/webonyx/graphql-php/commit/6fb62b25b35f7252e8b2c3baad7540cfa73ec8a5
Will be included in next 0.9.10 release.


Please provide full examples

This page is an example, but it is a problem throughout the documentation that the examples are never complete. The required using statements do not appear and for XAML examples the location of the XAML and any enveloping structures are not given. So this page would be improved by:
<ContentPage.ToolbarItems>
<ToolbarItem ...
Clicked="OnItemClicked" />
</ContentPage.ToolbarItems>
as the example

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

ID: 84079a4a-8798-d710-58b4-df1bc3be6058
Version Independent ID: b12ca022-d891-6e99-2276-058424af27c5
Content: Xamarin.Forms ToolbarItem - Xamarin
Content Source: docs/xamarin-forms/user-interface/toolbaritem.md
Product: xamarin
Technology: xamarin-forms
GitHub Login: @profexorgeek
Microsoft Alias: jusjohns

Hi @ndastur,
Keeping our code and XAML samples concise in docs helps keep them readable. We try to provide a sample project that shows the full context and code. However, the XAML and C# examples in this case did not match so I have made the changes you requested.
It's worth mentioning that ToolbarItem can also be used in Shell menus or custom controls. So there are use cases beyond just the ToolbarItems collection.

Thanks, @profexorgeek for the reply and I understand the rationale. However, if the little snippets don't actually "work" then would it not be better to link to the full example code. I say this as the current process, from a users perspective is

read MS docs
use the snippet
find it doesn't work with some abstract error message in VS
scream at computer
Open the GitHub example
Search for the relevant file (as there is no direct link)
Then find a solution that does work
Rinse and repeat

I definitely understand your frustrations. We absolutely want the snippits to work (which is why I went ahead with your change) but sometimes things require significant config or boilerplate that clutters the doc. Finding where to draw that line is always a grey area! Thanks again for your feedback.


Make sure prepostfix boundaries are respected.

Fixes #189

Looks good! Wrote a short line comment about a small concern.
Also, I think we might want to have that other, longer test in there. This shorter test is a little bit too tightly coupled with the builtins, which may change in the future. In fact if I had to choose between the two tests, I'd prefer the longer one. (But both are fine, too.)

Uhhhh.
not ok 33 - non-associativity inherits through the 'is equal' trait

# Failed test 'non-associativity inherits through the 'is equal' trait'
# at ~/007/lib/_007/Test.pm (_007::Test) line 324

Huh, this patch has another failing test in custom-ops.t, according to Travis:
not ok 33 - non-associativity inherits through the 'is equal' trait

Going to try and build locally to see if I can reproduce the failure.

Isolating the test and running it in its own file makes it pass. Which means there's interference between one or more earlier tests and this one. Going to try to golf the failure.

...actually, this might be related to #190, since the test declares a postfix:<!>.

Yep. Commit coming up.

Pushed as 7bef7bc4f4e9afff1bb7617ee4b4341bac2e8349 on master. Try rebasing on this and running the tests again.

Let's seee.

Of course, it's a slight bit concerning that part of the issue is that the tests are not properly isolated from each other. That in itself is a possible separate avenue of investigation. I started down the path of golfing the test failure, but I abandoned it when I realized postfix:<!> was the culprit.

I'll wait to make sure this one passes now before adding the big brother test.

Sure thing.
It should pass. I rebase and tested locally, and that passed.

I'm willing to merge this now. Should I wait for the commit with the big test, or can we handle that after merge?

Right up ahead.

Looks good. Will merge, right after some commits I'm about to push.

Merged. Thanks!


Limited access in Network Session

Session and configuration are now private, it limits area of developers' implementation.
Example: updating GoodNetworking on Kia project leads to a problem that "flush url cache" of the session configuration cannot be supported:
'session.sessionConfiguration.urlCache?.removeAllCachedResponses()'.

Please create an PR in GoodNetworking making the session sessionConfiguration parameter public. I agree you should be able to access it for these reason.

@vaIerika https://github.com/GoodRequest/GoodNetworking/pull/20/files
would this help?


Compile error when installed with vcpkg

I am using the non-CMake version of Visual Studio, and I installed glog with vcpkg. However, I get the following error when trying to include the library:
Error  C1189   #error:  <glog/logging.h> was not included correctly. See the documention for how to consume the library.
Tried to resolve the above by adding #define GLOG_USE_GLOG_EXPORT, I get another error:
Error  C4996  google::CustomPrefixCallback': Use PrefixFormatterCallback instead.
Repro

Install glog using vcpkg: .\vcpkg\vcpkg.exe install glog
Create a new visual studio c++ console app
Include #include <glog/logging.h>
Build

What is your question? Especially given the compiler messages are self-explanatory.
In general, we do not support non-CMake builds. We also do not maintain the vcpkg version of glog.
If you choose to integrate glog from scratch, you need to replicate the compiler options and defines set by CMake.

I'm closing the issue since the problem is clearly caused by incorrect/unsupported glog integration. Note that similar questions have been asked before: #1091 #1079. The documentation also explicitly states that Bazel or CMake integration is required. Therefore, the issue is not actionable.

@sergiud Do you know who maintains the vcpkg version? vcpkg claims to support non-CMake builds, so I was hoping it has a solution to make it work with non-CMake.

The documentation contributed to glog states that the packages are maintained by the vcpkg project.

Error  C4996  google::CustomPrefixCallback': Use PrefixFormatterCallback instead.
This is caused by the
#if defined(GNUG)
pragma GCC diagnostic pop
#elif defined(_MSC_VER)
pragma warning(pop)
#endif  // GNUG#
after line 498 of logging.h being invoked before
[[deprecated("Use InstallPrefixFormatter instead.")]] GLOG_EXPORT void
InitGoogleLogging(const char* argv0, CustomPrefixCallback prefix_callback,
void* prefix_callback_data = nullptr);
moving it to follow resolves the deprecation warning error.


[YUNIKORN-1099] Fix deadlock in Application.notifyRMAllocationReleased()

What is this PR for?
Fixes a deadlock in Application.notifyRMAlloocationReleased(), and adds missing AllocationKey entry.
What type of PR is it?

[x] - Bug Fix
[ ] - Improvement
[ ] - Feature
[ ] - Documentation
[ ] - Hot Fix
[ ] - Refactoring

Todos

[ ] - Task

What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-1099
How should this be tested?
Updated tests and deadlock no longer occurs when run in real scheduler.
Screenshots (if appropriate)
Questions:

[ ] - The licenses files need update.
[ ] - There is breaking changes for older versions.
[ ] - It needs documentation.

@manirajv06 can you take a look? This appears to have been a miss in YUNIKORN-462.

@craigcondit Thanks. I am wondering why ReSyncSchedulerCache was not being called in this context earlier? But I think it should have been called even before. Right? Did we missed this even before? @wilfred-s

It's possible this was a miss before, but the new logic after the core->shim refactoring creates a deadlock and stops the scheduler cold. That's what this PR addresses.

Also, Should we need to clear cache in case of RMReleaseAllocationAskEvent events (application#notifyRMAllocationAskReleased() )?

I think given the scheduler interface is meant to be generic, it's important to let the shim process these events, whether or not it requires them. We don't really "clear the cache" per se on any of them, we just update the state to reflect what's in the core.

Changes look good. Should we create a separate jira to refactor (or avoid duplicating) this method?

I'm not 100% sure a refactoring is needed, but if so, let's do a follow-up JIRA. If the changes look good, can you add a +1?
Thanks!

I am not sure whether I communicated clearly. Just to make it explicit, I meant, application#notifyRMAllocationReleased() and context#notifyRMAllocationReleased() methods.

The two duplicate functions cannot be avoided. The application is in a sub package from the scheduler, objects. The scheduler imports that package. That means the application cannot contain the context. To do that would mean importing the scheduler package. That is a circular dependency.
That dependency is worked around by keeping a reference to the RMEventHandler in the application.

Also, Should we need to clear cache in case of RMReleaseAllocationAskEvent events (application#notifyRMAllocationAskReleased() )?

An ask is a pod that has not been scheduled yet. So it is a "new" pod that was created. That pod might or might not be in the cache just yet. It surely is not linked to a node. The only way that a pod is normally removed in that state is if it comes from the shim to the core. The only exception is a placeholder timeout. A placeholder that has not been placed on a node.
We should not be leaving anything around at the moment in the cache. Even for placeholders that timeout we clean up including the caches through the placeholder manager.

Got it. Thanks.


Can't start with HA 2023.5.2

I agree to the following

[X] I have read the documentation
[X] I am aware of the latest release notes
[X] The Backend (CCU/Homegear/...) is working as expected and connected devices are controllable by its own UI.
[X] I am running the latest version of the custom_component (and Home Assistant)

The problem
After uprading HA to 2023.5.2 and custom_Homeatic to 1.36.0 (in one shot) the integration does not start anymore. Also i'm not using homematic_ip at all but can't deactivate it in the settings anymore.
What version of HomematicIP (local) has the issue?
1.36.0
What was the last working version of HomematicIP (local)?
1.35.0
What type of installation are you running?
Home Assistant OS
What type of installation are you running for your homematic backend?
RaspberryMatic HA-Addon
Which version of your homematic backend are you running?
No response
What hardware are you running for your system?
No response
Which config details do you use

[X] Username and password
[ ] TLS
[ ] callback data (see)

Which interfaces do you use?

[ ] Homematic IP
[X] Homematic (Bidcos-RF)
[ ] Groups (Heating-Group)
[ ] BidCos-Wired (HM-Wired)

Diagnostics information
Logger: homeassistant.config_entries
Source: custom_components/hahm/init.py:26
Integration: Homematic(IP) Local (documentation, issues)
First occurred: 12:40:51 (13 occurrences)
Last logged: 14:35:00
Error setting up entry RaspberryMatic for hahm
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup
result = await component.async_setup_entry(hass, self)
File "/config/custom_components/hahm/init.py", line 26, in async_setup_entry
hass.config_entries.async_setup_platforms(config_entry, HAHM_PLATFORMS)
AttributeError: 'ConfigEntries' object has no attribute 'async_setup_platforms'
Anything in the logs that might be useful for us?
Logger: custom_components.hahm.config_flow
Source: custom_components/hahm/config_flow.py:277
Integration: Homematic(IP) Local (documentation, issues)
First occurred: 12:45:32 (16 occurrences)
Last logged: 14:34:57

Unable to connect (<ProtocolError for de838cd8-raspberrymatic:2010/RPC2: 503 Service Unavailable>,).
Unable to connect (<ProtocolError for de838cd8-raspberrymatic:42010/RPC2: 503 Service Unavailable>,).

Additional information
Logger: hahomematic.json_rpc_client
Source: custom_components/hahm/control_unit.py:179
Integration: Homematic(IP) Local (documentation, issues)
First occurred: 14:34:53 (2 occurrences)
Last logged: 14:34:53
login: Unable to open session: {'name': 'JSONRPCError', 'code': 503, 'message': 'service not available'}
post: Error while logging in via JSON-RPC.

Same issue like #1049

I followed the migration path. But now i can't setup the integration anymore:

Did you remove the integration from HA?

I don't know this error message.
Maybe more information is in the log files.

That'S the only error in the log:
Error occurred loading flow for integration homematicip_local: cannot import name 'cleanup_cache_dirs' from 'hahomematic.support' (/usr/local/lib/python3.10/site-packages/hahomematic/support.py)


added options container and readyEvent. container > only resources of…

… container or children are loaded. readyEvent > overwrite default ready event

thank @Anne-VI for your PR. can you explain for what you need the container option?

Hi @timomayer,
we use the conditional resource loader for two diffeferent cases in our project:

Loading of resources of all existing modules on initial page load
Loading of resources of modules that are added later to the markup (eg. additional ajax call)

To prevent race conditions when calling the resource loader plugin multiple times at the same time for different cases I added the container and the custom event.
Example:

We load the resources of the existing modules on page load > all $('[data-resources]')
Parallel we load content with an ajax call. This added content contains other modules that require the resource loader, too. These modules are not considered in the $('[data-resources]') of 1. The container is used in this case to just load the needed resources of the additional loaded content. With the custom event you can react when only these resources are loaded.

Best regards,
Anne

Hey @Anne-VI thanks for the explanation. i ll merge that PR but for the next version of conditionalLoader i prefere to use something like that: https://github.com/biotope/conditional-resource-loader/issues/11
do you think this will solve your problem too?
Please make sure you always use a css string not a jQuery object for the container because we are aiming for having the loader jQuery free with the next major version.


Compatibility for BIG-IP Health Monitors

BIG-IP v13.0 enforces a relationship between the health monitor interval and timeout values (interval must be less than timeout), whereas previous versions do not.

Fixed via d55c2d24b03a50ecd71803501ea2db1dfed5efb5


Allow empty local search neighbourhoods

This PR:

[x] Closes #272. By allowing empty local search neighbourhoods, the runtime error is no longer emitted and instances with zero or one client can be solved.
[x] Adds and passes relevant tests.
[x] Has well-formatted code and documentation.

Notes:

It is essential that you add a test when making code changes.
This keeps the code coverage level up, and helps ensure the changes work as intended.
When fixing a bug, you must add a test that would produce the bug in the master branch, and then show that it is fixed with the new code.
New code additions must be well formatted. Changes should pass the pre-commit workflow, which you can set up locally using pre-commit.
Docstring additions must render correctly, including escapes and LaTeX.

@wouterkool in #176 you weren't sure about this. In light of #272 I think we should allow this. Could you also have a look?


install error on windows

I download the code . Then I run python setup.py install . But get error like this
Compiling C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h5py-2.7.1\
temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Tempita\_tempita.py because it c
hanged.
[ 1/11] Cythonizing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h
5py-2.7.1\temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Compiler\Code.py
[ 2/11] Cythonizing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h
5py-2.7.1\temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Compiler\FlowControl.p
y
[ 3/11] Cythonizing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h
5py-2.7.1\temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Compiler\Lexicon.py
[ 4/11] Cythonizing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h
5py-2.7.1\temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Compiler\Parsing.py
[ 5/11] Cythonizing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h
5py-2.7.1\temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Compiler\Pythran.py
[ 6/11] Cythonizing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h
5py-2.7.1\temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Compiler\Scanning.py
[ 7/11] Cythonizing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h
5py-2.7.1\temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Compiler\Visitor.py
[ 8/11] Cythonizing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h
5py-2.7.1\temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Plex\Actions.py
[ 9/11] Cythonizing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h
5py-2.7.1\temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Plex\Scanners.py
[10/11] Cythonizing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h
5py-2.7.1\temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Runtime\refnanny.pyx
[11/11] Cythonizing C:\Users\ADMINI~1\AppData\Local\Temp\easy_install-wm04n7s9\h
5py-2.7.1\temp\easy_install-c4ohagku\Cython-0.27.3\Cython\Tempita\_tempita.py
warning: no files found matching '2to3-fixers.txt'
warning: no files found matching 'Doc\*'
warning: no files found matching '*.pyx' under directory 'Cython\Debugger\Tests'

warning: no files found matching '*.pxd' under directory 'Cython\Debugger\Tests'

warning: no files found matching '*.pxd' under directory 'Cython\Utility'
error: Setup script exited with error: Microsoft Visual C++ 14.0 is required. Ge
t it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com
/visual-cpp-build-tools

do you know why?
I try python3.6 64bit, python3.6 32bit. All failed.

Try installing pip and using it for installing Magpie like it's recommended in the docs:
pip install<EMAIL_ADDRESS>

this must be the same as I clone the code and run command 'python setup.py install'.

Depending on the version you cloned - pip install pins it to a particular tag.
Your error is clearly not related to Magpie, but your setup on Windows - I don't know exactly what you need to run it there, I only know of people running it on Unix systems. Seems like they want you to install Microsoft Visual C++ in order to run it.

I install this package on linux but still failed. So if the version2.0 can be upload to pypi ,may be install easier?

It would be installed the same way, also through pip, just the hosting would be different. What error are you getting? Are you using a separate virtualenv for it?

thanks a lot ,finally I install success on ubuntu.

I'm trying to install it on Windows. It asked me to install a fortran compiler but then I had errors with it:
error: Command "C:\MinGW\bin\gfortran.exe -Wall -g -Wall -g -shared build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqag.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqage.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqagi.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqagie.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqagp.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqagpe.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqags.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqagse.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqawc.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqawce.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqawf.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqawfe.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqawo.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqawoe.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqaws.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqawse.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqc25c.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqc25f.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqc25s.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqcheb.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqelg.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqk15.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqk15i.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqk15w.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqk21.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqk31.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqk41.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqk51.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqk61.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqmomo.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqng.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqpsrt.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqwgtc.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqwgtf.o build\temp.win-amd64-3.6\scipy\integrate\quadpack\dqwgts.o build\temp.win-amd64-3.6\scipy\integrate\mach\d1mach.o build\temp.win-amd64-3.6\scipy\integrate\mach\xerror.o -Lc:\mingw\lib\gcc\mingw32\6.3.0 -Lc:\mingw\lib -LC:\ProgramData\Anaconda3\libs -LC:\ProgramData\Anaconda3\PCbuild\amd64 -Lbuild\temp.win-amd64-3.6 -o build\temp.win-amd64-3.6\Release\.libs\libdqag.W7PDASVWOSXFFJ7HWJHZAUH5TQ2SL3GC.gfortran-win_amd64.dll -Wl,--allow-multiple-definition -Wl,--output-def,build\temp.win-amd64-3.6\Release\libdqag.W7PDASVWOSXFFJ7HWJHZAUH5TQ2SL3GC.gfortran-win_amd64.def -Wl,--export-all-symbols -Wl,--enable-auto-import -static -mlong-double-64" failed with exit status 1

    ----------------------------------------
Command "C:\ProgramData\Anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\antoi\\AppData\\Local\\Temp\\pip-install-53gin2lu\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\antoi\AppData\Local\Temp\pip-record-yzum5fyd\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\antoi\AppData\Local\Temp\pip-install-53gin2lu\scipy\

I wonder if magpie is compatible with Windows?


Articles from an RSS feed are continuously reported as being 0 mins old

Describe the bug
Following the latest release of v1.29.0 (115) I find that with the (welcome) addition of a read status one of my feeds i.e. Google AI blog (RSS) always reports the time for all articles as 0 mins since posted. This does increase over time for however long I leave it but once I refresh the feed it resets to 0.
To Reproduce
Steps to reproduce the behavior:

Add RSS feed for google AI blog (linked in the issue)
Add it Twine
All articles will be shown as 0 mins since posted
Wait a few mins then refresh, they are reset again

Screenshots

Device Information

Device: Pixel 8 pro
OS: Android 14
App Version 1.29.0

Thanks for reporting @akinsho , can you also link me to some of the other feeds that might potential be showing similar date issue?

If this is the only one, I have resolved it and should be available in next update and I can close this issue.

@msasikanth that's the only one I've noticed actually. I didn't want to assume whether or not it's general but can't see any other issues 👍🏾


IMGUI_DEFINE_MATH_OPERATORS issues

When linking / compiling with imgui, I receive the error

Please define IMGUI_DEFINE_MATH_OPERATORS BEFORE including imgui.h

The includes within this project are fairly messy, since imgui.h is included twice or even thrice (Settings.h being one offender).
Cleaning Includes should repair this issue and make it future-proof.

Hi, I think this is fixed (it did fix the issue for me at least). Feel free to reopen it if the problem persists.


How to use the exclusionPatterns extension

About this issue
Good day,
I'm trying to use the exclusion pattern. Found some old documentation and issues that still used a string array. The current version wants a List of type Pattern though. When I use it like below I get "unresolved reference util" but somehow not when specifying the List type
List<java.util.regex.Pattern>
but only here: java.util.regex.Pattern.compile("androidx.*")
aboutLibraries {
        exclusionPatterns =   List<java.util.regex.Pattern>(java.util.regex.Pattern.compile("androidx.*"),
                                             java.util.regex.Pattern.compile("com.google.android.*"))
    }

Details

[ 10.6.0] Used library version
[ ] Used support library version
[x] Used gradle build tools version
[ ] Used tooling / Android Studio version
[ ] Other used libraries, potential conflicting libraries

Checklist

[x] Searched for similar issues
[x] Checked out the sample application
[x] Read the README
[x] Checked out the CHANGELOG
[x] Read the MIGRATION GUIDE

Good day.
The exclusion feature is a bit more hidden, given that normally I'd advice against excluding libraries to be displayed. But I understand that there are usecases where this is needed.
Within a *.gradle file you can use the following to define the regex:
exclusionPatterns = [~"androidx.*", ~"com.google.android.*", ~"org.jetbrains.*"]

Within a gradle.kts file the following should work:
exclusionPatterns = listOf(
        Pattern.compile("androidx.*")
    )

Thanks @mikepenz I tried that before as well in my gradle.kts. It can't resolve Pattern then and suggests me to resolve it to java.util.regex.Pattern..then I get the error though that java.util can't be resolved.
I'll just follow your advice and keep all libraries displayed. Dankschön!

@jtothe4n is it possibly a different gradle file which gets included? I think there's something strange about gradle whereas in external gradle files, imports may not resolve (but I think there's not much I can do about it)
You are welcome


Different MOTA score when using ByteTrack and TrackEval?

Hi, thanks for your amazing work.
But I got different MOTA score when using evaluation code in ByteTrack and TrackEval (72.5 vs. 73.275).
Do you know the reason of that? Or there are some parameters to set?

I encounter the same too, for both MOTA (76.4 vs. 77.78) and IDF1 score (79.4 vs 79.95) in ByteTrack and TrackEval


Config importer function returns wrong path when using ESM loader

Package version
2.2.2
Describe the bug
Node.js versions 16.17.0 & 18.12.1
Hello!
I have an ESM project and I tried to integrate Japa to run tests. However, when I run this command
node --loader=ts-node/esm bin/test.ts I get the following error:
Only URLs with a scheme in: file, data are supported by the default ESM loader. On Windows, absolute paths must be valid file:// URLs. Received protocol 'c:'

     1  defer
       node_modules/.pnpm/ts-node@10.9.1_2ddbbb1508daf8c6199f587657236c9e/node_modules/ts-node/src/esm.ts:159

     2  entrypointFallback
       node_modules/.pnpm/ts-node@10.9.1_2ddbbb1508daf8c6199f587657236c9e/node_modules/ts-node/src/esm.ts:168

     3  anonymous
       node_modules/.pnpm/ts-node@10.9.1_2ddbbb1508daf8c6199f587657236c9e/node_modules/ts-node/src/esm.ts:202

       node_modules/.pnpm/ts-node@10.9.1_2ddbbb1508daf8c6199f587657236c9e/node_modules/ts-node/src/esm.ts:409

     5  resolve
       node_modules/.pnpm/ts-node@10.9.1_2ddbbb1508daf8c6199f587657236c9e/node_modules/ts-node/src/esm.ts:197

Same thing with tsx.
This is my tsconfig.json file:
{
  "compilerOptions": {
    "target": "ESNext",
    "lib": [
      "ESNext",
      "DOM"
    ],
    "module": "ESNext",
    "moduleResolution": "Node",
    "baseUrl": ".",
    "typeRoots": [
      "src/types"
    ],
    "outDir": "./dist",
    "isolatedModules": false,
    "esModuleInterop": true,
    "skipLibCheck": true
  },
  "exclude": ["node_modules", "dist"],
  "ts-node": {
    "esm": true,
    "transpileOnly": true
  }
}

I have a simple test file:
import { test } from "@japa/runner";

import parsePolicy from "../src/parse_policy.js";

const policy = {
  "@context": "http://www.w3.org/ns/odrl.jsonld",
  "@type": "Set",
  uid: "http://example.com/policy:1010",
  permission: [
    {
      target: "http://example.com/asset:9898.movie",
      action: "use",
    },
  ],
};

test.group("Policy parser", () => {
  test("should parse ODRL policy", async ({ assert }) => {
    const parsedPolicy = await parsePolicy(JSON.stringify(policy));

    assert.lengthOf(parsedPolicy.permissions, 1);
  });
});

Thank you!
Reproduction repo
No response

It seems that the importer function needs to return a path that starts with file:// (I don't know if it's a bug or intended). Solution below:
configure({
  ...processCliArgs(process.argv.slice(2)),
  ...{
    files: ["tests/**/*.spec.ts"],
    plugins: [assert(), runFailedTests()],
    reporters: [specReporter()],
    importer: (filePath) => import(`file://${filePath}`), // ⬅ Here
  },
});

@thetutlage Can you please confirm whether it's a bug or not?

Not a bug, the same needs to be written inside in an ESM project manually. We are doing it on all AdonisJS packages too.
Maybe, the create-japa initializer can generate the right code for bin/test.ts file

Not a bug, the same needs to be written inside in an ESM project manually. We are doing it on all AdonisJS packages too.
Maybe, the create-japa initializer can generate the right code for bin/test.ts file

Thank you. I think it's also a good idea to add a note about this here: https://japa.dev/docs/usage-with-typescript#esm-projects

Added option for a TypeScript ESM project in the create-japa package. https://github.com/japa/create-japa/commit/e05d09a72673368cbbf7de7e78b193ff5b6ad999


Keras Singular value decomposition

Keras has made our life really easy for coding in deep learning. New activation function can be added. But some aspect is not clear. When I try to use Singular value Decomposition(svd) using same way as adding activation function I have failed. While using theano.tensor.nlinalg.svd(x) where x is input matrix it is saying expecting matrix. While using numpy.linalg.svd(x) it's saying getting 0-dim vector expecting 2-dim matrix. How to solve svd problem in keras

Why are you trying to use SVD as an activation function?
SVD does not return one matrix, it returns a tuple of matrices.
It doesn't make sense to compute SVD across samples.
Hypothetically, lets say you had an output shape of (batch_dim, n, n), you could compute SVD across each nxn matrix in the batch.
To do so, you need something like this. This will run SVD on each matrix in the batch, and create a matrix of the U values (element 0 returned from svd).
Lambda(lambda x: theano.scan(lambda z: svd(z)[0], sequences=x)[0])

Cheers,
Ben

Thanks a lot Sir for responding.
Actually I would like to reconstruct some images with smaller dimension using svd (PCA). I have utilized autoencoder in keras to reduce the dimension of mnist and it works pretty well. But I would want to do using svd. So like creating custom activation function using Theano, I have tried to  do the same thing with svd using Theano but while parsing matrix dimension is not matching  as theano expects 2 dimension matrix but I am sending 4 dimension mnist train set whose shape is (60000,1,28,28).
So I would like to know will the above code you wrote able to parse svd.
Example:
**class MyTan(Layer):
def init(self, alpha, **kwargs):
self.supports_masking = True
self.alpha = alpha
super(MyTan, self).init(**kwargs)
def call(self, x, mask=None):
     return theano.tensor.nlinalg.svd(x)
def get_config(self):
    config = {'alpha': self.alpha}
    base_config = super(MyTan, self).get_config()
    return dict(list(base_config.items()) + list(config.items()))**

While executing  return theano.tensor.nlinalg.svd(x) section dimension mismatch error is giving. How can I execute the section.
Thanks in advance for being so helpful.
Gourab

Activation functions run on an entire batch, not just one sample.
Read theano documentation on scan and maybe ask some questions on the theano user groups.
Basically, scan can be used to apply an operation over a sequence. so scan(lambda z: svd(z)[0], sequences=x) will return svd(z)[0] where z is each row in x.
So if you want to apply matrix decomposition to each image, you need to use scan to apply a function to each image, and write the decomposition you want to do within scan.
If you scan a sequence of shape (x,28,28,1), the lambda within scan will get shape (28,28,1) and be applied x times.
You probably don't need to write an entire layer. You can just use a Lambda layer and make sure to set the output_shape. After you get the Lambda working, you can write a custom class if you want to make a library or something.

Thank you so much, I will try your ways to get some solution.


LogstashSocketAppender prefix example incorrect

I have tried using the example given in the README with my SpringBoot (1.3.2) app
<configuration>
  <conversionRule conversionWord="syslogStart" converterClass="ch.qos.logback.classic.pattern.SyslogStartConverter"/>

  <appender name="stash" class="net.logstash.logback.appender.LogstashSocketAppender">
    <host><IP_ADDRESS></host>
    <port>514</port>
    <prefix class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
      <layout class="ch.qos.logback.classic.PatternLayout">
        <pattern>%syslogStart{LOCAL5}</pattern>
      </layout>
    </prefix>
  </appender>

  ...
</configuration>

but this results in an error
Application startup failed
java.lang.IllegalStateException: Logback configuration error detected:
ERROR in ch.qos.logback.core.joran.util.PropertySetter@10d307f1 - A "ch.qos.logback.core.encoder.LayoutWrappingEncoder" object is not assignable to a "ch.qos.logback.core.Layout" variable.
ERROR in ch.qos.logback.core.joran.util.PropertySetter@10d307f1 - The class "ch.qos.logback.core.Layout" was loaded by
ERROR in ch.qos.logback.core.joran.util.PropertySetter@10d307f1 - [sun.misc.Launcher$AppClassLoader@73d16e93] whereas object of type
ERROR in ch.qos.logback.core.joran.util.PropertySetter@10d307f1 - "ch.qos.logback.core.encoder.LayoutWrappingEncoder" was loaded by [sun.misc.Launcher$AppClassLoader@73d16e93].

but if I remove the wrapping LayoutWrappingEncoder the code works.
  <appender name="JSON_SYSLOG" class="net.logstash.logback.appender.LogstashSocketAppender">
    <host><IP_ADDRESS></host>
    <port>514</port>
    <prefix class="ch.qos.logback.classic.PatternLayout">
       <pattern>%syslogStart{LOCAL5}</pattern>
    </prefix>
  </appender>

so I assume this example is incorrect.

Thanks for reporting!
Fixed the documentation in commit 88b0c369e6223393e93844ae842fb8f8241657e6
The LayoutWrappingEncoder is required when using a prefix within an encoder.  But it's not required when using it within a layout or within the LogstashSocketAppender

@philsttr, this works, but  in your example of the documentation I get the following messages:
19:15:04,813 |-ERROR in ch.qos.logback.core.joran.util.PropertySetter@1f9d6c7b - A "net.logstash.logback.encoder.LogstashEncoder" object is not assignable to a "ch.qos.logback.core.Appender" variable.
19:15:04,813 |-ERROR in ch.qos.logback.core.joran.util.PropertySetter@1f9d6c7b - The class "ch.qos.logback.core.Appender" was loaded by
19:15:04,813 |-ERROR in ch.qos.logback.core.joran.util.PropertySetter@1f9d6c7b - [sun.misc.Launcher$AppClassLoader@3d4eac69] whereas object of type
19:15:04,813 |-ERROR in ch.qos.logback.core.joran.util.PropertySetter@1f9d6c7b - "net.logstash.logback.encoder.LogstashEncoder" was loaded by [sun.misc.Launcher$AppClassLoader@3d4eac69].

for the following config:
<configuration>
    <appender name="FOO" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="net.logstash.logback.encoder.LogstashEncoder">
            <customFields>{"stage":"${STAGE_NAME}","function":"${FUNCTION_NAME}"}</customFields>
            <prefix class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
                <layout class="ch.qos.logback.classic.PatternLayout">
                    <pattern>*** FOO:</pattern>
                </layout>
            </prefix>
        </encoder>
    </appender>
...
</configuration>

What can I do to fix this?

Hi @onema,
Unfortunately, you're running into a backwards incompatibility introduced in logback (LOGBACK-1326), as mentioned in logstash-logback-encoder #232.
I have submitted logback PR#383 to address this problem, but it has not gotten any attention in over a year.
Please help out by voting for LOGBACK-1326 and adding a thumbs up to PR#383 to try to get this addressed in logback.
In the meantime, the only solution to get this working would be to downgrade logback-classic and logback-core to 1.2.0 (before the backwards incompatibility was introduced)

Thanks for your response @philsttr, I up-voted and added a comment. Hopefully, it will help!

As @philsttr said, going to downgrade the version of logback-classic and logback-core to 1.2.0 is an excellent but unique solution at this moment. Trying to verify if these two dependencies have been added in the pom.xml is also important.
Anyway, thanks for @philsttr . 💪


Won't start with error - Cannot read property 'time' of null

I'm having trouble following docker installation guide. It works fine for bitfinex, but not okcoin or hitbtc (didn't try coinbase).
My sample Dockerfile:
FROM node:0.12.7
RUN apt-get update

RUN apt-get install -y git

RUN git clone https://github.com/michaelgrosner/tribeca.git

WORKDIR tribeca

RUN npm install -g grunt-cli tsd forever
RUN npm install

RUN tsd reinstall -s
RUN grunt compile

EXPOSE 3000 5000

# General config properties. Properties with `NULL` should be replaced with your own exchange account information.
ENV TRIBECA_MODE prod
ENV EXCHANGE hitbtc
ENV TradedPair BTC/USD
ENV WebClientUsername NULL
ENV WebClientPassword NULL
ENV WebClientListenPort 3000
# IP to access mongo instance. If you are on a mac, run `boot2docker ip` and replace `tribeca-mongo`.
ENV MongoDbUrl mongodb://tribeca-mongo:27017/tribeca

# DEV
## HitBtc
ENV HitBtcPullUrl http://api.hitbtc.com
ENV HitBtcOrderEntryUrl wss://api.hitbtc.com:8080
ENV HitBtcMarketDataUrl ws://api.hitbtc.com:80
ENV HitBtcSocketIoUrl https://api.hitbtc.com:8081
ENV HitBtcApiKey xxx
ENV HitBtcSecret xxx
ENV HitBtcOrderDestination HitBtc

WORKDIR tribeca/service
CMD ["forever", "main.js"]

And error I get:
info: 9/2/15 15:35:28,406       [tribeca:mtbroker]      loaded 0 market trades
error: Terminating! uncaughtException [TypeError: Cannot read property 'time' of null] TypeError: Cannot read property 'time' of null
    at LoaderSaver.saver (/tribeca/tribeca/service/persister.js:35:25)
    at Persister.MarketTradesLoaderSaver.saver [as _saver] (/tribeca/tribeca/service/markettrades.js:20:32)
    at Persister.persist (/tribeca/tribeca/service/persister.js:139:19)
    at EventEmitter.MarketTradeBroker.handleNewMarketTrade (/tribeca/tribeca/service/markettrades.js:58:30)
    at EventEmitter.emit (events.js:107:17)
    at Evt.trigger (/tribeca/tribeca/service/utils.js:41:62)
    at /tribeca/tribeca/service/gateways/hitbtc.js:109:35
    at Array.forEach (native)
    at Request._callback (/tribeca/tribeca/service/gateways/hitbtc.js:105:42)
    at Request.self.callback (/tribeca/node_modules/request/request.js:198:22)

What gives?

I've tested bitstamp and btce as well. All with different errors (bitstamp almost works). So perhaps it's just API problem.

I fixed the issue in 10b86b816e44bbf780bf214f849d623b6ba84c6a -- can happen when there is a trade in the market without a quote generated yet by the code

This solved the issue. Now there are different one's (I'll raise another issue), but at least it doesn't crash.
Thanks!


Analyze best way for DAG steps to share data

💡 Description

Options are EFS, S3, other databases
That could managed as:

a constraint on the DAG steps implementation, e.g. must support S3 to read/write interfaces
generic DAG's component running during the execution and made available, somehow to the other components
specific DAG's running environments providing these specific component interfaces to the other components
...

A good place to start is to get inputs from PODAAC on how they do that in Cumulus.

Evaluated the following options to share data between Airflow tasks:

EFS
S3
Databases
Airflow XComs (https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/xcoms.html)

EFS:
Pros:

It is really easy to integrate EFS with ECS Tasks, because we can introduce the access points of EFS as volumes in an ECS Task definition. This helps to use PDS Docker images as it is without making any Nucleus specific changes.
Higher performance compared to S3.

Cons:

EFS is a higher cost option compared to storage options such as S3.

S3:
Pros:

S3 is a lower cost option compared to EFS and Databases.

Cons:

It is required to use a library like s3fs (3fs is a FUSE filesystem that allows you to mount an Amazon S3 bucket as a local filesystem) in order for a Docker container to write/read files to/from an S3 bucket. That means we have to modify PDS Docker images to support S3.
Lower performance compared to EFS and Databases.

Databases:
Pros:
Higher performance compared to S3.
Other features of databases such as transaction management, queries and security can be easily utilized.
Cons:

EFS is a higher cost option compared to storage options such as S3.
It is required to modify PDS Docker images to support database read/writes.

Airflow XComs:
Pros:

XComs is an inbuilt feature of Airflow and can be easily integrated with DAGs.
There is no additional cost to use XCom.

Cons:

XComs are not recommended for large amounts of data.

Recommendations:
Considering the above pros and cons of each option, we can make following recommendations:

Especially considering the lower cost, S3 can be used as a way to share data between tasks in an Airflow DAG.
The Docker images of PDS components should be modified in a way to make the support for S3 optional. This can be achieved by  passing additional parameters to each docker container and only use s3fs library to connect to S3 conditionally (The docker images can still be used without S3, if there are not S3 relate parameters being passed).
To avoid overwriting data in S3 (when same DAG is executed multiple times in parallel), the data will be save in a directory uniquely named with the a combination of Airflow variables such as dag_id, job_id, run_id etc. (E.g: https://airflow.apache.org/docs/apache-airflow/1.10.4/_api/airflow/models/dagrun/index.html)
Airflow XComs can still be used to pass above unique directory names between tasks.

References:

Airflow Models (including variables) https://airflow.apache.org/docs/apache-airflow/1.10.4/_api/airflow/models/index.html
Airflow XComs: https://airflow.apache.org/docs/apache-airflow/stable/core-concepts/xcoms.html
Amazon S3 Pricing: https://aws.amazon.com/s3/pricing/
Amazon Dynamo DB Pricing: https://aws.amazon.com/dynamodb/pricing/on-demand/
Amazon RDS Pricing: https://aws.amazon.com/rds/pricing/
S3FS: https://linux.die.net/man/1/s3fs
How to Install s3fs to access s3 bucket from Docker container: https://maxcotec.com/learning/how-to-install-s3fs-to-access-s3-from-docker-container/

Additional note on Cumulus:
Had a chat with a Cumulus user and got to know that they use S3 buckets to share data between tasks in a workflow. At the end of each task, the data is uploaded to an S# bucket and then the next task downloads data from the same S3 bucket.

Agreed during the breakout to move forward with the S3fs solution.


[WIP] Overhauls Dataset get/query fields

Description
From discussion with @mattwelborn we decided to overhaul the get/query functionality in the Dataset collection. This renaming is as follows:

get_records will return either full ResultRecords or a project, no caching. Replaces query.
get_molecules will return the Molecule objects for the Dataset.
get_values will return the canonical values in data columns. Replaces get_history, but also always returns the view of the query. So get_values("B3LYP", "sto-3g") will now return that column while also caching it internally for speed.
get_contributed_values will now return a column rather than the object representation.

The ReactionDataset tech is still being overhauled.
Status

[ ] Changelog updated
[ ] Ready to go

I've looked through the code for dataset, and I didn't find any issues. I'm going to next kick the tires on the new dataset functions.

Projection onto a missing field causes an internal server error. Can this be checked client-side?

Unlikely, but I think we have an issue to give this a better error message. It isn't a 1-1 mapping for Record attributes to SQL fields which is what projection is really checking. I think we can improve that, but would take some time.

I figured this would be pretty rough since it was a deep and haphazard time. Let me see what I can work out.

@dgasmith I'm ready to merge this if you are.

Agreed, in we go.


test build

testing

Add testing process in https://github.com/ray-project/kuberay/pull/276#issuecomment-1143190223 and we can close this one.


Update kotlin gradle plugin to 1.8.10

This PR fixes broken builds using a high version of kotlin_version and flutter 3.

I'm pretty sure I compiled the example with Flutter 3. I am not sure about the Kotlin version, tho.
Thanks for the contribution!

Hi @mateusfccp, any news about this PR?

Hi, @andreadelfante. I tried your PR just right now, and got a problem.
Trying to compile the example, which is set to ext.kotlin_version = '1.6.10' will fail on your PR. I only got to compile the example after also updating the example to 1.8.10.
On the other side, leaving the version the same as it is now (1.3.50) will compile perfectly in the example when it's set to 1.8.10.
It seems that this is not what we want, as we may be forcing the clients of this package to update their Kotlin version unnecessarily, and people who uses more recent Kotlin versions can still compile their app.
I could not reproduce the error you showed in the PR description.
Maybe I am missing something?

@andreadelfante I just saw this page that says that, since Flutter 2.10, it's required a Kotlin version of 1.5.31 or greater. I don't know why I can build the example package with a lower version.
Does this solves your problem? Can we upgrade the version to 1.5.31 instead?

I just tried, changing:
ext.kotlin_version = '1.3.50' to ext.kotlin_version = '1.5.31' in the file:
update_available_android/android/build.gradle
Directly into my repositories and packages cache and my project compiled, so I guess so.
However, I detail the versions that are in my project:

Flutter version: 3.10.5
Dart version: 3.0.5
In my project pubspec.yaml:
environment: sdk: '>=3.0.5 <4.0.0'
In my project android/build.gradle:
ext.kotlin_version = '1.7.10'

Yeah, I think this is the way to go. We want to support the lowest possible version, and it seems that current Flutter requires at least 1.5.31.
@andreadelfante, could you make this change so we could merge your PR?

Also, please bump the Flutter supported version from 2.8 to 2.10 in the packages

Hello, as I need this plugin in my project, and I don't see an answer, can I do the PR myself?

Superseded by 2a6c617.


Permission denied during backup encryption on Openshift

Permission denied during backup encryption on Openshift
2024/08/14 09:54:24 INFO: Backup database to Remote server
22024/08/14 09:54:24 INFO: Starting database backup...
32024/08/14 09:54:24 INFO: Connecting to database ...
42024/08/14 09:54:24 INFO: Successfully connected to database
52024/08/14 09:54:24 INFO: Backing up database...
62024/08/14 09:54:24 INFO: Database has been backed up
72024/08/14 09:54:24 INFO: Encrypting backup...
8gpg: Fatal: can't create directory '//.gnupg': Permission denied
92024/08/14 09:54:24 ERROR: Error during encrypting backup exit status 2

This issue will be fixed in the upcoming update.
Meanwhile, GNUPGHOME environment variable can be set to /tmp to fix the permission issue
        env:
          - name: GNUPGHOME
            value: "/tmp"

Fixed in v1.2.2


Add sort() calls to validation code

🗣 Description
This pull request adds some sort() calls to the validation code for the email_sending_domains input variable.
💭 Motivation and context
This is necessary since tolist(["a", "b", "c"]) != tolist(["c", "b","a"]) in Terraform.
🧪 Testing
I verified via terraform console that
sort(tolist(["a", "b", "c"])) == sort(tolist(["c", "b","a"]))

✅ Pre-approval checklist

[x] This PR has an informative and human-readable title.
[x] Changes are limited to a single goal - eschew scope creep!
[x] All relevant type-of-change labels have been added.
[x] I have read the CONTRIBUTING document.
[x] These code changes follow cisagov code standards.
[ ] All new and existing tests pass.

Turns out this change is unnecessary.


Plugin for local HTML coverage report generation

Hello,
(This is a follow-up to a slack discussion)
In some of my projects, I'm using a small lcov-based script to locally generate HTML coverage reports, without any need to rely on online platforms such as coveralls.
I'm planning to take advantage of the upcoming Julia industry users contributhon to integrate this as a PkgTemplate plugin, and propose this new feature as a PR in case it could be interesting to others.

In the meantime, I discovered LocalCoverage.jl, which pretty much does what I wanted to do and more. Presumably, any user interested in local coverage reports generation can install LocalCoverage.jl in their default environment and use it for all their packages, without having to do anything special when creating their packages.
So I would suggest to close this issue (unless someone is really interested in having support for it in PkgTemplates?)


Consistent hashing and "prefetch count"

Hi,
I've played around with channels a few weeks back, but I can see that a lot have changed since then  :-)
I have a use case in which I must assure that only a single command is executed per account at a given time.
Can I leverage the response channels (!account1,!account2), in a way that the matching workers will process them one at a time and in orders?
Will this use case be addressed as a part of the channels framework?
Best,
Erik.

This isn't something natively built into channels - response channels won't get listened to by workers in the way you intend (and you have reminded me I should make them unroutable); they'll just get multiple listeners anyway.
If you want to do this, you need to either:

Use your own custom messages with an incrementing order key and the global_ordering decorator in strict mode with a custom reply channel that matches a username
Manually keep track of the lock state using a datastore
Don't use channels for this and use something else

Channels is generally designed for shared-nothing processing, so it's not natively suited to the idea of "one command per user" - by asking for that, you suddenly require that the whole system knows about the rest of it, which is great for processing but awful for performance. This is one of the things, like retrying tasks, that I expect to be built on top of it as an opt-in thing for people.

Thanks for the elaborate answer!
Regarding the first option, can I use a different order key per "account"?

Or better terminology would be account revision...

Order is enforced strictly on the value of reply_channel, so match that up as you like.

Be aware, though, that channels is non-guaranteed delivery - there's a chance that one of your messages won't get through at all (very small, but you need to prepare for it). If you absolutely need guaranteed, in-order, exactly-once processing, channels is not the task queue you need.

Great thanks!


Simple addition of Label as subject in CloudEvent (out)

Mind that it's a combination of the cloud event type/id and not from the data. Is it still that relevant then?

fixed by #19


Avoid layout jumps in sidebar

Moves the ad block under the newsletter block so the newsletter block doesn't get bumped down on load
Adds a very slight fade to the ad block so it's not too sudden
Give the Carbon image a min height so the space is filled before the image is loaded

Very nice, thanks!


Remove Wisc AP

This should be followed up with the results of netsec-ethz/scion-tutorials/issues/118, when closed.

Just FYI, we should be having bandwidth tester already running in all the APs (and many other infra nodes). Sorry for the confusion but the missing feature has been only implemented a few days ago :)


bump go version in travis

@shaggytwodope thanks for this catch. This fix was added in a PR already here https://github.com/odeke-em/drive/pull/645/files#diff-354f30a63fb0907d4ad57269548329e3R4 that I'll be merging pretty soon.

Right on.


added Searchbar

Issue Ticket Number
Fixes #364

Type of change

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

Checklist:

[ ] I have followed the contributing guidelines of this project as mentioned in CONTRIBUTING.md
[ ] I have checked to ensure there aren't other open Pull Requests for the same update/change?
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes needed to the documentation

@Debajyoti14

@Debajyoti14  fixed deployment errors

Congrats @saimaheshtaduri 🎉, your PR got merged. To be eligible for the swags from ClueLess. Follow this steps.

Star this repository. ⭐
SignIn / SignUp in [ClueLess Website](https://www.clueless.tech/) .
Go to profile section from the top right hand corner.

Comment your profile URL under this comment tagging the person who merged your PR.

That’s it. Follow the leaderboard !
And don’t forget to share your achievement with your friends.


Introduce documentation about encryption

While I was writing the documentation, i found out a few opportunities to improve the variables to configure this feature, so you might see a couple of patches renaming/changing variable names and values.
Also, I created a docs directory to organize better the documentation.
In case you want to see how the new markdown files are rendered, please check my fork:
https://github.com/sergioprado/meta-toradex-security/tree/enc-docs

@rborn-tx I submitted another PR for review with your comments addressed. Thanks!

@sergioprado Thanks for the updates. Merging now.


About the data augment

@joonson  In rirs_noises,the files almost   are multi-channel.So,Did you first convert files with multi-channel to single-channel?
Because the function convolve in signal gets the two arrays which  should have the same number of dimensions . If I dont do that ,I will get the error "ValueError: volume and kernel should have the same dimensionality" in code "signal.convolve(audio, rir, mode='full')[:,:self.max_audio]".

Can you give me the name of the file that is multi-channel? They look like single channel to me.

@joonson ‘RIRS_NOISES/real_rirs_isotropic_noises/RWCP_type1_rir_circle_e1c_imp040.wav’

Did you extract the files using ./dataprep.py? This file should not be included.

Oh， I'am sorry. I only download it. Thanks! It works.


Flyway licensing for oracle

Which version and edition of Flyway are you using?
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Which database are you using (type & version)?
Which operating system are you using?
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
What did you expect to see?
What did you see instead?

Hello:
I've a question about licensing for oracle.
"Number of schemas in production managed by Flyway" what does it mean?

For Oracle it is a user whose objects are managed by Flyway. See https://flywaydb.org/download/faq#what-exactly-is-a-schema
Let's continue this discussion by email as it is a better place for this than the issue tracker which is for the technical aspects of the product. Please send us an email at<EMAIL_ADDRESS>and we can talk there.

Hi Alex,
Thanks. What does mean of "schemas managed by flyway"?
Thanks,
Pragnesh
On May 13, 2019 10:48 PM, Axel Fontaine<EMAIL_ADDRESS>wrote:
For Oracle it is a user whose objects are managed by Flyway. See https://flywaydb.org/download/faq#what-exactly-is-a-schema
Let's continue this discussion by email as it is a better place for this than the issue tracker which is for the technical aspects of the product. Please send us an email at sales<EMAIL_ADDRESS>and we can talk there.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/flyway/flyway/issues/2385?email_source=notifications&email_token=ALVQW5KYZXE2VY3SBIECSNDPVJHCNA5CNFSM4HMUJSN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVKKTQY#issuecomment-492087747, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALVQW5PKMABZPT777URQX4TPVJHCNANCNFSM4HMUJSNQ.

What does mean of "schemas managed by flyway"?

As I wrote, for Oracle it is a user whose objects (tables, views, procedures, ...) are managed (create, alter, drop, ...) by Flyway. See https://flywaydb.org/download/faq#what-exactly-is-a-schema

So basically there are 100 users in the database with objects, needs license for 100 schemas?
Thanks,
Pragnesh
On May 14, 2019 1:53 AM, Axel Fontaine<EMAIL_ADDRESS>wrote:
What does mean of "schemas managed by flyway"?
As I wrote, for Oracle it is a user whose objects (tables, views, procedures, ...) are managed (create, alter, drop, ...) by Flyway. See https://flywaydb.org/download/faq#what-exactly-is-a-schema
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/flyway/flyway/issues/2385?email_source=notifications&email_token=ALVQW5MHKTVNZDXKDR3J67TPVJ4XVA5CNFSM4HMUJSN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVKZTXQ#issuecomment-492149214, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ALVQW5ND4MZWLCQKRTEXH2DPVJ4XVANCNFSM4HMUJSNQ.


Object of type Sentiment is not JSON serializable everytime Python parses the sentiment=<Sentiment.UNKNOWN: ''>

What is the current behavior?

In Python, everytime i want to dump the response as dictionary (i.e. response.to_dict()) to a json file, I get a Object of type Sentiment is not JSON serializable error message.
I noticed that the response object always fails when trying to dump the 'sentiment' key with the value 'Sentiment.UNKNOWN''
Sentence(text="He's Korean.", start=127.06, end=127.88, sentiment=<Sentiment.UNKNOWN: ''>, sentiment_score=None)]

This forces me to resort to elaborate manouvers to avoid this error such as:
        if 'results' in response_dict and 'channels' in response_dict['results']:
            for channel in response_dict['results']['channels']:
                if 'alternatives' in channel:
                    for alternative in channel['alternatives']:
                        if 'words' in alternative:
                            for word in alternative['words']:
                                if 'sentiment' in word:
                                    sentiment_value = str(word['sentiment'])
                                    word['sentiment'] = sentiment_value
                        # Handle 'paragraphs'
                        if 'paragraphs' in alternative:
                            paragraphs = alternative['paragraphs']
                            # Handle 'sentiment' within 'paragraphs'
                            if 'sentiment' in paragraphs:
                                sentiment_value = str(paragraphs['sentiment'])
                                paragraphs['sentiment'] = sentiment_value
                            # Handle 'sentiment' within 'sentences' under 'paragraphs'
                            for paragraph in paragraphs.get('paragraphs', []):
                                for sentence in paragraph.get('sentences', []):
                                    if 'sentiment' in sentence:
                                        sentiment_value = str(sentence['sentiment'])
                                        sentence['sentiment'] = sentiment_value
                                if 'sentiment' in paragraph:
                                    sentiment_value = str(paragraph['sentiment'])
                                    paragraph['sentiment'] = sentiment_value

The checks above turn all UNKNWON sentiment values to a string and make my program work. But now that I added topics=True I'm once again getting the same  Object of type Sentiment is not JSON serializable error.
Why is so hard to convert a Deepgram response to a dict and dump it to a json file  in Python?
Steps to reproduce

response = deepgram.listen.prerecorded.v("1").transcribe_file(payload, options, timeout=300)
response_dict = response.to_dict()
with open(output_json, "w") as json_file:
json.dump(response_dict, json_file, indent=4)
^ Fails with Object of type Sentiment is not JSON serializable for every Sentiment.UNKNOWN found in the response (there could be hundreds).
Expected behavior

Not failing with Object of type Sentiment is not JSON serializable. I don't know but sentiment value should be None or "" instead of the UNKNOWN object.
Please tell us about your environment

Debian 10
Python 3.10.12
Other information

This is just an excerpt of the response i'm getting (notice the sentiment value)
start=85.45, end=90.73, num_words=11.0, speaker=0, sentiment=<Sentiment.UNKNOWN: ''>, sentiment_score=0.0), Paragraph(sentences=[Sentence(text="We're Joan and Samantha.", start=90.73, end=92.35, sentiment=<Sentiment.UNKNOWN: ''>, sentiment_score=None)], start=90.73, end=92.35, num_words=4.0, speaker=0, sentiment=<Sentiment.UNKNOWN: ''>, sentiment_score=0.0), Paragraph(sentences=[Sentence(text='Are you French?', start=92.955, end=93.775, sentiment=<Sentiment.UNKNOWN: ''>, sentiment_score=None)], start=92.955, end=93.775, num_words=3.0, speaker=4, sentiment=<Sentiment.UNKNOWN: ''>, sentiment_score=0.0), Paragraph(sentences=[Sentence(text='No.', start=93.915, end=94.155, sentiment=<Sentiment.UNKNOWN: ''>, sentiment_score=None), Sentence(text="We're not from France.", start=94.155, end=95.195, sentiment=<Sentiment.UNKNOWN: ''>, sentiment_score=None), Sentence(text="We're from Belgium.", start=95.195, end=96.174995, sentiment=<Sentiment.UNKNOWN: ''>, sentiment_score=None), Sentence(text='Conversation 8.', start=100.21, end=101.43, sentiment=<Sentiment.UNKNOWN: ''>, sentiment_score=None), Sentence(text='Which country is Oleg from?', start=101.89, end=103.75, sentiment=<Sentiment.UNKNOWN: ''>, sentiment_score=None)], s

This was reported earlier and it should be fixed in the latest release yesterday:
https://github.com/deepgram/deepgram-python-sdk/issues/296

No worries. You probably (hopefully) grab the SDK just before this was published.

all good. thanks for verifying this! good to know this is working/verified.


Can't update to 2.0.1 via Nuget due to nonexistent dependency

Microsoft.AspNetCore.Mvc 2.0.1 was released today via Nuget to address security vulnerabilities. I'm unable to update though as some project in the dependency tree requires package "Microsoft.DotNet.PlatformAbstractions" version 2.0.3 or higher, which doesn't exist. The most recent version of that package on Nuget is 2.0.0.

This may actually be a bug in VS2017's nuget UI. When I update the package versions manually by editing the .csproj there's no issue. Sorry to bother.


python311Packages.wled: 0.16.0 -> 0.17.0

https://github.com/frenck/python-wled/releases/tag/v0.17.0
Description of changes

Things done

Built on platform(s)

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

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

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

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

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 262380 run on x86_64-linux 1

3 packages built:

home-assistant-component-tests.wled
python311Packages.wled
python311Packages.wled.dist


Publish to a Windows Virtual Machine on Azure

ASP.NET 5 -> Publishing and Deployment -> Publish to a Windows Virtual Machine on Azure

Hi
If there is any draft versions of this part of the documentation i would like to see this. I have a lot of trouble getting this up and running.
Br
Søren Larsen
slamidtfyn at gmail dot com

@slamidtfyn I probably can assist you with that but I won't get back to the office for 2 hours. In the meantime, open an issue in Home repo with the details on where you're having an issue. If u don't get help, I'll get back to you by 4pm PST.

This topic will cover deploying to a Cloud Service too?
This is very important. One case that is priority for us is that Cloud Services is the only way to communicate with a VPN site to site on azure.
If you could share some drafts we can test them.
Thanks!

@murilocurti .NET 5 is not supported for Cloud Services.

@GuardRex It will never be? Is there any technical reason for that?

@murilocurti They haven't ruled it out, but it will not make RTM based on looking at the issues. They also don't have it on the roadmap. They only specifically mention VB, SignalR, and Web Pages after RTM.
Technically, yes, they would prob have some serious work to do to wire things together with the Cloud Services service configuration. My advice ... do what you're trying to do with your VPN setup using an Azure IIS VM.

... or Azure Web App, which is also supported.

hmmmm OK I will take this way, but I will continue investigating this scenario.
Thank you @GuardRex

Is there any documentation currently available out there on publishing ASP.NET web applications to an Azure VM from within Visual Studio 2015?

https://docs.asp.net/en/latest/publishing/index.html

@GuardRex That's the site that pointed me here in the first place.
See: https://docs.asp.net/en/latest/publishing/azure-windows-vm.html

@hyrmedia I see. I'm sure you're aware that it's not significantly different from publishing to an on-premises VM. Did you want to publish outside of using Web Deploy? I've been using a (crappy; because I wrote it :smile:) PowerShell script to publish to some VM's, where I didn't have WebDeploy available. I intend to stick with PS publishing, because I'll be using a number of Nano Servers in the future. I've never been a big fan of XCopy. I've used a network fileshare to Azure VM's, but I'm sure you know what a pain that is to do.
Those are the major options right now ...

Copy bits via SMB file share
XCopy
Web Deploy (either via the VS Publish or with a custom script* that you can trigger from the Publish to filesystem VS Publish)
PowerShell homebrew script

*If you want to see an example of such a custom Web Deploy script, let me know, and I'll paste it in here.

We think what we have in the Publishing to IIS article is sufficient.


[2.5.0] Release - The algorithm "RS256" is not supported for OpenSSL

We use Symfony 4.0 and experienced following error:
The algorithm "RS256" is not supported for OpenSSL
Please revise the 2.5.0 branch changes and fix accordingly.
We had to downgrade back to 2.4.4 version for a while.

Can you please share your configuration here? My guess is that you have the following:
lexik_jwt_authentication:
    # ...
    encoder:
        service: 'lexik_jwt_authentication.encoder.default'

This in indeed a bug anyways.

Fixed in #516, v2.5.1 has been released.

Muchos Gracias!


Dynamic registration

Is there any particular reason why you limited tasks registration ?
// Note, the method is not concurrency safe.
// The tasks mustn't be registered after the app starts processing tasks.
func (a *App) Register(path, queue string, task TaskF) {
...

I would need to Register/Unregister tasks on the fly.

Sorry that it doesn't cover your use case. I've made this library to solve a particular problem, i.e., to efficiently produce and consume Celery tasks on Go side. I deliberately kept things simple and didn't consider adding other Celery features when designing the library because they come at a cost of extra complexity, maintenance burden, and performance penalty. So registering all the tasks before Gopher Celery starts processing the queues is a straightforward approach that doesn't require any synchronization in the app and on the broker side. If I added that feature, the synchronization would affect performance of the library.
In my ~10 years of anecdotal experience working with Celery on Python side (mostly Django) I've never needed to dynamically register or unregister tasks in runtime, so most likely it is not a common use case. Therefore I don't think it's viable to implement it in this project. Thank you for understanding.

Didn't do much deep dive but do you think making task and taskQueue map safe for concurrent access will do the trick?
I am willing to sacrifice a little speed for this option.

Yeah, I would go with a sync.Map for task and taskQueue in celery.go. Access to br.queues should be synchronized on a broker side as well https://github.com/marselester/gopher-celery/blob/main/redis/broker.go. Also, a.conf.broker.Observe(qq) should be called when a task is registered/unregistered.

Thank you sir. Really appreciate your work here.
Will fork it out and link it here later.

You're welcome 👍

here is the fork if anyone else is interesed https://github.com/marselester/gopher-celery


Move shared view menu.fs to root views folder.

Menu.fs is a shared view, rather than a page, so being in the pages folder is slightly confusing.  I suggest we have a root views folder for shared views like this.  I've developed an app from this template and that's what I found worked well.  It's also the approach used in the Elm SPA example.
If this is acceptable, I will amend the README where it refers to the current Menu.fs location.

Sounds good
Am 11.11.2017 14:08 schrieb "Ben Taylor"<EMAIL_ADDRESS>
Menu.fs is a shared view, rather than a page, so being in the pages
folder is slightly confusing. I suggest we have a root views folder for
shared views like this. I've developed an app from this template and that's
what I found worked well. It's also the approach used in the Elm SPA
example https://github.com/rtfeldman/elm-spa-example.
If this is acceptable, I will amend the README where it refers to the
current Menu.fs location.
You can view, comment on, or merge this pull request online at:
https://github.com/SAFE-Stack/SAFE-BookStore/pull/240
Commit Summary

Move shared view menu.fs to root views folder.

File Changes

M src/Client/Client.fsproj
https://github.com/SAFE-Stack/SAFE-BookStore/pull/240/files#diff-0
(2)
R src/Client/views/Menu.fs
https://github.com/SAFE-Stack/SAFE-BookStore/pull/240/files#diff-1
(0)

Patch Links:

https://github.com/SAFE-Stack/SAFE-BookStore/pull/240.patch
https://github.com/SAFE-Stack/SAFE-BookStore/pull/240.diff

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/SAFE-Stack/SAFE-BookStore/pull/240, or mute the
thread
https://github.com/notifications/unsubscribe-auth/AADgNKDAGK_9JpTpqOSovuY84Pz9iw_mks5s1ZxNgaJpZM4QafDA
.

I amended the commit in this PR with the README change, so it's good to go if wanted.

thanks


Can't open GUI after installation on linux

run_keybase returns:
Unmounting /keybase...
Shutting down kbfsfuse...
Shutting down keybase service...
Launching keybase service...
Mounting /keybase...
Launching Keybase GUI...
Success!
but the gui won't launch
command line works tho
my log id: d222a966fca2704e2c49321c

Seems like maybe your environment doesn't have $XDG_RUNTIME_DIR set.  Does that sound right?

echo $XDG_RUNTIME_DIR returns /run/user/1000 is it supposed to be something else @cjb ?

Oh!  You're running run_keybase as root.  That doesn't work.  Try it without sudo, or logged in as a regular user, etc?

@oconnor663 Perhaps run_keybase should refuse to run as root.

@cjb somehow my $XDG_RUNTIME_DIR is also /run/user/1000 as user but i never changed it.
And when i try to change it, it resets after a restart

I changed XDG_RUNTIME_DIR inside ~/.profile and it works now
Thx for the help


Converting negative number to two's complement representation

Currently, evm semantics assumes that a Word is always a positive integer. It would be great if em-semantics can provide a function like #signed which takes a integer and convert it to its two's complement representation. This would be useful for implement ABI encoding for int128 type, where the value could be either positive or negative. When the value is negative, it should be converted to two's complement representation first.

Done, it's included in data.md.


Chat - Reactions of a comment that is deleted offline disappears

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

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: Yes
Reproducible in production?: No
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://user-images.githubusercontent.com/93399543/224171145-1d9cfd76-ad96-449a-ab5e-fa2ae36db5c6.mp4
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub

Triggered auto assignment to @garrettmknight (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@kbecciv Where's the slack convo for this one? I'm not sure I understand what unexpected behavior is happening here.

@garrettmknight No slack conversion. We are expecting the emoji reaction presented when user delete it Offine.

@garrettmknight Whoops! This issue is 2 days overdue. Let's get this updated quick!

Sorry, I'm still not quite following. I expect the reactions to be deleted when someone deletes a message they posted.

Pulling into slack to see if anyone else has a better handle on what's happening here: https://expensify.slack.com/archives/C01SKUP7QR0/p1678743127415809

I think it's expected behavior as we strike through the text to denote it's being deleted then delete the actual text once back online.  Put another way... if the message is going to be instantly deleted as soon as someone's back online, it doesn't matter if the reactions temporarily show or not, right?  I don't think we'd strike through the emoji reactions and I can't see a benefit of leaving them, especially as you can't 'un-delete' the message

Cool, closing.


Test idempotence

This PR updates the test script to run the expected fixtures through rubyfmt and compare the output to the original file. The intention is to catch idempotence bugs, i.e. situations where running a file through rubyfmt a second time would change the file.
The failures seem to be around whether or not we include parens on a method call. I started looking at fixing them, but Ruby apparently has many, many ways of representing the same call, and it's more than I'll have time to fix today.
Current failures are:

fixtures/command_call_raise_expected.rb (fixed by #117)
fixtures/nested_command_expected.rb (fixed by #117)
fixtures/until_while_mod_expected.rb (fixed on this branch)

Related to #107

@georgebrock are you going to take a crack at this or should I?

@samphippen I intend to take a crack at it later in the week, but it's too big for the time I have today. If you want to tackle it sooner, feel free. I'll check here for comments before I do anything.

all yours, just checking you weren't expecting me to deal with it!

Two of these will be fixed by #117, which leaves one more that is unrelated to method calls.

@samphippen I think this is ready to go.


Correctly identify JSX expressions as identifier parents

Fixes #4060 (JSX with es6 and commonjs modules)

:+1:


expose the API as a section in main documentation

searching for a specific API function, e.g. .apply works great, but this would provide an ability to browse directly.
cc @electronwill

I believe that @jreback was particularly looking for the dask.dataframe API

related and not sure if this is more general, dask.dataframe.read_hdf does not appear to be exposed (even when searching)

You mean have "API" as one of the top-level categories in the left sidebar at dask.pydata.org, right?
Geri Ochoa ( @gochoam ) is the one now handling the dask docs, and as long as he and Kerry ( @kerrywatson1 ) approve, that seems fine.
The docs don't seem to have any information about read_hdf. Running python and help(dask.dataframe.read_hdf) showed this:
Help on function read_hdf in module pandas.io.pytables:

read_hdf(path_or_buf, key=None, **kwargs)
    read from the store, close it if we opened it

    Retrieve pandas object stored in file, optionally based on where
    criteria

    Parameters
    ----------
    path_or_buf : path (string), or buffer to read from
    key : group identifier in the store. Can be omitted a HDF file contains
        a single pandas object.
    where : list of Term (or convertable) objects, optional
    start : optional, integer (defaults to None), row number to start
        selection
    stop  : optional, integer (defaults to None), row number to stop
        selection
    columns : optional, a list of columns that if not None, will limit the
        return columns
    iterator : optional, boolean, return an iterator, default False
    chunksize : optional, nrows to include in iteration, return an iterator

    Returns
    -------
    The selected object

Was this not included in the dataframe API at dask.pydata.org because it's actually part of pandas, and dask.dataframe just links to it? If so, how should we handle that? Maybe create a page listing the pandas functions that dask.dataframe links to, and make each item in the list a link to that function's documentation on the pandas site, such as http://pandas.pydata.org/pandas-docs/version/0.17.1/generated/pandas.read_hdf.html#pandas.read_hdf ?

@electronwill yep excatly w.r.t. the API as a top-section

Sphinx supports API docs.  I think that this should be handled by

Making the dask.dataframe api docs more prominent, as you suggest
Ensuring that dd.read_hdf is listed in that page.

It would be good if this could be a separate PR from other documentation work

Yes, making it a separate PR sounds wise.
What would we do differently to ensure that dd.read_hdf is listed with the other dataframe functions at http://dask.pydata.org/en/latest/dataframe-api.html ?

We would add it to docs/source/dataframe-api.rst, probably next to read_csv

http://dask.readthedocs.org/en/latest/dataframe-api.html
This is complete.


Using teleport with shallowMount

I am getting a Vue warning for my teleport, when doing a shallowMount. I am unable to find a way to get a workaround on this - tried stubbing it out, but that also didn't do anything...
Warning
console.warn
    [Vue warn]: Non-function value encountered for default slot. Prefer function slots for better performance.
      at <AnonymousStub to="nav" >
      at <Anonymous ref="VTU_COMPONENT" >
      at <VTUROOT>

Component template
<template lang="pug">
teleport(to='nav')
  .fixed.bottom-5.right-5(ref='fab')
    span.relative.z-50
      button.fab.ripple(
        @click='open = !open'
        type='button'
        aria-haspopup='true'
        aria-expanded='false'
      )
        .absolute.transform.transition.duration-150(
          :class="open ? 'rotate-90 opacity-0' : 'rotate-0 opacity-100'"
        )
          slot
        icon-x-outline.absolute.w-6.h-6.inline-block.text-white.transform.transition.duration-150(
          ref='toggleIcon'
          style="padding: 2px 0 0 2px"
          :class="open ? 'rotate-0 opacity-100' : '-rotate-90 opacity-0'"
        )
    transition(name="overlay-fade")
      button.click-off-button(
        ref="clickOffButton"
        v-show='open'
        @click='open = false'
        tabindex='-1'
      )
        .absolute.inset-0.bg-white.opacity-95.dark_bg-gray-900.dark_opacity-90
    template(v-if="options.length")
      transition(name="dropdown")
        .dropdown-body.w-full.sm_w-40(v-show='open')
          .py-1
            a.group.justify-end.space-x-4(
              v-for="option in options"
              href='#'
              @click.prevent="handleClick(option.action)"
            )
              span(v-if="option.text" v-text="option.text")
              .secondary-fab.ripple
                component.h-5.w-5.text-gray-400.dark_text-white(:is="option.icon")
</template>

Test
import BaseFab from<EMAIL_ADDRESS>
describe('BaseFab.vue', () => {
  let baseFab;

  describe('when open', () => {
    beforeEach(() => {
      baseFab = shallowMount(BaseFab, {
        slots: { default: '
My slot content
' },
        data() { return { open: true }; },
      });
    });

    it('shows cross icon', () => {
      expect(baseFab.findComponent({ ref: 'toggleIcon' }).element)
        .toHaveClass('opacity-100');
    });
  });
});

Testing teleport is a bit weird. There is an article you might find useful here: https://next.vue-test-utils.vuejs.org/guide/advanced/teleport.html
As for the warning, I am not sure that syntax is valid. I don't think we support passing a template like that. Docs for slots mounting option. I think you want something like:
baseFab = shallowMount(BaseFab, {
  slots: { default: h('div', 'My slot content
' },
  data() { return { open: true } }
});

I don't think there is an actual bug in Test Utils, so I'm going to close this for now to ensure issues don't get out of control. Happy to help debug and get your test working, and re-open if there's actually a bug.
If you could make your test a bit more minimal (ideally provide a repo I can run) that would help even more. Can you try the above syntax and see what happens? I think you will still have a problem: there's no nav to teleport to in your test, but you can make one (see the docs or a video version of the same content here.

@lmiller1990 Thanks for a quick response - I've already read the guide for teleport, and none of the suggestions really worked for me.
I can also confirm that the syntax I used did work - I can see it when using html() on the component. But I did actually try h version before, as I was researching this error and someone suggested it needs to be an actual VNode... but that didn't help either.
Due to the shallow mount, I don't think it matters whatever nav exists or not - I think Vue doesn't like the whole template being passed to teleport as it must be using a slot underneath the teleport component. I'll give a stab at making a reproducible repo

I didn't think that <teleport> would be stubbed by shallowMount, but maybe you are correct. You should be able to do:
mount(..., {
})