Added beam search for LSTM

This adds the beam search algorithm for the LSTM model.

The following arguments have been added with default values of 1: beam_width and n.
The LSTM beam search now operates with the log-likelihood of the logits.
The parameter return_confidences is no longer necessary as the log-likelihoods are always returned, eliminating the polymorphic return type.
BaseModel now includes a function interface beam_decode that raises a NotImplementedError.
Transformer, pointer generator, and transducer now call beam_decode, which will raise the previous exception.
predict.py now displays the beam search results. It prints all the predictions and scores for an input in one line, separating each prediction by tabs. The format is as follows:

prediction_00/score_00\tprediction_01/score_01\t...\tprediction_0n/score_0n
prediction_10/score_10\tprediction_11/score_11\t...\tprediction_1n/score_1n

Issue

The return of BaseEncoderDecoder.predict_step() is now polymorphic. Beam search returns two tensors (predictions and scores), while greedy search only returns one (predictions). The decision was made to retain it as polymorphic because the trainer and validation functions expect just one tensor and not a tuple of two tensors.

Awesome!! I am going to take a look in about 30 mins.

I have one other general question: would it be helpful to build a class called Beam that encapsulates the the heapq calls and the list that is acting as the heap?

We should certainly do this eventually, and probably add some custom named tuples or dataclasses with it for tracking histories, etc.

@CarlosGolvano I for one would love this but am not expecting you to do it in this PR. This PR might help us think about what the interface should be though.

I've made all the modifications you suggested in your comments—thank you for that! I'm still a bit unsure if I should address each comment individually since I'm new to PRs.
Regarding the performance of the beam search, it was really slow before I removed the 'n' parameter. Now, I don't know why, it seems a bit faster. We're planning to do some experiments these days so we can tell you more performance information. I also tried to swap out heapq for torch tensors, but it turned out to be trickier than I expected, so I decided to pause. I think that the Beam class you proposed will make this easier to implement.

I've made all the modifications you suggested in your comments—thank you for that! I'm still a bit unsure if I should address each comment individually since I'm new to PRs.

I have been doing this as you revise but it helps me if you click the “resolve” button once you commit a fix for an issue.
Broadly this looks good to me. I would like to do one more pass and test locally in the next 24 hours so I can confirm things.
@Adamits can you also check this one last time?

I'll be AWK for a few days and if @Adamits hasn't had a chance to look at this by then I'll just test locally to make sure everything's good to go. Sorry for the delay.

Taking a look. Just having a few dependency issues since I haven't done a fresh yoyodyne install on my mac in a while :D.

Regarding the performance of the beam search, it was really slow before I removed the 'n' parameter. Now, I don't know why, it seems a bit faster. We're planning to do some experiments these days so we can tell you more performance information.

Ah ok, I guess this skips some heapq.top_k calls, which may have been a bottleneck?
I also tried to swap out heapq for torch tensors, but it turned out

to be trickier than I expected, so I decided to pause. I think that the Beam class you proposed will make this easier to implement.

Cool! Let me know if you want to discuss sometime.

Sorry for delays. I have tested this for attentive_lstm and it seems to work as expected. One thing i'd like Kyle to weigh in on though---by default we write the predictions and scores when beam_width > 1, but if beam_width == 1, then we just write the predictions.
I don't nec. have a problem with this but it is a somewhat weird behavior. I think modifying what you do and do not write during prediction is easy for a user to change in python, and avoiding more CLI flags is probably a good move, but wanted to point this out anyway.

Sorry for the inconvenience, I just made a last commit updating the README. I forgot to remove the 'n' parameter from the beam search and also added the beam search output format.
Thank you very much for your work and for taking time to accept the PR.  :blush:

Sorry for delays. I have tested this for attentive_lstm and it seems to work as expected. One thing i'd like Kyle to weigh in on though---by default we write the predictions and scores when beam_width > 1, but if beam_width == 1, then we just write the predictions.

I'm okay with this state of affairs.

OK, just got the chance to test locally and it works well. I'll merge now.
We will put out version 0.2.13 now and it'll include this.
We'd love to

increase support for this in other models
generalize to batch sizes > 1, and/or
incorporate into training

in the future, and you @CarlosGolvano are welcome to contribute if you're so inclined.


Feature: Add Base64 encoding

To be added: A button that encodes the text into base64 format when clicked.

#58


[InputAdornment][material-next] Add InputAdornment component

Closes https://github.com/mui/material-ui/issues/39628

[x] I have followed (at least) the PR section of the contributing guide.

Waiting for https://github.com/mui/material-ui/pull/39483 to be merged before working on the layout changes involving the label and start adornment

Would like to ask @zanivan & @DiegoAndai for an initial review of the design changes in this PR (details here)
I've added some knobs on the experiments page to toggle FormHelperText (the checkbox) and the color prop (the select) of the components on the whole page
The code is also close to review-able, it could use an extra round of polish after the design is reviewed and there may be some CSS that could be further tokenized into css variables
Demo: https://deploy-preview-39722--material-ui.netlify.app/experiments/md3/inputs/


Codie/documentation-update

Please let me know if there is anything that should be added/changed.

looking good! I think I would probably wonder what type of tech this is using behind the scene, i.e. NodeJS + CouchDb for the Backend piece and ReactJS for the webapp.  Also the one thing that isnt clear reading the doc is where the backend piece is hosted (GAE on GCP) and the webapp (Netlify) and I guess the smart contracts themselves are on-chain.
Cant think of anything else.

@gholadr
I don't think the deployment instructions to a live environment are necessary. I feel like we are at this point just teaching them to be full stack developers. Most of the people who pick this up won't even develop anything passed a little game for themselves to wrap their head around the concept.
The game itself is not really worth deploying. It is worth it to us because we will make money off it. But most of these guys will probably change some graphics and play around with it a little bit then throw it away. Anyone interested in developing this out further will already know what they are doing.

@gholadr
I don't think the deployment instructions to a live environment are necessary. I feel like we are at this point just teaching them to be full stack developers. Most of the people who pick this up won't even develop anything passed a little game for themselves to wrap their head around the concept.
The game itself is not really worth deploying. It is worth it to us because we will make money off it. But most of these guys will probably change some graphics and play around with it a little bit then throw it away. Anyone interested in developing this out further will already know what they are doing.

@Codie-Petersen no, I'm not saying we should add deployment instructions either but I think it would be helpful to state where the different parts of the architecture sit, i.e. "where does this stuff live?" we could simply say that the BE and FE pieces are cloud hosted and leave it at that.

Come to think of it, I think you're right @Codie-Petersen, the doc is sufficiently complete and I like the technologies section, which does more than enough of a good job at outlining all of the different techs used. Well done. lets merge.


The numbers is not visble on the compass on the widget autopilot

When using the theme moderne dark the background and text color of is too similar.  I believe it happened when the autopilot got its own text color on #202

Send a screenshot. It looks fine on my side

Make sure you are on the latest version please. This is the only version supported. If you are trying to get up to date with your fork, you should rebase. You are 200+ commits behind. Save yourself some work ;)

my master is from 19/12 and my rebase is from 26/11 this is a screnshot

the numbers is missing. You need two text classes to handle two different background light-ring numbers (120) dark-ring text (NW) you have only one. And I am testing my rebase now.

This dark color is because the button are disabled. It's intentionnal.
Thank for reporting!

come on where the arrow is pointing the number 30 is missing thank you fro listenting

The numbers are on the  light ring same color as text NW but you can not see them  30 60 90 120 150 where are they??. There are even space for them. Tell me the color class of the html text elements that holds the numbers 30 60  and the color.

This is the template look there is number on it


Add pytest-cov to project dependencies -- Testing with coverage.

Changes:

Added pytest-cov to the project dependencies

/!\ A valid configuration env is needed to run the tests properly.

These file must be ignored in the .gitignore I think so.
      modified:   .coverage
      modified:   coverage.xml

thks for the notification we will update that.

done!


Refresh tableMeta when SQL throw a missing field exception

Why you need it?
Is your feature request related to a problem? Please describe in details
Refresh tableMeta when SQL throw a missing field exception
When SQL reports a missing field, refresh TableMeta information immediately. When the table structure information is changed during running, such as adding column A, Seata will throw an Exception when executing SQL for a period of time, resulting in unavailable services for a period of time. This is because tableMeta cache information is cached in memory periodically. When this exception occurs, tabelMeta information should be refreshed immediately.
How it could be?
A clear and concise description of what you want to happen. You can explain more about input of the feature, and output of it.

pls assign this to me😊

https://github.com/seata/seata/pull/4734


net/http: readRequest doesn't check URL length

What version of Go are you using (go version)?

$ go version
go version go1.14.2 linux/amd64

Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
GO111MODULE=""
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/jeremy/.cache/go-build"
GOENV="/home/jeremy/.config/go/env"
GOEXE=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/jeremy/go"
GOPRIVATE=""
GOPROXY="https://proxy.golang.org,direct"
GOROOT="/usr/lib/go-1.14"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/lib/go-1.14/pkg/tool/linux_amd64"
GCCGO="gccgo"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build264402416=/tmp/go-build -gno-record-gcc-switches"

What did you do?
I was exploring the net/http package to see if the HTTP 431 Request Header Fields Too Large and 414 URI Too Long codes were handled already so I don't have to do it myself. I found out that 431 is handled, but 414 URI Too Long is not.
What did you expect to see?
The server should return a 414 URI Too Long error code if the request URI is longer than a MaxURIBytes field added to the Server struct, in the same fashion as MaxHeaderBytes for 431 Request Header Fields Too Large.
A good default value would be 8190 bytes, as it's the default one in Apache.
What did you see instead?
Nothing. This feature is not implemented.

/cc @bradfitz @FiloSottile

If you agree on the change, I can make a PR for this.

I think the existing https://golang.org/pkg/net/http/#Server.MaxHeaderBytes is probably sufficient here:
    // MaxHeaderBytes controls the maximum number of bytes the
    // server will read parsing the request header's keys and
    // values, including the request line. It does not limit the
    // size of the request body.
    // If zero, DefaultMaxHeaderBytes is used.
    MaxHeaderBytes int

I'm having a hard time imagining somebody who wants to bound the request-line separately from the header lengths.
If so, they can do it in their Handler.

You may want to have a higer limit for the length of the cookies than for the URI. But this is probably a marginal case. You can close the issue.


Rename BACK constant to BACKWARD in Vector3 and Vector3i

BACKWARD makes more sense in the context of unit vectors, since it implies a direction, in contrast to BACK, which implies a fixed point. This also makes the naming more consistent with Vector3.FORWARD.
Fixes #67229.

Related: #50047, #52334.

Thanks for the contribution! We are no longer considering new renames since Godot 4 entered the beta stage. This is a breaking change, and it addresses a fresh suggestion for a rename with the only existing discussion being rejected (see the linked PRs). An exception can be made for a breaking change that fixes an issue, but some naming inconsistencies aren't that, I'm afraid. Just something we have to live with until the next opportunity for renames comes by.
Again, thanks for your contribution nonetheless.

