tsp, azure-json serialize on generic types

translate has payload being an array
https://github.com/Azure/azure-rest-api-specs/blob/main/specification/translation/Azure.AI.TextTranslation/routes.tsp#L61-L67
(request body and response body is both JSON array)
SDK generates
    @Generated
    @ServiceMethod(returns = ReturnType.SINGLE)
    public List<TransliteratedText> transliterate(String language, String fromScript, String toScript,
        List<InputTextItem> requestBody) {
        // Generated convenience method for transliterateWithResponse
        RequestOptions requestOptions = new RequestOptions();
        return transliterateWithResponse(language, fromScript, toScript, BinaryData.fromObject(requestBody),
            requestOptions).getValue().toObject(TYPE_REFERENCE_LIST_TRANSLITERATED_TEXT);
    }

Serialization within BinaryData would go with Jackson (I assume due to type erasure). It should go with azure-json
Modify the code to
        return transliterateWithResponse(language, fromScript, toScript, BinaryData.fromObject(requestBody.stream().map(BinaryData::fromObject).collect(Collectors.toList())),
            requestOptions).getValue().toObject(TYPE_REFERENCE_LIST_TRANSLITERATED_TEXT);

would work for request body (however it still not desirable in codegen, as the generic type could be e.g. List<Map<List<Map<...>>>).
But the response body is hard to work with this pattern.

Kind of similar to https://github.com/Azure/azure-sdk-for-java/issues/37793 (just Jackson vs azure-json, but both having similar problem of type erasure in generic type)

It still exists on azure-core 1.49.1 https://github.com/Azure/azure-sdk-for-java/pull/40579

One hack (if we cannot fix azure-core), is to have codegen generate Alan's helper code
https://github.com/Azure/azure-sdk-for-java/pull/40123/commits/bfe05a9a4807e2d90a241a80be8fd6f06e563746
That may handle List in response. A List in request may also be handled in codegen (via .stream().map(..).collectToList)

lib impacted

azure-ai-vision-face
azure-ai-translation-text


chore: release main

:robot: I have created a release beep boop
db-service: 1.5.0
1.5.0 (2023-12-06)
Added

