Godot 4: Visual Script shows variable type icon incorrectly in the members' window

Godot version
v4.0.alpha2.official [79077e6c1]
System information
Windows 11, Vulkan Clustered, Intel UHD Graphics 620 v<IP_ADDRESS>0
Issue description
Godot 4's Visual Script shows the variable type icon in the members' window incorrectly, from type StringName to the end of the available list, as shown in the screenshot below:

This issue makes a workflow in Visual Script to be very confusing, as the variable type in the members' window, the variable type as shown in the canvas, and the Select Property window, are possible to show 3 different types even from the same variable, as shown in the screenshot below:

I expect the engine to show the variable type correctly in Visual Script.
Steps to reproduce

Create a variable in Visual Script.
Change its type to StringName or other types from StringName onward to the end of the type list. You will see the variable type icon in the members' window is shown incorrectly and some types will not show their icon at all.

Minimal reproduction project
No response

That typically means that an enum for variant types in VisualScript is it of sync with the core implementation.

That typically means that an enum for variant types in VisualScript is it of sync with the core implementation.

Thanks for the tip, I have raised pull request with the fix.


Adding known issue for 1.2 with NSX-T PI Cert gen when using PKS tile

Important known issue that needs to be pushed out as quickly as possible. Note that when this PR https://github.com/pivotal-cf/docs-pks/pull/379 merges the link to the workaround needs to change to match the new file name.
Current workaround is found here: https://docs.pivotal.io/runtimes/pks/1-2/generate-certificates.html#certificates-super-user
When above referenced PR merges, workaround will be at generate-nsx-pi-cert.

Thanks, @lparis


Extract files one at a time from all-cabal-hashes

Motivation for this change
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Fits CONTRIBUTING.md.

@shlevy Didn't know if I should update all-cabal-hashes along with this, so I left it at the version it was at in release-17.03.

Hmmm a PR to release-17.03? 17.03 hasn't been supported for 4 months now.

Just acting on this request: https://github.com/NixOS/nixpkgs/pull/31333#issuecomment-351451030

@grahamc Is it a problem to merge things back so long as users know they have to do the work themselves to keep it secure and up-to-date?

Hmm not sure. Has any attempt been made to ensure the requester knows 17.03
is no longer supported?
On Sun, Dec 17, 2017 at 8:45 PM Shea Levy<EMAIL_ADDRESS>wrote:

@grahamc https://github.com/grahamc Is it a problem to merge things
back so long as users know they have to do the work themselves to keep it
secure and up-to-date?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/NixOS/nixpkgs/pull/32772#issuecomment-352305606, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAErrH8Pug4oFFUSstN06AxGA3tPm_8vks5tBcPXgaJpZM4REw14
.

@grahamc I told them when I worked there 😉

Will this be merged?

@mightybyte Do you need this? Could you share a bit on why you'd rather not switch to 17.09?

@ElvishJerricco Is Takt aware that 17.03 is unmaintained and may miss critical security updates if they don't support them themselves? If so then I think we can merge your changes.


Show people how to stream the build logs.

It took a second to figure out how to stream the logs on our builds, finally we stepped into our context and inspected the methods to find out that builds accepted a block and passed the returned data so we would like that noted so other people can quickly find it without trouble.

I agree, would have saved some time if this were in the README.

Thanks guys!


feat: rewrite project

⚡sloppy rewrite initial commit
✓ format and remove useless code

This PR also adds support for a couple new parameters:

[x] titleTextAnchor (default "middle")
[x] subtitleTextAnchor (default ("middle")

This means you can set these to "left" and then use absolute coordinates for titleX, subtitleY, etc. When it is set to middle (the default value if none is provided), everything is justified in the center.
This is a preview of an image made with the latest code:


Problem with loading the forum since I set italian interface

Challenge Name
Issue Description
I can't log in anymore with my account on free code camp forum after I selected Italian Interface in my preferences.
If I try to load the forum in an anonymous google chrome session it works.
Browser Information

Any device and any browser with which I try to log in.

Browser Name, Version:
Operating System:
Mobile, Desktop, or Tablet:

Your Code

Screenshot

@Francesdenaro thank you for reporting that issue.
I managed to reproduce this and thus cannot change back to english 😂

Hope I'll return on the forum asap, I miss it xD
2017-05-29 17:07 GMT+02:00 Lauri<EMAIL_ADDRESS>
@Francesdenaro https://github.com/francesdenaro thank you for reporting
that issue.
I managed to reproduce this and thus cannot change back to english 😂
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/freeCodeCamp/freeCodeCamp/issues/15114#issuecomment-304682878,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AY2nICGa1RXVlGqy8jAHoFGe2qPttqwbks5r-t9GgaJpZM4NpVVU
.

Issue moved to freeCodeCamp/discourse #38 via ZenHub


ValueError: The additional config (combine_params) of paddle.jit.save is not supported. Failed in export!

General Question

Please using latest paddlepaddle.

I have pulled the latest docker image "docker pull paddlecloud/paddlespeech:develop-gpu-cuda10.2-cudnn7-latest".

Please install paddlepaddle develop version:


Healthcheck for non web apps

If I've understood correctly the healthcheck expects a http response from the monitored app. However not all apps are webapps. It would be good to be able to monitor other types of apps as well.
Suggestions:
Use exit code of COMMAND to determine healthiness.
To monitor apps running in docker container, expose container ID to COMMAND healthcheck same way as $HOST and $PORT1. This would enable to build custom healthchecks like "docker exec $CONTAINERID health.sh".

That is exactly what the COMMAND healthcheck does. Ungortunately Marathon diesn't execute the COMMAND healthchecks (and doesn't know the container id) and Mesos doesn't seem to pass the container id to the healthcheck env either. Please file a ticket in the Mesos bug tracker.


