Move fixDeviceEnvVarNameKey logic from the UI to the SDK

Strangely the SDK already has this logic, so I'm not totally sure what this ticket would require. More excitingly, with multicontainer we're going to fix the model properly so this isn't necessary in the first place.
Regardless, this ticket can go. Watch this space: https://www.flowdock.com/app/rulemotion/resin-tech/threads/AUkf8KA09AEa2nVIk-EdUyUeng_


add postproc mbw

ref: https://www.cesm.ucar.edu/events/wg-meetings/2018/presentations/amwg/jablonowski.pdf
please note: current plots are very different from the ref mainly due to the low resolution

bors r+


[SPARK-38216][SQL] Fail early if all the columns are partitioned columns when creating a Hive table

What changes were proposed in this pull request?
In Hive the schema and partition columns must be disjoint sets, if hive table which all columns are partitioned columns, so that other columns is empty, it will fail when Hive create table, error msg as follow:
throw new HiveException( "at least one column must be specified for the table")
That's because we did the disjoint operation in toHiveTable
So when creating a Hive table, fail early if all the columns are partitioned columns,
Why are the changes needed?
unify analysis error msg when create table with all the columns are partitioned columns
Does this PR introduce any user-facing change?
yes, but error msg only
How was this patch tested?
add ut

Could you please take a look when you have a time, thanks in advance @cloud-fan

Can one of the admins verify this patch?

thanks, merging to master!


Enable minimal stack for insecure qps tests

add server support for channel args [edec4f5]
pass the right channel arg down for C++ insecure tests [277b1fa]

No significant performance differences

[microbenchmarks] No significant performance differences

Corrupt JSON data (indicates timeout or crash):
    bm_fullstack_trickle.BM_PumpStreamServerToClient_Trickle_1_4k.opt.new: 1

[trickle] No significant performance differences

LGTM

[trickle] No significant performance differences

[microbenchmarks] No significant performance differences


TTF font haven't been set when parser Label

Test failed on CocosStudio Test / CocoStudioGUITest/Text test case

This is because of a font file error.
I have been testing other font, They are normal.
This cannot display font name is "A Damn Mess"...

To use a custom .ttf file for LabelTTF on jsb, we should pass the "path+filename" to setFontName, and the file name must be the same with the font name.
https://github.com/cocos2d/cocos2d-js/blob/develop/frameworks/js-bindings/bindings/script/studio/parsers/uiParser-1.x.js#L472


travis setup

Coverage increased (+0.55%) when pulling 03ccea8d182d23e69e1b932e1a3d368f64b65db8 on travis into 1fbea5c10070d5e5e67f2e0436867d6b9a72b82c on master.


Fixes workflow preprocessing

Adds counter for dependent step verification to prevent pending dependent workflow step recursion
Please take a look.

Codecov Report

Merging #286 (65626f2) into 2021.9.x (cdb60c9) will increase coverage by 0.05%.
The diff coverage is 45.36%.

@@             Coverage Diff              @@
##           2021.9.x     #286      +/-   ##
============================================
+ Coverage     42.93%   42.99%   +0.05%
============================================
  Files           773      776       +3
  Lines         69892    70581     +689
============================================
+ Hits          30010    30344     +334
- Misses        35702    36041     +339
- Partials       4180     4196      +16

Impacted Files
Coverage Δ

compose/rest/namespace.go
44.93% <0.00%> (-1.47%)
:arrow_down:

compose/rest/request/namespace.go
11.73% <0.00%> (-1.18%)
:arrow_down:

compose/service/locale.gen.go
6.20% <0.00%> (-18.80%)
:arrow_down:

compose/service/namespace.go
35.62% <0.00%> (-6.17%)
:arrow_down:

compose/service/namespace_actions.gen.go
42.82% <0.00%> (-2.43%)
:arrow_down:

pkg/actionlog/context.go
100.00% <ø> (ø)

pkg/actionlog/service.go
83.67% <ø> (ø)

pkg/envoy/resource/rbac_references_system.gen.go
12.50% <0.00%> (-1.79%)
:arrow_down:

pkg/envoy/resource/rbac_rules_parse.gen.go
36.49% <0.00%> (-1.97%)
:arrow_down:

pkg/envoy/store/rbac_rule_marshal.go
46.75% <0.00%> (ø)

... and 84 more

Continue to review full report at Codecov.

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


Remove version: QuestSoft.QTranslate version 6.9.0

[Automated] It returns code over 400 in all urls
Microsoft Reviewers: Open in CodeFlow

For moderators
This account is automated by Github Actions and the source code was created by CoolPlayLin. If you have any questions about any pull request, don't hesitate to ping Exorcism0666.

[!warning]
With the new version of Komac, numerous Pull Requests may contain bugs or unwanted elements. If such issues arise, please tag russellbanks so that these bugs can be addressed in future updates.

[!important]
Please carefully review these Pull Request before merging. If it is a Pull Request for removing incorrect content and the URLs are issue, free upon manual checking, please close this Pull Request directly. (It is best to inform Exorcism0666 of the closure.)

良い一日をお過ごしください！

URL: https://qtranslate1.appspot.com/QTranslate.6.9.0.exe
Response status code does not indicate success: 404 (Not Found).
(Automated message - build 870)


Only the last declared component is rendered in Ember 1.13-beta.1

See https://github.com/praxxis/islands-test for a reproduction repo.

renders thusly:
In 1.13:

In 1.12 (working):

It looks like I'm the only person on earth who has tried to use view#replaceIn because it's broken again. I'm just going to stick with view#appendTo because it's used everywhere in the Ember tests. Let me know if you agree that the latest master changes fix this issue.

Works for me on master, cheers

Released version 0.5.1 with this fix.

@mitchlloyd Not the most ideal, but I really needed to get rid of that wrapping div. Unwrapping it with jQuery did the trick.
https://github.com/mitchlloyd/ember-islands/blob/master/addon/components/ember-islands.js#L50
// Work around for #replaceIn bug
$(element).empty();
let componentInstance = component.create(attrs);
componentInstance.appendTo(element);
$(element).contents().unwrap();
return componentInstance;

@rohmann I always thought keeping the wrapping div around was nice, but maybe there is a need to remove it sometimes? Can you tell me about your use case?
Also keep in mind that if it is an issue with the display: block default of divs, then span or any tag will do.


Missing Strategic services in the list

Reviewing the list of Strategic services in this page, it's not consistent with the list of Strategic services published in the Service Availability by Category page.
Is there are reason for it? My suggestion would be to have the same list in both pages for consistency.
Thank you

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

ID: 1860979b-0bcb-08cd-5674-b5e894a03f72
Version Independent ID: 17ba109c-a2cf-5c56-17bc-56a8aaebf067
Content: Azure services that support availability zones
Content Source: articles/reliability/availability-zones-service-support.md
Service: reliability
Sub-service: availability-zones
GitHub Login: @anaharris
Microsoft Alias: anaharris

@luispb
Thanks for your feedback! We will investigate and update as appropriate.

@luispb
Thanks for reaching out to Microsoft!
The Azure regions with availability zone support page lists regions with availability zone support. This is currently a limited subset.
The Available services by region types and categories page lists all services by region type and category.
Best,
Anastasia


Add note about EIP migration between Classic and VPC.

Announced here: https://aws.amazon.com/about-aws/whats-new/2017/01/announcing-elastic-ip-address-migration-from-ec2-classic-to-ec2-vpc/

👍 Thanks!


dependency cycle error while deploying forwarder only

Hello,
I'm attempting to use your module to deploy the Splunk Forwarder only and Puppet throws a dependancy cycle error. I'm testing using Pupply apply if that makes a differenance.
Notice: Compiled catalog for <hostname> in environment production in 0.65 seconds
Error: Failed to apply catalog: Found 1 dependency cycle:
(File[/opt/staging/splunk/splunkforwarder-6.5.0-59c8927def0f-linux-2.6-x86_64.rpm] => Staging::File[splunkforwarder-6.5.0-59c8927def0f-linux-2.6-x86_64.rpm] => Package[splunkforwarder] => File[/opt/staging/splunk/splunkforwarder-6.5.0-59c8927def0f-linux-2.6-x86_64.rpm])
Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz

Here is how I call the module:
class profiles::splunk_forwarder (
  $server  = 'splunk.domain',
  $version = '6.5.0',
  $build   = '59c8927def0f',
) {
  class { ::splunk::params:
    server  => "$server",
    version => "$version",
    build   => "$build"
  }
  include ::splunk::forwarder
 }