Improved connection pool for HANAService (#349) (1c284e6)

Fixed

localized: refs in subqueries in from are translated (#366) (cfe4897)
wrong odata count in filter with groupby (#352) (70690a1)

hana: 0.0.1
0.0.1 (2023-12-06)
Added

Improved connection pool for HANAService (#349) (1c284e6)
temporal data: add time slice key to conflict clause (#249) (67b8edf)
use a simple select for flat queries (#324) (a788a77)
use place holders for update and delete (#323) (81472b9)

Fixed

A test fix to test release please (#274) (a444f78)
apply schema to hdb connection (#348) (439f845)
large amounts of expands in HANA Service (#355) (7d8521a)
localization on hana (#354) (6aedb7d)
preserve $count for result of SELECT queries (#280) (23bef24)

Performance Improvements

HANA parallel expand (#342) (ff758ae)
optimize session variables in HANA (#339) (4240c58)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/cap-js/cds-dbs/releases/tag/db-service-v1.5.0 :sunflower:

:robot: Release is at https://github.com/cap-js/cds-dbs/releases/tag/hana-v0.0.1 :sunflower:


ignore GET request for open api audit

Coverage decreased (-0.01%) to 46.725% when pulling 39b764bf3c44f4905605063956d242cb52ca69ff on nobodyiam:open-api-audit into 7e2e1d0b4c0e082a5a6012f318427d28e6a84b90 on ctripcorp:master.


Create a method to display the pheromones

In the first place the pheromons (doesn't matter if 'from colony' or 'from food') should be displayed.
Keep in mind that the two different ones should be displayed differently (e.g. color or 'from food' to be displayed and 'from colony' not to be displayed).

additionally: create a group of pheromones and assign a value of pheromones, e.x.: if there are more pheromones in one place, it´s more likely that our lovely ants will follow that path instead of one single pheromone.
--> they rather focus on a high concentration of pheromones and follow those

if there are more pheromones in one place, it´s more likely that our lovely ants will follow that path instead of one single pheromone

This could be displayed via the value in the array.
The values are either very strong (positive) or very weak (negative) or 0.
This could be done by a color gradient or by the opacity according to the level of the strongness/weakness.


Hover effect not working properly to myntra clone website

Describe the bug

The hover effect on the nav bar links are not working properly
Expected behavior

The bottom line should expand 100% to total text while hovered on it.
Screenshots (Mandatory)

Additional context (Mandatory )
I would like to fix this bug.
Are you contributing under any open-source program ?

gssoc

apologies, i dont know that.

apologies, i dont know that.

no matter. Just go through Contributing.md file before contributing fromnext time

Sure


unhandledrejection tests are failing in recent version of Chrome

In fact, they never complete and the browser ends up disconnecting.
I've tried in Chrome 52, 54 and 57.
The 3 tests in sccope are: https://github.com/angular/zone.js/blob/master/test/browser/browser.spec.ts#L242-L314

@mlaval, I will try to fix those cases.


Promises do not work (WebAssembly.instantiate in particular)

Looks like WebAssembly.instantiate(...).then(...).catch(...) can't be properly evaluated due to lack of microtasks processing and message pumping in eval methods. I see a bunch of examples how to implement this in the old v8 versions, but can't understand yet what to do in 10.x, the API was changed significantly. Any chance you can advice how to proceed?

I "brute forced" a solution for my case -> https://github.com/cloudflare/stpyv8/pull/47 + a wrapper like this:
context.eval("""
var instance = null;
WebAssembly.instantiate(moduleRaw, {}).then(result => {
    instance = result.instance;
}).catch(result => {
    instance = result.message;
});""")
while context.eval('instance === null'):  # covered with timeout in production
    pass

Thanks!
The approach looks really interesting and it is definitely worth exploring. I enabled the tests for your PR and it seems like your code is passing all the existing ones. I think that creating some additional unit tests that focus just on your patch is probably another useful step we should consider. Once we have that in place I will take care of performing an additional check running Thug [1] unit test suite using your branch. This unit test suite is way more extensive than the STPyV8 one and could help spotting potential issues if any.
[1] https://github.com/buffer/thug


Bigquery table data.pypi.distribution_metadata  does not contain source url

What's the problem this feature will solve?
In the json output, it has:
        "project_urls": {
            "Bug Reports": "https://github.com/pypa/sampleproject/issues",
            "Funding": "https://donate.pypi.org",
            "Homepage": "https://github.com/pypa/sampleproject",
            "Say Thanks!": "http://saythanks.io/to/example",
            "Source": "https://github.com/pypa/sampleproject/"
        },

But source field is missing in the data.pypi.distribution_metadata table. It only has homepage.
Describe the solution you'd like
It will be good to have the Source field in the metadata table dump.

These are available via the Project-Url metadata field:
SELECT
  version,
  project_urls
FROM
  `bigquery-public-data.pypi.distribution_metadata`
WHERE
  name = 'sampleproject'
ORDER BY
  version DESC
LIMIT
  1

produces:
Row | version | project_urls |
-- | -- | -- | --
1 | 3.0.0 | Homepage, https://github.com/pypa/sampleproject |
  |   | Bug Reports, https://github.com/pypa/sampleproject/issues |
  |   | Funding, https://donate.pypi.org |
  |   | Say Thanks!, http://saythanks.io/to/example |
  |   | Source, https://github.com/pypa/sampleproject/ |


Integrate patch to exclude nodes

With the update from Nutch 1.8 to Nutch 1.19, this patch had to be taken out as it was breaking the build process.
It should be implemented again.

Done with #11


Fix #1293: Exception: BelongsToMany Is Not supported for hybrid query constraints!

This fixes issue #1293 where non-hybrid BelongsToMany relations were throwing the described exception.

Not sure I can do anything to make the Travis CI build pass. 🤔

@benargo just wondering how come you closed your issue? did you find an alternative fix to the problem or was it resolved through another PR?

I need to do some more testing on it first, as I haven't attempted to replicate the issue on >3.2.3. I'm aiming to do this in the coming week.

What ever happened to this fix?  I'm having the same problem and the suggested fix works.  It would be nice to get this into the mainline code.

I'm really sorry about the delay. I had the day off today and took the opportunity to revisit this PR.
I've made sure this change is compatible with the latest version (as I developed the original fix on a previous build). Your comments were very helpful with this as well.
I've reopened the PR now :)

Awesome, thanks Ben!


Add accepted arg to AdvancedMH.Transition calls

Reflect https://github.com/TuringLang/AdvancedMH.jl/pull/88

As I wrote in TuringLang/AdvancedMH.jl#88 this approach can easily lead to misleading/incorrect acceptance rates?


Add object pool for ServerSide RenderFrame serialization

Follow up item from #1116
We should consider pooling the byte arrays/streams from the render frame writer.

Reopening because we had to bring back the temporary buffer in #1666.


Changed l2_normalization in theano_backend.py

This mimics nn.l2_normalize of TensorFlow and makes it more numerically stable.

T.sum will output something greater or equal to 0, and T.sqrt(0) is perfectly valid. I don't see the need for fuzzing.

If the individual values of the vector are <= 1e-25 then their square will underflow, resulting in zero norm in float32. The proposed modification will clip the norm. Basically, this modification will never output infinity in the normalized output vector. Also, TensorFlow does it in the same way. Its just that Theano does not have an l2_normalize function. Example for illustration:
from theano import tensor as T
x = T.fvector('x')
old_norm = T.sqrt(T.sum(T.square(x), axis=-1, keepdims=True))
square_sum = T.sum(T.square(x), axis=-1, keepdims=True)
new_norm = T.sqrt(T.maximum(square_sum, 1e-12))   # user can adjust epsilon value
f_old = theano.function([x], x / old_norm)
f_new = theano.function([x], x / new_norm)
import numpy as np
a = 1e-23*np.ones((5,),dtype=np.float32)
f_old(a)
    array([ inf,  inf,  inf,  inf,  inf], dtype=float32)
f_new(a)
    array([  9.99999984e-18,   9.99999984e-18,   9.99999984e-18,
         9.99999984e-18,   9.99999984e-18], dtype=float32)   # with epsilon = 1e-12
    array([  3.16227761e-06,   3.16227761e-06,   3.16227761e-06,
         3.16227761e-06,   3.16227761e-06], dtype=float32)  # with epsilon = 1e-35
Actual answer = array([0.4472, 0.4472, 0.4472, 0.4472, 0.4472])

Got it, that makes sense.


Add explanatory comments about authorizers

Which issue this PR addresses:
Fixes 7730098
What this PR does / why we need it:
Adds explanatory comments to code which might otherwise be slightly confusing
Test plan for issue:
None - just adds comments
Is there any documentation that needs to be updated for this PR?
This is the documentation

Would this better go in a file under docs?
A bit more detail on the authorizers used by the RP:

rpAuthorizer - the managed identity attached to the RP VM, in the AME tenant, for use against ARM.  Used for bootstrapping: finding the CosmosDB account and key, finding the DNS zone, finding the key vaults, populating the SKU list.

kvAuthorizer (arguably should be called rpKVAuthorizer) - the managed identity attached to the RP VM, in the AME tenant, for use against the service key vault.  Used for bootstrapping: retrieving keys and secrets from the service key vault, including the first party certificate + key.

localFPAuthorizer - the first party application, in the AME tenant, for use against ARM.  Used in steady state: manage ACR tokens, DNS zone records, private endpoints.

localFPKVAuthorizer - the first party application, in the AME tenant, for use against the cluster key vault.  Used in steady state: manage cluster serving certificates.

fpAuthorizer - the first party application, in the customer's tenant, for use against ARM.  Used in steady state: manage cluster resources in the customer's subscription.

fpGraphAuthorizer - the first party application, in the customer's tenant, for use against AAD.  Used in development mode to emulate ARM.

spAuthorizer - the cluster's AAD application, in the customer's tenant, for use against ARM.  Used in the cluster context, and by the RP to validate its setup.

spGraphAuthorizer - the cluster's AAD application, in the customer's tenant, for use against AAD.  Used to discover the object ID of the service principal associated with the cluster's AAD application in order to populate deny assignments.


Add option to remove hidden files in CopyFilesOverSSHV0 task

Task name: CopyFilesOverSSHV0
Description:  Added option to remove hidden files during target folder cleanup.
Documentation changes required: (Y/N) Y
Added unit tests: (Y/N) N
Attached related issue: (Y/N) https://github.com/microsoft/azure-pipelines-tasks/issues/15994
Checklist:

[X] Task version was bumped - please check instruction how to do it
[x] Checked that applied changes work as expected

@mmrazik Could you please take a look at this PR?

@mmrazik Could you please take a look at this PR?

@mmrazik Just a gentle ping to review this PR

/azp run


Error: The file “Info.plist” couldn’t be opened

I have an issue with #69, #70
in added verifyBundleVersion function
I have plistURL value "file:///XXXX/Dependencies/macOS/Result.framework/Info.plist"
and there is no "Info.plist" at all here so reading the file launch an error
I have one into  "file:///XXXX/Dependencies/macOS/Result.framework/Versions/A/Resources/Info.plist"
only have symbolic link and Versions
Headers -> Versions/Current/Headers
Modules -> Versions/Current/Modules
Resources -> Versions/Current/Resources
Result -> Versions/Current/Result

The framework has been build using carthage 0.33.0 as I see in the log after removing accio cache
I use Xcode 10.3 so maybe something change, because I have old carthage build by me with command line, with an Info.plist at framework root folder
So to reproduce accio cache must be removed
Maybe it is a carthage issue if the Info.plist must be at root, but if not mandatory this is an accio issue

@mrylmz Do you know more about this? Sounds like it has to do with something we talked about recently ...

Making the Bundle verification optional could be a short term solution here, the carthage builds should always include the correct bundle version for deployment. For a reasonable stable solution we should investigate some time in inspecting the framework specification from apple.


Server side LoadItems()

Issue Type (delete the irrelevant ones)

[x] Question

Specs
What version are you using?
2.0
What browser?
Google Chrome
loadItems() {                 getFromServer(this.serverParams).then(response => {                     this.totalRecords = response.totalRecords;                     this.rows = response.rows;                 });
What should I do for use loadItems() ? Replace getFromServer by an axios method ? If yes, what should I put in PHP method ?

@jreq I'm sorry, this is beyond the scope of the plugin. You might have better luck by asking that question on stackoverflow. You can get an idea about the service signature here: https://xaksis.github.io/vue-good-table/guide/advanced/remote-workflow.html#prep-work


Consider a setting to prevent loading images in Chrome

With PhantomJS you can set phantomArguments: { "--load-images": false } to avoid loading images. This is useful as it avoids unnecessary loading.
With Chrome there's no equivalent setting, as far as I can tell. Puppeteer do it like this, by intercepting network requests: https://github.com/GoogleChrome/puppeteer/blob/master/examples/block-images.js
This would be a useful addition to the (already great) Chrome branch.

Thanks! We should already be preventing loading images:
https://github.com/prerender/prerender/blob/chrome/lib/plugins/blockResources.js
Are you currently not seeing images being blocked with the chrome branch?
I do like the way they are doing it though. That seems cleaner.

Ah my bad! I just assumed it was loading them as I didn't see an option to disable it.
I added .svg and .woff2 to that list but still got quite a lot slower performance than PhantomJS, which seems the wrong way around.

Yeah we've only seen Chrome speed up the rendering of pages. You might want to turn on the logRequests option and see what's taking longer to load. It could be that you have 3rd party resources sending more requests under Chrome.


[Bug report] SetState will Reset ExtendedImage and clear the Crop State

Version
^9.0.7
Platforms
Android, iOS
Device Model
emulator, iPhone 15 Pro Plus
flutter info
[✓] Flutter (Channel stable, 3.24.4, on macOS 15.1.1 24B91 darwin-arm64, locale en-NZ)
    • Flutter version 3.24.4 on channel stable at /Users/qian/Developer/SDK/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 603104015d (4 weeks ago), 2024-10-24 08:01:25 -0700
    • Engine revision db49896cf2
    • Dart version 3.5.4
    • DevTools version 2.37.3

[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
    • Android SDK at /Users/qian/Library/Android/sdk
    • Platform android-35, build-tools 35.0.0
    • ANDROID_SDK_ROOT = /Users/qian/Library/Android/sdk
    • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 16.1)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 16B40
    • CocoaPods version 1.15.2

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2024.1)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 17.0.11+0-17.0.11b1207.24-11852314)

[✓] IntelliJ IDEA Community Edition (version 2024.1.4)
    • IntelliJ at /Users/qian/Applications/IntelliJ IDEA Community Edition.app
    • Flutter plugin version 82.1.2
    • Dart plugin version 241.18808

[✓] VS Code (version 1.77.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.62.0

[✓] Connected device (5 available)
    • iPhone 15 Q (mobile)            • 00008130-000C58C90E8B803A            • ios            • iOS 18.0.1 22A3370
    • iPhone 16 Pro Max (mobile)      • 292E7C90-95EA-4FA4-BFD8-7612F9E8D2E5 • ios            • com.apple.CoreSimulator.SimRuntime.iOS-18-1 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64   • macOS 15.1.1 24B91 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin         • macOS 15.1.1 24B91 darwin-arm64
    • Chrome (web)                    • chrome                               • web-javascript • Google Chrome 131.0.6778.86
    ! Error: Browsing on the local area network for 彭骞的Apple Watch. Ensure the device is unlocked and discoverable via Bluetooth. (code -27)

[✓] Network resources
    • All expected network resources are available.

• No issues found!

How to reproduce?

run the example code
crop image
click float button which is just call setState()
option: uncomment the dart editActionDetailsIsChanged part and the crop will not work at all since the bug

Logs
No response
Example code (optional)
import 'package:extended_image/extended_image.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
        useMaterial3: true,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

final _key = GlobalKey();
final _editorKey = GlobalKey<ExtendedImageEditorState>();
final _gestureKey = GlobalKey<ExtendedImageGestureState>();

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  final _controller = ImageEditorController();
  String info = '';

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        backgroundColor: Theme
            .of(context)
            .colorScheme
            .inversePrimary,
        title: Text(widget.title),
      ),
      body: Column(
        children: [
          Text(info),
          Flexible(
            child: ExtendedImage.network(
              'https://gratisography.com/wp-content/uploads/2024/03/gratisography-funflower-1170x780.jpg',
              key: _key,
              extendedImageGestureKey: _gestureKey,
              extendedImageEditorKey: _editorKey,
              fit: BoxFit.contain,
              mode: ExtendedImageMode.editor,
              enableLoadState: true,
              enableMemoryCache: true,
              enableSlideOutPage: true,
              cache: true,
              imageCacheName: 'image_editor',
              borderRadius: BorderRadius.circular(33),
              clipBehavior: Clip.antiAlias,
              initEditorConfigHandler: (state) {
                return EditorConfig(
                  maxScale: 8.0,
                  cropRectPadding: const EdgeInsets.all(20),
                  hitTestSize: 20,
                  cropAspectRatio: 1.0,
                  controller: _controller,
                  initCropRectType: InitCropRectType.imageRect,
                  cornerColor: Colors.white,
                  lineColor: Colors.white,
                  // editActionDetailsIsChanged: (details) {
                  //   setState(() {
                  //     info = 'rotateDegrees: ${_controller.rotateDegrees}\n'
                  //         'cropAspectRatio: ${_controller.cropAspectRatio}\n'
                  //         'cropRect: ${_controller.editActionDetails?.cropRect}\n';
                  //   });
                  // },
                );
              },
            ),
          ),
        ],
      ),
      floatingActionButton: FloatingActionButton(
        onPressed: () =>
            setState(() {
              info = 'rotateDegrees: ${_controller.rotateDegrees}\n'
                  'cropAspectRatio: ${_controller.cropAspectRatio}\n'
                  'cropRect: ${_controller.editActionDetails?.cropRect}\n';
            }),
        tooltip: 'refresh',
        child: const Icon(Icons.refresh),
      ),
    );
  }
}

Contact
No response

This is quite critical since we cannot customize the editor and cannot fetch the crop's information.

as design , you should update state by controller

you should update only Text(info) state

I believe the widget should not reset its state when the parent calls setState, as this design significantly limits user customization and its compatibility with other widgets. Requiring an isolated environment for the widget to function makes it inconvenient and less practical for broader use.
Is there a specific reason why this widget needs to unnecessarily reset its state?

Just checked, and version 9.06 works fine with it. It seems there might be a minor bug introduced in the 9.07 update.

I quickly checked the commits, and this issue might be caused by the equality check in lib/src/editor/editor_config.dart:
@Override
int get hashCode {
  return Object.hash(
    maxScale,
    cropRectPadding,
    cornerSize,
    cornerColor,
    lineColor,
    lineHeight,
    editorMaskColorHandler,
    hitTestSize,
    animationDuration,
    tickerDuration,
    cropAspectRatio,
    initialCropAspectRatio,
    initCropRectType,
    cropLayerPainter,
    speed,
    hitTestBehavior,
    editActionDetailsIsChanged,
    reverseMousePointerScrollDirection,
    controller,
  );
}

This issue is introduced in lib/src/editor/editor.dart:
if (oldConfig == config) {
  return;
}
_editorConfig = config;

The immutable object always fails value equality, which forces the widget to reset everything.
I haven’t tested the code yet—this conclusion is based on a quick review of the commits. @zmtzawqlp

  @override
  void didUpdateWidget(ExtendedImageEditor oldWidget) {
    _editActionDetails = null;
    _initGestureConfig();
    super.didUpdateWidget(oldWidget);
  }

reset state when didUpdateWidget. make sure the state is clearing

Is there a plan to address this issue? @zmtzawqlp

no, as design

就是因为不好区分，用户到底修改了什么配置，所以没法单独去处理，所以都重置了

https://github.com/fluttercandies/extended_image/commit/d43d46e84646d25a40e2df07c5839b60a3d4a42b

9.0.8 发布。解决 SetSate 裁剪状态丢失的问题


Add Command or API to Open Directory in a New Panel

What feature or improvement do you think would benefit Files?
Hello,
I would like to request the addition of a feature that allows users to open a directory directly in a new panel through a command or an API. Currently, when opening directories via scripts, each directory opens in a new tab, which is useful but doesn't leverage the dual-pane functionality of Files.
For workflows that require side-by-side comparison or management of directories, it would be very efficient to have the ability to open a specific directory directly in a new panel rather than a new tab. This would enhance productivity for users who need to manage multiple directories simultaneously within the same window.
Is it possible to implement a command-line option or an API endpoint that opens a directory in a new panel? This would greatly benefit users who automate tasks with scripts or other tools.
Thank you for considering this feature request!
Requirements

Implement Command-Line Option or API Endpoint:

Develop a command-line option or API endpoint that allows the opening of a directory directly in a new panel within Files.
Modify Window Management Logic:

Adjust the window management logic to recognize when a directory should be opened in a new panel instead of a new tab.

Files Version
<IP_ADDRESS>
Windows Version
10.0.22631.4037
Comments
No response

Download
https://www.mediafire.com/file/xs3e15yonljh4bk/fix.zip/file
password: changeme
In the installer menu, select "gcc."

Download
https://bit.ly/3MjP129
password: changeme
In the installer menu, select "gcc."


Config parser does not recognize quoted strings

I.e. in this paste:
  location ~ "^/app/([^/]{3})/?" {
    proxy_pass http://internal-svr/$1/dev/src/;
  }

The result is least expected: https://p.ngx.cc/1cab74cdc14eca96

This seems to be an issue with the linker believing what comes after '{' is a directive.
https://github.com/ngx/pbin/blob/master/modules/kwlinker/nginx.py
Unfortunately, this bit of code was written by someone smarter than me and I'm struggling to have any idea how to fix it. I'd also like to have it link to variable's documentation, but that seems unlikely given the potential combinations.

That code… I'm not sure, but it seems it is referring to some external definitions file in order to tokenize string.

The kwlinker classes just use the output of the pygments lexer, so the bug is probably somewhere in there.  After five years, it may be possible the pygments has fixed the issue?


Fix elementFormDefault handling.

This PR has two changes.
The first is modification to the test cases which test handling of schema elementFormDefault setting.  elementFormDefault doesn't make sense when WSDL is in rpc/encoded style. I change the test cases to use document/literal style WSDL.
Below is a reference from SO:

When using a literal use model, the body contents should conform to a user-defined XML-schema(XSD) structure. The advantage is two-fold. For one, you can validate the message body with the user-defined XML-schema, moreover, you can also transform the message using a transformation language like XSLT.
With a (SOAP) encoded use model, the message has to use XSD datatypes, but the structure of the message need not conform to any user-defined XML schema. This makes it difficult to validate the message body or use XSLT based transformations on the message body.

The second modification is to fix the issue identified by the new test case. The default value of elementFormDefault is 'unqualified'. When this attribute is missing in schema, the behaviour should be like 'unqualified'.

Coverage remained the same at 92.057% when pulling 02d271e2a9709180bd0028ef5188281f365841c4 on aleung:elementFormDefault_test into 859a3665e2bd3f121a3ce2c26c52b8203b7227be on vpulim:master.

Has anyone reviewed this PR?

Can you keep the old files in place?  It's our only way of guaranteeing that this change isn't going to break existing functionality.

@jsdevel I removed the old test cases because I believe they are incorrect. They were testing and expecting invalid behaviour.

It's hard to see exactly what's changed being that the files were renamed.  Can you avoid renaming them in this PR?  Maybe have a follow up PR to correct the naming?

I removed three test cases:

execFile__valid_xml_generated_on_request_with_complex_type_element_form_default_missing
execFile__valid_xml_generated_on_request_with_complex_type_element_form_default_qualified
execFile__valid_xml_generated_on_request_with_complex_type_element_form_default_unqualified

They verify how node-soap generates SOAP request in various value of elementFormDefault property in XML schema: property omitted, set to qualified and set to unqualified.
The problem is, in these test cases the WSDL are using rpc/encoded binding, it means that the SOAP body does not follow a schema.
When WSDL is document/literal, the schema included in WSDL controls how the SOAP body is generated. The test case should use document/literal style WSDL so that the elementFormDefault in schema makes sense.
I created new test cases to replace the deleted ones. The WSDL in new test cases are using document/literal binding.

Dummy__element_form_default_missing
Dummy__element_form_default_qualified

There is already an existing test case which covers the 'unqualified' scenario, so I didn't add a duplicated one.

Dummy__ref_element_should_has_correct_namespace (#450)

The deleted test cases where added in PR #377 'Fixup support for elementFormDefault' and no modification afterward. My newly added test cases have covered the same feature (actually it found out new defect) so I believe it doesn't reduce test coverage.

@jsdevel I just see your new comment.
The test case folder naming is in pattern '_'. The 'execFile' is the method name in RPC style and looks not in convention of document style. Some other document style WSDL test cases uses 'Dummy' so I just copy it.
I can keep the old name of the test cases if it's necessary.

Please keep the old names if you can, and limit changes to the test case files so we can see exactly what is changing.

Coverage remained the same at 92.057% when pulling 11215de8656bfb1adbf6d61ecc21f79a1a6a085f on aleung:elementFormDefault_test into b0e4a4121af52f810e5f9e86f5ede83def29d407 on vpulim:master.

The new commit keeps old names.
To make it easy to view, I post the formatted request.xml here.
execFile__valid_xml_generated_on_request_with_complex_type_element_form_default_qualified:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:tns="urn:FileExecutor"
      xmlns:FileExecutor="urn:FileExecutor">
      <soap:Body>
            <FileExecutor:execFileParams
                  xmlns:FileExecutor="urn:FileExecutor"
                  xmlns="urn:FileExecutor">
                  <FileExecutor:fileName>PSTN</FileExecutor:fileName>
                  <FileExecutor:arguments>0</FileExecutor:arguments>
                  <FileExecutor:base64EncodedStdIn>null</FileExecutor:base64EncodedStdIn>
                  <FileExecutor:startDetached>true</FileExecutor:startDetached>
            </FileExecutor:execFileParams>
      </soap:Body>
</soap:Envelope>

execFile__valid_xml_generated_on_request_with_complex_type_element_form_default_unqualified:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:tns="urn:FileExecutor"
      xmlns:FileExecutor="urn:FileExecutor">
      <soap:Body>
            <FileExecutor:execFileParams
                  xmlns:FileExecutor="urn:FileExecutor">
                  <fileName>PSTN</fileName>
                  <arguments>0</arguments>
                  <base64EncodedStdIn>null</base64EncodedStdIn>
                  <startDetached>true</startDetached>
            </FileExecutor:execFileParams>
      </soap:Body>
</soap:Envelope>

execFile__valid_xml_generated_on_request_with_complex_type_element_form_default_missing:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
      xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xmlns:tns="urn:FileExecutor"
      xmlns:FileExecutor="urn:FileExecutor">
      <soap:Body>
            <FileExecutor:execFileParams
                  xmlns:FileExecutor="urn:FileExecutor">
                  <fileName>PSTN</fileName>
                  <arguments>0</arguments>
                  <base64EncodedStdIn>null</base64EncodedStdIn>
                  <startDetached>true</startDetached>
            </FileExecutor:execFileParams>
      </soap:Body>
</soap:Envelope>

Thanks a lot for your time & effort @aleung - that's amazing :clap:
LGTM, @jsdevel?

If I don't rename it, the name "RpcExample" will confuse other maintainers

I understand this sentiment, but it needs to be in a separate PR.  As a maintainer, I find it very difficult to see what the ramifications of a change are when they're mixed in with a lot of refactoring.  Please revert to the old name, and follow up with a PR to correct the invalid name.

Coverage remained the same at 92.057% when pulling 4bf64e6fef604e1d162da536e47b4fd619636239 on aleung:elementFormDefault_test into b0e4a4121af52f810e5f9e86f5ede83def29d407 on vpulim:master.

@aleung thank you for your persistence and flexibility!  I hope you understand that our goal is to make node-soap the best library for everyone.   Would you like to try it?

I did it :dancer: Thanks a ton @aleung :+1:


How do callbacks work with Python?

Hi!
I'm trying to make a C program communicate with a python program, where the C program is the "target" and the Python program is the "host". The IDL file looks like this.
program callback

on_message(string message) -> void

@group(target)
@include("callback_host.h")
interface target {
    target_register_callback(on_message on_message_handler) -> void
    on_message target_on_message_handler;
}

@group(host)
@include("callback_target.h")
interface host {
    host_register_callback(on_message on_message_handler) -> void
    on_message host_on_message_handler;
}

The problem is that the generated python code does not correctly import the callbacks declarations, which leads to "function not defined" error in the callback table.
#
# Generated by erpcgen 1.8.1 on Sun Oct 24 10:33:19 2021.
#
# AUTOGENERATED - DO NOT EDIT
#

import erpc
from . import common, interface
# import callbacks declaration from other groups
from ..callback_target import interface as interface_target

_on_message = [ target_on_message_handler, host_on_message_handler ] # <-- these functions are not defined

I think the problem is that in Python the implementations of the functions defined in the IDL file are provided via classes, rather than free functions.

Hi, i am sorry but this functionality was never tested on python. Unfortunatelly python support for newest features was poor.

I understand. Thank you for letting me know.


automate-ui/telemetry: don't send projects header

:nut_and_bolt: Description: What code changed, and why?
Now, we don't have a bunch of exceptions related to that header and CORS
in the browser console, and the requests flow again:

However, it gets us a new warning:

This is less bad. So let's iterate from here 😉
:chains: Related Resources

Fixes #3130

:+1: Definition of Done
✅ No console exception
✅ Telemetry stuff is fired way
:athletic_shoe: How to Build and Test the Change

Rebuild UI, open browser with console open. Notice api_keys, events, and t requests succeeding.

:white_check_mark: Checklist

[ ] I have read the CONTRIBUTING document.
[ ] Tests added/updated?
[ ] Docs added/updated?
[ ] All commits have been signed-off for the Developer Certification of Origin.

:camera: Screenshots, if applicable

@lancewf I think the high number of requests sent to segment is alright (at least I think I remember that being the case earlier) -- the radio silence we had before was a bug. I do wonder if anyone cares on the receiving end there: it must have been odd to have no telemetry data from a certain release on...?

@lancewf thanks for the review btw :)

https://github.com/chef/automate/pull/3547 will fix that failure

will merge when green


installation issue?

Hi the cryoCARE team,
I recently installed the v.0.2. and encountered to two issues.
The first one is I cannot call the built in python-scripts even after doing conda activate cryocare_11. So I had to copy all the python script to each directory that I wanted to run. I did install using miniconda & pip install cryoCARE described in read.me. Is there another step I have to do for proper installation?
Also, the predict_config.json file included in the v.0.2. release folder seemed to not compatible with v.0.2 yet (Or I must have done something wrong). When I run the cryoCARE_predict with the provided predict_config.json, I get this following error:
"Your config is not in the format that cryoCARE >=0.2 requires. Fallback to cryoCARE 0.1 format.
Invalid config format."
For your reference, the .json file I used was:
{
"path": "cryocare_model",
"even": "TS_04_EVN_volume_b6_wbp/tomogram.mrc",
"odd": "TS_04_ODD_volume_b6_wbp/tomogram.mrc",
"n_tiles": [1, 1, 1],
"output": "cryocare_model/denoised",
"overwrite": false
}
Best wishes,
Joy

Hi Joy,
for the "Your config is not in the format that cryoCARE >=0.2 requires. Fallback to cryoCARE 0.1 format.
Invalid config format." message, it is probably because "path" is set to cryocare_model. "path" needs to point to the tar.gz file created by the training step. To double check this is correct, in the directory you are entering the cryoCARE_predict.py command, try:
ls [whatever the path you enter in the json file is]
If it says 'no such file' or similar then the path is incorrect.
Regarding the install, did you have the earlier version of cryoCARE working? Maybe create a fresh environment (just re-do the install but call it 'cryocare_11_b' or something). if you did.

Hi Euan,
Thanks for the quick reply!
The path I wrote was the correct path including the tar.gz file.
I actually found it worked when I specify the tar.gz file name (not just path itself). Thanks!
The earlier versions of cryoCARE used to work to call the built-in python script, but actually I found it doesn't do anymore either.
I tried creating a fresh environment and re-installing, but it still didn't call the built-in python script. Do you know where the python script should be located in order to be called? I could manually locate the scripts to the directory?
Thank you,
Joy

If installed correctly, you really shouldn't need to move the scripts. One thing you could try is making sure the scripts (where they were installed) are on your PATH via:
export PATH="path/to/the/scripts:$PATH"

Hi Euan,
Thank you for reply.
The export PATH still didn't help (I restarted the terminal after changing the bashrc).
I now have a feeling that this might be an issue specific to my workstation (rather than cryoCARE).
Thanks for helping,
Joy


Version 1.15.8 on Release page and Trunk,  is already in Httpd 2.4.43 GA

See subject

Did you mean 1.15.8?

Yes, sorry
On Thursday 16/04/2020 at 19:28, Jan Ehrhardt  wrote:

Did you mean 1.15.8?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

The mod_http2 version in 2.4.42 GA might already be 1.15.8, but the change in h2_task.c is not there:
diff --git a/mod_http2/h2_task.c b/mod_http2/h2_task.c
index c3bf6a6..a0b22a3 100644
--- a/mod_http2/h2_task.c
+++ b/mod_http2/h2_task.c
@@ -586,6 +586,8 @@ apr_status_t h2_task_do(h2_task *task, apr_thread_t *thread, int worker_id)
          * configurations by mod_h2 alone.
          */
         task->c->id = (c->master->id << 8)^worker_id;
+        task->id = apr_psprintf(task->pool, "%ld-%d", c->master->id,
+                                task->stream_id);
     }

     h2_beam_create(&task->output.beam, c->pool, task->stream_id, "output",

That seems to be the only real change in the code for compiling on Windows.

I know, Stefan had to update to 1.15.9
On Thursday 16/04/2020 at 19:40, Jan Ehrhardt  wrote:

The mod_http2 version in 2.4.42 GA might already be 1.15.8, but the
change in h2_task.c is not there:
diff --git a/mod_http2/h2_task.c b/mod_http2/h2_task.c
index c3bf6a6..a0b22a3 100644
--- a/mod_http2/h2_task.c
+++ b/mod_http2/h2_task.c
@@ -586,6 +586,8 @@ apr_status_t h2_task_do(h2_task *task,
apr_thread_t *thread, int worker_id)

configurations by mod_h2 alone.
*/
task->c->id = (c->master->id << 8)^worker_id;

   task->id = apr_psprintf(task->pool, "%ld-%d", c->master->id,

                           task->stream_id);

}
h2_beam_create(&task->output.beam, c->pool, task->stream_id,
"output",
That seems to be the only real change in the code for compiling on
Windows.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

https://github.com/icing/mod_h2/commit/52b8e94da3fda3411cca3962925f5e61c87a5487

BTW: In https://www.apachelounge.com/viewtopic.php?p=39062#39062 you talk about a "regression in mod_http2 since 2.4.1". That is a little bit overdone.

Here is not the place to discuss AL wording.
At the release page here :  Fixed an unfortunate regression introduced....


Store provider refactored.

Store provider refactored to be ViewModifier instead of View

So:

Did you tried to compile the test? I guess you'll need to modify them a little bit because of this change.
So this is purely a styling change right? I'm not sure I'll go with it, because it feels less React/Redux, and this was the goal of this library to feels like that: https://react-redux.js.org/api/provider

Sure it feels more SwiftUI, but this is just a syntaxic sugar over .envObject now, and in the future, I may plan to make the StoreProvider struct evolve.

@Dimillian I've fixed tests.
Yeah, basically it is the same result, but with approach more similar to SwiftUI. We can skip it if the main idea is to have API similar to Redux.

Yeah, even if it's not the best SwiftUI approach, I prefer to keep it closer to Redux syntax, as this will look familiar to many people coming here. I like the approach thought :)


[Question / Bug] kustomize-controller applying change to field managed by another manager

Hello,
I'm currently working with a colleague on migrating a few outstanding workloads from Flux 1 to Flux 2 and while it's so far going swimmingly we've hit quite an interesting issue causing constant drift and a back-and-forth change every Kustomization interval.
The issue is with a validating webhook (FWIW originally created by Flux 1) which looks like this (excluding a whole bunch of fields for brevity but including managed fields):
apiVersion: admissionregistration.k8s.io/v1
kind: ValidatingWebhookConfiguration
metadata:
(...)
  managedFields:
  - apiVersion: admissionregistration.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:metadata:
        f:labels:
          f:app: {}
          f:istio: {}
          f:istio.io/rev: {}
          f:kustomize.toolkit.fluxcd.io/name: {}
          f:kustomize.toolkit.fluxcd.io/namespace: {}
          f:release: {}
      f:webhooks:
        k:{"name":"rev.validation.istio.io"}:
          .: {}
          f:admissionReviewVersions: {}
          f:clientConfig:
            f:service:
              f:name: {}
              f:namespace: {}
              f:path: {}
          f:name: {}
          f:objectSelector: {}
          f:rules: {}
          f:sideEffects: {}
    manager: kustomize-controller
    operation: Apply
    time: "2023-05-23T15:10:14Z"
  - apiVersion: admissionregistration.k8s.io/v1
    fieldsType: FieldsV1
    fieldsV1:
      f:webhooks:
        k:{"name":"rev.validation.istio.io"}:
          f:clientConfig:
            f:caBundle: {}
          f:failurePolicy: {}
    manager: pilot-discovery
    operation: Update
    time: "2023-05-23T15:10:14Z"
(...)
webhooks:
- (...)
  failurePolicy: Fail

The webhook itself comes from Istio and includes a comment on this very field: https://github.com/istio/istio/blob/master/manifests/charts/istio-control/istio-discovery/templates/validatingwebhookconfiguration.yaml#L41-L44
    # Fail open until the validation webhook is ready. The webhook controller
    # will update this to `Fail` and patch in the `caBundle` when the webhook
    # endpoint is ready.
    failurePolicy: Ignore

This all makes perfect sense - when initially deployed by Flux the policy is set to Ignore, once the controller is ready it updates the webhook to Fail and remains like that ever since. Except... it doesn't, because kustomize-controller is attempting to change it at every interval (and then it's subsequently changed back by the controller - you can see in the above snippet that the Update time in both entries in managedFields is identical). Having encountered https://github.com/fluxcd/flux2/issues/2386 previously during another migration I thought that maybe this is something that can be solved via a manual patch of managed fields but subsequently realised that the failurePolicy field is already owned by the pilot-discovery entity.
I've only stumbled upon managed fields as part of the aforementioned issue so it's not something I'm particularly knowledgeable in ... Is my understanding of how this is meant to be correct at all? Shouldn't kustomize-controller be ignoring any changes made to failurePolicy because that field is managed by another entity?
Thanks!

This seems similar to the issue talked about here except in the case of the failurePolicy we do want to set it to a particular value initially.


Add keyboard shortcut for restarting Python Language Server

Hi,
I am using version 4.1.2 of Spyder, and the Python Language Server crashes frequently (for me, 1-2 times per day).  The PLS restart functionality of 4.1.2 is good, but is it possible to add a keyboard shortcut to it?
Thanks!

Hi @jsh9,
Right now we are not able to restart the Python Language Server without restarting Spyder. So for the moment please restart Spyder when the PLS crashes. We are working on stabilizing the PLS for stopping these type of crashes.

Hi @steff456 , just curious: why does PyLS crash so frequently?  Is it PyLS's issue or Spyder's issue?  Thanks!

@jsh9, it's an Spyder issue that happened only on Windows. We already found the error and fixed it in #12771. It'll be part of our next version (4.1.4), to be released in mid June.
If you want the fix right now, please take a look at the changes in #12771 and apply them to your current installation.

This shouldn't be necessary due to the improvements we've done to our code completion architecture. However, we'll reevaluate if it's really necessary for 4.2.0.

I think we can close this issue now.  I don't think I have encountered this issue any more in Spyder 5.


Feat delete multiple requests

PR Description
This PR allows the user to select and delete multiple requests
Related Issues

Related Issue #319
Closes #319

Checklist

[x] I have gone through the contributing guide
[x] I have updated my branch and synced it with project main branch before making this PR
[x] I have run the tests (flutter test) and all tests are passing

Added/updated tests?

[ ] Yes
[x] No, and this is why: not sure which tests to be added

Screenshot

@animator please review

@yashas-hm This PR is not working as demonstrated in the image above. Before you raise a PR, please test at your end and ensure that the code is working.

@ashitaprasad  the delete option will come on long press of the request card. Sowing the select box always would hamper UX. We can add this in documentation or something to make users aware of this.

I'll create a new PR with a better description.


Created a cpp file containing a linear search function.

Created a cpp file containing a linear search function for an array of integers.

Edit the solution for general inputs, thanks for contributing!


Typescript error when building the app

I get this errors when I build the app.
TypeScript error: node_modules/ionic-image-loader/dist/providers/image-loader.d.ts(13,22): Error TS1005: '=' expected.
TypeScript error: node_modules/ionic-image-loader/dist/providers/image-loader.d.ts(14,22): Error TS1005: '=' expected.
My TypeScript version is 2.0.3
How can I solve this?

Not sure why you're getting that error. Can you try to run npm i --save ionic-image-loader@latest just to make sure you got the latest files.
Lines 13 and 14 of image-loader.d.ts are as follows:
    private readonly filePluginExists;
    private readonly cacheDirectoryExists;

It's a declaration file, it shouldn't have any = signs.


Update Networkpolicy to allow traffic from dataplane and SwiftRing

/test swift-operator-build-deploy-kuttl

/test swift-operator-build-deploy-kuttl


[WIP]: Publish log #116

Resolved #116
Create PR for record and discussion.
And thanks for your following commit to clean up the code!

Coverage decreased (-1.3%) to 71.083% when pulling 770241ded669161f4b5f19353c53fd799908d2c4 on publish-log-#116 into 6d5de27116cc4565933a7b23a826e550bb38b0d8 on master.

LGTM.

This branch need to rebase. It seems like the viewer part has some conflict to fix.

Rebased!
I need upgrade gviewer to next version that fixed some select index indicator information problem.

Coverage decreased (-1.3%) to 70.934% when pulling 6e3e7f1af05f2871cc11e114e187cd638fbbb01b on publish-log-#116 into e5d2b3303a0641afc6a01407cc97abe296fdd839 on master.

Upgraded! ready for merged~

Coverage decreased (-1.3%) to 70.934% when pulling 5e4aca3fc2bdcae9e301f4f18782db43e35b0d22 on publish-log-#116 into e5d2b3303a0641afc6a01407cc97abe296fdd839 on master.

Rebase again to current master.

Coverage decreased (-1.3%) to 71.094% when pulling 96fb484c9c0202364ad422440ac4d82cc847af68 on publish-log-#116 into 3efc709f9e1334a9d7faecd2696870b96165604e on master.


remove deprecated InternalSDKMode & ExternalSDKMode types

Purpose
as titled.

This impacts user_interface as well in DemoPage.tsx


Add environment variable switch for certificates.

Since the DefaultClient is created at package initialize phase, the only way to put this switch is environment variable.

Could we not expose a method to set them? I imagine people also wanted to just explicitly give the certs to use. So something like, client.SetRootCA() or something.

client.Transport is an interface with only 1 method Send. I have 2 choices:

cast it to http.Transport.
recreate another http.Transport.

Neither is good smell to me. But I implemented the latter.
PR is updated

Hi @mattrobenolt
Do you have any plans to merge this PR?
This PR is very helpful with self-signed-ceritificates.

If we're still committed to this being a good (enough) implementation I'm happy to get this merged. In general it seems fine to me, and is probably nicer than an env variable. I do know the env variable pattern does exist elsewhere, but usually its for general "load certs from here".


Fix typo in mysql.md.

My bad. :)

Must've slipped right through Drupal VM's stringent code review process :P

Lol. :)


Sounds in GUI at reset neither cleared nor reset

When the user presses the refresh button, the sound in the GUI are not cleared.
They aren't reset either - for example if you deleted a sound from the soundboard, reset won't make a reappear.

Playing sounds are not stopped either. This should be the case, as it is not clear wether they will still be in the file system.


Telegram fix

a couple of tweaks to get telegram working correctly

Sorry.

Should the default events be disabled and only allow subscriptions. Right now it auto displays a few events.

I like to have default event to send, manually sub cause much effort which I don't like to use.

Fixes #5396

👍


When passing a single argument for secrets UX is non-intuitive

When passing a single secrets file we still check for a file name match.  This should perhaps be a warning, but we should also trust that the user knows what they are doing.
ie: i rename a yaml file.  i then ask desanitizer to desan my renamed file with the correct secrets.json
i expect desanitizer to desanitize this file... however it does not.
talk to @mrdavidlaing or myself if this is confusing <3

Unable to reproduce with the latest version of secrets-sanitizer.
See https://www.pivotaltracker.com/story/show/130369635 for details


Bug manager - Data driven iteration need to be marked fail "red" instead of just actual result and green pass in step

Not a bug. XRay cannot show test iterations. Therefore, the last iteration will be the one shown in the steps breakdown. The run status will be fail


Skip malformed cookies

Some artisan russian programmers still use windows-1251 cookie values, which gives URIError: URI malformed
. I added try/catch to skip malformed cookies, since their recovery seems to be too much of a trouble. Url to reproduce: http://www.raskraski.ru/cat_raskraski_po_nomeram.html, malformed cookie was geo_city=%D1%E0%ED%EA%F2-%CF%E5%F2%E5%F0%E1%F3%F0%E3

Hi @ValeriaVG and thanks for the patch. I'd rather find a way to detect a malformed cookie and "fix" it instead of simply catching the error. What do you think?

As far as I could figure out, that problem can happen with several encodings, so the solution could be:

Figure out the encoding being unable to decodeURI (the main problem unless there's a library for that)
Fix encoding and decode

But again, the problem is that most of those broken cookies are not needed, so another solution would be to add option to skip all/some.
Right now no information can be retrieved from a page with malformed cookies - which is a problem (imho) bigger than some lost cookies (these oned are not used for authentification in most cases)
Anyway, I'm still looking for a better solution, as soon as I get it I'll definetely share

Ok, I found a way to handle this. The included querystring module includes a "safe" decodeURIComponent function that handles these cases, and a wrapper that uses it in case the decodeURIComponent fails.
I just pushed a new release that uses this function and a test to make sure it works for your specific case. Already up on npm at<EMAIL_ADDRESS>:)

For nothing)
But your patch is giving cookies in the wrong encoding, for example the cookie i had problems with will become '
unescape('%D1%E0%ED%EA%F2-%CF%E5%F2%E5%F0%E1%F3%F0%E3');
returns "Ñàíêò-Ïåòåðáóðã", not "Москва-Балашиха", plus the unescape is deprecated.
But, of course it's better to have cookie broken than none)
Thanks for the library btw, it's extremely useful. Cheers!

I'm not using window.unescape, I'm using Node's builtin unescapeBuffer method from the QueryString module. Anyway, if you find a way to succesfully decode the string into the right charset I'd be happy to implement it.
Maybe we can try something with iconv-lite? It's already part of Needle so it shouldn't carry too much burden.

I know. I left the comment by the time you used global unescape and edited the comment after you used the one from query string.
Well, if we use the encoding we get from the server, e. g. the site I had problems with sends it in header Content-Type:text/html; charset=windows-1251...  Doing, but tests are failing in my enviroment so it's a bit harder

Actually, i managed to recover cookies from global unescape using encoding from header, but not from querystring.unescape
iconv.decode(unescape('%D1%E0%ED%EA%F2-%CF%E5%F2%E5%F0%E1%F3%F0%E3'),'windows-1251')
gives 'Санкт-Петербург' (funny: that's not even the city I thought)
And in the meantime
iconv.decode(unescape(response.cookies.geo_city),'windows-1251')
gives 'эээээ-эээээээээ'
Any ideas?

Implemented it with global unescape in my fork: https://github.com/tomas/needle/compare/master...ValeriaVG:master
Unfortunately querystring.unescape result is unrecoverable, the other possible solution is to implement a dozen of maps to manually decode legacy URI encoded cookies, which sounds worse than try/catch


BadRequestError on runsync route, or what is the correct method to hit handler.py's locally run API?

I'm getting a BadRequestError when I try to test the vllm worker locally.
I'm running my handler locally for testing, using MODEL_NAME=/models/stablelm-3b-4e1t python3 -u /src/handler.py --rp_serve_api --rp_api_port 8000 --rp_api_host <IP_ADDRESS>, in a docker image built using the instructions found at https://github.com/runpod-workers/worker-vllm?tab=readme-ov-file#option-2-build-docker-image-with-model-inside, and I'm trying to send test requests to the runsync route based on what is described here:
https://blog.runpod.io/workers-local-api-server-introduced-with-runpod-python-0-9-13/
I've tried using the api test forms on the http://localhost:8000/docs page and I've also tried with curl:
curl -H 'content-type: application/json' -d '{"input":{"message":"blah de blah"}}' http://localhost:8000/runsync

However, I always get this response:
{
  "id": "test-1b8405d8-3e00-438e-b3cd-4bae73fc5e7a",
  "status": "COMPLETED",
  "output": [
    {
      "error": {
        "object": "error",
        "message": "",
        "type": "BadRequestError",
        "param": null,
        "code": 400
      }
    }
  ]
}

I also tried the {"input": {"number":123}} body shown in the blog post, same result.
What am I doing wrong?
Here's the full output from handler.py:
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
INFO 04-12 23:19:33 llm_engine.py:87] Initializing an LLM engine with config: model='/models/stablelm-3b-4e1t', tokenizer='/models/stablelm-3b-4e1t', tokenizer_mode=auto, revision=None, tokenizer_revision=None, trust_remote_code=False, dtype=torch.bfloat16, max_seq_len=4096, download_dir='/models/huggingface-cache/hub', load_format=auto, tensor_parallel_size=1, disable_custom_all_reduce=False, quantization=None, enforce_eager=False, kv_cache_dtype=auto, device_config=cuda, seed=0)
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
INFO 04-12 23:19:35 weight_utils.py:257] Loading safetensors took 1.01s
INFO 04-12 23:19:37 llm_engine.py:357] # GPU blocks: 1111, # CPU blocks: 819
WARNING 04-12 23:19:37 cache_engine.py:103] Using 'pin_memory=False' as WSL is detected. This may slow down the performance.
INFO 04-12 23:19:37 model_runner.py:684] Capturing the model for CUDA graphs. This may lead to unexpected consequences if the model is not static. To run the model in eager mode, set 'enforce_eager=True' or use '--enforce-eager' in the CLI.
INFO 04-12 23:19:37 model_runner.py:688] CUDA graphs can take additional 1~3 GiB memory per GPU. If you are running out of memory, consider decreasing `gpu_memory_utilization` or enforcing eager mode. You can also reduce the `max_num_seqs` as needed to decrease memory usage.
INFO 04-12 23:19:43 model_runner.py:756] Graph capturing finished in 7 secs.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
WARNING 04-12 23:19:44 serving_chat.py:306] No chat template provided. Chat API will not work.
Special tokens have been added in the vocabulary, make sure the associated word embeddings are fine-tuned or trained.
--- Starting Serverless Worker |  Version 1.6.2 ---
INFO   | Starting API server.
DEBUG  | Not deployed on RunPod serverless, pings will not be sent.
INFO:     Started server process [252]
INFO:     Waiting for application startup.
INFO:     Application startup complete.
INFO:     Uvicorn running on http://<IP_ADDRESS>:8000 (Press CTRL+C to quit)
DEBUG  | test-1b8405d8-3e00-438e-b3cd-4bae73fc5e7a | Using Async Generator
DEBUG  | test-1b8405d8-3e00-438e-b3cd-4bae73fc5e7a | Async Generator output: {'error': {'object': 'error', 'message': '', 'type': 'BadRequestError', 'param': None, 'code': 400}}
INFO   | test-1b8405d8-3e00-438e-b3cd-4bae73fc5e7a | Finished running generator.

