Line numbers are 0

I installed Bugsnag Cocoa using the Pod method. It seems to work fine, but the line numbers in the reports are always zero. For example:
/Users/thomas/Library/Developer/Xcode/DerivedData/MyApp-daxwpuwazlwktwbeipjylrhsqjps/Build/Products/Debug/MyApp.app/Contents/MacOS/MyApp:0
+[Bugsnag notify:]

/Users/thomas/Library/Developer/Xcode/DerivedData/MyApp-daxwpuwazlwktwbeipjylrhsqjps/Build/Products/Debug/MyApp.app/Contents/MacOS/MyApp:0
-[AppDelegate applicationDidFinishLaunching:]

Note the :0 at the end.
I'm using revision 3317cf20b042cdb64b8fe5ddac5ad3a2ef0427ef, XCode 6.1.1, Yosemite 10.10.1, and targeting OS X 10.10.
Do you know how what might go wrong?

It looks like symbolication isn't working. The most common reason for this is that dSYMs are not being uploaded. If you used the github podspec pod 'Bugsnag', :git => "https://github.com/bugsnag/bugsnag-cocoa.git", this should happen automatically.
If not, there are instructions on setting up the build phase https://github.com/bugsnag/bugsnag-cocoa#without-cocoapods.
Please let me know if that doesn't fix it, and we can debug further.

@ConradIrwin CocoaPods has correctly set up a build phase to upload the dSYMs (with the same code as given in the "Without CocoaPods" section). When I ran the code in my terminal (replacing the env variables), the upload seemed to have worked fine.
However, I have a small upload bandwidth, so it takes around 30 seconds to upload the dSYMs to your servers. As my exception was sent in the applicationDidFinishLaunching: method, it was triggered before the dSYMs had been fully uploaded. So I decided to trigger the exception after around a minute: everything worked as expected.
I suppose this is an edge case because the users usually receive the app way more than 30 seconds after it is built. Maybe add a line in the documentation about that :)

Awesome. Thanks for letting me know. In theory we have code that goes back and fixes up old exceptions on upload, but that might not have triggered in time either.


Provide an option to delete backup volume

https://github.com/longhorn/longhorn/issues/598

LGTM. Wait for the integration test.


v-bind:class 数组中使用对象无效

Vue.js version
1.0.21
在教程 http://vuejs.org.cn/guide/class-and-style.html#对象语法 中有这么一句话

按教程执行后显示

代码是这样

应该渲染成 static class-a class-b class-c
但现在渲染的是 static class-a classB classC

Hi,
This is an expected behaviour, you're passing a literal object, classB is just parsed as a string.
You cannot interpolate the variable classA, (that's an es6 feature btw). I think that would be possible in vue 2 though. Anyway you can also use a computed property:
computed: {
  classes: function () {
    var classes = {}
    classes[classB] = isB
    classes[classC] = isC
    classes[classA] = true
    return classes
  }
}

你没理解用法，你的代码和例子不一样啊


TDZ issues

So 6to5 v2.13.1 started checking for early TDZ errors regarding block bindings, which is very nice!
However, here are some issues I've found:
Should throw:
let x = x;

Should throw:
f();
let x;
function f() {
	x;
}

Should not throw:
function f() {
	x;
}
let x;
f();

All of the above test cases are currently failing in v2.13.1. Naive static analysis comparing line/col numbers such as implemented in 7c47017 is rather error-prone as seen in the examples above, even to the point of giving false positives which is a huge issue IMO.
To cover all the cases above properly, we'd need runtime assertions. My suggestion would to split TDZ checking from the default block binding transformer, and have an option to enable runtime TDZ assertions.

I kind of shoehorned them in there because it was requested in the gitter chat, probably should have left it out until it was more solid.

Awesome, thanks!

Woops, referenced the wrong issue with ca41612109883b2bfd3979cc9afa63d372805c03

Released as of 2.13.2, thanks!

As this issue is closed, should I expected TDZ semantics in babel today?
in v8:
let x = x;

Uncaught ReferenceError:  x is not defined

via babel transpile:
var x = x; // output, and no TDZ error

@stefanpenner sorry this should be better documented but it was a separate transform. In babel 6 it's under an option
{
  "presets": [],
  "plugins": [
    ["transform-es2015-block-scoping", { "tdz": true }]
  ]
}

  throw new ReferenceError("x is not defined - temporal dead zone");
  ^

ReferenceError: x is not defined - temporal dead zone


Dropping polyfills from Babel runtime transform

[x] I have searched the issues of this repository and believe that this is not a duplicate.

First off, thanks for the work on v1! It's clear that a lot of hard work has gone into it and it's turning out great imo :)
Expected Behavior

When bundling code for modern browsers, material-ui should not import core-js polyfills for things like Map, Set or Promise, let alone older features like Object.keys or Object.defineProperty. If users need to support older environments, they can add polyfills themselves. The material-ui docs could mention which polyfills are necessary and suggest inclusion of @babel/polyfill or individual polyfill libraries.
Current Behavior

The published material-ui source contains lines like:
var _keys = _interopRequireDefault(require("@babel/runtime/core-js/object/keys"));

or in the ES build:
import _Object$keys from "@babel/runtime/core-js/object/keys";

Context

I am already polyfilling things on the global object in my app, rather than ponyfilling like @babel/runtime does. The @babel/runtime ponyfills included by material-ui needlessly increase bundle size. It could be helped a bit if I switched to using the @babel/runtime (core-js) ponyfills in my app, but even then code will be included for very old browsers that my app doesn't work in anyway.
After gzip, about 7KB of core-js modules are included through material-ui in my case:

In Babel 6, babel-runtime always used the polyfills in its helper functions, but the new runtime transform in Babel 7 has an option, useBuiltIns, to disable this behaviour. I'd suggest these options:
{
  "plugins": [
    ["@babel/transform-runtime", {
      // Disables importing polyfills in transformed files
      "polyfill": false,
      // When transform-runtime imports helpers, use versions that do not import polyfills
      "useBuiltIns": true,
    }]
  ]
}

Your Environment

Tech
Version

Material-UI
v1.0.0-beta.47

React
v16.3.2

Babel
v7.0.0-beta.46

I'm happy to work on a patch for this, just opening an issue in advance to check what y'all's opinion is before I do it.

@goto-bus-stop Are you using the /es modules or the / ones?

The material-ui docs could mention which polyfills are necessary

No polyfills are necessary as we are speaking. It's making the onboarding experience simpler.

If users need to support older environments, they can add polyfills themselves.

I believe we have been documenting it with the /es folder. We transpile everthing that is not yet into EcmaScript.

I'd suggest these options:

This is a bold change. I'm not convinced it worth it. Right now, we follow:

react-bootstrap
ant-design

I'm using /es modules but the runtime transform is used for both.

No polyfills are necessary as we are speaking. It's making the onboarding experience simpler.

That's true, but the core-js polyfills are adding unnecessary weight when targeting modern browsers or when the app already includes its own polyfills. The material-ui components that are used in my app take 14KB gzipped; the polyfills included by mui add another 7KB.
Suggesting people use @babel/polyfill and @babel/preset-env with the useBuiltIns option would be a fairly simple way to include global polyfills in apps that don't add them manually already, I think.

I believe we have been documenting it with the /es folder. We transpile everything that is not yet into ECMAScript.

The /es folder also includes polyfills for Object.keys and other runtime features that have shipped in ES standards. eg<EMAIL_ADDRESS>includes polyfills for Map, Object.keys and Number.MAX_SAFE_INTEGER:
import _Object$keys from "@babel/runtime/core-js/object/keys";
import _Map from "@babel/runtime/core-js/map";
import _Number$MIN_SAFE_INTEGER from "@babel/runtime/core-js/number/min-safe-integer";

For my purposes it would also be fine if /es didn't include polyfills while the CJS build did. Unfortunately transform-runtime's polyfill option is all-or-nothing so we can't tell it to only include polyfills for proposals that haven't made it into a yearly spec release yet.

This is a bold change. I'm not convinced it worth it. Right now, we follow:

react-bootstrap
ant-design

It doesn't look like those files include polyfills, though, only helpers. Setting polyfill: false would still add the runtime helpers for syntax features like objectWithoutProperties and objectSpread for object rest spread, but it would not include polyfills for runtime language features. This antd file for example uses Object.keys but does not get a core-js polyfill. I think both those libraries use fewer new runtime features though (no new Map or anything as far as I can tell) so they probably don't need many polyfills to begin with.
FWIW I just wanted to bring this up before the v1 release because it would be a breaking change to do it later; if your response is anything but an enthusiastic yes I'm happy to leave it be :)

The /es folder also includes polyfills for Object.keys and other runtime features that have shipped in ES standards.

@goto-bus-stop This is definitely something we should be fixing. For instance, Object.keys is supported by all the browsers we target. I don't think that it should be transformed in the / modules nor in the /es modules.
I was able to find the ant-design Babel configuration:
  plugins.push([require.resolve('babel-plugin-transform-runtime'), {
    polyfill: false,
  }]);

For my purposes it would also be fine if /es didn't include polyfills while the CJS build did.

This approach sounds all good to me. Given the /es modules is for adanced users. The more flexibiliy we provide, the better.

I am already polyfilling things on the global object in my app, rather than ponyfilling like @babel/runtime does. The @babel/runtime ponyfills included by material-ui needlessly increase bundle size.

There is one thing I don't understand. Isn't @babel/polyfill using core-js too? Why adding Material-UI increases the bundle size?
One more thought. Maybe we could try to use the loose mode of the transformations? See if we can save some bytes without breaking anything. But I guess we can wait post v1.

I think polyfill: false like ant-design does would be a great step!

There is one thing I don't understand. Isn't @babel/polyfill using core-js too? Why adding Material-UI increases the bundle size?

Yes, but I'm using hand picked polyfills rather than @babel/polyfill :) Even when using @babel/polyfill in your own app code though, @babel/preset-env with the useBuiltIns option will replace its import with just the polyfills your target needs. That way things like Object.keys and Symbol will not be included if you configured preset-env for modern browsers. But you can't do that if a dependency like MUI imports the polyfills directly anyway.

One more thought. Maybe we could try to use the loose mode of the transformations? See if we can save some bytes without breaking anything. But I guess we can wait post v1.

Yeah I like that, it might be best to try that out before v1 too if possible because there are some observable differences like enumerability of class properties. Changing it later would technically be breaking (even if its unlikely to actually break much).
I can work on a patch for the polyfill: false option and documenting which runtime features MUI uses this weekend

I can work on a patch for the polyfill: false option and documenting which runtime features MUI uses this weekend

Can we scope the changes to the /es folder? 👼 We will release v1 in 6 days from now. I don't want to take the risk + you are an advanced user obviously :).
For the / folder, we use @babel/preset-env. I think that we should wait for https://github.com/babel/babel/issues/7267.


43107

Sorted and distorted.

Conflicts resolved correctly, but other students need this file to be broken. So PR won't be merged :)


[T2A2][W15-A3]Zachary Lim Wei Ling

Reduce SLAP
Refractor
Edit Find
Add Sort
Add Edit

@zachylimwl
we hope you can appreciate the need for good SLAP after this "inlining" exercise
btw,  you should use a proper .gitignore file. this is a VERY messy PR :-P

@zachylimwl i suggest, you open a new PR for code refactoring containing commits only for that? it was very hard to find it in this messy PR.
Please indicate in the PR that this is a resubmit? I am removing the accepted label for this.


