Combining "included" initialize methods with new initialize method definition on a class fails.

I'm able to add initialize methods using modules. But, when I combine modules with a initialize definition on the same Class, it fails to compile:
module A
  def initialize(a : String)
    puts a
  end # === def initialize
end # === module A

module B
  def initialize(a, b)
    puts a, b
  end # === def initialize
end # === module B

class C
  include A
  include B

  def initialize(a, b) # This needs to be removed in order to compile
    puts a, b
  end # === def initialize
end # === class B

C.new("a")
C.new("a", "b")

Error:
wrong number of arguments for 'C.new' (given 1, expected 2)
Overloads are:
 - C.new(a, b)

The last ancestor defining an initialize wins and shadows any other, no matter how overloads there were previously: https://carc.in/#/r/7r08
So this is by design for now. I guess at some point we might enforce defining that all overloads defined in parent ancestors are somehow called by the initializes in the concrete class or something like that, similar to Java.


Some keys stuck selected

Hi, I have this issue when some keys stuck selected and I can deselect them ONLY when pressing them again.
This is very often reproducible issue
I have iOS 17.5.1 and iPhone 14 pro and KeyboardPro 8.7.2

I've also noticed this. It happens only on those keys close to the toolbar area. Which has an overlapping touch area. Sometimes, when you try to click on toolbar buttons, it gets the buttons below.

@diegodotta Have you tried applying a Z index to the toolbar. It shouldn't be needed, but it should at least make sure that the toolbar content is above any extended button tap areas (which shouldn't exist).

@yberdnikov SwiftUI sometimes doesn't trigger the gesture end event. I'll investigate to see if there's another way to detect that a gesture has ended.

We can discuss this further in #690

I'm reopening this, since these are two slightly different problems, that may be solved in one single way.
I was thinking about adding a timeout, to automatically force a gesture to end after a timeout of inactivity, but I'm not sure if that's the best course of action. The best would be to force the button event to trigger or find another source of truth.

@yberdnikov @diegodotta I have seen this before, so I know that it's an issue, but I just can't seem to reproduce this on my iPhone 15 Pro now.
I'm tapping the topmost keys, swiping in and out from the toolbar, and am also trying the edge keys which is where I noticed this in the past. I'm long pressing, fast pressing, long pressing and releasing at different times, swiping in and out of the key, etc. but I just can't make it happen.
Do you have any ways to reproduce it in a fool proof way?

https://github.com/user-attachments/assets/37f9450f-0b16-448d-bdf0-91a8768d7d46
I'm explaining in the video how to reproduce the issue; here's a summary:

You need to have an object that listens for touch events on the toolbar (in my case, it's a ScrollView, for other devs is a textfield)
Click slightly outside the top edge of the keyboard keys and drag. It's easy to simulate by clicking and dragging to the side of the ScrollView that doesn't have more content.

I tried adding a zIndex to my toolbar, but no luck. I even moved my toolbar to be a sibling element to the keyboard, but the same issue persists.
I understand that it's important for the clickable areas of the keys to be larger than their visual representation, and this will be even more relevant for future key prediction capabilities. Maybe this can be easily fixed by adjusting the clickable area of those top keys. For me, the issue of keys getting stuck is less problematic than the top area of the keys still registering a keystroke. Sometimes I just want to click on my top buttons, but it ends up activating the keys below instead.

@diegodotta Thank you so much for this very informative video! 🤩 I will setup the demo app like in your video to reproduce this, and try to have a fix out soon!

@diegodotta @yberdnikov I'm trying to solve this in a live stream right now 😓
The problem seems to be that the onEnded gesture event is not called, which I guess should be considered to be a SwiftUI bug...but hey, it affects us so we need to fond a solution :)
A quick search gives some related discussions:
https://stackoverflow.com/questions/64424719/draggestures-onended-never-called-if-canceled-by-scrollview

Ping again @diegodotta @yberdnikov
Ok, I get this now.
The key to reproducing this bug was to (thanks to @diegodotta's video) realize that you can't reproduce it trying to touch the button in a way that causes the bug, but rather trying to use the SCROLL VIEW in a way that ALSO "accidentally" touches the button.
I can reproduce this over and over again now, and it has truly helped me understand what's happening.
The problem seems to be in the SwiftUI DragGestureHandler, where interacting with the scroll view AND the button somehow causes the gesture to be cancelled, with its onEnded event not triggering.
I have experimented with solving this bug in different ways, but there are some problems in coming up with a clean solution:

My first attempt was to distinguish between intentional and accidental gestures.
BUT it doesn't matter if you trigger the gesture intentionally or while flicking the scroll view - the initial velocity is always 0.
This means that I have a hard time coming up with a way to distinguish between intentional and accidental gestures.

For now, I have put together a long "cancel" delay, that will cancel the gesture if a single gesture has been recorded when the cancel event triggers after the configurable delay.
The only problem is that this can also cancel intentional long presses where the user has kept the finger completely still for the entire delay. This will cause the cancel action to trigger, which will hide any currently displayed secondary action callout.
However, setting the delay to a reasonable high number (say 5 seconds) means that we could assume that not moving the finger could indicate that it's ok to cancel the gesture. But I'm not sure.
The dream would be to have a very short delay, so that the bug quickly restores the button state, OR to be able to distinguish between intentional and accidental gestures.
But as long as we can't do this, a short cancel delay will cancel intentional gestures in a way that can be annoying to the user. And since this only happens when you have a scroll view, which is unusual, perhaps it's ok?
I'd love to hear your thoughts on this.  If you think that the 5 seconds is good enough (you can play around with this behavior in the Gestures+GestureButton.swift file), perhaps we can release this as a patch and then aim to improve it further in the future?
To try this:

Open the demo project.
In the Keyboard target, open the KeyboardViewController.swift file.
In the view builder, comment out the standard toolbar and enable the scroll sample code.
Run the demo app, activate the open-source Keyboard and try to make this bug happen.
Observe the 5 second delay fix.

It's not perfect, which it could become if we can distinguish between intentional and "accidental scroll" gestures, but until then perhaps it's good enough?

Here's a recording of how the delay behaves:
https://github.com/user-attachments/assets/55f6ce9e-e777-4751-8c8e-3c323a7e5393

While the bug is not fixed (I currently have no clue how to do that) the button at least patches itself when it happens.
This is in the newly released 8.8.2, so please try it out and let me know what you think.

Well, for some keys like A, where there are a bunch of options, sometimes the key closes itself before I can get to the right accent. :/ I'll record a video later.

@diegodotta I guess this happens when you don't move the finger at all, as I mentioned around the "The only problem with this is that the delay has to be pretty long, so that we don't cancel an intentional press that doesn't move because the user intends to show the secondary action callout."

I was experiencing quick cancellations on the simulator, but this is not happening on real devices. Let's not worry about it.

Gestures are glitchy on the simulator, but you can still get auto cancellation after ~3 seconds on a real device, if you hold your finger completely still...but that's unlikely.

I'm closing this since the keys will reset themselves now. We should aim to improve this behavior in future versions, though.

Maybe this fix added one unexpected behavior, but I am not sure of the impact.
I decided to print key gestures in this function on the demo project:
//DemoActionHandler.swift
...
    override func action(
        for gesture: Keyboard.Gesture,
        on action: KeyboardAction
    ) -> KeyboardAction.GestureAction? {
        print("GestureAction: \(gesture) \(action)") //PRINTING GESTURES
        let standard = super.action(for: gesture, on: action)
        switch gesture {
        case .longPress: return longPressAction(for: action) ?? standard
        case .release: return releaseAction(for: action) ?? standard
        default: return standard
        }
    }

When I click once on the letter "A," the console shows a bunch of events. The last two events happen after a delay.
GestureAction: press character("A")
GestureAction: release character("A")
GestureAction: release character("A")
GestureAction: release character("A")
GestureAction: release character("A")
GestureAction: end character("A")
GestureAction: release character("A")
GestureAction: end character("A")
GestureAction: end character("A")
GestureAction: release character("A") //THESE LAST TWO SHOW AFTER SOME SECONDS
GestureAction: end character("A")

I was curious about those bunch of releases. The UI is fine, it's not showing a lot of As. But I wonder if this could impact other stuff. Do you see any problems?

@diegodotta I noticed this, I don't think it will affect anything in this case since it just ends the gesture, but I will fix so it doesn't happen.


Fix scheme validation check when using host:port

The validation check for the presence of a scheme did not take into
account situations when the registry hostname would be accompanied by a
port number. In this situation, the hostname would be erroneously parsed
as a scheme and validation would fail.
Fixes #220

Thaks, @squaremo! I'm actually looking into some improvements on this side and will take your suggestion into consideration.

I'm for including this in the next release. @relu could you create an issue for fuzzing so we can merge this PR as it is? Or you prefer to add fuzzing this week?

@stefanprodan I'd like to add fuzzing and might be able to get to it tomorrow.


Make mobile friendly

Fixes #7

Thanks. This is actually a good reminder to add basic  best practices to this package.


The script quits without retrying when connection hangs up

The script is not able to run forever if I have unstable network connection.
I just installed the latest version of urcli on macOS Sierra  & Ubuntu 16.04. And I found that the script will quit when the network hangs up, while the script will keep retrying and waiting the connection to recover without exiting on my another Ubuntu 16.04, which runs an older version of urcli.
Here's what I tried to test if it's true.

I setup the urcli on the terminal and run the assign command.
I manually cut my network.
The script quits with an Error:

  The API is returning the following error: "Error: getaddrinfo EAI_AGAIN review-api.udacity.com:443"

I can no longer stay on my position continuously when I failed to realize the script quits and update within an hour due to this issue.

Hi @HoijanLai, please fill out the template when opening an issue.
Take a look at this issue: https://github.com/trolster/urcli/issues/104.

duplicate of #104

Duplicate of #104


matrix.org

Did you see https://matrix.org/ ?

Friends isn't a client-server model though.

I think it'd be cool if Friends could sync up with a Matrix server to cover the lack of a client-server model (if anyone ever wants one).
I think it would be useful in the case of allowing Matrix rooms to sync up with a Friends Channel giving Matrix it's missing offline and P2P chat functionality and Friends' missing client server model.
Matrix 3PIDs might also be useful here.

@HughIsaacs2 Why would friends need a client-server model? (How would you even switch between the two, and what benefits would it have?)

@somebody1234 same reason friends has peerbot and the IRC bridge, to ensure that the discussion persists even if there are no peers currently available.
But this could also have the added effect of providing a way to build ways for users of older or less powerful devices to join in on a conversation.
WebRTC is great, but compared to the old client-server model can be expensive on both power and battery life.
Imagine trying to build a friends client for more lightweight platforms like Pebble watches or flip phones. And though IRC clients exist for those things, but I think (correct me if I'm wrong) that Matrix.org's REST HTTP API would be even more lightweight than an IRC client.
I know it might seem silly to support those devices but my interest in this platform is that it's one that'll work even if there's no internet, in case of disaster.
I think a Matrix bridge would help in getting messages from those in a disaster area to people who have working internet without needing to be peer to peer or nearby all of the time (I think friends will need a store and forward mechanism of some sort to make this more reliable though).
Now switching between the two I'm not pro enough to figure that out, but I'm assuming that the IRC bridge has that figured out already.
Honestly I think I might take a jab at building this Matrix.org bridge myself, there has to be some way for me to slap Matrix.org JavaScript library and the friends-irc code together to have a working bridge.

Here is a corresponding issue in Matrix wishlist: https://github.com/turt2live/matrix-wishlist/issues/319.


chore: all feats, no feats, default feats top level workspace checks

yea just don't merge until ci passes


Geolocation does not stop after closing and reopening the app

Plugin version: 2.2.1

Platform: Android

OS version: 6.0.1

Device manufacturer and model: LG Nexus 5, same problem with Nexus 5x

Cordova version: built with phonegap build v cli-6.3.0

Cordova platform version: 5.2.1

Plugin configuration options:
desiredAccuracy: 1
stationaryRadius: 1
debug: false
distanceFilter: 10
stopOnTerminate: false
interval: 1 * 60 * 1000
url: 'http://xxx:9101/geo'
httpHeaders: { key: val }

Context
Tracking starts normally and all locations are sent to the server,
even if the app is closed by the user.
The problem is that when the app is started again, stoping tracking
does not work - the background service does not close.
If I try to close the app afterwards android crashes.

Cases:

backgroundGeolocation.start();
Leave app running or pause it and resume it.
backgroundGeolocation.stop();
Tracking terminates normally.

backgroundGeolocation.start();
Close app and open it again.
backgroundGeolocation.stop();
Tracking does not terminate and there is a android error after closing the app.

backgroundGeolocation.start();
Close app and open it again.
backgroundGeolocation.stop();
Tracking does not terminate.
backgroundGeolocation.start();
backgroundGeolocation.stop();
Tracking terminates and no errors after closing app.

Log for the java error

09-22 22:38:59.745 20459 20459 I com.tenforwardconsulting.cordova.BackgroundGeolocationPlugin: Destroying plugin
09-22 22:38:59.783 20459 20459 D AndroidRuntime: Shutting down VM
09-22 22:38:59.784 20459 20459 E AndroidRuntime: FATAL EXCEPTION: main
09-22 22:38:59.784 20459 20459 E AndroidRuntime: Process: net.zazler.sahko_ukko, PID: 20459
09-22 22:38:59.784 20459 20459 E AndroidRuntime: java.lang.RuntimeException: Unable to destroy activity {net.zazler.sahko_ukko/net.zazler.sahko_ukko.S_hk__Ukko}: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Boolean com.marianhello.bgloc.Config.getStopOnTerminate()' on a null object reference
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3831)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3849)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at android.app.ActivityThread.-wrap5(ActivityThread.java)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1398)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at android.os.Handler.dispatchMessage(Handler.java:102)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at android.os.Looper.loop(Looper.java:148)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at android.app.ActivityThread.main(ActivityThread.java:5417)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at java.lang.reflect.Method.invoke(Native Method)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
09-22 22:38:59.784 20459 20459 E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Boolean com.marianhello.bgloc.Config.getStopOnTerminate()' on a null object reference
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at com.tenforwardconsulting.cordova.BackgroundGeolocationPlugin.onDestroy(BackgroundGeolocationPlugin.java:476)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at org.apache.cordova.PluginManager.onDestroy(PluginManager.java:298)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at org.apache.cordova.CordovaWebViewImpl.handleDestroy(CordovaWebViewImpl.java:481)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at org.apache.cordova.CordovaActivity.onDestroy(CordovaActivity.java:305)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at android.app.Activity.performDestroy(Activity.java:6422)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1142)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3818)
09-22 22:38:59.784 20459 20459 E AndroidRuntime:        ... 9 more
Is there a way to prevent this from happening or am I just using the plugin wrong?