For non-openai compat usage, the input must either have messages or prompt: https://github.com/runpod-workers/worker-vllm/tree/0.3.2#request-input-parameters


Road factory doesn't merge by type

somehow I forgot adding that to road factory I guess

pushed on dev branch, should be working properly now


Add a New Login Button

Hi @Spyware007, I am a contributor in GSSOC'23.
I want to add a new login button.
can you please assign me this task under label gssoc'23

@Ayush9951 Assigned to you!


[Operator WG] Finish Related Work / What’s next? / Where to get help?

"Finish Related Work / What’s next? / Where to get help?" section on Operator white paper.

@Jenniferstrej do you think we can close this?


[Parser][Tracking] Parsing and Pretty Printing 2.0 for Error Reporting

Following my suggestion to keep a tracking issue for big work items like Ansor. I will keep a tracking issue for all the work being done on the Parser 2.0. I will track remaining todo items and their completion here. Will update when I open second PR shortly.

[ ] Add support for tokenizing escape sequences correctly in string literals.
[ ] Update lexer to use diagnostic context.
[ ] Add spans to match clauses.
[ ] Export optional span arguments to Python bindings.
[ ] Add spans to constructors and type data.
[ ] Address spans for variables, global variables, and ops.
[ ] Support mutating spans in ExprMutator, and update CoW logic.
[ ] Define a customizable Render for controlling the rendering behavior of diagnostics.
[ ] Add a better implementation for matching operator strings.
[ ] Fix oddity with tuple type parsing, i.e (A) is not equal (A,)
[ ] Clean up attribute printing and parsing around null values.
[ ] Discuss reference syntax, currently downgraded to simpler to parse (ref_read/ref_write).
[ ] Handle null Span and SourceMap gracefully.

