stopgap: mysql multi value index

Follow-up for https://github.com/prisma/prisma-engines/pull/3867

General question, since we moved all warnings to the engine since https://github.com/prisma/prisma/pull/18869
What about we stop adding these tests in prisma/prisma?
Only a generic integration test would be really needed (and we have many tests already, testing warnings here) so from now only a new test in engines would be required?

We had discussed during the planning that we might want to combine the existing tests into one big one that covers all introspection warnings, and then a PR here would just be adding the adequate SQL and update the snapshot.

Not needed since https://github.com/prisma/prisma/pull/18869


[move-cli] add explicit dependency to stdlib with testing feature

(copied and re-organized from the discussion on Slack)

Crate move-stdlib has a feature flag testing, which if present,
enables a few more Move VM native functions for debugging and testing.

Crate move-cli depends on move-stdlib indirectly and it has a few
test cases that depends on the existence of these special native
functions. (e.g., debug functions)

However, the crates that indirectly import move-stdlib for move-cli
(e.g., the move-lang crate) does not import move-stdlib with
the testing feature requested.

This PR is a temporary fix that explicitly import move-stdlib with
the testing feature flag set in the Cargo.toml file for move-cli.
Without this fix, cargo test under the move-cli will fail.
Motivation
Quick fix and unblock testing
Have you read the Contributing Guidelines on pull requests?
Yes
Test Plan
cargo test or cargo xtest under move-cli crate.

/land


panic: err: go command required

If go is not installed scan panics. Not a usual scenario.
alexandre@localhost:~> gokart scan
Using default analyzers config found at "~/.gokart/analyzers.yml".
No existing analyzers.yml file found - writing default to ~/.gokart/analyzers.yml

Revving engines VRMMM VRMMM
3...2...1...Go!
panic: err: go command required, not found: exec: "go": executable file not found in $PATH: stderr:

goroutine 1 [running]:
github.com/praetorian-inc/gokart/analyzers.Scan(0xc000035f80, 0x1, 0x1)
	/home/abuild/rpmbuild/BUILD/gokart-0.1.0/analyzers/scan.go:97 +0x135f
github.com/praetorian-inc/gokart/cmd.glob..func1(0x55a77c40cc20, 0xc000035f80, 0x1, 0x1)
	/home/abuild/rpmbuild/BUILD/gokart-0.1.0/cmd/scan.go:53 +0x1ca
github.com/spf13/cobra.(*Command).execute(0x55a77c40cc20, 0x55a77c43fa00, 0x0, 0x0, 0x55a77c40cc20, 0x55a77c43fa00)
	/home/abuild/rpmbuild/BUILD/gokart-0.1.0/vendor/github.com/spf13/cobra/command.go:860 +0x2c2
github.com/spf13/cobra.(*Command).ExecuteC(0x55a77c40c9a0, 0xc000000180, 0xc00013bf78, 0x55a77bb9efc5)
	/home/abuild/rpmbuild/BUILD/gokart-0.1.0/vendor/github.com/spf13/cobra/command.go:974 +0x375
github.com/spf13/cobra.(*Command).Execute(...)
	/home/abuild/rpmbuild/BUILD/gokart-0.1.0/vendor/github.com/spf13/cobra/command.go:902
github.com/praetorian-inc/gokart/cmd.Execute(...)
	/home/abuild/rpmbuild/BUILD/gokart-0.1.0/cmd/root.go:61
main.main()
	/home/abuild/rpmbuild/BUILD/gokart-0.1.0/main.go:38 +0x34

Perhaps log.Fatal would make more sense in here as the analysis failed for some reason, I don't think anyone is going to recover from here.

@alexandrevicenzi thanks for the issue submission! I am able to reproduce this issue, and I agree that that log.Fatal would be more appropriate here.

Thanks for the suggestion @alexandrevicenzi!  I made this fix as well as a similar one for analyzers/sarif.go:31.
PR for this https://github.com/praetorian-inc/gokart/pull/22 is currently in review and once it's merged, it would be great if you could verify the fix to close this out.
Drive Securely,
The GoKart Maintenance Team

Hi @alexandrevicenzi - we're merged PR https://github.com/praetorian-inc/gokart/pull/22 to address this.
Please pull and rebuild the main branch to verify when you get chance.  Thanks!

It works, now I get an error message.
Revving engines VRMMM VRMMM
3...2...1...Go!
2021/09/02 16:28:50 err: go command required, not found: exec: "go": executable file not found in $PATH: stderr:


sluggable not working with symfony 2.0.6

I have this defined in my entity
/**
27      * @var string $name
28      *
29      * @Assert\NotBlank()
30      * @gedmo:Sluggable(slugField="slug")
31      * @ORM\Column(name="name", type="string", length=100, nullable=true)
32      /
33     private $name;
34
35     /*
36      * @var string $slug
37      *
38      * @gedmo:Slug
39      * @ORM\Column(name="slug", type="string", length=100, nullable=false, unique=true)
40      */
41      private $slug;
I made sure that doctrine extensions version 2.1.x is in vendors/
Basically the save occurs, but the slug field is not updated (nothing in it after the insert).
sluggable: true is defined in config.yml.
Timestable works fine in the same project.
Please confirm

you should follow documentation here blog is outdated and works only with 2.0.x branch. etc @gedmo:Sluggable is now @Gedmo\Slug(fields={"sluggable", "fields"})
I will try to update the blog, then I have more time

Thanks a lot. This made it work:
    /**
27      * @var string $name
28      *
29      * @Assert\NotBlank()
30      * @Gedmo\Sluggable
31      * @ORM\Column(name="name", type="string", length=100, nullable=true)
32      /
33     private $name;
34
35     /*
36      * @var string $slug
37      *
38      * @Gedmo\Slug
39      * @ORM\Column(name="slug", type="string", length=100, nullable=false, unique=true)
40      */
41      private $slug;
42
The documentation in https://github.com/l3pp4rd/DoctrineExtensions/blob/master/doc/sluggable.md is kind of confusing.
You should give examples for 2.1.x , because this:

@Gedmo\Slug(fields={"title", "code"})

does not work.
Anyway great job, thanks!!!!


update account settings struct in accounts

DO NOT MERGE UNTIL https://github.com/SYNQfm/akka/pull/323 IS MERGED

@JHUShanZhong I've merged it. It should not be a problem since we are using package versioning in our codes.


Web - Thread - User does not appear in the members list in thread after adding an emoji

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:
Pre-requisite: must be logged in with 2 accounts (user A and user B).

As user A, send a message to user B.
As user B, reply to that message in a thread.
As user A, open the thread chat, click on the 3 dots menu and select "Leave thread".
As user A, react with an emoji to any message.
Click on the header on chat.
Click on "Members"

Expected Result:
User A should appears as a member in the thread.
Actual Result:
ser A is not displayed as a member in the thread.
Workaround:
Unknown
Platforms:

Which of our officially supported platforms is this issue occurring on?

[ ] Android / native
[ ] Android / Chrome
[ ] iOS / native
[ ] iOS / Safari
[x] MacOS / Chrome / Safari
[ ] MacOS / Desktop

Version Number: <IP_ADDRESS>
Reproducible in staging?: y
Reproducible in production?: y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
https://github.com/Expensify/App/assets/93399543/be6b50f2-34fc-460c-9b2f-a5303df8722c
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
View all open jobs on GitHub
Upwork Automation - Do Not Edit

Upwork Job URL: https://www.upwork.com/jobs/~018f3e9a552ab421ae
Upwork Job ID:<PHONE_NUMBER>732205056
Last Price Increase: 2023-10-06

Issue OwnerCurrent Issue Owner: @cristipaval

Created the issue by this request https://github.com/Expensify/Web-Expensify/pull/39071#issuecomment-1750393628

@maddylewis I made this internal, as I discussed this for a bit here

Didn't get the chance to work on this.

Making this weekly as it isn't affecting a common scenario.

I hope I can find the time to work on this one this week

Demoting since this is a corner case and I am currently working on some urgent issues that active users are facing in OldDot.

Haven't got the chance to work on this one yet.

no update

hiya - pete, i left BZ a couple of months ago, but was hanging onto this one incase there was any immediate action. since this is internal + an edge case, there hasn't been a ton of movement on the issue over the last several weeks.
there's no immediate action on your end beyond monitoring the general progress of the internal issue.

was ooo last week, no update

I'll ask in #product channel if we want to get this one fixed.

Asked on Slack here and here to see if we want to fix this.

Closing as per this Slack convo


add wmt_zhen_token_32k

Following the wmt_ende_token_32k scheme, where we uses a separated vocabulary (No word segmentation. Please test it, because I found it performs very bad). Both source and target vocabulary contains about 32k words.
Using wmt 2017 Chinese-English data. Only used News Commentary v12 as training data, which contains only about 200,000 sentence pairs.
In the dev data, there's no plain text data available. We need to process the sgm file into plain text first.

Great thanks @cshanbo ! Are you getting good results?

Hi @lukaszkaiser
Sorry that I haven't done enough experiment yet because I don't have the access to enough GPUs. The results now seems not good, I'll let you know if any progress, thank you.


unordered lists rendering as single item lists, nested unordered lists

A single unordered list:

one
two

two item1
two item2

three

The html is rendered as five unordered lists with one item in each list, and no indentation of nested items.  Expecting an unordered list with a nested unordered list under item two.  Have tested the markdown with the Markdown Web Dingus.

The problem was a line between the list items and the amount of indenting to nest the lists.  I was following gfm.


UpdateOpen is called with same file name for close and open differing only in case

VSCode Version:
OS Version:
Version: 1.40.0-insider (user setup)
Commit: 3f6ed25939b8ef157a7a41e0dc43b517898d4005
Date: 2019-10-15T05:26:38.861Z
Electron: 6.0.12
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.18363

Steps to Reproduce:
Found as part of microsoft/TypeScript#25460

create a folder on case insensitive file system (eg windows)
add files

// Logger.ts
export class logger { }

//another.ts
import { logger } from "./Logger";
new logger();

// tsconfig.json
{
  "compilerOptions": { "forceConsistentCasingInFileNames": true }
}

code . in the folder
Open Logger.ts and pin it in the editor
rename Logger.ts to logger.ts
Note in the tsserver log:  (there shouldn't be exception) Note the UpdateOpen command is applied in sequence as all open files, changedFiles and then closed files so one cannot open and close same file with different casing in their name in same command on case insensitive file system

Info 69   [10:30:18.128] request:
    {"seq":5,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["c:/temp/est/Logger.ts"],"openFiles":[{"file":"c:/temp/est/logger.ts","fileContent":"export class logger {\r\n    \r\n}","scriptKindName":"TS","projectRootPath":"c:\\temp\\est"}]}}