Unfortunate, but it is how it is. A proposal could be opened about it, and it could be scheduled for 5.0, among a few others (godotengine/godot-proposals/issues/5350 https://github.com/godotengine/godot-proposals/issues/5347)

If we had BACKWARD, then shouldn't we also have LEFTWARD, RIGHTWARD, UPWARD, DOWNWARD? The only reason we have FORWARD is because FORE is not a common word in English.

If we had BACKWARD, then shouldn't we also have LEFTWARD, RIGHTWARD, UPWARD, DOWNWARD?

I would say no, because left and right are already directions. Back can be a direction based on its context, but it can also be a fixed point. Backward is usually always used as a direction.

@Mickeon why 5.0 and not 4.2?

@Zireael07 Major versions (2.0, 3.0, 4.0, 5.0, etc) are allowed to introduce compatibility breakages. Minor versions (3.1, 3.2, 3.3, 4.1, 4.2, etc) are supposed to only have backwards-compatible features so that existing projects keep working.

@aaronfranke Fair, but given how long 4.x took, I kinda have my doubts as to whether there will be another "major" version - look at how many programs do away with the major/minor distinction or version at all and just provide upgrades/updates

@aaronfranke I'm not an expert at this, nor am I in a place to demand/suggest anything. But there have been a fair amount of code changes (that break things) between minor 3.x releases, like the navigation features. Granted, a simple rename isn't the same thing, but on the other side of that coin, it's literally a ctrl + h change in most projects.

Problem is, this change has remained in limbo because there has been some discussion in the Push Requests mentioned above.
What I mean is, there seemed to be no clear consensus on what the right name should be. Not just for this constant, but for the other constants, as well. No one has talked about this loudly until now, under this closed PR.
Because of this, it doesn't look like a change with solid reasoning on its own, such that one user may look at the rename and say "Yeah, I guess this makes sense" (like it has happened, I know that a bit too well). Nor it may be worth breaking by the time a decision is made, because Vector3 is among the core classes the engine has to offer.

Understood. Let us wait for Godot 5.0, gentlemen.


TypeError during internal API call to update locations

On master (as at d89e3ad9e75b64), run $ TEST_ONLY=kr npm run test:integration
The console log will show:
Status update: kr / scraper / success: 97.888ms
Failed to update locations iso1:kr#iso2:kr-11,iso1:kr#iso2:kr-26,iso1:kr#iso2:kr-27,iso1:kr#iso2:kr-28,iso1:kr#iso2:kr-29,iso1:kr#iso2:kr-30,iso1:kr#iso2:kr-31,iso1:kr#iso2:kr-50,iso1:kr#iso2:kr-41,iso1:kr#iso2:kr-42,iso1:kr#iso2:kr-43,iso1:kr#iso2:kr-44,iso1:kr#iso2:kr-45,iso1:kr#iso2:kr-46,iso1:kr#iso2:kr-47,iso1:kr#iso2:kr-48,iso1:kr#iso2:kr-49,iso1:kr#(unassigned),iso1:kr
    TypeError: Cannot read property 'toUpperCase' of undefined
        at /Users/jeff/Documents/Projects/li/src/events/locations/get-location-names/index.js:19:23
        at Array.map (<anonymous>)
        at getLocationNames (/Users/jeff/Documents/Projects/li/src/events/locations/get-location-names/index.js:7:37)
        at updateLocations (/Users/jeff/Documents/Projects/li/src/events/locations/index.js:15:27)
        at /Users/jeff/Documents/Projects/li/src/events/locations/node_modules/@architect/functions/src/events/subscribe.js:28:24
        at Array.map (<anonymous>)
        at lambda (/Users/jeff/Documents/Projects/li/src/events/locations/node_modules/@architect/functions/src/events/subscribe.js:25:46)
        at Socket.<anonymous> ([eval]:1:1155)
        at Socket.emit (events.js:311:20)
        at Socket.EventEmitter.emit (domain.js:482:12)

Wasn't guarding against (unassigned) entries during annotation. Am now! Pls take a look with the test suite?

It's still occurring on master as at 56c8729902cfc769:
TEST_ONLY=kr npm run test:integration
    Local cache hit for: kr / 2020-05-06
Failed to update locations iso1:kr#iso2:kr-11,iso1:kr#iso2:kr-26,iso1:kr#iso2:kr-27,iso1:kr#iso2:kr-28,iso1:kr#iso2:kr-29,iso1:kr#iso2:kr-30,iso1:kr#iso2:kr-31,iso1:kr#iso2:kr-50,iso1:kr#iso2:kr-41,iso1:kr#iso2:kr-42,iso1:kr#iso2:kr-43,iso1:kr#iso2:kr-44,iso1:kr#iso2:kr-45,iso1:kr#iso2:kr-46,iso1:kr#iso2:kr-47,iso1:kr#iso2:kr-48,iso1:kr#iso2:kr-49,iso1:kr#(unassigned),iso1:kr

    TypeError: Cannot read property 'toUpperCase' of undefined
        at /Users/jeff/Documents/Projects/li/src/events/locations/get-location-names/index.js:19:23
        at Array.map (<anonymous>)
        at getLocationNames (/Users/jeff/Documents/Projects/li/src/events/locations/get-location-names/index.js:7:37)
        at updateLocations (/Users/jeff/Documents/Projects/li/src/events/locations/index.js:15:27)
        at /Users/jeff/Documents/Projects/li/src/events/locations/node_modules/@architect/functions/src/events/subscribe.js:28:24
        at Array.map (<anonymous>)
        at lambda (/Users/jeff/Documents/Projects/li/src/events/locations/node_modules/@architect/functions/src/events/subscribe.js:25:46)
        at Socket.<anonymous> ([eval]:1:1155)
        at Socket.emit (events.js:311:20)
        at Socket.EventEmitter.emit (domain.js:482:12)
    Status update: kr / scraper / success: 741.570ms

Note this happens during "historical scrape", when there is data in the crawler cache:
$ ls crawler-cache/kr
2020-05-02	2020-05-05	2020-05-06	2020-05-07

I'll take a look. :-)

Oh, I didn't see fix-81 branch!  Will try that now.

fix-81 fixes 81.
 Historical scrape

    ✔ using real cache
    Local cache hit for: kr / 2020-05-02
...
    ✔ kr cache scrape 2020-05-06 succeeded (1 record)
    Local cache hit for: kr / 2020-05-07
    Creating new location: seoul-kr / iso1:kr#iso2:kr-11
...
    Creating new location: unassigned-kr / iso1:kr#iso2:(unassigned)   <<<<
    Creating new location: kr / iso1:kr
    Update locations: 2083.106ms
    Status update: kr / scraper / success: 389.758ms
    Scrape: kr / 2020-05-07: 1132.370ms
    ✔ kr cache scrape 2020-05-07 succeeded (1 record)
    ✔ ok

Fixed in https://github.com/covidatlas/li/compare/fix-81, waiting for PR to be opened when you're good with it, @ryanblock .

Sorry, I got to it pretty late last night, thought I opened the PR for the branch (lol). Will merge as soon as tests pass!


MSG_RETURN_FREEZE's KEY_FREEZE attribute may not reflect the frozen state

Description
When a client application is not connected, if user freezes Ultrasound Image stream from Clarius App then a client application that connects to Clarius will get a wrong frozen status when sending a MSG_GET_FREEZE.
Steps

Start Clarius App
Select PA HD3Demo
Click on Clarius App Freeze button
Start Mobile API Example
Menu>Connect
Menu>Ask freeze state

Result
frozen is false is displayed
Expected result
frozen is true is displayed

Issue will be fixed in Clarius App version 10.3.0, thanks for reporting.


Make SlackBot "getBotNameAndAliases" method smarter.

There's a current issue in how we're using getBotNameAndAliases, which would result in having to update the current user-land code (using chatter@0.4.1):
createMessageHandler(id, {channel}) {
  const {botName, aliases} = this.getBotNameAndAliases();
  const name = channel.is_im ? null : botName;
  return createCommand({
    isParent: true,
    name,
    aliases,
    description: 'Yay!',
  }, [
    subCommand,
  ]);
}

To the fairly convoluted:
createMessageHandler(id, {channel}) {
  const {botName, aliases: aliasList} = this.getBotNameAndAliases();
  const name = channel.is_im ? null : botName;
  const aliases = channel.is_im ? aliasList.concat(name) : aliasList;
  return createCommand({
    isParent: true,
    name,
    aliases,
    description: 'Yay!',
  }, [
    subCommand,
  ]);
}

Instead, by updating getBotNameAndAliases to accept a boolean isIm argument, user-land code can be greatly simplified, for what has become the most common use-case:
createMessageHandler(id, {channel}) {
  const {name, aliases} = this.getBotNameAndAliases(channel.is_im);
  return createCommand({
    isParent: true,
    name,
    aliases,
    description: 'Yay!',
  }, [
    subCommand,
  ]);
}

See the comments in the PR diff for a full explanation of the change.


automation of receive chat_id

Hi, there is automation of receive chat_id.
Just send unique message to chat then press "Get chat id" to get telegram chat_id.
This will allow regular user to set up chat_id.

Great work btw...

thanks, with same technique it is possible to interact with user in notification messages.
from server side we could use cron jobs to checks for new updates, then for each update compare chat id, if it match then do something useful.

Should be possible with some effort. Would be useful to comment on a particular task or to upload an attachment/image to the task. Could use the task_id for reference.


default routes for lxd

default routes are added as per discussion on mailing list.
file modified are
client.go
config.go
two helper functions are added in client.go  for parsing getURITokens() and getRemoteURL()
Signed-off-by: Kunal Kushwaha<EMAIL_ADDRESS>

Hi.
Any plans on fixing that Travis failure?

Hi,
I need help for fixing this.
This patch has two main changes.

config.go : here default routes are added in LoadConfig() at  https://github.com/kunalkushwaha/lxd/blob/83ec08983915fd67a3c213ea1cd8e3d248897a0c/config.go#L54

If LXD is installed and running at local machine "/var/lib/lxd/unix.socket" will be created so added local route there as per specs "unix+lxd://var/lib/lxd/socket".
While assigning to unix socket it is assigned as "unix://var/lib/lxd/unix.socket" "https://github.com/kunalkushwaha/lxd/blob/83ec08983915fd67a3c213ea1cd8e3d248897a0c/client.go#L215
On Travis : it gives error error:
Get <IP_ADDRESS>:8443/1.0/finger: unsupported protocol scheme ""
I am not able to run these https://github.com/lxc/lxd/blob/master/test/remote.sh tests at my local dev machine.
Please help me, if what could be error.

I think this error probably has to do with how golang is parsing the protocol on the front (i.e., you probably don't want to pass "unix+lxd" to golang, since golang doesn't know what lxd is). I haven't played with it enough to tell you how to fix it, though.

I feel, we need to review the test cases in test/remote.sh
I ran each test separately, and understood the failure condition.
Its failing for "lxc remote add local <IP_ADDRESS>:8443"
Below is the log for commands I executed
kunal@kunal-VirtualBox:~/go/src/github.com/lxc/lxd/lxc$ ./lxc remote list | grep 'local'
local <http://unix.socket>
kunal@kunal-VirtualBox:~/go/src/github.com/lxc/lxd/lxc$ ./lxc remote set-default local
kunal@kunal-VirtualBox:~/go/src/github.com/lxc/lxd/lxc$ ./lxc remote set-default local --debug
kunal@kunal-VirtualBox:~/go/src/github.com/lxc/lxd/lxc$ ./ lxc remote rename local foo
bash: ./: Is a directory
kunal@kunal-VirtualBox:~/go/src/github.com/lxc/lxd/lxc$ ./lxc remote rename local foo
kunal@kunal-VirtualBox:~/go/src/github.com/lxc/lxd/lxc$ ./lxc remote list | grep 'foo'
foo <http://unix.socket>
kunal@kunal-VirtualBox:~/go/src/github.com/lxc/lxd/lxc$ ./lxc remote list | grep -v 'local'
foo <http://unix.socket>
images <https://registry.linuxcontainers.org>
kunal@kunal-VirtualBox:~/go/src/github.com/lxc/lxd/lxc$ ./lxc remote remove foo
kunal@kunal-VirtualBox:~/go/src/github.com/lxc/lxd/lxc$ ./lxc remote list | grep -v 'local'
images <https://registry.linuxcontainers.org>
kunal@kunal-VirtualBox:~/go/src/github.com/lxc/lxd/lxc$ ./lxc remote add local <IP_ADDRESS>:8443 --debug
2015/01/16 12:20:27 connecting to local
2015/01/16 12:20:27 trying to local:x
2015/01/16 12:20:33 fingering the daemon
error: Get <IP_ADDRESS>:8443/1.0/finger: unsupported protocol scheme ""

I intentionally not executed first test case as it was failing with same condition as last remote add.
PS : Now I understood how to execute these tests at my local machine too :)

Looks to me like that test failing for the same reason as above. What do you mean by "review" the tests?


Enable start line and column for Zed only

Description

This PR re-enables the Zed integration by addressing a specific edge case: it only appends the start line and column to the URL when the URL is specifically for Zed and not the end line and column (see zed-industries/zed#18520 for more info)
Closes #415
What is the purpose of this pull request?

[x] New feature
[ ] Documentation update
[ ] Bug fix
[ ] Refactor
[ ] Release
[ ] Other

I dug deeper into the issue (and the Onlook codebase) because the supposed URL from OnLook was working fine for me, but I didn't realise it was adding end row and column info to pinpoint the circle. So the initally linked issue isn't the same as what I'm facing. I created zed-industries/zed#18520 with more details if you're interested.
P.S. Sorry for the noise: I should've looked into the Onlook codebase before posting here.

Thanks for following up!
Honestly, the other IDEs don't handle end line or column anyway so maybe we'll remove them entirely. Thanks for taking ownership on this


Check that calling the tools didn't fail

If the tool does fail we'll either fail to include the generated file on the next line, or ignore the error and continue using stale config.
Error you get without this if metadata/assets.yml is missing:
...
FileNotFoundError: [Errno 2] No such file or directory: '/batt/repos/.../metadata.yml'
CMake Error at /batt/32blit/32blit-stm32/executable.cmake:60 (include):
  include could not find load file:

    /batt/repos/.../build/metadata.cmake
Call Stack (most recent call first):
  CMakeLists.txt:6 (blit_metadata)

Ooof, handy, thank you!


Suboptimal Color Selection in Data Visualization

Describe the bug
The random color selection for data visualization doesn't provide an optimal user experience, especially when displaying multiple categories. Colors may not sufficiently differ, leading to confusion in interpreting the visualization.
To Reproduce:

Access a dataset with multiple entries (e.g., https://test.visualize.admin.ch/create/GnuwGnO1Iu5K?dataSource=Test)
Choose segmentation with "Warenkorb Nummer"
Select all top-level entries (1-13)
Remove all entries except two with the same color
Apply the filter
Observe the resulting visualization with two categories in the same color

Expected behavior

When there are fewer categories than color values in the palette, Visualize should automatically assign distinct colors to each category.
The "shuffle colors" function should ensure unique colors for each category when possible.
Color palettes should offer more options for better differentiation.

Actual Behavior

The same colors may be selected for different categories, even with only two categories in the visualization.
The "shuffle colors" function doesn't always resolve color conflicts.

Screenshots or video

Environment:

Visualize version: Test v4.7.4 (also reproducible in production)
Browser: Brave v1.69.153

Additional context

Expanding the color palette options would generally improve visualization capabilities.
This issue impacts the clarity and effectiveness of data presentations, especially in scenarios with multiple data segments.

Hi @timvonfelten,
Thank you for your feedback. We're currently working on improving the color selection for charts. We'll provide an update on these improvements soon.


Question about output p3d and allposes3d

Hi , I have two questions ,

I have had 2D detections which i feed it into the 3d predictor. I tried to trace the output of the following two lists poses3d and all_poses_3d . Regarding the output of all_poses_3d which is as follows. Is it the 3D predictions (X,Y,Z) from the entire video sequence ??? Does each row correspond to frame or is it time ?

[array([[ 0.00000000e+00,  0.00000000e+00,  0.00000000e+00,
        -1.18590513e+02, -7.54710593e+01, -4.81356906e+01,
        -5.67777077e+01,  9.05888615e+01, -1.30586482e+02,
        -2.60462532e+02,  3.60059093e+02,  1.70836726e+01,
        -1.15560633e+01,  7.42149725e+02,  1.66477287e+02,
        -1.18447102e+01,  7.36763064e+02,  1.65182437e+02,
         1.18589863e+02,  7.54705369e+01,  4.81355084e+01,
         9.51023920e+01,  4.36000692e+02,  2.89570966e+01,
        -4.54617394e+01,  8.14331952e+02,  1.65912608e+02,
        -1.12642400e+01,  7.48636864e+02,  1.66665977e+02,
        -1.14090840e+01,  7.36435064e+02,  1.63713810e+02,
         1.21660845e-03, -8.60110629e-02, -1.93000576e-02,
         4.83018609e+01, -2.11079417e+02, -4.82572435e+00,
         1.39187234e+02, -4.19865990e+02, -7.02882449e+01,
         1.69620093e+02, -4.50983988e+02, -1.74176445e+02,
         1.34253334e+02, -5.62355770e+02, -1.57637814e+02,
         5.67537804e+00, -4.35088906e+02, -9.76974016e+01,
         2.14618565e+02, -3.30512564e+02, -1.09704604e+01,
         3.57793036e+01, -1.69992728e+02,  5.44005206e+01,
         1.92711691e+02, -8.23625625e+01,  1.02046721e+02,
         1.26585822e+00, -1.20170579e+02, -2.82526049e+01,
         1.57900698e+00, -1.51780249e+02, -3.52080548e+01,
         8.84543993e-01, -1.07795356e+02, -2.56307189e+01,
         8.84543993e-01, -1.07795356e+02, -2.56307189e+01,
         5.67537804e+00, -4.35088906e+02, -9.76974016e+01,
         2.98958555e+01, -4.21684909e+02, -1.03864265e+02,
         1.93760533e+01, -2.89760642e+02, -5.48227057e+01,
        -4.60343417e+01, -2.60396688e+02, -7.98165678e+01,
         8.70569014e-01, -1.68664569e+02, -3.73902498e+01,
         1.39982512e+00, -2.00884252e+02, -4.47207875e+01,
         5.24591115e-01, -1.65867774e+02, -3.68342864e+01,
         5.24591115e-01, -1.65867774e+02, -3.68342864e+01]])]

And poses3d what does it output to ? It seems to have 4 coloumns . The array list is below  (  I guess this is also for the entire video sequence ?? )  Sequence output below
[[-1.88248140e+02  0.00000000e+00  6.20255861e+02 -3.06838653e+02
  -4.81356906e+01  6.95726921e+02 -2.45025848e+02 -1.30586482e+02
   5.29667000e+02 -4.48710673e+02  1.70836726e+01  2.60196769e+02
  -1.99804203e+02  1.66477287e+02 -1.21893864e+02 -2.00092850e+02
   1.65182437e+02 -1.16507202e+02 -6.96582775e+01  4.81355084e+01
   5.44785324e+02 -9.31457481e+01  2.89570966e+01  1.84255170e+02
  -2.33709879e+02  1.65912608e+02 -1.94076091e+02 -1.99512380e+02
   1.66665977e+02 -1.28381002e+02 -1.99657224e+02  1.63713810e+02
  -1.16179203e+02 -1.88246923e+02 -1.93000576e-02  6.20341872e+02
  -1.39946279e+02 -4.82572435e+00  8.31335278e+02 -4.90609059e+01
  -7.02882449e+01  1.04012185e+03 -1.86280467e+01 -1.74176445e+02
   1.07123985e+03 -5.39948062e+01 -1.57637814e+02  1.18261163e+03
  -1.82572762e+02 -9.76974016e+01  1.05534477e+03  2.63704247e+01
  -1.09704604e+01  9.50768425e+02 -1.52468836e+02  5.44005206e+01
   7.90248589e+02  4.46355101e+00  1.02046721e+02  7.02618424e+02
  -1.86982282e+02 -2.82526049e+01  7.40426440e+02 -1.86669133e+02
  -3.52080548e+01  7.72036110e+02 -1.87363596e+02 -2.56307189e+01
   7.28051217e+02 -1.87363596e+02 -2.56307189e+01  7.28051217e+02
  -1.82572762e+02 -9.76974016e+01  1.05534477e+03 -1.58352285e+02
  -1.03864265e+02  1.04194077e+03 -1.68872087e+02 -5.48227057e+01
   9.10016503e+02 -2.34282482e+02 -7.98165678e+01  8.80652549e+02
  -1.87377571e+02 -3.73902498e+01  7.88920430e+02 -1.86848315e+02
  -4.47207875e+01  8.21140114e+02 -1.87723549e+02 -3.68342864e+01
   7.86123635e+02 -1.87723549e+02 -3.68342864e+01  7.86123635e+02]]

Has anyone managed to export the 3d skeletal to unity aavtar ? I was trying to follow one of the links i saw in the discussions before  but could really get any sense of it
[https://qiita.com/romaroma/items/ffbdae4ecfc4c8ff31cd]

I suggest you try out our visualization function: https://github.com/una-dinosauria/3d-pose-baseline/blob/826df8cb1541afd1bb0b80ad6d6ad55ef8b313de/src/viz.py#L11-L23
to understand the output format.

Closing for lack of activity. Please reopen if the issue is still ongoing.


Great Job!

This is a decent blog bundle I must say guys well done. I have already integrated it and replaced my shitty wordpress iframe.
I noticed you guys are using tinymce.  I would like to suggest a conversion to ckeditor.    The issue Im having with tinymce is I cant position image elements inline with text. The tinymce editor just doesnt seem to have enough options ?

Hi Jayes,
Can you give us exact option that is missing for you regarding tinymce?
I must say that on some projects we are also using ckeditor, but in that time when we work on this bundle seems like tinymce was the most powerful solution.
As soon we have some time, we will analyze difference between this plugins(ckeditor and tinymce). If you can provide us some advantages and disadvantages for tinymce and ckeditor can be very helpful.
Thanks

Actually the only reason I suggested ckeditor is because I already had the ckeditor bundle installed. It would be perfect to possibly abstract the dependency so anyone can choose either option. Though I can understand if something is integrated it may require some work.
The issue I personally had with the current integration was that I am unable to get access to the source content.  I wanted to structure the html content in a specific way but was ending up with paragraph tags.  Im guessing I didn't pass an option to the tinymce widget however I havent had time to look into it further.

I found the option for tinymce
tinymce.init({
            plugins: [
              "code"
            ],
            toolbar: [
                "code"
            ]
        });

http://community.tinymce.com/forum/viewtopic.php?id=30936
will add the ability to view the textarea source code.
I see the change should be made to general.js.
However interestingly enough.. I dont see general.js getting loaded.

aha!  guys.. the "code" plugin is missing from the plugins list.  "code" is already in the toolbar.. I can make a pull request.. but it might be easier for you guys to make that change quickly ?  cheers


mime/quotedprintable: LWSP-char not accepted between = and CRLF

Go version
go version go1.23.4 linux/amd64
Output of go env in your module/workspace:
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/home/simon/.cache/go-build'
GOENV='/home/simon/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/home/simon/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/home/simon/go'
GOPRIVATE=''
GOPROXY='direct'
GOROOT='/usr/lib/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/usr/lib/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.23.4'
GODEBUG=''
GOTELEMETRY='local'
GOTELEMETRYDIR='/home/simon/.config/go/telemetry'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='1'
GOMOD='/home/simon/src/go-imap/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -pthread -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build2161554395=/tmp/go-build -gno-record-gcc-switches'

What did you do?
Try to decode the following MIME message:
https://github.com/dovecot/imaptest/blob/73dcb3ff9ae8b6859ceaf383f21c5b62a9fd7500/src/tests/fetch-binary-mime-qp.mbox
RFC 2045 section 6.7 allows a transport-padding (see details in https://github.com/golang/go/pull/70951).
What did you see happen?
quotedprintable: invalid bytes after =: " \r\n"
quotedprintable: invalid bytes after =: "\t \r\n"

What did you expect to see?
No error.

Related Issues

mime/quotedprintable: single line with only period cause message truncation when used in SMTP DATA #61235
mime/quotedprintable: Read() returns error when underlying string ends with soft-break ("=") #15486 (closed)
mime/multipart: quoted-printable check is case sensitive #28674 (closed)
mime/quotedprintable: support message with long lines #43194
mime: WordDecoder#DecodeHeader accept space as a part of 'encoded-word' #19417 (closed)
net/mail: ReadMessage returns EOF error when the body is not present #47886 (closed)
net/mail: ReadMessage returns EOF in case of header-only messages. #47897 (closed)
mime/multipart: add (*Reader).NextRawPart to bypass automatic quoted-printable handling #29090 (closed)
net/textproto: can write binary header it can't read #60674

Related Code Changes

mime/quotedprintable: accept LWSP-char after =

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

@neild @minux


backport: openstack: attempt to fix race

The status of the snapshot might not be synced in the inventory. Check the status is up-to-date before proceeding

backport of #829


V3 Return style attributes

This was an excellent aid to writing functions - things have moved on.
For ServiceBus outputs the new preferred method is to use a return type binding as per
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus-output?tabs=csharp
[<FunctionName("my_V3_functiony")>]
let ``sBus In and Sbus Out``
   (executionContext: ExecutionContext, log: ILogger,
    [<ServiceBusTrigger("inQueue", Connection = "InQueueSetting")>] message: string)
    : [<return: ServiceBus("outTopic", ServiceBus.EntityType.Topic, Connection = "outTopicSetting")>] string =
  message
   |> ``domain Function That Return Output Message As String``

Note - Fantomas messes up the return attribute.

@sadgit if you also want to do more complex things in the function body (for instance respond to an HTTP request, you can also use the IAsyncCollector class.
See example in the PR here https://github.com/mikhailshilkov/azure-functions-fsharp-examples/pull/5

I have been having some issues with the Microsoft.Azure.ServiceBus 4.1.3 - which is happy with the return Attribute but didn't want to respect old style (v2) Async Collector.
This also causes complication of HTTP triggers and multiple output Queues.
Our codebase is fine - but I wanted to keep these examples current as I found them useful.


"z" Normalisation

Hi,
I am using Mediapipe Face Mesh to compute the Euclidean distance of the points. I normalized the "x", "y" ratio width and height. But, I don't know how to normalize the "Z". The distance is different since the face is going backwards or forward. That's why I need to use "Z".
I would appreciate your response.

Hi @ZohrehKhosroebigi, This https://github.com/google/mediapipe/issues/742#issuecomment-639104199 guides you well. Thanks!

Hi @ZohrehKhosroebigi, This #742 (comment) guides you well. Thanks!

Thank you very much.


Using async/await?

How can I use this library using async/await syntax?

Might've worked it out:
const ProxyLists = require('ProxyLists');

const getProxyList = options => {
    return new Promise((resolve, reject) => {
        proxy-lists.getProxies(proxyListOptions).on('data', function(_proxies) {
            resolve(_proxies);
        }).on('error', function(_error) {
            reject(_error);
        });
     });
};

var proxyList = await getProxyList();

Hello, @Sasstraliss
There are a couple problems with the code snippet above:

The module name is "proxy-lists" not "ProxyLists" - see the require() statement.
The "data" event will fire many times - not just once

If you really want to use a async/await you can buffer the proxies you've received via the "data" event and then resolve your promise with all the proxies.

This is an example for a async promise based solution
`const ProxyLists = require('proxy-lists');
const getProxyList = () => {
return new Promise(resolve => {
let proxies = [];
ProxyLists.getProxies({ protocols: ['https'] })
.on('data', p => p.forEach(p => proxies.push(${p.ipAddress}:${p.port})))
.once('end', () => resolve(proxies));
})
};
const run = async () => {
const proxyList = await getProxyList();
console.log(proxyList);
};
run();`

This is an example for an async function
const ProxyLists = require('proxy-lists');

const getProxyList = () => {
	return new Promise(resolve => {
		let proxies = [];
		ProxyLists.getProxies({ protocols: ['https'] })
			.on('data', p => p.forEach(p => proxies.push(`${p.ipAddress}:${p.port}`)))
			.once('end', () => resolve(proxies));
	})
};

const run = async () => {
	const proxyList = await getProxyList();
	console.log(proxyList);
};

run();


Toolbar javascript not compatible with django-compressor/sekizai

I've had issues (see #4808) with the CMS CSS/JS where browsers will use the cached version of the files rather than the new versions after upgrading django-cms.
I attempted to solve this problem by using django-compressor's post processor function on the sekizai tag. However, this leads to very incorrect results since https://github.com/divio/django-cms/blob/develop/cms/templates/cms/toolbar/toolbar_javascript.html contains dynamic variables.
The variables change per request, so this leads to django-compressor generating a lot of *.js files that differ only in these variables. This causes issues because server 1 may generate the HTML containing the reference to this *.js but server 2 might answer the call and return a 404 since it doesn't have the generated file.The only quick fix for now is to disable post-processing the js block but then we're just back to the problem in #4808.

We are looking into replacing the javascript initialisation using a JSON object rather than a JS instance. This is though, valid FE practice. I don't know too much about django-compressor functionality. @jrief has his fair share of knowledge, can you recommend a better path?

Hello @jsma,
Thank you very much for your contribution to the django CMS project. The django CMS project has recently joined forces under the banner of the newly founded django CMS Association to revive the development of django CMS. For this reason we have analyzed all pull requests and issues in detail and decided which ones fit the product vision we want to go with django CMS.
Due to the age of this issue we are unable to safely accept the contribution. If you feel this issue is still required please inform a member of our technical committee<EMAIL_ADDRESS>Nevertheless we thank you for your participation and would like to emphasize that we do not want to discourage you in your contribution to the django CMS project. On the contrary, we encourage everyone who is interested in the success of django CMS to join us!
If you want to learn more about the work of the technical committee, our product vision and how you can become a member of the dCA, you can find all information here:

The Technical Committee of the django CMS Association
Technical Roadmap and Product Vision for django CMS
How to become a member of the django CMS Association

We are looking forward to every companion who would like to shape the future of django CMS together with us!
If you have any questions, feel free to reach out to Nicolai, our Community Manager<EMAIL_ADDRESS>Sign up for the Association now!


Possible bug with map_fn in Graph mode during training, works fine with Eager execution

Tensorflow 1.10 on Ubuntu 16.04
A simplified code example, see also stackoverflow: https://stackoverflow.com/questions/52187269/tensorflow-map-fn-does-not-work-in-graph-mode-during-training-in-eager-mode-it
This loss function works:
def discriminative_loss_working(y_true, y_pred):
    # Compute the loss for only the first image in the batch

    prediction = y_pred[0]
    label = y_true[0]

    # Number of clusters in ground truth
    clusters,_ = tf.unique(tf.reshape(label, [-1]))

    # Compute cluster means and variances for each cluster
    def compute_mean(c):
        mask = tf.equal(label[:,:,0], c)
        masked_pixels = tf.boolean_mask(prediction, mask)
        cluster_mean = tf.reduce_mean(masked_pixels, axis=0)

        return cluster_mean

    cluster_means = tf.map_fn(compute_mean, clusters, dtype=(tf.float32))
    return tf.reduce_mean(cluster_means)

However, when inserting an extra map_fn to work with batch sizes > 1 it doesnot work:
def discriminative_loss(y_true, y_pred):
    """Computes loss for a batch of images
    Args:
        y_true: (n, h, w) where each elements contains the ground truth instance id
        y_pred: (n, h, w, d) d-dimensional vector for each pixel for each image in the batch
    Returns:
        loss
    """
    # Compute the loss for each image in the batch
    def compute_loss(input):
        prediction = input[1]
        label = input[0]

        # Number of clusters in ground truth
        clusters,_ = tf.unique(tf.reshape(label, [-1]))

        # Compute cluster means and variances for each cluster
        def compute_mean(c):
            mask = tf.equal(label[:,:,0], c)
            masked_pixels = tf.boolean_mask(prediction, mask)
            cluster_mean = tf.reduce_mean(masked_pixels, axis=0)

            return cluster_mean

        cluster_means = tf.map_fn(compute_mean, clusters, dtype=(tf.float32))
        return tf.reduce_mean(cluster_means)

    # We want to know the loss for each image in the batch
    losses = tf.map_fn(compute_loss, (y_true,y_pred), dtype=(tf.float32))
    return losses

The error is:

018-09-05 16:07:24.740128: W tensorflow/core/framework/op_kernel.cc:1275] OP_REQUIRES failed at tensor_array_ops.cc:121 : Not found: Resource __per_step_6/_tensor_arraysloss/output_1_loss/map/while/map/TensorArray_1_3/N10tensorflow11TensorArrayE does not exist.
Traceback (most recent call last):
File "instancesegmenter/test.py", line 90, in
model.fit(train_dataset, epochs=5, steps_per_epoch=2)
File "/home/derk/.local/lib/python3.5/site-packages/tensorflow/python/keras/engine/training.py", line 1363, in fit
validation_steps=validation_steps)
File "/home/derk/.local/lib/python3.5/site-packages/tensorflow/python/keras/engine/training_arrays.py", line 205, in fit_loop
outs = f(ins)
File "/home/derk/.local/lib/python3.5/site-packages/tensorflow/python/keras/backend.py", line 2914, in call
fetched = self._callable_fn(*array_vals)
File "/home/derk/.local/lib/python3.5/site-packages/tensorflow/python/client/session.py", line 1382, in call
run_metadata_ptr)
File "/home/derk/.local/lib/python3.5/site-packages/tensorflow/python/framework/errors_impl.py", line 519, in exit
c_api.TF_GetCode(self.status.status))
tensorflow.python.framework.errors_impl.NotFoundError: Resource __per_step_6/_tensor_arraysloss/output_1_loss/map/while/map/TensorArray_1_3/N10tensorflow11TensorArrayE does not exist.
[[Node: training/SGD/gradients/loss/output_1_loss/map/while/map/TensorArrayStack/TensorArrayGatherV3_grad/TensorArrayGrad/TensorArrayGradV3 =<EMAIL_ADDRESS>source="training/SGD/gradients", _device="/job:localhost/replica:0/task:0/device:CPU:0"](training/SGD/gradients/loss/output_1_loss/map/while/map/TensorArrayStack/TensorArrayGatherV3_grad/TensorArrayGrad/TensorArrayGradV3/StackPopV2, training/SGD/gradients/loss/output_1_loss/map/while/map/TensorArrayStack/TensorArrayGatherV3_grad/TensorArrayGrad/TensorArrayGradV3/StackPopV2_1)]]
[[Node: training/SGD/gradients/loss/output_1_loss/map/while/map/while/Mean_grad/truediv/_161 = _Recvclient_terminated=false, recv_device="/job:localhost/replica:0/task:0/device:GPU:0", send_device="/job:localhost/replica:0/task:0/device:CPU:0", send_device_incarnation=1, tensor_name="edge_608_t...ad/truediv", tensor_type=DT_FLOAT, _device="/job:localhost/replica:0/task:0/device:GPU:0"]]