Add Mamatha-kunduri's file Create 0000-01-02-Mamatha-kunduri.md

open a pull request

two files are merged


[WIP] Web Authentication MFA Provider

Description:
Web Authentication is a fairly recent W3C standard backed by major players like Google, Paypal, Mozilla, Microsoft, and Qualcomm. It aims at defining a web-browser API for the creation and use of strong authentication credentials based on public key cryptography.
Supported browsers: Chrome Desktop, Firefox Desktop, Chrome Android, Microsoft Edge.
Tested browsers: Chrome Mac, Firefox Mac, Chrome Android.
Tested platforms: Security Key by Yubico, MacBook Pro fingerprint sensor, OnePlus 3T (Android 8) fingerprint sensor.
Also added ability to add multiple keys for MFA providers.
Pull request in frontend: https://github.com/home-assistant/home-assistant-polymer/pull/2373
Pull request in home-assistant.io with documentation (if applicable): home-assistant/home-assistant.io#<home-assistant.io PR number goes here> (TODO)
Now I am waiting for update Fido2 library in PyPI.
Please watch this PR, I would like to know your opinion.
Tests and documentation will be written later.
Screenshots:

Example entry for configuration.yaml (if applicable):
homeassistant:
  auth_mfa_modules:
    - type: webauthn

Checklist:

[x] The code change is tested and works locally.
[ ] Local tests pass with tox. Your PR cannot be merged unless tests pass
[x] There is no commented out code in this PR.

If user exposed functionality or configuration variables are added/changed:

[ ] Documentation added/updated in home-assistant.io

If the code communicates with devices, web services, or third-party tools:

[x] New dependencies have been added to the REQUIREMENTS variable (example).
[x] New dependencies are only imported inside functions that use them (example).
[x] New or updated dependencies have been added to requirements_all.txt by running script/gen_requirements_all.py.
[ ] New files were added to .coveragerc.

I have not looked at the implementation, but the idea is great !

@Anonym-tsk can you split this up as per @awarecan's suggestions?

This PR has gone stale.  Please update the code and open a new PR if you wish to continue with this contribution.


GraphQLError Undefined location on exception

Describe the bug
On a query with an exception, locations is set to null on 3.0.0-beta.3 this is because raw['locations'] gives Map of type Map<String, dynamic> while the code is checking for Map<String, int>
https://github.com/zino-app/graphql-flutter/blob/d17b57b52d3cb985a8c8d7025a242bbcddecabfb/packages/graphql/lib/src/exceptions/graphql_error.dart#L33
To Reproduce
Steps to reproduce the behavior:

Create a query that will return you errors which have locations
Check the query result's exception
e.g. result.exception.graphqlErrors[0].locations, result is an instance of 'QueryResult'

This is outdated / likely solved by using gql_links in 4.0.0-beta.1 (#648)


The issue of enjoy_husky_navigate after it is trained

Hello everyone,
I study on navigate examples of Gibson. I am trying to reach target position and something is missing. There is a wrong with enjoy_husky_navigate_ppo1.py while I am trying to apply my trained model. The error is shown below:
Error in atexit._run_exitfuncs: Traceback (most recent call last):   File "/home/deepsrv/anaconda3/envs/py35/lib/python3.5/site-packages/gym/utils/closer.py", line 67, in close     closeable.close()   File "/home/deepsrv/PycharmProjects/Gibson_Env/gibson/envs/env_modalities.py", line 490, in _close     self.r_camera_rgb._close() AttributeError: 'NoneType' object has no attribute '_close'
Also I met with this error at fuse_policy function. My model consists 3000 timesteps per actorbatch. How can handle with this error?
Thanks in advance.

I fixed the problem which is above. It is occurred due to 'out of memory' for CUDA. I closed some programs and it runs properly.
Unfortunately, I have a different problem with running model on enjoy_husky_navigate. I met with the error this time:
killing <subprocess.Popen object at 0x7fe1439ed8d0>    File "/home/deepsrv/PycharmProjects/Gibson_Env/examples/train/enjoy_husky_navigate_ppo1.py", line 101, in <module>    File "/home/deepsrv/PycharmProjects/Gibson_Env/examples/train/enjoy_husky_navigate_ppo1.py", line 88, in main    File "/home/deepsrv/PycharmProjects/Gibson_Env/examples/train/enjoy_husky_navigate_ppo1.py", line 73, in train    File "/home/deepsrv/PycharmProjects/Gibson_Env/gibson/utils/pposgd_simple.py", line 378, in enjoy    File "/home/deepsrv/anaconda3/envs/py35/lib/python3.5/site-packages/tensorflow/python/training/saver.py", line 1560, in restore    File "/home/deepsrv/anaconda3/envs/py35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 895, in run    File "/home/deepsrv/anaconda3/envs/py35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1124, in _run    File "/home/deepsrv/anaconda3/envs/py35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1321, in _do_run    File "/home/deepsrv/anaconda3/envs/py35/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1340, in _do_call  NotFoundError: Key pi/polfc1/kernel not found in checkpoint 	 [[Node: save/RestoreV2_19 = RestoreV2[dtypes=[DT_FLOAT], _device="/job:localhost/replica:0/task:0/cpu:0"](_arg_save/Const_0_0, save/RestoreV2_19/tensor_names, save/RestoreV2_19/shape_and_slices)]]
What is wrong this time?

I realized that training mode is different. So, it causes this error. But, I want to ask another thing.
How can I continue to training process with trained model file?
Is the code this one:
if reload name:    saver = tf.train.Saver()    saver.restore(tf.get_default_session(), reload name)
Thanks in advance.


Feature Request: Pull based on architecture / Variable base image.

Basically as you're likely aware, there's not much out there by way of docker arm (let alone power8 or arm64!) images. This situation could even be said to suck. But we in the land of Linux containers we see suck, like hypervisors, and set keyboards to kill.
Anyway.
Why not automatically mutate base images to follow the architecture. Here's the most common example:
Billy is on Linux/AMD64. He has power8 servers and ARM servers and a whole constellation of orange pi based iot stuff to deploy to. But Rkt 1.25 was released this week and it makes smart guesses that improve Billy's workflow and reduce the aggregate computational demand for dollars while at the same time being simply awesome. Most builds vary very little between architectures. Often they are exactly the same save for the base image (excepting image builds that use wget to grab a binary, but I digress...) Instead of the current state of affairs, rkt could use qemu and standard rootfs images on x86-64 for any qemu supported architecture. And last time I checked, that was all of them. Should work on Mac and win, too.
So like:
When billy tells rkt to assemble an image, it automatically attempts to do it in several other architectures. If/when they build they are uploaded to the registry as well.
When Billy wants rkt to run an image, unless a different architecture is selected by flag, rkt automatically chooses the native ISA.
So that's what I am thinking. Also containers and IoT will certainly be a big deal... And the winner for container formats is far from clear because nobody supports arm well even if they claim to!

RE: https://coreos.zendesk.com/agent/tickets/11927
User<EMAIL_ADDRESS>

This is not trivially feasible with rkt at the moment. The reasons are rooted quite deep into architectural design, thus I'm marking as won't fix as it requires a complete overhaul of the stage0/stage1 interface, which we are not doing anytime soon.
To be a bit more explicit, these are the design bits that need to be changed to run non-matching stage0/stage1 architectures:

stage0 assumes that it can call stage1 entrypoints. If the architecture doesn't match, a cross-arch wrapping layer must be introduced somehow for entrypoints that need to be run on host (eg. gc will need to be wrapped into a qemu-user-$arch run) or a better separation must be drawn between what can and cannot be run on the host
stage1 is self-contained and carries all binaries needed for setup and further execution. They all share the same ABI/ISA, which is signaled by the arch label. A new field must be introduced to signal which stage0 architecture is supported
this would be a new stage1 flavor, different from the KVM one as it requires full in-software virtualization
there would be a combinatorial explosion of stage1 images, one for each stage0+stage1 combination.  Neither of those scenarios sound nice with current makefile-based stage1 build infrastructure

This is of course technically feasible with enough commitment and sounds like a fun experiment, so I encourage anyone to have a try at it. However it sounds like a quite lot of maintenance effort which we can't unfortunately commit to at the moment.


fix: make geospatial services robust to 404 thrown by the service

Related Issues/PRs

#xxx
What changes are proposed in this pull request?
Briefly describe the changes included in this Pull Request.
How is this patch tested?

[ ] I have written tests (not required for typo or doc fix) and confirmed the proposed feature/bug-fix/change works.

Does this PR change any dependencies?

[ ] No. You can skip this section.
[ ] Yes. Make sure the dependencies are resolved correctly, and list changes here.

Does this PR add a new feature? If so, have you added samples on website?

[ ] No. You can skip this section.
[ ] Yes. Make sure you have added samples following below steps.

Find the corresponding markdown file for your new feature in website/docs/documentation folder.
Make sure you choose the correct class estimators/transformers and namespace.
Follow the pattern in markdown file and add another section for your new API, including pyspark, scala (and .NET potentially) samples.
Make sure the DocTable points to correct API link.
Navigate to website folder, and run yarn run start to make sure the website renders correctly.
Don't forget to add <!--pytest-codeblocks:cont--> before each python code blocks to enable auto-tests for python samples.
Make sure the WebsiteSamplesTests job pass in the pipeline.

/azp run

Codecov Report

Merging #2007 (6a6e5fd) into master (4205bf5) will decrease coverage by 34.01%.
The diff coverage is 100.00%.


Update uaa release to be zdd with v73.4.0

do not merge
What
We want to release a version of UAA which uses the
DelegatingPasswordEncoder which is zero downtime, once UAA understands
BOTH password hashes with the "{bcrypt}" prefix and without, then we can
release a version which runs migrations to ensure that all password
hashes start with '{bcrypt}'
How to review
Be @richardTowers

Code review wise, this is https://github.com/alphagov/paas-uaa/compare/a8f574db5a48ecb6db80b344f0b81542238c4a7d...689ab59170e0b09c8873b578cfa99ca59ca2e2fe

This has been down my pipeline and went green


Chapter headings run off the page for two digit chapter numbers

The H3 chapter headings currently seem to run off the page of the generated PDF when the chapter number is greater than 9.
This could be an issue with the chapter style, though I don't recall ever seeing this particular problem before about commit debb7f6fb9

I was looking at the memoir style (memoir.dtx). Looks like I can probably override the style there.
http://ftp.math.purdue.edu/mirrors/ctan.org/macros/latex/contrib/memoir/memoir.dtx


Bug in MarkDown to JSON conversion

Rasa NLU version (e.g. 0.10.5):
Used backend / pipeline (spacy_sklearn):
Operating system (Arch Linux):
Issue: I was using a .md file as training data. However, I got the following error:-
INFO:rasa_nlu.converters:Training data format at data/training_data.md is md
Traceback (most recent call last):
  File "train_nlu.py", line 42, in <module>
    nlu_model_directory = train_nlu()
  File "train_nlu.py", line 25, in train_nlu
    training_data = load_data('data/training_data.md')
  File "/home/parth/rasa_env/lib/python3.6/site-packages/rasa_nlu/converters.py", line 354, in load_data
    return load_markdown_data(files[0])
  File "/home/parth/rasa_env/lib/python3.6/site-packages/rasa_nlu/converters.py", line 167, in load_markdown_data
    data = MarkdownToJson(filename)
  File "/home/parth/rasa_env/lib/python3.6/site-packages/rasa_nlu/utils/md_to_json.py", line 32, in __init__
    self.load()
  File "/home/parth/rasa_env/lib/python3.6/site-packages/rasa_nlu/utils/md_to_json.py", line 51, in load
    self._parse_intent_or_synonym_example(row)
  File "/home/parth/rasa_env/lib/python3.6/site-packages/rasa_nlu/utils/md_to_json.py", line 67, in _parse_intent_or_synonym_example
    self.entity_synonyms[-1]['synonyms'].append(example_line)
IndexError: list index out of range

After, some experimentation I realized that this is because of the comments in my MarkDown file. This error didn't occur when I removed the comments. Inspecting the source code confirmed my belief. The conversion script doesn't handle comments.
I've figured out and fixed the bug ( there needs to be a third state, e.g.DEFAULT to handle comments in the md_to_json.py file in the rasa_nlu/utils/ folder ). I would be more than happy to create a pull request.  Though I'm new to development so my fix might be sub-optimal.

@parthsharma1996 thanks for that issue report. I'd be happy to take a look at your PR - don't worry about the quality, I'll do a review of the change and if there is something that needs changing I'll let you know. It is a great way to improve your coding skills 🙂

when given an input "end" or "stop" it gives the error
__________________ Stack trace: BEGIN __________________
2018-05-07 14:13:02+0530 [-] "x.x.x.x" - - [07/May/2018:08:43:01 +0000] "POST /parse?q=end HTTP/1.1" 500 40 "-" "PostmanRuntime/7.1.1"
ERROR:main:list index out of range
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/rasa_nlu/server.py", line 155, in parse_get
else threads.deferToThread(self.data_router.parse, data))
File "<USER_HOME_FOLDER>/.local/lib/python3.5/site-packages/twisted/python/threadpool.py", line 250, in inContext
result = inContext.theWork()
File "<USER_HOME_FOLDER>/.local/lib/python3.5/site-packages/twisted/python/threadpool.py", line 266, in
inContext.theWork = lambda: context.call(ctx, func, *args, **kw)
File "<USER_HOME_FOLDER>/.local/lib/python3.5/site-packages/twisted/python/context.py", line 122, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "<USER_HOME_FOLDER>/.local/lib/python3.5/site-packages/twisted/python/context.py", line 85, in callWithContext
return func(*args,**kw)
File "/usr/local/lib/python3.5/dist-packages/rasa_nlu/data_router.py", line 201, in parse
model)
File "/usr/local/lib/python3.5/dist-packages/rasa_nlu/project.py", line 116, in parse
response = self._models[model_name].parse(text, time)
File "/usr/local/lib/python3.5/dist-packages/rasa_nlu/model.py", line 291, in parse
component.process(message, **self.context)
File "/usr/local/lib/python3.5/dist-packages/rasa_nlu/extractors/crf_entity_extractor.py", line 126, in process
extracted = self.add_extractor_name(self.extract_entities(message))
File "/usr/local/lib/python3.5/dist-packages/rasa_nlu/extractors/crf_entity_extractor.py", line 146, in extract_entities
return self._from_crf_to_json(message, ents)
File "/usr/local/lib/python3.5/dist-packages/rasa_nlu/extractors/crf_entity_extractor.py", line 199, in _from_crf_to_json
ent_word_idx, entities)
File "/usr/local/lib/python3.5/dist-packages/rasa_nlu/extractors/crf_entity_extractor.py", line 151, in most_likely_entity
entity_probs = entities[idx]
IndexError: list index out of range
__________________ Stack trace: END __________________
Additional info:
OS: Ubuntu x86_x64

This is a different issue. Please create a new issue appending the markdown file that lead to the error.


[test] Remove wiremock test server

Fixes https://github.com/Azure/autorest.csharp/issues/1010

Draft as it compiles but I did not run all tests locally. I also need to double check the diff since most of it was done via vim macros.


[Usage] Token indices sequence length is longer than the specified maximum sequence length for this model (3278 > 2048). Running this sequence through the model will result in indexing errors

Describe the issue
Issue:
token length too long. Will this affect model performance?
Command:
bash scripts/v1_5/finetune_lora.sh

Log:
Token indices sequence length is longer than the specified maximum sequence length for this model (3278 > 2048). Running this sequence through the model will result in indexing errors

Screenshots:

@JulioZhao97 Do you have solve this problem?

any update

also got this. This didn't stop my training. So it's kind of warning probably. But we actually truncated inputs before training, which is weird why do we still receive this?


is_some and is_none alternatives to is_null and is_not_null

When dealing with diesel code, a user might expect is_some() to work, considering the database models are mapped to Option<T>. Currently, the method is_not_null() has to be used.
Under water the method is_some() would map to is_not_null(), and is_none() would map to is_null()

The diesel sql dsl is build as near as possible to the corrsponding sql, so naming this functions is_not_null and is_null makes sense. I do not see any reason why we should change that to more rustic names.


itemSelectionHandler not call when click return key

I have set print(item.title) when itemSelectionHandler get a call. but It's not print anything.
It work well  if user click on suggestion tableview.
How can I fix it?.

@oniikal3, does it have to do with https://github.com/apasccon/SearchTextField/issues/21?. Do you mind closing also this one if it's the case?. Thanks!.


options.forceFetch seems to break SSR

Steps to Reproduce
Describe how to reproduce this issue.

Create a component, decorate with graphql from react-apollo.  Write a simple query, and in the options of the query set forceFetch to true.  Render isomorphically using getDataFromTree from react-apollo/server combined with  ReactDOMServer.renderToString against root component, OR renderToStringWithData from react-apollo/server.  Log out the initial state server side and see the hydrated state tree from the component's query.  Log out the markup generated from the render server side and see lack of proper rendering.  Log out props in the component on the server and see that the ...fields entries are missing from props.data.

