Watch mode query doesn't produce any events

Describe the bug
I have a Live View that updates over time.
I'd like to receive updates for this live view using WATCH query. However, this query just hangs and does not produce any data.
Steps to reproduce

Create a live view
Create client with Live View support
Run WATCH lv EVENTS query

Expected behaviour
Stream produces data events with live view updates.
Code example
CREATE LIVE VIEW lv WITH REFRESH 5 AS SELECT now()

// Create client with live view support
const client = createClient({
  host: 'http://localhost:8123',
  database: 'default',
  clickhouse_settings: {
    allow_experimental_live_view: 1,
  },
});

// Run query
const rows = await client.query({
    query: `WATCH lv EVENTS`,
    format: 'JSONEachRow',
  });

// Get stream and wait for data
  const stream = rows.stream();
  stream.on('data', (rows) => {
    // Data never arrives here
    console.log('Stream update received', rows);
  });

Error log
No errors
Configuration
Environment

Client version: 0.0.15
Language version: en-US
OS: Ubuntu Server 22.04

ClickHouse server

ClickHouse Server version: <IP_ADDRESS>
ClickHouse Server non-default settings, if any: allow_experimental_live_view: 1

That's interesting; we will check how it works with the HTTP protocol. Thanks for the report.

@Wain-PC, I wrote a test for this issue (see commit).
It turned out that the response compression was the culprit here. If you turn it off, then the test passes.
For example:
const client = await createTestClient({
  compression: {
    response: false, // WATCH won't work with response compression
  },
  clickhouse_settings: {
    allow_experimental_live_view: 1,
  },
})

Interestingly enough, it also does not work with CURL from the console:
➜  ~ curl -sS "http://localhost:8123/?enable_http_compression=1" \
    -H 'Accept-Encoding: gzip' -d 'WATCH watch_stream_test_4e85058ac42d41d28cbe51aa8eea3cb1 EVENTS
FORMAT JSONEachRow' | gunzip -

(hangs forever until Ctrl + C, while it works fine without compression)
So, as a (maybe temporary) workaround, I suggest disabling the response compression in the client for such queries.
I will come back with an update once it is clear whether it's possible to make WATCH + response compression work.

@Wain-PC, I've got a confirmation: WATCH will not work with response compression due to how LIVE VIEW works in ClickHouse itself. Disabling response compression in the client (as mentioned in the previous message) is the only option here.

Thank you, I've checked live view with compression disabled and it's working fine!
I think this issue is worth noting in the Known Limitations section.
I'm going to create a PR there soon.


add support for ----WebKitFormBoundary in multipart

Currently multipart requests using ----WebKitFormBoundary crash at init_multipart/1 because there is no "boundary" K/V in the header to read.

{<<"multipart">>, <<"form-data">>, '*'}


Allow disabling "auto upload" for proguard-enabled builds

We should allow people to disable the "auto upload" feature, and choose to enable mapping file uploading on a "per release type" basis.

Agreed.  Dev builds should not spam servers, but we still need to run builds in obfuscated modes to make sure things work.
There may be some clever gradle options to help control this, will have to play around.

This will be address in #10

Hey all, this fix has been released in 2.0.0 of the plugin, should be hitting maven central soon, thanks for all the help!


[question] I am using runtime caching for root page . am I doing it right ?

I am using sw-precache-webpack-plugin
...
plugins: [
  new SWPrecacheWebpackPlugin({
    ...
    runtimeCaching: [
      {
        urlPattern: /\/$/,
        handler: 'networkFirst'
      }
    ]
  })
]

It cached the root page, and works well.
Will It be end with caching something that I am not expecting ? cause the /\/$/ pattern can match any request , right ?

If you're goal is to cache your HTML content, then you shouldn't have to set up runtimeCaching at all. By default, if Webpack knows about your HTML content, then it will automatically be precached, kept up to date, and served using a cache-first strategy.
What are you hoping to accomplish with runtimeCaching?

I am hoping user can get the latest content(index.html) as soon as possible. that's why I need network-first  rather then cache-first for the root page.
user has to refresh twice to get that when using a cache-first strategy for root page.first refreshing  for the latest service worker, and the second one for the index.html.

I'd recommend not using sw-precache or precaching in general in that case.
You could use a library like sw-toolbox or the new Workbox to implement runtime caching, and can set up routes to match whichever types of requests with your desired strategy (network-first, etc.) .


Use Symbol instead of Syntax

Perf: Ensure the Logger type exist before registering other callback
Compare symbols correctly. Your implementation check the names are equal instead of comparing symbols.
Use the Symbol API instead of the Syntax API to report all cases whatever the way there are declared.  Note that I still use the Syntax to report the specific location if possible.

@meziantou thank you so much for your time and your help!

@meziantou thank you a lot for your help! I'm going to try to refactor the code fix part in the same way

For the fixer, most of the time, you want to use the Generator to avoid dealing with syntax. Also, it supports C# and VB.NET. This looks like:
var editor = await DocumentEditor.CreateAsync(document, cancellationToken).ConfigureAwait(false);
var generator = editor.Generator; // Get the generator that will generate the SyntaxNode for the expected language (C# or VB.NET)
var semanticModel = await document.GetSemanticModelAsync(cancellationToken).ConfigureAwait(false);

var symbol = semanticModel.Compilation.GetTypeByMetadataName("System.Array");
var syntax = generator.TypeExpression(symbol);

editor.ReplaceNode(nodeToFix, syntax );
return editor.GetChangedDocument();

This is not well documented, but you can find many examples of the SyntaxGenerator in

https://github.com/dotnet/roslyn-analyzers
https://github.com/meziantou/Meziantou.Analyzer/tree/main/src/Meziantou.Analyzer
https://www.meziantou.net/writing-a-language-agnostic-roslyn-analyzer-using-ioperation.htm


Revert to Logback SizeAndTimeBasedArchiveRemover

There is a strong use case for restricted disk usage when using a size based FNATP with a max history. However, the default archive remover for time based policies in Logback, SizeAndTimeBasedArchiveRemover, only counts time as a unit of history and not the number of files. This is described in LOGBACK-747 and we have submitted a backwards compatible change to the FNATP and ArchiveRemover in Logback to allow for counting files as units of history.
https://github.com/qos-ch/logback/pull/287
Until this is accepted we are using a custom archive remover based on the same code: ch.qos.logback.core.rolling.helper.CustomSizeAndTimeBasedArchiveRemover. Once Logback is released to include this functionality we should remove this class from Logback-Steno and switch to the standard archive remover. Additionally, we need to remove the Jacoco configuration that excludes this file from coverage (since the tests for this logic are included in the Logback PR they were not included in Logback-Steno).

Addressed in: https://github.com/ArpNetworking/logback-steno/pull/44


png

Author: Alex
Ask: Alex
Record device: LENA (a little babylogger)
Raw data: /scratch1/data/raw_data/png2019/
Structured data:

[ ] correct errors of missing files, sex, ages
[ ] generate missing wav file
[ ] write annotations import script based on #22
[ ] vtc the files that haven't yet been done
[ ] get the rttms and wavs etc well organized


added blank on spaceinfocard. useRef on UserClaim

Outcome of change made in UserClaim
Before
After

thanks, @trace2798, appreciate the contribution. We'd like to keep the links without target="_blank", and leave opening in new windows to users if possible.
The chat follow is a nice improvement, and I'm happy to approve and merge that.

@dpiatek I made the suggested change with the new commit. Removed _target=blank from anchor tags. Thank you

thanks @trace2798 !


Flutter ImagePicker Plugin (No implementation found for method pickImage)

MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker)
E/flutter ( 8747): [ERROR:topaz/lib/tonic/logging/dart_error.cc(16)] Unhandled exception:
E/flutter ( 8747): MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker)
E/flutter ( 8747): #0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:278:7)
E/flutter ( 8747): <asynchronous suspension>
E/flutter ( 8747): #1      ImagePicker.pickImage (package:image_picker/image_picker.dart:47:40)
E/flutter ( 8747): <asynchronous suspension>
E/flutter ( 8747): #2      _HomeState.getImage (package:sensegrass/screens/home.dart:20:35)
E/flutter ( 8747): <asynchronous suspension>
E/flutter ( 8747): #3      _HomeState.build.<anonymous closure> (package:sensegrass/screens/home.dart:85:11)
E/flutter ( 8747): #4      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:494:14)
E/flutter ( 8747): #5      _InkResponseState.build.<anonymous closure> (package:flutter/src/material/ink_well.dart:549:30)
E/flutter ( 8747): #6      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:102:24)
E/flutter ( 8747): #7      TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:161:9)
E/flutter ( 8747): #8      TapGestureRecognizer.handlePrimaryPointer (package:flutter/src/gestures/tap.dart:94:7)
E/flutter ( 8747): #9      PrimaryPointerGestureRecognizer.handleEvent (package:flutter/src/gestures/recognizer.dart:315:9)
E/flutter ( 8747): #10     PointerRouter._dispatch (package:flutter/src/gestures/pointer_router.dart:73:12)
E/flutter ( 8747): #11     PointerRouter.route (package:flutter/src/gestures/pointer_router.dart:101:11)
E/flutter ( 8747): #12     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:143:19)
E/flutter ( 8747): #13     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:121:22)
E/flutter ( 8747): #14     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:101:7)
E/flutter ( 8747): #15     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:64:7)
E/flutter ( 8747): #16     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:48:7)
E/flutter ( 8747): #17     _invoke1 (dart:ui/hooks.dart:134:13)
E/flutter ( 8747): #18     _dispatchPointerDataPacket (dart:ui/hooks.dart:91:5)

@PonnamKarthik what did resolve your problem? I am having the same issue and by closing this issues by yourself on the same day makes me wonder that this was due to some error by using this plugin. Could you explain how you got rid of this problem?

Ok i think i figured out myself. The trivial thing was to add permissions to the Android manifest file for using the camera.
    <uses-permission android:name="android.permission.CAMERA" />
    <uses-permission android:name="android.permission.FLASHLIGHT" />

i guess that's an issue with the documentation! On the iOS side its clearly documented how to configure your project on iOS but it is explicitly stated for Android that
Android

No configuration required - the plugin should work out of the box.

which lead me to just ignore setting permissions explicitly. Its not only missing to set permissions, it is misleading to do the right thing in the first place and try to figure out how to solve this, whereas you would normally just look at the permission which the documentation misleads by saying "don't care about permissions, we have your back".

Android :
I added permissions in android but still facingsame issue

Problem still persists why topic is closed? I'm facing similar issues. Can't get plugin working on Android. iOS works ok

Problem still persists why topic is closed? , i have the same issue with image picker

I solve this problem by 'flutter clean && flutter run'  command in terminal.

flutter clean solves the problem indeed. But often leads another error.

Hi all,
I tried :
import 'dart:io'; import 'dart:async';
Follow this
It worked well for me!

I am having the same problem -:(

All you need to do is reinstall your app to aplly changes, at least it works for me)