Note that this works fine in Eager mode and also when only doing a forward pass. However the backward pass when in graph mode gives the error.
The full code example to reproduce the issue:
import tensorflow as tf
import numpy as np

def discriminative_loss(y_true, y_pred):
    """Computes loss for a batch of images
    Args:
        y_true: (n, h, w) where each elements contains the ground truth instance id
        y_pred: (n, h, w, d) d-dimensional vector for each pixel for each image in the batch
    Returns:
        loss
    """
    # Compute the loss for each image in the batch
    def compute_loss(input):
        prediction = input[1]
        label = input[0]

        # Number of clusters in ground truth
        clusters,_ = tf.unique(tf.reshape(label, [-1]))

        # Compute cluster means and variances for each cluster
        def compute_mean(c):
            mask = tf.equal(label[:,:,0], c)
            masked_pixels = tf.boolean_mask(prediction, mask)
            cluster_mean = tf.reduce_mean(masked_pixels, axis=0)

            return cluster_mean

        cluster_means = tf.map_fn(compute_mean, clusters, dtype=(tf.float32))
        return tf.reduce_mean(cluster_means)

    # We want to know the loss for each image in the batch
    losses = tf.map_fn(compute_loss, (y_true,y_pred), dtype=(tf.float32))
    return losses

def discriminative_loss_working(y_true, y_pred):
    # Compute the loss for only the first image in the batch

    prediction = y_pred[0]
    label = y_true[0]

    # Number of clusters in ground truth
    clusters,_ = tf.unique(tf.reshape(label, [-1]))

    # Compute cluster means and variances for each cluster
    def compute_mean(c):
        mask = tf.equal(label[:,:,0], c)
        masked_pixels = tf.boolean_mask(prediction, mask)
        cluster_mean = tf.reduce_mean(masked_pixels, axis=0)

        return cluster_mean

    cluster_means = tf.map_fn(compute_mean, clusters, dtype=(tf.float32))
    return tf.reduce_mean(cluster_means)