Err 70    [10:30:18.153] Exception on executing command {"seq":5,"type":"request","command":"updateOpen","arguments":{"changedFiles":[],"closedFiles":["c:/temp/est/Logger.ts"],"openFiles":[{"file":"c:/temp/est/logger.ts","fileContent":"export class logger {\r\n    \r\n}","scriptKindName":"TS","projectRootPath":"c:\\temp\\est"}]}}:

    Debug Failure. False expression: Script should not exist and not be open already

    Error: Debug Failure. False expression: Script should not exist and not be open already
        at ProjectService.applyChangesInOpenFiles (c:\Typescript\built\local\tsserver.js:138090:34)
        at Session.handlers.ts.createMapFromTemplate._a.(anonymous function) (c:\Typescript\built\local\tsserver.js:138972:46)
        at c:\Typescript\built\local\tsserver.js:140630:88
        at IOSession.Session.executeWithRequestId (c:\Typescript\built\local\tsserver.js:140621:28)
        at IOSession.Session.executeCommand (c:\Typescript\built\local\tsserver.js:140630:33)
        at IOSession.Session.onMessage (c:\Typescript\built\local\tsserver.js:140653:35)
        at Interface.<anonymous> (c:\Typescript\built\local\tsserver.js:141968:27)
        at Interface.emit (events.js:182:13)
        at Interface._onLine (readline.js:290:10)
        at Interface._normalWrite (readline.js:433:12)
        at Socket.ondata (readline.js:149:10)
        at Socket.emit (events.js:182:13)
        at addChunk (_stream_readable.js:283:12)
        at readableAddChunk (_stream_readable.js:264:11)
        at Socket.Readable.push (_stream_readable.js:219:10)
        at Pipe.onStreamRead [as onread] (internal/stream_base_commons.js:94:17)

Does this issue occur when all extensions are disabled?: Yes

Good find and thanks for the repo steps. Should be fixed in tomorrow's insiders build
As a side note, we now automatically restart the ts server if there is a failure during updateOpen


Using apt to install general packages

Spheral supports external developers and many of them are running basic linux systems (so not building the world with spack). I'd like to be able to use the rse containers for testing different compiler versions, however we need a variety of packages from apt that we would often tell debian/ubuntu users to install.
Trying to run apt install on the containers usually fails to find any packages, I tried apt update and apt upgrade but then apt breaks, stating it cant find the proper glibcxx ... at runtime. Is there any way to be able to use apt alongside the Spack environment here?

Can you give me a specific container to test and reproduce the issue?

@mdavis36 checking in again - would you be interested in us maintaining strictly ubuntu bases? This would be fairly easy to do, and if so, what do you need in them?


Feature: Any plans on making this agnostic to gitlab, bitbucket etc?

Hi... I stumbled on this via Hacker News & looks nice 👍🏾
Any plans on making this agnostic to gitlab, bitbucket etc?
There are also a number of grammatical errors scattered throughout the homepage and codebase in case you were not aware 😉

Good idea to have other providers.
I am fixing the grammatical in home page. Can you point where in codebase?
Thank you so much for your feedback 😊


[Bug]: WORKING GUIDE MISSING

What happened?
NO WORKING GUIDE PLS PROVIDE ONE
Expected Result
1
Branch
master/main
What operating systems are you seeing the problem on?
No response
Relevant log output
No response
Other information
No response

there is a detailed readme, I will not hold your hand just because you are unable to follow the instructions.


Download link for CreatorKit is broken

[Enter feedback here]

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

ID: 9a869972-ce34-c5c9-c591-fd25347181c1
Version Independent ID: 9a869972-ce34-c5c9-c591-fd25347181c1
Content: Set up the Creator Kit - Power Platform
Content Source: power-platform/guidance/creator-kit/setup.md
Service: power-platform
Sub-service: guidance
GitHub Login: @denisem-msft
Microsoft Alias: demora

Thanks for your comment, @ahmadpirani. This issue has been assigned to the doc author for review.

This has been fixed. Thank you for letting us know.


Update dependencies.

Updated: Update dependencies.

On GHA, both linux and windows runners are using go.1.21 but the osx runner is using go.1.20 leading issue reading go.mod


Summary result available after and results consumed after is always None

I tested Neo4j driver 1.7.4 both on Community and Enterprise Neo4j 3.5.11, and the cypher execution time is always None...
Here is an example script.
query = "MATCH (n) RETURN count(n)"

with driver.session() as session:
    r = session.run(firstly_query)
    print(r.summary().result_available_after)
    print(r.summary().result_consumed_after)

I tried it on 1.6.3 version of Neo4j python driver it worked fine.

# The BoltStatementResultSummary should be generic defined depending on which bolt version is used. By the session.

if self._summary is None:
    self._summary = BoltStatementResultSummary(**self._metadata)
    return self._summary

https://github.com/neo4j/neo4j-python-driver/wiki/1.7-changelog#176


We ready for 1.0?

Did we do everything we wanted to do? Can we release 1.0 or are we missing something still?

add contri-contrib

Oh.. okay, we'll do that... when we finish contri-contrib LOL


Intermittent timeout problems

Version: latest from the main branch
Python: 2.7.12
OS: ubuntu 16.04

What was wrong?
I have 3k+ database records to write to a smart contract. Unfortunately, after writing a few records, I'm getting intermittent timeout problems. Here's a traceback of one such occasion:
Traceback (most recent call last):
  File "dataReader.py", line 306, in <module>
    main()
  File "dataReader.py", line 303, in main
    blockchain_writer.writeRecords()
  File "dataReader.py", line 242, in writeRecords
    self.__setCulturalHeritageRecord(coId, record[self.cultural_heritage_keys[CulturalHeritageIndexList.AccessionNumber]])
  File "dataReader.py", line 186, in __setCulturalHeritageRecord
    self.contract.transact().createCulturalHeritageRecord(coId, accessionNumber)
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/web3/contract.py", line 815, in transact_with_contract_function
    txn_hash = contract.web3.eth.sendTransaction(transact_transaction)
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/web3/utils/string.py", line 86, in inner
    return force_obj_to_text(fn(*args, **kwargs))
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/web3/eth.py", line 252, in sendTransaction
    transaction=formatted_transaction,
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/web3/utils/transactions.py", line 53, in get_buffered_gas_estimate
    gas_estimate = web3.eth.estimateGas(gas_estimate_transaction)
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/web3/utils/functional.py", line 22, in inner
    value = fn(*args, **kwargs)
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/web3/eth.py", line 295, in estimateGas
    [formatted_transaction],
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/web3/providers/manager.py", line 42, in request_blocking
    response_raw = self.provider.make_request(method, params)
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/web3/providers/rpc.py", line 49, in make_request
    **self.get_request_kwargs()
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/web3/utils/compat/compat_requests.py", line 21, in make_post_request
    response = session.post(endpoint_uri, data=data, *args, **kwargs)
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/requests/sessions.py", line 535, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/home/s/sh/sh601/.local/lib/python2.7/site-packages/requests/adapters.py", line 499, in send
    raise ReadTimeout(e, request=request)
requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=8545): Read timed out. (read timeout=10)

...geth was busy mining a potential block at that point. Any ideas how  I might overcome that? I'd rather block and wait (or something) rather than just fail....
Cute Animal Picture

Actually, this currently seems to be working:
self.provider = Web3(KeepAliveRPCProvider(host=host, port=port,_timeout=None_))
Rather than:
self.provider = Web3(KeepAliveRPCProvider(host=host, port=port))
...okay, so it blocks for ages (until my slow machine actually gets 'round to mining the block), but it doesn't crash. Yay!

You beat me to it.  Glad you got it figured out.  Let me know if you have continued troubles.

Thanks pipermerriam!
ps. I had a json export from a database to load into ethereum - it would have been an absolute pain via web3.js, but a breeze with python and web3.py - thanks for all your efforts :)


Add edge properties for reified edges

There various reification vocabs, all have the same structure

rdf reification
owl reification
oban reification

In all cases we have 3 triples that uniquely identify a (s,p,o) triple/edge, and then the subject of each of these triples can be the subject of other triples.
Guiding example
https://github.com/geneontology/minerva/blob/master/specs/evidence-model.png

See also https://github.com/SciGraph/golr-loader/issues/25

Let me expand on this a bit more.
The motivation here is that it's often convenient to query across chains of relationships
(n1)-[r1]->(n2)-[r2]-....etc
however, we sometimes put useful pieces of information on the associations. This may be metadata like evidence, or it might be actual biological information about the relationship (e.g. frequency, severity).
In RDF we reify; in Monarch we use OBAN (although the vocab is not relevant here). this means we have to "stripe" the query going up and down from each subject node to the assoc down to the object node. We may in practice avoid this since the most common place we do complex queries is in the golr loader but it will hurt us as we use neo4j more.
Because neo4j is a property graph model, we can attach info to the edges. E.g. if the association node has severity information we can push this down onto the edge between e.g. disease and phenotype.

Another approach is granular instance modeling as in GO-CAM. Here we could associate information at the instance level. The cost here is additional joins to go from instances to types.

Since originally submitting this ticket I've become aware of RDF*
https://blog.liu.se/olafhartig/2019/01/10/position-statement-rdf-star-and-sparql-star/
Basically the same idea. RDF* is syntactic sugar for reification


False error when adding blogs

Every new blog i add trigger the following message: Error N: Could not add the blog: Exception 1. Then it still adds the blog anyway so it's obvious a false positive error.

It's good that you can reproduce it. Can you describe the steps before the error comes? I'm asking because something is special to your current installation/settings, not everyone gets this error and not so regularly.
Do you also get it when you add a blog right after starting the program or only after using it for some time? How many blogs are on your list, only a handful or far more?

I use all default settings, only thing that differ is Activate portable mode. There is no difference between adding a blog right after start or after some use, and i have about  25 blogs. But it appears as if you only can have one of these errors active. The first blog you add triggers the error, but adding a new blog after will not trigger another, unless you close the first error beforehand. So the error have a need to be triggered at all times to be in a happy state.

I've been getting the same error every time I add a new blog.  My installation and settings are all default.  I do have around 300 blogs which might cause this.  It started 2 or 3 updates ago.   As with T-prog3, everything works perfectly despite the error message.

The error should be solved.

The issue has been fixed and closed. You can still comment. Feel free to ask for reopening the issue if needed.


Changing parity on the fly

SerialPort version: 4.0.1
NodeJS Version: v4.2.6
Operating System and Hardware: Raspbian
Are you using Electron/Atom/NwJS?: no
(Run node -v && npm -v && python --version to get version numbers)
v4.2.6
2.14.12
Python 2.7.9
Summary of Problem
As stated in the documentation for serialPort.update([options], [callback]) only baudRate is currently supported. In my project I would like to send data with parity 'space', but the only way to achieve this on Linux is to change parity on the fly between parity 'even' and 'odd', depending on the bits to send.
Requested Behavior
serialPort.update([options], [callback]) should support parity selection beside baudrate changing.

needs this feature too
any update or workaround ?

Is there still demand for this feature?  I'd be happy to try to code for this, however I don't have a usecase or sensible means to test it, so would need some support to test this before it could be deployed