renderer.js
export default async function render (req, res, next) {
  try {
    const { renderContext, routes } = routesFactory();

    const { redirectLocation, renderProps } = await matchAsync({ routes: routes, location: req.originalUrl });

    if (redirectLocation) {
      return res.redirect(redirectLocation.pathname + redirectLocation.search);
    }

    const client = new ApolloClient({
      ssrMode: true,
      networkInterface: createNetworkInterface({
        uri: `${API_FQDN}/graphql`,
        credentials: 'same-origin',
        headers: req.headers
      })
    });

    const root = (
      <ApolloProvider client={client}>
        <RouterContext {...renderProps} />
      </ApolloProvider>
    );

    const initialState = (await getDataFromTree(root)).store.getState();

    const content = ReactDOMServer.renderToString(root);

    //const { markup: content, initialState } = await renderToStringWithData(root);

    //console.log(content);

    //console.log(JSON.stringify(initialState, null, 2));

    const html =

    const markup = `<!doctype html>\n${ReactDOMServer.renderToStaticMarkup(html)}`;

    setTimeout(() => res.status(200).send(markup), 2500);
  } catch (e) {
    console.trace(e);
    next(e);
  }
}

usersTable.js
import React from 'react';
import withStyles from 'isomorph-style-loader/lib/withStyles';
import { graphql } from 'react-apollo';
import PureComponent from 'components/common/pure';
import { propTypes, defaultProps } from 'lib/decorators/generic';
import gql from 'graphql-tag';

import UserRow from 'components/userRow';

import style from 'components/usersTable/index.css';

@graphql(gql`
  query Users ($query: UsersQuery!){
    users: getUsersByID (query: $query) {
      ...UserRow
    }
  }
`, {
  options: ({ location: { query: { userIds = '580b14d41e276e5c43570430' } } } ) => ({
    fragments: UserRow.fragments.entry.fragments(),
    variables: {
      query: {
        _ids: userIds.replace(/\s/g, '').split(',')
      }
    }
  }),
  props: (props) => {
    console.log(props.data);
    const { loading, users = []} = props.data;
    return { loading, users };
  }
})
@propTypes((PropTypes) => ({
  loading: React.PropTypes.bool.isRequired,
  users: PropTypes.arrayOf(UserRow.fragments.entry.propType)
}))
@withStyles(style)
export default class UsersTable extends PureComponent {
  constructor (props, context) {
    super(props, context);
  }
  render () {
    const { users, loading } = this.props;
    return (

        {loading ? 'Loading' : users.map((user, i) => <UserRow key={i} user={user}/>)}

    );
  }
}

userRow.js
import React from 'react';
import withStyles from 'isomorph-style-loader/lib/withStyles';
import PureComponent from 'components/common/pure';
import { propTypes } from 'lib/decorators/generic';
import Fragment from 'graphql-fragments';
import gql from 'graphql-tag';

import style from 'components/userRow/index.css';

const fragments = {
  entry: new Fragment(gql`
    fragment UserRow on User {
      name,
      email,
      time_created
    }
  `)
};
@propTypes((PropTypes) => ({
  user: fragments.entry.propType
}))
@withStyles(style)
export default class UserRow extends PureComponent {
  static fragments = fragments;
  constructor (props, context) {
    super(props, context);
  }
  render () {
    const { name, email } = this.props.user;
    return (

        {name} - {email}

    );
  }
}

Render payload from server

      <meta charset="utf-8"/>
      <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
      <meta http-equiv="x-ua-compatible" content="ie=edge"/>
      <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
      <title>Demo App</title>
      <meta name="description" content="A demo application"/>
      <link rel="icon" type="image/png"/>
      <meta name="og:title" property="og:title" content="Demo App"/>
      <meta name="og:description" property="og:description" content="A demo application"/>
      <meta name="og:type" property="og:type" content="website"/>
      <meta name="og:locale" property="og:locale" content="en_US"/>
      <meta name="og:site_name" property="og:site_name" content="Demo App"/>
      <meta name="twitter:title" property="twitter:title" content="Demo App"/>
      <meta name="twitter:description" property="twitter:description" content="A demo application"/>

Loading

Buggy Behavior
Describe the thing that happens that is the issue.
Server side, if options.forceFetch is true, props.data does not contain ...fields from docs.  Thus, the component does not render properly.
Server side, if options.forceFetch is not true, props.data contains ...fields from docs..  Thus, the component does render correctly.
Expected Behavior
Server side, if options.forceFetch is true, props.data should contain ...fields and data should be reused intelligently from the fetch performed by renderToStringWithData OR getDataFromTree from react-apollo/server.  As an aside, perhaps options.forceFetch should be a no-op server-side?
Describe what you think should actually happen.
Version
Primary influencers

<EMAIL_ADDRESS><EMAIL_ADDRESS>
Possible influencers

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>

from here (WIP)

This is surprising. Are you saying it's not sending the fragment?
PS I think you should call the fragment UserRow.fragments.user ;)

Can you log the query document that is actually sent?

It's sending the fragment.  The query actually happens.  As you can see in the server response, the store is fully hydrated on window.__INITIAL_STATE__, which apollo slurps up after the client JS loads.  The problem appears to be that the server isn't connecting the fetched data to the component before rendering it on the server.  Removing options.forceFetch results in the expected behavior.
"PS I think you should call the fragment UserRow.fragments.user ;)" - Sorry what do you mean here?  Naming convention?  Still new to Apollo.  I saw that the "entry" fragments were named "entry" on the React GitHunt example on Github.

