Does this gem work propertly on rails5 ?

Hello, after migrate rails to version <IP_ADDRESS>, awesome-print stop working.
require "awesome_print" return false.
I'm not sure if i need  additional config to use this gem propertly with rails 5 ?
Does anyone have similar problem?

Should work, but I haven't specifically tested with <IP_ADDRESS>. At work now but will check it out asap.

+1 to this not working on Rails <IP_ADDRESS>. I have a fresh install.

This is what I'm getting as an error using Rails <IP_ADDRESS>
2.3.1 :001 > require "awesome_print" LoadError: cannot load such file -- awesome_print 	from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:293:in require'
from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:293:in block in require' 	from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:259:in load_dependency'
from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:293:in require' 	from (irb):1 	from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/railties-<IP_ADDRESS>/lib/rails/commands/console.rb:65:in start'
from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/railties-<IP_ADDRESS>/lib/rails/commands/console_helper.rb:9:in start' 	from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/railties-<IP_ADDRESS>/lib/rails/commands/commands_tasks.rb:78:in console'
from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/railties-<IP_ADDRESS>/lib/rails/commands/commands_tasks.rb:49:in run_command!' 	from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/railties-<IP_ADDRESS>/lib/rails/commands.rb:18:in <top (required)>'
from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:293:in require' 	from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:293:in block in require'
from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:259:in load_dependency' 	from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:293:in require'
from /Users/shawnwilson/Desktop/PatrolVault-SaaS/PatrolVault/bin/rails:9:in <top (required)>' 	from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:287:in load'
from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:287:in block in load' 	from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:259:in load_dependency'
from /Users/shawnwilson/.rvm/gems/ruby-2.3.1/gems/activesupport-<IP_ADDRESS>/lib/active_support/dependencies.rb:287:in load' 	from /Users/shawnwilson/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require'
from /Users/shawnwilson/.rvm/rubies/ruby-2.3.1/lib/ruby/site_ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in require' 	from -e:1:in '`

@piotr-galas @miccheng @swilson223
Sorry for taking so long to get back to all of you. I just tried this and did not run into any error.

Are you still running into this error?
Are you sure that awesome_print is in your Gemfile, in the correct environment and that you ran bundle install after adding it?
Are you all using RVM or just @swilson223. I'm using chruby on the machine where I'm testing.

If anybody knows what the issue is I'll accept a pull request, but at the moment I'm unable to reproduce it so I can't really do anything other than ask questions.

no worries I am using RVMm, i will try to reinstall it and let you know if / what the issue was if i am successful

Ok so i just did a reinstall, everything is working although:
 => false```

aside from that

gem 'awesome_print', require: "ap"

bundle install works..

It did not however work by just running $ gem install awesome_print.. which i could see an issue with new folks trying to use it as your not telling them in the docs that it must be explicitly added to gem file.

just my two sense! Thanks Great gem btw!

@swilson223

Ok so i just did a reinstall
Great to hear. :)

everything is working although:
2.3.1 :001 > require "awesome_print" => false

If require is returning false, I believe it means that awesome print has already been loaded.
https://ruby-doc.org/core-2.3.1/Kernel.html#method-i-require
Even if you didn't require it in your own code, it could have been required by another gem (e.g. pry requires awesome_print if it's available).

It did not however work by just running $ gem install awesome_print
That's very strange as it works here:

~ gem uninstall awesome_print
~ gem install awesome_print
Fetching: awesome_print-1.7.0.gem (100%)
Successfully installed awesome_print-1.7.0

Did you get an error? However the code that handles gem installing is not part of the awesome_print project. It might be an issue with your rubygems install. If you are not getting any errors but awesome_print is not being installed, you could try running:
gem install --verbose awesome_print
If you see that it is being installed, but you cannot require it after install (keeping in mind that require returning false means it has already been required) then it might be an issue with RVM configuration not looking in the right location for system gems.
I hope it's just a misunderstanding of require returning false, I initially found that confusing myself at one point.
Thanks heaps for getting back to me with an update.

I am having the same error
I install with gem install awesome_print
When a run rails c and require "awesome_print"
I got the error
LoadError: cannot load such file -- awesome_print

@MacgyverMartins Installing it via Bundler as stated in https://github.com/awesome-print/awesome_print/issues/274#issuecomment-258655886 works.

try spring stop then run rails c


Compilation error when the importing ballerina module is provided using a local balo

Description:
When a user follows the steps mentioned in the below section, he will get a Sad Bad Error.
[2019-12-13 13:43:10,941] SEVERE {b7a.log.crash} - ballerina.lang_annotations.___init.ballerina_lang_annotations__init_(Lorg/ballerinalang/jvm/scheduling/Strand;)V
java.lang.NoSuchMethodError: ballerina.lang_annotations.___init.ballerina_lang_annotations__init_(Lorg/ballerinalang/jvm/scheduling/Strand;)V
at wso2.petstore.___init.$moduleInit(petstore:65535)
at wso2.petstore.___init.$lambda$$moduleInit$(petstore)
at org.ballerinalang.jvm.scheduling.SchedulerItem.execute(Scheduler.java:426)
at org.ballerinalang.jvm.scheduling.Scheduler.run(Scheduler.java:218)
at org.ballerinalang.jvm.scheduling.Scheduler.runSafely(Scheduler.java:191)
at java.lang.Thread.run(Thread.java:748)

Steps to reproduce:
Create three ballerina modules and let's call them A, B and C.
C imports B and B imports A.
First, build the module A. Then refer to module A, inside module B's Ballerina.toml file using the locally create balo file. Then build module B.
Finally, build the module C.
Affected Versions:
v1.0.5
OS, DB, other environment details and versions:
MacOS-Mojave
Related Issues (optional):
Suggested Labels (optional):
Bug
Suggested Assignees (optional):

Can you explain what do you mean by Then refer to module A, inside module B's Ballerina.toml file using the locally create balo file.?
Is it adding a platform dependency to the previously build jar?

As per the stacktrace, this is most probably caused due to the dependency (A) was built by one version of ballerina, and the dependent (B/C) is being built by another version of ballerina. Then the generated bytecodes (methods) does not match with each other.
Try cleaning up any cashes, and build all three modules form the same ballerina version.

When all local caches (/.ballerina) have been updated manually it started to work with no issue. This scenario has not been tested recently as there was no requirement to refer to the module using the balo path as ballerina central was updated with the required changes.


who and w doesn't show the X session and X consoles

Running who or w only shows virtual consoles like tty1.., but doesn't show the X sessions.
What could be the reason for this?
(On 16.03.git.72a31bdM (Emu))

my guess is, that logind does not update utmp

Could it be a missing pam module?

maybe:
% diff -aur /etc/pam.d/{login,slim}
--- /etc/pam.d/login    1970-01-01 01:00:01.000000000 +0100
+++ /etc/pam.d/slim     1970-01-01 01:00:01.000000000 +0100
@@ -32,7 +32,7 @@
 session required pam_unix.so
 session required pam_loginuid.so

-session required /nix/store/zgb9gjka8irr7qzpzg07qmjvs788w4l7-linux-pam-1.2.1/lib/security/pam_lastlog.so silent
+

Works for me:
$ w
 15:16:46 up 4 days, 18:27,  1 user,  load average: 0.51, 0.38, 0.34
USER     TTY        LOGIN@   IDLE   JCPU   PCPU WHAT
eelco    :0        Thu20   ?xdm?  10:16m  0.02s /nix/store/migghb7advw9a6hxi3vhyw2kyyxlyihx-bash-4.3-p46/bin/sh /nix/store/5qwgwd7i5sg3znhaa3kv91vkplax65p3-kde-workspace-4.11.14/bin/startkde

$ who
eelco    :0           2016-09-29 20:49

This is on KDE, maybe kdm updates utmp.

I'm currently using SDDM.

Seems to works with gdm 3.22:
who -H -p -u
NAME     LINE         TIME             IDLE          PID COMMENT
groxxda  tty2         2016-10-03 16:46  old         1249 (:0)

slim does not.

Doesn't work on SDDM + Xfce.

@Mic92 did you find a way to enable it on slim?

When using slim, services like physlock are also affected. The above comment does fix it.

For reference, with lightdm it appears OK.

Is this issue still present?

It works for me now. I use SDDM with XMonad.

OK, let's close until the issue is reproduced with a supported version.


A Problem With Fastuniq

According to the files I received in the project (GSE229677) I should run fastuniq for PE. Each such file is huge (11 GB) and it seems that I don't have enough RAM on my computer for this purpose (there is a log of out of memory). Is there another alternative?

Hi, I join the question.  We thought a duplicate should be removed based on this slide in presentation 8.

Ok, I understand. It is a valid confusion probably caused by me; I'll make sure to remove it in future courses.
What I tried to say is that deduplication can be used in RNA Seq if there is a sufficient QC information that encourage us to do it. In RNA Seq we ultimately aim to quantify the expression profiles of transcripts, as such we expect some level of duplication in the data. If our QC returns huge duplication values then we should consider deduplicate it. On the data you downloaded there is no need to do that

I understand.. We will repet the analysis again, because we have already removed the duplicates.
Thanks for the quick reply!!

Is it possible to continue the analysis with the data after using fastuniq?

It is possible, but you need to explain the rational behind doing so. What part of the data or understanding of the biological context of the experiment set you on this rational?!

OK. Thanks for your answer


Add semantic version enforcement

This PR enforces the podspec version requirement if it is specified

Looks great. Thank you!


Installing.rst needs a small syntax adjustment

"Configuring" and "Installing" are formatted as two sections in the same file. Both appear at the top-left menu and are shown in the same page.
If "Configuring" is a subsection of "Installing", it's syntax has to be changed for that.
If "Configuring" is a new section, it should be moved to a new .rst file.

Configuring is a new section and no I don't see reason to move it to a new .rst. Kytos Administrator Guide's  config section, should have a more detailed information about configuring.
Sorry, but what I'm missing ?

If the Administrator Guide has more information, I think this "Configuring" title could be a subsection pointing there.
"Installing" and "Configuring" are the only two sections that share the same page. Every other section in the left-side Menu has it's own page with subsections, so I think this could be inconsistent.
Besides that, "Configure" being a section shall appear in the footer of docs.kytos.io, again, to keep consistence.

The last sentence is enough:
For more information about the config options please visit the Kytos’s Administrator Guide.
Talk with me on irc to explain me better.

@renanrodrigo, is this finished?

I'm closing this issue because we are changing the sections drastically.

@cemsbr No problem, we didn't decide what was the best approach anyway.


Cubic Bezier and Custom Easing

