Running tutorials on MacOS results in error.

Trying to run tutorial1.ipynb on MacOS-Arm64
https://github.com/dotnet/TorchSharpExamples/blob/main/tutorials/CSharp/tutorial1.ipynb
results in an error on the first TorchSharp invocation. It's dynamically looking for the wrong libtorch version number, '<IP_ADDRESS>' instead of '2.5.1'
Installed Packages
libtorch-cpu-osx-arm64, 2.5.1
TorchSharp-cpu, 0.105.0

Error: System.TypeInitializationException: The type initializer for 'TorchSharp.torch' threw an exception.
---> System.NotSupportedException: The libtorch-cpu-osx-arm64 package version <IP_ADDRESS> is not restored on this system. If using F# Interactive or .NET Interactive you may need to add a reference to this package, e.g.
#r "nuget: libtorch-cpu-osx-arm64, <IP_ADDRESS>". Trace from LoadNativeBackend:

TorchSharp: LoadNativeBackend: Initialising native backend, useCudaBackend = False

This only seems to happen on MacOS, running tutorials on Windows works fine.

No, you have to go farther down the notebook, when it first creates a tensor. Before then, nothing is run.
I believe it has to do with .NET Interactive, and how TorchSharp loads the backend dynamically.


Labels for nodes in flow definition

Feature Request
Description of Problem:
Showing human readable labels for model and input selections when defining a flow to run.
Potential Solutions:
Add an optional string label property to the flow definition nodes to allow labels to be added and used when building a menu to set up a flow.

I think we can just add a "label" field to all flow nodes. It can be left blank if not used and it won't be used for anything functional in the platform.


Use physical columns instead of logical columns with simple indicies

@cznic How does this look? I think I figured out how the table columns work. Also I'm willing to squash the commits or make separate PRs for each issue.
The distinction between physical and logical columns appears when a table has dropped columns.  Two places were referencing the logical column (cols) instead of physical column (cols0) by accident. First, when initializing the index array for a table, and second when finding a simple index to use in a SELECT query.
Fixing the latter item uncovered a latent bug where dropped columns are returned from selects with a WHERE clause using an index. However dropped columns are removed during full table scans. A copy of dropped column removal code was added the path used by index query plans. I think that is the right place, so row0() returns reads of a physical row and row returns reads of a logical row. This mirrors the other usage of the 0 suffix.
Fixes #187 and #188.

Also I'm willing to squash the commits or make separate PRs for each issue.

@dbrower Feel free to sqaush or not to squash as you prefer.

Great. I'll do that.


chore: bump sdk

Locally I can only publish it if minSDK = 33. Let's see what CI says about the other "fix" before we merge this.

Weird, locally it worked for me with minSDK = 31

Weird, locally it worked for me with minSDK = 31

Can you also publish it?

Weird, locally it worked for me with minSDK = 31

Can you also publish it?

No because I was running into that error
Could not find fastlane-2.214.0, cocoapods-1.10.2, CFPropertyList-3.0.6, addressable-2.8.5, aws-sdk-s3-1.132.0, excon-0.100.0, faraday-1.10.3, fastimage-2.2.7, google-apis-androidpublisher_v3-0.47.0, google-apis-playcustomapp_v1-0.13.0, json-2.6.3, jwt-2.7.1, multipart-post-2.3.0, plist-3.7.0, simctl-1.6.10, cocoapods-core-1.10.2, cocoapods-deintegrate-1.0.5, cocoapods-downloader-1.6.3, cocoapods-plugins-1.0.0, cocoapods-search-1.0.1, cocoapods-trunk-1.6.0, cocoapods-try-1.2.0, escape-0.0.4, fourflusher-2.3.1, molinillo-0.6.6, nap-1.1.0, ruby-macho-1.4.0, rexml-3.2.6, public_suffix-5.0.3, aws-sdk-core-3.180.1, aws-sdk-kms-1.71.0, aws-sigv4-1.6.0, google-apis-core-0.11.1, digest-crc-0.6.5, google-apis-iamcredentials_v1-0.17.0, googleauth-1.7.0, activesupport-<IP_ADDRESS>, algoliasearch-1.27.5, concurrent-ruby-1.2.2, fuzzy_match-2.0.4, netrc-0.11.0, typhoeus-1.4.0, aws-partitions-1.798.0, webrick-1.8.1, google-cloud-errors-1.3.1, i18n-1.14.1, minitest-5.19.0, tzinfo-1.2.11, ethon-0.16.0, thread_safe-0.3.6, ffi-1.15.5 in locally installed gems
Run `bundle install` to install missing gems.

Weird, locally it worked for me with minSDK = 31

Can you also publish it?

No because I was running into that error
Could not find fastlane-2.214.0, cocoapods-1.10.2, CFPropertyList-3.0.6, addressable-2.8.5, aws-sdk-s3-1.132.0, excon-0.100.0, faraday-1.10.3, fastimage-2.2.7, google-apis-androidpublisher_v3-0.47.0, google-apis-playcustomapp_v1-0.13.0, json-2.6.3, jwt-2.7.1, multipart-post-2.3.0, plist-3.7.0, simctl-1.6.10, cocoapods-core-1.10.2, cocoapods-deintegrate-1.0.5, cocoapods-downloader-1.6.3, cocoapods-plugins-1.0.0, cocoapods-search-1.0.1, cocoapods-trunk-1.6.0, cocoapods-try-1.2.0, escape-0.0.4, fourflusher-2.3.1, molinillo-0.6.6, nap-1.1.0, ruby-macho-1.4.0, rexml-3.2.6, public_suffix-5.0.3, aws-sdk-core-3.180.1, aws-sdk-kms-1.71.0, aws-sigv4-1.6.0, google-apis-core-0.11.1, digest-crc-0.6.5, google-apis-iamcredentials_v1-0.17.0, googleauth-1.7.0, activesupport-<IP_ADDRESS>, algoliasearch-1.27.5, concurrent-ruby-1.2.2, fuzzy_match-2.0.4, netrc-0.11.0, typhoeus-1.4.0, aws-partitions-1.798.0, webrick-1.8.1, google-cloud-errors-1.3.1, i18n-1.14.1, minitest-5.19.0, tzinfo-1.2.11, ethon-0.16.0, thread_safe-0.3.6, ffi-1.15.5 in locally installed gems
Run `bundle install` to install missing gems.

Try follow the recommended ways in here using the bundle installer

Interestingly, CI seems to be fine and the build works on my Android 13 phone.


Ribbon button setting to select between available actions.

Added setting to change action performed when pressing ribbon button.
Rationale: I wanted to bring back default "random note" behaviour to this button, but also give some configurability for those people who use queries and depend on modal. I think it adds up to this great plugin.

Thank you for the pull request :)
My solution for this was that the plugin Commander adds this functionality, but it could maybe be good if we also provided something like it, so that the user doesn't need other plugins.
Is it needed?
I don't know if I like that the user only can select one of the commands, because what if they want to both have the query modal and random note commands, then they would just use Commander anyways.
A solution could be to implement something where they could toggle ribbons for each command, but then we would just recreate Commander, so that might not be a good solution.
I'm open to hear what you think about this :)
The ribbon tooltip
I think we could maybe update the ribbons name using something like this https://github.com/phibr0/obsidian-commander/blob/main/src/manager/commands/leftRibbonManager.ts. I don't really like that the tooltip doesn't update.
I think I could add the functionality to update the ribbons name if we decide to add this feature. You can also do it if you want to. I think we could add a util function or a file called something like ribbonManager with the function in it.
The code might be something like this, but haven't tried it.
const ribbonItem = app.workspace.leftRibbon.items.find((item) =>
    item.name === lastRibbonName);

if (ribbonItem) {
	ribbonItem.buttonEl.setButtonText(newRibbonName); // IDK if this is correct to set text on button.
}

I didn't even know about the Commander plugin, and it looks great.
I was looking for the simplest solution to skip my daily notes when opening random note. I found your plugin, and was a little thrown off by the changed behaviour of this ribbon button - showing modal instead of opening note. When I understood the query part of the plugin, I got it. But still, I needed only the simple daily notes skipping, so I added a picker.
With my PR, you can have the original behavior of the plugin - you set "Open query modal" and you get it. But also, if you need what I needed (which I assume is somewhat popular need), it is easy to change. And, if you need more buttons, then you look for Commander plugin, because then the usecase is different ("I want to have more commands on the ribbon" vs "I want this plugin button to open random file immediately")
About the button title, good advice, I will add this change later today.

Yeah by default it is the Query Modal, but I think it's okay to have some way to switch between them, so I think its valid to add :)

There is a setTooltip function, which is probably the one which should be used.
https://docs.obsidian.md/Reference/TypeScript+API/ButtonComponent

@karstenpedersen I tried your solution, but I think there is something wrong. I'm not that good in JS yet, so not sure how to solve this.


Update the documentation to the up-to-date state

Update README.
Describe how to deploy the service.
Describe how to monitor its events.

I'm closing this issue in favor of https://github.com/matrix-org/waterfall/issues/39 since the README has been updated according to the new dockerized workflow and the deployment pipeline should probably not be documented here as currently, only the members of the repository can deploy things manually. Whereas the documentation of code is part of a linked issue.


Chunk upload with Laravel 5

Hi,
I'm stuck in chunk upload of file. If I'm using this with core php then it will send total chunks and current chunk. But not getting these parameters in laravel controller using Request class. Can you please tell me that, is there any issue in my code or any other issue. Please help me.
here is the angular code.
if (files && files.length) {
    for (var i = 0; i < files.length; i++) {
    	Upload.upload({
            url: RouteUrlsConstant.UploadMultipleDocument,
            data: {file: files[i]},
            resumeChunkSize: '10KB'
        }).then(function (resp) {
            console.log('Success ' + resp.config.data.file.name + 'uploaded. Response: ' + resp.data);
        }, function (resp) {
            console.log('Error status: ' + resp.status);
        }, function (evt) {
            var progressPercentage = parseInt(100.0 * evt.loaded / evt.total);
            console.log('progress: ' + progressPercentage + '% ' + evt.config.data.file.name);
            $scope.progress =
                Math.min(100, parseInt(100.0 * evt.loaded / evt.total));
        });
    }
}

and here is the laravel code
public function upload(Request $request) {
   dd($request->all());
}

output code
array:1 [
  "file" => UploadedFile {#30
    -test: false
    -originalName: "MARBLES.gif"
    -mimeType: "image/gif"
    -size: 770388
    -error: 0
  }
]