Here is window.__INITIAL_STATE__ pretty printed from the above server response HTML:
{
  "apollo": {
    "queries": {
      "1": {
        "queryString": "query Users($query: UsersQuery!) {\n  users: getUsersByID(query: $query) {\n    ...UserRow\n  }\n}\n\nfragment UserRow on User {\n  name\n  email\n  time_created\n}\n",
        "query": {
          "id": "ROOT_QUERY",
          "typeName": "Query",
          "selectionSet": {
            "kind": "SelectionSet",
            "selections": [
              {
                "kind": "Field",
                "alias": {
                  "kind": "Name",
                  "value": "users"
                },
                "name": {
                  "kind": "Name",
                  "value": "getUsersByID"
                },
                "arguments": [
                  {
                    "kind": "Argument",
                    "name": {
                      "kind": "Name",
                      "value": "query"
                    },
                    "value": {
                      "kind": "Variable",
                      "name": {
                        "kind": "Name",
                        "value": "query"
                      }
                    }
                  }
                ],
                "directives": [

                ],
                "selectionSet": {
                  "kind": "SelectionSet",
                  "selections": [
                    {
                      "kind": "FragmentSpread",
                      "name": {
                        "kind": "Name",
                        "value": "UserRow"
                      },
                      "directives": [

                      ]
                    }
                  ]
                }
              }
            ]
          }
        },
        "minimizedQueryString": "query Users($query: UsersQuery!) {\n  users: getUsersByID(query: $query) {\n    ...UserRow\n  }\n}\n\nfragment UserRow on User {\n  name\n  email\n  time_created\n}\n",
        "minimizedQuery": {
          "id": "ROOT_QUERY",
          "typeName": "Query",
          "selectionSet": {
            "kind": "SelectionSet",
            "selections": [
              {
                "kind": "Field",
                "alias": {
                  "kind": "Name",
                  "value": "users"
                },
                "name": {
                  "kind": "Name",
                  "value": "getUsersByID"
                },
                "arguments": [
                  {
                    "kind": "Argument",
                    "name": {
                      "kind": "Name",
                      "value": "query"
                    },
                    "value": {
                      "kind": "Variable",
                      "name": {
                        "kind": "Name",
                        "value": "query"
                      }
                    }
                  }
                ],
                "directives": [

                ],
                "selectionSet": {
                  "kind": "SelectionSet",
                  "selections": [
                    {
                      "kind": "FragmentSpread",
                      "name": {
                        "kind": "Name",
                        "value": "UserRow"
                      },
                      "directives": [

                      ]
                    }
                  ]
                }
              }
            ]
          }
        },
        "variables": {
          "query": {
            "_ids": [
              "580b14d41e276e5c43570430"
            ]
          }
        },
        "previousVariables": null,
        "loading": false,
        "stopped": false,
        "networkError": null,
        "graphQLErrors": null,
        "forceFetch": false,
        "returnPartialData": false,
        "lastRequestId": 2,
        "fragmentMap": {
          "UserRow": {
            "kind": "FragmentDefinition",
            "name": {
              "kind": "Name",
              "value": "UserRow"
            },
            "typeCondition": {
              "kind": "NamedType",
              "name": {
                "kind": "Name",
                "value": "User"
              }
            },
            "directives": [

            ],
            "selectionSet": {
              "kind": "SelectionSet",
              "selections": [
                {
                  "kind": "Field",
                  "alias": null,
                  "name": {
                    "kind": "Name",
                    "value": "name"
                  },
                  "arguments": [

                  ],
                  "directives": [

                  ],
                  "selectionSet": null
                },
                {
                  "kind": "Field",
                  "alias": null,
                  "name": {
                    "kind": "Name",
                    "value": "email"
                  },
                  "arguments": [

                  ],
                  "directives": [

                  ],
                  "selectionSet": null
                },
                {
                  "kind": "Field",
                  "alias": null,
                  "name": {
                    "kind": "Name",
                    "value": "time_created"
                  },
                  "arguments": [

                  ],
                  "directives": [

                  ],
                  "selectionSet": null
                }
              ]
            }
          }
        }
      }
    },
    "mutations": {

    },
    "data": {
      "ROOT_QUERY.getUsersByID({\"query\":{\"_ids\":[\"580b14d41e276e5c43570430\"]}}).0": {
        "name": "Andrew",
        "email"<EMAIL_ADDRESS>        "time_created": "2016-10-22T07:27:16.855Z"
      },
      "ROOT_QUERY": {
        "getUsersByID({\"query\":{\"_ids\":[\"580b14d41e276e5c43570430\"]}})": [
          "ROOT_QUERY.getUsersByID({\"query\":{\"_ids\":[\"580b14d41e276e5c43570430\"]}}).0"
        ]
      }
    },
    "optimistic": [

    ]
  }
}

^ So you can see that the data surely loaded on the server.  It appears that the problem is the connection of the store to the component server-side when forceFetch is true, per my reproduction steps above

I confirm, that I'm able to reproduce this too. Reproduction steps:
git clone -b force-fetch-ssr-issue git@github.com:sysgears/apollo-fullstack-starter-kit.git
npm i
npm run migrate
npm run seed
npm start

Point your browser to: http://localhost:3000
Notice that it says 'Loading...'
Change line in src/ui/containers/counter.jsx:109 to
forceFetch: false
In the browser notice that the query is loaded now and page shows current counter value.

Fixed in next build

Should we close this before a PR is linked?  That might be helpful for other ppl :)

@thebigredgeek #293 is linked?


loading selected item in order as it was saved

This is the prefect widget for me, easy to select and sort. but if it allow user to drag and drop, and dont make sense when load back from database not in order. Please tell me how to do so. Thank you so much for your hard working.

I have this problem too, and I found “sortMethod” option can not work. Then I write a resort function which invoked after this multiselect plugin init, it still not work. Like this :
   initMultiSelect();     sortSelectedOption();