Extends the existing animation manager to add cubic Bezier and custom function easing; adds presets from CSS and Material Design, and switches widgets to use easing instead of linear by default.
Captured with exaggerated animation duration for effect:
https://user-images.githubusercontent.com/2632925/218296941-05207773-b7c8-446c-a740-fa266f16a9ab.mp4
The default animation duration has been bumped up slightly to account for the nonlinear nature of the new easing, with the intent of keeping the perceived snappiness the same, while allowing a bit more time for the smooth deceleration at the end of animations.
I've included some useful presets that are used commonly elsewhere, and in this case I've taken from the W3C spec directly.
The new easing enum:
/// Easing shaping functions
#[derive(Clone, Copy, Debug)]
pub enum Ease {
    /// Simple linear easing.
    Linear,
    /// Cubic Bezier curve, corresponding to the control points `P1.x`, `P1.y`, `P2.x`, `P2.y`.
    /// Extremely versatile for smooth animation.
    CubicBezier(f32, f32, f32, f32),
    /// User defined shaping function. Given a `time` within `0..=1`, this function should remap to
    /// a new value, usually - but not necessarily -  within the same range.
    Equation(fn(f32) -> f32),
}

Implementation Notes
I decided to write a cubic Bezier implementation, instead of reusing the existing Bezier code used for rendering curves. The reasons for this:

For use in animations, you can make some simplifying assumptions to speed things up. Namely, you don't need four control points as inputs, as the first and last are at (0,0) and (1,1) respectively. Additionally, there is no need to fill the Bezier curve.
The implementation is short and readable, at only ~50LOC
For animation, this needs functionality that doesn't exist in the rendering of Beziers, at least that I could find. In particular, animation requires a fast solve to find the parameter t given the input time on the x axis, which can then be used to find the output value y. I chose Raphson-Newton as this appears to be used in browsers and converges within 1e-7 with <= 8 iterations. More complex methods can be used if needed, but this approach is robust, fast, and simple.

An open question for me, is whether this should be serializable and part of Style. If so, that would mean we might need to remove Ease::Equation as function pointers cannot be serialized. I'm also not certain how we would break this up:

Have a single Ease setting globally, like the animation_duration?
Ease per group, e.g. buttons, collapsing headers, window collapse, window fade.

I also haven't included color animation, though this does seem like a natural extension. It probably makes sense to leave that out of scope, though I would be happy to work on that if it would be valuable.

If so, that would mean we might need to remove Ease::Equation as function pointers cannot be serialized.

We could make the Equation(Box<dyn EasingFunction>) where
pub trait EasingFunction: Serialize + Deserialize {
    fn ease(f32) -> f32;
}

Is there anything I can do to move this forward? 🙂


Address issues in decoding data from the database

Basically this just cleans up PostgresDataDecoder quite a bit, along with the PostgresKit unit tests, such as they are. It's difficult to say whether this will have any performance impact (probably not).

 Does anyone care? Can I just merge this? 🤣

These changes are now available in 2.3.3


[WFLY-16660] Further isolate legacy dependencies from current ones

https://issues.redhat.com/browse/WFLY-16660

/retest


Ars Nouveau grow spell doesn't work on Dynamic Trees

Describe the bug
Ars Nouveau's grow spell applies bonemeal, but it doesn't work on dynamic trees.

Fixed in 1.3.6


repl is broken

TraceurLoader.js:244
var at = versionPart.indexOf('@');

versionPart doesn't have an @ any more.

@johnjbarton Looking now... I might reassign to you if it gets too late here.


Extra Notes Pages

Basically, an extension of the notes projects, to support content from other departments or files that are too large to be kept in the main drive.

[x] Create an extendedNotes.json in the data folder.
[x] Create a page that extracts and renders data into it.
[x] Link the page in the router with the route - /extra.
[x] Link the page from the project partners section.
[x] Create a form that will collect the following information for people to contribute to. (name, email, link to notes, notes title, notes information (tags of what notes are there), their profile URL, date when notes were added to the website)

Example for extendedNotes.json Data
[
  {
    "name": "Kunal",
    "profile": "https://linkedin.com/in/kunalkeshan",
    "title": "CSE-IOT 2022 Sem 5 Notes",
    "description": ["cse", "semester 5", "btech", "iot"],
    "link": "https://drive.google.com/link-to-the-notes",
    "dateAdded": "7th Sep, 2022"
  }
]

Page Created

Data Added


Recursive directoryOpen not finding all files in nested MacOs directory

The new File System Access API is not performing properly when processing large directories (500+ files) using the latest Chromium browsers on MacOs (110+). The same code performs properly on Chromium browsers (110+) on Windows.
The following example yields different results:
const blobsInDirectory = await directoryOpen({
      recursive: true,
    });

On MacOs, the result consistently yields less than all the files in nested directories. On Windows, the result yields all of the files in nested directories.
I'm trying to understand why this is the case, and what the solution is to properly access all the files in nested directories on all operating systems?
Thank you

Could it be due to different ways of dealing with hidden files? Windows saves different metadata files like image thumbnails etc. On macOS, the same happens with .DS_Store files. If, for example, you check the same USB pen first on Windows and then on macOS, the second OS will add metadata that was not yet there when you tested on the first.

I don't think that's the case. On prior Chromium versions (109 for example), file detection from within nested directories worked perfectly.

In this case, it sounds more like a Chrome bug. Could you please try to create a minimally reproducible test case and file a new Chromium bug via new.crbug.com. You can comment with the bug URL here, and I can help triaging. For now, I'm closing the issue, since it's not with the library apparently.

Thank you! https://bugs.chromium.org/p/chromium/issues/detail?id=1421735

Could you append screenshots that show how the same code delivers different results based on the operating system and the Chrome version? These should be the screenshots I expect:

Chrome 109, Windows (shows 3,000 files)
Chrome 109, macOS (shows 3,000 files)
Chrome 110, Windows (does something different than 3,000 files, and/or something different than macOS)
Chrome 110, macOS (shows something different than 3,000 files, and/or something different than Windows)

At present the issue doesn't mention the problem you describe in https://github.com/GoogleChromeLabs/browser-fs-access/issues/139#issuecomment-1456056717.

#Chrome 109
###MacOS

###Windows

#Chrome 110
###MacOs

###Windows