You need to provide resumeSizeUrl or resumeSize. Read the Resumable Uploads section.

I am also noticing some oddities with the _chunkSize and _currentChunkSize values. I have resumeChunkSize and resumeSizeUrl specified, but on one of our environments the _currentChunkSize property is not showing up, and the _chunkSize property seems to be behaving like the _currentChunkSize typically would.

you probably have different versions of the plugin. _currentChunkSize was introduced recently. @dustin-miller

@danialfarid Upon closer inspection, the environment did turn out to be stuck on an older version. I updated it to the latest and the problem is now resolved. Thanks!


pull request for e2e test at 11/10/2016 20:45:09

:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

optest/docs/updated_at.md
:white_check_mark:Succeeded

Details

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Release 1.0.0

Before Release

[ ] Check if the client secret key is in place (src/js/components/login.js)
[ ] Before Build: Update version in package.json and auto_update.json
[ ] Run the build script npm run build

To Test Once Release is Built

[ ] Logout & Login
[ ] Check if open at startup works
[ ] Check version number in settings(in-app)
[ ] Check App Icon & Notifications Icon after codesign

Currently awaiting for https://github.com/jenslind/electron-gh-releases/issues/17


Shared object accessible from map function by all threads

My application requires that all threads that run inside map can access a big object shared in memory, without copying it for each thread or for each function call inside map.
However, even if something simpler is not working, like the following code:
 y = 5
local res = {ipc.map(3,
    function(mapid)
      print(y)
    end):join()}

which shows that y is nil at all threads.
How can this be done without copying the y each time (assuming that y is a big object)? Thanks.

If Y is a big tensor they can definitely share it. That’s the only
primitive that can be shared without copying. This was done by design as
the sharing of a single lua environment across thread boundaries is very
complex. If you want a thread library that works like lua closures then I
suggest you check out:
https://github.com/torch/threads
It may allow you to share your larger object without copying, maybe, you’d
have to check the documentation to be sure.
Hope this helps,
Zak
On Fri, Feb 12, 2016 at 10:03 AM, Octavian Ganea<EMAIL_ADDRESS>wrote:

My application requires that all threads that run inside map can access a
big object shared in memory, without copying it for each thread or for each
function call inside map.
However, even if something simpler is not working, like the following code:
y = 5
local res = {ipc.map(3,
function(mapid)
local weight = torch.zeros(y, 5)
return weight
end):join()}
How can this be done without copying the y each time (assuming that y is a
big object)? Thanks.
—
Reply to this email directly or view it on GitHub
https://github.com/twitter/torch-ipc/issues/8.

ipc = require 'libipc'
y = torch.ones(5)
local res = {ipc.map(3,
    function(mapid)
      print(y)
    end):join()}

I tried with y tensor, but got the same behavior, y is nil inside each function.

Btw, it would be cool to allow the threads to share only one specific table (given as an additional parameter) where shared variables can be put. This should be enough for most of the applications.

Hi,
You need to pass the tensor to the map functions. Nothing is done
automatically, no upvalues of the mapped function are traversed.
ipc = require 'libipc'
y = torch.ones(5)
local res = {ipc.map(3,
function(y, mapid)  —- first argument is y
print(y)
end, y):join()}     —- pass y to the functions
On Fri, Feb 12, 2016 at 10:57 AM, Octavian Ganea<EMAIL_ADDRESS>wrote:

ipc = require 'libipc'
y = torch.ones(5)
local res = {ipc.map(3,
function(mapid)
print(y)
end):join()}
I tried with y tensor, but got the same behavior, y is nil inside each
function.
—
Reply to this email directly or view it on GitHub
https://github.com/twitter/torch-ipc/issues/8#issuecomment-183450377.

Yeah sharing a Lua table sounds easy but its actually quite hard as it is
embedded inside a particular Lua environment, its not just a contiguous
block of memory that can be easily identified.
On Fri, Feb 12, 2016 at 11:06 AM, Octavian Ganea<EMAIL_ADDRESS>wrote:

Btw, it would be cool to allow the threads to share only one specific
table (given as an additional parameter) where shared variables can be put.
This should be enough for most of the applications.
—
Reply to this email directly or view it on GitHub
https://github.com/twitter/torch-ipc/issues/8#issuecomment-183452460.

I see, so passing a tensor y as a parameter to the map function is not going to perform any copy of y, but rather pass the pointer to each thread. Thanks for the clarification.

I am going to close this as we won't ever be adding a way to share anything beyond tensors across thread boundaries. Thanks.


Android java代码如何初始化

new DoKit.Builder(this).build(); 这样初始化报错

Unable to find method ''void kotlin.jvm.internal.FunctionReferenceImpl.(int, java.lang.Object, java.lang.Class, java.lang.String, java.lang.String, int)''
'void kotlin.jvm.internal.FunctionReferenceImpl.(int, java.lang.Object, java.lang.Class, java.lang.String, java.lang.String, int)'
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.


Improvement: Space ONLY to preview

The shortcut Ctrl+Space is used to switch input methods. However, in File Explorer, typing the first letter of a file name triggers a quick search, causing the Preview pane to flash when Ctrl+Space is pressed.

Normally, when editing a file name in File Explorer, QuickLook should not be triggered. Could you provide more information?
Please share the system version, Tiefsee version, input method name, and the specific steps you followed.
Or are you switching input methods without editing the file name?

Not editing the file name.
We could type directly in the File Explorer to search. You could try typing the first few letters of a file name to quickly locate the file. Then so, sometimes we need to switch the input method.

So it seems that simply modifying it to avoid triggering QuickLook while holding down Ctrl, Shift, or Alt could solve this issue?

Yes. press only the spacebar, not any combination of keys.

I apologize for oversimplifying the issue. It seems that many input methods send words when you press the spacebar. Is there a way to differentiate between these situations?

The project QuickLook: https://github.com/QL-Win/QuickLook
Also use the space to initiate the preview window. It is not triggered by switching input method or sending words.

I'll submit a version with the modification I mentioned when I have some time later. Then, you can test it to see if it resolves the issue.

Please take a look at the project QuickLook. It's not being activated by input method actions. However, when navigating between files using the arrow keys, it's very slow, and a busy cursor is briefly displayed. I hope this isn't caused by its key capturing method, but rather by background loading.

I think the solution is to wait for the space key to be held for a short time, rather than simply avoiding combination keys.
For example, if I have a file named "abc d.png" and QuickLook is not triggered by the space key, I can type "abc", press "space", then "d" to quickly locate this file.
However, if I enable QuickLook with the space key, typing "abc" and pressing "space" will immediately show the preview window.

Using the duration of the spacebar press to determine activation does solve the issue, but it adds a 0.3-second delay each time QuickLook is triggered. I think that cost is too high.

I have already submitted the relevant code.
Theoretically, now Ctrl+Space, Shift+Space, and Alt+Space should not trigger QuickLook.
You can download the Nightly version to test it out.
https://github.com/hbl917070/Tiefsee4/releases


Cannot use print func inside of class constructor if the class has had addVar used

I have this code in my class GameCore's expose function:
ssq::Class cls = vm.addClass("GameCore", ssq::Class::Ctor<GameCore()>());

...

cls.addVar("buildType", &GameCore::buildType);

Then, in one of my squirrel source files, I extend it like this:
class B extends GameCore {
	buildType = 0;

	constructor() {
		base.constructor();

		print("test!");
	}

	...
}

Seemingly, this prevents me from using print which is defined as:
void print(SQVM* vm, const char* text, ...);

mVirtualMachine.setPrintFunc(print, error);

Due to a Variable not found (Variable not found) error.

It seems its not just print that gets messed up, anything in the root table seems to be uncallable without ::


import failure with undefined symbol: OPENSSL_sk_num

Before submitting a new issue, please check if a similar issue has already been filed.
Issue subject
Briefly describe the issue here.
Expected behaviour
Describe what should happen.
pi@raspberrypi:~ $ cat wsTest.py
from binance.websocket.spot.websocket_client import SpotWebsocketClient as WebsocketClient

def message_handler(message):
    print(message)

ws_client = WebsocketClient()
ws_client.start()

ws_client.mini_ticker(
    symbol='bnbusdt',
    id=1,
    callback=message_handler,
)

# Combine selected streams
ws_client.instant_subscribe(
    stream=['bnbusdt@bookTicker', 'ethusdt@bookTicker'],
    callback=message_handler,
)