@leemachine You are declaring the class wrong, you shouldn't declare ::splunk::params directly.  The way the params.pp pattern should work is that you declare the base class, in this case ::splunk::forwarder and override settings there, that class inherits off ::splunk::params to get default values.....  but the splunk module has an interesting and pretty flawed implementation of params.pp pattern.
You probably need something like
class profiles::splunk_forwarder (
 include ::splunk::forwarder

and then in hiera
splunk::params::version: 6.5.0
splunk::params::build: 59c8927def0f

The hiera values will get read into splunk::params automatically when it's inherited from splunk::forwarder...  It's all a bit special.

I have run into the same problem mentioned above and tried the approach you suggested, but I am still running into a dependency problem.  Looking for any advice, as I would like to make use of this module.  Thanks for any help you can give!
Here is my config:
class profile::splunk_forwarder {
include ::splunk::forwarder
}
And hiera:
splunk::params::version: '6.4.0'
splunk::params::build: 'f2c836328108'
splunk::params::src_root: 'puppet:///modules/splunk'
But when I run the puppet agent, I get:
Error: Failed to apply catalog: Found 1 dependency cycle:
(File[/opt/staging/splunk/splunkforwarder-6.4.0-f2c836328108-linux-2.6-x86_64.rpm] => Staging::File[splunkforwarder-6.4.0-f2c836328108-linux-2.6-x86_64.rpm] => Package[splunkforwarder] => File[/opt/staging/splunk/splunkforwarder-6.4.0-f2c836328108-linux-2.6-x86_64.rpm])
Try the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz

Tried to simulate this last night and I can't generate the same behaviour...
[root@localhost ~]# ls /vagrant/universalforwarder/linux
splunkforwarder-6.4.1-debde650d26e-linux-2.6-x86_64.rpm
[root@localhost ~]# cat /etc/puppetlabs/code/environments/production/hieradata/common.yaml
splunk::params::src_root: /vagrant
splunk::params::build: debde650d26e
splunk::params::version: 6.4.1
[root@localhost ~]#

[root@localhost ~]# puppet apply -e 'include ::splunk::forwarder' --noop
Notice: Compiled catalog for localhost in environment production in 0.83 seconds
Notice: /Stage[main]/Staging/File[/opt/staging]/ensure: current_value absent, should be directory (noop)
Notice: Class[Staging]: Would have triggered 'refresh' from 1 events
Notice: /Stage[main]/Splunk::Forwarder/Staging::File[splunkforwarder-6.4.1-debde650d26e-linux-2.6-x86_64.rpm]/File[/opt/staging/splunk]/ensure: current_value absent, should be directory (noop)
Notice: /Stage[main]/Splunk::Forwarder/Staging::File[splunkforwarder-6.4.1-debde650d26e-linux-2.6-x86_64.rpm]/File[/opt/staging/splunk/splunkforwarder-6.4.1-debde650d26e-linux-2.6-x86_64.rpm]/ensure: current_value absent, should be file (noop)
Notice: Staging::File[splunkforwarder-6.4.1-debde650d26e-linux-2.6-x86_64.rpm]: Would have triggered 'refresh' from 2 events
Notice: /Stage[main]/Splunk::Forwarder/Package[splunkforwarder]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Splunk::Forwarder/Splunkforwarder_input[default_host]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Splunk::Forwarder/Splunkforwarder_output[tcpout_defaultgroup]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Splunk::Forwarder/Splunkforwarder_output[defaultgroup_server]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Splunk::Forwarder/Splunkforwarder_web[forwarder_splunkd_port]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Splunk::Forwarder/File[/opt/splunkforwarder/etc/system/local/inputs.conf]/ensure: current_value absent, should be file (noop)
Notice: /Stage[main]/Splunk::Forwarder/File[/opt/splunkforwarder/etc/system/local/outputs.conf]/ensure: current_value absent, should be file (noop)
Notice: /Stage[main]/Splunk::Forwarder/File[/opt/splunkforwarder/etc/system/local/web.conf]/ensure: current_value absent, should be file (noop)
Notice: Class[Splunk::Forwarder]: Would have triggered 'refresh' from 9 events
Notice: /Stage[main]/Splunk::Platform::Posix/Exec[license_splunkforwarder]/returns: current_value notrun, should be 0 (noop)
Notice: /Stage[main]/Splunk::Platform::Posix/Exec[enable_splunkforwarder]/returns: current_value notrun, should be 0 (noop)
Notice: Class[Splunk::Platform::Posix]: Would have triggered 'refresh' from 2 events
Notice: /Stage[main]/Splunk::Virtual/Service[splunk]/ensure: current_value stopped, should be running (noop)
Notice: Class[Splunk::Virtual]: Would have triggered 'refresh' from 1 events
Notice: Stage[main]: Would have triggered 'refresh' from 4 events
Notice: Applied catalog in 0.54 seconds

Tested with the following versions....
[root@localhost ~]# puppet module list --tree
/etc/puppetlabs/code/environments/production/modules
├── puppet-splunk (v5.0.1-rc0)
├── puppet-staging (v2.0.1)
├── puppetlabs-inifile (v1.6.0)
└── puppetlabs-stdlib (v4.13.1)

What versions are you using here?

Versions I am using here are:
├── puppet-splunk (v5.0.1)
├── puppet-staging (v2.0.2-rc0)
├── puppetlabs-inifile (v1.6.0)
├── puppetlabs-stdlib (v4.13.1)
On Thu, Dec 1, 2016 at 3:45 AM, Craig Dunn<EMAIL_ADDRESS>wrote:

Tried to simulate this last night and I can't generate the same
behaviour...
[root@localhost ~]# ls /vagrant/universalforwarder/linux
splunkforwarder-6.4.1-debde650d26e-linux-2.6-x86_64.rpm
[root@localhost ~]# cat /etc/puppetlabs/code/environments/production/hieradata/common.yaml
splunk::params::src_root: /vagrant
splunk::params::build: debde650d26e
splunk::params::version: 6.4.1
[root@localhost ~]#
[root@localhost ~]# puppet apply -e 'include ::splunk::forwarder' --noop
Notice: Compiled catalog for localhost in environment production in 0.83 seconds
Notice: /Stage[main]/Staging/File[/opt/staging]/ensure: current_value absent, should be directory (noop)
Notice: Class[Staging]: Would have triggered 'refresh' from 1 events
Notice: /Stage[main]/Splunk::Forwarder/Staging::File[splunkforwarder-6.4.1-debde650d26e-linux-2.6-x86_64.rpm]/File[/opt/staging/splunk]/ensure: current_value absent, should be directory (noop)
Notice: /Stage[main]/Splunk::Forwarder/Staging::File[splunkforwarder-6.4.1-debde650d26e-linux-2.6-x86_64.rpm]/File[/opt/staging/splunk/splunkforwarder-6.4.1-debde650d26e-linux-2.6-x86_64.rpm]/ensure: current_value absent, should be file (noop)
Notice: Staging::File[splunkforwarder-6.4.1-debde650d26e-linux-2.6-x86_64.rpm]: Would have triggered 'refresh' from 2 events
Notice: /Stage[main]/Splunk::Forwarder/Package[splunkforwarder]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Splunk::Forwarder/Splunkforwarder_input[default_host]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Splunk::Forwarder/Splunkforwarder_output[tcpout_defaultgroup]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Splunk::Forwarder/Splunkforwarder_output[defaultgroup_server]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Splunk::Forwarder/Splunkforwarder_web[forwarder_splunkd_port]/ensure: current_value absent, should be present (noop)
Notice: /Stage[main]/Splunk::Forwarder/File[/opt/splunkforwarder/etc/system/local/inputs.conf]/ensure: current_value absent, should be file (noop)
Notice: /Stage[main]/Splunk::Forwarder/File[/opt/splunkforwarder/etc/system/local/outputs.conf]/ensure: current_value absent, should be file (noop)
Notice: /Stage[main]/Splunk::Forwarder/File[/opt/splunkforwarder/etc/system/local/web.conf]/ensure: current_value absent, should be file (noop)
Notice: Class[Splunk::Forwarder]: Would have triggered 'refresh' from 9 events
Notice: /Stage[main]/Splunk::Platform::Posix/Exec[license_splunkforwarder]/returns: current_value notrun, should be 0 (noop)
Notice: /Stage[main]/Splunk::Platform::Posix/Exec[enable_splunkforwarder]/returns: current_value notrun, should be 0 (noop)
Notice: Class[Splunk::Platform::Posix]: Would have triggered 'refresh' from 2 events
Notice: /Stage[main]/Splunk::Virtual/Service[splunk]/ensure: current_value stopped, should be running (noop)
Notice: Class[Splunk::Virtual]: Would have triggered 'refresh' from 1 events
Notice: Stage[main]: Would have triggered 'refresh' from 4 events
Notice: Applied catalog in 0.54 seconds
Tested with the following versions....
[root@localhost ~]# puppet module list --tree
/etc/puppetlabs/code/environments/production/modules
├── puppet-splunk (v5.0.1-rc0)
├── puppet-staging (v2.0.1)
├── puppetlabs-inifile (v1.6.0)
└── puppetlabs-stdlib (v4.13.1)
What versions are you using here?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/voxpupuli/puppet-splunk/issues/65#issuecomment-264113683,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ARzBWBHhHGIcHpt5U0OEz2gz-N3C7p4iks5rDolFgaJpZM4KhbB0
.

--
Gordon Food Service® |<EMAIL_ADDRESS>|<PHONE_NUMBER>

Don't use name as "class profiles::splunk_forwarder", it will conflict with the tag name.
So I use "class profiles::splunkforwarder" will work around the problem.
Quite hidden problem.


Adding Promise compatibility to selector function for Switch component

Version
v3 is SLOW for Android right now (because React Native ExperimentalNavigation is slow), see #355, no need to create new issue!
Tell us which versions you are using (react native 0.22 is required for v3!):

react-native-router-flux v3.?.?
react-native v0.?.?

First of all, thanks for this repo.
I have been looking for an authentication filter/middleware to implement in the router, so, I found out that you already have this as Switch component and a selector function, but the problem I had with it, is that I was checking the Storage for a data, based on it, I have to decide to where I should redirect him, the storage is Promise based, and selector doesn't support promises.
so, I have edited the Switch updateState function to support Promises or sync function, so my result is like the code below
    redirectToSelectedKey (selectedKey, props){
        const navState = props.navigationState;
        const selected = navState.children.filter(el=>el.sceneKey == selectedKey) || console.error("key=" + selectedKey + " doesn't exist");
        const navigationState = selected[0] || console.error("Cannot find scene with key=" + selectedKey);
        if (navigationState.key != navState.children[navState.index].key) {
            Actions[selectedKey]();
        }
        this.setState({navigationState});
    }
    updateState(props){
        const selector = props.selector || console.error("selector should be defined");
        const returnedValue = selector(props)
        if(returnedValue instanceof Promise) {
            return selector(props)
                    .then(selectedKey => this.redirectToSelectedKey(selectedKey, props))
                    .catch(err => console.error("selector should return key"));
        }
        const selectedKey = returnedValue
        this.redirectToSelectedKey(selectedKey, props)

    }

It's working fine for me, I don't know if my approach is wrong, if so, let me know, I can push a pull request if you want to.
Thanks again for this repo :+1:

Looks very nice, feel free to submit PR & add docs to README.


Fix permissions

A quick fix of user permissions and broken link from BEC page.

Looks good :+1:  Merge when green

Please merge :panda_face:


Package request: Dorion

Project description

Dorion is an alternative Discord client aimed and lower-spec or storage-sensitive
PCs that supports themes, plugins, and more!

Metadata

homepage URL: https://spikehd.github.io/projects/dorion/
source URL: https://github.com/SpikeHD/Dorion
license: gpl3
platforms: linux, macos, windows

Would love this to be added lol

Working on Dorion here: https://github.com/NixOS/nixpkgs/pull/252627

@AndersonTorres Were stuck in trying to package this app, can you help maybe if you can?

It should be working now, waiting for merge


Don't use explicit types in diamond operator

Motivation:
We don't need unnecessary explicit type declarations in diamond operators in Java 8+. Since Netty5 is Java 11 based, we can get rid of them and make the code look clean,
Modification:
Removed explicit types and formatted code as per style.
Result:
Clean and more readable code.

Thanks!


Update Readme

As we don't recommend using this module as CLI anymore global installation instructions may be removed. :)

Thanks @stefanjudis


Headers to distinguish where suggestions come from

How about placing small headers to show why suggestions are made?
Prototype:
--- Nearby ---
Trafalgar Square
Buckingham Palace
--- Guessed from name ---
Demonstration
Climate change
--- Recent ---
Roti prata
Rendang

When I take a picture, I know already what type of suggestion will be correct. For instance if the last upload was of the same thing, I know I must select everything in "Recent". If I am in a famous place but photographing something unrelated to this place (for instance a vehicle) then I can ignore all "Nearby" suggestions. Etc. Having sections will thus make selection faster.
It could also allow making the suggestions list a bit longer without it feeling too long?

Hm, this sounds like a great suggestion, but I think I will have to pick between this and #70 for the grant proposal, due to the time limitations. Which do you think would be more important?

Difficult choice haha. It does not sound as difficult as anonymization, and will probably be more useful to most people.

Okay, this one it is then! :)

How do we want the headers to look like? Should they actually take up slots in the ListView like all the categories, just with the '--' to make it obvious that they are headers?

Is there an easy to use component that provide this? Either a ListView with a special setting, or a child class of ListView, or a totally different component.

I was envisioning something like this, maybe with smaller and less eye-catching headers:

http://stacktips.com/tutorials/android/listview-with-section-header-in-android

Hm. This is turning out to be much more complicated than I expected.
I've tried to apply this tutorial (and other similar ones) to our code, but the main issue is that all the solutions that I've found involve adding the section headers to the ArrayList that is used as the data source in the adapter. So now our data source contains not just CategoryItems but also header items.
This could be workable, but in CategorizationFragment.java most of the existing code assumes that every item in the data source is a Category, and operates on it accordingly. Also most of the existing methods rely on using the index of an element in the ArrayList for category selection, assignment, etc. It feels rather messy to have headers be part of that array, and to have to keep checking for getItemViewType(position) whenever we want to perform any operations on categories? I tried this method anyway at https://github.com/misaochan/apps-android-commons/commits/header-list-2 , but stopped after it became unwieldy.
I wonder if there might be a better way to handle this, given that it is only a UI change, so we probably shouldn't be introducing all these extra elements into the data source?

Is there no way to have each row contain an object, and use this object
rather than using the row's index?
On Sun, Nov 6, 2016 at 3:38 PM, Josephine Lim<EMAIL_ADDRESS>wrote:

Hm. This is turning out to be much more complicated than I expected.
I've tried to apply this tutorial (and other similar ones) to our code,
but the main issue is that all the solutions that I've found involve adding
the section headers to the ArrayList that is used as the data source in the
adapter. So now our data source contains not just CategoryItems but also
header items.
This could be workable, but in CategorizationFragment.java most of the
existing code assumes that every item in the data source is a Category, and
operates on it accordingly. Also most of the existing methods rely on using
the index of an element in the ArrayList for category selection,
assignment, etc. It feels rather messy to have headers be part of that
array, and to have to keep checking for getItemViewType(position)
whenever we want to perform any operations on categories? I tried this
method anyway at https://github.com/misaochan/
apps-android-commons/commits/header-list-2 , but stopped after it became
unwieldy.
I wonder if there might be a better way to handle this, given that it is
only a UI change, so we probably shouldn't be introducing all these extra
elements into the data source?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/commons-app/apps-android-commons/issues/76#issuecomment-258663552,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGFBvfAg7df6HaWkg-KFUwW1OdqsnFsks5q7XYDgaJpZM4HmH_N
.

I'm not sure, but it would involve an almost complete refactor of CategorizationFragment.
Alternatively, I was thinking of trying a 3rd party library: https://github.com/commonsguy/cwac-merge

The 3rd party libraries I mentioned are on a Apache 2.0 license. Should be okay to include them, right?

Apache 2.0 is OK, yes.