(Sorry, I meant as attachments to the bug. Please use descriptive file names. Thanks a lot!

Cool, I've done that. Thanks.


refactor(frontend): separate sys_scan and stream_scan

I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?

[x] Remove sys scan specific logic from stream_scan and vice versa.
[x] Same for core.

This PR just:

Duplicates batch_seq_scan to batch_seq_sys_scan,
logical_scan to logical_sys_scan,
generic::scan to generic::sys_scan.
Then removes parts specific to sys_table_scan from scan.
And removes parts specific to scan from sys_table_scan.

LogicalScan already contains several branches specific to sys_table_scan. The core part of sys_table_scan is also different from scan, so we separate it. It will further differ once we add arrangement backfill, so we should separate it first.
Later I will create a separate PR to unify common functionality between different scans. https://github.com/risingwavelabs/risingwave/issues/13146#issuecomment-1805229754. Otherwise there will be lots of conflicts and difficult to review.

Checklist

[ ] I have written necessary rustdoc comments
[ ] I have added necessary unit tests and integration tests
[ ] I have added test labels as necessary. See details.
[ ] I have added fuzzing tests or opened an issue to track them. (Optional, recommended for new SQL features #7934).
[ ] My PR contains breaking changes. (If it deprecates some features, please create a tracking issue to remove them in the future).
[ ] All checks passed in ./risedev check (or alias, ./risedev c)
[ ] My PR changes performance-critical code. (Please run macro/micro-benchmarks and show the results.)

[ ] My PR contains critical fixes that are necessary to be merged into the latest release. (Please check out the details)

Documentation

[ ] My PR needs documentation updates. (Please use the Release note section below to summarize the impact on users)

Release note
If this PR includes changes that directly affect users or other significant modifications relevant to the community, kindly draft a release note to provide a concise summary of these changes. Please prioritize highlighting the impact these changes will have on users.

weakly -1 for separating the logical scan node which introduces implementing the same logic multiple times such as predicate push-down and column pruning.

Can always unify them with common library functions, which is my plan.

common library functions
actually, common library functions need common structure to describe the scan... so that is why I think there must be some common Scan "core" or "logical node"

such as predicate push-down and column pruning.

I think predicate push-down is different for sys_scan. It should reject most predicates except for some special cases, such as table_id in pg_catalog.tables.

such as predicate push-down and column pruning.

I think predicate push-down is different for sys_scan. It should reject most predicates except for some special cases, such as table_id in pg_catalog.tables, predicates on any other columns of pg_catalog.tables should be rejected and done by a filter executor.

It could pull up the predicate in the to_batch... actually it should happens when convert to the physical node so that the optimizer can know if the specified execution can handle the  predicate.

such as predicate push-down and column pruning.

I think predicate push-down is different for sys_scan. It should reject most predicates except for some special cases, such as table_id in pg_catalog.tables, predicates on any other columns of pg_catalog.tables should be rejected and done by a filter executor.

It could pull up the predicate in the to_batch... actually it should happens when convert to the physical node so that the optimizer can know if the specified execution can handle the predicate.

Also LGTM


[HOLD for payment 2023-10-23] [$500] Web - RHN briefly displayed with the sign-in modal before closing

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

Action Performed:

Navigate to the "New room" section.
Enter a name for the room and select the workspace.
Set the visibility of the room to "Public"
Click on the "Create room" button.
Go to "Share code" > "Copy URL to clipboard"
Open another browser where you are not signed in.
Paste the copied URL.
Open the room details.
Click on "Settings" or "Private notes"
Observe that the RHN briefly shows with the sign-in modal before closing.

Expected Result:
RHN should close properly without displaying with sign-in modal
Actual Result:
RHN is displayed for a second with the sign-in modal before closing
Workaround:
Unknown
Platforms:

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

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

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/68d83e0a-152e-4c3e-ac6c-c1b9a34c8bac
https://github.com/Expensify/App/assets/93399543/59fa620c-e928-4735-af76-e07275e0a24c
Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1694979234773059
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~01f5970e379d770333
Upwork Job ID:<PHONE_NUMBER>818027520
Last Price Increase: 2023-10-02
Automatic offers:

bernhardoj | Contributor | 27102453

@NicMendonca Do we need to show Settings or Private Notes if we have to close them for anonymous users?

Proposal
Please re-state the problem that we are trying to solve in this issue
Web - RHN briefly displayed with the sign-in modal before closing
What is the root cause of that problem?
The issue arises from the fact the SignInModal is being show even before the hideContextMenu finishes hiding the menu.
What changes do you think we should make in order to solve the problem?
We can use the onHideCallback to call the Session.signOutAndRedirectToSignIn().
Currently, we have this:
https://github.com/Expensify/App/blob/5c9171a4be1662b41b25957b23df8df6482972b5/src/pages/home/report/ContextMenu/BaseReportActionContextMenu.js#L99-L109
What alternative solutions did you explore? (Optional)
N/A

Proposal
Please re-state the problem that we are trying to solve in this issue.
App redirects to sign in modal for anonymous user trying to view and access room menu items.
What is the root cause of that problem?
The root cause exists because the MenuItem component checks if an action is allowed in the code below, which takes 'isAnonymousAction' as the second parameter. If 'isAnonymousAction' is false, the app redirects to the login page.
You can find the relevant code here:

MenuItem.js: https://github.com/Expensify/App/blob/a355bf8c9b22a348eb4f8e7d432e0fa0f56d0f59/src/components/MenuItem.js#L137-L148
Session/index.js: https://github.com/Expensify/App/blob/a355bf8c9b22a348eb4f8e7d432e0fa0f56d0f59/src/libs/actions/Session/index.js#L105-L108

Now, in the ReportDetailsPage, we have hardcoded 'isAnonymousAction' to false, which is being passed to the MenuItem component for the 'members,' 'settings,' 'private notes,' and 'leave room' menu items.
You can find the relevant code here:

ReportDetailsPage.js (lines 91-100): https://github.com/Expensify/App/blob/a355bf8c9b22a348eb4f8e7d432e0fa0f56d0f59/src/pages/ReportDetailsPage.js#L91-L100
ReportDetailsPage.js (lines 104-112): https://github.com/Expensify/App/blob/a355bf8c9b22a348eb4f8e7d432e0fa0f56d0f59/src/pages/ReportDetailsPage.js#L104-L112
ReportDetailsPage.js (lines 117-124): https://github.com/Expensify/App/blob/a355bf8c9b22a348eb4f8e7d432e0fa0f56d0f59/src/pages/ReportDetailsPage.js#L117-L124
ReportDetailsPage.js (lines 128-134): https://github.com/Expensify/App/blob/a355bf8c9b22a348eb4f8e7d432e0fa0f56d0f59/src/pages/ReportDetailsPage.js#L128-L134
ReportDetailsPage.js https://github.com/Expensify/App/blob/a355bf8c9b22a348eb4f8e7d432e0fa0f56d0f59/src/pages/ReportDetailsPage.js#L194-L203

This issue exists throughout the app where ever MenuItem component is being used.
What changes do you think we should make in order to solve the problem?
We need to ensure that the 'isAnonymousAction' prop in the MenuItem rendering code checks if the user is anonymous instead of hardcoding the prop value from menuitems array.
https://github.com/Expensify/App/blob/a355bf8c9b22a348eb4f8e7d432e0fa0f56d0f59/src/pages/ReportDetailsPage.js#L194-L203
https://github.com/Expensify/App/blob/a355bf8c9b22a348eb4f8e7d432e0fa0f56d0f59/src/pages/ReportDetailsPage.js#L75
Also hides the menu item if it is not accessible to anonymous users prior to rendering it.
Result:
https://github.com/Expensify/App/assets/767439/093dc472-be51-4aa9-8da1-2c660fae0427
What alternative solutions did you explore? (Optional)
We need to ensure that the back button is functioning correctly since it's currently causing the app to crash. Additionally, we should review the usage of the menu item throughout the app and consider the needs of anonymous users. This way, we can develop a utility method to determine whether an action is accessible to anonymous users and use that method within the MenuItem component, eliminating the need for the 'isAnonymousAction' prop. For instance, if 'feature 1' is accessible to anonymous users, it should be displayed; otherwise, we can return 'null' within the MenuItem component code for anonymous users.

@allroundexperts any update about above proposals?

@allroundexperts proposals for you here!

@ayazalavi can you please apply to the job: https://www.upwork.com/jobs/~01f5970e379d770333

@ayazhussain79

@NicMendonca applied on upwork
@ayazalavi thanks for reminding me

Can I please get a payment summary for this issue?

reporter: @ayazhussain79 - $50
contributor: @bernhardoj - $750
c+: @allroundexperts - $750

@ayazhussain79 @bernhardoj - you've been paid via Upwork
@allroundexperts please don't forget to request payment via Expensify
Thanks!

$750 payment approved for @allroundexperts based on BZ symmary.


Introduce Person model, extracted from Listing form params

Decided against this in first release. We'll need more sophisticated logic around associating unauthenticated users with listings and tracking them as we build.


Fix feeds

Feeds were getting pretty slow, this release speeds them up again, and simplifies a bunch of stuff. It includes some upgrades to welshman related to feeds.

Seems indeed faster to me, and I couldn't find any bug.
I never see any repost  in my feed when selecting "follows" as my default filter, is it normal?

Coracle doesn't fetch reposts unless you specifically ask for them in the feed builder


Centralize JSON encoding/decoding

Proposed Changes
This PR abstracts JSON encoding/decoding in a common module, despite of
what library is used behind the scenes. This allows for easier refactoring
as well as switching the JSON library to a faster one with minimal effort.
With upcoming JSON logging that I'm working on it would probably make a difference
to have a library like jsone or thoas that are faster and more memory efficient than JSX.
Types of Changes
What types of changes does your code introduce to this project?
Put an x in the boxes that apply

[ ] Bugfix (non-breaking change which fixes issue #XXXX)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Documentation (correction or otherwise)
[ ] Cosmetics (whitespace, styles...)
[ ] DevOps (Build scripts, pipelines...)

Checklist
Put an x in the boxes that apply. You can also fill these out after creating
the PR. If you're unsure about any of them, don't hesitate to ask on the
mailing list. We're here to help! This is simply a reminder of what we are
going to look for before merging your code.

[x] I have read the CODE_OF_CONDUCT.md document
[x] All tests pass locally with my changes
[x] I have added tests that prove my fix is effective or that my feature works
[x] I have added necessary documentation (if needed)
[ ] Any dependent changes have been merged and published in related repositories
[] I have updated changelog (At the bottom of the release version)
[x] I have squashed all my commits into one before merging

Further Comments
@ioolkos - I was thinking if we should add the shared JSON library to vernemq_dev to have a common JSON library for plugin writers?

@codeadict thanks, a great idea & see the point with refactoring.
So far we have vernemq_dev dependency free; so I'd probably prefer not adding a JSON lib there too. (let me know if you see further benefits in it, though)

@ioolkos - looks like some MongoDB tests fail now due to deprecated commands in the Mongo Server and the library we use doesn't support them. We might need to pin CI to a specific mongo version until that is fixed in the library.

Pushed the pinned version @ioolkos, here is the deprecation notice for MongoDB 6.0+ https://www.mongodb.com/docs/v6.0/release-notes/6.0-compatibility/#legacy-opcodes-removed

Opened ticket on https://github.com/comtihon/mongodb-erlang/issues/254


Deprecations Part II + Error Tracking

What's New?

Phase out FBOS v5 (NOTE: this will not take place until the next web app release)
Updates to error logging tools.

Coverage decreased (-0.02%) to 89.728% when pulling 8862c06c7d3433c249f53c895a99449392333a35 on RickCarlino:deprecations_ii into 160a005e4553d4710e42cc325b07146228c1d271 on FarmBot:staging.


Add null support to PrefixSortEncoder

When processing normalization-encoding in the PrefixSort, we cannot simply equate null to max-value or min-value. Because in this way, we cannot distinguish between null and max/min value in a null-first scenario, and we have to add a nullbyte in normalize encoding.
The changes ：

Add CompareFlag: ascending nullsFirst and isNull to the encode() method
Add new method encodeNoNulls to handle cases where there are no nulls, suports: uint64_t/int64_t/uint32_t/int32_t/float/double

Design doc: https://docs.google.com/document/d/1wa1lbbR-bhf0eg1mSaH7JUzeG7vhwz94a6ElUTK0J8k/edit?usp=sharing
Part of #6766

@mbasmanova  this is null-support for PrefixSortEncoder

@mbasmanova I update code , the google-doc I am still preparing

@mbasmanova  and here`s the google doc :https://docs.google.com/document/d/1wa1lbbR-bhf0eg1mSaH7JUzeG7vhwz94a6ElUTK0J8k/edit?usp=sharing

@skadilover Thank you for putting the doc together. This is great. Would you give me comment or edit access?

It would nice to add a section there that explains how we encode multiple keys.

It would also be nice to describe how to handle nullable keys.

Some comments about the test.

@mbasmanova  update code and doc

@skadilover Thank you for iterating. I'll take a look at the latest code soon. CI is red.
In the meantime, I wonder if it would be helpful to add a Fuzzer-like test. On each iteration, randomly pick two possibly null values, compare them directly, encode, compare encoded and verify that both comparisons return same result. Run 10K iterations for each supported type.

In the meantime, I wonder if it would be helpful to add a Fuzzer-like test. On each iteration, randomly pick two possibly null values, compare them directly, encode, compare encoded and verify that both comparisons return same result. Run 10K iterations for each supported type.

@mbasmanova I add a fuzz test.

I add a fuzz test.

Thanks. Curious, did it help find any bugs?
CI is red.

Curious, did it help find any bugs?

No....

CI is red.

It's strange. My changes should not affect CI, and the reason why CI reports errors has nothing to do with my code.
@mbasmanova

My changes should not affect CI, and the reason why CI reports errors has nothing to do with my code.

Would you take a look at the CI failures? Are these known issues (search GitHub issues)? If not, let's create GitHub issues for these.

Make sure to rebase this PR to latest before spending too much time on CI failures.

Make sure to rebase this PR to latest before spending too much time on CI failures.

Seems that rebase could work and there is not a auto-merge stage in velox-cicd

If no more comments on this PR , could we merge it first, not block by the doc-updating.

I see. Looks like this is an unrelated change. It would be nice to extract it into a separate PR. Small PRs are easier and faster to review.

This PR add two unrelated changes:

fix benchmark : https://github.com/facebookincubator/velox/pull/8493
separate  testing method from product code , pending..

Let`s fix them first,  could you help me to reveiw this two PR first ? @mbasmanova

I see. We may want to add explicit support for Timestamp since we'd want to encode null-flag only once per Timestamp values, not twice (once for seconds and once again for nanos).

@mbasmanova  update code : add Timestamp support

CI is red. Please, take a look.
The following tests FAILED:
        283 - velox_exec_prefixsort_test (Child aborted)

CI is red

Fixed last red reason , but current 'CI red' reason is changes of 'xsimd'

but current 'CI red' reason is changes of 'xsimd'

Got it. Would you open a GitHub issue about that? CC: @kgpai @lingbin @majetideepak @assignUser

but current 'CI red' reason is changes of 'xsimd'

Got it. Would you open a GitHub issue about that?

Is this fixed ?
I open an issue about that : https://github.com/facebookincubator/velox/issues/8666
@mbasmanova


Backport 2.x: Fix and test the MBEDTLS_PSA_CRYPTO_SPM build

Trivial backport of #4673.

I will check the backport when #4673 is approved.


GH-43160: [Swift] Add Struct Array

Rationale for this change
Adding StructArray for struct type impl
What changes are included in this PR?
Added StructArray impl

GitHub Issue: #43160

Do we need to add new tests for StructArray?

I do have test but they require the builder which will be included in the next PR.


fix broken tests

Q
A

Bug Fix?
yes

New Feature?
no

BC Breaks?
no

Deprecations?
no

Fixed Tickets

License
MIT

A new inspection was created.

The inspection completed: 2 new issues

A new inspection was created.

The inspection completed: 2 new issues


[Blazor] UIMouseEventArgs doesn't provide reference to the element clicked

I have not been able to find any sample code to do this. Without being able to know which element was clicked, it seems impossible to use UIMouseEventArgs for moving of elements on the page. I ran into this same issue with the Drag-n-Drap events args too.
If this feature is already in the product, please provide an sample. There is something like this for keydown event in the documents, but not mouse events.
If not already in the product, this is a must have for go live please :)

Thanks for contacting us, @VR-Architect.
Given there are too many ways this can work, we tend to leave this up to the developers to do the way they want - through JS Interop.
If you intended to stick to a Blazor-specific approach, you can use lambdas per element, to handle the way you want it to.
We'll look into providing a sample post 3.0 release showing how this can be done.

Here is an example of the way I did it; however, if the mouse is moved too quickly the moved element gets left behind. If the mouse moves slowly, the drag works fine. But to my original question, I was able to get a reference by using lamba with an int.
@page "/"

Items
    @foreach (var item in dragObjects)
    {
        <div<EMAIL_ADDRESS>@onmousedown="@((e) => { mouseDown(e, item.id); })" @onmousemove="@mouseMove" @onmouseup="@mouseUp" style="@item.style;">
            TODO Item @item.id

    }

TODO

@code{
ElementRef itemsContainer;
ElementRef todosContainer;
Vector2 mouseOffset = new Vector2 { top = 0, left = 0 };
bool isMouseDown = false;
List<DraggableObject> dragObjects { get; set; }
int selectedItemId { get; set; }

protected override void OnInit()
{
    dragObjects = new List<DraggableObject>();
    dragObjects.Add(new DraggableObject { id = 0, css = "todo-item", top = 150, left = 400, style = "top: 150px; left: 400px;" });
    dragObjects.Add(new DraggableObject { id = 1, css = "todo-item", top = 200, left = 400, style = "top: 200px; left: 400px;" });
}

void mouseDown(UIMouseEventArgs args, int id)
{
    isMouseDown = true;
    selectedItemId = id;
    mouseOffset.left = args.ClientX - dragObjects[selectedItemId].left;
    mouseOffset.top = args.ClientY - dragObjects[selectedItemId].top;
    dragObjects[selectedItemId].css += " moving";
}

void mouseMove(UIMouseEventArgs args)
{
    //e.preventDefault(); ///< Stops the Default Element Bahiavor
    if (isMouseDown)
    {
        dragObjects[selectedItemId].left = args.ClientX - mouseOffset.left;
        dragObjects[selectedItemId].top = args.ClientY - mouseOffset.top;
        dragObjects[selectedItemId].style = "top: " + dragObjects[selectedItemId].top + "px;left: " + dragObjects[selectedItemId].left + "px;";
    }
}

void mouseUp(UIMouseEventArgs args)
{
    isMouseDown = false;
    if (selectedItemId > -1)
    {
        dragObjects[selectedItemId].css = "todo-item";
        selectedItemId = -1;
    }
}

public class Vector2
{
    public long left { get; set; }
    public long top { get; set; }
}

public class DraggableObject
{
    public int id { get; set; }
    public string css { get; set; }
    public ElementRef el { get; set; }
    public long top { get; set; }
    public long left { get; set; }
    public string style { get; set; }
    public List<DraggableObject> children { get; set; }
}

}

Moving this to Backlog after seeing no community involvement here. We'll reconsider in the future, if we see clear need for this from community.

Hi everyone
I would want to add to this issue. I am currently trying to have a list of elements where each can be clicked.
However it feels quiet overkill to add a specific event handler for each element in that list.
Another concern would be what if I update the list? Then I'd need to reapply the event handlers everytime I update it.
In javascript I would apply the handler to a parent element and then get the data from e.target. Like this I only need to use one event handler.
It would be nice if there was some sort of identification of the event target. For example a number or string by which I can lookup the value from a List within c#.
Cheers
Lukas


I got a lot of .etl.zip files that have zeroes in CPU Msec for every process. CPU Stack is empty, but Thread Time Stack show correct information

I got a quite a few of PerfView files that have zeroes in CPU Msec column for every process. It looks like this:

If I choose process in CPU Stacks and open, it will not work. Every tab contains only ROOT.
But if I choose the same process in Thread Time Stacks and open, it will correctly show everything.
For example if I choose first process svchost I will get this CPU Stacks:

And if I open it in Thread Time Stacks I will see this:

Is it correct?
I can provide .etl.zip file(s) directly to developer because it may contain some private information.
Vlad

It sounds like a lot of things can cause this, but I was able to fix it by disabling real time virus protection in windows.
Settings > Windows Security > Virus and Thread Protection / Manage > Real-time protection

But it actually works fine in Thread Time Stack. It is hard for me to imagine that AV can damage stacks for CPU but leave them be for Thread Time Stack. I also have suspicion that there are only one stack for both of them and of them just has extra information.

The reason that you see the thread time stacks view working but the CPU stacks not is because thread time depends upon two sets of events - CPU sampling and contextswitch/readythread events.  The contextswitch/readythread events are emitted when you hit these paths in the kernel, whereas the CPU samples are emitted via profiling interrupts.  It's the profiling interrupts that tend to get broken by kernel drivers, etc.
Are these on retail builds of the OS, or are these Windows Insider builds?

From TraceInfo file I can see this:
OS Build Number 19041.2006.amd64fre.vb_release.191206-1406

I think these are both release builds.  I think we've looked at these together before.  I suspect that the best course of action for these is to file a Windows Feedback ticket.  This should help to get some eyes with operating system expertise to help investigate.  You can do this via the key combination Windows-F.

Ok, I will leave feedback. Could you please tell me what kind terms should I use for this? I don't know many technical details and I would like to get their attention.
And just in case these are different reports from different companies.

Sure.  I think the key here is that you want to point out that you have a number of traces that should be capturing CPU sampling ETW events, but those events aren't being captured.  When you submit the feedback ticket, ideally submit it from a machine where this happened, so that the diagnostic information that is captured is relevant.  If this is not possible, make sure to provide Windows version information.  That's probably as much as you need to do until/unless they ask for more.  Please also provide a link to the feedback here.

I just learned of a feature in Microsoft Defender that may cause the behavior you're seeing, as it takes the PMU from ETW.  You can read more about it at https://www.microsoft.com/security/blog/2021/04/26/defending-against-cryptojacking-with-microsoft-defender-for-endpoint-and-intel-tdt/ and https://techcommunity.microsoft.com/t5/microsoft-defender-for-endpoint/defending-against-ransomware-with-microsoft-defender-for/ba-p/3243941.
The feature can be disabled by running powershell.exe Set-MpPreference -DisableTDTFeature $true.
@rbanks54, also adding you here, as this might also be what you're seeing in #1723.

That's an interesting feature! Sounds like the ML model might need some tweaking if it's the cause 🙂
Thankfully,l I could use the work around for the conference talk I gave yesterday. Phew!
I'll give it a try on the two machines with problems later today and let you know the results

@brianrob Success!!
The setting stays after a reboot as well, though trying to re-enable it throws an error

Set-MpPreference: Operation failed with the following error: 0x80004005. Operation: Set-MpPreference. Target: DisableTDTFeature.

Thank you so much for chasing things up!

Thank you @brianrob and @rbanks54. I will add this to list of instructions and hopefully it will fix that issue.

Glad to hear that we're potentially making some progress in this area.  Weird that you can't re-enable it though.  Definitely worth calling out to folks in any instructions.  I'm going to close this issue for now, but @vladimir-cheverdyuk-altium, let me know if we need to re-open it.

@brianrob that workaround helped. Today I had a case when customer sent PerfView file with 0 CPU everywhere. I asked customer to run command above and re-run PerfView and it helped. New file has proper CPU time everywhere.
Thank you again.

Awesome @vladimir-cheverdyuk-altium!  That's great to hear.  Thanks for letting me know.

Hi folks!
If you're still interested, I did some research of this problem and left a comment here.


app:generateDebugBuildConfig

What went wrong:
Execution failed for task ':app:generateDebugBuildConfig'.

org.xml.sax.SAXParseException; systemId: file:/E:/M7md/New%20folder%20(3)/Flutter-BuySell/android/app/src/main/AndroidManifest.xml; lineNumber: 24; columnNumber: 44; Attribute "label" bound to namespace "http://schemas.android.com/apk/res/android" was already specified for element "application".

Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

Get more help at https://help.gradle.org

BUILD FAILED in 14m 31s
Exception: Gradle task assembleDebug failed with exit code 1

@m7mdsonny
As the error says and points to manifest file:
AndroidManifest.xml; lineNumber: 24; columnNumber: 44; Attribute "label" bound to namespace "http://schemas.android.com/apk/res/android" was already specified for element "application".
Can you check if the file is in proper format and doesn't contain any deprecated / duplicate or unwanted tags ?
If issue still persists, provide your flutter doctor -v and complete manifest file to properly address this issue.
Thanks.

Ok Thanks 😘

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


Cannot enter a portal whilst crawling

According to your testing, does the issue occur with ONLY Immersive Portals mod and Farbic API?
Yes
Describe the issue
Entering a portal whilst crawling (shoved into a 1 block space by trapdoor, piston, or otherwise) causing a constant flicker between crawling and standing, and phasing the player through the portal if they persist.
Post the log here
log is not relevant

Is the portal horizontal or vertical? How is the trapdoor being placed? How is the portal being placed? Is it nether portal or custom portal? Can you show a screenshot or video about the issue?

I can shed some light on the subject, it has to deal w standing portals as the player crawls through it, and the method of entering the crawl state is irrelevant

hi, sorry for the late reply. Here's a video showcasing the issue. The effect described previously only applies to portals on the edge of a block, sorry for not clarifying
https://user-images.githubusercontent.com/103380745/185723747-b6ab54b3-1f4a-4d9e-86f1-def5faacd900.mp4
.

Already fixed.

Any plans to fix this for the 1.19 version of the mod?

@Pladrassil No. It's recommended to use 1.19.3.


Pet gear problem

Describe the bug
So I used free membership hack to get member ship owned pet gear, but I didn't see them. It's just not there.
but the game belives I have that item. Can you fix this?
To Reproduce
Steps to reproduce the behavior:

use free membership hack
finish a battle with pet gear reward in membership slot
go to pet item
No expected pet gear in slot

Expected behavior
There should be the pet gear I got after finishing a battle
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
plz make a unlock pet gear hack

but the pet gear that was in the non-member slot worked

and every thing except the pet gear works as well


there’s NO XAML attribute specifically to define generic arguments called x:TypeArguments

Please fix there's no XAML attribute specifically to define generic arguments called x:TypeArguments but in new version of xamarin.forms there's replaced x:TypeArguments with x:DataType so please change it too in docs.microsoft !
Thanks
Sincerely, Ideal

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

ID: e80791df-0605-587f-74cd-ebc4c9fd0f74
Version Independent ID: 76736d2a-f450-4607-55b9-e7f547c0c775
Content: Part 2. Essential XAML Syntax - Xamarin
Content Source: docs/xamarin-forms/xaml/xaml-basics/essential-xaml-syntax.md
Product: xamarin
Technology: xamarin-forms
GitHub Login: @davidbritch
Microsoft Alias: dabritch

Hi @idealmusliu
x:TypeArguments is used to specify the generic type arguments to the constructor of a generic type. x:DataType is used purely in compiled bindings, to specify the type of the object that will be used in the binding.
See: https://docs.microsoft.com/xamarin/xamarin-forms/xaml/namespaces for more info.

Hi @davidbritch you cant use x:TypeArguments anymore even for generic type arguments as "Thickness" for example open a new project and try it IntelliSense will not show it ("x:TypeArguments")!
Thanks in advance!

Hi @idealmusliu
Regardless of the intellisense issue, if you open the sample associated with the page, you'll see that you can use x:TypeArguments.


Support index.count()

Not sure if it's added in the features to add in the new release, but would be a nice to have as well!

Actually I meant something like index.count(IDBKeyRange), would be a nice abstraction to have! Maybe a plugin?

It's the part of new release #29. Most of the methods will be able to accept range:
index.count(range)
index.getAll(range)
store.count(range)
store.getAll(range)

The main problem now, that I have to pass all this features in indexeddbshim env... which is hard :)


fix typo

Description of PR
fix typo
Type of change
Docs Pull Request
Fixes an issue
no issue

Thanks! 👍


better donation front end

wwcode defaulted to one-off donations because they believe it's unclear for the backers that it's recurring and they want to give a clearer option. Alaina suggested we do a toggle similar to theirs https://www.womenwhocode.com/donate
RGA defaulted to one-off sponsors for the same reason
We've had a few users thinking they were doing one off and they were doing recurring (2 at least in the last 2 weeks)
the OpenUpstate group want's to make it evident that backers can be both recurring and one-off. They are thinking of doing for tiers (backers/sponsors recurring/one off) which clutters the page a lot.

I think it's time we design and implement a better default for the donate buttons. I like the wwcode example.
@asood123 assigning it to you so you can triage/distribute.

@xdamman @erickrico

we al making this better in the new frontend.


Should marathon do scaling automatically when an app deployed with constraints "HOST UNIQUE"?

Hi all,
I've use marathon to manage deploy containers over 100+ nodes of cluster, and the cluster is still growing. Maybe 10+ or 20+ nodes joined the cluster at the same time and I need to scale some applications number up as many as the cluster nodes (via constraints ["HOST", "UNIQUE"]) by the scripts.
Could marathon do something if an application was deployed by ["HOST", "UNIQUE"]? I mean that when the new nodes join the cluster, marathon could find out which server is new, then deploy the application by itself.
Thanks.

Hey @BrickXu
See #1915, #846 and #1264 for reference.
Currently there is no way of doing that inside marathon.
A simple way of doing that: Schedule a job that get's the current number of slaves from the mesos master and PUT a scale update to the related apps in Marathon with host unique constraint.


XKRX - 2024 Election Day missing in calendar

Although the Election Day on April 10, 2024 is not an official holiday, both the Bank of Korea and the Korean Stock Exchange will remain closed. In the XKRX calendar, however, the day is marked as Open.

The official page for the National Election Commission still has this down as provisional and the KRX official market holiday page does not currently list this, although it seems likely that the date will be confirmed shortly (typically seems to be 50-60 days beforehand for past ones).
What's the stance on including provisional future dates like this? Do we wait until they have been officially confirmed?


Update README.md

Just a minor correction in code snippet : adds quote to model name string

This seems to be a duplicate of #389

I merged the duplicate. Sorry for being slow on this and thanks for the contribution!


Attempted to construct an Id from a null pointer

After upgrading to mac 15.0 got this error:
thread '' panicked at /Users/matthewdi/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc_id-0.1.1/src/id.rs:52:9:
Attempted to construct an Id from a null pointer
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
libc++abi: terminating due to uncaught foreign exception
zsh: abort ./target/release/screenpipe --debug

Does not happen on mac 14.5 (m3)
using: https://github.com/RustAudio/cpal/pull/894
we had to stop using screencapturekit-rs temporarily:
https://github.com/louis030195/screen-pipe/commit/e3ef9195dbaa33a9aa2cb2f6cde9b4bd67020a80
sorry not lot of information, not sure where is the issue
happy to dig more in details / send a PR in upcoming days

Thanks for using this lib! I've been a bit in hibernation during summer but can have a look soon.
There is another take on macOS framework bindings crate which I think looks promising: https://github.com/yury/cidre check out the SC module.
Cheers
Per

Got the same error on macOS 15 beta. Here is the stack trace using the store_audio example:
thread '<unnamed>' panicked at /Users/fluffy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc_id-0.1.1/src/id.rs:52:9:
Attempted to construct an Id from a null pointer
stack backtrace:
   0: std::panicking::begin_panic
             at /rustc/051478957371ee0084a7c0913941d2a8c4757bb9/library/std/src/panicking.rs:693:12
   1: objc_id::id::Id<T,O>::from_ptr
             at /Users/fluffy/.cargo/registry/src/index.crates.io-6f17d22bba15001f/objc_id-0.1.1/src/id.rs:52:9
   2: screencapturekit_sys::cm_sample_buffer_ref::CMSampleBufferRef::get_frame_info
             at ./screencapturekit-sys/./src/cm_sample_buffer_ref.rs:25:13
   3: <store_audio::StoreAudioHandler as screencapturekit_sys::stream_output_handler::UnsafeSCStreamOutput>::did_output_sample_buffer
             at ./screencapturekit-sys/examples/store_audio.rs:66:33
   4: <screencapturekit_sys::stream_output_handler::UnsafeSCStreamOutputHandler as objc_foundation::object::INSObject>::class::{{closure}}::stream_output
             at ./screencapturekit-sys/./src/stream_output_handler.rs:53:21

I believe it is because the CMSampleBufferGetSampleAttachmentsArray API returns NULL, and the code didn't check for that:
https://github.com/svtlabs/screencapturekit-rs/blob/9a6b9f346bd30de0d2f9a02af36d4cf6461f4f3b/screencapturekit-sys/src/cm_sample_buffer_ref.rs#L23
A simple, temporary workaround I found is to set the createIfNecessary Bool parameter of CMSampleBufferGetSampleAttachmentsArray to true.
-- let raw_attachments_array = CMSampleBufferGetSampleAttachmentsArray(self, 0);
++ let raw_attachments_array = CMSampleBufferGetSampleAttachmentsArray(self, 1);


docs: Adds note about data.json and stars.json

What type of PR is this? (check all applicable)

[ ] ♻ Refactor
[ ] ✨ Feature
[ ] 🐛 Bug Fix
[ ] 👷 Optimization
[x] 📝 Documentation Update
[ ] 🔖 Release
[ ] 🚩 Other

Description

This PR adds docs on the stars.json features
Related Tickets & Documents

https://github.com/open-sauced/open-sauced/pull/1124
Mobile & Desktop Screenshots/Recordings

Added tests?

[ ] 👍 yes
[x] 🙅 no, because they aren't needed
[ ] 🙋 no, because I need help

Added to documentation?

[ ] 📜 readme
[ ] 📜 contributing.md
[x] 📓 docs
[ ] 📕 storybook
[ ] 🙅 no documentation needed

[optional] Are there any post-deployment tasks we need to perform?
[optional] What gif best describes this PR or how it makes you feel?

LGTM


Example of style prop

I really like that you can set style for the elements within the component.
Unfortunately, I have not been able to get it to work. Would anyone be willing to add an example to the docs or to the example that shows how this is to be done? I see brief section in the docs now, but it hasn't been working when I have tried that method. A more thorough example, perhaps incorporating the example styling would be great.
Thanks for this great component!

@ro-ka Got it. That was exactly the problem. I should have noticed that, thanks for the headsup!
All good now. Thanks again for this component.

Perfect, we’ll release very soon.

Just released in version 1.24.0.


Why we need to run composer install inside the docker file, if it will be overwritten with volumes.

Hello,
I am curious as to why we need to run composer install inside the Docker file if it will be overwritten with volumes.
when we build the docker this will run first
# copy source files and config file
COPY --chown=${USERNAME}:${USERNAME} . $APP_HOME/
COPY --chown=${USERNAME}:${USERNAME} .env.$ENV $APP_HOME/.env

# install all PHP dependencies
RUN if [ "$BUILD_ARGUMENT_ENV" = "dev" ] || [ "$BUILD_ARGUMENT_ENV" = "test" ]; then COMPOSER_MEMORY_LIMIT=-1 composer install --optimize-autoloader --no-interaction --no-progress; \
    else COMPOSER_MEMORY_LIMIT=-1 composer install --optimize-autoloader --no-interaction --no-progress --no-dev; \
    fi

and  this will copy the local files and overwrite what we did in the previous step in the docker file
docker-compose-yaml
NGINX:  volumes:
- .:/var/www/html:ro,cached
LARAVEL: volumes:
- .:/var/www/html:cached

Hello
Please pay attention to the other docker-compose files that you have inside this repo and there you don't have mapping at all. That's why for all environments except dev you need to copy files inside.
Please inform us if you need anything else

Hi,
I see that in docker-compose for staging and prod there are no volumes in the laravel section, but there are volumes in nginx, still, this will copy the local files into nginx container, not the laravel container, for example, if we don't have the vendor file locally, this will means there is no vendor file in the nginx container because there is no connection between the nginx container and the larevel container, so what I did is create new volume in both nginx and laravel:
NGINX :
volumes:

php:/var/www/html

LARAVEL:
volumes:

php:/var/www/html

and at the bottom:
volumes:
php:
driver: local
I still confuse how we can share file between nginx and laravel

Hi
You don't need vendor folder inside NGINX at all, as basically, NGINX just as "proxy" and code inside will never be executed.

I know, ok, could you please explain this to me
    set $root /var/www/html/public;

    root $root;

in the nginx config, my question is how nginx proxy to the folder that exists in the larevel container, maybe the line above explains that?

and what the purpose for this line in the docker-composer nginx:
      volumes:
        - .:/var/www/html:ro,cached

Please pay attention to the line https://github.com/systemsdk/docker-nginx-php-laravel/blob/master/docker/dev/nginx.conf#L59

Basically if you want to check your theory you can make next steps:
1)delete vendor folder locally
2)create some App\Http\Controllers\TestController with method show that "return view('welcome');"
3)edit routes/web.php and put there "Route::get('/test', [TestController::class, 'show']);"
2)make build-prod
3)make start-prod
4)make key-generate
5)enter make ssh-nginx and make sure that you don't have vendor folder there
6)enter make ssh and make sure that you have vendor folder inside
7)open your browser and access http://localhost/test and it should be available
So, basically, if you want to have vendor folder inside NGINX you can use your example above but you don't need vendor folder there as there is no php interpeter inside NGINX at all. Maybe you need to pay attention to the NGINX config and understand how it is working.