Traceback (most recent call last):
  File "wsTest.py", line 1, in <module>
    from binance.websocket.spot.websocket_client import SpotWebsocketClient as WebsocketClient
  File "/home/pi/.local/lib/python3.6/site-packages/binance/websocket/spot/websocket_client.py", line 1, in <module>
    from binance.websocket.websocket_client import BinanceWebsocketClient
  File "/home/pi/.local/lib/python3.6/site-packages/binance/websocket/websocket_client.py", line 3, in <module>
    from binance.websocket.binance_socket_manager import BinanceSocketManager
  File "/home/pi/.local/lib/python3.6/site-packages/binance/websocket/binance_socket_manager.py", line 5, in <module>
    from twisted.internet import reactor, ssl
  File "/home/pi/.local/lib/python3.6/site-packages/twisted/internet/ssl.py", line 58, in <module>
    from OpenSSL import SSL
  File "/opt/miniconda3/lib/python3.6/site-packages/OpenSSL/__init__.py", line 8, in <module>
    from OpenSSL import crypto, SSL
  File "/opt/miniconda3/lib/python3.6/site-packages/OpenSSL/crypto.py", line 16, in <module>
    from OpenSSL._util import (
  File "/opt/miniconda3/lib/python3.6/site-packages/OpenSSL/_util.py", line 6, in <module>
    from cryptography.hazmat.bindings.openssl.binding import Binding
  File "/home/pi/.local/lib/python3.6/site-packages/cryptography/hazmat/bindings/openssl/binding.py", line 14, in <module>
    from cryptography.hazmat.bindings._openssl import ffi, lib
ImportError: /home/pi/.local/lib/python3.6/site-packages/cryptography/hazmat/bindings/_openssl.abi3.so: undefined symbol: OPENSSL_sk_num

Actual behaviour
Describe what happens instead. Please include the complete failure message.
Steps to reproduce
Provide steps to let us know how we can reproduce this issue.
I install pip install binance-connector
and found some warning message
 WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/pycparser
  sysconfig: /home/pi/.local/include/python3.6/pycparser
  WARNING: Additional context:
  user = True
  home = None
  root = None
  prefix = None
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/pyasn1
  sysconfig: /home/pi/.local/include/python3.6/pyasn1
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/cffi
  sysconfig: /home/pi/.local/include/python3.6/cffi
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/attrs
  sysconfig: /home/pi/.local/include/python3.6/attrs
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/zope.interface
  sysconfig: /home/pi/.local/include/python3.6/zope.interface
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/txaio
  sysconfig: /home/pi/.local/include/python3.6/txaio
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/pyasn1-modules
  sysconfig: /home/pi/.local/include/python3.6/pyasn1-modules
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/incremental
  sysconfig: /home/pi/.local/include/python3.6/incremental
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/hyperlink
  sysconfig: /home/pi/.local/include/python3.6/hyperlink
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/cryptography
  sysconfig: /home/pi/.local/include/python3.6/cryptography
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/constantly
  sysconfig: /home/pi/.local/include/python3.6/constantly
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/Automat
  sysconfig: /home/pi/.local/include/python3.6/Automat
  WARNING: The script automat-visualize is installed in '/home/pi/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/Twisted
  sysconfig: /home/pi/.local/include/python3.6/Twisted
  WARNING: The scripts cftp, ckeygen, conch, mailmail, pyhtmlizer, tkconch, trial, twist and twistd are installed in '/home/pi/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/service-identity
  sysconfig: /home/pi/.local/include/python3.6/service-identity
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/autobahn
  sysconfig: /home/pi/.local/include/python3.6/autobahn
  WARNING: The scripts wamp and xbrnetwork are installed in '/home/pi/.local/bin' which is not on PATH.
  Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
  WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
  distutils: /home/pi/.local/include/python3.6m/binance-connector
  sysconfig: /home/pi/.local/include/python3.6/binance-connector
WARNING: Value for scheme.headers does not match. Please report this to <https://github.com/pypa/pip/issues/10151>
distutils: /home/pi/.local/include/python3.6m/UNKNOWN
sysconfig: /home/pi/.local/include/python3.6/UNKNOWN

Environment
Provide any relevant information about your setup, such as:

Version of binance-connector-python
binance-connector                 1.3.0
Python version
Python 3.6.6
Operating system
Raspberry Pi OS
Linux raspberrypi 5.10.17-v7+ #1421 SMP Thu May 27 13:59:01 BST 2021 armv7l GNU/Linux

I don't know why, but I success after run those commends.
pip uninstall pyopenssl
pip uninstall cryptography
pip install pyopenssl
pip install cryptography


Week 4's work

Add translation of comments feature, upload images feature, remove shake picture feature instead add enlarge picture feature and make changes according to (manual) testing.

For future pull requests: It helps to separate format changes from logic changes. Since pretty much all lines have changed it is hard to tell which lines have new logic and which lines have just a different indentation.
I'm not sure how difficult it would be to do a new pull-request just for the format changes, so let's leave things as they are.

Could you send a link where we can see the newest version working?

For future pull requests: It helps to separate format changes from logic changes. Since pretty much all lines have changed it is hard to tell which lines have new logic and which lines have just a different indentation.
I'm not sure how difficult it would be to do a new pull-request just for the format changes, so let's leave things as they are.

Oh, I'm sorry. I didn't think about it. I'll make sure to do the formatting and logic changes separately next time.

Could you send a link where we can see the newest version working?

I deployed my project, so, you can check it out here: https://saakshi-step-2020.ew.r.appspot.com/


Fix for chaos security warning CVE-2019-1010083

Description
Fix for PR https://github.com/CanalTP/Chaos/pull/397

we do not use the master branch on navitia, we are on https://github.com/CanalTP/flask-restful/tree/update


[FEATURE] Improve reliability of structured outputs in AI Services

If LLM responds with a JSON wrapped in backticks and/or some additional text, try to extract that instead of failing
(Configurable) Retry in case of parsing failure, feeding the error back to the LLM
Automatically enable JSON mode if return type of AI Service is POJO and underlying LLM supports it
If return type is enum/boolean, automatically use logitBias if supported by the LLM
Consider adding function calling as a second option for structured outputs
Consider using existing libraries to generate/validate JSON schema

Hi,
The templates for parsing outputs were developed and tested using ChatGPT, isn't?. Open LLMs, such as Llama, are very more verbose in their answers.
kind regards.
Thank you for such a stunning project.

@ruizrube yes, most of the high-level features were developed with at least gpt-3.5-turbo-level LLM in mind.
But now when we have llama3/mixtral/etc and json mode in Ollama, it should work as good for most of the use cases.
But we need to implement this PR anyway to ensure that a long tail of corner cases is handled well.

Related: https://github.com/langchain4j/langchain4j/issues/1087

Related: https://github.com/langchain4j/langchain4j/discussions/786

This has been solved (or at least largely mitigated) with the introduction of a specific output guardrail in the quarkus-langchain4j extension. I wonder if a similar approach can be ported or reimplemented directly into langchain4j.


keepalived-vip v0.30  cannot be aware of the backend pod scaling

Summary:
directlly pull the image (aledbf/kube-keepalived-vip)
v0.29 was good, but when >=v0.30 , when the pod of service being scaled, then the /etc/keepalived/keepalived.conf will not get updated, until next time configmap changed .
HOW To Reproduce:
1.deploy v0.30/v0.32 keepalived-vip  daemonset
2.add configmap like   <IP_ADDRESS>: default/myapp
3. kubectl scale --replicas=2 deploy myapp , from 1 pod to 2 pods
4. kubectl exec -it kube-keepalived-vip-xxx cat /etc/keepalived/keepalived.conf
5.  found that real_server remains single item , at least for 1 mins waiting.
6.  delete the daemonset, and update yaml to using v0.29 image, the keepalived.conf will get changed in 3-5 secs when app scaled.
@aledbf

I believe it's because of introducing of dumb-init, will confirm soon

@panpan0000 please test aledbf/kube-keepalived-vip:0.33

@panpan0000 this was the issue https://github.com/aledbf/kube-keepalived-vip/commit/c9ac529a25d6f64283b85b4f9c7b883c8191489d
We always need to render the template and compare the md5 of the running configuration and the new one

Yes, I confirm v0.33 works well !
now  understand,  bug introduced in e37095b3be33e6808954eef4aae5d2e5bf444fed


Choose Mouse Button for Swipe Detection

Hey there, thank you for your amazing work. I've implemented your script in my project, but I've noticed that a swipe is detected even when pressing right button of mouse, which I would not like it to happen. I think it would be another nice improvement to this already very nice plugin.
Meanwhile, is there some workaround for this using API?

I think I've solved it (also making the solution customizable by user), I'm preparing a pull request.

I think I've solved it (also making the solution customizable by user), I'm preparing a pull request.

#24

Thank you man!

No problem at all, it is for me to thank you! Feel free to close this issue whenever you want.


Serilog integration for 6.0.0

We have been using MassTransit 5.5.6 together with MassTransit.SerilogIntegration 5.5.6
Now we updated to 6.0.0 of MassTransit but there's no MassTransit.SerilogIntegration 6.0.0? Is there any update planned for it or what is the plan?

https://masstransit-project.com/getting-started/upgrade-v6.html#logging

Just what I guessed but I just couldn't find the info, thanks a lot for a great work Chris!


Remove Apt version lock

Remove the Apt version lock (currently locked to 2.0 in Berksfile, and 2.2 in metadata. This doesn't seem to be necessary, and in larger environment cookbooks, causes problems.
Tested and working with Apt 4.0.0

This change is

@miketheman Build failing due to bundle install on CircleCI - Converging locally will demonstrate success. This is a fairly critical / important change for myself - What do you think about releasing a v2.7.7 with this change?

@miketheman Any update on this? This blocks a couple of deployments of ours, and we'd love to see the change merged.

@miketheman If you want some help maintaining this repo, I'd be more than happy to help out 👍

#422 resolves this issue

Will close when (if) #422 is merged.

This particular issue has been pulled into the chef_nginx cookbook 2.8.0 release. The chef_nginx cookbook is a fork of this cookbook with many of the outstanding issues in the 2.7.6 release resolved. The release is backwards compatible with this cookbook outside of the name change, which obviously requires updating runlist and and metadata dependencies. I'd highly suggest giving it a try to see if this resolves you nginx cookbook woes.
https://github.com/chef-cookbooks/chef_nginx
https://supermarket.chef.io/cookbooks/chef_nginx#changelog

Thanks for opening this PR. With the merge of the chef_nginx codebase back into the nginx cookbook I believe it’s no longer necessary. I’m going to close this out now, and I hope you can check out the massive changes that landed on master here #435


Release Arrow 30.0.1 (maintenance release for 30.0.0)

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
We recently released arrow 30.0.0: https://github.com/apache/arrow-rs/issues/3336 and found two issues:

[ ] The upgrade to multiversion https://github.com/apache/arrow-rs/pull/3396 means now all crates that use arrow-rs require rebuild on every compilation (see https://github.com/calebzulawski/target-features/issues/1)
[x] https://github.com/apache/arrow-rs/issues/3454

Describe the solution you'd like
A new release version 30.0.1 with just the fixes for:

[ ] https://github.com/apache/arrow-rs/pull/3452
[ ] https://github.com/apache/arrow-rs/pull/3451

Describe alternatives you've considered

Possibly release 30.1.0 (need dependency)?
Just wait until the release of 31.0.0 #3415

Additional context
Found while trying to update datafusion. This may block the upgrade and possibly delay the release https://github.com/apache/arrow-datafusion/issues/4776 cc @andygrove

Release thread - https://lists.apache.org/thread/p5dqfopymxw0or7hqh1tl5npcj4338qw

Shall this be closed since the release has already taken place?


Revert "AMBARI-24692 - JDK 11 support for Log Search"

Reverts apache/ambari#2843
Fix dependency issue in a new PR
org.springframework.boot
spring-boot-starter-jersey

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


build: osx link failed

Undefined symbols for architecture x86_64:
"_base64_decode", referenced from:
__cgo_b1fab2eafdb5_Cfunc_base64_decode in _x002.o
(maybe you meant: __cgo_b1fab2eafdb5_Cfunc_base64_decode)
"_base64_encode", referenced from:
__cgo_b1fab2eafdb5_Cfunc_base64_encode in _x002.o
(maybe you meant: __cgo_b1fab2eafdb5_Cfunc_base64_encode)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Is .syso linking supported on macos at all?


How to get values from new data fields such as DetailedChargeState?

using:
fleet-telemetry - v0.3.2
Hello,
Can someone please help me on how I can get the values for the DetailedChargeState field?
So, I send a post request to fleet-telemetry-config-create, with DetailedChargeState included in fields property.
Using fleet-telemetry-config-get, I see that the vehicle is synced and DetailedChargeState is included in fields property.
The fleet-telemetry service is successfully receiving payloads and inserting them into kafka. I inspect the gathered data from kafka by looping through the data and using $value->hasDetailedChargeStateValue() method provided by google/protobuf. It returns false on every loop.
Also $value->getDetailedChargeStateValue() doesn't have the proper value
$payload->mergeFromString($message->payload);

$vehicleData = $payload->getData();

/** @var Datum $item */
foreach ($vehicleData as $item) {
    $key = $item->getKey();
    $value = $item->getValue();

    $value->hasDetailedChargeStateValue(); // `false` on every loop

    $value->getDetailedChargeStateValue(); // `0` on every loop
}

I have also tried checking for these new fields from the methods below but they also return false.
$value->hasShiftStateValue()
$value->hasDoorValue()
$value->hasSentryModeStateValue()

Thank you.

Same. Can confirm DetailedChargeState is included in my vehicle's synced config, however no kafka messages contain DetailedChargeStateValue or a string value representing DetailedChargeStateValue.
Is there something we are missing?
This also seems to be the only field that we can except to return typed values, maybe an issue with returning typed values?

// fields below here are always returned typed
DetailedChargeState = 179;

Just wondering if anyone has made progress with this or worked out how to use this new field? Still seems to be returning 179?

2024-11-09 03:36:09 tesla-telemetry-1        | {"activity":true,"context":"fleet-telemetry","data":[{"Body":"","CreatedAt":1731139143,"Name":"unsupported_field","Tags":{"field_name":"DetailedChargeState","name":"35c4f7b5ae30-4d46-8ad3-688501fe2091"}}],"level":"info","metadata":{"receivedat":"1731152169000","timestamp":"0","txid":"","txtype":"errors","version":"0","vin":"<<>>"},"msg":"record_payload","time":"2024-11-09T11:36:09Z","vin":"<<>>"}
fleet_telemetry v0.3.5
firmware v<IP_ADDRESS>

DetailedChargeState is available beginning with firmware version 2024.38. Once your vehicle is updated to this version, you will begin receiving the field.

@patrickdemers6 Ah I see, thank you I appreciate the response.


The administrator account password cannot be injected when creating a virtual machine

I installed cloudbase-init 1.1.6 on Windows in an ovirt virtual environment and packaged it into a template. When I used this templateto create a new virtual machine, I configured the administrator password. The content of the virtual machine's configdirve directory config-2\openstack\latest\user_data.json is as follows.
#cloud-config
output:
all: '>> /var/log/cloud-init-output.log'
password: Idpbg123456.
disable_root: 0
runcmd:

'sed -i ''/^datasource_list: /d'' /etc/cloud/cloud.cfg; echo ''datasource_list:
["NoCloud", "ConfigDrive"]'' >> /etc/cloud/cloud.cfg'
timezone: Asia/Shanghai
ssh_deletekeys: 'false'
ssh_pwauth: true
chpasswd:
expire: false
user: administrator

However, after the virtual machine is started, I need to log in for the first time to set the administrator's password. It has not been changed to the password I set myself.
Below is the startup log file. Can you help analyze the reason why the administrator password injection failed?
cloudbase-init.txt

Hello @yule-sun,
Please check the current capabilities implemented in cloudbase-init regarding to user-data in cloud-config format: https://cloudbase-init.readthedocs.io/en/latest/userdata.html
In your case, as you provided the key user, which is not supported in cloudbase-init, cloudbase-init did not use that information.

I suggest using the users and groups keys to achieve the same result.
Thank you.

Hello,
If the username has been changed to Administrator, the plugin SetUserPasswordPlugin will set a random password if the metadata does not contain a password. Also, as the ovirt env does not set the cloudbase-init compatible cloud-config userdata, which should contain the users key values according to the documentation in https://cloudbase-init.readthedocs.io/en/latest/userdata.html, there is currently no way to set the username/password, unless this feature is implemented in cloudbase-init.
To implement the feature, changes are needed in the https://github.com/cloudbase/cloudbase-init/tree/master/cloudbaseinit/plugins/common/userdataplugins/cloudconfigplugins, to have the user and passwd keywords used for the user/password creation.
Can you please share the full config-drive contents from the Ovirt environment, to see how this feature can be implemented?
Thanks you.

Thank you very much for your reply.
This is the user_data.json

This is the meta_data.json

I created a new virtual machine. Before the virtual machine IP address took effect, I logged into the server and was prompted to change the Administrator password for the first login. However, after I logged in, the password of the Administrator account was reset to a random password. I want to know why this happened?
cloudbase-init-unattend.log
cloudbase-init.log

I don't know where to modify the user_data.json file because it is automatically generated when the computer boots. I also can't find a place to modify the chpasswd module. How should I set it up next to inject a password into the Administrator?

Hello @yule-sun,
According to https://www.ovirt.org/develop/release-management/features/virt/cloud-init-integration.html, there is no UI integration for the users key, required by cloudbase-init. But https://github.com/oVirt/ovirt-engine/blob/master/backend/manager/modules/restapi/interface/definition/src/main/resources/rsdl_metadata.yaml#L432 -> you can define programatically maybe the users key, according to the documentation from https://cloudbase-init.readthedocs.io/en/latest/userdata.html. I currently do not have an OVirt deployment where I can check. If that is not possible, the only way is to have the required features implemented in Cloudbase-Init.
Thanks.


Make unsupervised graphsage reproducible

This may be one of a number of PRs to come around reproducibility - this adds a bit of setup for testing for reproducibility, and updates various classes involved in unsupervised GraphSAGE.
The interaction between UnsupervisedSampler and OnDemandLinkSequence has changed a fair bit in order to make sure batches can be obtained in parallel without any guaranteed order, so I'm interested in feedback on the approach I've taken.
Related to #508
I'm not entirely sure I haven't completely broken unsupervised learning, so I'll go through the demos and maybe think about adding more tests, but I think this can still be reviewed in the mean time.

Cora unsupervised GraphSAGE demo
Things seem roughly correct - I guess I should also commit the new notebook outputs?
TSNE visualisation
develop

this branch

Accuracy of logistic regression classifier on top of embeddings
develop: 0.7555382821609017
this branch: 0.7652545666537116

Seems like the attri2vec embeddings notebook is broken due to this - working on a fix


⚠ Samsung has degraded performance

In 1212082, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2302 ms

Resolved: Samsung performance has improved in 461791f.


Complete/Streaming default for parsers (was: Generation of bytes module's parsers)

Personally I think that's the most data should be parsed with complete as it's provided full of length. It's ok when someone is trying to parse things such as network packages so they need nom::bytes::streaming module. But it's really rare case in my opinion.
So I propose to change all parsers such as streaming::le_u32 to complete::le_u32 and so on. Or there should be feature to switch mode.

I like such idea because it seems fine as complete data may be whole structure but not only part of it.

Complete can now be applied at top-level, and will apply to all fields.


Implement foreign bridge deployment command

Closes to: #105

@cducrest should the TrustlinesToken be part of this deployment command or is it related to the merkle drop?

@cducrest should the TrustlinesToken be part of this deployment command or is it related to the merkle drop?

I guess it should be its own deployment script.


Update watch to work with latest Rails conventions

Update watch with new Rails test naming pattern *_test.rb, as Rails 5 generators don't use test_*.rb anymore.

👍

Any chance of a merge? Would be nice to keep this gem alive.

@seanfcarroll lets ping committers to see if they can do it for us.
Can one of you help us?
@e2 @tmichel @rmm5t @ymai @yannlugrin @deivid-rodriguez @pschyska @kejadlen @leemhenson @mgarriott @doabit @chrisrhoden
@sbleon
@rmm5t
@genericsteele
@sbl
@sbrink
@chadoh
@itzki
@manewitz
@arronmabrey
@gma
@tmichel
@xymbol
@npostolovski
@rizzatti
@asifkalam
@farrel
@brandonweiss
@psyho
@statianzo
@sometimesfood
@Erkan-Yilmaz
@japgolly
@grimen
@BMorearty
@wilkerlucio
@nathany
@oriolgual
@emmanuel
@ezkl
Many thanks!

@LucasArruda, the only members of the guard-minitest team (and thus the only people with commit privileges) are @rymai, @yannlugrin, and @genericsteele. I and the other tagged folks do not have commit privileges for this repo. I suggest you try tracking those folks down. If you can't get in touch with them, you could try @thibaudgg, who is also an owner of the guard organization, and petition for commit access.

@sbleon thanks for the tip.
@xymbol got it. I'll close this PR for now then. Thanks!


Clarification in Belief Propagation notes

In the section Max-product message passing,

The key observation is that the sum and max operators both distribute over products.

I think this holds true only because the factors are always positive and might not hold in general. And should be mentioned in the notes.

Good point. Addressed in commit 8002af5.


Tensorflow Test Error

Hi,
I've installed the tensorflow binding for warp_ctc, the installation went without a hitch but after running the commandpython setup.py test I end up getting an error, I have pasted the output to the command below
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcublas.so locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcudnn.so locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcufft.so locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcuda.so.1 locally
I tensorflow/stream_executor/dso_loader.cc:111] successfully opened CUDA library libcurand.so locally
running test
running egg_info
writing warpctc_tensorflow.egg-info/PKG-INFO
writing top-level names to warpctc_tensorflow.egg-info/top_level.txt
writing dependency_links to warpctc_tensorflow.egg-info/dependency_links.txt
reading manifest file 'warpctc_tensorflow.egg-info/SOURCES.txt'
writing manifest file 'warpctc_tensorflow.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-2.7/warpctc_tensorflow/kernels.so -> warpctc_tensorflow
running test
running egg_info
writing warpctc_tensorflow.egg-info/PKG-INFO
writing top-level names to warpctc_tensorflow.egg-info/top_level.txt
writing dependency_links to warpctc_tensorflow.egg-info/dependency_links.txt
reading manifest file 'warpctc_tensorflow.egg-info/SOURCES.txt'
writing manifest file 'warpctc_tensorflow.egg-info/SOURCES.txt'
running build_ext
copying build/lib.linux-x86_64-2.7/warpctc_tensorflow/kernels.so -> warpctc_tensorflow
testBasicCPU (test_ctc_loss_op.CTCLossTest) ... I tensorflow/core/common_runtime/gpu/gpu_device.cc:951] Found device 0 with properties:
name: GeForce GTX TITAN X
major: 5 minor: 2 memoryClockRate (GHz) 1.2155
pciBusID 0000:03:00.0
Total memory: 11.92GiB
Free memory: 11.77GiB
I tensorflow/core/common_runtime/gpu/gpu_device.cc:972] DMA: 0
I tensorflow/core/common_runtime/gpu/gpu_device.cc:982] 0:   Y
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:03:00.0)
ok
testBasicGPU (test_ctc_loss_op.CTCLossTest) ... I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:03:00.0)
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:03:00.0)
ERROR
test_session (test_ctc_loss_op.CTCLossTest)
Returns a TensorFlow Session for use in executing tests. ... ok
test_basic_cpu (test_warpctc_op.WarpCTCTest) ... I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:03:00.0)
ok
test_basic_gpu (test_warpctc_op.WarpCTCTest) ... I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:03:00.0)
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:03:00.0)
ok
test_multiple_batches_cpu (test_warpctc_op.WarpCTCTest) ... I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:03:00.0)
ok
test_multiple_batches_gpu (test_warpctc_op.WarpCTCTest) ... I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:03:00.0)
I tensorflow/core/common_runtime/gpu/gpu_device.cc:1041] Creating TensorFlow device (/gpu:0) -> (device: 0, name: GeForce GTX TITAN X, pci bus id: 0000:03:00.0)
ok
test_session (test_warpctc_op.WarpCTCTest)
Returns a TensorFlow Session for use in executing tests. ... ok

