All Clarius Consulting links broken in README.md

The "Why?" section, and others, of README.md (https://github.com/Moq/moq4/blob/029d510041c95714876bd1e43110af07c24f9aaa/README.md) point to blog articles at Clarius Consulting. None of the links resolve - all generate HTTP 503.
Also, the Internet Archive has nothing from those blogs, due to a robots.txt restriction.
The README set me up to want to read deeper into the issues motivating Moq.
Unless kzu will resurrect the blog / embed the posts in the repository how about the README not linking out to those pages?

Fixed

Thank you @kzu ! I can read again. :)

thanks for reporting :)
On Thu, Oct 22, 2015 at 2:32 PM Nick Richards<EMAIL_ADDRESS>wrote:

Thank you @kzu https://github.com/kzu ! I can read again. :)
—
Reply to this email directly or view it on GitHub
https://github.com/Moq/moq4/issues/210#issuecomment-150298588.


Scaling - How to handle updates to node configuration while scaling up a cluster

Pitch
Documentation feedback

Page title: CrateDB multi-node setup
Page URL: https://crate.io/docs/crate/howtos/en/latest/scaling/multi-node-setup.html
Source: https://github.com/crate/crate-howtos/blob/master/docs/scaling/multi-node-setup.rst

This issue originated from a question about propagation of settings of newly joined nodes, while scaling up a cluster. ("Let's say I have a 3 node cluster and have thus set gateway.expected_nodes to 3 in the startup commands for those 3 nodes. If I now add 1 additional node and start it with -Cgateway.expected_nodes=4, will the "4" propagate to the existing 3 nodes in some way or do I need to restart the 3 nodes?"). The how-to should include the best practice for the necessary steps (e.g. updating config on all nodes / ? restart?) that need to be performed, when scaling up an existing cluster.

I've added a patch to cross link to the article you've referenced. Thanks!

GH-46


[RuneQuest:Glorantha] Changed images to support translation

Changes / Comments
Changed image for Elemental runes.
Removed image of Power rune headers
Adjusted css styling for Power and Elemental rune headers to  better support translations
Roll20 Requests
Comments are very helpful for reviewing the code changes. Please answer the relevant questions below in your comment.

[x ] Does the pull request title have the sheet name(s)? Include each sheet name.
[ ] Is this a bug fix?
[ ] Does this add functional enhancements (new features or extending existing features) ?
[x ] Does this add or change functional aesthetics (such as layout or color scheme) ?
[ ] If changing or removing attributes, what steps have you taken, if any, to preserve player data ?
[ ] If this is a new sheet, did you follow Building Character Sheets standards ?

If you do not know English. Please leave a comment in your native language.

Character Sheet Info Roll20 Internal Use only.


Adds details and clarifications to HIP93

merging on behalf of the author but the HF bits in here probably needs to be discussed :)


🚀 Feature: Give some control on how diffs are rendered

Feature Request Checklist

[X] I have read and agree to Mocha's Code of Conduct and Contributing Guidelines
[X] I have searched for related issues and issues with the faq label, but none matched my issue.
[X] I want to provide a PR to resolve this

Overview
I use some custom comparators with chai which allows me to do things such as:
assert.deepEqual({a: 1}, {a: new Interval(0, 10)});

Unfortuantly, when the assertion fails, I don't have any control on how the diff should be rendered, and the diff will expose the internal structure of the Interval class with is not super helpful. I would like to have some control on how the diff is rendered.
Suggested Solution
I thought of a simple solution which works rather well for simple use case, which would be to call toJSON (if available) before object canonicalization (and this way my Interval class could decide a bit how it want to be rendered for the diff).
It feels a fair think to do, and it's already done in the specific case of Buffer class https://github.com/mochajs/mocha/blob/master/lib/utils.js#L218
Alternatives

Defining a special function "toMochaDiff" (of something similar) to avoid colliding with other use of toJSON
Give user full control over diff rendering by adding hooks to stringifyDiffObjs and generateDiff in base reporter

Additional Info
No response

This is a really interesting feature idea, thanks for filing 😄. It seems like it'd be ueful!
Though, per #5027, we're trying not to take on any new features that don't have broad user demand. We're more trying to keep Mocha afloat than anything else. So unless other test runners already do this we'd probably avoid it.
Requesting info: what do other test runners do around this, if anything?