Having this issue on IOS:
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method pickImage on channel external_custom_packages.plugins.flutter.io/image_picker)
#0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:300:7)

#1      ImagePicker.pickImage (package:image_picker/image_picker.dart:53:40)

#2      _AvatarNameComponents._getPicture (package:swopda_frontend/widgets/editcontact/avatar_name_components.dart:85:23)

#3      _AvatarNameComponents._settingCustomModalBottomSheet.. (package:swopda_frontend/widgets/editcontact/avatar_name_components.dart:141:21)
#4      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:511:14)
#5      _InkResponseState.build. (package:flutter/src/material/ink_well.dart:566:30)
#6      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:166:24)
#7      TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:240:9)
#8      TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:211:7)
#9      GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
#10     _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:225:20)
#11     _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:199:22)
#12     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
#13     _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
#14     _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
#15     _rootRunUnary (dart:async/zone.dart:1136:13)
#16     _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#17     _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#18     _invoke1 (dart:ui/hooks.dart:233:10)
#19     _dispatchPointerDataPacket (dart:ui/hooks.dart:154:5)
using:
image_picker: ^0.6.0+9
in pubspec.yml
using flutter project -i swift -a kotlin

In my case, as the image picker plugin is using android X, my project also needed to be upgraded to Android X.
Details on how to do that can be found here: https://flutter.dev/docs/development/androidx-migration
I simply had to add the following lines to android/gradle.properties
android.useAndroidX=true
android.enableJetifier=true

and then run flutter clean

In my case, Android is working fine but iOS have problem. I am using latest version image_picker 0.6.1+8. Anyone have clue on this
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker)
#0      MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:314:7)

#1      ImagePicker.pickImage (package:image_picker/image_picker.dart:59:40)

#2      _SESSEditProfileScreenState.showImagePicker (package:saed_ess/ui/screens/Profile/SESSEditProfileScreen.dart:1252:36)

#3      _SESSEditProfileScreenState._openFileSelector.. (package:saed_ess/ui/screens/Profile/SESSEditProfileScreen.dart:1235:17)
#4      _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:654:14)
#5      _InkResponseState.build. (package:flutter/src/material/ink_well.dart:729:32)
#6      GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:182:24)
#7      TapGestureR<…>

Having this issue on IOS:
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method pickImage on channel external_custom_packages.plugins.flutter.io/image_picker)
#0 MethodChannel.invokeMethod (package:flutter/src/services/platform_channel.dart:300:7)
#1 ImagePicker.pickImage (package:image_picker/image_picker.dart:53:40)
#2 _AvatarNameComponents._getPicture (package:swopda_frontend/widgets/editcontact/avatar_name_components.dart:85:23)
#3 _AvatarNameComponents._settingCustomModalBottomSheet.. (package:swopda_frontend/widgets/editcontact/avatar_name_components.dart:141:21)
#4 _InkResponseState._handleTap (package:flutter/src/material/ink_well.dart:511:14)
#5 _InkResponseState.build. (package:flutter/src/material/ink_well.dart:566:30)
#6 GestureRecognizer.invokeCallback (package:flutter/src/gestures/recognizer.dart:166:24)
#7 TapGestureRecognizer._checkUp (package:flutter/src/gestures/tap.dart:240:9)
#8 TapGestureRecognizer.acceptGesture (package:flutter/src/gestures/tap.dart:211:7)
#9 GestureArenaManager.sweep (package:flutter/src/gestures/arena.dart:156:27)
#10 _WidgetsFlutterBinding&BindingBase&GestureBinding.handleEvent (package:flutter/src/gestures/binding.dart:225:20)
#11 _WidgetsFlutterBinding&BindingBase&GestureBinding.dispatchEvent (package:flutter/src/gestures/binding.dart:199:22)
#12 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerEvent (package:flutter/src/gestures/binding.dart:156:7)
#13 _WidgetsFlutterBinding&BindingBase&GestureBinding._flushPointerEventQueue (package:flutter/src/gestures/binding.dart:102:7)
#14 _WidgetsFlutterBinding&BindingBase&GestureBinding._handlePointerDataPacket (package:flutter/src/gestures/binding.dart:86:7)
#15 _rootRunUnary (dart:async/zone.dart:1136:13)
#16 _CustomZone.runUnary (dart:async/zone.dart:1029:19)
#17 _CustomZone.runUnaryGuarded (dart:async/zone.dart:931:7)
#18 _invoke1 (dart:ui/hooks.dart:233:10)
#19 _dispatchPointerDataPacket (dart:ui/hooks.dart:154:5)
using:
image_picker: ^0.6.0+9
in pubspec.yml
using flutter project -i swift -a kotlin

Did you get any solution for this..?

This happens to me too. Happens for iOS only. The plugins works fine on android. Happens for other plugins like shared_preferences too.
I debugged the plugins a little bit and found that its register method does get called on iOS. However the handleMessage method never gets invoked and the exception is thrown.
[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: MissingPluginException(No implementation found for method pickImage on channel plugins.flutter.io/image_picker)
I suspected setMockMethodCallHandler implementation initially. Here is a comment that i found over the method implementation in platform_channel.dart
/// Sets a mock callback for intercepting method invocations on this channel.
///
/// The given callback will replace the currently registered mock callback for
/// this channel, if any. To remove the mock handler, pass null as the
/// handler argument.
///
/// Later calls to [invokeMethod] will result in a successful result,
/// a [PlatformException] or a [MissingPluginException], determined by how
/// the future returned by the mock callback completes. The [codec] of this
/// channel is used to encode and decode values and errors.
///
/// This is intended for testing. Method calls intercepted in this manner are
/// not sent to platform plugins.
/
However, the strange thing is that the plugin works on android. And, there were no calls to setMockMethodCallHandler.
My flutter doctor output:
[✓] Flutter (Channel beta, v1.10.7, on Mac OS X 10.14.3 18D109, locale en-SA)
• Flutter version 1.10.7 at /Users/hashir/Developer/flutter
• Framework revision e70236e36c (3 weeks ago), 2019-10-02 09:32:30 -0700
• Engine revision 9e6314d348
• Dart version 2.6.0 (build 2.6.0-dev.0.0<PHONE_NUMBER>)
[!] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
• Android SDK at /Users/hashir/Library/Android/sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 28.0.3
✗ Android SDK file not found: /Users/hashir/Library/Android/sdk/platforms/android-29/android.jar.
• Try re-installing or updating your Android SDK,
visit https://flutter.dev/setup/#android-setup for detailed instructions.
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.3, Build version 10G8
• CocoaPods version 1.8.0
[✓] Android Studio (version 3.5)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 39.0.3
• Dart plugin version 191.8423
• Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
[✓] Connected device (1 available)
• iPhone Xʀ • 4A93D602-957E-4BE2-8E5E-2F5B931590CB • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-4 (simulator)

we had converted an existing iOS app into flutter. We did it long time back and it was not as per the guidelines specified in .
Following the guidelines mentioned in the wiki to convert existing ios app into flutter solves the missing plugin exceptions.

ok, I got this one,  at least worked here...these are the codes to get the image from the source I used:
Future getImageFromCamera() async {
var image = await ImagePicker.pickImage(source: ImageSource.camera);
setState(() => imageURI = image);
}
Future getImageFromGallery() async {
var image = await ImagePicker.pickImage(source: ImageSource.gallery);
setState(() => imageURI = image);
}
and the pickImage method has an Future with async call,  so when you call the get image inside your code it also must have this async call, as here:
FloatingActionButton(
backgroundColor:
Color.fromRGBO(73, 117, 152, 1.0),
child: Icon(Icons.image),
onPressed: () async =>
await getImageFromGallery(),
),
I really hope this helps. :)

flutter clean and then flutter run worked for me

Just reinstall ur app and it will work
Just quit ur app, and flutter run it again..


[5.1] Artisan commands are not destroyed between calls?