Is there some solution?

Might be a bit late but this was giving me a headache also.
$(this).multiselect( { sortable : true , availableListPosition : "left" , splitRatio: 0.5 , sortMethod: null});
make sure the sort method is null and will work fine. Will take the order you have in the <select . You just need to put the selected options in order you saved.
Cheers

Hi
I added something like this:
	  $(".multiselect").multiselect({  sortable : true , sortMethod: null });
But its steel sorting in the way that was. Anyone found solution for this?
Later I have: (maybe I could use usort?)
<?PHP echo adminform::field("Options","productTypeOptions",array("type"=>"select","data"=>"db","db_data"=>array("sql"=>"select * from product_options","_table"=>"product_options","value"=>"id","text"=>"name"),"multiple"=>"multiple" ),$productOptionIDs)?>

I just found this widget and it's exactly what I need. I use it to allow the user to select items to display in a table, and drag and drop works great to allow them to also define the order of the selected items.
The problem I have is that, when I reload the widget with values stored in the database, the selected items revert to alphabetical order, rather than the order in which I mark them as selected. That is, I load the widget initially with all of the possible selections, then, when the page is finished loading, I walk through a separate array of stored selected items and add the selected attribute to them. It works - they do, in fact, appear correctly in the selected options list, but not in the order I have added the selected attribute.
Here's the relevant code to define the widget:
$( "#multiselect_simple" ).multiselect(
   {
     sortMethod: null,
     sortable: true,
     availableListPosition: 'left',
     splitRatio: 0.45,
   }
 );

And here is how I initialize the selected items:
  $(document).ready(function() {
    $( "#multiselect_simple option[value='Item4']").prop("selected",true)
    $( "#multiselect_simple option[value='Item5']").prop("selected",true)
    $( "#multiselect_simple option[value='Item1']").prop("selected",true)
    $( "#multiselect_simple option[value='Item2']").prop("selected",true)
    $( "#multiselect_simple option[value='Item3']").prop("selected",true)
  ...

The widget display them alphabetically in the selected items section. What am I doing wrong?
Thanks!

Hi guys,
I found out a way to load saved results in the right order.
It's not elegant but it works and I think it's the only way with this library to "do" it.
The way I found is about  setting with jquery the selected option, detach them and the append them with the order you want.
Example:
you have the saved  values  95, 98, 92 in this order.
val95 = jQuery('#jform_select option[value='95']').prop('selected', true).detach();
val98 = jQuery('#jform_select option[value='98']').prop('selected', true).detach();
val92 = jQuery('#jform_select option[value='92']').prop('selected', true).detach();
jQuery('#jform_select').append(val95);
jQuery('#jform_select').append(val98);
jQuery('#jform_select').append(val92);


Fix #175 and add type annotation to arg. of get_module_info

Add module name to error about missing docstring.
Add type annotation to function common.get_module_info signature
Adapt tests to the new error message.

In the test I check if the error message starts with the right leading sentence, then contains the filename. That was to keep the test code looking simple.
Let me know if you want a full equality check though, which may be "better".

Ok, I did the full equality checking, I think it's better and does not complicate the test much.

Forgot to say: I checked this is the only place where that error message occurs.

Thanks! I actually prefer tests checking error messages to be more loose: the error message isn't part of the API, and if I reword the error message, that's not a problem, so I don't want the tests to fail.
In this case, there's a specific NoDocstringError exception class. So I'd check for that, rather than the more generic ValueError, and then check that the message includes the filename.

Thanks :-)


在多线程下，老版本 有 锁竞争 导致CPU高，新版本去掉了锁，但是会抛异常

在多线程下，老版本 有 锁竞争 导致CPU高，新版本去掉了锁，但是会抛异常

This is not a Chinese forum. You are not likely to get help if you post in Chinese.
Also, please post a minimal test case to show your problem. Without a test case, it is also difficult for others to understand your problem.

Closing as bulk cleaning. Please re-open if issue persists


VMFB rodata needs to be partitioned in the flatbuffers to stay under the uoffset_t limit

We currently embed rodata in the flatbuffer; unfortunately flatbuffers never grew 64-bit support and this limits us to ~2GB files. If removing the rodata, though, we'll never get close to 2GB (it'd have to be 2GB of bytecode!) so the easy fix that prevents the need to invent a new file format is to hoist the rodata contents into a concatenated slab following the flatbuffer.
RodataSegmentDef would change to contain a byte offset from the end of the flatbuffer data (+ alignment). We'd still be able to range check that the final address is within bounds of the total available data.
The current BytecodeModuleTarget impl would change to write the flatbuffer first with calculated offsets for the rodata and then follow with all of the rodata. The polyglot zip option can still be supported and actually work properly because the flatbuffers headers wouldn't be messing with things. Though the current zip output is only zip32, so that'd need to be updated to zip64...

[x] Change bytecode_module_def.fbs
[ ] Swap BytecodeModuleTarget to calculate offsets
[ ] Add padding between flatbuffer end and rodata begin (size is written as prefix)
[ ] Write all rodata (computing CRC if needed, etc) to the output
[x] Compute rodata offset using flatbuffers_read_size_prefix + pad logic to get the buffer offset / size is - sizeof(flatbuffers_uoffset_t)
[x] Make bytecode_module.c verify rodata bounds
[x] Have rodata_table initialization do the offsetting

zip is a terrible file format

True, but haven't we known that for thirty years?


PP-3933: Upgrade to Dropwizard 1.2.7

WHAT
This upgrades Jackson from 2.9.5 to 2.9.6 and Jetty from 9.4.7.v20170914 to
9.4.10.v20180503

Replaced by PR #217


Add rtsp-stream

