android build fail

The chromium build succeeds, but the Android build fails.
It seems like there are no related files for google_play_services.
The detailed build logs are shown below.
Environment: Ubuntu 14.04.5 LTS
hhd2002@hhdubuntu:~/stellite$ ./tools/build.py --target-platform=android --target stellite_http_client build
chromium is already exists: /home/hhd2002/stellite/third_party/chromium_android
check chromium ...
check chromium tag ...
copy .gclient ...
copy modified_files ...
copy chromium/src/.gn ...
copy node_binder files ...
Running: ln -s /home/hhd2002/stellite/node_binder
copy stellite files...
Running: ln -s /home/hhd2002/stellite/stellite
copya stellite build fakefiles ...
Running: ln -s /home/hhd2002/stellite/build_android/src/tools/vim/chromium.ycm_extra_conf.py /home/hhd2002/stellite/.ycm_extra_conf.py
generate ninja script ...
Running: /home/hhd2002/stellite/third_party/depot_tools/gn gen /home/hhd2002/stellite/build_android/src/out_android_armv6/obj
/home/hhd2002/stellite/build_android/.gclient_entries missing, .gclient file in parent directory /home/hhd2002/stellite/build_android might not be the file you want to use.
ERROR at //build/config/android/internal_rules.gni:2483:15: Script returned non-zero exit code.
              exec_script("//build/android/gyp/find.py",
              ^----------
Current dir: /home/hhd2002/stellite/build_android/src/out_android_armv6/obj/
Command: python -- /home/hhd2002/stellite/build_android/src/build/android/gyp/find.py ../../third_party/android_tools/sdk/extras/google/google_play_services/libproject/google-play-services_lib/res
Returned 1.
stderr:

../../third_party/android_tools/sdk/extras/google/google_play_services/libproject/google-play-services_lib/res does not exist

See //build/config/android/rules.gni:704:5: whence it was called.
    process_resources(process_resources_target_name) {
    ^-------------------------------------------------
See //third_party/android_tools/BUILD.gn:112:1: whence it was called.
android_resources("google_play_services_default_resources") {
^------------------------------------------------------------
See //base/BUILD.gn:1092:7: which caused the file to be included.
      "//third_party/android_tools:cpu_features",
      ^-----------------------------------------
Traceback (most recent call last):
  File "./tools/build.py", line 2037, in <module>
    sys.exit(main(sys.argv[1:]))
  File "./tools/build.py", line 2026, in main
    build.build()
  File "./tools/build.py", line 1382, in build
    build.generate_ninja_script(gn_args=gn_context)
  File "./tools/build.py", line 829, in generate_ninja_script
    self.execute(command, cwd=self.buildspace_src_path)
  File "./tools/build.py", line 723, in execute
    raise Exception('command execution are failed')
Exception: command execution are failed

After experiencing a little more difficulty, I found out the cause and solved it.
I have not applied it to the build script yet, but I am going to modify PR as time goes on.
Some files deployed with "google_play_services r28" during the build process of chromium are needed for the build process, but these files did not exist and an error occurred.
You can do the regacy file download, decompress it, put it in the third-party path, and rebuild it as shown below.
wget https://dl-ssl.google.com/android/repository/google_play_services_8298000_r28.zip unzip https://dl-ssl.google.com/android/repository/google_play_services_8298000_r28.zip -d temp cd temp cp -rf libproject/google-play-services_lib "build_android/src/third_party/android_tools/sdk/extras/google/google_play_services/libproject/google-play-services_lib"


refetchOnWindowFocus is set to false but it is not overriding global configuration which is by default true

Describe the bug
When using useQuery with a specific configuration for refetchOnWindowFocus set to false, it seems not to override the global default, which is set to true. Despite specifying the query-level configuration, the query still refetches on window focus.
Your minimal, reproducible example
  const { data, error } = useQuery({ queryKey: ["data"], queryFn: fetchData }, { refetchOnWindowFocus: false});
Expected behavior
Expected behavior is DO NOT fetch on window focus but it does!
How often does this bug happen?
Every time
Screenshots or Videos
No response
Platform

Next.js  v13.5.4
react-query v4.36.1

Tanstack Query adapter
react-query
TanStack Query version
v4.36.1
TypeScript version
No response
Additional context
But if i set it to false globally which is not what i want, it works:
 const queryClient = new QueryClient({     defaultOptions: {       queries: {         refetchOnWindowFocus: false,       },     },   });

const { data, error } = useQuery({ queryKey: ["data"], queryFn: fetchData }, { refetchOnWindowFocus: false});

this is not valid syntax. You want one object passed to useQuery:
const { data, error } = useQuery({
  queryKey: ["data"],
  queryFn: fetchData,
  refetchOnWindowFocus: false,
})

You are right! Sorry about the confusion!


H2 decode flow control

#150 (continued h2 flow control)
This implements codec and connection level flow control when the downstream connection backs up.
In general, the connection manager passes events to the router filter which readDisables upstream, but the details are heavily documented in flow_control.md

Also, you might want to merge master to pick up the bazel.asan disk space fix, which is why the Travis run failed.

Kicking Jenkins due to what looked like a network timeout.

The existing watermark tests from the last CL cover this (Http2IntegrationTest.FlowControlOnAndGiantBody/0
and Http2UpstreamIntegrationTest.LargeBidirectionalStreamingWithBufferLimits/0)
Filter::onBelowWriteBufferLowWatermark()
They have both large requests and large responses.  Sanity-check/confirmed by adding an assert in the router readDisable().
Unfortunately as with the original watermark PR it's not deterministic - when I added verification that the watermark stats were non-zero in the original PR I found that 5000:5000 debug and opt runs triggered the new watermark code but it was hella flaky on either tsan or asan (forgot which)


Added bi-pods and weapon accessory rules

I needed these items for my home game and figured I might as well check the work in, with a rules reference added. Already informed @ThroughlyDruxy . (Not committing cooked .dbs to avoid merge conflicts)

Converting to draft and will use this PR to add more weapon accessories from the armory book.

Added all weapon accessories.


KAFKA-8526: logdir fallback on getOrCreateLog

LogManager#getOrCreateLog() selects a log dir for the new replica from
_liveLogDirs, if disk failure is discovered at this point, before
LogDirFailureHandler finds out, try using other log dirs before failing
the operation.
Committer Checklist (excluded from commit message)

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation (including upgrade notes)

pinging @apovzner ; can we get some feedback on this PR?

Thanks for the excellent review @hachikuji .
I believe I've addressed your points, please take another look.

retest this please

retest this please

retest this please

retest this please

@apovzner Thanks for for the additional review. I will try one more time to get a clean build and then merge.

retest this please

Going to go ahead and merge. The one failing test is a new addition which seems to be flaky. We can address this separately.


chore(ssa refactor): Fix no returns & duplicate main

Related issue(s)

Resolves #
Description
Summary of changes
Some initial testing of the SSA-gen pass revealed it was mostly working as intended but had two obvious bugs so far:

Functions did not terminate in a return instruction
main function was duplicated twice.

This PR fixes these. The first was a simple oversight, and the second was because we created our FunctionBuilder object initialized to build the main function, but in calling SharedContext::get_or_queue_function with main's id to retrieve its translated ID, main was also queued to compile again, leaving us with 2 main functions. I've adjusted the flow here a bit to initialize FunctionBuilder to no function initially. The downside of this is that now current_function and current_block must be optional inside of it.
Dependency additions / changes

Test additions / changes

Checklist

[ ] I have tested the changes locally.
[ ] I have formatted the changes with Prettier and/or cargo fmt with default settings.
[ ] I have linked this PR to the issue(s) that it resolves.
[ ] I have reviewed the changes on GitHub, line by line.
[ ] I have ensured all changes are covered in the description.

Documentation needs

[ ] This PR requires documentation updates when merged.

Additional context

Its also showing the intrinsics PR as new, so it may be a bad merge

@kevaundray Since this was based off the intrinsics PR it looked like it includes that change as well. I've just merged master again so it should be fixed now

Nevermind, it was indeed a bad automatic merge. Not sure why there weren't merge conflicts there.


hiprand ordering

Building a HIP program shows the following errors. Users don't need to call rocrand APIs.  Thanks.
unknown type name 'hiprandOrdering_t'
use of undeclared identifier 'hiprandSetGeneratorOrdering'
use of undeclared identifier 'HIPRAND_ORDERING_QUASI_DEFAULT'; did you mean 'ROCRAND_ORDERING_QUASI_DEFAULT'?
use of undeclared identifier 'HIPRAND_ORDERING_PSEUDO_DEFAULT'; did you mean 'ROCRAND_ORDERING_PSEUDO_DEFAULT'

Hi, the definitions are indeed missing. I'm adding it internally, it should come to a PR soon-ish. Sorry for the delay.

Okay. Thanks.

@jinz2014 Can you please confirm if this is fixed in ROCm 6.2? If so, please close the ticket. Thanks!


show per space byte size

Is your feature request related to a problem? Please describe.
Right now in a space we can see number of datasets, and collections. Would be nice to show the number of bytes used by a space.

For example the gui could look like:


error running python3 eagle-eye.py

hello, i installed all compunents and if i run the script it says
Traceback (most recent call last):
File "eagle-eye.py", line 9, in
import utils.config as cfg
File "/home/lupintheman/Documenti/tools/EagleEye/utils/config.py", line 8, in
cfg = json.load(json_data)
File "/usr/lib/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib/python3.6/json/decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting ',' delimiter: line 15 column 2 (char 297)
specifying python3.7 i get
Traceback (most recent call last):
File "eagle-eye.py", line 9, in
import utils.config as cfg
File "/home/lupintheman/Documenti/tools/EagleEye/utils/config.py", line 5, in
from selenium import webdriver
ModuleNotFoundError: No module named 'selenium'
moved selenium in 3.7 folder and run again, i get the same result as the first i wrote here...
what should i do?

First you are using python3.6 (see the error - /usr/lib/python3.6/json...)
So use the python3.6 binary and the corresponding pip version e.g pip3.6
regarding your first error. Seems like you have messed up the config.json. Please show the config.json


Add stDDM to SequentialSamplingModels

Iinked to dicssion in https://github.com/itsdfish/SequentialSamplingModels.jl/issues/41
Since the model sees extensive use, I figured an accessible simulator could be useful. I still need to write the doc page and test for the model but here is the PR to get us started.

Codecov Report
Attention: Patch coverage is 0% with 47 lines in your changes are missing coverage. Please review.

Project coverage is 71.10%. Comparing base (7cfcc5d) to head (2e96292).

Files
Patch %
Lines

src/stDDM.jl
0.00%
47 Missing :warning:

Additional details and impacted files
@@            Coverage Diff             @@
##           master      #59      +/-   ##
==========================================
- Coverage   73.09%   71.10%   -1.99%
==========================================
  Files          24       25       +1
  Lines        1680     1727      +47
==========================================
  Hits         1228     1228
- Misses        452      499      +47

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

I have not read the paper Amount and time exert independent influences on intertemporal choice in detail, but I am wondering whether this model should be a subtype of AbstractaDDM, or should use some design principles from those models if it does not quite fit coherently.  Subtypes of AbstractDDM  define an increment function, which increments evidence according to the currently attended attribute or alternative (for example). The location of attention is defined by a fixation function, which is passed to rand. You can define whatever function makes sense to guide shifts in attention, including one that samples from an empirical distribution.

@itsdfish I added some docs and tests, along with making changes throughout.

@kiante-fernandez, awesome! I look forward to reviewing the new model. I will review piecemeal over the week and will ping you when I am done.

@kiante-fernandez, thanks for the PR!

Out of curiosity, how does stDDM relate to Ratcliff's DDM? Can the two be merged in principle? or are they inherently distinct?

The article below explains the differences between the two models.  From what I have gathered, the DDM is a special case of the stDDM in which the starting time of processing different attributes occurs at the same time.
Piecewise constant averaging methods allow for
fast and accurate hierarchical Bayesian estimation
of drift diffusion models with time-varying
evidence accumulation rates

Which means that cross-trial variability (that #29 implements) could be in-principle added? Or am I getting confused?

I am fairly certain it is possible to compute the pdf for this model according to equation 9 in the paper. The only thing I am uncertain about is the correlation between the drift rate components here.
I think I am going to change the name. Evidence doesn't seem the most descriptive.


The use the bool values

Hey
Currently using version .1.9.71.
How can a make a boolean argument, and set is value to false?
I have tested with many combination, but no-matter what I tried, the value become always true, when I use the argument. Last test, I downloaded the source code.
I have notice that in class CommandLine.Parsing.LongOptionParser line 117, that a boolean value always set to true, no-mater which value that stand behind the option.
    valueSetting = option.SetValue(true, options);

Here is what I have seen.
In my option class I have this
        [Option('c', "cValue", Required = false, DefaultValue = true, HelpText = "Bool: Required = false, Default=true. Expected: true")]
        public bool CValue_true { get; set; }

        [Option('d', "dValue", Required = false, DefaultValue = false, HelpText = "Bool: Required = false, Default=false. Expected: false.")]
        public bool DValue_false { get; set; }

If I now use the parser, with no argument, c become true, and d become false.
However, if I add these parameters  "-d False" d always become true. Can't find a way to tell the CommandLineParser to make d false, nor c for that matter. Can only do it by using default values, and not include them in the argument list, but this can be right?
What am I doing wrong?
Jacob Mogensen

@monze,
the syntax you quoted is not supported since the library implement getopt() *nix standard.
In both version a scalar boolean is false only when omitted and set true when specified:
# 'c' == true
app -c
# 'c' == false
app

As now 2.0.x-pre is quite usable so I suggest you to use the new version (possibly building from sources, just executing packages\FAKE...\tools\Fake.exe from cloned repo).
There's actually more than an issue/discussion on allowing an explicit false value or use a common pattern of app c+ \ app c-.
For the moment the priority is to promote current 2.0 pre-release to an higher level of stability, like alpha.

Please refer to:
https://github.com/gsscoder/commandline/issues/158
and
https://github.com/gsscoder/commandline/pull/133
I've to close the issue since it's a duplicate, but feel free to add comments (better if in issue #158).


Styled components don't update on forceUpdate

Version
1.0.5
Reproduction
https://codesandbox.io/s/1jYVNX7ym
Steps to reproduce
Just watch
Expected Behavior
Font size should be changed every 3 seconds
Actual Behavior
Font size isn't changed

Hmm, just confirmed this is also broken on 2.0: https://codesandbox.io/s/v2A7zkkV8

@philipchmalts sure, but it should after forceUpdate as well I guess

Hi ✋
This does not not look like a bug to me...
styled-components does implement shouldComponentUpdate or some similar strategy to avoid recomputing styles every time which would lead to very bad performances.
In your example the problem is that your component is not pure, which mean you can't predict the output of the style because it does not rely only on iputs (props).
Also not that forceUpdate has pretty much nothing to do with that.
forceUpdate only force the current component to re-render, not the entire tree ! This mean that if a child-component implement shouldComponentUpdate it will not be render. In your example, if you use setState to trigger the render you get the same result.
To solve your example you have to Wrapper pure which mean pass the font size as props like  @philipchmalts says, exept in his example Wrapper is pure but Appis not. A cleaner approach would be to store all random values in App state.

Ah, yes of course. forceUpdate will rerender the children but not force them to rerender. So, your App will rerender but for Wrapper, shouldComponentUpdate kicks in and we don't re-render. There's no way around that, really.
As @philipchmalts points out, passing as a prop will do what you need.

@geelen I want to update styles on window.onresize event to have responsive layout, and I make forceUpdate on every resize.
So I have to duplicate code? For example:
const Wrapper = styled.div`
  margin: ${props => props.margin};
  font-size: ${props => props.fontSize};
`;

...
@forceUpdateOnResize
class ResponsiveLayout extends React.Components {
  render() {
    const responsiveMargin = getResponsiveMargin(window.innerHeight);
    const responsiveFontSize = getResponsiveFontSize(window.innerHeight);
    return (
      <Wrapper margin={responsiveMargin} fontSize={responsiveFontSize}>
        Hello responsive!
      </Wrapper>
    );
  }
}

I think it's best to use setState instead of forceUpdate and throttle the resize calls to 60 times a second. And there it's good practice to just pass props to the styled-components. Why aren't you using viewport units vw, vh in combination with calc?

@k15a Yes, I use throttle. I don't use viewport units, because it's much harder to reason about in my case. My code:
// forceUpdateOnResize HOC

import React, {Component} from 'react';
import {debounce} from 'lodash';

export default function forceUpdateOnResize(WrappedComponent) {
  return class extends Component {
    constructor(props) {
      super(props);
      this.update = debounce(this.update, 300);
    }

    componentDidMount() {
      window.addEventListener('resize', this.update);
    }

    componentWillUnmount() {
      window.removeEventListener('resize', this.update);
    }

    update = () => {
      this.forceUpdate();
    };

    render() {
      return <WrappedComponent {...this.props}/>;
    }
  };
}

// getSize util
// returns some size depending on current window width
// (simple linear function between two points)

const x1 = 1440; // max width (Desktop)
const x2 = 320; // min width (Mobile)

export default function getSize({to: y1, from: y2}) {
  if (window.innerWidth > x1) {
    return y1;
  }

  const k = (y1 - y2) / (x1 - x2);

  const b = y1 - k * x1;

  return k * window.innerWidth + b;
}

// some component (I have a lot of these)

import React, {Component} from 'react';
import styled from 'styled-components';
import {Container} from 'App/dumb';
import {Link} from 'react-router-dom';
import {forceUpdateOnResize, getSize} from 'App/utils';

const Wr = styled.div`
`;

const Content = styled.header`
  display: flex;
  width: 100%;
  justify-content: center;
  align-items: center;
`;

const LinkWr = styled(Link)`
  display: flex;
  text-decoration: none;
`;

@forceUpdateOnResize
export default class TokenLaunchHeader extends Component {
  render() {
    return (
      <Wr
        style={{
          padding: `${getSize({to: 15, from: 10})}px 0`,
        }}
      >
        <Container>
          <Content role="banner">
            <LinkWr
              to="/token"
              style={{
                fontSize: `${getSize({to: 20, from: 16})}px`,
                letterSpacing: `${getSize({to: 1.8, from: 0.5})}px`,
              }}
            >
              TOKEN LAUNCH COMING SOON >
            </LinkWr>
          </Content>
        </Container>
      </Wr>
    );
  }
}

As you can see, I have to use inline style here, because passing props (or setState) would be even more weird.

@mqklin I'd definitely say that this is an anti pattern unfortunately :/

because passing props (or setState) would be even more weird, because of duplicating the code.

That's a symptom/sign of it already being tedious.
You can use getSize inside your forceUpdateOnResize decorator, rename it, and maybe even use getSize from a prop to make that decorator agnostic to what it's doing.
Then pass the result down as a prop. Also, maybe you can consider currying the function, and passing in to and from first, resulting in a function that accepts innerWidth. That could also help. Then you'd only have to pass in innerWidth from your container.
The problem with the pattern you're using specifically is that it's rerendering your component as a side-effect of a window resize, while it's a direct, reactive consequence of a window resize.

Yes, this is an anti pattern from the theoretical point.
But it's almost ideal for this case, because I just need to have different sizes depending on window width. I don't need to scale this somehow. And this solution is very easy to add/edit/remove components/styles.
Thank you for your suggestion, but this logic is unnecessary for me. I'm just building a landing page :) And I wanted to make the syntax less cumbersome, without inline style attribute. It would be ideal.

Don't get me wrong. I respect patterns, but as an ordinary developer (compared to libraries/frameworks developers) I don't have to be very "smart", because my customer wants to get this site as soon as possible. And he doesn't care about patterns, so I choose the fastest way to build this landing.

@mqklin I fully understand :) it's just a suggestion after all. Adding the properties to inline styles is totally not as bad as it first looks, since until v3 (or a potential earlier release) it'll be faster than our style injection.
However, there are some libraries for HOCs which just inject the window dimensions. It'd probably be faster than writing this from scratch and cleaner. So you wouldn't even have to implement my suggestion yourself ;)

Hey @mqklin I wrote a small reflowing wrapper, I'm not sure of the implications from using "React.cloneElement" but it might help you out. https://codesandbox.io/s/y37jk1qq01


#451: mac gatekeeper

tries to fix #451

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
56 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.2%) to 61.598%

Files with Coverage Reduction
New Missed Lines
%

com/devonfw/tools/ide/url/model/UrlMetadata.java
8
80.28%

com/devonfw/tools/ide/tool/ToolCommandlet.java
10
66.2%

com/devonfw/tools/ide/tool/LocalToolCommandlet.java
38
75.28%

Totals

Change from base Build<PHONE_NUMBER>:
-0.2%

Covered Lines:
5278

Relevant Lines:
8248

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

0 of 0   changed or added relevant lines in 0 files are covered.
56 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.2%) to 61.598%

Files with Coverage Reduction
New Missed Lines
%

com/devonfw/tools/ide/url/model/UrlMetadata.java
8
80.28%

com/devonfw/tools/ide/tool/ToolCommandlet.java
10
66.2%

com/devonfw/tools/ide/tool/LocalToolCommandlet.java
38
75.28%

Totals

Change from base Build<PHONE_NUMBER>:
-0.2%

Covered Lines:
5278

Relevant Lines:
8248

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>2
Details

0 of 0   changed or added relevant lines in 0 files are covered.
54 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.1%) to 61.042%