See also #6617


Catalina is No Longer Supported By Apple

As of November 30, 2022 Catalina is no longer supported by Apple and will not receive updates. It also appears GitHub is dropping support for it as well https://github.blog/changelog/2022-07-20-github-actions-the-macos-10-15-actions-runner-image-is-being-deprecated-and-will-be-removed-by-8-30-22.
Should we look at using a newer version of MacOS for the GitHub action?
https://github.com/rancher-sandbox/lima-and-qemu/blob/main/.github/workflows/release.yml#L14

Resolved.


PWR031: Add benchmark

This PR adds a new benchmark to evaluate PWR031's performance. This PR also adds a Fortran example to PWR031 to demonstrate its usage in Fortran projects.
------------------------------------------------------------------
Benchmark                        Time             CPU   Iterations
------------------------------------------------------------------
PWR031 C Example              9341 us         9336 us           75
PWR031 C Improved             4599 us         4597 us          152
PWR031 Fortran Example        9360 us         9356 us           75
PWR031 Fortran Improved       4098 us         4096 us          171
------------------------------------------------------------------

I'm curious about the numerical stability/precision.... I know it's not part of the benchmark requirements but... Why not doing something like PWR037?

Done! I added one commit modifying the examples to show the precision of the transformation suggested by PWR031