======================================================================
ERROR: testBasicGPU (test_ctc_loss_op.CTCLossTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/sarunac4/RNN/warp-ctc/tensorflow_binding/tests/test_ctc_loss_op.py", line 227, in testBasicGPU
    self._testBasic(use_gpu=True)
  File "/home/sarunac4/RNN/warp-ctc/tensorflow_binding/tests/test_ctc_loss_op.py", line 220, in _testBasic
    self._testCTCLoss(inputs, seq_lens, labels, loss_truth, grad_truth, use_gpu=use_gpu)
  File "/home/sarunac4/RNN/warp-ctc/tensorflow_binding/tests/test_ctc_loss_op.py", line 83, in _testCTCLoss
    (tf_loss, tf_grad) = sess.run([loss, grad])
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 717, in run
    run_metadata_ptr)
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 915, in _run
    feed_dict_string, options, run_metadata)
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 965, in _do_run
    target_list, options, run_metadata)
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/client/session.py", line 985, in _do_call
    raise type(e)(node_def, op, message)
InvalidArgumentError: Cannot assign a device to node 'CTCLoss': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available.
         [[Node: CTCLoss = CTCLoss[_kernel="WarpCTC", ctc_merge_repeated=true, preprocess_collapse_repeated=false, _device="/device:GPU:0"](Const_3, Const, Const_1, CTCLoss/sequence_length)]]

