Feature/dref import template improvements

Addresses:

https://github.com/IFRCGo/go-web-app/issues/1431
https://github.com/IFRCGo/go-web-app/issues/1444

Issues

The data validation is not working on Google Sheets.

Changes

Add "hiddenLabel" for list types to hide labels
Update labels and descriptions on the template export

Includes description for dynamic content

Update styling of the export

Headers and description

Add support for rich text on label and description
Hide options sheet
Rename 'headingType' to 'rowType'
Append 4 new lines on text area to set initial height but also expand
on content
Update the layout of the first sheet.
Update the error message when importing fails.

Template Documents

Template shared by IFRC: 20241022_DREF.import_v2_KJM.xlsx
~Generated template: DREF_Application_Response_import_template_25_10_2024,_16_08_46.xlsx~
~Generated template: DREF_Application_Response_import_template_28_10_2024,_15_09_23.xlsx~
~Generated template: DREF_Application_Response_import_template_29_10_2024,_16_42_36.xlsx~
Generated template: DREF_Application_Response_import_template_30_10_2024,_16_45_09.xlsx

This PR doesn't introduce:

[ ] typos
[ ] conflict markers
[ ] unwanted comments
[ ] temporary files, auto-generated files or secret keys
[ ] console.log meant for debugging
[ ] codegen errors

Questions
Operation Overview

Do we delete the "Essential Information" header?

Event Detail

We cannot group the cells so the description will be repeated for

Did it affect the same population groups?
Did the National Society respond?
Did the National Society request funding from DREF for that event(s)?
If yes, please specify which operations

Do we delete the "If you have answered yes to all questions above, justify why the use of DREF for a recurrent event, or how this event should not be considered recurrent" field?
Do we rename the label "Date of the Event / Date when the trigger was met" to "Date of the Event"?
The description for "Date of the Event" might not be the best choice. "DD/MM/YYYY" can be confusing with "MM/DD/YYYY"
We have added bold style to "Comparative Analysis". Is that correct?
Description has been removed from "Source Information" header. Is that correct?
The description on "Source Information" "Link" will be visible on all repetations. Is that correct?
The description of "Source Information" "Title" and "Link" cannot be grouped.
Header of "Source Information" items is "Red" instead of "Blue"

Actions Needs

The description for "If yes, start date of National Society actions" might not be the best choice. "DD/MM/YYYY" can be confusing with "MM/DD/YYYY"
"National Society Actions" has been hidden to make it consistent with "Planned Interventions" section. Is that correct?
Description has been removed from "National Society Actions" header. Is that correct?
We do not have support for adding variable value on "National Society Actions" items "Description"
Do we need to left align the label for "National Society Actions" items "Description"
Do we rename the label "ICRC" to "Descrption"?
Do we delete the "List coordination mechanisms/platform in place at local/district and national level. Indicate the lead authorities/agencies. How the National Society is involved/positioned in this coordination. Does the NS in any lead/co-lead role? Any identified gap/overlap in the coordination (e.g., sector missing…)?" field?
We do not have support for adding variable value on "Needs Identified" items "Description"
Do we need to left align the label for "Needs Identified" items "Description"

Operations

Do we need to left align the label for "Targeted Population: Women"
Do we need to left align the label for "Targeted Population: Men"
Do we need to left align the label for "Targeted Population: Girls (under 18)"
Do we need to left align the label for "Targeted Population: Boys (under 18)"
Do we need to left align the label for "Targeted Population: Total"
Do we need to left align the label for "Estimated Percentage: People with Disability"
Do we need to left align the label for "Estimated Percentage: Urban"
Do we need to left align the label for "Estimated Percentage: Rural"
Do we need to left align the label for "Estimated number of People on the move (if any)"
Do we need to left align the label for "Risk and security considerations" item's "Risk"
Do we need to left align the label for "Risk and security considerations" item's "Mitigation actions"
Do we need to left align the label for "Requested Amount in CHF"
The description will be repeated for "Planned Interventions" item's "Budget"
The description will be repeated for "Planned Interventions" item's "Person Targeted"
Do we need to left align the label for "Planned Interventions" item's "Budget"
Do we need to left align the label for "Planned Interventions" item's "Person Targeted"
Do we need to left align the label for "Planned Interventions" item's "List of Activities"
The description will be repeated for "Indicators" item's "Title"
The description will be repeated for "Indicators" item's "Target"
Do we need to left align the label for "Indicators" item's "Title"
Do we need to left align the label for "Indicators" item's "Target"

Timeframe and Contacts

The description for "Date of the Event" might not be the best choice. "DD/MM/YYYY" can be confusing with "MM/DD/YYYY"

Addresses:

https://github.com/IFRCGo/go-web-app/issues/1431

Issues

The data validation is not working on Google Sheets.

Changes

Add "hiddenLabel" for list types to hide labels

Update labels and descriptions on the template export

Includes description for dynamic content

Update styling of the export

Headers and description

Add support for rich text on label and description

Hide options sheet

Rename 'headingType' to 'rowType'

Append 4 new lines on text area to set initial height but also expand
on content

Update the layout of the first sheet.

Template Documents

Template shared by IFRC: 20241022_DREF.import_v2_KJM.xlsx

~Generated template: DREF_Application_Response_import_template_25_10_2024,_16_08_46.xlsx~

~Generated template: DREF_Application_Response_import_template_28_10_2024,_15_09_23.xlsx~

Generated template: DREF_Application_Response_import_template_29_10_2024,_16_42_36.xlsx

This PR doesn't introduce:

[ ] typos

[ ] conflict markers

[ ] unwanted comments

[ ] temporary files, auto-generated files or secret keys

[ ] console.log meant for debugging

[ ] codegen errors

Questions
Operation Overview

Do we delete the "Essential Information" header? - YES THAT IS CORRECT

Event Detail

We cannot group the cells so the description will be repeated for - THAT IS FINE

Did it affect the same population groups?

Did the National Society respond?

Did the National Society request funding from DREF for that event(s)?

If yes, please specify which operations

Do we delete the "If you have answered yes to all questions above, justify why the use of DREF for a recurrent event, or how this event should not be considered recurrent" field? - NO, SHOULD REMIND.

Do we rename the label "Date of the Event / Date when the trigger was met" to "Date of the Event"? - NO, TO KEEP AS "Date of the Event / Date when the trigger was met"

The description for "Date of the Event" might not be the best choice. "DD/MM/YYYY" can be confusing with "MM/DD/YYYY" - IFRC DESING GUIDELINES REQUIRE US TO KEEP DATES AS DD/MM/YYYY FOR ALL DOCUMENTS

We have added bold style to "Comparative Analysis". Is that correct? - YES

Description has been removed from "Source Information" header. Is that correct? YES

The description on "Source Information" "Link" will be visible on all repetations. Is that correct? YES BETTER TO SHOW IN ALL

The description of "Source Information" "Title" and "Link" cannot be grouped. - LETS KEEP IT FOR THE "Link" FIELD ONLY

Header of "Source Information" items is "Red" instead of "Blue" - LETS KEEP IT BLUE

Actions Needs

The description for "If yes, start date of National Society actions" might not be the best choice. "DD/MM/YYYY" can be confusing with "MM/DD/YYYY" - SEE ABOVE, LETS KEEP IT AS SUCH

"National Society Actions" has been hidden to make it consistent with "Planned Interventions" section. Is that correct? - CORRECT

Description has been removed from "National Society Actions" header. Is that correct? - CORRECT

We do not have support for adding variable value on "National Society Actions" items "Description" - DO NOT UNDERSTAND THIS ONE

Do we need to left align the label for "National Society Actions" items "Description" - LEAVE AS IN VERSION SHARED BY YOU

Do we rename the label "ICRC" to "Descrption"? -YES, LEAVING THE HEADING "ICRC Actions Related to the Current Event"

Do we delete the "List coordination mechanisms/platform in place at local/district and national level. Indicate the lead authorities/agencies. How the National Society is involved/positioned in this coordination. Does the NS in any lead/co-lead role? Any identified gap/overlap in the coordination (e.g., sector missing…)?" field? - YES, repeats with the above "Are there any Major Coordination Mechanism in place?" THIS IS ACTUALLY GUIDANCE FOR THAT FIELD, AND NOT A FIELD IN ITSELF

We do not have support for adding variable value on "Needs Identified" items "Description" - DO NOT UNDERSTAND

Do we need to left align the label for "Needs Identified" items "Description" - NO, LEAVE AS CURRENT

Operations

Do we need to left align the label for "Targeted Population: Women" NO, LEAVE AS CURRENT FOR ALL

Do we need to left align the label for "Targeted Population: Men"

Do we need to left align the label for "Targeted Population: Girls (under 18)"

Do we need to left align the label for "Targeted Population: Boys (under 18)"

Do we need to left align the label for "Targeted Population: Total"

Do we need to left align the label for "Estimated Percentage: People with Disability"

Do we need to left align the label for "Estimated Percentage: Urban"

Do we need to left align the label for "Estimated Percentage: Rural"

Do we need to left align the label for "Estimated number of People on the move (if any)"

Do we need to left align the label for "Risk and security considerations" item's "Risk"

Do we need to left align the label for "Risk and security considerations" item's "Mitigation actions"

Do we need to left align the label for "Requested Amount in CHF"

The description will be repeated for "Planned Interventions" item's "Budget"

The description will be repeated for "Planned Interventions" item's "Person Targeted"

Do we need to left align the label for "Planned Interventions" item's "Budget"

Do we need to left align the label for "Planned Interventions" item's "Person Targeted"

Do we need to left align the label for "Planned Interventions" item's "List of Activities"

The description will be repeated for "Indicators" item's "Title"

The description will be repeated for "Indicators" item's "Target"

Do we need to left align the label for "Indicators" item's "Title"

Do we need to left align the label for "Indicators" item's "Target"

Timeframe and Contacts

The description for "Date of the Event" might not be the best choice. "DD/MM/YYYY" can be confusing with "MM/DD/YYYY" - LEAVE DD/MM/YYYY

Thank you for the answers, @marcovvu1 . They were implemented and pushed to Staging in the go-web-app v7.6.2 Staging deployment yesterday.
However, we would like to note a few points:
Missing / to be implemented

Description/guideline missing for Operations > Requested Amount in CHF. Description to be added: General funding requested to fund the interventions.
DREF Import Template> Estimated number of people on the move should be Number in the description instead of Percentage

(We will implement and push these 2 in the next Prod release)
Questions

In the Event Details tab, the following radio button question should appear only if the previous question was answered with "Yes." Each radio button question should have a unique description that directly references the preceding question, rather than repeating the same description across all radio button options.
For example, the descriptions could be as follows:
Indicate only if there was a similar event affecting the same area in the last 3 years. Otherwise, leave the box empty.
Indicate only if it affected the same population groups. Otherwise, leave the box empty.
Indicate only if the national society responded. Otherwise, leave the box empty.
Indicate only if the national society requested funding from DREF for that event. Otherwise, leave the box empty.

In the Actions/Needs tab, when clicked on ‘Yes’ for the ‘Are there major coordination mechanisms in place?’, the DREF form displays a description box which is missing on the DREF import template.

cc @tnagorra @shraeyaa

Thanks @udaynwa, on your two questions.
Agree with the proposed guidance for the questions that cascade
On the second point, yes indeed, that long text field should be available in the import template.
Cc @tovari @anamariaescobar


deleted cross icon