Hi here is my scenario
I have two same devices connected to the same two line of a RS485 bus line and then connected to a PC with a 485-usb cable
I have to send a command to the serial port with mark parity to activate the device with a device address and then send a query command to serial port with space parity to get some data from the activated device
I actually worked around with this awesome lib by  open port / write data / close port / new another port with other parity / write data
It works well but just with a few more codes

Sorry for my poor English

@Emeryao absolutely no need to appologise! Excellent English, and not only great info, but images and diagrams too!
I'm interested to take a look at the code and see how big a change this would be, and if we can get it to work on all platforms.  What operating system(s) are using?  While at first glance it looks like the code should use cross platform logic it would be good to initially target platform(s) where we have people interested in testing the new code :-)
@reconbot Do you have any preference for which method we use for this?  I was thinking of extending the Set and Get methods for this feature, but either Update or a new method could also work.  I don't think WebSerial account for this fuctionality, so don't think there is an option of following a standard for this yet, and therefore I assume we need to set the standard

in my scenario It's a laptop with Windows 10 64bit and I actually wrap the codes to an Elecrton app to communicate with serial port

Hi @Emeryao, I've created a fork with some initial changes to achieve the parity change functionality at https://github.com/GazHank/node-serialport/tree/parity-change
At the moment this is very limited so we can check if this works.  So far:

Set method extended with parity option
Get method extended with parity info (although just returning an int at the moment rather than the descriptive value)
Both methods are updated for windows only at this stage (it turns out that I was mistaken and the logic will be platform specific)

Next steps (TODO):

Update methods for Linux
Update methods for MacOS
Only try to Set the parity if the user requests a change (at present it will trigger every time)
Revise the get method to return a string rather than the parity emun value

I can't really test it this works myself other than monitoring the data over the port as I don't have any devices that are parity dependant, so it would be great if you can check if it works for you
@reconbot if you have any suggestions or guidence on how best to share experimental functionality then please shout, I would like to make sure we can get some robust testing of this functionality before it is promoted to avoid any issues

We need to know if all platforms support changing this on the fly. It's not a usual thing to change. Get/set/update are a mishmash of apis. I'll have to give it some thought.

I've mocked up the code for unix platforms but haven't had chance to compile it yet.  If anything unix seems more likely to support this since it has the options to initiate the changes immediately, wait until the data has drained, or flush the existing data and apply the changes. I've drafted the update based on draining the existing data, but can always change that.
With some luck Mac will work using the unix code and won't need any extra changes 🤞🏼

A branch with draft changes for the unix platforms is available at https://github.com/GazHank/node-serialport/tree/parity-change-unix but I don't know when I will get chance to test this out on Linux, so it's available for anyone you would like to take a look and progress this in my absence.
Since both Linux and Mac os appear to use the same logic for setting parity when opening a port (tcsetattr) it looks like this single change should work for both platforms, however there are already some mac os specific comments related to this method call, so it will need to be tested

@Emeryao would you be able to test if the windows code works for you?
if you clone the windows only branch into a folder alongside you project then you should be able to test the code by adding a resolution into your package.json per below:
    "dependencies": {
        "serialport": "^9.2.0"
    },
    "resolutions": {
        "@serialport/bindings": "file:./../node-serialport/packages/bindings"
    }

By along side I mean that the above assumes that if your project is stored at "c:\abcxyz\myproject" then the clone of the test branch is stored at "c:\abcxyz\node-serialport"
Since this is the source code it will need to be compiled from source.  Let me know if you need instructions or support with that.

@ficzusistvan and @NaveenChander are you also interested in this functionality on Windows, or do you have any need for this on other platforms?
At the moment the Unix platforms (Linux and Mac) don't even support a parity of 'space' (or 'mark') therefore I'm inclined to consider this a windows only feature request.  If anyone has any non-windows usecases then please shout otherwise I will consider this windows specific (in the same way that low latency mode is currently Linux specific)

Thanks for taking time and looking into it !!! In my specific case Unix is fine as I use raspberry pi for the most part

@NaveenChander Do you have a situation where you need to change between odd, even and none on the fly?  or do you require the ability to set parity to 'space' for this to be useful?
Since we currently don't support parity of 'space' or 'mark' on Linux; I fear we may need to first consider implementing those parity settings before this would be useful for you?
Ps - i should also call out that space and mark parity settings don't seem to be documented as supported under linux or mac (therefore in order to add them we probably need to call them out as unsupported features which users can try at their own risk???)

In my case I had to switch between space and mark parity.  I work for a casino company and  all slot machines work based on this.  This was a protocol that was written almost 20+ years back and it is hard to replace existing all slot machines and I am stuck with it.

Thanks for the speedy response @NaveenChander I'll see if space and mark parity settings can be added to unix too.  Would you be able to test on Linux / raspberry pi if I can share an updated fork with you?
@reconbot are you comfortable if we include the additional parity settings for unix but document them as unsupported/ hardware dependent?

@NaveenChander I've updated the unix fork if you would like to test this?  It includes space and mark functionality on supported systems (based on #if defined(CMSPAR))
you should be able to use the same resolution approach I suggested earlier, and if you are using raspberry Pi I assume you are pretty well setup to build from source, but please shout if you need any assistance
You might want to play with the settings for tcsetattr since I'm not sure if you want to use now, flush or drain : https://github.com/GazHank/node-serialport/blob/6660a0d2aeaec632894847bafc7bbb2e6d4d9a5d/packages/bindings/src/serialport_unix.cpp#L407-L413
you can find more info about that setting @ https://www.gnu.org/software/libc/manual/html_node/Mode-Functions.html
While it does seem that I can set the parity to space or mark on Linux (ubuntu LTS seems to allow this), I can't be certain if this really works as intended, since I don't have any suitable old hardware to hand (slot machines or otherwise).  I'm also not sure if changing parity on the fly works on linux for the same reason.  Per @reconbot I don't think mac os supports this at all - hopefully #if defined(CMSPAR) identifies supported systems, but I'd like to make sure we check this

It looks like we should try to address https://github.com/serialport/node-serialport/issues/1113 as part of any change for this issue...
Depending on where we land with this issue, I'll try to update the docs to match the changes and give extra info on the platforms which support the different settings

I'm sorry but the very device I mentioned above is at the site of one of our clients which is not reachable for me now 😅

Thanks for the heads up @Emeryao
I will await testing feedback from yourself or one of the other users; I appreciate that physical access to devices is a little more challenging at the moment.
Since we have a testable fork for windows and unix, I won't create a pull request for this until we have some successful test results

