Cucumber steps not working on window

I am executing feature file on mac that is working fine, but same code not working on window, showing 0 scenario, 0 steps..
PS D:\flutterautomation\test_driver> dart app_test.dart 'ws://<IP_ADDRESS>:49898/U2WgzMRMI2w=/ws'
Connecting to running Flutter app under test at 'ws://<IP_ADDRESS>:49898/U2WgzMRMI2w=/ws', this might take a few moments
before run hook
0 scenario ()
0 step ()
0:00:00.002000
after run hook

Here is my app_test.dart code:

import 'dart:async';
import 'dart:io';
import 'package:flutter_gherkin/flutter_gherkin.dart';
import 'package:gherkin/gherkin.dart';
import 'hooks/hooks.dart';
import 'steps/home.dart';

Future<void> main(List<String> args) async {
  if (args.isEmpty) {
    print('please pass in the uri');
    exit(1);
  }
  final steps = [
    verifyHomeScreen(),
  ];

  final config = FlutterTestConfiguration.DEFAULT(
    steps,
    featurePath: 'features/*.*.feature',
    targetAppPath: 'test_driver/app.dart',
  )
    ..hooks = [HookExample(), AttachScreenshotOnFailedStepHook()]
    ..logFlutterProcessOutput = true
    ..verboseFlutterProcessLogs = true
    ..restartAppBetweenScenarios = false
    ..targetAppWorkingDirectory = '../'
    ..runningAppProtocolEndpointUri = args[0]
    ..targetAppPath = 'test_driver/app.dart';

  return GherkinRunner().execute(config);
}

@skumar11pk
I am assuming you are using flutter_gherkin plugin for your tests. If so, the correct repo to report this issue is here: https://github.com/jonsamwell/flutter_gherkin/issues
Closing from here.


✨ Do not require generate-examples for Makefile targets

make generate-examples is now a dependency only for make-deploy. It needs to be run manually before make deploy-bmo-cr or if something is changed after deployment.
Also change temporarily the CAPBM image to use v1alpha3 tag.

/lgtm


SCC reader always creates a caption on EDM

Closes #255

@palemieux
Here is another fix proposal for the "mid-row EDM codes" support

@valnoel Approved :)


Windows Paths break templating

The Windows paths don't work with the templating extension - it expects the paths to be posix paths.

Fixed in dd86493644e3ccee203ccb75b2e583016321415f


Forward defaultValue to GraphQL Schema

Hey there :vulcan_salute:
I have seen, that this feature already made it into GraphQLite v4, but as we need to stick with v3 for some time, we would like to see this feature also for our API customers.
Hope you might consider merging this, feel free to reach out to me.
Kind regards
Florian

Looks good to me! I'm starting wondering why I spent so much time filtering only the type.... :)


Guidance on using custom user defined crash dump directory and custom command like options