class MyModel(tf.keras.Model):
    def __init__(self, input_shape):
        super(MyModel, self).__init__()
        self.conv = tf.keras.layers.Conv2D(filters=4, kernel_size=(1,1))

    def call(self, input):
        return self.conv(input)

input_shape = (1,128,128,3)
def my_gen():
    while True:
        x = np.random.rand(1,input_shape[1], input_shape[2],3)
        y = np.random.randint(11000, 11015, (input_shape[1], input_shape[2],1))
        yield x,y

train_dataset = tf.data.Dataset.from_generator(my_gen, (tf.float32, tf.float32))
train_dataset = train_dataset.batch(1)
train_dataset = train_dataset.repeat()

model = MyModel(input_shape=input_shape)

# This is a fix to make loading weights possible
# x = tf.zeros((1,) + input_shape)
x = tf.zeros(input_shape)
y = model(x)

optimizer = tf.keras.optimizers.SGD(lr=0.0001)
model.compile(loss=discriminative_loss,optimizer=optimizer)
model.fit(train_dataset, epochs=5, steps_per_epoch=2)

Thank you for your post. We noticed you have not filled out the following field in the issue template. Could you update them if they are relevant in your case, or leave them as N/A? Thanks.
Have I written custom code
OS Platform and Distribution
TensorFlow installed from
TensorFlow version
Bazel version
CUDA/cuDNN version
GPU model and memory
Exact command to reproduce
Mobile device

@skye wdyt?

Automatically closing due to lack of recent activity. Please update the issue when new information becomes available, and we will reopen the issue. Thanks!

Please reopen the issue:
OS Platform and Distribution: Linux Ubuntu x86_64 - 4.15.0-52-generic (kernel)
TensorFlow installed from: conda 4.7.5
TensorFlow version: 1.13.1
Bazel version: N/A
CUDA/cuDNN version: 10.0
GPU model and memory: Tesla V100-SXM2-16GB
Exact command to reproduce:
Mobile device: N/A
`
import tensorflow as tf
import numpy as np
config = tf.ConfigProto()
config.gpu_options.allow_growth = True
def discriminative_loss(y_true, y_pred):
"""Computes loss for a batch of images
Args:
y_true: (n, h, w) where each elements contains the ground truth instance id
y_pred: (n, h, w, d) d-dimensional vector for each pixel for each image in the batch
Returns:
loss
"""
# Compute the loss for each image in the batch
def compute_loss(input):
prediction = input[1]
label = input[0]
    # Number of clusters in ground truth
    clusters,_ = tf.unique(tf.reshape(label, [-1]))

    # Compute cluster means and variances for each cluster
    def compute_mean(c):
        mask = tf.equal(label[:,:,0], c)
        masked_pixels = tf.boolean_mask(prediction, mask)
        cluster_mean = tf.reduce_mean(masked_pixels, axis=0)

        return cluster_mean

    cluster_means = tf.map_fn(compute_mean, clusters, dtype=(tf.float32))
    return tf.reduce_mean(cluster_means)

# We want to know the loss for each image in the batch
losses = tf.map_fn(compute_loss, (y_true,y_pred), dtype=(tf.float32))
return losses

def discriminative_loss_working(y_true, y_pred):
# Compute the loss for only the first image in the batch
prediction = y_pred[0]
label = y_true[0]

# Number of clusters in ground truth
clusters,_ = tf.unique(tf.reshape(label, [-1]))

# Compute cluster means and variances for each cluster
def compute_mean(c):
    mask = tf.equal(label[:,:,0], c)
    masked_pixels = tf.boolean_mask(prediction, mask)
    cluster_mean = tf.reduce_mean(masked_pixels, axis=0)

    return cluster_mean

cluster_means = tf.map_fn(compute_mean, clusters, dtype=(tf.float32))
return tf.reduce_mean(cluster_means)

class MyModel(tf.keras.Model):
def init(self, input_shape):
super(MyModel, self).init()
self.conv = tf.keras.layers.Conv2D(filters=4, kernel_size=(1,1))
def call(self, input):
    return self.conv(input)

input_shape = (1,128,128,3)
def my_gen():
while True:
x = np.random.rand(1,input_shape[1], input_shape[2],3)
y = np.random.randint(11000, 11015, (input_shape[1], input_shape[2],1))
yield x,y
train_dataset = tf.data.Dataset.from_generator(
my_gen,
(tf.float32, tf.float32),
(tf.TensorShape([1,128,128,3]),
tf.TensorShape([128,128,1])))
train_dataset = train_dataset.batch(1)
train_dataset = train_dataset.repeat()
model = MyModel(input_shape=input_shape)
This is a fix to make loading weights possible
x = tf.zeros((1,) + input_shape)
x = tf.zeros(input_shape)
y = model(x)
with tf.Session(config=config):
optimizer = tf.keras.optimizers.SGD(lr=0.0001)
model.compile(loss=discriminative_loss,optimizer=optimizer)
model.fit(train_dataset, epochs=5, steps_per_epoch=2)
`


[feature request]  Reclaim device, deviceprofile and deviceservice before exiting YurtIoTDock

What would you like to be added:
When YurtIoTDock receives the exit signal, it needs to reclaim device, deviceprofile, and deviceservice.
Why is this needed:
Clean up unwanted cr for users.
others
/kind feature

/assign


new Cronjob

I am not able to create a new cronjob in the admin menu after the latest update.
(Klivking on create new cronjob it just refresh the list)
Error log no entries.

I dont post a fix as i didnt tried it yet,
but i take the time to report you my old error jan, that other people have to
https://github.com/jkroepke/2Moons/commit/ffb4350f466505f4a14f1f6d9bd05778840bb120
Regards


tesseract.exe still not flushing stdout

I am using the tesseract build from https://github.com/UB-Mannheim/tesseract/wiki, which was compiled on 2020-03-28, but issue #2859 does not seem to be fixed for me.
I also call Tesseract from Java with the following command line:
tesseract.exe stdin out_overlay.pdf --dpi 300 -c textonly_pdf=1 -c stream_filelist=true -l deu pdf
However I only receive any text on stdout when the process ends. I believe the patch in #2859 doesn't work in my case.
I would love some option to make stdout unbuffered completely, which is ideal for me. Also the patch of #2859 seems to be intended do output only AFTER finishing a page and for better interleaving of image generation with the tesseract process I need a flush directly after the "Page n : " output.
Thanks alot if anyone could implement this (and maybe even provide a Windows build for me, which I tried but didn't get to run after a few hours, else I would have implemented this for myself).

Just managed to build Tesseract for myself on Windows with VC and with that version it works, maybe because it doesn't use GLIBC. I don't need a fix here anymore, but it would be nice to have it so the Uni Mannheim builds will work again.

Wouldn't it be easier to use the Tesseract API directly? Then you are free to do buffering as you like.
The build process which is used by UB Mannheim is also used with GitHub actions. All relevant scripts are available online and can also be used locally on Debian, Ubuntu and compatible Linux distributions.

Wouldn't it be easier to use the Tesseract API directly? Then you are free to do buffering as you like.
The build process which is used by UB Mannheim is also used with GitHub actions. All relevant scripts are available online and can also be used locally on Debian, Ubuntu and compatible Linux distributions.

@dmigowski, at which point of the output do you expect (currently missing) flushing? Completely unbuffered output is very inefficient and usually not a good solution.

@dmigowski, at which point of the output do you expect (currently missing) flushing? Completely unbuffered output is very inefficient and usually not a good solution.

@stweil, I am writing a Java solution and using the API directly requires me to build a JNI layer which is not impossible but also unnessecary hard because the main work is not done by the IO but within the Tesseract process itself.
Also I found that the most efficient way to use Tesseract ist instantiating a number of Tesseract processes equal to the number of CPU cores, and then piping the names of the page images to the processes. Tesseracts internal multi cpu handling isn't that sofisticated.
To achive this I require Tesseract to flush the line starting with "Page " and ending with the filename. I use this marker to start extracting a new image from the source PDF and pushing it to Tess.
Also while unbuffered IO is slow, the few characters printed to the command line from tesseract are surely negligable compared to the other work done in the process, but as said I need only a flush after the beginning of each page. I believe the flush should be in baseapi.cpp around line 1021:
    if (pix == nullptr) {
      tprintf("Image file %s cannot be read!\n", pagename);
      return false;
    }
    tprintf("Page %d : %s\n", page, pagename);     <- Flush after this!!
    bool r = ProcessPage(pix, page, pagename, retry_config,
                         timeout_millisec, renderer);
    pixDestroy(&pix);
    if (!r) return false;

The strange this here is that tprintf seems to write to stderr which should be unbuffered (at least #2859 says it) but there either is some redirection in place or some other fuckery I don't understand.

@stweil, I am writing a Java solution and using the API directly requires me to build a JNI layer which is not impossible but also unnessecary hard because the main work is not done by the IO but within the Tesseract process itself.
Also I found that the most efficient way to use Tesseract ist instantiating a number of Tesseract processes equal to the number of CPU cores, and then piping the names of the page images to the processes. Tesseracts internal multi cpu handling isn't that sofisticated.
To achive this I require Tesseract to flush the line starting with "Page " and ending with the filename. I use this marker to start extracting a new image from the source PDF and pushing it to Tess.
Also while unbuffered IO is slow, the few characters printed to the command line from tesseract are surely negligable compared to the other work done in the process, but as said I need only a flush after the beginning of each page. I believe the flush should be in baseapi.cpp around line 1021:
    if (pix == nullptr) {
      tprintf("Image file %s cannot be read!\n", pagename);
      return false;
    }
    tprintf("Page %d : %s\n", page, pagename);     <- Flush after this!!
    bool r = ProcessPage(pix, page, pagename, retry_config,
                         timeout_millisec, renderer);
    pixDestroy(&pix);
    if (!r) return false;

The strange this here is that tprintf seems to write to stderr which should be unbuffered (at least #2859 says it) but there either is some redirection in place or some other fuckery I don't understand.

And while you are on it, a flush after line 1058 should help users that want to use Tesseract single threaded but want to display some kind of progress bar:
      pix = (data) ? pixReadMemFromMultipageTiff(data, size, &offset)
                   : pixReadFromMultipageTiff(filename, &offset);
    }
    if (pix == nullptr) break;
    tprintf("Page %d\n", page + 1);  <-- Flush here
    char page_str[kMaxIntSize];
    snprintf(page_str, kMaxIntSize - 1, "%d", page);
    SetVariable("applybox_page", page_str);

At least if they use Tess as a separate process like I do. Which is obviously much easier than using the API and easier to upgrade also.

And while you are on it, a flush after line 1058 should help users that want to use Tesseract single threaded but want to display some kind of progress bar:
      pix = (data) ? pixReadMemFromMultipageTiff(data, size, &offset)
                   : pixReadFromMultipageTiff(filename, &offset);
    }
    if (pix == nullptr) break;
    tprintf("Page %d\n", page + 1);  <-- Flush here
    char page_str[kMaxIntSize];
    snprintf(page_str, kMaxIntSize - 1, "%d", page);
    SetVariable("applybox_page", page_str);

At least if they use Tess as a separate process like I do. Which is obviously much easier than using the API and easier to upgrade also.


Babel deprecation notice

Adding a component integration test and I'm seeing
[BABEL] tests/unit/components/my-component-test.js: Returning a string from a visitor method will be removed in the future. String building is NOT a substitute for AST generation. String building leads to terrible performance due to the additional parsing overhead and will lead to extremely brittle transformers. For those extreme cases where you're dealing with strings from a foreign source you may continue to use path.replaceWithSourceString(code). Please don't abuse this. Bad plugins hurt the ecosystem.
From the line:
this.render(hbs`{{my-component value=value}}`);
My npm babel info:
├─┬<EMAIL_ADDRESS>│ ├─┬<EMAIL_ADDRESS>│ │ ├─┬<EMAIL_ADDRESS>

Never mind.  I would have sworn I was on the latest version, but I would have been wrong.  No warning with 0.1.3.  Sorry.


Issue with reference id

Hey guys,
Trying to resolve an issue with reference id inside the checkout within opencart hoping someone is experience to provide a working solution.
Thanks.
Bob

Hey @foreigntalent
Can you please provide more details about the issue you're facing?
Thanks

Hey Nick,
Thanks for assisting, the issue we are encountering right lies with calling the reference id inside the php file:
session_unset();
session_start();
include "api_lib.php";
include "configuration.php";
include "connection.php";
//Ensure this is the first invokation of this page
if($_SERVER['REQUEST_METHOD'] == "POST")
{
	if (array_key_exists("submit", $_POST))
  unset($_POST["submit"]);

$order_amount = $_POST["order_amount"];
$order_currency = $_POST["order_currency"];
$customer_receipt_email = "'" . $_POST["customer_receipt_email"] . "'";

//Creates the Merchant Object from config. If you are using multiple merchant ID's,
	// you can pass in another configArray each time, instead of using the one from configuration.php
$merchantObj = new Merchant($configArray);

  // The Parser object is used to process the response from the gateway and handle the connections
  // and uses connection.php
  $parserObj = new Parser($merchantObj);

//The Gateway URL can be set by using the following function, or the
//value can be set in configuration.php
//$merchantObj->SetGatewayUrl("https://xxx.xxx.xx.com/api/nvp");
  $requestUrl = $parserObj->FormRequestUrl($merchantObj);

  //This is a library if useful functions
  $new_api_lib = new api_lib;

	//Use a method to create a unique Order ID. Store this for later use in the receipt page or receipt function.
$order_id = $new_api_lib->getRandomString(10);
**$order_reference = $new_api_lib->getRandomString(10)**;

//Form the array to obtain the checkout session ID.
	$request_assoc_array = array("apiOperation"=>"CREATE_CHECKOUT_SESSION",
													 	   "order.id"=>$order_id,
													 	   "order.amount"=>$order_amount,
													     "order.currency"=>$order_currency,
														 "order.reference"=>$order_reference
													 		);

	//This builds the request adding in the merchant name, api user and password.
	$request = $parserObj->ParseRequest($merchantObj, $request_assoc_array);

	//Submit the transaction request to the payment server
	$response = $parserObj->SendTransaction($merchantObj,$request);

	//Parse the response
	$parsed_array = $new_api_lib->parse_from_nvp($response);

	//Store the successIndicator for later use in the receipt page or receipt function.
	$successIndicator = $parsed_array['successIndicator'];

//The session ID is passed to the Checkout.configure() function below.
	$session_id = $parsed_array['session.id'];

//Store the variables in the session, or a database could be used for example
$_SESSION['successIndicator']= $successIndicator;
$_SESSION['orderID']= $order_id;
$_SESSION['orderReference']= $order_reference;

  $merchantID = "'" . $merchantObj->GetMerchantId() . "'";

};
?>

<head>

   <script src="https://xxxxxx.gateway.xxxx.com/checkout/version/40/checkout.js"

           	 data-error="errorCallback"
           	 data-cancel="cancelCallback"
             data-complete="http://xxx.com/HOSTEDCheckout_Coding/Receipt_NVP.php"
            >
   </script>

   <script type="text/javascript">
        function errorCallback(error) {
              alert(JSON.stringify(error));
        }

        function completeCallback(resultIndicator, sessionVersion) {
              alert("Result Indicator");
			  				alert(JSON.stringify(resultIndicator));
              alert("Session Version:");
			  				alert(JSON.stringify(sessionVersion));
			  				alert("Successful Payment");
        }

        function cancelCallback() {
              alert('Payment cancelled');

        }

					Checkout.configure({
					merchant   : <?php echo $merchantID; ?>,
					order      : {
    				amount     : <?php echo json_encode($order_amount); ?>,
    				currency   : <?php echo json_encode($order_currency); ?>,
    				description: 'Happy Store Online',
    				id				 : <?php echo json_encode($order_id); ?>,
					reference				 : <?php echo json_encode($order_reference); ?>,
    				item			 : {
    					brand: 'xxx',
    					description: 'Happy Store Online',
    					name: 'HostedCheckoutItem',
    					quantity: '1',
    					unitPrice: '1.00',
    					unitTaxAmount: '1.00'
    				}
        	},
					billing    : {
						address  : {
							street: '300 Adelaide Street',
							stateProvince: 'QLD',
							city: 'Brisbane',
							company: 'Mastercard Pty Ltd',
							postcodeZip: '4000',
							country: 'AUS'
						}
					},
					customer :{
						email: <?php echo $customer_receipt_email; ?>
				  },
					interaction: {
    				merchant: {
        		name: 'Happy Store Online',
        			address: {
        				line1: '300 Adelaide Street',
        				line2: 'Brisbane Queensland 4000'
    					},
    					  //logo:  'https://www.albemarle-london.com/OnlineBooking/Albemarle/ShowPics/ALBAniv.png'
    				}
					},
					session: {
        			id: <?php echo json_encode($session_id); ?>
   						}
					});

    </script>

</head>

<body>

What happened is during sandbox, the source code worked with trial test credentials and we we naturally swapped it with production credentials and the whole checkout stopped at one time password (OTP). When we inserted the OTP into the checkout page, we expected the transaction to be successful but it wasnt.
Ended up we went back to the page filling in card details.
We checked with the bank and found out that the reference id didnt appear in the merchant administration. Hence the failure to conclude the transaction successfully.
Thanks for your help.
Bob

Hi Bob,
Can you confirm if the code you sent above is related to checkout.com payment gateway?
Thanks

Hi Avish,
The code is related to Mastercard Payment Gateway Service (MPGS).
Thanks.
Bob
发件人<EMAIL_ADDRESS><EMAIL_ADDRESS>代表 avish-bisbeehurry-cko
发送时间: 2018年8月13日 19:59
收件人: checkout/checkout-opencart-plugin<EMAIL_ADDRESS>抄送: foreigntalent<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>主题: Re: [checkout/checkout-opencart-plugin] Issue with reference id (#18)
Hi Bob,
Can you confirm if the code you sent above is related to checkout.com https://www.checkout.com/  payment gateway?
Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/checkout/checkout-opencart-plugin/issues/18#issuecomment-412494517 , or mute the thread https://github.com/notifications/unsubscribe-auth/AoYVZdlrsqteBdan1OZjRjdIlRXZHBBFks5uQWohgaJpZM4V6Rna .

Dear Avish,
Sorry for the confusion, I got it mixed up as a rookie user in Github.
My apologies.
Bob
发件人<EMAIL_ADDRESS><EMAIL_ADDRESS>代表 avish-bisbeehurry-cko
发送时间: 2018年8月13日 19:59
收件人: checkout/checkout-opencart-plugin<EMAIL_ADDRESS>抄送: foreigntalent<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>主题: Re: [checkout/checkout-opencart-plugin] Issue with reference id (#18)
Hi Bob,
Can you confirm if the code you sent above is related to checkout.com https://www.checkout.com/  payment gateway?
Thanks
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/checkout/checkout-opencart-plugin/issues/18#issuecomment-412494517 , or mute the thread https://github.com/notifications/unsubscribe-auth/AoYVZdlrsqteBdan1OZjRjdIlRXZHBBFks5uQWohgaJpZM4V6Rna .

Hi ,
can please sent the file api_lib.php
configuration.php
connection.php

Hi,
It’s all resolved.
Thanks!
Bob
Sent from thy iPhone

在 2019年5月1日，15:03，ajjagadeesh6<EMAIL_ADDRESS>写道：
Hi ,
can please sent the file api_lib.php
configuration.php
connection.php
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


oauth_problem

Hi,
I am receiving the message 'oauth_problem=parameter_absent&oauth_parameters_absent=oauth_consumer_key' when creating the client:
var client = new MagentoApi()
.Initialize("http://www.myshop.com", "Key....", "Secret") // from OAuth Consumers
.AuthenticateAdmin("admin", "mypassword");  // normal admin login / password
I have configured the REST API configuration the following way:

Created a new OAuth Consumer
Grant All access to Admin Role
I am using Magento version <IP_ADDRESS>
Did I miss something?

Thanks
António

Hi
I m also facing the same issue.Can you tell me what i m doing wrong here.
var client = new MagentoApi()
.SetCustomAdminUrlPart("Custome_admin")
.Initialize("https://www.magentostore.com/", "xxxxxx", "xxxxxxxxx")
.AuthenticateAdmin("user", "password");

Hi solved it by opening a Shopify store. Shopify is brilliant! So much better than Magento. I wish I had never installed Magento. Wasted so much time dealing with that mess. It takes minutes in Shopify to do things would would take hours or days to do in Magento. The API is much easier to use and better documented.

Nexcess support here. I realize this is an old thread, but it is still one of the first search hits for this issue; so I'm posting our solution here, in case it is useful to anyone else.
On our systems, the issue is Apache stripping out the Authorization and Content-Type headers. We resolve this by adding the following to the vhost:
SetEnvIf REDIRECT_HTTP_AUTHORIZATION (.+) HTTP_AUTHORIZATION=$1
SetEnvIf REDIRECT_HTTP_CONTENT_TYPE (.+) HTTP_CONTENT_TYPE=$1


Css values

Some of my values are not minified correctly.
this one, as example;
@media screen and (min-width: 1025px) {   #myid{     box-shadow: #c9c9c9 20px 20px 60px, #ffffff -20px -20px 60px;   } }
results in
 {box-shadow:#c9c9c9 20px 20px 60px,#ffffff -20px0px -20px 60px}
Haven't tried adding all 4 expected values.

The problem is that after that 20px there is no space between the 0px, right? Only that

Are you using the latest version? Because yesterday I fixed this exact bug: The space before a 0px.

. Indeed the bug still persists and it happens on the latest version. I'll try to figure it out today.
Thanks!!

I made a workaround, that should work. But I have to deeply check why this was happening.

MinifyAllCli is updated to v1.6.5
MinifyAll(vscode) is updated to 2.4.5
MinifyAllWeb is updated to 1.6.5. [Web Page(https://minifyall.jgracia.es)
Make sure to download the latest version of the minifier and test if the issue is still happening.
Thanks for contributing!!


Add Code to validator struct.

This is the first PR for this ticket: https://issues.redhat.com/browse/MTSRE-375
The goal is to mimic frameworks like ShellCheck and Hadolint, and populate the AMO's wiki with detailed documentation about the static checks: https://github.com/mt-sre/addon-metadata-operator/wiki
It also adds a registry mechanism, so we only modify a single file to create a new validator.
Upcoming work (future PR)

Add GetWikiURL() on Validator struct
Add helpers on Validator struct Fail(), Succeed(), Error() - that return standardized error/failure msgs /w link to Wiki (only Fail()) so tenants and users of this framework have access to more detailed documentation

[HOLD] Needs to be rebased, branched off from #35

@sugarraysam #35 is merged. Can you rebase this PR?

@yashvardhan-kukreja rebased, thanks !


fix: Improve error handling and visibility in S3DirectoryStream

Issue #, if available:
#189
Description of changes:
SDK exceptions in the S3DirectoryStream are now explicitly perpetuated as some type of IOException to enable them to be more easily caught and handled. Added tests where service mocks generate various SdkExceptions to ensure these are perpetuated.
Some general cleanup and fixing imports to match new stylecheck added for v2
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

implements #189


MV: obs-period incrementals and new mod-dttm

choose src.statusDt_pss as Mod-dttm AND lookback in incremental query about 3 months.

addressed with #209


Update the profile for Aditya Samant

Hi,
This PR is to update my profile, as I have joined a new company and I would like to reflect that on the Kubestronaut page.
Kind regards,
Aditya Samant

Looks good to me. Thanks !


Need helm charts to support the eclipse-che helm charts

Description
The Eclipse Che helm charts don't work without this (devworkspace-operator) installed first, however there's no helm charts available as far as I can tell that could be easily installed or listed as a dependency of the Che operator.
Additional context
See https://github.com/eclipse-che/che-operator/issues/1655

To install devworkspace only need to run kubectl apply against this file https://github.com/devfile/devworkspace-operator/blob/main/deploy/deployment/kubernetes/combined.yaml
Remember to choose the stable tag as latest code may not work


Add kerberos support for spark applications to interact with secure h…

…adoop clusters

@googlebot I signed it!

I will resubmit this pull request with right CLA.


Render the same stage on two canvases (WebGL)

Hello,
There was issue posted like 2 years ago about possibility to create two WebGL renderers on one page. The issue had been resolved but one error still is present. If you want to render THE SAME STAGE on two WebGL canvases it throws error. The error does not occur with CanvasRenderer.
I've prepared example: http://jsbin.com/duhacepira/2/edit?console,output
Could you confirm that it's a bug in PIXI and if you know about it? Do you have any plans to resolve it? Maybe I could help with that, but I need more information.
Someone may ask why the hell anyone would like to render the same stage on two canvases. I do :). I want to create double buffering. And to cut any comments about native support for double buffering in web canvas, I say it doesn't work in all situations. On low performance devices when frame doesn't finish rendering until next request animation frame it will flicker.

DO you experience this issue with the latest dev branch code?

Yes error still occurs with the dev branch code.
"TypeError: Cannot read property 'data' of undefined
    at r.render (<anonymous>:3:27060)
    at r._renderWebGL (<anonymous>:3:22874)
    at r.renderWebGL (<anonymous>:3:13904)
    at r.renderWebGL (<anonymous>:3:13972)
    at r.renderDisplayObject (<anonymous>:5:3780)
    at r.render (<anonymous>:5:3601)
    at render (vidini.js:52:8)
    at HTMLSelectElement.onchange (http://null.jsbin.com/runner:1:300247)"

Cool, I'll try to find some time to look into it this weekend.

Ok thanks :)

This is the exact same problem as #1635

@englercj Any plans on working on this?


Multiple Languages

Let's say I have my blog already serving content in English, now I want to translate my posts to Spanish so I can reach a broader audience, how can I modify this code so that I have a "sub blog" only in Spanish, for example www.my-blog.com/es/
To know if a post is in Spanish or English I plan to tag them accordingly
The translation of nav items and footer text are not important.
Can the SEO be affected by doing this?

Hi, you can see this guide on intl where you can route all paths under /es/ to the Spanish version. It will be best to use 2 different wisp blog to serve the separate content, with each having its own blog ID and when you are on the intl version to serve a different blog ID.
https://nextjs.org/docs/app/building-your-application/routing/internationalization


Button URL - Sorry, you do not have permission to access this page.

Giving any URL in during post creation results in a message "Sorry, you do not have permission to access this page. Please contact your administrator to be granted permission."

New message
Fill in Title, Button title, Button Url
Choose recipients
Save as draft
Get "Sorry, you do not have permission to access this page" message

Provided button URLs are https ones.
In the app insights there are no 403 responses.

Hi @Mykhailo-D ,
Thank you for raising the issue for Company Communicator app.
Could you please send the screenshot of App service status, repo URL and branch that you are pointing to. To get that, please refer to the below screenshots -

Hi,
Here it is

Please share the screenshot of logs section deployment status.

Hi @Mykhailo-D ,

Since it is a older version CC, was it working previously?

There is a chance of incorrect configuration, have a thorough check from start-end and mainly verify the all three app client secret is correctly copied while creating ARM template or not. Attaching the link where you can compare and check on secrets. Make sure to check the expiration date for app secrets

Please cross verify the set-up authentication part again.

Check whether the Supported type parameter for app registration is as per the deployment guide. Here is the reference.
Author-multiple
User-multiple
Graph-my organization

Hi,
Checking configuration and whether the certs are expired was the first thing I did.
And yes, it was working previously.

@Mykhailo-D , Please share your outlook id (mail id) so that we can discuss the issue internally.

Please let us know if the error persists otherwise we can make it to closure.

Redeploying whole CC appeared to be the quickest solution.
Ticket can be closed, thank you.


Allow polynomials with different modulus degrees, by making the maximum degree generic

We currently have a fixed constant for the size of the polynomial modulus. But we'd like to have different-sized polynomials in the same codebase.
TODO:

[x] Rebase on top of PR #32

Close #40

This PR does not significantly change multiplication speed:
https://github.com/Inversed-Tech/eyelid/actions/runs/8731485076/job/23956961000?pr=47#step:5:51

Recursive Karatsuba multiplication: polynomial/2 random polys of degree N 10033354 ns/iter (± 17685)

This is missing a previous benchmark, because we changed the name.


Working uuid example?

Hi, this crate is awesome.
Is there a working example of the uuid feature? I think I'm very close to having it working, but SELECTing uuids from my database isn't working and I can't find any documentation.
Code
use rusqlite::{Connection, Result};
use uuid::Uuid;

// ... some boilerplate...

#[derive(Debug)]
struct Doc {
  uuid: Uuid,
  title: String,
  hits: Option<usize>,
}

fn get_sample_docs(conn: &Connection) -> Result<Vec<Doc>> {
  let mut stmt = conn.prepare("SELECT uuid, title FROM Docs LIMIT 10")?;
  let doc_iter = stmt.query_map([], |row| {
    Ok(Doc {
      uuid: row.get_unwrap::<_, Uuid>(0),
      title: row.get(1)?,
      hits: None,
    })
  })?;

  let mut docs = Vec::new();
  for doc in doc_iter {
    docs.push(doc?)
  }

  Ok(docs)
}

I got the .get_unwrap() syntax from this ticket.
Error
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidColumnType(0, "uuid", Text)'

My table is using the uuid type

I also tried using CAST
SELECT CAST(Docs.uuid AS uuid) -- ... and so on...

which got me the same type of error but with Integer instead of Text in the error message
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: InvalidColumnType(0, "CAST(Docs.uuid AS uuid)", Integer)',

It seems like I need to modify my to coerce SQLite to return a type for Docs.uuid that rqlite will be happy with, but I can't figure out what that is.
Thank you! This is such a fantastic project. 🙏

My Cargo.toml
[dependencies]
rusqlite = { version = "0.28.0", features = ["bundled-sqlcipher-vendored-openssl", "uuid"] }
uuid = { version = "1.1.2", features = ["v4"] }

https://github.com/rusqlite/rusqlite/blob/350c8de1b03bf0d2e4245deb56fcded1b1810a48/src/types/to_sql.rs#L403-L428
Uuid should be stored as a BLOB.


Bug: transparent images overlap on each other

Basically when scrolling through photos, some transparent images start to "stack" on each other.
To better explain what i mean, I made a gif showing what happens when I scroll through my folder's images:
https://github.com/user-attachments/assets/1f9f98fd-1b6b-4a97-ad02-100e3036a48e

Does this happen always happen with partially transparent image files?

I checked with some random downloaded partially transparent PNGs from internet and could not reproduce the issue. If you can share some sample images with which I can test, it would be helpful.

Certainly! I can put the transparent pngs that were giving me the error in the video in a zipped archive:
pngs with issues.zip

I could not reproduce the issue in my PC. Can you check using the latest version released today ?

Uh... I installed the updated version but now FlyPhotos doesn't start at all.
https://github.com/user-attachments/assets/e86c8b1e-da62-463e-adf3-5ef93f3d805e

Can you uninstall and do a clean install ?
Did you update or was it a clean install?

I now updated and did a clean install, FlyPhotos works but the issue is not fixed. Those images still overlap...

Thanks for checking again.  I shall check again in the same order as yours..

Are you using some desktop customization tools? If yes can you check with them turned off if possible?

I'm not sure what exactly would you define as deskop customization tools, the only thing that I can think of that interacts with windows explorer is Nilesoft Shell, which changes the context menu. But it happens even when disabling it.

I saw a transparent taskbar, decorative calendar and weather widgets etc in the screenshot and thought may be some tool was used to customize the desktop.

Oh you mean Rainmeter? Those are Rainmeter widgets. Even closing rainmeter, the issue remains.

Ok. I shall check on my side again. Thanks.

Ok! I also disabled TaskbarX, which was what affected the taskbar transparency (completely forgot about that), but the issue still persists even when disabling it.

Lol, I'm having the same problem (accidentally came to this thread before I even installed the program)
Windows is only like 1-2 days freshly installed. All drivers/dependencies are installed. Intel/Nvidia gtx 1070 level computer.
Opaque pictures displays - perfectly.
But in the folder “C:\Program Files\RYFTools\Fly” icons overlap each other.
Checked with other transparent images - same problem.
Switching the “window background” setting didn't help.
There are no errors in the log file.

Lol, I'm having the same problem (accidentally came to this thread before I even installed the program) Windows is only like 1-2 days freshly installed. All drivers/dependencies are installed. Intel/Nvidia gtx 1070 level computer.
Opaque pictures displays - perfectly. But in the folder “C:\Program Files\RYFTools\Fly” icons overlap each other. Checked with other transparent images - same problem.
Switching the “window background” setting didn't help. There are no errors in the log file. I decided to switch “Windows > Personalize > Colors > Transparency effects” for fun - didn't help.
https://postimg.cc/zycD8tWB https://postimg.cc/1gVmtGcK https://postimg.cc/zbmJRyxY

I understand. But I am not able to reproduce the issue in both Windows 11 and Windows 10 machines at my disposal.
Since directx is being used for rendering, I suspect if this has got anything to do with Graphics card and all.
Anyway I shall check the drawing code once again and do some cleanup between image switches.
https://postimg.cc/vc801Xvd
https://postimg.cc/5XTgRJWx


Filter non-numbers before graphing. Fixes #671

Looks good but do you mind checking out the code climate issue?


Popup has flicker

When requesting the script only test the Gold page has flicker as soon as we click the button

The request is called on the onStart() method, this needs to be changed to the onClick() method.


small fix

trying to fix #153
I'm not sure about this? @ilcato what you think?

trying to fix #153
I'm not sure about this? @ilcato what you think?

Not sure too but still useful in general.
Merging


In the dapp example, there are high vulnerabilities from npm audit fix

Figure out how to get rid of these if possible.
npm audit report
ansi-html  *
Severity: high
Uncontrolled Resource Consumption in ansi-html - https://github.com/advisories/GHSA-whgm-jr23-g3j9
fix available via npm audit fix --force
Will install<EMAIL_ADDRESS>which is a breaking change
node_modules/ansi-html
webpack-dev-server  2.0.0-beta - 4.1.0
Depends on vulnerable versions of ansi-html
Depends on vulnerable versions of chokidar
Depends on vulnerable versions of yargs
node_modules/webpack-dev-server
@angular-devkit/build-angular  0.8.8 - 13.0.0-rc.3
Depends on vulnerable versions of webpack-dev-server
node_modules/@angular-devkit/build-angular
ansi-regex  >2.1.1 <5.0.1
Severity: moderate
Inefficient Regular Expression Complexity in chalk/ansi-regex - https://github.com/advisories/GHSA-93q8-gq69-wqmw
fix available via npm audit fix --force
Will install<EMAIL_ADDRESS>which is a breaking change
node_modules/webpack-dev-server/node_modules/cliui/node_modules/ansi-regex
node_modules/webpack-dev-server/node_modules/string-width/node_modules/ansi-regex
node_modules/webpack-dev-server/node_modules/wrap-ansi/node_modules/ansi-regex
strip-ansi  4.0.0 - 5.2.0
Depends on vulnerable versions of ansi-regex
node_modules/webpack-dev-server/node_modules/cliui/node_modules/strip-ansi
node_modules/webpack-dev-server/node_modules/string-width/node_modules/strip-ansi
node_modules/webpack-dev-server/node_modules/wrap-ansi/node_modules/strip-ansi
cliui  4.0.0 - 5.0.0
Depends on vulnerable versions of strip-ansi
Depends on vulnerable versions of wrap-ansi
node_modules/webpack-dev-server/node_modules/cliui
yargs  10.1.0 - 15.0.0
Depends on vulnerable versions of cliui
Depends on vulnerable versions of string-width
node_modules/webpack-dev-server/node_modules/yargs
webpack-dev-server  2.0.0-beta - 4.1.0
Depends on vulnerable versions of ansi-html
Depends on vulnerable versions of chokidar
Depends on vulnerable versions of yargs
node_modules/webpack-dev-server
@angular-devkit/build-angular  0.8.8 - 13.0.0-rc.3
Depends on vulnerable versions of webpack-dev-server
node_modules/@angular-devkit/build-angular
string-width  2.1.0 - 4.1.0
Depends on vulnerable versions of strip-ansi
node_modules/webpack-dev-server/node_modules/string-width
wrap-ansi  3.0.0 - 6.1.0
Depends on vulnerable versions of string-width
Depends on vulnerable versions of strip-ansi
node_modules/webpack-dev-server/node_modules/wrap-ansi
glob-parent  <5.1.2
Severity: high
Regular expression denial of service - https://github.com/advisories/GHSA-ww39-953v-wcq6
fix available via npm audit fix --force
Will install<EMAIL_ADDRESS>which is a breaking change
node_modules/webpack-dev-server/node_modules/glob-parent
chokidar  1.0.0-rc1 - 2.1.8
Depends on vulnerable versions of glob-parent
node_modules/webpack-dev-server/node_modules/chokidar
webpack-dev-server  2.0.0-beta - 4.1.0
Depends on vulnerable versions of ansi-html
Depends on vulnerable versions of chokidar
Depends on vulnerable versions of yargs
node_modules/webpack-dev-server
@angular-devkit/build-angular  0.8.8 - 13.0.0-rc.3
Depends on vulnerable versions of webpack-dev-server
node_modules/@angular-devkit/build-angular
11 vulnerabilities (6 moderate, 5 high)
To address all issues (including breaking changes), run:
npm audit fix --force

resolved!


Fix internal documentation links

Example of an incorrect link:

Duck overrides generic implementation.

These links are generated by markup formatter inside rdoc, before our generator is invoked. We probably can override these somehow.


Secure Graphite Dashboard

It would be good to be able to secure the Graphite Dashboard, even if only HTTPAuth, and ideally have the password setable as a Docker env var.
Thoughts? Approach?

We run this container in concert to grafana, which has several auth options built in, never mind all the excellent graphing options :)  Just don't expose the graphite port outside the host and link the containers. Might be easier for you rather than trying to secure graphite?

Thanks @DarrellMozingo Yes, we use Grafana too, albiet on a separate VM [on AWS], although we often find it useful to go back to Graphite to manually interrogate the data and do very quick PoC graphs

Yea, same thing here really - we leave graphite on :8080 to do quick navigation. Thankfully we don't have to worry about securing it like yours (it's an internal network)!


[Docs] Showcase - Update Syncano URL

Use the landing page, rather than the login page to be consistent with the other two examples. There's a Material UI screenshot further down the page.

Good idea


Stuck on Sync: Installing Extensions in background.

Visual Studio Code Version : 1.12.2
Code Settings Sync Version : 2.7.0
Operating System : Ubuntu 16.04
Occurs On: Downloading extensions
Proxy Enabled: NO
GIst Id: https://gist.github.com/elboletaire/042243a5fbac6e239f1a067018a89abe
My code gets stuck on `sync: installing extensions in background.

Does nothing, and there aren't errors on the console:

I understand that this will be hard to fix, if there aren't errors on the console and you can't reproduce it, but, is there any workaround?

I've tried removing the entire .config/Code folder, and now I face other problems... With the "fresh install", settings sync says there are no extensions to be added... but it's not true.
I'm adding now the gist ID on top, so you can check it with my currently synced settings.

Here's the error log when I try to download the settings in the fresh install:

Removing the ~/.vscode folder fixed all these issues... 😕

This stucks due to problems while downloading the extensions either from the network down or any other reason, sometime specific extension version deosnt download from the marketplace due to network problem.
I am glad you have fixed the issue. 😄

Yeah but wasn't my case.. in my case was some tempfile stored in .vscode folder, because everything was buggy until I removed that folder.
I close the issue, unless I face with it again (or anyone else, ofc).


Comparisons between TserverInstance and TabletMetadata.Location are error prone

While working on #3251 an equals method was added to TabletMetadata.Location which caused this test to break.
The cause of the breakage in the test was this code that ends up looking up a TabletMetadata.Location object in a set of TServerInstance objects.  This works because TabletMetadata.Location extends TServerInstance and does not override equals or hashcode.  Overriding the equals method caused the test to break.
It would be much cleaner and less error prone if TabletMetadata.Location encapsulated TServerInstance instead of extending it.  If something wanted to compare to the TServerInstance then it could call getTServerInstance() on location and compare to that.  Encapsulation instead of extension would allow TabletMetadata.Location to have its own sensible equals and hashcode methods also.

This is a similar problem to the TabletFile/StoredTabletFile issue that @EdColeman and I were previously looking into (the "as stored" format being analogous to "location" here as the type to be encapsulated). However, I think this one might be a bit easier to fix.

I also was thinking the same thing that this looked similar to https://github.com/apache/accumulo/issues/2830
I can can ahead and fix it.

I think I might try and keep the scope of this smaller for now as doing a bunch of refactoring has a lot of changes and would be nice to fix the issue with a smaller change and refactor later if we wanted.


Avoid new cookies overwritten by previous cookies

Fixed the bug that the new cookie will be overwritten by the previous cookie.
New Pull Request Checklist

[x] I have read the Documentation
[x] I have searched for a similar pull request in the project and found none
[x] I have updated this branch with the latest main branch to avoid conflicts (via merge from master or rebase)
[x] I have added the required tests to prove the fix/feature I'm adding
[ ] I have updated the documentation (if necessary)
[x] I have run the tests without failures
[ ] I have updated the CHANGELOG.md in the corresponding package

Additional context and info (if any)

Hi @jasonlaw, I saw you didn't check any checkboxes so I turn this into a draft. Please add a unit test for the change. Thanks!

CHANGELOG needs to be added, and we can have the final review.


Added OnWrap and OnUnwrap callbacks

Looks great!
Is runtime retention needed though?

Yes, for testing.  Parceler uses the infrastructure behind the Transfuse framework that allows you to analyze Classes just as you would analyze Elements during annotation-processor compilation.  In order to pick up these annotations for testing they must be available via reflection (getAnnotation) during runtime.  This works well for testing as you can write unit tests to exercise use cases directly.