Target object gets over-written in v5.0

Fields which, before the event is handled by the geoip filter, were part of the object used as "target" in geoip are missing afterward. In the case below, "ip".
Config:
input { stdin { } }

filter {
  csv {
    columns => ["[source][ip]", "[target][ip]"]
     separator => ","
  }
  #-------------
  # geo lookup
  #-------------
  if [source][ip] and [source][ip] != "" {
    geoip {
      source => "[source][ip]"
      fields => [ "city_name", "region_name", "country_name", "country_code2", "location" ]
      target => "source"
    }
  }
  if [target][ip] and [target][ip] != "" {
    geoip {
      source => "[target][ip]"
      fields => [ "city_name", "region_name", "country_name", "country_code2", "location" ]
      target => "target"
    }
  }
}
output { stdout {codec => rubydebug {metadata => true}}}

Data:
<IP_ADDRESS>,<IP_ADDRESS>

Output from 2.4:
{
       "message" => "<IP_ADDRESS>,<IP_ADDRESS>",
      "@version" => "1",
    "@timestamp" => "2016-11-09T00:54:21.342Z",
          "host" => "crowley",
        "source" => {
                   "ip" => "<IP_ADDRESS>",
        "country_code2" => "US",
         "country_name" => "United States",
          "region_name" => "MA",
            "city_name" => "Newton Upper Falls",
             "location" => [
            [0] -71.2187,
            [1] 42.31270000000001
        ]
    },
        "target" => {
                   "ip" => "<IP_ADDRESS>",
        "country_code2" => "US",
         "country_name" => "United States",
          "region_name" => "MA",
            "city_name" => "Newton Upper Falls",
             "location" => [
            [0] -71.2187,
            [1] 42.31270000000001
        ]
    }
}

Output from 5.0:
{
    "@timestamp" => 2016-11-09T00:56:03.029Z,
      "@version" => "1",
          "host" => "crowley",
        "source" => {
            "city_name" => "Mendon",
         "country_name" => "United States",
        "country_code2" => "US",
          "region_name" => "Massachusetts",
             "location" => [
            [0] -71.5439,
            [1] 42.103
        ]
    },
       "message" => "<IP_ADDRESS>,<IP_ADDRESS>",
        "target" => {
            "city_name" => "Mendon",
         "country_name" => "United States",
        "country_code2" => "US",
          "region_name" => "Massachusetts",
             "location" => [
            [0] -71.5439,
            [1] 42.103
        ]
    }
}

I wonder if this has anything to do with the new Java event class.  A quick check doesn't show any code changes that would have done this since long before 2.4.

Perhaps https://github.com/logstash-plugins/logstash-filter-geoip/blob/master/lib/logstash/filters/geoip.rb#L172 is causing this:
    event.set(@target, geo_data_hash)

In which case, is there a way to have event.set not completely overwrite a target field?

@untergeek I am thinking a solution might be to call event.set for every field requested by the geoip filter? By this I mean, instead of building this geo_data_hash, call event.set for each time instead of setting a thing in geo_data_hash

Quick research -- it seems like the changes to support geoip2 caused the "merge geoip data into the event" to be lost:

v2.0.7 of the plugin (legacy geoip) - merging: https://github.com/logstash-plugins/logstash-filter-geoip/blob/v2.0.7/lib/logstash/filters/geoip.rb#L135-L149
v3.0.0 of the plugin (geoip2) - assignment/overwrite: https://github.com/logstash-plugins/logstash-filter-geoip/blob/v3.0.0/lib/logstash/filters/geoip.rb#L170


Updated ArrayControl to enable adding/removing entries

See #42

Same as https://github.com/pure-ui/styleguide/pull/177

:tada: thanks @busypeoples!


Added wizard duel game

Nice one, maybe we can add an option to restart later

Nice one, maybe we can add an option to restart later

Yeah, good idea.


Forecast params

Refactored the chart forecast a bit for:

Forecast API removed the filter[time_scope_value] parameter
Scale charts dynamically when a data series is hidden / shown
Purne erroneous data outside forecast date range

Codecov Report

Merging #1770 (c4217a3) into master (ad4425d) will increase coverage by 0.86%.
The diff coverage is 68.64%.

@@            Coverage Diff             @@
##           master    #1770      +/-   ##
==========================================
+ Coverage   77.40%   78.26%   +0.86%
==========================================
  Files         295      295
  Lines        4686     5189     +503
  Branches      902     1187     +285
==========================================
+ Hits         3627     4061     +434
- Misses        960     1106     +146
+ Partials       99       22      -77

Impacted Files
Coverage Δ

...pages/dashboard/components/dashboardWidgetBase.tsx
43.28% <0.00%> (-0.51%)
:arrow_down:

...re/dashboard/awsDashboard/awsDashboardSelectors.ts
100.00% <ø> (+16.66%)
:arrow_up:

...ashboard/azureDashboard/azureDashboardSelectors.ts
100.00% <ø> (+16.66%)
:arrow_up:

...re/dashboard/ocpDashboard/ocpDashboardSelectors.ts
100.00% <ø> (+16.66%)
:arrow_up:

src/components/charts/costChart/costChart.tsx
5.88% <5.00%> (-1.32%)
:arrow_down:

...arts/historicalTrendChart/historicalTrendChart.tsx
87.60% <86.66%> (+1.19%)
:arrow_up:

src/components/charts/trendChart/trendChart.tsx
81.41% <86.66%> (+2.78%)
:arrow_up:

...charts/historicalCostChart/historicalCostChart.tsx
87.68% <93.33%> (+1.59%)
:arrow_up:

src/components/charts/usageChart/usageChart.tsx
84.50% <93.33%> (+2.00%)
:arrow_up:

src/components/charts/common/chartUtils.ts
57.79% <100.00%> (+1.38%)
:arrow_up:

... and 105 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 ad4425d...c4217a3. Read the comment docs.

LGTM :+1:


ImportError: cannot import name DEFAULT_CIPHERS

I get the error below recently.
Traceback (most recent call last):
File "cloudflare.py", line 12, in
import cfscrape
File "/usr/lib/python2.7/site-packages/cfscrape/init.py", line 19, in
from urllib3.util.ssl_ import create_urllib3_context, DEFAULT_CIPHERS
ImportError: cannot import name DEFAULT_CIPHERS
please help me.
thanks for your code.

Hi @masneg,
It looks like you're using a very old version urllib3 <= 1.10.2.
What is the output of the pip2 freeze and python2 -c 'import urllib3; print(urllib3.__version__)' commands?
All you should have to do is run: pip2 install -U cfscrape
Alternatively: pip2 install -U cfscrape 'requests>=2.0.0' 'urllib3<=1.24,>=1.21.1'