my problem is how can nginx container proxy to a file/folder that does not exist in the image, I don't know how nginx proxy to the folder that exists inside another image.
ps:
why do we do this there is no point right(in ngixn docker-compose file):
volumes:
- .:/var/www/html:ro,cached

You can read NGINX manual and examples if you want to understand config properly.
ps:
Currently what you need is to have just everything that are inside public folder as you have default nginx config set $root /var/www/html/public;  so you can map as - ./public:/var/www/html/public:ro,cached
But if you want to use environment not only for api requests, maybe you will need to change NGINX config and allow to access some other folders, that's why currently we have everything except vendor.

@dimadeush thanks so much, everything is now clear to me.


dd-agent became defunct and pegged CPU

*Output of the info page *
root@ip-10-11-2-224:~# docker exec dd-agent service datadog-agent info
===================
Collector (v 5.7.4)
===================

  Status date: 2016-09-22 20:54:43 (5s ago)
  Pid: 13
  Platform: Linux-3.13.0-74-generic-x86_64-with-debian-8.4
  Python Version: 2.7.11, 64bit
  Logs: <stderr>, /var/log/datadog/collector.log

  Clocks
  ======

    NTP offset: 0.0595 s
    System UTC time: 2016-09-22 20:54:48.873373

  Paths
  =====

    conf.d: /etc/dd-agent/conf.d
    checks.d: /opt/datadog-agent/agent/checks.d

  Hostnames
  =========

    ec2-hostname: ip-10-11-2-224.ec2.internal
    local-ipv4: <IP_ADDRESS>
    hostname: ip-10-11-2-224
    socket-hostname: ip-10-11-2-224
    local-hostname: ip-10-11-2-224.ec2.internal
    instance-id: i-324a86a1
    socket-fqdn: ip-10-11-2-224

  Checks
  ======

    ntp
    ---
      - Collected 0 metrics, 0 events & 1 service check

    disk
    ----
      - instance #0 [OK]
      - Collected 32 metrics, 0 events & 1 service check

    docker_daemon
    -------------
      - instance #0 [WARNING]
          Warning: Unable to find any pid directory in /host/proc. If you are running the agent in a container, make sure to share the volume properly: "/proc:/host/proc:ro". See https://github.com/DataDog/docker-dd-agent/blob/master/README.md for more information. Network metrics will be missing
          Warning: Couldn't find pid directory for container: admin,approval,dd-agent,api,jobs,auth,email,logspout,web-redux,web. They'll be missing network metrics
      - Collected 97 metrics, 0 events & 2 service checks

  Emitters
  ========

    - http_emitter [OK]