Hi!  I wanted to circle back on this thread -- was this ever implemented into the main branch?
I have a need to support changing parity on the fly as well (similar, in the casino industry).  However, when calling port.update(), I can't pass in parity.  It seems to only allow changes to baudRate.
Is there any way to change the parity on the fly?
(I attempted to merge the changes from @GazHank , even manually -- but it looks like the serialport code has been significantly refactored since the earlier commits, so the files don't even exist anymore)
I have full access to machines and I'll be able to test immediately on macOS and RPi.  Let me know, thanks!

Okay, so a bit more context about this:

The protocol we have requires certain bytes to be sent with "mark" parity, and other bytes to be sent with "space" parity.
Unfortunately, linux/unix-based OS's (including RPi and macOS) have a bit of a spotty record being able to handle "mark" and "space".
So logically, the workaround is to analyze each byte being sent, manually checking the parity, and depending if it needs to be sent as "mark" or "space", to actually set the port to be "even" or "odd" parity based on the parity of the byte.

What this means is that we need to be able to do on-the-fly switching of the parity between "even" and "odd".
It doesn't seem that SerialPort has this capability out-of-the-box.  When calling port.update(), the only setting I am able to change is baudRate.
Fortunately, I've been able to do a workaround where I literally just close the port, and then re-open the port with the new settings whenever I need to switch from "even" to "odd" (or vice versa).  I've attached the proof-of-concept code which uses port.close() and re-creating/re-opening the port whenever we need to switch parity.  At the very least, I can confirm that this does work.  Basically, you can see in sendByte() is where we check the parity, and "switch" between "even" and "odd" parity prior to calling port.write().
However, I'm a bit nervous about having my app constantly closing and re-opening the port whenever the parity needs to be switched (which may end up being dozens of times per minute).
So it'd be great if this could be done, maybe via a call to update()? (which would essentially replace lines 75-109 with just a single call to update() and then my call to write()
Appreciation for any assistance that can be provided on the matter.  Thanks!!!
index.js.txt

Hello everyone!  Just wanted to "bump" this and see if anyone would be able to take a look at this for us?  We're more than happy to provide a modest bounty on successful implementation of this.  Please let us know, thanks!

Hello, wanted to bring up this issue again.  @reconbot @GazHank just wondering if someone would be able to take a look at this?
We're happy to provide a modest bounty for getting this new feature in there.
Let me know, thanks!!!


[Dashboard in Turk] Create free form and multiple choice onboarding tasks

Description
This PR sets up free form (default) and multiple choice onboarding tasks for Turkers.
Turker onboarding flow:

Turk worker accepts task. If the Turk worker has completed and passed this onboarding flow before, the worker is auto-approved. If the worker failed this task before, the worker is denied. Otherwise, the Turker must do the onboarding task.
The Turker is shown onboarding task with instructions that are almost identical to the voxel world setup, including bot capabilities and what is allowed/disallowed and encouraged, and is asked to write up to 10 instructions for the robot assistant in a text box.
On form submit, the response is processed and we run a series of checks to validate the quality of interactions: number of commands, richness, diversity. Onboarding tasks are only successful if they pass all these checks.
Turk worker success or failure is recorded in Mephisto DB, and successful workers are taken to the primary task.

Additional changes/notes in this PR:

Added back the extra_refs directory that was removed during refactor.
Removed hard coded task directory in run script.
Additional checks we are not currently running:

Check free form inputs against a words blacklist
Grammar/spellcheck

Fixes # (issue)
#448
Type of change
Please check the options that are relevant.

[ ] Bug fix (non-breaking change that fixes an issue)
[ ] Proposes a change (non-breaking change that isn't necessarily a bug)
[ ] Refactor
[x] New feature (non-breaking change that adds a new functionality)
[ ] Breaking change (fix or feature that would break some existing functionality downstream)
[ ] This is a unit test
[ ] Documentation only change
[ ] Datasets Release
[ ] Models Release

Type of requested review

[ ] I want a thorough review of the implementation.
[x] I want a high level review.
[ ] I want a deep design review.

Before and After
Before: Crowdsourced workers were shown the Craftassist task directly upon task acceptance, i.e.

After: Crowdsourced workers are first shown an onboarding task. If they fail, their IDs are recorded in Mephisto DB and they are prevented from working on future tasks using this onboarding qualification. If they pass, they are taken directly to the task.

Testing
To run locally:
python droidlet_static_html_task/static_run_with_onboarding.py mephisto/architect=local

Make sure port 3000 is tunneled on your mac.
To run using Turk sandbox:
python droidlet_static_html_task/static_run_with_onboarding.py mephisto/architect=heroku mephisto.provider.requester_name=[username]_sandbox

Log in with team MTurk account.
Checklist:

[x] I have performed manual end-to-end testing of the feature in my environment.
[ ] I have added Docstrings and comments to the code.
[ ] I have made changes to existing documentation where needed.
[ ] I have added tests that show that the PR is functional.
[ ] New and existing unit tests pass locally with my changes.
[ ] I have added relevant collaborators to review the PR before merge.

Few high level questions

Will the workflow mentioned above happen on every single HIT ?
More generally, we should host this qualification task once, post process results and have a list of approved workers (which will be a whitelist for who all see our real tasks) who get to complete the main task.

I think I mentioned this before but 10 commands is too much for qualification task

How are we measuring

commands, richness, diversity.

without doing any grammar or spellcheck ?

Few high level questions

Will the workflow mentioned above happen on every single HIT ?
More generally, we should host this qualification task once, post process results and have a list of approved workers (which will be a whitelist for who all see our real tasks) who get to complete the main task.

Mephisto onboarding is slightly different from traditional Turk qualifications. So if you specify onboarding for your HIT, it will run this onboarding check on every Turker who picks the HIT up, but if Turkers are pre-approved they will go straight to the task. You can run the task for only approved workers/disallow running task on blacklisted workers. All of this is saved in the Mephisto DB so you can pull up the whitelist/blacklist of worker IDs for each onboarding task.
cc @aszlam since we discussed this

I think I mentioned this before but 10 commands is too much for qualification task

I can cut to 5.

How are we measuring

commands, richness, diversity.

without doing any grammar or spellcheck ?

This is in static_run_with_onboarding.py, which is checked in for this PR.
Commands: number of commands >= 3
Richness: average number of words in commands > 4
Diversity: First word in commands are not all the same, eg. if the user only typed "build X" commands, they would fail.

Additionally:

Can you check in the postprocessign script in this PR as well ?

The postprocessing for onboarding? Or for turk tasks? Turk tasks postprocessing is already checked in.

Can we rename : droidlet/tools/crowdsourcing/droidlet_static_html_task/server_files/extra_refs/ to be something more informative ?

This directory is currently not used by us, it is just a path Mephisto expects to exist for static files, etc.

Thanks! Those make sense.
As long as qualified workers don't have to retake the qualification, it make sense.

This directory is currently not used by us, it is just a path Mephisto expects to exist for static files, etc.

In that case, lets add this to the README of the parent folder just so its documented somewhere. Want to make sure any future refactors do not end up deleting this again


Batch size send deadline exceeded

we are seeing this error logs in the prometheus-engine while pushing metrics to GMP.
send batch, rpc error: code = Unavailable desc = Deadline expired before operation could complete.

Image we are using is :- v2.35.0-gmp.2-gke.0
Now this is an intermediate it happens sometime
what we wanted to know is when this happen does it have any fallback mechanism or retry or we just lose this batch all together.
One more error we are seeing is
rpc error: code = DeadlineExceeded desc = context deadline exceeded

can you explain a little bit more about this error not sure about this. Both of this error are intermediate,

We encountered this error again in of the region us-east4
If you look at this chart we did see a spike in error rate

After i restarted the prometheus statefulset it got resolved

@pintohutch Any Update on this issue ?

Hi @savanipoojan78,
Apologies for the delayed response. The 5xx's are typically a result of service degradation of Google Cloud Monitoring (GCM). It's possible you were seeing this as a result of this incident in December. You should be seeing consistent success when writing to GCM as that issue has been resolved.

what we wanted to know is when this happen does it have any fallback mechanism or retry or we just lose this batch all together.

We explicitly do not retry if there are problems writing to GCM to avoid HOL blocking. The idea here being: it's presumably more valuable to have monitoring on the latest data than historical or "backfilled" data for critical applications.
Hope that helps.

Thank you @pintohutch For the response but this happen today as well
What we have seen is from past 28 days data we are seeing this for us-east4 region very frequently
and also what we have observer is when we restart the stateful-set its resolved ,after the restart we don't see the above error in the prometheus pod logs
16 Jan'23 from from 9AM-10AM UTC we were seeing this issue

Hey @savanipoojan78,
It's possible you may be sending samples too frequently to the backend. What's your scrape_interval set to?
Managed Service for Prometheus supports a minimum interval of 5s.

Or another possibility: are you running multiple Prometheus binaries, each writing to the same time series in the backend which could be causing this?

we are setting scrape_interval as 60s for all the prometheus job
Yes , we are sending metrics from different region in same TS but different labels values (ex cluster_name and location will be different) could this be problem in future as we increase the number of worker to monitor in each region? which will send the data to same TS? do you have any suggestion? why we wanted to do that is because we wanted to have an consolidated view of our system.

Gotcha - 60s should be fine.
Cool - there's no problem with that pattern. However, you should ensure that you are setting the cluster label for each deployment, and that it's set differently, depending on where it's deployed. Otherwise, you could be writing colliding data to the same time series.

You can set this either in your Prometheus configuration external_labels or via a flag passed to your Prometheus binary.

Also note, if you have more than one Prometheus deployment per cluster, you can further distinguish colliding timeseries through the namespace label. This is most relevant for K8s deployments, however you may have some analogous notion of namespace in your environment (e.g. logical network isolation within your cluster).
You can provide this in your external_labels config as well.

we are following above things that you mention.

The colliding time series that I'm able to see are missing the cluster and namespace labels.

Resolved through the support case.


Editing commands

This commit is for:
Implements https://github.com/AcademySoftwareFoundation/OpenTimelineIO/issues/1649.
Makes PR https://github.com/AcademySoftwareFoundation/OpenTimelineIO/pull/1518 obsolete.
It implements edit commands in the otio::algo:: namespace. The commands implemented are those discussed in https://github.com/AcademySoftwareFoundation/OpenTimelineIO/issues/711.
They are further explained more clearly in:
https://github.com/mccartnm/OpenTimelineIO/blob/openedit_design/docs/design/editorial_design.md
Summarize your change.
It implements the needed base commands for editing with otio, building on top of @darbyjohnston's PR.
@darbyjohnston 's PR https://github.com/AcademySoftwareFoundation/OpenTimelineIO/pull/1518 was the base for it, but I debugged two subtle precision bugs in his code and moved it all to the algo:: namespace.
Implementation also modifies errorStatus.h/cpp to add NOT_A_GAP enum.
Implementation, as @darbyjohnston's, makes Composition's protected _index_of_child a now public member of the API as index_of_child and updates track.cpp accordingly.
Reference associated tests.
test_editAlgorithm.cpp is added as in @darbyjohnston, but with tests for all commands.

Codecov Report

Merging #1651 (8fe144b) into main (eaf8569) will decrease coverage by 0.02%.
The diff coverage is 23.07%.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #1651      +/-   ##
==========================================
- Coverage   79.91%   79.90%   -0.02%
==========================================
  Files         197      197
  Lines       21731    21733       +2
  Branches     4339     4340       +1
==========================================
- Hits        17366    17365       -1
- Misses       2213     2216       +3
  Partials     2152     2152

Flag
Coverage Δ

py-unittests
79.90% <23.07%> (-0.02%)
:arrow_down:

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

Files Changed
Coverage Δ

src/opentimelineio/composition.h
41.37% <ø> (ø)

src/opentimelineio/errorStatus.cpp
28.33% <0.00%> (-0.98%)
:arrow_down:

src/opentimelineio/errorStatus.h
86.95% <ø> (ø)

src/opentimelineio/track.cpp
52.85% <0.00%> (ø)

src/opentimelineio/composition.cpp
47.58% <30.00%> (ø)

... and 1 file with indirect coverage changes

Continue to review full report in Codecov by Sentry.

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

In case you're wondering, the DCO check fail is complaining because some commits lack the DCO line in the commit message. For example, in Darby's initial commit you can see
Signed-off-by: Darby Johnston<EMAIL_ADDRESS>if you rewrite the commit messages with your own signoff, and force push to your branch, it will clear up the DCO warning in the CI.


Support for multipackage projects

It would be nice if there was builtin support for projects consisting of multiple cabal packages. This should be quite easy using cabal new-build. We only need to

Parse the cabal.project file to find the individual cabal files (I think it’s reasonable to assume that one exists).
Add all the targets to the build command.
Search for tests separately for each cabal project.

I’ll try to make a PR when I have time, but I can’t promise that it will be anytime soon.

related: https://github.com/haskell/cabal/issues/3391

Whoops, completely missed this issue. This is fixed by #97.


Warning: Accessing PropTypes via the main React package is deprecated. Use the prop-types package from npm instead

This is a warning for React 15.x
This will be an error since React 16.x
This is supposed to be an easy fix.
So please fix this ASAP.
Suspect file src/index.js.

We accept PRs :)

What are PRs?

See https://github.com/gor181/react-chartjs-2/pull/130


Fix bash range in get_repeated_scroll_cmd function

In #28, I changed the for loop in the get_repeated_scroll_cmd function to use a bash built-in because seq is not portable (for example, it doesn't exist on Solaris).  However, I must have been accidentally testing under ZSH, because the range operator ({1..x}) does not support variable interpolation under bash.  This commit changes the for loop to using a math operator, which I have confirmed is compatible with bash (at least back to version 3, which is quite old); and as a built-in, is portable.

Example, on the command line:
> uname -a
SunOS <snip>.umd.edu 5.10 Generic_150400-50 sun4v sparc sun4v
> bash --version
GNU bash, version 3.2.57(1)-release (sparc-sun-solaris2.10)
Copyright (C) 2007 Free Software Foundation, Inc.
> bash -c 'end=5; for ((i = 1; i <= end; i++)); do echo $i; done'
1
2
3
4
5

Awesome. Thanks @iamjamestl, that makes sense to me. Thanks!


Small mistake in GB/GBC article - 1MB cartridge size only true for GB, GBC has 4MB cartridges

There's a small mistake in the Game Boy/Game Boy Color article.
"The biggest Game Pak (cartridge) found in the market has a 1 MB ROM."
This is true for the original Game Boy, but there are many 4MB games on the GBC.
edit: Also one (possibly more) 8MB game out there.

Oh I've noticed your comment in Hackernews first and amended the line with this sentence:

The biggest Game Pak (cartridge) found in the market has a 1 MB ROM (or 8 MB, in the case of the Game Boy Color).


Remove output_dim argument from RNN API

Please see http://rebaseandsqua.sh/ to turn a PR into a single commit.

@fchollet Rebase and squash was kind of tricky. Here is a better tutorial that you can point out to git noobs :  https://github.com/edx/edx-platform/wiki/How-to-Rebase-a-Pull-Request

All related tests are passing.


rule engine, send to http, request post, set data template failed

Could you please provide following information?

The error message.
Click view source tab in the 2nd screen-shot, and post the rule.

Could you please provide following information?

The error message.
Click view source tab in the 2nd screen-shot, and post the rule.

@yu-qingyun Hi, could you send us the UI full screen shot as image? that may be help us to find the problem.
About your failed,I guess two situations can lead to mistakes:

In the Rest HTTP Server  Information input errors may occur, like the Action is GET but the Method is POST, or the other input error.
The connection between UI and server may failed, please double check the EdgeX and the UI in the seem network, and the health check is pass.
If not the two reasons, please call me back and we will continue to focus on this issue. Thank you!

@yu-qingyun Hi, could you send us the UI full screen shot as image? that may be help us to find the problem.
About your failed,I guess two situations can lead to mistakes:

In the Rest HTTP Server  Information input errors may occur, like the Action is GET but the Method is POST, or the other input error.
The connection between UI and server may failed, please double check the EdgeX and the UI in the seem network, and the health check is pass.
If not the two reasons, please call me back and we will continue to focus on this issue. Thank you!

@yu-qingyun - I am going to close this issue as neither the Kuiper team or the UI team are able to reproduce this issue.  If you are able to reproduce it and if you are able to provide more details we will reopen it.


Bug: breaking rendering of some dataview blocks

Describe the bug
I have this on my dailies:
    ```dataview
    TASK
    FROM "2 Areas/_Daily"
    WHERE !completed AND file.name != this.file.name
    SORT file.name DESC
    ```

It should look like this:

But with this plugin enabled (in community plugins)... it looks like this:

To Reproduce
Steps to reproduce the behavior:

use dataview to display tasks
install and enable this plugin
dataview is broken.

Versions
OS: Windows 11
Version: Obsidian 0.14.7
dbfolder version: 0.0.7

0.1.0 is out with huge changes. I could not reproduce this issue but all css was changed with a prefix to not interfere with another plugins. Could you try if its fixed? thanks!

Looks like its fixed. I don't see a conflict on the dataviews that I have now.  Thanks!

Hope you enjoy the new version!


Mark whether a class is a subclass

We conjecture that having is_subclass as a feature can help the model in make better predictions. This is important as we are now able to collect way more data points from sub classes (see commit https://github.com/mauricioaniche/predicting-refactoring-ml/commit/de64fcf3e057f55fd922ed0757f01b849f2a5c3f).
This feature requires changes in the data collection as well as in the ML pipeline.

The is_subclass attribute should go to the ClassMetric class.

I would like to claim this issue.

PR was merged. Closing this issue.


Flash client sends to Windows server - server hangs

In the Server.hx pump function, in the try block, in the while(true) block, the server receives an ever-lasting stream of zeros (from readByte()). This causes it to hang in the while loop. I guess it's because flash and native sockets behave differently, but I don't know enough about them to understand what's going in.
I'm more than willing to help solve this issue, I'm just really confused right now. Could you give me a few pointers about the differences between flash and native sockets?

On the plus side receiving messages from a windows server with a flash client works like a charm :)

Just clarifying, I'm sending a string using the Prefixed protocol. However this doesn't really matter, as while reading the socket input the data goes something like this:
(each character represents a byte)
0, 0, 0, 0, ...more zeroes, 0, 1, 3, 67, 78, 103, ...more data, 0, 0, 0, ...more zeroes
it never finished processing the first received message since it's stuck in the while loop, reading zeroes, and no exception is thrown

Thanks for reporting, this is related to #3 . What's weird is that i have several apps working with it and I don't get those issues so i'm not sure if that's a special case or a regression, in any case it probably needs more tests. I'll probably switch to a hxnet style buffering. Hoping for a commit later today.

Replacing the contents of the while block with the hxnet code below works perfectly, the pain is over. I haven't tested for cpp to cpp and the three other configurations though, but can confirm it fixes the flash(client) to cpp(server) issue. Overall flash client and cpp server is working 10/10.
bytesReceived = socket.input.readBytes(buffer, 0, buffer.length);
					// check that buffer was filled
					if (bytesReceived > 0)
					{
						protocol.dataReceived(new BytesInput(buffer, 0, bytesReceived));
					}

(hxnet.tcp.Server.hx, lines 75-80)

Could this solve https://github.com/Dvergar/Anette/issues/3 ?

I don't know, tbh I can't reproduce #3. What I thought was #3 at the time was actually this.


[stable/promehteus-node-exporter] Fix health checks

Health checks need to be on the same port the service is on otherwise the health checks fail.

/ok-to-test

/assign @gianrubio
What do you think of this, @gianrubio?

/assign

/lgtm


Feature: add auto detection for blocks on the Settings page

The left navigation bar doesn't respond when the page is scrolling, only working with a click
https://user-images.githubusercontent.com/54288612/170369041-40233756-2d89-4bd8-a4d8-984cfeb11dce.mov

This is a nice catch!

Actually, I'd like to change the Settings screen completely, because now it is quite inconvenient to use.
Moreover, I think most of the things here can fit on just one screen.
Something like this:

Also, I think it will look correspond with our modern website.
What do you think?
cc: @avive @oriya

That is a great idea @brusherru I am 100% supportive of this idea. New Issue? :)