I have attached model and solver protobuf. I was not (yet) able to pinpoint exact failure scenario... The model corresponds to shift scheduling problem with lot's of constraints and various optimality criteria, which is solved by LNS (thus most of variables are fixed to current best solution).
I got failure on current release (7.4) and current master.
protobufs.zip

Thanks. We will have a look.
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le ven. 20 déc. 2019 à 15:50, Simon Jesenko<EMAIL_ADDRESS>a
écrit :

When solving large scheduling problem, CP-SAT solver sporadically fails
with following error when improving soluition:
Check failed: SolutionIsFeasible( model_proto, std::vector(response->solution().begin(), response->solution().end())) main solver
*** Check failure stack trace: ***
@     0x7ff734f0446c  google::LogMessage::Fail()
@     0x7ff734f043b4  google::LogMessage::SendToLog()
@     0x7ff734f03cf5  google::LogMessage::Flush()
@     0x7ff734f075ac  google::LogMessageFatal::~LogMessageFatal()
@     0x7ff735a0edf4  ZNSt17_Function_handlerIFvPN19operations_research3sat16CpSolverResponseEEZNS1_12SolveCpModelERKNS1_12CpModelProtoEPNS1_5ModelEEUlS3_E0_E9_M_invokeERKSt9_Any_dataOS3
@     0x7ff735a0c620  ZZN19operations_research3sat12SolveCpModelERKNS0_12CpModelProtoEPNS0_5ModelEENKUlRKNS0_16CpSolverResponseEE2_clES8
@     0x7ff735b2a649  operations_research::sat::SharedResponseManager::NewSolution()
@     0x7ff735a10136  _ZZN19operations_research3sat12_GLOBAL__N_19LnsSolver12GenerateTaskElENKUlvE_clEv
@     0x7ff735b2463c  _ZNSt17_Function_handlerIFvvEZN19operations_research3sat20NonDeterministicLoopERKSt6vectorISt10unique_ptrINS2_9SubSolverESt14default_deleteIS5_EESaIS8_EEiEUlvE_E9_M_invokeERKSt9_Any_data
@     0x7ff73580ed8f  operations_research::RunWorker()
@     0x7ff73756266f  (unknown)
@     0x7ff73aa666db  start_thread
@     0x7ff73ad9f88f  clone
@              (nil)  (unknown)
When exception occurs, solver has already found some viable solutions.
I have attached model and solver protobuf. I was not (yet) able to
pinpoint exact failure scenario... The model corresponds to shift
scheduling problem with lot's of constraints and various optimality
criteria, which is solved by LNS (thus most of variables are fixed to
current best solution).
I got failure on current release (7.4) and current master.
protobufs.zip
https://github.com/google/or-tools/files/3988740/protobufs.zip
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1797?email_source=notifications&email_token=ACUPL3LBIB32NYKTAQUIYELQZTLUXA5CNFSM4J563SQ2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IB7QLBA,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3IZIW4BLAHXYZZG3ALQZTLUXANCNFSM4J563SQQ
.

Hello!
Just to upvote, I've run into this as well but with basically no stacktrace.

 Just a stack trace is not helping :-)
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00
Le jeu. 6 févr. 2020 à 09:18, timothylowjc<EMAIL_ADDRESS>a
écrit :

Hello!
Just to upvote, I've run into this as well but with basically no
stacktrace.

Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1797?email_source=notifications&email_token=ACUPL3PBYAXR37FMANVAQITRBPBUBA5CNFSM4J563SQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK6KDNY#issuecomment-582787511,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3IXO7Y4NTJIJCAEXW3RBPBUBANCNFSM4J563SQQ
.

Hi @lperron ,
Sorry about that! I thought I uploaded it.
modelproto060220.txt
Solution 0, time = 1.756389 s, objective = 896590
Solution 1, time = 1.820084 s, objective = 897230
Solution 2, time = 1.849225 s, objective = 1095520
Solution 3, time = 1.892417 s, objective = 1296590
Solution 4, time = 1.925148 s, objective = 1690670
Solution 5, time = 1.958907 s, objective = 1789110
Solution 6, time = 1.991129 s, objective = 1887680
Solution 7, time = 2.016758 s, objective = 1888320
Solution 8, time = 2.042712 s, objective = 1888470
Solution 9, time = 2.076233 s, objective = 1893200
Solution 10, time = 2.448016 s, objective = 1990680

Check failed: SolutionIsFeasible( model_proto, std::vector<int64>(response->solution().begin(), response->solution().end())) main solver
*** Check failure stack trace: ***
    @     0x7f9c17fd5100  (unknown)
    @     0x7f9c17fd505c  (unknown)
    @     0x7f9c17fd49c0  (unknown)
    @     0x7f9c17fd7df6  (unknown)
    @     0x7f9c154b3334  (unknown)
    @     0x7f9c154b0daf  (unknown)
    @     0x7f9c155c1fb1  (unknown)
    @     0x7f9c154b106d  (unknown)
    @     0x7f9c1555a60d  (unknown)
    @     0x7f9c155623b6  (unknown)
    @     0x7f9c154b1b3d  (unknown)
    @     0x7f9c154b1ce1  (unknown)
    @     0x7f9c155bb24c  (unknown)
    @     0x7f9c152cb938  (unknown)
    @     0x7f9c158f22ff  (unknown)
    @     0x7f9c3ade76db  (unknown)
    @     0x7f9c3b12188f  (unknown)
    @              (nil)  (unknown)

Just some additional information, it does have solutions and then stops working.

This runs fine on master
#Variables: 2573 (737 in objective)