modals in task ,movie and idea section is smaller. also removed the cross icons


Param table

This PR makes a table of model parameters suitable for publication.
The PR also removes some old graphing modules that have been replaced by output_plots.py.

Codecov Report

Merging #509 into master will decrease coverage by 0.08%.
The diff coverage is 38.46%.

@@            Coverage Diff             @@
##           master     #509      +/-   ##
==========================================
- Coverage   65.94%   65.85%   -0.09%
==========================================
  Files          48       48
  Lines        5714     5723       +9
==========================================
+ Hits         3768     3769       +1
- Misses       1946     1954       +8

Impacted Files
Coverage Δ

ogusa/constants.py
100% <100%> (ø)
:arrow_up:

ogusa/output_tables.py
60.75% <100%> (-0.5%)
:arrow_down:

ogusa/parameter_tables.py
34.37% <27.27%> (-3.81%)
:arrow_down:

Continue to review full report at Codecov.

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

I'm also using this PR to add an expected output file and scripts to test that file against one generated from the run_ogusa_example.py script.  This will help to address Issue #487.

Example of table output in html:
from ogusa.parameters import Specifications
import ogusa.parameter_tables as pt
p = Specifications()
p.compute_default_params()
pt.param_table(p, table_format='html')

'    Symbol Description Value     0 $\texttt{start_year}$ Initial year 2019   1 ${{\omega_{s,t}}}{s=1}^{S}$ Population by age over time See elsewhere   2 ${{i{s}}}{s=1}^{S}$ Immigration rates by age See elsewhere   3 ${{\rho{s}}}{s=1}^{S}$ Mortality rates by age [0.001...1.000]   4 ${{e{j,s}}}{j,s=1}^{J,S}$ Deterministic ability process See elsewhere   5 ${{\lambda{j}}}{j=1}^{J}$ Lifetime income group percentages See elsewhere   6 $J$ Number of lifetime income groups 7   7 $S$ Maximum periods in economically active individual life 80   8 $E$ Number of periods of youth economically outside the model 20   9 $T$ Number of periods to steady-state 320   10 $R$ Retirement age [65.000...65.000]   11 $\tilde{l}$ Maximum hours of labor supply 1.000   12 $\beta$ Discount factor 0.960   13 $\sigma$ Coefficient of constant relative risk aversion 1.500   14 $\nu$ Frisch elasticity of labor supply 0.400   15 $b$ Scale parameter in utility of leisure 0.573   16 $\upsilon$ Shape parameter in utility of leisure 2.856   17 $\left{\chi^{n}{s}\right}{s=1}^{S}$ Disutility of labor level parameters [38.120...76.623]   18 $\left{\chi^{b}{j}\right}{j=1}^{J}$ Utility of bequests level parameters [80.000...80.000]   19 $\texttt{use_zeta}$ Whether to distribute bequests between lifetime income groups 0.00E+00   20 $\zeta$ Distribution of bequests See elsewhere   21 $Z{t}$ Total factor productivity [1.000...1.000]   22 $\gamma$ Capital share of income 0.350   23 \varepsilon Elasticity of substitution between capital and labor 1.000   24 $\delta$ Capital depreciation rate 0.050   25 $g_{y}$ Growth rate of labor augmenting technological progress 0.030   26 $\texttt{tax_func_type}$ Functional form used for income tax functions DEP   27 $\texttt{analytical_mtrs}$ Whether use analytical MTRs or estimate MTRs 0.00E+00   28 $\texttt{age_specific}$ Whether use age-specific tax functions 1.000   29 $\tau^{p}{t}$ Payroll tax rate [0.000...0.000]   30 $\tau^{BQ}{t}}$ Bequest (estate) tax rate [0.000...0.000]   31 $\tau^{b}{t}$ Entity-level business income tax rate [0.036...0.036]   32 $\delta^{\tau}{t}$ Rate of depreciation for tax purposes [0.027...0.027]   33 $\tau^{c}{t,s,j}$ Consumption tax rates See elsewhere   34 $H$ Coefficient on linear term in wealth tax function [0.100...0.100]   35 $M$ Constant in wealth tax function [1.000...1.000]   36 $P$ Coefficient on level term in wealth tax function [0.000...0.000]   37 $\texttt{budget_balance}$ Whether have a balanced budget in each period 0.00E+00   38 $\texttt{baseline_spending}$ Whether level of spending constant between the baseline and reform runs 0.00E+00   39 $\alpha^{T}{t}$ Transfers as a share of GDP [0.090...0.090]   40 $\eta_{j,s,t}$ Distribution of transfers See elsewhere   41 $\alpha^{G}{t}$ Government spending as a share of GDP [0.050...0.050]   42 $t{G1}$ Model period in which budget closure rule starts 20   43 $t_{G2}$ Model period in which budget closure rule ends 256   44 $\rho_{G}$ Budget closure rule smoothing parameter 0.100   45 $\bar{\alpha}{D}$ Steady-state Debt-to-GDP ratio 1.000   46 $\alpha{D,0}$ Initial period Debt-to-GDP ratio 0.780   47 $\tau_{d,t}$ Scale parameter in government interest rate wedge 1.000   48 $\mu_{d,t}$ Shift parameter in government interest rate wedge 0.00E+00   49 $\texttt{AIME_num_years}$ Number of years over which compute AIME 35   50 $\texttt{AIME_bkt_1}$ First AIME bracket threshold 749.000   51 $\texttt{AIME_bkt_2}$ Second AIME bracket threshold 4517.000   52 $\texttt{PIA_rate_bkt_1}$ First AIME bracket PIA rate 0.900   53 \texttt{PIA_rate_bkt_2} Second AIME bracket PIA rate 0.320   54 $\texttt{PIA_rate_bkt_3}$ Third AIME bracket PIA rate 0.150   55 $\texttt{PIA_maxpayment}$ Maximum PIA payment 3501.000   56 $\texttt{PIA_maxpayment}$ Minimum PIA payment 0.00E+00   57 $theta_{adj,t}$ Adjustment to replacement rate [1.000...1.000]   58 $\texttt{small_open}$ Whether modeling a small, open economy 0.00E+00   59 $r^{*}{t}$ World interest rate [0.040...0.040]   60 $D{f,0}$ Share of government debt held by foreigners in initial period 0.00E+00   61 $\zeta_{D, t}$ Share of new debt issues purchased by foreigners [0.000...0.000]   62 $\zeta_{K, t}$ Share of excess capital demand satisfied by foreigners [0.000...0.000]   63 $\xi$ Dampening parameter for TPI 0.400   64 $\texttt{maxiter}$ Maximum number of iterations for TPI 250   65 $\texttt{mindist_SS}$ SS solution tolerance 1.00E-09   66 $\texttt{mindist_TPI}$ TPI solution tolerance 1.00E-05  '

@rickecon This PR his ready for your review.


fix Issue 18519: missing curl + phobos = std.net.curl unittest timing out

Second attempt at fixing the issue.
Only a little sceptical that this is more correct here - calling shutdown is recommended however in the docs.  In any case, I can no longer reproduce this on Linux after applying patch.

std.socket.SocketAcceptException@std/socket.d(2848): Unable to accept socket connection: Bad file descriptor
----------------
****** FAIL debug32 std.net.curl
std.net.curl.CurlException@std/net/curl.d(4203): Failed to load curl, tried "libcurl.so", "libcurl.so.4", "libcurl-gnutls.so.4", "libcurl-nss.so.4", "libcurl.so.3".
----------------
gmake[1]: *** [posix.mak:386: unittest/std/net/curl.run] Error 1
gmake[1]: *** Waiting for unfinished jobs....

In the context of the issue, this means PASS.

However, as people like the auto-tester to be green, I'll partially undo the last commit I guess...

Moved disabling of tests to the makefile, rather than the module, which prevented tests from running on FreeBSD regardless of what compiler is building.

Should be good to go.

Doc tester
Cloning into '../dub'...
fatal: unable to access 'https://github.com/dlang/dub/': Could not resolve host: github.com
posix.mak:593: recipe for target '../dub' failed

CC @CyberShadow this doc failure seems to happen more often these days :/

CC @CyberShadow this doc failure seems to happen more often these days :/

Forgot to reply but I think I found & fixed the problem yesterday.

Nice, thanks!

Nice, thanks!


avoid using properties for versions inside pom.xml

there is an issue preventing reflections 0.9.9-RC2 to be used with scala sbt build system.
https://github.com/sbt/sbt/issues/1774

0.9.9 works! thx!


@uplift/strings cannot be used with client-side Remix

When using Remix, @uplift/strings fails if it is used in client side code. This is because of the following import tree:

https://github.com/uplift-ltd/nexus/blob/master/packages/strings/src/index.ts imports
https://github.com/uplift-ltd/nexus/blob/master/packages/strings/src/urls.ts imports
@uplift-ltd/constants which imports
https://github.com/uplift-ltd/nexus/blob/master/packages/constants/src/index.ts that references
process.env

Since process.env doesn't exist in the client (and Remix doesn't do compile-time replacements like NextJS), this fails.
Currently, this library can only be used server-side unless the consumer polyfills process.env. The library can be exported from a *.server.ts file to ensure it's never loaded on the client.

@nakleiderer Hm, I haven't tried remix yet. How does *.server.ts work? Mainly, how do we keep compatibility with with other frameworks? Do we just rename constants.ts to constants.server.ts and point index.ts to export constants.server? Or would the remix client still load the code if you specifically import *.server?
We also use process.env in urls.ts which we'll have to update.

Refactoring any code that's intended to run on the client so it doesn't assume the existence of process.env is the best way to be compatible. Frameworks like NextJS automatically inject process.env, but if someone were to attempt a vanilla React project, this would blow up for them as well. Using process.env assumes the consumer of the library uses specific build tools that define process.env
For this project, I think the easiest way to solve this would be to have this line at the top of any file using the node process global:
const process = globalThis.process || { env: {} }
globalThis is available on the client and on the server, so this code can safely run anywhere. If it's on the server environment, the process data will be found. If it's on the client, it'll fall back to an env shim.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/globalThis

That makes sense! Wanna PR it?


[Dropdown] Should not lose z-index due to blurring modal

See: http://jsfiddle.net/s3rux404/2/

Seems like whatever CSS is being applied when the modal dialog is activated with blurring: true causes some z-index confusion.  Disabling blurring fixes the issue.

Blurring applies filters on any direct children to body. Filters like transform will affect stacking context due to bizarre w3c decisoins.
Add a wrapping div to solve.
http://jsfiddle.net/z3j2zzx2/


What

I liked the article, it was very interesting and informative.

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

ID: d8df167b-3d6a-ebd1-4401-4596565b9238
Version Independent ID: 56c40693-376f-4a86-ca85-5ecfd9cb3558
Content: What is Microsoft Defender for Identity? - Microsoft Defender for Identity
Content Source: ATPDocs/what-is.md
Service: microsoft-defender-for-identity
GitHub Login: @dcurwin
Microsoft Alias: dacurwin

Thanks!


Disable AVX2 support for reed solomon when reconstructing slabs

This PR is a temporary workaround for https://github.com/klauspost/reedsolomon/issues/240

@ChrisSchinnerl Don't panic. I will release a fix shortly.


FRONTEND WITH FRAMEWORK: Angular -> Dynamic Components in Angular

What are Dynamic Components?
When we use them?
How to create ?

Note:-