Files with Coverage Reduction
New Missed Lines
%

com/devonfw/tools/ide/tool/ToolCommandlet.java
6
66.2%

com/devonfw/tools/ide/url/model/UrlMetadata.java
8
80.28%

com/devonfw/tools/ide/tool/LocalToolCommandlet.java
40
76.7%

Totals

Change from base Build<PHONE_NUMBER>:
-0.1%

Covered Lines:
5304

Relevant Lines:
8359

💛  - Coveralls


Reuse flow class declaration for class definition

Hi
how can I reuse my class declaration in this case without to copy paste all members in the class definition?
declare type A {
 a: string;
}

class A extends EventEmitter {

 foo() {
  this.a // error property not found
 }
}

I thought flow would recognize that class A is an instance of type A but it doesn't.

Not sure exactly what you are trying to achieve.
Aside from syntax error (missing '=' between 'type A' and '{'), note that identifier 'A' cannot be bound to both the type name and the class. A class is like a type so what you have is a duplicate identifier error to begin with.
Stackoverflow is a good place to ask questions like this. A lot of folks willing to help you formulate / tease out your problem.
http://stackoverflow.com/questions/tagged/flowtype

I just want to create a declaration type for the class without to declare the members inside the class.How can I amnotate my Class A from Type A?  If you see me example above. What happens when I have in any other file a reference to Class A I have to manage two places?  (type A and the class itself)