My 2 cents: I'm not a fan of this approach because it is not very scalable and it makes it hard to add new settings. The current view is not that pretty but is quite functional and similar pattern to other highly popular apps with many settings - check facebook, insta, twitter, chrome. I think it is a good idea once the Settings stabilize a bit more - I think it is likely that this will happen after sm 0.3 core and api will progress a bit.

is not very scalable
it might be scalable, at least we can put all "other" stuff in the rows below
but all main features will be on the fingertips, aka it is already on the screen, you don't have to scroll or aim at a corresponding section link :)

Of course, this is not high-priority stuff.


Keystore location

Where to find keystore of running Ganash instance?
 Unfortunately Ganache doesn't have a keystore folder like geth/parity. Due to the nature of Ganache, you'd likely use NewKeyedTransactor instead: https://github.com/ethereum/go-ethereum/blob/f8f428cc18c5f70814d7b3937128781bac14bffd/accounts/abi/bind/auth.go#L47
The method the tutorial you referenced is using an encrypted key. The private key's that ganache-cli output (which are in the console output when you start ganache-cli) are unencrypted and can be used directly (which is what NewKeyedTransactor looks like it supports).
Looks like you can get the Go key using crypto.HexToECDSA("insertprivatekeyherefromganacheclioutputwithoutpreceding0x"). See https://github.com/ethereum/go-ethereum/blob/1836366ac19e30f157570e61342fae53bc6c8a57/contracts/ens/ens_test.go#L31 and line 39 for an example
Hope this helps!

@seesemichaelj fantastic help there - worked like a charm!

Apparently I missed something! You can also add the following option to the cli to get out the keystore format:
--acctKeys="./ganache-accounts.json"

this does not produce needed keystore format with "crypto" field. Looks like this is some Ganache-specific JSON to describe created accounts.

Bummer; well thanks for following up and saying it doesn't work. We don't currently have any plans to output it in this JSON format, but the first method I presented should be sufficient.

@seesemichaelj @drasko Also want to thank you for this, it worked like a charm. I was not aware of the HexToECDSA function and spent like 2 hours trying to figure out how to use the private key from Ganache. Thanks again!


DefaultHttpHeaders cause 'x-forward-proto' and 'x-forward-for' to not exist at the same time

version: spring-cloud-gateway-core.2.1.2
DefaultHttpHeaders cause 'x-forward-proto' and 'x-forward-for' to not exist at the same time

We deployed nginx before gateway. The configuration of nginx is as follows:
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMONTE-HOST $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;

Through code debugging, I found that in NettyRoutingFilter, through DefaultHttpHeaders, I filtered the header again
This filter is operated by a hashmark (?), and "proto" is consistent with the hashcode calculated by "for", resulting in one of the two being overwritten
The code location is roughly as follows. I have taken a screenshot:

Please note that there are headers in "filtered", but the DefaultHttpHeaders are overwritten, and some headers are discarded?
I didn't quite understand the logic of a paragraph. I checked the code of the latest version of gateway, and the logic didn't change.
I want to get "proto" information from the backend now. What should I do? thank you

This has nothing to do with DefaultHttpHeaders. It's likely to do with headers filters. We currently check for duplicate x-forwarded-for headers that will be fixed in #1760


disable casher

Coverage remained the same at 91.174% when pulling aec20b477067aa6c721146b4a5591c5ba57a96af on disable_casher into ce2583dce4a447e2bf75876618c8e343dfc560f8 on develop.


V5.50

Smart Search:- CoreCrud->searchData
Smart Sum:- CoreCrud->sumData
CoreSearch Model introduced to handle search activities

Approved as the latest version


Add width to the IMAP window which can't be reduced beyond a certain point

Please take a look at the IMAP window and if it works for you with the width and resizing.
I will provide some pictures.
This closes #123