2046 in [0,1]
11 in [0,200]
22 in [1,588]
11 in [31,231]
11 in [32,232]
11 in [67,267]
11 in [76,276]
11 in [84,284]
11 in [88,288]
11 in [96,296]
11 in [107,307]
22 in [112,312]
11 in [116,316]
11 in [117,317]
11 in [120,320]
22 in [128,328]
11 in [138,338]
11 in [141,341]
11 in [146,346]
11 in [147,347]
22 in [152,352]
11 in [156,356]
11 in [164,364]
11 in [177,377]
11 in [179,379]
11 in [184,384]
11 in [190,390]
11 in [192,392]
11 in [203,403]
11 in [204,404]
11 in [215,415]
22 in [227,427]
11 in [288,488]
33 in [328,528]
11 in [333,533]
11 in [346,546]
11 in [365,565]
22 in [379,579]
11 in [387,587]
21 constants in
{0,1,17,23,24,25,26,27,29,31,33,34,35,37,45,51,59,63,64,75,1387}
#kInterval: 363 (#enforced: 363)
#kLinear1: 968 (#enforced: 968)
#kLinear2: 10164 (#enforced: 10164)
#kLinearN: 264
#kNoOverlap: 11
#kReservoir: 33
I0206 12:02:05.945744   20962 cp_model_solver.cc:2459] *** starting model
presolve at 0.01s
I0206 12:02:07.092032   20962 cp_model_presolve.cc:4468] - 8997 affine
relations were detected.
I0206 12:02:07.092070   20962 cp_model_presolve.cc:4470] - 8997 variable
equivalence relations were detected.
I0206 12:02:07.092079   20962 cp_model_presolve.cc:4478] - rule
'at_most_one: removed literals' was applied 171 times.
I0206 12:02:07.092082   20962 cp_model_presolve.cc:4478] - rule 'bool_or:
always true' was applied 6626 times.
I0206 12:02:07.092084   20962 cp_model_presolve.cc:4478] - rule 'bool_or:
fixed literals' was applied 516 times.
I0206 12:02:07.092085   20962 cp_model_presolve.cc:4478] - rule 'bool_or:
implications' was applied 63 times.
I0206 12:02:07.092087   20962 cp_model_presolve.cc:4478] - rule 'bool_or:
removed enforcement literal' was applied 15 times.
I0206 12:02:07.092089   20962 cp_model_presolve.cc:4476] - rule
'deductions: 5307 stored' was applied 1 time.
I0206 12:02:07.092091   20962 cp_model_presolve.cc:4478] - rule
'enforcement literal not used' was applied 91 times.
I0206 12:02:07.092093   20962 cp_model_presolve.cc:4478] - rule 'false
enforcement literal' was applied 31771 times.
I0206 12:02:07.092095   20962 cp_model_presolve.cc:4478] - rule 'linear:
always true' was applied 1319 times.
I0206 12:02:07.092097   20962 cp_model_presolve.cc:4478] - rule 'linear:
divide by GCD' was applied 161 times.
I0206 12:02:07.092099   20962 cp_model_presolve.cc:4478] - rule 'linear:
empty' was applied 607 times.
I0206 12:02:07.092101   20962 cp_model_presolve.cc:4478] - rule 'linear:
enforcement literal in constraint' was applied 101 times.
I0206 12:02:07.092103   20962 cp_model_presolve.cc:4478] - rule 'linear:
extracted at most one (min).' was applied 2 times.
I0206 12:02:07.092105   20962 cp_model_presolve.cc:4478] - rule 'linear:
extracted enforcement literal from constraint' was applied 38 times.
I0206 12:02:07.092106   20962 cp_model_presolve.cc:4478] - rule 'linear:
fixed or dup variables' was applied 1304 times.
I0206 12:02:07.092109   20962 cp_model_presolve.cc:4478] - rule 'linear:
infeasible' was applied 1446 times.
I0206 12:02:07.092111   20962 cp_model_presolve.cc:4478] - rule 'linear:
negative clause' was applied 16 times.
I0206 12:02:07.092113   20962 cp_model_presolve.cc:4478] - rule 'linear:
negative equal one' was applied 242 times.
I0206 12:02:07.092115   20962 cp_model_presolve.cc:4478] - rule 'linear:
positive at most one' was applied 22 times.
I0206 12:02:07.092118   20962 cp_model_presolve.cc:4478] - rule 'linear:
positive reified and' was applied 30 times.
I0206 12:02:07.092120   20962 cp_model_presolve.cc:4478] - rule 'linear:
remapped using affine relations' was applied 158 times.
I0206 12:02:07.092122   20962 cp_model_presolve.cc:4478] - rule 'linear:
simplified rhs' was applied 13093 times.
I0206 12:02:07.092124   20962 cp_model_presolve.cc:4478] - rule 'linear:
singleton column' was applied 618 times.
I0206 12:02:07.092126   20962 cp_model_presolve.cc:4478] - rule 'linear:
size one' was applied 621 times.
I0206 12:02:07.092128   20962 cp_model_presolve.cc:4478] - rule 'linear:
split boxed constraint' was applied 15 times.
I0206 12:02:07.092130   20962 cp_model_presolve.cc:4478] - rule 'objective:
variable not used elsewhere' was applied 550 times.
I0206 12:02:07.092133   20962 cp_model_presolve.cc:4478] - rule 'presolve:
iteration' was applied 2 times.
I0206 12:02:07.092139   20962 cp_model_presolve.cc:4478] - rule 'removed
duplicate constraints' was applied 19 times.
I0206 12:02:07.092141   20962 cp_model_presolve.cc:4478] - rule 'reservoir:
expanded' was applied 33 times.
I0206 12:02:07.092144   20962 cp_model_presolve.cc:4478] - rule 'setppc:
removed redundant constraints' was applied 2 times.
I0206 12:02:07.092147   20962 cp_model_presolve.cc:4478] - rule 'true
enforcement literal' was applied 577 times.
I0206 12:02:07.092152   20962 cp_model_presolve.cc:4478] - rule 'variables:
detect half reified value encoding' was applied 484 times.
I0206 12:02:07.093902   20962 cp_model_solver.cc:2484] Optimization model
'':
#Variables: 5630 (170 in objective)
5484 in [0,1]
3 in [0,200]
22 in [1,588]
3 in [31,231]
2 in [32,232]
3 in [67,267]
3 in [76,276]
3 in [84,284]
3 in [88,288]
2 in [96,296]
3 in [107,307]
6 in [112,312]
2 in [116,316]
3 in [117,317]
1 in [120,320]
4 in [128,328]
1 in [138,338]
3 in [141,341]
3 in [146,346]
1 in [147,347]
4 in [152,352]
3 in [156,356]
1 in [164,364]
1 in [177,377]
2 in [179,379]
1 in [184,384]
3 in [190,390]
3 in [192,392]
1 in [203,403]
3 in [204,404]
1 in [215,415]
6 in [227,427]
3 in [288,488]
8 in [328,528]
3 in [333,533]
3 in [346,546]
3 in [365,565]
6 in [379,579]
2 in [387,587]
18 constants in {17,23,24,25,26,27,29,31,33,34,35,37,45,51,59,63,64,75}
#kAtMostOne: 4482 (#literals: 16681)
#kBoolAnd: 46 (#enforced: 46) (#literals: 217)
#kBoolOr: 3879 (#literals: 16104)
#kInterval: 174 (#enforced: 174)
#kLinear1: 218 (#enforced: 218)
#kLinear2: 5426 (#enforced: 5426)
#kLinearN: 111 (#enforced: 108)
#kNoOverlap: 11
I0206 12:02:07.097418   20962 cp_model_solver.cc:2624] *** starting to load
the model at 1.16s
I0206 12:02:07.448031   20962 synchronization.cc:131] #Bound   1.51s
best:-inf  next:[-108661,2013672] init
I0206 12:02:07.448074   20962 cp_model_solver.cc:2630] *** starting
sequential search at 1.51s
I0206 12:02:07.448078   20962 cp_model_solver.cc:2632] Initial num_bool:
5590
I0206 12:02:07.886365   20962 synchronization.cc:131] #1       1.95s
best:1890869 next:[1890870,2013672]  num_bool:5922
I0206 12:02:07.897007   20962 synchronization.cc:131] #2       1.96s
best:1891730 next:[1891731,2013672]  num_bool:5933
I0206 12:02:07.902234   20962 synchronization.cc:131] #3       1.96s
best:1892480 next:[1892481,2013672]  num_bool:5934
I0206 12:02:07.909269   20962 synchronization.cc:131] #4       1.97s
best:1892700 next:[1892701,2013672]  num_bool:5934
I0206 12:02:07.923609   20962 synchronization.cc:131] #5       1.98s
best:1892710 next:[1892711,2013672]  num_bool:5934
I0206 12:02:07.932455   20962 synchronization.cc:131] #6       1.99s
best:1893740 next:[1893741,2013672]  num_bool:5939
I0206 12:02:07.938882   20962 synchronization.cc:131] #7       2.00s
best:1993790 next:[1993791,2013672]  num_bool:5940
I0206 12:02:07.949809   20962 synchronization.cc:131] #8       2.01s
best:1993930 next:[1993931,2013672]  num_bool:5941
I0206 12:02:07.958914   20962 synchronization.cc:131] #9       2.02s
best:1994880 next:[1994881,2013672]  num_bool:5944
I0206 12:02:07.968361   20962 synchronization.cc:131] #10      2.03s
best:1995680 next:[1995681,2013672]  num_bool:5944
I0206 12:02:07.983584   20962 synchronization.cc:131] #11      2.04s
best:1995790 next:[1995791,2013672]  num_bool:5949
I0206 12:02:08.181634   20962 synchronization.cc:131] #12      2.24s
best:1995870 next:[1995871,2013672]  num_bool:5955
I0206 12:02:08.326196   20962 synchronization.cc:131] #13      2.39s
best:1996470 next:[1996471,2013672]  num_bool:5960
I0206 12:02:08.353934   20962 synchronization.cc:131] #14      2.41s
best:1997340 next:[1997341,2013672]  num_bool:5962
I0206 12:02:08.395148   20962 synchronization.cc:131] #15      2.46s
best:1997449 next:[1997450,2013672]  num_bool:5967
I0206 12:02:08.432400   20962 synchronization.cc:131] #16      2.49s
best:1997730 next:[1997731,2013672]  num_bool:5971
I0206 12:02:08.441555   20962 synchronization.cc:131] #17      2.50s
best:1997740 next:[1997741,2013672]  num_bool:5971
I0206 12:02:08.470982   20962 synchronization.cc:131] #18      2.53s
best:1997870 next:[1997871,2013672]  num_bool:5976
I0206 12:02:08.520565   20962 synchronization.cc:131] #19      2.58s
best:1997940 next:[1997941,2013672]  num_bool:5979
I0206 12:02:08.582198   20962 synchronization.cc:131] #20      2.64s
best:1998060 next:[1998061,2013672]  num_bool:5982
I0206 12:02:09.154960   20962 synchronization.cc:131] #21      3.22s
best:1998070 next:[1998071,2013672]  num_bool:5983
I0206 12:02:09.340234   20962 synchronization.cc:131] #22      3.40s
best:1998209 next:[1998210,2013672]  num_bool:5988
I0206 12:02:09.370179   20962 synchronization.cc:131] #23      3.43s
best:1998249 next:[1998250,2013672]  num_bool:5991
I0206 12:02:09.479529   20962 synchronization.cc:131] #Bound   3.54s
best:1998249 next:[1998250,2013216]
I0206 12:02:09.866036   20962 synchronization.cc:131] #24      3.93s
best:1998250 next:[1998251,2013216]  num_bool:5995
I0206 12:02:09.898103   20962 synchronization.cc:131] #25      3.96s
best:1998290 next:[1998291,2013216]  num_bool:5999
I0206 12:02:09.971624   20962 synchronization.cc:131] #26      4.03s
best:1998559 next:[1998560,2013216]  num_bool:6001
I0206 12:02:10.023130   20962 synchronization.cc:131] #Bound   4.08s
best:1998559 next:[1998560,2000000]
I0206 12:02:10.099882   20962 synchronization.cc:131] #27      4.16s
best:1998560 next:[1998561,2000000]  num_bool:6002
I0206 12:02:10.210147   20962 synchronization.cc:131] #28      4.27s
best:1998570 next:[1998571,2000000]  num_bool:6002
I0206 12:02:10.244918   20962 synchronization.cc:131] #29      4.31s
best:1998640 next:[1998641,2000000]  num_bool:6003
I0206 12:02:10.265979   20962 synchronization.cc:131] #Bound   4.33s
best:1998640 next:[1998641,1999040]
I0206 12:02:10.266198   20962 synchronization.cc:139] #Done    4.33s
I0206 12:02:10.273166   20962 cp_model_solver.cc:2646] CpSolverResponse:
status: OPTIMAL
objective: 1998640
best_bound: 1998640
booleans: 6003
conflicts: 7930
branches: 195991
propagations: 7090495
integer_propagations: 3876470
walltime: 4.33379
usertime: 4.32326
deterministic_time: 2.00399
primal_integral: 0
Laurent Perron | Operations Research |<EMAIL_ADDRESS>| (33) 1 42 68 53
00

Le jeu. 6 févr. 2020 à 11:47, timothylowjc<EMAIL_ADDRESS>a
écrit :

Hi @lperron https://github.com/lperron ,
Sorry about that! I thought I uploaded it.
modelproto060220.txt
https://github.com/google/or-tools/files/4164633/modelproto060220.txt
Solution 0, time = 1.756389 s, objective = 896590
Solution 1, time = 1.820084 s, objective = 897230
Solution 2, time = 1.849225 s, objective = 1095520
Solution 3, time = 1.892417 s, objective = 1296590
Solution 4, time = 1.925148 s, objective = 1690670
Solution 5, time = 1.958907 s, objective = 1789110
Solution 6, time = 1.991129 s, objective = 1887680
Solution 7, time = 2.016758 s, objective = 1888320
Solution 8, time = 2.042712 s, objective = 1888470
Solution 9, time = 2.076233 s, objective = 1893200
Solution 10, time = 2.448016 s, objective = 1990680
Check failed: SolutionIsFeasible( model_proto, std::vector(response->solution().begin(), response->solution().end())) main solver
*** Check failure stack trace: ***
@     0x7f9c17fd5100  (unknown)
@     0x7f9c17fd505c  (unknown)
@     0x7f9c17fd49c0  (unknown)
@     0x7f9c17fd7df6  (unknown)
@     0x7f9c154b3334  (unknown)
@     0x7f9c154b0daf  (unknown)
@     0x7f9c155c1fb1  (unknown)
@     0x7f9c154b106d  (unknown)
@     0x7f9c1555a60d  (unknown)
@     0x7f9c155623b6  (unknown)
@     0x7f9c154b1b3d  (unknown)
@     0x7f9c154b1ce1  (unknown)
@     0x7f9c155bb24c  (unknown)
@     0x7f9c152cb938  (unknown)
@     0x7f9c158f22ff  (unknown)
@     0x7f9c3ade76db  (unknown)
@     0x7f9c3b12188f  (unknown)
@              (nil)  (unknown)
Just some additional information, it does have solutions and then stops
working.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/google/or-tools/issues/1797?email_source=notifications&email_token=ACUPL3MLPCMFZX3UB6GH2RTRBPTFLA5CNFSM4J563SQ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEK6YH2Q#issuecomment-582845418,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACUPL3K6IUMJQMBIR7NYORTRBPTFLANCNFSM4J563SQQ
.

both problems works fine on master.
Closing the issue.


upload sample video file before running either of the test workflows

Issue #, if available:
#661
Description of changes:
Make the upload fixture run once per test function so the sample video is in the public upload folder, where the workflow config expects it to be.
I think this needs to be merged to development branch before the e2e test will work in github actions. But I've verified it on my laptop.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

skipping code review because this is a trivial change.


Updating env var documentation

The position was a bit too early. Fleshed out the example.
Also, using the _ underscore for emphasis was confusing because it is also used to indicate
a level change.
Signed-off-by: Mary Anthony<EMAIL_ADDRESS>/cc ping @RichardScothern

LGTM!

LGTM!