Regarding 2. and 3.
You should actually start service and then stop (recommended)
backgroundGeolocation.start();
Close app and open it again.
backgroundGeolocation.start();
backgroundGeolocation.stop();
Tracking does not terminate and there is a android error after closing the app.

Or at least call configure (not tested by myself, but seems the main reason of the crash):
backgroundGeolocation.start();
Close app and open it again.
backgroundGeolocation.configure({});
backgroundGeolocation.stop();
Tracking does not terminate and there is a android error after closing the app.

The reason is that activity is binding to service only after start is called. So right now, you're trying to stop unconfigured and unbound  service.
I will take look at this and fix at least the crash.

Calling configure again before start and stop after reopening the app worked. Thanks alot!

Ok. I've fixed both issues (2. and 3.) in 2.2.3
You don't need to call configure anymore to stop. And service should stop even it was not started in the same app session.


LiteDB.CacheService.RemoveExtendPages throws "System.InvalidOperationException: Collection was modified after the enumerator was instantiated."

I created a quick sample application that stores a number of jpg images using FileStorage.  The application is a web application that exposes an endpoint where the images can be downloaded.  I created a sample web page that references a number of the images I have stored.  When the requests hit the endpoint simultaneously, just about every other request throws this exception:
System.InvalidOperationException: Collection was modified after the enumerator was instantiated.
at System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
at System.Collections.Generic.SortedSet1.Enumerator.MoveNext()    at System.Collections.Generic.SortedDictionary2.Enumerator.MoveNext()
at System.Collections.Generic.SortedDictionary2.ValueCollection.Enumerator.MoveNext()    at System.Linq.Enumerable.WhereSelectEnumerableIterator2.MoveNext()
at System.Collections.Generic.List1..ctor(IEnumerable1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at LiteDB.CacheService.RemoveExtendPages()
at LiteDB.LiteFileStream.GetChunkData(Int32 index)
at LiteDB.LiteFileStream..ctor(LiteEngine engine, FileEntry entry)
at LiteDB.FileEntry.OpenRead()
I am guessing here, but it looks like RemoveExtendPages method doesn't have a lock on the collection it is enumerating?

Hi @mykemaas, are using database in a using statement? LiteDB is not thread safe (at lease for now). So, you need always open/close database per request/use - in this case, cache memory are in each database instance. Is this case? Can you post part of your source?

Yeah... That's my mistake... I'll change it and test.  Thanks!

Nice! LiteDB is not thread safe, but is "process safe". You can have concurrent open databases instances.


Migrating the entire codebase to Typescript

would be very helpful if we migrate the entire codebase of the qdrant-web-ui as it will give more type safety to the code

There are counter-arguments for this https://world.hey.com/dhh/turbo-8-is-dropping-typescript-70165c01?ref=dailydev

In that case , I would like to take up on this task !

I would also loke to take up this task. Nut I think at first we need confirmation form @generall and @kartik-gupta-ij regarding the same.

TypeScript is a solid choice for a majority of web projects, and that might also be true here as well. But what about migrating the UI to a Rust web framework like leptos?
Qdrant's product is already written in Rust. This means that large amounts of library logic could be imported into the code-base without the need of a Promise or fetch calling another process: to ultimately run the same logic at the expense of using a framework that cannot copy strings by reference because their encodings are different (Utf-16 to Utf-8 and vice-versa). Over time, as qdrant matures we might expect the Web-Ui feature list to grow but the amount of effort to meet those expectations will scale linearly. Instead, being able to call into qdrant's code directly might reduce this from a linear relationship into a logarithmic one (as time goes on less effort is needed).


Manage Analytics and Crashlytics collection

Disable analytics by default on debug builds so that development activity won't pollute our metrics. It also allows explicitly enabling or disabling analytics with the debug.org.endlessos.key.analytics system property.
This depends on https://github.com/endlessm/python-for-android/pull/18 and assumes it will be tagged.
See #128.

Waiting to merge until https://github.com/endlessm/python-for-android/pull/18 is merged and tagged.

I tagged the python-for-android commit and now the build succeeded. Merging.


Mirror dependencies for release branches

There has been some offline discussion about a longer term for the solution the issue that we were hit by twice last week involving hash changes for an upstream tarball where the upstream did not functionally change.
This occurred for 2 separate reasons last week
In one case the upstream is (afaiaa) an internal google repo that for some reason (possibly timestamp leakage) does not guarantee hash consistency in produced tarballs even when there is no change. For this reason the tarball has historically been mirrored for Envoys consumption to provide that consistency. In this case (iiuc) there was some problem with the mirroring process and the hash did change when the tarball was remirrored
There was a separate issue where the name of an upstream repo was changed. Altho the old tarball redirected to the new repo the path inside the tarball had changed and the hash no longer matched.
There is a related problem in that github does not guarantee hash consistency anyway, and has a couple of times in the past recompressed tarballs across github breaking many builds across the interwebs
Altho these issues are rare they pose a problem for anyone trying to build from historical branches, as we generally only patch the currently supported ones and anything expecting the originally hashed tarballs will now break.
One solution that has been proposed is to effectively mirror all of the deps for a release branch when its cut
There are few hurdles/issues with this approach:

setup/maintenance of CI to keep mirror correct/up-to-date
as the dep files tend to be large, at least when initially populating the mirror a lot of CI time/resources may be required
to be of any use the mirror will have to be kept working for much longer than our (1 year) support branch policy period
some logic will need to be figured out wrt choosing between the authoritative or mirrored files on main and release branches
likewise some logic will need to be figured out for testing changes on the release branches, assuming the change involves a dependency that is not currently mirrored

there are various strategies we could employ to mitigate or resolve these issues but the setup/maintenance does require some work
relatedly we have considered a similar strategy in the past due to transient flakiness downloading from github itself, altho that was addressed in a different way

cc @kyessenov @ggreenway @alyssawilk

see here for some prior art https://github.com/grpc/grpc/blob/master/bazel/update_mirror.sh

issue for client caching is here https://github.com/envoyproxy/envoy/issues/36340


Cargo cannot produce documentation

cargo doc
produces the following error message:

Cannot document a package where a library and a binary have the same name. Consider renaming one or marking the target as doc = false
There is no real reason for RUSThello being a library, so this should be corrected by eliminating lib.rs

Solved by commit cb587df6cbbb44e1e81a729a037ffddb11735bc9


[HANDS-ON BUG]

Describe the bug

A clear and concise description of what the bug is.
Please share your notebook link so that we can reproduce the error
I cannot push my code for this model because it says I am not connected to the physic server.  I ran the code in the precise order in the notebook.  Please help,  I have wasted compute multiple times.
Material

Did you use Google Colab?
yes
If not:

Your Operating system (OS)

Version of your OS

Looks like it is running okay now, not sure why.

Thanks for the update, sometimes we have some problems with colab and rl environments. For now we don't have a long term solution except restart the notebook


Add Support for VMWare Labs API

@barroei Did you mean to submit this PR as there appears to be nothing included?!

Yes,  i saw that you have full support for Hyper-V and wanted to ask about
support for VMWare.
On Apr 18, 2016 14:19, "Iain Brighton"<EMAIL_ADDRESS>wrote:

@barroei https://github.com/barroei Did you mean to submit this PR as
there appears to be nothing included?!
—
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
https://github.com/VirtualEngine/Lability/pull/100#issuecomment-211335541

Ah. Pull requests are used to submit actual code changes. You should raise an issue instead so we can discuss the implementation.

As this has no code to be added to Lability should this be closed @iainbrighton ?
It can always be opened again in future if needs be.

Closing - if there is some discussions required they can take place in the Issues.


Hotstar videos are not getting downloaded.

It was working few weeks back . Now it is not working.
youtube-dl -v https://www.hotstar.com/us/tv/yeh-rishtey-hain-pyaar-ke/s-1826/kunal-apologises-to-meenakshi/1000249007
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.hotstar.com/us/tv/yeh-rishtey-hain-pyaar-ke/s-1826/kunal-apologises-to-meenakshi/1000249007']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.03.08
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.10586
[debug] exe versions: none
[debug] Proxy map: {'https': 'https://<IP_ADDRESS>:55438', 'socks': 'socks://<IP_ADDRESS>:55437', 'http': 'http://<IP_ADDRESS>:55438'}
[hotstar]<PHONE_NUMBER>: Downloading webpage
[hotstar]<PHONE_NUMBER>: Downloading JSON metadata
ERROR: Unable to download JSON metadata: HTTP Error 475: Unknown (caused by HTTPError()); please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp378onz6j\build\youtube_dl\extractor\common.py", line 627, in _request_webpage
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp378onz6j\build\youtube_dl\YoutubeDL.py", line 2238, in urlopen
File "C:\Python\Python34\lib\urllib\request.py", line 470, in open
File "C:\Python\Python34\lib\urllib\request.py", line 580, in http_response
File "C:\Python\Python34\lib\urllib\request.py", line 508, in error
File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
File "C:\Python\Python34\lib\urllib\request.py", line 588, in http_error_default
All episodes are also not getting downloaded . It is returning "Unsupported URL " . In the past I had downloaded all episodes form this site . Now it is not working
youtube-dl -v https://www.hotstar.com/us/tv/yeh-rishtey-hain/s-1826/list/episodes/t-1_2_1826
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.hotstar.com/us/tv/yeh-rishtey-hain/s-1826/list/episodes/t-1_2_1826']
[debug] Encodings: locale cp1252, fs mbcs, out cp437, pref cp1252
[debug] youtube-dl version 2020.03.08
[debug] Python version 3.4.4 (CPython) - Windows-10-10.0.10586
[debug] exe versions: none
[debug] Proxy map: {'https': 'https://<IP_ADDRESS>:55438', 'http': 'http://<IP_ADDRESS>:55438', 'socks': 'socks://<IP_ADDRESS>:55437'}
[generic] t-1_2_1826: Requesting header
WARNING: Falling back on generic information extractor.
[generic] t-1_2_1826: Downloading webpage
[generic] t-1_2_1826: Extracting information
ERROR: Unsupported URL: https://www.hotstar.com/us/tv/yeh-rishtey-hain/s-1826/list/episodes/t-1_2_1826
Traceback (most recent call last):
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp378onz6j\build\youtube_dl\YoutubeDL.py", line 797, in extract_info
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp378onz6j\build\youtube_dl\extractor\common.py", line 530, in extract
File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\ytdl-org\tmp378onz6j\build\youtube_dl\extractor\generic.py", line 3351, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.hotstar.com/us/tv/yeh-rishtey-hain/s-1826/list/episodes/t-1_2_1826

Most likely proxy is banned.

Most likely proxy is banned.

@dstftw The link is playing on my  browser.


[WIP] Add prototype of CI matrix (for testing along with GAIA)

This PR adds tests for GAIA (an experimental feature for executing interactive queries) as well as to ensure the functionality of the origin interactive executor (MaxGraph). More specifically, it

Add a test_with_gaia.py in Kubernetes tests,
Add a test suite for GAIA in local tests,
Patch GraphScope Store tests with two separated executors.

This PR also enables the statements like interactive.gaia().execute('script') and g.gaia().V().count(),
and a helm configurable value to control which executors to use.
Fixed #563

[ ] gaia_store/gaia_frontend -> store-gala/store-frontend
[ ] move test files from deploy/tests/ to tests
[ ] Aggregate all GIE tests in fixtures.
[ ] with_gaia -> enable_gaia


Remove mention of flit.ini as default file from readme.

Also rename docs to documentation

Good catch!

Thinking of starting to write a PyCon proposal. So far I have the title: "Packaging like it's '18" play on 2018/pep-518. Deadline is IIRC Jan 4 for PyCon.

Sounds like a good idea, though I'm not sold on the title. I didn't get the reference to either the year or the PEP. And the number 18 has a range of connotations because it's traditionally the age when people get a new set of rights and responsibilities.
I haven't come up with anything I really like, but maybe just expand the abbreviation: "Packaging like it's 2018".


Potential circular reference issue

Hello, Swashbuckle has been a great tool for me in the past to generate Swagger json output.   I have been running into an issue with a recent project that has a significant amount of API methods that leverage custom and Entity Framework models.  Some of the entity framework relationships seem to be circular (which may indeed be normal).
Swashbuckle creates the JSON just fine, but when trying to parse it in the UI, it hangs, no browser/console errors.  I have tried validating the same JSON code in the Swagger Editor, and I get the same result, and it does not pass JSON Swagger validation (but it is valid json).
I have done a lot of research to try and resolve the issue, but appear to be stuck.  I have tried applying MapTypes and SchemaFilters but they do not seem to resolve the issue appropriately, and I would like to avoid re-adjusting all of our API methods to use non-Entity models.
Is this a known bug or issue, or is there some configuration option that I am missing?  I do not feel this is a poorly designed WebAPI, but I understand there may be issues with circular references.  I would be glad to share the JSON output via email if it would help.
Using the .NET WebAPI help pages generates output fine via the XML documentation, and all methods work and are testable, but I haven't used these generic pages in years and would like to avoid this.  I appreciate your help and support in this matter, thank you.
(Could be similar to #486)

Swashbuckle creates the JSON just fine, but when trying to parse it in the UI, it hangs, no browser/console errors

Can you create the samllest possible file to reproduce this? Given that SwaggerEditor shows same error, this might not be valid swagger schema.

@lunar-logic - it's worth noting that Swashbuckle's fundamental objective is to accurately describe the "actual" contract/runtime behavior exposed by your API, according to the routes, model and controllers you've implemented. Or in other words, code is truth as opposed to specification/intention.
With this in mind, entity framework models at the API layer aren't an ideal fit. Although they can be made to work, the issue lies in the number of public properties exposed as you traverse down their inheritance hierarchy. The WebAPi serializer will, by default, serialize/deserialize those values to/from a JSON payload if they're present. Of course it's unlikely that you "intend" those values to be used in your API, but nonetheless it's technically possible for a client to use them and even populate the values into your C# objects, despite not being intended as input. In summary, if an object property "can" be deserialized from the JSON payload, then Swashbuckle will, by design, describe it in the contract because it's the "actual" behavior.
Ideally, you could explicitly ignore certain public properties on your EF objects, specifically those that shouldn't be serialized/deserialized. If you have access to the types, you can use the JsonIgnoreAttribute and if you don't I'm sure there's less intrusive ways to do it but I don't have any advice off hand. Does this make sense?


Integration with eskom-calendar?

Hey!
I'm the creator of eskom-calendar, I'm wondering if you want to work together to do an integration?
I don't have access to the EskomSePush business API so I can't try out your tool, but it would be cool to have the open source datasource as an alternative to the paid source (and I'm happy to put in the effort to try and get feature parity between the two)
At the moment the data isn't hosted anywhere but github, although I'd be keen to make changes so that powerdown could be an easy cli to the dataset.
Lemme know what you think 👍

Hi @beyarkay my electricity uses the City of Cape Town schedule. (which usually differs from Eskom). So the EskomSePush API is more useful for my primary use case, which is triggering my Synology NAS to shutdown. I still need to document this.
However I don't mind doing an integration, if anything it can parse your https://github.com/beyarkay/eskom-calendar/blob/main/manually_specified.yaml resource which I can fetch using in memory go git https://github.com/go-git/go-git

I have started an integration directly with your Config util for now. Also refactoring powerdown to support multiple backends.


ReferenceError: window is not defined

Error Window is not defined if me refresh in page using this library , and error window when i try to push to vercel , im using Next JS

ReferenceError: window is not defined
21:03:17.721 | at /vercel/path0/node_modules/react-image-picker-editor/dist/index.js:1:11981
21:03:17.722 | at Object. (/vercel/path0/node_modules/react-image-picker-editor/dist/index.js:1:12459)
21:03:17.722 | at Module._compile (node:internal/modules/cjs/loader:1218:14)
21:03:17.722 | at Module._extensions..js (node:internal/modules/cjs/loader:1272:10)
21:03:17.723 | at Module.load (node:internal/modules/cjs/loader:1081:32)
21:03:17.723 | at Module._load (node:internal/modules/cjs/loader:922:12)
21:03:17.723 | at Module.require (node:internal/modules/cjs/loader:1105:19)
21:03:17.723 | at require (node:internal/modules/cjs/helpers:103:18)
21:03:17.724 | at 4066 (/vercel/path0/.next/server/pages/admin/produk.js:446:18)
21:03:17.724 | at webpack_require (/vercel/path0/.next/server/webpack-runtime.js:25:42)

Is this error happening in dev mode, or it only occurs once you build and run the project

Hi, the problem is that in SS you dont have access to browser api. To solve that next have a build in functionality that allows to render certain components in Client Side.
here the source:https://nextjs.org/docs/advanced-features/dynamic-import#with-no-ssr
the solution will be import the component like this:
... import 'react-image-picker-editor/dist/index.css' import dynamic from 'next/dynamic' const ReactImagePickerEditor = dynamic(() => import('react-image-picker-editor'), {     ssr: false, }) ...


[opt](inverted index) support the same column create different type index

Proposed changes
support the same column create different type index with different index name.
such like:

create table with index:

CREATE TABLE table1
(
    id INT DEFAULT '10',
    name VARCHAR(32) DEFAULT '',
    INDEX index_1 (name) USING NGRAM_BF PROPERTIES("gram_size"="3", "bf_size"="256") COMMENT 'ngram_bf index',
    INDEX index_2 (name) USING INVERTED PROPERTIES("parser" = "english") COMMENT 'inverted index',
)
DUPLICATE KEY(id)
DISTRIBUTED BY HASH(id) BUCKETS 10
PROPERTIES("replication_num" = "1");

alter add index:

CREATE INDEX index_1 ON table1(name) USING NGRAM_BF PROPERTIES("gram_size"="3", "bf_size"="256") COMMENT 'ngram_bf index';
CREATE INDEX index_2 ON table1(name) USING INVERTED PROPERTIES("parser" = "english") COMMENT 'inverted index';

Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 52.64 seconds
stream load tsv:          506 seconds loaded<PHONE_NUMBER>9 Bytes, about 140 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          31 seconds loaded 861443392 Bytes, about 26 MB/s
insert into select:          29.5 seconds inserted 10000000 Rows, about 338K ops/s
storage size:<PHONE_NUMBER>0 Bytes

add some case for ngram + inverted index

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 51.29 seconds
stream load tsv:          505 seconds loaded<PHONE_NUMBER>9 Bytes, about 141 MB/s
stream load json:         19 seconds loaded<PHONE_NUMBER> Bytes, about 118 MB/s
stream load orc:          65 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          29.4 seconds inserted 10000000 Rows, about 340K ops/s
storage size:<PHONE_NUMBER>5 Bytes

run buildall

(From new machine)TeamCity pipeline, clickbench performance test result:
the sum of best hot time: 45.43 seconds
stream load tsv:          504 seconds loaded<PHONE_NUMBER>9 Bytes, about 141 MB/s
stream load json:         20 seconds loaded<PHONE_NUMBER> Bytes, about 112 MB/s
stream load orc:          64 seconds loaded<PHONE_NUMBER> Bytes, about 16 MB/s
stream load parquet:          32 seconds loaded 861443392 Bytes, about 25 MB/s
insert into select:          29.0 seconds inserted 10000000 Rows, about 344K ops/s
storage size:<PHONE_NUMBER>4 Bytes


Backup Exceptions

I am seeing the below exception while creating the backups.
Status(StatusCode="InvalidArgument", Detail="Invalid ListBackupOperations request.", DebugException="Grpc.Core.Internal.CoreErrorDetailException: {"created":"@1641686430.749211566","description":"Error received from peer ipv4:<IP_ADDRESS>:443","file":"/var/local/git/grpc/src/core/lib/surface/call.cc","file_line":1067,"grpc_message":"Invalid ListBackupOperations request.","grpc_status":3}")
var filter =
                $"(metadata.database={dbName}) AND " +
                "(metadata.@type:type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND " +
                "done=false";

I've seen an uptick of these errors recently on our CI as well. I'm planning to look into this today.

@amanda-tarafa Hi any update on this?

No, I'm sorry, not yet, I'll update here as soon as I know more.

OK, I can reproduce this also on my local environment and there's nothing inmmediately wrong with the sample code on this repo or with the client library itself.
The problem seems to be that the API has stopped accepting metadata.database as part of the filter. As a very temporary workaround, consider filtering for the Database locally?
In the meantime I'll reach out to the API team. @skuruppu FYI, I'm adding you as assignee as well in case you can take a look on the API side of things.

@amanda-tarafa Thanks for working on this. Could you please explain/provide a sample code as to how to go about the temporary solution mentioned above?

@tellmeaboutcode we know more of what is happening, and the issue seems to be with the API requiring filter predicates to be in a particular order, so, if you modify your filter to what follows, it should work.
We are still looking at whether this API change should/can be reverted, etc. But for the time being, just rewrite your filter as a workaround.
$"(metadata.@type:type.googleapis.com/google.spanner.admin.database.v1.CreateBackupMetadata) AND " +
"(metadata.database={dbName}) AND " +
"(done=false)";

@tellmeaboutcode I've just got confirmation from the API team that a backwards compatible fix is on the way, but it might take 3 to 4 weeks to land. In the meantime, changing the order of the predicates on the filter may be use as a workaround.
I'm leaving this issue open until I've confirmed the fix is live. Thanks for reporting.

@amanda-tarafa Thank you. Changing the order worked.

Closing as this has been addressed.


Added the PKGBUILD for Arch Linux in the root of the repository and edited README.md in docs to mention the PKGBUILD

I'm quite terrified of the rm -rf running as root, having support for one specific linux distro isn't enough, it's better to just make a flatpak

Ok i like it i'll merge


dpop: added roles provider

Coverage increased (+0.03%) to 86.963% when pulling f3cc36733b12a69c063efe17fb34e76c6d4053ec on dissoupov into 371eba8a4e9a03458b3caddc9b3c7d322fccf66f on main.


Exception '*** -[__NSDictionaryM setObject:forKey:]: key cannot be nil' was thrown while invoking createUpload on target RNTusClient with params (

getting this error when upload starts processing..

@hellochirag did you ever figure this one out? We're having the same issue.

@vinzscam would appreciate any thoughts

I'm also experiencing the same issue in IOS. Also, it's not uploading on VIMEO and can't find any logs that cause the issue, aside from restarting the application and creating TUS object to resume the current uploads this error comes up.


In-memory engine: add metrics for gc duration, range load duration, and write duration

What is changed and how it works?

Issue Number: Ref #16141

What's Changed:
add metrics for gc duration, range load duration, and write duration

Related changes

[ ] PR to update pingcap/docs/pingcap/docs-cn:
[ ] Need to cherry-pick to the release branch

Check List
Tests

[ ] Unit test
[ ] Integration test
[ ] Manual test (add detailed scripts or steps below)
[ ] No code

Side effects

[ ] Performance regression: Consumes more CPU
[ ] Performance regression: Consumes more Memory
[ ] Breaking backward compatibility

Release note

None

/merge


fix: add ci tests for new languages

https://github.com/freeCodeCamp/freeCodeCamp/issues/42890 should have been caught in CI, so hopefully this PR will fail the checks for Italian until we fix the underlying issue.

#42859 Has not been merged yet...

Yeah, true, this was a bit early.  I'll take Portuguese out for now.

Yeah, I know may not be possible, but if we can afford to run it for each language I'd like to.  For instance, we wouldn't know that two Italian challenges have the same title without running these tests.

For instance, we wouldn't know that two Italian challenges have the same title without running these tests.

Sure. Go ahead and create/update workflows that are a part of the entry point of the issues if you prefer or want. In this case, the entry point would be the Crowdin (both automated, manual) runs for instance.
Expanding the scope of the current CI (unit testing suite) is not a good idea/workaround. A key rule of thumb for testing paradigms is to isolate responsibilities and have little to no overlap between things.

A key rule of thumb for testing paradigms is to isolate responsibilities and have little to no overlap between testing things.

I'm not sure I entirely understand that. I thought the rule of thumb was that applying heuristics was a bad idea, since we can't know exactly what the impact of a given change would be.  Instead we should (if possible) run every test for each change.
Case in point, I wouldn't have guessed that strip-comments would only affect the Italian, because they happen to have a if inside a comment.  End result, we have to rely on user reports when we could have caught it in CI.
However, if the point is just that our tests take too long to run each one on every single PR, then I understand.

I thought the rule of thumb was that applying heuristics was a bad idea, since we can't know exactly what the impact of a given change would be.

and

However, if the point is just that our tests take too long to run each one on every single PR, then I understand.

That is not the intention here. Not sure if you are assuming it as such.
The idea is the CI tests should have coverage of all (practically most) features. The current CI runs challenge tests on different variations of the client application that we can have. There is no second-guessing here. The variations are the app hosted at:

the root /
at a subpath like /espanol
a subdomain chinese.

If a test fails for one variation, it should fail for its equivalent (a logical bug on /italian should be caught on /espanol). Each variation here is a functional unit. You test each functional unit to be solid as best as you can, covering all use cases. Meaning if a test is broken on a subpath, it is logical to assume that the tests will break for all subpath languages. There is logically no difference among these in terms of implementation. That's one part and is covered by the CI tests scope.
Let me reiterate https://github.com/freeCodeCamp/freeCodeCamp/pull/42894#pullrequestreview-708228915 : The current CI tests scope is to prevent catastrophic errors, like a complete build failure, preventing us from deploying application
The other part, as I understand, there could be bugs due to content.
In this case, you are correct in saying that you see a use case where it happened to break Italian for a specific scenario. The scenario (here is an if statement in a comment) is not related to the Italian variant of the app but "the content" that created the Italian variant of the app.
To put it another way, you would probably see similar unforeseen use cases being introduced in Portuguese or Swahili (i.e. languages which we don't even pull yet).
The point being challenge tests are a weak measure of guessing what will break.
Relying on ad-hoc fixes for such use-cases is OK, as I said before or writing tests closer to the entry point (Crowdin workflows pulling the changes - separate discussion).
This is not heuristics but containing/scoping what you want to cover.
That way, you can pin the source of the error closest to where it is happening. The fix could be in content or fixing the platform code to accommodate the new use-case in content (For example, either changing the comment or updating the lib to handle the comment, etc.).

I'm not 100% sure where we disagree here, since I think we both are saying that having a test fail as early as possible is ideal.

The fix could be in content or fixing the platform code to accommodate the new use-case in content (For example, either changing the comment or updating the lib to handle the comment, etc.).

Yep, agreed.  That's why I think the ideal case would be to run all the tests both on changes to the content and to the libraries since either could cause a bug.
Ironically the tests wouldn't have saved us here, because the solution doesn't include the comments :man_shrugging:.  However, that's just an argument for writing better tests.

In simple terms we are disagreeing on this (I think):
The challenge tests suites original intent (from their inception) aka "scope" was to ensure the seed + solutions pass the tests in the browser.
But, we are stretching them to be used for any and every validation we can instead of innovaying new test suites for more scope, such as content parity validations in i18n, etc.

Yep, that makes sense.  I think we broadly agree, though not 100%.
Anyways, we're not even doing the tests properly - I've only just realised that the solutions we're testing have the original English comments in them.  Oops.

Sure, do you want to look into the CI issue that is broken for some reason: https://github.com/freeCodeCamp/freeCodeCamp/pull/42894/checks?check_run_id=3086072508#step:7:1336

Sure, I can put something together.

This doesn't change anything in our workflows, right? Just allows for local testing, and the option to expand our CI?

Exactly right, Nick.


Broken footer for blogs

https://www.moleculardevices.com/lab-notes/blog

@dev-rajneeshkumar this got introduced by https://github.com/hlxsites/moleculardevices/commit/bdc66231afb68680ef1b941a05724785f594c119 lately can you have a look

@MeghnaTewari @dev-rajneeshkumar
Can you please verify in https://1220-hq--moleculardevices--hlxsites.hlx.page/lab-notes/blog?

Reopen issue but degrading priority because the footer contact and the big gap to links in the first column got fixed
There are some more issues to be fixed, eg

Headlines for row 1 and row 4 are not aligned on top
Links in row 1 might be in one line

@lydiapuric saw the frist PR, instead of unsetting it wouldn’t it be better to initially scope it to main only, it does not influence the footer.

thx, adjusting

@MeghnaTewari @dev-rajneeshkumar Can you please verify in https://1220-footer--moleculardevices--hlxsites.hlx.page/lab-notes/blog?

@lydiapuric  Verified! Looks fine.
Just one small thing, for the blog footer there is a bit less line spacing here, compared to other footers -
https://1220-footer--moleculardevices--hlxsites.hlx.page/lab-notes/blog

@lydiapuric Looks fine now.


request for feature gather and matmul

Please make sure that this is a feature request. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:feature_template
System information

TensorFlow version (you are using): 2.7.1
Are you willing to contribute it (Yes/No):
Yes

Describe the feature and the current behavior/state.
This function can realize that the corresponding weight is taken from the matrix B according to the index given by the matrix C and then multiplied by the matrix A.
A: [batch, h]
B: [num, h, d]
C: [batch, ]
out: [batch, d]
batch >> num
for i, j in enumerate(C):
   out[i] = matmul(A[i], B[j])

Currently this function can be implemented by tf.gather then tf.matmul. However, it will waste a lot of gpu memory due to the need to define an intermediate variable W.
W = tf.gather(B, C)
out = tf.matmul(A, W)

It can also be implemented by one hot matmul. However the time complexity of the calculation will be very high.
tmp = tf.one_hot(C, depth=num)
out = tf.enisum('bh,bn,nhd->bd', A, tmp, B)

Will this change the current api? How?
No
Who will benefit with this feature?
This function can be applied to the moe model to achieve the assignment of experts strictly according to the probability of the router. Avoids the limitations of the expert capacity currently required.
Any Other info.
No

To make sure I'm on the same page: you want to add a new op that does the combined gather+matmul?  So this will modify the API (i.e. it will extend it by introducing a tf.gather_and_matmul(...) op).
Any new op will need to be implemented for all backends (CPU/GPU/XLA).  You will also need to demonstrate the savings are worth the extra code complexity/maintenance burden.
Feel free to submit a PR, and we can take a look.

Sorry I didn't correctly understand the meaning of the question "Will this change the current api? How?". Yes, this will modify the API by adding an extra op tf.gather_and_matmul.
Below I will introduce the improvement that this op can bring in combination with some technical details in the switch transformer. Switch Transformer is a kind of sparsely activated model.
In normal model
output = FFN(input)

In sparsely activated model, there will be multiple FFN as multiple experts and a router to determine the assignment of experts
assign_prob = router(input)
assign_index = argmax(assign_prob, axis=-1)
output = [FFNs[k](input[i]) for i, k in enumerate(assign_index)]

Through the above sparse activation operation, a large number of parameters are added (the FFN parameter are expanded by num_experts) while only a small amount of computation is added (only the router which is a dense layer).
However, due to the limitation of tensorflow dynamic graph, the input shape of each expert should be the same. The actual implementation is shown below

https://arxiv.org/pdf/2101.03961.pdf
There will be two problems here. The first is that some samples will not pass through any experts, and the second is that they cannot be assigned strictly according to the maximum probability.
In most cases, the FFN will be the combination of multiple dense layer. So this problem can be solved by the above gather_and_matmul op.
assign_prob = router(input)
assign_index = argmax(assign_prob, axis=-1)
output = tf.gather_and_matmul(FFN_weight, input, assign_index)

It is theoretically possible to simulate gather_and_matmul by existing operations gather or one hot matmul.
assign_prob = router(input)
assign_index = argmax(assign_prob, axis=-1)
assigned_weight = tf.gather(FFN_weight, assign_index)
output = tf.matmul(input, assigned_weight)

However, the shape of FFN_weight will be [num_experts, h1, h2] (num_experts 16/32/64), but the shape of the intermediate variable assigned_weight will be [batch, seq_length, h1, h2]. batch * seq_length (eg. 64 * 128) is far more than num_experts. This intermediate variable will waste a lot of memory and cause oom.
assign_prob = router(input)
assign_index = argmax(assign_prob, axis=-1)
assign_index_onehot = tf.one_hot(assign_index, depth=num_experts)
out = tf.enisum('blh,bln,nhd->bld', input, assign_index_onehot, FFN_weight)

The second avoids defining an intermediate variable, but the computational complexity is very high.
The actual computational complexity required is batchseq_lengthhd. However the computational complexity of the second is batchseq_lengthhd*num_experts.
In my experiments this will be three to four times slower (num_experts=8).

Will something like this work:
@tf.function
def gather_and_matmul(a, b, c):
  return tf.map_fn(lambda i: tf.matmul(a[:,:], b[i,:,:]), c, fn_output_signature=a.dtype)

We don't normally add merged ops like this to the API.  If it's an efficiency issue, we often instead rely on graph optimization passes that can fuse ops and eliminate intermediaries.  The issue with modifying the API is that it adds a lot of maintenance burden, and needs to be supported on all platforms/backends - so the change needs to be strongly justified.

Thanks for your reply, I will try your proposed solution as soon as possible.

Will something like this work:
@tf.function
def gather_and_matmul(a, b, c):
  return tf.map_fn(lambda i: tf.matmul(a[:,:], b[i,:,:]), c, fn_output_signature=a.dtype)

We don't normally add merged ops like this to the API. If it's an efficiency issue, we often instead rely on graph optimization passes that can fuse ops and eliminate intermediaries. The issue with modifying the API is that it adds a lot of maintenance burden, and needs to be supported on all platforms/backends - so the change needs to be strongly justified.

Thanks for your suggestion, I will try your proposed solution as soon as possible

Hello, I am new to contributing TensorFlow. Shouldn't this issue be marked as closed?

Potentially.  The user hasn't responded back to report that it works for them.


Error when building images after v0.9.3

Hi,
I cannot build images for the following versions: v0.10.0, v0.11.0 & v0.11.3. I've tested it in a M1 macbook arm64 & in a ubuntu amd64 virtual machine and get the same issue. I have no issues when building v0.9.3.
This is what I used to build the images:
docker build -t martin .

Stdout when built in arm64:
#0 162.8 error: failed to run custom build command for `pbf_font_tools v2.5.0`
#0 162.8
#0 162.8 Caused by:
#0 162.8   process didn't exit successfully: `/usr/src/martin/target/release/build/pbf_font_tools-49699dd4207ff108/build-script-build` (exit status: 101)
#0 162.8   --- stderr
#0 162.8   thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/pbf_font_tools-2.5.0/build.rs:12:19:
#0 162.8   Protobuf codegen failed.: parse and typecheck
#0 162.8
#0 162.8   Caused by:
#0 162.8       0: using protoc parser
#0 162.8       1: failed to spawn command `"/usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/protoc-bin-vendored-linux-aarch_64-3.0.0/bin/protoc" "-Iproto/" "--descriptor_set_out=/tmp/protobuf-parseCiYWsZ/descriptor.pbbin" "--include_imports" "proto/glyphs.proto"`
#0 162.8       2: No such file or directory (os error 2)
#0 162.8   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
#0 162.8 warning: build failed, waiting for other jobs to finish...
------
Dockerfile:9
--------------------
   7 |
   8 |     COPY . .
   9 | >>> RUN CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build --release
  10 |
  11 |
--------------------
ERROR: failed to solve: process "/bin/sh -c CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build --release" did not complete successfully: exit code: 101

Stdout when built in amd64:
error: failed to run custom build command for `pbf_font_tools v2.5.0`

Caused by:
  process didn't exit successfully: `/usr/src/martin/target/release/build/pbf_font_tools-07218ef84cc2063c/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/pbf_font_tools-2.5.0/build.rs:12:19:
  Protobuf codegen failed.: parse and typecheck

  Caused by:
      0: using protoc parser
      1: failed to spawn command `"/usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/protoc-bin-vendored-linux-x86_64-3.0.0/bin/protoc" "-Iproto/" "--descriptor_set_out=/tmp/protobuf-parsegjO6yF/descriptor.pbbin" "--include_imports" "proto/glyphs.proto"`
      2: No such file or directory (os error 2)
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
The command '/bin/sh -c CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse cargo build --release' returned a non-zero code: 101

Seems to be linked to the inclusion of pbf_font_tools?

@jjcfrancisco thx for reporting!   I am a bit surprised that you are building the docker image yourself - the Dockerfile was left in the repo by accident, and is no longer used by the CI/CD. Is there a reason you want to do that, rather than use ghcr.io/maplibre/martin image?

Hi @nyurik, I can certainly use the image from ghcr.io/maplibre/martin. To be completely honest, I haven't payed much attention to it, I just saw the Dockerfile in the repository and has been working ok until now. My suggestion would be either to remove the Dockerfile or fix the issue in order to remove confusion. Thanks agains the the quick response 🙏

Thanks, I was worried there was some usecase we didn't cover in the current build ecosystem.  I have removed the dockerfile in #1022


[ISSUE][CLOSED] [cibot] Add email notification to know change of git.bot.sec lifespan

 Issue by geunsik-lim
Tuesday Jul 03, 2018 at 22:47 GMT
Originally opened as https://github.sec.samsung.net/STAR/TAOS-CI/issues/88

Issue Description
Note that user has to login at least 3 times per a month to use the KnoxPortal  ID.

Contact:  "전자녹스포탈"<EMAIL_ADDRESS>
In order to handle sudden issue quickly, we need to email notification to know change of git.bot.sec lifespan.
Expected Result
When git.bot.sec cannot log-in suddenly at www.samsung.net, let's inform related developer of  the issue via email instantly.
Reference

https://github.sec.samsung.net/STAR/AuDri/issues/22
https://github.sec.samsung.net/RS7-STAR/ALGO_Application/issues/1607

:octocat: cibot: Thank you for posting issue #112. The person in charge will reply soon.

 Comment by git-bot-sec
Tuesday Jul 03, 2018 at 22:47 GMT

:octocat: cibot: Thank you for posting issue #88. The person in charge will reply soon.

 Comment by geunsik-lim
Tuesday Jul 03, 2018 at 22:56 GMT

@sewon-oh , @sangjung-woo PTAL.

 Comment by geunsik-lim
Wednesday Jul 04, 2018 at 02:06 GMT

@sewon-oh ,Please append a python script that is written by @sangjung-woo at aaci.mooo.com:8080. And then, please append email-on-failure function to notify the login issue to all members.

 Comment by sangjung-woo
Wednesday Jul 04, 2018 at 02:50 GMT

You can get a one time login-in in Samsung single system by running the below python code.
#!/usr/bin/env python

import requests
import sys

ID = "git.bot.sec"
PASSWD = "*********************"

login_url = "https://www.samsung.net/portal/login/login.do"
main_url = "http://kr1.samsung.net/portal/desktop/main.do"

def try_login(user_id, user_passwd):
    login_info = {
        "USERID": user_id,
        "USERPASSWORD": user_passwd,
        "LANG": "ko_KR.EUC-KR"
    }
    session = requests.session()
    ret = None
    try:
        ret = session.post(login_url, data=login_info)
        ret.raise_for_status()

        ret = session.get(main_url)
        ret.raise_for_status()
    except:
        return 1

    return 0 if ret.text.find(user_id) > 0 else 1

if __name__ == "__main__":
    ret = try_login(ID, PASSWD)

    print("[Jenkins] git.bot.sec login test")
    if ret == 0:
        print("  Success!!")
    else:
        print("  Failed!!")
    sys.exit(ret)

 Comment by sewon-oh
Friday Jul 06, 2018 at 04:46 GMT

I have a question that ret = session.get(main_url) is required to login?

 Comment by geunsik-lim
Monday Jul 09, 2018 at 09:35 GMT

I have a question that ret = session.get(main_url) is required to login?

What do you mean by that? What is your question?

 Comment by sewon-oh
Wednesday Jul 11, 2018 at 02:03 GMT

done


Fixing\Updating AzsAdmin Compute powershell generation and tests.

Open API spec PR is updated and merged.
Dependent Open API Spec PR: https://github.com/Azure/azure-rest-api-specs/pull/15059
This fixes many of the issues with the module generation and the tests. I also added a test for the new computeScaleUnit API.

There are tests that have not been implemented, will these be implemented in the future?

/azp run

There are tests that have not been implemented, will these be implemented in the future?

The "Feature" tests are being implemented by Miguel. For the other NotImplemented tests I will create work items to implement those in a later effort. However, these other APIs are not changed recently and are being covered in our nightly team CI runs.

/azp run

/azp run

/azp run

/azp run

@travist13 closing this PR as your other PR is merged.


Moving polymc theme to prismlauncher

Issue regarding polymc
Polymc was recently in a hostile takeover by the lead maintainer polymc. Most of the devs got together to create a for of polymc called prismlauncher. I would like to, as such move my polymc theme to prismlauncher but i am not sure on the protocol of how to do this. I would like some help for exactly how to since this is quite a unique situation. Documentationof the event is available here

Has the old theme for PolyMC stopped working? 🤔
If that's the case, the best thing is to remove it from the organization and create a new one for this new app.

@luxonauta commented on Oct 21, 2022, 3:55 PM UTC:

Has the old theme for PolyMC stopped working?
If that's the case, the best thing is to remove it from the organization and create a new one for this new app.

It very likely haven't broken. OP just suggest changing the supported application to PrismLauncher, instead of PolyMC or MultiMC.
As explained accurately in the FAQ provided by OP,
MultiMC : Original Launcher. Was forked into PolyMC due to restrictive software license, preventing repackaging and distribution for other Linux platforms which would require other package format.
PolyMC : Was just recently forked into PrismLauncher due to political beliefs of repo owner, removing the code of conduct and removed previous maintainers from the project without prior consultation.

Has the old theme for PolyMC stopped working? 🤔
If that's the case, the best thing is to remove it from the organization and create a new one for this new app.

Nope nothing is wrong with the theme itself its just polymc is no longer run by the original devs as explained in the prismlauncher faq, and switching to prismlauncher rather than polymc for the name would probably be a good idea since most of the devs for polymc are now working on prism instead

I understand, so we'd better create a new repository for this new app. Let's proceed in this way as if it were a new submission.


: Request for Hover-Based Dropdown in Navbar "Getting Started" Feature

Is your feature request related to a problem? Please describe
Issue Description:
Feature Request:
I would like to request a new feature for the navbar on our website. Currently, to see the options under "Getting Started," users have to click on it. However, I believe it would improve the user experience if the dropdown options under "Getting Started" are displayed automatically when a user hovers their cursor over it, rather than requiring a click action.

Use Case:
The current behavior of requiring a click to reveal the dropdown options can be less intuitive for some users. By making it hover-based, users can quickly see the available options without the need for an additional click, which can enhance navigation efficiency and user satisfaction.
Benefits:
Improved user experience: Hover-based interaction can make navigation more intuitive and efficient.
Reduced click actions: Users can access options under "Getting Started" with fewer interactions.
Increased engagement: Encouraging users to explore the available options may lead to higher engagement with our platform.
Describe the solution you'd like
Proposed Changes:
Modify the navbar behavior so that when a user hovers their cursor over "Getting Started," the dropdown options are displayed instantly.
Ensure that the hover-based interaction is smooth and user-friendly, with a slight delay to prevent accidental activation.
Describe alternatives you've considered
No response
Additional context
No response
Are you working on this?
Yes

@tanmoysrt
if you feel this feature right i can do it!

can i work on this issue

Hi @YashGupt29 you can work on this.
You need to keep both hover and click support in it and also test in mobile view for touch because in mobile we can't do hover

ok @tanmoysrt  working on it ! i will take care all the things you told me

can I work on this issue?


Google Drive show Website version instead of Login to Service

Bug description:

hi i using google drive, and when i add it it show a website version instead of login form to using service. i already tried reload service, delete and re add, reload ferdi and not of them work
Screenshots

Environment:

Operating System:  Manjaro KDE

Kernel: 5.10.15-1

Ferdi Version:  5.5.0 (x64)

Server:  ferdi server

Debug information: debug.txt

You can rightclick "Open Drive" -> "Open in Ferdi"

Note that issue #359 "You are not signed in" still exists though.

With the latest version of Ferdi and the latest recipes, this should no longer be the case.
Can you please try to upgrade to the nightlies available here AND then upgrading the recipes by following the steps outlined here?
If you are on macos or linux, I have shared some newer builds of the latest source code here

Closing since there is a fix (and a separate workaround) - and this does not seem to be affecting other users.


Including "unicode bidi attacks" defense

A solution is https://github.com/lirantal/eslint-plugin-anti-trojan-source
Consider integrating with it?

About "unicode bidi attacks":
The Invisible JavaScript Backdoor – Certitude Blog:
https://certitude.consulting/blog/en/invisible-backdoor/

I believe the latest version of the plugin has added your suggested rule. It was added in PR #95.


sbom scan not working

When i run the scan using
curl -X POST http://< ip-address >:9991/scanSBOM --data-binary @<base 64 encoded_sbom_file_path>
I'm getting {"code":404,"message":"path /scanSBOM was not found"}
I have grype-server(latest version) running and all,not sure what's wrong.Can someone help me fix this,would appreciate it if anyone could walk me through the entire steps to get the scan result.
And also is it possible to get scan result in a specified template

I did make some changes to the curl command,
curl -vX POST http://< ip-address >:9991/api/scanSBOM --data-binary @<base 64 encoded_sbom_file_path>
and the error i'm getting now is

Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 9991 (#0)

POST /api/scanSBOM HTTP/1.1
Host: <IP_ADDRESS>:9991
User-Agent: curl/7.68.0
Accept: /
Content-Length: 12051818
Content-Type: application/x-www-form-urlencoded
Expect: 100-continue

Mark bundle as not supporting multiuse
< HTTP/1.1 415 Unsupported Media Type
< Content-Type: application/json
< Date: Tue, 09 Jul 2024 21:17:16 GMT
< Content-Length: 122
< Connection: close
<
Closing connection 0
{"code":415,"message":"unsupported media type "application/x-www-form-urlencoded", only [application/json] are allowed"}

I'm confused about the sbom file type, Please help me out.


Revert "Travis: remove vint for now"

This reverts commit 854bbcbfa20eb2e8b6cb883160a04d36747a7f82.

Included in #86 .


World Map Custom Symbols

Is your feature request related to a problem? Please describe.
Sometimes I find a nice area that I want to make note of for the future but there is nothing on the map to make note of easily.
Describe the solution you'd like
A method to add our own symbols to the map(Clicking on the globe) along with a description that would show when you hover over them.
Additional context
The main benefit of this is for snowflake accounts where there is not a lot documented about the areas so when you find a nice spot that is not documented in a wiki you could actually mark it on your map for future use.

Basically #4496 but better

I would then basically make this duplicate of #4496 as that should be enough


Bringing fork up to date

Hi @iSazonov, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;


expose labels

Would be good have exposed the labels "BACK" "NEXT" and "STEP OF" to be easily changed to support any languaje or different texts people would like to have.

Thanks for the suggestion @orkwizard.
I just released a new version 1.1.0, it contains the suggestion you just made.
The CoolStepper class now has a new property called config which is of type CoolStepperConfig.
It has properties like backText, nextText .
Something like
CoolStepperConfig(
  backText: "BACK",
  nextText: "NEXT",
  stepText: "STEP",
  ofText: "OF",
);

I hope that helps.


[CLOSED] Migrate formats for vehicle recalls and faults alerts

 Issue by Rosa-Fox
Thursday 11 February 2016 at 16:35 GMT
Originally opened as https://github.com/alphagov/specialist-publisher/pull/649

https://trello.com/c/zvp2e2SG/538-vehicle-faults

Rosa-Fox included the following code: https://github.com/alphagov/specialist-publisher/pull/649/commits

 Comment by jamiecobbett
Monday 15 February 2016 at 13:50 GMT

I think it would be a good idea to start including screen shots on these PRs. Here's one for this:

 Comment by jamiecobbett
Monday 15 February 2016 at 13:54 GMT

@tommyp that's not strictly true - the "Body" textarea is far smaller on this branch than master - 2 rows instead of 20.

 Comment by tommyp
Monday 15 February 2016 at 13:51 GMT

@jamiecobbett The markup for these is the same. The frontend isn't changing with these PRs.

 Comment by tommyp
Monday 15 February 2016 at 14:32 GMT

You're right. I copied the CSS over so I'm guessing this comes from https://github.com/elliotcm/generic_form_builder.

 Comment by boffbowsh
Monday 15 February 2016 at 16:05 GMT

Same comments here as on https://github.com/alphagov/specialist-publisher/pull/654

 Comment by gpeng
Tuesday 16 February 2016 at 11:22 GMT

@boffbowsh Fixed in 4a18745

 Comment by gpeng
Tuesday 16 February 2016 at 11:23 GMT

@jamiecobbett We'll address the 'row' issue in another PR.

 Comment by fofr
Tuesday 16 February 2016 at 11:37 GMT

From the screenshot it looks like these fields aren't using the correct Bootstrap form classes. The spacing is a bit too bunched together, the label shouldn't be so close to the form field above.
I think each input needs to be wrapped in <div class="form-group">


[FLINK-15510] Pretty Print StreamGraph JSON Plan

What is the purpose of the change
Currently we print StreamGraph JSON as string without pretty printer. The output is less than awesome. We can simply switch to toPrettyString.
Verifying this change
This change is a trivial rework / code cleanup without any test coverage.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (no)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

Whats the difference in the output? Could you post an example here?

Other than that, I'm happy to merge, and there's also some simplification in the code. 👌

Thanks for your attention @aljoscha ! The difference is as below.
Before:

After:

note the difference introduced by the first commit which change toString with toPrettyString

Oh yes, that's a night and day difference. Immediately merged! 🍵

Thanks for your review!


Several errors on installation that are driving me crazy

PiVPN Issue Template

Console output of curl install.pivpn.io | bash
osmc@osmc:~$ sudo curl -L http://install.pivpn.io | bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   178  100   178    0     0    568      0 --:--:-- --:--:-- --:--:--   570
100 43780  100 43780    0     0   116k      0 --:--:-- --:--:-- --:--:--  116k
:::
::: sudo will be used for the install.
::: Verifying free disk space...
converted 'https://swupdate.openvpn.net/repos/repo-public.gpg' (ANSI_X3.4-1968) -> 'https://swupdate.openvpn.net/repos/repo-public.gpg' (UTF-8)
--2017-08-22 11:13:54--  https://swupdate.openvpn.net/repos/repo-public.gpg
Resolving swupdate.openvpn.net (swupdate.openvpn.net)... <IP_ADDRESS>, <IP_ADDRESS>
Connecting to swupdate.openvpn.net (swupdate.openvpn.net)|<IP_ADDRESS>|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1806 (1.8K) [application/octet-stream]
Saving to: 'STDOUT'

-                      100%[==============================>]   1.76K  --.-KB/s   in 0s

2017-08-22 11:13:55 (8.41 MB/s) - written to stdout [1806/1806]

OK
::: Adding OpenVPN repo for Debian jessie ... [-]  W: Failed to fetch http://build.openvpn.net/debian/openvpn/stable/dists/jessie/Release  Unable to find expected entry 'main/binary-armhf/Packages' in Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones used inste done!
:::
::: Checking apt-get for upgraded packages.... done!
:::
::: Your system is up to date! Continuing with PiVPN installation...
whiptail: error while loading shared libraries: /lib/arm-linux-gnueabihf/libslang.so.2: ELF file version ident does not match current one
debconf: whiptail output the above errors, giving up!
Use of uninitialized value $ret in scalar chomp at /usr/share/perl5/Debconf/Client/ConfModule.pm line 132, <STDIN> line 5.
Use of uninitialized value $ret in split at /usr/share/perl5/Debconf/Client/ConfModule.pm line 133, <STDIN> line 5.
Use of uninitialized value $ret[0] in string eq at /usr/share/perl5/Debconf/Client/ConfModule.pm line 134, <STDIN> line 5.
whiptail: error while loading shared libraries: /lib/arm-linux-gnueabihf/libslang.so.2: ELF file version ident does not match current one
whiptail: error while loading shared libraries: /lib/arm-linux-gnueabihf/libslang.so.2: ELF file version ident does not match current one
whiptail: error while loading shared libraries: /lib/arm-linux-gnueabihf/libslang.so.2: ELF file version ident does not match current one
whiptail: error while loading shared libraries: /lib/arm-linux-gnueabihf/libslang.so.2: ELF file version ident does not match current one
::: Cancel selected, exiting....

Console output of pivpn add or pivpn add nopass

Console output of pivpn debug

Issue
Hi, after uninstalling pi vpn to reinstall again I'm finding these errors that I can't find any solution.

It seems that cannot take the package from OpenVPN repos.
Whiptail raises an error. I've tried to reinstall whiptail and libslang2-dev

Does anyone having the same issue?
How can I proceed? thanks!

This hasn't happened yet for other users. What OS are you running this on? Can you post the contents of /etc/apt/sources.list and/or the contents of the files in /etc/apt/sources.list.d?

I'm using osmc, actually it's been working fantastic until I uninstalled it to install again.
Here is the /etc/apt/sources.list
deb http://ftp.debian.org/debian jessie main contrib non-free

deb http://ftp.debian.org/debian/ jessie-updates main contrib non-free

deb http://security.debian.org/ jessie/updates main contrib non-free

deb http://apt.osmc.tv jessie main

deb http://ftp.us.debian.org/debian jessie-backports main contrib non-free

And the files and contents of /etc/apt/sources.list.d
swupdate.openvpn.net.list:
deb http://build.openvpn.net/debian/openvpn/stable jessie main
Thanks!

@dangior still need help on this??

Hi @cfcolaco finally I decided to reset the raspi.


Fix getting http response body in proxytest

Hmm maybe I shouldn't have updated the existing test since it'll be trickier updating the e2e on mac, but if you don't have any hints I'll see what I can do

You have to remove the original content-length header as at the point of OnHttpRespnoseBody, HTTP headers  already arrived at the client https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/0a6c0043e71dc06b2b85b93fa5d033c6982d0749/examples/http_body/main.go#L79-L89

2022/08/25 06:34:43 Unsolicited response received on idle HTTP channel starting with "ded body][original body]"; err=<nil>
2022/08/25 06:34:44 Unsolicited response received on idle HTTP channel starting with "ded body][original body]"; err=<nil>
2022/08/25 06:34:44 Unsolicited response received on idle HTTP channel starting with "ded body][original body]"; err=<nil>
2022/08/[25](https://github.com/tetratelabs/proxy-wasm-go-sdk/runs/8009973129?check_suite_focus=true#step:8:26) 06:34:45 Unsolicited response received on idle HTTP channel starting with "ded body][original body]"; err=<nil>
2022/08/25 06:34:45 Unsolicited response received on idle HTTP channel starting with "ded body][original body]"; err=<nil>
2022/08/25 06:34:46 Unsolicited response received on idle HTTP channel starting with "ded body][original body]"; err=<nil>
2022/08/25 06:34:46 Unsolicited response received on idle HTTP channel starting with "ded body][original body]"; err=<nil>
2022/08/25 06:34:47 Unsolicited response received on idle HTTP channel starting with "ded body][original body]"; err=<nil>
2022/08/25 06:34:47 Unsolicited response received on idle HTTP channel starting with "ded body][original body]"; err=<nil>

This says that HTTP body is larger than expected (content-length header)

Thanks a lot @mathetake I was not on the right track at all!

https://github.com/tetratelabs/proxy-wasm-go-sdk/blob/494d32c81bfb2f3f63c0797f6f6abba4a78e0bfa/.github/workflows/workflow.yaml#L122 another place to fix

Ouch - in a future PR will try swapping cache for artifacts as I think those are job-scoped so wouldn't have the chance of loading ancient examples that pass e2es with failing code 🙀

👍

started failing :D

oh 0.25 won't work on envoy...?

@mathetake Hmm going to need to investigate - in coraza-wasm-filter I'm using 0.25.0 with envoy 1.22 in docker and it does seem to work

ok


explore how to incorporate push notifications

I know that firebase has a very easy and widely used way of doing push notifications. I think it is called Firebase Cloud Messaging.


Updated terraform syntax to 0.12

updated terraform syntax so is correct with the latest version.

@AlexBevan : Thanks for your contribution! The author(s) have been notified to review your proposed change.

@AlexBevan Thanks for the update. #sign-off


Receive exact timings for graphQLClient.request

Is it possible to receive execution timings of requested GraphQL query directly? I need to receive exact time of HTTP query that executed for receive GraphQL response, without any other operation timings.
I can measure time via comparison of microtime before and after calling await graphQLClient.request(), but they will not match to real HTTP query timings, because of async calls.

If your env is a browser,  why don't you use its network analysis panel?
If your env is node server-side, why don't you use tracing, like opentelemetry?

We want to go this way https://github.com/jasonkuhrt/graphql-request/issues/458


Out of range with new dji "Fly" app txt file

On dji Fly app txt file, the call to parse_file returns
RangeError: index out of range
at checkOffset (buffer.js:622:11)
at Buffer.readUInt8 (buffer.js:660:5)
at is_jpeg_soi (/datas/www/dji/node_modules/node-djiparsetxt/dist/services/FileParsingService.js:26:20)
at FileParsingService.get_record_cache (/datas/www/dji/node_modules/node-djiparsetxt/dist/services/FileParsingService.js:110:28)
at FileParsingService.parse_records (/datas/www/dji/node_modules/node-djiparsetxt/dist/services/FileParsingService.js:50:28)
at Object.parse_file (/datas/www/dji/node_modules/node-djiparsetxt/dist/node-djiparsetxt.js:160:43)

here is the txt file
fltest.txt

Thanks for the issue report, will work on it when I have some time between projects. Should be an easy fix.

Hi, i'm using this library and have same issue with dji fly files. How can i help?


Mouse cursor styles

Describe the solution you'd like
Different mouse cursor styles beyond the vanilla Microsoft mouse.
Describe alternatives you've considered
Perhaps the mouse cursor from RS2 2010 to accompany the currently available menu styling.
Custom mouse image.
Just an aesthetic touch, nothing important really, but nice to have available.

Duplicate of #2068


Update stack.yaml to use aeson-<IP_ADDRESS>

The cabal file was regenerated by stack and reflects the lower bound for
aeson as given in the package.yaml.

As there apparently are no compatibility issues with aeson-1.0 it would be great if you could make a new Hackage revision with a relaxed upper bound for aeson.

I released a new version.

I released a new version.

Thanks! This was only intended for a version of stack that should be compatible wiith aeon-<IP_ADDRESS>.


Continuous integration

Add a CI workflow that uses the generator to create a new project.
Uses all the default choices, and then tests that the project is correctly generated.
Currently, the project is not generated at all, so you might want to check the generator for a potential bug until this workflow passes.

Thank you very much for this contribution. I will investigate.


There is a error with the restore trained model

when I do the inference, run to the restore model step an error has occurred, has anyone encountered it?

But I didn't  have this error when I restore the previous model  to train.

see https://github.com/Rayhane-mamah/Tacotron-2/pull/145/commits/d6e0513d7be0e89c5827c42417a3cba45427f2b3


Unable to use chatgpt integration

have entered api key and enabled it but on double press it still does nothing

Hey! Do you have any errors or warnings in the console (Ctrl + Shift + I)?

Currently there's no any chatGPT API error handlers, I'm going to implement it in the future

Currently there's no any chatGPT API error handlers, I'm going to implement it in the future

chatGPT API error handlers added in the a7bd9fd commit


Download url of prisma engines for Node-API Not Found

Bug description
After installing prisma with npm I tried to generate the prisma client for my project via:
npx prisma generate
The request for the download is stopped because the following url is not Found
https://binaries.prisma.sh/all_commits/1a2506facaf1a4727b7c26850735e88ec779dee9/linux-arm-openssl-1.1.x/migration-engine.gz
Therefore no client will be generated and I can't use it inside of my programm because of the following error:
Error: @prisma/client did not initialize yet.
How to reproduce
Occurs after running any prisma command with npx.
Expected behavior
As mentioned in this discussion https://github.com/prisma/prisma/discussions/9656 the url is not working but is with linux-arm64-openssl-1.1.x instead. Nevertheless I cannot install the correct engine on linux system.
Furthermore changing the binaryTargets of the prisma client did not fix this problem.
Prisma information
Current generator:
generator client {   provider = "prisma-client-js"   binaryTargets = ["native", "debian-openssl-1.1.x", "linux-arm64-openssl-1.1.x", "linux-musl"] }
But doesn't work either without binaryTargets
Environment & setup
OS INFO:
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
Kernel: Linux 5.4.83-v7l+
Architecture: arm
Prisma Version
3.11.1 in package.json

This sounds related or similar to https://github.com/prisma/prisma/issues/5552. Possible?

Seems like. Is there no support for arm or is it just a bug?

We treat any not working installation as a bug first, but this one is possibly related to a missing feature: https://github.com/prisma/prisma/issues/8478

so umm, any solution yet?

Your problem is probably that you are using an operating system with OpenSSL 3, but a too old version of PRisma that did not support OpenSSL 3. Try upgrading your Prisma version - and if that does not work please open a new issue and provide all the information we need to understand what is happening.

I'm so sorry. that was my bad. i just add binaryTargets for ubuntu and it works just fine

@saharshg I think I might be able to help you, but could you open a new issue here first?
Please make sure to mention your Node.js version and environment info in the template.

Note for @helltf and @baddri if you are running on a Raspberry Pi
adding support for Prisma for Linux ARM 32bit is tracked in https://github.com/prisma/prisma/issues/5379
Though since Raspbian OS has a 64 bit version, it's the one currently recommended. Make sure the Node.js runtime is also 64bit, and it should work out of the box without specifying any binaryTargets with the latest version of Prisma.


6 ➡ 7

6 ➡ 7
Port  ign-gazebo6 to main
Branch comparison: https://github.com/ignitionrobotics/ign-gazebo/compare/main...ign-gazebo6
Note to maintainers: Remember to Merge with commit (not squash-merge or rebase)

The only new test failure seems to be INTEGRATION_shader_param_system. Any suggestions on forward-porting this, @iche033 ?

For more context, it looks like the SceneUpdate Event is still firing even after the server has run all of it's iterations?
(gdb) bt
#0  [33mignition::rendering::v7::ShaderParams::operator[][m ([36mthis=this@entry[m=0x0, [36m_name[m="color") at [32m/home/mjcarroll/workspaces/ign_garden/src/ign-rendering/src/ShaderParams.cc[m:130
#1  [34m0x00007fffcbe53393[m in [33mignition::gazebo::v7::systems::ShaderParamPrivate::OnUpdate[m ([36mthis[m=0x5555574e1260) at [32m/home/mjcarroll/workspaces/ign_garden/src/ign-gazebo/src/systems/shader_param/ShaderParam.cc[m:468
#2  [34m0x00007fffd0b19c51[m in [33mstd::function<void ()>::operator()() const[m ([36mthis[m=<optimized out>) at [32m/usr/include/c++/9/bits/std_function.h[m:683
#3  [33mignition::common::EventT<void (), ignition::gazebo::v7::events::SceneUpdateTag>::Signal<>()[m ([36mthis[m=0x555557128d10) at [32m/home/mjcarroll/workspaces/ign_garden/install/include/ignition/common5/ignition/common/Event.hh[m:146
#4  [33mignition::gazebo::v7::EventManager::Emit<ignition::common::EventT<void (), ignition::gazebo::v7::events::SceneUpdateTag>>()[m ([36mthis[m=<optimized out>) at [32m/home/mjcarroll/workspaces/ign_garden/src/ign-gazebo/include/ignition/gazebo/EventManager.hh[m:112
#5  [34m0x00007fffd0a8c061[m in [33mignition::gazebo::v7::RenderUtil::Update[m ([36mthis=this@entry[m=0x5555574d9d88) at [32m/home/mjcarroll/workspaces/ign_garden/src/ign-gazebo/src/rendering/RenderUtil.cc[m:1592
#6  [34m0x00007fffec224774[m in [33mignition::gazebo::v7::systems::SensorsPrivate::RunOnce[m ([36mthis[m=0x5555574d9d70) at [32m/home/mjcarroll/workspaces/ign_garden/src/ign-gazebo/src/systems/sensors/Sensors.cc[m:242
#7  [34m0x00007fffec225158[m in [33mignition::gazebo::v7::systems::SensorsPrivate::RenderThread[m ([36mthis[m=0x5555574d9d70) at [32m/home/mjcarroll/workspaces/ign_garden/src/ign-gazebo/src/systems/sensors/Sensors.cc[m:312
#8  [34m0x00007ffff7294de4[m in [33m??[m () from [32m/lib/x86_64-linux-gnu/libstdc++.so.6[m
#9  [34m0x00007ffff7c16609[m in [33mstart_thread[m ([36marg[m=<optimized out>) at [32mpthread_create.c[m:477
#10 [34m0x00007ffff70d0163[m in [33mclone[m () at [32m../sysdeps/unix/sysv/linux/x86_64/clone.S[m:95

The only new test failure seems to be INTEGRATION_shader_param_system. Any suggestions on forward-porting this, @iche033 ?

looks like ign-fuel_tools8 have issue downloading these models. I tried downloading the models using the command line in Fortress and Garden:
ign fuel download -v 4 --url "https://fuel.ignitionrobotics.org/1.0/openrobotics/models/waves"

With Garden, I see that the meshes and materials directories do not exist after unzipping. It could be something to do with recent changes in ign-common filesystem but not sure yet.

For more context, it looks like the SceneUpdate Event is still firing even after the server has run all of it's iterations?

I think the segfault is due to missing model files. If I copy the correctly downloaded / unzipped models to the test directory's fuel cache, the test passes.

With Garden, I see that the meshes and materials directories do not exist after unzipping. It could be something to do with recent changes in ign-common filesystem but not sure yet.

Oh I believe that was fixed by https://github.com/ignitionrobotics/ign-common/pull/308, maybe we just need to retrigger CI then

Now getting new failures:
INTEGRATION_recreate_entities

[ RUN      ] RecreateEntitiesFixture.RecreateEntities_WorldJoint
[Msg] Loading SDF world file[/github/workspace/test/worlds/fixed_world_joint.sdf].
[Msg] Loaded level [3]
[Msg] No systems loaded from SDF, loading defaults
[Dbg] [ServerConfig.cc:931] Loaded (3) plugins from file [/github/workspace/build/test/fake_home/.ignition/gazebo/7/server.config]
[Dbg] [Physics.cc:801] Loaded [ignition::physics::dartsim::Plugin] from library [/usr/lib/x86_64-linux-gnu/ign-physics-6/engine-plugins/libignition-physics-dartsim-plugin.so]
[Dbg] [SystemManager.cc:49] Loaded system [ignition::gazebo::systems::Physics] for entity [1]
[Msg] Create service on [/world/default/create]
[Msg] Remove service on [/world/default/remove]
[Msg] Pose service on [/world/default/set_pose]
[Msg] Light configuration service on [/world/default/light_config]
[Msg] Physics service on [/world/default/set_physics]
[Msg] SphericalCoordinates service on [/world/default/set_spherical_coordinates]
[Msg] Enable collision service on [/world/default/enable_collision]
[Msg] Disable collision service on [/world/default/disable_collision]
[Msg] Material service on [/world/default/visual_config]
[Dbg] [SystemManager.cc:49] Loaded system [ignition::gazebo::systems::UserCommands] for entity [1]
[Dbg] [SystemManager.cc:49] Loaded system [ignition::gazebo::systems::SceneBroadcaster] for entity [1]
[Msg] Serving world controls on [/world/default/control], [/world/default/control/state] and [/world/default/playback/control]
[Msg] Serving GUI information on [/world/default/gui/info]
[Msg] World [default] initialized with [1ms] physics profile.
[Msg] Serving world SDF generation service on [/world/default/generate_world_sdf]
[Msg] Serving world names on [/gazebo/worlds]
[Msg] Resource path add service on [/gazebo/resource_paths/add].
[Msg] Resource path get service on [/gazebo/resource_paths/get].
[Msg] Resource paths published on [/gazebo/resource_paths].
[Msg] Server control service on [/server_control].
[Msg] Found no publishers on /stats, adding root stats topic
[Msg] Found no publishers on /clock, adding root clock topic
[Dbg] [SimulationRunner.cc:490] Creating PostUpdate worker threads: 3
[Dbg] [SimulationRunner.cc:501] Creating postupdate worker thread (0)
[Dbg] [SimulationRunner.cc:501] Creating postupdate worker thread (1)
[Msmalloc(): invalid next->prev_inuse (unsorted)

195/195 Test #195: testFixture_TEST.py ....................................Child aborted***Exception:   3.31 sec
terminate called after throwing an instance of 'pybind11::error_already_set'
what():  TypeError: Unable to convert function return value to a Python type! The signature was
(self: ignition.gazebo.World, arg0: ignition.gazebo.EntityComponentManager) -> Optional[ignition::math::v7::Vector3]
At:
/github/workspace/python/test/testFixture_TEST.py(46): on_pre_udpate_cb

The testFixture.py failure should be fixed by ce0a85f, but we need to release python3-ignition-math7. I'm on it.
I can't reproduce the INTEGRATION_recreate_entities failure either.

I can't reproduce the INTEGRATION_recreate_entities failure either.

The final error message would make me think it's probably some sort of heap corruption, but I don't know how to even begin to unwind that without more context.

I opened https://github.com/ignitionrobotics/ign-gazebo/pull/1380 with a subset of commits from this PR while we sort out the python3-ignition-math7 release.

CI is happy!


"git" command requires the command line developer tools

Trying to install Atom on MacOS Monterey 12.3.1. On every startup it says 'The "git" command requires the command line developer tools'. If I try to install it says it will take ~160 hours to download. Please advise.

Have you downloaded apple's command line developer tools?
https://developer.apple.com/download/all/?q=command line tools for xcode

Mine also said over 100 hours but quickly went down to 20 minutes and then 15 minutes. Probably took an actual 12 minutes.

[Solved] The “git” command requires the command line developer tools


Use with SSR Caching

Thanks for this lib! I'm trying to implement SSR caching . Seems not to be working as expected. I'm unable to get the right page path to use the caching function.

Could you provide some more information?
Example? etc.?

Hey @HaNdTriX
I have the following:
...
function renderAndCache(req, res, pagePath, queryParams) {
  const key = getCacheKey(req)

  if (ssrCache.has(key)) {
    console.log(`CACHE HIT: ${key}`)
    res.send(ssrCache.get(key))
    return
  }

  app.renderToHTML(req, res, pagePath, queryParams)
    .then((html) => {
      if ( !dev ) {
        console.log(`CACHE MISS: ${key}`)
        ssrCache.set(key, html)
        console.log(`CACHE SET: ${key}`)
      }
      res.send(html)
    })
  .catch((error) => {
    app.renderError(error, req, res, pagePath, queryParams)
  })
}
...

I guess the question is how do I get the requests to named routes using next-routes and pass the right arguments to the renderAndCache? An option is to server.get() for all the routes but wondering if there's a cleaner way to go about it.

Please see https://github.com/fridays/next-routes/issues/4

thanks @fridays. Will close this and look into #4