DropdownButton: Consider supporting a null selection

I'd like for a DropdownButton to allow for a null value. This is currently impossible because assertions require that a non-null value always be passed to DropdownButton and that it always correspond to an element in the provided items list.
The use-case is that I'd like for a dropdown to say something like "Select item..." initially, and then revert to standard constrained selections after the user selects an item in the list.

I'm not sure if this was possible when this issue was raised, but I'm pretty sure it can be done now.

Code Sample
import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Dropdown Example',
      home: Scaffold(
        appBar: AppBar(title: const Text('Dropdown Example')),
        body: Center(
          child: DropdownExample(),
        ),
      ),
    );
  }
}

class DropdownExample extends StatefulWidget {
  DropdownExample({Key key}) : super(key: key);

  @override
  _DropdownExampleState createState() => _DropdownExampleState();
}

class _DropdownExampleState extends State<DropdownExample> {
  int value; // initially, its value is null
  @override
  Widget build(BuildContext context) {
    return DropdownButton(
      value: value,
      hint: Text("Select Item..."), // hint that is displayed when value is null
      items: [0, 1, 2, 3, 4, 5, 6]
          .map(
            (e) => DropdownMenuItem(
              value: e,
              child: Text(e.toString()),
            ),
          )
          .toList(),
      onChanged: (_v) {
        setState(() {
          value = _v;
        });
      },
    );
  }
}

Closing: looks like this has been fixed. Feel free to reopen if you feel otherwise.


Add py.typed to package

Closes #249

Successful PR Checklist:

[ ] Tests

[x] (not applicable?)

[ ] Documentation

[x] (not applicable?)

[x] Had a good time contributing?
[ ] (Maintainers: add PR labels)

Had to set zip_safe to False or mypy won't find the installed package
https://mypy.readthedocs.io/en/latest/installed_packages.html?highlight=pep#making-pep-561-compatible-packages


File Not Found PropertyMetaDatabase.txt

This is on a Mac on Sierra on Unity 2017.2.0f3 (64bit).
FileNotFoundException: Could not find file "/Users/jason/Desktop/swatchtest/swatchtest/\Users\jason\Desktop\swatchtest\swatchtest\Assets\Plugins\NaughtyAttributes\Scripts\Editor\CodeGeneration\Templates\PropertyMetaDatabaseTemplate.txt".
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.IO/FileStream.cs:305)
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean isAsync, Boolean anonymous)
System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access)
(wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess)
NaughtyAttributes.Editor.IOUtility.ReadFromFile (System.String filePath) (at Assets/Plugins/NaughtyAttributes/Scripts/Editor/Utility/IOUtility.cs:26)
NaughtyAttributes.Editor.CodeGenerator.GenerateScript[PropertyMeta,PropertyMetaAttribute] (System.String scriptName, System.String templateName, System.String entryFormat) (at Assets/Plugins/NaughtyAttributes/Scripts/Editor/CodeGeneration/CodeGenerator.cs:53)
NaughtyAttributes.Editor.CodeGenerator.GenerateCode () (at Assets/Plugins/NaughtyAttributes/Scripts/Editor/CodeGeneration/CodeGenerator.cs:29)

This can be fixed by using templateRelativePath instead of templateFullPath in CodeGenerator.GenerateScript's IOUtility.ReadFromFile call.
I'd submit a pull request but I assume that templateFullPath exists for some reason.

I'm not sure what the case should be, but after using templateRelativePath instead of templateFullPath I am seeing these .cs file with long paths as their fill names:
\Users\jason\Desktop\swatchtest\swatchtest\Assets\Plugins\NaughtyAttributes\Scripts\Editor\CodeGeneration\FieldDrawerDatabase.cs
\Users\jason\Desktop\swatchtest\swatchtest\Assets\Plugins\NaughtyAttributes\Scripts\Editor\CodeGeneration\MethodDrawerDatabase.cs
\Users\jason\Desktop\swatchtest\swatchtest\Assets\Plugins\NaughtyAttributes\Scripts\Editor\CodeGeneration\PropertyDrawConditionDatabase.cs
\Users\jason\Desktop\swatchtest\swatchtest\Assets\Plugins\NaughtyAttributes\Scripts\Editor\CodeGeneration\PropertyDrawerDatabase.cs
\Users\jason\Desktop\swatchtest\swatchtest\Assets\Plugins\NaughtyAttributes\Scripts\Editor\CodeGeneration\PropertyGrouperDatabase.cs
\Users\jason\Desktop\swatchtest\swatchtest\Assets\Plugins\NaughtyAttributes\Scripts\Editor\CodeGeneration\PropertyMetaDatabase.cs
\Users\jason\Desktop\swatchtest\swatchtest\Assets\Plugins\NaughtyAttributes\Scripts\Editor\CodeGeneration\PropertyValidatorDatabase.cs

Thank you. I will try to make a fast fix :)

Ok. I think the loading of the templates should be working now.
Can you tell if the last line of code in the method works?
IOUtility.WriteToFile(scriptPath, Regex.Replace(scriptContent, @"\r\n|\n\r|\r|\n", Environment.NewLine));

Yup I think you've fixed it :) Thanks!

Actually these files keep getting created:

Note that these are FILENAMES not paths! ie: "\Users\jason\Desktop\swatchtest\swatchtest\Assets\Plugins\NaughtyAttributes\Scripts\Editor\CodeGeneration\FieldDrawerDatabase.cs" is the NAME OF THE FILE, and it exists at the location "\Users\jason\Desktop\swatchtest\swatchtest"

Heres a screenshot that demonstrates what I mean:

Yeah, you are right, they are filenames :D
Anyway, I know why they are keeping generated. I will make a button in the editor for a manual generation.
Thank you very much :)


[Lighthouse / HTTP 200 When Offline / Helpful]

The link Adding a Service Worker and Offline Into Your Web App returns as a 403 Forbidden error.

This may have been a transient issue - works for me!

Hey @tomanistor the site looks to be working OK. Please let us know if you continue to have 403 error.

Looks to be working now. Thanks!


[Bug] [deploy on k8s] add default config of quartz and zookeeper in common configmap && pick #7562 fix to worker #7639

Purpose of the pull request
https://github.com/apache/dolphinscheduler/issues/7639
Brief change log

Verify this pull request

This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:

Codecov Report

:exclamation: No coverage uploaded for pull request base (2.0.2-prepare@744577f). Click here to learn what that means.
The diff coverage is n/a.

@@               Coverage Diff                @@
##             2.0.2-prepare    #7641   +/-   ##
================================================
  Coverage                 ?   31.30%
  Complexity               ?     1554
================================================
  Files                    ?      433
  Lines                    ?    14769
  Branches                 ?     1476
================================================
  Hits                     ?     4623
  Misses                   ?     9694
  Partials                 ?      452

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 744577f...b10ecd9. Read the comment docs.


dump_tensorflow_weights.py with error

BoxPredictor_1/BoxEncodingPredictor/weights Traceback (most recent call last):   File "dump_tensorflow_weights.py", line 54, in <module>     tmp = caffe_weights.reshape(n, 4, -1) ValueError: cannot reshape array of size 276480 into shape (68,4,newaxis)
The bug seems at line 53
n = caffe_bias.shape[0] / 4
maybe have to be changed as
n = caffe_weights.shape[0] / 4

@itemhsu Make sure your model is ssd_mobilenetv2_coco

File "dump_tensorflow_weights.py", line 77, in
tmp = caffe_weights.reshape(boxes, -1).copy()
ValueError: cannot reshape array of size 31104 into shape (0,newaxis)
my model  is same ssd_mobilenet_v2_coco_2018_03_29

for those who need an answer; your model may have different number of classes than coco. try replacing the 91 value with your number of classes +1.
For example, if you have 20 classes, then with background class you will use 21.
Replace following lines (there are two of them):
boxes = caffe_bias.shape[0] // 91 to boxes = caffe_bias.shape[0] // 21


FEATURE: Add Grpc backend

Old commits of @svandenb-dev rebased on the main branch. This PR is a sandbox to see how those changes interact with current pyedb CI/CD. If everything works, it might be worth it to work on this branch/PR and to leave #221. If needed we could update #221 ofc but I didn't wanted perform changes without your consent.

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

Project coverage is 55.12%. Comparing base (5c65c3d) to head (ebcb9f5).

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #228       +/-   ##
===========================================
- Coverage   83.02%   55.12%   -27.91%
===========================================
  Files         105      120       +15
  Lines       17605    26597     +8992
===========================================
+ Hits        14617    14661       +44
- Misses       2988    11936     +8948


shorten operator too late message

can be shorter than 3 minutes

make it shorter so that it ends when voicemail is still playing the message, so less voicemail is left


[ruby] require 'v8eval' raises LoadError; native extension build error

code:
require 'v8eval'