Minimum requests version should be 2.6.1 not 2.0.0.
https://github.com/Anorov/cloudflare-scrape/blob/e34895c75aec455179b9edefbd1e2c40c1697a0d/setup.py#L29
Temporary fix: `pip2 install -U cfscrape 'requests>=2.6.1'

Fixed in https://github.com/Anorov/cloudflare-scrape/commit/e382d51fcb34733075d5365ca25198e3348a45dc


Move dioxus-logger to dioxus-std

Specific Demand
The dioxus-logger crate is falling out of sync with the rest of the Dioxus project, which is moving to use the tracing crate instead of the log crate. To ensure that this critical library receives the same support as the rest of Dioxus, it should be moved into the dioxus-std repository.
Implement Suggestion
Copy the existing code into the dioxus-std repo and maintain it there. Also update it to capture logs from both the log crate and the tracing crate.

If you want to log traces within dioxus you can use https://crates.io/crates/tracing-wasm.
dioxus-logger is @DogeDark's library. He is also the maintainer of dioxus-std. It would be great if dioxus-logger supported tracing, but where the library lives doesn't effect what it does or dosen't support

I was thinking that by moving it, we could enforce the same set of dependency upgrade policies, checkin validation, etc. if it was in the same repo.

That would have been useful when upgrading to tracing, but I don't think there will be a lot of API changes for logging in the future. This is the only "breaking" change to logging that Dioxus has made since the 0.1 release. The tracing crate seems very stable

I have talked previously about moving dioxus-logger to the Dioxus organization, and part of that was the possibility of using it with a future profiling/dev tool system. I'd love to get it updated and better integrated with Dioxus, but it's hard to find the time.
Additionally, I think it should stay as a standalone crate. The original idea for it was to become a type of framework with a multitude of logging capabilities, and if it does become integrated with a dev tool, it'd be ideal.


Support for string arrays

Hi, any chance you'd be happy to add support for str arrays? Something like:
macro_rules! tws{
    [$($class:literal),* $(,)?] => {
        [$($crate::tw!($class)),*]
    }
}

so I could write:
tws!["bg-blue-500", "text-red-50"]

This makes twust work much more smoothly with my web framework, Silkenweb.
Thanks!

@simon-bourne thanks for opening the issue.
I actually had this planned already and will implement pretty soon including support for conditionals. I’m trying to get https://github.com/Oyelowo/surreal-orm ready for v1 alpha by today or tomorrow and will support that and more. Hope that isn’t too late for you?

And great work and congratulations on your project 👏

That will be great, thanks. I didn't expect such a fast turnaround! Looking forward to seeing what you've got planned for conditionals.

Hi, have you had a chance to look at this? Thanks!

 Some unforeseen issues came up, but I'm close to clearing them up already. I expect to make those changes within a month from now-hopefully sooner.
Thanks for your patience!


[Question] Is there going to be a Python=3.12 build...

...or you guys are done rebuilding something a bit ye olde for more modern Pythons? :snake: Cheers very much - let me know if I can help in any way :beer:

Hi @valeriupredoi! The support for Python 3.12 needs to come first in the upstream repository (https://github.com/matplotlib/basemap), then it should be straightforward here.
I targeted this for the basemap release 1.4.0; regarding Python 3.12 the main thing is to remove the remainders of distutils (not sure if I already completed it). I just need to find some spare time to take a look on it, probably within a couple of weeks.

@molinav good man! Happy to hear there's still push to keep it afloat and titop Python-ed 🐍 🍺

@valeriupredoi The migration to Python 3.12 is completed in the basemap upstream repository. I want to make one last change before release 1.4.0 (remove old unicode literal syntax), so I hope to get 1.4.0 ready either today or tomorrow. Then it is only a matter of days that this feedstock gets regenerated, and then we will have support for Python 3.12 in conda-forge.

@valeriupredoi Packages for Python 3.12 are finally available in the conda-forge channel!

@molinav that's mega, great many thanks, mate! Am travelling back from holidays today, but will have a closer look and env test at our end tomorrow, cheers muchly 🍺

brilliant work, I just tested with our env, and basemap is now happily 3.12-ing :beer: :beer:


Need an option to save passphrases

Please implement an option for saving all generated passphrases to a .txt file.

thanks working


Renewal time sql table fix

This fixes the OfficerManager.get_officer_renew_dates function to use renewal time in a seperate table and also adds the table used into the database.sql file. This is the SQL table used:
CREATE TABLE RenewalTimes
(
    renewal_id INT PRIMARY KEY AUTO_INCREMENT,
    officer_id BIGINT UNSIGNED,
    renewed_time DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
    renewed_by BIGINT UNSIGNED,
    reason TEXT,

    CONSTRAINT officer_id_FK_RT FOREIGN KEY (officer_id) REFERENCES Officers(officer_id),
    CONSTRAINT renewed_by_FK FOREIGN KEY (renewed_by) REFERENCES Officers(officer_id)
);

The only problem I see here is the foreign constraint with the renewed_by column. We’ll need to add a SQL call in remove_office to delete renewal entries an officer has made if they leave.
It may be best to remove that constraint, so that if a staff member leaves, any officers whose time they renewed will still have it.

@CaptainDestructo When something like this references an officer it should really be a forign key though. We should rather add another thing to drop it or just CASCADE DROP the officer, so that all their records go with them.

I would agree with you, however this would cause officers to lose their renewed status if that staff member left. Is that what we want to happen?
I’m ok with changing Officers to a cascade drop, we just need to make sure we all use the same SQL

Yeah, we should be able to have it optional but still a forign key, I can check it tomorrow.


fail if id is not a valid uui

currently there is seems to be a silent failure, instead an error message should be shown to the user that the specified ID is not a valid UUID

Done


Fix web-component-tester warnings

I found a good method of removing the freaking security warnings about web-component-tester. This repo has it, but https://github.com/juicy/imported-template does not. Why? Because imported-template uses the global wct command, as so should other repos!
This PR:

Removes web-component-tester from package.json. You can reproduce it in other repos by running npm uninstall web-component-tester --save
Updates all other packages. I sued a tool for that:

npm install -g npm-check-updates
ncu -u
npm install

Run npm audit to confirm that there are no other severe vulnerabilities.

After that, verify that all npm run scripts and, wct and grunt commands still work.
If you agree, we should repeat this fix in other repos.

The only downside of this I can see is that npm install is no longer enough to set up WCT for development. I think it the price worth paying for not sustaining ignorance for security audits, given we suggest install -g ... in  https://github.com/Starcounter/starcounter-include/blob/master/CONTRIBUTING.md#unit-tests anyway.


WIP - DataFrames refactoring

Describe the changes made in this pull request

List of related issues or pull requests
Closes #ISSUE_NUMBER
Collaboration confirmation
As a contributor I confirm

[ ] I read and followed the instructions in README.dev.md
[ ] The documentation is up to date with the changes introduced in this Pull Request (or NA)
[ ] Tests are passing
[ ] Lint is passing

@abelsiqueira I think we can close this PR. Do you agree?

Yes. Closed


[rfc] Default catcher behavior

What if the default behavior would be catching all errors, notices and throwing an exception? It would look like
<?php
$catcher = new UniversalErrorCatcher_Catcher();
$catcher->start();

echo $usingUndefinedVariable; // will produce a notice and therefore an exception

as for now it's possible but in following way
<?php
$catcher = new UniversalErrorCatcher_Catcher();
$catcher->registerCallback(function(Exception $e){
  throw $e;
});
$catcher->start();

echo $usingUndefinedVariable; // will produce a notice and therefore an exception

<?php
$catcher = new UniversalErrorCatcher_Catcher();
$catcher->setThrowRecoverableErrors($boolean);

are you about throwing recoverable errors?

are you about throwing recoverable errors?

hmm, missed that. Yes, it fits


Localise text in chart JS files

This PR extracts and localises text used in the JS files that setup and run the charts

[x] analysis.js
[x] usage_charts.js
[x] Add translations for usage page title
[x] refactor common chart options.js to bring label & points to chart values class

https://user-images.githubusercontent.com/25906/186180098-6edec131-91ef-4594-b70a-dd9399ccec1f.mov
https://user-images.githubusercontent.com/25906/186180160-e65239c5-4874-4816-80d8-f99b36001f86.mov


Optimize Count(*) query

https://github.com/hortonworks-spark/spark-llap/commit/99ca3d722cb087141e5d1a6ade3b621b2d00b940


Remove development team to address build / code signing issues for submodule

When including this project via Carthage submodule, the following build error is generated:
=== BUILD TARGET EasyTipView OF PROJECT EasyTipView WITH THE DEFAULT CONFIGURATION (Release) ===

Check dependencies
EasyTipView has conflicting provisioning settings. EasyTipView is automatically signed, but code signing identity iPhone Distribution: Primedia, Inc. has been manually specified. Set the code signing identity value to "iPhone Developer" in the build settings editor, or switch to manual signing in the project editor.

To address this problem, you should not specify a specific development team to be used for code signing. This PR removes the development team identifiers from the project file. This will allow other teams to include this lib as a Carthage submodule and not run into the same build errors.

Thank you for your contribution. Will do another release in the next days.


Use derives Default and Clone for Winsize Structure

Hello @hibariya
This PR implements the derive for this situations

Default:
https://github.com/adjivas/pty-shell/blob/master/src/winsize.rs#L24
https://github.com/limaconoob/Neko/blob/page/src/page.rs#L13
Clone:
https://github.com/limaconoob/Neko/blob/page/src/page.rs#L35

Hello @adjivas
Those traits seem useful. Thank you :bulb:
(I guess the line you were going to point for "Clone" is here.)

Your welcome, I also thank you for your work!
(Yes, right)


Fails in integrate_targets=

Command
/Users/soffes/.rbenv/versions/2.3.3/bin/pod install --repo-update

Report

What did you do?
Tried to run pod install --repo-update

What did you expect to happen?
Built frameworks in the Rome directory.

What happened instead?
This error.

Stack
   CocoaPods : 1.1.1
        Ruby : ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-darwin16]
    RubyGems : 2.5.2
        Host : Mac OS X 10.12.2 (16C67)
       Xcode : 8.2 (8C38)
         Git : git version 2.11.0
Ruby lib dir : /Users/soffes/.rbenv/versions/2.3.3/lib

Plugins
cocoapods-deintegrate : 1.0.1
cocoapods-plugins     : 1.0.0
cocoapods-rome        : 0.3.0
cocoapods-search      : 1.0.0
cocoapods-stats       : 1.0.0
cocoapods-trunk       : 1.1.2
cocoapods-try         : 1.1.0

Podfile
source 'https://github.com/CocoaPods/Specs.git'

platform :ios, '9.0'
use_frameworks!

plugin 'cocoapods-rome'

target 'Caesar' do
  pod 'Alamofire'
end

Error
NoMethodError - undefined method `integrate_targets=' for #<Pod::Config:0x007fdcae14f338>
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-rome-0.3.0/lib/cocoapods-rome/pre_install.rb:3:in `block in <top (required)>'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/hooks_manager.rb:111:in `block (3 levels) in run'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:142:in `message'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/hooks_manager.rb:103:in `block (2 levels) in run'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/hooks_manager.rb:101:in `each'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/hooks_manager.rb:101:in `block in run'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:142:in `message'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/hooks_manager.rb:100:in `run'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:463:in `run_plugins_pre_install_hooks'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:135:in `block in prepare'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/user_interface.rb:142:in `message'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:131:in `prepare'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/installer.rb:109:in `install!'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/command/install.rb:37:in `run'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/claide-1.0.1/lib/claide/command.rb:334:in `run'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/lib/cocoapods/command.rb:50:in `run'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/cocoapods-1.1.1/bin/pod:55:in `<top (required)>'
/Users/soffes/.rbenv/versions/2.3.3/bin/pod:22:in `load'
/Users/soffes/.rbenv/versions/2.3.3/bin/pod:22:in `<top (required)>'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `load'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:27:in `run'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:332:in `exec'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:20:in `dispatch'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:11:in `start'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/exe/bundle:34:in `block in <top (required)>'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
/Users/soffes/.rbenv/versions/2.3.3/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/exe/bundle:26:in `<top (required)>'
/Users/soffes/.rbenv/versions/2.3.3/bin/bundle:22:in `load'
/Users/soffes/.rbenv/versions/2.3.3/bin/bundle:22:in `<main>'

Can you try update Rome to the latest release? Thanks!

Just did gem install cocoapods-rome before trying. Weird that I got an old version. Definitely never had it installed on this computer or bundle before.
Just decided to not use Rome/CocoaPods for this project for now though so closing. If someone else runs into it, I'm sure they'll report it.


Error occurs when load the pre-trained mvs model

Nice work!
When i load the pre-trained mvs model, this error occurs:
checkpoint = torch.load("MVSFormerPlusPlus/pretrained_models/model_best.pth", map_location=torch.device('cpu'))
File "/public/home/jiangwu/anaconda3/envs/wj-vpamvsnet-38/lib/python3.8/site-packages/torch/serialization.py", line 712, in load
return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args)
File "/public/home/jiangwu/anaconda3/envs/wj-vpamvsnet-38/lib/python3.8/site-packages/torch/serialization.py", line 1049, in _load
result = unpickler.load()
File "/public/home/jiangwu/anaconda3/envs/wj-vpamvsnet-38/lib/python3.8/site-packages/torch/serialization.py", line 1042, in find_class
return super().find_class(mod_name, name)
ModuleNotFoundError: No module named 'base'
I would appreciate it if you could help me with this！
Looking forward to your early reply！

This maybe the issue of torch version.

I meet the same problem. I installed the same version of torch, but still does not work.


Scrolling Object Collection - Input doesn't propagate to children of the collection items

Describe the bug
Hi guys!
I have a vertical scrolling collection with items that have a complex hierarchy of content which includes some labels and a checkbox docked on the right.
I want the checkbox to be enabled only by tapping in it and not anywhere else on the item. I've set up the item as stated on the documentation (adding a BoxCollider and NearInteractionTouchable).
However, I'm not being able to get events on the checkbox using this hirarchy. This list scrolls but the buttons never get pressed.
To reproduce
Steps to reproduce the behavior:
Use the following hierarchy:
ScrollingObjectCollection
Container
Item
label
label
Checkbox
Checkbox won't get input. The list will scroll.
If I use this hierarchy it works:
ScrollingObjectCollection
Container
Checkbox
label
label
But this makes the entire item clickable and not just the checkbox.
I also tried this 2nd approach with a variation: making the box collider just around the checkbox instead of the whole item.
This works button wise. But it limits the interaction with the scroll to that same area, which is unfortunate.
Expected behavior
I would expect the checkbox to get the events using the first hierarchy mentioned. The scroll shouldn't consume a click and should relay it to inner hierarchy children.
Your setup (please complete the following information)

Unity Version [e.g. 2019.4.9f1]
MRTK Version [e.g. v2.4]

Target platform (please complete the following information)

HoloLens 2

Please let me know if it is clear and how can I help you help me! Keep rocking!

Hi @Nuno-Monteiro . Could you please provide more details on the prefabs being used for the hierarchy of your setup. (Some images might help too)

Hi @vaoliva . Sorry for the late reply, I was trying to get the cleanest environment possible so there's no confusion between us going forward with this issue.
I must say I'm a bit confused now as it isn't happening quite as I described but here goes:
Setup 1:
MRTK Sample Scene ScrollingObjectCollection clean
Used hierarchy:

Expected behavior:
Ability to scroll and interact with buttons using near interaction (non hand rays based interaction).
Result:
Everything works as expected. I can scroll and press each button.
Setup 2:
MRTK Sample Scene ScrollingObjectCollection scrolling a list of complex objects.
Used hierarchy:

The complex hierarchy is:
empty game object as parent with the following children:
-label
-quad
-checkbox (MRTK prefab with the label turned off and the box collider adjusted to fit just the square)
This is how the parent looks like in the inspector:

Expected behavior:
Ability to scroll and interact with buttons using near interaction (non hand rays based interaction).
More specifically, the ability to scroll by pressing anywhere on the list and ability to enable the check by pressing on it, and nowhere else on the button.
Result:
Running the scene on editor with MRTK simulation sometimes I can scroll the list but the behavior seems non consistent. I can interact with the checkbox.
Using remoting and testing with the hololens I can only scroll this list using far interaction techniques. I can always interact with the checkbox as expected.
What am I doing wrong? Is this supported interaction? Is the explanation clearer now?
Thanks for the attention and please let me know how I can help!

This looks similar to #5975. @elbuhofantasma will verify if it has been fixed.

Looks like this was fixed in a feature branch that hasn't made its way to main yet.

As we move onto XRI, we're moving the handling of input events onto Unity's side of things. The feature branch will still be available here, and we'd love it if community members took and interest in refreshing this PR for the v2 input system.
https://github.com/microsoft/MixedRealityToolkit-Unity/tree/feature/event_propagation

I am having the same issue. Have somenone solved in some way? Thanks in advance.

We appreciate your feedback and thank you for reporting this issue.
Microsoft Mixed Reality Toolkit version 2 (MRTK2) is currently in limited support. This means that Microsoft is only fixing high priority security issues. Unfortunately, this issue does not meet the necessary priority and will be closed. If you strongly feel that this issue deserves more attention, please open a new issue and explain why it is important.
Microsoft recommends that all new HoloLens 2 Unity applications use MRTK3 instead of MRTK2.
Please note that MRTK3 was released in August 2023. It features an all new architecture for developing rich mixed reality experiences and has a minimum requirement of Unity 2021.3 LTS. For more information about MRTK3, please visithttps://www.mixedrealitytoolkit.org.
Thank you for your continued support of the Mixed Reality Toolkit!


PGGAN model on CIFAR10 obtains poor result on Inception score and FID

Hi, thanks for your great work. I use the official release tf code of Inception score and FID code to evaluate the PGGAN model on CIFAR10. It turns out the results are not good.
Here's my command to train:
python datasets.py cifar10 ~/dataset/cifar-10-batches-py -o data/cifar10
python train.py PGAN -c config_cifar10.json -n cifar10_eval --no_vis

The result I got is:
FID score: 42.96, Inception score: 6.34299373626709 ± 0.06940167397260666

May I ask how did you get the FID score for the pytorch PGGAN model?

May I ask how did you get the FID score for the pytorch PGGAN model?

I'm using this repo.


Billing Page - Note Required for Discount Transaction

Billing Page - Note Required for Discount Transaction

Same for Admin Area


Add Role resource

need a role resource

Tasks to do

[ ] policy client
[ ] policy resource
[ ] policy datasource
[ ] policy review
[ ] docs

https://github.com/banyansecurity/terraform-provider-banyan/pull/15


Config file to add ores

This mod could use a config file to allow users to add ores/blocks from other mods themselves. E.G. Undergarden ores, aether ores, or glowstone.

I would second this.
Or is it possible to do this with a Datapack?

You could always fall back to KubeJS Botany Pots but native support would probably be a better choise long term. Since it's kinda buggy if you add it manually and sometimes you run into issues with missing textures.

This needs to be added. Without a config, custom packs become much more limited


Document not updated after the removal of argument -a and --app

In short, the documents(both the online one and the output of flask --help) is not fully updated after CLI interface is simplified. The -a/--app argument has been removed, but the document is somewhat misleading.
This issue comes from a SO post.  Please read through the comments for more information.

This issue can now be closed! :)


Move QosPublishHandlers into MQTTService

Motivation
Moved QosPublishHandlers to MQTTService to avoid creating handlers on each handler.
Modifications

Move QosPublishHandlers into MQTTService

Verifying this change

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

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

Added integration tests for end-to-end deployment with large payloads (10MB)
Extended integration test for recovery after broker failure

Documentation
Check the box below.
Need to update docs?

[ ] doc-required
(If you need help on updating docs, create a doc issue)

[x] no-need-doc
(Please explain why)

[ ] doc
(If this PR contains doc changes)

Codecov Report

Merging #687 (24461fe) into master (1aba3fe) will decrease coverage by 0.16%.
The diff coverage is 87.50%.

@@             Coverage Diff              @@
##             master     #687      +/-   ##
============================================
- Coverage     78.24%   78.07%   -0.17%
  Complexity      954      954
============================================
  Files           108      108
  Lines          4095     4096       +1
  Branches        309      309
============================================
- Hits           3204     3198       -6
- Misses          719      727       +8
+ Partials        172      171       -1

Impacted Files
Coverage Δ

...lsar/handlers/mqtt/support/Qos2PublishHandler.java
42.85% <50.00%> (ø)

...qtt/support/MQTTBrokerProtocolMethodProcessor.java
78.96% <75.00%> (ø)

...ulsar/handlers/mqtt/AbstractQosPublishHandler.java
94.73% <100.00%> (-0.27%)
:arrow_down:

...streamnative/pulsar/handlers/mqtt/MQTTService.java
83.33% <100.00%> (+0.72%)
:arrow_up:

...lsar/handlers/mqtt/support/Qos0PublishHandler.java
71.42% <100.00%> (ø)

...lsar/handlers/mqtt/support/Qos1PublishHandler.java
64.15% <100.00%> (ø)

.../handlers/mqtt/support/QosPublishHandlersImpl.java
87.50% <100.00%> (ø)

...pulsar/handlers/mqtt/MQTTCommonInboundHandler.java
77.94% <0.00%> (-4.42%)
:arrow_down:

...e/pulsar/handlers/mqtt/utils/PulsarTopicUtils.java
76.52% <0.00%> (-1.74%)
:arrow_down:

.../streamnative/pulsar/handlers/mqtt/Connection.java
87.26% <0.00%> (-1.28%)
:arrow_down:

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 1aba3fe...24461fe. Read the comment docs.


Airline/Lightline compatibility

Hi!
Love this scheme, I've been trying quite a lot and I'm definetly gonna use this one!
It just have a downside, it doesn't have lightline or airline compatibility, it is possible to add it?
Many thanks & congrats!

@jordihm9
Would you check the latest version works for you?

Yes! how can I update? I'm using Plug as my package manager

The changes were pushed to github, Please try:
PlugUpdate
or PlugUpdate aurora

Nice! Thanks a lot! 💯


Update delete wording for Linode and DNS Zones

Could you detail this a little more?

See https://github.com/linode/manager/pull/1104/files/c3cd09c1bd046093170a5983f72cb680e67c6282#r98796351 for more detail.

Thank you very much!


updated editor to 2019.1.10f1

@SimonDarksideJ please make sure the tests pass before merging. This one failed to check out


Clerk Auth 4.21.10 + NextJS 13.4.7 App dir - Server Error  - Error: Clerk: Infinite redirect loop detected. That usually means that we were not able to determine the auth state for this request. A list of common causes and solutions follows.

Video: https://youtu.be/_i8X0JU1eZs
My repo: https://github.com/uptimizer-prolife/test-clerk-auth-with-nextjs-13-app-dir
Your repo (same issue): https://github.com/clerkinc/clerk-next-app-router-starter
Error ss:

Error message:
Server Error
Error: Clerk: Infinite redirect loop detected. That usually means that we were not able to determine the auth state for this request. A list of common causes and solutions follows.

Reason 1:
Your server's system clock is inaccurate. Clerk will continuously try to issue new tokens, as the existing ones will be treated as "expired" due to clock skew.
How to resolve:
-> Make sure your system's clock is set to the correct time (e.g. turn off and on automatic time synchronization).

Reason 2:
You changed Clerk instance keys (Publishable Key, Secret Key).
How to resolve:
-> Make sure you have cleared your browser's application data and cookies everytime you change keys.

Reason 3:
A bug that may have already been fixed in the latest version of Clerk NextJS package.
How to resolve:
-> Make sure you are using the latest version of '@clerk/nextjs' and 'next'.

Also, after the second test, the problem was the incorrect time.
I synchronized the time, and the error was resolved.
You can test it by changing your time -1 hour, and you will see the issue.

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.


Not building in gradle

implementation 'com.github.Mohammed-Alaa:RangeSeekBar:1.0.2'

this is not working update the lib

Hi @devkenante  this is an old version of the library which now are not supported you can find the latest version in README.md file which is implementation 'com.github.MohammedAlaaMorsi:RangeSeekBar:1.0.4'


fix: bkm不支持[]int,手动支持

 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.


api: add reservation API

Signed-off-by: saintube<EMAIL_ADDRESS>Ⅰ. Describe what this PR does
Add  Reservation API
Ⅱ. Does this pull request fix one issue?

#188
Ⅲ. Describe how to verify it
Ⅳ. Special notes for reviews
This API follows the design in #241 .

/lgtm

/approve


Sudoku-Solver-4x4: Improve the visual representation. #9

Added style to heading, cells, grid
Added Background Image
Added button which on click redirects to home page
Centered all the elements
Stylized the buttons

It's great!
But can you make it so that the Sudoku grid is made of colour, and the 2x2 boxes are differentiated by a thicker border between the boxes.
Like,
https://images.app.goo.gl/z29cj3wsTM34Dptg8
I think a blue background with a yellowish golden grid would work great with the overall theme of the website.
Also I think the reset button is not working correctly.
I will increase the difficulty to hard once these are implemented.

It's great!
But can you make it so that the Sudoku grid is made of colour, and the 2x2 boxes are differentiated by a thicker border between the boxes. Like, https://images.app.goo.gl/z29cj3wsTM34Dptg8
I think a blue background with a yellowish golden grid would work great with the overall theme of the website.
Also I think the reset button is not working correctly. I will increase the difficulty to hard once these are implemented.

@ should I change all cells color to blue background with yellowish gloden grid?
and actually reset button issue is given to other, Should I implement that too now?

It's great!
But can you make it so that the Sudoku grid is made of colour, and the 2x2 boxes are differentiated by a thicker border between the boxes. Like, https://images.app.goo.gl/z29cj3wsTM34Dptg8
I think a blue background with a yellowish golden grid would work great with the overall theme of the website.
Also I think the reset button is not working correctly. I will increase the difficulty to hard once these are implemented.

@Spandan-Bhattacharya should I change all cells color to blue background with yellowish gloden grid? and actually reset button issue is given to other, Should I implement that too now?

like this?

Yeah make the whole grid golden.
And reset button has been implemented by another mentee. So it should work.

solve_it_ui.mp4

@Spandan-Bhattacharya Kindly check this once

This is great, and i am really sorry to ask for so many revisons, but i meant that the grid with it's cells will be golden.
And the background of the page would be deep bluish, kinda like the home page.

This is great, and i am really sorry to ask for so many revisons, but i meant that the grid with it's cells will be golden. And the background of the page would be deep bluish, kinda like the home page.

Should I remove the background image whivh is applied now?

Yeah change the background image.

great job!

great job!

Thank You! it means lot to me :)


Fix 'MilitaryRank' default values

Enumeration 'MilitaryRank' was declared with 'Flags' attribute but does not set any initializers to override default values.

@flash2048 Are you planning to fix the tests as requested above?

@flash2048 Never mind--looks like you did already. @maumar Can this be merged?

merged to dev - c162c88b8658f8ece1569b1d0e381dc0fdd5d290 and e6fcd8346a4d5ff6a049df66433a615e92c1b561

@flash2048 thank you for the contribution!


Theming support for Windows 10 (Chromium PR #188)

Is your feature request related to a problem? Please describe.
I'm annoyed by chrome, chromium, and most chromium forks, due to the removal of the --disable-windows10-custom-titlebar argument.
This argument allowed DWM (or any third-party theming solution is installed) to draw the titlebar, with whatever theme is being used by the system.
Describe the solution you'd like, including relevant patches or source
Merge Chromium PR #188 (logoffon/chromium), or another patch to revert Chromium commit d6581b4 or in some way restore --disable-windows10-custom-titlebar
Additional Notes
Not really any more notes to say here currently.

thanks for your advice


subprocess call should check return status

not just calling sys_run  and assume it will execute correctly. sometimes it will fail and the failure info will get lost.

I have checked returncode after calling sys_run, the bug today is i call (lxc-stop -k -n %s) but not ((lxc-stop -k -n %s) % lxc_name). So the shell regard "%s" as lxc_name.  I have checked the returncode after calling this, but the calling is a "grep RUNNING". It return not 0, the same with a stopped container. Docklet misakes it for a stopped container. It is not because that I call sys_run without checking returncode.

you mean checking like this?
if status == "running":
       sys_run("lxc-stop -k -n %s" % lxc_name)
[success, status] = self.container_status(lxc_name)

should be
Ret = sys_run(...)
if Ret.returncode == 0:

I recommend not encapsulating sys call in  sys_run, you can directly call  subprocess.run with check=True, or we do not need to using this python 3.5 new api.

Done


Chrome extension (Dev tools)

What
Need to develop a Google Chrome extension as a RAF DevTools.
Why

To allow logging form/field events outside of the console.
To get rid of numerous console.log statements.
For easier debugging and time-based form/field changes.
For potential time-travelling (applying the state of the form at the certain period of time).

How

Read how to develop a Chrome extension.
Well, develop it.

I gave it a try, and creating Chrome extension is easier than it seems. At least, at the first glance.
During the brainstorming I realized that the logged events must be grouped logically, which would make them easier to read and navigate. My initial thought is to have a "major" events (i.e. "change", "blur", "submit"), which are logged at the root level, and then "minor" events which may follow the major ones (i.e. "update", "validate").

#354 will assist tremendously for such dev tool, since now each state update contains only the relevant patch of the next field(s). That patch is what needs to be displayed in the dev tool, to objectively see what field properties have changed.


Add 'Hello, World!' in Hodor.

A snippet of 'Hello, World!' in Hodor.

Hold the... what's the idiom? Phone? Door? Yeah, door.
Hold the door; I can't believe this hadn't been submitted yet.

I've searched for it. No code, no issues, no PRs... So there it is. :)


Add Project Histogram Endpoint

New wireframes for color correction include a histogram. The previous implementation of the histogram used individual scene histograms and combined it on the frontend.
We need a new endpoint that will allow querying for histograms of a project with color corrections applied, but not transforming between 0-255. The reason we do not want to transform to 0-255 is that the UI shows the min/max of the project and allows users to clip by moving sliders on the graph.
This task is to add an /api/projects/{uuid}/histogram/ endpoint that returns a histogram for a project based on color corrections, but not transformed into the 0-255 range.

I'm now thinking this needs to be in the 0-255 range because that's the first thing we do -- clip and then apply transformations. I think this presents some UI issues though because when we clip we are defining clipping of the source data

@designmatty -- ^ thoughts on that?

If we were ingesting a source with 16-bit bands, would we just scale those down so each band could be represented in 8 bits?

That's actually the first step -- which is why I'm thinking we're going to run into problems if we want to update the histogram to reflect changes in color corrections -- because the changes in color corrections are applied not on the original values.
However, the histogram was interactive in that it allowed users to do clipping on it which seems misleading because users are not clipping 0-255, they're clipping 0-65,535  and the clamping, etc is producing the histogram they're seeing.

I wonder if we should separate the user-specified clipping from the normalization that we're doing on all incoming layers, and do the user-specified clipping last rather than first? Right now, if someone clips and then increases almost any of the parameters to its max, it's likely that the new adjustments will push the histogram outside of the clipping bounds, whereas as a user I'd expect clipping to affect the histogram that I see (which I think is what you've been saying here).

Yeah I think we agree. So it sounds like there are a few additional tasks/parts to this then:

refactor initial clipping/clamping to clip/clamp to a band's actual values (user cannot change this -- they can now)
apply transformations to ^
allow user defined clipping for the resultant 0-255


vCard to QRCoder - diacritics problem

Discussed in https://github.com/codebude/QRCoder/discussions/487

Originally posted by VladdyH March 25, 2024
Hi, successfully implemented generating QR code that provides users with vCard information, but only when there are no diacritics.
I implemented QRCoder nuget v. 1.4.3 within my .NET Framework 4.8 web application that is set to use utf-8 by proper meta tag: <meta charset="utf-8" />
in the pages.
The case:
When I try to use czech characters - e.g.:
BEGIN:VCARD
VERSION:3.0
N:Novák;Janěščřžýáíé;
FN:Mgr. & Mgr. Janěščřžýáíé Novák, DiS.
ORG:MyCompany
TITLE:Mgr. & Mgr.
TEL;TYPE=,VOICE:+420123456789
ADR;TYPE=:;;
<EMAIL_ADDRESS>END:VCARD
Then the information read by QR scanner does not show the ěščř... characters correctly - only shows ??? and another garbage.
But when I add "úů" characters to the N... line:
BEGIN:VCARD
VERSION:3.0
N:Novák;Janěščřžýáíéúů;
FN:Mgr. & Mgr. Janěščřžýáíéúů Novák, DiS.
ORG:MyCompany
TITLE:Mgr. & Mgr.
TEL;TYPE=,VOICE:+420123456789
ADR;TYPE=:;;
<EMAIL_ADDRESS>END:VCARD
Then the information read by QR scanner shows every character correctly.
Any elaboration about using another version of vCard (e.g. 2.1) + specifying "N;CHARSET=UTF-8:Novák;Janěščřžýáíéúů;" did not give any effort.
My implementation for the code generation is pretty straightforward and works, except the case described above:
    public byte[] GetQRCode(string vstup, Color barvaKostek)
    {
        using (QRCodeGenerator qrGenerator = new QRCodeGenerator())
        {
            using (QRCodeData qrCodeData = qrGenerator.CreateQrCode(vstup, QRCodeGenerator.ECCLevel.L))
                //ECCLevel = ErrorCorrectionLevel - odolnost proti chybám čtení (L=7%, M=15%, Q=25%, H=30%
            {
                using (QRCode qrCode = new QRCode(qrCodeData))
                {
                    Bitmap qrCodeImage = qrCode.GetGraphic(2, barvaKostek, Color.White, true);
                    // číselný parametr pro GetGraphic = počet pixelů, které obsadí 1 zobrazený černý bod v grafickém výstupu

                    using (var ms = new MemoryStream())
                    {
                        qrCodeImage.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
                        return ms.GetBuffer();
                    }
                }
            }
        }
    }

Am I missing anything that I should set for the QRCoder to work properly even without the "úů" characters?

After I placed text with diacritics to "ORG:" value, all my readers can correctly read all diacritics from QR code.

@codebude v1.5.1 is encoding the text as UTF8, since it contains characters which are outside of ISO-8859-1, but not applying the UTF8 ECI encoding mode.  My iPhone is able to read the string regardless, however.  I would guess that some QR code readers are able to detect UTF8 encoding even though the data should technically be read as ISO-8859-1.  Most likely the reader used by @VladdyH was able to detect the UTF8 encoding when the string contained the "úů" characters, but not with only the other characters.
@VladdyH please try this code and see if it fixes your issue, being sure to test it with the same QR code reader that you were previously having the issue with:
using (QRCodeData qrCodeData = qrGenerator.CreateQrCode(vstup, QRCodeGenerator.ECCLevel.L, true, false, EciMode.Utf8))

@codebude Assuming this fixes the problem, I suggest that for either v1.6 or v2 we have the ECI mode set properly when encoding text as UTF8, ensuring compliance with the QR Code specification.  Note that this may be why some payload generators require a specific ECI mode -- not because the specification requires it, but rather that without specifying the ECI mode, QRCoder fails to include the ECI mode while encoding text as UTF8.

Assuming this fixes the problem, I suggest that for either v1.6 or v2 we have the ECI mode set properly when encoding text as UTF8, ensuring compliance with the QR Code specification.

Sure, we can take another look at the topic. Preferably for v1.6. However, I believe that it is not quite so simple, because in my opinion the original code from @VladdyH could theoretically also work, because GetEncodingFromPlaintext() should also come to the EncodingMode.Byte without forceUtf8 = true. Yes, according to the standard, the UTF8 EciMode should now be set. In practice, however, in the past many QR readers unfortunately did not support ECI, but were able to read UTF-8 in byte mode. (As they probably tried to determine the encoding of the data heuristically). Here we should at least consider a fallback parameter (as well as UTF-8 with ECI.Default instead of ECI.Utf8) in future implementations. (I don't know what the market looks like today - i.e. how many QR readers actually support ECI nowadays).

Note that this may be why some payload generators require a specific ECI mode -- not because the specification requires it, but rather that without specifying the ECI mode, QRCoder fails to include the ECI mode while encoding text as UTF8.

I think you are wrong here. The two payload generators that explicitly set the EciMode (SlovenianUpnQr, SwissQrCode) have either explicitly listed the mandatory EciMode or explicitly stated that data must be encoded as UTF-8 in their specifications. This actually has nothing to do with the QRCoder implementation.

@Shane32 I tried the code you suggested, but it did not help.
Changing vCard version along with your suggestion didn't change the result either.
So far only the workaround with diacritics in "ORG:" can do the job for my situation.
The actual values making the difference in ORG are: "MyCompany" vs. "MyCompany České republiky".
I double-checked that the vCard string for "vstup" is UTF-8.
Further elaboration and confusion (without ORG workaround):
The result also differs according to other non-diacritic characters.
When I use for firstName: "Janěščřžýáíé" - bad diacritics
But when use only: "ěščřžý" - omitted "Jan" and "áíé" - results to OK dicritics
My QR reader is an android app: com.xiaomi.scanner, version 13.2204.5 (built-in to Xiaomi Redmi Note 11 Pro+ 5G).

@VladdyH @Shane32  This somewhat confirms what I said about the QRCoder readers, where each reader seems to have its own interpretation of encoding and often not following the standard/specification. (Sometimes heuristic, sometimes with ECI, sometimes without, etc.)

My QR reader is an android app: com.xiaomi.scanner, version 13.2204.5 (built-in to Xiaomi Redmi Note 11 Pro+ 5G).

I've heard that the native Xiaomi barcode scanner is notorious for not being able to handle UTF-8 correctly.

As an example of a scanner that cannot display a proper UTF-8 string, take Xiaomi phones with MIUI Global v11.0.3 (with their native scanner application). These phones cannot correctly show a string of Cyrillic characters encoded in UTF-8 even if this charset is specified in the ECI. The Cyrillic characters are shown as question marks. But if you add a Chinese/Japanese character (e.g. 日) to the Cyrillic text, the whole text will be displayed correctly by Xiaomi. This is regardless of BOM.
Source: https://stackoverflow.com/a/61035741

Can you please try another QR code scanner app? E.g. https://play.google.com/store/apps/details?id=com.google.zxing.client.android
I expect it to be able to read the QR codes without any problems. (Both with your original code and with Shane's code.)

Did some quick tests. I generated three variants (utf8 without eci, force-utf-8 + eci, force utf-8 + bom + eci);
var vstup = @"BEGIN:VCARD
VERSION:3.0
N:Novák;Janěščřžýáíé;
FN:Mgr. & Mgr. Janěščřžýáíé Novák, DiS.
ORG:MyCompany
TITLE:Mgr. & Mgr.
TEL;TYPE=,VOICE:+420123456789
ADR;TYPE=:;;
<EMAIL_ADDRESS>END:VCARD";
using (QRCodeGenerator qrGenerator = new QRCodeGenerator())
using (QRCodeData qrCodeData = qrGenerator.CreateQrCode(vstup, ECCLevel.L))
using (QRCode qrCode = new QRCode(qrCodeData))
{
    Bitmap qrCodeImage = qrCode.GetGraphic(5);
    qrCodeImage.Save(@"C:\\Users\\netbl\\Downloads\\original.png", System.Drawing.Imaging.ImageFormat.Png);
}

using (QRCodeGenerator qrGenerator = new QRCodeGenerator())
using (QRCodeData qrCodeData = qrGenerator.CreateQrCode(vstup, ECCLevel.L, true, false, EciMode.Utf8))
using (QRCode qrCode = new QRCode(qrCodeData))
{
    Bitmap qrCodeImage = qrCode.GetGraphic(5);
    qrCodeImage.Save(@"C:\\Users\\netbl\\Downloads\\original_forceutf8_eci.png", System.Drawing.Imaging.ImageFormat.Png);
}

using (QRCodeGenerator qrGenerator = new QRCodeGenerator())
using (QRCodeData qrCodeData = qrGenerator.CreateQrCode(vstup, ECCLevel.L, true, true, EciMode.Utf8))
using (QRCode qrCode = new QRCode(qrCodeData))
{
    Bitmap qrCodeImage = qrCode.GetGraphic(5);
    qrCodeImage.Save(@"C:\\Users\\netbl\\Downloads\\original_forceutf8_bom_eci.png", System.Drawing.Imaging.ImageFormat.Png);
}

The output looks as follows:

(utf8 without eci)

(force-utf-8 + eci)

(force utf-8 + bom + eci)

I then tried to scan all three codes with different scanners:

/
Xiomi barcode scanner
Barcode Scanner (ZXing)

utf-8 without eci
diacritics rendered incorrectly
scans correct

force-utf-8 + eci
diacritics rendered incorrectly
scans correct

force utf-8 + bom + eci
code not recognized as vCard at all
scans correct

Conclusion
I would say the problem at this point is definitely the QR scanner app. Please switch to another app. You will not be able to solve the problem on the sourcecode/QRCoder side.
p.s.: Do you generate the vCard string by hand? (It looks so, because I think it is missing some semicolons.) Have you seen that QRCoder has a vCard payload generator? https://github.com/codebude/QRCoder/wiki/Advanced-usage---Payload-generators#35-contactdata-mecardvcard

@codebude I am sorry, I can place just a fast response since I am pretty indisposed nowadays:
Yes, I am generating the vCard by hand, tried different vCard versions with same effect.
But I also tried the payload generator which did make no difference on readability (same results).
I also use another QR reader app: "QR and Barcode Scanner PRO", that always was able to read codes OK.
As soon as I will be able to test your suggestions, I will reply accordingly.
Ha, now when I re-read your posts (english is not my native lang.), I guess you already tested what you suggested. Great job :)

Ok, let's summarize. The faulty display was/is due to the fact that the Xiomi scanner cannot handle UTF8 correctly. I would then close the issue here. If there are still questions, please open the issue again.
@Shane32 We can discuss the topic of ECIMode in relation to encoding in #513 or, if desired, in another separate issue.


running jobs with conda gives OSError: Invalid data stream

Tried to run a metaflow job today using @conda_base(libraries=dependencies, python="3.10.13") and I saw:
2023-12-21 14:35:12.171 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx] Downloading code package...
2023-12-21 14:35:12.945 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx] Code package downloaded.
2023-12-21 14:35:12.966 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx] Task is starting.
2023-12-21 14:35:13.265 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx] Bootstrapping virtual environment...
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx] Bootstrap failed while executing: set -e;
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]         if ! command -v micromamba >/dev/null 2>&1; then
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]             mkdir micromamba;
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]             python -c "import requests, bz2, sys; data = requests.get('https://micro.mamba.pm/api/micromamba/linux-64/latest').content; sys.stdout.buffer.write(bz2.decompress(data))" | tar -xv -C $(pwd)/micromamba bin/micromamba --strip-components 1;
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]             export PATH=$PATH:$(pwd)/micromamba;
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]             if ! command -v micromamba >/dev/null 2>&1; then
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]                 echo "Failed to install Micromamba!";
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]                 exit 1;
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]             fi;
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]         fi
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx] Stdout:
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx] Stderr: Traceback (most recent call last):
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]   File "<string>", line 1, in <module>
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]   File "/usr/local/lib/python3.10/bz2.py", line 333, in decompress
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx]     res = decomp.decompress(data)
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx] OSError: Invalid data stream
2023-12-21 14:35:16.607 [XXXXX/flow/XXXXXX (pid 82514)] [pod xxx] tar: This does not look like a tar archive

I have the same situation.  I'm using @pypi for managing my libraries.
And seems that not related to code... it started. to happen on tested and working flows.

(/opt/userenvs/X.X/test_env)X.X@X:~$ curl https://micro.mamba.pm/api/micromamba/linux-64/latest
upstream connect error or disconnect/reset before headers. reset reason: connection failure, transport failure reason: delayed connect error: 111(/opt/userenvs/X.X/test_env) X.X@X:~$ curl -L https://micro.mamba.pm/api/micromamba/linux-64/latest
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: " to save to a file.

curl -L https://micro.mamba.pm/api/micromamba/linux-64/latest -v works now. closing

related - https://github.com/mamba-org/mamba/issues/3075


Radiator JSON output

Coverage increased (+0.5%) to 29.945% when pulling 76b88a4e151342e0c32a2466cee76c5714f313cd on llabrat:json into 9fe0f091f3cfa4c1954d9bb2ac2e0aaf76710588 on voxpupuli:master.

You added 2 JS files by mistake on the commit.

Coverage increased (+0.5%) to 29.945% when pulling de80bc44c5c28aca82fd9b8b7189e4a4a0f509ab on llabrat:json into 9fe0f091f3cfa4c1954d9bb2ac2e0aaf76710588 on voxpupuli:master.

Closes #319


Author metadata not set when no title page present and using author attribute

When a document does not have a title page and the document attribute author is set, then the value of the attribute is not set in the metadata of the resulting PDF file.
If the attribute authors is set, then the value of the attribute is set in the metadata of the resulting PDF file.
Example 1:
:author: Kismet R. Lee
== Test document

Author name is not recorded in metadata.

Example 2:
:authors: Kismet R. Lee
== Test document

Author name is recorded in metadata.

Marc.

This is a combination between a quirk in how Asciidoctor parses the document header when there is no doctitle and the logic for how the authors are resolved in this converter. Fortunately, I can see a way we can support both cases you cited.
As a side note, when you define a document header, you should always offset it by an empty line.
:author: Kismet R. Lee

== Test document

Author name is not recorded in metadata.

Thanks Dan, much appreciated as always!


Ignore when px value is wrapped in a function

Thanks for the plugin, it works nicely!
In many projects I use rem() or rem-calc() SASS functions, to have the values given in Zeplin or Photoshop converted automatically into rems without thinking much. (Those functions may also change the way they work depending on the environment, for example, on local they may output pixels without conversion, for easier debugging in browser — while outputting real rems on staging/production).
Currently the plugin doesn't account for the SASS/CSS functions except for the URL. I've just removed the conditional for url so that it would skip the property if it's wrapped in any function.

What does the rem() usage look like?
// like this?
rem(12px)

// could it be this?
rem(12)

I ignore only url but not all functions because there is other function we should check for:
e.g.
calc(100% - 20px) // error: use rem instead

The best solution is to give an option for functions ignored:
ignoreFunctions: ["rem", "rem-calc"]

use<EMAIL_ADDRESS>


Publisher Changes to Existing Connector

When submitting a connector, please make sure that you follow the requirements below, otherwise your PR might be rejected. We want to make you have a well-built connector, a smooth certification experience, and your users are happy :)
If this is your first time submitting to GitHub and you need some help, please sign up for this session.

[ ] I attest that the connector doesn't exist on the Power Platform today. I've verified by checking the pull requests in GitHub and by searching for the connector on the platform or in the documentation.
[ ] I attest that the connector works and I verified by deploying and testing all the operations.
[ ] I attest that I have added detailed descriptions for all operations and parameters in the swagger file.
[ ] I attest that I have added response schemas to my actions, unless the response schema is dynamic.
[ ] I validated the swagger file, apiDefinition.swagger.json, by running paconn validate command.
[ ] If this is a certified connector, I confirm that apiProperties.json has a valid brand color and doesn't use an invalid brand color, #007ee5 or #ffffff. If this is an independent publisher connector, I confirm that I am not submitting a connector icon.

If you are an Independent Publisher, you must also attest to the following to ensure a smooth publishing process:

[ ] I have named this PR after the pattern of "Connector Name (Independent Publisher)" ex: HubSpot Marketing (Independent Publisher)
[ ] Within this PR markdown file, I have pasted screenshots that show: 3 unique operations (actions/triggers) working within a Flow. This can be in one flow or part of multiple flows. For each one of those flows, I have pasted in screenshots of the Flow succeeding.
[ ] Within this PR markdown file, I have pasted in a screenshot from the Test operations section within the Custom Connector UI.
[ ] If the connector uses OAuth, I have provided detailed steps on how to create an app in the readme.md.

Hello @andreroberts1119!
Thank you very much for your submission!
There's a conflict between branches. Please make sure that your branch is up-to-date.
Our Certification Engineers will review the PR within 1-2 weeks.
Please let us know if you have any questions.
Thank you very much again for working with us.

Hello @andreroberts1119!
Congratulations, your PR is approved and merged.
Please update your submission in ISV Studio by using the latest commit ID.
Let me know if you have any questions.


Software does not allow for selecting GPIO number above 31

Hi, I am using a ESP32-S3 which has 45 GPIOs. The TX pin is on GPIO43 and RX pin is on GPIO44. The software only allows me to select a GPIO up to no.31 so I can't select the correct pin in the radio configure settings within ESPSomfy RTS when setting up. See attached for pin map of the board I am using. I was also going to wire the other pins to GPIO 35-42 to avoid the ones with a touch sensor input as you said you had an issue with wiring to a touch pin.
Thanks in advance for any assistance.

I will add some code to the UI app to allow for more selections however, the TXD and RXD on other ESP32 devices are not necessarily a good choice.  This is because they are often wired to a USB UART and will cause you all sorts of mind numbing pain.
I have gotten past the goofball issues with the Touch pins as well by changing the way the pin mode is defined when initializing the receive pin.  I'll post the changes up to the main repo later today.

I have just confirmed that you cannot use pins 43 and 44.  Remapping these pins will cause all sorts of gutteral reactions to the board.  These pins are generally for reading and writing serial data to and from the Serial console.
In general the following GPIOs should be avoided on the S3 0, 3, 6, 19, 20, 26, 27, 28, 29, 30, 31, 32, 43, 44.  I am currently working on filtering the list based upon the board type.

Ah, thanks for looking at this. Does this mean this board won't work? I'm very new, I can't tell if the TX/RX need to be wired to those specific pins or if they can go to any of the GPIOs.
I can try and order a new board if this one is no good.

You do not need or want the TXD/RXD pins wired up on the board and your board will work just fine.  These are actually pins that are used to access the flash on the board through a serial adapter.   You need to avoid them.  The TX/RX you are connecting are for the TX/RX pins for the Transceiver.
These are labeled (GDO0/GDO2) on the transceiver.  I know they made this so blisteringly confusing.  So ESPSomfy RTS will listen to the receiver on the RX pin and send out data through the radio on the TX pin and it can be any of the unreserved pins on the ESP32.   The reserved ones are in the prior post.  These pins that are reserved are for other peripherals that we are not using and can only be used for that purpose.
GDO0 is commonly referred to as the TX pin for the transceiver.  Any signals pulsed on this pin will be sent over the radio to the motors.  ESPSomfy RTS takes care of all the pin control for you after it has been selected into the TX of the radio settings.
You can also set the RX to the exact same pin and not even hook up the GDO2 pin on the transceiver.  Since the transceiver can only send or receive at any given time, ESPSomfy RTS will multiplex this pin and listen on it when it is not transmitting.  In fact the CC1101 will replicate the receive signals on both pins when in receive mode.  The results will be the same regardless of whether you choose to hook up GDO2 or not.
With the touch pins, I originally though I could just set the output mode for them initially and all would be good but later realized that the pin modes had to disable the touch function which ESPSomfy RTS now does if the pin is mapped.

Sorry, I thought the TX/RX on the transceiver need to to match up to the TX(D)/RX(D) on the ESP32.
I have rewired it and seems to be working well. Many thanks, this is really amazing job.

I have posted the new version to include all the available/usable pins for the S3, S2, and C3.


ci(actions): update renovatebot/github-action action to v40.0.3

This PR contains the following updates:

Package
Type
Update
Change

renovatebot/github-action
action
patch
v40.0.2 -> v40.0.3

Release Notes

renovatebot/github-action (renovatebot/github-action)
v40.0.3
Compare Source
⚠ BREAKING CHANGES

This project now uses pnpm instead of yarn

Documentation

Add another advanced configuration example (#814) (80ce498)
github: change GitHub App token Action suggested to GitHub official (#815) (6e1e63a)
update references to ghcr.io/renovatebot/renovate to v37.172.2 (6ecbc95)
update references to renovatebot/github-action to v40 (6c7d836)

Miscellaneous Chores

deps: lock file maintenance (d14184f)
deps: replace dependency npm-run-all with npm-run-all2 5.0.0 (#812) (1f46eee)
deps: update commitlint monorepo to v18.5.0 (571511e)
deps: update commitlint monorepo to v18.6.0 (20b1652)
deps: update dependency @types/node to v20.11.10 (08fe0c8)
deps: update dependency @types/node to v20.11.11 (33746db)
deps: update dependency @types/node to v20.11.13 (8274446)
deps: update dependency @types/node to v20.11.14 (b43940e)
deps: update dependency @types/node to v20.11.15 (bfe0dee)
deps: update dependency @types/node to v20.11.6 (36513d1)
deps: update dependency @types/node to v20.11.7 (546708f)
deps: update dependency @types/node to v20.11.8 (ad2d383)
deps: update dependency @types/node to v20.11.9 (05c5ee4)
deps: update dependency lint-staged to v15.2.1 (44a3954)
deps: update dependency npm-run-all2 to v5.0.2 (d5872e9)
deps: update dependency npm-run-all2 to v6 (#813) (163dee2)
deps: update dependency npm-run-all2 to v6.1.2 (51e932f)
deps: update linters to v6.19.1 (834375b)
deps: update linters to v6.20.0 (1e46702)
prepare for prettier v3 (#818) (bd7200c)

Build System

use pnpm (#820) (1639f1a)

Continuous Integration

deps: update actions/setup-node action to v4.0.2 (7f5cd69)
deps: update renovate docker tag to v37.153.2 (3f05984)
deps: update renovate docker tag to v37.156.4 (4c89c51)
deps: update renovate docker tag to v37.157.2 (37cad4d)
deps: update renovate docker tag to v37.158.2 (8425be4)
deps: update renovate docker tag to v37.162.1 (3c69e03)
deps: update renovate docker tag to v37.163.0 (5233216)
deps: update renovate docker tag to v37.163.1 (3817207)
deps: update renovate docker tag to v37.164.0 (892eff1)
deps: update renovate docker tag to v37.165.0 (a461b8f)
deps: update renovate docker tag to v37.165.1 (e205050)
deps: update renovate docker tag to v37.165.7 (f87e647)
deps: update renovate docker tag to v37.168.0 (37bbe3e)
deps: update renovate docker tag to v37.168.2 (6bc71ee)
deps: update renovate docker tag to v37.170.0 (3c441c7)
deps: update renovate docker tag to v37.171.0 (4675e3f)
deps: update renovate docker tag to v37.171.2 (9a09920)
deps: update renovate docker tag to v37.172.2 (e5579f8)
deps: update renovate docker tag to v37.173.0 (73602ad)
deps: update renovate docker tag to v37.173.1 (96aaee7)
deps: update renovate docker tag to v37.173.2 (ca6ffe3)
deps: update renovate docker tag to v37.174.0 (92f7434)
deps: update renovate docker tag to v37.174.3 (51ae3ab)
deps: update renovate docker tag to v37.174.6 (8572be2)
deps: update renovate docker tag to v37.174.7 (74d1c5d)
deps: update renovate docker tag to v37.175.0 (a466cfc)
deps: update renovate docker tag to v37.175.3 (47947f1)
deps: update renovate docker tag to v37.176.0 (316f92f)
use default branch from event (#819) (fd4ca43)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 1.2.10 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


cmd/go: "go mod vendor" copies/overwrites files in parent directories if module folder is in the same directory as GOPATH

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

$ go version
go version go1.11.5 windows/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\User\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\User\go
set GOPROXY=
set GORACE=
set GOROOT=C:\Go
set GOTMPDIR=
set GOTOOLDIR=C:\Go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\User\project\go.mod
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\User\AppData\Local\Temp\go-build112371658=/tmp/go-build -gno-record-gcc-switches

What did you do?

Starting with a default Windows install (GOROOT=C:\Go, GOPATH=%USERPROFILE%\go):

Create a file in %USERPROFILE% with any of these prefixes: https://github.com/golang/go/blob/aab0b704d88b7dad10c767ad941619d59887203c/src/cmd/go/internal/modcmd/vendor.go#L143-L153
I used "LEGAL.txt".

Create a new folder in %USERPROFILE%.
I used "project".

Create a main.go in that folder that will import modules.
I used the code from https://github.com/golang/go/wiki/Modules#quick-start

Initialize the module (go mod init mymodule)

Vendor the module (go mod vendor)

You should see an error at this point: go vendor: open C:\Users\LEGAL.txt: Access is denied.
This error is given because the vendoring code is attemping to copy LEGAL.txt all the way up the directory tree.
If you change your GOPATH to somewhere that has more parent folders and follow the above instructions (create project folder at same level as GOPATH and include a LEGAL.txt in one of the parent folders), you will see it will copy it up the entire directory tree until it hits an access denied error. It will also overwrite any files with the same name in any of these folders.
What did you expect to see?
The command should not modify files outside of Go-related directories.
What did you see instead?
Go copies and overwrites files outside of Go-related directories.

/cc @bcmills

doesn't look reproducible?


use standard sqlite file extension: .sqlite

https://github.com/specklesystems/specklepy/blob/67499ab20c754b4f51e8cf3746d4aba745d3af70/src/specklepy/transports/sqlite.py#L42

Hey @majidaldo,
this is not something we can just change around. Our c# sdk and our python sdk use this setup thus all of our connectors and the Speckle Manager uses this file structure. Changing this value would invalidate the already present sqlite db-s of our users.


[FEATURE] Captcha (i m not robot)

Description
CAPTCHA (Completely Automated Public Turing test to tell Computers and Humans Apart) is a security measure used to differentiate between human users and automated bots on websites. Its purpose is to prevent automated scripts or bots from accessing or submitting information.
Screenshots
No response
Additional information
No response

Please assign me this issue @apoorvaron thanks

@Ayushpanditmoto please assign me this issue !

@Abhinavcode13 Sure, Just add captcha in Registration Page and stay updated with code too , because so many people working on this page.
Give it a try. Happy coding

@apoorvaron hi, can i do this if he isn't doing this?

@bhavya1857 , Yes go for it

Hey, It required a gamil account can I use mine ?

@abuharish02 you want to work on this issue ?

@apoorvaron Yes, I want to work on this.

I am trying to setup in local sysyem but this error occur.

@apoorvaron Is it ok or should i do it outside the search box ?

@abuharish02 update ?

@abuharish02 ?

@apoorvaron Kindly assign to someone.


Default values for custom variables

If you have a default value for a custom variable that contains parenthesis, the regexp for detecting variables stops working.
Here's a use case:
 background-color: var(---default-color, rgba(0, 0, 0, 0.5));

The regexp thinks that the closing parenthesis is the first ) I wonder if there's a solution using regexp for dealing with recursion.
The workaround is to have a
:root {
   ---default-color:  rgba(0, 0, 0, 0.5);
}

Another short-term option would be this:
:host {
  --default-default-color: rgba(0, 0, 0, 0.5);
}

... {
  background-color: var(--default-color, --default-default-color);
}

We will work on this; it's a limitation to the current parsing techniques being used.

Other possibilities that are short of more complex parsing: (1) support 1 level of inner-parens, (2) require escaping of inner parens.

:+1: glad to hear


solving multi label image classification using timedistributed dense layer

I have a multi label image dataset having 5 labels. Each image can have more than one label at the same time. I am using convolutional neural network to extract features and that extracted features i am giving it to RepeatVector layer to create 5 copies of extracted features and after RepeatVector layer i have connected TimeDistributed layer with dense = 2 i.e( TimeDistributed(Dense(2)) ).
y_train is 3d array and its shape is (1600,5,2) and x_train is array of images.
for eg
x_train.shape
(1600, 3, 100, 100)
y_train.shape
(1600,5,2)
y_train[0] =
array([[0, 1],   # [0,1] = 1 label present and  [1,0] = 0 label abset
       [1, 0],
       [1, 0],
       [1, 0],
       [1, 0]])

code:
    def get_label(y):
      tmp = []
      d = {0:[1,0],1:[0,1]}   # 0 absent 1 present
      for i,value in enumerate(y):
        tmp.append( d[value] )
      return tmp

    X,Y= get_data()
    Y = Y.tolist()
    y = []
    for value in Y:
      y.append(get_label(value))

    Y = np.array(y,dtype=int)

    x_train, x_test, y_train, y_test = train_test_split(X,Y,test_size =0.2,random_state=100)

    img_channels = 3
    img_rows     = 100
    img_cols     = 100
    nb_classes   = 5

    model = Sequential()

    model.add(Convolution2D(32, 3, 3, border_mode='same',input_shape=(img_channels, img_rows, img_cols)))
    model.add(Activation('relu'))
    model.add(Convolution2D(32, 3, 3))
    model.add(Activation('relu'))
    model.add(MaxPooling2D(pool_size=(2, 2)))
    model.add(Dropout(0.25))

    model.add(Convolution2D(64, 3, 3, border_mode='same'))
    model.add(Activation('relu'))
    model.add(Convolution2D(64, 3, 3))
    model.add(Activation('relu'))
    model.add(MaxPooling2D(pool_size=(2, 2)))
    model.add(Dropout(0.25))

    model.add(Flatten())
    model.add(Dense(512))
    model.add(Activation('relu'))
    model.add(RepeatVector(nb_classes))
    model.add(TimeDistributed(Dense(2)))
    model.add(Activation('softmax'))

    # let's train the model using SGD + momentum (how original).
    # opt = RMSprop(lr=0.001, rho=0.9, epsilon=1e-06)
    opt = SGD(lr=0.01, momentum=0.0, decay=1e-6, nesterov=False)
    model.compile(loss='categorical_crossentropy', optimizer=opt,metrics=['accuracy'])
    model.fit(x_train,y_train,nb_epoch=10,batch_size=32,validation_data=(x_test,y_test),shuffle=True)
    out = model.predict_classes(x_test)

but after training i get all 0's for test set
Is this approach is wrong?????

Why don't you make y a single value, 1: present, 0: absent. y.shape = (1600,5,1)
IMHO, softmax is not neccessary, replace it with relu.
Also, binary_crossentropy is better for multi-label problem.

@joelthchao
I tried your solution but it the problem is still not solved.
For test set i am getting all zeros

@suraj-deshmukh
How is you validation loss/accuracy? Make sure it is normal.
Also, you can use predict instead of predict_classes to see the raw output.

@suraj-deshmukh to add to what @joelthchao said above, for multi-label training, if your labels are balanced, don't require exotic custom loss function, and you don't need to use any sample based weighting, you can just make y 2D [n_samples x n_labels] with multi-label binary values indicating presence or absence of the label.
Then, just use simple Dense instead of the TimeDistributed(Dense) with 5 output neurons. Then, use binary_crossentropy. Also, use sigmoid on the output instead of softmax. Also, get rid of the RepeatVector layer. predict_classes doesn't make sense in this context, so use predict as @joelthchao  suggested above.
Hope that helps.

@esube
I already tried what you said and it is working fine. But I want to solve this problem with the technique explained in question.

@suraj-deshmukh Actually, the method provided by @esube is equivalent to using RepeatVector. Unless you want to have more Dense layers without sharing hidden units like CVPR'14.

@joelthchao
So timedistributed layer does the same job like fig 2 of that paper. Correct me if i am wrong

@suraj-deshmukh Yes, exactly same thing.

@suraj-deshmukh ，I check the function of Timedistributed[http://keras.io/layers/core/#timedistributeddense]

Input shape
3D tensor with shape (nb_sample, time_dimension, input_dim).
Output shape
3D tensor with shape (nb_sample, time_dimension, output_dim)

I think the TimeDistributed should be used to text,not to image. And how do you set the value of  the time_dimension
Do you also use it to image and how do you do it ? Thanks.

@alyato
I think it depends on problem statement, surely we can apply TimeDistributed layer for multi label image classification. see [http://people.eecs.berkeley.edu/~nzhang/papers/cvpr14_panda.pdf](Pose Aligned Networks for Deep Attribute Modeling) fig 2

@suraj-deshmukh  i see the paper and  don't understand why use the layer of TimeDistributed.
What does the TimeDistributed layer do ?

model.add(Flatten())
model.add(Dense(512))
model.add(Activation('relu'))
model.add(RepeatVector(nb_classes))
model.add(TimeDistributed(Dense(2)))
model.add(Activation('softmax'))

@alyato
RepeatVector does job of repeating input feature vector into 'n' number of times and TimeDistributed(Dense(x)) does the job of applying fully connected single Dense layer for each vector created by RepeatVector as told earlier having 'x' number of neurons/classes
for eg lets say we have input feature vector with size 1 x 10 and after applying RepeatVector(10) it will become 10 x 10  matrix where each row contains same feature vector. Now TimeDistributed(Dense(2)) will apply single fully connected Dense(number of neurons equal to 2) layer to each row separately.

@suraj-deshmukh ,I little understand what you say.

model.add(Dense(512))
model.add(RepeatVector(7))
model.add(TimeDistributed(Dense(2))
model.add(Activation('softmax'))

But i don't understand the 'softmax'. Does it repeat depending on the RepeatVector?
like:
Dense(512)
|
| | ... |(totally 7)
Dense(512) Dense(512) ...``Dense(512)
Dense(2) Dense(2) ...  Dense(2)
softmax softmax ... softmax
output output ... output
At last ,we can get 7 outputs? like multi-mask

@alyato
yes, you are right

@suraj-deshmukh, I meet a weird problem and don't know how to do?
I collect 1500 Medical images to classify the disease.(every pic is a single label)
But why i train my model , the loss_function ,train_accuracy,valid_accuracy don't change every epoch.

Do you give me some advice.Thanks.

@alyato
without looking into your code i cannot make comments. so can you share your code snippet??

@suraj-deshmukh yeah.Thanks.The dataset is  1500 person faces. Every image  have one label.I want to input one person face to predict one of diseases.The labels totally have 9 diseases.Then the label is [0,1,2,3,4,5,6,7,8].0_label has 910 images, 1_label has 145 images ,.....8_label has 19 images

I select 1000 image as the train_dataset, the rest is to validate_dataset. The train_dataset:

The validate_data:

the code of My model:

Thanks.

@alyato
try with optimizer=sgd without single/double quoate. you created the object of optimizer but didn't passed it to the compile method.

I am  doing the classifying image. I have to get the confidence of each and every object in the image independently. By using softmax we can classify, there sum of all probabilities is equal  to one. But I need to get the probabilities independently l
If I am giving the image I

need to get the probability independently like this


Integrating Developed Components - Top Level Theme

Integrating the following developed components with a top-level theme from the ecosystem

Gutenberg blocks
Theme customizer controls

This is done


[BUG] - default eMax is too short

Summary
cardano-cli generates a genesis with eMax of 1. We should default to something higher, like 1000.
Ran this by @JaredCorduan in debugging some issues with telegram user retiring a stake pool on ff.
Steps to reproduce
Steps to reproduce the behavior:

Go to '...'
Click on '....'
Scroll down to '....'
See error

Expected behavior
A clear and concise description of what you expected to happen.
System info (please complete the following information):

OS: [e.g. Ubuntu]
Version [e.g. 20.04]
Node version

Screenshots and attachments

If applicable, add screenshots, config files and/or logs to help explain the problem.

Additional context
Add any other context about the problem here.

Just for a little extra context, this protocol parameter eMax determines how far out in advance a stake pool can plan a retirement. For example, if eMax = 100, then during epoch 1 a stake pool can submit a retirement certificate for epoch 100, but epoch 101 is too far out.

1000 seems a bit high as a default.  20 might be reasonable?

Was fixed by https://github.com/input-output-hk/cardano-node/pull/1145/commits/8778ceb15e069ab54dc414253525fe58ec73cc00


Additional Improvements to Quick Start page

Description

In sentence below, replaced "here" with "detailed instructions".
“For other options, such as Docker, click [here].” -> “For Docker and other options, go to the [more detailed instructions].”

The OS-specific sections “Install on MacOS”, “Install on Linux”, etc. are collapsable and only the current one for the user's operating system is expanded.

OS logos have been added to their respective sections.

The “edgectl install…” and “Obtaining a TLS certificate…” blocks no longer have the “Copy” to clipboard button.

The “edgectl install...” and “Obtaining a TLS certificate…” blocks have bold blue text for user-entered commands, bold/green text for links & URLs.

“Note that the provided random-word.edgestack.me domain name will expire after 90 days.” has been moved to bottom of the page.

Related Issues
Apro PR#1100
Testing
Tested on getambassador.io and Luke Shu tested OS detection on Linux (Firefox).
Tasks That Must Be Done

[ ] Did you update CHANGELOG.md?
[ ] Did you add or update tests?
[ ] Did you update documentation?
[ ] Were there any special dev tricks you had to use to work on this code efficiently?

[ ] Did you add them to DEVELOPING.md?

Other

If this is a documentation change, please open the pull request at https://github.com/datawire/ambassador-docs instead.
Code changes should occur against master.

@cindymullins-dw we will need to make the same/similar changes to https://github.com/datawire/ambassador/blob/shared/story-doc-improvement/docs/docs/latest/tutorials/getting-started.md, as it is the version of this page we will be moving forward once the documentation has been reorganized.


ProgressBar

would be a nice control to have

Progress Bar is commonly used than even HTML viewer

I would have put a PR out by now but having nearly all of the widgets in one single file disgusts me

Most of widgets are very simple - it's why they are in Controls.
Although, Scrollbars look not good there.
For Progress Bar, good location could be widgets/progressbar.d

example1 - second tab contains two progress bars - with determinate and indeterminate state

Why do you append Widget to widget names? Just make it new ProgressBar()

It's still not too late to remove Widget from its name.
Suffixes came from some gui toolkit, dont' remember which one.
Like View suffix in android widgets,


Hide AppendAutoAttachDisableArg when it is not used

That is, when ANDROID is defined

Curious, is this giving you build warnings?

yes, with some internal build I'm getting unused function
(not sure if it's ok to talk about the details here, you can ping me with chat if you want to discuss, ldap is yunanchang)

force push to update the email, trying to get around the CLA problem

@yunanchangCorp I am submitting https://github.com/openthread/ot-br-posix/pull/2333 to fix the issue you are facing with "non-standard" android platforms. PTAL

@wgtdkp looks good (probably, only applied the latest change but not the one 4 days ago), though it will affect code so you can sync with Jason. I'll try again after the code is sync to internal repo.

Closing this PR as #2333 is merged


Selecting which block variant to place

Thank you for your work. It is immensely useful.
I have a request. Many blocks have different variations, most notably air, and ground variations. I often use those variations somewhere else than intended. For example, I will place a block on the ground, enable block mixing and copy it, so I then can use the ground variant in the air as well. The same the other way around: I will place a block in the air, copy it with block mixing enabled, and then use it below ground. This works, but is very inconvenient. Would it be possible to add an option which block variant to use before placing it?

I think that may already be a feature in the plugin Editor++ although that may only be compatible with TM2020. Were you using this in MP4?

Yes, I'm using Maniaplanet, unfortunately.


Docker image

Someone requests it and it should be easy to create one, though it doesn't seem quite useful to me. These days people are get used to just typing docker run.
A Dockerfile can be created under the root of the project.

It's nice to set a github workflow for building and pushing images automatically based on git tags. @rapiz1 can you set the github secrets and create a corresponding workflow?

🤔 Still thinking about whether or not to add this.

Definitely add it. Providing a Dockerfile at the very least for a service that can be deployed to the cloud (the server, not the client) is pretty standard imo.

Providing a Dockerfile at the very least for a service that can be deployed to the cloud (the server, not the client) is pretty standard imo.

Fair.
But rathole is a single binary that can be easily deployed and just run. Using docker to run it doesn't bring additional convenience, except facilitating some container management systems. Do you need the docker image for practical usage?

Nowadays, I never run services by setting them up on an EC2 instance and putting nginx in front of them (that's not to say that everyone does this). Instead, I always drop the container in an orchestrator like Kubernetes, Nomad or AWS Fargate. Orchestrators like Kubernetes also handle a lot of other things such as making sure the container is alive, and they handle load balancing and routing inherently. Containers are great because they're lightweight, no installation is involved, they "just work" right out of the box, etc.
Just a broader observation: based on my reading of your .md files and your responses to the issues here, I can tell that you're trying to avoid scope-creep by keeping this project lightweight. I think this is a good thing, however a good open-source project strikes a balance between catering to their users needs and the projects needs. Keeping a feature such as a Dockerfile, or a TCP-replacement protocol such as QUIC (https://github.com/rapiz1/rathole/issues/65) out of the scope of this project only because it adds an additional file is not a good enough reason in my opinion.
Anyways, great work so far on this! I'm looking forward to seeing where it goes from here.

Keeping a feature such as a Dockerfile, or a TCP-replacement protocol such as QUIC (#65) out of the scope of this project only because it adds an additional file is not a good enough reason in my opinion.

I didn't say these things were out of scope :) Actually I'm trying to figure out whether a feature request is something people really need, instead of being "fancy", and just "good to have".

I think a lightweight Docker image can be built using musl + scratch e.g.
FROM ekidd/rust-musl-builder:latest as builder
WORKDIR /home/rust/src
COPY . .
RUN cargo build --profile minimal
RUN mkdir -p build-out/
RUN cp target/x86_64-unknown-linux-musl/minimal/rathole build-out/

FROM scratch
WORKDIR /app
COPY --from=builder /home/rust/src/build-out/rathole .
USER 1000:1000
ENTRYPOINT ["./rathole"]

This image is only 8.55mb on my computer when built and runs perfectly fine according to my smoke tests.
Let me know if this is needed and I'm happy to submit a PR 🙂

I think a lightweight Docker image can be built using musl + scratch e.g.
FROM ekidd/rust-musl-builder:latest as builder
WORKDIR /home/rust/src
COPY . .
RUN cargo build --profile minimal
RUN mkdir -p build-out/
RUN cp target/x86_64-unknown-linux-musl/minimal/rathole build-out/

FROM scratch
WORKDIR /app
COPY --from=builder /home/rust/src/build-out/rathole .
USER 1000:1000
ENTRYPOINT ["./rathole"]

This image is only 8.55mb on my computer when built and runs fine according to my smoke tests.
Let me know if this is needed and I'm happy to submit a PR 🙂

Your image is much smaller than mine. Using scratch is fantastic. I'll close my pr. Hope yours🙂

@orhun Seems great! Can you open a PR?

Sure! Do you want 2 separate Dockerfile's for client and server? (like @xylonx did in #66)
Or you can pass the config file into container like this:
docker run -it --rm -v "$(pwd)/examples/minimal/server.toml:/app/config.toml" rathole_img --server /app/config.toml

docker run -it --rm -v "$(pwd)/examples/minimal/client.toml:/app/config.toml" rathole --client /app/config.toml

I think having the client/server functionality in only one image is pretty sweet 🍓
What do you think?

What do you think?

I think it should be put in one image :)
server and client makes little difference in size. And in this case, users probably don't care about the difference of the binary size in KiB. So I would also suggest use the release profile, instead of the minimal one, which is intent to be used when every bits matter.

v0.3.2 has been released, with a docker image 🎉


Not able to book slot using 5.1

@SRvSaha  though it is showing slot but didn't book any.. Can you please check.

@Tnu02 Seems like a concurrency issue. From the time slots were visible and till booking, all 105 slots got booked. Though it is highly unlikely. Seems like the data being shown from CoWIN API is delayed hence the issue is being faced. Shall have to check,

@SRvSaha though it is showing slot but didn't book any.. Can you please check.

@Tnu02 what is your sleep intervel rate

@SRvSaha though it is showing slot but didn't book any.. Can you please check.

@Tnu02 what is your sleep intervel rate

3500 for single pin code

@Tnu02 If you know the exact timing when slots are gonna open, or else you get some real-time notification from somewhere, just drop the Sleep Interval to 1000 and then try. This would block your IP sonner but you have higher change of getting the slot.
Also, you may less the RefreshInterval to 2 seconds.

@Tnu02 If you know the exact timing when slots are gonna open, or else you get some real-time notification from somewhere, just drop the Sleep Interval to 1000 and then try. This would block your IP sonner but you have higher change of getting the slot.
Also, you may less the RefreshInterval to 2 seconds.

@SRvSaha is there some option like refresh ip address

Sometime I get error fetch slot error responsestatus: no content, response content.. What does it mean..?!??

Sometime I get error fetch slot error responsestatus: no content, response content.. What does it mean..?!??

First possibility, Internet Connectivity Issue so unable to reach the server. Second possiblilty, API timed out or

Sometime I get error fetch slot error responsestatus: no content, response content.. What does it mean..?!??

First possibility, Internet Connectivity Issue so unable to reach the server. Second possiblilty, API timed out or

And what about this error...

Sometime I get error fetch slot error responsestatus: no content, response content.. What does it mean..?!??

First possibility, Internet Connectivity Issue so unable to reach the server. Second possiblilty, API timed out or

And what about this error...

It’s there in README. Check it out!

@SRvSaha Hey.. Just a thought.. Is it possible to accept the license once in a session just to speed up execution at the time of slot opening..

@Tnu02 That’s not needed since you don’t have to close application when IP is throttled. If you want less theottling time, you can change that in the config accordingly! And agreement to the T&C is a must and there should not be any by-pass else people misuses it!

@Tnu02 If you know the exact timing when slots are gonna open, or else you get some real-time notification from somewhere, just drop the Sleep Interval to 1000 and then try. This would block your IP sonner but you have higher change of getting the slot.
Also, you may less the RefreshInterval to 2 seconds.

@Tnu02 Lisence doesn’t affect youe booking time, this does! Read this!

@Tnu02 If you know the exact timing when slots are gonna open, or else you get some real-time notification from somewhere, just drop the Sleep Interval to 1000 and then try. This would block your IP sonner but you have higher change of getting the slot.
Also, you may less the RefreshInterval to 2 seconds.

@Tnu02 Lisence doesn’t affect youe booking time, this does! Read this!

It slows down the action i mean after pressing y and enter takes a couple of sec to start searching slot...


[5.6] Provide access to validated dataset

Currently in your controller if you're using:
$data = $request->validate([...]);
If you need to switch to using advanced rules, there is no firect method available for accessing the validated data:
$validator = Validator::make($request->all(), [...]);
$validator->sometimes('phone', 'required', function(){ ... });
$validator->validate();
// Now how do you get your $data variable?

$data = $validator->getDataForRules(); // my new method
// OR
$data = $validator->getDataValidated(); // this takes care of calling validate()

Can't the validate method itself return the data like the validate in the request?

@deleugpn Currently validate() does not return anything -- are you saying we should have it return the validated data from my new function?
return $this->getDataForRules();
That would probably be preferable, but I didn't want to delay this PR if that was going to be a controversial change. If it's not controversial I can can delete my getDataValidated() method and instead just have the validate() method return $this->getDataForRules();

I guess that would be a breaking change, yes. So maybe you can open a separate PR to change that tagging 5.7 while keeping this one as-is tagging 5.6

Probably validated could return the data being validated similar to $request->validate() Feel free to open a new PR for that.

@taylorotwell Thanks Taylor -- I've updated the code and created a new PR to add a return value for validate() so that it mimics $request->validate()
https://github.com/laravel/framework/pull/23397


.Net core console app support

Good time!
I'd like to know if Wkhtmltopdf.NetCore supports console app. In the description you mentioned only asp.net core. I wanna clarify it.
Thank you!

Hi!, sorry for the delay....3.0 caused me a little trouble! i would say is technically possible, some time ago i have done it with net core 2.2, i haven't tested it with 2.2, which net core version are you using?

Hi @fpanaccia. I'm using 2.2. And it doesn't work in console app. When I switched from HostBuilder to WebHostBuilder it started working fine.

hi, i'm glad that you got that working, yeah it uses the razor engine so, it will need that.
If you need any help, just ask and i will try to help.