So on my desktop its a little bit large :D and i cant make it smaller (ofc i cant, its one of the features^^).  But I think we need to get some more details about the resolution. I think it looks fine on your Elementary OS (but **everything** else is also very tiny there). So your Implementation is fine, but we need to tune the values extent: 1240 @ 600; minimumExtent: 1980 @ 600.`. Maybe we can add a function, which calculates this values for us. :)

@davidhennemann Could you take a look at it again pls :3?


iOS: Incompatibility with FirebaseFirestore because of libyuv headers

See discussion in: https://github.com/firebase/firebase-ios-sdk/issues/4537
Because of flattened headers inside libyuv.h coming from https://github.com/waitingsnow/libyuv-iOS/blob/master/headers/libyuv.h the iOS pod of flutter-webrtc has become incompatible with FirebaseFirestore on iOS.
The waitingsnow mirror of libyuv is two years behind upstream and isn't actively maintained but one could create a new fork to fix the issue https://chromium.googlesource.com/libyuv/libyuv/+/refs/heads/master/include/libyuv.h
The question is who will maintain that mirror. If @cloudwebrtc could, that would be amazing.

excuse me how can i use that, i had upgrade all plugin to newest version flutter_webrtc and cloud_firestore but it can still get error 'cstddef' file not found while building ios

@duongtruong12 I don't think the maintainers have cut out a release yet. What you can do is to point flutter_webrtc against the master branch like this in your pubspec:
  flutter_webrtc:
    git:
      url: https://github.com/cloudwebrtc/flutter-webrtc
      ref: master


remove old tests

@jatkinson1000
Can we safely remove benchmarker_forpy.f90 and cg_drag_*.f90 files?
I think we just need to keep the benchmarker_*.f90 files?

You'd need to amend the CMakeLists, and I think there is a slight difference between the former and latter.
The former contains the call through an interface exactly as it occurs in MiMA, whilst the latter is the core of this code to call only the net pulled out into one file.

After discussion with @jatkinson1000 , we have decided to keep them as they serve a different purpose. They are structured differently from the simplified benchmarks offering a different, realistic implementation of the FTorch library


My private folder is not re-keying after getting a new computer.

[write something useful and descriptive here]
my log id: 2c9976ee0664f2186a16ad1c

Here's the summary of a slack discussion/investigation:

@lherlitz installed the public keybase client on a new computer, provisioning with the paper key.
~25 hours later, he upgraded it to the kbfs alpha client.
This kicked off some rekeys, which didn't work because the paper key was no longer unlocked (and there were no existing devices left online).
10 minutes later, it tried to rekey by prompting for the paper key.
This rekey attempt appeared to never complete -- possibly @lherlitz didn't enter the key for 30 minutes after he was prompted (though I'm not positive about that from the logs.)

The result was that kbfs was stuck trying to rekey, and never tried again.
Here are some log snippets.  KBFS requesting the promptPaper rekey:
2016-04-17T18:08:31.121761 ▶ [DEBU kbfs(FBO 19ac87e2) folder_branch_ops.go:3506] 3a92 rekeyWithPrompt [tags:REKEYID=kkO7Tuig6VqH3pGiZW5GXw]
2016-04-17T18:08:31.253622 ▶ [DEBU kbfs key_manager.go:383] 3a93 Rekey 19ac87e21c87b78a05cbf23b5c13ca16 (prompt for paper key: true) [tags:REKEYID=kkO7Tuig6VqH3pGiZW5GXw]
2016-04-17T18:08:31.253722 ▶ [DEBU kbfs keybase_daemon_rpc.go:604] 3a94 Flushing cache for user a07730775a4968fb733f0ccd26333519 [tags:REKEYID=kkO7Tuig6VqH3pGiZW5GXw]
2016-04-17T18:08:31.612804 ▶ [DEBU kbfs key_manager.go:240] 3a95 Checking key 0121b9b035fe2117e85a0397ba0091eb0cee8d50c082f6648f83d07c5f235b309b790a [tags:REKEYID=kkO7Tuig6VqH3pGiZW5GXw]
2016-04-17T18:08:31.612863 ▶ [DEBU kbfs key_manager.go:240] 3a96 Checking key 0121259d2a610083c2e308b56d768141fac15d02550cb484ce466afc2baf623dc7690a [tags:REKEYID=kkO7Tuig6VqH3pGiZW5GXw]
2016-04-17T18:08:31.612888 ▶ [DEBU kbfs key_manager.go:240] 3a97 Checking key 0121b2a3b0a30401b0097cc18f98d0f852c1698edd4cb1a0e0efe1be3e0c5b44112a0a [tags:REKEYID=kkO7Tuig6VqH3pGiZW5GXw]
2016-04-17T18:08:31.612909 ▶ [INFO kbfs key_manager.go:243] 3a98 Rekey 19ac87e21c87b78a05cbf23b5c13ca16: adding new device 0121b2a3b0a30401b0097cc18f98d0f852c1698edd4cb1a0e0efe1be3e0c5b44112a0a for user a07730775a4968fb733f0ccd26333519 [tags:REKEYID=kkO7Tuig6VqH3pGiZW5GXw]
2016-04-17T18:08:31.612939 ▶ [INFO kbfs key_manager.go:274] 3a99 Rekey 19ac87e21c87b78a05cbf23b5c13ca16: removing device 01217f0b1ccda6ae42e6b6b2e6e935118ba5530cf065fda9d1f0f630b51e988618710a for user a07730775a4968fb733f0ccd26333519 [tags:REKEYID=kkO7Tuig6VqH3pGiZW5GXw]

(And there are no more entries for that debug tag in the log, which is why I think the RPC to the service never returned.)
Immediately, before getting a response, KBFS requests another folder for rekey:
2016-04-17T18:08:32.332841 ▶ [DEBU kbfs key_manager.go:383] 3a9b Rekey 46589e4d6dc1b34be797353ed2618c16 (prompt for paper key: true) [tags:REKEYID=PEHzCz7qpJIVV5bMKt5bmQ]
...
2016-04-17T18:08:47.379753 ▶ [DEBU kbfs key_manager.go:384] 3b0e Rekey 46589e4d6dc1b34be797353ed2618c16 done: libkbfs.NeedSelfRekeyError{Tlf:"lucherlitz,theob", Public:false} [tags:REKEYID=PEHzCz7qpJIVV5bMKt5bmQ]
2016-04-17T18:08:47.379814 ▶ [DEBU kbfs(FBO 46589e4d) folder_branch_ops.go:3444] 3b0f Device doesn't have access to rekey [tags:REKEYID=PEHzCz7qpJIVV5bMKt5bmQ]
2016-04-17T18:08:47.379841 ▶ [DEBU kbfs(FBO 46589e4d) folder_branch_ops.go:3454] 3b10 Scheduling a rekeyWithPrompt in 10m0s [tags:REKEYID=PEHzCz7qpJIVV5bMKt5bmQ]
2016-04-17T18:08:47.380787 ▶ [DEBU kbfs(FBO 46589e4d) folder_branch_ops.go:3460] 3b11 Rekey bit already set [tags:REKEYID=PEHzCz7qpJIVV5bMKt5bmQ]
2016-04-17T18:08:47.380840 ▶ [DEBU kbfs(FBO 46589e4d) folder_branch_ops.go:3507] 3b12 Done: <nil> [tags:REKEYID=PEHzCz7qpJIVV5bMKt5bmQ]

This one actually does complete, with an error.  Perhaps the paper key was entered wrong.  Here's what the service is saying around that time:
18912 2016-04-17T18:08:32.329577 ▶ [DEBU keybase crypto.go:272] 37b0 matching paper key: common erode
18913 2016-04-17T18:08:32.329599 ▶ [DEBU keybase handler.go:63] 37b1 SecretUI:GetPassphrase, sessionID = 0
...
19372 2016-04-17T18:08:47.379453 ▶ [DEBU keybase paperkey_phrase.go:87] 397b paper version mismatch: generated paper key version = 14, libkb version = 0
19372 2016-04-17T18:08:47.379554 ▶ [DEBU keybase util.go:386] 397c + UnboxBytes32Any
19373 2016-04-17T18:08:47.412797 ▶ [DEBU keybase log.go:131] 397d {unix} EOF

So I think there might be a problem if KBFS sends two paper key prompt rekeys back-to-back -- it only responds to one of them.  Not sure if this is an issue in the service or the GUI.  @patrickxb, @cjb what do you think?

For the record, we ran into a separate server error in trying to restore this folder, where the folder wasn't being offered as a rekey candidate to a device that might have a paper key available.  Then, after fixing that, we ran into another client bug, where after a restart the client was not prompting for a paper key if the rekey bit was already set.  @lherlitz gave us permission to just reset his folder to a previous state without the rekey bit set:
BEGIN KEYBASE SALTPACK SIGNED MESSAGE. kXR7VktZdyH7rvq v5wcIkHbrvasvGt LpbnIbldo2ZjMNb ytZAtWG0KThyTfu rVC6JY2Q2HclLgZ 6blRiCIHcatv86H qeyXR1JLqwRD2Lb Ob2JuowlF6flihR jEAtSXSDZnSr5pp W26Ybx0raLbgxMJ 5MDkui5O0P94fTp T3sS26TnebuEmZb p5w2tQzji8pQcmB ax7LXffK6bz2Gor 69mUrDnmFs8SSAr hqUJYeOLENa1Xr9 M6qz2kgf0otaXgB 9AwP0WFLYdzBbFQ Mq9xLc8vb5HQDeN HsMhBg4FBUJ4R7P pNk4dgrBeTi3HYk HomDgkMTOaRveyo vh0wWkfG9KCWUgY nmHTJAqNAHgkgTb fp3Pygwsx60Hv1P R3S2I5nAAsbmbCI YsYyRY4Q9UhHbUy 5uLBs3sEiaA3DNZ cgSIBaKEHb471nM GW. END KEYBASE SALTPACK SIGNED MESSAGE.

I think one issue might be that UnboxBytes32AnyArg (and UnboxBytes32Arg) don't set the SessionID field so it defaults to 0.  This might be the cause of confusion for the concurrent paper phrase requests if they are on the same connection to the daemon.

All the issues discussed here should be fixed in the next public release.

Repro'ed bug in which two overlapping unboxBytes32Any calls causes the first guy to be dropped.  It looks like Electron is dropping one of the calls. However, it would be a bad UX to have two paper keys prompting at the same time; would be better to single-flight.  So we'll solve it with a mutex in the service.

@lherlitz told me out-of-band that his private folder is working again.  All of the known KBFS bugs are fixed relating to this.  I think we're tracking the double-prompt thing separately internally, so closing this.

Double prompt fixed in https://keybase.atlassian.net/browse/CORE-2954


Problem with page.Request event

Hi, I use the library PuppeteerSharp, I write a lot of code to figure out why I couldn't find a solution. The problem is that the event page.Request never raised. I use the latest version: 20.0.0. Below report a snippet of code that I use to complet the work.
The source of the problem is that the image does not show up in the PDF.
Thanks
var htmlContent = @"

    <title>Test</title>

";

var installedBrowser = await new BrowserFetcher().DownloadAsync(BrowserTag.Stable);
var options = new LaunchOptions
{
    ExecutablePath = installedBrowser.GetExecutablePath(),
    Headless = true,
    Args = new[] { "--disable-web-security" }
};
var browser = await Puppeteer.LaunchAsync(options);
var page = await browser.NewPageAsync();

await page.SetRequestInterceptionAsync(true);

page.Request += async (sender, e) =>
{
    if (e.Request.ResourceType == ResourceType.Image)
    {
        await Task.Run(() => Console.WriteLine($"Request image url: {e.Request.Url}"));
    }
};

await page.SetContentAsync(htmlContent);

await page.WaitForSelectorAsync("img");

await page.PdfAsync("output.pdf", new PdfOptions
{
    Format = PaperFormat.A4,
    PrintBackground = true
});

await browser.CloseAsync();

Where is that image.jpg located? because you are injecting the HTML.

Right, the image won't load even if I put a full path like:

The event request raise only use this format in HTML:

But then I couldn't inject the base64 string into the HTML

And why do you need that event?

I don't need of the event but the image visibile in the PDF file. What's wrong with the code snippet I posted? Why doesn't work?

I would simply to say that in this context in the PDF you cannot see the image. The path is correct. This code does't work but for documentation in right. Can you help me?
var htmlContent = @"

    <title>Test</title>

";

var browserFetcher = new BrowserFetcher()
{
    BaseUrl = BaseDirectory,
    Browser = SupportedBrowser.Chrome,
};

var installedBrowser = await browserFetcher.DownloadAsync(BrowserTag.Stable);

var options = new LaunchOptions
{
    ExecutablePath = installedBrowser.GetExecutablePath(),
    Headless = true,
    Args = new[]
    {
        "--no-sandbox",
        "--disable-setuid-sandbox",
        "--disable-gpu",
        "--disable-web-security"
    }
};

var browser = await Puppeteer.LaunchAsync(options);

var page = await browser.NewPageAsync();

await page.SetContentAsync(htmlContent);

await page.WaitForSelectorAsync("img");

await page.PdfAsync(outputFilePath, new PdfOptions
{
    Format = PaperFormat.A4,
    PrintBackground = true
});

await browser.CloseAsync();


"Connect" Update Suggestion

How difficult would it be to code a  Optionbutton item with the Connect Button (as per attached image) to switch the python script to change the connection between 2 objects from electrical wire, to Teleport Wire, to Pipe?
The script would adjust the ObjectID to U_POWERLINE, or U_PORTALLINE to U_PIPELINE

Pretty sure right now it makes the last type of LINE that was constructed. So deselect everything, build a PORTALLINE (at the origin), delete it, select two teleporters, CONNECT. Then be sure you make a POWERLINE or you will accidentally wire everything with portals
Related:

Only connect portallines to the portal ports (not based on proximity. Also this is hard to fix if there's already power because it merges the lightning bolt handles so the snap "next" doesn't help)
Draw portallines in a different color!

@laanp added this suggestion here:
https://github.com/djmonkeyuk/nms-base-builder/releases/tag/v2.1.2


Nuget from private ProGet feed: found dependencies to update but Package.csproj restore fails

Is there an existing issue for this?

[X] I have searched the existing issues

Package ecosystem
nuget
Package manager version
No response
Language version
No response
Manifest location and content before the Dependabot update
No response
dependabot.yml content
No response
Updated dependency
No response
What you expected to see, versus what you actually saw
Expected: credentials are properly passed to the MSBuild step and used during restore.
The updater properly authenticates with ProGet and finds updates, but later the restore step with MSBuild fails to authenticate and retrieve packages.
The error looks like this:
/tmp/package-dependency-resolution_U7SCGL/Project.csproj : error NU1301: Unable to load the service index for source https://redacted-proget-host.example.org/nuget/FeedName/v3/index.json.

This seems somewhat related to #8887. At least parts of #9004 might solve the issue, in that ProGet expects a user name and password.
Native package manager behavior
No response
Images of the diff or a link to the PR, issue, or logs
No response
Smallest manifest that reproduces the issue
No response

Dependabot is executed in the context of Azure DevOps through the TingleSoftware docker image: https://github.com/tinglesoftware/dependabot-azure-devops

Solution proposed in #8887 DOES NOT apply to ProGet, the feed manifest includes the needed endpoints.
(Also to note: ProGet does support nuspec download, but I don't think there's an easy way of figuring out the feed is a ProGet feed short of trying downloading the nuspec...)

@jjolidon Do you have an example of a public repo and a full log where this failure occurs?  I'd like to see how the authentication is passed around and how it should get passed to MSBuild.

Unfortunately not.  Here is the relevant section of script:
`
foreach ($feed in $credentials) {
$feed["token"] = "${env:PROGET_USER_NAME}:${env:PROGET_USER_PASSWORD}"
}
      $env:DEPENDABOT_EXTRA_CREDENTIALS = ConvertTo-Json $credentials -Compress