exception:
/home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- v8eval/v8eval (LoadError)
	from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require'
	from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/gems/2.1.0/gems/v8eval-0.2.1/ruby/lib/v8eval.rb:2:in `<top (required)>'
	from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `require'
	from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
	from /home/vagrant/.rbenv/versions/2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:144:in `require'

Oh, I look like something was wrong with the installation. Now I get an error:
compiling v8eval_wrap.cxx
cc1plus: error: unrecognized command line option '-std=c++11'
make: *** [v8eval_wrap.o] Error 1

make failed, exit code 2

I guess I have wrong version of g++ or something else... Any ideas?

I have solved the problem: I had g++ compiler 4.6 while v8 (or swig or whatever else) needed 4.8 to build.
I think it is good to add to README that g++ 4.8 is needed.

Hi
What is your platform?
v8eval supports Mac and Linux.
v8eval/build.sh uses clang that is the default compiler in Mac
or uses clang that is fetched together with V8 in Linux.
See https://github.com/sony/v8eval/blob/master/build.sh#L5-L20

Hi, I use Ubuntu 12.04.5 LTS.

I think v8eval don't set the compiler correctly in 'gem install'.
We will fix the bug.

We have fixed this issue. Thank you for your feedback.


reduce size of live data

Detailed Description
Would be great to reduce the size of the NWP data. I think this could be done with a better compression.
Context

Current szie is 1.2 GB - https://s3.console.aws.amazon.com/s3/buckets/nowcasting-nwp-development?region=eu-west-1&prefix=data/&showversions=false
currently saves as .netcdf file
other compressions has been discusse here - https://github.com/openclimatefix/ocf_datapipes/issues/132#issuecomment-1398195182

Possible Implementation
use Blosc Zstd compression

I would try the new ocf_blosc2 Blosc2 ZSTD one, as that does give better results than the original Blosc Zstd

Just so it super easy to do, do you a link to some code, where you save it using ocf_blosc2,

Yeah, it would be something like this, which I use for the new satellite zarrs:
from ocf_blosc2.ocf_blosc2 import Blosc2

def write_to_zarr(dataset, zarr_name, mode, chunks):
    mode_extra_kwargs = {
        "a": {"append_dim": "time"},
        "w": {
            "encoding": {
                "data": {
                    "compressor": Blosc2("zstd", clevel=5),
                },
                "time": {"units": "nanoseconds since 1970-01-01"},
            }
        },
    }
    extra_kwargs = mode_extra_kwargs[mode]
    dataset.chunk(chunks).to_zarr(
        zarr_name, compute=True, **extra_kwargs, consolidated=True, mode=mode
    )

Update deployed NWP consumer:

[x] dev via Terraform cloud run

Updated forecaster to include OCF blosc 2 library:

[x] dev via Terraform cloud run
[ ] prod

great work @devsjc

Not quite there yet, I'll let you know!

Which repository holds the national model? I will need to update that to be able to read the newly compressed NWP data as well

Seeing the following error in the forecaster in cloudwatch:
expected shape=(7, 24, 24, 11) actual shape (4, 24, 24, 11)

I just rolled back nwp to 1.2.0 from 1.2.2 on devlopment as it was causing an issue on development
https://eu-west-1.console.aws.amazon.com/cloudwatch/home?region=eu-west-1#logsV2:log-groups/log-group/$252Faws$252Fecs$252Fconsumer$252Fnwp$252F/log-events/streaming$252Fnwp-consumer$252F52032316e23c4ca5b31f8a4aa527cd4c


Is real-time visualization possible in Google Colab? Attempted frame-by-frame image conversion as an alternative

Issue Description
When running Genesis in Google Colab environment, real-time visualization is not possible due to OpenGL restrictions. Using show_viewer=True option results in an error.
Alternative Approach
I implemented visualization by saving images frame by frame. Here's a minimal working example:
import genesis as gs
import numpy as np
from PIL import Image
import os

gs.init(backend=gs.cuda)

# Create a directory to save the results
save_dir = "/content/simulation_frames"
os.makedirs(save_dir, exist_ok=True)

scene = gs.Scene(show_viewer=False)

# Add objects
plane = scene.add_entity(gs.morphs.Plane())
box = scene.add_entity(
    gs.morphs.Box(
        pos=(0, 0, 2),
        size=(0.5, 0.5, 0.5)
    )
)

# Camera settings
cam = scene.add_camera(
    res=(320, 240),
    pos=(2.0, 2.0, 2.0),
    lookat=(0, 0, 0),
    fov=30,
)

scene.build()

# Render and save images
for i in range(30):
    scene.step()
    if i % 5 == 0:
        print(f"Step {i}/30")
        rgb_data = cam.render(rgb=True)

        # rgb_data[0] contains the actual image data
        img_array = rgb_data[0]
        img = Image.fromarray((img_array * 255).astype(np.uint8))
        img.save(f"{save_dir}/frame_{i:03d}.png")
        print(f"Frame {i} saved to {save_dir}")

Results
While real-time visualization is not possible, frame-by-frame image saving works successfully
FPS varies by environment, but achieves about 10-15 FPS on A100 GPU
Saved images can be found in the '/content/simulation_frames' directory
Questions
Are there any other methods to achieve real-time visualization in Colab? #166
Are there ways to improve the performance of the current approach?
Is real-time visualization possible in other cloud environments?
Environment Details
Google Colab
GPU: NVIDIA A100-SXM4-40GB

I have the same issue. Is it possible to use SSH to access an interactive window on a remote server? From my tests, it seems not to work. I ran the same installation program on both a remote server and a local server. The local server with a display had no issues, but the remote server couldn't show the interactive window.

I have the same issue. Is it possible to use SSH to access an interactive window on a remote server? From my tests, it seems not to work. I ran the same installation program on both a remote server and a local server. The local server with a display had no issues, but the remote server couldn't show the interactive window.

I'm not sure, but I think it's a different problem because it's ambiguous to view the remote server and COLab as the same environment. No, it could be the same problem.

Met with the same problem before. Have always been using Genesis on clusters without monitor. In my experience, saving images frames by frames could be slow because of the IO. I instead save all images into an mp4 by using cv2.VideoWriter, which could save some times.

In the Google Colab environment with a T4 GPU, I tried the method described in this comment, which significantly improved the FPS to about 50.


Add poll_reserve to ExExHandle

          no, we should just add the equivalent fo poll_reserve,

but can also do this separately, so no blocker here
Originally posted by @mattsse in https://github.com/paradigmxyz/reth/pull/7340#discussion_r1561275928

I took a first pass at this. From what I understood from your (@onbjerg) and @mattsse conversation, we want to separate the poll_reserve logic out into a new function on the ExExHandle level that the manager can call. Was a relatively low effort on my end, so let me know if major chunks are missing or if I got the context wrong.

https://github.com/paradigmxyz/reth/pull/7610#pullrequestreview-2101833227


Add icons to the swipe left/right buttons

Is your feature request related to a problem? Please describe.
Feature request to make it easier to identify what swipe left/right means
Describe the solution you'd like
Add an icon to the swipe left/right buttons to make it clear what each does
For example a ❤ for a like and a 💔for a dislike for the uninitiated.
Describe alternatives you've considered
N/A
Additional context
N/A

@all-contributors please add @cmjchrisjones for ideas

@all-contributors please add @ibaldie for design and ideas

Finished in latest release


Nuclear foot-gun waiting to happen in pl.pretty.dump()

The pl.pretty module has a dump() function normally accepts two arguments, but it . This is quite useful most of the time. However it also comes with a built in nuclear foot-gun. Sometimes in the process of debugging one wants to dump the output of a function. If that function happens to return more than one value, the dump function will behave rather unexpectedly. The choice of having a filename as an optional second argument can set off some surprisingly bad results.
Take for example the Lua require() function. It can return more than one value and the second value will (not always but frequently) be the filename that the module resolved to:

(The absence of a second result in this case signals that this call did not have to load the module.)
[…]
Besides that value, require also returns as a second result the loader data returned by the searcher, which indicates how require found the module.

Now consider trying to debug a C module you're working on:
local D = require("pl.pretty").dump

-- This is safe-ish
local mycmodule = require("mycmodule")
D(mycmodule)

Everything is still fine. But what if you tried to take the obvious shortcut just for a quick debug session and put the function call directly in the dump function? Well then it goes sideways:
$ lua -e 'require("pl.pretty").dump(require("mycmodule"))'
[1]    1785514 bus error (core dumped)  lua -e 'require("pl.pretty").dump(require("mycmodule"))'

That wasn't the expected answer. Core dumped? What even happened? Lets just try it again:
$ lua -e 'require("pl.require").dump(require("mycmodule"))'
lua: error loading module 'mycmodule' from file '/home/caleb/projects/mycmodule/lua_modules/lib/lua/5.4/mycmodule.so':
        /home/caleb/projects/mycmodule/lua_modules/lib/lua/5.4/mycmodule.so: invalid ELF header
stack traceback:
        [C]: in ?
        [C]: in function 'require'
        (command line):1: in main chunk
        [C]: in ?

Huston we have a problem! Running the same command twice gave us a different error. But the real issues is we no longer have a C module at all. The file ./lua_modules/lib/lua/5.4/mycmodule.so is now a text file with the output of dump().
I'm not sure how to address this. Perhaps detecting and warning on possibly unintended inputs is possible. Perhaps changing the API in the next major version so it doesn't contain a foot-gun in the first place would be in order. Perhaps documenting this with a warning is all we can do.

This is a nasty coincidence of having an optional 2nd parameter, combined with the multi-return values in Lua.
Since this is mostly a debug function, I think we could append a default extension to the filename, eg. .dump or .debug to prevent any files being overwritten (not 100% free of collisions, but probably good enough). Combined with some solid warnings in the docs.


Happy New Year

Happy New Year everyone!
I wish you all the best for 2019
love you all

Not late with the date? @earthlng

Happy new year, everyone!!! It's good to know you survived the holidays @earthlng!
:heart: :beers: :ice_cream: :tada: :fireworks: :v: :guitar: :metal:

Not late with the date? @earthlng

Don't be a buzzkill man, only 1,5981735% of the year has passed. Besides, it's still new year's eve in UTC -150


Create Dedicated Documentation?

Speaking with @msweier about the documentation we both agreed it could be extended.
Mitch mentioned the public and their needs into it as well.
I'm aware this is a bit of an undertaking considering the API is still being worked on and added to.
But does a read-the-docs style website make sense? Or something more interactive for educational purposes as opposed to developer?
A site beyond the type declarations/javadoc that talks about actual usage and why you would want to use these endpoints comes to mind.

@MikeNeilson this has come up more and more as we encourage districts and public members to use the existing and new endpoints.
Suggest we setup a larger meeting and/or iron out how to go about this. I know OpenDCS has a "QuickStart" guide.
Read the docs always comes to mind. But more enduser vs developer (Swagger)

Arguably we've had enough meetings and need to "just go". We originally talked about creating more user-interactive docs embedded into CDA itself using the groundwork framework.
However, that might make a somewhat circular dependency as that documentation should use CWMSjs which would lag.
So here are the options:

Read the docs
Embedded
Yet-another-repo that combines CWMSjs with the docs and we just host with github.io

Update that we are leaning towards embedded and may also deploy to readthedocs.
Currently setting this up so the docs can live within the webapp itself next to the landing page here
Https://cwms-data.usace.army.mil/cwms-data


fixed broken uri with untappd api

Not sure what you are trying to accomplish by changing params from an object to a string.  What problem are you trying to solve?

@arei Can you please merge this fix?

I will not be merging this code for the following reasons:
1). introduces an undefined global object, log, which may not exists in all usages.
2). Reduces ability to pass additional parameters.
Feel free to fork and manage your own branches in that fork as desired.


Flexible Pricing: display personalized price

As a user, I'd like to see my personalized price, including financial assistance, in every place where I see a course price.
In particular, I'd like to see it on the course about page.
Designs and Mockups

Acceptance Criteria:

[ ] For logged in users whose financial assistance has been approved, display their personalized price instead of the undiscounted price.

Out of Scope

Not going to do

@pdpinch - on the page shown in the issue description, what should the Personal pricing hyperlink direct to?

That link is specified in the CMS.
In production (for example), it links to a FAQ about how personal pricing works. The text and link is set in the CMS -- in this example, at https://mitxonline.mit.edu/cms/pages/11/edit/
On RC, you can see that we've changed the destination of that link to be the form for requesting financial aid.


'make launch' failed after installing SRanipal and Logitech Wheel Plugin: assertion failed

build carla 0.9.13 from source
I was able to use carla before installing SRanipal and Logitech Wheel Plugin.
I've already 'make pythonAPI' again after installing above Plugins and it reports no errors seemingly from the log information. But when 'make launch', it generates an error as beblow:
.

Hi there, we noticed this problem as well recently when we tried rebuilding from scratch to validate build settings.
I believe the issue is that you are using "too new" of a UE4 commit. The CARLA fork works for DX12 but we prefer DX11 for its improved VR performance and compatibility. So I recommend you checkout a UE4 version before the CARLA 0.9.14 work and rebuild the engine and editor.
We verified that switching the Carla Engine fork to d40ec35474e8793b4eea60dba6c4f051186e458e worked for us. Or you can also use this custom fork (on branch fov-render) that we've been developing with.
(NOTE: this is only for Carla/DReyeVR 0.9.13)
We will be working on a patch for Carla/DReyeVR 0.9.14 (and the newest version of CarlaUnreal's UE4)  soon!

Hmm, I'm not very familiar with git commands. If I want to switch the Carla Engine fork to d40ec35474e8793b4eea60dba6c4f051186e458e, is it as following two commands?

git clone https://github.com/CarlaUnreal/UnrealEngine.git
git checkout d40ec35474e8793b4eea60dba6c4f051186e458e

Hmm, I'm not very familiar with git commands. If I want to switch the Carla Engine fork to d40ec35474e8793b4eea60dba6c4f051186e458e, is it as following two commands?

git clone https://github.com/CarlaUnreal/UnrealEngine.git
git checkout d40ec35474e8793b4eea60dba6c4f051186e458e
something goes wrong with me. It seems the whole Carla Engine project is too big in size, so I can't git it through 'git clone https://github.com/CarlaUnreal/UnrealEngine.git', is there any method to obtain 'd40ec35474e8793b4eea60dba6c4f051186e458e' ?

Okay, try instead this command:
git clone https://github.com/GustavoSilvera/UnrealEngine -b fov-render --depth 1

This should work with 0.9.13 and only clone one commit.


Alignment issues in Modify User.(Company Panel)

Describe the bug
no space between word amd colon(:) in PTT , dispatcher and control station.(See the attached screenshot)
To Reproduce
Steps to reproduce the behavior:
1.Enter in the address bar-pulseptt.com
2.Login With Id and Password.
UserName-titan
Password-123456789
3.Click on Modify User.
Expected behavior
proper alignment between word and colon(:) in PTT , dispatcher and control station.

Desktop (please complete the following information):
OS: Windows 10
Browser: Version 100.0.4896.60 (Official Build) (64-bit)
Version: [<IP_ADDRESS>]
PTT-

Dispatcher-

Control Station-

PTT- Space between colon(:) and word(circles in screenshot)

Dispatcher-


feat: Add WithinMedianDeviation keeper method

Description
closes: #1545

Author Checklist
All items are required. Please add a note to the item if the item is not applicable and
please add links to any relevant follow up issues.
I have...

[ ] included the correct type prefix in the PR title
[ ] added ! to the type prefix if API or client breaking change
[ ] added appropriate labels to the PR
[ ] targeted the correct branch (see PR Targeting)
[ ] provided a link to the relevant issue or specification
[ ] added a changelog entry to CHANGELOG.md
[ ] included comments for documenting Go code
[ ] updated the relevant documentation or specification
[ ] reviewed "Files changed" and left comments if necessary
[ ] confirmed all CI checks have passed

Reviewers Checklist
All items are required. Please add a note if the item is not applicable and please add
your handle next to the items reviewed if you only reviewed selected items.
I have...

[ ] confirmed the correct type prefix in the PR title
[ ] confirmed all author checklist items have been addressed
[ ] reviewed state machine logic
[ ] reviewed API design and naming
[ ] reviewed documentation is accurate
[ ] reviewed tests and test coverage
[ ] manually tested (if applicable)

Codecov Report

Merging #1613 (868e5b4) into main (3650653) will decrease coverage by 0.30%.
The diff coverage is 36.88%.

@@            Coverage Diff             @@
##             main    #1613      +/-   ##
==========================================
- Coverage   55.47%   55.17%   -0.31%
==========================================
  Files          68       68
  Lines        6725     6846     +121
==========================================
+ Hits         3731     3777      +46
- Misses       2717     2787      +70
- Partials      277      282       +5

Impacted Files
Coverage Δ

x/oracle/types/keys.go
92.59% <ø> (ø)

x/oracle/types/msgs.go
87.36% <0.00%> (-2.85%)
:arrow_down:

x/oracle/types/query.pb.gw.go
0.00% <0.00%> (ø)

x/oracle/keeper/grpc_query.go
91.84% <69.23%> (-4.73%)
:arrow_down:

x/oracle/keeper/historic_price.go
92.37% <85.71%> (-1.45%)
:arrow_down:


403 Forbidden

Trying to download the knowledge base from https://wikidatafiles.nyc3.digitaloceanspaces.com/Hosting/Hosting/SpacyEntityLinker/datafiles.tar.gz fails with a 403: Forbidden error.

I also have the same issue

Hi everyone,
I still had a local copy of the knowledge base, and I uploaded it here: https://huggingface.co/MartinoMensio/spaCy-entity-linker/resolve/main/knowledge_base.tar.gz
I hope you can find this useful. I sent a PR to update the links.
Best,
Martino

Hi @k-gruenberg and @jayhpatel14 ,
The new version 1.0.2 fixes this issue. Please update it from pypi.
Best,
Martino

Hi @MartinoMensio I am getting the following error :
sqlite3.OperationalError: no such table: statements


Problem with scoped url

my routes are setup like this:
scope :module => "test_base" do
   resources :regression_test
   resources :load_test
end

I've set the defaults in my controllers to:
defaults :resource_class => LoadTest::TestCase, :collection_name => 'test_cases', :instance_name => 'test_case'

but it always returns test_base_load_test_test_case_path etc for the resource url. is there a way to tell IR to ignore the scoped module?

https://github.com/josevalim/inherited_resources/blob/master/lib/inherited_resources/class_methods.rb#L6


Do save change original mesh points?

Hello gents. First of all thank you so much for this package, its very useful.
I am running a script that loads a mesh, rotate it and save it. For some reason the new file size is much smaller than the original (~70% of original) and the triangles are being reconstructed. Is that the expected behavior?
I am wondering if its possible to do this process maintaining the original triangles by just transforming the points coordinates.
The following is a snip of the code with the function optional inputs:
`for i in range(0,meshes.len()):
stlMesh=mesh.Mesh.from_file(meshes[i])

print(meshes[i])

# Rotate about Z

stlMesh.rotate([0.0, 0.0, 1.0], math.radians(180-yaw))

# Rotate about Y

stlMesh.rotate([1.0 * math.sin(math.radians(-yaw)), 1.0 * math.cos(math.radians(-yaw)), 0],math.radians(pitch-90))

# Save

name = meshes[i].rsplit(r'/',1)[-1]

print(name)

stlMesh.save(basedir+case+r'/constant/triSurface/'+name, mode=stl.Mode.ASCII,update_normals=True)`

Hey.
In principle, unless you explicitly define that empty/duplicate polygons should be dropped at loading time, there fundamentally should not be any changes to your data shape. Therefore I'm tempted to ask you to take a detailed look at the files themselves:

do they contain extra information outside the STL format?
2a. does each file have multiple STL definitions or
2b. lots of empty carriage returns?


Does not check exe directory for models

Using the Windows version. It's not possible to "install" the program somewhere, then add it to your path. If you try that, you get an error about _wfopen failing on one of the models.
C:\Users\matt\Downloads\test>waifu2x -s 2 -i image.png -o image_out.png
[0 GeForce RTX 2060]  queueC=2[8]  queueG=0[16]  queueT=1[2]
[0 GeForce RTX 2060]  buglssc=0  bugsbn1=0  buglbia=0  bugihfa=0
[0 GeForce RTX 2060]  fp16p=1  fp16s=1  fp16a=1  int8s=1  int8a=1
_wfopen models-cunet/noise0_scale2.0x_model.param failed

C:\Users\matt\Downloads\test>where waifu2x
C:\Program Files\waifu2x-ncnn-vulkan-windows\waifu2x.exe

The program should check for these files in the exe directory to avoid this issue.

try the latest ci artifacts

fixed in https://github.com/nihui/waifu2x-ncnn-vulkan/releases/tag/20200818


[featurerequest] LDAP support for users

It would be useful to have an LDAP connector to handle users.

Or any way to delegate auth to the reverse proxy in front of the flask app, in fact.

This looks like it would be pretty easy to add.

Add a new LDAP login provider Examples
Add required configuration parameters
Add additional dependency on python-ldap

I'd be happy to merge something like this.


TypeError: unorderable types: function() < function()

Steps to reproduce the problem:
The exception happens intermittently, often several thousand requests into a session. I cannot reproduce at-will. The proxy is getting a lot of bad HTTP requests (expected) that cause this warning (or similar) to be displayed:
Warn: <IP_ADDRESS>:52288: HTTP protocol error in client request: Bad HTTP request line:
81\xbb\x80\xa5\x02S;\\xb7\xd1n\xb1\xcf\xad\xf7k\xb4\xbd\x9f<'
These are flashed in bold below the status bar. I cannot say for sure if it is related.
Any other comments? What have you tried so far?
Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/mitmproxy/tools/console/master.py", line 281, in run
self.loop.run()
File "/usr/local/lib/python3.5/dist-packages/urwid/main_loop.py", line 278, in run
self._run()
File "/usr/local/lib/python3.5/dist-packages/urwid/main_loop.py", line 376, in _run
self.event_loop.run()
File "/usr/local/lib/python3.5/dist-packages/urwid/main_loop.py", line 682, in run
self._loop()
File "/usr/local/lib/python3.5/dist-packages/urwid/main_loop.py", line 715, in _loop
alarm_callback()
File "/usr/local/lib/python3.5/dist-packages/urwid/main_loop.py", line 164, in cb
callback(self, user_data)
File "/usr/local/lib/python3.5/dist-packages/mitmproxy/tools/console/master.py", line 242, in ticker
self.loop.set_alarm_in(0.01, self.ticker)
File "/usr/local/lib/python3.5/dist-packages/urwid/main_loop.py", line 165, in set_alarm_in
return self.event_loop.alarm(sec, cb)
File "/usr/local/lib/python3.5/dist-packages/urwid/main_loop.py", line 604, in alarm
heapq.heappush(self._alarms, (tm, callback))
TypeError: unorderable types: function() < function()
mitmproxy has crashed!
System information
Mitmproxy version: 2.0.2 (release version)
Python version: 3.5.2
Platform: Linux-4.13.0-41-generic-x86_64-with-Ubuntu-16.04-xenial
SSL version: OpenSSL 1.1.0h  27 Mar 2018
Linux distro: Ubuntu 16.04 xenial

Duplicate of #2815 - upgrading to 4.0 should do the trick.


Can't find source of randomness

Hello everyone,
I am simulating a CuH molecule through an HF calculation and I would like to make the results reproducible (by now it fluctuates around the 10th decimal digit).
np.random.seed(0)

mol = gto.M(atom=[['Cu',(0,0,0)],['H',(0,0,1.46)]],basis='6-31g',symmetry='Coov',charge=0,spin=0,verbose=4)
mf  = scf.RHF(mol)

mf.kernel()
mf.analyze()
mf.stability()

I have fixed the numpy seed but it looks like it's not enough... I would really appreciate if someone could help me finding the randomness source and tell me how to fix it!
Thanks,
Martina

Unless I am mistaken, I believe the convergence tolerance might be set to 1e-10 by default, see
https://github.com/pyscf/pyscf/blob/master/pyscf/scf/hf.py#L49 . If you require a greater amount of precision - maybe lowering this value by setting it explicitly when calling mf.kernel helps?

For a program run in parallel, rounding errors will add differently each time you run the program. If you run the calculation in serial (for pyscf, use only one thread: export OMP_NUM_THREADS=1), you should see exactly the same result every time.

Hello, thank you very much for your suggestions!
I tried asking for a higher precision but the final result didn't change so much: I didn't say it in my opening comment but after a HF calculation I am doing a sort of Orbital Relaxation and I have noticed that tiny fluctuations in the HF energy cause much bigger fluctuations in the final result (from 1e-11 of HF to 1e-5 after the OR).
Unfortunately even by lowering the tolerance of HF I still get very big fluctuations (around 1e-6) which is still too much for my purposes.
Anyway, thank you @verena-neufeld because I never thought about changing those parameters and I for sure will use this information in the future!
Secondly, my code is not running in parallel and I added the following lines to the code :
import os
os.environ["OMP_NUM_THREADS"] = "1"

This seemed to solve my problem as now I see exactly the same result every time, so thank yo very much to @fishjojo too!

@martinanibbi
PySCF uses OpenMP (OMP) to parallelize operations, hence you see the change of behaviour as you export OMP_NUM_THREADS.
The non deterministic behaviour in parallel code arises since mathematical operations do not strictly commute in finite precision math, e.g. a + b + c can lead to a slightly different results than c + b + a, due to rounding.
In general we do not worry about this, since the resulting errors are much smaller than the accuracy we are interested in.
However, if your algorithm is sensitive to such small differences, this could indicate that it is badly conditioned. Just something to keep in mind.


Add new Divided variant to ButtonGroup

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

Expected Behavior 🤔
It should look like the normal button's text variant, but with a vertical divider between the buttons in the group. Like the Outlined variant, but without the outer line, just the inner veritcal lines.
Current Behavior 😯
It doesn't exist, the outlined variant is close but not quite what I am looking for.
Examples 🌈
Something like this: Divided button group
Context 🔦
I like using text variant buttons where I want to accept user input without drawing attention to a button. For example where there are lots of buttons, like in a table, using contained or outlined buttons can be very distracting because of the sheer number of buttons. I also really like the button group and think that it is a lot nicer than two buttons next to each other when you want to add a secondary button for more options (which is what I would like to do).

@Exitialis1 Did you had something like this in mind?

diff --git a/docs/src/pages/components/buttons/GroupedButtons.js b/docs/src/pages/components/buttons/GroupedButtons.js
index 77edcec55..bfe233d32 100644
--- a/docs/src/pages/components/buttons/GroupedButtons.js
+++ b/docs/src/pages/components/buttons/GroupedButtons.js
@@ -9,7 +9,7 @@ export default function GroupedButtons() {
       <Grid item xs={12} md={6}>
         <Grid container spacing={1} direction="column" alignItems="center">
           <Grid item>
-            <ButtonGroup size="small" aria-label="Small outlined button group">
+            <ButtonGroup variant="text" size="small" aria-label="Small outlined button group">
               <Button>One</Button>
               <Button>Two</Button>
               <Button>Three</Button>
diff --git a/packages/material-ui/src/ButtonGroup/ButtonGroup.js b/packages/material-ui/src/ButtonGroup/ButtonGroup.js
index e24704769..ebfd73d4a 100644
--- a/packages/material-ui/src/ButtonGroup/ButtonGroup.js
+++ b/packages/material-ui/src/ButtonGroup/ButtonGroup.js
@@ -31,6 +31,12 @@ export const styles = theme => ({
       borderBottomRightRadius: 0,
     },
   },
+  /* Styles applied to the children. */
+  groupedText: {
+    '&:not(:last-child)': {
+      borderRight: `1px solid ${theme.palette.grey[400]}`,
+    },
+  },
   /* Styles applied to the children if variant="outlined". */
   groupedOutlined: {
     '&:not(:first-child)': {
@@ -92,6 +98,7 @@ const ButtonGroup = React.forwardRef(function ButtonGroup(props, ref) {
   const primary = color === 'primary';
   const secondary = color === 'secondary';
   const buttonClassName = clsx(classes.grouped, {
+    [classes.groupedText]: variant === 'text',
     [classes.groupedOutlined]: outlined,
     [classes.groupedOutlinedPrimary]: outlined && primary,
     [classes.groupedOutlinedSecondary]: outlined && secondary,
@@ -190,7 +197,7 @@ ButtonGroup.propTypes = {
   /**
    * The variant to use.
    */
-  variant: PropTypes.oneOf(['outlined', 'contained']),
+  variant: PropTypes.oneOf(['text', 'outlined', 'contained']),
 };

 export default withStyles(styles, { name: 'MuiButtonGroup' })(ButtonGroup);

That would be perfect yes, I should have mentioned originally that I wanted to use it to combine a normal button and an icon button for a more options drop down. I don't know if that would affect the changes that you made.

@Exitialis1 I would hope that it behaves identically. @mbrookes What do you think?

Looks good. Didn't occur to me when creating the button group that we could support the text button this way.

@Exitialis1 Do you want to give it a try? :)

I would like to give it a try @oliviertassinari

@Dhruvi16 Please do :)


Sync eng/common directory with azure-sdk-tools for PR 3457

Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/3457  See eng/common workflow

/check-enforcer override


fix: Chrome debug UI break fixed

What

Chrome Debug UI  break Fixed

Screenshot

Current behaviour

Fixes bug(s)

#1372

Part of

https://github.com/openfoodfacts/smooth-app/issues/1171
(please be as granular as possible)

Heyy @abhay1821 screenshot test failing, could it be that your changes  lead to some unexpected changes in the preferences page

@M123-dev So what should be the next step should I add one more commit then push it again?

You can regenerate the reference  screenshots by running flutter test --update-goldens

Hi @M123-dev,
So sorry for the inconvenience but this should be closed by #1440. Is there any way I can close this pull request So please let me know.


Cli upgrade

It will also be good to add more comments.

Also, please comments in the code wherever you can.

Please add a good description to this PR as well.


my own dataset to run eegiza

Thank you for sharing. I would like to use my own dataset to run eegiza. What should I do?

Hi @Lihwnlp ,
In this repository you can only find examples how to run mgiza. For eegiza, I think you should look at https://github.com/kellymarchisio/ee-giza.

Thank you for your reply😊. I am here at the link https://github.com/kellymarchisio/ee-giza Coming over (because I couldn't find the issues on that link), I used it https://github.com/kellymarchisio/ee-giza The tutorial ran my own data: I followed the run eegiza. sh script to place my data in the root directory under data/and ran "sh run eegiza. sh de en 1000", but the word alignment results I obtained were very poor (even worse than traditional Giza++), and I want to know which link went wrong. Looking forward to your reply, thank you 🌹🌹🌹
Additionally, running "sh run eegiza. sh de en 1000" seems to generate an error. My environment is Ubantu 18.04, so I chose "bash run eegiza. sh de en 1000"


String related fixes and support for passing request.json to Exceptional

Jökull,
Thanks for the pull request. I'm trying to wrap my brain around a couple of the details. Can you provide me an explanation (i.e. use case) for why you need to monkey patch the JSON encoder to ignore errors? Where are you seeing malformed UTF-8 data? Also, could you provide sample JSON request data that you want the extension to handle?
Cheers,
Jonathan.

I tried to extend the JSONEncoder class in a clean way but it's not broken down in any way I could see that allowed me to overwrite the decode methods in question. That's my I monkeypatch the string decode, to never fail.
What fails is a random bytestring. Try:
import os; os.urandom(20).decode('utf-8')

This is common to generate secret keys that are hard to guess. Flask documentation even suggests using os.urandom to create the SECRET_KEY used by the session module in Flask.
In any case, I think the error reporting should just "never fail". Decoding a string with "ignore" is a safe way to get at least something printable.
--
The request.json stuff is kind of a controversial idea. I like to see what parameters were submitted against my JSON api however, and I believe other developers might have the same need. Tell me what you think : )

So, to restate your underlying motive, you want Flask-Exceptional to support random byte strings without failing. (Like you, I generate keys as suggested by the Flask documentation, but I always hex-encode the result - so I wasn't seeing the issue you trying to guard against.) I'm going to make a bold assertion that the only Exceptional data that could potentially screw-up UTF-8 encoding would be coming from the current_app.config dictionary. If that's true (and I'm 90% convinced that it is), then a better fix would be localized to those particular values (near line 270):
if isinstance(value, basestring):
    value.decode("utf-8", "replace").encode("utf-8")

I'm extremely wary of monkey-patching json's encode_basestring and think that this approach is preferable. Either way, I'm interested to hear back from you re: my assertion and approach.
--
I like the idea of reporting request.json data to Exceptional. But there will need to be some changes to support earlier versions of Flask along with keeping the current request.form processing intact. I'm looking at changing the initialization of parameters = {} in the __get_request_data method to something like this:
try:
    parameters = request.json or {}
except:
    parameters = {"INVALID_JSON": request.data}

Again, I'd like to hear your thoughts. Either way, I'm planning on incorporating your pull request changes into a modified version of exceptional.py which I will either commit or send to you for review.
Thanks again,
Jonathan.

So you think it's safe to assume all data sent to Exceptional is utf-8 decodable? I've seen some wacky HTTP User Agent strings, as an example of things that might trip the JSON payload sent to Exceptional. I feel strongly that this should simple never, ever fail.
Looking forward to seeing your .json/.form idea.

Ok, you talked me over the cliff. Please take a look at the 0.4.8 commit for a version of your changes - factored to support multiple versions of Flask, requiring simplejson >= 1.9.1 (for python 2.5), and with associated unit testing.
Have a look and let me know how it works for you. If everything looks fine, I'll close this pull request and deploy 0.4.8 to PyPI.
Thanks!

Great! Let me see if it behaves over the weekend. Will report here on monday.

All good from my end.


ACCUMULO-3455: ShellOptionsJC should extend ClientOpts

The ticket seems outdated and while there is some overlap between the two classes, their use looks different enough to keep them separated. So I just unified their password handling.

@BukrosSzabolcs  thanks for the contribution I merged it with a few follow on changes in e604ec49e4e67e6256450c4b1df0c38c7508278a.  If you would like to be added as a contributor on the website please submit a PR using the following link
https://github.com/apache/accumulo-website/edit/master/pages/people.md


How to implement API Rate Limiter in NodeJS

Proposed title of the article
How to implement API Rate Limiter in NodeJS
Introduction paragraph (2-3 paragraphs):
A technique for restricting network traffic in a system is rate-limiting. It imposes a cap on how many times an operation can be repeated in a system in a given period of time.
Node.js is a free, open-source server environment. It uses javascript on the server and it runs  on various platforms (Windows, Linux, Unix, Mac OS X, etc.)
Key takeaways:
By the end of this tutorial, the reader will:

Understand rate limiting.
Understand the significance of restricting API request rates.
Develop NodeJS APIs that restrict the number of requests that are accepted.

References:
Templates to use as guides

https://www.w3schools.com/nodejs/nodejs_intro.asp
https://www.npmjs.com/package/express-rate-limit

@Olanetsoft I have suggested this here #1919

@Olanetsoft
like @paulodhiambo mentioned - this one is in the works -perhaps you could tweak it to make it substantially different or suggest a new topic .


Encoding Issues

I'm trying to receive some different special characters (é,í, ó, ñ ) from my Electron cgi application but when I receive the data I'm getting: �

I wish this was more clearly documented on the examples or something as it would have saved me at least a couple hours trying to figure out why I was failing to parse the json with UTF-8 encoded characters.

Hi @sbowler
Yes, this needs to be documented and maybe even be an explicit option when creating the connections (i.e. specifying which encoding to use).
Can you provide me some more info into how you ended up with a different encoding in Node and .Net ? That would be helpful so I could think of what would be the best way to add the encoding as an option.

Hey @ruidfigueiredo,
like mentioned in my E-Mail I will provide some details on how you can reproduce this, it`s pretty much the same like the example @jofallas gave you (Not using it like this, but it shows the two different ways to get this encoding bug):
OS: Windows
In node:
connection = new ConnectionBuilder()
        // You can also connect directly to the exe file, it does not matter.
        .connectTo('dotnet', 'run', '--project', 'core/Transformer')
        .build();