The Class A isnt registered as Type in Flow.

If you don't want to have flowtype declarations annotated on Class A (which is a valid use case if it is third party code written in vanilla JavaScript/ES2015 that you cannot/don't want to modify) you don't have to. My understanding is that in this case you cannot apply flowtype check on Class A source code. But you can declare the typings for Class A in a separate file, a.js.flow, which can be referenced in another flowtype checked file, say, b.js.
The general idea goes something like this, noting that only b.js has the // @flow comment/directive at the top of the file:
file a.js
class A {
    constructor() {
        this.a = "apple";
    }
    foo() {
        return this.a;
    }
 }

file a.js.flow
declare class A {
    a: string;
    constructor(): void;
    foo(): string;
}

file b.js
// @flow

function fooby(a: A): string {
   return a.foo();
}

file .flowconfig
[libs]
a.js.flow

Check these docs for further details:
https://flowtype.org/docs/getting-started.html
https://flowtype.org/docs/advanced-configuration.html
Hope this helps

Hi @indiescripter this is exactly that what I did but then I get lots of Property not found in... errors in file a.js

Assuming you mean this is a flowtype check compile time error and not a runtime error, double check that you do not have a // @flow comment at the top of the a.js file.
You cannot get flowtype errors if flowtype is not checking your a.js source file which you don't want it to do.
btw. i do static type JS topics on twitter @jbjohansson

Hi @indiescripter I already post it on stackoverflow http://stackoverflow.com/questions/41662696/reuse-flow-class-declaration-for-class-definition/41707058#41707058 if you read the comments perhaps you will understand my issue.

Good @StarpTech you posted on stackoverflow. I'm just wondering if your issue is in any way related to an issue I posted here a few days ago, namely,
How to output flow interface files #3168


Meshes & texture in game's map cant be rendered correctly

Description:
--try to uninstall all the mods about Visuals&Graphics (include ENB) , but nothing changed
--Disable the ImprevedCamera DLL can fix it

When i open a menu in Map , the issue is gone

or just open the console

openning any menu and console can fix Water opaque issue https://github.com/ArranzCNL/ImprovedCameraSE/issues/2

Shall investigate and fix, as we only handled the Tween Menu currently. Map Menu obviously needs handling.
Thanks for the report!

I think this is fixed by disabling fov override

Thanks for the report.
Fixed the issue, shall be released today or tomorrow.
I'll close this when it is released.

does not work, is it also happen in your game? if it just happen in my game, i guess there maybe something uncompatible with Bug fix mods, i installed Engine fixes, actor limit fix  powerothree's tweaks,  mfgfix  ,modern brawl bug fix and USSEP

The issue is with Improved Camera it is fixed, but you have to wait for PR 2.


Update the dependencies

Proposed changes:

just an update of the lockfile

Status (please check what you already did):

[ ] added some tests for the functionality
[ ] updated the documentation
[ ] updated the changelog (please check changelog for instructions)
[ ] reformat files using black (please check Readme for instructions)

Got updated by another PR


fix: fix panic when len < num

Which docs this PR relation:
RocksTrieDB has concurrent insertion problem, num > len may exist when flush, causing rng.gen_range(0..0) panic
Which toolchain this PR adaption:
No Breaking Change
Special notes for your reviewer:
CI Switch
ci-runs-only: [Chaos CI, Cargo Clippy, Coverage Test, E2E Tests, Code Format, Unit Tests]

Codecov Report

Merging #285 (7055e17) into main (d3186fc) will not change coverage.
The diff coverage is 86.36%.

@@           Coverage Diff           @@
##             main     #285   +/-   ##
=======================================
  Coverage   42.52%   42.52%
=======================================
  Files         102      102
  Lines        6873     6873
=======================================
  Hits         2923     2923
  Misses       3950     3950

Impacted Files
Coverage Δ

core/executor/src/adapter/trie_db.rs
80.50% <85.71%> (ø)

core/mempool/src/pool.rs
84.02% <100.00%> (ø)


Count only player notes

Describe your problem here.
So I created this nifty script I showed a WIP back in #9360 and wondered is there a way to count only the notes you press? I know there's getProperty('unspawnNotes.length'), but it also counts the opponent notes.
Are you modding a build from source or with Lua?
Lua
What is your build target?
Windows x64
Did you edit anything in this build? If so, mention or summarize your changes.
No response

Anyway, here's the script I have right now.
-- TODO
-- get a way to count all notes that are player interactible instead of whole game
-- Set up an achievement for doing all main weeks
-- expoential numbers instead of stricts

accScore = 0
curve = {}

function onCreatePost()
	totalNotes = getProperty('unspawnNotes.length')
	million = 1000000
	fivhun = 500000
	twentyfivhun = 250000
	onetwentyfiv = 125000
	sixtwofive = 62500

	-- shit gets 6.25% score of Sick
	shitScore = sixtwofive/totalNotes

	-- bad gets 12.5% score of Sick
	badScore = onetwentyfiv/totalNotes

	-- good gets 50% score of Sick
	goodScore = (fivhun/totalNotes)

	-- get the score for each Sick note
	sickScore = (fivhun/totalNotes) + (goodScore)

	io.write('total notes: ',totalNotes,'\n')
	io.write('sick score: ',sickScore,'\n')
	io.write('good score: ',goodScore,'\n')
	io.write('bad score: ',badScore,'\n')
	io.write('shit score: ',shitScore,'\n')
	io.write('supposed sfc: ',sickScore*totalNotes,'\n')
	io.write('supposed gfc: ',goodScore*totalNotes,'\n')
	io.write('supposed bfc: ',badScore*totalNotes,'\n')
	io.write('supposed shfc: ',shitScore*totalNotes,'\n')

end

function goodNoteHit(id, direction, noteType, isSustainNote)
	oldScore = score

    if not isSustainNote then
        strumTime = getPropertyFromGroup('notes', id, 'strumTime')
        songPos = getPropertyFromClass('Conductor', 'songPosition')
        rOffset = getPropertyFromClass('ClientPrefs','ratingOffset')

		if not botPlay then
			io.write('Actual Score:\t',accScore,'\n')
			io.write('Game Score:\t',score,'\n')

			if getProperty('sicks') then
				accScore = accScore + sickScore
				setScore(oldScore + sickScore)

			elseif getProperty('goods') then
				accScore = accScore + goodScore
				setScore(oldScore + goodScore)

			elseif getProperty('bads') then
				accScore = accScore + badScore
				setScore(oldScore + badScore)

			elseif getProperty('shits') then
				accScore = accScore + shitScore
				setScore(oldScore + shitScore)
			end

			if oldScore > accScore then -- makes sure the decimals don't push the score too far... or was supposed to do that
				difference = oldScore - accScore
				io.write('Warning! Game score over actual score by ',difference,'\n')

				if (difference > 5000) then
					setScore(accScore)
				end

			elseif oldScore < accScore and accScore ~= 0 then
				difference = oldScore - accScore
				io.write('Warning! Game score under actual score by ',difference,'\n')

				if (difference < -4999) then
					setScore(accScore)
				end

			end
		end
    end
end

function noteMissPress(direction)
	setScore(oldScore)
end

function noteMiss(id, direction, noteType, isSustainNote)
	setScore(oldScore)
end

function onEndSong()
	if score > million and getProperty('bads') == 0 and getProperty('goods') == 0 and getProperty('shits') == 0 then
		setScore(million)
	end

	return Function_Continue;
end

function round(number) -- rounds up the score because it only accepts integers
  if (number - (number % 1)) - (number - (number % 10)) < 5 then
    number = number - (number % 1)
  else
    number = (number - (number % 1)) + 1
  end
 return number
end

function createExponentialCurve(totalNotes, scoreLimit) -- tries to basically turn the score into an exponential set
	for n = 1, totalNotes do
		local xcurve = math.floor(scoreLimit, n^.5)/n
		table.insert(curve, xcurve)
	end
end

onCreate or onCreatePost

So I move the initialization of totalNotes to onCreate and then pass it to onCreatePost, maybe?

Move totalnotes into the for statement and make it increase every time it finds a mustPress note

	for totalNotes=0, getProperty('unspawnNotes.length')-1 do
		if getPropertyFromGroup('unspawnNotes', i, 'mustPress') then
			totalNotes = totalNotes + 1
		end
	end

Like this?

When I plug that to the script, nothing initializes though.

What does the function look like

Like this?

for i=0, getProperty('unspawnNotes.length')-1 do
if getPropertyFromGroup('unspawnNotes', i, 'mustPress') then
totalNotes = totalNotes + 1
end
end

Running it alongside others essentially just doesn't work.

 I think the loop statements don't work when it's actually called for use. It's weird.

Something about the loop statements in FNF is not working. I'm gonna try a 0.5.2h build.

This can be closed

Yup.


Recursive load buffers.el

What did you expect to happen?
Emacs loaded without any errors
What actually happened?
When emacs opens, Warnings buffer appears with the following errors after the update
Error (doom-init-ui-hook): Error running hook "+doom-dashboard-init-h" because: (error Recursive load /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el) Disable showing Disable logging
Error (doom-first-input-hook): Error running hook "ivy-mode" because: (error Recursive load /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el /Applications/MacPorts/Emacs.app/Contents/Resources/lisp/dired-loaddefs.el /Applications/MacPorts/Emacs.app/Contents/Frameworks/native-lisp/28_0_50-cff1cd86/dired-6a3ae2bc-061ce01a.eln /Users/deril/.emacs.d/.local/cache/eln/28_0_50-cff1cd86/counsel-eb5de957-be4e8ab1.eln) Disable showing Disable logging
Error (focus-in-hook): Error running hook "doom-auto-revert-buffers-h" because: (error Recursive load /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el /Users/deril/.emacs.d/core/autoload/buffers.el) Disable showing Disable logging
Warning (with-editor): Cannot determine a suitable Emacsclient

And emacs is not usable anymore.
Describe your attempts to resolve the issue
I tried to reinstall doom, upgrade it from the latest develop.
Steps to reproduce

Open Emacs
Observe errors

System Information
https://pastebin.com/x11tNZUn

https://github.com/macports/macports-ports/pull/12629 merged


Inspect

Resolves Inspect Command Conversion
Overview
Please bullet point the changes you have made below:

Converts ?inspect to /Inspect