Caused by op u'CTCLoss', defined at:
  File "setup.py", line 126, in <module>
    test_suite = 'setup.discover_test_suite',
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/setuptools/command/test.py", line 210, in run
    self.run_tests()
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/setuptools/command/test.py", line 231, in run_tests
    testRunner=self._resolve_as_ep(self.test_runner),
  File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 91, in loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File "/home/sarunac4/RNN/warp-ctc/tensorflow_binding/setup.py", line 126, in <module>
    test_suite = 'setup.discover_test_suite',
  File "/usr/lib/python2.7/distutils/core.py", line 151, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/setuptools/command/test.py", line 210, in run
    self.run_tests()
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/setuptools/command/test.py", line 231, in run_tests
    testRunner=self._resolve_as_ep(self.test_runner),
  File "/usr/lib/python2.7/unittest/main.py", line 95, in __init__
    self.runTests()
  File "/usr/lib/python2.7/unittest/main.py", line 232, in runTests
    self.result = testRunner.run(self.test)
  File "/usr/lib/python2.7/unittest/runner.py", line 151, in run
    test(result)
  File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
    test(result)
  File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
    test(result)
  File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
    test(result)
  File "/usr/lib/python2.7/unittest/suite.py", line 70, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/suite.py", line 108, in run
    test(result)
  File "/usr/lib/python2.7/unittest/case.py", line 395, in __call__
    return self.run(*args, **kwds)
  File "/usr/lib/python2.7/unittest/case.py", line 331, in run
    testMethod()
  File "/home/sarunac4/RNN/warp-ctc/tensorflow_binding/tests/test_ctc_loss_op.py", line 227, in testBasicGPU
    self._testBasic(use_gpu=True)
  File "/home/sarunac4/RNN/warp-ctc/tensorflow_binding/tests/test_ctc_loss_op.py", line 220, in _testBasic
    self._testCTCLoss(inputs, seq_lens, labels, loss_truth, grad_truth, use_gpu=use_gpu)
  File "/home/sarunac4/RNN/warp-ctc/tensorflow_binding/tests/test_ctc_loss_op.py", line 76, in _testCTCLoss
    sequence_length=seq_lens)
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/ops/ctc_ops.py", line 144, in ctc_loss
    ctc_merge_repeated=ctc_merge_repeated)
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/ops/gen_ctc_ops.py", line 162, in _ctc_loss
    name=name)
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 749, in apply_op
    op_def=op_def)
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 2380, in create_op
    original_op=self._default_original_op, op_def=op_def)
  File "/home/sarunac4/tensorflow/local/lib/python2.7/site-packages/tensorflow/python/framework/ops.py", line 1298, in __init__
    self._traceback = _extract_stack()

InvalidArgumentError (see above for traceback): Cannot assign a device to node 'CTCLoss': Could not satisfy explicit device specification '/device:GPU:0' because no supported kernel for GPU devices is available.
         [[Node: CTCLoss = CTCLoss[_kernel="WarpCTC", ctc_merge_repeated=true, preprocess_collapse_repeated=false, _device="/device:GPU:0"](Const_3, Const, Const_1, CTCLoss/sequence_length)]]

----------------------------------------------------------------------
Ran 8 tests in 0.616s

FAILED (errors=1)

Please let me know how to fix this.
Regards,
Deepak

same question! please let me know how to fix this!!!
thank you!

same questions ,anyone can solve it ?

What GPU do you have installed?

The NVIDIA Titan X GPU, as recommended.
On Fri, Dec 2, 2016 at 8:32 PM Bryan Catanzaro<EMAIL_ADDRESS>wrote:

What GPU do you have installed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/baidu-research/warp-ctc/issues/55#issuecomment-264613267,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AS_rDL00GN2c3TRV4WRFj3xy4BA1uEhhks5rEOKtgaJpZM4K-OQ2
.

NVIDIA GeForce GTX 960 ,Cuda compilation tools, release 7.5, V7.5.17
Is there anything wrong about my GPU? @bryancatanzaro

I have not been able to reproduce this.  Seems like this would happen if the code wasn't being compiled for the right family of GPUs (but both Titan X and GTX960 should work fine) or if the REGISTER_KERNEL_BUILDER in ctc_op_kernel.cc wasn't running/working.  Not sure why that would happen.  Are you using a fairly recent version of TensorFlow?

Hi @jaredcasper,
I re-ran all the installation commands after removing the previous installation, after which I was able to execute both test_cpu and test_gpu in the build folder. But after installing the Tensorflow binding I am unable to run the Tensorflow tests.
The version of Tensorflow I am using is 0.12.1, as for the cuda version, it is release 8.0, V8.0.44 and the GPU I am using is NVIDIA GeForce GTX TITAN X.
The error being thrown is given below
from warpctc_tensorflow import ctc
  File "test_warpctc_op.py", line 3, in <module>
    from warpctc_tensorflow import ctc
  File "/home/sarunac4/anaconda2/lib/python2.7/site-packages/warpctc_tensorflow-0.1-py2.7-linux-x86_64.egg/warpctc_tensorflow/__init__.py", line 7, in <module>
    _warpctc = tf.load_op_library(lib_file)
  File "/home/sarunac4/anaconda2/lib/python2.7/site-packages/tensorflow/python/framework/load_library.py", line 64, in load_op_library
    None, None, error_msg, error_code)
tensorflow.python.framework.errors_impl.NotFoundError: /home/sarunac4/anaconda2/lib/libreadline.so.6: undefined symbol: PC

But strangely when in the python environment and I import warpctc_tensorflow I do not get any such errors. I am unable to figure out what the problem is. I have also given the details of the python environment
Python 2.7.12 |Anaconda 4.2.0 (64-bit)| (default, Jul  2 2016, 17:42:40)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2

Please let me know how I can fix this.

There was a mismatch between the TensorFlow source tree version set as TENSORFLOW_SRC_PATH and the version installed on my system. On matching them the installation went through smoothly and so did the testing.


Make StateNotifierProvider, StateProvider, AutoDisposeStateNotifierProvider, and AutoDisposeStateProvider all implement a joint base interface that introduces the notifier field

Is your feature request related to a problem? Please describe.
Instead of writing ref.read(foo.notifier), I'd like to do ref.mut(foo) (mutate foo). So, I thought to build an extension function on WidgetRef. However, there are various incarnations of with incompatible base types, so I ended up with:
extension WidgetRefExt on WidgetRef {
  Notifier mut<Notifier extends StateNotifier<State>, State>(
          StateNotifierProviderOverrideMixin<Notifier, State> provider) =>
      read(provider.notifier);

  Notifier mut2<Notifier extends StateNotifier<State>, State>(
          StateNotifierProvider<Notifier, State> provider) =>
      read(provider.notifier);

  Notifier mut3<Notifier extends StateNotifier<State>, State>(
          AutoDisposeStateNotifierProvider<Notifier, State> provider) =>
      read(provider.notifier);
}

and a variant:
extension WidgetRefExt on WidgetRef {
  Notifier mut<Notifier extends StateNotifier<State>, State>(
          StateNotifierProviderOverrideMixin<Notifier, State> provider) =>
      read(provider.notifier);

  void mutState<State>(StateProvider<State> provider, State state) =>
      read(provider.notifier).state = state;