===================
Dogstatsd (v 5.7.4)
===================

  Status date: 2016-09-22 20:54:43 (5s ago)
  Pid: 33
  Platform: Linux-3.13.0-74-generic-x86_64-with-debian-8.4
  Python Version: 2.7.11, 64bit
  Logs: <stderr>, /var/log/datadog/dogstatsd.log

  Flush count: 220
  Packet Count: 0
  Packets per second: 0.0
  Metric count: 1
  Event count: 0
  Service check count: 0

===================
Forwarder (v 5.7.4)
===================

  Status date: 2016-09-22 20:54:45 (4s ago)
  Pid: 12
  Platform: Linux-3.13.0-74-generic-x86_64-with-debian-8.4
  Python Version: 2.7.11, 64bit
  Logs: <stderr>, /var/log/datadog/forwarder.log

  Queue Size: 0 bytes
  Queue Length: 0
  Flush Count: 773
  Transactions received: 334
  Transactions flushed: 334

Additional environment details (Operating System, Cloud provider, etc):
Steps to reproduce the issue:
Seemed to spontaneously happen. We were not issuing any docker daemon actions (was not start/restart/stopping containers).  This happened simultaneously on 2 AWS t2.mediums.  We have been running dd-agent for months with no issues.  The environment is not new and has been running for about a month.
Describe the results you received:
From /var/log/datadog/dogstatsd.log:
2016-09-22 18:15:59 UTC | ERROR | dd.dogstatsd | dogstatsd(dogstatsd.py:269) | Unable to post payload.
Traceback (most recent call last):
  File "/opt/datadog-agent/agent/dogstatsd.py", line 259, in submit_http
    r = requests.post(url, data=data, timeout=5, headers=headers)
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/api.py", line 108, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/sessions.py", line 464, in request
    resp = self.send(prep, **send_kwargs)
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/sessions.py", line 576, in send
    r = adapter.send(request, **kwargs)
  File "/opt/datadog-agent/embedded/lib/python2.7/site-packages/requests/adapters.py", line 433, in send
    raise ReadTimeout(e, request=request)