[#217] Upgrade skin to 16

Skin 16
Remove EbayProgramBadge component
Update icons
Update icon generating scripts
Fix all icon names in components
Update tests/snapshots

Storybook: https://opensource.ebay.com/ebayui-core-react/skin16/?path=/story/ebay-icon--all-icons

You have successfully added a new ESLint configuration .github/workflows/pr.yml:analyze. As part of the setup process, we have scanned this repository and found no existing alerts. In the future, you will see all code scanning alerts on the repository Security tab.

@darkwebdev is this something we explicitly integrated? wondering what sort of basic rules, and if it could be applied to our internal repos as well?


F.to_date() fails when any format is specified

Looking at the exact samples from documentation
https://spark.apache.org/docs/3.1.2/api/python/reference/api/pyspark.sql.functions.to_date.html
First run, not including the format, will succeed.
But on adding a date_format argument, it will fail
from sqlframe.duckdb import DuckDBDataFrame as DataFrame
from sqlframe.duckdb import DuckDBSession
from sqlframe.duckdb import functions as F

spark = DuckDBSession()

df = spark.createDataFrame([('1997-02-28 10:30:00',)], ['t'])
df = df.select(F.to_date(df.t, 'yyyy-MM-dd HH:mm:ss').alias('date'))
print(df.sql())
print(df.show())

it will fail with
SELECT
  CAST(CAST("a1"."t" AS TEXT) AS DATE) AS "date"
FROM (VALUES
  ('1997-02-28 10:30:00')) AS "a1"("t")
Traceback (most recent call last):
  File "/workspaces/playground.py", line 10, in <module>
    print(df.show())
  File "/workspaces/.venv/lib/python3.10/site-packages/sqlframe/base/dataframe.py", line 1555, in show
    result = self.session._fetch_rows(sql)
  File "/workspaces/.venv/lib/python3.10/site-packages/sqlframe/base/session.py", line 455, in _fetch_rows
    self._execute(sql, quote_identifiers=quote_identifiers)
  File "/workspaces/.venv/lib/python3.10/site-packages/sqlframe/base/session.py", line 427, in _execute
    self._cur.execute(self._to_sql(sql, quote_identifiers=quote_identifiers))
duckdb.duckdb.InvalidInputException: Invalid Input Error: Could not parse string "1997-02-28 10:30:00" according to format specifier "yyyy-MM-dd HH:mm:ss"
1997-02-28 10:30:00
 ^
Error: Literal does not match, expected yyyy-MM-dd HH:mm:ss

Format needs to be in DuckDB format: https://duckdb.org/docs/sql/functions/dateformat.html#format-specifiers
If you search this page for to_date you will find the note on that: https://sqlframe.readthedocs.io/en/stable/duckdb/#functions
See this issue about allowing the user to use spark format on other engines: https://github.com/eakmanrq/sqlframe/issues/56
I wasn't sure if users would find it more intuitive to use the format from their engine or use Spark format. It seems like Spark format might be the preference. Please leave any feedback you may have on that issue.

Thanks for the links, indeed Spark format is more practical for my current situation since the tests that I'm doing are pretty straightforward:
Current project is on pyspark and I'm just switching import statements from pyspark to sqlframe.duckdb to run existing spark code on duckdb, that's about it. More or less quick feedback as I do this in between breaks.
Next time, I will double check against docs and make sure I'm not getting lost around different commands, as it was the case with .size.
Thank you for the work you're doing.

Yeah based on feedback I am getting it seems like using Spark format is more intuitive for users. I will make this change soon. I think I will change the default to be spark format and then later consider allowing users to define in their engine's format.


RAM leak with KenLM

Hello!
For some reason our 3 GB russian KenLM arpa model (binarized) uses ~50 GB of RAM during CTCBeamDecoder class inizialization and estimation (100 beam width).
When using KenLM python module with this model everything is ok!
Model was trained on a big Russian corpus (37 labels).

@SeanNaren would be really great if you could help out with this
@adamnsandle
Which tokens do you use, how much data do use to train the model, how do you train the KenLM model, how do you initialize the class?

What we tried to do:

cut long sentences in KenLM train corpus (<100 / <200 / < inf)
cut number of sentences (100M, 200M, 800M)
lowercase/uppercase
different string endings ( '. \n', '\n')
differentent types of binarization (trie, probing)

Overall, RAM consumption drops with lesser numer of sentences / their length, but stays too huge, ~20 GB with a 100 MB model
Labels used - 'АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ2_ * ' (simple russian alphabet, 2 is a special symbol for a letter repeat, * as a string end symbol)
ctc class inizialization:
 dcdr = CTCBeamDecoder(labels, lm_path, alpha=0.3, beta=0.4, cutoff_top_n=20, cutoff_prob=1, beam_width=100, num_processes=6, labels.index('_'))
(tried different num_processes and beam_width, did not work)

Did you guys try turning this arpa file into a trie file? check the examples here

@adamnsandle
Also which kenlm command did you use to train an LM?
@SeanNaren
Which command do you use for your models?

@SeanNaren
We used this script to train model:
 bin/lmplz -o 4 -S 50% -T temp/  --prune 0 30 60 130 --discount_fallback <web_all_norm.txt> web_all_norm.arpa
And to binarize it:
./build_binary -S 5G trie  web_all_norm.arpa   web_all_norm.arpa.bin
or
./build_binary -S 5G trie  -q 8 web_all_norm.arpa   web_all_norm.arpa.bin
or simply
./build_binary web_all_norm.arpa   web_all_norm.arpa.bin

How big is the output trie?

2.05 GB
When we try to use lesser model (~200 MB in trie), RAM leak still presents (~30GB)

Hi, I want to know that what does the KenLM model based?
Word-based or character-based???
Thank you very much!@adamnsandle @SeanNaren

+1 this issue. Even using the deep speech 1 lm binary causes massive ram use

I believe this is caused by an internal trie creation on model loading, which then stays in memory and consumes a lot of RAM.
Mozilla in their version saves this tie to an external file, and doesn't generate it "on the fly".

Loading model...
Traceback (most recent call last):
File "examples/demo-server.py", line 10, in
import beamdecode
File "/home/pi/masr/examples/../beamdecode.py", line 29, in
blank_index,
File "/home/pi/.local/lib/python3.7/site-packages/ctcdecode/init.py", line 18, in init
self._num_labels)
RuntimeError: third_party/kenlm/util/mmap.cc:122 in void* util::MapOrThrow(std::size_t, bool, int, bool, int, uint64_t) threw ErrnoException because `(ret = mmap(__null, size, protect, flags, fd, offset)) == ((void *) -1)'.
Cannot allocate memory mmap failed for size<PHONE_NUMBER> at offset 0

i have the simillar problems on isuue #137

+1 this issue.

+1. Is there a fix?


Put Sized bound on LoadSurface trait

This fixes a warning on nightly Rust (which will later become a hard error).
See https://github.com/rust-lang/rfcs/pull/1214.

:) thanks


Jenkins build hasn't updated since November 2019

Pretty much what the title says.  Looks like the Jenkins job linked in README.md isn't building the plugin when new commits are pushed.

Thanks, webhook died for some reason.
Should be fixed now :)


Discussion: Version Tags

Using php-activerecord with composer or any other package manager is difficult, because of the lack of version tags. Many features are missing, unless using the "master" branch, which changes often.
For this library to keep iterating, it should be version tagged in more places for markings of "stability".
Without these tags, every single pull request and commit holds a LOT more weight/responsibility.
Unfortunately, only the original repo owners have the ability to create version tags... otherwise, I'd send a pull request.
For more reasoning and a quick how-to on creating Git tags (very easy), refer to this post.

Ahem... Could we maybe have one more tag? Please? Especially, since you have fixes for PHP7 issues lately, issues that present in 1.1.2.

@TiGR I have been updating #430 the past few days, and started on an updated documentation (preview here: https://koenpunt.github.io/php-activerecord/api/), so maybe that's something we can release. But for now I've released master as v1.2.0: https://github.com/jpfuentes2/php-activerecord/releases/tag/v1.2.0


Rerunning the end_to_end test a second time produces no results

Repro steps:
docker stop shipping_container
docker rm shipping_container
./shipshape/test/end_to_end_test.sh --tag local
./shipshape/test/end_to_end_test.sh --tag local
Notice the difference in output from the last two commands.

Does this happen if end_to_end_test.sh is modified to shut down Shipshape after each invocation?

Now that we have go tests, I'm going to create a new test that tries to repro this.

Test added in D136 and seems to work now. Might have been a problem with the end to end test itself.


Issue with intensity jump when resampling distributions

The main issues for me is indeed the intensity jump. Could this be because the NWP has very high intensities, but as these are not present in the blended forecast, the latter is unrealistically scaled up overall?
Do you suggest not filling anything outside the radar mask (so we have nans in the final forecast)? Or just for the resampling?
Originally posted by @ladc in https://github.com/pySTEPS/pysteps/issues/390#issuecomment-2247776140

I'm opening a new issue here to better track the problem described by @ladc in #390.
@RubenImhoff did I understand correctly that you're working on it?

Should be fixed in #428.


API Startup crash due to SQL server unavailable.

If the SQL server is unavailable my .Net Core API crashes at startup. While this is obviously an issue for the API functioning, I don't think it should make it crash at startup.
services.AddElmah<SqlErrorLog>(options =>
            {
                options.ApplicationName = "My App Name";
                options.ConnectionString = _configuration.GetSection("ConnectionStrings")["MyConnection"];
            });

Tracked it down to the CreateTableIfNotExists method. Please put it in a try catch :)

@ElmahCore
cc: @jafin
Please could we have a NuGet release with this fix in?


Improve & fix users fact failure handling

Describe the bug
If I do have user present it does not continue because the user already exist.
To Reproduce
server.user(
{'Ensure users is present'},
'someuser',
present=True,
)
Expected behavior
To not error and continue.
Meta

Include output of pyinfra --support.
--> Support information:
If you are having issues with pyinfra or wish to make feature requests, please
check out the GitHub issues at https://github.com/Fizzadar/pyinfra/issues .
When adding an issue, be sure to include the following:
System: Linux
Platform: Linux-5.6.19-300.fc32.x86_64-x86_64-with-glibc2.2.5
Release: 5.6.19-300.fc32.x86_64
Machine: x86_64
pyinfra: v0.16
Executable: /home/nardusg/.local/bin/pyinfra
Python: 3.8.3 (CPython, GCC 10.1.1 20200507 (Red Hat 10.1.1-1))

How was pyinfra installed (source/pip)?
pip

Include pyinfra-debug.log (if one was created)

Consider including output with -vv and --debug.
--> Starting operation: Ensure users is present
[pyinfra.api.operations] Starting operation Ensure users is present on someserver
[pyinfra.api.connectors.ssh] Running command on someserver: (pty=None) env SUDO_ASKPASS=/tmp/pyinfra-pyinfra-sudo-askpass *** sudo -H -A -k sh -c 'useradd -d /home/someuser someuser'
[narrem.narra.co.za] >>> env SUDO_ASKPASS=/tmp/pyinfra-pyinfra-sudo-askpass *** sudo -H -A -k sh -c 'useradd -d /home/someuser someuser'
[someserver] useradd: user 'someuser' already exists
[pyinfra.api.connectors.ssh] Waiting for exit status...
[pyinfra.api.connectors.ssh] Command exit status: 9
[narrem.narra.co.za] Error
[pyinfra.api.state] Failing hosts: someserver

Looks like something is wrong with facts gathering. I am curious to know if pyinfra INVENTORY fact users has someuser as part of its output?

[pyinfra.api.operation] Adding operation, {'Ensure users is present'}, called @ deploy.py:21, opLines=(0, 21), opHash=b1d1da4808a9765a47e35b9cfb13e271e108f5f0
[pyinfra.api.facts] Getting fact: users (ensure_hosts: (someserver,))
[pyinfra.api.connectors.ssh] Running command on someserver: (pty=False) sudo -H -n sh -c '
    for i in `cat /etc/passwd | cut -d: -f1`; do
        ID=`id $i`
        META=`cat /etc/passwd | grep ^$i: | cut -d: -f6-7`
        echo "$ID $META"
    done
'
[pyinfra.api.connectors.ssh] Waiting for exit status...
[pyinfra.api.connectors.ssh] Command exit status: 1
[pyinfra.api.facts] Loaded fact users
[pyinfra.api.facts] Getting fact: directory (ensure_hosts: (someserver,))
[pyinfra.api.connectors.ssh] Running command on someserver: (pty=False) sudo -H -n sh -c 'ls -ld --time-style=long-iso /home/someuser 2> /dev/null || ls -ldT /home/someuser'
[pyinfra.api.connectors.ssh] Waiting for exit status...
[pyinfra.api.connectors.ssh] Command exit status: 1

I am pretty confident that this can be treated as a bug. The root cause is that fact gathering does not bother digging deeper if the execution was not successful. Around Here we see that we just use the default value for the Fact class in case the fact gathering was not a success which in this case will cause the server.user operation to do something that it should not do which is trying creating a user that already exists.

Interesting, so something in the little shell script there is failing. @nardusg what OS is the target host in this instance? My thinking is that the format of /etc/passwd combined with the grep/cut call is failing.
This should absolutely not fail so easily - one bad line in the file will currently cause it to fail.

Centos 8 😱

Annoyingly I can't replicate this using a CentOS 8 VM or Docker container! Does the following run OK if you execute it manually:
for i in `cat /etc/passwd | cut -d: -f1`; do
    ID=`id $i`
    META=`cat /etc/passwd | grep ^$i: | cut -d: -f6-7`
    echo "$ID $META"
done

I believe this may be similar to https://github.com/Fizzadar/pyinfra/issues/336, where the lack of semicolons causes issues. I have pushed https://github.com/Fizzadar/pyinfra/commit/8ec1d0dc06f8ef5edc8bd6d9cc538e788be54a5e which adds these. If possible would you be able to test from the master branch @nardusg?

I think it would be also helpful for meaningful error messages to be reported when gathering facts.

Annoyingly I can't replicate this using a CentOS 8 VM or Docker container! Does the following run OK if you execute it manually:
for i in `cat /etc/passwd | cut -d: -f1`; do
    ID=`id $i`
    META=`cat /etc/passwd | grep ^$i: | cut -d: -f6-7`
    echo "$ID $META"
done

I believe this may be similar to #336, where the lack of semicolons causes issues. I have pushed 8ec1d0d which adds these. If possible would you be able to test from the master branch @nardusg?

I can, will just need to find out how I can update the pip version to specific branch

after_patch.txt

Also notice all of the following lines, bit weird:

System Users
server.user(
{'Ensure users is present'},
'narrem',
public_keys='ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCna1qWLoJROMz9B379FQhCYs+I4s0ZodMzeaG6fPmF5EGrjgEEUtwFPa9zdgaI2JzjKOVvnqo5bJ6qfN0Ommwxd36cqPlojfGRL8XzilITkyjtgX19abqe4zuaDlz0DOnIEb/MUIhCmlKtAoEXSPLBZ30zGm8YCVflFRPJEk7LaWiMApI4hHvmWAjESIXpCwPx7bcxvrV13fZ1JeByEoLv9eoEQx4vn5qkzb543zkeFdkawVaaX/nYlLTLWDP5Utj9p+2nVsIu9HzmpNxTVeenPKL8Frk+rUSdD/1OOQScX0snk5b0ttyll2YJ12kkz2l48Jybbg5ZLps5FxET4WI/009muOREbsVHRM+2ATOgRi4ZsdK2vLpNt2FaPrjLt7wuSYD1531S3C7UtTT56FJzfUKYHRQeAhowPfFLrDf4fmVBgBjJ5MFrDD1KL9pyibILxllPBP4TSJ6JM7IGehVwrcNeWTKn/H4l/0/j2dEwt6vPU05QPEBG4AxJJXoJgy7JfzNxdzA8oC5RqGpkekDWiF5+N9CDGVvo3YVzON8ZkytkGFt38dvcQN+4pFhCYPqKTszQdqqMtu7IPPwgb1bi90/RpJnUUDciGxKhcUThXO/CxUlE6PeskplK7T3/TfKvi9j57H0N9NeWQQumWqiP8rfHI4ne7t2+LJSHdWKL1Q== root@lunarnix',
present=True,
# ensure_home=True,
)

@nardusg public_keys here must be a list. But it looks like the change has fixed it :)
I'm also going to update public_keys to work with a string as this is confusing.

It stills fail, but lets see with your code:
--> Starting operation: Ensure users is present
[pyinfra.api.operations] Starting operation Ensure users is present on narrem.narra.co.za
[pyinfra.api.connectors.ssh] Running command on narrem.narra.co.za: (pty=None) env SUDO_ASKPASS=/tmp/pyinfra-pyinfra-sudo-askpass *** sudo -H -A -k sh -c 'useradd -d /home/narrem narrem'
[pyinfra.api.connectors.ssh] Waiting for exit status...
[pyinfra.api.connectors.ssh] Command exit status: 9
[narrem.narra.co.za] useradd: user 'narrem' already exists
[narrem.narra.co.za] Error
[pyinfra.api.state] Failing hosts: narrem.narra.co.za
Did put it in a list, works nicely
Thanks
Nar

@FooBarQuaxx so the issue with this is facts are intentionally expected to fail at times, ie running a deploy over a mix of linux distributions you want host.fact.deb_packages to work on them all, even if dpkg doesn't actually exist.
BUT this absolutely hides underlying issues such as this one, which is no good. I am going to look at:

Make facts fail when this happens (respecting the ongoing operation's ignore_errors)
Add a fact class attribute to use_default_on_error which will support the above assumptions with apt/etc without just having || true everywhere

Still does not solve the underlying issue here. @nardusg could you re-run just pyinfra HOST fact users -v --debug? I need to see exactly what error was encountered during the fact gathering.

facts_debug.txt

It works! Which makes the original error all the more bizzare. I can't see why this would be any different when running in the context of an operation. The only difference here is the lack of sudo, but  that should not change how the underlying command is executed. Not entirely sure how to proceed at this point.

I think I've got it! Note how in the debug lugs there's no sudo password in the fact commands.
I believe there is a bug here where use_sudo_password isn't being respected in commands, hence them all failing with status 1 and now output.

@Fizzadar Yes, I get that. It is not necessary that if a system is missing a feature, that it means it's necessary a show stopper. But in this case here.

@FooBarQuaxx 👍 agreed, I've added https://github.com/Fizzadar/pyinfra/issues/347!

@nardusg I've just released 0.16.1 which should fix this!

Awesome, it works :smiley:


Handle not existing user

If the user is not registered on GitHub the JSON we receive has {} in the author field for the commit.
This maybe can be fixed at danger-js level to just return nil in that case maybe, but I didn't see any obvious way? (any idea @orta?)
For the moment I added a patch to the problem

Warnings

:warning:

Any changes to library code should be reflected in the Changelog.
Please consider adding a note there and adhere to the Changelog Guidelines.

:warning:

Sources/Danger/GitHubDSL.swift#L154 - Enum element name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L170 - Variable name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L184 - Variable name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L227 - Enum element name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L240 - Variable name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L271 - Enum element name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L291 - Variable name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L349 - Enum element name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L377 - Variable name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L428 - Variable name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L452 - Enum element name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L471 - Variable name should be between 3 and 40 characters long: 'id' (identifier_name)

:warning:

Sources/Danger/GitHubDSL.swift#L505 - File should contain 400 lines or less: currently contains 505 (file_length)

  Generated by :no_entry_sign: Danger Swift against 4eb093f5279c5486ace81d86a3853c86949f9138

Failing because of https://github.com/danger/danger-js/issues/884


Adding a label on top and on the bottom

Hiya,
Currently as I see it cannot add a label on top of the qr code and one on the bottom.
Or am I missing something :-)?

Hi @NoxxieNl that is correct. Currently you can only add a label to the bottom of the QR code ;)

You open for a pr if i can make it work to get a label on the top also?

@NoxxieNl I am working on a new major release, so I think it will be more efficiënt to add it to that version. Also, doing this in a clean way will probably break BC or force you to do some workarounds, but you are always free to make a PR.


1/07 PM Publish

Docs Build status updates of commit 8a3f58e:
:clock10: Full build: the average full build time is 22 min(s) 39 sec(s), this is based on the last 285 build(s) for this repository.

Docs Build status updates of commit 8a3f58e:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs-conceptual/includes/az-replacing-azurerm.md
:white_check_mark:Succeeded
View (azurermps-4.4.1) View (azurermps-5.7.0) View (azurermps-6.13.0)

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Runner: default value for SETTINGS_DESIGNATOR must be an empty string

Currently the default for this EV is crcAddress=localhost:8989 (see https://github.com/IVCTool/IVCT_Framework/blob/development/docs/src/2-8-IVCT_Configuration.adoc). This must be an empty string.

The IVCT testsystem now has an empty default value for SETTINGS_DESIGNATOR. The documentation has been updated as well.
NB. There are several possible locations where this value may be set: system variables, IVCT.properties file, CS.json file or in a user created bat/shell file starting the program. Thus it may be necessary to check all of these if SETTINGS_DESIGNATOR has to be set to an empty string.
NB. The Pitch RTI uses the "CRC Address" value from the configured "pRTI LRC Settings Editor" for SETTINGS_DESIGNATOR if this value is an empty string.


Errors in examples

I am following the example: Injection_attack.ipynb.
I have trouble in the Apply injection attack section.
I got the AttributeError: row not found.  The adj_attack do not have the attribute .row.
How to solve this problem?

i meet the same problem, and then i change add ".tocoo()" after ".row"".col"".data",seems work
        adj_attack.tocoo().row = np.hstack([adj_attack.tocoo().row, new_edges_x])         adj_attack.tocoo().col = np.hstack([adj_attack.tocoo().col, new_edges_y])         adj_attack.tocoo().data = np.hstack([adj_attack.tocoo().data, new_data])

i meet the same problem, and then i change add ".tocoo()" after ".row"".col"".data",seems work
 adj_attack.tocoo().row = np.hstack([adj_attack.tocoo().row, new_edges_x]) adj_attack.tocoo().col = np.hstack([adj_attack.tocoo().col, new_edges_y]) adj_attack.tocoo().data = np.hstack([adj_attack.tocoo().data, new_data])

I have tried this method, but it seems that it only prevents errors without affecting the original adj_attack matrix. The reason is as follows: when we call the adj_attack.tocoo() method, it creates a new COO format copy of adj_attack but doesn't alter the original adj_attack matrix.
I have revised the code as follows, I hope this can help you out.
for i in range(n_inject):
            islinked = np.zeros(n_test)
            for j in range(self.n_edge_max):
                x = i + n_node

                yy = random.randint(0, n_test - 1)
                while islinked[yy] > 0:
                    yy = random.randint(0, n_test - 1)

                y = test_index[yy].item() # so that it will not be [[int, tensor], [int, tensor]]
                islinked[yy] = 1
                new_edges_x.extend([x, y])
                new_edges_y.extend([y, x])
                new_data.extend([1, 1])

        # Create new edges as a COO matrix
        new_edges_coo = sp.coo_matrix((new_data, (new_edges_x, new_edges_y)), shape=(n_node + n_inject, n_node + n_inject))

        add1 = sp.csr_matrix((n_inject, n_node))
        add2 = sp.csr_matrix((n_node + n_inject, n_inject))
        adj_attack = sp.vstack([adj, add1])
        adj_attack = sp.hstack([adj_attack, add2])
        # adj_attack.row = np.hstack([adj_attack.row, new_edges_x])
        # adj_attack.col = np.hstack([adj_attack.col, new_edges_y])
        # adj_attack.data = np.hstack([adj_attack.data, new_data])

        # convert expanded adjacency matrix to COO format for merging
        adj_attack_coo = adj_attack.tocoo()

        # Merge the original (expanded) adjacency matrix with new edges
        adj_attack_new = sp.coo_matrix((np.hstack([adj_attack_coo.data, new_edges_coo.data]),
                                       (np.hstack([adj_attack_coo.row, new_edges_coo.row]),
                                        np.hstack([adj_attack_coo.col, new_edges_coo.col]))),
                                        shape=(n_node + n_inject, n_node + n_inject))

        # convert back to CSR format
        adj_attack_new_scr = adj_attack_new.tocsr()

        return adj_attack_new_scr

i meet the same problem, and then i change add ".tocoo()" after ".row"".col"".data",seems work
 adj_attack.tocoo().row = np.hstack([adj_attack.tocoo().row, new_edges_x]) adj_attack.tocoo().col = np.hstack([adj_attack.tocoo().col, new_edges_y]) adj_attack.tocoo().data = np.hstack([adj_attack.tocoo().data, new_data])

I have tried this method, but it seems that it only prevents errors without affecting the original adj_attack matrix. The reason is as follows: when we call the adj_attack.tocoo() method, it creates a new COO format copy of adj_attack but doesn't alter the original adj_attack matrix.
I have revised the code as follows, I hope this can help you out.
for i in range(n_inject):
            islinked = np.zeros(n_test)
            for j in range(self.n_edge_max):
                x = i + n_node

                yy = random.randint(0, n_test - 1)
                while islinked[yy] > 0:
                    yy = random.randint(0, n_test - 1)

                y = test_index[yy].item() # so that it will not be [[int, tensor], [int, tensor]]
                islinked[yy] = 1
                new_edges_x.extend([x, y])
                new_edges_y.extend([y, x])
                new_data.extend([1, 1])

        # Create new edges as a COO matrix
        new_edges_coo = sp.coo_matrix((new_data, (new_edges_x, new_edges_y)), shape=(n_node + n_inject, n_node + n_inject))

        add1 = sp.csr_matrix((n_inject, n_node))
        add2 = sp.csr_matrix((n_node + n_inject, n_inject))
        adj_attack = sp.vstack([adj, add1])
        adj_attack = sp.hstack([adj_attack, add2])
        # adj_attack.row = np.hstack([adj_attack.row, new_edges_x])
        # adj_attack.col = np.hstack([adj_attack.col, new_edges_y])
        # adj_attack.data = np.hstack([adj_attack.data, new_data])

        # convert expanded adjacency matrix to COO format for merging
        adj_attack_coo = adj_attack.tocoo()

        # Merge the original (expanded) adjacency matrix with new edges
        adj_attack_new = sp.coo_matrix((np.hstack([adj_attack_coo.data, new_edges_coo.data]),
                                       (np.hstack([adj_attack_coo.row, new_edges_coo.row]),
                                        np.hstack([adj_attack_coo.col, new_edges_coo.col]))),
                                        shape=(n_node + n_inject, n_node + n_inject))

        # convert back to CSR format
        adj_attack_new_scr = adj_attack_new.tocsr()

        return adj_attack_new_scr

Thanks a lot for your discovery. It seems to be due to some scipy version problem. We'll have a look at it.

Similar problem was also in https://github.com/THUDM/tdgia/issues/4 .


SPIR-V optimizer breaks SMAA shaders

Latest SPIR-V optimizer breaks SMAA shaders. The blend weights pass shader produces broken output resulting in the final output being not antialiased and having nasty line artifacts instead.
2018.1 and latest master are broken.
Using default speed optimizations.
I've bisected it to e661da7941e12cbc6a9100bd8cadbc0d61dd8b7a.
Good shader
Broken shader
My SMAA demo can be used to test this.
It currently ships with the last working SPIRV-tools built in.
Both Vulkan and OpenGL versions are affected.
Beware that there appears to be a an unrelated problem with MSVC and OpenGL and that version doesn't work. Either use only Vulkan under MSVC, compile with mingw or use Linux.
Shader SPIR-V is cached in ~/.local/share/SMAADemo on Linux and
C:\Users\<username>\AppData\Roaming\SMAADemo on Windows.
The breaking shader is smaaBlendWeight.frag_SMAA_PRESET_ULTRA=1.spv.
Running the latest optimizer on this shader and running the demo again can be used to test this.
If you want to compile a version with modified SPIRV-Tools, on Windows just update the source under foreign and recompile using the provided .bat. On Linux you can add the following to local.mk to use an external build of SPIRV-Tools
INTERNAL_spirv-tools:=n
LDLIBS_spirv-tools:=-lSPIRV-Tools -lSPIRV-Tools-opt
LDFLAGS+=-L/path/to/SPIRV-Tools/build/source
LDFLAGS+=-L/path/to/SPIRV-Tools/build/source/opt
CFLAGS+=-isystem/path/to/SPIRV-Tools/include
CFLAGS+=-isystem/path/to/SPIRV-Tools/build

I think this is a bug in some arithmetic folding.

Looking a little further, there appears to be a bad fold.
From good:
      %14248 = OpPhi %v4float %14676 %24046 %21595 %21240
      %17548 = OpVectorShuffle %v2float %14248 %14248 2 3
      %16543 = OpVectorShuffle %v4float %13336 %17548 0 4 2 5
      %17776 = OpCompositeExtract %float %16543 1

From bad:
      %14248 = OpPhi %v4float %14676 %24046 %21595 %21240
      %17776 = OpCompositeExtract %float %14248 0

The extract should be grabbing element 2 from %14248.


Solr HTTP context could be almost any character.

Since the HTTP context is just a URI it could contain alot more
character then the characters in "word".

"Almost" any character, but this regex allows absolutely anything. This seems a bit too open to me, I'd rather wait until a specific case can't be addressed and then extend the regex, it's tighter.

Since the URI could be almost anything I thought that it made sense.
But if you don't like it I will change my PR to only match my specific needs,
and thats "-".

I've just added that dash to the acceptable chars for you. I'll close this ticket but feel free to re-open if this doesn't resolve your issue.


[1.12.2-4.0.9-26] Crash on Placing Flux-Plug

I updated Flux Networks and it Crashed the Server after placing an Flux-Plug inworld.
Previous i used Flux Netweorks Version 1.12.2-3.0.19-21. That worked without any errors.
I also couldnt start the server again without it crashes until i removed the Error tile (the placed flux plug)
Minecraft Version: 1.12.2
Forge Version: forge-1.12.2-<IP_ADDRESS>38
Flux-Networks: fluxnetworks-1.12.2-4.0.9-26
crash-2019-09-23_12.59.33-server.txt

Use 4.0.10-27


feat(package): migrate to ng12

** PR Type
What kind of change does this PR introduce?
[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[x] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] Other... Please describe:

** What is the current behavior?
Does not compile for Angular 12 apps.
Issue Number: #167
** What is the new behavior?
Should work with Angular 12.
** Does this PR introduce a breaking change?
[ ] Yes
[x] No

@fulls1z3 Circle ci is not working for this project due to key configuration problem.

@fulls1z3 Any news on this? We are really stuf at this point waiting for this lib to support Angular 12.

@fulls1z3 Any chance to get this merged in the near feature? This is basically the only thing blocking us from using Angular 12.

@JonnyBGod  need help with these PR's, especially with ng-packagr is failing. once done aim is first to ng 10 and then eventually to ng11 and ng12 (supporting all intermediate versions)

https://github.com/fulls1z3/ngx-meta/pull/216
https://github.com/fulls1z3/ngx-config/pull/169
https://github.com/fulls1z3/ngx-cache/pull/141
https://github.com/fulls1z3/ngx-auth/pull/135

and finally we're showcasing it on https://github.com/fulls1z3/universal/pull/755

Sure I can help with this but as far as I know the lib worked fine with ng10 and ng11 even if not with the ideal build.
It only broke for ng12. I don’t see any point on baking specific releases for legacy versions if they were supported unless I am missing something.

@fulls1z3 can you give me write access to the relevant repos so I can patch your PRs?

@JonnyBGod i invited you as collaborator, so you have write access. lib works in ng 10 & 11 but need to roll out for each version to maintain backwards compatibility but also upgrading it & testing in real life on each major release

@JonnyBGod and the actual problem is with "yarn build" and it will fail on upper releases as well

@fulls1z3 I was able to successfully build the library and use it locally with Angular 12 project (using npm link). Do you need any help with this? Really many people are waiting on this and it's taking too long.
The problem in CircleCI seems to be with private key configuration, the platform can't even clone the repo to begin with. It seems that only you can fix this, I believe you must provide key generated by Github to the CircleCI so it has access.

@JonnyBGod @matusbielik  here is the output i'm getting when building http-loader since it depends on the core package.these paths are clearly pointed in tools/build/tsconfig.package.json into the bundles in dist, but still not getting any luck.
➜  fulls1z3-ngx-config git:(update_deps) yarn build:http-loader
yarn run v1.22.10
$ ng-packagr -p<EMAIL_ADDRESS>-c tools/build/tsconfig.package.json
Building Angular Package

------------------------------------------------------------------------------
Building entry point '@ngx-config/http-loader'
------------------------------------------------------------------------------
Compiling TypeScript sources through ngc
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
ERROR: packages/@ngx-config/http-loader/src/config.http-loader.ts:3:30 - error TS2307: Cannot find module '@ngx-config/core' or its corresponding type declarations.

3 import { ConfigLoader } from '@ngx-config/core';
                               ~~~~~~~~~~~~~~~~~~

error Command failed with exit code 111.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

i see angular team changed the way paths are resolved from tsconfig, and not any of my efforts are helping out. i'm thinking of archiving this project since i can't go further, not any help from community and not enough time to invest to tackle this particular issue.

@fulls1z3 when do you experience this problem? Isn't it only problem on your local configuration (typescript version etc)?
I was able to build all three packages when I tried to upgrade the library myself, and I also tried to build the code from this PR (JonnyBGod's remote's last commit to master) and it went without any problems (npm run build / yarn build).
So maybe it is not an issue and this PR can go?
I understand that you want to archive this project if you are not willing to develop it any further, but please do so after we upgrade and publish v12 compatible version. The library still has 1.2k weekly downloads, it is blocker for upgrade for many projects!
If there is any way to help, just say. As ngx-config is heavily used in our application and getting rid of it would be huge rewrite, the only other option for my team was to publish patched library to npm under another name so we can use it to build the app (tried and it works locally with npm link)... But I don't like the idea, it's your code and I find it as plagiarism :)
We are very close to making this compatible with v12 for everybody so let's not back down now :)

@fulls1z3 can you try to fix the problem with circleci. With that working we can better see if there is a problem with the build.
On my local environment all PR I create are working and tested locally with production projects via "npm link".

Also one opinion I would like to give.
I see your point on making it right and going back to make sure the libs support all past Angular versions and I would gladly help with it if I had the time, but lets be honest, these libs are mostly nice to haves that I want to help support but not core libs that need the very best care. Giving that apparently all interested parties lack the time to do everything by the book I think we should just focus on the pressing matter that is to support the latest angular version and unblock everyone that wants to update to it.
I am happy to then help anyone with issues with previous versions if those come up. (I believe it wont as I have been using the libs with all Angular versions until now with no problems.)

@fulls1z3 any news on this?
It has been almost 2 months now. Can you fix the circleci ssh key so we can move on?
If you do that and authorize to merge, I can take care of making sure everything is working fine.

Any news on this? Our team is blocked from upgrading angular until this is fixed or we rip out this plugin and use a new one. And we are using it in a lot of places in production, so I really want to avoid ripping it out :(


Integration with Vetur - getting hints in the parent component

Hey @andrewvasilchuk is there a way to get the type hints in the other way of the chain?
I mean, when I listen to the event in the parent component my payload is always any! Did you manage to get it working?
Where the event is actually implemented it works perfectly!
I've mentioned you here btw
https://github.com/vuejs/vetur/pull/2558#issuecomment-753612714

@bissolli Do you still need it? Vue have made a large progress with IDE hints in Volar. Also you won't need vue-typed-emit library in Vue 3 since it provides an ability to provide types of emits.

@bissolli Do you still need it? Vue have made a large progress with IDE hints in Volar. Also you won't need vue-typed-emit library in Vue 3 since it provides an ability to provide types of emits.

You are right Andrew, not needed anymore!
Thanks =)


Release Google.Cloud.PubSub.V1 version 2.7.0

Changes in this release:

Commit ac367e2: feat: Regenerate all APIs to support self-signed JWTs
Commit 4cc3e58: feat: Add topic retention options

Created release for Google.Cloud.PubSub.V1-2.7.0


embedsMany same model multiple times

Hi,
is there a way to embed the same model multiple times inside a parent model through the embedsMany relation?
I have an ecommerce cart where the same article may have different weight, so I need to insert every article as a single row with jus one weight attribute. So if you add quantity 4 of an article, I have to split it in 4 rows each with quantity 1.
I know I can simply add one row and manage multiple weights with an array but I'm afraid this solution can complicate things.
Actually I managed to do this for inserting but I'm having trouble when saving or disocciating related models bacause they obviously has the same _id attribute, so every time I save or dissociate a row, this affect other rows with the same _id too.
Thanks!

Thinking on this further, this is likely very related to #1628 and #1618 if instead of an embedsMany you wanted to use a relational table.


Fix child-not-found panic in memfs lookupNode

Thanks for the PR.
Under what circumstances have you found that node == nil? Is there a way to reproduce this  problem.

I was apparently too quick. When plumbing around and I did some modification that gave a path where a directory within the path did not exist. That created a panic that was recovered from in fuse/host.go. I've checked that this case is actually protected from by either the FUSE driver or some other operating system feature.
Running stat my-mount/foo/bar will first call GetAttr("/foo"), get ENOENT back and therefore skip GetAttr("/foo/bar"). I thought the operating system would try GetAttr("/foo/bar") directly and not even bother with GetAttr("/foo"). I've tried to verify this on both Windows and Linux.
I'll close this pull request because there was no bug.

Thanks for the PR nevertheless.
BTW, it is possible in Windows to get a GetAttr("/foo/bar") without GetAttr("/foo") (memfs should handle this case correctly).

BTW, it is possible in Windows to get a GetAttr("/foo/bar") without GetAttr("/foo") (memfs should handle this case correctly).

Sorry for late reply, but I wanted to double check and that was well spent time. As a beginner in Go, it turned out that I had modified the wrong copy of fuse/host.go when trying to reproduce it.
Just doing dir M:\foo\bar triggers the problem on Windows. I cannot trigger it on Linux when trying stat mnt/foo/bar and running fstest.

I can confirm that this problem indeed happens:
> set CGOFUSE_TRACE=*
> memfs.exe Y:
...
2019/09/08 13:04:22 [uid=197609,gid=197121]: main.(*Memfs).Getattr("/foo/bar", 0xffffffffffffffff) =
        !PANIC:runtime error: invalid memory address or nil pointer dereference

With  your patch:
> set CGOFUSE_TRACE=*
> memfs.exe Y:
...
2019/09/08 13:09:18 [uid=197609,gid=197121]: main.(*Memfs).Getattr("/foo/bar", 0xffffffffffffffff) =
        (-2, &fuse.Stat_t{Dev:0x0, Ino:0x0, Mode:0x0, Nlink:0x0, Uid:0x0, Gid:0x0, Rdev:0x0, Size:0, Atim:fuse.Timespec{Sec:0, Nsec:0}, Mtim:fuse.Timespec{Sec:0, Nsec:0}, Ctim:fuse.Timespec{Sec:0, Nsec:0}, Blksize:0, Blocks:0, Birthtim:fuse.Timespec{Sec:0, Nsec:0}, Flags:0x0})

(The -2 error code is -ENOENT).
I will merge this in.

BTW, I note that your name is not listed in the Contributors tab of the project:
https://github.com/billziss-gh/cgofuse/graphs/contributors
I believe GitHub some times gets confused if your email address is not properly setup (either in the commit or the GitHub account). It is up to you of course whether you want this fixed or not.
If you want I can also add you to the Contributors list in the README:
https://github.com/billziss-gh/cgofuse#contributors


Always display custom tooltip in version 2

How to display custom tooltip with image always in version 2?

Duplicate of #1861

Not really a duplicate, since this one is for Custom Tooltips, not for just "tooltips" as #1861 is but okay. I will post my solution there.


Support for condition coverage

Hallo, as far as I can see the condition/branch coverage reported by jacoco is not yet supported by diff_cover, isn't it?
How easy/hard would it be to add support? As far I can see up to now the tool is line oriented.
Maybe as a separate plugin which counts the lines plus the conditions.
(Exactly this metric is used in my project for new code to be accepted into master)

Yes, I just noticed that branch-coverage (as coverage.py calls it) is not reported upon.


Enable symf-based context for chat (cody.experimental.symfContext)

https://github.com/sourcegraph/cody/assets/1646931/e4391fa2-7e3a-4539-9af9-9c6af2823eab
Todos to make this non-experimental:

[ ] watch codebase status and prebuild symf index
[ ] show indication when index build is blocking a request or don't block but indicate to the user what's going on
[ ] do not index codebases that are too large

Test plan

[ ] Turn on the feature toggle
[ ] Open a project that is private and does not have local embeddings
[ ] Verify context is fetched from the codebase
[ ] Check context status to verify this shows up
[ ] Turn off the feature toggle and verify that symf is not used or activated (nor does it try to build an index)

Can we have this say "Search" instead of "Symf"? Designs.

@taylorsperry it should do that, unless @beyang changed the types in lib/shared/src/codebase-context/context-status.ts . Here's the Storybook for the component:


not working still waiting for update

:(

yea, waiting for a fix, hopefully soon. Keep up the good work B3akers

B3akers hasn’t updated for four months

B3akers hasn’t updated for four months

I mean the reason that he didnt update in four months is that the skin changer auto updates, so pretty much he only has to update the program himself when it stops working, kinda like right now

Corrected.
#70

thanks for the fix

still not working for me :(

you have to build the project yourself


Game Crashes At Startup (1.12.2) (TC6.1B13)

i just put thaumcraft in my modpack, then it crashed on launch. is there a way to learn why from the logs?
crash-2018-05-11_11.42.33-client.txt
debug.log
using Forge 2681

Something in your modpack is using an older version of the thaumcraft API


What's New in EF Core 5.0

I went through the enhancements already closed-fixed in 5.0 and added anything "Quite Interesting" to the doc. The plan is to update this for each prerelease.

New feature - https://github.com/dotnet/efcore/issues/17299


[Infra] Change c0d3.com CNAME to point to new domain

Update Ze.it to use new domain.

Most domain host does not provide APEX aliasing, so we changed www.c0d3.com instead.


Tackling dynamic forms with Django strawberry

Hi!
First of all, thanks for ongoing support for django strawberry, it's a great piece of software!
I have a question on how to handle dynamic form scenario in Django with Strawberry. The use case is this: We have a booking in our system to check in the customer, they need to fill out a form with a bunch of fields, such as agreeing to ToS, providing signature etc. Some fields on the form are dynamic and depend on the booking, so not every customer get's exactly the same form.
With Django + forms + views + html, it's pretty much a solved problem. I create a model so that I can persist the filled out form and then a Django form for it, with some fields being created dynamically. That form is serialized and client fills it out and then submits. If form is valid, the submission is saved as a Django object.
What are the possible options for me when working with GraphQL, strawberry django in particular? I'm new to GraphQL and am looking for guidance. I can't be the first person to face this issue :)
Futhermore, how can validation be performed that the user submitted the correct form (i.e. all required form fields that we first sent to the user have been filled out and that the form schema has not been modified)? What about form defaults? Forgery protection?
Any ideas and suggestions highly welcome.

Hey @Mapiarz ,
Welcome to the GraphQL world :)
Regarding dynamic content, you can usually use unions for that.
But unfortunately the graphql spec doesn't support unions for input types, which are the types that can be received in arguments.
Having said that, as long as the attributes in those inputs don't change type (e.g. foo can be a string or an int depending on the context), you can define those attributes as optional, meaning you are not required to provide them and you can even give them a default value, and validate the logic inside your mutation resolver.
Btw, feel free to join our discord server and ask for help in your implementation if needed :)


feat: RPC - starknet_getClass

The implementation should be written here.
Contracts stored in katana are defined using blockifier's ContractClass but the RPC return type should be this.
Need to somehow convert from blockifier ContractClass to starknet-rs ContractClass.

can i try ?

yes please do

waiting for this : https://github.com/lambdaclass/cairo-rs/issues/1183


pcap tests failing on Windows

Hi,
I tried to use the OpenOffline function to parse a file, but a simple test program would always crash. When running the tests in the pcap package I would get the same crash, so I guess it's a general problem with my system configuration (running Windows 10).
D:\Dropbox\Go-Projects\src\github.com\google\gopacket\pcap>go version
go version go1.5.2 windows/amd64

D:\Dropbox\Go-Projects\src\github.com\google\gopacket\pcap>go test
Exception 0xc0000005 0x0 0x1625ffe 0x859810
PC=0x859810
signal arrived during external code execution

github.com/google/gopacket/pcap._Cfunc_pcap_open_offline(0x1561f90, 0x15671b0, 0x0)
        ??:0 +0x3d
github.com/google/gopacket/pcap.OpenOffline(0x708af0, 0x12, 0x0, 0x0, 0x0)
        D:/Dropbox/Go-Projects/src/github.com/google/gopacket/pcap/pcap.go:236 +0x106
github.com/google/gopacket/pcap.TestPcapFileRead(0xc083210000)
        D:/Dropbox/Go-Projects/src/github.com/google/gopacket/pcap/pcap_test.go:54 +0x547
testing.tRunner(0xc083210000, 0x870080)
        c:/go/src/testing/testing.go:456 +0x9f
created by testing.RunTests
        c:/go/src/testing/testing.go:561 +0x874

goroutine 1 [chan receive]:
testing.RunTests(0x74a6b0, 0x870080, 0x4, 0x4, 0x410401)
        c:/go/src/testing/testing.go:562 +0x8b4
testing.(*M).Run(0xc082481ef8, 0x0)
        c:/go/src/testing/testing.go:494 +0x77
main.main()
        github.com/google/gopacket/pcap/_test/_testmain.go:62 +0x11d

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
        c:/go/src/runtime/asm_amd64.s:1721 +0x1
rax     0xc083221fb0
rbx     0xc083221b00
rcx     0x1561f90
rdi     0xc083221b00
rsi     0xc083221fb0
rbp     0x0
rsp     0xfdfd78
r8      0xc082476300
r9      0xc083221a98
r10     0x0
r11     0x0
r12     0x6
r13     0x7463ee
r14     0x3
r15     0x8
rip     0x859810
rflags  0x10202
cs      0x33
fs      0x53
gs      0x2b
exit status 2
FAIL    github.com/google/gopacket/pcap 0.249s

D:\Dropbox\Go-Projects\src\github.com\google\gopacket\pcap>

I grabbed the pcap files here: https://www.winpcap.org/devel.htm and put them into C:\WpdPack. Is this a known problem or is there a way I could get a more helpful error message?

I had issues with Windows as well. This answer helped me http://stackoverflow.com/questions/38047858/compile-gopacket-on-windows-64bit

I actually started looking at it again just yesterday! After I managed to get it compiled and running on Win7 I gave it another shot on Win10 last night, but to no avail. I will definitely try your suggestion.

@rezen wow, this actually worked! Thanks a lot.
If only I could remember what I wanted to do with it 😕

Hmm, not sure how best to handle this from gopacket's side of things.  Is there a particular place in the documentation where we should link to this stackoverflow answer?

Added note in https://github.com/google/gopacket/commit/02b1b44a6dc7fe2d7b44394c6fd2c48a1761e95a

@gconnell looks like a good place for the link, thanks!


Njs home

fixes #557
Sorry for late PR. I was having trouble with particle.js and that animated-text.
I created the main content of the Home page.
Now I will do the other part : navbar and footer.
I am giving this PR early so that I can grab the other nextjs issues

--I have participated in DWoC SWoC and MWoC

I am working on education page and navbar and footer.
if you want to merge this home page, then you can do it. home page is all ready.
I can also make a follow up PR for footer and navbar

NOw you can work on  the enhancement of this

@anushbhatia plz review

As communicated in other PR


Add uncordon step to containerd migration doc

Added a step to uncordon the node since it was drained at the beginning of this process.

/label tide/merge-method-squash

/approve


Traceback

I saw the following traceback after I was trying to upload the vocal-only targeted audio and infer based on the two models I'd just trainned (i.e., ddsp model: 4000 steps, diffusion model: 6000 steps), how can I fix this?
Can anyone pls help? Thanks!
Traceback (most recent call last):
File "C:\Users\user\Downloads\DDSP-SVC-3.0\workenv\lib\site-packages\gradio\routes.py", line 393, in run_predict
output = await app.get_blocks().process_api(
File "C:\Users\user\Downloads\DDSP-SVC-3.0\workenv\lib\site-packages\gradio\blocks.py", line 1111, in process_api
data = self.postprocess_data(fn_index, result["prediction"], state)
File "C:\Users\user\Downloads\DDSP-SVC-3.0\workenv\lib\site-packages\gradio\blocks.py", line 1036, in postprocess_data
prediction_value = postprocess_update_dict(
File "C:\Users\user\Downloads\DDSP-SVC-3.0\workenv\lib\site-packages\gradio\blocks.py", line 432, in postprocess_update_dict
prediction_value["value"] = block.postprocess(prediction_value["value"])
File "C:\Users\user\Downloads\DDSP-SVC-3.0\workenv\lib\site-packages\gradio\components.py", line 2427, in postprocess
file_path = self.make_temp_copy_if_needed(y)
File "C:\Users\user\Downloads\DDSP-SVC-3.0\workenv\lib\site-packages\gradio\components.py", line 245, in make_temp_copy_if_needed
temp_dir = self.hash_file(file_path)
File "C:\Users\user\Downloads\DDSP-SVC-3.0\workenv\lib\site-packages\gradio\components.py", line 217, in hash_file
with open(file_path, "rb") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'output\1751_Vocal_WAV__1688874956.wav'

The webui may have bugs it is not written by me, and may not support the latest version of the model


Fix for 00000000

When starting Master Duel without having steam open it automatically creates a new folder in LocalData called 00000000, rendering all mods useless since they are put in that new 00000000 folder. Reversing the list fixes this issue as 00000000 will always be the last entry in the list, thereby getting ignored by dir.cd(subdirs[0]) in line 61.

How many folder are there under LocalData? If there is only except for the 00000 one, then the code is okay, otherwise this changes the behavior.

Only one


Proxy action corrupting HTTP sessions under high load

When using the proxy action, under high load, some HTTP sessions become corrupt.
Seems like a race condition or context isolation issue.
In some cases, if 2 requests are sent at the same time, the first request gets proxied twice and the second one is ignored.
Steps to reproduce the behavior:

Create a proxy action like this:

SecRuleEngine on
SecRule REMOTE_ADDR "@unconditionalMatch" nolog,id:id-proxy,pass,proxy:https://backend.local%{REQUEST_URI}

Generate a list of unique requests to be proxied to the backend:
$ for i in {1..1000}; do echo https://frontend.local/test/$(uuidgen) >> ~/url.txt; done

Perform requests in parallel:
$ cat ~/url.txt | xargs -P 20 -n 20 curl -k

Check backend log for duplicate requests:

$ cat access.log  | cut -f 2 -d \"  | sort | uniq -D | wc -l
47

Alternatively, the duplicated requests can also be seen on DumpIO logs.
Server:

ModSecurity version (and connector): 2.9.3
WebServer: Apache httpd 2.4.39
OS (and distro): Linux, Centos 7

Hi @emerzon,
Could you please confirm the version of ModSecurity is question?

@zimmerle : Tested with ModSecurity 2.9.3 - Sorry, fixed this on the description.

@emerzon That is very likely to be a problem related the version mismatch of the APR library. On the Apache's/ModSec's initialization there is information about the loaded libraries. Is there any warning mentioning about a possible version mismatch?

@emerzon That is very likely to be a problem related the version mismatch of the APR library. On the Apache's/ModSec's initialization there is information about the loaded libraries. Is there any warning mentioning about a possible version mismatch?


fix: crystal upgrade

Changes to support latest crystal version

@drujensen I would love an upgrade :sweat_smile: do you need help with that?


Fix all copyright notices.

The copyright notices in all source files should read: "Copyright 2020" not "Copyright (c) 2020-2022".
The errors are:

redundancy of "(c)" because "(c)" means "copyright"

to simplify maintenance, the year can be reduced to the first year of the copyright.

Copyright law automatically protects the work for a certain number of year past the creation date of the work or the end of the life of the author (both depend on the country). The number of years is very high (>50 years for most countries). Using a range potentially extends the expiration date of the copyright, but it doesn't make much of a practical difference.
As a point of reference, Google's policy is not to bother updating copyrights for its web pages or internal source code.

Done


Stale inline diff information

See screenshot, unsure how I got there. With todays, insiders aa42e6ef8184e8ab20ddaa5682b861bfb6f0b2ad

Try to repo :(

Very likely #34209

Still seeing this btw. You decide what to do next

That is indeed interesting.  There must be something different about your system. :/

@jrieken Have you seen this lately?

Sorry to move this to a more recent one: #43092.
 Need to spend some time reviewing the code.


[CYW30739] Support OTA requestor app.

Problem
Support CYW30739 OTA requestor app.
Change overview

Add examples/ota-requestor-app/cyw30739 files.
Add OTAImageProcessorImpl for CYW30739.
Refine README files for CYW30739 apps.

Testing
chip-tool pairing ble-thread 1234 ...
chip-tool pairing onnetwork-vendor 4321 20202021 9050
chip-tool otasoftwareupdaterequestor announce-ota-provider 4321 9 0 0 1234 0

rebase

Do you really need a separate OTA requestor app? IMHO every Matter-compliant device can be the OTA requestor and several platforms, including ours, successfully use lighting-app as the OTA requestor, so I think it's worth rethinking if adding and maintaining yet another example is worthy :)

Thank you for the review. We are working on integrating OTA with CYW30739 lighting-app. Before it's got ready, the OTA requestor app is really helpful for us to do some OTA-related functionality verifications for cyw30739_sdk.

rebase

/rebase


[CI] fix store screenshots 6

Overview

ENV多用は良くない

JaCoCo Code Coverage 76.92% :white_check_mark:

Class
Covered
Meta
Status

  Generated by :no_entry_sign: Danger


add support for exporter basic auth

This PR allows a user to pass in basic auth credentials via CLI or environment variables.
Closes portertech/sensu-prometheus-collector#5

👏 👏 👏  so cool @zsais. Sean will review, but I wanted to give a huge thank you in the meantime 👏 👏 👏


Smaller width of reviewer column

 In the Dashboard of the recommender the width of the column to ensure that we see the Status of the reviewer


Clean up page deployment

This PR cleans up page content/en/docs/concepts/workloads/controllers/deployment.md.
The indentation of list items should be 2 spaces for unordered lists.

/kind cleanup

Preview:
https://deploy-preview-39520--kubernetes-io-main-staging.netlify.app/docs/concepts/workloads/controllers/deployment/

This PR is mostly about fixing indentation nits in an existing page, without changing the text.
/lgtm
/approve


XHR timeout does not trigger reject on the Promise

Axios set the timeout for XHR request, but doesn't listen to ontimeout events, rejecting the promise, so my then and catch are never called.
The PR #227 to fixes that

How soon could this patch been updated to npm?

Seeing this issue too

Hi ! This issue is still relevant. When will the fix be released on npm ? Thanks.

Bumping for same issue.

Fixed via #227. The fix has been released (0.10.0).

im using version 0.13.0 in react native 0.24.1 and it doesn't work

i have the same issue.
version 0.13.1 in react native 0.31.0 and it doesn't work

I got it working in axios 0.14.0 with:
const {status, data} = await axios.patch('url', body, {headers: {'Content-Type': 'application/json'}});
I just add the content type in the request.

I'll try it


Packet Injection Functions Links Broken?

All links to the Packet Injection Functions page lands you back to this page.
Is this by design or is the link reference itself broken?

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

ID: 5c1216e0-f3b6-414e-2aad-b7ba031c3c12
Version Independent ID: f4160c82-4653-fde5-4331-14ad404f9936
Content: FWPS_INJECT_COMPLETE0
Content Source: wdk-ddi-src/content/fwpsk/nc-fwpsk-fwps_inject_complete0.md
Product: windows-hardware
GitHub Login: @windows-driver-content
Microsoft Alias: windowsdriverdev

Hi @NoelStephens , good catch! Nope, it's not by design. :) I've fixed all references to that link across the references pages so they should point to the correct page. That change should be live later today. Thanks for finding this!


Missing numbering, Multi Replace

Describe the bug

Missing numbering
Can't run Multi Replace

To Reproduce
IntelliJ IDEA 2022.3 Beta (Ultimate Edition)
Build #IU-223.7401.7, built on November 2, 2022
Runtime version: 17.0.5+1-b653.6 amd64
Windows 11 10.0
Screenshots
Missing numbering

works fine for me

IntelliJ IDEA 2022.3 Beta (Ultimate Edition)
Build #IU-223.7571.4, built on November 9, 2022
Runtime version: 17.0.5+1-b653.6 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0

Finally I got it! This problem is only in the new interface!

Also works fine for me.

When it checked numbering is missing

I see, only some letters are missing for me

it depends on the font

I will report a bug.

https://youtrack.jetbrains.com/issue/IDEA-306362/ListPopup-mnemonics-are-not-visible

Ok ))) Thank you!

Another question. How to apply Multi Replace?

by running the action again