connection.on("transformUpdate", (newStatus: string) => {
  console.log("newStatus", newStatus);
});

connection.send("loadEventlogHeader", {}).then((result: string) => {
  console.log("result", result);
});

In .net:
connection.On<HeaderSetting, string>("loadHeader", headerSettings =>
{
   return "Durchführung der Reise";
});

.net example two:
connection.Send("transformUpdate", "Durchführung der Reise");

Setting the output encoding explicitly - like @jofallas mentioned - also works for me.
Thanky you for your effort!

Added the the UsingEncoding(System.Text.Encoding encoding) method to ConnectionBuilder, usage:
var connection = new ConnectionBuilder().UsingEncoding(System.Text.Encoding.UTF8).Build()
Seems like this issue is always because .NET in some regional settings (only in Windows?) does not use UTF8.


HuskSync commands not working in the console

version of HuskSync : 3.6.8
Paper version : 1.20.4
Issue : no Husksync command works when using it on console (tried with migrate)
Plugin on the server:

Message get:

Tried with last alpha version. The plugin disables and the log says the version of HuskSync is for 1.21.3.
I tried with lower versions and the 3.6.4 works for 1.20.4 but the commands aren't working in console. Got the same message than before.

Unfortunately, your version of HuskSync is no longer supported and it seems this error is due to adventure-specific incompatibilities. The last supported HuskSync version for 1.20.4 should be 3.6.8, so you can give this version a try.
Please upgrade your server to a compatible version of Minecraft supported by HuskSync: https://william278.net/docs/husksync/compatibility

https://i.imgur.com/62lW4Ic.png
Still have the same problem, commands don't work on console. Do you think I can try it online ? If I lose my data and others players don't, it's actually fine.


Add-Migration fails when AudioRoutingEndpoint is used within UWP App

Steps to reproduce
I have a UWP app which includes a function in a Xaml.cs file that references "AudioRoutingEndpoint". Whenever I try to perform an "Add-Migration" command, the execution fails with an exception stating that it cannot find this type. It should be noted that the use of this type occurs nowhere on any of the model or context classes; it's purely in the UI and has nothing to do with the Entity Framework.
When I comment out the reference to this type, the migrations begin working again.
The issue
Exception message: System.TypeLoadException: Could not find Windows Runtime type 'Windows.Phone.Media.Devices.AudioRoutingEndpoint'.
Stack trace:
`System.TypeLoadException: Could not find Windows Runtime type 'Windows.Phone.Media.Devices.AudioRoutingEndpoint'.
   at System.RuntimeTypeHandle.GetDeclaringType(RuntimeType type)
   at System.RuntimeType.RuntimeTypeCache.GetEnclosingType()
   at System.RuntimeType.get_DeclaringType()
   at System.RuntimeType.RuntimeTypeCache.GetNameSpace()
   at System.RuntimeType.get_Namespace()
   at Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder.<>c__DisplayClass17_0.<ContainsForeignMigrations>b__0(TypeInfo t)
   at System.Linq.Enumerable.<>c__DisplayClass6_0`1.<CombinePredicates>b__0(TSource x)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
   at Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder.ContainsForeignMigrations(String migrationsNamespace)
   at Microsoft.EntityFrameworkCore.Migrations.Design.MigrationsScaffolder.ScaffoldMigration(String migrationName, String rootNamespace, String subNamespace)
   at Microsoft.EntityFrameworkCore.Design.Internal.MigrationsOperations.AddMigration(String name, String outputDir, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigrationImpl(String name, String outputDir, String contextType)
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.AddMigration.<>c__DisplayClass0_1.<.ctor>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.<>c__DisplayClass3_0`1.<Execute>b__0()
   at Microsoft.EntityFrameworkCore.Design.OperationExecutor.OperationBase.Execute(Action action)
Could not find Windows Runtime type 'Windows.Phone.Media.Devices.AudioRoutingEndpoint'.`

Further technical details
EF Core version: 1.0.1
Operating system: Windows 10, latest update.
Visual Studio version: Visual Studio 2015 Community, Update 3

@RonPenton Could you share a repro project to help us investigate? (If not, I'll do my best without it.)

I am not able to reproduce this. I suspect it may be a duplicate of #4683 which was fixed in 1.0.0-preview3-final of the tools.


ENYO-3210: Added better support for trackpad scrolling in Firefox.

Issue
For environments where we are using a trackpad for scrolling, as opposed to a standard scroll wheel, there are issues with scrolling in Firefox, specifically when using a non-native scroller (i.e. Moonstone scroller, which relies on the value of the wheelDeltaY event property).
Fix
In short, handling mouse wheel events is broken and incomplete as a web standard, currently.
The mousewheel event we are currently handling is deprecated and not supported at all in Firefox. I had initially implemented a version of the cross-browser mouse wheel handling as recommended by MDN (https://developer.mozilla.org/en-US/docs/Web/Events/wheel#Listening_to_this_event_across_browser), but the current, standard wheel event does not handle scroll inversion and provides no way to detect or account for this case.
Our existing technique for handling Firefox scrolling is to listen for the DomMouseWheel event, but for the case of trackpads, because it is difficult to scroll exclusively in a single axis, scrolling in both the x and the y axes are encapsulated in separate event instances. This causes problems with Moonstone's scroll strategy, as this results in math calculations involving an undefined wheelDeltaY value in some cases (these cases cause fatal errors that cannot be recovered from). There was also an issue where using the trackpad would result in significant pauses and hitches with scrolling. This was resolved by fixing our rAF support for Firefox in https://github.com/enyojs/enyo/pull/1414.
To resolve the outstanding issue, I have made a tweak to the Firefox-specific scroll code in gesture to normalize any undefined values to 0. This allows horizontal scrolling and cases where we have scrolling in both axes to work properly. Adding guard code to the mousewheel handler in the strategy would not suffice for these cases, and this has the added benefit of encapsulating the fix within the Firefox-specific handler.
Notes
I would be very open to hearing about any alternatives I may have missed. That being said, I feel that this change is not necessarily high-risk, as all of the logic is encapsulated in a handler for a Firefox-specific event.
Enyo-DCO-1.1-Signed-off-by: Aaron Tam<EMAIL_ADDRESS>

Setting many timeouts can be expensive. It might be better to use animation frames to throttle the amount of events. I don't know if it will be significantly faster, but since the amount of animation frames triggered will be less if frame rate goes down at least the timeouts won't make things much worse.

@Rayraz point well-taken. I had utilized rAF initially, but ran into an issue that may have been independent of rAF. It seems to work alright when replacing the setTimeout with rAF. I'll do some more verification and likely update, thanks!

Noting here as well that there are still some issue with trackpad scrolling in Firefox when the gesture overlaps with history navigation. So, if you have 2-finger scrolling and 2-finger gesture to go back, FF won't start dispatching DomMouseWheel events for horizontal movement until it encounters some vertical movement so it knows the user doesn't mean to navigate off the page. onwheel fires immediately regardless of direction but suffers from the inversion issue @aarontam mentioned above.


resize bar

is there a way to resize the bar? I feel that it is way too tall for my small screen. it also adds a bar onto the friends list which I do not like since it makes the viewable area smaller. is there a way to add a toggle to enable/disable the bar in the friend area and a way to edit the height of the bottom bar so I can make it thinner?

as of v1.4.0, yes you are
please redownload the theme and check out the latest changelog for more info


Opening PR causes crash

Opening this PR causes a crash
iPhone SE, iOS 11.4
Edit: looks like I can’t open any PRs :(

Duplicate of #1719 and is already fixed by this PR #1720. @bobheadxi
I tried it with the latest version of master branch and it works.
Try it with that one 😊


refactor: use @leather/models

Building Leather at commit fdb6e90

You can prob close this? I can include these changes with the work I'm doing to use the new asset data models in the queries refactor? I have installed the most current models package on my WIP branch.

Yep, closing. Thanks


Remove old datasplitters

with #2098 and #2014, we add oversampling/undersampling support to AutoML. Since we decide to do sampling after feature generation, our previous PR that added sampling data splitters is no longer needed. We can delete these old samplers.

Good call, agreed!


Example code in ByteBuf 4.0 javadoc uses 3.x API

https://netty.io/4.0/api/io/netty/buffer/ByteBuf.html
// Iterates the readable bytes of a buffer.
ByteBuf buffer = ...;
while (buffer.readable()) {
System.out.println(buffer.readByte());
}
But readable() was changed to isReadable() in 4.0

@justinjhendrick yep... We love PR's, maybe you want to submit one ?

I'd like to but my company doesn't want to go through the analysis required for me to contribute to netty for such a small PR. Sorry.

@justinjhendrick no worries... I will fix it

Thanks!

Fixed


Fix overlaps between CNS and PNS

This PR fixes ~100 unsatisfiable classes in the merge of Uberon + CL + FBbt that are all caused by the fact that 7 FBbt classes are part of both the CNS and PNS. See #1756 for details and rationale.
closes #1756

@Clare72 Since this is about nervous systems, I’d like you to have a look at this before I merge it.


Add elements from repositories under different org / owner

As noted in the README

NOTE: This Action (currently) only supports auto-adding Issues to a Project which lives in the same organization as your target Repository.

and also raised on the feedback forums (without ack from GH) it is not possible to add issues to a board that belongs to a different org. As this is possible in the UI, it appears to be a validation issue in the GraphQL API.
My question / suggestion is, will this ever become possible? It would be a huge relief in managing multi-org set ups that popular open source ecosystems use, such as Ory.
Thanks! :)

It's definitely on the radar to support across the board.  I don't have a timeline for this yet

Awesome!!!

Unfortunately this still doesn't work:

Was it closed in error?

@aeneasr can you try v0.3.0? I believe that's when this capability was released.

Yes, perfect, thank you!
One problem remains though - this doesn't work when people push from forks as the token is not available on the fork due to security settings. Is there a way to work around this (preferrably not making the token available to forks :D )?

Yes, perfect, thank you!

No problem!

One problem remains though - this doesn't work when people push from forks as the token is not available on the fork due to security settings. Is there a way to work around this (preferrably not making the token available to forks :D )?

I'm going to leave this one for @mattcosta7

Yes, perfect, thank you!
One problem remains though - this doesn't work when people push from forks as the token is not available on the fork due to security settings. Is there a way to work around this (preferrably not making the token available to forks :D )?

@aeneasr would you mind writing that up in a bit more detail on a new issue so we can look into what/if any updates we can make here to support it?

I just tried this out and received a "Creating draft issue in project" message. However, I don't see any (draft) issues in the project. Am I missing something? For additional context, this project is currently private but I didn't think that would matter as long as the token has access.

I just tried this out and received a "Creating draft issue in project" message. However, I don't see any (draft) issues in the project. Am I missing something? For additional context, this project is currently private but I didn't think that would matter as long as the token has access.

It uses a quirk of the API to make a draft - which is immediately converted to a real issue since it's added by URL (which is the same way projects work when copying/pasting a link to an issue/pr into a project)

Hmm... but I'm still not seeing the issue show up in my project. I turned on debugging but there wasn't anything useful. Anything that I can try to dig into this?

I can confirm that the issues are correctly added to the board for me, even though the repository is in org A and the project board in org B


Update Nushell to 0.32.0

Motivation for this change
Things done

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

[ ] 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 nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Added a release notes entry if the change is major or breaking
[ ] Fits CONTRIBUTING.md.

Is there a simple way to get the value of cargoSha256?

Result of nixpkgs-review pr 125325 at a8fcba85 run on aarch64-linux 1

1 package failed to build:

nushell

Note that build failures may predate this PR, and could be nondeterministic or hardware dependent.
Please exercise your independent judgement. Does something look off? Please file an issue or reach out on IRC.

 It should be nushell: 0.31.0 - > 0.32.0, as should be your PR name (though that doesn't matter as much).

Hey @fufexan, I've amended the commit so that the message is correct.

Hey @SuperSandro2000 could you take a look at this?

Thanks!


Auto-calculate size of scrollbar for panel overflow

It would be cool if a Panel could calculate what the maximum height of all child entities is, so it can set the scrollbar "Max" automatically.

I agree, added AdjustMaxAutomatically boolean, set it to true to auto-adjust max value.
Cheers.


kitti native evaluation offline output

Hi Weijing,
I have installed the system packages of texlive-extra-utils, gnuplot, and ghostscript. But the output of the offline evaluation is still empty file named 'plot'. What have I done wrong? Is the 'include_directories' in cmake requires sudo access?
There are no warnings displayed, just 'done.' has shown the moment I executed the code (which is very fast)

@wailok09  Did you finish the inference?

May I ask whether the output directory is pointing to the place where I store the output of evaluation or the inference result? I'm not sure about where I shall place the inference result

@wailok09 Did you finish the inference?

I placed result_dir one more folder forward, it's successful now. Thank you.


window.iFrameResize causing performance issues

I have been using iframe-resizer to resize my iframes, everything has been working perfectly however I wanted to update how the height was calculated such that my iframes are resized to the height of the content since initially the iframes had a lot of blank space at the bottom which was coming from the body of the iframe. However when I include the heightCalculationMethod using the window.iFrameResize on the iframed page my parent page performance takes a hit, whenever I try to scroll sometimes the content on the iframes disappear then reappear after sometime, sometimes the page freezes yet this wasn't the case before when I hadn't modified the heightCalculationMethod. When I remove the window.iFrameResize from the iframed page everything starts working normally again, any idea why this would happen. Any help will be much appreciated thanks. Below are the setup on both pages.
Parent page
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.2.10/iframeResizer.min.js" integrity="sha256-0FsDr6k3iiIaao/F1olkJHUfEU/eGSYClQ7ZhVc2md8=" crossorigin="anonymous"></script>
<script>
  iFrameResize({
      log: false,
      onResized: function(messageData) {
        var iframe = messageData.iframe;
        $(iframe).LoadingOverlay("hide");
        var nextElement = $(iframe).next('iframe');
        if (!nextElement.is('iframe')) {
          nextElement = $($(iframe).parent('section').next('section').find('iframe')[0]);
          $($(iframe).parent('section').next('section').find('header')[0]).show();
        }
        nextElement.show();
      },
      checkOrigin: [domain_of_iframed_page] }, iframeId));
</script>

Iframed page
<srcipt>
  window.iFrameResizer = {
    heightCalculationMethod: function () {
      var body = document.body;
      var html = document.documentElement;
      const contentWrapper = document.querySelector('#main');
      return Math.max(contentWrapper.clientHeight, contentWrapper.offsetHeight);
    }
  }
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.2.10/iframeResizer.contentWindow.min.js" integrity="sha256-1KGRbLQC4fuk7tM1+xnGjCOig1VPdJwj513JDKebuA8=" crossorigin="anonymous"></script>

I expect this call const contentWrapper = document.querySelector('#main'); is expensive and you really only need to do it once, so can it be moved out of the function?
You also don't need those two vars

I'm also not sure what your onResized function is for, but that Ain't going to run faster either

I'm also not sure what your onResized function is for, but that Ain't going to run faster either

There's an overlay with a loader I display while the iframe is resizing and removing it once the the iframe has finished to resize. I'm using it also to display the next iframe once the current iframe has finished resizing. Any ideas on how I can improve that.

I expect this call const contentWrapper = document.querySelector('#main'); is expensive and you really only need to do it once, so can it be moved out of the function?
You also don't need those two vars
<srcipt>
  const contentWrapper = document.querySelector('#main');
  window.iFrameResizer = {
    heightCalculationMethod: function () {
      return Math.max(contentWrapper.clientHeight, contentWrapper.offsetHeight);
    }
  }
</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/iframe-resizer/4.2.10/iframeResizer.contentWindow.min.js" integrity="sha256-1KGRbLQC4fuk7tM1+xnGjCOig1VPdJwj513JDKebuA8=" crossorigin="anonymous"></script>

I have implemented this, however still facing the issues of freezing screen as well as content on the iframes disappearing then reappearing after sometime.

Hey @davidjbradshaw I'm trying to detach iFrameResize from the iframe however it doesn't seem to work. When I click on the iframe I still logs related to iFrameResize, below is the code I'm executing. Thanks for the help.
const Iframe = document.querySelector(iframeId);
iframe.iFrameResizer.removeListeners();

You might need to debounce your onResize event. Beyond that I am not sure.
Use close() rather than removeListeners(), the later is only for wrapper libraries like iframe-resizer-react

Hmmm... tried using close() but that just deletes the iframe, how do I debounce the onResize event.

https://lodash.com/docs/4.17.15#debounce


addListener doesn't work

I am using 4.2.0-beta.1,
addListener doesn't work, and console.log never invoke
    componentDidMount() {
        this.props.navigation.addListener(ActionConst.RESET, () => {
            console.log('RESET');
        });
        this.props.navigation.addListener(ActionConst.FOCUS, () => {
            console.log('FOCUS');
        });
        this.props.navigation.addListener(ActionConst.PUSH, () => {
            console.log('PUSH');
        });
        this.props.navigation.addListener(ActionConst.POP_TO, () => {
            console.log('POP_TO');
        });
}

is there a way or documentation that I can look into?

I used wrong actions
willFocus - the screen will focus
didFocus - the screen focused (if there was a transition, the transition completed)
willBlur - the screen will be unfocused
didBlur - the screen unfocused (if there was a transition, the transition completed)


Client channels are now self-healing when they lose connections to se…

…rvers. Retry logic is added.

Mocha tests are passing.


Fix 80 column on newgem gemspec

80 column is not respected on newgem created, this have to be changed every new gem for those respecting this convention.
Cheers

👍🏻

@homu r+

:pushpin: Commit e469222 has been approved by segiddins

:zap: Test exempted - status


Instances vs EBMs

I notice that the Allen Cells are classified under EBMs, but they are experimental instances and we describe them as such in the paper.  Can you create that classification and move Allen under it?

On review, the Allen classes that we have right now are EBMs and not instances. There are 798 EBM types in the ontology derived from 1923 individuals. I can include the individuals in the database using the URI from the Allen API and assign them to the type if we want.


Resiliency module support for PowerFlex driver

Description
Resiliency module support for PowerFlex(v2.7.0) driver in csm-operator.
GitHub Issues
List the GitHub issues impacted by this PR:

GitHub Issue #

https://github.com/dell/csm/issues/739

Checklist:

[X] I have performed a self-review of my own code to ensure there are no formatting, vetting, linting, or security issues
[ ] I have verified that new and existing unit tests pass locally with my changes
[ ] I have not allowed coverage numbers to degenerate
[ ] I have maintained at least 90% code coverage
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have maintained backward compatibility

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also list any relevant details for your test configuration

[X] Installed the driver and verified all args and env var, driver is coming up properly with podmon sidecar.

@sakshi-garg1 Can we rename the title of this PR, something like this: moduleConfig changes for PowerFlex driver.
This title should be used for the next PR, where we will be extending the driverConfig and sample file.


Move tests to autoload-dev

Hey Joachim,
thanks for the contribution. Nevertheless, it is not that simple. We need to load Behat services out-of-the-box.
There was an issue even about it #174

Oh, thanks for pointing out :)


Discard uncommented code

I have some code that I want to use only for development purposes. Is there any way to discard that code while minifying the file for production? Kinda like wrapping that code in a unique format to let the parser know it’s meant to be discarded.

Please create an issue here: https://github.com/kangax/html-minifier/issues

Oops. My bad. Should have read the README before creating an issue. Thanks @jonschlinkert 😄


Not displaying sideloaded font after converting to kepub

gentium.zip
I'm trying to convert an epub containing css access to a sideloaded font. I tested the files in https://www.mobileread.com/forums/showthread.php?t=329936, which I also attached here. The epub version displays Gentium Plus correctly, but takes forever to open. So, I used kepubify (latest release) to convert it to kepub, but the sideloaded font is no longer displayed.
Thanks a lot!

That's because it's not a valid EPUB—it's using RMSDK-specific hacks:
ERROR(OPF-014): Test - fixedup_dnsb.epub/page_styles.css(0,0): The property 'remote-resources' should be declared in the OPF file.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(10,5): Remote resource reference not allowed; resource must be placed in the OCF.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(17,5): Remote resource reference not allowed; resource must be placed in the OCF.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(24,5): Remote resource reference not allowed; resource must be placed in the OCF.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(31,5): Remote resource reference not allowed; resource must be placed in the OCF.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(38,5): Remote resource reference not allowed; resource must be placed in the OCF.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(45,5): Remote resource reference not allowed; resource must be placed in the OCF.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(52,5): Remote resource reference not allowed; resource must be placed in the OCF.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(59,5): Remote resource reference not allowed; resource must be placed in the OCF.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(66,5): Remote resource reference not allowed; resource must be placed in the OCF.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(73,5): Remote resource reference not allowed; resource must be placed in the OCF.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(80,5): Remote resource reference not allowed; resource must be placed in the OCF.
ERROR(RSC-006): Test - fixedup_dnsb.epub/page_styles.css(87,5): Remote resource reference not allowed; resource must be placed in the OCF.

To properly embed fonts in an EPUB, it needs to be:

Added to the OPF package document's manifest.
Added to the EPUB.
Referenced via relative paths in the font CSS.

If you want, I can provide some example code to use.


X-Not-Sampled ignored by TraceFilter

X-Not-Sampled is being ignored by TraceFilter (and probably other incoming messages). To test this just create a sample app and curl it with e.g.
$ curl -v -H "X-Not-Sampled;" -H "X-Trace-Id: ffffffffeeeeeeee" -H "X-Span-Id: ffffffffeeeeeeee" localhost:8080

The logs will show the request being traced (fine) but with export=true (not fine).

It turned out to be more of a problem with the HTTP clients (not adding the X-Not-Sampled header if the Span was non-exportable).


Request: Place *.state files in ~/.local/state/mycroft

Add the moment the *.state files are being saved to /tmp and /tmp is mounted to ~/ovos/tmp however I would like to mount /tmp to a tmpfs such that all the different .lock and other tmp files are automatically deleted at a reboot.
I do not want to loose *.state files across reboots though, otherwise it will always install the pip packages listed within *.list files at every boot.

I noticed this is taken care of within the Alpine PR however would like to extend the request with;
can we please implement this mechanism to all container images except the ovos-gui-shell?
Even if we do not really mention it within the docs.
i am running all containers under Podman with quadlets utilizing systemd. This so there is no overhead of a container daemon.
Within that method, containers are started with the --rm and --replace flags. Keep any installed Python packages and to make sure they get re-used when the images are updated, i bind mount a volume over the user's .venv folder within the container which copies over the content from the image if the volume does not exist.
That way it also allows for an easy rest method by just "podman volune rm <venv_volume_name>" and remove the state file if needed.
Your .list / .state mechanism is perfect however can easily be also used to install any pip installable python package. The above will then also take care of keeping anything customly installed on top op the image.
(It will not influence any users that do not use it)

https://github.com/OpenVoiceOS/ovos-docker/pull/61


8-bit jungle DOS-Error #205

Running the "8-bit jungle" music disk from the interface fails after the whdload splash screen.

Works fine when manually launched from workbench.

Can confirm that I can reproduce, will take a look.


Empty release0.56 PR for testing on gpuCI

Checking whether this appears broken on gpuCI (or runs on it correctly at all)

gpuci run tests


Modest performance, address #12647

closes #12659
closes #12654
closes #12647
closes #12809
Major performance improvements through use of Cython

@kshedden you prob know this, but all of the perf issues have to do with going back-forth between cython/python. the ideal would be to put the entire loop in cython, rather than in python, then a call to parse a single line in cython.

Actually I didn't know that there was that much function call overhead for
cython.  I am just passing scalar value and memory slices (plus the parser
object but we could refactor that out if that is the problem).
On Thu, Mar 17, 2016 at 9:22 AM, Jeff Reback<EMAIL_ADDRESS>wrote:

@kshedden https://github.com/kshedden you prob know this, but all of
the perf issues have to do with going back-forth between cython/python. the
ideal would be to put the entire loop in cython, rather than in python,
then a call to parse a single line in cython.
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/pydata/pandas/pull/12656#issuecomment-197877352

yeah because everything has to be checked every time. Its not what you are passing, but the function call itself. You should be able move the entire loop and will get pretty good speedups.

This should resolve #12659, #12654, #12647.  Also adds test coverage with two new files.
The tests pass on most setups but there is one coredump on Travis.  I'm not sure it that is related to this PR.
There are also some performance enhancements here in the 2x-4x range.
@gdementen @jreback @ywhuofu @benjello @raderaj

@jreback I'm having trouble working with object dtype arrays in cython, would appreciate your help.
I have the following code, where source is a memory slice directly copied from the SAS file, and I need to slice it into smaller chunks which correspond to individual data values.  I am able to do something similar fine for float64 types (not shown below), but I can't get it to work for variable-length byte arrays.  These byte arrays will eventually become strings but I don't want to do the conversion here because we give the user the option to retain the raw bytes.  The error message I am getting is copied below the code.
I have also tried typing string_chunk as object[:, ::1] but that didn't work either.
cdef void process_byte_array_with_data(object parser, int offset, int length,
                                       uint8_t[:, ::1] byte_chunk,
                                       np.ndarray string_chunk):
    # ...
    bvec = bytearray(source[start:start+lngt])
    string_chunk[js, parser._current_row_in_chunk_index] = bvec

BufferError: Object is not writable.
Exception ignored in: 'pandas.io.sas.saslib.process_byte_array_with_data'
Traceback (most recent call last):
  File "stringsource", line 616, in View.MemoryView.memoryview_cwrapper (pandas/io/sas/saslib.c:14511)
  File "stringsource", line 323, in View.MemoryView.memoryview.__cinit__ (pandas/io/sas/saslib.c:10880)

docs are here
I think you want something like:
def process_byte_data(unsigned char[:] data):
    length = data.shape[0]
    first_byte = data[0]
    slice_view = data[1:-1]

so your data would be your source, its just a bunch of bytes.
you can directly slice them. Then you can cast them to what you need (you need to allocate memory and such). This is very much like working directly in C.
note that you are always working with bytes, and NOT unicode/str. you can decode things later.
HTH, and lmk.

@jreback I think this is ready now, known bugs and performance issues should be resolved

can u post perf comparison (also haven't looked but do we have asv for this?)

We don't have an asv, I tried setting one up but failed (I don't have a continuum distro and couldn't get it to work with virtualenv).
A rough timing on a 100K file: the released version (v0.18) takes around 11 seconds, this version takes around 5 seconds.  However csv reading is about 50x faster, so still a ways to go.

how this coming?

I think it is ready. to go, the known bugs are fixed and the performance is at least somewhat better.

a PEP checked faile
git diff master | flake8 --diff

I assume this includes the fixes from #12658 (or equivalent) as well?

FYI: http://www.principlesofeconometrics.com/sas.htm (getting encoding errors on the first one I tried, airlines...)

@jreback the file you linked works for me in py3 not py2, will look into that

yeah master seemed to have a Unicode issue with one of the files - not sure why it didn't show up on Travis

@jreback I think this is ready now

did u look at the refactor I posted?

Do you mean this one?
https://github.com/pydata/pandas/pull/12656#issuecomment-207865144
On Thu, Apr 21, 2016 at 7:52 PM, Jeff Reback<EMAIL_ADDRESS>wrote:

did u look at the refactor I posted?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/pydata/pandas/pull/12656#issuecomment-213163234

https://github.com/kshedden/pandas/pull/1

Thanks, runs clean locally, waiting on travis now.  The only change I made is that I left a few things in the decompressors int type due to overflow potential.

btw I only had a really small benchmark file
you prob have better

For the test file I have been using, I am now getting 3 seconds per 100K lines verus 11 seconds per 100K lines in the 0.18.0 version.
Also, I'm not aware of any files that fail under this version, although in some cases the encoding will need to be manually specified.

oh that sounds great!
oh so you are able to infer encodings in some instances? worth mentioning in docs / doc-string?
are there any other updates for doc-string / docs?

couple of issues on windows. going to fixup.

the airlines.sas7bdat, csv seem to be missing, can you push them up in another commit?

done
On Fri, Apr 22, 2016 at 10:54 AM, Jeff Reback<EMAIL_ADDRESS>wrote:

the airlines.sas7bdat, csv seem to be missing, can you push them up in
another commit?
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/pydata/pandas/pull/12656#issuecomment-213460751

ty. not sure why that didn't fail the tests, but oh well.

thanks @kshedden great effort!!!!

I may come back around with some more perf improvements in the cython code when I have some time.


pubsub:  CRITICAL: panic: runtime error: invalid memory address or nil pointer dereference

Doing the pub / sub tutorial for Go on Google App Engine Flexible environment listed here:
https://cloud.google.com/appengine/docs/flexible/go/writing-and-responding-to-pub-sub-messages
Follow everything as best as I can (which I believe is exact).  When I run it locally it will run, however when i try to create a message to send in the web interface it gives me the error above ( with other things).  Main code snippet below, though you can view total snippet at the above url.  Full Error below.
`func main() {
ctx := context.Background()
client, err := pubsub.NewClient(ctx, mustGetenv("GOOGLE_CLOUD_PROJECT"))
if err != nil {
	log.Fatal(err)
}

// Create topic if it doesn't exist.
topic, _ = client.CreateTopic(ctx, mustGetenv("PUBSUB_TOPIC"))

http.HandleFunc("/", listHandler)
http.HandleFunc("/pubsub/publish", publishHandler)
http.HandleFunc("/pubsub/push", pushHandler)

appengine.Main()

}`
`09:03:22 CRITICAL: panic: runtime error: invalid memory address or nil pointer dereference
goroutine 26 [running]:
google.golang.org/appengine/panic(0x149d8c0, 0x17ef8e0)
/usr/local/go/src/runtime/panic.go:491 +0x283
cloud.google.com/go/pubsub.(*Topic).initBundler(0x0)
/Users/ruben/go/src/cloud.google.com/go/pubsub/topic.go:327 +0x37
cloud.google.com/go/pubsub.(*Topic).Publish(0x0, 0x17ba580, 0xc4200160d0, 0xc4201d04d0, 0x0)
/Users/ruben/go/src/cloud.google.com/go/pubsub/topic.go:248 +0x11d
main.publishHandler(0x17b8880, 0xc4201fccc0, 0xc4201a0200)
/Users/ruben/go/src/github.com/GoogleCloudPlatform/golang-samples/appengine_flexible/pubsub/pubsub.go:101 +0x117
net/http.HandlerFunc.ServeHTTP(0x155d1c0, 0x17b8880, 0xc4201fccc0, 0xc4201a0200)
/usr/local/go/src/net/http/server.go:1918 +0x44
net/http.(*ServeMux).ServeHTTP(0x17ffac0, 0x17b8880, 0xc4201fccc0, 0xc4201a0200)
/usr/local/go/src/net/http/server.go:2254 +0x130
google.golang.org/appengine/internal.executeRequestSafely(0xc4201fccc0, 0xc4201a0200)
/Users/ruben/go/src/google.golang.org/appengine/internal/api.go:153 +0x77
google.golang.org/appengine/internal.handleHTTP(0x17b9d00, 0xc4202dc1c0, 0xc4201a0200)
/Users/ruben/go/src/google.golang.org/appengine/internal/api.go:121 +0x249
net/http.HandlerFunc.ServeHTTP(0x155cd40, 0x17b9d00, 0xc4202dc1c0, 0xc420258400)
/usr/local/go/src/net/http/server.go:1918 +0x44
net/http.serverHandler.ServeHTTP(0xc4202904e0, 0x17b9d00, 0xc4202dc1c0, 0xc420258400)
/usr/local/go/src/net/http/server.go:2619 +0xb4
net/http.(*conn).serve(0xc4200a1220, 0x17ba540, 0xc4201aa940)
/usr/local/go/src/net/http/server.go:1801 +0x71d
created by ne
2018/01/18 09:03:22 Metadata fetch failed: Get http://metadata/computeMetadata/v1/instance/attributes/gae_project: dial tcp: lookup metadata: no such host
exit status 1
Rubens-MacBook-Air:pubsub ruben$ go build
github.com/GoogleCloudPlatform/golang-samples/appengine_flexible/pubsub
./pubsub.go:38:17: undefined: pubsub.NewClient
./pubsub.go:98:10: undefined: pubsub.Message
./pubsub.go:102:20: topic.Publish undefined (type *pubsub.Topic has no field or method Publish)`

The app will not work as intended if the topic already exist.  The app adds topic in the project. That is probably why it worked locally first time and didn't work second time on the app engine.


Add UMD support for jQuery component injection

This injects jquery in the module definition.
Right now Twine is relying on a global definition. Marketing is converting Shopify's brochure to es6 components (signup uses Twine), so jquery will only be available as a defined component.
This also adds jQuery as a proper dependency, and removes the vendor.

Thanks for this!


Add test for fs.link() with newpath pointing to an existing file

https://codecov.io/gh/filerjs/filer/src/master/src/filesystem/implementation.js#L954 is a branch we don't test. To hit it, I think we need:

add a test to fs.link.spec.js
create two files
try to fs.link() one to the other (i.e., newpath exists)
expect an EEXISTS error to be returned

Somewhat similar to this test, but first create a file and use that instead of /mydirlink
  it('should not allow links to a directory', function(done) {
    var fs = util.fs();

    fs.mkdir('/mydir', function(error) {
      if(error) throw error;

      fs.link('/mydir', '/mydirlink', function(error) {
        expect(error).to.exist;
        expect(error.code).to.equal('EPERM');
        done();
      });
    });
});

Also, add another test for the same case using symlink instead of link, and try to hit https://codecov.io/gh/filerjs/filer/src/master/src/filesystem/implementation.js#L1147.


Fixes #762 - Add ability to target a specific server URL via query string

…his branch lets user trade against specific serverUrl if it is present in the query string. User can also clear server url

ClearServerButton.styles.tsx needs to be fixed up before this can be merged. Requested UX styles from the design team

Video demo of feature:
https://github.com/airswap/airswap-web/assets/90465420/ca51c08a-7dea-409d-a4bd-6a361321d5fb


(hyperlane) Create MVP of Mailbox on Retro

closing due to staleness and in favour of native bridge accounts


Strict-aliasing violation in Command allocations

Hi! First of all, kudos to this project, it's beautifully designed, really nice ideas!
I've been skimming over the implementation of the core part, while reading your design rationale, and noticed that commands are allocated from a static char array, which violates the strict aliasing rules.
The offending code is here, first reinterpreting a memory region of the char array as a Command pointer:
https://github.com/rxi/lite/blob/ba6c14846b97512254901357392d5a649fe130dd/src/rencache.c#L80
And the violation happens on the first access, writing the int to the memory location:
https://github.com/rxi/lite/blob/ba6c14846b97512254901357392d5a649fe130dd/src/rencache.c#L88

Does the static qualifier on the char buffer enforce strict aliasing semantics?  I thought char pointers were always assumed to be aliased by the compiled -- to allow for this use case.

AFAIK static has no effect on the enforcement of the strict aliasing rules, it's enforced regardless. Otherwise you are correct, char pointers are allowed to alias any region of memory, but they're allowed to be used only for:

viewing the raw bytes of a type (e.g. serialization): casts, union, memcpy are all allowed techniques in C, while C++ allows only casts and memcpy
or to reconstruct a type from it's raw bytes (e.g. deserialization): only unions and memcpy are allowed in C, while C++ allows only memcpy for this (although compilers at this time still generate correct code even for C++ union hacks)

However, using a char array to back live objects of other types is not allowed unfortunately.

If that is true, then how are C allocators permitted to back live objects?  Surely not a unique function per type to be allocated.

Yes I think you're reasoning is correct, this is strictly :) a spec violation, at this point no actual bug exists (at least none that I'm aware of). There's just the possibility that future changes in the code might lead to a situation where this becomes important. I apologize if my issue sounded alarming or anything like that :)
As for C-allocators, they deal in void which are explicitly allowed by the spec to be reinterpreted however needed, but I guess my wording is also poor regarding that point, the strict aliasing rules only affect the actual reads / writes, doesn't really care about what backs what.

Thanks for explaining. :)

Thanks for the conversation :)

Is there a practical way of achieving what the code does without violating strict aliasing? Otherwise I assume changing the build script to compile with -fno-strict-aliasing would prevent any potential issues

Yes, disabling optimizations related to strict aliasing would certainly allow the code to remain as-is, and if these optimizations are not crucial for lite, I guess that's the most convenient solution.
Otherwise I think the code could be restructured in a way (but I might have overlooked something else, please correct me), for example with these changes:

Switching the zero-length array member of the Command type to a pointer+size pair (or index+size), making the struct's size a constant
Changing command_buf's type to be an actual array of Command objects
Introducing another char array for the text data only.

This way, Command objects could point into this other char array, with the pointer+size pair, denoting the text data itself. Allocations and deallocations would happen in pair (in both Command and char array) for text commands.
One downside of this would certainly be the constant increase in the size of Command instances, as the pointer+size members would always take up some space.

For the sake of code simplicity and retaining the current behaviour I've added the -fno-strict-aliasing flag to the build script and will consider this resolved.
That being said I really appreciate the time you put in to outlining an alternate solution to the problem @integricho; using two arrays isn't something I had considered and is definitely helpful if this turns out to be something that does need changing in the future.
Thanks!

An alternative approach that includes -fno-strict-aliasing may be to qualify the cmd pointer as restricted.  See: https://en.wikipedia.org/wiki/Restrict
This qualifier tells the compiler, and signals to readers, "I promise that access to the underlying data will only happen through this (or derived) pointer."  In practice this often means "I am willfully violating strict aliasing semantics, but have determined there to be no actual bugs."  So with the aliasing optimizations disabled, this qualifier re-enables that optimization on this particular pointer.
Command *restrict cmd = (Command*) (command_buf + command_buf_idx);


Create two different analysis modes for polytracker

I think in general we have two use cases:

Do some exploratory analysis on a file or corpus of files, and a parser or corpus of parsers
Do a deep dive on some specific interactions between a file and a parser

We should create different compile time settings, or just build multiple targets to support these two different goals.

We might want to have this issue block on #84.


Brightness of IR sensor.

Required Info

Camera Model
D400

Firmware Version
<IP_ADDRESS>

Operating System & Version
{Win 10 / MacOS

Platform
PC

SDK Version
2.13.0 }

Language
C++

Segment
others

Hi, I am using RealSense camera as IR camera for sensing IR light. I often used R200 but switched to D435 since R200 is no longer available.
I found that IR frame of D435 is much brighter than R200. I tried to tweak exposure but couldn't get similar result with R200.
I know the module is different but does librealsense have any options that controls exposure or IR filter?
The attachment is comparison between D435(left) and R200(right) shooting the same room.

Yes you can change the exposure manually as well as the gain. You can also change the autoexposure setpoint if you prefer. It is under the advanced settings.

[Realsense Customer Engineering Team Comment]
let me close this ticket here, please feel free to open new ticket if any question


No matching distribution for packages throughout Setup script

I got confused because the guide asked for "Sagemaker Studio" but the right options were not present, it seems to have been recently renamed to "Sagemaker Classic"
We should update it to prevent confusion
During the setup I found the following errors:
No matching distribution found for matplotlib==3.8.2
I had to remove the version number
%pip install  \
    "langchain>=0.0.350" \
    "transformers>=4.24,<5" \
    sqlalchemy -U \
    "faiss-cpu>=1.7,<2" \
    "pypdf>=3.8,<4" \
    pinecone-client==2.2.4 \
    apache-beam==2.52. \
    tiktoken==0.5.2 \
    "ipywidgets>=7,<8" \
    matplotlib \
    anthropic==0.9.0