`

This ends up being a structure of the form:
[
  {
    "type": "nuget_feed",
    "url": "https://proget.example.org/nuget/FeedName/v3/index.json"
    "token": "ProGetUserName:ProGetPassword"
  }
]

While I can't give you the whole script and sources, I'm willing to do my best providing the information you're missing, so do not hesitate to ask!

Hi @jjolidon, I see you are using the Dependabot Azure DevOps Extension here.
It might be possible to get this to work by using your personal api key as the raw token value. e.g.
[
  {
    "type": "nuget_feed",
    "url": "https://proget.example.org/nuget/FeedName/v3/index.json"
    "token": "ProGetPAT"
  }
]

If that doesn't work or you need to use username+password for auth, this issue could likely be due to to how username+password auth isn't handled correctly when doing updates using MSBuild. A proposed fix has been submitted to https://github.com/tinglesoftware/dependabot-azure-devops/pull/1248 which adds better support for feeds requiring username+password auth.
For context, when Dependabot uses MSBuild to perform NuGet updates, it relies on credentials stored in an auto-generated nuget.config. Dependabot only supports "token" auth when using this config file. If your registry is configured with username+password, it wouldn't work as username is always set to "user" and password is always set to the registry token property. See: https://github.com/dependabot/dependabot-core/blob/8441dbad1bb13149f897cdbe92c11d36f98c8248/nuget/lib/dependabot/nuget/nuget_config_credential_helpers.rb#L38-L41
After https://github.com/tinglesoftware/dependabot-azure-devops/pull/1248, it should be possible to use username and password auth for projects that update via MSBuild. e.g.
version: 2
registries:
  proget:
    type: nuget-feed
    url: https://proget.example.org/nuget/FeedName/v3/index.json
    username: ${{ProGetUserName}}
    password: ${{ProGetPassword}}
    token: ${{ProGetUserName}}:${{ProGetPassword}}

Or using a personal api key. e.g.
version: 2
registries:
  proget:
    type: nuget-feed
    url: https://proget.example.org/nuget/FeedName/v3/index.json
    username: api
    password: ${{ProGetPAT}}
    token: api:${{ProGetPAT}}

@brettfo this can probably be closed as it appears to be an issue with tinglesoftware/dependabot-azure-devops, not dependabot-core.
The version of the DevOps task used by OP has known auth issues which are caused because the credentials proxy was not used when running the updater; this has been resolved in the latest task version.
@jjolidon using the latest DevOps task version should fix your issue.


APP-1385 Existing Webhooks no longer functional after POD outage

Include original HTTP response body for API calls
Support 'removed_streams' field on the instance additional properties

Codecov Report

Merging #123 into dev will increase coverage by 0.3%.
The diff coverage is 92.85%.

@@            Coverage Diff            @@
##              dev     #123     +/-   ##
=========================================
+ Coverage   87.89%   88.19%   +0.3%
=========================================
  Files         133      133
  Lines        2370     2381     +11
  Branches      275      276      +1
=========================================
+ Hits         2083     2100     +17
+ Misses        172      166      -6
  Partials      115      115

Impacted Files
Coverage Δ

...ss/integration/api/client/SimpleHttpApiClient.java
81.81% <100%> (-0.24%)
:arrow_down:

...s/integration/utils/WebHookConfigurationUtils.java
92.85% <100%> (+21.42%)
:arrow_up:

...yoss/integration/exception/RemoteApiException.java
95.83% <80%> (-4.17%)
:arrow_down:

Continue to review full report at Codecov.

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


Allow widget as icon item

Following in the awesome practice from flutter of allowing arbitrary widgets as icons, would be great to be able to use a widget as an icon.
For example and Image, a custom icon or anything really.

Done! Check it out.


Updates Indy Crate to 1.6.7

@e-nem-y
If this overlaps with any work/PR that you're doing, feel free to just close this PR, but the sooner this item is updated in the Cargo.toml the sooner we can move forward with more Libvcx development.

@hadleym I do not think that merging this will create any problems.


User unable to create a group

A user has reported he's unable to create a Humanities Commons group. When he views the group page, there isn't a "Create a Group" button, even when he logs in. Screenshot is attached.

The user's account had not been provisioned from comanage to the new membership LDAP:

This resulted in them not getting HC membership even when they re-logged in.
Fixes:

I provisioned this user, so they should have the correct membership data passed on login.
I added fallback organizational membership checking based on the legacy 'people' memberships. This should prevent other users from having the same issue. (https://github.com/MESH-Research/humanities-commons/commit/70f61e1fac2c23989090ab8ca69887350713c89e).

Will do a bulk re-provision this evening to try and catch any other users in a similar state.
@babaklar : If this user logs-out and logs back in, their issue should be corrected.

Emailed user and he said he's able to create the group now.


Can we compute the accuracy in the training?

Hello, @igormq , I have a question, can we compute the accuracy in  training step for the each batch data.
I use your project's fork  https://github.com/synckey/tensorflow_lstm_ctc_ocr , in this project , It want to process ocr problem. But I was confused with the accuracy compute, beacuse you can't compute the accuracy in every batch, in some batch, the output target's length will smaller than the label's length.
https://github.com/synckey/tensorflow_lstm_ctc_ocr/blob/master/lstm_and_ctc_ocr_train.py#L39

Hi @LinJM, yes you can calculate the accuracy for each batch data, but not using the default accuracy metric. For this kind of problem we use the edit distance, that is being calculating. :)

Closed #3

@igormq I almost always get 100% accuracy for each batch data


Davis dataset contain "Drug" and “Drug Id” are not related.

Describe your question.
After downloading the Davis dataset, I found "Drug" and “Drug Id” are not related.
eg:
Drug ID: 9809715

However:

I look forward to hearing from you soon.

Hi, sorry for the late reply. We have conducted a canonicalization step for all DTI datasets. These two SMILES strings correspond to the same molecule if you plot them.


enable "Fake locale" to fix default locale

Is your feature request related to a problem? Please describe.
in Next 12, the default locale can be skipped.
/* next-i18next.config.js */
module.exports = {
  i18n: {
    defaultLocale: 'en',
    locales: ['en', 'ko'],
  }
}

And if my browser's first language is English, I can move to / and /en both.
But I want to make / disabled, and I only want to use like /[locale].
I've found a tricky way but I got a problem.

error - Error: ENOENT: no such file or directory, scandir '/Users/user1/workspace/my-next-project/public/locales/catchAll'

I could solve this by making a string for catchAll but I think it doesn't look good because catchAll is a fake locale.
Describe the solution you'd like
I want to be able to set a fake locale.
/* next-i18next.config.js */
module.exports = {
  i18n: {
    defaultLocale: 'catchAll',
    locales: ['catchAll', 'en', 'ko'],
    fakeLocale: 'catchAll', // I can not of think the proper name for this.
  }
}

or
/* next-i18next.config.js */
module.exports = {
  i18n: {
    defaultLocale: 'catchAll',
    locales: ['catchAll', 'en', 'ko'],
    shareLng: {
      'catchAll': 'en', // It looks like `fallbackLng` that is deprecated.
     }
  }
}

Describe alternatives you've considered
:(
Additional context
I am sorry about my poor English.

This sounds like a routing request that should be directed to the NextJs repository directly. Creating fake locales is obviously a workaround, and not something we'd look to support first-class.

@kyun were you able to get this to work ?


I want a view of resource usage and availability at the Env level in the UI

I would like to be able to see the resource usage and availability  environment level in the UI. I know the data points will be a bit different. Like you may just show available memory, CPU, and a total count of containers running, and things like this. Mesos provides something like this, but I know you guys will do something much nicer. :-)

There is actually an API call for aggregated stats on all the hosts of an environment already, we just haven't figured out where to fit displaying it into the UI.

Lol. Api for that already exists, please you can place it in a dashboard
like in openstack or you can stick it the rancher admin page.
We have actually been expecting something like this.
On Oct 20, 2015 5:00 PM, "Vincent Fiduccia"<EMAIL_ADDRESS>wrote:

There is actually an API call for aggregated stats on all the hosts of an
environment already, we just haven't figured out where to fit displaying it
into the UI.
—
Reply to this email directly or view it on GitHub
https://github.com/rancher/rancher/issues/2384#issuecomment-149701501.

@vincent99, What is this API for aggregated stats? And what access and secret key would I pass to it?

Containers, hosts, stacks (environments in the API) and environments (projects in API) all have a containerStats and/or hostStats link in them.. you GET that link and get back a ws:// URL and a token, which you can either send as a header Authorization: Bearer long_token_string or add to the URL as a query param ?token=long_token_string.
You'll get an initial flood of frames with data for the past minute, then a continual stream of them for each resource once a second.  The data is more or less straight out of cAdvisor and many of them are just always-increasing counters so there is some massaging and comparing to the previous data point(s) needed to get useful things like CPU used% out.

We have a request for a dashboard. @eebjr @lavvy Would you like to add your feedback on that page and then close this duplicate issue?
https://github.com/rancher/rancher/issues/2718

it's a duplicate of  [UI] Proposal of a Dashboard as default home page #2718

related to #3362


New exercise: Leap

I'd like to generate this exercise, which is a very simple exercise about boolean logic.
Doing a simple search/replace into the HelloWorld test, I get the following:
proc test_something(test : borrowed Test) throws {
  test.assertEqual(is_leap_year(2015), false);
}

Do you use assertEqual to test true and false, or is there a different test method?
What would the idiomatic name be for the function under test? (here: is_leap_year)
Are there any other changes you'd want to make?

Great, I also started yesterday writing the leap year and I had indeed a few questions.
Answering your questions first

Chapel style guidelines recommends to use camelCase for functions, so it should probably be isLeapYear (btw, chapel has such a function already in the Time module, that is not loaded by default, so it should not cause problems).

I think one reason why my brain didn't think to point this out in the two-fer exercise is that imho  test_another_name_given is more readable than testAnotherNameGiven.
I would say for functions under test, e.g. isLeapYear we could follow the guidelines and use camelCase, for the test-case functions, I would almost be tempted to recommend snake_case, it just feals more readable if the name is long, thoughts on that?

Chapel has test.assertTrue and test.assertFalse. They could be nice to use, but if makes the automatic generation significantly harder, test.assertEqual would be fine too.

Regarding my questions:

Is it so that the concepts, prerequisites of each exercise are not fixed in the specs, but the author has freedom of what to add? I browsed some other repositories and I see some variance.

Are there some "official test cases" associated with each exercise in the specifications and metadata or does each author come up with their own test-cases?

We should definitely follow Chapel style guidelines. For the tests I do feel like snake_case is easier to read for long names, but I think it's better to give people good habits in this case and use whatever Chapel suggests is better.
assertTrue and assertFalse is great and not at all difficult to do in terms of templates.

Is it so that the concepts, prerequisites of each exercise are not fixed in the specs, but the author has freedom of what to add? I browsed some other repositories and I see some variance.

TL;DR: yes.
The more fleshed out answer is that there are two types of exercise on Exercism: concept exercises and practice exercises. When spinning up a new track, we make a bucket of practice exercises, and then when the track is launched and getting some traction, we advise creating concept exercises (they're harder to get right and require some careful thinking because they involve creating a structured syllabus).
For practice exercises we are really just providing a playground for people to start experimenting with the language. Often practice exercises have several possible approaches, which lets people play around and learn based on experimentation and reading other people's solutions as well.
With concept exercises the opposite is true: we typically have a specific thing we're trying to teach, and want people to take a specific approach to solving them.
So in other words with these exercises that we're creating it's up to the language and author and what makes sense or seems fun.

Are there some "official test cases" associated with each exercise in the specifications and metadata or does each author come up with their own test-cases?

Sort of! We have a whole repository full of specifications for practice exercises, but none of the test cases are officially mandated, they're more like a deli where you can go pick whatever makes sense in the language.
The bin/configlet sync --update --tests --exercise leap will show you the specification data for each test and ask you to make a decision about which tests to include and which to exclude.
I've just been including all of them for now, because most of the initial exercises are pretty straight forward, but we'll get to some exercises where we'll want to make a decision about whether to include certain test cases.

not sure if I'm doing something wrong, but running
bin/configlet sync --update --tests --exercise leap

indeed did ask me what test cases to include, e.g.
{
  "uuid": "c30331f6-f9f6-4881-ad38-8ca8c12520c1",
  "description": "year divisible by 200, not divisible by 400 in common year",
  "property": "leapYear",
  "input": {
    "year": 1800
  },
  "expected": false
}

but the generated meta/tests.toml file only has
[c30331f6-f9f6-4881-ad38-8ca8c12520c1]
description = "year divisible by 200, not divisible by 400 in common year"

are the (input, output) pairs stored somewhere else?

No, you're not doing anything wrong. If you say "y" does it continue and ask you about the next test and the next test?
(I opened a PR here with what I got on my end: https://github.com/exercism/chapel/pull/17)

No, you're not doing anything wrong. If you say "y" does it continue and ask you about the next test and the next test?
yes, exactly and I pressed y to all but the toml file only had the description

with a quick look, the generated chapel code looks good, but where does your generator read what the input and expected output should be?

Oh! I see what you mean. Yes. It gets the data from https://github.com/exercism/problem-specifications/blob/main/exercises/leap/canonical-data.json

I see cool, but those json data are not written by default into the tests.toml (or even downloaded)? Is it possible to tell configlet to download those? I guess this would be useful for the generator?

Configlet stashes a copy of the problem-specifications repository in the user's library caches, and you can pass --offline to configlet to have it not do network request.
The tests.toml is where it would say include = false if you decided that you wanted to skip a test for some reason (e.g. if the test uses really big numbers and it would make the exercise too hard to rely on some "BigNumeric" implementation, you might want to skip that test).
So for the sake of generating I use the tests.toml to decide which tests to include, and then the canonical-data.json from the problem-specifications to get the actual data.


How can I add custom attribute in mxCell tag of mxgraph?

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

We don't support mxgraph here.


Willing to Make Small Change for Compensation?

Would you be willing to adapt this to show the price crossed out and "Login for VIP Pricing" - I'd pay for your service. If so, please let me know how much and a possible turnaround time. Thank you :)

Hi Brandon, please contact me at<EMAIL_ADDRESS>Thanks


ocamlPackages.mirage-crypto*: 0.7.0 → 0.8.0

Motivation for this change
https://github.com/mirage/mirage-crypto/releases/tag/v0.8.0
Splits out MirageOS related RNG into new package mirage-crypto-rng-mirage.
Things done

[x] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[x] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[x] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[x] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

@GrahamcOfBorg build jackline

@GrahamcOfBorg build ocamlPackages.mirage-crypto-rng-mirage jackline


totally redo how log files are handled

This PR started out as a PR to make loginfo more reliable but ended up being much more:

Add log_dir configuration option to the YAML schema (tells sc where to send its logs)
Reasonably resolve default log location when submitting to batch as a different user, so that other user has permission to write to log files
Add runattrs operation
beef up perfinfo output

SCLogFile.java
Line 89:  catch (final InterruptedException e) etc.
Line 102: catch (final IOException e) etc.
You don't want to leave traps that catch exceptions you didn't think about the first cut of the file.

public abstract class ServiceDefinition
.......
public String getConfiguredLogDirectory() {
       return null;
   }

If it's an abstract class, do you really need a definition body that returns null?

class ProcessLauncher
I think some of the stream handling is convoluted and that there are more approbated patterns for this, but maybe I should produce some example code or shut up.

QueryUtils.java:
    private static List<String> deduplicate(final List<String> _in) {
        final HashSet<String> s = new HashSet<String>();
        s.addAll(_in);
        return Arrays.asList(s.toArray(new String[0]));
    }

could be
 private static List<String> deduplicate (final List<String> _in) {
      return    new List<>(new LinkedHashSet<>(_in));
}

or something like that.

QueryUtils.java
NetBeans points out:
line 297:   synchronized (s_cacheLock) ... synchronization on non-final
line 303: final Set<Integer> openPorts = new LinkedHashSet<Integer>(); you can use diamonds here instead of types

@jwoehr , thanks for all the comments!
I checked in some changes to address some concerns, but failed to address two of them:
First:
https://github.com/ThePrez/ServiceCommander-IBMi/pull/161#issuecomment-1093702550
I couldn't find these lines in ScLogFile, and I didn't understand a good alternative implementation for some of the "wonky" exception handling as it were
Second:
https://github.com/ThePrez/ServiceCommander-IBMi/pull/161#issuecomment-1093710066
Great catch on the synchronization on non-final!
I'm keeping the code the same, but will openly admit it's only crotchety programming. I heavily dislike the usage of diamonds (<>) as it makes the code less comprehensible (yes, that's an incredibly subjective and unpopular opinion!). I prefer when the typing is explicit rather than implicit.
I'm going to merge this PR in and start working on another feature, but feel free to continue code review discussion here if desired. Thanks!

@ThePrez this is what I was suggesting about ScLogFile:
--- a/src/main/java/jesseg/ibmi/opensource/ScLogFile.java
+++ b/src/main/java/jesseg/ibmi/opensource/ScLogFile.java
@@ -91,7 +91,7 @@ public class ScLogFile {
                     }
                     Thread.sleep(100);
                 }
-            } catch (final Exception e) {
+            } catch (final InterruptedException e) {
                 _logger.printExceptionStack_verbose(e);
             }
         });
@@ -104,7 +104,7 @@ public class ScLogFile {
             final Process p = Runtime.getRuntime().exec(new String[] { "/QOpenSys/usr/bin/tail", "-f", m_file.getAbsolutePath() });
             ProcessLauncher.pipeStreamsToCurrentProcess(m_file.getName(), p, _logger);
             Runtime.getRuntime().addShutdownHook(new Thread(() -> p.destroy()));
-        } catch (final Exception e) {
+        } catch (final IOException e) {
             _logger.printExceptionStack_verbose(e);
         }
     }

One doesn't want to catch Exception as it's a bug lying in wait.

@jwoehr thank you! That was definitely not intentional

Thanks for not scolding me for being too lazy to submit an actual PR


Example Command?

It took me a few hours to get OpenCV installed. I think it is good now. I was finally able to compile. I did get some errors but I think they were really warnings. It seems to have compiled fine. (The warnings had something to do with how variables were being passed after 7.2, I didn't copy one in time and it not in my terminal anymore.)
What I am wondering is if you can provide an example call to the program?
I was thinking it would be something like: MeteorDemod input.qpsk output.bmp
I get command not found. I am not sure if I did not install everything correctly or don't know the proper command.

Hi, I will update the readme including an example command.
MeteorDemod should be lowercase, an example command:
meteordemod -i input.s -t weather.tle -o path_to_output_folder/
If you need further help, ask in apt group on facebook I will help you with pleasure.

Hi, I will update the readme including an example command.
MeteorDemod should be lowercase, an example command:
meteordemod -i input.s -t weather.tle -o path_to_output_folder/
If you need further help, ask in apt group on facebook I will help you with pleasure.