ReadTimeout: HTTPConnectionPool(host='localhost', port=17123): Read timed out. (read timeout=5)
2016-09-22 18:19:33 UTC | ERROR | dd.dogstatsd | util(util.py:498) | Self-destructing...
2016-09-22 18:20:32 UTC | ERROR | dd.dogstatsd | util(util.py:499) | None

Describe the results you expected:
To not do this.
Additional information you deem important (e.g. issue happens only occasionally):
This is the first time we are seeing this.  The above error message is on both machines that experiencing the CPU spiking issue.

Hi @TNuzzi
Thank you for the detailed report. This is not an issue we're aware of.
Do you know which process pegged the CPU ? The agent runs a bunch of things: agent.py (the collector), dogstatsd.py, jmxfetch.py if you use the agent to monitor java processes, ddagent.py (the forwarder) and supervisord.
To help investigate this issue could you also provide the command/manifest you use to start the agent?
And if the issue happens again I suggest you send us a flare from the agent or at least the content of /var/log/datadog/ so we can see what the agent got stuck on. This error in dogstatsd shouldn't be fatal, and is most likely just a blip.

closing for lack of activity (the conversation might have moved to our support), please reach out if it happens again


Creating a CLI to interface with the tool

Hey, great tools!
Unfortunately I don't use vscode. Is there any plan to make this tool usable from the CLI? or do you have any pointers if I want to implement a CLI for this?

Hi, thanks for the interest. There is actually a CLI option.
https://github.com/MichaelCurrin/auto-commit-msg/tree/master/shell#autofill-scripts
I am missing pieces that make it easy to bundle and install. However I can send you something so you can try it out yourself, for Linux.
Setup

Go to the v0.26.2 release https://github.com/MichaelCurrin/auto-commit-msg/releases/tag/v0.26.2
Download the .vsix file
Unzip it to for your user.sudo apt install unzip
unzip auto-commit-msg-0.26.2.vsix -d ~/Downloads/auto-commit-msg

Create the CLI entry point as below. as acm.sh in /usr/local/bin
Make it executablechmod +x /usr/local/bin/acm.sh

Test it generates a message (no commit made here)$ acm.sh
...

Here is the script
#!/usr/bin/env bash
set -e

DIFF_FLAGS='--name-status --find-renames --find-copies --no-color'
CHANGES=$(git diff-index $DIFF_FLAGS HEAD)

# TODO: Make this a global bin path and a bundled file.
MESSAGE=$(node ~/Downloads/auto-commit-msg/extension/out/cli.js "$CHANGES")
echo "$MESSAGE"

Usage
You can run it like this
git commit --edit -m "$(acm.sh)"

And that is of course easier if you add a Bash alias or a Git alias
Here for Git config:
[alias]
    c = '! git commit --edit -m "$(autofill.sh)"'

Then just
git c

If you want an updated version, you'll have to download and unzip whenever there is a new release.
If you have any ideas or can help with making setup and update smoother, that would be great.
I did some experiments today but got stuck because of the a mix of ES modules and CJS modules and fighting with TypeScript and Rollup.
I found a way to bundle the out/cli.js file the (CLI entry point of my tool) as a single JS file with dependencies, using the Rollup tool and plugins. I need to make a change to a ton of imports to make them use .js explicitly for that to work properly.