Sidenote, I'm not sure the correct "git way" to do this. #214 currently needs to be merged first, as app.ts contains changes from it.

Converting to draft until I figure out the right way to update app.ts

It's clear I have some misunderstandings with git, I'm gonna figure those out then re-file the PR


Add [https://horizon.stellar.org/operations/17500967811] #memo-required GBS2RT…ZJHRP3

Address: GBS2RTBGEWBT7DJOH7CTA4PDVLIPONCPCIILJPPESWSHDIV4NFZJHRP3
Tags: memo-required
Title: https://horizon.stellar.org/operations/17500967811
Requested by @pollee22

That's Bitkub.com exchange


fix(package.json): remove node dependency from package.json

Removing node from package.json because it shouldn't need to be listed as a dependency, and also it's causing issues when trying to run npm i on an M1 Mac

Testing
Run npm i to check you can run the installs successfully. Maybe click on some of the components in the storybook to check that everything seems to be running ok.
Checklist for PR creator

[ ] If any new components were added, there are exported from packages/index.ts
[ ] If this PR is associated with a JIRA, it is mentioned in commit message footer ("Closes …")
[ ] If this PR contains breaking changes, is stated in commit message body ("BREAKING CHANGE: …")
[x] Info for applicable sections above is provided

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Add some of the newer career arc missions

Albert Belle 93 All-Star
Johnny Bench 95 Breakout
Frank Thomas 97 Hardware
Barry Larkin 92 Hardware
Mike Schmidt 84 Impact Veteran
Rollie Fingers 80 All-Star

Trying to add these without conflicting with your open PR. You or @mikehodgson just let me know if I should open a separate PR for the upstream repo.

Hey just saw this! I forgot to push the changes when I merged @Severinus-Claudius pull request. All is up-to-date now if you want to make a PR against my repo.


libum module not found?

Hi,  I used the package for some time with no issues, but I had to remove anaconda and set it up again and now I cannot get it work.
Specifically, running:
from sensapex import UMP
is fine, but then running:
ump = UMP.get_ump()
get to the following error
File "C:\Users\ZukerLab\Documents\Sensapex\Implant_protocol_v02142022.py", line 12, in
ump = UMP.get_ump()
File "C:\Users\ZukerLab\anaconda3\envs\env_sensapex\lib\site-packages\sensapex\sensapex.py", line 341, in get_ump
cls._single = UMP(address=address, group=group, start_poller=start_poller)
File "C:\Users\ZukerLab\anaconda3\envs\env_sensapex\lib\site-packages\sensapex\sensapex.py", line 357, in init
self.lib = self.get_lib()
File "C:\Users\ZukerLab\anaconda3\envs\env_sensapex\lib\site-packages\sensapex\sensapex.py", line 302, in get_lib
cls._lib = cls.load_lib()
File "C:\Users\ZukerLab\anaconda3\envs\env_sensapex\lib\site-packages\sensapex\sensapex.py", line 318, in load_lib
return ctypes.windll.LoadLibrary(os.path.join(path, "libum"))
File "C:\Users\ZukerLab\anaconda3\envs\env_sensapex\lib\ctypes_init_.py", line 460, in LoadLibrary
return self._dlltype(name)
File "C:\Users\ZukerLab\anaconda3\envs\env_sensapex\lib\ctypes_init_.py", line 382, in init
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'C:\Users\ZukerLab\anaconda3\envs\env_sensapex\lib\site-packages\sensapex\libum' (or one of its dependencies). Try using the full path with constructor syntax.
Thanks for any help

Okay, I'll have a look at this to fix it in the package. As a workaround, you can download http://dist.sensapex.com/misc/um-sdk/latest/umsdk-1.022-binaries.zip and extract the libum.dll file into the same directory as the sensapex.py file gets installed (or elsewhere and explicitly call UMP.set_library_path with the appropriate path before loading the library).


logging not working in driver binary

setting up a crate with a driver and cargo binaries, all works great until I try logging something, once the driver executable is run logging stops working:
[2024-03-12T15:03:34Z DEBUG cargo_bevy_analyzer] cli entrypoint
[2024-03-12T15:03:34Z DEBUG rustc_plugin::cli] PLUGIN_ARGS=null

fn main() {
    env_logger::init();
    debug!("cli entrypoint");
    rustc_plugin::cli_main(BevyAnalyzer);
}

fn main() {
    env_logger::init();
    debug!("Driver entrypoint");
    rustc_plugin::driver_main(BevyAnalyzer);
}

run with RUST_LOG=debug

Ah I've found the issue, I think it's something to do with caching/incremental compilation, the logs actually work but the real issue was my plugin not firing because it was cached. running cargo clean on the test crate beforehand solves the issue


keep getting tthis error and not sure what to do

[ERROR] Sonarr (http://<IP_ADDRESS>:8989/): api.Get(queue): httpClient.Do(req): Get "http://<IP_ADDRESS>:8989/api/v3/queue?includeUnknownSeriesItems=true&page=1&pageSize=2000&sortDir=asc&sortKey=timeleft": EOF

Still a problem? Make sure you're on Sonarr v3.


renamed file with corrupted filename

Per: https://github.com/tranduyhung/grav-skeleton-x-corporation/issues/5

Thank you for this fix!


Cleanup

Cleanup and reorganization of the docs section to take into account some of the feedback

Oh, my. This is a lot of work. I like how the docs are now organised. Fantastic, Heinz!


Allow whitelisting a CVE "terminally"

Some CVEs exist but may be retracted, disputed, without patches or not be patched on purpose from our side. I'd like to mark whitelist entries in a way that results in the Vulnix exit code returning to "green".

Changed exit code logic so that exit code 1 is only returned when --show-whitelisted is set. So if no whitelisted entries are printed, they are also not signalled via the exit code.
I think this is more consistent with users' expectations.


Add Nuget Dependency for .NET Framework, or support .NET Core.

The reference to System.Runtime.Remoting.Messaging.CallContext is a .NET Framework library and not contained in .NET Core 2.0, but the only dependency listed on nuget.org is log4net (>= 2.0.3).
log4net:ERROR [ParallelForwardingAppender] ErrorCode: GenericFailure. Failed in DoAppend
System.TypeLoadException: Could not load type 'System.Runtime.Remoting.Messaging.CallContext' from assembly 'mscorlib, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
at Log4Net.Async.AsyncForwardingAppenderBase.get_HttpContext()
at Log4Net.Async.ParallelForwardingAppender.Append(LoggingEvent loggingEvent)
at log4net.Appender.AppenderSkeleton.DoAppend(LoggingEvent loggingEvent)

Looking for .Net Core / .Net Standard support as well.


Add more testing

Timeouts

[x] Test maximum timeout passed to the underlying poll() call.
[ ] Test idle timeout being more than the maximum timeout (reduce maximum for testing) to confirm that restarting poll() works.
[x] Test various combinations of idle and run timeouts.

Formatting
Not sure how much this matters — we’re mostly dealing with input as a byte string.

[x] Non-UTF-8 input.
[x] Switching from stdout to stderr or vice-versa in the middle of a line.

Other

[x] Command exits with success.
[x] Command exits with failure.
[x] Command is killed by signal.

Not worth testing code that handles the idle timeout being greater than the poll() max timeout in the failure case.


Not receiving transaction from NavCoin Core

I opened a wallet in NavPay and tried to send 1 NAV from NavCoin Core. I have not received the coin after 30+ minutes. When i click on the wallet i get the error "Could not update transaction history", after the activity indicator stops. I get the same response on the web wallet.
I'm using the "NavPay-1.0.2b-osx.dmg" release, on a MacOS High Sierra ( 10.13.1 ).

According to https://chainz.cryptoid.info/ i do not see the latest transaction.

I've received the transaction now. It just took a while ( 50+ min ).


[5.1] Unify llvm.org and swift-lldb implementation of ClangHost

This should help prevent merge conflicts in the future.
cc @adrian-prantl

@swift-ci test and merge

Thanks!


Implement the location (address) feature

Is your feature request related to a problem? Please describe.
As of now in Freshbey users want to enter the address every time placing an order. To avoid a functionality should be made so that they'll ask to enter the address once and for future orders, the entered address will be used.
Describe the solution you'd like
Here's the address feature in amazon.in

The above screenshots are taken if a user is not signed in. Here are the screenshots if a user is signed in,

Note: The addresses were blurred due to privacy reasons.
I would like you to come up with a solution to implement the same feature in the Freshbey. Also, you need to take care of the address step on the shipping page.

The above screenshot is the shipping page. The application should skip this address step if the user has already given his address.
Here are the consolidated steps,

Implement the address button in the navbar (similar to amazon's button)

A modal should appear to ask to enter the address or pin code (take care of signed-in or not signed-in state)
If the user wishes to enter a new address the application should take him to a "addresses" page
On the "addresses" page, there should be an option to add a new address
Take care of the shipping page too as mentioned already
We need the same functionality implemented in amazon. So, go to amazon. in and take a look at how the functionality is implemented.

Describe alternatives you've considered
I would like you to come up with a solution to implement the address feature in the Freshbey. Incase if you have any queries feel free to reach out.
Additional context
Appropriate screenshots are attached.

can I work on this feature if it's still open? @roopeshsn

Could you brief your approach @mr0nerd?


Smaller search panel

An option for a smaller search panel would be great. Compared to some other themes like Numix, this theme's search panel is considerably bigger, which can be annoying on a small laptop screen.

This may be a bit tricky due to the assets used with the input fields. I've been trying to keep these themes as consistent with Material Theme as possible, so it might be a better idea for you to raise an issue there. If the original creator does decide to add an option for customizing the search panel, I'd be happy to port the changes to Materialize as well, though as I've said, I'm a bit doubtful.

The original material theme already has this option.
"material_theme_compact_panel"            : true ,
Please see the snapshot below.

Oh it looks like he just added the feature 5 days ago. I'll port it soon.

Thanks

This feature has been added, your themes should update shortly. Please reopen the issue if there are any problems with the new material_theme_compact_panel feature.


[Base] TabList should only process children with role tab

Duplicates

[X] I have searched the existing issues

Latest version

[X] I have tested the latest version

Summary 💡
I want to leverage the divider in Joy but doing this does not work:
<TabList>
  <Tab>...</Tab>
  <ListDivider role="none" />
  <Tab>...</Tab>
  <ListDivider role="none" />
  <Tab>...</Tab>
</TabList>

Then I found out that TabList process the children and attach some values to them.
Does it make sense to only process the children with role="tab"? It would make it easy for customization and extension.
Or we can flip it the other way around. Ignore the child that has role="none".
Examples 🌈
No response
Motivation 🔦
No response

Thanks for the feedback. I think we could make it work similarly to how SelectUnstyled or MenuUnstyled work with their children - not updating them directly but providing a context which they can interpret on their own.

This will be fixed by #36400. The method of determining tabs was changed in that PR. The TabList won't traverse its children, but the inner Tabs will register themselves with the TabList. This will allow the TabList to host other types of children components as well.


Is it possible to support the opensource bsc?

I am trying to use the opensourced version of bluespec compiler together with connectal. However, in order to successfully build the project (generating bluesim executables), I have to make some changes to connectal (connectal.txt).
Building errors are due to directory organization and internal API difference between closesource and opensourced version bsc. So I would like to know if there is any plan for connectal to support the opensourced version, since it seems to be the most accessible one for most people and hopefully Bluespec Inc. will continually maintain the repo.

I've been using the opensource bluespec compiler with Connectal for a few months now. However, I have only tested verilator simulation.
Thank you for providing the change to make bluesim work with the opensource version. Would you like to make a pull request?

Applying the patch without further modifications would actually make connectal break if someone is using an older bluespec compiler (versions in README.md), so I don't know if it is a good idea to make a pull request right away.
It would be better to get the bsc version and choose different codes depending on that. But how should I get bsc version reliably? bsc -help doesn't give any useful information.

I  also think that there is not much value in continuing support for
the closed source bsc.
Despite this, I think there is definitely a long term need for the
open source bsc to have compiler version numbers.
I created a pull request for cambridgehackers/bsc to give an idea of
the changes required.
I am not sure the best way to actually manage/update the environment
variable "COMPILERVERSION" (I have just dropped the definition into
src/comp/Makefile temporarily to show how it could work)
BTW, if we have a compiler version string, then putting in conditional
compilation for the bluesim changes should be trivial.
Ideas?
jca
On 6/7/20, Jamey Hicks<EMAIL_ADDRESS>wrote:

I don't know if I have any users that depend on closed source bsc so I

don't know how much work should be put into supporting it.

Also, the open source bsc doesn't have version numbers yet.

On Fri, Jun 5, 2020 at 10:49 PM kurocatus<EMAIL_ADDRESS>wrote:

Applying the patch without further modifications would actually make

connectal break if someone is using an older bluespec compiler (versions
in

README.md), so I don't know if it is a good idea to make a pull request

right away.

It would be better to get the bsc version and choose different codes

depending on that. But how should I get bsc version reliably? bsc -help

doesn't give any useful information.

—

You are receiving this because you commented.

Reply to this email directly, view it on GitHub

https://github.com/cambridgehackers/connectal/issues/169#issuecomment-639963650,

or unsubscribe

https://github.com/notifications/unsubscribe-auth/AASTPMYTEYOQOGTYMW7ES4DRVGVCTANCNFSM4NTHTLCA

.

--

You are receiving this because you are subscribed to this thread.

Reply to this email directly or view it on GitHub:

https://github.com/cambridgehackers/connectal/issues/169#issuecomment-640295467

A tentative pull request #170


Bug 2144067: core: Read mon secret from file instead of env var

Description of your changes:
Environment variables are not recommended for secrets in pods since they can be easily leaked if the environemnt variables are logged. By mounting the mon secret as a file, the mgr and osd prepare pods can read the mon secret from a file for better security.
This in addition to https://github.com/rook/rook/pull/11331 should mean rook is compliant with not using the secrets.
The one exception to this is that the CSI driver and many of the Ceph pods mount the rook-ceph-config secret, but it does not contain confidential information. The secret only contains the mon endpoints, which is necessary to save as a secret for the csi driver.
Which issue is resolved by this Pull Request:
Resolves #https://bugzilla.redhat.com/show_bug.cgi?id=2144067
Checklist:

[ ] Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide).
[ ] Skip Tests for Docs: If this is only a documentation change, add the label skip-ci on the PR.
[ ] Reviewed the developer guide on Submitting a Pull Request
[ ] Pending release notes updated with breaking and/or notable changes for the next minor release.
[ ] Documentation has been updated, if necessary.
[ ] Unit tests have been added, if necessary.
[ ] Integration tests have been added, if necessary.

/cherry-pick release-4.11

/cherry-pick release-4.10


Unable to compile lightgbm on aws p8 deep learning ami

Hi - I am unable to compile lightgbm with flag -DUSE_GPU=1.
I continue to get following error.
Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)
Thinking it could be path issue, I tried following commands.
sudo -E env "PATH=$PATH" cmake -DUSE_GPU=1
sudo -E env "PATH=$PATH" cmake -DUSE_GPU=1 -DOpenCL_LIBRARY=/usr/lib/libnvidia-opencl.so.396.37 -DOpenCL_INCLUDE_DIR=/usr/local/cuda-9.2/include/ ..
sudo -E env "PATH=$PATH" cmake -DUSE_GPU=1 -DOpenCL_LIBRARY=/usr/local/cuda-8.0/lib64/libOpenCL.so -DOpenCL_INCLUDE_DIR=/usr/local/cuda-8.0/include/ ..
sudo -E env "PATH=$PATH" cmake -DUSE_GPU=1 -DOpenCL_LIBRARY=/usr/local/cuda-9.0/lib64/libOpenCL.so -DOpenCL_INCLUDE_DIR=/usr/local/cuda-9.0/include/ ..
I also uninstalled / reinstalled, g++,gcc,cmake just to make sure something obvious is not stopping it from compiling.
Any ideas what else can be done?
Environment info
Operating System: AWS Linux - Deep Learning AMI
CPU: P8 -> 32 cores, 8 GPU
C++/Python/R version: Python
Error Message:
Could NOT find OpenMP_C (missing: OpenMP_C_FLAGS OpenMP_C_LIB_NAMES)

ping @huanzhang12

It looks like the OpenMP library cannot be corrected detected on this Amazon Linux AMI.
I have no idea what package is needed to get it working on this OS - don't use Amazon Linux if possible. Use a common distribution like Ubuntu, Debian or CentOS will make your life much easier.
A Similar issue has been reported before and was resolved by switching to Ubuntu deep learning AMI: https://github.com/dmlc/xgboost/issues/3270 (xgboost also uses OpenMP)
Do Not Use Amazon Linux

Thanks @huanzhang12 and @Laurae2 - I used ubuntu Deep learning AMI and P3. And it worked on AWS.


Added support for Interix (Windows Subsystem for UNIX)

Description
This PR adds support for the Interix environment, also called "Windows Services for UNIX" or "Windows Subsystem for UNIX-based Applications", which was available from Windows NT 4.0 until Windows 8 and Server 2012.
I have followed the coding guidelines to the best of my abilities. All changes have passed shellcheck.
Features
This PR adds proper detection of the OS, Distro, Model, Kernel, Uptime, CPU, GPU, Memory, Battery, Packages and Battery. A colored logo has been added as well, based on this icon commonly used for the UNIX Subsystem
Example output:

Issues
#1822
TODO
The Interix implementations of bash and other UNIX like features are a bit quirky, causing the following issues:

Random digits are printed before the logo is printed
Shell and Terminal detection do not work reliably yet
Disk detection does not work because df does not list a / mount point
On Host and CPU sometimes white spaces are replaced with a ⌂ character

This is older than me :O

Thank you for your contribution!
This PR is merged into hyfetch since this repo (dylanaraps/neofetch) seems no longer maintained.
HyFetch is a fork of neofetch with LGBTQ pride flags, but the repo also maintains an updated version of the original neofetch, addressing many pull requests that are not merged in the original repo.
Read the "Running Updated Original Neofetch" section for more info!

@hykilpikonna Thanks! Though rendering seems to be broken in hyfetch. I might take a peek later if I can find the cause.


Create micro:bit image with bootloader update from interface

Will be useful to test this feature.

Not yet finished: https://github.com/microbit-foundation/DAPLink/wiki/Building-micro:bit-interface-image-to-update-bootloader

Jig has arrived so this can now proceed when it's prioritised.

Jig not required for this one as it about creating a DAPLink interface image that contains the bootloader as a blob. When this interface image is flashed, it can then update the bootloader on next reset.

Bootloader update process was introduced in 0244 and current micro:bit ships with 0243/0249 combo. This task is to track investigation of how we might use the feature and whether it'll affect micro:bit users significantly if we enable it.


Fix video dates

While working on fixes to #638, I realized that some videos did not have dates (~68 of them). I wrote a little scraper to populate them with YouTube's published dates.
Then, I thought I could just run this on all videos to do a little content QA. It caught a few things, notably a bad videoId from the ml5 track.
Sorry for the sometimes larger diffs than required diffs, it seems like the JSON content files were not formatted using Prettier before.

I think that #870 could also probably be closed after this is merged. All missing NOC dates should've been added here.

incredible! Thank you!


Virtualize all info panel forms

One step closer to unifying all of them.

r? @keybase/react-hackers

It'll be one list eventually (in an upcoming PR)


edited results section in manuscript

Shortened the results section for figure 3.
I also moved the last paragraph of the figure3 section in results to the first paragraph of the methods section. Please let me know if it sounds alright or if it needs further editing!

Codecov Report

Merging #583 into master will decrease coverage by 0.19%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #583      +/-   ##
==========================================
- Coverage   92.01%   91.81%   -0.20%
==========================================
  Files          21       21
  Lines        1528     1528
==========================================
- Hits         1406     1403       -3
- Misses        122      125       +3

Flag
Coverage Δ

#unittests
91.81% <ø> (-0.20%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

lineage/Analyze.py
83.33% <0.00%> (-3.13%)
:arrow_down:

Continue to review full report at Codecov.

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


Transparent Navbar

Page navbar-transparent.html:
Simulate bug:
Resize browser viewport to simulate mobile viewport. After hamburger menu button appears, click on it once and than resize browser back to full width. On this point, menu with items in dorpdown becume useless because it appears somewhere in background.
Proposal:
Setup onResize event listener/emiter to collapse menu first each time viewport is changed.

@CyberianIce thank you for the feedback and for the solution. I'm thinking that the event listener to collapse that dropdown would be good just for development purpose not for the real life case when you are either on Desktop (full width) or phone/tablet (small width). Does this make sense? :D
Best,
Alex

I understand, but You may consider some tabled devices where viewport is switched each time you change display orientation. That is exactly the way I discovered this tinny bug.

@CyberianIce yeees, you're right, I forgot that some tablets can jump between phone/desktop triggers based on the width/height of the tablet. We will see which is the best option, forcing the z-index so the dropdown remains open or using the trigger that you mention to close everything.
Thank you for contribution!
Best,
Alex


Statistical modeling of Browns Failure is overly simplistic

Program models Browns Failure as purely random events and doesn't take into account widely available game statistics.  Changing from purely random to something weighted on each players performance would be a massive rewrite, but could be interesting to do.

That could be very cool...at that point I'd have to pull in an API and require a database for updating. Where would I get that info from? ESPN? The Browns themselves?
I could do a handcode of various stats.
Interestingly, enough the Browns hired the Moneyball guy to help with finding player value. I've also considered contacting the Browns asking for them to open there data.


Reduce reallocations

Replaces some empty Vec / HashMap initializations with with_capacity to reduce the number of reallocations. Given than an empty vec will reallocate to a capacity of 4 directly on the first push, some tiny vecs are left untouched.
The number of reallocations can be evaluated with an external crate like alloc_counter. Testing against bench_recursion example, i.e. replacing the prove calls with the code below
    let mut timing = TimingTree::new("prove", Level::Debug);
    let ((_, realloc, _), proof) =
        count_alloc(|| prove::<F, C, D>(&data.prover_only, &data.common, pw, &mut timing).unwrap());
    timing.print();

    println!("Reallocations for proving: {:?}", realloc);

for both the initial dummy proof and the two recursive layers, a typical run yields the following:

main branch:
Reallocations for dummy proof: 119064
Reallocations for 1st rec. proof:  48632
Reallocations for 2nd rec. proof: 51235

this branch:
Reallocations for dummy proof: 56476 (-52.6%)
Reallocations for 1st rec. proof:  32910 (-32.3%)
Reallocations for 2nd rec. proof: 35394 (-30.9%)

@npwardberkeley Would you mind taking a look?

I did a quick skim, @npwardberkeley if you wouldn't mind looking also


Writing is not allowed after writer was completed

System.InvalidOperationException: Writing is not allowed after writer was completed.
   at System.IO.Pipelines.ThrowHelper.ThrowInvalidOperationException_NoWritingAllowed()
   at System.IO.Pipelines.Pipe.GetMemory(Int32 sizeHint)
   at Microsoft.AspNetCore.SignalR.Internal.Protocol.Utf8BufferTextWriter.EnsureBuffer() in C:\Development\Source\SignalR\src\Microsoft.AspNetCore.SignalR.Common\Internal\Protocol\Utf8BufferTextWriter.cs:line 140
   at Microsoft.AspNetCore.SignalR.Internal.Protocol.Utf8BufferTextWriter.GetBuffer() in C:\Development\Source\SignalR\src\Microsoft.AspNetCore.SignalR.Common\Internal\Protocol\Utf8BufferTextWriter.cs:line 125
   at Microsoft.AspNetCore.SignalR.Internal.Protocol.Utf8BufferTextWriter.Write(Char value) in C:\Development\Source\SignalR\src\Microsoft.AspNetCore.SignalR.Common\Internal\Protocol\Utf8BufferTextWriter.cs:line 90
   at Microsoft.AspNetCore.SignalR.Internal.Protocol.HandshakeProtocol.WriteResponseMessage(HandshakeResponseMessage responseMessage, IBufferWriter`1 output) in C:\Development\Source\SignalR\src\Microsoft.AspNetCore.SignalR.Common\Internal\Protocol\HandshakeProtocol.cs:line 52
   at Microsoft.AspNetCore.SignalR.HubConnectionContext.WriteHandshakeResponseAsync(HandshakeResponseMessage message) in C:\Development\Source\SignalR\src\Microsoft.AspNetCore.SignalR.Core\HubConnectionContext.cs:line 204
   at Microsoft.AspNetCore.SignalR.HubConnectionContext.HandshakeAsync(TimeSpan timeout, IList`1 supportedProtocols, IHubProtocolResolver protocolResolver, IUserIdProvider userIdProvider) in C:\Development\Source\SignalR\src\Microsoft.AspNetCore.SignalR.Core\HubConnectionContext.cs:line 329
   at Microsoft.AspNetCore.SignalR.HubConnectionHandler`1.OnConnectedAsync(ConnectionContext connection) in C:\Development\Source\SignalR\src\Microsoft.AspNetCore.SignalR.Core\HubConnectionHandler.cs:line 62
   at Microsoft.AspNetCore.Sockets.HttpConnectionDispatcher.ExecuteApplication(ConnectionDelegate connectionDelegate, ConnectionContext connection) in C:\Development\Source\SignalR\src\Microsoft.AspNetCore.Sockets.Http\HttpConnectionDispatcher.cs:line 377
   at Microsoft.AspNetCore.Sockets.HttpConnectionContext.WaitOnTasks(Task applicationTask, Task transportTask) in C:\Development\Source\SignalR\src\Microsoft.AspNetCore.Sockets.Http\HttpConnectionContext.cs:line 200
   at Microsoft.AspNetCore.Sockets.HttpConnectionContext.DisposeAsync() in C:\Development\Source\SignalR\src\Microsoft.AspNetCore.Sockets.Http\HttpConnectionContext.cs:line 178
   at Microsoft.AspNetCore.Sockets.HttpConnectionManager.DisposeAndRemoveAsync(HttpConnectionContext connection) in C:\Development\Source\SignalR\src\Microsoft.AspNetCore.Sockets.Http\HttpConnectionManager.cs:line 228

Repo:

Run browser function tests
Attach debugger to server
Break points in all the HttpConnectionManager.DisposeAndRemoveAsync catches

This error isn't causing the tests to fail but should it even be thrown?

I need to rework this code to be more like the client each side owns their side of the connection. We should only dispose the other side after a timeout or something similar. I’ll take this one

I'll take this one.


DBZ-537 Configurable offset commit strategy

https://issues.jboss.org/browse/DBZ-537

Rebased and applied. Thanks a lot, @jpechane! I've added one more commit with a few adjustments, most notably it's raising an exception now if instantiations fail instead of just logging. That seems more like the right thing to do. Check out the commit, I hope the changes are alright with you. Thanks again!


Filter sentences by ID

AS A labeler
I WANT TO filter my sentences using sentence ID
IN ORDER TO select sentences that interests me.
Acceptance Criteria:

[ ] By default no filter is being applied.
[ ] If I click on a ‘Filter' then I can choose an interval of sentences I can filter ‘is between’.

[ ] If I apply on a filter then the condition is being applied on sentence IDs and I can see the particular sentences I have chosen.
[ ]  If I cancel the filter then the Default View is being applied, no filter is applied to the list of sentences.

@alimuhammadahmer @kunnark

Is this purely a GUI development?
ACs must contain all REST endpoints used, even if it only means GUI making requests to endpoints that will not be developed within this issue.

Filtering/Sorting happens on Frontend. No Backend API is involved.

@turnerrainer look at the @alimuhammadahmer 's comment. No backend involved.

@kunnark we changed this so that the filtering/sorting now happens on the BE. But the endpoint is the same (Ruuter GET /tasks?project={id} & ReSQL POST /get_corpora) as in https://github.com/buerokratt/Data-Anonymizer/issues/46. So I have linked that particular Pull Request to this story as well.


Made a first benchmark to compare ProbNumDiffEq.jl to various other solver packages

Codecov Report

Merging #63 (687eb8f) into main (359afcb) will decrease coverage by 84.16%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             main     #63       +/-   ##
==========================================
- Coverage   84.16%   0.00%   -84.17%
==========================================
  Files          21      20        -1
  Lines         897     883       -14
==========================================
- Hits          755       0      -755
- Misses        142     883      +741

Impacted Files
Coverage Δ

src/caches.jl
0.00% <0.00%> (-100.00%)
:arrow_down:

src/smoothing.jl
0.00% <0.00%> (-100.00%)
:arrow_down:

src/solution_sampling.jl
0.00% <0.00%> (-100.00%)
:arrow_down:

src/integrator_utils.jl
0.00% <0.00%> (-96.30%)
:arrow_down:

src/diffusions.jl
0.00% <0.00%> (-95.56%)
:arrow_down:

src/state_initialization.jl
0.00% <0.00%> (-95.07%)
:arrow_down:

src/perform_step.jl
0.00% <0.00%> (-92.80%)
:arrow_down:

src/solution.jl
0.00% <0.00%> (-92.41%)
:arrow_down:

src/jacobian.jl
0.00% <0.00%> (-90.00%)
:arrow_down:

src/squarerootmatrix.jl
0.00% <0.00%> (-85.00%)
:arrow_down:

... and 11 more

Continue to review full report at Codecov.

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


Module not found : scrollspy.js

hi,
when i install the latest build version which is 3.3.4, i am getting below error
Module build failed: Error: ENOENT: no such file or directory, open '/Users/sahusoft/Sites/projects/merge_wos_with_jaipur_team/wos-client/node_modules/react-scrollspy/scrollspy.js'
when i checked the lib folder it has Scrollspy.js instead of scrollspy.js.

How did you install this lib? Maybe the module you installed is not this lib or not latest version.
react-scrollspy does not have a file such like node_modules/react-scrollspy/scrollspy.js. ScrollSpy.js should be in node_modules/react-scrollspy/lib/.

Cannot reproduced. Feel free to reopen this issue if the same error occured.

Hello,
I got this error today. The case is case sensitivity. I could solve it locally by renaming the "main" field in the file node_modules/react-scrollspy /package.json: "./lib/Scrollspy.js" -> "./lib/scrollspy.js". Each time on all devices manually change this line torment. Can you correct the path in this field?
Version 3.4.0 installs ./lib/Scrollspy.js
Version 3.4.1 installs ./lib/scrollspy.js


Anchor Tag Isn't Applying href Attribute

I'm seeing an issue where adding links to text using the "link" button will create an anchor tag with no href attribute set. What's strange is that if I use developer tools to inspect the linked text in visual mode (not plain text mode), I see the href attribute applied correctly (Image 1). However, if I switch to plain text mode, the href attribute gets lost (Image 2). It appears that the text that gets added to the textarea is what's missing the href tag, which also means that the submitted text is missing the tag as well.
I've attached my rules.js file. I noticed on line 168 that there's a comment related to the href property that reads:
if you compiled master manually then change this from 'url' to 'href'
I've tried using both url and href and the problem persists.
Thank you for your help!

rules.js.zip

Fixed the issue by fiddling with the rule I mentioned on like 168. The rule was displayed like this:
a: {       check_attributes: {         href: 'preserve', // if you compiled master manually then change this from 'url' to 'href'         rel: 'preserve',         'data-annotation-id': 'preserve',         'data-annotation-text': 'preserve',       },       set_attributes: {         rel: 'nofollow',         target: '_blank',       },     },
I misunderstood the comment; I was trying to change the attribute name href in the check_attributes object to url, but what really needed to change was the value associated w/ that href object. Instead of preserve, it needs to be href, like so:
href: 'href', // if you compiled master manually then change this from 'url' to 'href'
That did the trick.


Update dependencies with the latest

Is your feature request related to a problem? Please describe.

react-query version doesn't match. I have<EMAIL_ADDRESS>in my nextjs project, but you are using ^4.35.0". I am using nextjs latest version with app router, fyi

...
Describe the solution you'd like

Upgrade versions for dependencies

...
Describe alternatives you've considered

I will not use graz, since it's breaking.

...
Additional context

Screenshot attached above

...

Sorry, this bug is not related to the version mismatch. I was able to fix it by rendering the Wallet component on the client side only. Thank you.

Glad that you found the fix


Tags incorrectly formatted when exporting EC2.

When doing the export to ec2 terraforming ec2 the tags appear in the following format:
    tags {
        "Team" = "teamx"
        "Name" = "super-instance-new"
        "Purpose" = "production"

When trying to plan that, terraform (latest) complain about the format and have to manually correct to
    tags = {
        Team = "teamx"
        Name = "super-instance-new"
        Purpose = "production"

this applies to tags everywhere, not just EC2

I am closing this one in favor of #484 which haves a fix too.


Not enough test coverage

The automated test cases have not been doing a good enough job at detecting when I accidentally slip Python2 specific language (e.g. unicode instead of six.text_tpe) and since I mostly use this repo myself in a Python2 environment, I miss the errors that happen for Python3 users.
If the repo had better coverage, I would get emails from Travis about the build failing.
Will try and fix today but I am open to PRs if anyone would like to write test cases.

Coverage is at 86% now, but Feel free to add more.
Thanks.


Issue "bundle exec rake db:populate_db"

After update config/database.yml, when ran "bundle exec rake db:populate_db", I had below issues:
"rake aborted!
ActiveRecord::NoDatabaseError: FATAL:  database "sinatra_pg_development" does not exist
..."

I fixed this issue by runing below commands:

createdb -h localhost -p 5432 -U postgres sinatra_pg_development
(Note: If we use MacOS, we may use login user name of OS instead of 'postgres' user name.)
bundle exec rake db:migrate

I fixed this issue by runing below commands:

createdb -h localhost -p 5432 -U postgres sinatra_pg_development
(Note: If we use MacOS, we may use login user name of OS instead of 'postgres' user name.)
bundle exec rake db:migrate

I fixed this issue by runing below commands:

createdb -h localhost -p 5432 -U postgres sinatra_pg_development
bundle exec rake db:migrate


No formatter installed

We have written the needed data into your clipboard because it was too large to send. Please
Issue Type: Bug
Trying to format c# files ( in a correct workspace ) does not work any longer. It just says " No formatter for csharp installed " - reinstalling VS Code and/or Omnisharp didn't help either.
Extension version: 1.25.0
VS Code version: Code 1.68.0 (4af164ea3a06f701fe3e89a2bcbb421d2026b68f, 2022-06-08T11:44:16.822Z)
OS version: Windows_NT x64 10.0.19043
Restricted Mode: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz (8 x 4008)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onoop_rasterization: enabledopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabled

Load (avg)
undefined

Memory (System)
15.96GB (9.15GB free)

Process Argv
--crash-reporter-id dcaffdd5-9aa9-49fe-b007-7d6f1669383f

Screen Reader
no

VM
67%

A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vswsl492:30256859
vslsvsres303:30308271
pythonvspyl392:30443607
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonvspyt551:30345470
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscorecescf:30445987
pythondataviewer:30285071
vscod805:30301674
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
vsaa593:30376534
vsc1dst:30438360
pythonvs932:30410667
wslgetstarted:30449410
vscscmwlcmt:30465135
cppdebug:30492333
vscaac:30438847
vsclangdf:30486550

@Emerix Can you please share the OmniSharp Log from the VS Code Output Pane? Along with the output of dotnet --info.

I had the same problem. The minimum version of .NET for Omnisharp 1.25.0 is 6. I had to update .Net version to fix the problem.

Thanks the the hint with the omnisharp log. It turns out that I needed to install the vs build tools. https://visualstudio.microsoft.com/downloads/?q=build+tools#:~:text=Build Tools for Visual Studio 2022


[BUG] PSRule not handling optionality marker ? as expected

Existing rule
No response
Description of the issue
It looks to me that PSRule is not capable of handling the optionality marker ? properly. The marker is used whether if a property is required or not on a user-defined type most commonly, however it can also be used with a parameter, to specify if it is a required parameter or not.
@description('Route table configuration.')
param parRouteTable typRouteTable?

Error messages
2024-02-21T17:33:28.3000658Z ##[error]Failed to expand bicep source '/home/runner/work/platform/platform/./deployments/sub/mgmt-env-001/parameters/main.dev.bicepparam'. Exception calling "GetBicepParamResources" with "2" argument(s): "Unable to expand resources because the source file '/home/runner/work/platform/platform/./deployments/sub/mgmt-env-001/parameters/main.dev.bicepparam' was not valid. The type for parameter 'parRouteTable' was not defined or invalid."

Reproduction
main.dev.bicepparam
using '../main.bicep'

param parEnvironment = 'dev'

main.bicep
@description('Route table configuration.')
param parRouteTable typRouteTable?

@description('This module will deploy the base infrastructure required for any subscriptions.')
module modPtnWrapper './src/deploy.bicep' = {
  name: 'modPtnWrapper-${parBaseTime}'
  params: {
    parRouteTable: parRouteTable
  }
}

deploy.bicep (nested module in main.bicep)
@description('The custom routes to deploy.')
param parRouteTable typRouteTable?

Version of PSRule
2.9.0
Version of PSRule for Azure
1.33.2
Additional context
I was unsure whether if the issue should he here or in the PSRule repository.

@BenjaminEngeset Are you able to provide typRouteTable can't repo this currently. Generally nullable parameters and types are supported and should work.
Are you using imports at all?

@BenjaminEngeset Support will ship with v1.34.0, which should ship next week. But feel free to checkout the next pre-release.

Closing as duplicate of #2537


Ontology: upgrade UMLS CSVs to use exports from Neptune for 2022AB

The 2022AB release of UMLS is now available.

Completed.


webpack implementation

Here are my changes for the webpack implementation as requested by @retlehs
npm run build build assets
npm run build:production build minimized assets
npm run watch browsersync
dev.js is the dev server with browsersync run by npm run watch (node dev.js)
I'll be happy to keep contributing and get back to you if you have any questions. Looking forward Sage 9!

@ptrckvzn fyi it looks like assets.json got missed

assets.json is the file in dist/ generated by the build scripts. :)

I made some change to the webpack files today. Please take a look.
Briefly:

not using any environment variables in the npm scripts for better windows compatibility (removed SAGE_ENV)
extracted options to a config file
dist/ keep the same folder structure (images/, fonts/, styles/, scripts/) - this work better with the assets loaded via php as it expect a subfolder to the dist folder
webpack.config has settings specific to the "watch" script
renamed the watch script to watch.js

:+1: looks good! feel free to PR this repo again from your fork, definitely okay with iterating on here as you're making updates


Update IDL to program v3.1.0

@cnek did we do this back then? Wondering if we got the program right and client wrong or vice versa here

@cnek did we do this back then? Wondering if we got the program right and client wrong or vice versa here

https://github.com/UXDProtocol/uxd-client/pull/13
we merged this "redeem only mode" but actually this is excluded in v3.1.0
anyway, disableDepositoryRegularMinting is what we need now


Data used to train the model

Could you provide more information on the readme regarding the data you used to train your models?

I was also looking for a training dataset. Without providing the dataset your research cannot stand objective verification.


Unable to install updates for retronas

Details
No response

After trying to install updates the following msg is displayed.
E: dpkg was interrupted, you must manually run 'dpkg --configure -a' to correct the problem.
How do you manually run?

standard linux package manager issue not a retronas issue, will generally happen if apt and dpkg are interrupted
open a terminal and run the command as root on your linux install.


Fix HwRenderPrimitiveFactory with NoopDriver

Problem: the NoopDriver always returns the same handle for RenderPrimitives (even if the buffers are different). This break's HwRenderPrimitiveFactory's assumption that createRenderPrimitive will always be unique. What ends up happening is multiple RenderPrimitives map to the same HwRenderPrimitive, which causes an assertion to fail upon a Google3 test termination.

Actually, I'm not sure this is the correct solution, I need to think about it some more..

A better solution might be to simply return incremental handles from NoopDriver instead of a static handle ID.


✨ RedisPipeline

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#556  👈 (View in Graphite)
#555
main

This stack of pull requests is managed by Graphite. Learn more about stacking.


Error when running without CUDA: No LuaRocks module found for cutorch

Trying to run with the default parameters. Getting this error:
/Users/x/torch/install/bin/luajit: /Users/x/torch/install/share/lua/5.1/trepl/init.lua:363: module 'cutorch' not found:No LuaRocks module found for cutorch
    no field package.preload['cutorch']
    no file '/Users/x/.luarocks/share/lua/5.1/cutorch.lua'
    no file '/Users/x/.luarocks/share/lua/5.1/cutorch/init.lua'
    no file '/Users/x/torch/install/share/lua/5.1/cutorch.lua'
    no file '/Users/x/torch/install/share/lua/5.1/cutorch/init.lua'
    no file './cutorch.lua'
    no file '/Users/x/torch/install/share/luajit-2.1.0-alpha/cutorch.lua'
    no file '/usr/local/share/lua/5.1/cutorch.lua'
    no file '/usr/local/share/lua/5.1/cutorch/init.lua'
    no file '/Users/x/.luarocks/lib/lua/5.1/cutorch.so'
    no file '/Users/x/torch/install/lib/lua/5.1/cutorch.so'
    no file './cutorch.so'
    no file '/usr/local/lib/lua/5.1/cutorch.so'
    no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
    [C]: in function 'error'
    /Users/x/torch/install/share/lua/5.1/trepl/init.lua:363: in function 'require'
    neural_style.lua:42: in function 'main'
    neural_style.lua:370: in main chunk
    [C]: in function 'dofile'
    .../x/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
    [C]: at 0x01028fc7b0

I tried explicitly using the nn engine. Also to install cutorch, which fails due to Specify CUDA_TOOLKIT_ROOT_DIR.
Note, this is OSX.
Thanks!

If you don't have cutorch installed then you won't be able to run in GPU mode. You can run in CPU only mode by passing the flag -gpu -1.

Ah missed that line!
Ok now I'm getting
[...]
Successfully loaded models/VGG_ILSVRC_19_layers.caffemodel
/Users/x/torch/install/bin/luajit: models/VGG_ILSVRC_19_layers_deploy.prototxt.cpu.lua:7: attempt to call method 'ceil' (a nil value)
stack traceback:
    models/VGG_ILSVRC_19_layers_deploy.prototxt.cpu.lua:7: in main chunk
    [C]: in function 'dofile'
    ./loadcaffe_wrapper.lua:48: in function 'load'
    neural_style.lua:53: in function 'main'
    neural_style.lua:370: in main chunk
    [C]: in function 'dofile'
    .../x/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:131: in main chunk
    [C]: at 0x010919c7b0

That should be fixed if you update your nn to the latest version; the ceil() method was added pretty recently in https://github.com/torch/nn/commit/929cfc57c88952b597bec77046582b90d1122380.

Ha, thanks man that worked!! :)

@jcjohnson
how do i install cutorck, I execute luarocks install cutorch,but i encounter error below

Do you have CUDA installed?

@jcjohnson
like brew cask install cuda?

I don't think you can install cuda with homebrew; try following the steps here:
http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-mac-os-x/#axzz3km0bJe3r
Alternatively you can run neural-style in CPU only mode with the flag -gpu -1.

@jcjohnson Thanks , I will have a try.
ps : in CPU mode is too slow :D

I'm receiving the same error, however CUDA is installed.  I can get CUDA to work with DeepDreamVideo and when I type:
nvidia-smi
Thu Oct  1 17:17:11 2015
+------------------------------------------------------+
| NVIDIA-SMI 346.46     Driver Version: 346.46         |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  GRID K520           Off  | 0000:00:03.0     Off |                  N/A |
| N/A   32C    P0    37W / 125W |     10MiB /  4095MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+
However, when I try to install cutorch, I'm returned:
luarocks install cutorch
Installing https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/cutorch-scm-1.rockspec... switching to 'build' mode
Cloning into 'cutorch'...
remote: Counting objects: 81, done.
remote: Compressing objects: 100% (77/77), done.
remote: Total 81 (delta 7), reused 25 (delta 0), pack-reused 0
Receiving objects: 100% (81/81), 122.26 KiB | 0 bytes/s, done.
Resolving deltas: 100% (7/7), done.
Checking connectivity... done.
cmake -E make_directory build && cd build && cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH="/home/ubuntu/torch/install/bin/.." -DCMAKE_INSTALL_PREFIX="/home/ubuntu/torch/install/lib/luarocks/rocks/cutorch/scm-1" && make -j$(getconf _NPROCESSORS_ONLN) install
-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Found Torch7 in /home/ubuntu/torch/install
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
Could NOT find CUDA (missing: CUDA_INCLUDE_DIRS CUDA_CUDART_LIBRARY) (found
suitable version "7.0", minimum required is "5.5")
Call Stack (most recent call first):
/usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
/usr/share/cmake-2.8/Modules/FindCUDA.cmake:806 (find_package_handle_standard_args)
CMakeLists.txt:7 (FIND_PACKAGE)
-- Configuring incomplete, errors occurred!
See also "/tmp/luarocks_cutorch-scm-1-6030/cutorch/build/CMakeFiles/CMakeOutput.log".
Error: Build error: Failed building.
Any suggestions on how to properly install cutorch?  It seems like it can find CUDA but just isn't using it because of some kind of directory issue

Did you do this step? ( your actual dir will vary )
Set up the required environment variables:
export PATH=/Developer/NVIDIA/CUDA-7.0/bin:$PATH
export DYLD_LIBRARY_PATH=/Developer/NVIDIA/CUDA-7.0/lib:$DYLD_LIBRARY_PATH

/Users/xxx/torch/install/bin/lua: /Users/wuyuangui/torch/install/share/lua/5.2/trepl/init.lua:384: /Users/xxx/torch/install/share/lua/5.2/trepl/init.lua:384: /Users/xxx/torch/install/share/lua/5.2/trepl/init.lua:384: module 'cutorch' not found:No LuaRocks module found for cutorch
no field package.preload['cutorch']
no file '/Users/xxx/.luarocks/share/lua/5.2/cutorch.lua'
no file '/Users/xxx/.luarocks/share/lua/5.2/cutorch/init.lua'
no file '/Users/xxx/torch/install/share/lua/5.2/cutorch.lua'
no file '/Users/xxx/torch/install/share/lua/5.2/cutorch/init.lua'
no file '/Users/xxx/.luarocks/share/lua/5.1/cutorch.lua'
no file '/Users/xxx/.luarocks/share/lua/5.1/cutorch/init.lua'
no file '/Users/xxx/torch/install/share/lua/5.1/cutorch.lua'
no file '/Users/xxx/torch/install/share/lua/5.1/cutorch/init.lua'
no file './cutorch.lua'
no file '/Users/xxx/torch/install/share/luajit-2.1.0-beta1/cutorch.lua'
no file '/usr/local/share/lua/5.1/cutorch.lua'
no file '/usr/local/share/lua/5.1/cutorch/init.lua'
no file '/Users/xxx/.luarocks/lib/lua/5.2/cutorch.so'
no file '/Users/xxx/torch/install/lib/lua/5.2/cutorch.so'
no file '/Users/xxx/torch/install/lib/cutorch.dylib'
no file '/Users/xxx/.luarocks/lib/lua/5.1/cutorch.so'
no file '/Users/xxx/torch/install/lib/lua/5.1/cutorch.so'
no file './cutorch.so'
no file '/usr/local/lib/lua/5.1/cutorch.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/Users/xxx/torch/install/share/lua/5.2/trepl/init.lua:384: in function 'require'
run_model.lua:5: in main chunk
[C]: in function 'dofile'
...ngui/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: in ?

Yeah I would appreciate mac help.
I'm downloading cuda now from here.
I'm thinking if it still doesn't work, there's nothing stopping me from editing this file: /usr/local/Cellar/cmake/3.3.1/share/cmake/Modules/FindCUDA.cmake and manually setting the variable:
set(CUDA_TOOLKIT_ROOT_DIR "/usr/local/cuda/")

or something like that

Also, following these directions: http://docs.nvidia.com/cuda/cuda-getting-started-guide-for-mac-os-x/#axzz474n2mSdf

Ok, everyone just download from the above installer and follow those directions. That did the trick for me (at least got me past that error)

but I did not got a NVIDIA GPU, the GPU is Intel Iris Graphics 6100 1536 MB , I install thie CUDA toolkit and driver , there is another error  ' CUDA driver version is insufficient for CUDA runtime version.', any idea?

@lihuibng CUDA won't work on an Intel GPU; it only works on NVIDIA GPUs. OpenCL might work on the Intel GPU, but you probably won't have enough memory for neural-style to work. Your best bet is CPU mode.

Yeah, I realized I don't have an Nvidia card either (don't know why I thought I did) and was running in CPU and still got an error about some png library

Hello
Is there a way to automatically select CPU or GPU mode? I have two computers, one with CUDA and one without. I maintained one code repository but I have to modify the code locally.

@vinhqdang yes, I wrote a few wiki pages just for people like you
the wiki You can find the instructions under "basic usage" in the "An Introduction to Neural Style" page

@vinhqdang
Mmmh that's not going to be easy, the most basic thing you could do is check if deviceQuery or nvcc and clinfo actually return anything other than an error.
For now you're better of running everything with OpenCL via -backend clnn after you installed all the dependencies. I haven't tested it but it seems like both CPUs and NVIDIA have OpenCL support. You can check if they have OpenCL support by simply running clinfo after having installed the correct drivers.
Such a command would always use the GPU though because 95% of GPUs support OpenCL, so you'd have to check if a server was running headless without GPU or not. basically
elif OpenCL is supported:

will always return true, so you'd need a way to differentiate between an OpenCL enabled CPU and and OpenCL enabled GPU which is another challenge on it's own.
I'm sorry I can't provide you with a concrete answer but I hope i was able to help you somewhat!
Also I'd recommend opening up a new issue instead of interfering with an old one, as your problem is completely unrelated to this issue.

I think it should be possible to adapt to which modules have been installed as seen by lua, instead of actual HW capabilities, but have not checked that. Something like discussed here http://stackoverflow.com/questions/15429236/how-to-check-if-a-module-exists-in-lua
But on the other hand a fully automatic selection would be limiting... someone with a GPU with limited RAM may want to run neural-style job with CPU sometimes. Actually I didn't see the problem behind the request. There is no need to "modify code", just to use the correct parameters for -gpu and -backend when running neural-style.

@lihuibng have you solved the GPU problem? I got the same error message: CUDA driver version is insufficient for CUDA runtime version. My GPU is Intel Iris too.

th computeProposals.lua $DEEPMASK/pretrained/deepmask -gpu -1
/home/pranav/torch/install/bin/luajit: /home/pranav/torch/install/share/lua/5.1/trepl/init.lua:389: module 'cutorch' not found:No LuaRocks module found for cutorch
no field package.preload['cutorch']
no file '/home/pranav/.luarocks/share/lua/5.1/cutorch.lua'
no file '/home/pranav/.luarocks/share/lua/5.1/cutorch/init.lua'
no file '/home/pranav/torch/install/share/lua/5.1/cutorch.lua'
no file '/home/pranav/torch/install/share/lua/5.1/cutorch/init.lua'
no file './cutorch.lua'
no file '/home/pranav/torch/install/share/luajit-2.1.0-beta1/cutorch.lua'
no file '/usr/local/share/lua/5.1/cutorch.lua'
no file '/usr/local/share/lua/5.1/cutorch/init.lua'
no file '/home/pranav/.luarocks/lib/lua/5.1/cutorch.so'
no file '/home/pranav/torch/install/lib/lua/5.1/cutorch.so'
no file '/home/pranav/torch/install/lib/cutorch.so'
no file './cutorch.so'
no file '/usr/local/lib/lua/5.1/cutorch.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'error'
/home/pranav/torch/install/share/lua/5.1/trepl/init.lua:389: in function 'require'
computeProposals.lua:11: in main chunk
[C]: in function 'dofile'
...anav/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk
[C]: at 0x00405d50
I am still getting the same error pls help in this case .I am not able to run in cpu mode

running with flag -gpu -1 still get the same error:	no field package.preload['cudnn']


Query extension page missing a lot

It seems that this page is not finished.
Has it been forgotten, or just missing deletion? :)
I'm looking for a solution of this type as a baseline for a project, and thought a good place to start were the docs.

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

ID: e9ac9de6-c3e3-fcd0-9a69-fb642076783c
Version Independent ID: 8ff286bd-4a90-dfe2-d9ba-f5e3b48f7f0a
Content: Building a query suggestion extension using SharePoint Framework
Content Source: docs/spfx/extensions/get-started/query-suggestion-tutorial-building.md
Product: sharepoint
Technology: sharepoint-framework
GitHub Login: @VesaJuvonen
Microsoft Alias: vesaj

It does look like someone published the page before it was finished... thanks for flagging this.


Layer groups tracking issue

[ ] drop-in replacement of layerlist with nested layergroups (only organizational utility of layergroups)
[ ] design inheritance/sharing system for attributes of layers that are children to the same group (adding function to layergroups)
[ ] composite reader plugins (return multiple layers associated in groups)

Original issues:

[ ] napari/napari#970
[ ] napari/napari#2229

PR attempts: (😭)

[ ] napari/napari#1502
[ ] napari/napari#2261
[ ] napari/napari#4018
[ ] napari/napari#5132

Layer groupings were brought up in the context of the Layer Controls re-design.
@jni has suggested considering a broader range of ideas for interacting with layer groupings than the traditional tree-view (e.g. Blender's outliner), like graphs and views.

We had an interesting discussion about layer groups in this community meeting [tag: @Czaki @melonora @seankmartin].

This is dated and not the type of scene graph/layer grouping we've been discussing, but might be useful as a reference: https://github.com/mfessenden/SceneGraph

Heads up that I'm planning to look into layer groups work from a user experience and design perspective! I've been reading up on all the issues and PRs linked here, as well as the links they each hold.
As this is the tracking issue I plan to update here sparingly and more on specific issues.


Adopt the actions-rust-lang/setup-rust-toolchain action

Motivations
https://github.com/actions-rust-lang/setup-rust-toolchain
At the moment we use https://github.com/dtolnay/rust-toolchain which has less features. E.g. it misses caching, rust-toolchain file support, you can't pin the commit and there's no problem matcher.
Solution
Do two separate PRs:

[ ] Change the action for release-plz ci. In this case, pin the action to the latest commit sha. We will use renovate to keep it up do date.
[ ] Change the action in the docs. In this case, use actions-rust-lang/setup-rust-toolchain@v1. No need to pin the sha because people would use any approach they prefer. Specify that any way to install the toolchain works, but that this action setup the cache, so they would need to set it up automatically with rust-cache if they use another action.

Hi,can you assign me this issue

Done, thanks!


Facing a bug in byte array Indexing

Connections are fluctuating a lot and they seem to be very unstable.

Issue resolved by opening and closing the connection each time.