  void mutState2<State>(AutoDisposeStateProvider<State> provider, State state) =>
      read(provider.notifier).state = state;
}

Describe the solution you'd like
Make StateNotifierProvider, StateProvider, AutoDisposeStateNotifierProvider, and AutoDisposeStateProvider all implement a joint base interface that introduces the notifier field.

:wave:
That's not something I'm comfortable adding. I do not want providers to share an interface other than the current one, as this gives me the freedom to make changes without impacting other providers.
And ultimately once we have metaprogramming, what you're truly asking for (ref.mut) will be implemented, and not by relying on .notifier (which is an implementation detail). So I'd suggest simply waiting for this

I'll close this as that's not something I plan to implement.


HTML

HTML
User Story
As a bootcamp student I want the prework notes to be structured on a webpage so that I can easily find and read information
Acceptance Criteria
GIVEN a Prework Study Guide website When I visit the website in my browser THEN I see four boxes titled HTML, CSS, Git, and JaveScript with associated notes listed

Added HTML to main.


Recipe AddOrUpdateAnnotationAttribute. Don't overwrite if attribute exists.

Hello,
I would recommend setting one more condition for this recipe, as sometimes you don't want to overwrite an attribute if it is already defined, what do you think?
Thanks in advance!

Thanks @dianamaesan, Adding an option to not update existing attributes is a good recommendation, I will add this to the backlog.

Fixed by https://github.com/openrewrite/rewrite/issues/1761


vg environment name does not display in the zsh

Hi,
I'm using POWERLEVEL9K theme on zsh. When I activate a virtual environment, the theme doesn't change to show the name of the current environment. I sometimes forgot to deactivate it. How to set up zsh for showing the name of activated environment?
thanks
P.S: I'm using OSX and my zsh is the latest version.

Closing this as I think this is clear now. Feel free to reopen if you still have issues.

I fixed it. Thank you for $VIRTUALGO variable. I add the following to my .zshrc:
zsh_vg_env_name(){
    local color='%F{yellow}'
    if [ ! -z "$VIRTUALGO" ]; then
        echo -n "%{$color%}$VIRTUALGO%{%f%}"
    fi
}

POWERLEVEL9K_CUSTOM_VG_ENV_NAME="zsh_vg_env_name"
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status custom_vg_env_name root_indicator background_jobs history time)


Crashes on [GPUImageContext presentBufferForDisplay]

I've recently started using Crashlytics for my app and the single most crash occurs with the call in the title. Here's a full stack trace - is this something I can fix on my end?
Thread 3: Crashed: com.sunsetlakesoftware.GPUImage.openGLESContextQueue
0  libGPUSupportMercury.dylib     0x33506932 gpus_ReturnNotPermittedKillClient + 9
1  libGPUSupportMercury.dylib     0x335073d1 gpusSubmitDataBuffers + 104
2  IMGSGX543RC2GLDriver           0x2d9b4189 SubmitPackets + 124
3  GLEngine                       0x30e3bcb1 gliPresentViewES + 168
4  OpenGLES                       0x30e46137 -[EAGLContext presentRenderbuffer:] + 62
5  InstaPDF                       0x001449d3 -[GPUImageContext presentBufferForDisplay] + 52042
6  InstaPDF                       0x001407b1 -[GPUImageView presentFramebuffer] + 35112
7  InstaPDF                       0x00140b85 __44-[GPUImageView newFrameReadyAtTime:atIndex:]_block_invoke + 36092
8  InstaPDF                       0x00144ded runSynchronouslyOnVideoProcessingQueue + 53092
9  InstaPDF                       0x00140a17 -[GPUImageView newFrameReadyAtTime:atIndex:] + 35726
10 InstaPDF                       0x0013e051 -[GPUImageFilter informTargetsAboutNewFrameAtTime:] + 25032
11 InstaPDF                       0x0013f201 -[GPUImageFilter newFrameReadyAtTime:atIndex:] + 29560
12 InstaPDF                       0x0014d433 -[GPUImageTwoInputFilter newFrameReadyAtTime:atIndex:] + 87466
13 InstaPDF                       0x0014a27f -[GPUImageGrayscaleFilter informTargetsAboutNewFrameAtTime:] + 74742
14 InstaPDF                       0x0013f201 -[GPUImageFilter newFrameReadyAtTime:atIndex:] + 29560
15 InstaPDF                       0x0014a645 -[GPUImageFilterGroup newFrameReadyAtTime:atIndex:] + 75708
16 InstaPDF                       0x00142e61 -[GPUImageVideoCamera updateTargetsForVideoCameraUsingCacheTextureAtWidth:height:time:] + 45016
17 InstaPDF                       0x001431d5 -[GPUImageVideoCamera processVideoSampleBuffer:] + 45900
18 InstaPDF                       0x00143cc7 __74-[GPUImageVideoCamera captureOutput:didOutputSampleBuffer:fromConnection:]_block_invoke + 48702
19 libdispatch.dylib              0x394760c3 _dispatch_call_block_and_release + 10
20 libdispatch.dylib              0x3947ae7b _dispatch_queue_drain + 374
21 libdispatch.dylib              0x39477f93 _dispatch_queue_invoke + 42
22 libdispatch.dylib              0x3947b745 _dispatch_root_queue_drain + 76
23 libdispatch.dylib              0x3947b9c5 _dispatch_worker_thread2 + 56
24 libsystem_pthread.dylib        0x395a5dff _pthread_wqthread + 298

@BradLarson Hi Brad, I'm now getting this issue on iOS 9 when the user presses on the power button. It works ok when the user presses the home button. I'm calling pauseCameraCapture when UIApplicationWillResignActiveNotification gets triggered but the crash happens before this event gets triggered when the user taps the power button. Should I open a new issue?

Hey guys i'm having the same issue, when app gose to background on ios 9 from the home button it works great..
Same as chico im dealing with that crash when i click the power button
im doing what you suggested to stop/pause the video with [videoCamera stopCameraCapture]
and yet when clicking home button it crashes....
any idea ?

@chico did you manged to solve it ?
Bump? @BradLarson

I'm afraid not @kashkashio :(

Aww,
This happens only when i press the power button, when i just go to background it works well when im pausing and resuming the stream according to app state.
but that bastard power button... arghh.... i hope @BradLarson will come up with somthing.
Thx @chico good luck m8

yup @kashkashio, it's very frustrating, really skews my crash analytics every time a user presses the power button :(

Lol @chico at least you got the power button pressed analytics, thats must be something;)
Sent from my iPhone

On Jan 14, 2016, at 18:52, Chico Charlesworth<EMAIL_ADDRESS>wrote:
yup @kashkashio, it's very frustrating, really skews my crash analytics every time a user presses the power button :(
—
Reply to this email directly or view it on GitHub.

well, it tells me roughly 5% of users tap on the power button to exit the app :)

Well, you see it was useful? now we both know that 5% aren’t worth to keep wasting time….
Good luck bro :) @chico

We have the same problem, no solution, too.  ┑(￣Д ￣)┍

We are all waiting for salvation from Brad... @BradLarson @chico @qiaoxueshi

@kashkashio @chico @qiaoxueshi  We have a similar problem when playing an mp4 video file using GPUImageMovie and GPUImageView. We tried a workaround which seems to work: Instead of using the serial "com.sunsetlakesoftware.GPUImage.openGLESContextQueue" queue, we used the main thread. Something like in the init method of GPUImageContext:
// _contextQueue = dispatch_queue_create("com.sunsetlakesoftware.GPUImage.openGLESContextQueue", NULL);
_contextQueue=dispatch_get_main_queue();

I know that @BradLarson intentionally did not use the main thread due to some advantages such as performance improvement but other than the performance point, is there any potential problem making the change above?

the same problem for iOS 9 it's top crash on our crashlist -[GPUImageContext presentBufferForDisplay].

found a solution to handle a power button by Darwin notifications
`//
//  DarwinNotificationCenter.h
//  StarMaker
//
//  Created by Artem on 5/30/16.
//  Copyright © 2016 StarMaker Interactive. All rights reserved.
//
#import <Foundation/Foundation.h>
static NSString *UIApplicationLockstateDarwinNotification = @"com.apple.springboard.lockstate";
static NSString *UIApplicationLockcompleteDarwinNotification = @"com.apple.springboard.lockcomplete";
static NSString *UIApplicationHasBlankedScreenDarwinNotification = @"com.apple.springboard.hasBlankedScreen";
@interface DarwinNotificationCenter : NSObject

(instancetype)defaultCenter;

(void)registerForNotificationName:(CFStringRef)name callback:(void (^)(void))callback;

@end
`
`//
//  DarwinNotificationCenter.m
//  StarMaker
//
//  Created by Artem on 5/30/16.
//  Copyright © 2016 StarMaker Interactive. All rights reserved.
//
#import "DarwinNotificationCenter.h"
@implementation DarwinNotificationCenter
{
NSMutableDictionary * handlers;
}

(instancetype)defaultCenter {
static id instance = NULL;
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
instance = [[self alloc] init];
});
return instance;
}

(instancetype)init {
self = [super init];
if (self) {
handlers = [NSMutableDictionary dictionary];
}
return self;
}

(void)registerForNotificationName:(CFStringRef)name callback:(void (^)(void))callback {
handlers[(__bridge NSString *)name] = callback;
CFNotificationCenterRef center = CFNotificationCenterGetDarwinNotifyCenter();
CFNotificationCenterAddObserver(center, (__bridge const void *)(self), defaultNotificationCallback, name, NULL, CFNotificationSuspensionBehaviorDeliverImmediately);
}

(void)notificationCallbackReceivedWithName:(NSString *)name {
void (^callback)(void) = handlers[name];
callback();
}

void defaultNotificationCallback (CFNotificationCenterRef center,
void *observer,
CFStringRef name,
const void *object,
CFDictionaryRef userInfo) {
NSString *identifier = (__bridge NSString *)name;
[[DarwinNotificationCenter defaultCenter] notificationCallbackReceivedWithName:identifier];
NSLog(@"DarwinNotificationCenter name: %@", name);
}

(void)dealloc {
CFNotificationCenterRef center = CFNotificationCenterGetDarwinNotifyCenter();
CFNotificationCenterRemoveEveryObserver(center, (__bridge const void *)(self));
}
@end
`

to use this with swift add #import "DarwinNotificationCenter.h" to your briging header.

