Please add the FreeBSD usage instructions

You should include the FreeBSD usage section:
It is recommended that DNS requests are cached using nscd(8).

Enable nscd daemon with the command:

# sysrc nscd_enable="YES""

Start nscd daemon with the command:

# service nscd start

Enable nscd DNS cache by changing the "hosts" line in /etc/nsswitch.conf to: 'hosts: cache files dns'

Thanks @yurivict.
Can somebody on FreeBSD confirm this for me?  A pull request would be great :-)

I still need someone to try this n FreeBSD.

Hi, I just tried this on my FreeBSD 11.1 box and it appears to work. I manually added the line nscd_enable="YES" to my /etc/rc.conf file rather than use the sysrc utility. That is just personal preference I think. My only comment on the whole method is that using nscd at all is optional. It will improve performance by caching the results of /etc/hosts but I think this is going to be of marginal benefit for my usage scenario.

Thank you for the input, Thomas @Guymer!

So is there really anything that needs to be added for FreeBSD?  Sounds like these instructions weren't actually needed perhaps (can't confirm personally unfortunately)?

I think a comment in the Reloading Hosts File section about enabling nscd and using nscd.conf on FreeBSD would be beneficial. The only difference between what I did and what @yurivict did was exactly how we each enabled nscd in rc.conf. @yurivict's way is safer for new FreeBSD users.

@Guymer : So what command would they use to clear the DNS cache after they have enabled nscd (didn't realize it wasn't enabled by default)?  Something along the lines of nscd --invalidate=????

@gfyoung : You can either restart the machine or run service nscd restart (as root) to restart the nscd service.

@Guymer : Gotcha.  Just to double check:

The commands for enabling ncsd from @yurivict require root as well?
What is the full path to the nscd daemon? (e.g. /etc/inid.d/nscd) ?

@gfyoung :

yes, the commands to enable ncsd from @yurivict  require root; and
the full path to the nscd service script is /etc/rc.d/nscd and the full path to the nscd binary is /usr/sbin/nscd (though this really should not be relevant).

(though this really should not be relevant).

@Guymer : If you look at our code, we already have a section of logic for nscd.  Hence, I wanted to double check that we could just incorporate it into that section instead of writing custom logic for FreeBSD, hence the relevance.

Thanks everybody!


Setup-your-project - need exact versions to install to avoid errors

https://github.com/SimCoderYoutube/InstagramClone/wiki/Setup-your-project
Need to install the exact version of node, npm, and expo that were used to create the project.
Example: saying "npm i -g expo-cli" will never work, there are too many things changing all the time - need to install the version of expo-cli that were used to create the project.
npm i -g expo-cli
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm WARN deprecated<EMAIL_ADDRESS>See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated<EMAIL_ADDRESS>Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated<EMAIL_ADDRESS>https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated<EMAIL_ADDRESS>See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated<EMAIL_ADDRESS>Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated<EMAIL_ADDRESS>Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
npm WARN deprecated<EMAIL_ADDRESS>The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated<EMAIL_ADDRESS>Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated<EMAIL_ADDRESS>This SVGO version is no longer supported. Upgrade to v2.x.x.

Example: saying "npm install expo"
InstagramClone\frontend> npm install expo
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@react-native-community/slider
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/expo-video-player
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users...\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR!      C:\Users...\AppData\Local\npm-cache_logs\2022-08-11T16_55_37_927Z-debug-0.log

Hi, where you able to get this project to work?

I know a little bit more now about JS frameworks, and have installed a bunch more stuff for other projects, and now it works.
But "npm install expo" in the frontend folder breaks
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found<EMAIL_ADDRESS>npm ERR! node_modules/@react-native-community/slider
npm ERR<EMAIL_ADDRESS>from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer<EMAIL_ADDRESS>from<EMAIL_ADDRESS>npm ERR! node_modules/expo-video-player
npm ERR<EMAIL_ADDRESS>from the root project

I think exact version can be found in the package.json file: "expo": "~42.0.3",


[Bug] [UI] pagination query cannot be used

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
Version 3.2.1 pagination query cannot be used
What you expected to happen
Can system bugs be fixed
How to reproduce
Open the workflow list and click the previous or next page buttons
Anything else
No response
Version
3.2.x
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

This will be fixed in #15619.


Enhancing SORT functionality to match current querying capabilities on list entries

Problem
The new option for querying on an entry in a collection, as introduced in Core 14.0.0 and now supported in Realm 2.0.0, is great. However, the functionalities supported for sorting are unfortunately much more limited in general.
For my use case, it's required to sort by the first element in a list. To achieve this, I currently store a separate, redundant object. Therefore, it would be highly beneficial to extend the querying capabilities, now available, to sorting as well. Are there any plans for this?
Solution
No response
Alternatives
No response
How important is this improvement for you?
I would like to have it but have a workaround
Feature would mainly be used with
Local Database only

Moving this to realm-core as that's where the query engine resides.


Selectors are moved above @import with restructuring on and --skip-import

Seems like @import rules are not kept on top when restructuring. When skipping processing of @import rules and using advanced optimization with restructuring, some properties can end up above @import rules which are correctly at the top, thus breaking the generated CSS.
This CSS:
@charset "UTF-8";
@import url(http://fonts.googleapis.com/css?family=Lora:400,700);
a {
	width: 100px;
}
div {
	color: red;
}
.one {
	display: block;
}
.two {
	color: red;
	display: inline;
}

will end up as:
@charset "UTF-8";.two,div{color:red}@import url(http://fonts.googleapis.com/css?family=Lora:400,700);a{width:100px}.one{display:block}.two{display:inline}

instead of:
@charset "UTF-8";@import url(http://fonts.googleapis.com/css?family=Lora:400,700);.two,div{color:red}a{width:100px}.one{display:block}.two{display:inline}

Glad I found this, thought I was going crazy when all my fonts broke. Thanks for the fix.

I'll merge and release it tomorrow morning. Sorry for the trouble - use restructuring: false in the meantime.

Just ran into this today with our dist files. Glad I found this thread. Thanks for the fix.


Grid side margins

Hi all,
why does Neat doen't have a margin on both side of the outer-container ?
When browser is smaller than the $max-width size, and before the first breakpoint, it cause some ugly layout, because the website doesn't have space on sides.
Screenshot from neat.io
Many grid provides that feature, as the (old and) famous 960gs, which is 940 + 20px margin.
What I did to to fix that :
A .wrap div which has the $max-width and $gutter x 2 size, with padding: 0 $gutter;. (with border-box box-model).
Maybe not the best solution…would you recommand something better ?
Thanks a lot for you help !

I had the same issue. @philippebarbosa thanks for a proposed solution!


[BUG] Subheaders overlap with variable title in Unity

Describe the bug
Subheaders overlap with variable titles for the DiscordManager.cs script in the Inspector in Unity.
To Reproduce
Steps to reproduce the behavior:

Download the UnityPackage from Artifacts
Import it to Unity
Open the example scene
See overlapping text

Expected behavior
The subheaders should be above the text. (Not necessary but would make the Inspector look a lot better)
Desktop (please complete the following information):

OS: Windows 10
Framework: Unity
Version: Latest from Artifact

Additional context
Add any other context about the problem here.

This has been fixed.
Seems that Unity 2020 and above vertically centres labels now.


ion-slides with looping turned on: ion-slide loses click event on wrap

Ionic version:  (check one with "x")
[ ] 1.x
[X] 2.x
I'm submitting a ...  (check one with "x")
[X] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
Creating an ion-slides component with 3 ion-slide components inside, and setting the loop option to true, then navigating from the first slide to the last (by looping around), the click event stops working until I navigate to another slide by NOT looping around.
Expected behavior:
The onClick() method should get called after the ion-slides component wraps around and I click on the slide.
Steps to reproduce:
http://plnkr.co/edit/8PU8E7jjcxEAUgScegtl?p=preview
Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):
Cordova CLI: 6.4.0
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
ios-deploy version: Not installed
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v7.2.0
Xcode version: Xcode 8.2 Build version 8C30a

Can confirm. Will revisit post 2.0 final.


[BUG] bufferRequestRGBA doesn't show the point

Hi. Thanks for your project.
I ran the demo_ios_11. It worked for iPhone 6 and above. It crashed in iPhone 4/4s/5/5s.
When I change bufferRequestRGBA from No to Yes. The camera with face landmark doesn't show anything.
Can you fix it?
Thanks.

Aha, the device below 5s can upgrade to ios11?
And to use rgba data, you should change kCGImagePropertyOrientationRight to orientation-up, but this way is much slower.

It's a bug of the library.
return YES at last may fix that.
I'll push a fix for that


You need a module manifest

You need a module manifest: https://www.reddit.com/r/PowerShell/comments/occgr2/powershell_script_for_checking_spf_dkim_and_dmarc/h44b2n2?utm_source=share&utm_medium=web2x&context=3

Fixed in version 1.4


Is there a way to unfreeze a frozen instance?

Dear @diegojromerolopez
Thank you for this nice piece of software!
I need a frozen instance that I later can make a unfrozen (deep-)copy of. This is used for IMHO typical  (scientific) data processing chains:

Calculate a instance of an intermediate result A and store it frozen (e.g. load a dataset)
Calculate a result B that depend on A but shares the same metadata (e.g. b = filter(A), or B= smooth(A))
Store B frozen
...

In your documentation you stated that (deep-)copy of a frozen instance is not possible.
So I see two ways to achieve this goal:

There may be a way to unfreeze a frozen instance?
There may be a way to access the original instance below the frozen structural sharing?

Any help appreciated
Cheers,
Volker

Hello volkerjaenisch
Glad you find this project interesting and useful!
At the moment there is no way to unfreeze an instance, nor a way to get the original instance. I suppose you could have a side-effect in the on_freeze function, but that's not an elegant solution at all.
However, it's an interesting feature so I'm going to take a look and see if I can have a solution for this in a couple of days.
Best regards.

Hello @diegojromerolopez
Thank you very much for the fast response. I would be really happy if a solution could be found.
I am staying tuned.
Volker

@volkerjaenisch I have a possible solution for your problem in this PR: https://github.com/diegojromerolopez/gelidum/pull/22 please, check it out and see if it suits your needs.
Otherwise, could you give me a mock example of the pipeline you're trying to implement (for example using a toy dataset)? That way I could have a more clear idea of your use-case.

Nice, keep me posted!


Add "Live feed snippet code" field to bot

Right now, the live feed is hard coded to stream the bot feed in @roryaronson 's front yard, but this will need to change before launch,
It seems like different users are going to host their live feeds in different ways. Since we don't support it natively, it might be better to give the user a field to paste in their own live feed code snippet (however they chose to implement it is up to them- we can suggest a few solutions also). This would be a very easy to implement solution on the backend.

+1, I think this will be useful for the birds eye view camera, or whatever other views the user wants.
As a second issue, I'd like to get an onbaord camera that can more closely see the action. This camera would be hooked up to the main pi and hopefully be supported out of the box


strandedeness_check tool shouldn't use an ENTRYPOINT in its docker image

The image listed here:
https://github.com/genome/analysis-workflows/blob/93656ed6582073e434eab168c610625a835dce37/definitions/tools/strandedness_check.cwl#L28
uses an ENTRYPOINT specification, but Cromwell requires being able to run /bin/bash itself and thus the workflow will fail.
(On a certain internal cluster, the newer docker wrapper for LSF automatically clears all ENTRYPOINTs, so testing that way won't uncover this issue. Use docker0 instead to see it!)
(Ideally we'd point to an image in our genome organization, too!)

I made a PR for a new repo within our organization: https://github.com/genome/docker-checkstrandedness/pull/1 If it looks okay I'll use it as the basis for the new versioned release.


Installation is broken - permission denied when pulling 'vscode-spectral'

Problem description
When a user does not have a GitHub account or has not added their SSH key to their GitHub account, they may get this error in a loop:
$ yarn install v1.22.19
... [Omitted for brevity]
$ ./script/vscode-spectral-build.sh
Cloning into 'vscode-spectral'...
<EMAIL_ADDRESS>Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
./script/vscode-spectral-build.sh: line 14: cd: /Users/<redacted>/Downloads/spectral-language-server-master/script/../tmp/vscode-spectral: No such file or directory
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
fatal: not a git repository (or any of the parent directories): .git
./script/vscode-spectral-build.sh: line 20: cd: /Users/<redacted>/Downloads/spectral-language-server-master/script/../tmp/vscode-spectral: No such file or directory
yarn config v1.22.19
warning ../../package.json: No license field
success Set "ignore-engines" to "true".
✨  Done in 0.03s.
yarn install v1.22.19
warning ../../package.json: No license field
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] 🔍  Resolving packages...
success Already up-to-date.

Proposed solution
In order to avoid this, cloning using HTTPS should be used instead.

I suspect that by extension, it leads to this error:
$ npm i -g spectral-language-server
npm WARN deprecated<EMAIL_ADDRESS>Please use @jridgewell/sourcemap-codec instead
npm ERR! code 127
npm ERR! path /usr/local/lib/node_modules/spectral-language-server
npm ERR! command failed
npm ERR! command sh -c ./script/vscode-spectral-build.sh
npm ERR! sh: ./script/vscode-spectral-build.sh: No such file or directory

npm ERR!      /Users/<redacted>/.npm/_logs/2023-02-09T16_34_27_755Z-debug-0.log

since in the aforementioned logs, this can be found:
1355 info run<EMAIL_ADDRESS>postinstall node_modules/spectral-language-server ./script/vscode-spectral-build.sh
1356 info run<EMAIL_ADDRESS>postinstall { code: 127, signal: null }
1357 timing reify:rollback:createSparse Completed in 475ms
1358 timing reify:rollback:retireShallow Completed in 0ms
1359 timing command:i Completed in 7798ms
1360 verbose stack Error: command failed
1360 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:53:27)
1360 verbose stack     at ChildProcess.emit (node:events:512:28)
1360 verbose stack     at maybeClose (node:internal/child_process:1098:16)
1360 verbose stack     at Socket.<anonymous> (node:internal/child_process:456:11)
1360 verbose stack     at Socket.emit (node:events:512:28)
1360 verbose stack     at Pipe.<anonymous> (node:net:316:12)
1361 verbose pkgid<EMAIL_ADDRESS>1362 verbose cwd /Users/<redacted>/Downloads
1363 verbose Darwin 22.3.0
1364 verbose node v19.5.0
1365 verbose npm  v9.3.1
1366 error code 127
1367 error path /usr/local/lib/node_modules/spectral-language-server
1368 error command failed
1369 error command sh -c ./script/vscode-spectral-build.sh
1370 error sh: ./script/vscode-spectral-build.sh: No such file or directory
1371 verbose exit 127
1372 timing npm Completed in 7844ms
1373 verbose unfinished npm timer reify<PHONE_NUMBER>802
1374 verbose unfinished npm timer reify:build<PHONE_NUMBER>591
1375 verbose unfinished npm timer build<PHONE_NUMBER>591
1376 verbose unfinished npm timer build:deps<PHONE_NUMBER>591
1377 verbose unfinished npm timer build:run:postinstall<PHONE_NUMBER>109
1378 verbose unfinished npm timer build:run:postinstall:node_modules/spectral-language-server<PHONE_NUMBER>109
1379 verbose code 127


Kirikiri using .txt scenario files

I've only found this for one game, Ushinawareta Mirai o Motomete, but its scenario files are not put in either .scn or .ks, but are just in plain .txt files instead. Is it possible to update the code to include functionality for Kirikiri games that use .txt files? Or is it such a rarity that it's not worth the effort? I've included the scenario files.
Waramete scenario.zip

Yea, you can
1st :This code to KirikiriTxtScript : KirikiriKsScript and extension to txt
2nd: This line, add another line for **new KirikiriTxtScript()
3rd: Add another line for KirikiriTxtscript

new KirikiriTxtScript()

This worked, at least to rip the script lines, but it didn't rip the character names, which in the .txt files are bounded by【 】. I know that KirikiriKsScript.cs has this code, so it should have picked up the names, but it didn't for some reason. I noticed that it's treating the lines starting with # as names per this code, but I couldn't figure out how to ignore the # and tell it to point to the 【 】for names.

A much easier way of making VNTextPatch read .txt files as Kirikiri scripts (without making any code changes) is to pass --format=kirikiriks to the command line. I added this to the readme.
That being said, for this game it doesn't make sense to have VNTextPatch treat the .txt files as Kirikiri scripts because... they're evidently not Kirikiri scripts. It's already suspicious enough that there's a mix of .ks and .txt (normally it's either one or the other), but the syntax is also completely different. Apparently, the developer took the Kirikiri engine and created their own custom script format on top of it, which VNTextPatch doesn't support.
Since this will be a rare format and considering you already managed to mostly implement it yourself, I'll close this issue.


Make ConcurrencyTests passed on macOS 10.15.7

These two tests didn't pass on macOS 10.15.7.
testReceiveWithLogging
testReceiveOnFailure
But to be honest, I don't know why. Just check the error message and fix the assertion.

Force-pushed for mistakes, I accidentally commit something on the branch.

I've been super busy this week. I hope to review this weekend.


Added --public flag for publish

defaults to private for publishing
Fixes: https://github.com/spark/particle-cli/issues/132
This should not be merged in until i write up some docs and confirm the syntax with @nexxy

Signed-off-by: Kenneth Lim<EMAIL_ADDRESS>

KENMBP:particle-cli kennethlimcp$ node app.js publish my-event
Published private event: my-event

KENMBP:particle-cli kennethlimcp$ node app.js publish my-event --public
Published public event: my-event

KENMBP:particle-cli kennethlimcp$ node app.js publish my-event someData --public
Published public event: my-event

KENMBP:particle-cli kennethlimcp$ node app.js publish my-event someData
Published private event: my-event

KENMBP:particle-cli kennethlimcp$

I'd prefer for events to be public by default (like the firmware API) and add a --private flag. (Keep --public in case people want to be explicit about it to make scripts easier to read.)

@m-mcgowan, i changed it to the --private flag that sets it to private and defaults to private: true but skipped keeping the --public flag everything without --private flag will be just set to public.
Thoughts?

Sounds good, but for me I'm a fan of having an explicit option for every default option. But that's just a matter of taste, so you're free to leave it.

@kennethlimcp Thanks for the PR! Please fix the one issue and then I will merge.


IdGenerator does not contain a definition for 'Take'

In the documentation, it shows that the generator can create specified numbers of Ids by using generator.Take(100). However the .NET compiler throws an error "Compilation error (line 10, col 28): 'IdGenerator' does not contain a definition for 'Take' and no accessible extension method 'Take'..."
using System;
using IdGen;

public class Program
{
	public static void Main()
	{
		Console.WriteLine("Hello World");
		var generator = new IdGenerator(0);
               var id = generator.Take(100);

	}
}

Compilation error (line 10, col 28): 'IdGenerator' does not contain a definition for 'Take' and no accessible extension method 'Take' accepting a first argument of type 'IdGenerator' could be found (are you missing a using directive or an assembly reference?)

You need to add a using System.Linq since Take() is a Linq extension method.


Change include paths to also support Windows

@gromakovsky CI passes now for Linux/Windows/OSX. Review and merge :)

Cool, I didn't know that \ can work on Linux

Me neither :)


odb schema Signed-off-by: Andy Fox<EMAIL_ADDRESS>

Third attempt at clean pull request with everything signed, some minor clean up (though still not passing ctidy)
Seems to pass DCO checks and regressions so ready for review.

DCO passes :)


Add owners endpoint

Need to add:

Owners endpoint for story(/projects/{project_id}/stories/{story_id}/owners) https://www.pivotaltracker.com/help/api/rest/v5#projects_project_id_stories_story_id_owners_get
Add method to story resource to parse owners for story.
Tests.

You can get the owners now using the fields param and eager loading.
client.project.stories(fields: ':default,owners')
project.story(story_id, fields: ':default,owners')

We can also add a method on story to get the owners lazily if they were not already retrieved similar to comments and tasks.
https://github.com/dashofcode/tracker_api/blob/master/lib/tracker_api/resources/story.rb#L72-72

Yea, I want to do similar to
https://github.com/dashofcode/tracker_api/blob/master/lib/tracker_api/resources/story.rb#L72-72
Can you test this? This isn't work for me. Response has empty owners. vvv
client.project.stories(fields: ':default,owners')
project.story(story_id, fields: ':default,owners')

Example:
[8] pry(#<JiraToPivotal::Pivotal::Project>)> @project.story(95351028, {fields: ':default,owners'} ).owner_ids
=> [1509820]
[9] pry(#<JiraToPivotal::Pivotal::Project>)> @project.story(95351028, {fields: ':default,owners'} ).owners
=> []

I confirmed the behavior. I think this is a bug in Pivotal Tracker's API
and sent them an email regarding this.
You can get the owned_by person object, but you will just get the first
owner this way and not all the owners.
project.story(story_id, fields: ':default,owned_by')
On Thu, Jul 2, 2015 at 6:53 AM Sergey Ovsiannikov<EMAIL_ADDRESS>wrote:

Yea, I want to do similar to
https://github.com/dashofcode/tracker_api/blob/master/lib/tracker_api/resources/story.rb#L72-72
Can you test this? This isn't work for me. Response has empty owners. vvv
client.project.stories(fields: ':default,owners')
project.story(story_id, fields: ':default,owners')
Example:
[8] pry(#JiraToPivotal::Pivotal::Project)> @project.story(95351028, {fields: ':default,owners'} ).owner_ids
=> [1509820]
[9] pry(#JiraToPivotal::Pivotal::Project)> @project.story(95351028, {fields: ':default,owners'} ).owners
=> []
—
Reply to this email directly or view it on GitHub
https://github.com/dashofcode/tracker_api/issues/50#issuecomment-118039757
.

I got confirmation that this is a Pivotal Tracker API bug. Here is their response with a temporary workaround.

Thanks for contacting us and taking the time to let us know about this issue. I'm sorry you discovered it before we did.
Thanks so much for including the example showing the exact issue.
I've created a story to address this issue and we will update you when a fix has been deployed.
Meanwhile, you can work around the problem by leaving out :default. For example,
curl -X GET -H "X-TrackerToken: $TOKEN" "https://www.pivotaltracker.com/services/v5/projects/${PROJECT_ID}/stories/${STORY_ID}?fields=owners"
will return the hydrated owners.
It's inconvenient since you'll have to type out all the fields you want in the fields=, but at least you can get the information back.
I'll report back here when they deploy a fix.

Ok, thanks.

Eager loading is still broken for story.owners until Pivotal addresses the issue, but lazing loading was added in #52. This should keep you going.


date formatting question

Is there anyway to control the date display format?
From https://github.com/sissbruecker/linkding/issues/240#issuecomment-1126579769 I'm now using absolute date formats in the settings - but I'd like ISO format dates, i.e. 2022-05-14.
I poked around https://docs.djangoproject.com/en/4.0/ref/settings/#date-format and the best I can come up with is hacking the base.py:
diff --git a/siteroot/settings/base.py b/siteroot/settings/base.py
index ca522e8..eac955d 100644
--- a/siteroot/settings/base.py
+++ b/siteroot/settings/base.py
@@ -122,6 +122,10 @@ USE_I18N = True
 USE_L10N = True

 USE_TZ = True
+USE_L10N = False ## clach04 hack, hopefully force usage of SHORT_DATE_FORMAT https://docs.djangoproject.com/en/4.
0/ref/settings/#date-format
+SHORT_DATE_FORMAT = 'Y-m-d'  ## clach04 hack
+DATE_FORMAT = 'Y-m-d'  ## clach04 hack
+

 # Static files (CSS, JavaScript, Images)
 # https://docs.djangoproject.com/en/2.2/howto/static-files/

I'm sure there is a better way.

That looks correct, the bookmark date display is using Django's SHORT_DATE_FORMAT: https://github.com/sissbruecker/linkding/blob/master/bookmarks/utils.py#L34
If I remember correctly by default Django uses a format the matches the locale that was detected from the request, so it should be localized. The is no user setting for the date format ATM, so modifying the Django settings is the best way to do it.
If you want to override it you don't necessarily have to modify the base settings file. There's also an option to mount a custom.py settings file into the container, which will then automatically be picked up by the application: https://github.com/sissbruecker/linkding/blob/master/siteroot/settings/custom.py. The mount path should be something like /etc/linkding/siteroot/settings/custom.py.

Closing as answered


Show coupon codes banner at end of single product view

with some kind of timer if possible

if referrer is social, show social coupon


[HeroSystem6eHeroic] Added option for 'Takes No STUN' power effects

Submission Checklist
Required

[X] The pull request title clearly contains the name of the sheet I am editing.
[X] The pull request title clearly states the type of change I am submitting (New Sheet/New Feature/Bugfix/etc.).
[X] The pull request makes changes to files in only one sub-folder.
[X] The pull request does not contain changes to any json files in the translations folder (translation.json is permitted)

New Sheet Details

The name of this game is: <   >  (i.e. Dungeons & Dragons 5th Edition, The Dresden Files RPG)

The publisher of this game is: <   > (i.e. Wizards of the Coast, Evil Hat)

The name of this game system/family is: <   > (i.e. Dungeons & Dragons, FATE)

[ ] I have followed the Character Sheets Standards when building this sheet.

[ ] This sheet has been made on behalf of, or by, the game's publisher.
[ ] This game is not a traditionally published game, but a copy of the game rules can be purchased/downloaded/found at: <   >
[ ] This sheet is for an unofficial fan game, modification to an existing game, or a homebrew system.

Changes / Description

Added 'Takes No STUN' power effects to the list of options. This feature would be typically used for undead, robots, golems, and other types of automaton NPCs. With the option set, STUN no longer counts towards character costs and cannot be recovered through healing or aid.

Character Sheet Info Roll20 Internal Use only.


vDevModeKeyProvisioning

Hi
I want to know at which memory location the privatekey and client certificate are written and how to verify if the private key and client certificate are being written ?
Thanks
Surya

Hi Surya,
I am not sure which ESP32 you are using, but I am assuming you are using the ESP-32 devkitc or ESP-32 wrover kit, and not the ESP-32 boards that have a secure element on board. The answer is different if that is the case.
The private key and public key are written to flash using NVS and placed in the storage partition. You can check if they are written by using the PKCS #11 interface to "find" the objects. See the example here: https://github.com/aws/amazon-freertos/blob/441e02e3776833b436c9d69859d28a01bd29fa84/libraries/abstractions/pkcs11/test/iot_test_pkcs11.c#L597.
Some documentation that would be helpful:

https://docs.aws.amazon.com/embedded-csdk/latest/lib-ref/libraries/standard/corePKCS11/docs/doxygen/output/html/core__pkcs11_8c.html
https://docs.aws.amazon.com/embedded-csdk/latest/lib-ref/libraries/standard/corePKCS11/docs/doxygen/output/html/core__pkcs11__pal_8h.html
https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/storage/nvs_flash.html
https://github.com/aws/amazon-freertos/blob/4e8219e0923d459900924ff760ac492224b131fb/vendors/espressif/boards/esp32/aws_demos/partition-table.csv

Thanks,
Carl

@surya-teja-p,
Did @lundinc2's answer help with your question? Are you looking for any further help from us?

Hello @surya-teja-p,
I am closing this as a stale issue. Please re-open this if you have any further questions!


Create a gh-pages branch

Create a gh-pages branch for our helm indexer to create the index.yaml file.  This branch can be blank with no files in it.
git checkout -b gh-pages
git push origin head

@exu can you please do this when you have time


Toasts should not autohide when hovered or when focus is inside

For accessibility and usability reasons, if an autohiding toast is hovered with the mouse, or when :focus-within, it should prevent the autohiding / reset the delay (so when not hovered anymore / when focus moves out again, the delay kicks in again and eventually the toast does hide).
Due to :focus-within, probably can only target v5 - unless extra work is done in JS to check document.activeElement and to verify if it's a child element of the toast.

i'll work on this.


Compile command suppresses compiler warnings

node -v
v16.13.2
npm i -g everdev
npx everdev sol set --compiler latest --linker latest
wget --quiet https://raw.githubusercontent.com/ilyar/everscale-escrow/56b8ab4b8c2cb69a21300aef186472e06d8473dc/Escrow.sol
npx everdev sol compile Escrow.sol
# suppresses compiler warnings

expect
~/.everdev/solidity/solc Escrow.sol
Code was generated and saved to file Escrow.code
ABI was generated and saved to file Escrow.abi.json
Warning: Have no effect in TON. Delete this.
--> /home/ilyar/np/everdev/local/Escrow.sol:30:5:
|
30 |     payable
|     ^^^^^^^

Thanks! Will check!)

Hi, @ilyar!
This issue has been fixed in the latest version of everdev. Can you test it?

Fixed in 1.1.0, see https://github.com/tonlabs/everdev/blob/main/CHANGELOG.md#fixed-1


Documentation Enhancement

This PR adds missing guidelines for contribution as a developer

Use of dev branch instead of the main branch Generally newcomers face issues here
PULL-REQUEST procedure
Registration for LFX EasyCLA.
Windows issue easy solution
Asking for Review

this PR fixes issue #850

hey @aaronreed708 this PR is ready for review

asking for the review part the newcomers don't have access to select reviewers on their PR they can only ping the selected reviewers on a PR.
only a maintainer can do that.
So the best thing they can do is to tag the reviewers in comments.

hey @aaronreed708  this is up for a final review.


Forge fmt sometimes introduces incorrect spacing for multi-line comments with wrap_comments enabled

Component
Forge
Have you ensured that all of these are up to date?

[x] Foundry
[x] Foundryup

What version of Foundry are you on?
forge 0.2.0 (9256265 2023-01-12T00:04:39.480435Z)
What command(s) is the bug in?
fmt
Operating System
None
Describe the bug
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

contract WeirdCommentFormat {
    function weirdComment() internal pure {
        assembly {
            /*
             * Checks:
             * 1. Order parameters struct offset == 0x20
             * 2. Additional recipients arr offset == 0x240
             * 3. Signature offset == 0x260 + (recipients.length * 0x40)
             * 4. BasicOrderType between 0 and 23 (i.e. < 24)
             */
        }
    }
}

becomes
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

contract WeirdCommentFormat {
    function weirdComment() internal pure {
        assembly {
            /*
             * Checks:
             * 1. Order parameters struct offset == 0x20
             * 2. Additional recipients arr offset == 0x240
            * 3. Signature offset == 0x260 + (recipients.length * 0x40)
             * 4. BasicOrderType between 0 and 23 (i.e. < 24)
             */
        }
    }
}

Note that item 3. was shifted to the left by one space.
(Strangely enough, removing the numbers after recipients.length * results in correct formatting again.)
Similarly happens with this multi-line comment
contract WeirdCommentFormat {
    function weirdComment() internal pure {
            /*
            * Calculate EIP712 ConsiderationItem hashes for original
            * additional recipients and add a ReceivedItem for each to the
            * consideration array in the OrderFulfilled event. The original
            * additional recipients are all the consideration items signed
            * by the offerer aside from the primary consideration items of
            * the order. Uses memory region from 0x80-0x160 as a buffer for
            * calculating EIP712 ConsiderationItem hashes.
            */
    }
}

becomes
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

contract WeirdCommentFormat {
    function weirdComment() internal pure {
        /*
            * Calculate EIP712 ConsiderationItem hashes for original
        * additional recipients and add a ReceivedItem for each to the
        * consideration array in the OrderFulfilled event. The original
        * additional recipients are all the consideration items signed
        * by the offerer aside from the primary consideration items of
        * the order. Uses memory region from 0x80-0x160 as a buffer for
            * calculating EIP712 ConsiderationItem hashes.
            */
    }
}

However, if spacing is "correct" the first time, sometimes (perhaps outside of assembly blocks?), it will not dis-align the *s:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

contract WeirdCommentFormat {
    function weirdComment() internal pure {
        /*
         * Calculate EIP712 ConsiderationItem hashes for original
         * additional recipients and add a ReceivedItem for each to the
         * consideration array in the OrderFulfilled event. The original
         * additional recipients are all the consideration items signed
         * by the offerer aside from the primary consideration items of
         * the order. Uses memory region from 0x80-0x160 as a buffer for
         * calculating EIP712 ConsiderationItem hashes.
         */
    }
}

is stable

@jameswenzel thanks for the bug report! this issue will be addressed in scope of #3786, will make sure to add tests

@jameswenzel thanks for the bug report! this issue will be addressed in scope of #3786, will make sure to add tests

Why not fuzz the fmter? Can fuzz both the config and fmt results

I think this is now resolved.
This example is left alone and no longer changed.
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.17;

contract WeirdCommentFormat {
    function weirdComment() internal pure {
        assembly {
            /*
             * Checks:
             * 1. Order parameters struct offset == 0x20
             * 2. Additional recipients arr offset == 0x240
             * 3. Signature offset == 0x260 + (recipients.length * 0x40)
             * 4. BasicOrderType between 0 and 23 (i.e. < 24)
             */
        }
    }
}

The second example:
contract WeirdCommentFormat {
    function weirdComment() internal pure {
            /*
            * Calculate EIP712 ConsiderationItem hashes for original
            * additional recipients and add a ReceivedItem for each to the
            * consideration array in the OrderFulfilled event. The original
            * additional recipients are all the consideration items signed
            * by the offerer aside from the primary consideration items of
            * the order. Uses memory region from 0x80-0x160 as a buffer for
            * calculating EIP712 ConsiderationItem hashes.
            */
    }
}

Gets changed to
contract WeirdCommentFormat {
    function weirdComment() internal pure {
        /*
            * Calculate EIP712 ConsiderationItem hashes for original
            * additional recipients and add a ReceivedItem for each to the
            * consideration array in the OrderFulfilled event. The original
            * additional recipients are all the consideration items signed
            * by the offerer aside from the primary consideration items of
            * the order. Uses memory region from 0x80-0x160 as a buffer for
            * calculating EIP712 ConsiderationItem hashes.
            */
    }
}

In that case my understanding is that the first `/* gets moved to the expected spot, and the rest is left where it is because, imagine if the asterisks were indented hyphens/bullet points, then the formatter wants to leave them where they are.
So I'm going to optimistically close this, but @jameswenzel feel free to create a new issue if you have a good suggested behavior for that last case (e.g. maybe if they are asterisks also shift them left, but treat other characters as bullets? but then you can't use asterisks to represent markdown bullets for forge doc, and have to use hyphens, which maybe is ok)

what about the case of /*!

Sorry, what about  /*!? I don't see that mentioned in this issue, but if it is not being handled properly please open a new issue for it 🙂


fix frontmatter

The Jekyll front matter in each post needs to be changed to:

layout - used for theme layout and post-type for front page
tagline (rename to "title") - each post needs a title
tags (rename to "topics") - so I can have a topics section
summary - to display on front page
date? - 'last-modified date' so I can control post order and freshness???

Several commits last night fixed this issue. The front matter is now much more regular and conforms to the new site organization.


Extract php-versions role into separate external Ansible role

Issue Type

Feature Idea

Summary
There are a lot of people who would like an easier way to take the geerlingguy.php role, and be able to install whatever version they desire, without having to jump through hoops figuring out which variables to change, which repositories to add, etc.
And we have this nice little role inside Drupal VM that does that all gracefully on Debian, Ubuntu, and CentOS. So I'd like to extract the role and put it out separately so I can recommend people just do:
ansible-galaxy install geerlingguy.php-versions
php_version: 7.1

And that's it!

Working on it here: https://github.com/geerlingguy/ansible-role-php-versions

Done!


Files tree scroll bar almost impossible to see

The left file tree scroll bar is very narrow and just slightly darker the background itself, This is in the brackets default (light) theme, the brackets default (dark) is a little better but i do not like the dark background in the editing area.  i tried a few other themes to no avail.

Either i would like the scroll bar to be wider or a more contrasting color.  Any configuration setting i can set to accomplish this? Otherwise i really like Brackets. See attached screen snapshot

+1

I close this as a dupe of #12482


Create zh_CN.json and ask for authorization

Copy from the Private Message in case you didn't see that:
There is still a text that the translation file doesn't included:
"You can't bend the space time continuum any more"
It's a creative mod,so coud l I post this mod to MCBBS for Chinese introduction?
It links back to CurseForge just like the last mod I translated:https://www.mcbbs.net/thread-929252-1-1.html

Ive added the extra translation key, fixed the server crashes.
Feel free to post it on there as long as it points to the latest downloads.


error listen EADDRINUSE: address already in use :::8080

When I use code-server to install the VSIX file.
and after restart browser, IDE alert message say : The SQLTools Language Server server crashed 5 times in the last 3 minutes. The server will not be restarted.
The logs output:
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
error listen EADDRINUSE: address already in use :::8080
[Info  - 4:28:05 AM] Connection to server got closed. Server will restart.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
error listen EADDRINUSE: address already in use :::8080
[Info  - 4:28:06 AM] Connection to server got closed. Server will restart.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
error listen EADDRINUSE: address already in use :::8080
[Info  - 4:28:06 AM] Connection to server got closed. Server will restart.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
error listen EADDRINUSE: address already in use :::8080
[Info  - 4:28:07 AM] Connection to server got closed. Server will restart.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
Option 'node-ipc' is unknown. Ignoring.
Option 'clientProcessId' is unknown. Ignoring.
error listen EADDRINUSE: address already in use :::8080
[Error - 4:28:08 AM] Connection to server got closed. Server will not be restarted.
another my code-server run as docker image.  default port is 8080.
I enter this container, run "ps" command, found the following command:
/usr/local/bin/code-server /home/coder/.local/share/code-server/extensions/mtxr.sqltools-0.21.6/languageserver.js --node-ipc --clientProcessId=1050
I think, The correct command should be:
node /home/coder/.local/share/code-server/extensions/mtxr.sqltools-0.21.6/languageserver.js --node-ipc --clientProcessId=1050
Please help me how can I fix it, Thanks everyone.

This is more like a https://github.com/cdr/code-server issue than the extension itself.
We don't use port 8080 for nothing, so it shouldnt be breaking.
I don't really understand how code-server works, so I can't help much, also I've in a hurry to deliver v0.22, would you mind opening this issue in their project?
They might have a solution quickly for you.
Thanks!

I attempted the same thing, and found a work around - On the code-server server, make sure nodejs is installed in the path, then enable in the user settings.json:
{ "sqltools.useNodeRuntime": true }

I can now run queries and see results in the code-server browser :-)


How do I include Sqlite3 to my Python and electron.js Application

I have created a electron.js Gui with Python flask server. and When I am packaging the app. I can't set my app working. every time getting no such table error. Why?? Why do I package my app. please guide me.

You might want to check this out https://github.com/workflowproducts/postcard


Is 'jaeger_cassandra_errors' count cumulated ?

I get jaeger_cassandra_errors{table="traces"} 51000 from /metrics endpoint, is the 51000 cumulated number ? Could you explain a bit how this number is generated ?
Wondering does it make more sense to emit a rate value ?

@xihw I'm closing this, as I believe this has been answered properly. If you still have questions about this, feel free to reopen.


Ellipsis for emojicon

when i enter more emojicons and they are out of the view then I am not able to show ellipsis. I tried android:singleLine="true"
android:ellipsize="end"
but not working.
Please help.

It happens with Android stock apps too. Seems to be a limitation of some kind. I tried to look for a solution, didn't find any.

I can see the ellipsize just fine:
<com.rockerhieu.emojicon.EmojiconTextView
    app:emojiconSize="18dp"
    tools:text="Hey man, do you see 😁 😁 😁 😁 😁 😁 😁 😁 "
    android:lines="1"
    android:ellipsize="end"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" />

Maybe you could find the answer here: http://stackoverflow.com/questions/6768977/text-does-not-ellipsize

@rockerhieu did you try by placing more letters (so the letters overflow) and some emojis at the end? In some cases (such as a ListView item) you can a half emoji at the end. But that's probably a different case from the one OP described.

@rockerhieu I tried your solurion and it works only when text is there at the end not for emojicons.
Half emoji is displayed when Emoji is at the end or emojis that are  out of the view. Please help.

@daniele-athome How did you solve the problem at last?

@rockerhieu when i enter more emojicons and they are out of the view then I am not able to show ellipsis.Please help.

@AttITuder I did not solved it.

@daniele-athome How did you deal with it?

The bug is still there :-(

@AttITuder @daniele-athome This class almost saves me : https://github.com/google/iosched/blob/master/android/src/main/java/com/google/samples/apps/iosched/ui/widget/EllipsizedTextView.java


ofs.uio: add markdown document

Signed-off-by: anandaravuri<EMAIL_ADDRESS>

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 increased (+0.005%) to 66.05%

Totals

Change from base Build<PHONE_NUMBER>:
0.005%

Covered Lines:
13070

Relevant Lines:
19788

💛  - Coveralls

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
33 unchanged lines in 1 file lost coverage.
Overall coverage increased (+0.005%) to 66.05%

Files with Coverage Reduction
New Missed Lines
%

libraries/libopaeuio/opaeuio.c
33
15.85%

Totals

Change from base Build<PHONE_NUMBER>:
0.005%

Covered Lines:
13070

Relevant Lines:
19788

💛  - Coveralls


Training in cifar100

Hello, regarding the test of ViT and Cross ViT on cifar100, no matter how I adjust, the test accuracy is only about 50%. Do you have a better training method?

@xinchenduobian sure, try Deit, or any of the models that have some hierarchical pooling mixed in


How to mint ERC721 on child then withdraw to root?

As far as I know, from the code in core-contracts, we can only mint ERC721 on root then deposit it to child.
My question is, is there a way to mint ERC721 on child then withdraw it to root. If not, are you having a plan to implement it in the future?
Thanks in advance!

As far as I know, from the code in core-contracts, we can only mint ERC721 on root then deposit it to child.

That's correct.

My question is, is there a way to mint ERC721 on child then withdraw it to root. If not, are you having a plan to implement it in the future?

It is not possible at the moment, but it is planned to be delivered in a near future (possibly next release, but still TBD).


Addition of CESS Summer of Code

CSOC is a university level program conducted every year. It has prizes( this year Rs 10,000) for the best project and other certifications. Please add this or help me in adding this program to your amazing list.
Website: CSOC
Thanks!

hey @hdsingh take a look at this PR template

Please post your PR's on https://github.com/deepanshu1422/List-Of-Open-Source-Internships-Programs as this current repository is not merging any pull request since November 2019


Fluent non-transparent notification background

What is the current behavior?

What is the updated/expected behavior with this PR?
Notification isn't transparent.

@maxkatz6 curious, what was the inspiration for this design change btw

@jmacato I have copied it from Default theme for a while ago - https://github.com/AvaloniaUI/Avalonia/blob/master/src/Avalonia.Themes.Default/Accents/BaseDark.xaml#L55
But I don't know, why it was semi-transparent on Default theme. @danwalmsley do you know?


登录日志是存在哪里吗？

Clear and concise description of the problem
登录日志是存在哪里吗？
Suggested solution
登录日志是存在哪里吗？

Alternative
No response
Additional context
No response
Validations

[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

db 下的数据库文件里


Reverse Proxy Load Testing

Description
In an effort to make sure we understand the impact of the reverse proxy fallback to content build from next build we need to properly test the response times before and after our changes are applied.
This will require load testing to https://dev.va.gov with rev proxy changes enabled and disabled.
Test Case
The following test case needs to be done with both reverse proxy changes off and on.
Using Locust and the included code, load test https://dev.va.gov.
Start the test with a ramp up to 500 users.
After 500 users have been reached, allow the test to continue running an additional 15 mins.
After the additional 15 minute wait add another 500 concurrent users.
When you have a total of 1000 users wait another 15 mins with the test still active.
After the additional 15 minute wait add another 500 concurrent users.
Once you have a total of 1500 users, allow the test to run for another 15 minutes.
Download the reports and attach them to this ticket.

Additional information supplied by Jeff

Results with reverse proxy fallback from Next
locust_dev_va_with_next_rev_proxy.pdf
Average response times
1500 users = 1500ms
1000 users = 525ms
500 users = 384ms

Testing results can be found at https://vfs.atlassian.net/wiki/spaces/AP1/pages/3304718546/Reverse+Proxy+load+testing+Results
On average there is roughly a .5 second difference in response time between content-build and next-build. Response times when user traffic is routed to next-build first via reverse proxy appear to be faster on average.
Our test leads us to believe that this is because nextjs(next-build) is more efficient when creating static pages than what we get from metalsmith(content-build).

Doesnt Metalsmith just build static files? Is it actually building files at runtime? I dont know if I agree with the conclusion. Can you elaborate? Are you saying the files themselves are better/smaller than the metalsmith files?

Doesnt Metalsmith just build static files? Is it actually building files at runtime? I dont know if I agree with the conclusion. Can you elaborate? Are you saying the files themselves are better/smaller than the metalsmith files?

To elaborate, I believe that in nextbuild there is some optimization of the generated code. You can see that the file sizes for some of the events pages are smaller in next then they are in content build.

Both next and content build both generate static files but all static generators may not be equal. Smaller files in next could lead to the improved response times which is why I think we have better response times.

I agree that the files probably have been optimized. I am assuming the code splitting took place. I also assume that metal smith loads all js for every page vs the code splitting in nextjs. Could we get an analysis of the page loads using the lighthouse tool? I would like to advertise this improvement.

Ticket created for lighthose testing https://github.com/department-of-veterans-affairs/next-build/issues/608

Adding load testing results for staging
report_next_build_staging_1722047823.103791.html.zip

Adding load testing for staging
report_1722521548.6617193.zip


preflight: fix overriding node name env variable

Cilium-agent is overriding K8S_NODE_NAME env variable based on node
name. Cilium-preflight was not overriding it so in case the hostname
did not match the node name, the preflight was stuck waiting for node
information.
cilium-preflight: use the k8s node name instead of relying on hostname

Shouldn't this be "release-note/bug"?

ah yes, changed. Thanks!

/test

/test


Fix internal TS logic

We have made some mistakes in how the TS code is written, async waiting and other stuff.  Fix it.

Done in 457


Update to use .Values

Possible missed typo
This caused an error on deployment

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


usb otg ethernet gadget

I'd like to switch the otg port on the rock64 in xenial to regular otg instead of host and load the cdc_ethernet driver. Finding it difficult to find info on this. Any ideas?

ping

What have you tried so far? What happens when you load the usb gadget drivers? Before this works you probably have to reconfigure the top USB port in the devicetree as either OTG or device mode port.

Any update on this? I'm trying to figure out if the USB3.0 port supports device mode.

Afaik. Nope. Otg is only on usb2.0
On Thu, 24 May 2018 at 05:06, R0b0t1<EMAIL_ADDRESS>wrote:

Any update on this? I'm trying to figure out if the USB3.0 port supports
device mode.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/ayufan-rock64/linux-build/issues/117#issuecomment-391573333,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTpQYWgOZrjmUxH2yqr7DdYX1pEgsYpks5t1iO8gaJpZM4SZZae
.

I don't know if it's a language problem;
but,  kfox1111 question has not been answered.
I think what he is asking is how to install/configure the driver to make the built-in USB 2.0 OTG controller work with your distro as a USB network interface, using the build-in DWC OTG Controller.
I too, thought the Single USB 3.0 port was OTG capable, but it's not..
if you run this command:
lsusb -vvv
you will see the type of hardware USB controllers on board the ROC-RK3328-CC (ROCK64)
"ID 1d6b:0003 Linux Foundation 3.0 root hub"
"SuperSpeed (5GBps)"
The USB 3.0 Controller is a standard, xHCI Host Controller.
unlike the Top-most port USB 2.0 DWC OTG Controller (dwc2_hsotg)
what he is really asking is,.... if somehow, you can modify the kernel/driver into forcing the native USB 3.0 controller to be detected and used as a OTG controller, in order to get a faster gadget mode USB 3.0 network card working, instead of the USB 2.0 version from the (ROCK64) ROC-RK3328-CC.

it seems the USB 3.0 DWC3 is supported by the Synopsys DesignWare USB Core Controller inside the RK3328, it just has to be enabled before boot-up.
CONFIG_USB_XHCI_DWC3=y
this person enabled the changes from your files:
https://github.com/daijh223/linux-u-boot/
OpenSUSE supports out of the box, it seems to be in the u-boot init startup module/config.
google "rk3328-evb.dts dwc3"
├── rockchip
│   │   ├── rk3328-evb.dtb
│   │   ├── rk3328-rock64.dtb
arch/arm64/boot/dts/rockchip/rk3328-evb.dts
arch/arm64/boot/dts/rockchip/rk3328-rock64.dts
arch/arm64/boot/dts/rockchip/rk3328.dtsi

Sorry for the late reply. I somehow have not been getting emails on this thread.

Before this works you probably have to reconfigure the top USB port in the devicetree as either OTG or device mode port.
Thats my question,. How do I do that? Is there an overlay file somewhere I need?

On the pi, you do it like:
https://gist.github.com/gbaman/975e2db164b3ca2b51ae11e45e8fd40a
Thanks,
Kevin

I did a bit more digging on the USB controller and I found that Rockchip disabled the ability to turn the USB 3.0 non-OTG(xHCI) into OTG in the rk3328 in the U-boot firmware long ago, The feature was there and you can kind bring it back with patches, but it triggered issues in software due to IRQ and reserve memory addresses. I was able to confirm that the USB 3.0 controller is not natively an OTG controller in hardware.
Please keep in mind that the architecture of this chip is not the same architecture of the RPI, this chip requires U-boot to set the correct setting before it even booted.
Also the firefly version uses DDR4 which the changes have been made to function correctly with u-boot.
To get the native USB 2.0 OTG, you need to compile the mainline Linux source and install & configure the drivers. This is not chip dependent and you can try to find information in Linux forums.

do I need to override: usb@ff580000 dr_mode to be otg?

https://github.com/raspberrypi/linux/blob/rpi-4.4.y/arch/arm/boot/dts/overlays/dwc2-overlay.dts looks interesting. could we make a file like this for the rock64?

I decompiled the device tree, set dt_mode to otg, and rebuilt it. added:
extraargs=dwc2,g_ether
to armbianEnv.txt and rebooted. I see it in the /proc/cmdline and /proc/device-tree/usb@ff580000/dr_mode.
no joy.

hmm... while I'm asking.... a usb-a to usb-a is a pretty odd type of cable. do I need a straight or a cross over cable or something else?

I swapped the two data wires making a crossover cable, and got a little farther:
dmesg on the laptop showed:
[13033.103522] usb 1-1: new low-speed USB device number 22 using xhci_hcd
[13033.265421] usb 1-1: device descriptor read/64, error -71
[13033.520479] usb 1-1: device descriptor read/64, error -71
[13033.774560] usb 1-1: new low-speed USB device number 23 using xhci_hcd
[13033.928388] usb 1-1: device descriptor read/64, error -71
[13034.183586] usb 1-1: device descriptor read/64, error -71
[13034.437581] usb 1-1: new low-speed USB device number 24 using xhci_hcd
[13034.438997] usb 1-1: Device not responding to setup address.
[13034.641128] usb 1-1: Device not responding to setup address.
[13034.841427] usb 1-1: device not accepting address 24, error -71
[13034.994365] usb 1-1: new low-speed USB device number 25 using xhci_hcd
[13034.995983] usb 1-1: Device not responding to setup address.
[13035.197984] usb 1-1: Device not responding to setup address.
[13035.398323] usb 1-1: device not accepting address 25, error -71
[13035.398356] usb usb1-port1: unable to enumerate USB device
Nothing on the rock64 either with the normal dtb or the one with otg dt_mode.

That is the error one receives if the data wires are backwards. If the controller supports device mode you don't need a crossover cable; crossover cables don't really exist for USB like they do for serial or ethernet connections. (People sell devices they call "USB crossover cables" but those are typically two serial converters to allow file transfers.)

the thing that is confusing to me is otg requires a sense line for switching between host mode and device mode. My understanding is the port is configured for host mode out of the box and there is physically no connection for a usb A cable to tell the rock64 it needs to be in device mode. So I'm struggling to figure out how to set it into device mode. did I miss something/overthinking something?

Having the port  configured for host mode is different than having it configured for OTG mode which is different than having it configured for device mode. For OTG and device mode you need to supply a set of device mode configurations. When in OTG mode the controller detects if it has been plugged into a host or a device and responds appropriately. The electrical characteristics of the USB wires change depending on what is being plugged into what.

ah. so, I probably want device mode instead of otg mode as there is no sense wire. I'll try setting the dr_mode to device once I get access to it.
Any other ideas on how to configure the kernel to use it in that mode? Will linux just detect its in device mode, or do I need to bind things to it somehow? I've only ever used dwc2,g_*  config.

ok. I got a new rock64 (fried the old one a bit.) and a new usb cable from pine64. So, should be the right hardware for sure.
I tried lspci before making any changes:
root@rock64:~# lsusb
Bus 005 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

I then tried setting the dr_mode of usb@ff580000 to peripheral
root@rock64:~# lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
So it dropped out. Not sure if this is expected or not.
it did apply too:
root@rock64:~# cat /proc/device-tree/usb@ff580000/dr_mode
peripheral

I then plug in the cable to a linux box with the top usb port on the rock64.
Nothing shows up on dmesg on either box.
So, still no joy.
For good measure, I tried it with the string 'device' too. didn't work either.
I verified we have a CDC driver loaded:
grep CDCETHER -i /boot/config-4.4.124-rk3328
CONFIG_USB_NET_CDCETHER=y
anyone have any other ideas?

you need a -- capacitor on id pin.
gnd-cap-pin
you need to find the ID pin for USB2 on your board, add a capacitor on the ID pin , going to ground.
this will trigger auto detect of host.
see "otg dwc capacitor on id pin" on google.

caping the pin would probably work yeah. But software seems to be able to switch the port between host and peripheral mode. There is mention of adb support for android, so it must be switching the port over to peripheral mode too. So I think the extra hardware is unneeded if I can figure out the right way to configure the devicetree.

the rockchip seems to have a FEL equivalent mode called rockusb which also forces the usb port into peripheral mode. So no extra hardware should be needed?

ok. got a little bit further maybe. when I set it into peripheral mode, and the usb entry dropped out, it didn't notice this in dmesg:
[    1.441297] dwc2 ff580000.usb: 128 invalid for host_nperio_tx_fifo_size. Check HW configuration.
[    1.441315] dwc2 ff580000.usb: 256 invalid for host_perio_tx_fifo_size. Check HW configuration.

So it probably needs some other things in addition to just dr_mode.
I noticed a thread on rk3328 support saying that back when it was first introduced, it only supported peripheral mode, not host mode. So It really can be done.
Maybe if I can find that version of the device tree, and use its usb config, it might work.

This may be related https://patchwork.kernel.org/patch/9248697/

ok. I think I'm starting to understand the device-tree stuff more. I'm currently thinking that the mwc2 driver itself isn't handling the switchover to peripheral mode properly.

I just built an armbian kernel in dev mode. it didn't complain anymore in peripheral mode, but still doesn't show up in lsusb.
[    0.600507] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using du
mmy regulator
[    0.600571] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using du
mmy regulator
[    0.602787] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM

4.18.0-rc8-rockchip64

ok. got debugging enabled on 4.18.-rc8-rockchip64, and a bunch of other modules built:
[    0.602547] dwc2 ff580000.usb: mapped PA ff580000 to VA (ptrval)
[    0.602610] dwc2 ff580000.usb: ff580000.usb supply vusb_d not found, using dummy regulator
[    0.602688] dwc2 ff580000.usb: ff580000.usb supply vusb_a not found, using dummy regulator
[    0.602754] dwc2 ff580000.usb: registering common handler for irq31
[    0.604859] dwc2 ff580000.usb: dwc2_core_reset()
[    0.604874] dwc2 ff580000.usb: Core Release: 3.10a (snpsid=4f54310a)
[    0.604883] dwc2 ff580000.usb: Forcing mode to device
[    0.604891] dwc2 ff580000.usb: Waiting for device mode
[    0.604899] dwc2 ff580000.usb: Device mode set
[    0.604908] dwc2 ff580000.usb: Forcing mode to device
[    0.604915] dwc2 ff580000.usb: Waiting for device mode
[    0.604921] dwc2 ff580000.usb: Device mode set
[    0.604952] dwc2 ff580000.usb: NonPeriodic TXFIFO size: 16
[    0.604959] dwc2 ff580000.usb: RXFIFO size: 280
[    0.604984] dwc2 ff580000.usb: EPs: 10, dedicated fifos, 972 entries in SPRAM
[    0.605758] dwc2 ff580000.usb: DCFG=0x08100000, DCTL=0x00000002, DIEPMSK=00000000
[    0.605768] dwc2 ff580000.usb: GAHBCFG=0x00000000, GHWCFG1=0x00006664
[    0.605777] dwc2 ff580000.usb: GRXFSIZ=0x00000400, GNPTXFSIZ=0x00100400
[    0.605786] dwc2 ff580000.usb: DPTx[1] FSize=256, StAddr=0x00000410
[    0.605794] dwc2 ff580000.usb: DPTx[2] FSize=256, StAddr=0x00000900
[    0.605803] dwc2 ff580000.usb: DPTx[3] FSize=256, StAddr=0x00000a00
[    0.605811] dwc2 ff580000.usb: DPTx[4] FSize=256, StAddr=0x00000b00
[    0.605821] dwc2 ff580000.usb: DPTx[5] FSize=256, StAddr=0x00000c00
[    0.605829] dwc2 ff580000.usb: DPTx[6] FSize=256, StAddr=0x00000d00
[    0.605838] dwc2 ff580000.usb: DPTx[7] FSize=0, StAddr=0x00000e00
[    0.605847] dwc2 ff580000.usb: DPTx[8] FSize=0, StAddr=0x00000f00
[    0.605856] dwc2 ff580000.usb: DPTx[9] FSize=256, StAddr=0x00000410
[    0.605867] dwc2 ff580000.usb: ep0-in: EPCTL=0x00008800, SIZ=0x00000000, DMA=0xf1c882bc
[    0.605877] dwc2 ff580000.usb: ep0-out: EPCTL=0x00008000, SIZ=0x00000000, DMA=0xbc63b000
[    0.605887] dwc2 ff580000.usb: ep1-in: EPCTL=0x00001000, SIZ=0x00000000, DMA=0x7fc906b4
[    0.605899] dwc2 ff580000.usb: ep1-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xd30ad39e
[    0.605908] dwc2 ff580000.usb: ep2-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xe5ec0858
[    0.605919] dwc2 ff580000.usb: ep2-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x54a22fae
[    0.605929] dwc2 ff580000.usb: ep3-in: EPCTL=0x00002000, SIZ=0x00000000, DMA=0x9b975a34
[    0.605940] dwc2 ff580000.usb: ep3-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xd30ad39e
[    0.605951] dwc2 ff580000.usb: ep4-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xe5ec0858
[    0.605961] dwc2 ff580000.usb: ep4-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xaa38f516
[    0.605971] dwc2 ff580000.usb: ep5-in: EPCTL=0x00003000, SIZ=0x00000000, DMA=0x476413d7
[    0.605982] dwc2 ff580000.usb: ep5-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xd30ad39e
[    0.605992] dwc2 ff580000.usb: ep6-in: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xe5ec0858
[    0.606003] dwc2 ff580000.usb: ep6-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x4d0f544a
[    0.606014] dwc2 ff580000.usb: ep7-in: EPCTL=0x00004000, SIZ=0x00000000, DMA=0xd3ea4dfe
[    0.606024] dwc2 ff580000.usb: ep7-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xd30ad39e
[    0.606034] dwc2 ff580000.usb: ep8-in: EPCTL=0x00004800, SIZ=0x00000000, DMA=0xd2251f41
[    0.606044] dwc2 ff580000.usb: ep8-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0xe5d9e575
[    0.606055] dwc2 ff580000.usb: ep9-in: EPCTL=0x00005000, SIZ=0x00000000, DMA=0xf1503d74
[    0.606066] dwc2 ff580000.usb: ep9-out: EPCTL=0x00000000, SIZ=0x00000000, DMA=0x0715383a
[    0.606075] dwc2 ff580000.usb: DVBUSDIS=0x00000b8f, DVBUSPULSE=000002c6
modprobe g_ether
[  220.140908] using random self ethernet address
[  220.140914] using random host ethernet address
[  220.141598] usb0: HOST MAC 16:a3:48:07:dc:90
[  220.141878] usb0: MAC ee:8b:9a:a9:63:0c
[  220.141925] using random self ethernet address
[  220.141928] using random host ethernet address
[  220.141992] g_ether gadget: Ethernet Gadget, version: Memorial Day 2008
[  220.141996] g_ether gadget: g_ether ready
[  220.144070] dwc2 ff580000.usb: bound driver g_ether
[  220.144082] dwc2 ff580000.usb: dwc2_hsotg_pullup: is_on: 1 op_state: 3
[  220.144088] dwc2 ff580000.usb: dwc2_core_reset()
[  220.144102] dwc2 ff580000.usb: FIFOs reset, timeout at 100
[  220.144114] dwc2 ff580000.usb: EP0: DIEPCTL0=0x00008000, DOEPCTL0=0x00008000
[  220.144118] dwc2 ff580000.usb: gsintmsk now 0xd88c3cc4
[  220.144136] dwc2 ff580000.usb: DCTL=0x00000002
[  220.144143] dwc2 ff580000.usb: GLPMCFG=0x10001483
[  220.147148] dwc2 ff580000.usb: dwc2_hsotg_enqueue_setup: queueing setup request
[  220.147157] dwc2 ff580000.usb: ep0: req 00000000df9135a5: 8@000000005d5020bd, noi=0, zero=0, snok=0
[  220.147169] dwc2 ff580000.usb: dwc2_hsotg_start_req: DxEPCTL=0x80008000, ep 0, dir out
[  220.147175] dwc2 ff580000.usb: ureq->length:8 ureq->actual:0
[  220.147181] dwc2 ff580000.usb: dwc2_hsotg_start_req: 1@8/8, 0x00080008 => 0x00000b10
[  220.147188] dwc2 ff580000.usb: dwc2_hsotg_start_req: fe202000 pad => 0x00000b14
[  220.147192] dwc2 ff580000.usb: ep0 state:0
[  220.147196] dwc2 ff580000.usb: dwc2_hsotg_start_req: DxEPCTL=0x80008000
[  220.147202] dwc2 ff580000.usb: dwc2_hsotg_start_req: DXEPCTL=0x80008000
[  220.147208] dwc2 ff580000.usb: EP0: DIEPCTL0=0x00008000, DOEPCTL0=0x80008000
[  220.150299] dwc2 ff580000.usb: dwc2_hsotg_irq: 04008420 00000400 (d88c3cc4) retry 8
[  220.150307] dwc2 ff580000.usb: GINTSTS_ErlySusp
[  220.153360] dwc2 ff580000.usb: gintsts=04008820  gintmsk=d88c3cc4
[  220.153371] dwc2 ff580000.usb: USB SUSPEND
[  220.153377] dwc2 ff580000.usb: dwc2_handle_usb_suspend_intr: DSTS=0x400003
[  220.153383] dwc2 ff580000.usb: DSTS.Suspend Status=1 HWCFG4.Power Optimize=1 HWCFG4.Hibernation=0
[  220.153387] dwc2 ff580000.usb: ignore suspend request before enumeration
[  220.153395] dwc2 ff580000.usb: dwc2_hsotg_irq: 04008020 00000000 (d88c3cc4) retry 8
[  226.9405hy<EMAIL_ADDRESS>charger = USB_DCP_CHARGER
I see a usb0 device in 'ip a' on the rock64. But nothing on dmesg on either host when I connect the usb cable to the laptop still.

hmm... I just tried unloading the g_ether module, then preconnected the usb cable, then reloaded g_ether. I did see this on the laptop:
[257696.847231] usb 1-4: New USB device found, idVendor=0525, idProduct=a4a2
[257696.847240] usb 1-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[257696.847247] usb 1-4: Product: RNDIS/Ethernet Gadget
[257696.847252] usb 1-4: Manufacturer: Linux 4.18.0-rc8-rockchip64 with ff580000.usb
[257696.882545] cdc_eem 1-4:1.0 usb0: register 'cdc_eem' at usb-0000:00:14.0-4, CDC EEM Device, 86:d7:fc:93:29:c7
[257696.882996] usbcore: registered new interface driver cdc_eem
[257696.885258] usbcore: registered new interface driver cdc_subset
[257697.635172] IPv6: ADDRCONF(NETDEV_UP): enp0s20f0u4: link is not ready
[257697.635337] cdc_eem 1-4:1.0 enp0s20f0u4: kevent 12 may have been dropped
[257702.570690] usb 1-4: USB disconnect, device number 24
[257702.570977] cdc_eem 1-4:1.0 enp0s20f0u4: unregister 'cdc_eem' usb-0000:00:14.0-4, CDC EEM Device
I saw enp0s20f0u4 show up for a few seconds, then drop back out. Much closer now...

ok. finally some progress...
Its pretty touchy it seems. If I do it in this order, it seems to work:

on the laptop modprobe usbnet
boot the rock64 with usb cable already connected
modprobe g_ether on the rock64.

Actually, it seems to fail the first time after init...
So,

on the laptop modprobe usbnet
boot the rock64 with usb cable already connected
modprobe g_ether on the rock64
rmmod g_ether
modprobe g_ether

Then it works. The laptop complains about lack of connectivity during the first modprobe. Guessing it has something to do with the dwc2 init process?
With the debugging turned off, I'm getting about ~200mbit/s from the laptop to the rock64 and ~130 back via iperf3.
Maybe some buffer tweaking is needed?

Hi @kfox1111
can you list the full set of steps required to get "device mode" working on the 2.0 OTG port? personally, I want to use it to emulate keyboard/mouse via gadgets too.
and I'd just like to say thank you so much for going so far with this.

Hi @tttteatree I dont quite have a full process yet ironed out. I've had to try so many things, that some things that I have done may or may not be optional to get it to work. Also, I would like to contribute back a device tree overlay at some point, if I can figure out how to make those work instead of hacking up the existing device tree to set the settings. that would be much cleaner. I also got to the point where I switched to a dev kernel for testing and am not sure it works on a stock kernel. a stock kernel might work now. but, a procedure like the following should work (recalling from memory so might need slight tweaking for paths and things):

install the newest stable armbian for the rock64 on a sd card.
grab the dev kit for armbian and build a dev kernel set of debs. enable all the otg stuff you might want.
copy the kernel debs to the sdcard too
boot the rock64 with the image
upgrade the kernel to the dev one from the debs
decompile the device tree: dtc -I dtb -O dts -o /tmp/devicetree.dts /boot/device-tree/rk3328-rock64.dtb
edit /tmp/devicetree.dts, find the usb 2.0 otg device section (I think its usb@ff580000), and set dr_mode to "peripheral"
backup the /boot/device-tree/rk3328-rock64.dtb somewhere in case you need it
compile the update devicetree: dtc -I dts -O dtb -o /boot/device-tree/rk3328-rock64.dtb /tmp/devicetree.dts
reboot

At this point in theory it should be good to go for usb gadget mode.
see my previous post for some of the weird ordering I had to do to get the two hosts to detect each other though. I think that may be a kernel driver bug that still needs to be tracked down.
Good luck. :)

@kfox1111 thank you. I'll update you on how it goes, likely weeks from now when I receive my order.

@kfox1111 have rock64 board, flashed Ubuntu 18.04 Bionic minimal 64bit Image booting off of sd-card. Updated rk3328-rock64.dts
&usb20_otg {
	dr_mode = "**peripheral**";
	status = "okay";
};

compiled and updated rk3328-rock64.dtb. Connected usb (type A) cable, rock64 USB 2.0 OTG port - latop. Laptop couldn't detect the usb-serial connection though.
There are a rock64 USB 2.0 controller configuration in menuconfig under "USB Support".

If enabled, error while building linux kernel,
LD      drivers/power/built-in.o
CC [M]  drivers/usb/dwc_otg_310/dwc_otg_driver.o
drivers/usb/dwc_otg_310/dwc_otg_driver.c: In function ‘dwc_otg_driver_init’:
drivers/usb/dwc_otg_310/dwc_otg_driver.c:1690:6: warning: unused variable ‘error’ [-Wunused-variable]
error, forbidden warning:dwc_otg_driver.c:1690
int error;
^~~~~
At top level:
drivers/usb/dwc_otg_310/dwc_otg_driver.c:1181:13: warning: ‘dwc_otg_driver_shutdown’ defined but not used [-Wunused-function]
error, forbidden warning:dwc_otg_driver.c:1181
static void dwc_otg_driver_shutdown(struct platform_device *_dev)
^~~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc_otg_310/dwc_otg_driver.c:1176:12: warning: ‘dwc_otg_driver_resume’ defined but not used [-Wunused-function]
error, forbidden warning:dwc_otg_driver.c:1176
static int dwc_otg_driver_resume(struct platform_device *_dev)
^~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc_otg_310/dwc_otg_driver.c:1170:12: warning: ‘dwc_otg_driver_suspend’ defined but not used [-Wunused-function]
error, forbidden warning:dwc_otg_driver.c:1170
static int dwc_otg_driver_suspend(struct platform_device *dev,
^~~~~~~~~~~~~~~~~~~~~~
drivers/usb/dwc_otg_310/dwc_otg_driver.c:844:20: warning: ‘dwc_otg_common_irq’ defined but not used [-Wunused-function]
error, forbidden warning:dwc_otg_driver.c:844
static irqreturn_t dwc_otg_common_irq(int irq, void *dev)
^~~~~~~~~~~~~~~~~~
drivers/usb/dwc_otg_310/dwc_otg_driver.c:592:12: warning: ‘set_parameters’ defined but not used [-Wunused-function]
error, forbidden warning:dwc_otg_driver.c:592
static int set_parameters(dwc_otg_core_if_t *core_if,
^~~~~~~~~~~~~~
In file included from drivers/usb/dwc_otg_310/dwc_otg_os_dep.h:16:0,
from drivers/usb/dwc_otg_310/dwc_otg_driver.c:51:
include/linux/device.h:304:26: warning: ‘driver_attr_vbus_status’ defined but not used [-Wunused-variable]
error, forbidden warning:device.h:304
struct driver_attribute driver_attr##_name = __ATTR(_name, _mode, _show, store)
^
drivers/usb/dwc_otg_310/dwc_otg_driver.c:586:8: note: in expansion of macro ‘DRIVER_ATTR’
static DRIVER_ATTR(vbus_status, S_IRUGO, vbus_status_show, NULL);
^~~~~~~~~~~
include/linux/device.h:304:26: warning: ‘driver_attr_op_state’ defined but not used [-Wunused-variable]
error, forbidden warning:device.h:304
struct driver_attribute driver_attr##_name = __ATTR(_name, _mode, _show, store)
^
drivers/usb/dwc_otg_310/dwc_otg_driver.c:574:8: note: in expansion of macro ‘DRIVER_ATTR’
static DRIVER_ATTR(op_state, S_IRUGO, dwc_otg_op_state_show, NULL);
^~~~~~~~~~~
include/linux/device.h:304:26: warning: ‘driver_attr_dwc_otg_conn_en’ defined but not used [-Wunused-variable]
error, forbidden warning:device.h:304
struct driver_attribute driver_attr##_name = __ATTR(_name, _mode, _show, store)
^
drivers/usb/dwc_otg_310/dwc_otg_driver.c:538:8: note: in expansion of macro ‘DRIVER_ATTR’
static DRIVER_ATTR(dwc_otg_conn_en, S_IRUGO | S_IWUSR, dwc_otg_conn_en_show,
^~~~~~~~~~~
include/linux/device.h:304:26: warning: ‘driver_attr_force_usb_mode’ defined but not used [-Wunused-variable]
error, forbidden warning:device.h:304
struct driver_attribute driver_attr##_name = __ATTR(_name, _mode, _show, store)
^
drivers/usb/dwc_otg_310/dwc_otg_driver.c:509:8: note: in expansion of macro ‘DRIVER_ATTR’
static DRIVER_ATTR(force_usb_mode, S_IRUGO | S_IWUSR, force_usb_mode_show,
^~~~~~~~~~~
include/linux/device.h:304:26: warning: ‘driver_attr_debuglevel’ defined but not used [-Wunused-variable]
error, forbidden warning:device.h:304
struct driver_attribute driver_attr##_name = __ATTR(_name, _mode, _show, store)
^
drivers/usb/dwc_otg_310/dwc_otg_driver.c:345:8: note: in expansion of macro ‘DRIVER_ATTR’
static DRIVER_ATTR(debuglevel, S_IRUGO | S_IWUSR, dbg_level_show,
^~~~~~~~~~~
include/linux/device.h:304:26: warning: ‘driver_attr_version’ defined but not used [-Wunused-variable]
error, forbidden warning:device.h:304
struct driver_attribute driver_attr##_name = __ATTR(_name, _mode, _show, _store)
^
drivers/usb/dwc_otg_310/dwc_otg_driver.c:320:8: note: in expansion of macro ‘DRIVER_ATTR’
static DRIVER_ATTR(version, S_IRUGO, version_show, NULL);
^~~~~~~~~~~
scripts/Makefile.build:277: recipe for target 'drivers/usb/dwc_otg_310/dwc_otg_driver.o' failed
make[3]: *** [drivers/usb/dwc_otg_310/dwc_otg_driver.o] Error 1
scripts/Makefile.build:484: recipe for target 'drivers/usb/dwc_otg_310' failed
make[2]: *** [drivers/usb/dwc_otg_310] Error 2
scripts/Makefile.build:484: recipe for target 'drivers/usb' failed
make[1]: *** [drivers/usb] Error 2
Makefile:1031: recipe for target 'drivers' failed
make: *** [drivers] Error 2
Is rock64 OTG port working? am I missing any steps?
Any suggestion is very much appreciated because otg support is the blocker!!
Thank you in advance,
Gautham

So, I used xenial for the test. Looks like bionic was made stable since, and they removed the old image. :(
Not sure thats going to be a problem, but it means we can't exactly duplicate the environment.
I'd recommend trying to get usb ethernet working, as we know that can be made to work. Then once that is working, switching out the usb driver for the serial one. That minimizes the changes and might make it quicker to find a solution.
&usb20_otg {
	dr_mode = "**peripheral**";
	status = "okay";
};

Looks good to me, assuming the **'s aren't actually there.
The usb probing seems very broken at least on the kernel I was using. see the post that starts with:
"Actually, it seems to fail the first time after init..." for the procedure to get it to work. I tried many different orderings and that was the only one I could use to get it to work. Once that works, you should be able to switch out the ethernet driver for the serial one in the procedure.
Really not sure about the kernel build issue your hitting. Maybe not quite compatible build tooling? I used the armbian docker stuff. I didn't record the commands I used unfortunately. but I think it was something like:
./compile.sh docker BRANCH=dev BOARD=rock64 KERNEL_ONLY=yes

@kfox1111 thank you for the quick reply. Will try out the suggestions and feedback.

@kfox1111 enabled USB Serial gadget with above mentioned dts modification. That's it works like a charm!!
connect usb cable from rock64 to latop/system (host machine)
rock64:
sudo modprobe g_serial
/dev/ttyGS0 device node comes up, need to change the device node permission in order to open, read or write to host machine without which throws Permission denied error
sudo chmod 666 /dev/ttyGS0
host:
[1651113.411363] usb 1-2: new high-speed USB device number 44 using xhci_hcd
[1651113.551546] usb 1-2: New USB device found, idVendor=0525, idProduct=a4a7
[1651113.551556] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[1651113.551563] usb 1-2: Product: Gadget Serial v2.4
[1651113.551569] usb 1-2: Manufacturer: Linux 4.4.154-g15aec11-dirty with ff580000.usb
[1651113.553023] cdc_acm 1-2:2.0: ttyACM0: USB ACM device

Thats great news. :)
So, next steps, it would  be good to figure out how to make the dts changes into a dto device tree overlay file so it can be configured on by enabling it in the armbian config file rather then decompileing/tweaking/recompiling. Then we can maybe get the dto and the usb gadget drivers built by default into armbian images?

Well. My image already allows that :)
https://github.com/ayufan-rock64/linux-package/blob/master/root-rock64/usr/local/sbin/rock64_enable_eth_gadget.sh
On Wed, Oct 10, 2018 at 8:37 PM kfox1111<EMAIL_ADDRESS>wrote:

Thats great news. :)
So, next steps, it would be good to figure out how to make the dts changes
into a dto device tree overlay file so it can be configured on by enabling
it in the armbian config file rather then
decompileing/tweaking/recompiling. Then we can maybe get the dto and the
usb gadget drivers built by default into armbian images?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ayufan-rock64/linux-build/issues/117#issuecomment-428683916,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTpQZ9T_N1t5wO7hLhYIE-vSwYzmOsSks5ujj5QgaJpZM4SZZae
.

Fully dynamic.
On Wed, Oct 10, 2018 at 8:52 PM Kamil Trzciński<EMAIL_ADDRESS>wrote:

Well. My image already allows that :)
https://github.com/ayufan-rock64/linux-package/blob/master/root-rock64/usr/local/sbin/rock64_enable_eth_gadget.sh
On Wed, Oct 10, 2018 at 8:37 PM kfox1111<EMAIL_ADDRESS>wrote:

Thats great news. :)
So, next steps, it would be good to figure out how to make the dts
changes into a dto device tree overlay file so it can be configured on by
enabling it in the armbian config file rather then
decompileing/tweaking/recompiling. Then we can maybe get the dto and the
usb gadget drivers built by default into armbian images?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ayufan-rock64/linux-build/issues/117#issuecomment-428683916,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ACTpQZ9T_N1t5wO7hLhYIE-vSwYzmOsSks5ujj5QgaJpZM4SZZae
.

Very interesting. Thanks for sharing.
One concern I have is that the device could come up in host mode while its plugged into another host port for my use case. with a devicetree overlay at boot, the device would only ever come up in peripheral mode. Do you know if it is actually safe to bring it up in host mode with another host attached?
Looks like your scripts have the exact overlay source file needed to build an on boot overlay though, so we could use that if it was unsafe.

@kfox1111 would you recommend that I still attempt to follow your previous instructions/advice at this point, or go down another path?

This issue is resolved, and currently the discussion is around the extras on top of that.

@ayufan Would you please point me in the best direction for using HID functionality / g_hid functionality on top of this? I've got my Rock64 running the latest prerelease now, I know it's missing the module so I'm not sure what I need to compile to move forward.

@tttteatree up to you. our use cases are different. I typically use hardware for general purpose things, and use it longer then vendors typically support their hardware. So I try and use linux distributions that don't come from any particular vendor. This means things like security updates can still happen long after the vendor has moved on. If ayufan's image covers all of your requirements, go with that. It will be easier.

@kfox1111 I've tried the latest pre-release, Bionic minimal, unfortunately, it doesn't contain the modules I need (g_hid or usb_f_hid) so it's a no-go. I suppose I'll have to rebuild the kernel myself and enable this, which I plan on doing. If you have any other recommendations let me know.
One oddity is that g_serial also isn't available, yet @gauthamkantharaju mentioned using it in his last post?

yeah, my plan is to try and submit a patch back to armbian at some point to enable all the usb gadget modules by default so it will come in new images. Just haven't had a chance yet.

Okay, thanks for putting up with me :) I'm relatively new to SBCs and tinkering directly with kernel, so I have no doubt I was annoying!

No worries. I'm new to it too. I'm use to managing x86_64 hardware/software. I've built kernels but hadn't ever looked at device tree until this thread. Interesting stuff.

@kfox1111 I noticed that ayu's script modifies the overlay on usb@ff600000/dwc3@ff600000 but previously you've been using usb@ff580000
Any clarity you can offer?


Implemented many-to-many Handling

Patch which implements basic many-to-many handling.
There may be cleaner ways to do this. But it seems to work well.

This is not an efficient solution. Looking into alternatives


x

Hey, I don't think this is intentional, but you're making pull requests on my repo.

my mistake
On Wed, Oct 9, 2024 at 2:11 AM Mattias Persson @.***>
wrote:

Hey, I don't think this is intentional, but you're making pull requests on
my repo.
—
Reply to this email directly, view it on GitHub
https://github.com/matt8707/ha-fusion/pull/576#issuecomment-2400126333,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BG24FEDZUKINDGFXTHZIDILZ2PYZXAVCNFSM6AAAAABPSO34U6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBQGEZDMMZTGM
.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Regards,


HMC5883 report x, y doesn't match direction of x_raw, y_raw nor x, y direction of chip

@LorenzMeier, @tridge, @julianoes
I was having a problem understanding the data coming from my magnetometer on my GPS. It wasn't making sense to me, so I had to dig into the driver and found some nastiness.
The x, and y values for the x, y, output are swapped and "y" is negated to rotate the frame to the GPS module frame.
      /* the standard external mag by 3DR has x pointing to the
	 * right, y pointing backwards, and z down, therefore switch x
	 * and y and invert y */
	xraw_f = -report.y;
	yraw_f = report.x;
	zraw_f = report.z;
...
        new_report.x = ((xraw_f * _range_scale) - _scale.x_offset) * _scale.x_scale;
	/* flip axes and negate value for y */
	new_report.y = ((yraw_f * _range_scale) - _scale.y_offset) * _scale.y_scale;
	/* z remains z */
	new_report.z = ((zraw_f * _range_scale) - _scale.z_offset) * _scale.z_scale;

But when you set the "raw" uint16_t values from the chip, you rotate the frame in the opposite 90 degree direction (x and y swapped but this time x is negated).
        /*
	 * RAW outputs
	 *
	 * to align the sensor axes with the board, x and y need to be flipped
	 * and y needs to be negated
	 */
	new_report.x_raw = report.y;
	new_report.y_raw = -report.x;

If you have no rotation (_rotation - ROTATION_NONE) and your scale offsets were 0 and your calibration scales were 1, then your raw values are off by 180 degrees from your final new_report.x, y,z values.
Here is the full section of the code from the collect() function in the hmc5883 driver:
       /*
	 * RAW outputs
	 *
	 * to align the sensor axes with the board, x and y need to be flipped
	 * and y needs to be negated
	 */
	new_report.x_raw = report.y;
	new_report.y_raw = -report.x;
	/* z remains z */
	new_report.z_raw = report.z;

	/* scale values for output */

	// XXX revisit for SPI part, might require a bus type IOCTL
	unsigned dummy;
	sensor_is_onboard = !_interface->ioctl(MAGIOCGEXTERNAL, dummy);
	new_report.is_external = !sensor_is_onboard;

	if (sensor_is_onboard) {
		// convert onboard so it matches offboard for the
		// scaling below
		report.y = -report.y;
		report.x = -report.x;
	}

	/* the standard external mag by 3DR has x pointing to the
	 * right, y pointing backwards, and z down, therefore switch x
	 * and y and invert y */
	xraw_f = -report.y;
	yraw_f = report.x;
	zraw_f = report.z;

	// apply user specified rotation
	rotate_3f(_rotation, xraw_f, yraw_f, zraw_f);

	new_report.x = ((xraw_f * _range_scale) - _scale.x_offset) * _scale.x_scale;
	/* flip axes and negate value for y */
	new_report.y = ((yraw_f * _range_scale) - _scale.y_offset) * _scale.y_scale;
	/* z remains z */
new_report.z = ((zraw_f * _range_scale) - _scale.z_offset) * _scale.z_scale;

Also, the negating of the axes for when the sensor is an onboard sensor is rather horrible, because this is just correcting the rotation that you have performed to cope with the 90 degree rotation of the magnetometer on the 3DR GPS modules. How do you cope with GPS modules that have magnetometers at different rotations than the 90 degrees on the 3DR GPS modules? I have noticed that the Drotek GPS modules have different rotations.
        if (sensor_is_onboard) {
		// convert onboard so it matches offboard for the
		// scaling below
		report.y = -report.y;
		report.x = -report.x;
	}

Is there any reason why we should keep this hard-coded rotation in the driver?
In any event, the negation of the x_raw and y_raw values must definitely be corrected so that they are rotated in the same direction as the "final reported" x, y values.

I agree, it's unnecessarily confusing. I was going clean this up a few months ago, but decided to leave it alone as these modules are EOL. If you'd like to improve it I'll happily review.
I don't know how to cope with the "3DR rotation convention". The user has no way to see the real chip orientation, and we have nothing to distinguish a 3DR module from a Drotek module.

I don't know how to cope with the "3DR rotation convention". The user has no way to see the real chip orientation, and we have nothing to distinguish a 3DR module from a Drotek module.

One thing I've seen is that most modules out there are designed like the 3DR module, so for most cases this was correct.

@dagar: Why is this module heading to EOL? What is going to be replacing it?
I'll issue a PR so that at least the x_raw, y_raw are in the same direction as x and y if the rotation is set to ROTATION_NONE. (I'll hopefully do this by tomorrow).
@julianoes : From personal experience (I have the two GPS modules in front of me), the [https://drotek.com/shop/en/808-ublox-neo-m8t-gps-hmc5983-compass-xl.html](Ublox NEO-M8T GPS + HMC5983 compass (XL)) has the magnetometer rotated at 90 degrees to their [https://drotek.com/shop/en/680-ublox-neo-m8n-gps-hmc5983-compass-xxl.html](Ublox NEO-M8N GPS + HMC5983 compass (XXL)) (which is the same as the 3DR) rotation.


Serializing a class that has an empty String value leads to exception

Hi,
I don't know yet if I'll be needing this class but it is impressive. Thanks for your great work.
I found an issue when a String property has an empty value.
*Scenario:
Add a String property to MyMinorClass. Let's name it "txt".
Run the project, click on the Serialize button.
Exception raised:
ErrorNumber: 0
Message: root{?}{?}{?}{?}: String value is not convertible to UTF-8
Reason: root{?}{?}{?}{?}: String value is not convertible to UTF-8
*Workaround: Set a default value <> "" to all String properties.
*Remarks: An empty Text property doesn't have this issue.

Thanks.
This is a known bug in the Xojo framework. The workaround is to store an empty Text where an empty String is detected.


Avoid logging posting succeeded in some error cases.

Logging the "Posting succeeded" message was previously in the "finally" block; it could be hit after an exception was thrown from e.g. HttpClient's executeMethod.  Now do it only when there's an OK response, and nothing prior has thrown.
(This has been compiled and packaged but not yet deployed locally.)

@tterrag1098 @ahippo @mattwilliams-stfc @Shovinus since you've recently opened pull requests please peer review this pull request.

Thank you for a pull request! Please check this document for how the Jenkins project handles pull requests

Looks good to me.

Obvious bug, obvious fix. All good for me :+1:

Agreed.


unifi7: 7.3.76 -> 7.3.83

Description of changes
unifi update. https://community.ui.com/releases/UniFi-Network-Application-7-3-83/88f5ff3f-4c13-45e2-b57e-ad04b4140528
database migrations kept crashing for us coming from 7.2, we had to roll back, take a backup and nuke the db. restoring from the backup worked fine though. if anyone else has this problem we may want to skip this update or add a big fat warning to the release notes.
Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
23.05 Release Notes (or backporting 22.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

To be fair, I've stopped using UniFi a few months ago - in my current apartment a regular "prepackaged" wifi+router does the job and so... :smile:
(I've just kept approving the stuff, since I don't mind doing the reviews.)