The 3rd party library works (as seen in https://github.com/misaochan/apps-android-commons/tree/header-list-cwac-merge , headers are produced for GPS, recent, and title cats), but further issues have been discovered along the way.
The main issue is that in order to get this to work, I have needed to create a separate adapter for the empty search field (which displays automatically-generated GPS, recent, and title cats along with their headers), and for the non-empty search field (which displays the results of a manual category search with no headers).
In the app currently, selected categories are aggregated and displayed at the top of the list, from any type of category suggestion (manual or automatic). This is really useful and something I don't want to lose. But with two separate adapters, I can't seem to get this to happen anymore - selected categories remain selected but are only displayed in their respective adapter (automatic cats that are selected only display when search field is empty, manual cats only display when search field is not empty).
At this stage I think the amount of work needed for me to complete this task is exceeding the benefits that it would bring (headers would be really nice but I don't think it is a dealbreaker for most users). It's entirely possible that I'm missing something simple, so I will leave this issue and my associated branch open, but will move on to the next task for now.

Would you mind posting a screenshot of what it looks like with
header-list-cwac-merge ?
Thanks!
On Mon, Nov 14, 2016 at 2:51 PM, Josephine Lim<EMAIL_ADDRESS>wrote:

The 3rd party library works (as seen in https://github.com/misaochan/
apps-android-commons/tree/header-list-cwac-merge , headers are produced
for GPS, recent, and title cats), but further issues have been discovered
along the way.
The main issue is that in order to get this to work, I have needed to
create a separate adapter for the empty search field (which displays
automatically-generated GPS, recent, and title cats along with their
headers), and for the non-empty search field (which displays the results of
a manual category search with no headers).
In the app currently, selected categories are aggregated and displayed at
the top of the list, from any type of category suggestion (manual or
automatic). This is really useful and something I don't want to lose. But
with two separate adapters, I can't seem to get this to happen anymore -
selected categories remain selected but are only displayed in their
respective adapter (automatic cats that are selected only display when
search field is empty, manual cats only display when search field is not
empty).
At this stage I think the amount of work needed for me to complete this
task is exceeding the benefits that it would bring (headers would be really
nice but I don't think it is a dealbreaker for most users). It's entirely
possible that I'm missing something simple, so I will leave this issue and
my associated branch open, but will move on to the next task for now.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/commons-app/apps-android-commons/issues/76#issuecomment-260253875,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAGFBgBwj5F_QtmXxRPiCSh23JlFzTfKks5q9_bdgaJpZM4HmH_N
.

Sure. This is of the automatic categories (I hadn't hooked it up to the filterYears() method yet, so years are still being displayed):

And this is of the manual categories:

This looks like a superb idea, and the screenshots above are really helpful. Is this still something that needs to be implemented?
Chris.

Yes.

Could we add this to a target milestone, then; it's been open for eight years? It looks like people support it as an idea, so if we have a target release, it may attract volunteers who want to write the code.
Just an idea.
This isn't meant to sound harsh, but it feels like good ideas Luke this, should at least be on the 'To Do' list.
Chris


What is this? Who are the Founders? Why are their addresses in the Validator?

https://github.com/avgttt/PePe-core/blob/f82c1cfb7d15258d21c7cb65ec156ec043e46872/src/validation.cpp#L534
A friend looked over your code and found this strange function inside the validation script.  What is up with this?  I thought this was supposed to not have a dev team, etc.

What does this call for checkfoundersinput do? Dev fee?

https://github.com/avgttt/PePe-core/blob/f82c1cfb7d15258d21c7cb65ec156ec043e46872/src/validation.cpp#L534
A friend looked over your code and found this strange function inside the validation script. What is up with this? I thought this was supposed to not have a dev team, etc.

https://github.com/avgttt/PePe-core/issues/9


Add support for Filecoin Testnet

Description
Name: Filecoin Testnet
HD Derivation Scheme: tbd
Symbol: FIL
Documentation:

Specification
Lotus Node Docs
Lotus Node Source
Testnet Explorer

Blockers

[ ] Wait for Filecoin to obtain SLIP-44 ID
[ ] Work out BIP-44 derivation paths
[ ] Select key pair type (BLS or secp256k1)

Checklist
Finish check list here.

I think we can open a slipp44 pull request behalf of Filecoin team ？

@hewigovens Good idea. I think the Filecoin team has already started work on the SLIP44 issue though. I'll check with them.

Update: @jleni Has volunteered to get the SLIP44

Yes, here is the PR https://github.com/satoshilabs/slips/pull/841

Remember that All Testnets should use 1 as SLIP-44 value

Target is now mainnet (not test).  @terorie , could you pls update description accordingly?


Fix #195: Support port in connect command

:+1: and merging

Should we update the doc at https://thelounge.github.io/docs/client/commands.html#connect?


Panic in Caddyfile unmarshal

{"level":"info","ts":1726153008.6148074,"msg":"using config from file","file":"/etc/caddy/Caddyfile"}
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/pberkel/caddy-storage-redis.(*RedisStorage).UnmarshalCaddyfile(0xc00039d8c0, 0xc0004eeba0)
	github.com/pberkel/caddy-storage-redis@v1.3.0/caddyfile.go:85 +0x11b9
github.com/caddyserver/caddy/v2/caddyconfig/caddyfile.UnmarshalModule(0xc0004eeb70, {0xc000054828, 0x13})
	github.com/caddyserver/caddy/v2@v2.8.4/caddyconfig/caddyfile/adapter.go:137 +0x1b4
github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile.parseOptStorage(0xc0004eeb70, {0xc0004ee990?, 0xc000263660?})
	github.com/caddyserver/caddy/v2@v2.8.4/caddyconfig/httpcaddyfile/options.go:179 +0xb7
github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile.ServerType.evaluateGlobalOptionsBlock({}, {0xc000970480, 0x2, 0x2}, 0xc0004ee990)
	github.com/caddyserver/caddy/v2@v2.8.4/caddyconfig/httpcaddyfile/httptype.go:372 +0x1c2
github.com/caddyserver/caddy/v2/caddyconfig/httpcaddyfile.ServerType.Setup({}, {0xc000960e80, 0x2, 0xc0004eea20?}, 0xc0004ee990)
	github.com/caddyserver/caddy/v2@v2.8.4/caddyconfig/httpcaddyfile/httptype.go:83 +0x2a7
github.com/caddyserver/caddy/v2/caddyconfig/caddyfile.Adapter.Adapt({{0x2047e20?, 0x2e46020?}}, {0xc000411680, 0x20c, 0x20d}, 0xc00039d7a0?)
	github.com/caddyserver/caddy/v2@v2.8.4/caddyconfig/caddyfile/adapter.go:50 +0x12d
github.com/caddyserver/caddy/v2/cmd.loadConfigWithLogger(0x188ee40?, {0x7fff83d28e4a, 0x14}, {0x7fff83d28e69, 0x9})
	github.com/caddyserver/caddy/v2@v2.8.4/cmd/main.go:214 +0x75b
github.com/caddyserver/caddy/v2/cmd.LoadConfig({0x7fff83d28e4a, 0x14}, {0x7fff83d28e69, 0x9})
	github.com/caddyserver/caddy/v2@v2.8.4/cmd/main.go:107 +0x45
github.com/caddyserver/caddy/v2/cmd.cmdRun({0x0?})
	github.com/caddyserver/caddy/v2@v2.8.4/cmd/commandfuncs.go:214 +0x58c
github.com/caddyserver/caddy/v2/cmd.init.1.func2.WrapCommandFuncForCobra.1(0xc000958308, {0x1b15ae1?, 0x4?, 0x1b15ab1?})
	github.com/caddyserver/caddy/v2@v2.8.4/cmd/cobra.go:137 +0x2f
github.com/spf13/cobra.(*Command).execute(0xc000958308, {0xc000240dc0, 0x4, 0x4})
	github.com/spf13/cobra@v1.8.0/command.go:983 +0xaca
github.com/spf13/cobra.(*Command).ExecuteC(0x2dc15c0)
	github.com/spf13/cobra@v1.8.0/command.go:1115 +0x3ff
github.com/spf13/cobra.(*Command).Execute(...)
	github.com/spf13/cobra@v1.8.0/command.go:1039
github.com/caddyserver/caddy/v2/cmd.Main()
	github.com/caddyserver/caddy/v2@v2.8.4/cmd/main.go:75 +0x1d8
main.main()
	caddy/main.go:12 +0xf

My config is just:
{
	storage redis {
		address redis:6379
		db 1
	}
}

The problem is here:
https://github.com/pberkel/caddy-storage-redis/blob/739937ec7e63f88437782b2f312cd25e31e9ba90/caddyfile.go#L85
Why are we doing configVal[0]? d.Val() wouldn't be returning a slice, it returns a single token value. Pretty sure it should just be configVal with no [0].

Nope I'm dumb, the config value for db just wasn't set (missing env var, my fault) so the slice was empty. Whoops.
Either way, it shouldn't panic on bad config. It should be adjusted to properly report an error saying there's no input.

Thanks for the report @francislavoie, the caddyfile unmarshalling code attempts to handle properties with single or multiple values (in a nested block):
			var configVal []string

			if d.NextArg() {
				// configuration item with single parameter
				configVal = append(configVal, d.Val())
			} else {
				// configuration item with nested parameter list
				for nesting := d.Nesting(); d.NextBlock(nesting); {
					configVal = append(configVal, d.Val())
				}
			}

but subsequent code does not check if any values were supplied.  I will look at updating the above block to check for conditions where parameter values are not supplied and handle the error gracefully.

@francislavoie I've added a simple check to ensure caddyfile config values are not empty:
https://github.com/pberkel/caddy-storage-redis/commit/4032744397f51b47bad28470e3b228fe019c331b
Let me know if this fixes your issue and I'll create a new tag.

Looks good!

This fix has been published in the v1.4.0 release of this module.


Testing SSL client certificates

Hi,
I'm building a client that uses SSL client certificates, not something I've done before.
Is this possible to test with WebMock and how would I go about it?
Thanks 🙂

WebMock operates in HTTP layer.  SSL is one level above.
If you want to test the certificates then you probably need to add expectations on specific http client configuration.

Ah OK, suspected that might be the case. Thanks @bblimke 👍


Make UnengagementMessageUseCase internal

After the PR merged project has a build time error. This is a tiny fix for the UnengagementMessageUseCase visibility type.

LGTM 👍

Let's merge it to sort out the build time error. 😉

!merge

!merge


torch.rfft and torch.ifft arguments

@zongyi-li
It seems that Torch has modified the fft to a namespace and put all functions under it: rfft and ifft, etc.
But right now there is no arguments for one-sided, and I checked torch's official document, now it seems everything is automatically one-sided unless you want specifically the negative part: https://pytorch.org/docs/stable/fft.html. normalized arg became norm.
Can you please confirm?

Torch 1.8 starts to support complex numbers. The old format has two dimensions at the end for the real and imaginary part, while the new using the torch.cfloat data type. As a result, they have a new version of fft.
The new torch.rfft is automatically one-sided, and normalized becomes norm.
There are several changes that need to be made:

Switch from rfft, irfft to rfftn, irfftn.
Initialize the weight parameter as torch.cfloat instead of having the two dimensions at the end.
Simply the complex multiplication for the new format.

The new version is about 30% faster. We plan to release it next week. If you want I can also send it to you sooner.

Thanks. I will wait.

Sorry it takes a bit longer to clean the code. But you may find this useful:
def compl_mul2d(a, b):
    # (batch, in_channel, x,y,t ), (in_channel, out_channel, x,y,t) -> (batch, out_channel, x,y,t)
    op = partial(torch.einsum, "bixy,ioxy->boxy")
    return op(a, b)

class SpectralConv2d(nn.Module):
    def __init__(self, in_channels, out_channels, modes1, modes2):
        super(SpectralConv2d, self).__init__()
        self.in_channels = in_channels
        self.out_channels = out_channels
        self.modes1 = modes1 #Number of Fourier modes to multiply, at most floor(N/2) + 1
        self.modes2 = modes2

        self.scale = (1 / (in_channels * out_channels))
        self.weights1 = nn.Parameter(self.scale * torch.rand(in_channels, out_channels, self.modes1, self.modes2, dtype=torch.cfloat))
        self.weights2 = nn.Parameter(self.scale * torch.rand(in_channels, out_channels, self.modes1, self.modes2, dtype=torch.cfloat))

    def forward(self, x, size=None):
        if size==None:
            size = x.size(-1)

        batchsize = x.shape[0]
        #Compute Fourier coeffcients up to factor of e^(- something constant)
        x_ft = torch.fft.rfftn(x, dim=[2,3])

        # Multiply relevant Fourier modes
        out_ft = torch.zeros(batchsize, self.out_channels, size, size//2 + 1, device=x.device, dtype=torch.cfloat)
        out_ft[:, :, :self.modes1, :self.modes2] = \
            compl_mul2d(x_ft[:, :, :self.modes1, :self.modes2], self.weights1)
        out_ft[:, :, -self.modes1:, :self.modes2] = \
            compl_mul2d(x_ft[:, :, -self.modes1:, :self.modes2], self.weights2)

        #Return to physical space
        x = torch.fft.irfftn(out_ft, s=(size, size), dim=[2,3])
        return x

This is my current wrapper and spectral conv code based on yours. It uses the old code and not the cfloatI will start a pull request. If you think this looks good, I can clean a bit and start a PR.
I changed the function name to have matmul string in it since I have a debugger checking the __name__, __qualname__ of the functions.
class SpectralConv2d(nn.Module):
    def __init__(self, in_dim, # number of hidden features out from attention to the fourier conv
                       out_dim, # number of hidden features to the final regressor
                       modes: int, # number of fourier modes
                       n_grid=None,
                       dropout=0.1,
                       debug=False):
        super(SpectralConv2d, self).__init__()

        '''
        Modified Zongyi Li's SpectralConv2d code
        '''
        self.in_dim = in_dim
        self.out_dim = out_dim
        self.linear = nn.Linear(in_dim, out_dim) # for residual
        self.modes = modes
        self.activation = nn.SiLU()
        self.n_grid = n_grid # just for debugging
        fourier_weight = [Parameter(torch.FloatTensor(in_dim, out_dim, modes, modes, 2)) for _ in range(2)]
        self.fourier_weight = nn.ParameterList(fourier_weight)
        for param in self.fourier_weight:
            xavier_normal_(param, gain=1/(in_dim*out_dim))
        self.dropout = nn.Dropout(dropout)
        self.debug = debug

    @staticmethod
    def complex_matmul_2d(a, b):
        # (batch, in_channel, x, y), (in_channel, out_channel, x, y) -> (batch, out_channel, x, y)
        op = partial(torch.einsum, "bixy,ioxy->boxy")
        return torch.stack([
            op(a[..., 0], b[..., 0]) - op(a[..., 1], b[..., 1]),
            op(a[..., 1], b[..., 0]) + op(a[..., 0], b[..., 1])
        ], dim=-1)

    def forward(self, x):
        '''
        Input: (-1, n_grid**2, in_features) or (-1, n_grid, n_grid, in_features)
        Output: (-1, n_grid**2, out_features) or (-1, n_grid, n_grid, out_features)
        '''
        batch_size = x.size(0)
        n_dim = x.ndim
        if n_dim == 4:
            n = x.size(1)
            assert x.size(1) == x.size(2)
        elif n_dim == 3:
            n = int(x.size(1)**(0.5))
        else:
            raise ValueError("Dimension not implemented")
        in_dim = self.in_dim
        out_dim = self.out_dim
        modes = self.modes

        if self.debug:
            print(f"grid size: \t {(n, self.n_grid)}")
            print(f"x size: \t {x.size()}")
            assert n == self.n_grid

        x = x.view(-1, n, n, in_dim) # no need to use contiguous here.
        res = self.linear(x) #(B, n, n, E_out)
        x = self.dropout(x)

        if self.debug:
            print(f"signal in space: \t { x.size()}")
        x = x.permute(0, 3, 1, 2) # (B, n, n, E) -> # (B, E, n, n)
        # f: Nyquist frequency
        x_ft = fft.rfft2(x, s=(n, n), norm="ortho")  # (B, E, n, f)
        x_ft = torch.stack([x_ft.real, x_ft.imag], dim=4) # (B, E, n, f, 2)
        if self.debug:
            print(f"signal in freq: \t {x_ft.size()}")

        # out_ft second dim should be out_dim, this is a bug in original Zongyi Li's code
        out_ft = torch.zeros(batch_size, out_dim, n, n//2+1, 2, device=x.device)
        out_ft[:, :, :modes, :modes] = self.complex_matmul_2d(x_ft[:, :, :modes, :modes], self.fourier_weight[0])
        out_ft[:, :, -modes:, :modes] = self.complex_matmul_2d(x_ft[:, :, -modes:, :modes], self.fourier_weight[1])
        out_ft = torch.complex(out_ft[...,0], out_ft[...,1])
        if self.debug:
            print(f"regression in freq: \t {out_ft.size()}")

        x = fft.irfft2(out_ft, s=(n, n), norm="ortho") #(B, E_out, n, n)
        x = x.permute(0, 2, 3, 1) #(B, n, n, E_out)
        x = self.activation(x + res)

        if n_dim == 3:
            x = x.view(batch_size, n**2, out_dim)

        if self.debug:
            print(f"out in space: \t {x.size()}")

        return x

class SpectralRegressor2d(nn.Module):
    def __init__(self, in_dim, # number of hidden features out from attention to the fourier conv
                       freq_dim, # number of frequency features
                       out_dim, # number of target dim
                       modes: int, # number of fourier modes
                       num_spectral_layers:int = 2,
                       n_grid=None,
                       dim_feedforward=None,
                       spacial_fc=False,
                       spacial_dim=3,
                       dropout=0.1,
                       debug=False):
        super(SpectralRegressor2d, self).__init__()
        '''
        A wrapper for SpectralConv2d
        '''
        self.spacial_fc = spacial_fc
        self.fc = nn.Linear(spacial_dim, in_dim) if self.spacial_fc else None
        self.spectral_conv = nn.ModuleList([SpectralConv2d(in_dim=in_dim,
                                                           out_dim=freq_dim,
                                                           n_grid=n_grid,
                                                           modes=modes,
                                                           dropout=dropout,
                                                           debug=debug)])
        for _ in range(num_spectral_layers - 1):
            self.spectral_conv.append(SpectralConv2d(in_dim=freq_dim,
                                                     out_dim=freq_dim,
                                                     n_grid=n_grid,
                                                     modes=modes,
                                                     dropout=dropout,
                                                     debug=debug))

        self.n_grid = n_grid # dummy
        self.dim_feedforward = 2*freq_dim if dim_feedforward is None else dim_feedforward
        self.regressor = nn.Sequential(
                                    nn.Linear(freq_dim, self.dim_feedforward),
                                    nn.SiLU(),
                                    nn.Linear(self.dim_feedforward, out_dim),
                                )

    def forward(self, x, pos=None):
        '''
        Input: (-1, n*n, in_features)
        Output: (-1, n*n, n_targets)
        '''
        if self.spacial_fc:
            x = torch.cat([x, pos], dim=-1)
            x = self.fc(x)

        for layer in self.spectral_conv:
            x = layer(x)

        x = self.regressor(x)
        return x

This is my current wrapper and spectral conv code based on yours. It uses the old code and not the cfloat. If you think this looks good, I can clean a bit and start a PR.
I changed the function name to have matmul string in it since I have a debugger checking the __name__, __qualname__ of the functions.
 Feel free to join: https://math.wustl.edu/events/statistics-and-data-science-seminar-transformer-dissection-amateur-applied-mathematician?d=2021-04-15
class SpectralConv2d(nn.Module):
    def __init__(self, in_dim, # number of hidden features to the fourier conv
                       out_dim, # number of hidden features to the final regressor
                       modes: int, # number of fourier modes
                       n_grid=None,
                       dropout=0.1,
                       debug=False):
        super(SpectralConv2d, self).__init__()

        '''
        Modified Zongyi Li's SpectralConv2d code
        '''
        self.in_dim = in_dim
        self.out_dim = out_dim
        self.linear = nn.Linear(in_dim, out_dim) # for residual
        self.modes = modes
        self.activation = nn.SiLU()
        self.n_grid = n_grid # just for debugging
        fourier_weight = [Parameter(torch.FloatTensor(in_dim, out_dim, modes, modes, 2)) for _ in range(2)]
        self.fourier_weight = nn.ParameterList(fourier_weight)
        for param in self.fourier_weight:
            xavier_normal_(param, gain=1/(in_dim*out_dim))
        self.dropout = nn.Dropout(dropout)
        self.debug = debug

    @staticmethod
    def complex_matmul_2d(a, b):
        # (batch, in_channel, x, y), (in_channel, out_channel, x, y) -> (batch, out_channel, x, y)
        op = partial(torch.einsum, "bixy,ioxy->boxy")
        return torch.stack([
            op(a[..., 0], b[..., 0]) - op(a[..., 1], b[..., 1]),
            op(a[..., 1], b[..., 0]) + op(a[..., 0], b[..., 1])
        ], dim=-1)

    def forward(self, x):
        '''
        Input: (-1, n_grid**2, in_features) or (-1, n_grid, n_grid, in_features)
        Output: (-1, n_grid**2, out_features) or (-1, n_grid, n_grid, out_features)
        '''
        batch_size = x.size(0)
        n_dim = x.ndim
        if n_dim == 4:
            n = x.size(1)
            assert x.size(1) == x.size(2)
        elif n_dim == 3:
            n = int(x.size(1)**(0.5))
        else:
            raise ValueError("Dimension not implemented")
        in_dim = self.in_dim
        out_dim = self.out_dim
        modes = self.modes

        if self.debug:
            print(f"grid size: \t {(n, self.n_grid)}")
            print(f"x size: \t {x.size()}")
            assert n == self.n_grid

        x = x.view(-1, n, n, in_dim) # no need to use contiguous here.
        res = self.linear(x) #(B, n, n, E_out)
        x = self.dropout(x)

        if self.debug:
            print(f"signal in space: \t { x.size()}")
        x = x.permute(0, 3, 1, 2) # (B, n, n, E) -> # (B, E, n, n)
        # f: Nyquist frequency
        x_ft = fft.rfft2(x, s=(n, n), norm="ortho")  # (B, E, n, f)
        x_ft = torch.stack([x_ft.real, x_ft.imag], dim=4) # (B, E, n, f, 2)
        if self.debug:
            print(f"signal in freq: \t {x_ft.size()}")

        # out_ft second dim should be out_dim, this is a bug in original Zongyi Li's code
        out_ft = torch.zeros(batch_size, out_dim, n, n//2+1, 2, device=x.device)
        out_ft[:, :, :modes, :modes] = self.complex_matmul_2d(x_ft[:, :, :modes, :modes], self.fourier_weight[0])
        out_ft[:, :, -modes:, :modes] = self.complex_matmul_2d(x_ft[:, :, -modes:, :modes], self.fourier_weight[1])
        out_ft = torch.complex(out_ft[...,0], out_ft[...,1])
        if self.debug:
            print(f"regression in freq: \t {out_ft.size()}")

        x = fft.irfft2(out_ft, s=(n, n), norm="ortho") #(B, E_out, n, n)
        x = x.permute(0, 2, 3, 1) #(B, n, n, E_out)
        x = self.activation(x + res)

        if n_dim == 3:
            x = x.view(batch_size, n**2, out_dim)

        if self.debug:
            print(f"out in space: \t {x.size()}")

        return x

class SpectralRegressor2d(nn.Module):
    def __init__(self, in_dim, # number of hidden features to the fourier conv
                       freq_dim, # number of frequency features
                       out_dim, # number of target dim
                       modes: int, # number of fourier modes
                       num_spectral_layers:int = 2,
                       n_grid=None,
                       dim_feedforward=None,
                       spacial_fc=False,
                       spacial_dim=3,
                       dropout=0.1,
                       debug=False):
        super(SpectralRegressor2d, self).__init__()
        '''
        A wrapper for SpectralConv2d
        '''
        self.spacial_fc = spacial_fc
        self.fc = nn.Linear(spacial_dim, in_dim) if self.spacial_fc else None
        self.spectral_conv = nn.ModuleList([SpectralConv2d(in_dim=in_dim,
                                                           out_dim=freq_dim,
                                                           n_grid=n_grid,
                                                           modes=modes,
                                                           dropout=dropout,
                                                           debug=debug)])
        for _ in range(num_spectral_layers - 1):
            self.spectral_conv.append(SpectralConv2d(in_dim=freq_dim,
                                                     out_dim=freq_dim,
                                                     n_grid=n_grid,
                                                     modes=modes,
                                                     dropout=dropout,
                                                     debug=debug))

        self.n_grid = n_grid # dummy
        self.dim_feedforward = 2*freq_dim if dim_feedforward is None else dim_feedforward
        self.regressor = nn.Sequential(
                                    nn.Linear(freq_dim, self.dim_feedforward),
                                    nn.SiLU(),
                                    nn.Linear(self.dim_feedforward, out_dim),
                                )

    def forward(self, x, pos=None):
        '''
        Input: (-1, n*n, in_features)
        Output: (-1, n*n, n_targets)
        '''
        if self.spacial_fc:
            x = torch.cat([x, pos], dim=-1)
            x = self.fc(x)

        for layer in self.spectral_conv:
            x = layer(x)

        x = self.regressor(x)
        return x

Oh you are from WashU. I had my college there. I will be very happy to know your progress with our method.
The output of fft.rfft2() should be torch.cfloat type, does the old complex_matmul_2d() still work? I would suggest you try the newer implementation given above.

Yeah, it still works. Concatenating the real and complex part in the last dim, and using the old code is good as essentially the original function you implemented is a complex multiplication (A + i B) multiply (C + i D) in every channel.


[Device-Roaming-Subscription]: Protocol components are missing in specification

Describe the bug
The components described in the descriminator for the prototocol-property are missing.
This causes problems with our code-generator and makes it unpossible to create the expected property-models.
See:
      discriminator:
        propertyName: protocol
        mapping:
          HTTP: "#/components/schemas/HTTPSubscriptionRequest"
          MQTT3: "#/components/schemas/MQTTSubscriptionRequest"
          MQTT5: "#/components/schemas/MQTTSubscriptionRequest"
          AMQP: "#/components/schemas/AMQPSubscriptionRequest"
          NATS: "#/components/schemas/NATSSubscriptionRequest"
          KAFKA: "#/components/schemas/ApacheKafkaSubscriptionRequest"

Expected behavior
The components should be there, otherwise the yaml is invalid.

cc: @camaraproject/commonalities_maintainers

successfully tested - LGTM 👍


Actual strategy popup

PR to implement #8
Let me know if there are any suggestions, or if the feature is definitely not desired (I might have to use a private fork if that's the case).

Hello!
Sorry I was unaware of #8. We at Taskworld aren’t using react-overlay-popup anymore, and so this repo is no longer maintained. Instead, we now use react-warp-portal along with positioning-strategy which does things in a very different way.
Please feel free to use a fork, and please let me know if you wish to resurrect (i.e. take over) this project 😄

so this repo is no longer maintained [...] and please let me know if you wish to resurrect

My team and I will brainstorm a bit and I'll get back to you. Thanks for reaching back and letting us know @dtinth.

As apparent as it may seem: my team decided to not resurrect the project. Hope the spinoff version goes well.

Thanks for the update ;)


OAS->FC and demo of automated function calling with GPT

The demo is modified to be compatible with nbdev and shows a nice example of how automated function calling can be performed.

I am not sure why my nbdev_prepare cannot make it as Nghi describes. It somehow always shows this first markdown line that looks quite weird. I even rewrite the branch with origin/main but whenever I use nbdev_prepare it appears agai.

Please use only necesary commits in a PR after rebasing onto origin/main branch.
Also if possible, please try to make use of some existing features from other modules as much as possible.

@linhktran can you finish this first?


⚠ BeyondHD has degraded performance

In 2158416, BeyondHD ($BHD) experienced degraded performance:

HTTP code: 200
Response time: 1317 ms

Resolved: BeyondHD performance has improved in ab93ed3 after 8 minutes.


Incomplete utf-8 byte sequence from index 0

The code is:
#[test]
fn test_token() {
    let input = "🍌This is a sentence   with spaces, hahhahah haha ha";
    let rke = r50k_base()?;
    let _ = rke.split_by_token(input, true).unwrap();
}

Error:
called `Result::unwrap()` on an `Err` value: incomplete utf-8 byte sequence from index 0

Caused by this line:
https://github.com/zurawiki/tiktoken-rs/blob/1aa3d90f220ec4dc42a2ff489a42b75b4e3b6cf8/tiktoken-rs/src/vendor_tiktoken.rs#L618
It should be String::from_utf8_lossy?

Thanks for the clear repro. Unfortunately, not every string sequence can be properly split into Unicode-compatible chunks. I added test cases to ensure splitting and round_trip work as expected in #24.


[feat] Add ZSet, List, Client and Server commands

Summary

Add ZSet, List and Server commands, including:

ZSet: ZAdd, ZRange, ZRevRange, ZRem, ZCard, ZIncrBy, ZScore, Zrank, ZRevRank, ZremRangeByRank, ZCount, ZRangeByScore, ZRevRangeByScore, ZRemRangeByScore, ZUnionStore, ZInterStore
List: LPush, LPushX, RPush, RPushX, LPop, RPop, LIndex, LSet, LRange, LTrim, LInsert, LLen, LRem, RPopLPush
Server: Info, monitor
Client: Client List, Client Info

Solution Description

ZSet and List commands rely on a specific implementation of the ObServer, where Modis only acts as a proxy to forward messages from the Redis client.
Server and Client commands collect and output the information of Modis process.

LGTM


Add animated button using javascript

This is a(n):

[ ] Update to an existing Animated Button
[ ] Any Error
[x] Proposal to the Repository
[ ] Documentation / README.md changes

Details:

I create this new issue  as you mentioned  in the last issue  @Spyware007

@sagnik3788 Assigned to you
All the best.
Make sure to ⭐ the repo and follow me.
I would love to connect with you all. ❤
https://www.linkedin.com/in/om-gawande/


Crashes when pressing Send button.

When pressing the Send button, I get the following error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'NSConcreteMutableAttributedString initWithString:attributes:: nil value'
Both on sample project and when tried to use in my own project.
When debugging, I noticed that it crashes when processing this line:
CGFloat collectionViewContentHeight = [self.collectionView.collectionViewLayout collectionViewContentSize].height;
That's inside scrollToBottomAnimated: method.
Any help?

Hello, @rogerluan. Thanks for using QMChatViewController!
It happens because QBChatMessage object has a nil value in dateSent property. This value using as date on message bubble.
In QuickBloxSDK v.2.4 we setups this value in sendMessage:sentBlock: method. But in example project we don't use this method.
This is main reason for this problem. In your own project you should use sendMessage:sentBlock: and then add QBChatMessage object to items array.

Fixed Example project.


How many virtual CPU cores you get when not specifying a sizeID?

See: https://github.com/Jumpscale/ays9/tree/master/templates/nodes/node.ovc
If you only specify values for memory and bootdiskSize, and not specify any value for sizeID how many virtual CPU cores do you get then?

size will be calculated to accommodate the memory specified


Commander Agent Option

Can I configure then run the agent at the same time?

No, sorry this is not possible at the moment.

thanks


adding looping and start loop at position to play() and play3d()

Description
Now SoLoud.play() and SoLoud.play3d() have also looping and loopingStartAt properties. They also can be set/get at any time with SoLoud.getLoopPoint() and SoLoud.setLoopPoint().
Added SoLoud.getLooping() to get the looping state.
To test them I used the example app: in the 3D page the siren loop is played with looping property, in multi track page there is a check box and a slider to control these values.
Type of Change

[x] ✨ New feature (non-breaking change which adds functionality)
[x] 🛠 Bug fix (non-breaking change which fixes an issue)
[x] ❌ Breaking change (fix or feature that would cause existing functionality to change)
[ ] 🧹 Code refactor
[ ] ✅ Build configuration change
[x] 📝 Documentation
[ ] 🗑 Chore

Hi ! I am using your package manipulate a track, and it seems I can only set the start of the loop and not the end of the loop on a track, is there a technical reaspon for this?
@alnitak

Hi @AyoAlfonso,
please, we can more easily track this if you file an issue for a feature request.

I don't think I am asking for a feature request, I am asking if it even exists at all

Well, it doesn't exist now because SoLoud lib doesn't have it, but it can be planned and implemented in the future.


bundler bugs

[x] bug: tevm shouldn't throw if tevm.json doesn't exist
[ ] bug: tevm should support both tevm.json and tevm.config.json
[x] bug: tevm should be able to resolve both @tevm/contract and tevm/contract

won't do 3rd


Script to install node-mapnik breaking on its own

We are installing a specific node-mapnik version by specifying the hash, as we're using unreleased mapnik and can't depend on everything working with arbitrary versions. We also needed a node-mapnik more recent than tagged upstream.
This worked to install a couple of weeks ago, but no longer does
NODE_MAPNIK_HASH=39a9cdefe182be41d39e64d03f51d33cb12fb348
echo "Running Mapnik $(mapnik-config --version) (git $(mapnik-config --git-revision))"
echo "Running $(g++ --version | head -n1)"
sed -i "s|\"mapnik\":.*|\"mapnik\": \"git+https://github.com/mapnik/node-mapnik.git#$NODE_MAPNIK_HASH\",|" package.json

npm install --build-from-source

Running Mapnik 3.0.0-pre (git f688b206f831ed427d3a92f64b51df2d7b99b48b)
Running g++ (GCC) 4.8.2 20140120 (Red Hat 4.8.2-15)
Installing node-mapnik 39a9cdefe182be41d39e64d03f51d33cb12fb348
><EMAIL_ADDRESS>install /data/servers/mq_jenkins_mapping/jobs/kosmtik/workspace/node_modules/mapnik
> node-pre-gyp install --fallback-to-build

gyp ERR!  System Linux 2.6.32-504.12.2.el6.x86_64
gyp ERR! command "/data/servers/mq_nms/stdbase/bin/node" "/data/servers/mq_jenkins_mapping/jobs/kosmtik/workspace/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "clean"
gyp ERR! cwd /data/servers/mq_jenkins_mapping/jobs/kosmtik/workspace/node_modules/mapnik
gyp ERR! node -v v0.11.16
gyp ERR! node-gyp -v v1.0.3
gyp ERR! This is a bug in `node-gyp`.
gyp ERR! Try to update node-gyp and file an Issue if it does not help:
gyp ERR!     <https://github.com/TooTallNate/node-gyp/issues>
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/data/servers/mq_nms/stdbase/bin/node /data/servers/mq_jenkins_mapping/jobs/kosmtik/workspace/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (7)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/data/servers/mq_jenkins_mapping/jobs/kosmtik/workspace/node_modules/mapnik/node_modules/node-pre-gyp/lib/util/compile.js:73:29)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
node-pre-gyp ERR! stack     at maybeClose (child_process.js:1008:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
node-pre-gyp ERR! System Linux 2.6.32-504.12.2.el6.x86_64
node-pre-gyp ERR! command "node" "/data/servers/mq_jenkins_mapping/jobs/kosmtik/workspace/node_modules/mapnik/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /data/servers/mq_jenkins_mapping/jobs/kosmtik/workspace/node_modules/mapnik
node-pre-gyp ERR! node -v v0.11.16
node-pre-gyp ERR! node-pre-gyp -v v0.6.4
node-pre-gyp ERR! not ok
Failed to execute '/data/servers/mq_nms/stdbase/bin/node /data/servers/mq_jenkins_mapping/jobs/kosmtik/workspace/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js clean' (7)
npm ERR! Linux 2.6.32-504.12.2.el6.x86_64
npm ERR! argv "/data/servers/mq_nms/stdbase/bin/node" "/data/servers/mq_nms/stdbase/bin/npm" "install" "--build-from-source"
npm ERR! node v0.11.16
npm ERR! npm  v2.3.0
npm ERR! code ELIFECYCLE

npm ERR<EMAIL_ADDRESS>install: `node-pre-gyp install --fallback-to-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the<EMAIL_ADDRESS>install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the mapnik package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR!     npm owner ls mapnik
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /data/servers/mq_jenkins_mapping/jobs/kosmtik/workspace/npm-debug.log

How can we install node-mapnik in a way that will continue to work with a given version of Mapnik?

This is a bizarre error. It seems to be caused by Cannot find module 'wrappy'. But that module is not a depedency of node-mapnik, nor node-mapniks build dependencies (node-pre-gyp and node-gyp) that I know of.
Overall I see you are using node v0.11.16 which is the unstable series and not recommended. I'm going to close this issue as I don't think it is related to node-mapnik.

Overall I see you are using node v0.11.16 which is the unstable series and not recommended.

What is recommended? My recollection is that 0.12.x doesn't work with Kosmtik, which specifies 1.4.16, which is the latest version of node-mapnik which works with a released mapnik.
My concern isn't this particular error, my concern is that a working build went to a non-working build without any changes, even with a locked down node-mapnik version

0.10.x is recommended. Do you think that will work with Kosmtik?

I suspect so, the only real dependencies of Kosmtik are some basic libraries, node-mapnik, and carto.
I think all we're using node/npm for right now is Kosmtik, node-mapnik, Mapbox Studio, and carto.


Cross-server back problem

In HuskHomes cross-server mode, whenever I die in The End and respawn at the spawn point, then use another command like /server creative to teleport to another sub-server, when I use /back to return, it triggers a bug. At this point, my client appears to have numerous error blocks, and there are also some strange creatures that can be moved.

And when I quit the client and log in again, even bigger errors continue to occur.
[08:05:31] [Server thread/INFO]: Foxii lost connection: Disconnected
[08:05:31] [Server thread/INFO]: Foxii冲出去了
[08:05:31] [Server thread/ERROR]: Encountered an unexpected exception
java.lang.NullPointerException: Cannot invoke "it.unimi.dsi.fastutil.objects.ObjectSet.remove(Object)" because "$$4" is null
	at net.minecraft.class_3204.method_14051(class_3204.java:226) ~[server-intermediary.jar:?]
	at net.minecraft.class_3898.method_18714(class_3898.java:1073) ~[server-intermediary.jar:?]
	at net.minecraft.class_3898.method_18716(class_3898.java:1229) ~[server-intermediary.jar:?]
	at net.minecraft.class_3215.method_18753(class_3215.java:480) ~[server-intermediary.jar:?]
	at net.minecraft.class_3218$class_5526.method_31437(class_3218.java:1581) ~[server-intermediary.jar:?]
	at net.minecraft.class_3218$class_5526.method_31797(class_3218.java:1536) ~[server-intermediary.jar:?]
	at net.minecraft.class_5579.method_31850(class_5579.java:220) ~[server-intermediary.jar:?]
	at net.minecraft.class_5579$class_5580.method_31750(class_5579.java:115) ~[server-intermediary.jar:?]
	at net.minecraft.class_1297.method_31745(class_1297.java:3636) ~[server-intermediary.jar:?]
	at net.minecraft.class_1297.method_5650(class_1297.java:402) ~[server-intermediary.jar:?]
	at net.minecraft.class_1309.method_5650(class_1309.java:712) ~[server-intermediary.jar:?]
	at net.minecraft.class_1657.method_5650(class_1657.java:1408) ~[server-intermediary.jar:?]
	at net.minecraft.class_3218.method_18770(class_3218.java:929) ~[server-intermediary.jar:?]
	at net.minecraft.class_3324.method_14611(class_3324.java:413) ~[server-intermediary.jar:?]
	at net.minecraft.class_3244.method_10839(class_3244.java:1228) ~[server-intermediary.jar:?]
	at net.minecraft.class_2535.method_10768(class_2535.java:452) ~[server-intermediary.jar:?]
	at net.minecraft.class_3242.method_14357(class_3242.java:185) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:908) ~[server-intermediary.jar:?]
	at net.minecraft.class_3176.method_3813(class_3176.java:283) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:824) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:671) ~[server-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) ~[server-intermediary.jar:?]
	at java.lang.Thread.run(Thread.java:833) ~[?:?]
[08:05:31] [Server thread/ERROR]: This crash report has been saved to: /data/server/./crash-reports/crash-2023-07-10_08.05.31-server.txt

environment
version

Java
azul/prime:17

HuskHomes
4.4.1

Fabric
0.14.21

Minecraft
1.20.1

The relevant configuration details are as follows:
  back_command_return_by_death: true
  back_command_save_teleport_event: false
  list_items_per_page: 12
  asynchronous_teleports: true
  play_sound_effects: true

I'm leaning towards this issue being caused more to do with proxy handling with fabric backends and less to do with HuskHomes.
Homes isn't doing anything particularly special -- it teleports players and uses standard plugin messages to request the proxy move the player between servers. None of the supporting logic to do that is actually in the plugin aside from just calling the relevant methods, so I wouldn't particularly know where to begin testing this.

According to my observations, all current instances of this problem occur when there is cross-server and cross-dimensional teleportation at the same time: a player is at dimension X on sub-server A, uses the /server command to directly switch to sub-server B, then teleports to dimension Y on sub-server A, and this is when the problem occurs. Simply using /server to switch sub-servers does not cause this issue. This may potentially not be a problem with Huskhomes, but I wonder if you could help provide the main logic of how Huskhomes implements cross-server teleportation. I would like to see if I can build a simpler environment (for instance, composing a simple plugin that only commands certain sub-server and dimension teleportation) to reproduce this problem, then report it to the related Fabric project team.

Fixed in 4.4.2. Moved to using Fabric's dedicated API for doing cross-dimension teleports.


port setting ui to mateiral3 using androidx preference

Tested manually on Pixel 7 pro, Pixel 8.

image/video format setting was unused, it has been dropped.

rebase on latest main branch.


Containerized Docker Application Lifecycle - 01.1 - Chapter 01 - Article 1

Summary
e-book <--> docs.microsoft.com synchronization

Chapter 01 - article 1

Related PR: https://github.com/dotnet/docs/pull/9305

@mairaw, we had already fixed metadata in PR https://github.com/dotnet/docs/pull/9305, so I just cherry-picked this commit and applied to a fresh branch (and fixed the title casing)


Rationalize "step" vs. "statement"

I'm thinking about this nomenclature change in the guide.
I now think I should say that a "proof consists of many steps", and each step includes an id, step type (H/P/G), justification (hyp and ref), and statement. Currently I use the terms "statement" and "step" interchangeably, but I think that's become confusing.
Comments welcome.

@expln - thoughts?

I agree, "step" sounds more correct. You provide a statement, then say how we treat it - as a hypothesis (H) or it can be inferred from the previous (P/G) - all of these forms a step.

Ok. The "Settings" panel has some fields that should eventually be changed to match. E.g. "Initial statement is goal" might be better said as "Initial step is goal".
I can probably add something like: "technically a step includes a statement, along with other information such as the label. Informally we will sometimes use the term statement for the whole step, because the statement is a key part of the step."

Note: Sometimes "statement" should stay as "statement". E.g., "initial step is goal" (it's referring to the whole thing), but "edit statement by" is correct (because it's referring to the statement within a step).
Also, I'm only talking about the UI here. It might be good if the code eventually used the same terminology as the UI, but that's a lot of thankless work that's easily postponed :-).

"Settings" panel has some fields that should eventually be changed to match. E.g. "Initial statement is goal" might be better said as "Initial step is goal".

Ok, I will update the UI. (https://github.com/expln/metamath-lamp/issues/89)

I can probably add something like: "technically a step includes a statement, along with other information such as the label. Informally we will sometimes use the term statement for the whole step, because the statement is a key part of the step."

Yeah, this sounds good.

Also, I'm only talking about the UI here. It might be good if the code eventually used the same terminology as the UI, but that's a lot of thankless work that's easily postponed :-).

Yes, at some time, when I am done with main algorithms, I will work on code readability and will do such kind of refactorings.

I've made the changes to rationalize "step" vs. "statement". I've added a double-dagger where the UI says "statement" but means "step"; once v11 comes out with an updated UI we can rapidly fix those.


Room naming: the default room name format is different than the one used in Console

Presently a default room name is built with the following format "() joe, john, alice..." where n is the number of members (excluding the current user).
In Vector, only one member name is displayed: "joe and  others" (where k = n - 1).

Fixed


Adds accept terms and conditions to 3bot

Signed-off-by: Ashraf Fouda<EMAIL_ADDRESS>Description
user should accept terms and conditions in order to access the admin panel
Changes
List of changes this PR includes
Related Issues
List of related issues

https://github.com/threefoldtech/js-sdk/issues/1037

Checklist

[ ] Tests included
[ ] Build pass
[ ] Documentation
[ ] Code format and docstrings

Picture of what been implemented


Revert "Remove signup (#2329)"

This reverts commit ece59cff2bc4dc9bd1c68454c3357a9f42a599e0 - reenabling login
Changes proposed ✍
What
copilot:summary

copilot:poem
Why
How
copilot:walkthrough
Checklist ✅

[ ] Label appropriately with Feature, Improvement, or Bug.
[ ] Add screenshots to the PR description for relevant FE changes
[ ] New backend functionality has been unit-tested.
[ ] API documentation has been updated (if necessary) (see docs on API documentation).
[ ] Quality standards are met.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Schedules UI v2

What was changed
All new UI for creating schedules plus improvements to the List Schedules page.

Why?
Better UI/UX around selecting an interval, calendar or providing a cron string.

Checklist

[x] Decide on Edit functionality
[x] Create own protos for FullSchedules (won't wait for SDK protos)
[x] Wait for ui-server release

Closes

How was this tested:

Any docs updates needed?

Thanks both of you for such detailed reviews! Awesome feedback

Yup that's a discussion for another day, i don't think it's intended to be a history (for now).


Bug: Create Channel with parent completes with an error

What were you trying to achieve?
Create a channel with another channel as the parent channel
What are the expected results?
The channel is to be created successfully and the server is to return the channel as the response
What are the received results?
Channel creation operation completes with this error:
2023-12-19 14:06:56 {"level":"warn","message":"Method create_group for  new_channel  with id  using token eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJkb21haW4iOiJmOWU1Y2Q3Ni04ODQzLTQ5ZmEtOTliYi03ZGYzZjEzMjNjNTMiLCJleHAiOjE3MDI5ODYyNjEsImlhdCI6MTcwMjk4MjY2MSwiaXNzIjoibWFnaXN0cmFsYS5hdXRoIiwic3ViIjoiZDZmNTk5MDYtMDg5Yy00ZTQ5LTk0MDYtMTdhMDk5YTNjMDcwIiwidHlwZSI6MCwidXNlciI6ImQ2ZjU5OTA2LTA4OWMtNGU0OS05NDA2LTE3YTA5OWEzYzA3MCJ9.Kfujw97UoJ1wafJzHQSS2jgALiRxg1F3VkyetrOoyjspB6yz6ZCqgF6-Y8cfMA1xrh329iSmQ7mmprG5Wj7j4A took 19.588253ms to complete with error: rpc error: code = InvalidArgument desc = failed to add policies : malformed entity specification : unable to satisfy write precondition `operation:OPERATION_MUST_MATCH  filter:{resource_type:\"group\"  optional_resource_id:\"dfe160ac-b258-4c4c-9893-029d33564f88\"  optional_relation:\"domain\"  optional_subject_filter:{subject_type:\"domain\"  optional_subject_id:\"f9e5cd76-8843-49fa-99bb-7df3f1323c53\"}}`.","ts":"2023-12-19T11:06:56.806863182Z"}

The channel is however visible in the list of channels. But one cannot view that channel as it returns an error:
2023-12-19 14:10:54 {"level":"warn","message":"Method view_group for group  with id  using token eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJkb21haW4iOiJmOWU1Y2Q3Ni04ODQzLTQ5ZmEtOTliYi03ZGYzZjEzMjNjNTMiLCJleHAiOjE3MDI5ODYyNjEsImlhdCI6MTcwMjk4MjY2MSwiaXNzIjoibWFnaXN0cmFsYS5hdXRoIiwic3ViIjoiZDZmNTk5MDYtMDg5Yy00ZTQ5LTk0MDYtMTdhMDk5YTNjMDcwIiwidHlwZSI6MCwidXNlciI6ImQ2ZjU5OTA2LTA4OWMtNGU0OS05NDA2LTE3YTA5OWEzYzA3MCJ9.Kfujw97UoJ1wafJzHQSS2jgALiRxg1F3VkyetrOoyjspB6yz6ZCqgF6-Y8cfMA1xrh329iSmQ7mmprG5Wj7j4A took 5.431706ms to complete with error: rpc error: code = PermissionDenied desc = failed to perform authorization over the entity : failed to perform authorization over the entity : PERMISSIONSHIP_NO_PERMISSION.","ts":"2023-12-19T11:10:54.372541453Z"}

Steps To Reproduce

login with domain
create channel1
create channel 2 with channel1 as the parent
try and view channel2

In what environment did you encounter the issue?
Git commit - 492ce14
Docker Compose version - v2.23.0
Docker version

Additional information you deem important
No response

This one is feature , but it was reported as bug
Channel could not have parent channels , they have only parent groups

Closing due to https://github.com/absmach/magistrala/issues/1975#issuecomment-2006403415.


Fix clear command with schedule

This might be considered an enhancement already

Yea, I think we should treat this as feature flaw and update DG, Thanks for the info!


break apko,melange,wolfictl images, point to sdk image

These single-tool images don't serve much of a purpose when the sdk image has all those tools and more. We've tried to converge on the sdk image, but we don't know what might still be using these.
This builds the image so that they'll fail when invoked, and tell folks clearly that they should use ghcr.io/wolfi-dev/sdk instead.
$ cd images/apko
$ terraform init && terraform apply -auto-approve
$ docker run --rm ttl.sh/jason:latest@sha256:182914446ec4100a293853f6d99324755a454c1dd0b8e38c87251a608e79765c
PLEASE USE ghcr.io/wolfi-dev/sdk INSTEAD
$ echo $?
1

Looks like this will need #96 to be able to pass presubmit.

This will also require tweaks to the required CI checks, since we're not melange-building apko or melange anymore.


[CLI]: Summary is overwriten fromProcess with same run

Describe the bug
Sometimes I have a testing process running, while the model is still training in another process on another node.
I use the following code the update the metrics:
wandb.log(metrics_dict | {"epoch": epoch}, step=step)
for k, v in metrics_dict.items():
    wandb_run.summary[k] = v

It seems like everything works correctly:
wandb: Waiting for W&B process to finish... (success).
wandb:
wandb: Run summary:
...
wandb:         test/best/fpnd 1.5672
wandb:        test/best/w1efp 1.63295
wandb:          test/best/w1m 3.17476
wandb:          test/best/w1p 1.62787
...
wandb: 🚀 View run a9c7033 at: https://wandb.ai/hamgen/jetnet5/runs/vvsvds2q
wandb: Synced 3 W&B file(s), 20 media file(s), 0 artifact file(s) and 0 other file(s)
wandb: Find logs at: wd/dbl_numpar_q_ext0/a9c7033/wandb/run-20230201_151428-vvsvds2q/logs

But if we look into the run summary these metrics are not updated:

Also eg. test/best/fpnd is not available as a metric in the panels.
Additional Files
run.zip
Environment
WandB version: 0.13.9
OS: CentOSLinux7
Python version: 3.9.13
Versions of relevant libraries:
Additional Context
No response

Sorry for the very late response.
setup.py
import wandb
run = wandb.init(
    project="overwrite_error",
    name="run",
    resume=False,
)
with open("run_id.txt", "w") as f:
    f.write(run.id)

train.py
import wandb
import numpy as np
from time import sleep

with open("run_id.txt", "r") as f:
    run_id = f.read()

run = wandb.init(
    id=run_id,
    resume="must",
    project="overwrite_error",
    job_type="train",
)

for _ in range(100):
    run.log({"loss": np.random.rand()})
    sleep(1)

test.py
import wandb
import numpy as np
with open("run_id.txt", "r") as f:
    run_id = f.read()
run = wandb.init(
    id=run_id,
    resume="must",
    project="overwrite_error",
    job_type="test",
)
run.summary["test"] = np.random.rand()

If I run test.py while the training is still running, the "test" value in the summary disappears.
See https://wandb.ai/hamgen/overwrite_error/runs/7h3k1tsw/
Cheers!

Hey,
sorry, the problem persists.
This run has been running wandb 0.13.11 (from conda) and I cannot see the plots in val/unscaled at step 0:
https://wandb.ai/hamgen/jetnet_discdeeptree/runs/zz7bt6bo

I just noticed that in
wandb/run-20230314_122823-zz7bt6bo/files/media/images/val/unscaled/ the files are named like this:
2dhist_etarel_vs_ptrel.pdf_40000_69c7cbda593b240d2ed0.png
2dhist_etarel_vs_ptrel.pdf_20000_7f2813ea3bfc9df53c4f.png
2dhist_etarel_vs_ptrel.pdf_1_bd3d7130c6d945fe44cf.png
So the file for step 0  as a 1 in the filename.

Alright! Could you please share with me the debug logs of the run you just tried?

wandb_step0_error.zip

Hey @mova,
I'll be handling this request from here on out - I noticed you are running train.py when you initialize test.py. Is there a reason you are using the same run ID for both? This is usually not recommended and might be the root cause of the error. A better approach would be to group the runs relating to the same model together and not using the id. Eg:
In train.py:
run = wandb.init(job_type = 'train', group=GROUP_ID)

In test.py:
run = wandb.init(job_type = 'train', group=GROUP_ID)

Where you can use setup.py to create a group ID

Hi,
I guess this would lead to a new https://wandb.ai/user//runs/ every time one of my training gets restartet, right? So then I cannot inspect a single training any more, right?

Hey @mova I wanted to check in if there is anything else we can help with. Please let us know if we can be of further assistance.

Hey,
sorry, i didnt get around to fully test the new procedure, I'll try to do that this week and report back.

Sure thing! Thanks for letting me know :)

Hi @mova,
Since there has not been much movement on this issue, I'll be closing it out for now. In case the solutions above do not work, please feel free to reopen this issue and I will be happy to assist you with getting this to work for you!


Will it be deployed on the Polygon network?

Seaport 1.1 only deploys contracts on Ethereum Mainnet and Rinkeby. Polygon is a popular network and I would like to use Seaport on Polygon.

you can


Citra enhanced

I'm curious if this is missing or if I'm doing something incorrectly. But I have tried every option for 3DS that is not retroarch as I am using the standalone citra enhanced app from retroid pocket. But it will not load the games. I also have citra MMJ and it will work when I've chosen that. But citra MMJ does not have save states so I would prefer to use the enhanced version

Me too

3DS citra variants are no longer maintained by Daijishou Official.  #121


Note to uninstall existing sdk

When following instructions, install will fail if you already have SDK older version installed - this warns about this.

@ajsondev : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@v-shils : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@ajsondev the install should not have failed, so the issue you describing is not the documentation issue. You should be able to install different versions of SDK without any issues. If you experiencing SDK installation issues please open Sensor SDK GitHub issue. We will not make changes in the documentation at this time.

#please-close


IndexError: piece id is out of range occur in sentencepiece, when training instructBLIP

Hi,
I'm training(Fine-tuning) instructBLIP, which of pretrained model is instruct_blip_vicuna7b_trimmed.pth, but I got IndexError: piece id is out of range.
This error maybe occur, token_id exceeds some max_token_id, when decoding texts, literally.
Why this error occur, and how can I fix it?
python train.py --cfg-path FT.yaml
...(omitted)...
Train: data epoch: [0]  [5215/5216]  eta: 0:00:00  lr: 0.000003  loss: 0.0996  time: 0.6706  data: 0.0000  max mem: 31461
Train: data epoch: [0] Total time: 0:57:16 (0.6588 s / it)Generate config GenerationConfig {
  "_from_model_config": true,
  "bos_token_id": 0,
  "eos_token_id": 1,
  "pad_token_id": -1,
  "transformers_version": "4.28.0"
}

/home/work/.local/lib/python3.8/site-packages/transformers/generation/utils.py:1219: UserWarning: You have modified the pretrained model configuration to control generation. This is a deprecated strategy to control generation and will be removed soon, in a future version. Please use a generation configuration file (see https://huggingface.co/docs/transformers/main_classes/text_generation)
  warnings.warn(
Traceback (most recent call last):
  File "train.py", line 133, in <module>
    main()
  File "train.py", line 129, in main
    runner.train()
  File "LAVIS/lavis/runners/runner_base.py", line 371, in train
    val_log = self.eval_epoch(
  File "/opt/conda/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "LAVIS/lavis/runners/runner_base.py", line 460, in eval_epoch
    results = self.task.evaluation(model, data_loader)
  File "LAVIS/lavis/tasks/base_task.py", line 99, in evaluation
    eval_output = self.valid_step(model=model, samples=samples)
  File "LAVIS/lavis/tasks/vqa.py", line 321, in valid_step
    answers = model.predict_answers(
  File "LAVIS/lavis/models/blip2_models/blip2_vicuna_instruct.py", line 417, in predict_answers
    output_text = self.generate(
  File "/opt/conda/lib/python3.8/site-packages/torch/autograd/grad_mode.py", line 27, in decorate_context
    return func(*args, **kwargs)
  File "LAVIS/lavis/models/blip2_models/blip2_vicuna_instruct.py", line 377, in generate
    output_text = self.llm_tokenizer.batch_decode(outputs, skip_special_tokens=True)
  File "/home/work/.local/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 3446, in batch_decode
    return [
  File "/home/work/.local/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 3447, in <listcomp>
    self.decode(
  File "/home/work/.local/lib/python3.8/site-packages/transformers/tokenization_utils_base.py", line 3486, in decode
    return self._decode(
  File "/home/work/.local/lib/python3.8/site-packages/transformers/tokenization_utils.py", line 931, in _decode
    filtered_tokens = self.convert_ids_to_tokens(token_ids, skip_special_tokens=skip_special_tokens)
  File "/home/work/.local/lib/python3.8/site-packages/transformers/tokenization_utils.py", line 912, in convert_ids_to_tokens
    tokens.append(self._convert_id_to_token(index))
  File "/home/work/.local/lib/python3.8/site-packages/transformers/models/llama/tokenization_llama.py", line 129, in _convert_id_to_token
    token = self.sp_model.IdToPiece(index)
  File "/opt/conda/lib/python3.8/site-packages/sentencepiece/__init__.py", line 501, in _batched_func
    return _func(self, arg)
  File "/opt/conda/lib/python3.8/site-packages/sentencepiece/__init__.py", line 494, in _func
    raise IndexError('piece id is out of range.')
IndexError: piece id is out of range.
[main1:90991:0:91018] Caught signal 11 (Segmentation fault: address not mapped to object at address 0x7f37bd40eb11)
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: -11) local_rank: 0 (pid: 90991) of binary: /opt/conda/bin/python
Traceback (most recent call last):
  File "/opt/conda/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/opt/conda/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/opt/conda/lib/python3.8/site-packages/torch/distributed/run.py", line 765, in <module>
    main()
  File "/opt/conda/lib/python3.8/site-packages/torch/distributed/elastic/multiprocessing/errors/__init__.py", line 345, in wrapper
    return f(*args, **kwargs)
  File "/opt/conda/lib/python3.8/site-packages/torch/distributed/run.py", line 761, in main
    run(args)
  File "/opt/conda/lib/python3.8/site-packages/torch/distributed/run.py", line 752, in run
    elastic_launch(
  File "/opt/conda/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 131, in __call__
    return launch_agent(self._config, self._entrypoint, list(args))
  File "/opt/conda/lib/python3.8/site-packages/torch/distributed/launcher/api.py", line 245, in launch_agent
    raise ChildFailedError(
torch.distributed.elastic.multiprocessing.errors.ChildFailedError:
=======================================================
train.py FAILED
-------------------------------------------------------
Failures:
  <NO_OTHER_FAILURES>
-------------------------------------------------------
Root Cause (first observed failure):
[0]:
  time      : 2023-07-27_09:43:50
  host      : main1
  rank      : 0 (local_rank: 0)
  exitcode  : -11 (pid: 90991)
  error_file: <N/A>
  traceback : Signal 11 (SIGSEGV) received by PID 90991
=======================================================

Thanks!

Please refer to #483

In my use case, this only occurs when doing batches. This was an issue where the model was padding with -1. The token 1 == '', so you can replace those with that.
Here's the line number for me:
https://github.com/salesforce/LAVIS/blob/main/lavis/models/blip2_models/blip2_vicuna_instruct.py#L372
And the code:
        outputs[outputs == 0] = 2 # convert output id 0 to 2 (eos_token_id)
        outputs[outputs == -1] = 1 # convert improper tokens to ''


Request: Provide a key Attr

Hello,
I have some dynamic elements that are added and removed quickly with CSS animations but it looks like some animations are restarting when other elements are removed.
I think what is happening is that the first div is removed in the virtual dom but then snabbdom is removing div2 applying the second div's classes to div1 instead of actually removing div1.
div1 =

div2 =

Not entirely sure but I think adding a snabbdom key attr would make this easier to track down.
I believe the change involves adding an Attr then passing it to snabbdom in Rendering?  Not sure where Attrs are created...
https://github.com/PurpleKingdomGames/tyrian/blob/6710104ccc7f8ed61345f062b88d222bb82576bc/tyrian/js/src/main/scala/tyrian/runtime/Rendering.scala#L52
https://github.com/buntec/scala-js-snabbdom/blob/88b874931ccf47d7eab90231b81ca83fa400df35/snabbdom/src/main/scala/snabbdom/VNodeData.scala#L49

6 months! Yikes! Sorry @stevechy...
I've sketched out the solution here. Wondering how to test it - any ideas?
https://github.com/PurpleKingdomGames/tyrian/pull/247

6 months! Yikes! Sorry @stevechy...
I've sketched out the solution here. Wondering how to test it - any ideas?
#247

Thank you for sketching out the solution!  To test it, I guess there should be 2 elements A, B in the vdom, then A should be removed in the vdom and B changed and the test should confirm that the A element in the DOM was removed.
One way could be to do a render then capture the elements with document.getElementById, then after removing A in the vdom the updated elements could be compared with the captured ones.
Another way could be to add some properties to the DOM elements to mark which one is which?
I haven't touched my project for a bit... not sure if there's a good place to put code capture the DOM elements before they are updated?

I had a mooch through the snabbdom tests and surfaced thinking "assuming snabbdom works, and it looks like it does, this probably just works", but curious if there was some way to gain some confidence.
Quick test then, for a model with a list of int's called shuffle, that gets shuffled every second, and rendered as follows:
      div(
        model.shuffle.map { i =>
          span(id := "myspan" + i.toString())("").setKey(i.toString())
        }
      )

Without a key:

With a key:

Clearly the latter is doing less work, i.e. modifying fewer nodes. :tada:
If you slow down the animation and look at what's actually happening (for anecdotal evidence), the untouched nodes are nodes that seem not to have changed position or order before something else has, example sequence where bold has been moved:
...
4 1 2 5 3
1 3 4 2 5
2 4 3 5 1
...
In all three lines, 2 and 5 do not change order, and they aren't the first things that need to move in order to affect the order. Between the first two lines, 4 doesn't need to move either to efficiently affect the order.
On line three 2 and 5 haven't changed order, but 4 and 3 and 1 have changed order and moved.
Are there any conclusions here? I mean.. nothing definite, but I'm inclined to merge it on the basis that:

The change doesn't hurt anything.
I'm trying to get a release out. :smile:
I don't have any better ideas for testing, but if someone comes back with a new use case once the functionality is available, then we can test against it and we can revisit as necessary.

What do you think @stevechy? @hobnob?

Thanks @hobnob, I've merged the change and I'll close this issue for now. :+1:


Enhancement: Detailed analytics/admin dashboard for Self-Hosted Livekit

I'm creating this issue to track any movement towards providing a detailed analytics / admin dashboard for self-hosted Livekit.
It could be in many flavours:

Provide a localhost dashboard accessible with the cluster
Use the Cloud Analytics Dashboard to connect to a self-hosted cluster.

I think the second option is the most likely. Developing a locally hosted telemetry system is not trivial. We can look into this later this year.

Would be happy even if this was a priced offering. Having the ability to have a single cloud dashboard and hot swap from a self-hosted cluster to Livekit Cloud (if/when a transition was to happen) would be ideal (or even have multiple deployments accessed through the single dashboard).
The use case is that there are some of us who are required to self-host (compliance) but still want to access the analytics dashboard. There would have to some consideration regarding removing or aliasing Personally Identifiable Information as well.

That makes sense @NOT-HAL9000! The good news is we do not collect any PII even in the Cloud dashboard today. It should be relatively straight forward to support telemetry from self-hosted installations.

If we want to support telemetry for the self-hosted livekit, looks we need to have some changes in the livekit code, but from my understanding, the change would be minor. What we need to do is create a AnalysisRecordService RPC client, and attach it to the analyticservice.

Here is an example of how dagster was able to do something similar. Hosted Dashboard, but user hosted code. https://docs.dagster.io/dagster-cloud/deployment/hybrid

We would also be interested in this!


Fix issue2736(JSONObject.keySet()中可能包含非String键)

fix #2736
JSONObject.innerMap的泛型参数为<String, Object>，而在DefaultJSONParser.parseObject()方法中往map里put键值对时可能会put进非String类型的key。
当前的parseObject()逻辑中如果开启了NonStringKeyAsString这个特性，则会将key转为String类型。可以直接在这个判断条件后面新增一个对JSONObject的判断。
The parameterType of JSONObject.innerMap is <String, Object>, while in the method DefaultJSONParser.parseObject(), non-String key might be put into this map, resulting in unexpected outcome.
Currently, the type of key will be converted to String only when the feature NonStringKeyAsString is enabled. Therefore, an additional statement which determines whether current object is a JSONObject can be added after that to suit the case here.

Codecov Report

Merging #2748 into master will decrease coverage by 0.01%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master    #2748      +/-   ##
============================================
- Coverage     80.12%   80.11%   -0.02%
- Complexity     7068     7071       +3
============================================
  Files           145      145
  Lines         26708    26709       +1
  Branches       6374     6374
============================================
- Hits          21400    21398       -2
- Misses         3473     3478       +5
+ Partials       1835     1833       -2

Impacted Files
Coverage Δ
Complexity Δ

...com/alibaba/fastjson/parser/DefaultJSONParser.java
88.21% <100%> (+0.01%)
314 <0> (+1)
:arrow_up:

...com/alibaba/fastjson/serializer/SerialContext.java
72.91% <0%> (-4.17%)
19% <0%> (ø)

...ava/com/alibaba/fastjson/serializer/DateCodec.java
87.58% <0%> (-1.97%)
37% <0%> (-1%)

...main/java/com/alibaba/fastjson/util/TypeUtils.java
79.83% <0%> (-0.12%)
625% <0%> (ø)

...ava/com/alibaba/fastjson/parser/JSONLexerBase.java
71.31% <0%> (-0.04%)
825% <0%> (-1%)

.../java/com/alibaba/fastjson/parser/JSONScanner.java
76.4% <0%> (+0.16%)
501% <0%> (+2%)
:arrow_up:

...java/com/alibaba/fastjson/parser/ParserConfig.java
83.47% <0%> (+0.16%)
203% <0%> (+1%)
:arrow_up:

...n/java/com/alibaba/fastjson/util/JavaBeanInfo.java
88.06% <0%> (+0.18%)
198% <0%> (+1%)
:arrow_up:

Continue to review full report at Codecov.

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


What is bg-radial-at-t in tailwind?

Hey, thank you for this amazing package!
I am using your images for tailwind and they look amazing. However, all images that use "bg-radial-at-t" do not work for me. I tried with latest v2 and v3 from Tailwind. Is this something I need to add in my tailwind config? I could not find bg-radial-at-t at tailwinds website either.

Hey Buddy!
Take a look in the tailwind.config.js file in the repo and it has all the necessary config you need to get the radial gradients working!
Hope that helps

Ohhh! There are the settings. I already added some colornames manually. Didn't know its all there. Thank you :)


Merge BOLD Data #20

I can't git push the merged data because git does not allow me to push large data(Total is larger than 1GB).

I don't think we're supposed to push it because of that issue. Oh, and I just wrote some code to get individual .nii for the subjects (i.e sub001.nii, sub002.nii, etc.)