@JoshuaKGoldberg Very good question, thanks for asking :) I had not investigated this at all, so I did some research.
As expected, Jest does a lot, with full battery included style. They have an internal diff module jest-diff, and before diffing, they format object with their own formater lib pretty-format, which allow plenty of customization with plugins and all the bells and whistles. The default behavior involves calling .toJSON, then trying not to if that did not work out well https://github.com/jestjs/jest/blob/e267aff33d105399f2134bad7c8f82285104f3da/packages/jest-matcher-utils/src/index.ts#L108
As you can see, this logic is in their "matcher", which would be a bit akin to saying chai should render their own diff (which in a way also makes sense to me)
Node native test seem also to delegate the diff to the assertion lib. (node assert module produce Errors whose message contains the colored diff directly). It doesn't seem to offer any customisation and doesn't call toJSON or anything
Jasmine seem to also have the diff formating pushed to their matcher (also builtin). They allow customisation of the pretty pretty before diffing https://github.com/jasmine/jasmine/blob/d06dce46141017f9f444caf2b3fe2655c49ad24b/src/core/matchers/DiffBuilder.js#L4C12-L4C26 (and "customObjectFormatters")
My conclusion of all this is that it somewhat more logical for the test runner not to handle diffs, and to push it more to the matcher/assertion level (I imagine assert.deepInclude diff should be computed differently than assert.deepEqual for example and the assertion lib is the one who should know what they mean) though the caveat is that the final rendering of the diff itself is definitely more of the reporter business (for example if you need to render things in HTML rather than in ANSI code - it's not clear to me how the other reporter handle this, maybe with ANSI code to HTML conversion, or maybe by transmitting an intermediate diff representation to the reporter).
For mocha, whose philosophy seem to be more "bring you own xxx" (assertions, mock, etc), I think it would make sense to allow the user to handle their own diff the way they want to. If we want to allow maximum flexibility (and also lowest effort ^^), we could simply have a renderError(error) function in the config, which if not defined, does the current behavior, and if defined, is called an return a string representation of the error, including the diff. As I said, it's not clear to me how HTML should be dealt with. Maybe with a boolean color parameter to renderError to let the rendering know we don't want to have ANSI code.

@JoshuaKGoldberg I've had two serious problems with diffs in projects that use Sequelize:
If expect(sequelizeModelInstance)... fails, the process prints unable to find module 'pg-native' and crashes before it can format the error diff
If expect(somethingContainingASequelizeTransaction)... fails, the process runs OOM while trying to format the error diff
I'd like to solve this in a more systematic way than just turning off all error diffs or changing code all over my test files.

@JoshuaKGoldberg  Okay, I was able to work around my problems by monkey-patching canonicalize.  So it's worth thinking about how to make that whole system officially pluggable


Use database for flatfile storage

We might be able to speed it up and reduce disk space (SQLite supports json as a type)

Nitrite implemented. Waiting it to be tested.


Multi ticket editing

#134
This adds buttons & associated checkboxes to the queue for Help/Resolve/Delete/Requeue selected.
Current TODO is mainly to refactor the TicketList into a Component class to let it maintain state

It's essentially done

Why do we need a Help All and Delete All? Isn't is essentially the same thing in terms of functionality for the user?

I'm guessing the original purpose was to have mass-cleanup buttons (seeing as a "help all" button for staff  is impractical at best). We might still want to be able to mass-delete tickets e.g. if office hours end abruptly.
I can definitely streamline this and perhaps offer a single select/deselect all button though.

I'm guessing the original purpose was to have mass-cleanup buttons (seeing as a "help all" button for staff  is impractical at best). We might still want to be able to mass-delete tickets e.g. if office hours end abruptly.
I can definitely streamline this and perhaps offer a single select/deselect all button though.

I think it might be dangerous to allow anyone to delete all the tickets on the queue. Maybe this should not be a feature....

I've removed it.


Uncaught RangeError: Maximum call stack size exceeded

[Enter steps to reproduce below:]

...
...

Atom Version: 1.0.11
System: Mac OS X 10.10.5
Thrown From: remote-edit package, v1.8.18
Stack Trace
Uncaught RangeError: Maximum call stack size exceeded
At /Users/nKt/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:185

RangeError: Maximum call stack size exceeded
    at Function.keys (native)
    at SFTPStream._cleanup (/Users/nKt/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:185:21)
    at SFTPStream.end (/Users/nKt/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:160:8)
    at SFTPWrapper.end (/Users/nKt/.atom/packages/remote-edit/node_modules/ssh2/lib/SFTPWrapper.js:29:23)
    at /Users/nKt/.atom/packages/remote-edit/lib/model/sftp-host.coffee:155:14
    at /Users/nKt/.atom/packages/remote-edit/lib/model/sftp-host.coffee:153:76
    at onerror (/Users/nKt/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:1027:7)
    at /Users/nKt/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:1072:30
    at SFTPStream._cleanup (/Users/nKt/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:190:38)
    at SFTPStream.end (/Users/nKt/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:160:8)

Commands
     -0:07.3.0 remote-edit:browse (ol.tree-view.full-menu.list-tree.has-collapsable-children.focusable-panel)

Config
{
  "core": {
    "themes": [
      "atom-dark-ui",
      "atom-dark-syntax"
    ],
    "disabledPackages": [
      "language-apache"
    ]
  },
  "remote-edit": {
    "foldersOnTop": true
  }
}

Installed Packages
# User
Remote-FTP, v0.7.2
language-ini, v1.12.0
remote-edit, v1.8.18

# Dev
No dev packages

I had to downgrade to 1.8.14 to solve this issue (temporarily).

^ 1.8.14 works for me as well! thanks for the comment on downgrading!

I have last versions atom && remote-edit and view this error
RangeError: Maximum call stack size exceeded
at SFTPStream.end (/Users/ruvasik/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js)
at SFTPWrapper.end (/Users/ruvasik/.atom/packages/remote-edit/node_modules/ssh2/lib/SFTPWrapper.js:29:23)
at /Users/ruvasik/.atom/packages/remote-edit/lib/model/sftp-host.coffee:155:14
at /Users/ruvasik/.atom/packages/remote-edit/lib/model/sftp-host.coffee:153:76
at onerror (/Users/ruvasik/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:1027:7)
at /Users/ruvasik/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:1072:30
at SFTPStream._cleanup (/Users/ruvasik/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:190:38)
at SFTPStream.end (/Users/ruvasik/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:160:8)
at SFTPWrapper.end (/Users/ruvasik/.atom/packages/remote-edit/node_modules/ssh2/lib/SFTPWrapper.js:29:23)
at /Users/ruvasik/.atom/packages/remote-edit/lib/model/sftp-host.coffee:155:14

[Enter steps to reproduce below:]

...
...

Atom Version: 1.0.11
System: Mac OS X 10.10.5
Thrown From: remote-edit package, v1.8.18
Stack Trace
Uncaught RangeError: Maximum call stack size exceeded
At /Users/mdanek/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:185

RangeError: Maximum call stack size exceeded
    at Function.keys (native)
    at SFTPStream._cleanup (/Users/mdanek/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:185:21)
    at SFTPStream.end (/Users/mdanek/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:160:8)
    at SFTPWrapper.end (/Users/mdanek/.atom/packages/remote-edit/node_modules/ssh2/lib/SFTPWrapper.js:29:23)
    at /Users/mdanek/.atom/packages/remote-edit/lib/model/sftp-host.coffee:155:14
    at /Users/mdanek/.atom/packages/remote-edit/lib/model/sftp-host.coffee:153:76
    at onerror (/Users/mdanek/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:1027:7)
    at /Users/mdanek/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:1072:30
    at SFTPStream._cleanup (/Users/mdanek/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:190:38)
    at SFTPStream.end (/Users/mdanek/.atom/packages/remote-edit/node_modules/ssh2/node_modules/ssh2-streams/lib/sftp.js:160:8)

Commands
     -0:22.4.0 remote-edit:browse (atom-text-editor.editor.is-focused)
     -0:09.5.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:07.1.0 core:move-down (atom-text-editor.editor.mini.is-focused)
  2x -0:06.9.0 core:confirm (atom-text-editor.editor.mini.is-focused)
     -0:02.4.0 core:move-down (atom-text-editor.editor.mini.is-focused)
     -0:01.0 core:confirm (atom-text-editor.editor.mini.is-focused)

Config
{
  "core": {
    "audioBeep": false,
    "projectHome": "/Users/mdanek/Development/",
    "ignoredNames": [
      ".DS_Store",
      ".css.map",
      ".map",
      ".git",
      ".sass-cache"
    ],
    "disabledPackages": [
      "wrap-guide"
    ]
  },
  "remote-edit": {
    "clearFileList": true,
    "rememberLastOpenDirectory": true,
    "foldersOnTop": true
  }
}

Installed Packages
# User
language-typoscript2, v0.2.0
minimap, v4.13.3
remote-edit, v1.8.18
tree-view-open-files, v0.2.4
typo3-fluid-atom-snippets, v1.2.0

# Dev
No dev packages

Also having this problem on Linux x64

Any update? I'm also having this issue.

Reproduced the issue as well when just trying to edit a JSP file at the webserver's root.

Published a new version, 1.8.19, which should resolve the issue. Tested it on mac os x and win7.


check CI on Julia v1.10 pre-release

Motivated by the reports of local test failures by @jlchan in #202 - let's see what we get in CI with the current pre-release of Julia v1.10

Interesting. The 3 Non-periodic failures look the same as the ones I saw.

I checked everything locally. Julia lead to different instructions when computing the boundary derivatives of grid(D) vs. collect(grid(D)). For Julia v1.9, the grid version was more accurate. For Julia 1.10, the grid version used other floating point instructions and became less accurate. It still appears to be within floating point accuracy, so I increased the tolerance in #205 a bit.


TextRecognizer works ok on Android but the result letters are all corrupted on iOS

Hi,
I got recommended to use google_mlkit_text_recognition instead of google_ml_kit as followes
https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/207
However, it still works ok on Android but not on iOS using google_mlkit_text_recognition as using google_ml_kit
recognizedText.text look ok on Android but the letters in it are all corrupted on iOS
For now, I need only English TextRecognizer
import 'package:google_mlkit_text_recognition/google_mlkit_text_recognition.dart';

textRecognizer = TextRecognizer(script: TextRecognitionScript.latin);
final File? imageFile = await getImage(ImageSource.gallery);

if(imageFile != null) {
  final inputImage = InputImage.fromFile(imageFile);
  final RecognizedText recognizedText = await textRecognizer.processImage(inputImage);

  String text = recognizedText.text;
  print('${this.className} extractText : ' + text);

}
google_mlkit_text_recognition 0.0.1
My development environment is as followes
iOS 14.7.1
Xcode 13.3
Please help me to solve this issue
Thanks in advance

@kodol73 : could you share an image of the text you are trying to recognize? I have been trying text recognizer and it works for me.

Here you have some screenshoot of the example app in iOS and it is working.

i have a same problem, it detect wrong text when run on IOS flutter

It seems that some images of text are recognized correctly, but some other images of text are corrupted
I just tried with example app, but has the same result
The result of recognizing below image is corrupted
Please check with the below image

@kodol73 : I tried your image with the example app and so far it does not look corrupted to me. It looks pretty much good to me.

You tried it on iPhone, right?
Can you please let me know your phone model and iOS version?

I tried with both an iPhone 11 and iPhone 6S, both with iOS 15 and I am using Xcode 13.3

I tried with both an iPhone 11 and iPhone 6S, both with iOS 15 and I am using Xcode 13.3

it's weird, I just upgraded iOS to 15.4.1, but the same result
It generated corrupted text like the following with the image
T
T
ooo
5

Just in case, I test with google_ml_kit 0.8.0 because example app uses google_ml_kit
Please help me to solve this issue

I had this same issue, but resolved it on iOS.
Still testing android but I am passing the File from camera plugin cameraController.takePicture() as the InputImage.fromFile(imageFile) and looking at text it had almost no relevant data, and any data it did have was like:
A
ooD
TM
After removing the google_ml_kit plugin, and replacing it with only the google_mlkit_text_recognition: ^0.2.0 it works fine. No idea why to be honest, but specifying just text recognition instead of the umbrella plugin resolved. Would like to hear some details on this if there are any.

Thanks @codyfilatov for the suggestion.
Do you still have issues with Android? both platforms are working okay?
@kodol73 : give it a try

Both platforms are working okay now.
Although I did not have this issue with Android to begin with.
The only issue I am having now on iOS is the orientation of my image when processing, it thinks it is in landscape when it is in portrait, so the bounding boxes are messed up, does not happen on Android. My image does not have any exif orientation data. I would be nice to have if no orientation data exists to predict based on the height/width, looks like it defaults to Landscape if no data exists. But that's another issue I can figure out.
Hope OP resolves issue with the dependency change.
Thanks

@codyfilatov: once you figure the orientation out, share here or create another issue if necessary. I have seen issues with different orientations as well.

I just tested the newly released version of google_mlkit_text_recognition, 0.2.0, nothing else changed
The issue doesn't appear any more
Thanks

@codyfilatov: once you figure the orientation out, share here or create another issue if necessary. I have seen issues with different orientations as well.

Sharing here just as a note.
The orientation issue was caused by no EXIF orientation data on the image in iOS taken from the camera plugin takePicture function. Since the image file had no EXIF orientation data I assume the text regognizer (and barcode scanner) was returning odd (not incorrect) values.
The values did not translate as expected as when I set a Container DecorationImage as the same file the image is displayed correctly as taken, but the values were printed mirrored and counter clockwise consistently.
After using the image package to set the EXIF orientation data to 1 and rewriting the bytes to a new file, then passing that file to MLkit the boundingBox values were as expected.

XFile imageCaptureXFile = await this.cameraController!.takePicture();
File imageFile = File(imageCaptureXFile.path);
this.imageFile = imageFile;
img.Image? image = img.decodeImage(await imageFile.readAsBytes());
if(image == null){
    Util.showToast('Image was not found.');
    this.isConfirming = false;
    this.imageFile = null;
    setState(() {});
    return;
}
if(!image.exif.hasOrientation){
    print('Baking orientation into image...');
    image.exif.orientation = 1;
    File orientatedImageFile = File((await getTemporaryDirectory()).path + Uuid().v4() + '.jpg');
    await orientatedImageFile.create();
    await orientatedImageFile.writeAsBytes(img.encodeJpg(image));
    await imageFile.delete();
    imageFile = orientatedImageFile;
    this.imageFile = orientatedImageFile;

    image = img.decodeImage(await orientatedImageFile.readAsBytes());
    if(image == null){
        setState(() {});
        return;
    }
}

This is what I use for my use case. Keep in mind I only want portrait.
I use the package:image/image.dart . Ignore the bad code, I'll clean it up later.
TextRecognizer textDetector = TextRecognizer(script: TextRecognitionScript.latin);
RecognizedText recognisedText = await textDetector.processImage(InputImage.fromFile(imageFile));

Closing this issue.
Fix: google_mlkit_text_recognition instead of google_ml_kit.
More details here: https://github.com/bharat-biradar/Google-Ml-Kit-plugin/tree/master/packages/google_mlkit_text_recognition
Moving InputImage and InputImageRotation issues to: https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/240


Complete re-write of web-app's front-end

The not-at-all good looking client-side of the web-app needs to be written properly. Initially it was written quickly without caring about design, best practices, or maintenance. And I must be blamed for that.
Important points to consider:

Using a data-binding library like Rivets instead of DOM manipulation (which will(has) inherently lead to callback mess).
The current CSS library Picnic is fine, but it can be changed. It just needs to be lightweight.
The most important thing to remember is to keep it light (it weighs ~40 KB right now).

I can do that for you

Hi @Saurabh3012, thanks for your interest! We should get in touch and make a plan how to coordinate this effort.

Awesome. I'll write a CONTRIBUTING guide in a couple of days so that you easily setup the development environment. You can also personally contact me if you want.

Thanks a lot for your replies. Looking forward to start contributing. Just
let me when and how I can do so.

We could do an open Google Hangout meeting and discuss in person. How about Tuesday, Oct 25th between 10 and 12 a.m. CET?

@draeger Actually, @Saurabh3012 and I study in the same institute, so I'll just have a talk with him and let you know.

Sounds good!

question: will this interface live separately from ZBIT? I will we continue developing on that?
seems like overkill to have 2 separate web-based conversion interfaces

also, thanks for your interest @Saurabh3012! It's great to have new collaborators!


Check huginn variables/values?

Hi,
I'm sending coordinates to huginn via MQTT. There it is handed over to a "Commander Agent" that does the following:
{   "action": "configure",   "configure_options": {     "location": "{{message.lat}}, {{message.lon}}"   } }
So I think this should tell huginn to store the coordinates in a way that other agents (like the weather agent in this case) could access it as well. But I am under the impression it's not working as I intended.
Is there a way to check the "location status" of huginn?
(I would not mind creating another agent that simply grabs and returns values from somewhere, I simply don't know how to do that.)

Hi!
The CommanderAgent needs to be connected to another "Control target" Agent. When the Commander receives the Event from MQTT it will then modify the options of the Agent it commands.

You're right, this actually works a lot better. 👍 :D


Cleanup outdated jaxlib TODOs in jax/_src/lax/fft.py

I believe we can remove this since _minimum_jaxlib_version = (0, 1, 55)!

Thanks! I've been meaning to grep through and remove a few of these...


Fix barrier placement in latex circuit drawer

Summary
After the migration to using the standardized bit order and using the
dag/circuit instead of json output from the transpiler the latex circuit
drawer has been drawing barriers incorrectly. The code from before the
migration was never updated and assumed that the bit order was always
increasing from the top down. So it would just find the LSB on the first
register from the barrier and figure out how long the barrier was and
use that (reverse bits worked because the internal data structures
inversed everything). However post-migration this no longer holds true
since the MSB by default is at the top, and the first register is at the
bottom. So instead of drawing a barrier on the proper bits it would draw
down from the last bit covered by the barrier (reverse bits worked
correctly because it had the expected input). This commit fixes this
problem by changing the barrier handling to identify the top most bit
covered by the barrier and use that as the starting point. It does this
by iterating over the qubits and finding the position of the bit in the
output instead of making assumptions about the order.
Details and comments

I found this by trying to regenerate the images in https://github.com/Qiskit/qiskit-tutorial/blob/master/qiskit/terra/visualizing_a_quantum_circuit.ipynb to reflect the proper order. But it was generating:

After this fix it's generating:

Does this fix #1124 as well?

@ajavadia not generally, but it does specifically for the example you put in the description of #1124, I think mainly because we reordered the bits. But, there are other potential circuits still exhibiting the same underlying problem as you reported there. For example:
from qiskit import QuantumRegister, ClassicalRegister, QuantumCircuit
from qiskit.tools.visualization import circuit_drawer
q = QuantumRegister(2)
c = ClassicalRegister(2)
qc = QuantumCircuit(q, c)
qc.h(q[0])
qc.barrier()
qc.h(q[1])
qc.barrier()
qc.measure(q, c)
circuit_drawer(qc, output='latex')

returns:

Instead of the expected:


How to use Deploy Previews with this?

Can't use the web interface to setup Deploy Previews because the repo belongs to a Github Org that has restricted 3rd party app access, and the owners are all in the IT department and it would be a long wait to get them to approve
Tried netlify-cli but web hooks only manage to trigger production builds and not Deploy Previews (pushes and PRs on other branches trigger a production deployment build)
Tried this, but it also only deploys to the production url
It's cool that I can deploy without associating with a git repo, assumed it'd be possible to pass a flag to tell it this is a preview deploy, not implemented yet or did I miss it?
edit: looking at the api docs, it looks like deploy previews aren't exposed via api?

So if I understand this correctly you're just doing deploys manually? Running netlifyctl deploy or the likes right?
Deploy previews are enabled by default, but they require that you have integrated with our CI system. It uses git to trigger the previews for PRs and branches.

Ah I see
Any way to integrate with your CI system without being an Github Org Owner?
I have admin access to the repo and can configure webhooks and deploy keys

If you write into support they can help you more.


Use _get_hourly_report for Hourly Solar and Hourly Wind Reports

Uses _get_hourly_report for getting hourly solar and wind reports

This resolves an issue where the get_hourly_wind_report and get_hourly_solar_report methods do not return the expected publish times.
from gridstatus.ercot import Ercot
from pandas import Timestamp

date = (
    Timestamp("2024-06-16 10:00:00-05:00"),
    Timestamp("2024-06-16 13:00:00-05:00"),
)

iso = Ercot()

df_solar = iso.get_hourly_solar_report(date, verbose=True)[
    [
        "Publish Time",
        "Interval Start",
    ]
]
print(df_solar["Publish Time"].unique())

Old
['2024-06-16 09:55:13-05:00',
 '2024-06-16 10:55:11-05:00',
 '2024-06-16 11:55:11-05:00']

This is unexpected because the first publish time occurs before date[0] and it misses the publish time at 12:55.
New
['2024-06-16 10:55:11-05:00',
 '2024-06-16 11:55:11-05:00',
 '2024-06-16 12:55:13-05:00']

This is as expected because it includes the three publish times between date[0] and date[1].


Discuss Software Design and Architecture

We have to discuss our Software Architecture and the Frameworks we want to use to implement the Software.

If you find the time you can have a look at the following things

clap: for parsing the cli arguments
tokio: as asynchronous runtime
reqwest: for the http client
axum and actix_web: as a framework for the file server
serde: for the json parsing
I'll take a look at a few more crates for encryption and then post them here too.

I was thinking of shuttle.rs for publishing the server. This can be easily integrated directly into the server and is free for 3 projects.

Here are a few comments on the architecture of our end product.
I was thinking that the way it will work in the end is that the two transferring PCs will connect via the server, but the actual upload will only take place between the two PCs and one will take on the role of the server and one the role of the client. The IP addresses are exchanged via the server and the encryption password is negotiated.
I'll try to create a picture of the process later, that will probably explain it a bit better.

Finally, I would like to keep track of which technologies and crates we have chosen.
The design and architecture corresponds to a client-server system.

We will use Axum for the web server components.
The client components will be implemented with Reqwest.
The CLI arguments will be processed with Clap
Reading the information from the ".env" files is done with dotenv
Tracing and logging is done with tracing and tricing-subscriber

The following points still need to be clarified:

reading the configuration
Encryption of files
Negotiation of the password between the clients.

If I have forgotten something, please feel free to add it?
I am open to suggestions.

In conclusion, we can state the following.

Websockets are used as the underlying technology
Axum is used as the web framework
Parts of the web server are written directly with tokio-tungstenite.
The clients are written with tokio-tungstenite
Data packets are defined as ProtoBuf packets.
Cli parsing is done with Clap
reading the config is done with confy
The GUI is built with Dioxus.

Translated with DeepL.com (free version)


Create varnish redirect for Old School Impact

We are closing the campaign collection for Old School Impact. However, because collections cannot be closed, we have to do a hack where we create a dummy campaign for the collection and close that.
Here are the action steps for "closing" Old School Impact. Once those are completed, we'll then need to enable a varnish redirect from from /us/volunteer/old-school-impact to /us/campaigns/old-school-impact. This will need to take place on January 1st.
cc: @sheyd @blisteringherb

Collection: https://www.dosomething.org/us/volunteer/old-school-impact (now unpublished)
Campaign: https://www.dosomething.org/us/campaigns/old-school-impact (now published in closed state)

Collection: https://www.dosomething.org/us/volunteer/old-school-impact (now unpublished)
Campaign: https://www.dosomething.org/us/campaigns/old-school-impact (now published in closed state)

I've set up that redirect in Fastly and activated it. It's working as expected.

I've set up that redirect in Fastly and activated it. It's working as expected.


deps: track dependencies

We need to use a tool like dependabot to track upgrades to dependencies, including optimism upstream, celestia-node and go-cnc.

rollkit/local-celestia-devnet


snappy issue

sorry I am new to coding but im trying to use pycharm and I put pip install nfl_data_py and this error pops up
ERROR: Failed building wheel for python-snappy
Running setup.py clean for python-snappy
Failed to build python-snappy
ERROR: Could not build wheels for python-snappy, which is required to install pyproject.toml-based projects

I'm also having the same error.

@RGAlexander216 please see the answer here https://github.com/cooperdff/nfl_data_py/issues/77#issuecomment-1830397207

That fixed it, appreciate it.


Is it possible to add ability run Gradle tasks matching specified task paths within wildcards?

Hello all,

Very often I have to create some specific tasks to group my other subproject tasks by some parent level gradle multi-module project tasks tree context just to achieve possibility use single task to run some groups of similar tasks in other subprojects. So as more subprojects I have and as more different areas I need to cover - gradle build-files growing more and ugly..
Expected Behavior

What I need is possibility to run my tasks like so:
./gradlew :apps:*web*app:test

or it will be even better, if I could do something like so:
./gradlew :apps:**:company-*web*:*tests

so by using first example I'm would like to execute test task, but only for my webapp submodules (matching, for example, project names: 'company-public-web-app' and 'company-internal-test-web-app') which are located inside apps submodule
Current Behavior

I this case as an ugly workaround at the moment I'm creating for each of my web app task named webtests which is simply task of type Test
apps/build.gradle:
subprojects { sp ->

  if (sp.absolutePath is: contains /apps/, following by *web*, and endsWith app) {
    tasks.create(name: 'webtests', type: Test)
  }

  if (sp.absolutePath is matches to other ugly condition)
    tasks.create(name: 'someOtherGroupTaskName', ...)

  //...
}

Then I can use it as task name from root of my multi-project build:
./gradlew webtests

but it's obviously no so good as it might be...

Regards,
Maksim

I think this would be better as a Gradle Forum Post or as a Stack Overflow Question.
The issue tracker really isn't really the place for support questions.

The issue tracker really isn't really the place for support questions.

@JLLeitschuh Does a missing feature count as an issue?
I often face the similar problem: I need to run several tasks (e.g. clean check) in multiple subprojects of a project.
I cannot use -p projectDir clean check because there's no such project that contains all needed subprojects and no unneded ones and -p doesn't support multiple arguments.
I have to list all tasks fully qualified, like
:subproject1:clean subproject2:clean subproject1:check subproject2:check

Hi, @JLLeitschuh but it's not an issues with Gradle, its something which is missing and it would be nice to have.

I think this issue can be closed here. I have asked similar question on Gradle Discuss Forum

@daggerok Have you had any success with that forum question?
Perhaps it's better to reopen this issue, since it has been getting no attention there.

Hello, @ilya-g
No, I haven't been succeed with that...

Regards, Maksim

In case there are more people wondering, this is how I solved the issue:
tasks.register("groupTask") {
    val taskRegex = Regex("""RegExThatMatchesMyTasks""")
    dependsOn(*tasks.filter { task ->
        task.name.matches(taskRegex)
    }.toTypedArray())
    doLast{
        println("Tests passed")
    }
}

And then call ./gradlew groupTask.
Enjoy

thanks @vitorhugods,
but question was more about gradle functionality ability to understand task name by some pattern instead of implementing it manually..
for instance, if i have tasks paths like
./gradle :apps:web-v1:build  :apps:web-v2:build  :apps:rest-v1:build  :apps:rest-v2:build

I can do something like this to simplify it little bit:
./gradle :a:w-v1:build  :a:w-v2:build  :a:r-v1:build  :a:r-v2:build

but it would be awesome if we were able to simplify it even more without any additional coding in our build scripts by using regex pattern matches or at least globs matching style:
# like so
./gradlew :*:*-v?:build
# or like so:
./gradlew :a:*-v1:build :a:*-v2:build

ok, @ilya-g
I will re-open it if you need it

Regards, Maksim

Please keep this open. It's still significantly inconvenient to use Gradle command line interface to run some task in several subprojects. See https://github.com/gradle/gradle/issues/5482#issuecomment-392237399 for details.

Please keep this open. It's still significantly inconvenient to use Gradle command line interface to run some task in several subprojects. See https://github.com/gradle/gradle/issues/5482#issuecomment-392237399 for details.

Any progress on this one? :)

+1 would love this ability.

https://docs.gradle.org/current/userguide/dependency_management.html

Seems Gradle has selected support for wildcards, but not where we want it 😠


Export SID property from user/login

In our Terraform codebase, we’re trying to create a vulnerability assessment baseline resource (see Terraform doc):
resource "azurerm_mssql_database_vulnerability_assessment_rule_baseline" "vulnerability-assessment-baseline-va2130" {
  server_vulnerability_assessment_id = "<subscriptionid>"
  database_name                      = "<databasename>"
  rule_id                            = "VA2130"
  baseline_name                      = "default"
  baseline_result {
    result = [
      "<username>","<SID>"
    ]
  }
}

We can get the username attribute as an output variable from the ‘mssql_user’ resource (i.e. mssql_user.databaseuser.username) and supply it to the vulnerability assessment, but not the SID.
│ Error: Unsupported attribute
│
│   on ProjectLogin.tf line 142, in resource "azurerm_mssql_database_vulnerability_assessment_rule_baseline" "vulnerability assessment-baseline-va2130":
│  142:       mssql_user.databaseuser.username,mssql_user.databaseuser.sid
│
│ This object has no argument, nested block, or exported attribute named "sid". Did you mean "id"?

this would be really good - would be great to see this asap


Throw error on unknown identifiers in closures

Currently if a lambda uses an identifier that doesn't exist in its env, it'll only throw an error when called. This is even though it's env doesn't change. It'd be a nicer experience to throw the error sooner (when the lambda is defined).

I'm now wondering whether this is really an improvement. A pattern that is currently possible, but wouldn't be with this, is to have functions or evals that work differently in pure and impure contexts. E.g., the current :test macro.
Perhaps better is to just issue a warning.


ntp.leapseconds file expired

Cookbook version
3.6.2
Chef-client version
14.11.21
Platform Details
RHEL 7.6
Scenario:
ntp.leapseconds file expired on 28 June 2019
Steps to Reproduce:
Just converge with this cookbook
Expected Result:
A non-expired ntp.leapseconds file.  A version that expires 28 Dec 2019 is available here.  Would it be prudent to just change the cookbook_file resource that lays down the leap seconds file to just be a remote_file that points to https://www.ietf.org/timezones/data/leap-seconds.list???  We wouldn't have to update things every 6 months this way.
Actual Result:
ntp.leapseconds file expired on 28 June 2019

We don't use the remote file here since that would take down the ietf.org server with requests from chef clients. Unfortunately we're sort of stuck in a world where we have to update files. I've updated things to the latest.


Updates a

made changes to typeDefs and resolvers so that server runs on start

Still working out typeDefs and resolvers


Can not send language_override attribute

I am trying to send language_override attribute like this:
<%= intercom_script_tag(language_override: I18n.locale.to_s) %>

This generates the following script:
<script id="IntercomSettingsScriptTag">
  window.intercomSettings = {"language_override":"ru","app_id":"my_app_id"};
</script>

But it does not work. The attribute does not appear in my intercom panel.

Hi @chumakoff,
Were you seeing any errors here? I just wanted to check if you were still having an issue here. Were you able to get this working with any language override? If you are still having issues with this let me know and any other steps you took to try and resolve it.  Were you able to set this up by hard-coding in the over-ride as described here here?

same issue, language_override not working
//<![CDATA[
window.intercomSettings = {"language_override":"es","app_id":"bfec1qnx","widget":{"activator":".support-link"},"installation_type":"rails"};(function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/bfec1qni';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(document.readyState==='complete'){l();}else if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}};})()
//]]>


Fug fix: 'lldb, lldb-java library now found'.

…path' added at launch.properties and thus loaded in Ghidra JVM is not used to start a child process in Agent Thread.\nFix: use 'additional.java.library.path' instead of 'java.library.path' since the latter will overwrite default java library path and can cause problems, and then append 'additional.java.library.path' to 'java.library.path' when starting child process.

Tested in MacOS.
Issue: lldb and lldb-java library can't be found in a child process started in AgentThread.
analysis: As settled in the script for MacOS provided by @cyberkaida, Ghidra set "-Djava.library.path" for lldb and lldb-java. But this JVM setting is not passed to child process. Thus causing library not found Exception.
Solution: As overriding 'java.library.path' can cause problems (for example, if this patch is accepted, users who place lldb, lldb-java in there default library path as suggested in related trouble shooting, can't use lldb debugger.), I suggest 'additional.java.library.path' for additional libraries and Add it to java.library.path when starting child process.
Further development: change launch script and launch process so that the 'additional.java.library.path' used in main thread not only Agent Thread

@Concepty I think I understand the motivation for your change, but your changes break our current default case for lldb, i.e. running IN-VM.  Do you have a specific use case that requires the GADP solution run locally?

I'm quite new to reverse engineering. And there is no specific motive 😀
In that case, I will try to find another way to solve lldb GADP issue without breaking inVM.


Update 3rd party CI accounts

Once we have the email, we need to create/update the 3rd party CI accounts:

[x] AppVeyor
[ ] CodeCov
[ ] CodeFactor

Duplicate issue fixed in Chasm


MBL-1787: Modified copy text + translations

📲 What

Modified copy text + translations

👀 See

|  |  |
📋 QA

On Checkout Screen for example you will see the new copy.

Story 📖
MBL-1787

:warning: Please install the  to ensure uploads and comments are reliably processed by Codecov.
Codecov Report
Attention: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Project coverage is 68.42%. Comparing base (85d417e) to head (2d35a31).

Files with missing lines
Patch %
Lines

...i/activities/compose/projectpage/CheckoutScreen.kt
0.00%
1 Missing :warning:

...ui/views/compose/checkout/PledgeItemizedDetails.kt
0.00%
1 Missing :warning:

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #2160   +/-   ##
=========================================
  Coverage     68.42%   68.42%
  Complexity     2224     2224
=========================================
  Files           365      365
  Lines         22769    22769
  Branches       3262     3262
=========================================
  Hits          15579    15579
  Misses         5430     5430
  Partials       1760     1760

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Download links are blocked by Chrome

Hi
download links on lakeys.net are blocked by Chrome as unsecure. My guess it is because they are http:// and the web is on https://.
thx

This is now fixed, thanks for reporting.

This is now fixed, thanks for reporting.


Improve UTXO tracking for 2.x

See neo-project/neo-modules#308, it's simpler and more fair. It doesn't emulate from/to (as it technically can't do that in general case), just inputs being sent and outputs being received.

Fixed by #1288.


Nokogiri::XML::XPath::SyntaxError: Undefined namespace prefix: //soapenv:Body/*

ruby 2.0.0p576
vim = RbVmomi::VIM.connect host: '****', user: '***', password: '***', ssl: false

Nokogiri::XML::XPath::SyntaxError: Undefined namespace prefix: //soapenv:Body/*
from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-<IP_ADDRESS>/lib/nokogiri/xml/searchable.rb:165:in evaluate' 	from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-<IP_ADDRESS>/lib/nokogiri/xml/searchable.rb:165:in block in xpath'
from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-<IP_ADDRESS>/lib/nokogiri/xml/searchable.rb:156:in map' 	from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/nokogiri-<IP_ADDRESS>/lib/nokogiri/xml/searchable.rb:156:in xpath'
from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.2/lib/rbvmomi/trivial_soap.rb:112:in request' 	from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.2/lib/rbvmomi/connection.rb:87:in call'
from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.2/lib/rbvmomi/basic_types.rb:205:in _call' 	from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.2/lib/rbvmomi/basic_types.rb:74:in block (2 levels) in init'
from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.2/lib/rbvmomi/vim.rb:68:in serviceContent' 	from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.2/lib/rbvmomi/vim.rb:38:in block in connect'
from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.2/lib/rbvmomi/vim.rb:36:in tap' 	from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/lib/ruby/gems/2.0.0/gems/rbvmomi-1.8.2/lib/rbvmomi/vim.rb:36:in connect'
from (irb):13
from /Users/losingle/.rvm/rubies/ruby-2.0.0-p576/bin/irb:12:in `'

Same issue, also using ssl: false

@losingle after stepping into Nokogiri and looking at the output that triggers the error, looks like it tries to parse a redirect...
[13] pry(#<Nokogiri::HTML::Document>)> document
=> #(Document:0x3fdeb04f8124 {
  name = "document",
  children = [ #(DTD:0x3fdeaf7263ac { name = "html" }), #(Element:0x3fdeb04f8034 { name = "html", children = [ #(Element:0x3fdeaf7573a8 { name = "body", children = [ #(Element:0x3fdeaf76e648 { name = "h1", children = [ #(Text "301 Moved Permanently")] })] })] })]
  })

Note the  children = [ #(Text "301 Moved Permanently")]
However, when I updated the host to the following: RbVmomi::VIM.connect host: "https://vsphere" I ended up getting a different error where Ruby can't connect to that address.
SocketError: getaddrinfo: nodename nor servname provided, or not known
And then when I enter the host in correctly, but append port: 443 I get a different error.
Errno::ECONNRESET: Connection reset by peer

@losingle Figured it out for my situation. For whatever release, I thought the ssl: false option was to disable ssl verification. So passing that option caused vsphere to get called over port 80, and then a redirect response was coming back causing the Nokogiri parse error.
What actually helped the situation was just to use the insecure: true option, and was then able to connect. Hopefully you're experiencing this in the same way, and changing it to what I have below helps out.
RbVmomi::VIM.connect host: 'host.com', user: 'username', password: 'pass', insecure: true

@superscott
RbVmomi::VIM.connect host: 'host.com', user: 'username', password: 'pass', insecure: true

It is working

八(＾□＾*)
Can probably close this issue now, me thinks.

OK


Bug in EMAIL_REGEX case sensitvity

It seems that the regex used in angular for validating emails, only allows lowercase characters.
/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i
from the latest commit.
Although this is consistent with Chromium's implementation, the HTML5 spec states that uppercase characters should be allowed.

The i at the end means that the match is case-insensitive, so uppercase letters are accepted as well.

Wow. Turns out it was a bug with the library I was using, and I totally didn't see the i at the end. Thanks!


Cocaine -> Terrapin

The gem was renamed.
https://github.com/thoughtbot/cocaine/blob/v0.6.0/README.md#upgrading-to-terrapin

@jonbuda  Any chance you could merge this?

Thank  you! :grinning: :hearts:

@jonbuda Hi!
Do you have an plan to release the new version gem including this patch?
I'm looking forward to use this gem without deprecation warning :) Thank you!


Time Slider

Implement time slider from #4

Or maybe something similar to this building history map of the Netherlands: http://code.waag.org/buildings/

That map is awesome!


add_member raises BadMemberError on member with exactly one of name and barcode

add_member should raise socman.BadMemberError if passed a member which is None or of which both the name and barcode are None. However, at present it also raises this is either of the name or barcode (but not both) is None.

Fixed in 3c616499f571914d7ee426f0111acb2b7206ced0.


DMASK RCNN2 pretrained model not accessible

Howdy!
The link for Dmask-RCNN2 pretrained model given under README file for adapt-rcnn is not accessible. Could you please provide a new link?
Thanks

Removed that link since it was broken. commit: c76346584f8d76502aa854ad9d7e06135ca77bcf


⚠ Slack has degraded performance

In 3acf6f2, Slack (https://status.slack.com/api/v2.0.0/current) experienced degraded performance:

HTTP code: 200
Response time: 39 ms

Resolved: Slack performance has improved in 1c3f8db after 1 hour, 29 minutes.


multi-GPU training too slow when L2 regularizer enabled

System information

Have I written custom code (as opposed to using a stock example script provided in TensorFlow):
Yes
OS Platform and Distribution (e.g., Linux Ubuntu 16.04):
Windows 10 home edition
TensorFlow installed from (source or binary):
binary
TensorFlow version (use command below):
1.3.0
Python version:
3.5.3
Bazel version (if compiling from source):
CUDA/cuDNN version:
Cuda 8.0 / cudnn 6.0
GPU model and memory:
Nvidia 1080 GTX 8GB x 2
Exact command to reproduce:

Describe the problem
I try to train a face recognition classifier using inception-resnet-v1 model with 2 GPUs. On single GPU the training proceeds just fine, with a processing capacity around 220 images/sec, but when I train with 2 GPUs I only observe marginal benefit (capacity increases to around 280 images/sec). After some profiling I found out that the poor performance was somehow due to the introduced L2 regularizer. When the regularizer is enabled, the computation of the gradient becomes unexpectedly slow, resulting in the slowdown of the entire training cycle. As a comparison, if the regularizer is disabled, I could obtain a processing capacity around 350 images/sec, which although not perfect, is more or less satisfactory. The boost in the performance in the latter scenario cannot be attributed to the reduced computation complexity from the removal of the regularizer. This is evidenced by a reference experiment with exactly the same parameter except for on a single GPU, see below.
I cannot figure out an explanation for this. It took me several days to narrow down the problem to, seemingly,  the introduction of L2 regularizer and the computation of gradient.
In my program I used standard tf.slim layers together with a downloaded inception-resnet-v1 model script.  The main part of the code is the following:
def main(args):
    num_gpus = args.num_gpus
    batch_size_per_gpu = args.batch_size_per_gpu
    batch_size = batch_size_per_gpu * num_gpus

    num_classes = 10000
    synthetic_images = 0.01 * np.random.randn(batch_size, 160, 160, 3)
    synthetic_labels = np.random.randint(0, 10000, batch_size)

    with tf.Graph().as_default(), tf.device('/cpu:0'):
        # the synthetic array is converted to a tf.Variable
        images = tf.Variable(tf.convert_to_tensor(synthetic_images, dtype=tf.float32), trainable=False)
        labels = tf.Variable(tf.convert_to_tensor(synthetic_labels, dtype=tf.int32), trainable=False)

        image_batches = tf.split(images, num_or_size_splits=num_gpus)
        label_batches = tf.split(labels, num_or_size_splits=num_gpus)

        total_loss = [None] * num_gpus
        grads = [None] * num_gpus

        opt = tf.train.RMSPropOptimizer(0.01, epsilon=0.01)

        reuse_variables = False
        for i in range(num_gpus):
            with tf.device("/gpu:{0}".format(i)), tf.name_scope("tower{0}".format(i)) as scope:
                with slim.arg_scope([slim.variable], device='/cpu:0'):
                    print("Building graph for tower{0}...".format(i))

                    total_loss[i] = tower_loss(images=image_batches[i],
                                               labels=label_batches[i],
                                               num_classes=num_classes,
                                               keep_probability=1,
                                               phase_train=True,
                                               embedding_size=512,
                                               weight_decay=args.weight_decay,
                                               reuse=reuse_variables)

                    grads[i] = opt.compute_gradients(total_loss[i])
                    reuse_variables = True

        # then open a session and calculate the tower gradients
        with tf.Session() as sess:
            sess.run(init)
            print("Warming up...")
            for i in range(10):
                _ = sess.run(grads)

            print("Benchmarking...")
            for i in range(num_iterations):
                _ = sess.run(grads)

where tower_loss() is defined as follows:
def tower_loss(images, labels, num_classes, keep_probability, phase_train, embedding_size=128, weight_decay=0.0,
               reuse=None):
    batch_norm_params = {
        'decay': 0.995,
        'epsilon': 0.001,
        'fused': True
    }

    with slim.arg_scope([slim.conv2d, slim.fully_connected],
                        weights_initializer=tf.truncated_normal_initializer(stddev=0.1),
                        weights_regularizer=slim.l2_regularizer(weight_decay),
                        normalizer_fn=slim.batch_norm,
                        normalizer_params=batch_norm_params
                        ):
        embeddings = inception_resnet_v1(images, is_training=phase_train,
                                         dropout_keep_prob=keep_probability,
                                         bottleneck_layer_size=embedding_size,
                                         reuse=reuse)

    logits = slim.fully_connected(embeddings,
                                  num_classes,
                                  activation_fn=None,
                                  reuse=reuse,
                                  weights_regularizer=slim.l2_regularizer(weight_decay),
                                  scope="fc")
    entropy_loss = tf.reduce_mean(tf.nn.sparse_softmax_cross_entropy_with_logits(logits=logits, labels=labels))
    if weight_decay == 0:
        print("L2 regularizer disabled.")
        return entropy_loss
    else:
        print("Regularization losses added to total loss.")
        return tf.add_n([entropy_loss] + tf.get_collection(tf.GraphKeys.REGULARIZATION_LOSSES))

The whole script (contains codes to generate synthetic data) can be found here. The inception-resnet-v1 model script can be found here.
To reproduce the problem, just run
python issue.py --num_gpus 2  --weight_decay 0
The output would be something like
Duration: 7.1 secs; 358.1 images/sec or 0.71 sec/batch
Duration: 7.5 secs; 343.1 images/sec or 0.75 sec/batch
Duration: 7.2 secs; 354.9 images/sec or 0.72 sec/batch
Duration: 7.1 secs; 358.8 images/sec or 0.71 sec/batch
Duration: 7.2 secs; 354.9 images/sec or 0.72 sec/batch
Total duration: 36.2sec        Performance: 353.9 images/sec

In contrast, with the presence of L2 regularizer, running
python issue.py --num_gpus 2  --weight_decay 0.0001
one would obtain
Duration: 9.0 secs; 284.9 images/sec or 0.90 sec/batch
Duration: 9.1 secs; 279.9 images/sec or 0.91 sec/batch
Duration: 8.7 secs; 292.8 images/sec or 0.87 sec/batch
Duration: 9.3 secs; 276.7 images/sec or 0.93 sec/batch
Duration: 8.5 secs; 302.4 images/sec or 0.85 sec/batch
Total duration: 44.6 sec        Performance: 287.0 images/sec

As a reference, with single GPU, the difference of processing capacity between with and without regularizer is negligeable, at least in this demo. To check it, run
python issue.py --num_gpus 1  --weight_decay 0
gives
Duration: 5.6 secs; 228.1 images/sec or 0.56 sec/batch
Duration: 5.6 secs; 228.7 images/sec or 0.56 sec/batch
Duration: 5.7 secs; 225.8 images/sec or 0.57 sec/batch
Duration: 5.6 secs; 230.3 images/sec or 0.56 sec/batch
Duration: 5.6 secs; 226.8 images/sec or 0.56 sec/batch
Total duration: 28.1 sec        Performance: 227.9 images/sec

and
python issue.py --num_gpus 1  --weight_decay 0.0001
gives
Duration: 5.6 secs; 227.5 images/sec or 0.56 sec/batch
Duration: 5.7 secs; 226.3 images/sec or 0.57 sec/batch
Duration: 5.6 secs; 229.4 images/sec or 0.56 sec/batch
Duration: 5.6 secs; 227.5 images/sec or 0.56 sec/batch
Duration: 5.7 secs; 224.3 images/sec or 0.57 sec/batch
Total duration: 28.2 sec        Performance: 227.0 images/sec

I think I have found the problem. To make sure that the Variables are stored in CPU, we need to use
with slim.arg_scope([slim.model_variable, slim.variable], device='/cpu:0'):
instead of
with slim.arg_scope([slim.variable], device='/cpu:0'):
As a matter of fact, although slim.model_variable eventually calls slim.variable and variables in collection sim.get_model_variables is a subset of those in collection sim.get_variables, code
with slim.arg_scope([slim.variable], device='/cpu:0'): does not set default device to cpu for variabels created by sim.get_model_variables.

@TianwenWei
This is seems really strange, since as I'm looking into the slim implementations, it seems the regular weights and bias are created with slim.model_variable, and regularizer are slim.variable
Though I'm 100% sure, I think all variables are created with their closest with device scope, which is individual gpu (and reuseable variables are pinned memory between each gpus and have a sync copy in the cpu?), therefore all operations are in theory performed within gpu. But your line is forcing these variables (thus operations) to happen in cpu.
In short, I think without the line
with slim.arg_scope([slim.model_variable, slim.variable], device='/cpu:0'):
your code should be more tf-correect and faster
But I'm not 100% sure, and really hope someone who knows these graph operations better can confirm on this.


How to generate arm parameter for trigger schedule

Hello. I'm trying to generate parameters for a scheduled trigger time. Issue is that the minutes and hours are directly arrays so I can't seem to find the syntax to get them outputed as parameters.
"typeProperties": {
"recurrence": {
"frequency": "Day",
"interval": 1,
"startTime": "2018-09-18T12:33:00Z",
"timeZone": "UTC",
"schedule": {
"minutes": [
5  <-- I'd like to parameterize this
],
"hours": [
0 <---- and this
]
}
}
}

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

ID: 1e22e4d6-366f-fbf8-e141-8905ca7ab7ae
Version Independent ID: 5be2acf2-66e7-cadf-6666-5a85a65b9771
Content: Continuous integration and delivery in Azure Data Factory
Content Source: articles/data-factory/continuous-integration-deployment.md
Service: data-factory
GitHub Login: @douglaslMS
Microsoft Alias: douglasl

@marnheus You may refer MSDN thread which addressing similar issue.
Hope this helps.

@marnheus We will now proceed to close this thread. If there are further questions regarding this matter, please comment and we will gladly continue the discussion.


bugfix MPS.gauge_total_charge

This is a short bugfix for gauging the total charge of a MPS.
The addressed bug mainly introduced errors when trying to calculate overlaps of two MPS with different _outer_virtual_legs (e.g. after applying a spatial inversion to one MPS with total charge != 0).
The following code is a minimal example to reproduce the bug.
from tenpy.networks.mps import MPS
from tenpy.networks.site import SpinSite

p_state = 1*['up'] + 10*[1] + 1*['up']
sites = [SpinSite(S=1, conserve='Sz')]*len(p_state)
psi = MPS.from_product_state(sites, p_state)

other = psi.copy()
psi.spatial_inversion()
# print(f"Before overlap: {psi._outer_virtual_legs()=}")
overlap = psi.overlap(other)
# print(f"After overlap: {psi._outer_virtual_legs()=}")
print(f"Successfully calculated the overlap: {overlap}")

# Note that with the bugfix the virtual legs of psi are getting changed when psi.overlap is called.

Additional question: Should the docstring in MPS.overlap mention, that the function might change the input MPS (or rather its virtual legs)? Or should it make a copy instead of silently changing the virtual leg charges?

Thanks a lot for the fix and the suggestions I've made a small follow-up commit which

adds a comment in gauge_total_charge that it's modifying the MPS in place, and
makes a shallow copy in MPS._gauge_compatible_vL_vR() before calling gauge_compatible_charge.


focus search box on search toggle

this feature isn't needed, as the user can be interested in ordering only


Surrealist 1.10.1 - App crashes often and shows a black or white screen,

Describe the bug
App crashes often and shows a black or white screen,
To Reproduce
Steps to reproduce the behavior:
while working, the surrealist app crashed often, but I didn't get the correct situation.

Expected behavior
The app should not be crashed.
Environment (you can view the current version under Settings):

Operating System [e.g. Windows]: 11
Surrealist Version [e.g. 1.2.0]: 1.10.1
SurrealDB Version [execute "surreal version"]: 1.0.0

am geting the white screen. any solution please

kindly resolve this, frequently black screen comes and the app hangs.

This issue has been traced to a bug in SurrealDB so I can't make a fix right now myself. It would help tremendously if you can send your config with any sensitive information such as passwords stripped out. It might help us find a solution quicker.
You can find the config file here

Linux: $XDG_CONFIG_HOME or $HOME/.config/surrealist.json
MacOS: $HOME/Library/Application Support/surrealist.json
Windows: %AppData%\surrealist.json

Okay, now I have reinstalled my system, it will come after a few weeks of usage, so when it comes, I will update this issue.

Bro, our company discontinued using surrealdb due to its low performance, indexing issues, and many related functionality issues, we moved to Postgres, and after some years(surrealdb fixed its performance), we will give back.
Until then, continue the journey...


OAK-10542 : test reproducing ignorance of split deleted properties

merged without review to move ahead with sibling https://github.com/apache/jackrabbit-oak/pull/1198


Cairo Settings: Dragging icons from collapsible to pinned (and vice versa) has unpredictable results

Describe the bug
In the Cairo Settings,I have "Enable notification area" checked. I wanted to drag some icons from the collapsible region to the pinned region. Whenever I would click and drag and icon, either the icon would fail to move at all, or the wrong icon would be moved. It doesn't always happen.
Frequently I was also not allowed to drop the icon in the other area at all (the cursor would become a circle with slash symbol).
Steps to reproduce

Open Cairo Settings -> Menu Bar. Ensure "Enable notification area" is checked.
Click on one of the icons in the collapsible area and drag it to the pinned area (or vice versa).

Expected behavior
The icon should disappear from the region it was dragged from, and appear in the region it was dragged to. It should be possible to drop the icon anywhere in the area I want it to appear. Other icons that I wasn't interacting with should not move.
System information:

Windows version: Windows 10 21H1, OS Build 19043.1526
Cairo version: <IP_ADDRESS>607
32-bit or 64-bit: 64-bit
In Cairo Settings > Advanced, is Cairo set as shell?: No

Additional context
I did move some system icons (network and sound) back and forth in my efforts. I'm not sure if this was part of the problem.

Oops, this definitely has regressed. Thanks for the report!

Could you please test this build (GitHub login required) and report back if the issue is resolved?

@dremin I'm still seeing the issue. Dragging from pinned to collapsible seems more reliable, although it seems hard to "grab" the icons. Dragging from collapsible to pinned is still broken. I'm not sure if it's coincidental, but it seems like if I grab the icon and drag it over one of its neighbors, the neighbor is the one that ends up in the pinned box when I release the mouse button.

@wolfteeth Thanks for testing! Hm, it sounds like you are having some different issues that I couldn't reproduce. A few questions:

Is your display setting set higher than 100% scaling?
Does your device support touch or pen input?
Would you be able to attach a short screen recording of the issue?

@wolfteeth To see if the pen tablet display is a contributing factor, when you have time could you please disconnect it, then reboot, and try to reproduce? That of course would not be a solution, but it could help narrow down the issue.
For recording I have used ShareX in the past with success.

@dremin I managed to record with the built in Xbox Game Bar tool. Dunno why it put a red line down the middle of the video but at least you can see what's going on there:
https://user-images.githubusercontent.com/1330625/156417576-9a7a57db-6f33-4e44-bf43-499b3c03be2e.mp4

Awesome, thanks!

There were some improvements that may have fixed this, are you still experiencing the issue with the latest release?


Update the documentation for token: AppPackageId

The latest sample of the PnP Provisioning Template (https://github.com/SharePoint/PnP-Provisioning-Schema/blob/master/Samples/ProvisioningSchema-2018-07-FullSample-01.xml) refers to the token "AppPackageId" for dynamically replacing the installed app guid in a template.
But the samples and documentation states, that we should use the name of the package with the extension (.sppkg) like this:
<pnp:App AppId="{AppPackageId:spfx-discuss-now.sppkg}" Action="Update" SyncMode="Asynchronously" />
That is not the case as the extension must be removed in the template. If not, the engine cannot find the App Package. See the changed xml element:
<pnp:App AppId="{AppPackageId:spfx-discuss-now}" Action="Update" SyncMode="Asynchronously" />
Is that expected behaviour? If so, we should properly update the samples and the documentation too.

Hi,
Thanks for your feedback. Yes, the value for the token has to be the "Package Name" and not the package file name. We will fix it in docs and samples.

I have made a PR with the changes (https://github.com/SharePoint/PnP-Provisioning-Schema/pull/428)


web3modal doesn't pop up on Coinbase Dapp Browser

Hi,
I've been able to get this to work on basically everything but dapp browsers. Many people who use Coinbase app don't see any modal when a button is connected. Are there any good work arounds to this? I've tried adjusting the CSS to no avail.

I was having the same issue just now and downgrading from version 1.9.6 to version 1.9.5 seems to have fixed it.

Thanks mark, that did fix it. Seems the latest update broke this feature.

With stable version 2.0.0 of Web3Modal now released, we are officially dropping support for version 1.x
Due to this this issue/pr was marked for closing. It is highly recommended to upgrade as 2.x will be receiving further updates that will enable functionality for some of our newer sdks like auth and push as well as support for WalletConnect v2 (See this post about WalletConnect v1 being deprecated https://medium.com/walletconnect/walletconnect-v1-0-sunset-notice-and-migration-schedule-8af9d3720d2e)
If you need to continue using Web3Modal 1.x and require this feature/fix implemented, we suggest adding it via forking V1 branch.

this is the first hit on google for web3modal no popup - if ur having this issue make sure you dont remove the infuraid key from provideroptions or web3modal doesnt fckin work
export const providerOptions = {
  walletconnect: {
    package: WalletConnect,
    options: {
      infuraId: "why is this required lmao"  //REQUIRED or no popup
    }
  }
};```


feat: Add abort early (fatal) option to refine (#1603)

Closes #1603
CustomErrorParams is not used anywhere else besides refine, so it should be fine to add the fatal field directly there. The object gets then passed to ctx.addIssue.

I like this a lot and will hopefully land it in 3.21. 3.20 is already feature locked but 3.21 will follow swiftly.

Thanks for this!  Really looking forward to this PR to clean up some superrefines.  Do you have an ETA on 3.21?

Any update on when we may see this merged? Or the underlying issue addressed in a different way?


Fix warnings

Changed the formatting of Breakpoint settings in SASS files as they were throwing back a warning during build. This warning and the ability to use variable settings is being depreciated in future releases, making this is a necessary fix.
A new build (8.5) has been generated and included.

This change is

@aeng, we still need this branch?

@kathryngo I dont think we still need this. Can remove it.


FormGroupTestBackground

When the document being edited has a test field set to true, the background of form groups is changed using theme.utils.testPaper

Sorry, I didn't get where this test field is coming from? Is that a convention/feature I am not aware of?

Hi @eric-burel, you are right, the test field is specific to my code so I am moving this change to my own codebase. Thanks!


ViewerJS UI not responsive

Hi,
In http://viewerjs.org/instructions/ you specify some small frame sizes but the UI isn't responsive and using for instance 420px large iframe, the pages and zoom options overlap.

Also, if the document filename is long, the text will go into two or more line, out the the header bounds.
Thanks!

Looking at the code, the easier way to fix this seems to move the ViewerJS button to the top as a small square icon with  "?" in it (for instance) and move the middle toolbar to the right.
For the document name problem, the viewer.css can be adjusted to (line 95):
#documentName {
    font-size: 14px;
    white-space: nowrap;
    margin-right: 100px; /* To be adjusted if more icons to show */
    overflow: hidden;
    text-overflow: ellipsis;
}

You can also remove the dual #documentName definition (line 87 and 95).

Just added a pull request for the documentName stuff #164

Looking at the code, the easier way to fix this seems to move the ViewerJS button to the top as a small square icon with "?" in it (for instance) and move the middle toolbar to the right.

+1

+1

👍


Add ability to restrict certain date selection

Added shouldAllowSelectionOfDay to delegate to control if a date is selectable or unavailable
Added colorForUnavaibleDay

Thank you. This is now merged (with a small change) in version 1.2.2.


x/pkgsite: importedby number and list don't agree

(Opening from a convo in Slack)
https://pkg.go.dev/modernc.org/sqlite?tab=importedby says Known importers: 16 but the number of items in the list may not agree.
@julieqiu suggested it might be a difference between these places:
https://github.com/golang/pkgsite/blob/c16d5e9c5f440307d9cc4ca393d3ced9f25dbc20/internal/postgres/details.go#L80
https://github.com/golang/pkgsite/blob/5732477f0a15fbf76e03ab057305865af7547a3e/internal/postgres/search.go#L623

It looks like there is a bug in that we filter out certain paths when computing the count, which leads to the discrepancy.

The fundamental reason for the discrepancy is that the importer count we use for search has a different purpose than the one displayed on the imported-by tab.
The count for search is used for ranking, so it is adjusted to produce a better ranking. In particular, it excludes importers that are not themselves in our set of search documents, such as internal packages (like github.com/frioux/leatherman/internal/notes) and modules whose import path differs from their go.mod file (like github.com/circonus-labs/circonus-unified-agent).
The imported-by tab shows the search count, leading to an obvious mismatch with the list of importers. However, if it displayed the actual number of importers in the list, then it there would still be a mismatch between that number and what you see in search.
Here are some fixes:

Drop the condition when counting importers for search. Search quality will be reduced, but by how much? We could figure that out.
Exclude the same importers on the imported-by tab. Not great if you're trying to track down users of a package.
Use the adjusted importers for search ranking, but display the unadjusted number.

In any case, I think we should go back to displaying the actual length of the list on the imported-by tab. At least the discrepancy with the search results won't be quite as obvious.

Re point 1 above, the differences between raw and adjusted importers can be significant. For an extreme example, k8s.io/apimachinery/pkg/types has about 46,000 importers, but only about 18,000 of those are in the search table, presumably because there are many clones of that module.
It's still not clear how much searching a particular term would be affected by the changes; that is much harder to quantify.

We now show both counts on the importers page.


Pods.xcodeproj is not found

I have added the library to my app and followed the installation instructions, but I can't find the Pods.xcodeproj. Everything else is there but this.
Has anyone had this issue?

Thanks @AdamLee321 for raising the issue.
Please find below screenshot of node_module folder looks like when I do a installation. Could you please share your project structure in order resolve the issue.

Thanks
</ Pranav >

Hi, thanks for your response on this issue.
I have attached what is in my folder after I install the library. If hope this is what you need to resolve my issue.

Thanks, Adam.

Hi: Do you have cocoapods install on your system?
Thanks
</ Pranav >

Yeah, I am currently investigating that route as My version of cocoapods is 1.6.1.beta.1, so I am upgrading to a stable version 1.6.1. And I will see if this fixes my problem.

Upgrade to 1.6.1 has not fixed the issue, do you know what version you are on?

@AdamLee321: Mine is 1.5.3. could you please try this once.
Thanks
</ Pranav >

Hello Pranav,
I have downgraded to version 1.5.3 and the Pods.xcodeproj has installed successfully.

I'm sure how you can go about fixing this issue. At least you are aware that newer version of cocoapods do not work with your library in its current state.
Not sure if it is something you should add to the readme for your library, but your library is fully compatible with wix/react-native-navigation, and seems to be the only one, except for wix's on library which is a nuisance to install.
Thanks for a nice simple library, and thanks for your help.

Thanks @AdamLee321 for sharing your findings.
I will definitely look into the cocoapods version issue.
Thanks
</ Pranav >

Hi All: I have pushed the release with the cocoapods installation issue.
Could you please install latest release and verify the same. Please let me know if you still face the same issue.
Thanks
</ Pranav >


[admin] merge to live

Docs Build status updates of commit 3b15d19:
:x: Validation status: errors
Please follow instructions here which may help to resolve issue.

File
Status
Preview URL
Details

:x:Error

Details

[Error: GitBranchDeletedOrForcePushed]

Cannot sync git repo to specified commit because ref +refs/pull/1633/merge has been deleted or has been force pushed.
 If this is pull request, please ensure it is mergeable (no merge conflict) and open (not closed).

For more details, please refer to the build report.
If you see build warnings/errors with permission issues, it might be due to single sign-on (SSO) enabled on Microsoft's GitHub organizations. Please follow instructions here to re-authorize your GitHub account to Docs Build.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
Note: Your PR may contain errors or warnings unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them.
For any questions, please:Try searching the docs.microsoft.com contributor guidesPost your question in the Docs support channel


Ruby SDK

/area runtime
It will be great to have Ruby SDK

/cc @msfussell

Open to the community. We would love to have a Ruby SDK!

Open to the community. We would love to have a Ruby SDK!

A while back I started on one here: https://github.com/tjwp/dapr-ruby-sdk/

Indeed, really needed! How comes it's not even included, I'm almost shocked.

I have not been actively working on this, but I'm still happy to transfer https://github.com/tjwp/dapr-ruby-sdk/ if it helps to keep things moving.

Can we have the official support for Ruby please. 🙏


feat(api): Retry read_value

What ❔
Retries calling read_value when it fails with statement_timeout.
Why ❔
Eliminate sporadic failures.
Checklist

[ ] PR title corresponds to the body of PR (we generate changelog entries from PRs).
[ ] Tests for the changes have been added / updated.
[ ] Documentation comments have been added / updated.
[ ] Code has been formatted via zk fmt and zk lint.

@slowli I doubt it will have any effect. Holding connections longer than they're needed is irrelevant for timeouts I think


pkgs.gjs should be included automatically if screen auto rotation is required

Describe the bug
A clear and concise description of what the bug is.
On my ThinkPad x1-yoga the screen should be rotated accordingly when I rotate my laptop in real world based on the measurement of the accelerometer given that hardwared.sensor.iio.enable is set to be true on gnome desktop.
Previously I was using gnome on Xorg several months ago, everything is fine.
Then I switch to wayland (still gnome), the screen no long auto rotates.
Today I finally have time to debug it. By using journal -f I notice that it complains the command gjs is missing. Then I include it in environment.systemPackages and the screen rotation becomes OK.
Steps To Reproduce
Steps to reproduce the behavior:

exclude pkgs.gjs from environment.systemPackages
rotate the laptop in real world
the screen orientation does not change.

Expected behavior
A clear and concise description of what you expected to happen.
When rotating the laptop in the real world, the screen orientation should change accordingly.
And pkgs.gjs should be included in the gnome desktop.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
Notify maintainers

Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.28, NixOS, 22.05 (Quokka)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.7.0`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

As far as I can tell, GNOME does not enable IIO by default. But I would still expect it to work when enabled.
Could you provide the full message (most importantly, what actually requires gjs)? I do not have any supported hardware to test.

, what actually requires gjs)?

I think it is  gnomeExtensions.screen-autorotate

Extensions need manual tweaks, cc @piegamesde.


derive serialize and deserialize for BaseDirectories

It would be nice if this could somehow be optional but I'm not aware of a way to derive only if a crate feature.

See https://stackoverflow.com/a/42551386/254415.

I also made serdes version * so it should ignore its owns version in favor of the crate using its version.

Thanks!


How to use prototypes.pth that only contains a single class?

I want to train a few shot object detector to recognize only a single class, which I built prototypes for using this blueprint: https://github.com/mlzxy/devit/blob/main/demo/build_prototypes.ipynb
Now when I run python demo/demo.py with some other images of the same class as input, I get an error, presumably because I only have a single class in my prototypes:
File "demo/demo.py", line 272, in <module>
    fire.Fire(main)
  File "/home/appuser/.local/lib/python3.8/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/home/appuser/.local/lib/python3.8/site-packages/fire/core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/home/appuser/.local/lib/python3.8/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "demo/demo.py", line 221, in main
    output = model(batched_inputs)[0]
  File "/home/appuser/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/appuser/devit/demo/../detectron2/modeling/meta_arch/devit.py", line 1168, in forward
    other_classes = interpolate(other_classes, self.T, mode='linear') # (Nxclasses) x spatial x T
  File "/home/appuser/devit/demo/../detectron2/modeling/meta_arch/devit.py", line 86, in interpolate
    return F.interpolate(seq, T, mode=mode)
  File "/home/appuser/.local/lib/python3.8/site-packages/torch/nn/functional.py", line 3945, in interpolate
    return torch._C._nn.upsample_linear1d(input, output_size, align_corners, scale_factors)
RuntimeError: Input and output sizes should be greater than 0, but got input (W: 0) and output (W: 128)

Any hunch as to how I can solve this? Might the issue be that I did not explicitly train few shot object detector using https://github.com/mlzxy/devit/blob/main/tools/train_net.py ?

See here: https://github.com/mlzxy/devit/issues/8#issuecomment-1754145097

I want to train a few shot object detector to recognize only a single class, which I built prototypes for using this blueprint: https://github.com/mlzxy/devit/blob/main/demo/build_prototypes.ipynb
Now when I run python demo/demo.py with some other images of the same class as input, I get an error, presumably because I only have a single class in my prototypes:
File "demo/demo.py", line 272, in <module>
    fire.Fire(main)
  File "/home/appuser/.local/lib/python3.8/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/home/appuser/.local/lib/python3.8/site-packages/fire/core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/home/appuser/.local/lib/python3.8/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "demo/demo.py", line 221, in main
    output = model(batched_inputs)[0]
  File "/home/appuser/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/appuser/devit/demo/../detectron2/modeling/meta_arch/devit.py", line 1168, in forward
    other_classes = interpolate(other_classes, self.T, mode='linear') # (Nxclasses) x spatial x T
  File "/home/appuser/devit/demo/../detectron2/modeling/meta_arch/devit.py", line 86, in interpolate
    return F.interpolate(seq, T, mode=mode)
  File "/home/appuser/.local/lib/python3.8/site-packages/torch/nn/functional.py", line 3945, in interpolate
    return torch._C._nn.upsample_linear1d(input, output_size, align_corners, scale_factors)
RuntimeError: Input and output sizes should be greater than 0, but got input (W: 0) and output (W: 128)

Any hunch as to how I can solve this? Might the issue be that I did not explicitly train few shot object detector using https://github.com/mlzxy/devit/blob/main/tools/train_net.py ?

Hello, have you solved this problem?

I want to train a few shot object detector to recognize only a single class, which I built prototypes for using this blueprint: https://github.com/mlzxy/devit/blob/main/demo/build_prototypes.ipynb
Now when I run python demo/demo.py with some other images of the same class as input, I get an error, presumably because I only have a single class in my prototypes:
File "demo/demo.py", line 272, in <module>
    fire.Fire(main)
  File "/home/appuser/.local/lib/python3.8/site-packages/fire/core.py", line 141, in Fire
    component_trace = _Fire(component, args, parsed_flag_args, context, name)
  File "/home/appuser/.local/lib/python3.8/site-packages/fire/core.py", line 475, in _Fire
    component, remaining_args = _CallAndUpdateTrace(
  File "/home/appuser/.local/lib/python3.8/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
    component = fn(*varargs, **kwargs)
  File "demo/demo.py", line 221, in main
    output = model(batched_inputs)[0]
  File "/home/appuser/.local/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1194, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/appuser/devit/demo/../detectron2/modeling/meta_arch/devit.py", line 1168, in forward
    other_classes = interpolate(other_classes, self.T, mode='linear') # (Nxclasses) x spatial x T
  File "/home/appuser/devit/demo/../detectron2/modeling/meta_arch/devit.py", line 86, in interpolate
    return F.interpolate(seq, T, mode=mode)
  File "/home/appuser/.local/lib/python3.8/site-packages/torch/nn/functional.py", line 3945, in interpolate
    return torch._C._nn.upsample_linear1d(input, output_size, align_corners, scale_factors)
RuntimeError: Input and output sizes should be greater than 0, but got input (W: 0) and output (W: 128)

Any hunch as to how I can solve this? Might the issue be that I did not explicitly train few shot object detector using https://github.com/mlzxy/devit/blob/main/tools/train_net.py ?

Hello, have you solved this problem?

Hi,
In the file demo.py modify the code in this part:
if category_space is not None:
category_space = torch.load(category_space)
model.label_names = category_space['label_names']
model.test_class_weight = category_space['prototypes'].to(device)
to:
if category_space is not None:
category_space = torch.load(category_space)
if len(category_space["label_names"]) < 2:
category_space["label_names"].append("blank")
real_prototypes = category_space["prototypes"]
blank_prototypes = torch.zeros(1, 1024)
category_space["prototypes"] = torch.cat((real_prototypes, blank_prototypes), 0)
model.label_names = category_space["label_names"]
model.test_class_weight = category_space["prototypes"].to(device)


add backtrack bind

Fedoraware Version Date:
Config used:

Description:

Steps to reproduce:

[x] I am able to consistently reproduce this error

Steps to reproduce the behavior:

Enable X
Do Y
Notice Z

Additional context

[x] I have included the steps to reproduce to the best I am able to share.

please make bind for backtrack


satisfy queries using DataSource metadata

Uses column metadata to satisfy min and max style aggregation functions when the filter matches all docs in the segment, which means metadata-based optimisations are possible for raw columns.

this obviously has a huge impact on performance for raw columns:
Benchmark               (_numRows)                                                          (_query)  (_scenario)  Mode  Cnt      Score      Error  Units
BenchmarkQueries.query     1500000  SELECT MIN(RAW_INT_COL), MAX(RAW_INT_COL), COUNT(*) FROM MyTable   EXP(0.001)  avgt    5  12050.914 ± 1603.683  us/op
BenchmarkQueries.query     1500000  SELECT MIN(RAW_INT_COL), MAX(RAW_INT_COL), COUNT(*) FROM MyTable     EXP(0.5)  avgt    5  16311.600 ± 2757.909  us/op
BenchmarkQueries.query     1500000  SELECT MIN(RAW_INT_COL), MAX(RAW_INT_COL), COUNT(*) FROM MyTable   EXP(0.999)  avgt    5  15463.667 ± 3098.050  us/op

Benchmark               (_numRows)                                                          (_query)  (_scenario)  Mode  Cnt    Score     Error  Units
BenchmarkQueries.query     1500000  SELECT MIN(RAW_INT_COL), MAX(RAW_INT_COL), COUNT(*) FROM MyTable   EXP(0.001)  avgt    5  513.716 ±  51.830  us/op
BenchmarkQueries.query     1500000  SELECT MIN(RAW_INT_COL), MAX(RAW_INT_COL), COUNT(*) FROM MyTable     EXP(0.5)  avgt    5  484.079 ±  88.200  us/op
BenchmarkQueries.query     1500000  SELECT MIN(RAW_INT_COL), MAX(RAW_INT_COL), COUNT(*) FROM MyTable   EXP(0.999)  avgt    5  506.688 ± 119.060  us/op

However, this optimisation is so obvious it raises questions that it wasn't done before - is realtime metadata less trustworthy than the equivalent info from a dictionary?

looks good to me. i wonder it too on why this is not optimized before.
Also, this question is not just for this PR but before: for REALTIME table this won't work when consuming segment has no metadata right? how do we go about and add the current consuming segment's count/min/max into the final result?

Consuming segments have data sources and track the min and max values, I'm not sure what concurrency guarantees are made though.

However, this optimisation is so obvious it raises questions that it wasn't done before - is realtime metadata less trustworthy than the equivalent info from a dictionary?

Great question. I believe we might not handle min/max value properly in segment metadata in certain corner cases, and I'm sure there are some historic segments that do not have the min/max value set properly. We should make the check more strict (e.g. check if min/max value exist) to ensure the segment metadata can be used to solve the query.

Codecov Report

Merging #8408 (d0031b4) into master (37fcfb8) will decrease coverage by 56.66%.
The diff coverage is 23.40%.

@@              Coverage Diff              @@
##             master    #8408       +/-   ##
=============================================
- Coverage     70.77%   14.11%   -56.67%
+ Complexity     4278       84     -4194
=============================================
  Files          1655     1611       -44
  Lines         86607    84810     -1797
  Branches      13064    12871      -193
=============================================
- Hits          61296    11970    -49326
- Misses        21068    71940    +50872
+ Partials       4243      900     -3343

Flag
Coverage Δ

integration1
?

integration2
?

unittests1
?

unittests2
14.11% <23.40%> (+0.01%)
:arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...org/apache/pinot/common/function/FunctionInfo.java
0.00% <0.00%> (-100.00%)
:arrow_down:

...apache/pinot/common/function/FunctionRegistry.java
0.00% <0.00%> (-93.94%)
:arrow_down:

...he/pinot/common/function/scalar/JsonFunctions.java
0.00% <0.00%> (-87.88%)
:arrow_down:

...not/common/metadata/segment/SegmentZKMetadata.java
0.00% <0.00%> (-84.73%)
:arrow_down:

...g/apache/pinot/common/metrics/ControllerGauge.java
0.00% <0.00%> (-97.37%)
:arrow_down:

...apache/pinot/controller/BaseControllerStarter.java
78.54% <ø> (-3.79%)
:arrow_down:

...va/org/apache/pinot/controller/ControllerConf.java
56.68% <ø> (-2.03%)
:arrow_down:

.../core/operator/query/AggregationOperatorUtils.java
0.00% <0.00%> (ø)

...ator/query/DictionaryBasedAggregationOperator.java
0.00% <ø> (-78.05%)
:arrow_down:

...erator/query/MetadataBasedAggregationOperator.java
0.00% <0.00%> (-88.89%)
:arrow_down:

... and 1339 more

Continue to review full report at Codecov.

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


feat: remote @electron/remote module

feat: remote @electron/remote module
All unit test passed!!
Changes:

remove @electron/remote package.
remove initRemote module, doesn't need anymore.
use  string value of webcontents.id as each ipc connection ctx.
get APP_ROOT contant value by ipcRenderer.sendSync API.
get winService.windowId by ipcRenderer.sendSync API.
use static channel name in winService and webviewService.
fix registerWillClose unit test(set hideWhenClose option to false when create window).
remove unused ipc.net module .
fix function sign of winService.broadCast and winService.sendTo which doesn't support rest arguments.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.chenfuqiang.xiaogui seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.


Support twitch

It should be possible to support twitch as well?
If you can give me a couple of hints/guidance, I can open a PR to add the functionality.

Thanks for the offer.  These are the things you need to do to add a new platform:

Add a module to youtube/sphinxcontrib/youtube following the pattern of youtube.py, vimeo.py and peertube.py. This will contain subclasses of utils.video and utils.Video which set whichever parameters are different for your platform from the default.
Register the new classes in __init__.py.
Add basic tests following the pattern for the other platforms.
Add documentation to README.md and the RST files in the docs folder. Again, follow the pattern for other platforms.

Twitch requires the parent domain.. I am actually unable to include a .. raw:: directives which works locally through file:///. Example directive which works:
        .. raw:: html

            <div style="text-align: center;">
                <iframe
                    src="https://player.twitch.tv/?video=1950152310&parent=mscheltienne.github.io&parent=well-play-teen.org&autoplay=false"
                    allowfullscreen
                    frameborder="0"
                    height="378"
                    scrolling="no"
                    width="620">
                </iframe>
            </div>

I don't see an easy way to get the parent as part of this extension..

I think you do the following.

When you subclass Video, overwrite option_spec with one that adds a parent option.
Write a wrapper for utils.visit_video_node_html which adds the right string based on parent into url_parameters. If you look at youtube.py then you can see such a wrapper.

But do we don't have a way to retrieve the domain (to complete the parent) dynamically. I guess the only option is a configuration key, e.g. 'twitch_parent'.

At the point that sphinx runs, it has no way of knowing where the resulting html will be hosted. I think that you're right that it needs to go in conf.py, because it's global.