similarly I had to remove the version number for:
ERROR: No matching distribution found for numexpr==2.8.8
Also pysqlite3 just flat out could not be installed, please see bellow:
I saw somewhere online that its just supposed to be included?? So I tried to just comment it out and see if the lab would work...

I will update this ticket after I complete all of the lab sections
I would be happy to provide updates to this code, it would look good for my internal contributions @ Amazon

Follow Up note, I have tried this guide using Data Science 3 and none of the before mentioned problems occur
I recommend others do the same and not follow the guides recommendation to use DS2
I will see if I can get the instructions to reflect this

@cnmoise we made a few updates and are testing the notebooks manually on a regular cadence. Is this still a problem?


fix: convert checksum to buffer

Codecov Report

Merging #1318 (5b64873) into master (9010e70) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #1318   +/-   ##
=======================================
  Coverage   65.24%   65.24%
=======================================
  Files         126      126
  Lines        8753     8753
  Branches     1901     1901
=======================================
  Hits         5711     5711
  Misses       2794     2794
  Partials      248      248

Impacted Files
Coverage Δ

packages/encryption/src/keys.ts
68.75% <100.00%> (ø)

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 bc6c1a2...5b64873. Read the comment docs.


Process.exec and Process.spawn need quotes around location when isWin ?

I don't know where to start building all the ionide packages for vscode to test this & create a PR, but it seems like adding quotes around the value of location in Process.exec and spawn might fix https://github.com/ionide/ionide-vscode-fsharp/issues/76
because it currently evaluates to (for example)
cmd.exe /s /c "C:\Users\mark lambert\.vscode\extensions\Ionide.Ionide-fsharp-1.9.1\bin_forge\Forge.exe list templates --no-prompt"
but (testing in cmd.exe)
cmd.exe /s /c ""C:\Users\mark lambert\.vscode\extensions\Ionide.Ionide-fsharp-1.9.1\bin_forge\Forge.exe" list templates --no-prompt"
(note the extra double-quotes) would work.

v2.0 spawns forge successfully, so I guess this isn't required.


Make web app more compatible with gunicorn

Pull request checklist:

[x] CHANGELOG.md was updated, if applicable
[x] Documentation in docs/ or install-docs/ was updated, if applicable
[x] I have tested all changes