Same problem :(

https://developer.apple.com/library/content/qa/qa1766/_index.html


workspace dependency breaks default-features = false

Expected Behavior
default-features = false on async-graphql should turn off the email-validator, tempfile, playground and graphiql features on async-graphql.
Actual Behavior
it does – as long as you don't depend on any other projects from the async-graphql workspace.
Steps to Reproduce the Problem

create an empty cargo project and add async-graphql with default-features = false to the dependencies.
also add a dependency on, for example, async-graphql-axum (which has default-features = false on the workspace dependency, but this does not appear to work)
cargo check once, then check the Cargo.lock file to find unexpected packages in there, like tempfile or handlebars.

Specifications

Version: 5.0.6 – confirmed against git master as well
Platform: any
Subsystem: any

Possible solutions
I have verified that locally, I can fix this by changing one line in the workspace Cargo.toml, namely
[workspace.dependencies]
-async-graphql = { path = ".", version = "5.0.6" }
+async-graphql = { path = ".", version = "5.0.6", default-features = false }

however, this is obviously a major breaking change because it will mean that default-features = false works again, so I'm not sure how to proceed here. I also don't know if this change will break anything else.

I think this can be closed?

oh great it was released as a minor point release despite being a major breaking change :sweat:

to make more clear what I mean: there is a public struct field in UploadValue (content) which changes type based on a feature: https://github.com/async-graphql/async-graphql/blob/master/src/types/upload.rs#L11
someone accessing that field directly may have their code randomly break if they have default-features = false suddenly work correctly again

this was also not the case in 4.0 (as the tempfile feature didn't exist yet)

I suggest the latest release be yoinked immediately as to not break people's code when they run cargo update @sunli829

I think adding a feature in Cargo.toml is not a big issue. Even if this can be called breaking change. Is not something to fix in code (which is definitely more challenging). Am I wrong?

Yeah if you explicitly don't care about following semver, putting this out in a minor release is fine of course.
I'm gonna try to explain better with an example.
Imagine a project with this in the dependencies:
async-graphql = { version = "5.0", default-features = false }

with a graphql handler like this:
async fn create_asset(&self, ctx: &Context<'_> file: Upload) -> Result<Uuid> {
    let file = file.value(ctx)?.content;
    let content = tokio::task::spawn_blocking(move || -> Result<_> {
        let mut buf = Vec::with_capacity(size);
        file.read_to_end(&mut buf)?;
        Ok(buf)
    })
    .await??;
    do_something_else(&content).await
}

when 5.0.6 is in the lockfile, this will compile fine (content is of type File).
once the user runs cargo update, which is not expected to break your code, the lockfile will depend on 5.0.7 it will no longer compile (because content is of type Bytes now).

closing in favour of #1263 I guess


ETL hangs forever querying ArangoDB

This is likely due to another bug in pyArango. https://github.com/ArangoDB-Community/pyArango/issues/160
Bug introduced after latest release on pypi, probably resolved by using release instead of upstream git. The changes desired have been merged, latest release was last September and merges occurred in March.

Related to #59


[stable/mongodb] Primary/Secondary Affinity

Is your feature request related to a problem? Please describe.
Scheduling Primary and Secondary MongoDB nodes with the same affinity rules (.Values.affinity) increases the likelihood of complete MongoDB cluster outages (e.g. all Pods in both StatefulSets are scheduled to the same k8s node and that node blows up - StatefulSets by design do not reschedule Pods if a node goes down, so this means the MongoDB instance will be down until manual intervention is taken).
Describe the solution you'd like
Values.yml should support independent affinity rules for Primary (.Values.affinityPrimary) and Secondary (.Values.affinitySecondary) nodes, in a similar way that the Arbiter (.Values.affinityArbiter) is granted such a status.
Other Solutions
By default, Primary nodes should be given anti-affinity for Secondary nodes, and Secondary nodes should be given anti-affinity to Primary nodes.
I believe either of these solutions will work for most users of this chart, but I'm partial to giving teams the freedom to choose (option 1). Both alternatives increase the robustness of the MongoDB Cluster and prevent scheduling of the entire cluster to a particular k8s node.
Thoughts?

A workaround is creating an anti-affinity using a label shared between Primary and Secondary nodes - release:
affinity:
  podAntiAffinity:
    preferredDuringSchedulingIgnoredDuringExecution:
    - weight: 100
      podAffinityTerm:
        labelSelector:
          matchExpressions:
          - key: release
            operator: In
            values:
            - mongodb-test
        topologyKey: "kubernetes.io/hostname"


API V2 complete controller set

(refs #9866)
There are some controllers missing in V2.

[x] configuration @rishabhgrg (https://github.com/TryGhost/Ghost/pull/10056)
[x] db @gargol (https://github.com/TryGhost/Ghost/pull/10051)
[x] redirects @gargol  (https://github.com/TryGhost/Ghost/pull/10053) <-- ~blocked by #10051~)
[x] oemed @rishabhgrg https://github.com/TryGhost/Ghost/pull/10057

[x] Move generic checks to validation from query (https://github.com/TryGhost/Ghost/pull/10057#discussion_r230300407)

[x] slack @rishabhgrg (https://github.com/TryGhost/Ghost/pull/10086)
[x] themes @kirrg001
[x] authentication @gargol

[x] needs cleanup before moving to v2!!! (https://github.com/TryGhost/Ghost/pull/10893)
[x] migration (https://github.com/TryGhost/Ghost/pull/10950)

[x] schedules @gargol (https://github.com/TryGhost/Ghost/pull/10975)

[ ] post imlementation - take into account https://github.com/TryGhost/Ghost/pull/10726#issuecomment-489557162 (scheduler adapter changes)

Need help with this? What steps should I take to migrate a controller to the v2 API?

@m1guelpf Thanks for your interest. The Ghost team is working on this issue.
I'd suggest you choose an issue from this list (issues which are labelled with "help wanted" and/or "good-first-issue".

🎉


ERR_REQUIRE_ESM Build failure after some other package in my app installed new strip-ansi

I'm on 3.0. Error log:
[webpack-cli] Failed to load '/webapp/webpack.config.js' config
[webpack-cli] Error [ERR_REQUIRE_ESM]: require() of ES Module /webapp/node_modules/strip-ansi/index.js from /webapp/node_modules/webpack-bundle-tracker/lib/index.js not supported.
Instead change the require of /webapp/node_modules/strip-ansi/index.js in /webapp/node_modules/webpack-bundle-tracker/lib/index.js to a dynamic import() which is available in all CommonJS modules.
    at Object.<anonymous> (/webapp/node_modules/webpack-bundle-tracker/lib/index.js:23:19)
    at Object.<anonymous> (/webapp/webpack.config.js:5:23)
    at async WebpackCLI.tryRequireThenImport (/webapp/node_modules/webpack-cli/lib/webpack-cli.js:232:34)
    at async loadConfigByPath (/webapp/node_modules/webpack-cli/lib/webpack-cli.js:1406:27)
    at async WebpackCLI.loadConfig (/webapp/node_modules/webpack-cli/lib/webpack-cli.js:1515:38)
    at async WebpackCLI.createCompiler (/webapp/node_modules/webpack-cli/lib/webpack-cli.js:1781:22)
    at async WebpackCLI.runWebpack (/webapp/node_modules/webpack-cli/lib/webpack-cli.js:1877:20)
    at async Command.<anonymous> (/webapp/node_modules/webpack-cli/lib/webpack-cli.js:944:21)
    at async Command.parseAsync (/webapp/node_modules/webpack-cli/node_modules/commander/lib/command.js:935:5)
    at async Command.<anonymous> (/webapp/node_modules/webpack-cli/lib/webpack-cli.js:1356:13)
    at async Command.parseAsync (/webapp/node_modules/webpack-cli/node_modules/commander/lib/command.js:935:5)
    at async WebpackCLI.run (/webapp/node_modules/webpack-cli/lib/webpack-cli.js:1360:9)
    at async runCLI (/webapp/node_modules/webpack-cli/lib/bootstrap.js:9:9) {
  code: 'ERR_REQUIRE_ESM'

@dmt0 what's your webpack version?

5.89.0

Can you check which version of strip-ansi you have in your package.json or package-lock.json?
Perhaps your project is using the version 7, which isn't compatible with require imports this library uses.
If that's the case, we can avoid this dependency by manually embedding in the code the ansi-regex:
https://github.com/chalk/strip-ansi/blob/main/index.js
https://github.com/chalk/ansi-regex/blob/main/index.js
Contributions are welcome!

Yeah, that's correct. I did an update and one of my other dependencies installed version 7. I had to roll back the updates and it's all good.

Good to know the issue is resolved for you! I will leave this open so we can avoid this dependency in the future.

Well, it's not really resolved, since I can't update certain packages.
Also more dependencies will switch to strip-ansi v7 over time, and you'll probably have more people come to chime in here.


Fix mmt4d_test: actually dont use unsupported instructions.

This was regressed by #10485.
Also, report the skipped/ran status on stdout not stderr, because GTest output goes there so that's how we get it consistently interleaved.
Also, fix a numerical bug in the i8mm kernel introduced in #10476. It was caught by mmt4d_test, not sure how I didn't notice.

Thanks for fixing this

Thanks for reporting!


consider moving to nebula-contrib org?

Dear @SwordElucidator
This project is amazing :) would you consider moving this project to the NebulaGraph Community Org: https://github.com/nebula-contrib/ ?
It's OK if it's not comfortable to do so, just like the norm(https://github.com/zhihu/norm) project isn't under nebula-contrib, but we would ask creators in case they would like to.
Thanks!
BR//Wey

Yeah I would like to do so, though I'm still considering about the implementation and project structure. I would spend some more time to learn from the repos in the community and improve this repo, then it would be nice to move it.

Yeah I would like to do so, though I'm still considering about the implementation and project structure. I would spend some more time to learn from the repos in the community and improve this repo, then it would be nice to move it.

That's awesome, please take your time @SwordElucidator.
For anything I could help out, let me know.

@wey-gu  Just a small question. I found that currently an edge will only have one edge type. Will there be any plans to support multi edge types for a single edge in the future? e.g. a human relation may consist multiple aspects. Obviously different aspects could be represented by different edges, but I still want to make sure that this will still be the best practice in the future. Thank you!

The edge type is tied with edge identity due to the edge type field is part of its 4-tuple key design. Unlike vertex.
Thus it's kind of double standard when we're talking about types of vertex to vertex instance vs types of edge to edge instance.

@wey-gu  Thank you for reply! I'll contact you ;)

@Shinji-IkariG could you please kindly help @SwordElucidator with the repo moving?

As admin please transfer the repo to me and I will transfer to nebula-contrib as soon as I receive the repo

@Shinji-IkariG  I've sent the transfer request. Please check it.


[Bug] [0.36.0] dependencies accidently installed?

Reproducible in vscode.dev or in VS Code Desktop?

[X] Not reproducible in vscode.dev or VS Code Desktop

Reproducible in the monaco editor playground?

[X] Not reproducible in the monaco editor playground

Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Reproduction Steps
npm i monaco-editor
Actual (Problematic) Behavior
Since this commit: https://github.com/microsoft/monaco-editor/commit/10577a0641d9a12308e77a3116e5896da9f3d70f#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519
3 dependencies are now installed for monaco-editor consumers:
{
	"dependencies": {
		"@types/shelljs": "^0.8.11",
		"pin-github-action": "^1.8.0",
		"shelljs": "^0.8.5"
	}
}

Expected Behavior
I'm guessing these should be devDeps
Additional Context
No response

Thanks for point this out!
I accidentally added these dependencies as normal dependency, though they should have been dev dependencies.


Using multiple where conditions in a list in single where method

Using multiple where conditions in a list in single where method as eloquent usage (Issue #103 )

Thanks!


prepare parser state for future work

could you give an example on how the state might be used in the future?

could you give an example on how the state might be used in the future?

For any control we need in parsing progress by looking parsing state. For now, this is just an example PR, showing how to write such program. This is fine to not be merged. Anyway, closed PR still keep the code


docs(api): Describe Flex-style deck slot names in the Python Protocol API

Overview
Update https://docs.opentrons.com for the Flex's new style of deck slot names, like "A1". Closes RTC-286.
Changelog

Update the reference documentation for any method that takes a deck slot as a parameter, or returns a deck slot.
Add a new top-level "Deck Slots" page. This is a central place to introduce the two formats, and to describe their interchangeability. The reference documentation links to it.

And an unrelated thing that I'm squeezing into this PR:

Make sure the OFF_DECK constant will get documented and cross-referenced properly in the future, when we publicize move_labware(). This takes a bit of Sphinx trickery.

Review requests
Preview on http://sandbox.docs.opentrons.com/deck_label_docs/v2/.

This is intended to be a full, complete, comprehensive update of every place in the Python Protocol API that deals with deck slots. I worked off of @jbleon95's list. Please let me know if it looks like we missed any place.
Do we agree with adding the new "Deck Slots" page? Do we agree with its position in the table of contents?

Risk assessment
Low.

Failing tests appear to be unrelated, from tests/opentrons/hardware_control/integration/test_thermocycler.py flakiness.


Don't filter on required mods list

Sometimes a search a mod in the mod manager and I install/enable it and it shows the warning that there are required dependencies that need to be enabled. However, the required mods list is also filtered by my search and so I have to remove the search to be able to see the required mods, and I find this really annoying, so I think it would be better to no filter on the required mods list at all (I don't know if there is a use case where such filter would be desired).
Before:

After:

Additionally, by doing this I found a bug. The START GAME button is only disabled if there are non-filtered required mods, so if we filter them then the button is enabled. So this change also fixes that bug.

I'm just gonna trust that this works


cargo-xbuild doesn't build with older nightlies

My project uses rust nightly 2021-03-23 and since some time I can't build cargo-xbuild anymore, on account of this error:
error[E0658]: use of unstable library feature 'btree_retain'
   --> /home/xxx/.cargo/registry/src/github.com-1ecc6299db9ec823/serde_json-1.0.83/src/map.rs:286:18
    |
286 |         self.map.retain(f);
    |                  ^^^^^^
    |
    = note: see issue #79025 <https://github.com/rust-lang/rust/issues/79025> for more information
    = help: add `#![feature(btree_retain)]` to the crate attributes to enable

With older serde_json(1.0.59) it builds fine.
The linked issue was fixed in 2021 Apr 14 nightlies, so updating the toolchain to that fixed my issue. The other solution is to request a specific version of serde_json in Cargo.toml.
I'm not sure which is the better fix, but I think at least updating the README to indicate the latest supported toolchain is needed.

Right, that didn't occur to me, no idea why. Sorry for the noise.


arch: Windows Issue: Cairo widgets going black

I recently started to use DPF for some of my projects which in turn use pugl. I run into issues with cairo under windows.
Widgets tend to black out after a short while and there is now way to repaint them other then restart the host.
This is the original issue reported on DPF:
https://github.com/DISTRHO/DPF/issues/437
So I gone check what happens and end up with this patch.
https://github.com/brummer10/ToneTwistPlugs/blob/main/pugl.patch
It create a cairo_image_surface on puglWinCairoEnter and provide the cairo_t* pointer for it as DrawContext instead using a HBITMAP. Now all cairo drawings happen outside WM_PAINT. Then, on puglWinCairoLeave we do the paint (BeginPaint -> create win32 surface, copy the image surface over, destroy anything and EndPaint.) I tested this on windows11 and it works perfect. Surly it could be optimized as we didn't relay need to create and destroy the cairo_image_surface on each WM_PAINT, this is only necessary on resize, otherwise we could reuse it. Just I can't see were resizing is handled in the win_cairo source.

Doing some optimisation. Now the cairo image surface will be reused as long the size didn't changed, if the size changed it will be re-created to match the new size.
https://github.com/brummer10/StompTuner/blob/main/pugl.patch


Billing Address is required for checkout, contrary to the API spec

Build context
Project version
v0.1.0
Summary
Customers should not be required to submit any address during checkout, unless they are a business or have requested to include shipping.
How to Reproduce
Method A: Through the frontend

Start the frontend and navigate to it in your browser.
Add products to your shopping cart.
Proceed through the checkout page as normal, requesting a normal Bill as billing method and filling all important details.
Except addresses: do not request shipping and do not provide any address at all.
Hit Request transaction or the equivalent "submit" action button.
The request should have failed.

Method B: Interfacing

Get a JSON representing a valid SellPojo object (the API spec document has some examples)
Ready it through a third-party (curl, Postman, etc).
Ensure billingAddress is an invalid address (can be absent or null).
Send a request to /public/checkout using this JSON.
It should respond with a 400 Bad Request, indicating that the billingAddress is not meeting the validation requirements.

Expected behavior
In either of these cases, the request should have succeeded, leaving the respective billingAddress as null and proceeding through the internal checkout process.

This is likely still present in v0.2.0.


FATAL: server login failed: wrong password type

Describe the bug
I've worked on updating the repo to what's required to run on Google (mostly updating versions and getting rid of deprecated modules). Here's my fork: https://github.com/social-cascade/terraform-google-cloud-sql-pgbouncer. I've tried getting this working with a database that was already set up and a fresh setup using the examples/postgres_private/ but in both cases once I finally got things running, I'd get the error FATAL: server login failed: wrong password type when trying to log into it.
Steps to reproduce
Set up PGBouncer using terraform on my fork.
Try to connect to the database.
Expected behavior
Connect to the database.
** Additional Context **
Is it possible that a SQL Proxy needs to be added to the infrastructure setup? https://github.com/GoogleCloudPlatform/cloud-sql-proxy/issues/1099

Describe the bug
I've worked on updating the repo to what's required to run on Google (mostly updating versions and getting rid of deprecated modules). Here's my fork: https://github.com/social-cascade/terraform-google-cloud-sql-pgbouncer. I've tried getting this working with a database that was already set up and a fresh setup using the examples/postgres_private/ but in both cases once I finally got things running, I'd get the error FATAL: server login failed: wrong password type when trying to log into it.
Steps to reproduce
Set up PGBouncer using terraform on my fork. Try to connect to the database.
Expected behavior
Connect to the database.
** Additional Context **
Is it possible that a SQL Proxy needs to be added to the infrastructure setup? GoogleCloudPlatform/cloud-sql-proxy#1099

Hi, have you managed to make it all work?
I am also trying to create connection pooler for prisma, but keep failing for days 😣. I tried this and also yours (forked) repo, but in both cases I can not get past prisma error saying that it can't reach the database.
If you made it work, please, it would be extremly helpful if you could create step by step instuctions as you pointed in previous issue.

I have not been able to get it to work. I even posted on the pgbouncer gitter chat and didn't get much of a response there. I had to give up and move on for now. I hope Google implements a built in solution soon as they have an issue open for that.

Is it possible this is because this Pgbouncer image uses md5 encryption for passwords while new versions of Postgres in CloudSQL use scram-sha-256?
You should be able to see what is your default database encryption by running show password_encryption

@joanaferreira0011 great suggestion. I had to struggle with quite a few steps to get it working, I am playing with alloydb, but I think the problems are the same, so here are my steps:

Allow postgresql user to querypg_shadow by changing database flags in the console (or whatever method you prefer). You can create a separate user for pgbouncer as described here
Confirm database encryption as you mentioned:

postgres=> show password_encryption;
 password_encryption
---------------------
 scram-sha-256

Set the following settings for pgbouncer, I am using this helm chart for deployments, and settings are based on that (just adding here for complete reference) :

settings:
  auth_type: scram-sha-256
  auth_query: "auth_query = SELECT usename, passwd FROM pg_shadow WHERE usename='$1'"
databases:
  postgres:
    auth_user: postgres
users:
  postgres: XXXXXXXXX

Validate postgresql user can perform auth_query after changing database flags:

postgres=> SELECT usename, passwd FROM pg_shadow WHERE usename='postgres';
 usename  |                                                                          passwd
----------+-----------------------------------------------------------------------------------------------------------------------------------------------------------
 postgres | SCRAM-SHA-256$4096:XXXXXX

Build an image with a newer version of pgbouncer based on the dockerfile from the same repo as support for  scram-sha-256 comes in 1.11.x version


Clarifiy browser support section

@kaylubbaycur,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@kaylubbaycur : Thanks for your contribution to the Azure documentation! The author, @MarkusVi, has been notified to review your proposed change.

#sign-off

@MarkusVi @kaylubbaycur
The public repo is not appropriate for adding new content. If you have new content, please use the private repo, azure-docs-pr.
I'm closing this pull request so that you can add the article in the private repository.
Here's help if you need to get started in the private repo.
You can Move content between the public and private repos.
Thanks

@kaylubbaycur,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot