How to parse Server's "frame meta"?

Hi, I'm trying to write a go implementation of the Scrcpy client. When I insert the obtained h264 stream data into the libavcodec's decoder, I sometimes get this error
[h264 @ 0x2e56a40] No start code is found.
[h264 @ 0x2e56a40] Error splitting the input into NAL units.
4 Invalid data found when processing input

I think this is because I am not splitting the NALU data correctly and wrapping it into the AVPacket.
To simplify the code, as you did in #646, I want to parse the frame meta data to read the complete NALU packet one by one.
I didn't understand the Server java code and I'm using version 1.25.
Can you give me some clues?

Thank you very much! I think this is enough to solve my needs:
 // The video stream contains raw packets, without time information. When we
 // record, we retrieve the timestamps separately, from a "meta" header
 // added by the server before each raw packet.

 //        PTS        packet        raw packet
 //                    size
 //
 // It is followed by <packet_size> bytes containing the packet/frame.
 //
 // The most significant bits of the PTS are used for packet flags:
 //
 //  byte 7   byte 6   byte 5   byte 4   byte 3   byte 2   byte 1   byte 0
 // CK...... ........ ........ ........ ........ ........ ........ ........
 // ^^<------------------------------------------------------------------->
 // ||                                PTS
 // | `- key frame
 //  `-- config packet

I will close this issue.


implemented integer formulas of Bosch BME680 datasheet V1.3; reduce t…

…emperature dependency of pressure measurement
Bosch BME680 Datasheet V1.3 is available at https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bme680-ds001.pdf

Please review and merge into master


fix: create and reuse self signed jwt creds for better performance

fix: create and reuse self signed jwt creds for better performance
only create jwt cred when needed

You may want to comment (or in description) the original pull request that was merged to main branch.


chore(merge-back): 1.103.0

See CHANGELOG

AWS CodeBuild CI Report

CodeBuild project: codebuildgithubautobuildPro-fkVQbXRiQi6A
Commit ID: 4486ad32bb1ad4008604b4712dc62b0f9b5bdcec
Result: SUCCEEDED
Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository


CUES is not prompted if the user clicks browser back button.

OS : Windows 7
Chrome Version : 44.0.2368.0 (Official Build) (32-bit)
Steps to reproduce

Install the extension https://chrome.google.com/webstore/a/google.com/detail/chrome-user-experience-su/hgimloonaobbeeagepickockgdcghfnn
Acknowledge for CUES survey.
Notice- Chrome User Experience Surveys: Setup page is loaded.
Click on browser back button , before filling the form.
Observe

Expected
Once the user navigates back , expects an option to participate in survey again.
Observed
Survey form won't be triggered unless user uninstall & re install the extension.

This issue is filed by Chrome Test Engineering Team.


The timer is broken again...

The timer is reading 35 hours...
Date: 7/16/2024 08:48:41

Seems like caching is part of the issue, will have to disable caching
https://stackoverflow.com/questions/51524633/reactjs-how-to-prevent-browser-from-caching-static-files#51524764

It also looks like it's showing different times on different desktop vs mobile. I guess I'm refactoring the timer component

timer is fixed, it shows one more hour on mobile than on desktop, but thats a JS bug where mobile devices account for DST, and desktop doesn't for some reason but its not that big of a deal


Add drag and drop

Add Drag and Drop functionality. All items should be reordered with respect to their sizes.

Hello @AramSemerjyan,
I found your project really interesting. Do you have a solution for the drag and drop feature?

Hey there @GuilhermeDeconto
I'm a little bit late on this... sorry 😅
I was on lockdown when created this repo... after lockdown I do not have time to properly manage it and finalize even first version :( sorry


Request for Postgresql support.

Hello,
We would like to use docker-freescout, but we are restricted to using postgresql for our database backend. So we would really appreciate an update to this image.
I have read  Issue #33 .
Here is the psql one-liner, that was requested:
psql --dbname=postgresql://$DB_USER:$DB_PASS@$DB_HOST:$DB_PORT/$DB_NAME -c "SELECT * FROM users;" > /dev/null 2>&1
If you need assistance in testing this, let me know.

This has been added as of 1.16.0 - An issue was found and we are now at 1.16.2

@tiredofit Thank you very much, for the update!


auto_detect maxes out at 24 columns with json?

i have noticed that if i feed a (newline) json file to duckdb's read_json() data import, where each json object has 25 or more unique keys, duckdb just schematizes it as a single json column. it doesn't matter if you have auto_detect on, it won't infer the schema on a JSON object >25 keys (even if the keyspace is consistent across all lines in the JSON file).
this seems like a strange/undocumented limitation (or i am missing something obvious).
here's some code which reproduces the behavior consistently... we generated two datasets, one has json with 24 columns, the other has 25... the one with 24 has the schema neatly inferred, the one with 25 is always single variant json column, like this:

import { Database } from 'duckdb-async';
import fs from 'fs/promises';
import path from 'path';
const TEMP_DIR = path.resolve('./');
const db = await Database.create(path.join(TEMP_DIR, 'duckdb.db'));
const connection = await db.connect();

// create sample data, one with 24 columns and the other with 25 columns
// {col1, col2, ... col24}
// {col1, col2, ... col25}

const dataWithTwentyFourCols = [];
const dataWithTwentyFiveCols = [];

Array.from({ length: 1000 }, (_, outer) => {
	const twnFour = {};
	const twnFive = {};

	Array.from({ length: 24 }, (_, inner) => {
		twnFour[`col_${inner}`] = makeName();
	});

	Array.from({ length: 25 }, (_, inner) => {
		twnFive[`col_${inner}`] = makeName();
	});
	dataWithTwentyFourCols.push(twnFour);
	dataWithTwentyFiveCols.push(twnFive);
});

await fs.writeFile(path.join(TEMP_DIR, 'twenty_four_cols.json'), toNdjson(dataWithTwentyFourCols));
await fs.writeFile(path.join(TEMP_DIR, 'twenty_five_cols.json'), toNdjson(dataWithTwentyFiveCols));

// load both data sets into tables
await connection.all(`
 CREATE OR REPLACE TABLE twenty_four_cols AS
	 SELECT * FROM read_json('${path.join(TEMP_DIR, 'twenty_four_cols.json')}',
	 auto_detect=true
	 )
	`);

await connection.all(`
	 CREATE OR REPLACE TABLE twenty_five_cols AS
	 SELECT * FROM read_json('${path.join(TEMP_DIR, 'twenty_five_cols.json')}',
	 auto_detect=true
	 )`);

// notice one table has 24 columns and the other has only 1 columns

const schemaTwentyFourCols = await connection.all(`DESCRIBE twenty_four_cols`);
// ^ this auto detects the schema, inferring the headers + types for each column
const schemaTwentyFiveCols = await connection.all(`DESCRIBE twenty_five_cols`);
// ^ this produces a single json column MAP(VARCHAR, VARCHAR) for the 25th column

console.log("\n# of autodected COLUMNS (24 keys)", schemaTwentyFourCols.length);
console.log("# of autodected COLUMNS (25 keys)", schemaTwentyFiveCols.length);
console.log("\n\nSCHEMA (25)", JSON.stringify(schemaTwentyFiveCols, null, 2));
console.log("\n\nwhy can't we force  schema inference on >25 cols? (seems arbitrary)\n\n");

/**
 * helpers
 */

function toNdjson(data) {
	return data.map((row) => JSON.stringify(row)).join('\n');
}

function makeName(words = 3, separator = "-") {
	const adjs = [
		"dark", "grim", "swift", "brave", "bold", "fiery", "arcane",
		"rugged", "calm", "wild", "brisk", "dusty", "mighty", "sly",
		"old", "ghostly", "frosty", "gilded", "murky", "grand", "sly",
		"quick", "cruel", "meek", "glum", "drunk", "slick", "bitter",
		"nimble", "sweet", "tart", "tough"
	];

	const nouns = [
		"mage", "inn", "imp", "bard", "witch", "drake", "knight", "brew",
		"keep", "blade", "beast", "spell", "tome", "crown", "ale", "bard",
		"joke", "maid", "elf", "orc", "throne", "quest", "scroll", "fey",
		"pixie", "troll", "giant", "vamp", "ogre", "cloak", "gem", "axe",
		"armor", "fort", "bow", "lance", "moat", "den"
	];

	const verbs = [
		"cast", "charm", "brawl", "brew", "haunt", "sail", "storm", "quest",
		"joust", "feast", "march", "scheme", "raid", "guard", "duel",
		"trick", "flee", "prowl", "forge", "explore", "vanish", "summon",
		"banish", "bewitch", "sneak", "chase", "ride", "fly", "dream", "dance"
	];

	const adverbs = [
		"boldly", "bravely", "slyly", "wisely", "fiercely", "stealthily", "proudly", "eagerly",
		"quietly", "loudly", "heroically", "craftily", "defiantly", "infamously", "cleverly", "dastardly"
	];

	const continuations = [
		"and", "of", "in", "on", "under", "over", "beyond", "within", "while", "during", "after", "before",
		"beneath", "beside", "betwixt", "betwain", "because", "despite", "although", "however", "nevertheless"
	];

	let string;
	const cycle = [adjs, nouns, verbs, adverbs, continuations];
	for (let i = 0; i < words; i++) {
		const index = i % cycle.length;
		const word = cycle[index][Math.floor(Math.random() * cycle[index].length)];
		if (!string) {
			string = word;
		} else {
			string += separator + word;
		}
	}

	return string;
};

is there some way to change how this works, or force duckdb to do schema inference? is i'd even be happy if i could get a view with the schema inferred (my data has hundreds of columns and i don't know which ones i need at the time i load the data...)

@Mytherin thank you !!!!!  exactly what i was looking for...

Let's keep the issue open so we can remember to document it :)

@Mytherin here's a PR which updates the docs:
https://github.com/duckdb/duckdb-web/pull/4065
mostly pulled language from the Ziya's PR.


Made ban.js

should be all good

Moderation is not required, this is a Discord bot template, not a whole bot.

Moderation is not required, this is a Discord bot template, not a whole bot.

k


cmd/go: Support C/C++ compiler flags when using SWIG through the build tool

In tip, there's support for using SWIG through the build tool. This works actually
really well now, but one problem is that if one wishes to pass compiler options to the
C/C++ compiler, none of the flags supported by the build tool seem to support that.

An example workaround is to run:

    "CC=gcc <flag1> <flag2> <flag3>" go build

but it's rather awkward. Something similar how Cgo handles compiler flags, perhaps.

@slimsag
Stephen, do you still have plans to get this in before the Go 1.5 feature freeze?

@michael-schaller apologies for my latency on this issue.
I've just checked and we do not need to do anything to support this use case anymore.
Since SWIG code is now built using CGO instead of the old plan-9 C compilers, you can simply use a build.go file containing import "C" and #cgo key: value directives as part of your package containing the .swig file. I've put together a simple example to demonstrate this (see below).
At this point, unless there is opposition to using the #cgo directives in combination with SWIG code for some reason, we can close this issue.
$ tree
.
├── main.go
├── mylib
│   ├── build.sh
│   ├── mylib.c
└── mypkg
    ├── code.c
    ├── mypkg.go
    └── mypkg.swig

2 directories, 6 files

The main.go program is very simple (and external from the SWIG wrapper package):
$ cat main.go
package main

import "cflags/mypkg"

func main() {
  mypkg.DoStuff()
}

mylib is a simple C dynamic library I built:
$ cat mylib/build.sh
gcc -c -Wall -Werror -fPIC mylib.c
gcc -shared -o libmylib.so mylib.o

$ cat mylib/mylib.c
int mylib_add(int a, int b) {
	return a + b;
}

Then I declared a simple C function in the SWIG package to retrieve a preprocessor-defined value (see -DGENERIC_VALUE=32 below):
$ cat mypkg/code.c
int generic_value = GENERIC_VALUE;

int get_generic_value(void) {
	return generic_value;
}

The SWIG package has the grunt of the code and our #cgo build directives:
$ cat mypkg/mypkg.go
package mypkg

// #cgo CFLAGS: -DGENERIC_VALUE=32
// #cgo LDFLAGS: -L${SRCDIR}/../mylib/ -lmylib
import "C"

import "log"

func DoStuff() {
	// Test that the GENERIC_VALUE defined in the C compiler flags is correct.
	v := Get_generic_value()
	if v != 32 {
		log.Fatal("got unexpected value")
	}
	log.Println("got the right value", v)
	log.Println("mylib_add(2, 2):", Mylib_add(2, 2))
}

$ cat mypkg/mypkg.swig
/* A trivial example of using CGO compiler flags with SWIG.  */

int get_generic_value(void);

int mylib_add(int a, int b);

Build and run it:
cd mylib/
./build.sh # builds libmylib.so
cd ..
go build # builds the main program binary named 'cflags'

# run the program with libmylib.so on LD_LIBRARY_PATH:
LD_LIBRARY_PATH=mylib/ ./cflags

which produces:
2015/04/02 12:22:27 got the right value 32
2015/04/02 12:22:27 mylib_add(2, 2): 4

Thanks for the worked example.

@slimsag
Stephen, thank you for testing this. I gave my code also a test run and I confirm that it works fine with current Go 1.5 and SWIG 3.0.6 snapshots. In the past I still needed a dummy .cpp file for cgo to properly link against a C++ library wrapped with SWIG. With the current code this workaround is no longer necessary. Awesome! :-D


Translate qiskit-terra versions to qiskit versions

With qiskit-terra sycronizing to qiskit, probably it makes sense to start publishing the qiskit version instead of terra. This might include historical runs.
An equivalence table can be found here: https://qiskit.org/documentation/release_notes.html

I'm taking it


Repository snippets frontend inconsistencies

What happened?
I have noticed a few inconsistencies in repository snippets. Mainly:

Gradle Kotlin & Gradle Groovy repository snippets do not have the repository name included. As such, trying to copy the following Gradle Kotlin repository to the clipboard:

maven {
    name = "jaqobbRepositoryReleases"
    url = uri("https://repository.jaqobb.dev/releases")
}

results in the following being copied:
maven {
    url = uri("https://repository.jaqobb.dev/releases")
}

Maven and SBT repository snippets have different amount of spaces / tab length (2) compared to Gradle Kotlin & Gradle Kotlin (4). While I do not use Scala and cannot speak on that, I understand there are people using 2 spaces in XML files. As such, I believe the amount of spaces should be updated to be the same (2/4) across all repository snippets or a simple configuration should be added allowing this to be adjusted by the end-user.

I am not really proficient in frontend technologies and cannot make a PR for that. However, I am pretty sure these do not require any huge changes.
Reposilite version
3.x
Relevant log output
No response

I have fixed the first issue with the inconsistencies between the displayed text and the copied text. It would be easy to change the indent of the snippets if that is wanted. If the indent should be configurable it would be more complex but I can take a look at it if this is desired.


Sanitize WPTO Hindcast parameters

Fix for #142 and #143

Replaces - with _ in when creating a fieldname in request_wpto
Adds a test to verify the above fix works properly.

@hivanov-nrel, can you take a look at this when you have time?


[Task]: explore cypress and unit test for coverage

To test callback execution of window message listener
Problems:

cypress test overwrites window.parent (check if experimentalModifyObstructiveThirdPartyCode helps)
unit test stringifies the callback (check if latest approach in handling callback helps)

experimentalModifyObstructiveThirdPartyCode didn't help with cypress.
Will try unit testing, with the latest approach to callbacks.

https://github.com/appsmithorg/appsmith-ee/pull/1178/files#diff-6db9fe05fc7e7435cfab50aa1f0cf164bc1ab8264bb106ca6889b3d0db68148c
Unit testing with latest approach to the callback handling helped.
Will be doing a clean up and merge the change in parent task.
#21379


Suggestion: Delete orphaned dependencies when uninstalling

I'd submit a PR for this, but my Ruby knowledge is crap.
 Some formulae have tonnes of dependencies, which might only ever be installed just to support that one program. Examples that come to mind are ffmpeg, inkscape, and practically any hefty program associated with GNOME toolkit.
Of course, after a while, it becomes impossible to remember why something was installed in the first place (particularly if you have hundreds of brews...). The idea for a brew rm -rf feature came from a note I left myself reminding me to uninstall unneeded formulae if I removed Inkscape.

Check out brew rmtree.

I considered writing a shell-script to do this myself, but thought the better of it upon realising what's going to help more people in the long-term. :p

I'd submit a PR for this, but my Ruby knowledge is crap.

Just FYI:

stuff like this should be in https://github.com/Homebrew/brew-evolution
the first Ruby I ever wrote was for Homebrew. I'm now writing Ruby full-time at GitHub

The best current solution to this is probably using https://github.com/Homebrew/homebrew-bundle to install/remove just the stuff you want. We'll need an implementation of https://github.com/Homebrew/brew-evolution/blob/master/003-install-bottles-of-arbitrary-versions.md#detailed-design first where installations record their dependencies.