Don't even think about copy pasting we after reviewing would be merging the PR.
Changes should be made inside "Frontend_Web_Development_React_Angular_Vue/Angular/Week1" directory
Tasks would be assigned on First Come First Serve Basis.

I would like to work on this issue, Kindly assign it to me.

go for it!

go for it!

hi, I am interested in this issue, will do contribute via docs.
-Vaishnavi
-Batch-4

@RIYANSHGARG any updates on this?

I am working on this and till morning I will create a pull request


Improve tslint support in templates

[ ] Add dependency on tslint and tslint-microsoft-contrib
[ ] Add tslint.json extending tslint-microsoft-contrib
[ ] Run tslint in pre-commit

Closing due to move towards eslint, but this concern would still be valid there.


Cant install version webpack 1.13.3

I'm submitting a bug report
Webpack version:
1.13.3
Please tell us about your environment:
any
Current behavior:
Cannot install with a package.json that has a ^ symbol as it tries to install 1.13.3 and that version appears to not be available.
Expected/desired behavior:

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem along with a gist/jsbin of your webpack configuration.
set your package.json to 1.13.3 and try to npm install

Do you still have to issue? It seems to have been published fine, so I don't think this is a webpack issue.

Closing since I can't reproduce this and if it would be reproducible, it's a npm issue.


Feature Request: Advanced DI Documentation / Cookbook

So having spent time figuring out how to convert various oddities of my app into Aurelia's dependency injection system, I would like to see an "advanced" document (since the current one is called "basics"), or perhaps a cookbook that shows some advanced patterns with light commentary. I eventually came across https://github.com/aurelia/dependency-injection/issues/57 and https://github.com/aurelia/dependency-injection/issues/38, which pointed me in the right direction.
As far as I can tell, the DI system exports a number of interesting functions that aren't mentioned, or are mentioned in passing in the basic documentation (e.g. Factory, FactoryInvoker).
My ideal cookbook would include:

@inject will silently succeed and pass undefined if called before there's an initialized container. (Oops...)

If one wants to pass both injected arguments and constructor arguments, one needs a factory class / function (e.g. like the subsequent one).

Discussion of using the injection system from an arbitrary point (e.g. testing or writing a factory point), such as:
import {Container} from 'aurelia-framework'
function myWidgetFactory(...args) {
    let container = Container.instance;
    let resource = container.get(ResourceType);
    return new Widget(resource, ...args);
}

The key aspect here, I think, are the ability to access the root container.

Examples of the Factory() usage outside the context of @inject. I realized while learning the above code that I can do something like:
function interestingIfNotUsefulPattern(...someArgs) {
    let factoryBase = Factory.of(GenericClass);
    let factory = factoryBase.get(currentContainer);
    return factory(...someArgs);
}

Seeing the ability to do the above, completely independent of injection, helped orient me to how Factory was working, and how it might be interesting to leverage in other circumstances than injecting with a decorator.

Consider whether any of the undocumented methods (e.g. FactoryInvoker, invoker, invokeAsFactory) make any sense to document.

I'm not entirely sure that's the right way to format the documentation, but having gotten to the point where I now have working code, it's my best suggestion for helping others learn better.

@rayalan would you like to help out with this one and provide a PR?


add other class id to snorkel

Before:

Negative samples are always filtered out
Setting filter-non-labelled to False had no effect

After:

LabelModel generates labels for the "positive" examples with rule matches
Negative examples are added directly to the final training data with a respective other_class_id

closes #271


Add man page; improve CLI ergonomics; simplify config docs

As requested in https://github.com/firefly-cpp/uARMSolver/issues/8, this PR contains a man page.
It also contains a few typo fixes.
I suggested a couple of compatible improvements to the command-line option parsing that I think would make using the command simpler and less surprising.
In the final commit, I heavily edited the configuration file documentation for simplicity and clarity. You didn’t ask me to do that, and I am happy to revert or further modify this commit if you’re not happy with the result. However, I think there is a good chance that you will find it to be an improvement.
I’m happy to accept any feedback and make further revisions if needed.

Ben, this is brilliant! Great! Many thanks.


perf(linter): use simd (memchr) for no-useless-escape search

Current dependencies on/for this PR:

main

PR #1766   👈

This stack of pull requests is managed by Graphite.

@camc314 This is pretty cool, you may use the same technique in other places 😁

The benchmark doesn't have enough strings.

@camc314 This is pretty cool, you may use the same technique in other places 😁

Yeah this is awesome 👀


Do not truncate reported strings

resolves #173

Codecov Report

Merging #174 into master will decrease coverage by 0.02%.
The diff coverage is 100%.

@@             Coverage Diff              @@
##             master     #174      +/-   ##
============================================
- Coverage     79.58%   79.55%   -0.03%
+ Complexity      448      445       -3
============================================
  Files            76       76
  Lines          1729     1722       -7
  Branches        192      191       -1
============================================
- Hits           1376     1370       -6
+ Misses          267      266       -1
  Partials         86       86

Impacted Files
Coverage Δ
Complexity Δ

...-core/src/main/java/com/uber/jaeger/Constants.java
0% <ø> (ø)
0 <0> (ø)
:arrow_down:

...ber/jaeger/senders/zipkin/ThriftSpanConverter.java
83.33% <100%> (+1.85%)
19 <0> (ø)
:arrow_down:

...reporters/protocols/JaegerThriftSpanConverter.java
91.8% <100%> (-0.51%)
17 <0> (-2)

.../uber/jaeger/samplers/RemoteControlledSampler.java
91.54% <0%> (-1.41%)
18% <0%> (-1%)

Continue to review full report at Codecov.

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


consistency on class inheriting object

class WriteInfo(object): and class FileCache are both correct ways but we should standardize.

6400dd2995e638d502601de4c2553709d0b4117f


broken

What is broken?

Thank you Seanlth, for bringing this issue to our attention.
Our team will do all that we can to fix it.


How to Change Lookup Value feild to Something else

I want my lookups value field should be some thing other than ID field of ROW
that is my below code, now when i click NewPerson Add form it throws DB Foreign key constraint,
Issue is In DepartmentCode feild in PersonRow it passed Select Value field as ID of DepartmentRow.
rather i want to map this to DepartmentCode field from Department Row.
To be simple, i want to change select value field of to other field from Lookup row other than Row ID Feild
DepartmentEdior.ts
``
namespace Nemo.Default {
@Serenity.Decorators.registerEditor()
export class DepartmentEditor extends Serenity.LookupEditorBase<Serenity.LookupEditorOptions, DepartmentRow> {

    constructor(hidden: JQuery) {
        super(hidden);
    }

    protected getLookupKey() {
        return DepartmentRow.lookupKey;
    }

    protected getItemText(item, lookup) {
        return item.DepartmentCode + ' [' + item.DepartmentName + ']';
    }
}

}
``
PersonRow
``
    [DisplayName("Person Code"), Size(50), PrimaryKey, ForeignKey("[dbo].[Persons]", "PersonCode"), LeftJoin("jPersonCode"), TextualField("PersonCodePersonName")]
    [DepartmentEditor]
    public String PersonCode
    {
        get { return Fields.PersonCode[this]; }
        set { Fields.PersonCode[this] = value; }
    }

    [DisplayName("Person Id"), Expression("jPersonCode.[PersonID]")]
    public Int32? PersonCodePersonId
    {
        get { return Fields.PersonCodePersonId[this]; }
        set { Fields.PersonCodePersonId[this] = value; }
    }

    [DisplayName("Person Name"), Expression("jPersonCode.[PersonName]")]
    public String PersonCodePersonName
    {
        get { return Fields.PersonCodePersonName[this]; }
        set { Fields.PersonCodePersonName[this] = value; }
    }

DepartmentRow
[LookupScript("DepartmentCode"),LookupEditor("DepartmentCode")]
public sealed class DepartmentsRow : Row, IIdRow, INameRow
{

    [DisplayName("Department Id"), Column("DepartmentID"), Identity]
    public Int32? DepartmentId
    {
        get { return Fields.DepartmentId[this]; }
        set { Fields.DepartmentId[this] = value; }
    }

    [DisplayName("Department Name"), Size(100), QuickSearch]
    public String DepartmentName
    {
        get { return Fields.DepartmentName[this]; }
        set { Fields.DepartmentName[this] = value; }
    }

    [DisplayName("Department Code"), Size(50), NotNull,LookupInclude]
    public String DepartmentCode
    {
        get { return Fields.DepartmentCode[this]; }
        set { Fields.DepartmentCode[this] = value; }
    }

    IIdField IIdRow.IdField
    {
        get { return Fields.DepartmentId; }
    }

    StringField INameRow.NameField
    {
        get { return Fields.DepartmentName; }
    }

    public static readonly RowFields Fields = new RowFields().Init();

    public DepartmentsRow()
        : base(Fields)
    {
    }

    public class RowFields : RowFieldsBase
    {

        public Int32Field DepartmentId;

        public StringField DepartmentName;

        public StringField DepartmentCode;

	}
}

see https://serenity.is/demo/BasicSamples/ChangingLookupText#!1
On Basic Samples

This is by design not possible, if I understand Volkan correctly (I had the same request some years earlier :-)).
Within your row, you should not store Department code directly but the ID of the department code.
If you do the linking (Diagramming and setting keys) of the tables before you do import them into your project with sergen then sergen will add foreign fields of your department table into the main xyzRow.cs and then you can use e.g. Department code foreign field to display within grid - and if you add the [lookupScript] within the DepartmentRow.cs and [LookupEditor] on the departmentId field within your main row it will automatically display the DepartmenCode instead of the Id.
Hope this helps.
With kind regards,
John

@JohnRanger Thanks.!


day2

Next time could you please create a branch instead of pushing from your main to the repo main ?
I'm struggling to get your branch locally to test the code because I already have a main branch locally.


onEnd being called twice, if muted property missing, or source has dynamically changed

when I log something to the console, I'm seeing onEnd being called twice when the video ends... anyone else getting this behavior?

To be clear, I tested the example repo and couldn't reproduce this. But a minimal test in my own app still resulted in it being called twice.
Heres what I tested in my repo
<Video   source={{uri: 'https://media.w3.org/2010/05/sintel/trailer.mp4' }}   style={styles.videoPlayer}   paused={false}   onEnd={() => {     console.log('Video ended');     }}   repeat={true} />
here are my versions
"dependencies": {
"react": "^0.14.7",
"react-native": "^0.22.2",
"react-native-camera": "git+https://github.com/lwansbrough/react-native-camera.git",
"react-native-emoji": "^1.1.2",
"react-native-image-picker": "^0.18.15",
"react-native-sortable-listview": "0.0.6",
"react-native-swiper": "^1.4.3",
"react-native-video": "^0.8.0-rc",
"react-redux": "^4.4.2",
"redux": "^3.4.0",
"redux-logger": "^2.6.1",
"redux-thunk": "^2.0.1",
"reselect": "^2.3.0"
},

I updated my react to 14.8, and react native to 0.23.0 (as in the example), removed node_modules and NPM installed, and I'm still seeing the "Video ended" logged in the console twice.

Using just <Video source={{uri: 'https://media.w3.org/2010/05/sintel/trailer.mp4' }} style={styles.videoPlayer} paused={false} onEnd={() => { console.log('Video ended'); }} repeat={true} /> in the example repo I was able to reproduce that onEnd is called twice on video end.

Seems like it has to do with the "muted" property existing or not. Although, my original  instance did have muted defined, so still digging.

Ok. That definitely seemed to be the original issue.
However, after the source changes (at least one time), the onEnd callback will be called twice after each play. This only seems to happen after the source changes, so I imagine somewhere there are two instances that exist.

It seems if I play two separate video instances (source doesn't need to be changed), onEnd is still called twice

I somehow forgot about debounce, so - anyone who might experience this in the future, don't forget about that.

@getnashty how you solve this issue?

@stereodenis I just included import debounce from 'lodash.debounce';
and then  onEnd={debounce(this.myFn, 100)}
that seems to do the trick!

@getnashty why you close issue? I think this issue is actual and debounce is a hack
@brentvatne what do you think?

Yeah, I'm trying to get multiple videos playing in succession and I'm getting this issue as well.

Thats also what I'm doing @rclai, there are plans to add official support for playing multiple videos back to back, but until then this hack seems to work.

+1


Implement Markdown Changelog Message Feature in Inbox System

The task involves implementing a changelog message feature to our inbox system before the public launch of the dimension project. The changelog messages should be in markdown format to allow for inclusion of release notes with images.
Here are the steps to complete the task:

Design the structure of the changelog message. It should include a short title, description for preview, author, and date published.

Implement the designed structure into our inbox system using markdown format.

Test the implementation to ensure that it works as expected and is user-friendly.

Coordinate with the design team to ensure the visual appeal of the changelog messages.

Prepare a sample changelog message for testing purposes.

After successful testing, integrate the feature into the main system.

Document the process and update the project tracking tool.

I'm already on it


SQLtabledependency work fine when a update/delete or insert works. But if a trigger update the monitored data ??

SQLtabledependency work fine when a update/delete or insert works. But if a trigger updates the monitored data there is no notification back. Is this by design ??

Table B is monitored via SqlTableDependency . TABLE A Triggers updates tables B. When changes occur via this mechanism , an update/delete or insert does not work. However if a SQL Statement via Studio is used or the row is modified. Then
SQLTableDependency works okay. An a appropriate notification is generated

For Information sake . The Permissions were set up was
EXEC sp_addrole 'sql_dependency_subscriber'
-- Permissions needed for [sql_dependency_subscriber]
GRANT SELECT to [sql_dependency_subscriber]
GRANT SUBSCRIBE QUERY NOTIFICATIONS TO [sql_dependency_subscriber]
GRANT RECEIVE ON QueryNotificationErrorsQueue TO [sql_dependency_subscriber]
GRANT REFERENCES on CONTRACT::[http://schemas.microsoft.com/SQL/Notifications/PostQueryNotification] to [sql_dependency_subscriber]
GRANT ALTER to [sql_dependency_subscriber]
GRANT CONNECT to [sql_dependency_subscriber]
GRANT ALTER ON SCHEMA::dbo to sql_dependency_subscriber
GRANT CONTROL ON SCHEMA::dbo to sql_dependency_subscriber
GRANT CONTROL to sql_dependency_subscriber
GRANT CREATE CONTRACT to sql_dependency_subscriber
GRANT CREATE MESSAGE TYPE to sql_dependency_subscriber
GRANT CREATE PROCEDURE to [sql_dependency_subscriber]
GRANT CREATE QUEUE to [sql_dependency_subscriber]
GRANT CREATE   to [sql_dependency_subscriber]
GRANT EXECUTE to sql_dependency_subscriber
GRANT VIEW DATABASE STATE to sql_dependency_subscriber
GRANT VIEW DEFINITION to [sql_dependency_subscriber]
-- Making sure that my users are member of the correct role.
EXEC sp_addrolemember 'sql_dependency_subscriber', 'subscribeUser'

@glenfrendo I had the same challenge. There is a setting on your SQL Server instance to check. In the advanced settings of the instance:

or
EXEC sys.sp_configure N'nested triggers'
This setting should not be changed on a whim as it has implications that need to be considered first. I have one instance where I have enabled this configuration and I am getting the changes I am expecting including the expected modifications done by the trigger.
Another consideration is the order triggers are fired. Since SqlTableDependency creates a trigger on the target table, if the table has another trigger on it, you will need to reason about what order the triggers should fire. This article might be helpful in that scenario.
One last consideration I had to make for my scenario (may or may not be applicable to you). The existing trigger on the table I wanted to monitor changes on called a stored proc. That stored proc returns the value of an identity column from the row that was inserted. The original design of the stored proc caused a null value to be passed back to the original trigger when another trigger was fired on that table. I cannot recall why this was exactly, but the solution was to use SCOPE_INDENTITY() in the stored proc to get the value of the identity column to return.
Hope this helps with your specific use case!

Yes that was it . Thanks for the confirmation. After down loading the appropriate SQLTabledependency source  I found I could eliminate SQLtableDependency as having this issue. And could by setting up the appropriate triggers reproduce this issue. The question for me was what was the default .  By default, the Nested Triggers option is enabled.  Unfortunately this meant  the system was changed for some reason.  Again thanks for the confirmation. It was helpful.

Dear glenfrendo, fluxium
if you describe me the fix you implemented, i will apply to the source code and i will deploy a new NuGet package.
Thanks

Dear Christian,
It was found as per issue in you repository that there was no issue with the SQLTabledependency. What happen was the system setting of the sql instance had changed so as not to allow nested triggers.
I proved this by downloading your source and working through this then discounting your SqlTableDependency library . I simulated this by setting up a second trigger in SQL Server on the table in question. Without running your lib I could reproduce the problem [ Then Identified it and subsequently fixed it].
I have detailed this in your repository.
Sorry that I ran to conclusion but until I pulled a copy of the source from the repository, I could not discount it.
Thanks
Glen Frendo

From: Christian Del Bianco<EMAIL_ADDRESS>Sent: Tuesday, 8 September 2020 9:22 PM
To: christiandelbianco/monitor-table-change-with-sqltabledependency<EMAIL_ADDRESS>Cc: Glen Frendo<EMAIL_ADDRESS>State change<EMAIL_ADDRESS>Subject: Re: [christiandelbianco/monitor-table-change-with-sqltabledependency] SQLtabledependency work fine when a update/delete or insert works. But if a trigger update the monitored data ?? (#208)
Dear glenfrendo, fluxium
if you describe me the fix you implemented, i will apply to the source code and i will deploy a new NuGet package.
Thanks
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHubhttps://github.com/christiandelbianco/monitor-table-change-with-sqltabledependency/issues/208#issuecomment-688803856, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMPDNENAXZEUNFP3HH2VZR3SEYHXFANCNFSM4QL34DBA.


Fix multi-import syntax

This is fine, but the existing syntax is actually correct...

Is this an improvement? Should I close this since it's valid?

The issue that you are running into is that you need to update emberjs-build to use esperanto for backburner (not the older es6-module-transpiler).  This change is pending in https://github.com/emberjs/emberjs-build/pull/84 (might need more tweaks).

@rwjblue :recycle:

LGTM, does ember's build agree?

yup, we're now failing on rsvp for the same reason

@rwjblue whack-a-mole engaged https://travis-ci.org/emberjs/ember.js/jobs/57738984


Repo sync for protected CLA branch

The pull request is created from master637396758757984661 to master to fix git push error for protected CLA branch

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


bytecode: Implement for loops

Add OpStepRange and OpIterRange which push the result of evaluating
the condition of the loop onto the stack to be evaluated by OpJumpOnFalse.
Both the initialization of the loop variable, and the increment are output as
bytecode. This focuses the complexity in the compiler and follows our
general philosophy of "keeping the vm simple".
Co-authored-by: joshcarp<EMAIL_ADDRESS>

I have pushed my changes that rework this PR that addresses a few issues raised on discord:

It no longer re-evaluates the expressions used in the loop, as per the spec.
It does not create a var with an empty name when there is no loop variable (allowing nested loops with the current scopeles implementation).
Does the loop condition computation and comparison as part of the operations which should be faster than doing it in bytecode.
Ranges over strings.

This also unifies the two implementations (iter range and step range) in the compiler and also removes the map indexing by integer.
I've kept the commit that adds the Order field to the map value.


Not working

Multiple errors and dependencies issues so far. Need an update asap

Yes, my AutoGPT is just failing to even start
Traceback (most recent call last):
  File "C:\Users\Name\Free-Auto-GPT\AUTOGPT.py", line 11, in <module>
    from langchain.experimental.autonomous_agents.autogpt.agent import AutoGPT
ModuleNotFoundError: No module named 'langchain.experimental'

I even installed "langchain.experimental", still doesn't work


Added Intervue.io

Their take-home assignments have the capability of sending massive amounts of assignments at once as well as auto-grading those assignments.

Hi there I'm guessing you're the owner of Intervue by looking at your recent PRs. I think this is more useful for companies and less useful for candidates which this repo is targeted at, so I'm closing this PR for now.


Question/bug ? concerning the QidoRS creationOfElement or sequence

The QidoRsService contains the following code:
static void CreateSequence(List elements, int currentElementIndex, DicomDataset dicomRequest, string value)
{
uint tag = GetTagValue ( elements[currentElementIndex] ) ;
var dicEntry = DicomDictionary.Default[tag] ;
DicomSequence sequence ;
DicomDataset  item ;
        dicomRequest.AddOrUpdate ( new DicomSequence ( dicEntry.Tag ) ) ;
        sequence = dicomRequest.GetSingleValue<DicomSequence>(dicEntry.Tag);

....
The call to GetSingleValue is always throwing an exception:
Dicom.DicomDataException : DicomTag doesn't support values.
at Dicom.DicomDataset.GetSingleValue[T](DicomTag tag)
at DICOMcloud.Wado.QidoRsService.CreateSequence(List`1 elements, Int32 currentElementIndex, DicomDataset dicomRequest, String value) i
The exception seems to make sense since we should not use GetSingleValue to get a Sequence
I think GetSequence needs to be used here.  Perhaps it was working in the past with an older version of fo-dicom?

@shelbypereira thanks for reporting. I was able to reproduce and fix this in the latest code.
Also added a unit test for this case.


Unable to open after TimeMachine file transfer

I just had to format my SSD and reinstall everything via TimeMachine but for some reason, Scroll reverser is no longer working. I have given it permission for both accessibility and Input Monitoring, however, the app would simply not open. I am not sure if it is hidden, but I could not find a way to unhide it.

Same issue here (10.15.2).
Scroll Reverser does not seems to be running, and opening it manually doesn't do anything.
Permissions are correctly granted in System Preferences.

I just did a migration to a new laptop, not from Time Machine but from target disk mode. I can see crash logs for Scroll Reverser in the console.
Here's a snippet - given other odd issues I've had since booting up, I think there may be some bugs in the various Privacy permissions when restoring from a backup. I'm going to try uninstalling and rebooting to see if that clears things up.
(Also, missing this utility is reminding me of how useful it is!)
Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Note:        EXC_CORPSE_NOTIFY

Termination Signal:    Segmentation fault: 11
Termination Reason:    Namespace SIGNAL, Code 0xb
Terminating Process:   exc handler [16125]

VM Regions Near 0:
-->
    __TEXT<PHONE_NUMBER>058000-000000010506e000 [   88K] r-x/rwx SM=COW  /Applications/Scroll Reverser.app/Contents/MacOS/Scroll Reverser

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   com.apple.CoreFoundation      	0x00007fff384bb108 CFMachPortIsValid + 28
1   com.apple.CoreFoundation      	0x00007fff384bb2b0 CFMachPortCreateRunLoopSource + 86
2   com.pilotmoon.scroll-reverser 	0x000000010505cadc 0x105058000 + 19164
3   com.pilotmoon.scroll-reverser 	0x000000010505c39c 0x105058000 + 17308
4   com.apple.Foundation          	0x00007fff3ab58c72 NSKeyValueNotifyObserver + 335
5   com.apple.Foundation          	0x00007fff3ab3905b -[NSObject(NSKeyValueObserverRegistration) _addObserver:forProperty:options:context:] + 255
6   com.apple.Foundation          	0x00007fff3ab384ce -[NSObject(NSKeyValueObserverRegistration) addObserver:forKeyPath:options:context:] + 93
7   com.pilotmoon.scroll-reverser 	0x000000010505b7da 0x105058000 + 14298
8   com.apple.CoreFoundation      	0x00007fff384d935f __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12
9   com.apple.CoreFoundation      	0x00007fff384d92f3 ___CFXRegistrationPost1_block_invoke + 63
10  com.apple.CoreFoundation      	0x00007fff384d9268 _CFXRegistrationPost1 + 372
11  com.apple.CoreFoundation      	0x00007fff384d8ebe ___CFXNotificationPost_block_invoke + 97
12  com.apple.CoreFoundation      	0x00007fff384a87e2 -[_CFXNotificationRegistrar find:object:observer:enumerator:] + 1575
13  com.apple.CoreFoundation      	0x00007fff384a7c82 _CFXNotificationPost + 1351
14  com.apple.Foundation          	0x00007fff3ab2da02 -[NSNotificationCenter postNotificationName:object:userInfo:] + 59
15  com.apple.AppKit              	0x00007fff356b32ff -[NSApplication _postDidFinishNotification] + 312
16  com.apple.AppKit              	0x00007fff356b3042 -[NSApplication _sendFinishLaunchingNotification] + 208
17  com.apple.AppKit              	0x00007fff356b0103 -[NSApplication(NSAppleEventHandling) _handleAEOpenEvent:] + 549
18  com.apple.AppKit              	0x00007fff356afd49 -[NSApplication(NSAppleEventHandling) _handleCoreEvent:withReplyEvent:] + 688
19  com.apple.Foundation          	0x00007fff3ab59226 -[NSAppleEventManager dispatchRawAppleEvent:withRawReply:handlerRefCon:] + 308
20  com.apple.Foundation          	0x00007fff3ab59090 _NSAppleEventManagerGenericHandler + 98
21  com.apple.AE                  	0x00007fff3985d092 0x7fff39850000 + 53394
22  com.apple.AE                  	0x00007fff3985c7b9 0x7fff39850000 + 51129
23  com.apple.AE                  	0x00007fff39854a27 aeProcessAppleEvent + 449
24  com.apple.HIToolbox           	0x00007fff3704a2b8 AEProcessAppleEvent + 54
25  com.apple.AppKit              	0x00007fff356aa15c _DPSNextEvent + 1670
26  com.apple.AppKit              	0x00007fff356a8690 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1352
27  com.apple.AppKit              	0x00007fff3569a3ae -[NSApplication run] + 658
28  com.apple.AppKit              	0x00007fff3566c775 NSApplicationMain + 777
29  com.pilotmoon.scroll-reverser 	0x0000000105059af4 0x105058000 + 6900

I pulled down and built from master, and ScrollReverser no longer crashes, but it also isn't correctly detecting that I've given it the input monitoring permission. To make sure it was the right path for the app I removed the one I had in /Applications and dragged the built one in.
Seeing the last commit was related to the new UI, I checked out 6fa036906bc10fce2614120fb3d8e82764928be7 and get a crash that looks pretty similar to the above at https://github.com/pilotmoon/Scroll-Reverser/blame/6fa036906bc10fce2614120fb3d8e82764928be7/MouseTap.m#L278
Still, this is mind-boggling that Scroll Reverser worked perfectly on my prior laptop and is crashing here. I'm now wondering if Catalina has different privacy behaviour for apps that existed on disk during an upgrade, versus those that are "new" like those from a migration install or time machine restore would.

Killing the app, removing it from all permissions in System Preferences, restarting it and re-adding permissions have fixed the issue for me. Although I can't figure out how to open settings.

That worked for me, though I also rebooted for good measure. The current master appears to be working fine, at least for clean installs.

Killing the app, removing it from all permissions in System Preferences, restarting it and re-adding permissions have fixed the issue for me. Although I can't figure out how to open settings.

I had the same issue, caused by migration to another Mac Target Disk Mode.
Revoking all permissions and launching the app, then adding the permissions back had solved the problem and allowed the app launch without silently crashing.

I followed the steps from this comment which was revoking all permissions and launching the app, then adding the permissions back had solved the problem and allowed the app launch without silently crashing.

This worked for me but I literally had to remove the version transferred from the Backup and re-download it here from Github and then add back the missing reported permissions.
God I'm just so glad I got it working 😅

Hi everyone, I'm closing this old issue to tidy up. The latest Scroll Reverser v1.8 now doesn't crash when it doesn't have permissions, and instead displays a helpful UI to tell you to enable permissions.


Error generating release when upgrading dependency

When you upgrade a dependency (one which is included within the list of applications) and want to generate a new release it fails because .. I don't know ;) Might be related to #66 though, I had also sometimes the error described there.
Erlang version 17.3, Elixir version 1.0.2
Steps to reproduce:

create a new elixir project mix new test
cd test/
edit mix.exs and add a dependency (i chose timex because that's where it happened in my real project as well) so that mix.exs looks like this:

defmodule Test.Mixfile do
  use Mix.Project

  def project do
    [app: :test,
     version: "0.0.1",
     elixir: "~> 1.0",
     deps: deps]
  end

  # Configuration for the OTP application
  #
  # Type `mix help compile.app` for more information
  def application do
    [applications: [:logger, :timex]]
  end

  # Dependencies can be Hex packages:
  #
  #   {:mydep, "~> 0.3.0"}
  #
  # Or git/path repositories:
  #
  #   {:mydep, git: "https://github.com/elixir-lang/mydep.git", tag: "0.1.0"}
  #
  # Type `mix help deps` for more examples and options
  defp deps do
    [{:timex, "0.13.0"}, {:exrm, "~>0.14.16"}]
  end
end

run mix deps.get
run mix release --verbosity=verbose:

path/to/test » mix release --verbosity=verbose
==> timex
Compiled lib/date/datetime.ex
Compiled lib/dateformat/format_error.ex
Compiled lib/dateformat/formats.ex
Compiled lib/dateformat/dateformat.ex
Compiled lib/parsers/dateformat/parser_state.ex
Compiled lib/parsers/dateformat/directive.ex
Compiled lib/dateformat/formatter.ex
Compiled lib/parsers/dateformat/parser.ex
Compiled lib/parsers/dateformat/tokenizers/default.ex
Compiled lib/dateformat/formatters/strftime.ex
Compiled lib/parsers/dateformat/tokenizers/strftime.ex
Compiled lib/parsers/dateformat/strftime.ex
Compiled lib/parsers/parse_error.ex
Compiled lib/parsers/dateformat/default.ex
Compiled lib/dateformat/formatters/default.ex
Compiled lib/timex.ex
Compiled lib/time/time_formatter.ex
Compiled lib/timezone/database.ex
Compiled lib/time/time.ex
Compiled lib/timezone/timezone_info.ex
Compiled lib/timezone/timezone_dst.ex
Compiled lib/date/date_convert.ex
Compiled lib/parsers/zoneinfo/zoneinfo.ex
Compiled lib/utils/utils.ex
Compiled lib/timezone/timezone_local.ex
Compiled lib/date/date.ex
Compiled lib/timezone/timezone.ex
Generated timex.app
==> conform
Compiled src/conf_parse.erl
Compiled lib/conform/parse.ex
Compiled lib/conform/config.ex
Compiled lib/conform.ex
Compiled lib/conform/utils/utils.ex
Compiled lib/conform/schema.ex
Compiled lib/mix/tasks/conform.configure.ex
Compiled lib/conform/translate.ex
Compiled lib/conform/utils/code.ex
Compiled lib/mix/tasks/conform.new.ex
Compiled lib/mix/tasks/conform.effective.ex
Compiled lib/mix/tasks/conform.release.ex
Generated conform.app
==> exrm
Compiled lib/exrm/config.ex
Compiled lib/exrm/plugin.ex
Compiled lib/exrm/utils.ex
Compiled lib/exrm/plugins/consolidation.ex
Compiled lib/exrm/plugins/conform.ex
Compiled lib/mix/tasks/release.plugins.ex
Compiled lib/mix/tasks/release.clean.ex
Compiled lib/exrm/appups.ex
Compiled lib/mix/tasks/release.ex
Generated exrm.app
==> test
Compiled lib/test.ex
Generated test.app
==> Building release with MIX_ENV=dev.
Dependency resolution completed successfully
All dependencies up to date
==> Generating relx configuration...
==> Generating sys.config...
==> Generating boot script...
==> Performing protocol consolidation...

Dependency resolution completed successfully
All dependencies up to date
==> Generating relx configuration...
==> Generating sys.config...
==> Generating boot script...
==> Performing protocol consolidation...
 Please fix any errors and try again.

The weird thing is that it still has timex 0.13.0 in the application list for the release 0.0.2 :S

Thanks @mweibel! I've run into this as well, at least one other issue is related to this. Still trying to sort out the correct solution. I'll keep you posted!

Ok thanks @bitwalker. I ran into some other issues as well, not sure if related. Will do a proper issue for them as well later.

Just to follow up here as well, I know what the cause of this is, so once I can build a test case to verify the fix, I'll push an update.

@mweibel Testing this locally and the scenario works correctly for me. Could you clone https://github.com/bitwalker/exrm-test, add the timex dependency, and run your test scenario again? I'm interested to see if you can reproduce this error with the latest exrm.

@bitwalker error is different now, but it doesn't work quite yet:
» mix release --verbosity=verbose
==> timex
Compiled lib/date/datetime.ex
Compiled lib/dateformat/format_error.ex
Compiled lib/dateformat/dateformat.ex
Compiled lib/dateformat/formats.ex
Compiled lib/parsers/dateformat/parser_state.ex
Compiled lib/parsers/dateformat/directive.ex
Compiled lib/dateformat/formatter.ex
Compiled lib/parsers/dateformat/parser.ex
Compiled lib/parsers/dateformat/tokenizers/default.ex
Compiled lib/dateformat/formatters/strftime.ex
Compiled lib/parsers/dateformat/tokenizers/strftime.ex
Compiled lib/parsers/dateformat/strftime.ex
Compiled lib/parsers/parse_error.ex
Compiled lib/dateformat/formatters/default.ex
Compiled lib/parsers/dateformat/default.ex
Compiled lib/timex.ex
Compiled lib/time/time_formatter.ex
Compiled lib/timezone/database.ex
Compiled lib/time/time.ex
Compiled lib/timezone/timezone_info.ex
Compiled lib/utils/utils.ex
Compiled lib/timezone/timezone_dst.ex
Compiled lib/timezone/timezone_local.ex
Compiled lib/date/date_convert.ex
Compiled lib/parsers/zoneinfo/zoneinfo.ex
Compiled lib/date/date.ex
Compiled lib/timezone/timezone.ex
Generated timex.app
==> test
Compiled lib/test/supervisor.ex
Compiled lib/test.ex
Compiled lib/test/server.ex
Generated test.app
==> Building release with MIX_ENV=dev.
Running dependency resolution
Dependency resolution completed successfully
All dependencies up to date
==> Generating relx configuration...
==> Generating sys.config...
==> Generating boot script...
==> Performing protocol consolidation...
 Please fix any errors and try again.

I updated to timex version 0.13.2 (as described in the steps to reproduce) should I upgrade to a more recent timex version?
I'm using elixir version 1.0.3 atm.

This is now fixed in master, and soon to be on hex as 0.19.0.

:+1: thanks!


EF migration MigrationBuilder.InsertData enables IDENTITY_INSERT when it is not needed.

I'm trying to insert some data to DB via migration. I've discovered that it is possible via MigrationBuilder.InsertData() method.
My environment:
EF Core version: 2.0.1
Database Provider: Microsoft.EntityFrameworkCore.SqlServer
Operating system: Windows Server 2016 Datacenter
IDE: Visual Studio 2017 Version 15.5.7
I've tried following

Opened Package manager console
Executed Add-Migration InsertSomeData
Here how it looks:

    public partial class InsertSomeData : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.InsertData("Lookups", new[] { "LookupName", "Value", "Text" }, new object[] { "TestData", true, "Test description" });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DeleteData("Lookups", "LookupName", "TestData");
        }
    }
}

The Lookups table schema:
CREATE TABLE [dbo].[Lookups](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[LookupName] [nvarchar](20) NULL,
	[Value] [nvarchar](100) NULL,
	[Text] [nvarchar](max) NULL,
	[MultiFlag] [bit] NULL,
 CONSTRAINT [PK_Lookups] PRIMARY KEY CLUSTERED
(
	[Id] ASC
)

And it failed with following error:
Failed executing DbCommand (21ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
IF EXISTS (SELECT * FROM [sys].[identity_columns] WHERE [object_id] = OBJECT_ID(N'Lookups'))
    SET IDENTITY_INSERT [Lookups] ON;
INSERT INTO [Lookups] ([LookupName], [Value], [Text])
VALUES (N'TestData', 1, N'Test description');
IF EXISTS (SELECT * FROM [sys].[identity_columns] WHERE [object_id] = OBJECT_ID(N'Lookups'))
    SET IDENTITY_INSERT [Lookups] OFF;
Error Number:545,State:1,Class:16
Explicit value must be specified for identity column in table 'Lookups' either when IDENTITY_INSERT is set to ON or when a replication user is inserting into a NOT FOR REPLICATION identity column.
System.Data.SqlClient.SqlException (0x80131904): Explicit value must be specified for identity column in table 'Lookups' either when IDENTITY_INSERT is set to ON or when a replication user is inserting into a NOT FOR REPLICATION identity column.

Stack trace:
   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
   at System.Data.SqlClient.SqlCommand.RunExecuteNonQueryTds(String methodName, Boolean async, Int32 timeout, Boolean asyncWrite)
   at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite, String methodName)
   at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
   at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.Execute(IRelationalConnection connection, DbCommandMethod executeMethod, IReadOnlyDictionary`2 parameterValues)
   at Microsoft.EntityFrameworkCore.Storage.Internal.RelationalCommand.ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues)
   at Microsoft.EntityFrameworkCore.Migrations.MigrationCommand.ExecuteNonQuery(IRelationalConnection connection, IReadOnlyDictionary`2 parameterValues)
   at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQuery(IEnumerable`1 migrationCommands, IRelationalConnection connection)
   at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.Migrate(String targetMigration)
   at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.UpdateDatabase(String targetMigration, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.UpdateDatabase.<>c__DisplayClass0_1.<.ctor>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)

The issue here is that EF enables IDENTITY_INSERT but I'm actually OK with SQL Server generating ID value for me. After investigation it seems that
IF EXISTS (SELECT * FROM [sys].[identity_columns] WHERE [object_id] = OBJECT_ID(N'Lookups'))
    SET IDENTITY_INSERT [Lookups] ON;

was added to resulting SQL at https://github.com/aspnet/EntityFrameworkCore/blob/927082e095e9e937b3e684ecc8f2cc5d183a8634/src/EFCore.SqlServer/Migrations/SqlServerMigrationsSqlGenerator.cs#L1057-L1091
Is there a way to disable such behavior somehow?
PS: I can create a repo for reproduction if details are not comprehensive enough.

+1 for this, we're finding the current behaviour useful on our project but I can imagine situations where it would be better to leave identity insert enabled.

Notes from triage:

Store generated key values cannot be used when using seed data in OnModelCreating (which is the normal way of specifying seed data in EF Core 2.1). This is because EF needs to be able to find each entity in order to be able to later update it, which requires that the entities have stable, well-known keys.
When writing inserts directly into the migration, as is shown above, then if the types are mapped and we know that a value has been specified for an identity column we will continue to switch identity insert off. However, if no value has been specified for an identity column, then we will not switch identity insert off.
If we have no data about identity columns (e.g. types not mapped) then we will not switch identity insert off by default. The migration would need to add explicit calls to turn it off if it is needed in this case.


Second order gradient of tf.contrib.eager.function is broken

When using 2nd order gradients (i.e. Nested GradientTape) we cannot utilize @tf.defun and @tf.function.
System information

TensorFlow installed from (source or binary):binary
TensorFlow version (use command below): 1.13.1

Traceback (most recent call last):
  File "test_defun.py", line 14, in <module>
    print(meta_tape.gradient(a2, a))
  File "/home/felipe.such/uber/generative_learning/env/lib/python3.6/site-packages/tensorflow/python/eager/backprop.py", line 946, in gradient
    unconnected_gradients=unconnected_gradients)
  File "/home/felipe.such/uber/generative_learning/env/lib/python3.6/site-packages/tensorflow/python/eager/imperative_grad.py", line 72, in imperative_grad
    compat.as_str(unconnected_gradients.value))
  File "/home/felipe.such/uber/generative_learning/env/lib/python3.6/site-packages/tensorflow/python/eager/backprop.py", line 127, in _gradient_function
    grad_fn = ops._gradient_registry.lookup(op_name)  # pylint: disable=protected-access
  File "/home/felipe.such/uber/generative_learning/env/lib/python3.6/site-packages/tensorflow/python/framework/registry.py", line 94, in lookup
    "%s registry has no entry for: %s" % (self._name, name))
LookupError: gradient registry has no entry for: StatefulPartitionedCall

Code to reproduce the issue
import tensorflow as tf

tf.enable_eager_execution()

@tf.contrib.eager.function
def leaky_relu(x, alpha=0.1):
  return tf.maximum(tf.minimum(0.0, alpha * x), x)

a = tf.Variable(())
with tf.GradientTape() as meta_tape:
  with tf.GradientTape() as tape:
    x = leaky_relu(a)
  a2 = tape.gradient(x, a) + a
print(meta_tape.gradient(a2, a))

Have tried on Colab with TF 13.1 and was able to reproduce the issue.

Maybe related?
https://github.com/tensorflow/tensorflow/issues/29942

@fps7806 I could reproduce the issue with TF1.13.1 but I don't see any error with TF.1.14.0. I created a gist. Please check it. thanks!

It has been 14 days with no activity and the awaiting response label was assigned. Is this still an issue?

Automatically closing this out since I understand it to be resolved, but please let me know if I'm mistaken.Thanks!


Not possible to login if use self-signed certificate in nextcloud

I have a local nextcloud instance that use a self-signed certificate. If i try to login to my nextcloud in the app i got an certificate error. I think my self-signed certificate does the issue. It is possible to ignor the self-signed certificate during the login?

Hey @AlexejHirsch, you are right. The error is caused by your self-signed certificate. Currently its only possible to connect to Nextcloud instances with verified certificates.
Due to security reasons I didn't plan to implement this feature.
I already received a lot of feedback regarding this feature. Looks like there is a considerable demand. So I may implement this in the future - not sure yet though.