I am thining of a pipeline solution to make the .sh file installable with one or more JS files.
At the least using curl.
But there are more professional tools I've seen for making Bash tools easy to install and update.
Another idea I had is to do away with the Bash + JS option and instead make my tool installable as an NPM package (I've seen NPM packages come as a binary that was compiled from Go for example).
Then you would install my tool as
npm i auto-commit-msg

And run like
git commit --edit -m $(npx auto-commit-msg)

And also this could be expanded to work on Windows if the .sh script I provided worked as .cmd / powershelll


fix: update to eye v9.4.11

fix: update to eye v9.4.11

:tada: This PR is included in version 12.1.4 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release
v12.1.4

Your semantic-release bot :package::rocket:


Cite Pyrfume

Hi,
first of all, this is a great project and thank you for putting all the datasets to one place!
Since we're working with this data, I'd like to cite Pyrfume in our paper.  I was wandering, is there some preferred way to cite Pyrfume in a paper?
Thanks.
Best,
Matej

You can cite the preprint: https://www.biorxiv.org/content/10.1101/2<IP_ADDRESS>7170


Images wont appear in Message.

Hey again!
i have a Problem with Images that get malformed.
When i use getHtmlStream()
Links and Image Tags appear like this.
    <img src=3D"http://g-ec2.images-amazon.com/images/G/01/e-=
mail/logos/a_de_prime_logo_48.gif" alt=3D"Amazon.de" border=3D"0" hspace=3D=
"6" vspace=3D"6">

Where does the 3D come from? Something with encoding seems to be broken?
any hints? ideas?

sometimes i get a filter error:
stream_get_contents(): stream filter (convert.quoted-printable-decode): invalid byte sequence

Hi @mstaack -
Yes, it's probably decoding-related.  "=3D" is quoted-printable for the "=" character... so yes, for whatever reason it's having difficulty decoding that mime part.
Is that the full content of the error message, there's no hint at what character is causing a problem exactly?
Would it be possible to include more of the mime message?  For instance the headers for the HTML part? (perhaps character-encoding is causing an issue)?

Hi @mstaack
Unfortunately try as I might with the emails you sent me I'm not experiencing any problems parsing them.  I tried all release versions.
What version of PHP are you using, and what environment is it running on?  Are you able to successfully run all the phpunit tests?
php /usr/local/bin/phpunit --configuration=tests/phpunit.xml

seems to work now. dont know why exactly


Modify docker allocator logic to account for volumesFrom

When we added the volumesFrom functionality, we did not attempt to add logic to the allocator to account for it.
We should add logic such that:

If a host is specified and one or more volumesFrom container ids is specified, the allocator validates that that host is currently running the specified volumesFrom containers.
If a host is not specified and one or more volumesFrom container ids is specified, the allocator selects the host that is hosting all the specified volumesFrom containers. If no host meets this criteria, raise an allocation error.

Sidekicks are required to support containers/services using volumesFrom


cmark requires workarounds to prevent crashes

https://github.com/commonmark/cmark/issues/442

superseded by


Question - Handling JS Errors

Just a question, I'm noticing some strange behavior when encountering JS errors in my code.
It seems that the goog! plugin has extreme problems, even if I get the slightest JS error in my code.
It seems to always throw a timeout RequireJS error.
I am wondering if there's a better way to handle this, rather than just pretty much not working at the slightest JS error.

the plugin doesn't handle errors, it only uses google.load to load the script and call a callback when it finishes loading (see src).
try setting a higher waitSeconds and see if that fixes the timeout, but after the first module fails to load (can be caused by a JS error) you will see timeouts on the other modules as well.
any other info about the problem?

I seemed to have fix it, only when removing my offending code causing the JS error.
The problem I think was that if I have some code throwing error then I make a require call with goog! or async! etc.
// code that causes error
..
..
..
require(["goog!:search,1"]); // This will throw timeout errors
My modules weren't failing to load at all. I have my waitSeconds at 20 seconds for the time being.

uhm, I don't think I could do anything to prevent that from happening. Will close the issue for now, feel free to reopen if you find it necessary.
PS: this RequireJS issue is also related https://github.com/jrburke/requirejs/issues/156 since it is about recovering from errors and potentially trying to reload module.


⚠ Bofrost.fr has degraded performance

In 01c4617, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 1906 ms

Resolved: Bofrost.fr performance has improved in 6aae4cf.


Broken typing in latest (0.3.2)

I saw you updated maturin in #23 so it can generate type stubs for you but there was no release build triggered and as such the latest version on PyPI still has broken types, because it's missing the "py.typed" file.
I don't know if you'd prefer to include the "py.typed" file or remove the .pyi stub and let maturin generate everything, but either way it'd be nice to release a fixed version. If you let me know which you'd prefer I can make a quick PR.

Hi!
Sorry for this. I didn't think it was worth a release.
I prefer the latter - if you'll open a PR I'll create a release after merging it.
Thanks 🙏

So it appears maturin can't generate it's own .pyi from Rust's types, my bad. But it does pick up the existing definition as-is.
However there is a problem I encountered when it comes to Python version flags in PyO3. At least in my environment using the existing #[cfg(not(python37))] doesn't work, however #[cfg(not(Py_3_7))] does, as per the PyO3 docs.
I've created a PR for it, feel free to merge or reject based on your own findings.

Oh wow! That's a nice catch. Thank you.
I'm closing this issue and will release a version with your PR ASAP.
Thanks again!


httpClient delete body传参失败

调用httpClient的delete方法在body里面传参，服务器无法接受到参数

delete(url,
{data,
Function successCallBack,
Function errorCallBack}) async {
var httpClient = new HttpClient();

String result;
try {
  var request = await httpClient.deleteUrl(Uri.parse(_baseUrl+url));

  // 设置请求头
  request.headers.add("version", "4.0.8");
  request.headers.add("Accept", "application/json,*/*");
  request.headers.add("Content-Type", "application/x-www-form-urlencoded;charset=UTF-8");

  request.add(utf8.encode(json.encode(data)));

  HttpClientResponse response = await request.close();
  String responseBody = await response.transform(utf8.decoder).join();
  print("statusCode----${response.statusCode}");

  if (response.statusCode == HttpStatus.ok) {
    print('请求成功');
    print(response.headers);//打印头部信息
    print("post------$responseBody");
    result = 'HttpStatus.ok';
  } else {
    result = 'Error getting IP address:\nHttp status ${response.statusCode}';
  }
} catch (exception) {
  result = 'Failed getting IP address';
}

print("result----$result");

}

@guzhirong17
What is your issue / question here ?

I use HttpClient delete method and put params in body to sever , but sever can not get the params

最好check一下你自己的请求，简单抓下包看有没发出去。

@guzhirong17
It seems you are asking for assistance on personal code. Please see https://flutter.dev/community for resources.
You may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


New sigmabot logo

Community bounty: custom logo for sigmabot
The existing logo came from a Google image search so the idea here is to have a more custom version instead of one you can simply find in the search results.

foe could help with that ? O.o

I'm not a pro. But, I can do a logo - such as mine.

Just saw this when I linked from the conversation in Discord. I can do simple graphic design. I did something simple to illustrate. This is from from H_ORIMONO from the EXPERIENCE JAPAN and the white Sigma image from awesome Ergo.  Easy to combine these using SVG. SVG can scale to whatever dimensions you want. Also added PNG.

[1] https://experience-japan.info/en/download
[2] https://github.com/ergoplatform/awesome-ergo/blob/master/graphics/Logo/symbol_bold__1080px__white.svg


console.group is not a function

console.group is not a function
console.groupEnd and console.table

No, these are not. Happy to take a PR if you want to see these supported, otherwise jsconsole doesn't support these out of the box.


readme: added tested junos-versions

Pull Request Test Coverage Report for Build 99

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 83.333%

Totals

Change from base Build 97:
0.0%

Covered Lines:
480

Relevant Lines:
576

💛  - Coveralls


VIP

@weolar how can I buy a personal VIP version?
I cannot contact you. You have not responded by email.
I don't have a QQ messenger.

It is suggested to register a QQ number and then join the QQ group 94093808.

Unfortunately, I cannot register a QQ number. Why not use a common messenger, for example Telegram?

@lexesv  hi，our Telegram is https://t.me/miniblink


Why does watching a Stream? provider return a AsyncValue<User?>

Here I have a Riverpod provider return a Stream<User?>:
@riverpod
class AuthState extends _$AuthState {
  @override
  Stream<User?> build() {
    return FirebaseAuth.instance.authStateChanges();
  }
}

Then I Try to use it in a Stream builder by watch it but it is telling me I have an AsyncValue instead of a Stream:
  @override
  Widget build(BuildContext context, WidgetRef ref) {
    final authstate = ref.watch(authStateProvider);
    return MaterialApp(
      home: StreamBuilder<User?>(
        stream: authstate,
        builder: (context, snapshot) {
          if (snapshot.hasData) {

          } else {

          }
        },
      ),
    );
  }

That's by design.
AsyncValue is the equivalent of AsyncSnapshot.
The StreamBuilder is no-longer needed. You already got what you wanted


Code works but won't validate.

Challenge Bonfire: Seek and Destroy has an issue.
User Agent is: Mozilla/5.0 (Windows NT 6.1; rv:40.0) Gecko/20100101 Firefox/40.0.
Please describe how to reproduce this issue, and include links to screenshots if possible.
My code:
function destroyer(arr) {
  // Remove all the values

 var arr = arguments[0];
 var z = [];
 var j = 0;
 for (i = 1; i < arguments.length-1; i++) {
    z[j]=arguments[i];
    j = j+1;
  }

  var chris = 0;
  var leny = arr.length;
  for (i = 0; i < z.length; i++) {
   for (k = 0; k < z.length; k++) {
     chris = arr.indexOf(z[k]);
     if (chris != -1) {
       arr.splice(chris, 1);
     }
   }
  }

  return arr;
}

destroyer(["tree", "hamburger", 53], "tree", 53, "");

In the display I get the correct answer but I don't pass any of the tests.

It appears that your code is passing the default test given, but not any of the other test cases. You may have to take a look at your code and find a way to get it to work. If you need further help with this you may go to the chat channels, especially the Default channel and the HelpBonfires channel.

Thanks for reporting the issue @ccsears, but as @jhealy86 said, your code does not pass the tests. Closing this.

It passes all the test listed.  I tried every test case and they ALL came back with a red "X".  However in the black display box it had the CORRECT answer.  Did you even run my solution?

Yes, I did run your code. I know exactly what's going on with it and why it's failing, but this is not the place for that. If you stop by the help channels I posted earlier there are people (myself included) who would be more than happy to help you out to find the problem in your code. But this is not the place for that. The Bonfire itself is working correctly in this case. The one hint I will give you is to look carefully at the default test case given in the code and the first one being run on the left side. There's a subtle difference, but that's what you're getting tripped up on.

So how do you talk to someone in the help channel?  I am there and am talking to a bot.
  From: Jason<EMAIL_ADDRESS>
To: FreeCodeCamp/FreeCodeCamp<EMAIL_ADDRESS>Cc: ccsears<EMAIL_ADDRESS>Sent: Friday, September 25, 2015 9:18 AM
Subject: Re: [FreeCodeCamp] Code works but won't validate. (#3487)
Yes, I did run your code. I know exactly what's going on with it and why it's failing, but this is not the place for that. If you stop by the help channels I posted earlier there are people (myself included) who would be more than happy to help you out to find the problem in your code. But this is not the place for that. The Bonfire itself is working correctly in this case. The one hint I will give you is to look carefully at the default test case given in the code and the first one being run on the left side. There's a subtle difference, but that's what you're getting tripped up on.—
Reply to this email directly or view it on GitHub.


benchmarks: disable the flaky test_log_file BenchmarkDriver test

I'm not sure if it makes sense to keep this test around at all.
For now I just disabled it.
rdar://79701124

@swift-ci smoke test and merge

@swift-ci smoke test macOS


Add whitelist functionality

In current implementation we call open policy agent on every call.
We lack whitelist functionality for endpoints like /health and so on.
Now OPA-container logs are shaded by every call from kubernetes.
I'm not sure if it should be inside library or on user side?

For me it seems like a part of policy, which should be managed by OPA. With caching calling OPA repeatedly shouldn't be a problem.

I don't want to reach OPA for decision if I know that some endpoints I want expose for everyone.
I think this is a common functionality for some security projects?

Not necessarily, we should not make assumptions about the library's client's setup. Also this would break policy decoupling, you'd have two places now, where you allow/deny access.

Calling smart people: @anderseknert @irodzik

Calling OPA to decide on a static /ping endpoint every few seconds seems excessive. Other things you may want to be able to whitelist is static resources like images. So while it may be correct in an academic sense to always query OPA I'm leaning in favor of the pragmatic approach and would like to see the option of whitelisting some endpoints.

Do note though - nothing should be whitelisted by default.

I don't like breaking the main principle but I guess this feature would be requested sooner or later. It'll be implemented.

You won't need to break it - you will just need to allow for others to do so ;)

Feature merged to master


win: cannot read the battery info properly

Describe the bug
I am not getting accurate battery information. AC is always connected and the percentage is always 0
I inspect the battery.js and console the return from WMI
PSComputerName              : DESKTOP-HBA5R8G
__GENUS                     : 2
__CLASS                     : Win32_Battery
__SUPERCLASS                : CIM_Battery
__DYNASTY                   : CIM_ManagedSystemElement
__RELPATH                   : Win32_Battery.DeviceID=" 4390BYDDELL M4GWP11"
__PROPERTY_COUNT            : 33
__DERIVATION                : {CIM_Battery, CIM_LogicalDevice, CIM_LogicalElement, CIM_ManagedSystemElement}
__SERVER                    : DESKTOP-HBA5R8G
__NAMESPACE                 : root\cimv2
__PATH                      : \\DESKTOP-HBA5R8G\root\cimv2:Win32_Battery.DeviceID=" 4390BYDDELL M4GWP11"
Availability                : 2
BatteryRechargeTime         :
BatteryStatus               : 2
Caption                     : Internal Battery
Chemistry                   : 2
ConfigManagerErrorCode      :
ConfigManagerUserConfig     :
CreationClassName           : Win32_Battery
Description                 : Internal Battery
DesignCapacity              :
DesignVoltage               : 13165
DeviceID                    :  4390BYDDELL M4GWP11
ErrorCleared                :
ErrorDescription            :
EstimatedChargeRemaining    : 98
EstimatedRunTime            : 71582788
ExpectedBatteryLife         :
ExpectedLife                :
FullChargeCapacity          :
InstallDate                 :
LastErrorCode               :
MaxRechargeTime             :
Name                        : DELL M4GWP11
PNPDeviceID                 :
PowerManagementCapabilities : {1}
PowerManagementSupported    : False
SmartBatteryVersion         :
Status                      : OK
StatusInfo                  :
SystemCreationClassName     : Win32_ComputerSystem
SystemName                  : DESKTOP-HBA5R8G
TimeOnBattery               :
TimeToFullCharge            :
Scope                       : System.Management.ManagementScope
Path                        : \\DESKTOP-HBA5R8G\root\cimv2:Win32_Battery.DeviceID=" 4390BYDDELL M4GWP11"
Options                     : System.Management.ObjectGetOptions
ClassPath                   : \\DESKTOP-HBA5R8G\root\cimv2:Win32_Battery
Properties                  : {Availability, BatteryRechargeTime, BatteryStatus, Caption...}
SystemProperties            : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
Qualifiers                  : {dynamic, Locale, provider, UUID}
Site                        :
Container                   :

To Reproduce
read from si.getAllData()
  async getSystemInfo() {
    await siLib.getAllData()
      .then(data => {
        console.log(data.battery);
      })
      .catch(error => {
        throw error;
      });
  }

Console Log
{
    "hasBattery": true,
    "maxCapacity": 43138,
    "designedCapacity": 51004,
    "voltage": 0,
    "capacityUnit": "mWh",
    "percent": 0,
    "currentCapacity": 0,
    "isCharging": true,
    "timeRemaining": null,
    "acConnected": true,
    "model": "",
    "type": "",
    "manufacturer": "",
    "serial": ""
}

OS: Microsoft Windows 10 Home Single Language
Hardware Dell G5 SE

@babojamo it could be a battery issue?
ive checked the powershell commands on my Parellels Win10 VM on Mac and it returns battery information no problem?
although mac says the batterys are 100% and windows says its say '96% and plugged in' so who knows with windows haha
PS C:\Users\Simon> Get-WmiObject Win32_Battery | fl *

PSComputerName              : SIWIN10MAC
__GENUS                     : 2
__CLASS                     : Win32_Battery
__SUPERCLASS                : CIM_Battery
__DYNASTY                   : CIM_ManagedSystemElement
__RELPATH                   : Win32_Battery.DeviceID="SMPbq20z45"
__PROPERTY_COUNT            : 33
__DERIVATION                : {CIM_Battery, CIM_LogicalDevice, CIM_LogicalElement, CIM_ManagedSystemElement}
__SERVER                    : SIWIN10MAC
__NAMESPACE                 : root\cimv2
__PATH                      : \\SIWIN10MAC\root\cimv2:Win32_Battery.DeviceID="SMPbq20z45"
Availability                : 2
BatteryRechargeTime         :
BatteryStatus               : 2
Caption                     : Internal Battery
Chemistry                   : 2
ConfigManagerErrorCode      :
ConfigManagerUserConfig     :
CreationClassName           : Win32_Battery
Description                 : Internal Battery
DesignCapacity              :
DesignVoltage               : 12797
DeviceID                    : SMPbq20z45
ErrorCleared                :
ErrorDescription            :
EstimatedChargeRemaining    : 96
EstimatedRunTime            : 71582788
ExpectedBatteryLife         :
ExpectedLife                :
FullChargeCapacity          :
InstallDate                 :
LastErrorCode               :
MaxRechargeTime             :
Name                        : bq20z45
PNPDeviceID                 :
PowerManagementCapabilities : {1}
PowerManagementSupported    : False
SmartBatteryVersion         :
Status                      : OK
StatusInfo                  :
SystemCreationClassName     : Win32_ComputerSystem
SystemName                  : SIWIN10MAC
TimeOnBattery               :
TimeToFullCharge            :
Scope                       : System.Management.ManagementScope
Path                        : \\SIWIN10MAC\root\cimv2:Win32_Battery.DeviceID="SMPbq20z45"
Options                     : System.Management.ObjectGetOptions
ClassPath                   : \\SIWIN10MAC\root\cimv2:Win32_Battery
Properties                  : {Availability, BatteryRechargeTime, BatteryStatus, Caption...}
SystemProperties            : {__GENUS, __CLASS, __SUPERCLASS, __DYNASTY...}
Qualifiers                  : {dynamic, Locale, provider, UUID}
Site                        :
Container                   :

PS C:\Users\Simon> (Get-WmiObject -Class BatteryStaticData -Namespace ROOT/WMI).DesignedCapacity
100000
PS C:\Users\Simon> (Get-WmiObject -Class BatteryFullChargedCapacity -Namespace ROOT/WMI).FullChargedCapacity
100000
PS C:\Users\Simon>

IGNORE ME im shatting out my bum this morning,
same issue here when running with nodejs (forgot to check that first instead of powershell)
although the information thats returned is the same as my post above https://github.com/sebhildebrandt/systeminformation/issues/641#issuecomment-1014379338
si.get({battery:'*'}).then((data)=>{ console.log(data); });
{
  battery: {
    hasBattery: true,
    maxCapacity: 0,
    designedCapacity: 0,
    voltage: 0,
    capacityUnit: 'mWh',
    percent: 0,
    currentCapacity: 0,
    isCharging: true,
    timeRemaining: null,
    acConnected: true,
    model: '',
    type: '',
    manufacturer: '',
    serial: ''
  }
}

@babojamo @si458 seems that two of the three powershell commands return data (inside nodes) but the third one not. Need to check this here locally.

@babojamo please can you try applying my patch #642 ? i believe this fixes the issue 👍

@babojamo if you can confirm that the PR #642 fixes it also on your side, I will immediately publish a new version. @si458 Thank you for your support!!!

@sebhildebrandt just pushed new commit to PR
new commit fixes the designedCapacity and fullChargeCapacity for use with powershellStart()

@si458 @sebhildebrandt
Cheers! That fixed the issue, it can now read the battery information!
Thank you so much!

@babojamo @si458 just published a new version 5.10.4 with the PR you provided. Can you test it on your side? Thank you!

@sebhildebrandt i can indeed confirm the battery works as expected, both with powerShellStart() and without powerShellStart()


As a User, I want to create smart contract to log data only, without store anything to state data

some applications do not require to store any state data in blockchain, they just need to log data to guarantee that the data isn't tampered with.
/cc @manh-vv @quocle108 @flowersinthesand

Thanks for your feedback. The current design of Aloxide Model assumes state of models is synced up with smart contract so I think we need to decide a layer to support this.
Maybe https://github.com/lecle/aloxide/issues/13 is similar to this?

[ ] I am going to add one more option to the generating smart contract feature so that it igore the saving data phase.

I think after apply the feature, we can close the #13.

[x] apply change for EOS
[ ] apply change for ICON

@quocle108 or @hoang-dao please help implement part of ICON.

I checked that log data only still generate state table and update actions still check that id is exist in state table.


Implement MqttTopicFilter.builder() without arguments

To be consistent with other builders there should also be a way to create a MqttTopicFilterBuilder without supplying any arguments

done with #149


[GHSA-gc58-v8h3-x2gr] Incorrect Default Permissions in Apache Tomcat

Updates

Affected products

Comments
It appears that this affected the way tomcat was packaged within specific distributions rather than actually affecting the maven artifacts per https://lists.apache.org/thread/0z644xfjo49pn2oxcp9qslkvhhw4tb7q.  I wasn't sure how to best show that though, should this just be marked as withdrawn or something?

Oh interesting. Thanks for the find and yes, I think this is a candidate for withdrawal.


Fatal: "No locks available" with example(s)

Not possible to run the examples ( after creds are set properly ) due to error:
[Error: IO error: could not acquire lock on "<REPO_ROOT>/matrix-bot-sdk/examples/storage/bot_sled/matrix-sdk-crypto/db": Os { code: 37, kind: Uncategorized, message: "No locks available" }] {
  code: 'GenericFailure'
}

Authentication goes fine, it lists off a ton of rooms the bot is already included in ( pre-existing bot user with a lot of unencrypted rooms it is part of ) so I see a ton of these:
{ errcode: 'M_NOT_FOUND', error: 'Event not found.' }

One for each unencrypted room, then the fatal error at the end.
I noticed this with a hand-made bot example, hit that error ( when using a cryptoStore as shown ) and then reproduced it with the examples by invoking a plain:
yarn example:bot

If all support for encryption is removed, everything works fine... but without encryption.
Expected behavior
The bot ought to run with yarn example:bot
... or there needs to be a caveat given in the docs as to why it will break with unencrypted rooms, or there needs to be handling of the unencrypted rooms, if applicable to the example working.
Log snippet
node:internal/process/promises:288
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: IO error: could not acquire lock on "<REPO_ROOT>/matrix-bot-sdk/examples/storage/bot_sled/matrix-sdk-crypto/db": Os { code: 37, kind: Uncategorized, message: "No locks available" }] {
  code: 'GenericFailure'
}

Environment

Linux Mint 21.1 with 5.15.0-71 kernel.
Node: 18.16.0
Yarn: 1.22.19

This seems like a local environment issue ( but still worth tracking down ) ... since I was able to launch the examples as-is, within a vanilla docker container based on the node:18 image.

From some quick research, this appears to be a local issue with your NFS setup. The error is coming from your file system, not the bot-sdk