Custom user defined crash dump directory:
I have been trying to leverage radamsa on windows instance. The application that I am trying to fuzz using radamsa uses a custom folder to log dumps when a crash occurs. I wish to know if there is any specific flag that could be leveraged to overwrite the default crash folder. I took a look at (https://github.com/microsoft/onefuzz/blob/aa745501606f7c65c08349166e2d9e15fdda7879/src/agent/onefuzz-agent/src/local/generic_generator.rs#L111, https://github.com/microsoft/onefuzz/blob/aa745501606f7c65c08349166e2d9e15fdda7879/src/agent/onefuzz-agent/src/local/generic_analysis.rs#L95) and https://github.com/microsoft/onefuzz/blob/main/docs/command-replacements.md where its mentioned that {crashes} will be replaced at run time. Could you help me understand the workflow of input generation, crash-getting triggered and the generic_analyzer getting invoked. (_Background: I have fuzzed 2 apps, one with custom crash dump location and other following default directory, onefuzz identifies crashes with app with default directory for crash dumps and no crashes for custom location, so my other question is that is it the crash dump that triggers the generic_analyzer ? _).
custom command like options:
How would someone onboard an application which accepts multiple inputs as part of command like options. I do understand that we have --target-options and --target-env, but how could I structure my command which has multiple sample inputs consuming parameters. eg: target_exe.exe -o input_1.img -d input_2.sh , here input_1.img is my sample inputs that wish to pass as --inputs and input_2.sh would be static file that would be provided as part of --setup_dir.  My question is, how would I leverage --target-options to structure my command with inputs from --inputs.

Also, is there an option to slowdown the execution (wait time option) with generic_generator (I see radamsa generating inputs and then the target_exe is invoked to consume the inputs) ? The crash dumps are getting generated in C:\Windows\Temp directory, but are remaining as .tmp files instead of .dmp as they are getting overwritten on each execution. (Background: I have been trying to fuzz MSWord, Notepad kind of application which opens the file as a UI which consumes time)

I wish to know if there is any specific flag that could be leveraged to overwrite the default crash folder

There is currently no way to change the crash folder

I took a look at (...)

The code you are referenced is not being used when fuzzing in the cloud. That code is meant for fuzzing locally which is currently an undocumented feature.

Could you help me understand the workflow of input generation, crash-getting triggered and the generic_analyzer getting invoked

You are using the radamsa template. You can see how the tasks are being linked to each other in radamsa.py.
The template creates a job with 3 tasks
fuzzer -+---------->  crash_report
             |
             |
             +---------->  analyzer

The fuzzer task outputs the crash results into the crash container. Every crash triggers a crash report and an analysis from their respective tasks.
The fuzzer itself works by generating multiple inputs with radamsa. Then the target is run on every inputs. If a crash occurs, the input is written to the crash container.

How would someone onboard an application which accepts multiple inputs as part of command like options

using the list of variable substitutions you can use the following command line for your use case
target_exe.exe -o {input} -d {setup_dir}/input_2.sh

Also, is there an option to slowdown the execution (wait time option) with generic_generator

No, the wait time between the generation of the input and running the application is not configurable.
However, the timeout for running the application is configurable via the target_timeout. Unfortunately, we do not expose that value currently in the radamsa template (will be addressed in #1491).

Thanks @chkeita for the details.
There is currently no way to change the crash folder :
Is there a specific crash container directory that I could point my application to ? My understanding is that the crash container directory is being monitored for changes and whenever the. directory is updated, the crash report and analysis get triggered. If I know the directory its monitoring, I could make my application  point to that directly using the registry keys. Is it the arbitrary C:\<<uniq container name>>\onefuzz\crashes directory ?  along with the ready_only_inputs directory ?
No, the wait time between the generation of the input and running the application is not configurable.
However, the timeout for running the application is configurable via the target_timeout. Unfortunately, we do not expose that value currently in the radamsa template (will be addressed in #1491).
Does this mean, with this option I get to control the target_exe termination time ? That would definitely help in creating a proper dump file. Also do I have to make sure that the dump file has a unique name everytime it crashes ? or is it the being taken care by the crash_report or analyzer tasks ?

Is there a specific crash container directory that I could point my application to ?

No the application only received the input file as a parameter.  You could get the directory from the path but this not a supported scenario, there is no guarantee that we will keep the same directory.

My understanding is that the crash container directory is being monitored for changes and whenever the. directory is updated, the crash report and analysis get triggered.

There seems to be a misconception here. The fuzzer, the analysis and the report task run on 3 logically distinct machines.
So when a crash is created by the fuzzer the file gets uploaded to the container then downloaded by the other tasks.
I assume you are using the analysis task to create your custom dump. In that case the target application does not have accsess to the original crash folder.
If your application generates something special. you can create script that launches your application then grab all the files needed and put them in the output_dir of the analysis_task.

Does this mean, with this option I get to control the target_exe termination time
Yes the target_timeout is the amount of time we wait to consider the application unresponsive

The fuzzer, the analysis and the report task run on 3 logically distinct machines.: Got it!!
So when a crash is created by the fuzzer the file gets uploaded to the container then downloaded by the other tasks.: How does a crash get created by the fuzzer in this case ? I mean supervisor/agent.exe is running radamsa.exe and is generating mutations based on the --inputs and the mutated files are being created under C:\Windows\Temp. Then these files are being fed to --target-exe. My understanding is that the radamsa.exe is a fire-and-forget tool which doesn't keep a tab on crashes. My question is when the target_exe is fed with the input which would generate a crash, which component identifies that a crash has occurred and how does it do that ? Is it based on evenlog or a minidump file getting created or any custom logic ? (Background: My application is generating crashes, but I am not able to see that in crash directory and the onefuzz status option)

I should have written this

when a crash is detected by the fuzzer the input file that caused the crash is uploaded
We then repeat the process

So what ends up in the crash container is the only input file that caused a crash. Radamsa generates the input files then we detect if the that input cause a crash. This is done by running the target under a debugger.


[BUG] Time scale line charts do not render dataset in IE11

[BUG] Time scale line charts do render the data-set lines in Internet Explorer 10 and 11. The axis does however reflect the data-sets.
Expected Behavior

In Internet Explorer 10 and 11 the lines should be rendered

Current Behavior

The chart renders correctly with the exception with the data lines which are missing.

Possible Solution
Steps to Reproduce (for bugs)

Navigate to http://www.chartjs.org/samples/latest/scales/time/line.html in Internet Explorer 11
Observe no data lines are rendered

Context
Environment

Chart.js - Observed in 2.6.0 and 2.13
Internet Explorer 11
http://www.chartjs.org/samples/latest/scales/time/line.html

@mgsmith57 I don't have access to ie11 at the moment. Does http://www.chartjs.org/samples/master/scales/time/line.html work on IE11? That's the latest build from the master branch

Yes it does.

Awesome! I think the issue is that in 2.6 we used Number. MAX_SAFE_INTEGER and Number.MIN_SAFE_INTEGER which have been fixed to fallback if they don't exist.
Adding these lines before you include Chart.js should be sufficient
Number.MAX_SAFE_INTEGER = Number. MAX_SAFE_INTEGER ||<PHONE_NUMBER>740991
Number.MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991

That did the trick. Thanks for the quick resolution.

Thanks
What about a PR ? I lost 1 hour to understand what was the problem

What's the best way to apply the workaround? I've confirmed that editing chart.min.js fixes the issue, but that get's overwritten.  I can't workout where to make the declaration. We're using Angular 1.4

HI
Where should I add these lines exactly in .ts file.
Number.MAX_SAFE_INTEGER = Number. MAX_SAFE_INTEGER ||<PHONE_NUMBER>740991
Number.MIN_SAFE_INTEGER = Number.MIN_SAFE_INTEGER || -9007199254740991
In Angular ts file I am getting this error on adding anywhere
Compilation Error: Cannot assign to 'MAX_SAFE_INTEGER' because it is a constant or a read-only property.
Thanks

@saharemanish make sure your dates are formatted correctly. IE (and Firefox) have issues with the format of your string in the new Date(). Mine was working correctly in every browser except IE.


Set lower vpa cpu requests for vpn-shoot pod to 100m

How to categorize this PR?

/area networking
/kind enhancement
What this PR does / why we need it:
Set the min allowed vpa cpu requests for the vpn-shoot pod to 100m. This will set it to the same value as it is when vpa is disabled and will led to fewer cases where we see cpu throttling in cases of short cpu spikes.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

Min allowed vpa cpu requests for the vpn-shoot pod are set to `100m`.

I guess there is a typo in the commit message - it should be higher (instead of lower), right? Can you please correct this?
Can you please explain how you came up with the above value of 100m?

No its right, its the lower cpu request value/bound for the vpa. In the deployment we also use 100m cpu when the vpa is disabled. From there we took the 100m.


[#2024] More advanced drop-logic for spells on the spellbook tab

This changes the spellbook template, wrapping each section in a DIV tag for easier traversal. The look itself is unchanged.
The base actor sheet also saves the most recent _dragEvent when an item is dropped to be able to reference it in the needed functions.
Then finally, the base actor sheet has logic for PCs and NPCs to determine what the preparation mode of the dropped spell should be. The logic only applies to non-cantrips.

If the spell is dropped on innate/atwill, the mode is set to those.
If the spell is dropped on the cantrip section, no change is made.
If the spell is dropped on pact magic, the mode is set to pact.
If the spell is dropped on a leveled section, the mode is set to prepared.

If the spell is not dropped on a section...

and the actor has a class with pact magic,
and the actor has no other spellcasting progressions (specifically, the actor either has no other classes, or the other classes are pact magic or no progression),

... then the mode is set to pact.

If the spell is dropped on an NPC with no spellcaster levels, the mode is set to innate.

Attempts to resolve #2024.

I did a second run of it, will update the top message.


react2.default.findNodeHandle is not a function

I fixed this, following this page :https://github.com/cbcye/react-native-webview-bridge/blob/master/webview-bridge/index.ios.js


Block staff is not working in Easycloudbooks.

Allows blocked staff to login to the Easycloudbooks and allows to all the operations init.

Now checking Block filter


change api implementation to inventory screen

Signed-off-by: Adelia Ferreira<EMAIL_ADDRESS>Description
We're moving from previous get /device to get /devicesview to return data to inventory screen. This PR is current incomplete due dependencies in backend, so don't need merge at this moment
Fixes # (issue)
Type of change
What is it?

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Documentation update
[ ] Tests update

Checklist:

[ ] 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
[ ] New and existing unit tests pass locally with my changes
[x] I run npm run lint:js:fix to check that my code is properly formatted

Codecov Report

Merging #367 (785dfcf) into master (b7f6cee) will increase coverage by 0.07%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##           master     #367      +/-   ##
==========================================
+ Coverage   35.89%   35.96%   +0.07%
==========================================
  Files         116      116
  Lines        2471     2466       -5
  Branches      719      715       -4
==========================================
  Hits          887      887
+ Misses       1448     1443       -5
  Partials      136      136

Impacted Files
Coverage Δ

src/Routes/Devices/DeviceTable.js
52.27% <0.00%> (+5.33%)
:arrow_up:

src/Routes/Devices/Inventory.js
0.00% <ø> (ø)

src/api/index.js
39.37% <0.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 b7f6cee...785dfcf. Read the comment docs.

Closing due to conflicts and will be handled in another PR


iOS performance

It currently takes around 3 seconds on a iPhone 6s simulator to collect 93 contacts from the phone.  I know people who have several thousand contacts on their devices, (typically they synced their company address book to the phone).  Its not as uncommon as you might expect.
It's taking a very long time, and making their phone very hot to just cycle through them all.  And then it just crashes - I assume with a memory problem but I'm not getting any crash reports.
Is there anything that can be done?  I'll take a look my self but I'm no iOS developer.

Sorry - ignore this. The time is totally fine.


glide install error

[ERROR]   Error scanning github.com/russross/blackfriday/v2: cannot find package "." in:
        /Users/mac/.glide/cache/src/https-github.com-russross-blackfriday/v2
[ERROR]   Failed to retrieve a list of dependencies: Error resolving imports

should use https://github.com/russross/blackfriday/releases/v2.0.1 instead?

Hi @peterwillcn! Can you setup a github repo that reproduces this issue? I can't tell offhand what the problem is.

@lynncyrin try this https://github.com/elastos/Elastos.ELA/tree/release_v0.3.2

Sadly we only commit to supporting go.mod, so you have to take this to glide developers, and if they say it's a package problem, take it to the problematic package.


improvement be do not compact invisible version to avoid query error -230 #28082

cherry pick from #28082

run buildall

run buildall

run buildall

run feut


AMBARI-24112. Requests failed after Ambari upgrade with exception while executing custom service command.

What changes were proposed in this pull request?
Now server initialize STOMP cache with pre-generated hash on cache update. This avoids the situation when stomp cache is already available for agents, but has null hash.
How was this patch tested?
Manual testing.

retest this please

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2728/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/2734/
Test PASSed.


Better error message on access to non-existing attribute

I believe column access via __getattr__ is bad and shouldn't be implicitly encouraged by the error message when accessing a non-existing attribute on DataFrame. This patch changes the error message from 'no such column'  to the more generic 'no such attribute', which is also what Pandas DFs will throw.

Can one of the admins verify this patch?

Jenkins, test this please.

Merged build triggered.

Merged build started.

Test build #31263 has started for   PR 5771 at commit bcc2220.

Test build #31263 has finished for   PR 5771 at commit bcc2220.

This patch passes all tests.

This patch merges cleanly.

This patch adds the following public classes (experimental):

case class Hypot(

case class Pow(left: Expression, right: Expression) extends BinaryMathExpression(math.pow, "POWER")

abstract class MathematicalExpression(f: Double => Double, name: String)

case class Acos(child: Expression) extends MathematicalExpression(math.acos, "ACOS")

case class Asin(child: Expression) extends MathematicalExpression(math.asin, "ASIN")

case class Atan(child: Expression) extends MathematicalExpression(math.atan, "ATAN")

case class Cbrt(child: Expression) extends MathematicalExpression(math.cbrt, "CBRT")

case class Ceil(child: Expression) extends MathematicalExpression(math.ceil, "CEIL")

case class Cos(child: Expression) extends MathematicalExpression(math.cos, "COS")

case class Cosh(child: Expression) extends MathematicalExpression(math.cosh, "COSH")

case class Exp(child: Expression) extends MathematicalExpression(math.exp, "EXP")

case class Expm1(child: Expression) extends MathematicalExpression(math.expm1, "EXPM1")

case class Floor(child: Expression) extends MathematicalExpression(math.floor, "FLOOR")

case class Log(child: Expression) extends MathematicalExpression(math.log, "LOG")

case class Log10(child: Expression) extends MathematicalExpression(math.log10, "LOG10")

case class Log1p(child: Expression) extends MathematicalExpression(math.log1p, "LOG1P")

case class Rint(child: Expression) extends MathematicalExpression(math.rint, "ROUND")

case class Signum(child: Expression) extends MathematicalExpression(math.signum, "SIGNUM")

case class Sin(child: Expression) extends MathematicalExpression(math.sin, "SIN")

case class Sinh(child: Expression) extends MathematicalExpression(math.sinh, "SINH")

case class Tan(child: Expression) extends MathematicalExpression(math.tan, "TAN")

case class Tanh(child: Expression) extends MathematicalExpression(math.tanh, "TANH")

This patch does not change any dependencies.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/31263/
Test PASSed.

Merged build finished. Test PASSed.

Thanks. I'm merging this.


Requesting Python Syntax Highlighting improvement

I think it is self-explanatory. Color of method name and parameter should not be same.
Hope you will take a look at it. :smile: Thank you for the awesome theme!

@LordAmit
I will fix it soon

Glad to know :)
I have already noticed the frequent updates from you. Please do take care of yourself.

I fix it , however the  parameter scope is same to the comma scope, so I remove parameter height light, please update and check it, thx~

Hi,
It looks like this now:

I was imagining that the objects will be red, similar to the screenshot from your demo.js; but this will do. :smile:

@LordAmit
I also want it be red, but it will affect comma cause it have same scope to  the comma scope, I hope VS Code will improve it


Remote Settings: Toolbar icon

Continue #4718

Add "Edit" icon behind URL to jump directly to "Remote Settings"
Minor fix to remember original URL

Combined into #4724


depth-anaything-tensorrt-simplified.exe - System Error

Hi, thank you for this amazing project!
I faced an issue while running the .exe :
The code execution cannot proceed because opencv_world490d.dll was not found. Reinstalling the program may fix the problem
The path I added in the Cmaketext.txt for OpenCV is :
PATH\opencv\build\x64\vc16\lib
EDIT:
Find a workaround by adding the missing file directly in the folder with the .exe and it worked perfectly!

Hi thank you. The path in the Cmaketext.txt for OpenCV should be :
PATH\opencv\build And yes you need to add opencv dll files to the folder

Thank you for your quick answer.
The program worked for single images; however, for folders and videos, I got this error :
CUDA lazy loading is not enabled. Enabling it can significantly reduce device memory usage and speed up TensorRT initialization. See "Lazy Loading" section of CUDA documentation https://docs.nvidia.com/cuda/cuda-c-programming-guide/index.html#lazy-loading
Followed by :
[<EMAIL_ADDRESS>global videoio_registry.cpp:244 cv::anonymous-namespace'::VideoBackendRegistry::VideoBackendRegistry VIDEOIO: Enabled backends(9, sorted by priority): FFMPEG(1000); GSTREAMER(990); INTEL_MFX(980); MSMF(970); DSHOW(960); CV_IMAGES(950); CV_MJPEG(940); UEYE(930); OBSENSOR(920)
[<EMAIL_ADDRESS>global backend_plugin.cpp:383 cv::impl::getPluginCandidates Found 3 plugin(s) for FFMPEG
[<EMAIL_ADDRESS>global plugin_loader.impl.hpp:67 cv::plugin::impl::DynamicLib::libraryLoad load PATH\Depth-Anything\depth-anything-tensorrt\opencv_videoio_ffmpeg490_64d.dll => FAILED
etc..`
The result is that I am not able to open the output_video file.
I reinstalled GTK manually on Windows but the same error persists.

It is debug mode. Will you try it on release mode. Looks like you need to copy all opencv dlls to the running folder


Debug watch builds are slower in angular 7

Bug Report or Feature Request (mark with an x)
- [x] bug report

Command (mark with an x)
- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions:
npm: 6.2.0
node: v8.11.3
angular-cli: 7.1.0
Repro steps
Using the following repository:
https://github.com/IsraelHikingMap/Site
Inside IsraelHiking.web run npm install,
npm run build -- --watch
change a file and measure the time it takes to finish incremental build.
Now do the same for the openlayers branch.
Changes in incremental build are significant...
Desired functionality
incremental build time should not change that much between angular 6 and 7.
Mention any other details that might be useful
Overall build time of production is also becoming an issue which got a bit worse in angular 7.

Duplicate of https://github.com/angular/angular-cli/issues/13102


Exception when use httpClient.addResponseModifier after upgrade from getx 4.1.4

Describe the bug
After I upgrade my getx from 4.1.4 to 4.3.4
Exception throws whenever I use this code :
httpClient.addResponseModifier<dynamic>((request, response) {
  print(response.bodyString);
});

**Reproduction code
this will produce exception :
Api().checkAuth();
example:
void main() => runApp(MaterialApp(home: Home()));

class Home extends StatelessWidget {
  final count = 0.obs;
  @override
  Widget build(context) => Scaffold(
      appBar: AppBar(title: Text("counter")),
      body: Center(
        child: Obx(() => Text("$count")),
      ),
      floatingActionButton: FloatingActionButton(
        child: Icon(Icons.add),
        onPressed: () => Api().checkAuth(),
      ));
}

class Api extends GetConnect {
  String? baseUrl = '*******';
  Api() {
    baseUrl = this.baseUrl;

    httpClient.addResponseModifier<dynamic>((request, response) {
      print(response.bodyString);
    });
   }

  dynamic getData(Response<dynamic> ret) {
    return ret.body?['data'];
  }

  Future<User> checkAuth() async {
    Map<String, dynamic> query = {
      'version_code': 1,
    };
    var ret = await get("/check_auth",query: query);
    return User.fromJson(getData(ret));
  }
}

To Reproduce
Steps to reproduce the behavior:

open the app
Click on floatingActionButton
open log and see exception says :
VERBOSE-2:ui_dart_state.cc(199)] Unhandled Exception: NoSuchMethodError: The getter 'statusCode' was called on null.
Receiver: null
Tried calling: statusCode
#0      Object.noSuchMethod (dart:core-patch/object_patch.dart:54:5)
#1      GetHttpClient._performRequest (package:get/get_connect/http/src/http.dart:211:50)

#2      GetHttpClient.get (package:get/get_connect/http/src/http.dart:452:22)

#3      Api.checkAuth (package:first_flutter_app/Api.dart:180:15)

Expected behavior
expected to print the response of the request (checkAuth) in the log
Flutter Version:
Flutter 2.2.2 • channel stable •
Getx Version:
4.3.4
Describe on which device you found the bug:
ex: iPhone 11 pro . iOS 13.7.

 httpClient.addResponseModifier<dynamic>((request, response) {
      print(response.bodyString);
     return response; // you need return a response
    });


Add "addresses" property to userRegister schema

Add "addresses" property in userRegister schema, according to the new Vue Storefront feature: https://github.com/DivanteLtd/vue-storefront/pull/3055

Thanks!


setup goals in GA for email sign-ups

Acceptance criteria

[x] newsletter signup
[x] volunteer signup

limited scope for this and creating new issue for donations tracking


Space Traveler's Hub: My Profile

[ ] In this branch, I:
Created My Profile section
Made reserved rockets and missions list displayed
Give style

@zhorabay Good job on completing the task. you can merge it


layers: Downgrade maxResourceSize check to warning

maybe addresses #2486

PS: Ideally, it should trigger iff it actually returns the VK_ERROR_OUT_OF_DEVICE_MEMORY. Is there some obscure case where the image could actually use less resources than its parameters would suggest?

@krOoze, I'll to move this check to the assistant layer (#1612).  I think we also talked about adding an interceptor to warn on any 'bad' return codes from the display driver, so I'll add that to the list as well (I think most of these have been removed from the layers).


Proposal: Integrate Rubeus for LLM interoperability

Hi! I’m working on Rubeus, a tool that could integrate with magnetic to enable easy swapping between different LLMs. It uses the same API signature as OpenAI, making integration straightforward. It also offers features like automatic fallbacks, retries, and load balancing. Would love to hear your thoughts!

That's pretty cool! Reminds me of https://route.withmartian.com/
For magentic to work with Rubeus right now you would need to support the OpenAI API including function calling. In future we could add a backend/ChatModel to magentic for the Rubeus API but I'd much rather do this if/when Rubeus supports function calling or structured responses of some kind. Otherwise there is a lot of prompt-engineering work that would have to go into magentic - this might happen anyway to support models other than openai chat models, but hopefully this can be achieved via packages that will handle enforcing structure like https://github.com/outlines-dev/outlines or https://github.com/guidance-ai/guidance

@jackmpcollins thank you! Rubeus does support OpenAI functions. You can pass both functions and function_call just as you would in an OpenAI call in params, and you're set.

Closing this as Rubeus/Gateway matches the OpenAI API so should work with magentic by setting the MAGENTIC_OPENAI_BASE_URL env var. For more info see https://magentic.dev/configuration/


Python2

How to download It

To install the package I recommend using pip as covered by the readme: https://github.com/WoLpH/numpy-stl#installation


clean up mobile layout per @callebtc

This PR fixes the mobile styling issues identified by @callebtc in https://github.com/lnbits/lnbits-legend/pull/733#issuecomment-1214217856

Codecov Report

Merging #874 (49eb83a) into main (c32ff1d) will decrease coverage by 10.82%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             main     #874       +/-   ##
===========================================
- Coverage   51.62%   40.79%   -10.83%
===========================================
  Files         225      225
  Lines       12312    12312
===========================================
- Hits         6356     5023     -1333
- Misses       5956     7289     +1333

Impacted Files
Coverage Δ

lnbits/wallets/lnd_grpc_files/router_pb2.py
0.00% <0.00%> (-61.91%)
:arrow_down:

lnbits/wallets/lnd_grpc_files/lightning_pb2.py
0.00% <0.00%> (-54.65%)
:arrow_down:

lnbits/wallets/lnd_grpc_files/router_pb2_grpc.py
0.00% <0.00%> (-52.03%)
:arrow_down:

...nbits/wallets/lnd_grpc_files/lightning_pb2_grpc.py
0.00% <0.00%> (-50.48%)
:arrow_down:

lnbits/wallets/lndgrpc.py
19.11% <0.00%> (-25.74%)
:arrow_down:

lnbits/wallets/lndrest.py
17.39% <0.00%> (-20.87%)
:arrow_down:

lnbits/wallets/cln.py
21.69% <0.00%> (-13.21%)
:arrow_down:

lnbits/db.py
80.80% <0.00%> (-9.61%)
:arrow_down:

lnbits/wallets/macaroon/macaroon.py
27.53% <0.00%> (-5.80%)
:arrow_down:

lnbits/bolt11.py
78.57% <0.00%> (-2.39%)
:arrow_down:

... and 2 more

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Great work Lee!

Can we have a optional webhook for Invoices?


Source Resize

Use Case
I want to resize the image of a model-field upon upload/save.
Issue
No intuitive solution found using sorl-thumbnail.
Current Workaround
As a workaround, I use the ThumbnailerImageField from easy_thumbnails.
Why? => Because it has a parameter to set the resize options upon upload/save.
from easy_thumbnails.fields import ThumbnailerImageField

class Feature(models.Model):
    name = models.CharField(max_length=100, unique=True)
    image = ThumbnailerImageField(upload_to='features', blank=True, resize_source=dict(size=(40, 40)))

"""
Every feature should be represented with an image.
However to save disk space.. images should be scaled down to a fixed size.. in this example max-    width: 40px max-height: 40px (keeping the ratio).
"""

Similar Issues
There is a similar request/question for sorl on stackoverflow:
http://stackoverflow.com/questions/9354242/how-to-resize-source-with-sorl-thumbnail
The suggested solution does however save two versions on disk.. the original size and the scaled down size.. which is exactly what I want to prevent.
I want to save disk space by scaling down the image when uploading/saving.
No need to keep 10MB+ images.. when a thumbnail is all that is ever needed.
Wanted Solution
I would love to see the sorl ImageField (from sorl.thumbnail import ImageField) have an optional parameter to set the size. E.g.:
from django.db import models
from sorl.thumbnail import ImageField

class Item(models.Model):
    image = ImageField(upload_to='whatever', resize_source=dict(size='100x100', crop='center'))

It's very importan put this commands, models and tutorials in the doc.

PRs are welcome.

Has this use case been solved in the meantime?


Gravatar images are not displayed on device trackers

Not much to explain here. So given below are two images of how the app shows these entities vs. how HA Web handles them.
HA Web
http://imgur.com/gallery/DU1LvUz
HA Client App
http://imgur.com/gallery/Lke6ZwF

I think it is the same as #234 but could you please show me the list of attributes for that entities?

@ajayjohn I need some additional info here. I need attributes for any of those entities and its config please. Thanks.

Sorry for the delay. Here are the attributes for the entity. Some personal details have been redacted.
source_type: gps latitude: <lat coordinates> longitude: <long coordinates> gps_accuracy: 10 battery: 59 friendly_name: AJ entity_picture: https://www.gravatar.com/avatar/<link details specific to my image>

A assume <link details specific to my image> is an md5 of your email right? I tried to put an md5 of my email and I see only default avatar =(


Should return null instead of an error when search result is empty

Environment
Operating System: Windows 10
VenafiPS version: 5.2.1
PowerShell version: 5.1
TPP version (if applicable): 21.4

When calling both Get-VenafiTeam and ConvertTo-TppGuid, if the calling object does not exist, it would be preferred that the function returns null instead of an "Object Does Not Exist" error.

I agree with you about ConvertTo-TppGuid, but I'm scratching my head about Get-VenafiTeam. Looking at the API, it seems there are quite a few distinct errors that could be returned by GET Teams and that you would want to know the team is missing, not just get null back. Can you explain this a bit more?

I think it's best to come up with a standard and go with it for all for a specific type of function.  In prior conversations, folks have talked about Get functions returning null/nothing when an item doesn't exist.  But, there are times to return an error, eg. when the format of the value provided isn't correct.  You could also return the error with verbose output, but function output is null.  Lots of ways to handle it, but I'd suggest coming up with a standard and sticking with it.


Using a .right side menu, at first attempt of openSide(.right) results in a left side opening

With any gesture or touch after this misplacement, problem will resolve and .right side opens properly.
I tried to debug very hard to contribute the project, yet I could not solve the puzzle.
My guess: there might be an invalide size/frame reading occur before the (.right)view became visible.
Thank you for opensourcing this project I was using it for over a year without any issues, then the specs changed and customer wants a right hand side menu:)
Cheers,

Using XCode 10.1 with

pod 'KWDrawerController', '~> 4.1.6'

deploying for iOS9+

I am willing to solve this and contribute but I need guideance 🔨

Just misclicked the close button sorry for the spam 🤦♂

issue also reproduces when app returns from background, again first time menu comes from left and the rest is same as above

Setting also a left view controller, kind of works around this issue.
Do you plan to fix it in the near future, or do we have to fork this project?


Traits are added to melee weapons' tooltips unconditionally

When I set up a RangedCallbackWeaponTrait without any other callbacks added and only calling setRanged, all weapons render the trait in their tooltips. The expected behavior would be only the longbows and heavy crossbows rendering it. Note that I encountered this on 1.18.2 and I don't know if it was already fixed on newer versions.
I would also suggest removing the setMelee, setThrowing,... methods in favor of just checking for the respective callbacks as the way it is now is very unintuitive.

Thanks for this report as well and for contributing to making addon mods for this one! It's very appreciated.
I've made some changes to how Weapon Traits, especially one attached to WeaponMaterial classes operate. They now should not show up on weapons that they don't apply to now.
So traits marked as Ranged will only show up on Longbows and Heavy Crossbows, for example.
I've also made it so when checking if the trait is a Melee, Ranged, Throwing or Action trait, it checks to see if the callback for each of them is present, so you shouldn't need to manually set the setMelee(), setRanged(), setThrowing(), or setAction() methods anymore.
I can't remove those methods due to a risk of a breaking change, but I have made the setAction() method and it's respective field isAction deprecated, since neither do anything anymore. It is the only one that is required to have a callback.
The other ones can still be manually set since some of my traits don't need specialized classes e.g. the Armor Piercing trait since that it's presence is checked externally and doesn't need a callback for anything.
Those changes will be in the next release, provided they don't break anything. I'll test it with your addon mods soon.


all SYS_LOG_* configs need to depend on SYS_LOG

Shouldn't this be other way around, meaning we should select SYS_LOG if individual debugging is activated?

How do you turn off all syslogging in an application? Do I have to go to every component syslog variable and turn it off? using select for this type of thing is wrong IMO, thats why I always have issues turning off logging in network application that automatically enable that in mysterious ways.
A config file of an application should be able to have lots of sys log related variables configured and turned on with one master switch that can turn it of completely, that is CONFIG_SYS_LOG.

How do you turn off all syslogging in an application? Do I have to go to every component syslog variable and turn it off? using select for this type of thing is wrong IMO, thats why I always have issues turning off logging in network application that automatically enable that in mysterious ways.
A config file of an application should be able to have lots of sys log related variables configured and turned on with one master switch that can turn it of completely, that is CONFIG_SYS_LOG.

For networking stuff there is CONFIG_NET_LOG that will turn on/off all the network debugging.

Anyway, I am fine with the change. So +1 for the network related changes.

For networking stuff there is CONFIG_NET_LOG that will turn on/off all the network debugging.

Thats the thing, you are globally enabling SYS_LOG, so if I try to disable this for debugging some driver that has nothing to do with networking, I can't. It makes Kconfig behave in unexpected ways and itself will be hard to debug ;-(
Anyways, I added the dependency to avoid stray Kconfig variables but the issue with select is something we need to optimize


Support for logging in with AWS SSO

Is your feature request related to a problem? Please describe.
As a user, I should be able to use AWS SSO to login to the Visual Studio toolkit

Closing this issue as a duplicate of #98, since this issue has no engagement, and that one contains a use case.


Cleanup build config and fix caching/incremental builds of nativeImage task

Using intellij dialogs and created this against origin instead of my fork


Add support for UR20

As the UR20 has been announced, we should add its description. There are still some (internal) things blocking us from adding it, this issue is meant as a single point of reference whenever the question pops up.

Can the URDF be found somewhere?

I'm afraid, I'll have to ask for a little more patience...

@fmauch is there an ETA for this? We would like to simulate UR20 in a nice demo for ROSCon to show in our booth. If we have it, we would show it in a great looking scenario. If we don't have it, we will need to pick another robotic arm.

The blocking internal issues seem to be resolved now, so we expect to have this within the next couple of weeks, at least in a usable PR.

A couple of weeks is alright. If you could let me know in advance in case this is postponed, I would very much appreciate it. We have UR10 currently but it is not fitting for the use-case:

We have been working on this recently and I am positive that we will get something public very soon.


docs: add recording of Berlin Crypto Meetup

Codecov Report

:exclamation: No coverage uploaded for pull request base (develop@b817162). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff             @@
##             develop      #72   +/-   ##
==========================================
  Coverage           ?   93.15%
==========================================
  Files              ?       14
  Lines              ?      628
  Branches           ?        0
==========================================
  Hits               ?      585
  Misses             ?       43
  Partials           ?        0

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 b817162...5acd36a. Read the comment docs.


Error with images paths when uploading to GitHub pages

I am having problems with the layouts introduced in this theme. When referring to images in slidev, I have been using them like this:

which generates the following underlying url:

This way it correctly displays both locally in dev and in GitHub pages. But when using with the layouts introduced in the template, they paths are not generated correctly. By using something like:
---
hideInToc: true
layout: figure
figureCaption: Test
figureFootnoteNumber: 1
figureUrl: /images/questions.jpg
---

it is generating the following url:

which is wrong.

This can be seen in my repo, by checking the directory with the images and my cover slide. Only the background image, that is handled by the theme, is not shown. The same happens with the last slide.

Ok I just found out in slidev docs that I should put my assets in the public/ dir. That fixed it, but still it is weird that the previous path worked with img and not with the layouts from this theme.

Actually it is still generating it with a missing / at the beginning. It still keeps generating it like:

The difference now is that the image is in the correct path /bracis_2023_srcaps/images/questions.jpg, but the leading / is missing in the generated path.

Do you have any idea how to solve this @alexanderdavide?

Hey @george-gca, sorry for the delay. It's hard for me to find the time.
What's the exact base URL your app is being served from? Have a look at layout-helper.ts which resolves the URLs your passing to the theme–actually I've simply adopted this from slidev's layoutHelper.ts source. resolveAssetUrl slices the leading slash off your URLs assuming your base URL includes a trailing slash. If the latter isn't true, there is no slash at all and the URL is going to be wrong. I admit, this is quite error-prone and could be more elaborate.

After your explanation I was able to create a fix for this, but the issue still persists in some places. For instance it solved for the 1st slide BG, but not when I call some images. Is there any other place that the path to the assets are changed like this?

For some unknown reason the function resolveAssetUrl is not being called inside FigureWithOptionalCaption.vue. Take a look at my slides and press F12. I changed the function inside layout-helper.ts to the one I changed in the draft PR. If you look at the console in the browser, it only prints the path to the background image, not to the image in the questions slide. But if you change the path manually in the html adding the missing / before images it displays correctly.
That slide is the last one in slides.md.

Hey @george-gca,
in george-gca/bracis_2023_srcaps you're using a local cover layout which imports handleBackground() from your customized layout-helper.ts file. Meanwhile, FigureWithOptionalCaption still roots in slidev-theme-academic and hence uses the flawed, packaged resolveAssetUrl(). To verify, try copying FigureWithOptionalCaption over to george-gca/bracis_2023_srcaps too.

Ok it makes sense.

Another thing, I just realized that there was one simple difference from my solution and slidev docs, namely this:
run: npm run build -- --base /<name_of_repo>/

while mine was without the /s
run: npm run build -- --base <name_of_repo>

this was the main problem. But I believe their solution should be more robust to differences like this one.


bugfix router endpoint in db

Description
After changing the implementation  in https://github.com/caraml-dev/turing/pull/255, api/turing/service/router_deployment_service.go , the endpoints are persisted with /v1/predict in the db. This is a problem as Turing can support more than one specific endpoint (/v1/batch_predict)
HTTP endpoint are expected to start with http, GRPC endpoint to start with host and end with port appended.
Changing

Reverting api/turing/service/router_deployment_service.go to not prepend /v1/predict
Add custom marshalling in models/router.go to append /v1/predict, API calls will then get /v1/predict
Added unit test models/router.go to test http/grpc/nil endpoint

Testing
Tested local, one UPI Router (id 1) and HTTP Router (id 2)

API calls, v1/predict appended to HTTP endpoint only

Not sure if you plan to include other fixes in this PR but the changes so far LGTM.

thanks for the super quick review 😅  I dont have anything to add, will merge it. Thanks!


fix enablemetrics csv description

Summary
Related issue(s)
https://issues.redhat.com/browse/ACM-11627
Fixes #

/retest

/retest

/retest

I remembered the previous PR should already fix this issue. it seems it was reverted. what is the root cause?

https://github.com/stolostron/multicluster-global-hub/commit/49d842ce5c70d59c1b261796eaa77da61ca825e3
This pr only update the crd files. Do not update CSV files

why cannot make bundle detect the incomplete changes?

/retest

why cannot make bundle detect the incomplete changes?

It looks bundle csv generated based on https://github.com/stolostron/multicluster-global-hub/pull/976/files#diff-46ee797ec6f0315977962a975d1ffd1463b6f0b6112faee423667a61d03bd66dL76
and it's also do not changed. I am not sure if it's possible to generate based on the crd?

/retest

/cherry-pick release-2.11

make bundle can help on. but the current fix focused on specDescriptors which cannot be covered by make bundle.

/retest


Cannot set zlib library dir to /usr/lib/x86_64-linux-gnu/libz.so

Describe the bug
Hi,
I am trying to package VisIt as Flatpak for Linux.
I want to build VisIt 3.2.2 from source.
But it cannot find zlib.
Setting CMake variable when compiling
 -DVISIT_ZLIB_DIR=/usr/lib/x86_64-linux-gnu/libz.so
will result in
-- Looking for ZLIB
CMake Error at CMake/SetUpThirdParty.cmake:100 (MESSAGE):
    Include Directory for ZLIB (/usr/lib/x86_64-linux-gnu/libz.so/include) does not exist.
Call Stack (most recent call first):
  CMake/FindZlib.cmake:55 (SET_UP_THIRD_PARTY)
  CMakeLists.txt:1320 (INCLUDE)

or
-DVISIT_ZLIB_DIR=/usr/lib/x86_64-linux-gnu
result in
-- Looking for ZLIB
CMake Error at CMake/SetUpThirdParty.cmake:136 (MESSAGE):
     None of library directories for ZLIB (/usr/lib/x86_64-linux-gnu/lib) exist.

  **

  **
Call Stack (most recent call first):
  CMake/FindZlib.cmake:55 (SET_UP_THIRD_PARTY)
  CMakeLists.txt:1320 (INCLUDE)

In reality, zlib live in /usr/lib/x86_64-linux-gnu/libz.so
Helpful additional information
flatpak --version
Flatpak 1.12.7
flatpak-builder --version
flatpak-builder 1.2.2

To Reproduce
Steps to reproduce the behavior. For example:

Setup flatpak, for Ubuntu: https://flatpak.org/setup/Ubuntu
Lets build VisIt flatpak package, install flatpak and flatpak-builder, sudo apt install flatpak flatpak-builder
This is where my flatpak manifest is, download this. git clone --recursive https://github.com/kevinsmia1939/flathub/tree/io.github.visit-dav.VisIt
To build and install VisIt flatpak flatpak-builder --install --force-clean --user build io.github.visit-dav.VisIt.yaml

Additionally, please attach a (zipped) sessionfile to this ticket to easily reproduce (In the viewer, use File->Save Session).
Expected behavior
A clear and concise description of what you expected to happen.
zlib is found under /usr/lib/x86_64-linux-gnu/libz.so
Attachments

Can you reproduce the bug on our test data?

If so, which file?
If not, access to your data would be very helpful. If the data set is small, please zip and upload it as an attachment. If it is large, please provide instructions for how we can contact you to obtain this data.

Please attach a (zipped) sessionfile to easily reproduce (In the viewer, use File->Save Session).
Please attach any screenshots relevant to understanding the issue.

Desktop
Operating System: openSUSE Tumbleweed 20220324
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.2
Kernel Version: 5.16.15-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 4600H with Radeon Graphics
Memory: 7.1 GiB of RAM
Graphics Processor: AMD RENOIR
VisIt: 3.2.2
Additional context
Flatpak: https://www.flatpak.org/

Hi,
Our CMake logic requires that VISIT_ZLIB_DIR is a directory with a lib and include directory in it. You will need to build and install zlib from source and then set VISIT_ZLIB_DIR appropriately.
We could potentially add a VISIT_USE_SYSTEM_ZLIB variable or something along those lines, but that couldn't be done until our next release.
Also, I notice that it looks like you are using VTK 8.2. We are using VTK 8.1 and we apply a couple of patches when we build it. I believe VisIt will compile and run without the patches, but the patches do fix some issues.
You might want to look at the VisIt spack package for information on how we build VisIt without the use of our build_visit script.
Eric


Fix for call to to!string and deprecation warnings

I tried to fix the problems I get when trying to build with dmd 2.090.1

Regarding the to!string issue, I filed a report here https://issues.dlang.org/show_bug.cgi?id=20623


ASTRACTL-29422: memory leak fix

This adds a deferred defer sync.Unsubscribe() after s.natsClient.SubscribeSync( and fixes a memory leak.

Should we also swap the IF statement on line 123 in tcppproxy.go with the if statement on 106?
Seems like we wouldn't want to use the buffer if there was an error?    api_impl.go checks the error first.

@davedow15  I just checked the Reader interface documentation, and it says:
// Callers should always process the n > 0 bytes returned before
// considering the error err. Doing so correctly handles I/O errors
// that happen after reading some bytes and also both of the
// allowed EOF behaviors.


Terminology changes in BC17.4

Under To Print the VAT audit report, point 1 refers to "VAT Statements", in at least 17.4 this is "Tax Statements" and the "Note" just before point 5 refers to "check box", the controls for Boolean value are not check boxes anymore (haven't been for a quite a while).
Please review possible changes to this page.  The change from VAT to Tax has been done in a number of places.

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

ID: 9d4d4c97-e76c-239f-5365-0f2155b38c40
Version Independent ID: c883067b-ffee-3c29-cadb-1ab06396fb9d
Content: Print VAT Audit Reports - Business Central
Content Source: business-central/LocalFunctionality/UnitedKingdom/how-to-print-vat-audit-reports.md
Service: dynamics365-business-central
GitHub Login: @edupont04
Microsoft Alias: edupont

Hello,
Thank you for your feedback! I suspect this is actually a translation issue in the product, so I'm circling back with the translation team but wanted to give you early (OK, earl_ier_)  feedback. The article is about VAT statements and VAT audits, not tax statements.

Sorry for the delay.  I am unable to reproduce the issue now too.  I will open an issue if I figure out what was happening.

Thanks for the update! Closing the Issue.


Format razor files

Ideally csharpier would be able to format razor files. It appears that razor files are parsed and converted to c#. See
https://github.com/davidebbo/RoslynRazorViewEngine/blob/master/RoslynRazorViewEngine/RoslynRazorViewEngine.cs#L127
How does prettier deal with html files, react files, etc?
Should the razor formatter be a prettier plugin instead? How would it parse/format the c# code in a razor file?

I've been doing a lot of Blazor recently both at work and in my personal projects and would love to see csharpier support Razor files.
I think it would be perfectly acceptable to just format the long @code{...} blocks in a Razor file and ignore the html and intermixed c#. Or at least that would be a great starting point.

I think full support for razor files would be a ton of work. The RazorTemplateEngine turns a view into a csharp file with all the HTML in strings. That doesn't help at all with deciding how to format the HTML. I haven't found any way to parse a razor file in a way that lends itself to being formatted. Although I just found an class named HtmlMarkupParser that may be what I was missing. Although all of its documentation warns about how it isn't meant to be used directly.
But your idea of formatting the @code blocks may be possible without a ton of effort. Assuming I can pull out just the code block and parse it with Roslyn then csharpier would be able to format it. I'll see how feasible that is.
Thanks for the suggestion!

Yeah I don't think parsing the HTML or the c# code in the HTML would be super necessary - it might even be undesirable since you're mixing two formatting paradigms.
The @code should be doable. If this is lower on the priority list for you I might take a run at it and PR it back...

The idea of supporting a basic version of blazor/razor is pretty motivating to me, but I haven't had a ton of extra time to devote to csharpier lately. Mondays are my usual day to work on it, but I am feeling sick today and having a hard time focusing. Contributions are always welcome, so feel free to take a crack at it.
Where I ended up - regex is one option to try to find the code blocks, but is probably pretty error prone. I think we'd still want to use a parser, we can always leave the html portions as is and just use it to find the code blocks.
I did find https://stackoverflow.com/questions/50781429/how-to-create-visual-studio-extension-for-cshtml-files which is an example of parsing razor to a syntax tree, but then realized it is for the .net framework.
https://sudonull.com/post/6670-Compiling-and-running-C-and-Blazor-inside-a-browser is an example of compiling blazor, and some of the same packages are probably used to parse blazor, but they don't appear to be on nuget.
There is also this package https://www.nuget.org/packages/Microsoft.CodeAnalysis.Razor/ I dug through it a little bit but didn't see anything obviously useful.

I did manage to parse a razor file, but getting to the c# code blocks requires reflection. A lot of the types needed are internal.
This branch has a hacked together POC - https://github.com/belav/csharpier/compare/basic-razor

The POC almost looks too simple...I hope it's good.  Can't wait for this for razor files.

This could help with parsing razor files - https://github.com/huntercfreeman/BlazorStudio/blob/auto-complete/Blazor.Text.Editor.Analysis.Razor.ClassLib/TextEditorRazorLexer.cs

Any ETA on this? Our team's productivity would greatly benefit from having .razor files autoformatted.

@belav You've probably seen it already, but there's a prettier plugin for .razor files here -> https://github.com/KristinaPlusPlus/prettier-plugin-razor . Worth checking out if you haven't already. It's very basic, and looks to be abandoned since March 2021, but maybe there's still something you can learn or use from it.

@Snailedlt unfortunately I don't know that I'll be getting to this any time soon, other issues keep taking priority and I haven't had as much time to dedicate to CSharpier as of late. Every time I end up in a razor file at work I am reminded how much I'd love for CSharpier to support this.

Microsoft doesn't even provided a robust razor formatting solution with VS, and I haven't found any good solutions in the past 3 years of working with Razor, and occasionally looking for a tool. CSharpier would be paving a new road. So respect for even starting to look into it.

Hey @lukedays I appreciate the offer, but at this point the biggest problem is my lack of time to dedicate to the project. I also worry that formatting razor may be a significant effort and don't even have a good starting place for it so would hate to promise anything.

I also need something like this because the official MS C# extension for VS Code formats my razor files so ugly. :'(

It's not working when I put
"files.associations": {
  "*.cshtml": "csharp"
},

in settings.json user settings of VSCode for .cshtml files.


open-shell TDDFT using ROKS

Hello,
I'm curious if I can conduct ROKS-TDDFT calculation for open-shell systems.
Thanks in advance.

@proexcuse, I don't think we do (I could be wrong though), but we definitely support UKS-TDDFT. See pyscf.tdscf for more details.

Thank you for your reply.


update to grafana 4.1.1

Also added imagepullpolicy to initcontainer so it works well on k8s 1.5+

btw, the new grafana has some nicer onboarding where it asks the admin to create users even :)

not sure if you get the review notification so here again RFR @webwurst

also deployed on the l8 cluster now


Use cases added for Wallet and NFT marketplace queries

divided up the queries into 12 sub-queries for 'Wallet' and 6 sub-queries under 'NFT Marketplace'
updated the _meta.json to reflect this
added images where necessary
checked link and table formats on localhost, should publish correctly (although I can't preview)

I will go ahead with this layout, using 'cards' also...I will need to update this PR later today


button crash: OnClick from Main3 to Main 8

Next Page button click from Main3Activity to Main8Activity crashes the app.

Fixed on branch GwG_AndroidBasicsSingleScreenApp. Removed extra Activities.  Using Java to change the text shown in the TextViews.


Installation problems...

I have tried both using the Mod Manager to install the latest version of BoneAppetit 3.3.1.  But everytime I try to login to my server it says the server is expecting 3.3.0.  Both the BoneAppetit.dll files (server/client) are from the same download.  Why would I be getting this error?

the same thing - please tell me where on the Linux server you need to put the file?


notification error - old way doesnt work either

getting this error when try to test notifications. email info is correct on the .env file.

https://github.com/jef/nvidia-snatcher/issues/191


[BUG]: AttributeError: 'NoneType' object has no attribute 'pop'

🐛 Describe the bug
When I train the model myself and load it, I get an error: AttributeError: 'NoneType' object has no attribute 'pop'
Environment
Ubuntu 22.04
3 Tesla P100 GPU
use https://github.com/AUTOMATIC1111/stable-diffusion-webui to load models.

Hi, what are the ColossalAI-relevant contents you used and we can help with?


Improve or replace Slots pattern/implementation

Context
ADR 004 describes the preferred children-based API approach for React components, where most rendered content is passed to a component through the children prop.
When components want to define specific 'chunks' of children, they use our homebrewed slots internal API to define wrapper components that consumers can use like props. An example from the ADR uses the ActionList.LeadingVisual slot to define a piece of the children that becomes the leading visual for the item:
<ActionList.Item>
  <ActionList.LeadingVisual>
    <Avatar src="https://github.com/mona.png" />
  <ActionList.LeadingVisual>
  mona
</ActionList.Item>

This strategy makes for a flexible and readable component API. It's very clear here what will end up as the leading visual, and it's plain old JSX so any JSX content can be used. From the point of view of the API consumer, this looks great.
Issues
Not idiomatic
The first issue (and really the source of all problems) with the slots pattern is simply that it isn't idiomatic React. The above example has exactly the same effect as defining a leadingVisual prop with a ReactNode type, but instead we are abusing the children prop to provide that data. This aligns more closely with traditional HTML (ie select & option, or fieldset & label), but it's not how the vast majority of React components work and so it's likely to be an unfamiliar pattern to most.
Implementation
The implementation of slots under the hood is problematic, and there's no obvious way to make it better - this is a natural effect of trying to do something React wasn't designed to do. Behind the scenes, a Slot will cause the parent Slots component to render at least three times every time it's own children changes:
https://github.com/primer/react/blob/4badb579d3832d06670ebf200a713d610254825d/src/utils/create-slots.tsx#L93-L96

children changes, causing a render
layout effect cleanup runs, calling unregisterSlot and eventually forces an update, causing another render
layout effect body runs, calling registerSlot and forcing another update

Because this happens in a layoutEffect, there should only be one paint per render, but this still has performance implications and can result in really strange issues that can be very hard to reason with.
In addition, the createSlots code itself is just really hard to understand and maintain. It works very differently from how React traditionally functions, sending data up the component tree instead of down.
Type safety
Finally, we can't enforce any sort of type safety on these components. React children aren't very typesafe in the first place, but slots make it worse. As an example, look at FormControl. If no FormControl.Label child is found, we log an error at runtime. The implementation of this is complex and error prone - ie, the following will error because no FormControl.Label direct child is found, even though it results in valid HTML:
const MyLabel = () => <FormControl.Label>My Label</FormControl.Label>

const Errors = () => (
  <FormControl>
    <MyLabel />
  </FormControl>
)

If we could enforce the requirement through the type system, there would be no need to have this complex runtime logic.
Potential solutions
Just use props
Most use-cases of slots could be covered by simply using traditional React props. For example, the ActionList example from above would work the same way but be more performant and straightforward if it was defined in this manner:
<ActionList.Item leadingVisual={<Avatar src="https://github.com/mona.png" />}>
  mona
</ActionList.Item>

This has many advantages:

It's idiomatic React code (recommended in the official docs)
It doesn't require any extra renders
It doesn't require any complex logic
The content is accessible within the component body and can be handled just like regular children
The prop can be marked as required, forcing the content to be defined
It's slightly shorter 🤷♂

This is not to say we should never have subcomponents like ActionList.Item - that's not a slot and it's still a very useful pattern. But in cases where we do use slots today, props would be a better alternative.
Tradeoffs
The primary tradeoff here (besides the arguably less readable syntax) is that there's no way to define the JSX and also define props for that slot. For example, FormControl.Label can take a visuallyHidden prop and it would be cumbersome to have label and labelVisuallyHidden as top-level props. These cases are actually pretty rare, however, and I think there are typically creative solutions (such as having the user wrap the label in VisuallyHidden instead):
<FormControl label={<VisuallyHidden>Label</VisuallyHidden>} >
  ...
</FormControl>

Extract children before rendering
I did try to rewrite the slots implementation in such a way that it doesn't require any additional renders, by extracting the slots from the children using a hook. In practice, this would look like this:
const Component = ({children}) => {
  const {slots, remainingChildren} = useSlots(children)

  return <>
    {slots.label}
    {remainingChildren}
  </>
}

However, this is (as far as I can tell) impossible to implement. You can recursively walk the children tree to obtain all child nodes and all children props of child nodes, but you can't obtain all nodes. For example, the following will only be visible in a children tree as ComponentX, because even though ComponentY will get rendered, it's not in ComponentX's children:
const ComponentX = () => <ComponentY />

Unfortunately there's no way around this - we'd want to extract the nodes before rendering, but we don't know what the return value of a function (component) is until we call (render) it.
Use Portals
This is just an idea at this point, but the idiomatic React way to render something into a different location in the tree is to use portals. Maybe we can take advantage of this functionality to avoid extra renders?
Related links

🔍 Search for all current uses of createSlots
📝 ADR 004: Children as API
🧵 Slack thread about a tricky bug involving slots
https://github.com/github/primer/issues/1224
Recent PRs fixing tricky bugs inside slots (highlighting the unnecessary complexity with this pattern)

https://github.com/primer/react/pull/2219
https://github.com/primer/react/pull/2216

Updated to be a bit less prescriptive as I think there may be more than one good solution here

After a lot of thought and playing with the code, I'm going to close this issue in favor of discussing some ideas in the other issue (https://github.com/github/primer/issues/1224) and potentially just open a PR to fix it.


Fix setting record with default values

Please take a look.

Why are we doing a t.Log("...test message details here...") instead of t.Run("...", ...)?

because I'm telling a story of a complex test case and not trying to run test in parallel.

Codecov Report

Merging #225 (88df9b0) into 2021.9.x (cdd1aa4) will increase coverage by 1.21%.
The diff coverage is 46.42%.

@@             Coverage Diff              @@
##           2021.9.x     #225      +/-   ##
============================================
+ Coverage     41.00%   42.22%   +1.21%
============================================
  Files           625      654      +29
  Lines         54500    58121    +3621
============================================
+ Hits          22348    24540    +2192
- Misses        28987    30147    +1160
- Partials       3165     3434     +269

Impacted Files
Coverage Δ

automation/automation/expr_types.gen.go
5.88% <0.00%> (-1.81%)
:arrow_down:

automation/service/session_actions.gen.go
23.22% <0.00%> (ø)

automation/service/trigger_actions.gen.go
63.82% <0.00%> (ø)

automation/service/workflow.go
52.66% <0.00%> (+13.49%)
:arrow_up:

automation/service/workflow_actions.gen.go
54.45% <0.00%> (+7.67%)
:arrow_up:

automation/types/expr.go
48.75% <0.00%> (+6.25%)
:arrow_up:

automation/types/workflow.go
58.33% <ø> (+1.57%)
:arrow_up:

compose/rest/chart.go
77.04% <ø> (ø)

compose/rest/page.go
63.30% <ø> (ø)

compose/rest/request/record.go
21.29% <ø> (+0.22%)
:arrow_up:

... and 286 more

Continue to review full report at Codecov.

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


[WIP] Tagging upper limit

This Pull Request achieves the following:

Refactor the linting into a tree-traversing class, and a number of smaller linting classes
Improve test coverage
Add linting for content item upper bounds

Trello
https://trello.com/c/Fyqcyc80/553-lint-number-of-content-items-tagged-to-a-taxon

👍 1 linter per class makes sense and is easier to follow. Do you think linters should have a "severity level"? it could help determine if some things should be notified straightaway or only once per day.

@carvil I was eventually going to extract 2 tasks: one that runs hourly, and one that runs daily; each will pick their own linters (also the point of intitialising the Taxonomy crawler with a list of linters). I thought that would be even more explicit than notifying depending on severity? It also makes things easier to batch, and means you don't have to run the daily tasks every hour and then not do anything with the results.


Fixing active issue for Electron Screen error. Fixed Todo for positioning of windows.

I have made these updates. Let me know if you see anything i may have overlooked. I tested frame less and framed windows of all the positions and they work as they should. Thank you azain!

Cool, thanks


Increment version for cosmos releases TEST WILL NOT SUBMIT

Increment version for cosmos releases TEST WILL NOT SUBMIT

This is being closed and will not be submitted. I'm testing some changes to the PR creation scripts to handle version bumps for releases whose base branch is not master.


Example for on_write

Kindly  provided by Ole Kroger:
function on_write(pg, fd_vars)
    rpath = fd_vars["fd_rpath"].first
    # convert .md to .html
    rpath = rpath[1:end-2] * "html"
    if startswith(rpath, "blog/")
        new_name = replace(rpath, r"blog/\d{4}-\d{2}-\d{2}-" => "blog/")
        if !isfile("__site/$new_name")
            mkpath("__site/$new_name")
        end
        mv("__site/$rpath", "__site/$new_name"; force=true)
    end
end

as kindly indicated by @Wikunia need to mention that if want to do something like this with tags, then need to do something specific.

Same category as #3


Linux VM name can't have underscores

The CLI returns this error message: "Linux host name cannot exceed 64 characters in length or contain the following characters: ` ~ ! @ # $ % ^ & * ( ) = + _ [ ] { } \ | ; : ' " , < > / ?."

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

ID: a60d96f9-f869-b3e9-fe07-94b53bd1f136
Version Independent ID: 5c5bff37-d707-9220-53c1-bc1fe35eef6d
Content: Bash in Azure Cloud Shell Quickstart | Microsoft Docs
Content Source: articles/cloud-shell/quickstart.md
Service: azure
GitHub Login: @jluk
Microsoft Alias: juluk

Thanks for the feedback! We are currently investigating and will update you shortly.

@pjmeyer good catch! I will update the doc to remove the underscores and replace them with dashes instead.


Live

Docs Build status updates of commit 591bab4:
:white_check_mark: Validation status: passed
For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


codeLens resolve request not work

I have try onCodeLensResolve() and onRequest('codeLens/resolve'), behaves like not registered.
When I force the trigger it will throw:
(node:97732) UnhandledPromiseRejectionWarning: Error: Request client/registerCapability failed with message: No feature implementation for codeLens/resolve found. Registration failed.
    at handleResponse (/***/node_modules/vscode-jsonrpc/lib/main.js:449:48)
    at processMessageQueue (/***/node_modules/vscode-jsonrpc/lib/main.js:276:17)
    at Immediate.<anonymous> (/***/node_modules/vscode-jsonrpc/lib/main.js:260:13)
    at processImmediate (internal/timers.js:439:21)
(node:97732) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:97732) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Info  - 1:53:16 PM] Registering request handler for codeLens/resolve failed.

Reproduce: https://github.com/johnsoncodehk/vscode-extension-samples/tree/codeLens-resolve-bug/lsp-sample

Which version of the library are you using?

@dbaeumer I'm using 3.15.3, and the reproduce sample project should be show the problem.

The feature is marked for 3.16 which is not officially released yet. You can use a 3.16 next build but the API might not be stable yet and might change until 3.16 is released.

@dbaeumer I will try 3.16, thanks!

@dbaeumer I have try 3.16.0-next.11 but still not work, is this expected?
this is what I changed to reproduce project: https://github.com/johnsoncodehk/vscode-extension-samples/commit/d5d59ee33bf3be07b8cf602370d4e61a80e8d5d5

Hmm, what do you mean by 3.16.0-next.11. Since you are developing a VS Code extension you need to pull in the latest VS Code client LSP libs which are<EMAIL_ADDRESS>

@dbaeumer sorry I didn't make it clear. I mean<EMAIL_ADDRESS>I tried vscode-languageserver<EMAIL_ADDRESS>and it still doesn't work.
changes: https://github.com/johnsoncodehk/vscode-extension-samples/commit/e91184695dfe263a67995ffda49bdd6da36f6e39

Hmm, are you telling the client to call the server for code actions and code action resolve request ?

Actually there seems to be something missing here. Let me investigate.

Looked into it. The client side is wired up correctly, but for the server side you need to register the handler on the connection itself using connection.onRequest(CodeActionResolveRequest.type, ....)

@dbaeumer I tried CodeActionResolveRequest.type but it throw this error:

(node:97732) UnhandledPromiseRejectionWarning: Error: Request client/registerCapability failed with message: No feature implementation for codeLens/resolve found. Registration failed.
    at handleResponse (/***/node_modules/vscode-jsonrpc/lib/main.js:449:48)
    at processMessageQueue (/***/node_modules/vscode-jsonrpc/lib/main.js:276:17)
    at Immediate.<anonymous> (/***/node_modules/vscode-jsonrpc/lib/main.js:260:13)
    at processImmediate (internal/timers.js:439:21)
(node:97732) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:97732) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[Info  - 1:53:16 PM] Registering request handler for codeLens/resolve failed.

@johnsoncodehk you can't dynamically register for CodeActionResolveRequest.type. You can only register for CodeActionRequest.type

@dbaeumer I think it has nothing to do with CodeAction, it should just be about CodeLens?

Sorry, misread. You can't register for CodeLensResolveRequest either. You need to register for CodeLensRequest and specify that you will provide a resolve provider.

@dbaeumer we should have CodeLensResolveRequest, otherwise there has serious performance issue.
for example, many extensions has references codeLens like this: https://stackoverflow.com/questions/48131241/how-to-move-codelens-references-indicator
CodeLensRequest need to return all codeLens text in current script, it mean if the script have 100 codeLens locations, will execute 100 times find references on each code edit to show references count. we expected only visible codeLens to do fine references.

There is a code lens resolve request since a very long time. See here: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#codeLens_resolve and the implementation for VS Code here: https://github.com/microsoft/vscode-languageserver-node/blob/master/protocol/src/common/protocol.ts#L2659

@dbaeumer yes I know but it throw error and not work, it is why I open this issue... so this is a bug or I'm doing wrong?

It throws when registering. As said you can't register for a resolve request since it doesn't make sense by itself. You register for a code lens request and specify that you provide a resolve provider. See https://microsoft.github.io/language-server-protocol/specifications/specification-current/#textDocument_codeLens 'Server Capability' and 'RegistrationOptions'

@dbaeumer I tried before but no effect: https://github.com/johnsoncodehk/vscode-extension-samples/commit/006f41557cee007dee6493f0512b4fa408061f24#diff-1d9e3f731e806171e44f99395224c664e78cf42edec01303f9dca7d328f05427L57
connection.onCodeLensResolve will never trigger.

Resolving code actions works for me in my test bed without problems.
Looking at your code the code lens you are returning is already completely resolved (e.g. has a command). This is why the resolve hook is not called.

Change this
connection.onCodeLens(
	(_textDocumentPosition: CodeLensParams): CodeLens[] => {
		// The pass parameter contains the position of the text document in
		// which code complete got requested. For the example we ignore this
		// info and always provide the same completion items.
		return [
			{
				range: Range.create(0, 0, 0, 0),
				command: {
					title: 'not resolve',
					command: ''
				}
			}
		];
	}
);

too
connection.onCodeLens(
	(_textDocumentPosition: CodeLensParams): CodeLens[] => {
		// The pass parameter contains the position of the text document in
		// which code complete got requested. For the example we ignore this
		// info and always provide the same completion items.
		return [
			{
				range: Range.create(0, 0, 0, 0)
			}
		];
	}
);

@dbaeumer This is the answer! if post on first comment will be better. but nice to see it can be resolve, thanks a lot!
On my test it seem not trigger on visible, I'm not sure it can be avoid the performance issue I say. but anyway my problem is resolve.


[SPARK-14647][SQL] Group SQLContext/HiveContext state into SharedState

What changes were proposed in this pull request?
This patch adds a SharedState that groups state shared across multiple SQLContexts. This is analogous to the SessionState added in SPARK-13526 that groups session-specific state. This cleanup makes the constructors of the contexts simpler and ultimately allows us to remove HiveContext in the near future.
How was this patch tested?
Existing tests.
Closes #12405

Test build #56015 has started for PR 12447 at commit 988fb8c.

I have resolved the conflicts. The changes in #12405 look good to me. I will merge this once it passes jenkins.

Test build #56015 has finished for PR 12447 at commit 988fb8c.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/56015/
Test PASSed.

Thanks @andrewor14  I am merging this to master.


[BUG] - Channel join

channel.join() only works when called inside openStream, if it is called outside some times this does not work.
✅ Works
final socket = PhoenixSocket(endpoint);
socket.connect();
final channel = socket.addChannel(topic: "any", parameters: {"r": "test"});
channel.messages.listen((event) {
  print("This will work");
});
socket.openStream.listen((event) {
  channel.join();
});

⛔ Doesn't work
final socket = PhoenixSocket(endpoint);
socket.connect();
final channel = socket.addChannel(topic: "any", parameters: {"r": "test"});
channel.messages.listen((event) {
  print("This will be lost");
});
channel.join();

@matehat, do you have any advice about the situation?

@matehat, do you have any advice about the situation?

Investigating now

Fix is in the 0.7.2 release

Thanks @matehat


link of https://github.com/Azure-Samples/iot-hub-tutorials-node/archive/master.zip broken

link of https://github.com/Azure-Samples/iot-hub-tutorials-node/archive/master.zip broken

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

ID: 25e0932f-9b86-d0bd-a297-5941214e3190
Version Independent ID: f7df034f-745e-cc49-755b-bf8836eb1844
Content: Check device connectivity to Azure IoT Hub
Content Source: articles/iot-hub/tutorial-connectivity.md
Service: iot-hub
GitHub Login: @dominicbetts
Microsoft Alias: dobett

Hi @VitorX - thanks for reporting this. It looks like our repo links got out of sync. I'm updating them now and the links should be working again later today. Thanks!

Hi @VitorX - looks like everything is working again now. Thanks for your patience.

#please-close

@VitorX We will now proceed to close this thread. If there are further questions regarding this matter, please reopen it and tag me in your reply. We will gladly continue the discussion.


Add Bun support and export test

Nice @jacoblee93

great job @jacoblee93
now I can migrate my apps to bun <3


Inquiry on Code Release

Dear authors,
I recently read your outstanding paper titled "Boosting Residual Networks with Group Knowledge" and was thoroughly impressed by your innovative approach. The methods and results presented in your work are highly relevant to my current research, and I am eager to incorporate your approach into my projects.
Could you please let me know when you plan to make the code publicly available?
Thank you once again for your exceptional work and for considering my request. I look forward to hearing from you soon.

Thanks for your attention to our article. We are sorry for the delay in open sourcing, because we are working on a new project and don't have enough labor to clean the code. We will release our official codes as soon as possible when the current project is finished. We can provide you with the pre-release codes as a reference. If you want the pre-release version, please send your email address to our email<EMAIL_ADDRESS>.


fix(module:watermark): cleanup event listeners once settled

@arturovt Please fix the CI errors, which might be caused by a previous commit had been fixed, try to rebase

LGTM


npm v2 compatibility

I prefer to have the circumflex. It should work with all recent versions of Node.


How can i get a spesific share's scores

Thanks to this API, we can only see the shares in the form of a timeline. How can we see how many likes or comments a specific post has?

Thank you for your feedback/request.. I will take a look to implement it in the next push :)
(I will let you know)

Sure to please you, fetchByIdUrl and fetchById just added in the new commit.. you can now get info for a specific post :)


No colors with docker-compose up.

Hi, when I run docker image with sh or bash colors works perfectly.
But when I run docker-compose up with tty: true, I see always m character on each log line, and no color, I also found that if there is some space before debug colors are working well.
For example nodejs nodemon tool is showing some debug with space and without space (see screenshot).
Probably it is something more docker-compose related, but I wonder why nodemon logs some time comes with color and sometimes with m character??
Also ms at the end of the line is with colors.
fn_ws_api       |   nodemon:watch watching dir: /root/app/lib/models/ModelBase.js +0ms
fn_ws_api       |   nodemon watch is complete +0ms
fn_ws_api       | mws:info:db Connecting.. +0ms
fn_ws_api       | mws:info:index Server is listening on port - 9002 +0ms

As an aside, why are you running as root?

Do you think this may affect?

No haha.  Just curious.  Most people I know try to avoid root.  Usually you can expose 8080 or something inside the container and then bind to some other port on the host. Usually you use HAProxy or NGinx or ELB to forward from 80 down to some other non-protected host port on your actual hardware, which is in turn mapped to another port internally within the container :P

I think for Compose it might just be the way it handles stdout/stderr.  Remember, compose is piping the stream from container-specific stdout/stderr into it's own stdout/stderr.  I could be wrong, but I think that might be why.  @TooTallNate thoughts?

this image is inside private VPC subnet, with only one simple microservice app, no need other users etc... the outside proxy (nginx) is forwarding traffic to it.
Regarding compose, you are right, it is piping stream, what I don't understand why in some moments it process color well in some not..

Most likely because it's nodemon running your program and not using Pseudo-terminals, and in fact not docker-compose's fault. That would explain why nodemon has proper debug output and the child process doesn't.
Just a guess.

nodemon works perfectly actually. When I run from inside container manually, it shows everything.
The issue is definitely in docker-compose + debug.
docker-compose even eats some characters on simple console.log(...) after debug(...) which never happens if I don't use debug.

You may notice:

1 line - debug (without color)
2 line - debug (with color, because some spaces before probably)
3 line - console.log (should be test111.2, but only 2 seen) - never happens when debug is not used
4 line - console.log (correct)
5 line - console.log (should be test111.4 but only 4 seen) - never happens, weird as here we see it after previous console.log and not debug
6 line - debug (correct)

So I assume there is some incompatibility with docker-compose and debug;

If I were to guess, nodemon is getting tripped up on the 256 color ANSI escape codes /cc @Qix-

@TooTallNate I tried to run app without nodemon and the issue persists.
Thank you.

Ok so can you share some repro code?

Sure, just simple npm app with only two lines: https://gist.github.com/Kostanos/5e86e5e3f0f13fa76b65e18f6192bec7
My output of this one is:

I get the expected output actually:

What version of docker and/or docker-up are you using? What OS? etc.
Here's mine:
$ docker --version
Docker version 17.06.2-ce, build cec0b72

$ docker-compose --version
docker-compose version 1.14.0, build c7bdf9e

$ docker --version
Docker version 17.05.0-ce, build 89658be

$ docker-compose --version
docker-compose version 1.9.0, build 2585387

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.3 LTS
Release:	16.04
Codename:	xenial

Will update docker-compose now, let see if it will be resolved.

With newer docker-compose version it works perfect:
docker-compose version 1.15.0, build e12f3b9

so it was the docker-compose issue.
Thank you @TooTallNate for your time and help!

A simple workaround which consists in starting docker-compose in background, writing the output to a file and then tailing the file.
docker-compose up --build | tee /tmp/docker.log > /dev/null &
tail -f /tmp/docker.log | while IFS= read -r line; do printf '%b\n' "$line"; done


Support Spark 2.1.0

What changes were proposed in this pull request?
Upgrade OAP to support Spark 2.1.0
Thanks Baidu for supporting this upgrade.
How was this patch tested?
Unit Test pass

This is ready to merge.

I directly commit some naive changes to your repo, please update your local before further modification, thanks!

Maybe some prs will be merge before this merge, those PR owners should update this PR if causing any conflicts, thanks! @linhong-intel @lee-lei

Thanks, Daoyuan

Merge it. Thanks to @xuanyuanking @LuciferYang @songzhan01

Thanks @linhong-intel and @adrian-wang !


Feature request: lazy activation

Is it possible to implement a "lazy activation" after a user registration? The goal is to activate immediately the user and send the activation link, but deactivate the user if after some days he hasn't clicked the link.

Hello Davide,
AFAIK django-rest-auth is just a wrapper on django-allauth, so I believe features such as this should better be directed to allauth which handles all the "innter" logic of the user flow process.
Maybe setting the ACCOUNT_EMAIL_VERIFICATION setting  to optional (as seen here http://django-allauth.readthedocs.io/en/latest/configuration.html) helps you in some way.
In a project I'm currently working in, we allow users to log in with a similar setting even if not verified for two days, then they become deactivated - however, we use a custom task to check for users that should be deactivated once everyday. Have in mind that "activated" users is not necessarily the same as "verified (email) users". Usually all the users are activated from the moment they register, the difference is if they are allowed to progress further whether they have verified their email or not.


Rod Whiteley's GREL Quick Reference (PDF) link is dead

The "Rod Whiteley's GREL Quick Reference (PDF)" link http://co-synergy.com/GREL Quick Reference.pdf
in the GitHub "Documentation For Users" Wiki page
https://github.com/OpenRefine/OpenRefine/wiki/Documentation-For-Users
points at a place-holder domain.  The URL would be better if it pointed at the PDF in GitHub.

@allanaaa This is a candidate for you -- along with with any others that have the documentation tag.

We now have the official GREL Reference completely documented at https://docs.openrefine.org/manual/grelfunctions
Along with using Expressions in general at https://docs.openrefine.org/manual/expressions
@rileygr Our user community is free to add useful links (like Rod Whiteley's GREL reference) however on this page: https://github.com/OpenRefine/OpenRefine/wiki/External-Resources
Closing this as unnecessary.


Mongoose Example in Docs

[NOT A BUG] Just a documentation request.
Considering that even in the package.json since its written that the plugin is fully compatible with Mongoose, it would be helpful if a simple Schema example for Mongoose can be added here.

Thanks for the issues @alokrajiv.
A Mongoose example is now available in the README
full example source code here

@cdimascio hi, thanks for that. Btw, We've been using Buffer. Any reason you used Mixed specifically? Got the idea from Mongoose Docs preferred type for Binary. (Doc's Link)

@alokrajiv, you're right. Buffer is the better choice. I will update the doc. Feel free to post your example here for reference. Thanks!

@cdimascio I did a PR with just the schema change. I have a more advanced use case- with virtual setters and getter for string representation for APIs and Views :)
But, I think the simple example you already have should suffice right?


patch FAN xiaomi 13.3 1gen

Hi, can you help me and the whole community of 4pda xiaomi 13?
you made a cooler patch for xiomi pro.
can you do the same for us?
I tried to get a dump, but readEC.cmd gives an error = (

Issue unrelated to this repo. Closing.


Missing ipv4 address of new machine

Expected behavior
I expect after creating a new machine, that there schould be an ipv4 address available for the eth0 device of that machine of the subnet <IP_ADDRESS> as it es defined in the docker settings.
Actual behavior
After creating new machines there are only ipv6 addresses and e.g. the joining to a swarm fails with errors. See below.
Information

Diagnostic ID : 63A029AD-B8F2-434A-B976-407D5DC5A1AB/2016-09-02_08-48-23
Docker v1.12.0 and docker-machine 0.8.0 on Windows 10 Pro Build 1607.

Steps to reproduce the behavior

docker-machine create --driver hyperv master
docker-machine create --driver hyperv worker
docker-machine ssh master
master: docker swarm init --advertise-addr eth0
worker:
docker swarm join \
--token SWMTKN-1-51mnr3nv48rfymobh2wk0cshdjyd66uhqsz9oun5u6zsep8ew0-15901tuo8wvphqravp4u91hsw \
[fe80::215:5dff:fe02:e025]:2377
error on worker: Error response from daemon: could not find local IP address: dial udp [fe80::215:5dff:fe02:e025]:2377: connect: invalid argument

I also have the same error. Did you find a workaround to set up a swarm ?

I created a new virtual switsch via the Hyper-V manager tool. This switch was allowed to connect to the external network based on the physical network interface of my laptop.

Having same issue with v1.13.1 too.
Error: Error response from daemon: could not find local IP address: dial udp [fe80::215:5dff:fe2e:c604]:2377: connect: invalid argument

Now the procedure for creating another virtual switch in hyper v is described in the Docker docs. This solves this issue....


Fix unsupported short array

Short array is not supported prior to PHP v5.4

Thanks for PR, but our targeted PHP requirments are >= 7.0, so short array syntax is prefered.


Synthesis failure should be logged.

Failure to synthesize a symbol implementation, instruction representation, or instruction implementation should not be a failing operation. Simply log the failure and why it occurred and continue with the next symbol.

Not currently applicable.


Countermeasures for 2byte characters

Hello, developers
Merry Christmas!
If you write the 2-byte character SQL Colimn name or code comment in Block, an error will occur at startup.
Workaround:
Change the following code in \cache\block_action_object_init_.py
Former
with open(block_file_absolute_path, 'r') as f:
Revised
with open(block_file_absolute_path, 'r', encoding='utf-8', errors='ignore') as f:
With love from the tokyo in the far east .

HELLO @befi735 . Merry Merry Christmas!!!
Thank you so much for helping with this!!
Did you create a PR? I can stamp it and merge it.

Hello @befi735 , to follow up, do you want to put up a PR for this fix?

Thank you for your suggestion.
I don't know much about GitHub since I work in another job.
I believe it is more appropriate to issue an official PR if members can be verified from multiple angles.
What problem does this code solve?
This prevents mage.ai from crashing at startup when comments in Blocks, SQL statements, or data evaluation contain double-byte characters.
Apart from this, I wrote my own code to IO data from SQLite3.


Improves search performance when search query is a large range

For context, we have been implementing intersection in the multi_range gem. We could have gone with nested iterated loops over the list of ranges but the time that'd take very quickly becomes unmanageable. Instead, we found this handy gem to let us use interval trees to avoid the naive iteration cost.
However, the performance of this gem as implemented is not usable for large ranges - we have improved it in this PR. We plan to release a fork gem for our use for the moment but figured we'd contribute upstream.
For reference, here's the test case we first found that indicated the problem:
[3] pry(main)> a = Time.now; results = IntervalTree::Tree.new([1...10_000_000]).search(5_000_001...15_000_000); b = Time.now; puts "%0.6f seconds taken" % (b - a)
=> 20.191626 seconds taken

Here's the performance with our suggested changes:
[3] pry(main)> a = Time.now; results = IntervalTree::Tree.new([1...10_000_000]).search(5_000_001...15_000_000); b = Time.now; puts "%0.6f seconds taken" % (b - a)
=> 0.000023 seconds taken

I will work on this pull request on this Thursday because of approaching other deadlines. Thank you for your understanding.

I had a quick look at the CI failure but it doesn't seem related to the changes (a timeout in fetching a gemset). Might have to be kicked off again.

"greensync/interval-tree" should be a main fork because the fork is better, faster, and well-maintained, as well as having good named gem "fast_interval_tree". I am OK to transfer misshie/interval-tree to greensync. Please let me know if you have better options.

Sure. We're happy to adopt =)


Optional parameter to define whether touching the title closes the dialog or not

Hello, this function would be perfect if you make it optional since it is uncomfortable for some users with large fingers, many times they close the dialogue by accident
view.findViewById(R.id.dummy_background) 			.setOnClickListener(new View.OnClickListener() { 				@Override 				public void onClick(View view) { 					dismiss(); 				} 			});

Hi,
Which title do you mean?

Hi, when you click on dummy_background when you are too close to the title, the dialogue closes, a persistence parameter would be good, if you do not want it to close when you tap outside the dialog,
dialog.setCancelable (false)
dialog.setCanceledOnTouchOutside (false)
they work correctly, but not when you touch on dummy_background since you have the code that I put in the previous comment

Sorry, it took a while. I added this option to v1.2.4
I still think the touch-outside handlings are not quite good but I just don't have enough time to improve it.
The project really needs a big update/refactor.


Change version to 2.0.0 in preparation for release

Coverage remained the same at 92.857% when pulling 4d524acbed65301d264c3fcbe4d83cb04bcb057d on version into f21f6c820087a425dcd451b884a9104099c7f458 on master.


Why  cargo install --force subkey stop at 5.67%?

nter@MacBook-Air substrate % cargo install --force subkey --git https://github.com/paritytech/substrate --tag v2.0.0-rc4
Updating git repository https://github.com/paritytech/substrate
Fetch [==>                                                    ]   5.67%
mac:3c:22:fb:03:a2:83
ip: <IP_ADDRESS>

Looks like some git error. Nothing that is related to Substrate.