Ah right, sorry. My bad. :(
Thanks!

No need to apologise! Mostly just closing this out because it's blocked on a few other things.


Verify orientation output from torii poser (probably broken?)

Well, I can confirm with confidence that this actually is broken right now.  Digging in...


Add KotlinConf 2018 Keynote

Added KotlinConf 2018 Keynote

👍 this need a link under the "other" in the navbar


[FIX] remove --no-progress-meter everywhere in script

Closes #252

Checklist

[x] PR has an interpretable title with a prefix ([ENH], [FIX], [REF], [TST], [CI], [MNT], [INF], [MODEL], [DOC]) (see https://neurobagel.org/contributing/pull_requests for more info)
[x] PR links to GitHub issue with mention Closes #XXXX
[x] Tests pass
[ ] Checks pass

For new features:

[ ] Tests have been added

For bug fixes:

[ ] There is at least one test that would fail under the original bug conditions.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 99.771%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
873

Relevant Lines:
875

💛  - Coveralls

Thanks @surchs! I've looked into the pre-commit failure an opened an issue: #254
Have a look and let me know WYT re: keeping this PR open until we address the above, or just merging with the failed check for now.

I'd say merge with the failed check because we now have the issue to fix pre-commit soon


[zh] Update _index.md

[zh] Update _index.md

/label tide/merge-method-squash

Please make sure you have only one commit per PR.
/lgtm
/approve


Menu text legibility

Description
This PR improves text legibility in the dark mode of the menu section by setting text color to white and adding a subtle text shadow.
Issue
Closes #81
Related PRs
issues #21 #2
Screenshots or GIFs (if applicable)
Before

After

Checklist

[ ] Code is well-documented
[ ] Code follows the project's code style
[ ] Tests have been added or updated

Thanks for your contribution @ShaikhAman01  !! Don't Forget to give a follow to my GitHub for more upcoming open source projects and Leave a Star to the Repo For Us !!


remote data source cache auto complete suggestion list

I use an API as data-source that requests thousands of objects to choose from. It would give better performance if I could cache list after first request. is this possible ?

Yes possible and there is Observable source and there are various technique.
The discussion about how to cache http response is out of scope.


[Docs] Add a link to the Lambda transport

Motivation
Showcase the new Lambda transport.
Modifications
Link to the swift-server/swift-openapi-lambda transport repo.
Result
Easier to find that transport.
Test Plan
Previewed locally.

cc @sebsto


METAL Backend Support

#Question
Thanks for all your work on diffrax!
Has anyone gotten diffrax working with a METAL GPU backend? There may be a simple reason why this isn't possible that I'm not aware of.
from diffrax import diffeqsolve, Dopri5, ODETerm, SaveAt, PIDController

vector_field = lambda t, y, args: -y
term = ODETerm(vector_field)
solver = Dopri5()
saveat = SaveAt(ts=[0., 1., 2., 3.])
stepsize_controller = PIDController(rtol=1e-5, atol=1e-5)

diffeqsolve(term, solver, t0=0, t1=3, dt0=0.1, y0=1, saveat=saveat,
                  stepsize_controller=stepsize_controller)

Returns:
ValueError: `EmitPythonCallback` not supported on METAL backend.
Run `reticulate::py_last_error()` for details.
5.
stop(<environment>)
4.
pure_callback_lowering at callback.py#141
3.
_call at _jit.py#98
2.
__call__ at _jit.py#102
1.
diffrax$diffeqsolve(term, solver, t0 = 0, t1 = 1, dt0 = 0.1,
y0 = y0, stepsize_controller = stepsize_controller, throw = F)

One thing you could try is to upgrade Equinox to the latest (unreleased) HEAD, and then set the environment variable EQX_ON_ERROR=unsafe_ignore.
What's going on here is that Diffrax will try to raise a runtime error if the integration fails. This is done using Equinox's error_if functionality, which in turn raises the error using Python callbacks. Setting this environment variable skips all of this and deletes all of the error handling out of the computation graph entirely. (Of course, it also means that if your computation fails for any reason, then you will silently get the wrong results, or may silently get stuck in an infinite loop. There's a reason these runtime errors exist in the first place!)

Thank you for these thoughts and quick work!
The ValueError: EmitPythonCallback`` is now gone. I've played around with a few different things (the Metal backend seems to require float32). Still seeing if we can get it up and running. My sense is that there are deeper issues in the still-evolving Metal backend now at work. The code from the original comment now yields:
'mps.scatter_nd' op invalid batch dimensions: 0, must be less than ranks of all input tensors

A similar error also occurs simply with
   x = jnp.array(range(1, 11), dtype=jnp.float32)
   x.at[4].set(100.)

I'll keep a lookout and will post relevant updates.


webcast player fixes

also moved the VOD-only events to IVbrickVideoEmbed and added the load event to IVbrickBaseEmbed


Right-click menu

The new caption feature is working fine, thanks.
One thing that is markedly different from the LabVIEW table object is the absence of a right-click menu. It would probably be expected by users that they could have a minimum of interaction with the data grid.
Of course you can already select and copy (but that doesn't appear as a right-click menu), but it could be useful to justify the text, or insert/delete columns/rows, etc.
Is this an implementation (lack of) feature or is the ActiveX object lacking this kind of ability?

Another great idea to add to the future list.  I'm going to close it from the issue list though and add it to the future todo items.  It would be great if someone else wants to pick up building an appropriate context menu as its implemented as a separate .net entity passed in as a property to the gridview.  Simple to do, but as usual, a context menu needs to have a number of configurable options (like allow insert, delete, edit) and be content aware potentially, so lots of things to think about to do it right.  That is why it isn't simply a turn on and off feature like in LabVIEW.  I usually end up disabling labview's at customer requests and implementing my own custom right click menus anyway so they are more intelligent and user friendly.


Fix: mutex deadlock

Issue 392:
Fix deadlock mutex
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@srprash I would like to update my burning production. Can I count on you guys that you will merge it in the near future?


Package refactor

Current coverage is 89.00%

Merging #166 into dev will increase coverage by +0.01% as of bf54f68

@@              dev   #166   diff @@
====================================
  Files          70     70
  Stmts        6198   6201     +3
  Branches        0      0
  Methods         0      0
====================================
+ Hit          5516   5519     +3
  Partial         0      0
  Missed        682    682

Review entire Coverage Diff as of bf54f68

Uncovered Suggestions

+1.00% via ...token/TokenStream.hx#95...156
+0.42% via .../TokenTreeBuilder.hx#1225...1250
+0.40% via .../TokenTreeBuilder.hx#1099...1123
See 7 more...

Powered by Codecov. Updated on successful CI builds.


[SPARK-21042][SQL] Document Dataset.union is resolution by position

What changes were proposed in this pull request?
Document Dataset.union is resolution by position, not by name, since this has been a confusing point for a lot of users.
How was this patch tested?
N/A - doc only change.

Test build #77861 has started for PR 18256 at commit b464adb.

Thanks!  LGTM pending tests

LGTM

Test build #77861 has finished for PR 18256 at commit b464adb.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/77861/
Test PASSed.

Merging in master/branch-2.2. Thanks.


respond_to_missing in RDF::Query::Solution

We should probably backport this to 1.99.x.
Let's talk about 1.99 support, if any, while we're in Palo Alto next week.

Once 2.0 opis released, there may be more work to do to keep 1.99 (or 1.1) working on Travis. We should definitely keep 1.99 going until we make an active decision to drop support. IMO, we can announce end-of-life for 1.1 when 2.0 is released.


Add fallback if project logo fails to load

What does this PR do and why?
Closes #988
Screenshots or screen recordings
Before:

After:

Acceptance checklist

[ ] I have evaluated the Approval Guidelines for this PR.
[ ] I have tested this PR in all supported browsers.

Not sure why the test is failing?

Not sure why the test is failing?

annoying flaky test :(. retrying it usually works


Async Demotion (Part 1)

For chains of async functions in the call graph where suspensions can be statically
proven to never be required, this pass removes all suspensions and
turns the functions into synchronous functions.
For example, this function does not actually require any suspensions,
once the correct executor is acquired upon initial entry:
func fib(_ n: Int) async -> Int {
  if n <= 1 { return n }
  return await fib(n-1) + fib(n-2)
}

So we can specialize the above into this for better performance:
func fib(_ n: Int) async -> Int {
  return fib_sync(n)
}

func fib_sync(_ n: Int) -> Int {
  if n <= 1 { return n }
  return fib(n-1) + fib(n-2)
}

We then rewrite callers of fib to use the sync entry-point
when we can prove that the caller  will invoke fib_sync on a matching executor. As a result, callers of fib_sync can also remove the hop-back after the call.
By rewriting callers to use the sync entry, that reduces the number of required suspensions, which can lead to more recursive specializations, etc.
TODO: more details.

@swift-ci please smoke test

@swift-ci please smoke test

@swift-ci Please smoke test compiler performance

@swift-ci please smoke test and merge

@swift-ci please smoke test and merge


Enable the definition of hyperlink text within railroad diagram boxes.

To illustrate the request, see http://intertwingly.net/projects/pegurl/url.html#user-info
user and password inside the railroad diagram don't hyperlink, user and password in the prose below do.
I'm not presuming that it be done automatically, but rather by requiring those that wish to have hypertext links to indicate this in the <pre class=railroad> content somehow.  On the off chance that it helps, in my case the anchor text, the href/id, and the title all match.

done forever ago


Clicking on Featured Play makes the header hidden halfway

@Angryman18 in what resolution u are seeing it ..?

Mostly because of position: fixed within a flexbox.

@Angryman18 in what resolution u are seeing it ..?

768px

I will check it ..

@Angryman18 I have checked it but i am not facing this problem ...

I think you will only face this problem if you open a play from the featured plays section.

Yes


Excel的导入导出功能

请问Excel的导入导出功能有计划吗？

when can we use the Excel import and export function?

hello, it does not exist yet as a fortunesheet feature. i am working on figuring out how to integrate it, but for now id recommend exporting by using the xlsx package and converting the fortunesheet data object to the requisite format.

havent verified this but an approach like this might be efficient -
https://claude.site/artifacts/49cdfd32-2002-49c4-8fdd-dcc4efb2a126

hello, it does not exist yet as a fortunesheet feature. i am working on figuring out how to integrate it, but for now id recommend exporting by using the xlsx package and converting the fortunesheet data object to the requisite format.

Hi, which xlsx package did you mean?

@inozura https://www.npmjs.com/package/xlsx

@alonesmall im planning to build this feature sometime soon, but i need a few user inputs before i list down the final set of requirements. is it possible to discuss this with you?

@sanchit3008 yes, this is my email<EMAIL_ADDRESS>

Please use this plugin https://github.com/Corbe30/FortuneExcel


Error MSB4057 : The target "XXX" does not exist in the project.

When the project name in the solution is inconsistent with the name in About.xml, a prompt will be displayed at the end of the project build.
Error MSB4057 : The target "XXX" does not exist in the project.

Hi. Do you have an example repo that I can clone down and take a look at?


failure and error in function "slack_command_cb" when connecting to channel

I'm not sure if this is part of an older issue, but I couldn't find information on it.
when attempting to connect to a channel, I receive this error;
python: stdout/stderr:     Traceback (most recent call last):
python: stdout/stderr:     line 1009, in slack_command_cb
python: stdout/stderr:     command = cmds[function_name](current_buffer, args)
python: stdout/stderr:     line 1137, in command_join
python: stdout/stderr:     servers.find(domain).channels.find(args).open()
python: stdout/stderr:     line 574, in open
python: stdout/stderr:     async_slack_api_request(self.server.domain, self.server.token, SLACK_API_TRANSLATOR[self.type]["join"], {"user": users.find(self.name).identifier})
python: stdout/stderr:     AttributeError: 'NoneType' object has no attribute 'identifier'
python: error in function "slack_command_cb"

I'm seeing this issue as well. Well, to be exact; I see issue #22 unless I'm in the slack buffer. If I'm in the slack buffer, I see this issue.
Platform is Fedora 24, using the shipped fedora 24 websocket-client and shipped weechat.

At least for my case, this is somewhat user error with a bad error message:
Case 1: Join a channel that doesn't exist: Get a good error saying it doesn't exist
Case 2: Join a channel that does exist: works as expected
Case 3: Join a channel I'm already in, it throws the traceback from OP

Hmm on a reinstall today I can't seem to replicate it. Maybe I just didn't realize I was connected to a specific channel last time I tried it out

Let's keep this open so we can avoid spewing a backtrace when you rejoin a channel you're already a member of.


Create a form to autofill the location of the study room

Add the button on the side panel overview
Add the autofil input in the group creation form

im gonna cry


GeoSpatial indexes support (feature request)

PostgreSQL, MySQL and MongoDB, all support geo spatial indexes.
Do you plan to support them?

For reference, this relates to balderdashy/sails-postgresql#4, balderdashy/sails-mongo#46 and #71.
I can also see that anchor has support for geojson in rules.js which could be used for this.
At this point I'm not sure if there is anything required of waterline core or if it's a matter of adapter implementation. @elennaro, are you aware of what's needed to implement this?

I'm not sure, didn't review the Waterline's sources thoroughly.

I hope there could be a "geojson" Model attribute type, say in GeoJSON form, and I see it in anchor.
Then there could be

generation of proper indexes in database adapters
mapping
query for geospatial search with realizations in each adapter like geoNear etc.
I know the MongoDB way and could help with realization in sails-mongo.

Does Waterline support all the types from anchor?

Waterline uses anchor for validation so whatever types are there should passthrough to the adapter.

And then it will cal the adapter to create index and to do the mapping will it?

Disclaimer: I've never used geospatial indexes so I'm not familiar with geospatial indexes and mapping.
Assuming you had something like:
attributes: {
  location: {
    type: "geojson",
    index: true
  }
}

The adapter would get all this info and it should act on it creating an appropriate index.

I see it now, thanks.

Closing this as I don't think there is anything to be done on waterline core. Furthermore PR #981 will make it even easier for adapters to extend and validate data types. Please reopen if you find anything that needs change in waterline core.

See here for an example of geospatial indexing in Sails.js using native MongoDB queries.


Updated Readme.

People new to this field can understand it better.

@Shanky-21  I don't think this is needed

@Shanky-21  I don't think this is needed

Can you help me by telling what is needed?

Can you help me by telling what is needed?

@Shanky-21  Please see the issues.

@Shanky-21  Please see the issues.


Lambda Expression

Hi,
I wanted to test your library (which looks awesome!) But I have a problem understanding your code. I do not use lambda expressions and I can not "translate" this, especially the "s->" and "trowable->". Can you help me ?
Observable<String> changelogObservable = rxMagneto.grabPlayStoreRecentChangelog(packageName);
        changelogObservable.subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread())
                .subscribe(s -> {
                    if (progressDialog != null && progressDialog.isShowing()) {
                        progressDialog.dismiss();
                    }
                    showResult(mFeatureModelList.get(FeaturesConfig.FEATURE_RECENT_CHANGELOG).getTitle(), s);
                }, throwable -> {
                    if (progressDialog != null && progressDialog.isShowing()) {
                        progressDialog.dismiss();
                    }
                    showResult(getResources().getString(R.string.label_error), throwable.getMessage());
                });

"s" denotes the String returned as the changelog value and "throwable" denoted the Exception that may occur anytime.
I have used lambdas to shorten the code, you can obviously look at the RxJava docs for the enlarged version of it.

Yes, but what I wanted to know is that they are the names of functions that do not appear since you use lambda expressions?


Play live stream video from Wowza server

Hi
Thank you for a great library. I use it in my current project and setup the video streaming from app to Wowza server in a hour, it was very easy to use the VCSimpleSession class.
Now I am looking for a way to playback live stream from server in app. Can VCSimpleSession do this? Is any example for this?
Thanks

We are doing something similar. What sort of app are you trying to create? we've had success using javascript with video.js and its hls component.

Dupe of #36 and #141.

I use VideoCore in iOs app. I found that AVPlayer from AVFoundation plays video via HLS, so use it in my app.

@tevghenii  i am also using using this videocore library but when i am start the rtmp url it is  not playing at server side and my rtmp url is like rtmp//:serverName.tv/servername/username/stream id is this possible in video core can you please help me out

@tevghenii Hi, I am trying to setup video streaming from iOS app to Wowza servers.  You said you got it up and running in an hour! I'm having a problem connecting to Wowza servers, could you show me an example of how you connected?
This is how I am trying to start RTMP session (I get NetStream.Publish.Denied) error though:
[_session startRtmpSessionWithURL:
@"rtmp://ec2-xx-xxx-xxx-xx.compute-1.amazonaws.com/MyStreamName"
andStreamKey:@"myStream"];

I want to Play Recorded Video from ip camera in my app. the video was Recorded at folder of wowza server .but when i run the project and click to play the video its gives Ecception i.e EXC_BAD_ACCESS (code=1, Address 0xc). Please any one can help me to solve the problem.

@Ali-Sher you can play video from wowza server through a UIWebView, MPMoviePlayerViewController, or AVPlayerViewController, you will need to include more detail for your problem.  That is a very broad error message.


Bitfinex Auth calls fail

Hello, just wanted to point out, that bitfinex auth request fail.
ERROR:bitex.utils:return_api_response: HTTPError for url https://api.bitfinex.com/v1/order/new Traceback (most recent call last):   File "C:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bitex\utils.py", line 40, in wrapper     r.raise_for_status()   File "C:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\models.py", line 935, in raise_for_status     raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.bitfinex.com/v1/order/new {'message': 'Invalid X-BFX-SIGNATURE.'}
Regards

Hey @Razorbob,
Thanks for contributing!
What version are you using ? I'll look into this as soon as I can.
Cheers,
Nils

Hello @nlsdfnbch ,
I installed with pip3.6.3 and got bitex version 1.2.1
I wrote a short script for authenticated Rest and WSS calls in python for apiv2 to assure that the keys are correct - so no issue there, but strangely I got the same error when I tried with v1. Maybe a bitfinex problem?
Liebe Grüße,
Vincent

@Razorbob ,
ok, to recap - it works on the 'v2' API but not v1 ? Or it doesnt work with either? Could you send me the code snippet you use ? (sans the keys, of course).
As long as the return code isn't a 5XX status code, it appears to be an issue with my code, unfortunately.

@nlsdfnbch,
I just wrote the API Call for WSS and REST in a quick and dirty Script in my own - Not with bitex.
I can send you the codesnipped for v2 from my own Script - but it is nothing special. I will post it after I return.
Liebe Grüße

Oh and i will try bitex v2, when i have Time again.

Hey @Razorbob,
Running this (Bitex 1.2.1):
from bitex import Bitfinex

c = Bitfinex(key,  secret)

print(c.balance())

works without issue for me.

Hey @nlsdfnbch,
Can you try doing an ask or Bid?

Ah, I just noticed the error
You're APIkey does not have the required permissions.
Make sure you have read AND write access, if you want to place new order or cancel existing ones.

Hello @nlsdfnbch
I am sorry, but I am srsly getting this on the code you proposed:
ERROR:bitex.utils:return_api_response: HTTPError for url https://api.bitfinex.com/v1/balances Traceback (most recent call last):   File "C:\Users\z002tk3x\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bitex\utils.py", line 40, in wrapp er     r.raise_for_status()   File "C:\Users\z002tk3x\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\models.py", line 935, in raise_for_status     raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.bitfinex.com/v1/balances <Response [400]>
Instead with a quick and dirty script
`async def bid(pair, price, ammount):
address = "wss://api.bitfinex.com/ws/2"
apiKey = 'xxxx'
apiSecret = 'xxxx'
authNonce = str(int(time.time() * 10000000))
authPayload = 'AUTH' + authNonce
authSig = hmac.new(str(apiSecret).encode('utf-8'), authPayload.encode('utf-8'), hashlib.sha384).hexdigest()

payload = json.dumps({
			'event': 'auth',
            'apiKey': apiKey,
            'authSig': authSig,
            'authNonce': authNonce,
            'authPayload': authPayload
        })

order = json.dumps([
			  '0',
			  'on',
			  'null',
			  {
			    'gid': '1',
			    'cid': '12345',
			    'type': "LIMIT",
			    'symbol': pair,
			    'amount': ammount,
			    'price': price,
			    'hidden': '0'
			  }
			])

async with websockets.connect(address) as ws:
	await ws.send(payload)
	result = await ws.recv()
	result = json.loads("".join(list(format(result))))
	print (result)
	result = await ws.recv()
	result = json.loads("".join(list(format(result))))
	print (result)
	print("BID ORDER")
	await ws.send(order)
	result = await ws.recv()
	result = json.loads("".join(list(format(result))))
	print (result)
	ws.close()`

I am getting fine results - I gave the key full access to everything. So I srsly don't know, sorry
Regards

import requests
import json
import base64
import hashlib
import hmac
import websockets
import asyncio
import os
import time

Hey @Razorbob ,
Thaf second log had a different error code - could you post the json value of it as well?

Also,  just to clarify - the client you're using accesses the REST API, just to clear that up :)

Hey @nlsdfnbch,
The first error i was getting with loading a keyfile:
c = Bitfinex(key_file=keyfile)
which was simply structured like this (I think this was your Documentation of Bitex):
apikey
secretkey

The second error is constantly showing, if i call it like this:
c = Bitfinex(key,  secret)
As for the example code I posted, it was just some quick test if the keys work and since v2 REST API has no place bid or ask functionality, even for authenticated requests, I had to code up a websocket call.

And I missclicked, sorry didn't want to close the issue.

@Razorbob, v2 REST isn't supported by bitex 1.2.x anyway.
Alright, since somethings' amiss, try running this:
from bitex import Bitfinex
import logging

logging.basicConfig(filename="main.log", filemode="w+", level=logging.DEBUG)
log = logging.getLogger(__name__)

c = Bitfinex(key="BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5",
             secret="X7bP4NZHgf7JU6UPfzrHqujkgh4TdgBVD17dBEyUz86")

print(c.balance().json())

Keep the key and secret and upload the contents of main.log, please. It should look something like this:
C:\Users\nls\Anaconda3\python.exe F:/git/bitex/main.py
DEBUG:bitex.api.REST.api:Initialized API Client for URI: https://api.bitfinex.com; Will request on API version: v1
DEBUG:bitex.api.REST.api:Making request to: https://api.bitfinex.com/v1/balances, kwargs: {'headers': {'X-BFX-SIGNATURE': 'c5b8dcfc426e46bfc99928b7257546b13abf9e31eef1f488c0ae80cbe173b71512fd2ca09e4db0a52c088d18c8f77d6d', 'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9iYWxhbmNlcyIsICJub25jZSI6ICIxNTEwNDc4Mjg2OTk2In0=', 'X-BFX-APIKEY': 'BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5'}}
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.bitfinex.com
DEBUG:urllib3.connectionpool:https://api.bitfinex.com:443 "POST /v1/balances HTTP/1.1" 200 None
[]
DEBUG:bitex.api.REST.api:Made POST request made to https://api.bitfinex.com/v1/balances, with headers {'X-BFX-APIKEY': 'BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5', 'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9iYWxhbmNlcyIsICJub25jZSI6ICIxNTEwNDc4Mjg2OTk2In0=', 'User-Agent': 'python-requests/2.18.4', 'Content-Length': '0', 'Connection': 'keep-alive', 'X-BFX-SIGNATURE': 'c5b8dcfc426e46bfc99928b7257546b13abf9e31eef1f488c0ae80cbe173b71512fd2ca09e4db0a52c088d18c8f77d6d', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*'} and body None. Status code 200

@nlsdfnbch
Here is the Log:
DEBUG:bitex.api.REST.api:Initialized API Client for URI: https://api.bitfinex.com; Will request on API version: v1
DEBUG:bitex.api.REST.api:Making request to: https://api.bitfinex.com/v1/balances, kwargs: {'headers': {'X-BFX-APIKEY': '
BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5', 'X-BFX-SIGNATURE': '73ca7fc9e92fa013c172ce73c062998c3f037df0ebc0b1725612e2
ef92edddc227e66a0b2cfab787c782ddee8effd7b8', 'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9iYWxhbmNlcyIsICJub25jZSI6ICIxNTEw
NDk2MDY0MzkxIn0='}}
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.bitfinex.com
DEBUG:urllib3.connectionpool:https://api.bitfinex.com:443 "POST /v1/balances HTTP/1.1" 200 None
DEBUG:bitex.api.REST.api:Made POST request made to https://api.bitfinex.com/v1/balances, with headers {'User-Agent': 'py
thon-requests/2.18.4', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive', 'X-BFX-APIKEY':
'BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5', 'X-BFX-SIGNATURE': '73ca7fc9e92fa013c172ce73c062998c3f037df0ebc0b1725612e
2ef92edddc227e66a0b2cfab787c782ddee8effd7b8', 'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9iYWxhbmNlcyIsICJub25jZSI6ICIxNTE
wNDk2MDY0MzkxIn0=', 'Content-Length': '0'} and body None. Status code 200
[]

I tried it out with my api keys as well, also yields a 200
Regards

Hm. Then this issue is resolved, no? Did you try the other methods as well?

@nlsdfnbch
Not really - getting Orders have been possible before. I tried with my key, because your keys dont have write permissions on orders it seems.
I tried this :
from bitex import Bitfinex
import logging

logging.basicConfig(filename="main.log", filemode="w+", level=logging.DEBUG)
log = logging.getLogger(__name__)

c = Bitfinex(key="xxxx", #'' BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5
             secret="xxx") #  X7bP4NZHgf7JU6UPfzrHqujkgh4TdgBVD17dBEyUz86

print(c.ask("BTCUSD", 300, 2).json())

with that error :
ERROR:bitex.utils:return_api_response: HTTPError for url https://api.bitfinex.com/v1/order/new
Traceback (most recent call last):
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\bitex\utils.py", line 40, in wrapp
er
    r.raise_for_status()
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python36-32\lib\site-packages\requests\models.py", line 935, in
raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://api.bitfinex.com/v1/order/new
{'message': 'Nonce is too small.'}

Ok, so I've had a similar issue in btfxwss, which was due to too many successive calls to authenticated endpoints within one second. Since this does not appear to be the case here, I doubt this may be the issue. However, I will implement the same fix for this, and see if that takes care of it.

@nlsdfnbch  - I still have have the same issue after upgrading to latest update from production. Below is the code I am executing and have attached the logs
`from bitex.api.REST import BitfinexREST
k = BitfinexREST()
k.load_key('bitfinex.txt')  # loads key and secret from given file;
Query a private (authenticated) endpoint
status = k.query('POST', 'orders', authenticate=True)
print(status.text)`
test.log

Hm. I cannot replicate this error.
C:\Users\nls\Anaconda3\python.exe F:/git/bitex/main.py
The API clients available in this package are deprecated and will be no longer available in their current form starting with version 2.0!
DEBUG:bitex.api.REST.api:Initialized API Client for URI: https://api.bitfinex.com; Will request on API version: v1
DEBUG:bitex.api.REST.api:Making request to: https://api.bitfinex.com/v1/orders, kwargs: {'headers': {'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9vcmRlcnMiLCAibm9uY2UiOiAiMTUxMDY4NjMyNTg2ODE5In0=', 'X-BFX-SIGNATURE': '71d3d60532738d9ce1197ea45d632efc5bc256fc713ffab6a6ef2761e569c62e3b0ca8ccb840a5d2ec38b33798f531b7', 'X-BFX-APIKEY': 'BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5'}}
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.bitfinex.com
DEBUG:urllib3.connectionpool:https://api.bitfinex.com:443 "POST /v1/orders HTTP/1.1" 200 None
[]
DEBUG:bitex.api.REST.api:Made POST request made to https://api.bitfinex.com/v1/orders, with headers {'Content-Length': '0', 'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9vcmRlcnMiLCAibm9uY2UiOiAiMTUxMDY4NjMyNTg2ODE5In0=', 'User-Agent': 'python-requests/2.18.4', 'X-BFX-APIKEY': 'BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive', 'Accept': '*/*', 'X-BFX-SIGNATURE': '71d3d60532738d9ce1197ea45d632efc5bc256fc713ffab6a6ef2761e569c62e3b0ca8ccb840a5d2ec38b33798f531b7'} and body None. Status code 200
DEBUG:bitex.api.REST.api:Making request to: https://api.bitfinex.com/v1/orders, kwargs: {'headers': {'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9vcmRlcnMiLCAibm9uY2UiOiAiMTUxMDY4NjMyNjMwMTUyIn0=', 'X-BFX-SIGNATURE': 'e178e1b149867a517d2d9b2e217a13524dfbf18920d05207c8d9bbf8cbd913d10f72e38c5811daa4275827943b82c7cd', 'X-BFX-APIKEY': 'BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5'}}
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.bitfinex.com
DEBUG:urllib3.connectionpool:https://api.bitfinex.com:443 "POST /v1/orders HTTP/1.1" 200 None
[]
DEBUG:bitex.api.REST.api:Made POST request made to https://api.bitfinex.com/v1/orders, with headers {'Content-Length': '0', 'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9vcmRlcnMiLCAibm9uY2UiOiAiMTUxMDY4NjMyNjMwMTUyIn0=', 'User-Agent': 'python-requests/2.18.4', 'X-BFX-APIKEY': 'BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive', 'Accept': '*/*', 'X-BFX-SIGNATURE': 'e178e1b149867a517d2d9b2e217a13524dfbf18920d05207c8d9bbf8cbd913d10f72e38c5811daa4275827943b82c7cd'} and body None. Status code 200
DEBUG:bitex.api.REST.api:Making request to: https://api.bitfinex.com/v1/orders, kwargs: {'headers': {'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9vcmRlcnMiLCAibm9uY2UiOiAiMTUxMDY4NjMyNjU4NDAwIn0=', 'X-BFX-SIGNATURE': 'cc56659ae9806dd63a9964e2f6092e8be1dfe7be21b1b2daf8b9d738fe116b197a8bae6b0593fdda45c533ee2cf2707b', 'X-BFX-APIKEY': 'BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5'}}
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.bitfinex.com
DEBUG:urllib3.connectionpool:https://api.bitfinex.com:443 "POST /v1/orders HTTP/1.1" 200 None
DEBUG:bitex.api.REST.api:Made POST request made to https://api.bitfinex.com/v1/orders, with headers {'Content-Length': '0', 'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9vcmRlcnMiLCAibm9uY2UiOiAiMTUxMDY4NjMyNjU4NDAwIn0=', 'User-Agent': 'python-requests/2.18.4', 'X-BFX-APIKEY': 'BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive', 'Accept': '*/*', 'X-BFX-SIGNATURE': 'cc56659ae9806dd63a9964e2f6092e8be1dfe7be21b1b2daf8b9d738fe116b197a8bae6b0593fdda45c533ee2cf2707b'} and body None. Status code 200
DEBUG:bitex.api.REST.api:Making request to: https://api.bitfinex.com/v1/orders, kwargs: {'headers': {'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9vcmRlcnMiLCAibm9uY2UiOiAiMTUxMDY4NjMyNjk3MTAwIn0=', 'X-BFX-SIGNATURE': '4c0627e12a50a21d0d06faade2d9718c1b1d50535a2825cdc96680ddb916c916ee07403b0e7f39448ea92a8348399d27', 'X-BFX-APIKEY': 'BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5'}}
[]
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): api.bitfinex.com
DEBUG:urllib3.connectionpool:https://api.bitfinex.com:443 "POST /v1/orders HTTP/1.1" 200 None
[]
DEBUG:bitex.api.REST.api:Made POST request made to https://api.bitfinex.com/v1/orders, with headers {'Content-Length': '0', 'X-BFX-PAYLOAD': b'eyJyZXF1ZXN0IjogIi92MS9vcmRlcnMiLCAibm9uY2UiOiAiMTUxMDY4NjMyNjk3MTAwIn0=', 'User-Agent': 'python-requests/2.18.4', 'X-BFX-APIKEY': 'BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5', 'Accept-Encoding': 'gzip, deflate', 'Connection': 'keep-alive', 'Accept': '*/*', 'X-BFX-SIGNATURE': '4c0627e12a50a21d0d06faade2d9718c1b1d50535a2825cdc96680ddb916c916ee07403b0e7f39448ea92a8348399d27'} and body None. Status code 200

calling Bitfinex.orders() works fine for me.
Which indicates that the general authentication process is solid in principle; unfortunately, that doesn't solve your issue.
However, without being able to replicate this error, I cannot solve this.

How are you able to call Bitfinex.orders() ? Do you see anything wrong with the code I posted above. The .txt file has two lines one pertaining to key and secret.

Code 200 is the HTTP Request Statuscode - 200 indicates that the request was successful and no errors occurred. A Code 4xx indicates that there was a problem with the request.
This particular difference in our logs is what makes this very difficult to reproduce - since we're using the same code base, the only other difference must therefore be our input. Which in the case of orders() is exactly None (therefore also identical).
To use the interface object, do this:
from bitex import Bitfinex
c = Bitfinex(key="BAEtHJu3ze6hBN26R8ArWSA5Gawb39IGtOcB4WHRWJ5",
             secret="X7bP4NZHgf7JU6UPfzrHqujkgh4TdgBVD17dBEyUz86")

print(c.orders().json())  # returns []

You can call any other supported method (see the source code for more on this).
Your code isn't wrong - it just uses the low-level API objects, instead of the high-level and more user-friendly interface objects.

@nlsdfnbch  - When I use your key, it works. Probably there is an issue with my account key. I will try again with new set of key and secret.
Thanks

@nlsdfnbch  - I still have the same error {Nonce is too small'}. Not sure what's going wrong.
I have the following nonce() function, which I think is good enough to generate large number.
str(round(100000 * time.time()))

@pchandra-uchicago ,
I need reproducible code. As you have already mentioned, my key and secret work for you, which indicates that this isn't a problem with btfxwss. Please contact support at Bitfinex and see if they can help with this.

@nlsdfnbch - I tried your lib for bitfinex to post order. I was always getting 400 with message {Nonce is too small'}. I looked up a bit and found the currect nonce needs to be multiplied by a factor(20 worked for me).
I extended your classes to make them work for me
class CustomBitfinex(Bitfinex):
    def nonce(self):
        return str(math.floor(datetime.datetime.now().timestamp()*2 * 1000000))

class CustomBitfinexREST(BitfinexREST):
    def nonce(self):
        return str(math.floor(datetime.datetime.now().timestamp()*2 * 1000000))

Seems this issue is there with official bitfinex node api as well(but the allow us to pass custom nonce functions)

@abb152, where did you find this information?
Their API documentation uses a unix timestamp with millisecond resolution (which is what the library currently employs).
Unfortunately Bitfinex hasn't answered any of my tickets regarding this issue, which makes it quite frustrating to fix.

@nlsdfnbch
Here a guy mentioned this:
This is on ubuntu 16.04 and:

Nonce must be greater than<PHONE_NUMBER>555001. You provided<PHONE_NUMBER>39600.

The nonce i generated was around 15XXXXXXXXXXX so i thought of multiplying with a factor and it worked

Not sure if this is the best place to put this, but I was getting a similar issue. It turned out to be a function in the bitfinex.py interfaces module.
basically I had to change:
    @return_api_response(fmt.order)     def bid(self, pair, price, size, replace=False, **kwargs):         return self._place_order(pair, size, price, 'buy', replace=replace,                                  **kwargs)
    @return_api_response(fmt.order)     def bid(self, pair, price, size, replace=False, **kwargs):         return self._place_order(pair, str(size), str(price), 'buy', replace=replace,                                  **kwargs)
The size and price parameters needed to be cast to strings in the place_order function. This was already done in ask, just missing in bid.
Could be a separate issue?

It's not an issue with the library per se. On dev, we no longer convert to str, since per definition of the Bitfinex API the parameters need to be strings anyway.
However, adding this conversion would require less reading of API documentation for lib users - this can be both a good and bad thing. So I'm currently undecided how to handle this.
But thank you for pointing this out!

Agreed, maybe just make sure the bid and ask methods are aligned then, as one converts to string and the other doesnt

@Razorbob
Hi Razorbob,
I use ubuntu 16.04 and have encountered a 400 issue as well. After spending hours, I found that there is a missing "/" in endpoint_path while creating signature:
`def sign(self, url, endpoint, endpoint_path, method_verb, *args, **kwargs):
try:
req = kwargs['params']
except KeyError:
req = {}
if self.version == 'v1':
req['request'] = endpoint_path
req['nonce'] = self.nonce()
        js = json.dumps(req)
        data = base64.standard_b64encode(js.encode('utf8'))
    else:
        data = '/api/' + endpoint_path + self.nonce() + json.dumps(req)
    h = hmac.new(self.secret.encode('utf8'), data, hashlib.sha384)
    signature = h.hexdigest()
    headers = {"X-BFX-APIKEY": self.key,
               "X-BFX-SIGNATURE": signature,
               "X-BFX-PAYLOAD": data}
    if self.version == 'v2':
        headers['content-type'] = 'application/json'

    return url, {'headers': headers}`

The value of req['request'] is "0/action" in this case, but should be "/0/action" to get a correct "data". This works for me, but I don't know whether it works in your case.
Thanks


AnyOf Pattern doesn't work when fields are optional and array

import "list"

#test: this={
	a?:        [...string]
	b?:        string
	c?:        string
	#AnyOfABC: true & list.MinItems([ for label, val in this if list.Contains(["a", "b", "c"], label) {label}], 1)
}

{
	"a": ["bar"],
	"b": "foo"
}

cue eval -c ./test.cue ./testany.json -d "#test"
#test.#AnyOfABC: conflicting values false and true:
    ./test.cue:7:13
    ./test.cue:7:20

changing from array a to string works or changing the array field from optional to default works as well. This is slightly outside of the content of the page, bug a simple derivative.

yeah, I never tested that. There are better solutions on the horizon in  https://cuetorials.com/cueology/futurology/builtin-helpers/

Changing the list to non-optional only works because the empty list will have a label and the constraint will pass as the label is always available. The underlying issue seems to be that the simplified example as given in the tutorial doesn't seem to work when providing data to validate instead of embedding it in the definition:
test.cue
import "list"

#test: this={
	a?:        string
	b?:        string
	c?:        string
	#AnyOfABC: true & list.MinItems([ for label, _ in this if list.Contains(["a", "b", "c"], label) {label}], 1)
}

test.json
{
	"b": "foo"
}

cue eval -c ./test.cue ./testany.json -d "#test"
#test.#AnyOfABC: conflicting values false and true:
    ./test.cue:7:13
    ./test.cue:7:20

I think this is because this in the definition is local to the definition, thus the data is not part of it. i.e. there is only one this, not per data value to which it is applied. So I suspect there is some scoping complexities at play here


Add filter to frontend RPS config

Need to figure out solution to add domain and tasklist filter for RPS of frontend config.

We already have domain level throttling. Task list throttling probably won't be done at this time.
On the other hand we are looking at adding domain level resource isolation and protection.


Function is called without a parameter even though its type requires one

Version and Platform (required):

Binary Ninja Version: 3.6.4797-dev, 6be9a1f4
OS: macos
OS Version: 14.3
CPU Architecture: arm64

Bug Description:
In the example below, I have a function called buggy_func with the prototype int64_t buggy_func(void* arg1), which is detected by BN as an automatic type, meaning it was not created by me (I only changed its name). However, when I check the cross-references for that function, I can see that almost all calls do not include a parameter.

When I attempt to change the function type and accept it without making any actual changes, the issue is resolved. However, I believe this behavior indicates some sort of bug.
Steps To Reproduce:
It's difficult to reproduce in another binary, but I can share the binary file on slack.
Expected Behavior:
I expect BN to display that parameter without requiring any interaction from me.

Please share the binary with me

I believe this is a duplicate of this issue #3927

This is a really frustrating edge case in our analysis that we need to address. We will be looking into this soon.


what is

Are you kidding?

Wrong branch?

I don't know. I'm a novice. I want to see the PR function. The result is wrong. That's it. If it's inconvenient, please delete it. Thank you.

We can't delete it. You should be able to close or delete it. If you are unable, I can close it for you. Just looking at it, it appears that you have based the PR on the GROOVY_1_7_X branch which is very old, so included in your PR is every change we have made since that branch as well as I presume some changes you have made. You are usually best making the PR wrt Groovy's master branch and a newly created branch on your repo.

OK,thanks so much


Reader#hasMessageAvailable give wrong value after Reader#seek

Describe the bug
Reader#hasMessageAvailable is used for  checking  if there is any message available to read from the current position.
But in this case:

Reader#seek  a time after the publish time of the last message
Reader#hasMessageAvailable still return true and  Reader#readNext will be blocked
It  looks unseemly, Reader#hasMessageAvailable shoule gives false since there no more new messages to read.
The reason it that Reader#hasMessageAvailable will finally call  ConsumerImpl#getLastMessageIdAsync which just return the last messageId.
Reader#seek has no effect on Reader#hasMessageAvailable.

Related issue  [#7775 ]
To Reproduce

Reader#seek  a time after the publish time of the last message
Reader#hasMessageAvailable still return true

Expected behavior
Reader#hasMessageAvailable shoule gives false if there no more new messages to read.

@aloyszhang Are you working on this issue?

@sijie Yes, I'm working on this isuuse.

@aloyszhang  I checked the PR #7848 . It looks like the fix wouldn't help in my case. In my case, it's not about the seek time, but there are some race conditions that happen because of the behavior that the broker disconnects the consumer after a seek (a reset). Please check my comments in https://github.com/apache/pulsar/pull/5278#issuecomment-691994440 .

@lhotari  I have made some modify and the push again.

I have made some modify and pushed again.

@aloyszhang Looks promising. Good work.
Would it be possible to add test cases with ordinary message id seeks? For example a test case where there would be a fixed number of messages in a topic (for example just 3 message). When publishing the messages to the topic, their respective MessageIds could be stored. The test would then do a given number of reads (for example 100 times) where it first uses seek to go to one of the randomly picked message ids, checks with hasMessageAvailable that there's a message available and then reads the message and verifies that it's the correct message. This should be enough to show that the problem with seek + hasMessageAvailable has been resolved and doesn't run into some race conditions caused by the broker code that "disconnects all the connected consumers and then resets the cursor" (as described in #5278).

Closed as stale. Please create a new issue if it's still relevant to the maintained versions.


chore: graphql improvements

Purpose

How does the solution address the problem

Changes made

prnet cleaned-up successfully


Add Odometry topic to epuck_ros2_cpp

Description
Odometry topic should be added epuck_ros2_cpp package.
Related Issues
#3
Tasks

[x] Parse data from I2C and publish to Odometry topic odom. The position should be calculated from velocity and discretized with Runge–Kutta.
[x] Create the corresponding transformation (tf2) and broadcast them.
[x] Write end-to-end tests. Test moving forward, backward and rotation.
[ ] Verify the code on the physical robot and RViz2.
[x] Do performance measurements using psrecord (psrecord $(pgrep driver) --interval 1 --plot plot1.pdf --duration 60)

The result of psrecord $(pgrep driver) --interval 1 --plot plot1.pdf --duration 60:

Keep in mind that includes the following topics at rate of 15.6Hz (64ms):
/cmd_vel [geometry_msgs/msg/Twist]
/laser [sensor_msgs/msg/LaserScan]
/odom [nav_msgs/msg/Odometry]
/ps0 [sensor_msgs/msg/Range]
/ps1 [sensor_msgs/msg/Range]
/ps2 [sensor_msgs/msg/Range]
/ps3 [sensor_msgs/msg/Range]
/ps4 [sensor_msgs/msg/Range]
/ps5 [sensor_msgs/msg/Range]
/ps6 [sensor_msgs/msg/Range]
/ps7 [sensor_msgs/msg/Range]
/tf [tf2_msgs/msg/TFMessage]
/tf_static [tf2_msgs/msg/TFMessage]

and having 1 dynamic transform publisher, and 9 static transform publishers. Also, RViz2 was subscribed to the topics.

There is currently a bug with odometry, after some time it "jumps" to a random place. Trying to identify a source...

There is currently a bug with odometry, after some time it "jumps" to a random place. Trying to identify a source...
OK, the jumps are caused when a number of ticks is around 32750. Familiar number? :)
Fixed in bee89b8 and 7aa951e

Yes if I am not wrong this is the limit of the encoders returned by the e-pucks. It indeed makes sense that this is the cause, well spotted.

Closes #5


Ensure that @Retry works properly with chat memory

This is done by only committing the messages to memory when the AiService completes successfully.

Fixes: #748

The failure is weird, I'll have a look tomorrow

CI is green now, so this is ready for a review


Allow Void Response Body with Model Fields

fix https://github.com/microsoft/typespec/issues/5070

@chrisradek @markcowl
When you have a moment, please take a look at this pr. I’d appreciate your feedback.

@JamesChen-us Thank you for your contribution!
I don't think we want to treat void as an empty schema object for 2 reasons:

An empty schema ({}) typically means anything would validate against it.
This causes the response content-type to be application/json, when really there shouldn't be any content type.

I think to support void in response contents, we could do something similar to what we did for request bodies: check if a response body is a voidType and ignore it if so. I did a quick test modifying this conditional to also check if data.body.type is void and get results that match when the @statusCode is omitted (except with the correct statusCode instead):
https://github.com/microsoft/typespec/blob/a226a761205684366c33d99a59c5252fda0301de/packages/openapi3/src/openapi.ts#L960

@chrisradek Thank you for clarifying the issue. I appreciate the feedback. Updated to skip content generation for void responses instead of creating empty schemas. Let me know if any adjustments are needed.


ERR_REQUIRE_ESM error after update nanoid 5.0.7

Hi,
I get this error after the update. I remember getting this error before in a different project for the nanoid 4 version.
It's a problem for projects using CommonJs.
Issue
Stackoverflow Solution
Nanoid Changelog v4.0
/home/fatih/Desktop/points/backend/node_modules/ts-node/dist/index.js:851
            return old(m, filename);
                   ^
Error [ERR_REQUIRE_ESM]: require() of ES Module /home/fatih/Desktop/points/backend/node_modules/nanoid/index.js from<EMAIL_ADDRESS>not supported.
Instead change the require of index.js in<EMAIL_ADDRESS>to a dynamic import() which is available in all CommonJS modules.
    at require.extensions.<computed> [as .js] (/home/fatih/Desktop/points/backend/node_modules/ts-node/dist/index.js:851:20)
    at Object.<anonymous> (/home/fatih/Desktop/points/backend/node_modules/@mgcrea/fastify-session/dist/index.cjs:120:21)
    at require.extensions.<computed> [as .js] (/home/fatih/Desktop/points/backend/node_modules/ts-node/dist/index.js:851:20) {
  code: 'ERR_REQUIRE_ESM'
}

Did revert to 4.x, should work with the just released v2.4.1

Important to note that nanoid's guidance is to use 3.x for commonjs support which they will continue to support as indicated in their install instructions. For anyone who is using 3.x based on that guidance, his package using 4.x will require a resolution override.


Conflict: Vietnam black screen

Describe the bug

It freezes with a black screen
rtx remix 0.1.1
MSI RTX 2070 super
Driver version 531.68
1.1 (CD)

Attach logs!

NvRemixBridge.log
d3d9.log
Vietnam_d3d9.log

To Reproduce
Launch the game with remix installed
Expected behavior
For the game to get to the main menu

It's in-game now with remix 0.2 and rt is working but I can't open the remix menu

Hello! Will you please test this on the latest release and let us know if the menu issue persists? Thank you!


Proper documentation of processing steps

The documentation has a simple usage example but does not describe all processing steps in detail yet.

Include tutorial based on a notebook like in mixsea?


Make upstream apps aware of secure status

Sends the X-Forwarded-Proto header to unicorn et al so that apps can
make decisions based on whether a page is being served over http or
https.
Will allow us to set config.force_ssl in Signon.
/cc @alexmuller @mattbostock

This looks good but I'm not sure it'll work as-is because the upstream load balancer does not set the same header, and the load balancer always connects to port 443 on the proxy (app) server.
I'm also not sure how nginx behaves it it's proxying a request that already has that header set, presumably it'd retain the original header but I think it's worth testing.

Ok, will close this then.

Updated, @mattbostock @alexmuller

Tested this on integration, results in requests like the following:
GET / HTTP/1.0
X-Forwarded-Ssl: on
X-Forwarded-Proto: https
<snip>
...

There's now a standard 'Fowarded' header in RFC 7239:
https://tools.ietf.org/html/rfc7239#section-4
Can we make use of that and will Rails/Rack recognise it?

We could add this too for future usage, but Rack will ignore it. Maybe a future improvement?

:+1: Merge when ready.

@boffbowsh I'd be grateful for any feedback on https://github.com/rack/rack/pull/1016 (/cc @binaryberry)


Fix: #758 'Polygon rendering clipped when opacity is set' issue.

Reference Issue

Fixes #758
What does this implement/fix? Explain your changes.

Any other comments?

I wish we could change library to use GetBounds.


data:application base64 file error 'tls.connect is not a function'.

I have my certificates and key permissions storage in base64 string like this (storage in a DB):
data:application/x-x509-ca-cert;base64,LS0tLS....
when I send the info and try to make the notification (after buffer the file as a string), the notification is send... but it fails:
"tls.connect is not a function"
I buffer the cert and key like this:
 let cert = atob(certPem.split('data:application/x-x509-ca-cert;base64,')[1]); let key = atob(keyPem.split('data:application/x-x509-ca-cert;base64,')[1]); cert = Buffer.from(certPem); key = Buffer.from(keyPem);
I try locally, with the same permissions, and it works perfectly. I don't know what to do :(
Any hint why this is happening?

What node version are you using?


If we could  write stragey with scripts?

https://github.com/xiyanxiyan10/quant
If we could add a middleware for writing stargey in scripts? So we could make it more easier to use.

Hey,
I am not quite sure what you mean. You already are able to write your own strategy implementation and set this as the strategy provider.
Would you please clarify your intended feature further. What is your desired end result? Maybe describe it with some simple steps in pseudo code.
Thanks.

gobacktest----->js middleware------>write stragey in js
I mean that If we could add support to write stragey in javascripts, then we can write code more easier.

No, sorry. That's a package written in Golang, as advertised in the headline. No JS, ever.
Here is a helpful link: http://lmgtfy.com/?iie=1&q=javascript+backtesting+framework.


.aar issue

when i try to use the .aar command nadeko only says either that it is enabled or disabled.
i have been using it like so (.aar The Moon Guardians), (.aar TestRole) and (.aar) where as with the 2 first nadeko only says
BiwerTheWorst#0288 Auto assign role on user join is now enabled.
and with the 3 one it works as it should ofc
BiwerTheWorst#0288 Auto assign role on user join is now disabled.
i have also tryed
.aar "The Moon Guardians"
.aar (The Moon Guardians)
.aar
but with no response
and 2 new ppl joined the server after i did .aar The Moon Guardians and they did not get the role assigned
is there something special you have to do to make it work that i have missed?
pls help and thanks in advance
-- BiwerTheWorst--

Are you using public or a self-hosted Nadeko? If self-hosted, which version and for what OS?
Does Nadeko have the ManageRoles Server Permission?

@Biwerman you need to provide some more information.
If you already solved your issue or don't see any use in asking it here. Do not forget to close the issue.

@Kwoth think he got it solved. No reaction after 9 days.

.aar works. You need to make it enabled, which means specifying a role like you did in your first try.
.aar The Moon Guardians
after that you must make sure that the role you want to assign is under nadeko's highest role.
Also the users who join can't be invisible possibly (appear offline)

Hey Kwoth.
What do you mean exacly when you say that i need to make sure that the role im using has to be under nadeko's highest role?

He means this:

Roles are draggable. Make sure Nadeko's is higher than whatever role she is interacting with.

allraight it works
thanks for all the help
biwer signing out


Some information

@peggyrayzis, @jarretmoses :
Hi, Congratulations on the module.
I have some questions:

How can I create a separate module, standalone library.

What is different from this other module: https://github.com/frostney/react-native-create-library
(in this case it allows to create a standalone module)
It would be interesting to give the possibility that during the creation of the module, the possibility to automatically install dependencies.
For example:
--dependencies  (the name of each dependency separated by a comma: 'com.name0, com.name1, com.name2, ..')

@peggyrayzis, @jarretmoses: are there any news?

@Angelk90

At this point I'd say that this isn't the intent of this library as it acts as a plugin for existing projects.
This may be what you'd want as a answer to #1.
That would be interesting. Feel free to work on a PR to showcase this and we can review when it is done. I don't have the capacity at the moment to be able to build that.

Hope this was helpful and sorry for the late response.


tCertPool: Free TCerts memory after use

As part of 1691, I suspect that we could be a bit smarter regarding the memory management of the internal slice of tCerts.
Description
When flagging a TCert as used, the current code simply decreases len by 1, but the slice is not resized (or at least send a hint/suggestion to the GC that the underlying object (TCert) in the cache) can be freed.
Describe How to Reproduce
Need to work out a good and simple memory management strategy, without prematurely optimizing here...
Resolution
Following #718, it is not clear why TCerts are stored a loaded from the drive - we concluded that we should fix tCertPool but only tactically/in a pragmatic way.

#1714 contained a fix for this code portion in tCertPool#GetNextTCert() which effectively changed the struct variable len, but did not free the memory used by the returned TCert, and the slice was not resized/shrunk (so the GC could free up these elements).
tCert = tCertPool.tCerts[tCertPool.len-1]
tCertPool.len--

https://github.com/hyperledger/fabric/blob/ca8135b1a0f95127c96478518628a65a377ec123/core/crypto/client_tcert_pool_st.go#L91-92
The fix was to remove the len variable, use Golang's len() function and resize/shrink the slice the when TCerts returned for use.


Adding new events and fixing some.

Improving behavior for messages with subtypes, as well as adding reactions.

Looks good to me! If you want to go ahead and remove that line, I'll merge it in

Ok, just removed the im_opened case. Should be ready to go.

awesome....merged!


myNetConnectionObject.call

Hi great work thanks. Then tell me how can I also call a remoteMethod or receive a call remotely. In as3 it was the NetConnection.call().
Thank you

It should not be a problem, but I have only nginx rtmp module, this is not able to handle remote calls.
Have you a testserver (RED5 or similar) then I can test it.

I have Adobe Media Servers. But in production. I can create a server side application that sends and receives calls to you.
If you give me the ok today I'll prepare it for you.

News?

Yeah, I can try it. Install an Server App and give me the link. But it can take some days. I'm very busy

Thank you for your availability. Here is my AS3 code that connects to my server.
`var sephiroth:Object = new Object();
var amigoschat:NetConnection;
amigoschat=new NetConnection();
amigoschat.connect("rtmp://<IP_ADDRESS>/test/"+'room1','Pippo','2');
amigoschat.client =sephiroth;
amigoschat.addEventListener(NetStatusEvent.NET_STATUS, netStatuschat);
function netStatuschat(error:NetStatusEvent)
{
trace(error.info.code)
if (error.info.code == 'NetConnection.Connect.Success')
{
amigoschat.call('message', null, "Hi test");
}
}
sephiroth.receive_message = function(msg:Object) {
trace(msg)
}
`
Once the connection is established, it calls the service amigoschat.call('message', null, 'Hi test');. The service responds by calling sephiroth.receive_message. Naturally, you can also call the service from a button or wherever you prefer. amigoschat.call('message', null, 'Hi test');."

cool, I have just finished my last project. Next week I`ll see what I can do for you. I will write you when the test scenario is running

Thank you again so much.

Hi, I am ready to start. After reading your requirements, I will start with implementation of the NetConnection.call(). I will also implement SharedObjects, I have used them a lot in the past.
BTW: Parsing of a Data Message is already implemented.
Do you use AMF0 or AMF3 ???
Hope AMF0 because AMF3 is not implemented reflecting to the complexity of the login process

Hi, thanks so much. AMF0 is also fine.
I can't install websockify on that server as it's a very old Centos. I should get a new server. Can't launch websockify locally? Pointing to my server?

I will install it on my server pointing to yours. pls accept incoming from <IP_ADDRESS>

It should go and accept every connection

Hi, how's it going? You managed to connect to my server

sorry dude, I forget I am now on vacation. I have started the tests, now I am in France

Thanks for your availability of help. :)


Preserve cursor position when prepending sudo.

This changes the default behavior of the sudo plugin to preserve the position of the cursor when the current $BUFFER is prepended with "sudo ". The original behavior can be restored by setting sudo_preserve_cursor=0.

Closed via #3141


Custom events must be emitted in lowercase

First time opening an issue, happy to address any concerns. I was helping someone with their fiddle on gitter and noticed this oddity.
Sorry, you've got to open up console to get the JSFiddle to demonstrate the issue.
Vue.js version
2.1.8
Reproduction Link
https://jsfiddle.net/briankung/3j8ghu71/2/
Steps to reproduce

Register a custom event listener on a component with v-on:updatedPoints
Emit an event with this.$emit('updatedPoints') - callback is not triggered
Emit a new event with this.$emit('updatedpoints') - callback is triggered

What is Expected?
Events emitted that match the case of the custom event should trigger the callback, or this caveat should be noted in the docs.
What is actually happening?
The event is not being triggered unless it is in lowercase.

HTML Attribute Names are case-insensitive and are converted to lowercase by the browser. Your v-on:updatedPoints is converted to v-on:updatedpoints by the browser.
A general convention I like to follow is to always use kebab-case when dealing with HTML, everywhere except attribute values, which can be any case (in Vue, attribute values can be treated like JS expressions).

Thanks for the clarification, and your rule of thumb makes sense. I
suspected it was something of that nature, but it is still surprising.
On Tue, Jan 10, 2017, 7:35 PM Matthew Pietz<EMAIL_ADDRESS>wrote:
HTML Attribute Names are case-insensitive and are converted to lowercase by
the browser. Your v-on:updatedPoints is converted to v-on:updatedpoints by
the browser.
A general convention I like to follow is to always use kebab-case when
dealing with HTML, everywhere except attribute values, which can be any
case (in Vue, attribute values can be treated like JS expressions).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/vuejs/vue/issues/4688#issuecomment-271752719, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACtGx6eXbuaUMTGbDs5G5afhqr87vo6hks5rRDHWgaJpZM4LgFQ4
.

Unfortunately this is not something Vue can fix, unless you use string templates instead of in-dom templates.

Understood. Would you mind if I opened up a pull request against the docs
making a note of this?
On Tue, Jan 10, 2017 at 9:21 PM, Evan You<EMAIL_ADDRESS>wrote:

Closed #4688 https://github.com/vuejs/vue/issues/4688.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/vuejs/vue/issues/4688#event-918534242, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ACtGx3CXG4NAu02Q0QV55cZmvILM7mc_ks5rRErWgaJpZM4LgFQ4
.

--
Brian Kung
http://about.me/briankung/
http://www.facebook.com/brian.kung http://www.linkedin.com/in/briankung
http://www.twitter.com/briankung
BE A UNICORN!


Using Yumi with ROS + MoveIt!

We have managed to get as far as having MoveIt (+ rviz) get the correct current position of the robot. However, when trying to execute a path to a goal position, the robot does not move.
In addition, there are no gripper topics listed. MoveIT complains about not having the gripper states:

We followed the instructions (after digging around in other branches to find the required backups (addition-demo, two-grippers realtime) ). We found someone with a similar issue
(https://github.com/OrebroUniversity/yumi/issues/21) but there were no detailed steps listed to solve the issue.
Any help would be appreciated.

We have managed to get as far as having MoveIt (+ rviz) get the correct current position of the robot. However, when trying to execute a path to a goal position, the robot does not move.
In addition, there are no gripper topics listed. MoveIT complains about not having the gripper states:
We followed the instructions (after digging around in other branches to find the required backups (addition-demo, two-grippers realtime) ). We found someone with a similar issue (OrebroUniversity#21) but there were no detailed steps listed to solve the issue.
Any help would be appreciated.

Adding   - gripper_l_joint and   - gripper_r_joint to the corresponding yaml files in src/yumi_support/config/ has solved this issue in my case.


Implementation of the state transition for verkle

When we will activate verkle we will have to do a transition of the state from PMT to verkle trie .
More info in this links :

https://notes.ethereum.org/@parithosh/verkle-transition
https://github.com/ethereum/EIPs/pull/8162

PR for this one https://github.com/hyperledger/besu/pull/7113


K8s Admin usability: Kotsadm component service names don't match deployment names

This is a pretty minor thing, but it seems like Kubernetes convention is for Service names to match Deployment names. We have, for deployments
NAME               READY   UP-TO-DATE   AVAILABLE   AGE
kotsadm            1/1     1            1           5h4m
kotsadm-api        1/1     1            1           5h4m

but the service name for kotsadm-api doesn't match:
NAME               TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)    AGE
kotsadm            ClusterIP   <IP_ADDRESS>   <none>        3000/TCP   5h4m
kotsadm-api-node   ClusterIP   <IP_ADDRESS>    <none>        3000/TCP   5h4m

@dexhorthy this is intentional. As we are working to remove the NodeJS deployment and service, those will be deleted and kotsadm deployment and service name will remain. These legacy, internal names are ok and in the process of being removed


Parparameter transformation cannot get form data after the parameter mapping

Custom add form data, ParamTransformPlugin cannot get.

hi, can you provide more detail info?

I customize the rpc plugin implementation and configure the param_mapping plugin.
{"removeParameterKeys":[],"replaceParameterKeys":[],"addParameterKeys":[{"path":"$","key":"keyIndex","value":"#{keyIndex}"}]}
Parparameter transformation cannot get keyIndex value, map is empty.
private Mono formData(final ServerWebExchange exchange, final ServerRequest serverRequest, final ShenyuPluginChain chain) {
return serverRequest.formData()
.switchIfEmpty(Mono.defer(() -> Mono.just(new LinkedMultiValueMap<>())))
.flatMap(map -> {
exchange.getAttributes().put(Constants.PARAM_TRANSFORM, HttpParamConverter.toMap(() -> map));
return chain.execute(exchange);
});
}

what's your custom plugin order, need  pay attention to the order of custom plugin execution

custom plugin order behind paramTransform

Fine, thx for your issue, i will verify it

Fine, thx for your issue, i will verify it

Thanks!

https://github.com/apache/incubator-shenyu/pull/1931
@JamieSlome HI, we will fix it on this pr.Thanks for your issue.


LanguagePickerItem: Reuse styles passed via context

Also remove componentStyles as it is not necessary after these changes.

Hmm, I'm not sure this is an improvement. Both of these shared styles just mean exactly their literal current contents -- it's not like they're things we might change the definition of centrally in order to make some uniform change across the app. The new version here is a bit shorter, but I'm not sure it's clearer.
@jackrzhang , what do you think about this change? See also #2636 for a couple more examples with flexed.

I also feel like there's some loss of clarity in reusing those particular styles. It would make sense to pass values for colors or font-sizes across the entire app, but it strikes me as really tricky to be reusing constant numerical values related to layout spacing. I think it could be clearer (and more maintainable) to keep numerical values for layout spacing local to components.
I'm also intrigued by miscStyles overall - a lot of the styles in miscStyles are only used once; it seems like a potential area for cleanup.
That being said, I haven't seen or read much about styles in React-Native, so I'm not sure if there are any unique conventions that I'm missing. Some more research would probably be good here :)

If our approach is to keep styles that affect a component, and isn't reused in many places, in that component's file itself, miscStyles could certainly use a cleanup.


[REQUEST] Event when there are no more online players in the server

Is your feature request related to a problem? Please describe.
I want to be able to run a command whenever a player leaves the server BUT only if there are no more players in the server.
Describe the solution you'd like
Possibly a server_empty event:
"server_empty": {
    "actions": [
        "nothing but chickens"
    ]
}

or a condition specifically for leave event:
"leave": {
    "actions": [
        "nothing but chickens",
        "/someServerCommandLikeBackup idk"
    ],
   "requiredOnlinePlayerCount": 0
}

Describe alternatives you've considered
I first tried this using execute command when the player leaves. It is possible to check if there are players in the server using execute if entity @a run someOtherCommand but there's no way to negate this condition (like a not option).
I understand this might be beyond the scope of this project (considering it's called "player" events) but I think this is still slightly relevant.

Thanks for the suggestion! I'll consider adding it in the next update


Make organisation search more accessible

:warning: This application is Continuously Deployed: :warning:

Merged changes are automatically deployed to staging and production.

Make sure you follow the guidance for deployments before you merge.

Check your branch is being deployed in the Release app, after merging.

What
Changes the search on https://www.gov.uk/government/organisations to be visually clearer and more accessible. Specifically:

replaces the existing label that looks like a heading with inline search input with a standard input component
updates the JS to add a result count and include aria-live attribute so screen readers hear the results of their search and know that something is happening
adds landmarks to the search and results to aid navigation

Before
After

Why
The existing search failed accessibility criteria.
Related to: https://github.com/alphagov/whitehall/pull/5788
Trello card: https://trello.com/c/XyOr5lMm/334-in-page-search-unclear-search-functionality-and-text-that-looks-like-headings

@owenatgov ah yes, I spotted that layout thing too, forgot to mention this PR: https://github.com/alphagov/govuk_publishing_components/pull/1679

@andysellick Ahaaaaaa good old legacy tooling. Will keep an eye on the other PR.

Ah duh it's been merged. I won't let it stop this one in that case.


Missing Debug impls for many types

Related to #170
A bunch of types are missing debug implementations, namely

CompositeSerializer
DefaultValidator
ArchiveValidator
PrefixRange
SharedValidator
SuffixRange
Pretty much everything in rkyv::ser::serializers

Related to #170

Fixed by 964aef7a99d1d5310e3def6cf0e51bd163162cad


Update Pandoc API to 1.23

pandoc-types recently got a new minor version (1.23, see https://github.com/jgm/pandoc-types/blob/master/changelog) which added a Figure block.
This pull request adds this block type and the slight change in the testcase output (one of the images produced different output, preserving more of the input attributes, nothing else changed).
It also changes the minor version since this is a breaking change (pandoc only accepts the API version it was build with).
Since I could not detect any particular ordering, I added the new enum variants and match arms at the bottom. If there is a specific order I can change the pull request.

Ok, I changed the ordering and redid the commits.
Saw the pattern in IterBlocks too late, that's why I pushed twice.
I also changed the Pandoc version used in tests to the latest version as per https://pandoc.org/releases.html.
Since this will break compatibility with pandoc versions shipped with Debian (and others, I haven't checked), should I add some kind of compatibility table to the README? Something that will answer the question of "I have this version of Pandoc, which version of the library should I use?".

Thanks again!
The version support table looks like a good idea, but we can do it in a follow-up PR. Since this is already working, I'm taking it as-is.


Add support for appengine

Hi.
I want to use this great library with appengine.
But appengine does not allow import syscall package,
so always build fails like below
2017/06/28 11:03:03 go-app-builder: Failed parsing input: parser: bad import "syscall" in github.com/headzoo/surf/agent/agent.go from GOPATH

I fixed a this problem using build tag. (it might be workaround, but I think works well)
refs #49

We've really got to do something about that agent package. Having to add explicit support for every platform is significantly gross.

Until we've got a better approach for the agent package, I'm happy to merge this if @headzoo is.

@lxt2 Looks good to me.


docs: Make the configuration avoidance API table more readable

Context
The current table at https://docs.gradle.org/current/userguide/task_configuration_avoidance.html#sec:old_vs_new_configuration_api_overview is hard to read as old and new value are below each other instead of next to each other, and prefixed with distracting "Instead of:" and "Use:" terms.
Contributor Checklist

[x] Review Contribution Guidelines
[x] Make sure that all commits are signed off to indicate that you agree to the terms of Developer Certificate of Origin.
[x] Make sure all contributed code can be distributed under the terms of the Apache License 2.0, e.g. the code was written by yourself or the original code is licensed under a license compatible to Apache License 2.0.
[x] Check "Allow edit from maintainers" option in pull request so that additional changes can be pushed by Gradle team
[ ] Provide integration tests (under <subproject>/src/integTest) to verify changes from a user perspective
[ ] Provide unit tests (under <subproject>/src/test) to verify logic
[x] Update User Guide, DSL Reference, and Javadoc for public-facing changes
[x] Ensure that tests pass sanity check: ./gradlew sanityCheck
[x] Ensure that tests pass locally: ./gradlew <changed-subproject>:quickTest

Gradle Core Team Checklist

[ ] Verify design and implementation
[ ] Verify test coverage and CI build status
[ ] Verify documentation

Screenshot of the new layout:

Let's make the new table 3 columns and not just 2 to make it clearer to the user.

I've actually considered doing that, but deliberately decided against that for the following reasons:

The table uses alternating background colors for rows. In my proposed layout, notes are always displayed in rows with a dimmed background, making them distinct from the "real deal rows" of comparing old vs new API.
With 3 columns the table gets wider, resulting in wrapping of cell contents, making the table actually less readable IMO.

So I'd clearly prefer to stick to the proposed layout.

So I'd clearly prefer to stick to the proposed layout.

@lkasso does that make sense to you?

Hey @sschuberth, this makes sense, but I have two problems:

The table layout doesn't make sense for all items in the table. For example, when an entry is "This returns a TaskProvider instead of a Task." it doesn't immediately let the user which API is which.
Tables have to be the same format across the entire documentation, so I would have to change all the other tables as part of this PR as well.

I agree the current doc is also confusing.

Sorry for the late reply.

The table layout doesn't make sense for all items in the table. For example, when an entry is "This returns a TaskProvider instead of a Task." it doesn't immediately let the user know which API is which.

IMO this could be easily addressed by slightly rewording those sentences.

 Also, how does your proposal to use 3 columns fit to this requirement?

Proposal to make it more readable:

What I still like better in my proposal is that all rows with notes get a different background color due to the alternating row colors assigned to all tables. I.e. everything with a dimmed background is less important as it's just a note.
On the other hand, when putting the same information into all rows, the background row color has no meaning anymore.

@sschuberth, let's go ahead and merge for now.
I can look into it when I go over this section later this year during my general doc review/update cycle.

@bot-gradle test and merge

Your PR is queued. See the queue page for details.

I've triggered a build for you. Click here to see all failures if there's any.


rewrite the django api to have id end points

remove the list view and create individual end points

didn't remove list view as it is needed for ember data added season endpoints so ember data has those as well


No typescript types found

Issue
With dd4bb1f9482c055e9b2bbccfc573d9074071c4ba having removed the types key in exports the typescript compiler doesn't know where the types are. The following error is thrown:
Could not find a declaration file for module 'react-snow-overlay'. '/home/jake/Desktop/projects/website/node_modules/react-snow-overlay/packages/react-snow-overlay/dist/index.es.js' implicitly has an 'any' type.
  There are types at '/home/jake/Desktop/projects/website/node_modules/react-snow-overlay/packages/react-snow-overlay/dist/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'react-snow-overlay' library may need to update its package.json or typings.

Solution
Revert the commit? I don't know what warning it caused on build but it might be worth it to investigate how it's supposed to be defined because without dd4bb1f9482c055e9b2bbccfc573d9074071c4ba it works flawlessly

Thanks a lot for flagging @jake8655 ! Weird that this line doesn't work
This has now been reverted and published as version 1.0.12

Thank you for your quick responses and great work @C-o-d-e-C-o-w-b-o-y !


https://www.haskell.org/news: Internal Server Error as of 12:23 pm GMT, Nov 9, 2018

Since it's not looking like the haskellnews problem is going to be fixed any time soon, wouldn't it be better to temporarily remove the News link from the haskell.org front page?

Yes, it would.  Otherwise it can lead the undiscerning visitor to think that Haskell - the language, not the news - is no longer getting updates, in other words it's dead.  I'd expect Haskell.org to receive many first-time visitors and that creates a bad impression.

for now we've got it entirely disabled until someone wants to write/run a new news aggregator service.


Add asan suppression for external library

Codecov Report

Merging #274 (c270019) into main (2161e44) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head c270019 differs from pull request most recent head 74cc754. Consider uploading reports for the commit 74cc754 to get more accurate results

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.
Additional details and impacted files

@@           Coverage Diff           @@
##             main     #274   +/-   ##
=======================================
  Coverage   74.72%   74.72%
=======================================
  Files          26       26
  Lines        3185     3185
=======================================
  Hits         2380     2380
  Misses        805      805

Flag
Coverage Δ

cxx
87.92% <ø> (ø)

python
69.95% <ø> (ø)

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

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 2161e44...74cc754. Read the comment docs.


Folder icon doesn't appear correctly

In the above screenshot src/ is a folder, but the icon doesn't show correctly.
My Configuration is copy and pasted from the README of lir.nvim.

All other icons seem to appear correctly.

Found a workaround when adding this to my packer config:
use { "kyazdani42/nvim-web-devicons", commit = "c8ce86df2ee0f5bb455c4188c8a4c77d3c9ef714" }

It seemed that I needed to use require'nvim-web-devicons'.set_icon(...) instead of require'nvim-web-devicons'.setup(...).
README.md is now fixed.