The Real Time Streaming Protocol (RTSP) is a network control protocol designed for use in entertainment and communications systems to control streaming media servers. The protocol is used for establishing and controlling media sessions between end points.

today I saw your talk! very interesting!! I have to investigate more about airplay, but feel free to add stable packages in the list 😄.

Yeah, I didn't add my other AirPlay stuff as it's still WIP ;)


[GHSA-9vvw-cc9w-f27h] debug Inefficient Regular Expression Complexity vulnerability

Updates

Affected products
Description

Comments
As mentioned in the Github pull request 504 the maintainer released an backport fix for 2.x too as version 2.6.9
https://github.com/debug-js/debug/pull/504#issuecomment-331449019

Closed as duplicate of #1599.


Baud rate not set correctly on Linux

I noticed that on Linux, the baud rate specified in configureSerialPort is ignored. Some default rate is used, for example on my Debian system that is 9.6k.
If I read the code correctly, the baud rate is not set to the cflag of the settings (termios). Relevant source code starts here. To fix this, I have the following code in my fork:
// [baudmask is obtained before...]

// initialize CFLAG with the baudrate bits
var strct_cflag: std.os.linux.tc_cflag_t = @bitCast(@intFromEnum(baudmask));
strct_cflag.CREAD = true; // 0x80

// [...]
settings.cflag = strct_cflag;

// [...]

This works fine for me. I can make a PR if you like. However, since this code also runs for Mac, note that I cannot test this on a Mac since I don't have access to one.

Yes, please make a PR :)

Yes, please make a PR :)

alright, here you go, #25
I also noted that the main source code file serial.zig is relatively long (1k+ loc) by now, I'd probably move platform-specific code to individual zig files. Is that something you'd appreciate? I mean, it's more of a cosmetic thing since decent code editor allows to jump around and find things pretty quickly independent of file structure. Still, it might help readability, so I could give it some more thought.

I also noted that the main source code file serial.zig is relatively long (1k+ loc) by now, I'd probably move platform-specific code to individual zig files. Is that something you'd appreciate? I

Not before 10kloc or something. 1kloc is still way easier to manage in a single file instead of splitting stuff into multiple of files making everything harder, including readability (ctrl-f doesn't work across file boundaries for example)

Alright then, let's see how large this thing grows then :)


Finetune this model on a new language

Hello, thank you for providing the multi-language model. I am interested in fine-tuning the model on a new language based on your framework. What steps should I take?

You should follow my Readme but pay attention to adjusting language for the Text2phonemesequence tool in the preprocess.


Roles Backend

Overview
This PR includes the following proposed change(s):

Updated test users seed to add some default roles
Added user access, user roles tables
Add queries for user access table
Add front end api functions to query user access

Type of change

[ ] Bug fix (non-breaking change which fixes an issue)
[X] New feature (non-breaking change which adds functionality)
[ ] Refactoring / Documentation
[ ] Version change

How Has This Been Tested?
Manual testing
Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[X] I have made corresponding changes to the documentation
[X] New and existing unit tests pass locally with my changes

/rebase


simple fix for bug [#106]

@karpathy I have two solutions to fix the out-of-resource issue that some folks are observing (see https://github.com/karpathy/llm.c/issues/106). We are hitting this issue due to excessive register usage and the compiler is unable to determine it well. The two solutions to this are:
a) keep the block_size = 1024 and add launch_bounds(1024, 2) as a prefix as shown below. This would force register spills to the memory subsystem.
__global__ void layernorm_forward_kernel3(float* __restrict__ out, float* __restrict__ mean, float* __restrict__ rstd,
                                  const float* __restrict__ inp, const float* __restrict__ weight,
                                  const float* __restrict__ bias, int N, int C) {

to below
__global__ __launch_bounds__(1024,2)
void layernorm_forward_kernel3(float* __restrict__ out, float* __restrict__ mean, float* __restrict__ rstd,
                                   const float* __restrict__ inp, const float* __restrict__ weight,
                                   const float* __restrict__ bias, int N, int C) {

This works great for GPUs with 2048 as their maximum resident number of threads. However, we some users (SM version: 8.6) have a maximum resident number of threads as 1536 and this solution will fail for them.  A potential alternative to keeping the block_size=1024 is reduced occupancy (up to 50% and at the cost of run time) using the below change
__global__ __launch_bounds__(1024,1)
void layernorm_forward_kernel3(float* __restrict__ out, float* __restrict__ mean, float* __restrict__ rstd,
                                   const float* __restrict__ inp, const float* __restrict__ weight,
                                   const float* __restrict__ bias, int N, int C) {

I am not in favor of this either.
b) Fundamental to the issue is we are launching too many resources and observing a launch failure. In this case, reducing the block size enables the compiler to optimize better. This is why I reduced the block size from 1024 to 512 (can be 256 too). Before I made this change, I checked for correctness and running dev/cuda/layernorm_forward.cu. block_size 256 or 512 makes about a 10% drop difference in performance (on an average run).  However, end-to-end layer time, I did not observe much difference!
If you still want to keep block_size = 1024 then we need to add the __CUDA_ARCH__ qualifier to make it conditioned for respective SM versions. Alternatively, we can think of ways to reduce register usage (not that easy given it uses cg.). (The last one is I need to check if there is a compiler flag that automatically allows register spill if it detects it. )
Let me know what you think!

does the reduced occupancy on 1500-thread cards actually translate to any speed differences? This kernel is highly memory-bound anyway, so it might not actually matter.

It does not. We see about a 50us difference between the two in the example kernel. So it is very tiny compared to 25ms.

Got it, thank you. I don't see these errors on my box so I appreciate your help / PRs to fix & document.


feat(components): use macro functions

It looks like you are planning to refactor components using macro. I can assist when the plan is launched.