Hi @lneugebauer , not sure whether to open a new issue or add it here, because it is somewhat related. (Feel free to move it)
The problem also occurs when one uses its own CA to sign certificates, although the CA is added in my android phone. In this case it should just accept it. As far as I understand, Android does not trust user CAs by default (see Changes to Trusted Certificate Authorities in Android Nougat ) but it looks like it is an easy fix.

Hi @siberianhuskies, I think this is a great suggestion! I'll take care of implementing this in the next couple of days.


[Issue #580 fix] Added username check on the first screen

Fixes #580.
Added checkUsername() function which sends a call to signupURL with beforeSignup flag and handles the response.
Result:

Please check the corresponding PR on the server too. (llaske/sugarizer-server#266)

The fix should be compatible with older Sugarizer Server version too.
What do you propose?

Initially I wanted to make a call to the signupURL (un-modified on the server) by passing in dummy data for other parameters. It would return the same error if name already exists. This quickly becomes troublesome as if it's a new username, a new user with the dummy data will be created.
As I dug through the server routes, I found /api/v1/users?name=__ which might bear some fruit but when I tested it, it requires a token which isn't present before logging in. I don't see any other helpful routes. Anything I'm missing or should look into @llaske?

Regarding the UI, I don't like the flash between Name and Password screen. The Password screen should not be displayed before the return of the call.
Regarding the server side, I think using a flag is not a good work around. See my comment on https://github.com/llaske/sugarizer-server/pull/266.

Initially I wanted to make a call to the signupURL (un-modified on the server) by passing in dummy data for other parameters. It would return the same error if name already exists. This quickly becomes troublesome as if it's a new username, a new user with the dummy data will be created.

I think you instead of passing dummy data for other parameters, you should avoid passing other parameters at all, just pass name and beforeSignup.

If server returns Status 401 Error: Invalid user object Code: 2, means that the Sugarizer Server does not support your fix. --> Show username check on second screen in this case.
If server returns exists: true/false, it means that Sugarizer-Server supports your fix. --> Show username check on first screen in this case.

@NikhilM98, I am currently only sending the name, role (Required here) and beforeSignup. I like the idea for backward compatibility by adding this check. I'll add this next.

The Password screen should not be displayed before the return of the call.

@llaske I'll fix this as well.

@llaske I have fixed the UI flicker between Password and Username screens.
Added the backward compatibility, the system will use the old workflow if the server hasn't been updated and will switch to the new workflow if the server is updated to support it.

Cool. Thanks.


expose an ability (for extensions) to color some code pieces

VSCode Version:1.10.1
OS Version:Win10/x64

feature request.
I'm using the editor for C++ development, so the case when some code pieces are inactive due the language features (simple example is preprocessor definitions). I've asked your collegues who works on cpp-tools about this feature (highlight some code as inactive/greyed, like IDEs usually do this)

but they told me that vscode doesn't expose this ability. any chance to implement this?
I suppose this also can be used e.g. for code coverage
Thank you

This is already possible. You can look at my dimmer extension to see how I am dimming certain sections of code.
The official API for "decorations" is here.

Apologies, I had an incorrect link in my earlier comment, I've fixed that now.
Also, here is a link to where I set the style in my dimmer extension.

I'm like a bridge between vscode team and cpp-tools extension team :)
I'm only trying to confirm cpp-tools team that is possible to improve their product
thank you!

Please file your feature request against the cpp extension. You can point them to @hoovercj example that shows how to use decorations.

yeah, I did exactly that earlier with a link on this discussion, so just only wait their response
thank you!


Text Error (Via Darrin S)

Hi Maksim,
In the paragraph below, look at the second sentence, you have an extra “to” in there.  I have underlined it for reference.
We have big plans for DataSD - the new home of the Open Data Program in San Diego. We want to it to be a place for you to learn about government data, and learn how to get involved in the community. As we continue building the site, you will see a lot more on here, but meanwhile - and most importantly, make sure to review and vote on the new Open Data Inventory!

Resolved.  Thanks Daniel S For the pointer!


typeof operator in type documentation

Would it be possible to have an operator similar to typescript's typeof or similar?
My use case is for a class library that utilizes JS-style prototypes:
--- @class Test.static
--- @type typeof(Test.constructor)  # Obtain type of `Test.prototype.construtor`
local Test = {};
--- @class Test
Test.prototype = {};

--- @return Test
function Test.prototype:test() end

function Test:test() end

--- @return Test
function Test.prototype:constructor() end

Test():test()

I don't want to introduce such complicated operations into the type system.


Eloquence Model doesn't work well with Validable?

When my model code is this, seeding doesn't work
<?php namespace App;

use Sofa\Eloquence\Model;
use Sofa\Eloquence\Mutable;

class LetterType extends Model {

    use Mutable;

    protected $fillable = ['title', 'acronym', 'description'];

    /**
     * Attributes getter mutators @ Eloquence\Mutable
     *
     * @var array
     */
    protected $getterMutators = [

    ];

    /**
     * Attributes setter mutators @ Eloquence\Mutable
     *
     * @var array
     */
    protected $setterMutators = [
        'acronym' => 'trim',
    ];

    protected static $rules = [
        'title'  => 'required',
        'acronym' => 'required',
    ];
}

Seeding only works when I change to:
<?php namespace App;

use Illuminate\Database\Eloquent\Model;
use Sofa\Eloquence\Contracts\CleansAttributes;
use Sofa\Eloquence\Contracts\Validable as ValidableContract;
use Sofa\Eloquence\Eloquence;
use Sofa\Eloquence\Mappable;
use Sofa\Eloquence\Mutable;
use Sofa\Eloquence\Validable;

class LetterType extends Model implements ValidableContract, CleansAttributes {

    use Eloquence, Mutable, Validable;

    protected $fillable = ['title', 'acronym', 'description'];

    /**
     * Attributes getter mutators @ Eloquence\Mutable
     *
     * @var array
     */
    protected $getterMutators = [

    ];

    /**
     * Attributes setter mutators @ Eloquence\Mutable
     *
     * @var array
     */
    protected $setterMutators = [
        'acronym' => 'trim|strtoupper',
    ];

    /**
     * Rules for field attributes
     * Available rules as described in the laravel docs:
     * @link http://laravel.com/docs/5.0/validation#available-validation-rules
     */
    public static $rules = [
        'title'  => 'required',
        'acronym' => 'required',

    ];

}

This is strange to me because for my User model, extending Sofa\Eloquence\Model gives me no issue in seeding. But for my LetterType model, it does.

What error do you get? Any other relevant information?

@bobbybouwmann it will say Seeded:... in console but in reality nothing got seed for that table. laravel.log has nothing too.

You don't exstend the LetterType class with Eloquence, I think the issue is there
// This

use Illuminate\Database\Eloquent\Model;
use Sofa\Eloquence\Eloquence;
use Sofa\Eloquence\Mutable;

class LetterType extends Model {

// Should be
use Sofa\Eloquence\Model;
use Sofa\Eloquence\Eloquence;
use Sofa\Eloquence\Mutable;

class LetterType extends Model {

Hi @bobbybouwmann in my example, seeding fails when I extends Sofa\Eloquence\Model. but it works when I extends use Illuminate\Database\Eloquent\Model and use the validable traits and interface instead.

Hi further investigation shows to me that it is Validable that's causing the problem.
I tested this by creating an AppModel abstract class and extends it from my other models.
<?php

namespace App;

use Illuminate\Database\Eloquent\Model;
use Sofa\Eloquence\Contracts\CleansAttributes;
use Sofa\Eloquence\Contracts\Validable as ValidableContract;
use Sofa\Eloquence\Eloquence;
use Sofa\Eloquence\Mappable;
use Sofa\Eloquence\Mutable;
use Sofa\Eloquence\Validable;

abstract class AppModel extends Model implements ValidableContract, CleansAttributes
{
    use Eloquence, Mutable, Mappable, Validable;

}
```

When I remove ValidableContract, CleansAttributes and Validable, from the super class then it works.

I don't think it is an issue with my validation rules if any because when my concrete classes implements ValidableContract, CleansAttributes and use the Validable trait, seeding works fine. It just fails if these are in my superclass instead.

@ziming @bobbybouwmann I'm on holiday, I will take a look at this in a few days. If you can do it sooner, then pls do. Thanks

@jarektkaczyk I don't have much time this week, so I can't take a look at it for now. I bet you will be back sooner then I am ;)

Update, I notice more problems this time when I use middleware. Got to implement the contracts and traits in the class itself instead of extending the super class for it to work again. Hope it helps!.

@ziming I've tested that on L5.0 and nothing bad happens. Seeding works as expected, so if the problem persists, please upload whole code so I can see it.

I am using laravel 5.1 and mostbof the time the issue happen when using it with laravel administrator. I'm outside now so I can't test it right now. Sometimes the problem is solved by running php artisan optimize. Sometimes isn't. Thank you.


[BUG] Exception handling

Describe the bug
On throwing custom exceptions, the report() method of the exception is not called.
To Reproduce
Steps to reproduce the behavior:
1- Have a fresh Larvel installation.
2- Make a custom exception using php artisan make:exception TestException, then do something in your report() method of the exception, for example, Log::info('some info').
3- Create a consumer, then within the handler() of the consumer, throw the TestException.
Expected behavior
By default, if a custom exception is thrown in Laravel, if it has a report() method, it's gonna get called. this works just fine outside of the consumer handle() method, and the report() method gets called.
Desktop (please complete the following information):

OS: Ubuntu 21.04
mateusjunges/laravel-kafka v1.10
PHP 8.1

Hey @behzadev thanks for reporting.
This happens because when a exception occurs within a consumer it is handled by the handleException method, on the base Consumer class, and this exception is never handled by Laravel's Handler class, which is reponsible for calling the report method when it's present.

https://github.com/mateusjunges/laravel-kafka/blob/bccc372fc85a72e8c9535382a095f312b4d6706d/src/Consumers/Consumer.php#L260-L277
And it only logs a message in the console:

I'll add the laravel reportable concept for exception handling as soon as I have the time to work on it :slightly_smiling_face:

Thanks for your reply
Is it also possible to discard committing the message if an exception is thrown?

#168 solves this


[Tooltip]: Alignment options should be available for of Tooltip

Title line template: [Tooltip]: Brief description
Input property align is missing options such as 'top-left', 'top-right', 'bottom-right', 'bottom-left' etc are missing in CodeSnippet
Input properties such as enterDelayMs and leaveDelayMs are missing aswell.

I believe this is a v11 feature? I may be wrong, but it has been added to upcoming v5 release.


refactor(ajax): replace ajax.js with superagent to follow redirection

Also:
revert to internal POST protocal to prevent 307 pre-flight

[Current coverage][cc-pull] is 62.78%

Merging [#274][cc-pull] into [master][cc-base-branch] will decrease coverage by -0.83%

File dist/node/utils.js (not in diff) was modified. more

Misses +19
Partials 0
Hits +1

File ...rify-wrapper/ajax.js (not in diff) was deleted. more

@@             master       #274   diff @@
==========================================
  Files            24         23     -1
  Lines          2787       2773    -14
  Methods           0          0
  Messages          0          0
  Branches          0          0
==========================================
- Hits           1773       1741    -32
- Misses         1014       1032    +18
  Partials          0          0

Powered by Codecov. Last updated by [d8767c4...007b817][cc-compare]
[cc-base-branch]: https://codecov.io/gh/leancloud/javascript-sdk/branch/master?src=pr
[cc-compare]: https://codecov.io/gh/leancloud/javascript-sdk/compare/d8767c4cc8ced8d71bb98f13b8d08a5a4e52ca3a...007b8178bd8cdb0025c5b61793ca2e668bc4c72c
[cc-pull]: https://codecov.io/gh/leancloud/javascript-sdk/pull/274?src=pr

👍


Add jest instructions to readme

Hey :) Loved your project, it was a lifesaver.
My tests were breaking because of the library so I thought I might add what I did to your readme.

@keyserfaty Very nice of you. See my comment.

Done.


preventDuplicates does not work expected when using parameters

Describe the bug
Navigate same route despite preventDuplicate is true.
To Reproduce
Define SEARCH_DETAIL route like that:
static const SEARCH_DETAIL = "/search-detail";

Define GetPage like that:
GetPage(
      name: Routes.SEARCH_DETAIL,
      page: () => SearchDetailPage(),
      binding: BindingsBuilder(
        () {

        },
      ),
      transition: Transition.cupertino,
    ),

Navigate to user with:
Get.toNamed(Routes.SEARCH_DETAIL, parameters: {"category": "true"},preventDuplicates: true),

Expected behavior
Cannot navigate to same route.
Flutter Version:
Flutter 2.2.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision d79295af24 (10 weeks ago) • 2021-06-11 08:56:01 -0700
Engine • revision 91c9fc8fe0
Tools • Dart 2.13.3
Getx Version:
4.1.4
In source code currentRoute is "/search-detail?category=true" and page is "/search-detail" however I navigate "/search-detail?category=true" I think there is a bug or preventDuplicate does not describe true meaning.
Future<T?>? toNamed<T>(
    String page, {
    dynamic arguments,
    int? id,
    bool preventDuplicates = true,
    Map<String, String>? parameters,
  }) {
    if (preventDuplicates && page == currentRoute) {
      return null;
    }

    if (parameters != null) {
      final uri = Uri(path: page, queryParameters: parameters);
      page = uri.toString();
    }

    return global(id).currentState?.pushNamed<T>(
          page,
          arguments: arguments,
        );
  }

v4.3.8 same.

If @jonataslaw review and approve bug I can fix it.

Same here with version 4.6.1

Same with version 4.6.5

According to @Nipodemos' answer in this https://github.com/jonataslaw/getx/issues/514#issuecomment-682079037
"Just to add some context for people who might see this issue in the future:
GetX by default doesn't let you go to a route you're already on. This helps when you accidentally call the push method twice or the user presses the button to the next screen too fast multiple times.
But since there might be use cases where you want to reopen the same screen again (i.e. reopen the page with different parameters), GetX has a preventDuplicates option that you can change when submitting the new route."
So I was facing the same error in the latest version, when the user changes the page quickly in a bottom navigation of a Navigator with onGenerateRoutes.
To make sure I didn't duplicate controllers and/or stack pages, I navigated this way.
await Get.offNamed(pages[index.value], id: 1);
Now I navigate this way
await Get.toNamed(pages[index.value], id: 1, preventDuplicates: true);
And now everything works fine, even if the user flips pages in my bottom navigator mindlessly, with the guarantee of not navigating to a route that is already on the stack, as per @Nipodemos' comment.
You can see this by adding displaying the tag or hashCode of the controller, and you'll see that it's only instantiated once.
Hope this helps to find this issue in the future.
This will not call your controller again, so oninit will only be called the first time.

Same with version 4.6.5
Did someOne  can make it corettly

i presume that this case is still open or was there any fixes for this issue

this problem still exist.

v4.6.5 same.
@jonataslaw

The problem is still there


Undefined use of unsafe

https://github.com/bfops/playform/blob/bf71fd54cb21631d9423ab7dc41d46a851b81a09/client/lib/src/view/chunked_terrain.rs#L76-L118
You are first extending the three input vecs with zeros, which is undefined behaviour as zero may not be a valid value for the types. Then you are turn the vecs into raw ptrs and create them again, with a different length, which is not allowed according to the docs. (https://doc.rust-lang.org/nightly/std/vec/struct.Vec.html#safety) I suspect this of causing the jemalloc deadlock.
Could you please rewrite it in safe rust.

Thanks, that’s a great catch. I’ll rewrite it and see if jemalloc gets happier.

You are first extending the three input vecs with zeros, which is undefined behaviour as zero may not be a valid value for the types.

Is this true? It's all floats and ints under the surface. Regardless, the alignment and sizing of the types is still making behavior undefined here.

Is this true? It's all floats and ints under the surface.

Nope it isnt true, I should have looked more carefully at the types.


Show full file name in tabline for active tab

When opening multiple tabs with long file name, the filename in tabline will be truncated. Is there any setting to always show full filename in tabline for active tab? For instance, in the screenshot tab1's name got truncated from some_long_long_long_long_long_long_long_name_file to g_long_long_long_long_name_file, is there anyway to make tab1 showing some_long_long_long_long_long_long_long_name_file while leaving tab2 truncated? I think it makes more sense to have the current active tab showing full file name.

Here's an example of overwriting the tabs component, truncate them if you like.
let g:lightline = {
      \   'component_expand': {
      \     'tabs': 'LightlineTabs'
      \   },
      \ }

function! LightlineTabs() abort
  let [x, y, z] = [[], [], []]
  let nr = tabpagenr()
  let cnt = tabpagenr('$')
  for i in range(1, cnt)
    call add(i < nr ? x : i == nr ? y : z, (i > nr ? '%<' : '') . '%' . i . 'T%{lightline#onetab(' . i . ',' . (i == nr) . ')}' . (i == cnt ? '%T' : ''))
  endfor
  " truncate x here
  return [x, y, z]
endfunction

Hi itchyny,
The feature I requested is to focus on the current active tab. If the current active tab is tab1, then it makes more sense for the tabline to focus on tab1. For example, if current active tab is tab1, then we can let the tabline starting with 1 some_long_long_long_long_long_long_long_name_file and truncate some part of tab2 if the screen is not wide enough. And if the current active tab is tab2, then we can let the tabline starting with 2 some_long_long_long_long_long_long_long_name_file and doesn't show tab1. May I ask do you have any idea about how to implement that?
Thanks,
Xianshu

If you want to display the name of the active tab, you need to truncate the left tab names or right tab names.


Demonstration of the existing features

Prepare a video (or slides) of:

[x] Monitor deployment
[x] Client usage
[x] Probe development
[x] Containers metrics reported

@rfrsilva what is the status of the demos?

These slides: https://github.com/eubr-atmosphere/tma-framework/blob/framework-usage/documents/ATMOSPHERE_TMA_Framework_usage.pptx cover all topics presented in this issue and are also according to the feedback recently provided.

Great, thanks!


global_labels are not provided on some metrics

Describe the bug
I notice that if I define "global_labels" in my java APM agent configuration, these labels are not provided on some kind of events.
I noticed that only when processor.name=metric and metricset.name=(transaction OR service_destination)
All other events have "global_labels" well provided.
Steps to reproduce
Steps to reproduce the behavior:

Define "global_labels" in my java APM agent configuration
Then wait for metrics being sent to APM server
Then look into Kibana to see that metrics with metricset.name=(transaction OR service_destination) have no "labels" fields.

Expected behavior
"global_labels" provided in every APM event, no exception.

Hi,
Thanks for reporting this, could you clarify which version of the stack and the agent you are using here?
I haven't been able to reproduce this with latest Java agent version and latest stack (8.9.0).
The global labels are send by the agents through metadata (so once per HTTP request sending to apm-server), thus copying this to the individual events stored in Elasticsearch is the responsibility of apm-server, not the APM agents. So, if there is a bug, this is likely on apm-server side than on the Java agent.

Hi,
First, thanks for your answer and your first investigation.
To answer your question, I use APM agent 1.39.0 and APM server (not Fleet) version 7.17.8 (same for Elasticsearch and Kibana).
Following your answer, I investigated a bit more. And I realize that all metrics without labels have this peculiarity: they have not "agent.version", whereas all metrics with labels have this field. So it looks like events come from APM server itself.
Here's a document example:
{
  "_index": "apm-7.17.8-metric-000299",
  "_type": "_doc",
  "_id": "Xwav3okBFrx5I69OGzp-",
  "_version": 1,
  "_score": 1,
  "_source": {
    "agent": {
      "name": "java"
    },
    "_doc_count": 1,
    "processor": {
      "name": "metric",
      "event": "metric"
    },
    "metricset.name": "transaction",
    "observer": {
      "hostname": "apm-server-host",
      "id": "37ab6fdb-ccb1-4726-a227-ed50f5e2dd65",
      "type": "apm-server",
      "ephemeral_id": "64019d01-8f59-4aef-9a55-3f3f57ea24df",
      "version": "7.17.8",
      "version_major": 7
    },
    "@timestamp": "2023-08-10T09:02:00.000Z",
    "timeseries": {
      "instance": "myapp:HEAD /index.jsp:6a4ffee23f1771b6"
    },
    "ecs": {
      "version": "1.12.0"
    },
    "service": {
      "node": {
        "name": "myhost"
      },
      "environment": "production",
      "name": "myapp"
    },
    "host": {
      "hostname": "myhost",
      "name": "myhost"
    },
    "event": {
      "ingested": "2023-08-10T09:02:45.096453Z",
      "outcome": "success"
    },
    "transaction": {
      "result": "HTTP 2xx",
      "root": true,
      "name": "HEAD /index.jsp",
      "type": "request",
      "duration.histogram": {
        "counts": [
          1
        ],
        "values": [
          144
        ]
      }
    }
  }
}

I noticed that only when processor.name=metric and metricset.name=(transaction OR service_destination)
All other events have "global_labels" well provided.

Those metrics are not computed by the APM agents: They are derived from the span and transaction documents in the APM-server. They are used by the APM UI and have been added for performance reasons. You should however be able to build the same visualisations by directly aggregating the span / transactions documents instead. Those documents should have the global_labels correctly attached.
Nonetheless feel free to open an enhancement request in elastic/apm-server.

Thanks for the answer and explanation @JonasKunz !
I think I will open an issue on apm server repository.


for XCode the MAIN_DEPENDENCY file seems to get added as a file to bu…

…ild. Use DEPENDS as a workaround

Thanks. Your change is not only a workaround but it fixes an actual error. Cmake documents: "At most one custom command may specify a given source file as its main dependency." which was not the case here. For Makefile based compilation MAIN_DEPENDENCY and DEPENDS makes no difference anyway...


RSC-A: Ensure S3 data is encrypted at rest in GovCloud deployment

In order to comply with NIST 800-53 SC-*, the cloud.gov team should ensure that all data in S3 is encrypted at rest.
Acceptance Criteria

[x] Make sure that all S3 buckets are encrypted

Implementation Sketch

Investigate whether Diego's new Go-based S3 encryptor can be run in CF as he expects without access issues
Josh says BOSH is accepting a PR to encrypt log files as they're uploaded to S3 without shenanigans

@sharms are we encrypting all buckets/some buckets? how does it work?

I see encrypted files!


[Package Request]: Badlion Client

Package Requested

[X] I would like someone else to build the manifest.
[ ] I would like help so I can submit the manifest.
[X] I have performed a search and couldn't find this package.
[X] I have checked that the installer for this package is not a script file
[ ] I think there is a new version available and I have provided the URL.

Please provide the following information
Publisher: ESL Gaming
Publisher Url: https://eslfaceitgroup.com/
Package Name: Badlion Client
Description: The most complete all-in-one mod library for Minecraft!
Package Version: 3.12.2
Installer URL: https://www.badlion.net/download/client/latest/windows
Current Package Identifier (for new versions): N/A

Sorry, was already added


Does not work event "keydown/down" on loaded page, before onclick page :(

Environment

Browser: Chrome
Version of smooth-scrollbar: 8.5.2

Issue Summary
After loading the page, if you press the down button, the page will not scroll until you click on the page.
Expected Behavior
After loading the page, if you press the button down, the page scrolls without any mouse click on the page itself

Keyboard events require the scrollbar container to be focused, otherwise we have no idea about which one to scroll (the keyboard events may be fired from child elements/nested scrollbars). See:
https://github.com/idiotWu/smooth-scrollbar/blob/17ce0196c0fdce5bdceda8ef5316e705e0f62d30/src/events/keyboard.ts#L27-29


Setting bad data in one T&G field then good data quickly in another can lead to the good data failing.

Bug Summary
This bug is related to iOS Issue #1781
Based on how the Text & Graphic manager currently works, it is possible to have good data fail. A possible solution is that when a Show fails and the currentScreenData gets updated to also update the updateState of the T&G operation as well. This will require knowing which fields the T&G operation is updating so that they don't also get reset.
With a similar method we could potentially also stop sending all Show data and only send updated Show data.
Reproduction Steps

Set "bad" data (data that will get rejected) into TextField1 and start the operation.
Set "good" data (data that will not get rejected) into TextField2 and start the operation before the first operation gets a Show response.

Expected Behavior: TextField1 should remain in its original state and TextField2 should show the new data.
Observed Behavior: TextField1 and TextField2 will show the original state data because TextField2's operation includes the TextField1 data as well.
Which projects have you seen this bug on?
No response
Android Version(s)
No response
Android Device(s)
n/a
sdl_java_suite Version
5.5.0
Testing Environment(s)
Manticore

Relevant log output
No response

Fixed with #1833


Integrate the frontend provided with the backend

As a developer
I need to integrate the provided frontend with the backend services
So that users have a seamless and functional user interface
Details and Assumptions
* Frontend code is available and compatible with the backend APIs.
* API endpoints are tested and documented.

Acceptance Criteria
gherkin
Given the frontend code is ready,
When the frontend is connected to the backend APIs,
Then the user interface should function correctly with the backend services.

done


Adding a new space_char argument for Trainer.

By default Trainer uses ' ' as space_char, that means
that in the default implementation ▁ is actually treated as a regular
char, which has a specific SCRIPT tag, which ruins the vocab.
We need to have a way to control space_char from the python side (in
case we don't use Metaspace). We can always use the standard
replacement as a default though.
The parity check actually currently fails on big.txt but the number of
tokens is in the same ballpark 153k vs 152k. In order to do the check
with OK speed, we need to compile in --release mode which is not the
default. In the current commit I propose to simply disable --debug
builds has they are probably not useful to anyone.

Not used anymore, we removed this logic from Unigram TRainer and moved it to PreTokenizer instead.


Environment cleanup round two

Issue is #165.

Coverage: 45.211%. Remained the same when pulling c7b6b714f4f98932c8200aa705e25e01a11292b2 on 165.env-cleanup-round-two into cb46d516926e53fb55ceb1fe9dc82e399dba971a on main.