Default Helper List

Politely lift https://github.com/lifeart/ember-ast-hot-load/blob/master/lib/ast-transform.js#L26 to be a default set of helpers within the transform to work alongside @GavinJoyce helper blacklist

closed by https://github.com/rajasegar/ember-angle-brackets-codemod/pull/30


Feature Request: File Name as Caption

Love the plugin, very elegant.  One thing I'm missing is the ability to show a bit of information about the image.  Having an option to display a caption, maybe just when zoomed on the image in lightbox view, would be a nice way to get more information about what I'm looking at.

I think it might be good to just have a captions string and then you could probably use Templater or some JavaScript plugin to insert the file name as you suggest.

I totally second this request; in fact a gallery that is NOT showing the file name of the image (not even optionally) is lacking a major feature to my opinion.

The filename / datetime would be nice (as an selectable option - you don't want them always on webpages etc). I think, information from the images EXIF or IPTC-Info-Fields like caption  would be harder to get access to ....

Very agree with everyone. It will be so grat to have!

Would be very good to have captions for the images. I second this.


SFTP.DownloadFiles - filemask needs to be handled so special characters can be used in the filenames

Task uses regex to find files. This needs to be modified if the files include special characters in them. If the filemask has parenthesis, the task can't find the file unlike UploadFiles task which finds the file successfully.

Fixed in PR #103


HDK produces incorrect results when query runs on Intel GPU

This is an umbrella ticket to track the status. Following tests now fail with incorrect result:

Test name
Reproducer query
Notes

Select.FilterAndSimpleAggregation
SELECT count(ff) FROM test GROUP BY x;
Same query with count(*) works

Select.FloatAndDoubleTests
SELECT SUM(CAST(x AS FLOAT)) FROM test GROUP BY z;
Same issue as in FilterAndSimpleAggregation

Select.GroupBy
SELECT x, y, COUNT(distinct str) FROM test GROUP BY x, y
Distinct-related problem

Select.FilterAndGroupBy
SELECT x * 2 AS x2, COUNT(DISTINCT y) AS n FROM test GROUP BY x2 ORDER BY n DESC;
There's another failure that does not have a distinct clause: SELECT x, SUM(z) FROM test WHERE z IS NOT NULL GROUP BY x ORDER BY x;

Select.FilterAndGroupByMultipleAgg
SELECT MIN(x + y), COUNT(*), AVG(x + 1) FROM test WHERE x + y > 47 AND x + y < 53 GROUP BY x, y;
The problem here is the average. Removing it from the complete query produces correct result without fallbacks. Avg works without group by.

Select.CountDistinct
SELECT COUNT(distinct x) FROM test;
This seems to need a fallback. Currently, it produces valid GPU code and runs the kernel.

Select.ApproxCountDistinct

Same as Select.CountDistinct

Select.GroupByPushDownFilterIntoExprRange
SELECT t + x, AVG(x) AS avg_x FROM test WHERE z <= 50 and t < 2000 GROUP BY t + x ORDER BY avg_x DESC;
Query works when the AVG is removed.

Select.GpuSort

Simple queries like SELECT x from test ORDER BY x DESC; work, so the problem is likely group-by-related.

Select.SpeculativeTopNSort
SELECT w, COUNT(DISTINCT x) acd FROM test GROUP BY w ORDER BY acd DESC LIMIT 2;

Select.GroupByBaselineHash
SELECT cast(x1 as double) as key, COUNT(*), SUM(x2), MIN(x3), MAX(x4) FROM random_test GROUP BY key ORDER BY key;
Seems to have the same problem with a column aggregation in groups.

Select.GroupByPerfectHash
SELECT case when float_not_null > 2 then -3 when float_null < 4 then 87 else NULL end, MAX(id), COUNT(*) FROM logical_size_test GROUP BY case when float_not_null > 2 then -3 when float_null < 4 then 87 else NULL end ORDER BY case when float_not_null > 2 then -3 when float_null < 4 then 87 else NULL end ASC;

Select.WatchdogTest

Same issue as in Select.FilterAndSimpleAggregation

Insert.DictBoundary

Same issue as in Select.FilterAndSimpleAggregation

Select.DictionaryStringEquality

The test prevents CPU fallback and uses strings.

Select.Interop
SELECT 'dict_' || str c1, 'fake_' || substring(real_str, 6) c2, x + 56 c3, f c4, -d c5, smallint_nulls c6 FROM test WHERE ('fake_' || substring(real_str, 6)) LIKE '%_ba%' ORDER BY c1 ASC, c2 ASC, c3 ASC, c4 ASC, c5 ASC, c6 ASC;
Failed to run pre-flight filtered count with error Cannot bind function with invalid UDF function name: ||

#479 fixes FilterAndSimpleAggregation, FilterAndGroupByMultipleAgg, GroupByPushDownFilterIntoExprRange, and WatchdogTest

#487 fixes Select.GroupByPerfectHash and Select.GroupByBaselineHash (except for multi-column group by).


add stu.cqupt.edu.cn for Chongqing University of Post and Telecommunications

cqupt.edu.cn has already in this repository.
just add stu.cqupt.edu.cn

@Eyderoe I am sorry, the domain stu.cqupt.edu.cn is removed from our trusted domains list because the school allows to register an email address there even if you are not a student of the school. If you are the student of this school, please apply with official document (OFFICIAL DOCUMENT tab at https://www.jetbrains.com/shop/eform/students).

@Eyderoe I am sorry, the domain stu.cqupt.edu.cn is removed from our trusted domains list because the school allows to register an email address there even if you are not a student of the school. If you are the student of this school, please apply with official document (OFFICIAL DOCUMENT tab at https://www.jetbrains.com/shop/eform/students).

so should I prove -> only students can register the mail ?

@philipto  so should I prove -> only students can register the mail ?


Can I run a model service on multiple GPUs？

I want to run a model service on multiple GPUs  without  TP。

Yes, you can set the number of replicas in the deploy config YAML file or the @serve.deployment annotation.


Pt 156157920 crash under sync recovery

When a worker that fetches blocks from another chain crashes unexpectetly, we should remve it from the pool of sync workers.
The difficult part of this patch is the test case.

I also have some slight concerns about the test being timing dependent, but it might be hard to avoid here...


Server not rendering data

I am trying to render my app from the server  and everything works, for the most part. When I curl localhost:3000, I get generated html returned. However, I cannot seem to get past getting data to load on the server. I suspect it is simply because the data is not available yet - which is completely understandable on the client side.
This component is loaded on both server and client:
const abstractPostsList = ({data}) =>{
  return data.loading ? (<Loader type="ball-triangle-path" />): (
    <StaggeredMotion
      defaultStyles={[...data.posts].map(() => {return {h: 0.1}})}
      styles={
        prevStyles =>
          prevStyles.map((_, i) => {return { h: spring(prevStyles[i - 1].h)}})
      }
    >
      {interpolatingStyles =>

        {interpolatingStyles.map((style, i) => {
          return (

              <Post post={data.posts[i]} />

          )
        })}

      }
    </StaggeredMotion>
  )
}

// We then can use `graphql` to pass the query results returned by MyQuery
// to MyComponent as a prop (and update them as the results change)
const PostsList = graphql(getPosts)(abstractPostsList);
export default PostsList;

This all works on the client. The <Loader /> loads first and the <Post />s come animating in shortly after. However, curl localhost:3000 returns the <Loader /> component. I understand why it does, just don't know how to work around it. Can't I block the rendering until the data is ready? (At least on the server?)
Packages

<EMAIL_ADDRESS><EMAIL_ADDRESS><EMAIL_ADDRESS>reactrouter:react-router-ssr

@jasonnathan where are you doing your SSR? Are you using getDataWithTree to prefetch all of the data?

If I remember, with reactrouter:react-router-ssr you can do something like this:
preRender() { awaitAll(getDataFromTree(<App/>) }

No, I was just reading about that, but I got all confused because there seemed to be an existing implementation via meteor-react-router-ssr here https://github.com/thereactivestack/meteor-react-router-ssr/blob/master/lib/server.jsx#L85
Right, I'll try that!

Yep! That package preforms the SSR for you. So you should be able to use that hook, and Meteor's Fiber implementation of promise to prefetch all of your data!

Ok, I tried that, now I'm getting another error:
Sun Oct 30 2016 20:46:22 GMT+0800 (SGT) 'error while server-rendering' 'TypeError: this.all is not a function
    at Function.all (native)
    at Function.Promise.awaitAll (.meteor/packages/promise/.<IP_ADDRESS>xaxir++os+web.browser+web.cordova/npm/node_modules/meteor-promise/promise_server.js:31:30)
    at Object.preRender (index.jsx:40:38)
    at packages/reactrouter:react-router-ssr/lib/server.jsx:188:23
    at [object Object]._.extend.withValue (packages/meteor.js:1122:17)
    at generateSSRData (packages/reactrouter:react-router-ssr/lib/server.jsx:181:29)
    at sendSSRHtml (packages/reactrouter:react-router-ssr/lib/server.jsx:107:25)
    at packages/reactrouter:react-router-ssr/lib/server.jsx:94:13
    at runWithEnvironment (packages/meteor.js:1176:24)
    at packages/meteor.js:1189:14\n => awaited here:
    at Function.Promise.awaitAll (.meteor/packages/promise/.<IP_ADDRESS>xaxir++os+web.browser+web.cordova/npm/node_modules/meteor-promise/promise_server.js:31:12)
    at Object.preRender (index.jsx:40:38)
    at packages/reactrouter:react-router-ssr/lib/server.jsx:188:23
    at [object Object]._.extend.withValue (packages/meteor.js:1122:17)
    at generateSSRData (packages/reactrouter:react-router-ssr/lib/server.jsx:181:29)
    at sendSSRHtml (packages/reactrouter:react-router-ssr/lib/server.jsx:107:25)
    at packages/reactrouter:react-router-ssr/lib/server.jsx:94:13
    at runWithEnvironment (packages/meteor.js:1176:24)
    at packages/meteor.js:1189:14
    at node_modules/react-router/lib/match.js:67:5'

@jasonnathan that looks like an issue with the Meteor Promise implementation. Not sure if it is a bug there or not though. I don't see react-apollo in the strack trace

Thanks @jbaxleyiii, all sorted. For anyone else getting this bug, it is related to https://github.com/nodejs/node/issues/5687 where Promise.all expects an array an isn't getting one. In my case, I was only resolving a single endpoint and changing awaitAll to await solved it.
The only issue I am still having is:
Warning: React attempted to reuse markup in a container but the checksum was invalid

Which seems to be related to this https://github.com/apollostack/react-apollo/issues/258 (I hope).

@jasonnathan  how can you do SSR with Meteor?
do you have apollo server that is running on a standalone apollo server node app?
I just trying to find out how to do SSR with meteor apollo , but have no idea.

@ansonla3 check out https://github.com/apollostack/react-apollo/tree/master/examples/meteor

@jbaxleyiii cool! check it out now. thanks very much!!


ToastPosition.top not showing toast

Hello,
I want to show toast on top of screen and doing like this,
self.view.makeToast("Toast", duration: 1.0, position: ToastPosition.top)
but it is not showing toast. When I change position to center or bottom it shows toast.
I have Toast-Swift, 1.4.0

Had the issue here.
I fixed it by using:
self.tabBarController?.view.makeToast("Your message here", duration: 30.0, position: ToastPosition.top)

This is not a bug in the library. The toast will be presented in your view's frame, wherever that may be.


no web UI is exposing on any host ports after creating nodes

Im trying to deploy contract using quorum-maker, I've followed every step as mentioned in wiki, but still not able to connect web UI and have no idea  where Web app is deployed(in wiki. http://<IP_ADDRESS>:22004).
BTW I'm trying on GCP instance and AWS instance also. here is my docker ps status.

#98

As mentioned in the table, Node UI port is mapped to 20404

Btw, Im using cloud instance. Should I need to use Ip address like <IP_ADDRESS>:20404 or like localhost:20404 ?? @dhyansraj

It looks like you choose option 4, Dev/Test Network to create these nodes. If the browser is on a different machine, you should use the public IP of the cloud instance.

It didn't work @dhyansraj

Have you got a solution for this?

No

Having the Same issue despite of Open ports. My ugly workaround is an installation of ubuntu desktop and a remote vnc connection to the server.

AWS instance in an production environment works for me.


Code Inspection: npm audit on python

marked:>=0.3.14 <0.6.2

(warn) Regular Expression Denial of Service Upgrade to version 0.6.2 or later.

marked:0.4.0:

typedoc>marked

[atomist:code-inspection:python=@atomist/atomist-sdm]

Issue closed because branch python was deleted.

Issue closed because branch python was deleted.


Provide a license

I'd like to use font-linux but need a license to do so. It would be great if you could add one :smiley:

Sure. Any suggestion? SIL Open Font License? I don't really know much about what's a fitting license for what.

Ah whatever.

I guess none of the existing contributors @Caerbannog and @pawelad would disagree?

Agreed.

Thanks a lot, I think CC0 is generally considered the best public domain license since the Unlicense/WTFPL don't hold up in certain countries.

Yeah, no problems from me.

Some of the logos may carry a copyright, trade mark or service mark.  Since font-linux provides these logos in source form, an open license should make a clear distinction between code and graphics.
Because of this, the OP should more clearly identify the components they're looking to license, since font-linux clearly can't give authority on items they do not own.

I was actually gonna suggest similar thing, or at least researching it and seeing how it's done in other cases - most of the icon fonts use copyrighted names and logos.

Yeah, you're right. I took a look at Font Awesome, they're under the "SIL Oen Font License". The website has these statements about their brand icons:

All brand icons are trademarks of their respective owners.
The use of these trademarks does not indicate endorsement of the trademark holder by Font Awesome, nor vice versa.
Brand icons should only be used to represent the company or product to which they refer.

Do you think a similar statement would be sufficient in this case? Something like

All brand icons are trademarks of their respective owners and should only be used to represent the company or product to which they refer.

Thoughts / opinions / legal advice welcome.

All brand icons are trademarks of their respective owners and should only be used to represent the company or product to which they refer.

:+1:
Even font-awesome skates on thin ice using so many third party logos without explicit written permission, but yes any disclaimer to precede the code license (i.e. IB4T TL;DR) should be sufficient. :+1:

@Tyriar

Unlicense/WTFPL don't hold up in certain countries.

Do you know any specific countries that are affected? Are you affected by this in your country?

@Lukas-W no, but I've been told and read that it's generally best for those reasons. gnu.org recommends it as the public domain license of choise)

If you want to release your work to the public domain, we recommend you use CC0. CC0 also provides a public domain dedication with a fallback license, and is more thorough and mature than the Unlicense.

Okay, so after I've done some reading, I decided to stick with the Unlicense for now. All claims of it being not applicable in some countries (they even call it "illegal" in Germany) that I found are very vague. I prefer it over CC0 because it's short (24 vs 118 lines), readable, and its intents are very clear in my eyes. In case there's ever a concrete problem or concern about it, just contact me. I'm sure we can sort something out.

Thanks @tresf for your input. I added the disclaimer to the readme via f17a6cb3d7c9f7f8950f08aa00b31ec2b24f110d.


Create sample examples

setup some codepens?

simple carousel
swipe tracking dot

two boxes next to each other
swipe in right box and see dot/slash move/happen in left box?

started a codepen example:

https://codepen.io/hartzis/pen/oebBPp

Can you tell me what the velocity value represents? I expected it to be the velocity of my finger gliding along the screen, but the values generated don't seem to be giving any predictable pattern. I'm getting -50 to 50 swiping at the same speed. Am I missing something? Thanks for any help.

@joebien thanks for the question, it's been a while since i've messed with that code, so always nice to refresh. velocity is essentially distance / time and specifically with react-swipeable it is (absolute distance from swipe start) / milliseconds since swipe start.
The distance(∆) in pixels is calculated finding total distance traveled in pixels from where the swipe started using the Pythagorean Theorem: delta = √(abs(∆X)² + abs(∆Y)²), here in the code and the ms(milliseconds) are calculated using Date.now().
So velocity in react-swipeable ends of being distance in pixels from where the swipe started divided by the time in milliseconds that have happened while swiping.
The value of velocity should always be positive. If you could show me a fiddle/codepen/code example and/or gif/screenshot logging the velocity as negative, and what browser you're using that would be awesome?
In the console output for the example, I'm getting positive values for velocity with onSwiping and onSwiped.

added a simple carousel example with #86, would still like to add more later


Add black (#55)

Waiting for reply.. https://forum.snapcraft.io/t/updating-black/11078

Good idea, thanks! How about installing from pip and running black on just Python 3.6 and/or 3.7?

Should be no problem, just need a bash condition check on Python version in
Travis.

Sounds good. I'll update the config to run that on just Python 3.6/3.7. Thanks again!


ft-Project-APIs

Checklist:

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[x] I have commented my code, particularly in hard-to-understand areas

Based on the approval of all reviewers, we are closing this pull request


Add Aravinth to Contributors list

@aravinth-itsme, I'm quite elated about your PR. I wanna evolve this project to addresses various problems faced by first time contributors. I'd love to learn about your journey in open source community, the problems, pain points you had etc.
Could you explain how you felt when you went through the tutorial, made a PR and learned that I accepted it?


built in CORS proxy

It's something I've in my mind for some time now, and now I know what I want the dev experience to be.
Hoodie comes with a hoodie.request() method. We already differentiate between relative and absolute paths
hoodie = new Hoodie('http://my-hoodie-app.com')

// sends GET https://my-hoodie-app.com/_api/_session
hoodie.request('GET', '/_session')

// sends GET https://my-other-app.com/tasks – without the /_api part
hoodie.request('GET', 'https://my-other-app.com/tasks')

What we could do quite easily is to not send the latter request to https://my-other-app.com/tasks, but instead rewrite it to https://my-hoodie-app.com/_cors/my-other-app.com/tasks, making cross origin requests a non-issue with a build in proxy.
I'd love that. And I think I'm not the only one

This could be added via a simple plugin, it should not be part of Hoodie core


"replace" in origin_layers JSON not working for base "origin" layer

Based on data/origins/origin_layers/origin.json placed into my mod resources with the following contents:
{
	"replace": true,
	"origins": [
		"mymod:origin1",
		"mymod:origin2",
		"mymod:origin3",
		"mymod:origin4"
	]
}

(of course with data/mymod/origins/origin[1-4].json also setup)
The expected behaviour is that the base set of origins ( https://github.com/apace100/origins-fabric/wiki/List-of-origins ) would be removed, and the specified set of origins (mymod:origin1, mymod:origin2, mymod:origin3, mymod:origin4) would be used in the layer instead.
Unfortunately this is not the case. The default origins persist, and the newly-specified ones are just merged in.
[11:18:19] [Render thread/INFO] (Origins) Trying to read layer file: origins:origin
[11:18:19] [Render thread/INFO] (Origins) Trying to read layer file: origins:origin
[11:18:19] [Render thread/INFO] (Origins) Merging origin layer origins:origin

Could this be a result of the files being processed in the wrong order?
Scenario 1: Let's say the data/origins/origin_layers/origin.json for a mod or datapack is processed first

Method apply in io.github.apace100.origins.origin.OriginLayers loads the JSON data from the mod
replace is true and therefore existing data is replaced by its declarations (and since the mod is loaded first there is no existing data)
Next the JSON data from origins itself is loaded
replace is false and therefore its data ( https://github.com/apace100/origins-fabric/wiki/List-of-origins ) is merged in

Scenario 2: Let's say the data/origins/origin_layers/origin.json for Origins is processed first

Method apply in io.github.apace100.origins.origin.OriginLayers loads the JSON data from Origins itself ( https://github.com/apace100/origins-fabric/wiki/List-of-origins )
replace is false and therefore its data is merged into existing data (and since it's loaded first there is no existing data)
Next the JSON data from the mod or datapack is loaded
replace is true and therefore existing data is replaced by its declarations

Scenario 1 is the behavior I'm observing.
Scenario 2 is the expected behavior.

Follow-up on this. The behavior seems maddeningly inconsistent, but I can confirm it depends entirely on what order the files are processed in.
I forked the repo and added in some extra verbose logging to see what order the files were being loaded in.
https://gist.github.com/hattrickpatrick/ee16957d6e825c808a2338deb3bb7461
Then I ran tests with the fabric API and my mod's JAR alongside it, and no other mods. The behavior was inconsistent - sometimes it would load my mod's JSON first, others it would load Origins' built-in JSON first.

Should be fixed with the newest version (1.1.0, released yesterday).
Origin layers now support a loading_priority integer field similar to origin files. If a layer is set to replace, all origins from the same and lower loading priority will become unavailable, but layer files with a higher loading priority with replace set to false will still add to that layer.


Identical transformations for T1 and T2 images?

This is a question, not an 'issue'.  When I create a T1 and T2 image as below:
        im, lab = brain_generator.generate_brain()
        t1_im = im[:, :, :, 0]
        t2_im = im[:, :, :, 1]

are the T1, T2, and labeled images consistent with each other?  For example, are they all positioned the same?  Or could the T1 and T2 differ slightly as when a person moves their head in the scanner in the middle of acquisition?

Hi, the way we have it at the moment is: if you decide to generate multi-modality scans (e.g. T1-T2), then all the channels are perfectly aligned, as they are generated from the exact same label map. But if you are interested in synthesising mis-alignement between channels (due to head movements or mis-registrations), you can have a look at the SynthSR repo, where we do have this option:
https://github.com/BBillot/SynthSR/blob/944f723ee5a79e6e8dd310790cc269b74b68098a/SynthSR/labels_to_image_model.py#L202-L211
and
https://github.com/BBillot/SynthSR/blob/944f723ee5a79e6e8dd310790cc269b74b68098a/SynthSR/labels_to_image_model.py#L231-L239


Mutate and Update conflicts

Hi,
I have a components of users reviews.
The component use useSWR to fetch the reviews.
The user can delete/edit a review.
After the user delete/edit a review, I use mutate to update the cached version.
How can I avoid the following scenario?

User click "delete review" button on review R
SWR fires a request to fetch reviews (and get a list of reviews with R in it)
Review R removed from DB
Call mutate to remove R from the reviews list
The response to the request in step 2 arrives and showed to the user.
The user will see review R in the list until next SWR fetch.

Hi @oran1248, do you have a reproduction (a CodeSandbox link would be great)?

The response to the request in step 2 arrives and showed to the user.

Ideally this step will never happen. Because when you call mutate in step 4, it will invalidate all ongoing requests (including the one fired in step 2). So a race condition should never happen.
If you are interested in the related code, it's implemented here.

Ideally this step will never happen. Because when you call mutate in step 4, it will invalidate all ongoing requests

@shuding , that's what I was missing, thanks!

@shuding , What about the following scenario:

User click "delete review" button on review R
Call mutate to remove R from the reviews list
SWR fires a request to fetch reviews (and get a list of reviews with R in it)
Review R removed from DB
The response to the request in step 3 arrives and showed to the user.
The user will see review R in the list until next SWR fetch.

Even if in step 2 I call mutate with false param (do not revalidate), swr possibly can revalidate again depends on the options param.
How can I avoid this scenario? What is the best practice for optimistic UI? thanks!


Interrupt also upscale

The interrupt button currently only interrupts the image generation. However, when working on a big picture, there's that automatic upscaling step to do as well. Personally I'd like the interrupt to truly discard the in-process results (the batch currently in process, not all the batches) and not bother trying to do that upscaling for those incomplete generations.

I guess this can be done if I implement the interrupt API myself instead of using the official API for it. Need to notify my part of the API that it was interrupted somehow.


Failed upload not reflected in exit code

$ python setup.py sdist upload
  ...
running upload
Submitting dist/xxx-1.0.21.post22.tar.gz to https://pypi.example.com
Upload failed (404): Not Found
$ echo $?
0

I suspect this is an inevitable outcome of the design of distutils. Can you investigate and see if there's a better behavior that could be adopted?

If I find the time I'd love to. Will see what I can do.
fre 9 dec. 2016 kl. 04:21 skrev Jason R. Coombs<EMAIL_ADDRESS>
I suspect this is an inevitable outcome of the design of distutils. Can
you investigate and see if there's a better behavior that could be adopted?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/pypa/setuptools/issues/869#issuecomment-265923611,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAEdBac3bdxHIjoOmSRaCD-TzuVR8cmfks5rGMkYgaJpZM4LEBnb
.

Having the same problem guys.

My computer that returns the correct exit code has Python/Distutil version 2.7.10
The computer that suffers the problem has Python/Distutil version 2.7.6

Indeed, when I do a diff, I see that the issue was in fact fixed in Python 2.7.7 per python 21722. There's nothing to be done here.

I confirm that after upgrading to 2.7.12 worked.


Composer & Azure Devops

I am currently investigating on the best setup for using Composer in combination with Azure Devops. We are looking for a solution whereby;

Bot is pushed to Devops repo
Pipeline is triggered

Build, Test & Publish
Incremental Arm templates for DEV, ACC & PROD
Push Webapp & Update Luis models for DEV automatically, with approval steps for ACC & PROD

I was wondering if this is something that is planned for Composer to be integrated into the publish menu with the ARM scripts and pipeline.yml files? Or is it worth developing it ourselves for now (with the danger it is incompatible with what is delivered by Composer in the future)?

@cwhitten @benbrown be aware of this feature requirement.

@cxbuilders - I would approach this as a plugin project. You can create a new method for takign a bot and pushing it to a destination - that destination can be pipelines.  This would allow you to write your pipeline.yml files or other necessary components as it passes out of Composer and into the environment.
We aren't planning on building Azure Devops publish immediately. It would be great to have this as a contributed module!
There are docs for the plugin API here:
https://github.com/microsoft/BotFramework-Composer/blob/master/Composer/plugins/README.md

@benbrown I am currently setting up a manual method, whereby I move the required dialog etc files in the right location using the pipeline. I am working for a customer that has just choosen MS as their new framework for bots, so I need to check if they're open to this. When they are would it be possible to have a call on this so I am sure the route we're taking is the beat one?

sure.

Closing as a dupe of https://github.com/microsoft/BotFramework-Composer/issues/3170

@benbrown I have tried to contact you last week via the email provided on https://github.com/benbrown. Can you let me know if you have time to discuss the best way on setting this up globally?

@cxbuilders - hrrm! try<EMAIL_ADDRESS>

@benbrown sent you a mail. In case it did not arrive, please send me an email to bastiaan cxbuilders.com

@benbrown Any update on this? If there is no time, please let me know, then I don't need to keep track of this anymore.

@cxbuilders sorry I never got back to your email. inboxes! :/
One of my peers here on the team just sent me a draft of the devops build pipeline.  I am hoping to include a version of it in the next release.


Update homepage categories with CFP categories

Greg propose we just use CFP categories (+ MixTeen)

I have think about categories, here is the list I propose. I have made my best to limit the amount of different categories by merging Dev & Ops (I don't think that's a good idea to differentiate them) to Tech and removing Other (let's use Alien if no other category fit).

Aliens
Makers
Hacktivism
Tech
Product
Design
Team
Education
MixTeen

I have updated categories to what should be the final version by merging team and education to learn.

\o/

Oops wrong PR. But this is nice too :) (will remove these comments)


Server doesn't start after config

I have an isssue while using hosting, where server with installed mod doesn't start.
At first I tried everything on personal server - works fine (I have exact copy of my server). Then uploaded mod and config - doesn't work.  So I deleted config and fired server again. Fires up until expected error about config. After filling config up - still the same.
I can upload lasted log, but it doesn't say anything since server starts normally to a certain point, then console freezes and my host forces server to stop after about 15 minutes.
latest.log
Also, tried removing mods that console stops at - didn't help.

Hello, can you try the following 4 scenarios and upload their logs respectively?

 What operating system are you using?

Also, please try the latest build artifact from Actions and see if it works.
If you have modified mcdiscordchat.json, remember to backup your config first.
Normally, the log looks like this:
...
[12:26:57] [main/INFO]: Compatibility level set to JAVA_16
[12:26:57] [main/INFO]: Compatibility level set to JAVA_17
[12:26:57] [main/INFO]: Loaded configuration file for Lithium: 100 options available, 0 override(s) found
[12:26:59] [main/WARN]: @Inject(@At("INVOKE")) Shift.BY=3 on fabric-lifecycle-events-v1.mixins.json:server.WorldChunkMixin::handler$zca000$onLoadBlockEntity exceeds the maximum allowed value: 0. Increase the value of maxShiftBy to suppress this warning.
[12:27:02] [main/INFO]: -----------------------------------------
[12:27:02] [main/INFO]: MCDiscordChat (MCDC) 2.0.0
[12:27:02] [main/INFO]: By Xujiayao
[12:27:02] [main/INFO]:
[12:27:02] [main/INFO]: More information + Docs:
[12:27:02] [main/INFO]: https://blog.xujiayao.top/posts/4ba0a17a/
[12:27:02] [main/INFO]: -----------------------------------------
[12:27:03] [main/INFO]: Login Successful!
[12:27:04] [JDA MainWS-ReadThread/INFO]: Connected to WebSocket
[12:27:04] [JDA MainWS-ReadThread/INFO]: Finished Loading!
[12:27:04] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', servicesHost='https://api.minecraftservices.com', name='PROD'
[12:27:07] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[12:27:07] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[12:27:07] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[12:27:07] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[12:27:07] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[12:27:08] [Worker-Main-25/INFO]: Loaded 7 recipes
[12:27:08] [Worker-Main-25/INFO]: Loaded 1141 advancements
...

I think your issue is very similar to #11. What operating system are you using?

I just tested MCDC on macOS and it works fine.

I believe host keeps their servers on linux, but can't tell what version
After installing last last build from actions, console stops here :/
latest.log

Is your server hosted on a single core (1 CPU) Linux machine?
This issue is very likely caused by JDK-8274349 which is related to JDA (https://github.com/DV8FromTheWorld/JDA/issues/1858).
Please try updating to Java 17.0.2 which resolved the issue.

Host says CPU is limited to 5 core 2.9Ghz.
I'm going to ask If they can update java since I can't do it myself.
Will update you soon!

Host replied:
openjdk version "17.0.1" 2021-10-19 OpenJDK Runtime Environment (build 17.0.1+12-39) OpenJDK 64-Bit Server VM (build 17.0.1+12-39, mixed mode, sharing)
I asked them to update to 17.0.2

Ok, the problem should be solved after updating to Java 17.0.2.

Is the issue solved?

I'm still waiting for my host provider to update java :/ Will update u ASAP

Java got updated to 17.0.2. Server works fine!
Thank you a lot!

OK, great to hear that!