I dont know what the right terminology is - but is this a bug?
If I have a command inside Command A:
public function fire()
{
          $this->call('worker:count`);
          $this->call('worker:count`);
          $this->call('worker:count`);
}

Then in my worker:count looks like this:
protected $count = 0;

public function fire()
{
     $this->count = $this->count+1;
     echo $count;
}

I would have thought the output would be:
1
1
1

But I get
1
2
3

That doesnt seem right? It is not documented anywhere that you are re-calling the original class. It should re-initizile all variables - because you wouldnt normally be expecting them to be persistent between calls would you?

This is the expected behaviour, yeh. The call function there is creating a new console kernel each time.

If it is creating a new console kernel - why is the class persisting?


Incorrect time representation in speed test chart

Describe the bug
The chart displays points uniformly irrespective to the actual time between speed tests.
To Reproduce
Steps to reproduce the behavior:

Set speed test granularity to 5 minutes and let it run for 1 hour to generate 12 speed test results.
Set speed test granularity to 1 hour and let it run for 12 hours.
Observe that the chart displays all 24 data points with the same spacing even though the duration between points are different time intervals.

Expected behavior
There should be less spacing between speedtest results occurring every 5 minutes than those occurring every one hour on the same graph.
Environment (please complete the following information):

OS: Ubuntu
Architecture: amd64
Browser firefox

@rohitsud can you add some screenshots?

Notice the gap in the last segment is the same as previous ones even though it is for 30 mins versus 1h for old measurements.

Came to suggest the same. It's more apparent there's a much larger gap between datapoints, eg if my docker crashes and I don't notice.

Here you can see a gap of multiple days, even though they're spaced evenly on the X-axis


[Notion] Deeplinks

Extension
https://www.raycast.com/HenriChabrand/notion
Description
It would be cool if there was a way to create Deeplinks to prefilled Create a Database commands.
Like for instance I could have a Deeplink that automatically selects my Tasks database, adds me as the Assignee and sets the Status appropriately.
Who will benefit from this feature?
Anyone who has standard ways of adding information to Notion.
Anything else?
No response

What do you mean by deep link?

What do you mean by deep link?

https://developers.raycast.com/information/lifecycle/deeplinks
Since these links can accept arguments for a command, I was thinking they could potentially be used to create Quicklinks for a the Create a Database command with some properties already selected. Ultimately I'm just looking to create some input templates for different databases and properties.


Battery usage support

Hi guys,
I'm currently working on adding support for the new battery function to the
other OS we support. I don't own anything with a battery so I'll need some help
testing.
Here's the TODO for the battery function:

Add support for all platforms

See issue #46

Add an option to only print the first battery or X number of batteries.

https://github.com/dylanaraps/fetch/commit/bb48caec703c1b537e807de90afd3d6181ff78c6

Add an option to print all batteries on a single line.

https://github.com/dylanaraps/fetch/commit/6cd2881962adac36a01e6029c6ecfc63f2f07662

OS X users, what does this command output?
pmset -g batt | grep -o '[0-9]*%' | tr -d %

You can tag me next time for OS X test, I will respond to you much faster.
First one is 100.
Second one is :

AdapterInfo 0

Amperage 0

AvgTimeToEmpty 65535

AvgTimeToFull 65535

BatteryInstalled Yes

BatteryInvalidWakeSeconds 30

BatterySerialNumber XXX (don't want to share)

BootPathUpdated<PHONE_NUMBER>

CellVoltage (4090,4112,4085,0)

CurrentCapacity 6014

CycleCount 340

DesignCapacity 6330

DesignCycleCount9C 1000

DeviceName bq20z451

ExternalChargeCapable Yes

ExternalConnected Yes

FirmwareSerialNumber 1

FullPathUpdated<PHONE_NUMBER>

FullyCharged Yes

IOGeneralInterest IOCommand

InstantAmperage 0

InstantTimeToEmpty 174

IsCharging No

LegacyBatteryInfo {Amperage=0,Flags=5,Capacity=6059,Current=6014,Voltage=12287,Cycle

Location 0

ManufactureDate 17545

ManufacturerData <000000000702000a038900000XXXXXXXXXXXX (don't want to share)>

MaxCapacity 6059

MaxErr 1

OperationStatus 58435

PackReserve 200

PermanentFailureStatus 0

PostChargeWaitSeconds 120

PostDischargeWaitSeconds 120

Temperature 2943

TimeRemaining 0

UserVisiblePathUpdated<PHONE_NUMBER>

Voltage 12287

What are you planing to display? I think it would be nice to display current battery status and then options for cycle count, current capacity & design capacity and also fully charged & is charging.

Win 10 git bash:
$ WMIC Path Win32_Battery
Availability  BatteryRechargeTime  BatteryStatus  Caption           Chemistry  ConfigManagerErrorCode  ConfigManagerUserConfig  CreationClassNam                                    e  Description       DesignCapacity  DesignVoltage  DeviceID     ErrorCleared  ErrorDescription  EstimatedChargeRemaining  EstimatedRunTime  Exp                                    ectedBatteryLife  ExpectedLife  FullChargeCapacity  InstallDate  LastErrorCode  MaxRechargeTime  Name     PNPDeviceID  PowerManagementCapabiliti                                    es  PowerManagementSupported  SmartBatteryVersion  Status  StatusInfo  SystemCreationClassName  SystemName       TimeOnBattery  TimeToFullCharge
2                                  2              Internal Battery  2                                                           Win32_Battery                                          Internal Battery                  12112          ASUSXXXXX                                  98                        12312121                                                                                XXXXX               {1}                                                              FALSE                                          OK                  Win32_ComputerSystem     DESKTOP-XXXXXX
$ WMIC PATH Win32_Battery Get EstimatedChargeRemaining
EstimatedChargeRemaining
98

Thanks for the reply and for testing the commands for me!
Currently the battery function prints in this format:
# Single battery
Battery: XX%

# Multiple
Battery0: XX%
Battery1: XX%

# Shorthand Multiple
Battery: XX%, XX%

For now we'll leave battery support at just usage %, I'm getting a laptop for uni in a few weeks so I'll be able dedicate time to implement is charging, current capacity etc properly.
I'll add support for OS X in the morning, it's 2 am here so I'll be heading off to bed. For the Windows output is the 2nd command's output the percentage? It's weird that it's just 9 as the first command shows it as 98.

One more thing, what does this output on OS X?
cat /sys/class/power_supply/BAT*/capacity

Yeah sry, its 98, just copy/paste things.
Ok great, if I had time I would love to help you, but I have exams those days. Meybe after them if you like.
Nothing, because I can't even cd into /sys like it doesn't exist? The only thing starting on s is sbin.
Sleep well.

Is it possible for an OS X system to have multiple batteries in use at the same time?

Hmm I am 99% sure that this is not possible but I was just thinking about the new Macbook 12 which has multiple layers or batteries, maybe some info will be different?
But I don't think there will this "multibattery problem" on OS X so don't waste your time implementing this imo.

I've added support for Mac OS X and Windows, please test it out!
The config options are related to multi-battery and won't work on OS X and Windows for now.
To add support for multi-battery output on Windows I'll need to know the command output so I can,
parse it correctly which means that we'll have to wait for someone with a multi-battery laptop to open
an issue.

OS X works like it should, check!

Awesome!
How about Windows?

Nope, something is not ok.
 Disk: 137G / 154G (90%)
 Battery: %

I just pushed a fix to master, it should work now.

Still not working for me. Using git bash instead of cygwin should't be the problem, right?

It shouldn't be an issue, does this command work on its own?
wmic Path Win32_Battery get EstimatedChargeRemaining /value

Oh wait a sec, it is! Just found out because I tried manually. I am getting "Invalid GET Expression" (in git bash). But the command in cygwin works well. I can't get this cygwin to work as it should so I could run full fetch script. Running manually lines 1240 - 1245 gives me $ echo $battery  100 100 %

I've fixed the doubled usage in my local branch, thanks for finding it.
What about this command in git bash?:
cmd /c wmic Path Win32_Battery get EstimatedChargeRemaining /value

I just pushed a fix to master for the doubled battery usage.

If the command above doesn't work in git bash then I'm going to close this issue as it works in CYGWIN.


[WIP] CI docker revamp; Add Jetson, Raspberry and CentOS 7 build [MXNET-42][MXNET-43][MXNET-44][MXNET-57]

This PR reorganizes the Dockerfiles and the scripts around them used by our CI system, leading to easier reproducibility of errors on local machines.
Additionally, we used this moment to introduce build-and-test for Cent OS 7 as well as build-only for Nvidia Jeton and Raspberry Pi on ARMv7 and ARMv8.
The following jobs will have to be migrated or will be added as part of this process.
Sanity Check

[x] Sanity Check

Build

[x] Amalgamation
[x] Amalgamation MIN
[x] CPU: Clang 3.9
[x] CPU: Clang 5
[x] CPU: MKLDNN
[x] CPU: Openblas
[x] GPU: CMake
[x] GPU: CMake MKLDNN
[x] GPU: CUDA8.0+cuDNN5
[x] GPU: MKLDNN
[x] CPU: CentOS 7
[x] GPU: CentOS 7
[x] Nvidia Jetson
[x] Raspberry Pi

Unit test

[x] Cpp: GPU
[x] Perl: CPU
[x] Perl: GPU
[x] Python2: CPU
[x] Python2: GPU
[x] Python2: MKLDNN-CPU
[x] Python2: MKLDNN-GPU
[x] Python3: CPU
[x] Python3: GPU
[x] Python3: CPU Cent OS 7
[x] Python3: GPU Cent OS 7
[x] Python3: MKLDNN-CPU
[x] Python3: MKLDNN-GPU
[x] R: CPU
[x] R: GPU
[x] Scala: CPU

Integration test

[ ] Caffe GPU
[x] Python GPU
[ ] cpp-package GPU

Deploy

[ ] Deploy

Known problems

[ ] https://github.com/apache/incubator-mxnet/issues/10026
[ ] Hangs on Mac during 'adduser' command

Hi, the community has passed to vote about associating the code changes with JIRA<EMAIL_ADDRESS>We have updated the guidelines for contributors in https://cwiki.apache.org/confluence/display/MXNET/Development+Process, please ensure that you have created a JIRA at https://issues.apache.org/jira/projects/MXNET/issues/ to describe your work in this pull request and include the JIRA title in your PR as [MXNET-xxxx] your title where MXNET-xxxx is the JIRA id

@szha @sergeykolychev @tqchen @cjolivier01 @eric-haibin-lin can you please review?

BTW great job Marco and good teamwork!

Yes, all jobs have been migrated. I'm just waiting for Anton to fix the Android builds.
Yes, great teamwork! Thanks everybody :)

LGTM


python310Packages.dbus-fast: 1.24.0 -> 1.26.0

Description of changes
https://github.com/Bluetooth-Devices/dbus-fast/releases/tag/v1.25.0
https://github.com/Bluetooth-Devices/dbus-fast/releases/tag/v1.26.0

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Please squash.


Why there is difference color between vision pro app with ios app？

Since I directly return float4(sRGBToLinear(0.4521f),sRGBToLinear(0.131412f),sRGBToLinear(0.63231f),1.0f); in vision pro and ios app, and I set the pixelcolorformat the same with bgraunit8norm, but I get different result?

Is it the reason why there is a different rendering result between vision pro one with IOS app(https://github.com/laanlabs/metal-splats)

Hard to compare these two -- two totally different codebases, and with simulators in the mix (and it looks like an app being run in compatibility mode?) there could be all kinds of differences through the pipeline.
Or are you running the MetalSplatter sample app on both iOS and visionOS and seeing different results?

Closing for lack of information; please reopen if you can verify that the same app codebase is resulting in different colors on different platforms, and we can take it from there.


Monorepo revert

Summary
This was a delicate operation:

Review all the commits in the local mpa-playbooks branch not in master (git log --no-merges mpa-playbooks ^master) and then cherry-pick changes not related to MPA.
Review commits from the (fortunately still around) mono-repo branch and cherry-pick changes not related to MPA.
Review commits from https://github.com/mattermost/mattermost affecting server/playbooks and webapp/playbooks and cherry-pick as appropriate.
Copy in all the e2e-tests from https://github.com/mattermost/mattermost

Ticket Link
None.

Note that the e2e tests won't pass until @mgdelacroix's changes in https://github.com/mattermost/mattermost/pull/23732 make it to master (and later, cloud), but I'll keep an eye on these to ensure we get back to a stable build.

@mgdelacroix, sharing for your second review, though I totally understand if there's "too much here" to meaningfully review. I had originally looped in @calebroseland, but realized later he's OOO.
Note that the cloud e2e tests are expected to fail until your changes promote to that environment.


improvement: addition of negation understanding model

Feature related to new ml model for NLP architect library
negation understanding model needs to be implemented

Hi @Akshat4112, thanks for reaching out.
Negation understanding is not on our queue of models to be released. If you'd like to contribute you're welcome to PR your work.
Peter


To make old-conference note fit on small screens, I wrapped text into…

… spans and styled class "part-two" using media queries. <= 650px gets small text and <= 450px gets a line break as well.

The commit message should explain it all


Entered BIDTYPE in the DUID field

Description:
Tried exporting a file by entering BIDTYPE in the DUID field.
Steps to reproduce:
2.1. Selected the folder with CSV files in it.
2.2. Entered BIDTYPE in the DUID field.
2.3. App crashed when clicked the export button
Error log:

Expected results:
An error message to notify user to enter correct type of data in the feild

Dup #24


WFLY-13555 Upgrade jgroups-azure to 1.3.0.Final

Resolves
https://issues.redhat.com/browse/WFLY-13555

Dependency Tree Analyzer Output:
Major Version Changes:

com.microsoft.azure:azure-storage:jar:6.1.0:compile -> 8.6.4

CC @wildfly/prod

Thanks @rhusar.
JIRA isn't working for me right now so please check back on the JIRA and resolve it if it remains unresolved.

Thanks, will do.


[vcpkg] Fortran support again. (Just testing)

Probably requires CMake and Ninja update in CI? Lets see...
Another approach to #6939 using gfortran from msys.
Fortran executables require to be linked with ld since libgfortran.lib requires symbols from libmingw32.lib which requires symbol __image_base__

hmmm openblas fails with:
-- Configuring x64-windows
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:72 (message):
    Command failed: ninja -v
    Working Directory: C:/agent/_work/1/s/buildtrees/openblas/x64-windows-rel/vcpkg-parallel-configure
    Error code: The system cannot find the file specified
    See logs for more information:

and I don't yet understand why. I have the feeling it is related to the ninja changes made in vcpkg_find_acquire_program.

@Neumann-A let me know if/when you need help. I'd still like to see this happen.

Also how do you plan on dealing with the circular dependency of netlib's LAPACK needing a BLAS library and OpenBLAS needing a LAPACK library?

Also how do you plan on dealing with the circular dependency of netlib's LAPACK needing a BLAS library and OpenBLAS needing a LAPACK library?

@cbezault: I thought we solved this issue and found that there is no circular dependency. It is LAPACK depends on BLAS and not the other way around. The OpenBLAS src directories has some extras which can be build if LAPACK is available but that would be a different port if I remember correctly. The same as lapack has some additional features like LAPACKE which should be its own little port.
The main thing I need currently is the latest CMake merged into vcpkg ;)

Related: http://www.netlib.org/lapack/lawnspdf/lawn270.pdf

When creating a shared library (.dll) the MinGW toolchain produces a GNU-format import
library (.dll.a) needed to link to the shared library. Microsoft (MS) tools do not recognize this
format. In order to use MS tools and link to a shared library created by MinGW tools one must
generate a MS-format import library (.lib) using the MS lib.exe tool installed with Visual Studio.
When building with MinGW tools on a machine that also has Visual Studio installed CMake
2.8.7 and higher offers a “CMAKE_GNUtoMS” option. When enabled CMake automatically
generates additional build rules to run the MS lib.exe tool and create a MS-format import library
(.lib) for each shared library (.dll) created by a project in addition to its normal GNU-format
import library (.dll.a). One may enable the option by setting CMAKE_GNUtoMS inside the
project CMake code or by passing it on the CMake command line when generating the build
tree:
Note that the feature currently works only for SHARED libraries because they reference their
dependence on the GNU Fortran runtime libraries internally. STATIC libraries are more
challenging because they requires explicit linking to the runtime libraries whose format would
also need conversion. A project may specify that a library be shared by using the SHARED
option of the add_library command:

probably have to switch lapack-reference to DYNAMIC only

My memory is that OpenBLAS requires a LAPACK library (unnecessarily) in order to build.

My memory is that OpenBLAS requires a LAPACK library (unnecessarily) in order to build.

That is already solved in vcpkg and openblas should only build the blas part on all platforms.

/azp run

/azp run

Closing this until #10767 is merged. Don't want to CI to be run on this without a reason. lapack-reference build fine on windows which was all I wanted to see for now.


Data-URI Highlight plugin

This PR is a proposal for #485. It is inspired by the Autolinker plugin.

A small change was made to the Autolinker plugin so that both are compatible.

Very nice plugin! It works very well.
Maybe we should remove 'comment' from the candidates array. It is very unlikely that a data-uri is inside a comment and even if there is one it probably shouldn't be highlighted, because it looks a bit weird:

What do you think?

Haha indeed this is ridiculous! ^^ This is fixed, thanks!


Draft: 442 fix semgrep issues at githubworkflows

Are you sure you want to do this? Isn't it better just to use comments to ignore these warnings.


🌟 Cleanup Frontend

Overview 🌟

First, remove the different styling solutions (Drop MUI and Tailwind) and leave only the SASS
We incorporate the Sass system from Surge

Sounds like a plan. Let's do this.

Hi @d-a-ve, I've refactored the code to use SCSS and removed most of the previous styling code.  Once you've reviewed it, I will merge this branch.
Now this code is a mess. From here you can carry on and do the magic.

Hi @d-a-ve, I've refactored the code to use SCSS and removed most of the previous styling code.  Once you've reviewed it, I will merge this branch.
Now this code is a mess. From here you can carry on and do the magic.

Alright, I will give it a look. Then you can merge and get what we have now to what we had before.

@d-a-ve Should I merge it now?

@samiurprapon I dropped some comments, and apart from that yeah, it looks good to me. It can be merged.

@d-a-ve I merged it. Now you can lead this from here.


urn changes/postman fix

Same as #292 , for 3.5.0 branch

[X] urn as title in the success response.
[X] postman fix for above changes.
[x] TotalCount change for count API. [will not be done, since it will be confusing b/w paginations response param and API response]
[X] status code 413 for larger response size (response totalHits count > 50000)

test this please

retest this please

retest this please


New utility functions

added removeWhitespace, capitalize, replaceAll
fixed workflow
updated readme

Added: New utility functions 💯

added removeWhitespace, capitalize, replaceAll ⚡
fixed workflow
updated readme


Dataset Descriptions

Quite a few tables were added recently with no descriptions in dataset.py. Most are self-explanatory but we should add quick comments to be consistent with what we were doing before.

Furthermore, about 5 are referencing numskull and I assume we are no longer using them. 3 separate are specified only for debugging purposes and to be removed. If these are not used anymore we should remove them.

@JVonderwell @gmichalo What is the status of this? Do we need to get this done before release?


Fixed #28723 -- RelatedManager.get_prefetch_queryset returns "wrong" cache_name

https://code.djangoproject.com/ticket/28723

I'd like to add something like _get_prefetch_cache_name() so that we have one place to define the cache name, but it feels like that's not in keeping with the general style.

@mwhansen you can use the fields cache internal "api" for this.
Replace self.field.remote_field.get_accessor_name() with self.field.remote_field.get_cache_name()

@czpython There you go!


Splitted Aperture CR to Agent and Controller CR

Fixes #196

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


feat:  add chart package

Summary
'@rango-dev/charts' is the new package that needs to be created in rango-client.
Additionally, the bar chart needs to be moved to this package.
Fixes # (issue)
How did you test this change?
You can use Explorer to test.
Do the following in addition to linking the @rango-dev/charts package to the explorer:
-In the Rango-client:
cd yarn link node_modules/react
-In Explorer:
yarn link react
Before running the project, make sure to clear the Explorer's cache and build it.
Checklist:

[x] I have performed a self-review of my code
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] Implemented a user interface (UI) change, referencing our Figma design to ensure pixel-perfect precision.

I didn't review the component, I've just reviewed the packaging stuff.
Please also add an example of BarChart in stroybook

I added an example of BarChart in storybook


ArgumentError: invalid number of elements (5 for 1..2)

qt version: 4.8.5
capybara version: 2.2.0
capybara webkit version: 1.1.0
ruby version: 2.0.0-p247
rails version: 4.0.1
After upgrading Rails from 3.2.15 to 4.0.1, I started receiving errors on a spec when trying to inspect the page.response_headers.
The error is the same as the issue title. The error is occurring in this file:
capybara-webkit-1.1.0/lib/capybara/webkit/browser.rb:74:in `[]'
If I set the driver to Webkit Debug and try to access the response headers, I get the following:
Received "Headers"
Started "Headers"
Finished "Headers" with response "Success(X-Frame-Options: DENY
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Ua-Compatible: chrome=1
Content-Security-Policy-Report-Only: default-src https: data: 'unsafe-inline' 'unsafe-eval'; frame-src https://* about: javascript:; img-src data:
Content-Type: text/html; charset=utf-8
Etag: "59df19094135a9fb03c6462eb09facb2"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e6626902-fb10-4c25-a3b5-2c50fb70a873
X-Runtime: 0.021853
Server: WEBrick/1.3.1 (Ruby/2.0.0/2013-06-27)
Date: Sat, 14 Dec 2013 00:56:36 GMT
Content-Length: 2312
Connection: Keep-Alive)"
Wrote response true "X-Frame-Options: DENY
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Ua-Compatible: chrome=1
Content-Security-Policy-Report-Only: default-src https: data: 'unsafe-inline' 'unsafe-eval'; frame-src https://* about: javascript:; img-src data:
Content-Type: text/html; charset=utf-8
Etag: "59df19094135a9fb03c6462eb09facb2"
Cache-Control: max-age=0, private, must-revalidate
X-Request-Id: e6626902-fb10-4c25-a3b5-2c50fb70a873
X-Runtime: 0.021853
Server: WEBrick/1.3.1 (Ruby/2.0.0/2013-06-27)
Date: Sat, 14 Dec 2013 00:56:36 GMT
Content-Length: 2312
Connection: Keep-Alive"
ArgumentError: invalid number of elements (5 for 1..2)
from /myproject/vendor/ruby/2.0.0/gems/capybara-webkit-1.1.0/lib/capybara/webkit/browser.rb:74:in `[]'

In the spec all that I'm doing is signing in and then inspecting that response_headers:
        puts "HEADERS #{page.response_headers.inspect}"

@eddorre Can you confirm whether or not you're still having these issues using the latest version of capybara-webkit?

I'll close this issue due to inactivity. Please feel free to re-open it if you're still having these issues.


ICS Entity Index

Closes #20.
Adds a set intersection utility and the entity index with tests.

There should be only 1 layer I believe:
CompStoreId -> Component (in ComponentStore)
If you want, you could always search through the whole component store for the CompStoreId that you want. All other classes or structs are made for further efficiency. Similar to how databases work, indexes only speed things up.
However, in our case, unlike databases, it doesn't use or update all indexes for you automatically. All indexes currently work on the basis that you have an extra piece of information that can speed up the query: the component type or the entity ID.

There should be only 1 layer I believe:
CompStoreId -> Component (in ComponentStore)
If you want, you could always search through the whole component store for the CompStoreId that you want. All other classes or structs are made for further efficiency. Similar to how databases work, indexes only speed things up.
However, in our case, unlike databases, it doesn't use or update all indexes for you automatically. All indexes currently work on the basis that you have an extra piece of information that can speed up the query: the component type or the entity ID.

However, in our case, unlike databases, it doesn't use or update all indexes for you automatically. All indexes currently work on the basis that you have an extra piece of information that can speed up the query: the component type or the entity ID.

Exactly why this could be difficult to  use correctly. I didn't write the code and could miss updating one index or another and then be confused on why things don't work. If these index updates are abstracted away this could be much easier.
I guess we can worry about this in a next PR.
Names updates makes things clearer :+1:

However, in our case, unlike databases, it doesn't use or update all indexes for you automatically. All indexes currently work on the basis that you have an extra piece of information that can speed up the query: the component type or the entity ID.

Exactly why this could be difficult to  use correctly. I didn't write the code and could miss updating one index or another and then be confused on why things don't work. If these index updates are abstracted away this could be much easier.
I guess we can worry about this in a next PR.
Names updates makes things clearer :+1:


API For Querying Bazel Projects

Create an API for querying Bazel projects using the WORKSPACE tree domain developed by @NovaMachina. Ideally this API would be a "chained" API for simplicity. E.g.
List<BuildTarget> targets = WorkspaceTree("@myrepo").findBuildTargets("/path/to/package").findDeps(...);
List<BuildFile> packages = WorkspaceTree("@another_repo").findPackages("/path/to/");
var something = WorkspaceTree(...).find(...).find(...).find(...); // Just this general structure

But do what you think is most appropriate. This is going to be used in many of our providers.

[ ] Create easy to use API

Query features we need:

[ ] Search a WORKSPACE tree for possible completions for a path. Given "//path/to/", return "//path/to/a", "//path/to/b".  This will be used for autocompletion #7.
[ ] Search a WORKSPACE tree for possible targets for a package. Given "//path/to:", return "//path/to:targetA", "//path/to:targetB". This will be used for autocompletion #7.
[ ] Determine if a path is a valid target. Given "//path/to:targetA", return whether target exists. This will be used for semantic highlighting, #58.
[ ] Determine the source files associated with a build target. Given "path/to/source/file.java", return the BazelTarget which uses that source file. This will be used for src to build navigation #86.
[ ] Feel free to add any more queries you feel are necessary.

Unit tests

[ ] Create unit tests to test the queries.

More context found in #82


docs: split documentation into individual pages

What type of PR is this?

documentation

What this PR does / why we need it:
Improves documentation by breaking up pages into individual sections/pages making it easier to navigate (In my opinion)
Special notes for your reviewer:
This PR extends some of the work done in #1343 by breaking up the manuals into individual pages to improve navigate and ability to find things. I've only done the v1 docs, but will finish the v2 if I can get some confirmation that this is something you folks are interested in.

Before

After

Preview at -> https://hay-kot.github.io/cli/v1/examples/generated-help-text/

@hay-kot Amazing work! Thank you so much! I would love to see this for the v2 guide, too ❤

Thanks!
Just pushed the changes version v2 docs.
I also made two changes to improve the search results.

Added a v1 and v2 tag to applicable pages which display in search. Before results from v1 vs v2 were indistinguishable
I "boosted" all v2 pages to hopefully put those at the top of the results when the pages are nearly duplicate.

Ahhh, looks like an unintended side effect of splitting the documentation was that the gfmrun test now fails. 😞
I implemented a --walk flag that will walk the directory and collect all the markdowns and pass them along to the tool. There is a discrepancy between the count and the results from the tool. I didn't see anything obvious, but could use another set of eyes, it's probably something silly.
Here's that snippet.
https://github.com/urfave/cli/pull/1453/files#diff-f2ae1f6d37751ba11f66da69f40d1c3076bb1f2246878641080d5855034881b3R259-R282


use Tailwindcss instead of ChakraUI & emotion

Changes

3d features (three.js, drei)
use tailwindcss instead of chakraui and emotion
change information and design in index page (About me page)
add footer


BUG: User api version should take priority

Codecov Report

Merging #60 (b1158a6) into master (96b9988) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #60      +/-   ##
==========================================
- Coverage   88.89%   88.88%   -0.02%
==========================================
  Files          31       31
  Lines        2189     2187       -2
  Branches       50       50
==========================================
- Hits         1946     1944       -2
  Misses        234      234
  Partials        9        9

Impacted Files
Coverage Δ

avionix/kube/base_objects.py
96.87% <100.00%> (ø)

avionix/chart/chart_builder.py
94.51% <0.00%> (-0.04%)
:arrow_down:

avionix/chart/chart_dependency.py
100.00% <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 96b9988...b1158a6. Read the comment docs.

Codecov Report

Merging #60 (b1158a6) into master (96b9988) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #60      +/-   ##
==========================================
- Coverage   88.89%   88.88%   -0.02%
==========================================
  Files          31       31
  Lines        2189     2187       -2
  Branches       50       50
==========================================
- Hits         1946     1944       -2
  Misses        234      234
  Partials        9        9

Impacted Files
Coverage Δ

avionix/kube/base_objects.py
96.87% <100.00%> (ø)

avionix/chart/chart_builder.py
94.51% <0.00%> (-0.04%)
:arrow_down:

avionix/chart/chart_dependency.py
100.00% <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 96b9988...b1158a6. Read the comment docs.


.url() no longer returning value

When I do horseman.url() it returns some kind of object instead of the actual URL.

This seems to work ok for me. Can you give an example that doesn't?
var Horseman = require('node-horseman');

var horseman = new Horseman();

horseman
	.open('http://www.google.com')
	.url()
	.log()
	.close();

Are you looking at the synchronous return value? Because that is a Promise, which is an object.

Closing, seems like this was a misunderstanding of the API.


What is the sorting basis for key values after decode?

Here is the content of json file
{
    "1": "1",
    "2": "2",
    "3": "3",
    "4": "4"
}

here is my code
local cjson = require "cjson"
local function load_file(user_conf_file)
    local f = io.open(user_conf_file)
    if not f then
      return nil
    end
    local cont = f:read("*a")
    f:close()
    local fjson = cjson.decode(cont)
    for k, v in pairs(fjson) do
      print(k)
    end
    return true
end

The output order is different each time，such as1432, 3142 .
So what is the sorting basis for key values after decode? Is there a way to guarantee the original order？

luajit adds randomness to lua table, so the order in which the table is traversed is not fixed.


How to set the time out for the task for custom client. I am using the custom client and the response is taking too long. How should, I terminate my task after the particular time, if I do not receive any response from custom client.

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

Describe the solution you'd like

Describe alternatives you've considered

Additional context

Questions go to slack or stackoverflow


Sampling with LearnedGaussianDiffusion

Hi @lucidrains ,
Thanks for another great repo.
I encountered an issue when sampling LearnedGaussianDiffusion using the trainer argument save_and_sample_every. The error is showing up in:
pred_noise, x_start, *_ = self.model_predictions(img, time_cond, self_cond,
It says:
model_predictions() got an unexpected keyword argument 'clip_x_start'
I'm going to try to figure it out myself and send a PR but let me know if it something dumb that can be changed easily.
Thanks

I see, the learned diffusion sampler only takes 2 arguments. Should I add an IF statement to make it general? Let me know what you prefer.

Thanks for the blazing fast response. It works like a charm.
I see in your code comments that you also were not able to get good results with this method. I trained cifar10 for 500k iterations following their paper and got pretty funky results


Small Typo in FilePond Server Docu

Summary
Small typo in the documentation for FilePond Server
How to reproduce
Just take a look on the URL mentioned above (halfway the page)
Expected behavior
mmm ... it would be nice if it could be corrected in the docu :)
Will protect other developers from confusion ...
Additional information
In the docu, you're using a mixture of "the good old way of writing functions" , and "fat arrow notation"
Currently in the docu: (and not compiling)
  onload: function(response) => {
    return response.key;
  },

  onerror: function(response) => {
    return response.data;
  }

Suggestion: correct this to either:
Good old school notation
  onload: function(response) {
    return response.key
  },

  onerror: function(response) {
    return response.data
  },

or
Fat Arrow Syntax
  onload: (response) => response.key,

  onerror: (response) => response.data,

Hope it makes sense ...
Kind regards
(and BIG CONGRATZ for the development of this component !! )
Johnny

Thanks Johnny! Just updated the docs.


WIP: Disable grapheme cache

@swift-ci please benchmark

Performance: -O

Regression
OLD
NEW
DELTA
RATIO

CSVParsing.Char
293
521
+77.8%
0.56x

StringHasSuffixUnicode
134000
233000
+73.9%
0.58x

RemoveWhereQuadraticString
244
318
+30.3%
0.77x

StringMatch
4200
5100
+21.4%
0.82x

FindString.Rec3.String
159
185
+16.4%
0.86x

RomanNumbers2
374
413
+10.4%
0.91x (?)

FindString.Rec3.Substring
191
209
+9.4%
0.91x (?)

FindString.Loop1.Substring
632
684
+8.2%
0.92x

Improvement
OLD
NEW
DELTA
RATIO

ObjectiveCBridgeStringHash
49
42
-14.3%
1.17x

RandomShuffleLCG2
384
336
-12.5%
1.14x

Set.subtracting.Empty.Box
8
7
-12.5%
1.14x (?)

ArrayLiteral2
76
67
-11.8%
1.13x (?)

RemoveWhereSwapInts
35
31
-11.4%
1.13x

Array2D
3904
3472
-11.1%
1.12x (?)

DataToStringEmpty
500
450
-10.0%
1.11x (?)

MapReduceAnyCollection
218
197
-9.6%
1.11x (?)

DistinctClassFieldAccesses
204
185
-9.3%
1.10x (?)

ArraySetElement
283
262
-7.4%
1.08x (?)

SuffixSequence
311
288
-7.4%
1.08x (?)

ArrayInClass
910
850
-6.6%
1.07x (?)

Code size: -O
Performance: -Osize

Regression
OLD
NEW
DELTA
RATIO

CSVParsing.Char
295
524
+77.6%
0.56x

StringHasSuffixUnicode
134000
233000
+73.9%
0.58x

RemoveWhereQuadraticString
249
316
+26.9%
0.79x

StringMatch
4700
5800
+23.4%
0.81x (?)

FindString.Rec3.String
161
184
+14.3%
0.88x (?)

FindString.Rec3.Substring
192
217
+13.0%
0.88x

FindString.Loop1.Substring
634
705
+11.2%
0.90x

Improvement
OLD
NEW
DELTA
RATIO

Set.subtracting.Empty.Box
9
7
-22.2%
1.29x

Array2D
4544
3696
-18.7%
1.23x

ObjectiveCBridgeStringHash
50
42
-16.0%
1.19x

Set.isDisjoint.Seq.Box.Empty
93
80
-14.0%
1.16x

ArrayLiteral2
117
102
-12.8%
1.15x (?)

SubstringFromLongString
8
7
-12.5%
1.14x

RandomShuffleLCG2
416
368
-11.5%
1.13x

RemoveWhereSwapInts
35
31
-11.4%
1.13x

DistinctClassFieldAccesses
198
178
-10.1%
1.11x (?)

FlattenListLoop
2374
2148
-9.5%
1.11x (?)

DataCreateEmptyArray
1600
1450
-9.4%
1.10x (?)

Hanoi
2400
2200
-8.3%
1.09x (?)

UTF8Decode_InitDecoding
123
113
-8.1%
1.09x (?)

MapReduceAnyCollection
260
239
-8.1%
1.09x (?)

RemoveWhereFilterInts
25
23
-8.0%
1.09x

ArraySetElement
283
262
-7.4%
1.08x (?)

ArrayInClass
935
870
-7.0%
1.07x (?)

Code size: -Osize
Performance: -Onone

Regression
OLD
NEW
DELTA
RATIO

StringHasSuffixUnicode
136000
236000
+73.5%
0.58x

CSVParsing.Char
603
831
+37.8%
0.73x

FindString.Loop1.Substring
764
852
+11.5%
0.90x

Improvement
OLD
NEW
DELTA
RATIO

ObjectiveCBridgeStringHash
49
42
-14.3%
1.17x

ArrayOfPOD
725
658
-9.2%
1.10x (?)

ArrayInClass
2625
2405
-8.4%
1.09x

UTF8Decode_InitDecoding
142
131
-7.7%
1.08x (?)

StringToDataEmpty
650
600
-7.7%
1.08x (?)

ExclusivityGlobal
119
111
-6.7%
1.07x (?)

NopDeinit
131900
123100
-6.7%
1.07x (?)

StringToDataSmall
750
700
-6.7%
1.07x (?)

Code size: -swiftlibs

How to read the data
The tables contain differences in performance which are larger than 8% and
differences in code size which are larger than 1%.
If you see any unexpected regressions, you should consider fixing the
regressions before you merge the PR.
Noise: Sometimes the performance results (not code size!) contain false
alarms. Unexpected regressions which are marked with '(?)' are probably noise.
If you see regressions which you cannot explain you can try to run the
benchmarks again. If regressions still show up, please consult with the
performance team (@eeckstein).

Hardware Overview
  Model Name: Mac mini
  Model Identifier: Macmini8,1
  Processor Name: Intel Core i7
  Processor Speed: 3.2 GHz
  Number of Processors: 1
  Total Number of Cores: 6
  L2 Cache (per Core): 256 KB
  L3 Cache: 12 MB
  Memory: 64 GB

Can one of the admins verify this patch?

Please update the base branch to main by Oct 5th otherwise the pull request will be closed automatically.

How to change the base branch: (Link)
More detail about the branch update: (Link)


Relax dependencies or allow botocore==1.19.52

Is your feature request related to a problem? Please describe.
I am using the label-studio package in combination with aiobotocore and because of the exact pin of botocore in label-studio, the two cannot be installed together since dependencies cannot be resolved, namely:
label-studio requires botocore==1.19.28
aiobotocore requires botocore>=1.19.52,<1.19.53 (for example; there are other versions requiring other botocore versions but never the same one as label-studio)
Describe the solution you'd like
Having exact pins for a package used by other packages makes it really hard to satisfy dependencies, and sometimes, like in my case, it is impossible to do so. Switching to conditional requirements would greatly improve it, e.g. botocore~=1.19.28.
Describe alternatives you've considered
If the above solution is not possible (why?), could you pin a bit latter version of botocore to 1.19.52?

@odimko Relaxed deps have problems too: pip will try to resolve them automatically and it takes about hour :slightly_frowning_face: Do you know how to avoid this? We had this problem with google packages, but strong pins solved it.

Also you can try to install aiobotocore after LS installation, it worked for me.

Hey @makseq ! thanks for a quick reply :)
regarding pip being slow, it was a case indeed some time ago, but they've done some big improvements in this regard (e.g. https://github.com/pypa/pip/issues/9187) and dependency resolution sped up.
For example, I did a time pip install of the package and this is the result (using a clean Python virtualenv):
pip install label-studio==1.3.0 --no-cache-dir  30,61s user 2,99s system 72% cpu 46,392 total

for comparison, this is the result when I install all label-studio's reqs with relaxed conditions (also in a new virtualenv):
pip install -r reqs.txt --no-cache-dir  27,61s user 2,39s
[reqs.txt](https://github.com/heartexlabs/label-studio/files/8022987/reqs.txt)
system 73% cpu 40,722 total

I have used ~= instead of == which is already more flexible for the following packages (the requirements file is attached):
boto~=2.49.0
boto3~=1.16.28
botocore~=1.19.28
google-cloud-storage~=1.28.1
google-cloud-logging~=2.6.0

So as you can see there is no that big difference 🤔

@odimko Could you please check the fix in 1.4.1rc2: pip install label-studio==1.4.1rc2 ?

@makseq , works like a charm!
pip install -r reqs.txt --no-cache-dir  44,23s user 3,93s system 54% cpu 1:28,73 total

the time has slightly increased because reqs.txt contains more than just label-studio as a requirement (I was testing my setup :)).

thanks @makseq ! will the fix be released together with the version 1.4.1?

Max Tkachenko commented: It’s already there!


[BSO] Limit =spawnlamp to #bot-channel-bso

🚀 Feature Proposal
Would be consistent with =spawnbox, and the command is spammy by nature. Its appreciated when they're spawned in #general but it floods out the chat.
And now, people are beginning to spawn them in less active channels (seen them spawn in mass channels and even an attempt in patrons...). This will keep happening until its limited to a channel

+1 they even try it in the mass channels now

Fixed in next update.


Bugfix: memory leak #72

Thank you for this great library. This PR will fix the memory leak of #72.

I commented on #72. First of all, I'm sorry this has been unanswered/fixed for so long. I didn't really think of a use case for where this would be an issue, but anywhere the RecyclerView is removed from it's parent and dereferenced, this would leak the RecyclerView itself, so this is a good change (though leaking the Context would never happen).

I will release a new version of the library in the next day or two.


support information

support information in composer.json :kissing_heart:

uhm, something is wrong with the package, let me check what is going on before merge

Thanks, the problem with building is related to a bad usage of PSR-7. I will merge this and create other PR to fix the building issue.


Add nonce to p2p messages.

We should add a unique cryptographic hash (aka nonce) to messages sent through p2p, (direct/gossip). this nonce should be used so we don't process or send the same message twice.

We decided to not do this eventually. archived for now. feel free to re-open if you have a good reason.


populate table with prepared statement

Codecov Report

Merging #329 into dev will increase coverage by 0.1%.
The diff coverage is n/a.

@@             Coverage Diff             @@
##                dev     #329     +/-   ##
===========================================
+ Coverage     37.22%   37.33%   +0.1%
- Complexity     1662     1671      +9
===========================================
  Files           103      103
  Lines         23673    23673
  Branches       3882     3882
===========================================
+ Hits           8812     8838     +26
+ Misses        13267    13241     -26
  Partials       1594     1594

Flag
Coverage Δ
Complexity Δ

#JDBC41
37.23% <ø> (+0.22%)
1664 <ø> (+12)
:arrow_up:

#JDBC42
37.15% <ø> (-0.01%)
1663 <ø> (+3)

Impacted Files
Coverage Δ
Complexity Δ

...n/java/com/microsoft/sqlserver/jdbc/DataTypes.java
69.86% <0%> (-0.17%)
4% <0%> (-1%)

...om/microsoft/sqlserver/jdbc/SQLServerBulkCopy.java
49.04% <0%> (-0.08%)
212% <0%> (+1%)

...in/java/com/microsoft/sqlserver/jdbc/IOBuffer.java
46.45% <0%> (+0.17%)
0% <0%> (ø)
:arrow_down:

...rc/main/java/com/microsoft/sqlserver/jdbc/dtv.java
37.03% <0%> (+0.27%)
0% <0%> (ø)
:arrow_down:

...m/microsoft/sqlserver/jdbc/SQLServerResultSet.java
27.53% <0%> (+0.29%)
189% <0%> (+2%)
:arrow_up:

...c/main/java/com/microsoft/sqlserver/jdbc/Util.java
46.33% <0%> (+0.47%)
62% <0%> (+1%)
:arrow_up:

...rc/main/java/com/microsoft/sqlserver/jdbc/DDC.java
29.68% <0%> (+0.66%)
56% <0%> (+2%)
:arrow_up:

...a/com/microsoft/sqlserver/jdbc/PLPInputStream.java
40.23% <0%> (+1.18%)
29% <0%> (+1%)
:arrow_up:

...m/microsoft/sqlserver/jdbc/SQLServerException.java
77.23% <0%> (+1.62%)
29% <0%> (+1%)
:arrow_up:

...om/microsoft/sqlserver/jdbc/ReaderInputStream.java
44.94% <0%> (+3.37%)
16% <0%> (+2%)
:arrow_up:

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 92a9dfa...36d0e14. Read the comment docs.

closing because new PR #386 is open


JSON module can not be imported in a Typescript project when Yarn v2 is used

Describe the bug
After starting a CRA project with Yarn v1.22 and then switching to Yarn v2, JSON modules can no longer be imported.
Did you try recovering your dependencies?
Yes
Environment

Environment Info:

  current version of create-react-app: 3.4.1
  running from /home/oskar/.yarn/berry/cache/create-react-app-npm-3.4.1-117c117b52-4.zip/node_modules/create-react-app

  System:
    OS: Linux 5.3 Ubuntu 19.10 (Eoan Ermine)
    CPU: (4) x64 Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
  Binaries:
    Node: 12.18.0 - /tmp/xfs-cb9d4159/node
    Yarn: 2.0.0-rc.36 - /tmp/xfs-cb9d4159/yarn
    npm: 6.14.4 - ~/bin/npm
  Browsers:
    Chrome: 83.0.4103.97
    Firefox: 77.0.1
  npmPackages:
    react: Not Found
    react-dom: Not Found
    react-scripts: Not Found
  npmGlobalPackages:
    create-react-app: Not Found

Steps to reproduce

yarn create react-app my-app --template typescript
yarn set version berry
yarn install
Create a JSON file in src/ and import it from src/App.tsx
yarn start

Expected behavior
Application should start.
Actual behavior
Failed to compile.

/tmp/test_cra/my-app/src/App.tsx
TypeScript error in /tmp/test_cra/my-app/src/App.tsx(4,18):
Cannot find module './test.json'.  TS2307

Reproducible demo
https://github.com/oskarkook/test_cra
yarn install && yarn start

@oskarkook We have the same issue, did you manage to solve it?

@fristedt Unfortunately I did not find a fix. I switched back to Yarn v1. If you find a solution, please let me know :)

We have exactly the same problem. Would be nice to have at least some workaround here :(

Does the issue happen in 4.0? If so, I think you should open a new issue.

Hitting this issue too. I was able to workaround by doing const jsonObject = require("./file.json"); instead of import jsonObject from "./file.json" in my project source code

This was fixed in https://github.com/facebook/create-react-app/pull/11201 / create-react-app@5


TLS Everywhere adoption

Depends-On: https://github.com/openstack-k8s-operators/install_yamls/pull/756

recheck

recheck

TASK [tls_adoption : Create Certificate Issuer with cert and key from IPA] *****
fatal: [localhost]: FAILED! => {"msg": "The conditional check 'enable_tlse|bool' failed. The error was: error while evaluating conditional (enable_tlse|bool): 'enable_tlse' is undefined.

https://review.rdoproject.org/zuul/build/c4f277744a5149ec9841a2d64936ff99

Thanks for helping out! I applied the changes.

I noticed the ordering in the ToC is incorrect, the TLS Everywhere page should be before creating the openstack OpenStackControlPlane. This is probably because of the restructuring in the docs. I'll look into it.

I adjusted the ToC and headers inside the TLS-E page.
@klgill maybe you could also take a look if this can go in as is.

recheck

recheck

recheck

recheck

recheck

@xek ok to merge this one and iterate?

@jistr yep, go ahead

this one broke the periodic job - see the last three builds [1] [2] [3]
TASK [backend_services : run kustomize and create controlplane with container overrides] ***
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "set -euxo pipefail\n\n\nmkdir -p tmp\noc kustomize periodic_ci > tmp/test_deployment.yaml\noc apply -f tmp/test_deployment.yaml\n", "delta": "0:00:00.271966", "end": "2024-04-20 04:32:37.536389", "msg": "non-zero return code", "rc": 1, "start": "2024-04-20 04:32:37.264423", "stderr": "+ mkdir -p tmp\n+ oc kustomize periodic_ci\n# Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically.\n# Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically.\n# Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically.\nerror: trouble configuring builtin PatchStrategicMergeTransformer with config: `\npaths:\n- ../base/tls_overrides.yaml\n- container_image_overrides.yaml\n`: security; file '/home/zuul/src/github.com/openstack-k8s-operators/data-plane-adoption/tests/config/base/tls_overrides.yaml' is not in or below '/home/zuul/src/github.com/openstack-k8s-operators/data-plane-adoption/tests/config/periodic_ci'", "stderr_lines": ["+ mkdir -p tmp", "+ oc kustomize periodic_ci", "# Warning: 'bases' is deprecated. Please use 'resources' instead. Run 'kustomize edit fix' to update your Kustomization automatically.", "# Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically.", "# Warning: 'patchesStrategicMerge' is deprecated. Please use 'patches' instead. Run 'kustomize edit fix' to update your Kustomization automatically.", "error: trouble configuring builtin PatchStrategicMergeTransformer with config: `", "paths:", "- ../base/tls_overrides.yaml", "- container_image_overrides.yaml", "`: security; file '/home/zuul/src/github.com/openstack-k8s-operators/data-plane-adoption/tests/config/base/tls_overrides.yaml' is not in or below '/home/zuul/src/github.com/openstack-k8s-operators/data-plane-adoption/tests/config/periodic_ci'"], "stdout": "", "stdout_lines": []}

The patch at https://github.com/openstack-k8s-operators/data-plane-adoption/pull/415 for the 'wrong content' cix will also fix this though.
Moving forward lets try to sanity check the periodic/downstream jobs are not broken by these large changes that have a good chance of disruption. cc @jistr @cescgina
[1] https://review.rdoproject.org/zuul/build/d60664b9729a48eaa46fb51e349763de
[2] https://review.rdoproject.org/zuul/build/b257531465f248d1b7dcec2c7ec95d5c
[3] https://review.rdoproject.org/zuul/build/a6dfceebb7574ddeb9af35d9bc9e0370


Added Accessibility Guide For Terra-Image

Summary

Added Accessibility guide for Terra-Image to provide overview of accessibility features that are provided by terra-image.

Closes #
Deployment Link

https://terra-core-img-accessib-zz4fks.herokuapp.com/components/cerner-terra-core-docs/image/accessibility-guide
Testing

Additional Details

Thank you for contributing to Terra.
@cerner/terra

@neilpfeiffer  just explained that this PR is quite early in the process, so I'll hold off on further suggestions around grammar/language/formatting. In general this looks fine to me. When it is time to review further I'll be happy to do so. Carry on!

New changes have been applied and look great.


Implement Map State

Is your feature request related to a problem? Please describe.
The objective is to implement the Map described here

I'll start working on this. @jefer590  you can assign me


[Snyk] Fix for 1 vulnerabilities

This PR was automatically created by Snyk using the credentials of a real user.![snyk-top-banner](https://github.com/andygongea/OWASP-Benchmark/assets/818805/c518c423-16fe-447e-b67f-ad5a49b5d123)
Snyk has created this PR to fix 1 vulnerabilities in the npm dependencies of this project.
Snyk changed the following file(s):

packages/node/base/package.json
packages/node/base/package-lock.json

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Regular Expression Denial of Service (ReDoS) SNYK-JS-MINIMATCH-3050818
  479

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Regular Expression Denial of Service (ReDoS)

Checkmarx One – Scan Summary & Details – 57f592c5-2ebb-40da-a939-f65fe49105ba
New Issues

Severity
Issue
Source File / Package
Checkmarx Insight

CVE-2023-34092
Npm-vite-4.3.1
Vulnerable Package

CVE-2023-42282
Npm-ip-1.1.5
Vulnerable Package

CVE-2024-23331
Npm-vite-4.3.1
Vulnerable Package

CVE-2024-27088
Npm-es5-ext-0.10.53
Vulnerable Package

CVE-2024-27351
Python-Django-1.2
Vulnerable Package

CVE-2024-29180
Npm-webpack-dev-middleware-6.0.2
Vulnerable Package

CVE-2024-4068
Npm-braces-2.3.2
Vulnerable Package

CVE-2024-4068
Npm-braces-3.0.2
Vulnerable Package

CVE-2023-26159
Npm-follow-redirects-1.14.6
Vulnerable Package

CVE-2024-25710
Maven-org.apache.commons:commons-compress-1.15
Vulnerable Package

CVE-2024-25710
Maven-org.apache.commons:commons-compress-1.20
Vulnerable Package

CVE-2024-28849
Npm-follow-redirects-1.14.6
Vulnerable Package

CVE-2024-28863
Npm-tar-4.4.19
Vulnerable Package

CVE-2024-28863
Npm-tar-6.1.11
Vulnerable Package

CVE-2024-31207
Npm-vite-4.3.1
Vulnerable Package

CVE-2024-4067
Npm-micromatch-3.1.10
Vulnerable Package

CVE-2024-4067
Npm-micromatch-4.0.4
Vulnerable Package

Unpinned Actions Full Length Commit SHA
/semgrep.yml: 14
Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...

Unpinned Actions Full Length Commit SHA
/pull_request.yaml: 14
Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...

Unpinned Actions Full Length Commit SHA
/build.yaml: 15
Pinning an action to a full length commit SHA is currently the only way to use an action as an immutable release. Pinning to a particular SHA helps...


Fix transform methods signatures

Our transform methods are currently not usable.
Example:
// defined in Seq
default <U> U transform(Function<? super Seq<? super T>, ? extends U> f)

// defined in Option
default <U> U transform(Function<? super Option<? super T>, ? extends U> f)

...

1st fix: All transform methods have to be changed to this signature:
// defined in Seq
default <U> U transform(Function<? super Seq<T>, ? extends U> f)

// defined in Option
default <U> U transform(Function<? super Option<T>, ? extends U> f)

...

2nd fix: move the transform of Traversables(!) to the end-points of the inheritance tree:
// defined in Stream, List, Array, LinkedHashMap, HashMap, Tree, ...
default <U> U transform(Function<? super Stream<T>, ? extends U> f) { ... }
default <U> U transform(Function<? super List<T>, ? extends U> f) { ... }
...

/cc @ruslansennov I updated U to ? extends U above. See #1103

Ruslan, would be great if you could do that!
I'm finishing meanwhile the structural pattern matching.
(Currently feeling like:

)

Fixed with #1104


ln_sum_exp() returns NaN when all values are NEG_INFINITY

This works:
assert_eq!(f64::NEG_INFINITY.ln_add_exp(f64::NEG_INFINITY),
           f64::NEG_INFINITY);

but this doesn't:
assert_eq!([f64::NEG_INFINITY; 2].into_iter().ln_sum_exp(), f64::NEG_INFINITY);

This fix is now in 0.1.3. Thanks for finding and fixing!


offer allocator issue

fixed type deletion problem
Signed-off-by: kevin xu<EMAIL_ADDRESS>

Codecov Report

Merging #539 into master will not change coverage.
The diff coverage is n/a.


Revert "Move the combined components instead of copying"

This reverts commit 4f6e020b179ef79a3e3717f80132ad1a4875a669.
We need to leave the unpacked input packages intact for rustbuild to
reuse in OS-specific installers on macOS and Windows.  Add a test to
make sure the components are still present.

r? @alexcrichton -- This is needed for rust-lang/rust#41843.


Blacklist: ads.phonepe.com

ads.phonepe.com

Hi @tillcash thank you for this.  We are mostly an aggregator of hosts files from active and reputable curators of hosts files, and we package these amalgamated hosts files in various ways.
Please submit this request to one of our curated sources.
Closing.


Houdini USD-rop is not publishing caches along

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior:

I published a geometry through USD from solaris, The output file of USD is point to "$HIP/pyblish/usdcamera.usd" (like shown in the attachment above)
after few version of publishes done successfully from ayon
I opened the latest version published usd(and some previous version) through USD tweak
They all referencing from same file in all the shots(basically this path $HIP/pyblish/usdcamera.usd)there is no version control, in all versions its loading same files

Expected Behavior:
Houdini USD-rop should be publishing caches along and relinked properly.
Version
1.0.0
What platform you are running on?
Windows
Steps To Reproduce:
I'm attatching the sample Ayon project where I tested
https://drive.google.com/file/d/1W_MKsUrn9J36UmnfQXXa7IBA-OFVLXCQ/view?usp=sharing
Are there any labels you wish to add?

[X] I have added the relevant labels to the bug report.

Relevant log output:
No response
Additional context:
No response

I got it working after flattening the stage/layer.
Problem solved, none of the "SOP imports" are referencing but still publishes are referencing it

You closed this - and mentioned the comment I posted here elsewhere.
However, in that case the USD isn't referencing or sublayering those. However, it is in this case where you're generating new data as one blob most likely the best way to go forward since you don't need that extra additional layer.
But why did it generate a publish without remapping?
This is because the publishing logic that "remaps" it only remaps Explicit Layer Save paths. In this case, your scene file does not have the layer as an explicit layer save path but an implicit layer save path

If it were explicit, it should get picked up:


Test for spacing between characters

We need to be sure that tricky characters are spaced properly from their neighbors. For example, this shouldn't happen:

(This particular issue has been fixed, but is not being verified.)

The simple way going forward is having a list of character pairs that we want to make sure we don't regress on and simply use HarfBuzz shaping followed by the intersection detection mechanism in the notolint tool to make sure no new intersections are introduced.


[WIP] ColorPicker:Add API to hide control components

Add a way to hide the color grabber ToolButton in the top right corner and the controls under the
color selector so users can use a minimal ColorPicker for their games.
Note:
I have a problem when I hide the controls (as you can see in the gif), when I set set_visible() to false the other components expand and they only recover the original size when you resize the Container manually. Any help with that issue?

Would be nice to also disable just the mouse capture portion and leave the sliders.... right now to do that I have to shove the ColorPicker into a clipped viewport, manually re-adjust its Y-position to a negative value (since it likes to 0 itself out), and ignore input outside of the clip region.

Hey @lupoDharkael I see you've had this PR open for quite some time now. I submitted one for the ColorPicker yesterday that involves hiding and disabling the presets (#26223). Someone else suggested that I get a hold of you to see if we can get both of our changes into one PR.

Feel free to adapt my changes if you want. This is an unfinished PR and I almost forgot about it.

Closing for now as it's still WIP and not further updated.
I'd suggest opening an issue on https://github.com/godotengine/godot-proposals to discuss the use case and whether this is the best approach to address it. ColorPicker was initially added for the editor's own use, and while many try to tweak it to be decent enough as a game UI component, it might not be the best approach - creating a simpler, game-only color picker control and making the current ColorPicker an editor-specific EditorColorPicker could be another option.


Messages don't output.

My tests pass/fail as needed, but I can't see any messages in the output window. I have my tests in task/app.spec.js file. I chose "Mocha" among the output windows.
It may be the issue with my vscode configurations. In either case be glad to have a solution on this. Thanks!

Did you use the default mocha sidebar configuration if  not please add it to the issue description  thanks

@maty21 I use default configurations. Nothing is changed.

@screamcha try this option
"mocha.logVerbose": true

It seems this commit broke/changed output. I'm able to see output if I set "mocha.logVerbose": true but then the output is not colored and just looks like log output (not sure if the default Mocha coloring is supposed to show in the output).
What is the correct fix for this? Or is this as designed?

You right in order to see logs you should set logVerbose to true
It impossible to color it since vscode output not support it yet

"mocha.logVerbose": true is really working. Thanks for help.


Fail install rockspec from specific server

I just add lbase64 to my manifest.
When I try install it like
sudo luarocks install lbase64 --server=https://rocks.moonscript.org/manifests/moteus
I got
Installing https://rocks.moonscript.org/lbase64-20120820-1.src.rock...
Using https://rocks.moonscript.org/lbase64-20120820-1.src.rock... switching to 'build' mode
Do not use 'module' as a build type. Use 'builtin' instead.
gcc -O2 -fPIC -I/usr/local/include -c lbase64.c -o lbase64.o
gcc -shared -o base64.so -L/usr/local/lib lbase64.o
Updating manifest for /usr/local/lib/luarocks/rocks
lbase64 20120820-1 is now built and installed in /usr/local (license: Public domain)

Same result on my Wndows system with current master.
Update.
When I test my manifest contains only scm version.
Also sudo luarocks install lunitx --server=https://rocks.moonscript.org/manifests/moteus works fine and install my scm version.

That is correct. The --server flag tells LuaRocks to look for rocks in this server, but also uses the servers specified in the config file. So LR finds a better match for lbase64 in a different server and installs that.
You need to use --only-server, as in:
luarocks install lbase64 --only-server=https://rocks.moonscript.org/manifests/moteus

Installing https://rocks.moonscript.org/manifests/moteus/lbase64-20100323-1.src.rock...
Using https://rocks.moonscript.org/manifests/moteus/lbase64-20100323-1.src.rock... switching to 'build' mode


improve and expand usage of tempfile API to fix unreliable tests

tempfile.TemporaryDirectory() does not create a directory, it creates an object that will create a directory when "enetered", so it needs to be used with a with statement or with an explicit enter. On the other hand with tempfile.NamedTemporaryFile as destfile opens destfile, so we if want to create a file with destfile.name, we need to close destfile first. On my windows pc all of these threw up errors 100% of the time, so there is some platform variation in how forgiving all this temp file stuff is. I believe I've switch to more correct uses of the API.  Since this has long passed linux and our automated testing, I'm not going to to try just submitting this as a PR and see if it passes on github actions.

Fixes #272. (We hope.)


postgress password failure

Hi
when trying to execute:
sudo -E python manage.py db upgrade
I get from some strange reason this message
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1678, in connect
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 59, in init
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/base.py", line 1747, in raw_connection
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 272, in unique_connection
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 608, in _checkout
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 425, in checkout
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 1027, in _do_get
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 277, in _create_connection
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 396, in init
File "build/bdist.linux-x86_64/egg/sqlalchemy/pool.py", line 509, in __connect
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/strategies.py", line 95, in connect
File "build/bdist.linux-x86_64/egg/sqlalchemy/util/compat.py", line 185, in raise_from_cause
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/strategies.py", line 89, in connect
File "build/bdist.linux-x86_64/egg/sqlalchemy/engine/default.py", line 366, in connect
File "/usr/local/lib/python2.7/dist-packages/psycopg2-2.6.2-py2.7-linux-x86_64.egg/psycopg2/init.py", line 164, in connect
conn = _connect(dsn, connection_factory=connection_factory, async=async)
sqlalchemy.exc.OperationalError: (OperationalError) FATAL:  password authentication failed for user "postgres"
FATAL:  password authentication failed for user "postgres"
any ideas why ?
thanks
idan

Hi @idando1 ,
You need to change postgres to your database username in config-deploy.py.
SQLALCHEMY_DATABASE_URI = 'postgresql://postgres:securitymonkeypassword@localhost:5432/secmonkey'
Best,

I changed the pg file to trust which solved my problem


request switch description with a zero xid

Hi,
There is a problem in channel_multipart_get from src/agent/channel.c. It does not check, if message in the i-th position of the channel storage is currently in use, and returns the first vacant position, when we search for OFPMP_DESC multipart requests with xid == 0, even if this message is at some further position. The following change fixes the issue:
  for (i = 0; i < CHANNEL_SIMULTANEOUS_MULTIPART_MAX; i++) {
    if (channel->multipart[i].used
        && channel->multipart[i].ofp_header.xid == xid_header->xid
        && channel->multipart[i].multipart_type == mtype) {
      /* found */
      break;
    }
  }

I am also bothered by multipart_free.
Shouldn't it  set m->used to 0, when it cleans up a multipart request?

Hi @eugene-che,
Thank you for bug report. Your point is correct.
We fix this issue in the next release.
We will show you a bug fix before the next release.
Thanks!

Hi @eugene-che,
We have fixed this issues with the commit of 3661f72a59908469605ae642bba91d5d7685f34e
Could you test on your environment?
Thanks!


COR-396 Fix Single Select Field

Moves the FieldDefinition.Options to FieldTypeSingleSelect.Options
Options are [{"name":"option-name","id":"option-id"}]
Records must specify options like values:[{fieldId: field-id, value: option-id}]. We do not put the option name in the field value, as this allows users to rename options without having to change the value of every record that references that option.
Added logic to create the underlying SQL structure to store select options
Added tests to make sure we can create forms with single select fields, as well as records for those forms
Added validation rules to the FormDefinition to validate a single select FieldDefinition
Added validation rules to the Record to validate incoming records that have values for a single select
Added flatten/hydrate methods in the form store to store/restore field definitions that contain single select fields
Simplified testing logic for the form store flatten/hydrate methods
Rename all instances of core-js-api-client to core-api-client
Fix pwa to use single selects with the new api structure

/test all

/lgtm


Stylesheet names ending in s are not valid

It appears to any node module stylesheet ending in "s" cause the compiler to throw an error and prevents a successful build. For example "styles.css" would not work, but "style.css" does. You can verify this by adding an "s" to the font awesome css sheet and updating the app.js with the new name
import 'font-awesome/css/font-awesomes.css'
It looks like the query being based to the style-loader is what is getting messed up as a result of the name ending in "s". I logged the result of this.query passed to the style-loader.  The top line is when you use a file name that does not end in "s" and the bottom is when it does end in "s"
/Volumes/MAINDRIVE/react/project/node_modules/css-loader/index.js!/Volumes/MAINDRIVE/react/project/node_modules/react-virtualized/css/table.css

/Volumes/MAINDRIVE/react/project/node_modules/css-loader/index.js?modules&localIdentName=[path][name]__[local]__[hash:base64:5]!/Volumes/MAINDRIVE/react/project/node_modules/postcss-loader/index.js!/Volumes/MAINDRIVE/react/project/node_modules/style-loader/index.js!/Volumes/MAINDRIVE/react/project/node_modules/css-loader/index.js!/Volumes/MAINDRIVE/react/project/node_modules/react-virtualized/css/tables.css

I'm fairly new to webpack, so I could use a nudge in the right direction. What is putting together the query to the style loader?

@wkrause13 I cannot actually replicate this bug. I've generated the same structure and imported both a module and a global stylesheet.
Perhaps try the latest version?


Provide kernel build environments for older kernel version

As it is now only "recent" kernel version can be compiled. I did not check yet how far back we can go currently but it would be nice to have build environments for at least the major kernel releases eventually.

Buildroot can help with this too. I saw another issue that looks like you're interested in replacing debootstrap with buildroot. The buildroot option is BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE and BR2_GCC_VERSION_ to set a lower gcc version for earlier kernels.


Crash

2018/07/12 22:58:39 http: panic serving <IP_ADDRESS>:56118: runtime error: invalid memory address or nil pointer dereference
goroutine 20 [running]:
net/http.(*conn).serve.func1(0xc42017e3c0)
        /usr/lib/go/src/net/http/server.go:1726 +0xd0
panic(0x727480, 0x96ade0)
        /usr/lib/go/src/runtime/panic.go:502 +0x229
html/template.(*Template).escape(0x0, 0x0, 0x0)
        /usr/lib/go/src/html/template/template.go:95 +0x2e
html/template.(*Template).Execute(0x0, 0x7cc900, 0xc4201f20e0, 0x7259e0, 0xc4201ce930, 0xc4201de1a4, 0x786e7d)
        /usr/lib/go/src/html/template/template.go:119 +0x2f
main.IndexHandler(0x7cf640, 0xc4201f20e0, 0xc4201e8700, 0x0, 0x0, 0x0)
        /home/genofire/projects/src/github.com/mbrlabs/fileport/routes.go:40 +0x2b8
github.com/mbrlabs/fileport/vendor/github.com/julienschmidt/httprouter.(*Router).ServeHTTP(0xc420064200, 0x7cf640, 0xc4201f20e0, 0xc4201e
8700)
        /home/genofire/projects/src/github.com/mbrlabs/fileport/vendor/github.com/julienschmidt/httprouter/router.go:344 +0x770
net/http.serverHandler.ServeHTTP(0xc42007d450, 0x7cf640, 0xc4201f20e0, 0xc4201e8700)
        /usr/lib/go/src/net/http/server.go:2694 +0xbc
net/http.(*conn).serve(0xc42017e3c0, 0x7cf8c0, 0xc420176880)
        /usr/lib/go/src/net/http/server.go:1830 +0x651
created by net/http.(*Server).Serve
        /usr/lib/go/src/net/http/server.go:2795 +0x27b

It couldn't find the login template. As of right now the template locations are specified relative to the project path (see templates.go).
How did you build and run it?

maybe - do you want to build it on a way without crashing? (with a own panic with a message)

(okay it works in our git path, maybe you like to have a config for paths like static and templates + a scope for the filemanager - not all files down till / )

I have also a lot of projects ... so it will take some time, till i could spend time here