text:
PREPARE_PARALLEL_JOBS should limit parallelism until actual build

When setting PREPARE_PARALLEL_JOBS to 1 I see poudriere still running multiple build-depends, runtime-depends and extract jobs.
Since PREPARE_PARALLEL_JOBS is meant to reduce the outstanding i/o I think it should limit everything but the actual build/compile stage.

Those depends calls are in the actual "port build" phase. The PREPARE_PARALLEL_JOBS is purely for the startup of computing dependencies - long before the "port build" phase.
It's not possible to do as you ask.
The structure of Poudriere is:

compute dependencies.

This iterates all ports in the queue and asks them what their BUILD_DEPENDS LIB_DEPENDS PKGNAME, etc, are.
It parallelizes this by PREPARE_PARALLEL_JOBS since it is just simple make -V calls and not compliations.

It then loads up PARALLEL_JOBS "builders" or jails.
It then passes jobs from the queue to idle builders.
Idle builders do the "port build" phase, where they do everything from installing dependencies in the jail (which is what build-depends, lib-depends, etc are).  Then they do the actual compilation and packaging.

It's not possible to limit the depends installation part of the port build phases because the job has already been doled out to one of the idle builders which was determined by PARALLEL_JOBS.
It's quite similar to the problem discussed in #387 that we can't really change MAKE_JOBS/cpus dynamically. Once a job is dispatched it will use whatever MAKE_JOBS or cpus we gave it at the start.
Anyway, with 3.2 (poudriere-devel) the PREPARE_PARALLEL_JOBS phases of computing dependencies are much faster and parallelize better.
Are you building over NFS or some other slow IO?

authors: bdrewery reezer

repo: freebsd/poudriere


text:
Patch fix #1109

This isn't a full fix, but it's an improvement of the status quo we've had for months.
Given something like:
import chisel3._

class MyModule extends RawModule {
  def func(): Unit = {
    val port = IO(Output(UInt(8.W))) //.suggestName("port")
    port := 3.U
  }
  func()
}

object MyMain extends App {
  println(chisel3.Driver.emit(() => new MyModule))
}

Currently, you get the following error:
[error] Exception in thread "main" java.lang.ClassCastException: chisel3.internal.firrtl.Ref cannot be cast to chisel3.internal.firrtl.ModuleIO

Pretty worthless. This PR changes the error to
[info] [error] RawModule.scala:53: Unable to name port UInt<8>(IO <UNNAMED> in MyModule) in MyModule@a67c67e, try making it a public field of the Module in class chisel3.RawModule

It does not pinpoint the error so I'm not going to call this a full fix, but at least it tells you something.
A better solution would come from adding source locators to ports such that we could then report the line. I think this is helpful enough to be worth merging without having to adopt that larger project.
Related issue: #1109

Type of change: bug fix

Impact: no functional change

Development Phase: implementation
Release Notes
Patch #1109 giving a better error message

h/t to @ekiwi for reminding me of this lingering issue

source: gharchive/pull-request

license_type: permissive

license_source: github-api


text:
Make digraph methods deterministic

There are three requirements for making digraph methods deterministic (#529, #545):

Use LinkedHashMap{Set,Map} exclusively
Hide the mutable.{Set,Map}-type references to prevent direct mutation in unpredictable ways
Use only plain iteration ordering of LinkedHashMaps, and avoid using any built-in methods that perform an operation on a {Set,Map} and return a collection (keySet, etc).

This PR also addresses the API of adding edges to add three flavors that either throw, add vertices, or fail when attempting to add edges between vertices not currently in the graph. This may not be the best solution and/or naming, but it reflects existing use cases and simplifies pass-writers code while making intent clearer.

Why "DO NOT MERGE"?

I wanted someone to comment on the changes to the API (types, edge adding variants) first. I figured I'd remove that label after some feedback.
Go back to bed!

authors: albert-magyar jackkoenig

repo: freechipsproject/firrtl


text:
Random test failure - Client bidirectional Streaming

A random failure on the test :
"frees-rpc client should be able to run client bi-directional streaming services"
with the error:
List() was not equal to
List(E(A(100,200),foo3), E(A(1000,2000),foo4))

is ignored on Travis for now

Possible duplicated by #164

Closing as duplicate of #164 since those only seem to happen for FS2 bidi tests; let's (re-)open as a separate issue if we see it happening with Monix and/or non-bidi tests.
(Folks getting notifications for the testing issues: sorry to have gotten your hopes up)

source: gharchive/issue

authors: AdrianRaFo L-Lavigne fedefernandez

repo: frees-io/freestyle-rpc

license_source: bigquery


text:
is support root node is array?

like this, is support?
[
{},
{}
]

@akaylh
like this?
Input
[
{"a": 1},
{"a": 2}
]

Query
$[*].a
Output
[
  1,
  2
]

you can try here https://freestrings.github.io/jsonpath/

authors: akaylh freestrings

repo: freestrings/jsonpath

license: MIT


text:
Add Array-Enum Support and Miscellaneous Enhancements

This pull request introduces several enhancements and fixes to improve the functionality, maintainability, and developer experience for tableschema-js.
Key Features and Changes

Extends functionality to allow array-typed fields to leverage enums. This change facilitates better schema validation and broader use cases.
Updated various npm dependencies to address security vulnerabilities, where feasible.
Added cross-env to npm scripts to support consistent environment variable handling across operating systems, particularly on Windows.
Resolved an issue where eslint was silently failing to execute in lint and format npm scripts.
Updated the eslint.config to properly suppress ending semicolon, adhering to the project's code style guidelines.
Added missing TypeScript definitions for several properties, improving type safety and developer tooling support.

Corrected the definition of ExtendedRow to reflect its intended usage accurately.

Given the addition of functional changes, incremented the package version to 1.13.0 following semantic versioning principles.

Unit tests have been updated and verified for all new functionality.
Existing tests were re-run to ensure no regressions were introduced.
Manual verification performed for build scripts on Windows and Unix environments.
Please publish the updated npm package upon approval.

Please preserve this line to notify @aivuk (lead of this repository)

Pinging @roll here as well just for awareness (NB: not sure who's formally watching this repo these days).

Hi @jungshadow,
I'm ccying @pdelboca and @sapetti9

Thanks, @roll!

authors: JDziurlaj jungshadow roll

repo: frictionlessdata/tableschema-js


text:
Add CommerceDelivery module

Adds a new shipment method where the shipping cost can be set per country. If no country is enabled it falls back to the default delivery pricing.
Validation still needs to be added so only the available country / method is shown based on the shipment address provided by the customer.

There's still an issue with the test failing on the foreach in Quote.php:24. Not sure how I should supply the shipmentMethod countries to the module settings in order for them to be available in the test.

Hmm weird, can you enable "Allow write-access for maintainers" in the settings of this PR? I can try to push a fix

authors: alessandrocraeye jessedobbelaere


text:
fix imports Worker.js

📦 Published PR as canary version: Canary Versions

:sparkles: Test out this PR locally via:
npm install @friggframework/api-module-activecampaign@0.8.14-canary.73.e74fa85.0
npm install @friggframework/api-module-airwallex@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-attentive@0.8.14-canary.73.e74fa85.0
npm install @friggframework/api-module-clyde@0.8.15-canary.73.e74fa85.0
npm install @friggframework/api-module-connectwise@0.8.16-canary.73.e74fa85.0
npm install @friggframework/api-module-crossbeam@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-fastspring-iq@0.8.14-canary.73.e74fa85.0
npm install @friggframework/api-module-front@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-gorgias@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-hubspot@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-huggg@0.8.14-canary.73.e74fa85.0
npm install @friggframework/api-module-ironclad@0.0.15-canary.73.e74fa85.0
npm install @friggframework/api-module-marketo@0.8.14-canary.73.e74fa85.0
npm install @friggframework/api-module-monday@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-netx@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-outreach@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-personio@0.8.14-canary.73.e74fa85.0
npm install @friggframework/api-module-pipedrive@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-qbo@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-rev-io@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-rollworks@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-salesforce@0.8.19-canary.73.e74fa85.0
npm install @friggframework/api-module-salesloft@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-slack@0.1.3-canary.73.e74fa85.0
npm install @friggframework/api-module-terminus@0.8.13-canary.73.e74fa85.0
npm install @friggframework/api-module-zoom@0.8.13-canary.73.e74fa85.0
npm install @friggframework/core@0.2.8-canary.73.e74fa85.0
npm install @friggframework/integrations@1.0.11-canary.73.e74fa85.0
npm install @friggframework/module-plugin@1.0.14-canary.73.e74fa85.0
# or
yarn add @friggframework/api-module-activecampaign@0.8.14-canary.73.e74fa85.0
yarn add @friggframework/api-module-airwallex@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-attentive@0.8.14-canary.73.e74fa85.0
yarn add @friggframework/api-module-clyde@0.8.15-canary.73.e74fa85.0
yarn add @friggframework/api-module-connectwise@0.8.16-canary.73.e74fa85.0
yarn add @friggframework/api-module-crossbeam@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-fastspring-iq@0.8.14-canary.73.e74fa85.0
yarn add @friggframework/api-module-front@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-gorgias@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-hubspot@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-huggg@0.8.14-canary.73.e74fa85.0
yarn add @friggframework/api-module-ironclad@0.0.15-canary.73.e74fa85.0
yarn add @friggframework/api-module-marketo@0.8.14-canary.73.e74fa85.0
yarn add @friggframework/api-module-monday@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-netx@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-outreach@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-personio@0.8.14-canary.73.e74fa85.0
yarn add @friggframework/api-module-pipedrive@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-qbo@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-rev-io@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-rollworks@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-salesforce@0.8.19-canary.73.e74fa85.0
yarn add @friggframework/api-module-salesloft@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-slack@0.1.3-canary.73.e74fa85.0
yarn add @friggframework/api-module-terminus@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/api-module-zoom@0.8.13-canary.73.e74fa85.0
yarn add @friggframework/core@0.2.8-canary.73.e74fa85.0
yarn add @friggframework/integrations@1.0.11-canary.73.e74fa85.0
yarn add @friggframework/module-plugin@1.0.14-canary.73.e74fa85.0

:rocket: PR was released in @friggframework/api-module-activecampaign@0.8.14, @friggframework/api-module-airwallex@0.8.13, @friggframework/api-module-attentive@0.8.14, @friggframework/api-module-clyde@0.8.15, @friggframework/api-module-connectwise@0.8.16, @friggframework/api-module-crossbeam@0.8.13, @friggframework/api-module-fastspring-iq@0.8.14, @friggframework/api-module-front@0.8.13, @friggframework/api-module-gorgias@0.8.13, @friggframework/api-module-hubspot@0.8.13, @friggframework/api-module-huggg@0.8.14, @friggframework/api-module-ironclad@0.0.15, @friggframework/api-module-marketo@0.8.14, @friggframework/api-module-monday@0.8.13, @friggframework/api-module-netx@0.8.13, @friggframework/api-module-outreach@0.8.13, @friggframework/api-module-personio@0.8.14, @friggframework/api-module-pipedrive@0.8.13, @friggframework/api-module-qbo@0.8.13, @friggframework/api-module-rev-io@0.8.13, @friggframework/api-module-rollworks@0.8.13, @friggframework/api-module-salesforce@0.8.19, @friggframework/api-module-salesloft@0.8.13, @friggframework/api-module-slack@0.1.3, @friggframework/api-module-terminus@0.8.13, @friggframework/api-module-zoom@0.8.13, @friggframework/core@0.2.8, @friggframework/integrations@1.0.11, @friggframework/module-plugin@1.0.14 :rocket:

:rocket: PR was released in @friggframework/api-module-activecampaign@0.8.15, @friggframework/api-module-airwallex@0.8.14, @friggframework/api-module-attentive@0.8.15, @friggframework/api-module-clyde@0.8.16, @friggframework/api-module-connectwise@0.8.17, @friggframework/api-module-crossbeam@0.8.14, @friggframework/api-module-fastspring-iq@0.8.15, @friggframework/api-module-front@0.8.14, @friggframework/api-module-gorgias@0.8.14, @friggframework/api-module-hubspot@0.8.14, @friggframework/api-module-huggg@0.8.15, @friggframework/api-module-ironclad@0.0.16, @friggframework/api-module-marketo@0.8.15, @friggframework/api-module-monday@0.8.14, @friggframework/api-module-netx@0.8.14, @friggframework/api-module-outreach@0.8.14, @friggframework/api-module-personio@0.8.15, @friggframework/api-module-pipedrive@0.8.14, @friggframework/api-module-qbo@0.8.14, @friggframework/api-module-rev-io@0.8.14, @friggframework/api-module-rollworks@0.8.14, @friggframework/api-module-salesforce@0.8.20, @friggframework/api-module-salesloft@0.8.14, @friggframework/api-module-slack@0.1.4, @friggframework/api-module-terminus@0.8.14, @friggframework/api-module-zoom@0.8.14, @friggframework/database@1.0.7, @friggframework/encrypt@1.1.4, @friggframework/integrations@1.0.12, @friggframework/logs@1.0.7, @friggframework/module-plugin@1.0.15 :rocket:

authors: seanspeaks sheehantoufiq

repo: friggframework/frigg


text:
AutosaveInterval

I'm trying to get autoSaveInterval to work with no luck.  Here's what's in my template file...
{{> froalaReactive   autosaveInterval=2500 _onbeforeSave=doSave  inlineMode=false  _value=this.text}}
When I call doSave with : $('.froala-box').editable('save')
everything works...
But not doSave doesn't seem to be getting called with autosaveInterval.
Any ideas?

Hi,
There are two settings that are needed to make this work:
{{> froalaReactive autosave=true autosaveInterval=2500 .... }}

See https://www.froala.com/wysiwyg-editor/docs/options#autosave
Let me know if this works for you, then I can close this issue.

It works, yes.  Thanks for the clarification.

hello, are there any changes? Does not work for me.

Hi
No changes to this wrapper package recently. You will have to provide more
info if I will have a chance to help you.
On 20 Sep 2016 9:42 a.m., "tarzak" notifications@github.com wrote:

hello, are there any changes? Does not work for me.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/froala/froala-reactive/issues/16#issuecomment-248240650,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AApa_eXIicZ081fpYNhJLEMvsMa35VPeks5qr5yNgaJpZM4FHtl5
.

authors: dakota11 rjsmith tarzak

repo: froala/froala-reactive

license: mit


text:
🛑 iigau lab is down

In 6767b2a, iigau lab (https://akkoma.yokkin.com) was down:

HTTP code: 403
Response time: 67 ms

Resolved: iigau lab is back up in 1a4e6ab after 1 day, 2 minutes.


text:
Bump kubevirt deps

Upgrade deps to:

kubernetes 1.13.4
kubernetes client-go 10.0.0
kubevirt 0.19.0
cdi 1.9.5

No changes in behaviour are expected.

/cc @ksimon1

repo: fromanirh/kubevirt-template-validator


text:
Noticed that both use same license

Updated Readme file for clarification.

Thank you!

repo: frostwire/frostwire


text:
Tooltip crashes on first hover

Using this JSON
https://discord.com/channels/785153694478893126/787340960173391903/981374961170145330
hovering over any tooltip on Xingqiu's page will cause a crash
If you open the formula dropdown, then hover the tooltip, it will not crash anymore

This is due to Translate component in KeyMap.get. Not sure why, but you can't useTranslation inside the tooltip if the namespace hasn't been loaded.

yep. here is the fix.

However, I'm not sure how or why this works...

Wrapping the tooltip content in a suspense seems to fix it. Im not sure ultimately what is happening underneath that is causing this, but should be a good enough fix for now.

authors: frzyc lantua nguyentvan7

repo: frzyc/genshin-optimizer


text:
Artifact Equipped/Inventory logic

Currently the UI logic seems a little strange for the "equipped" button as it seems to be acting more like a toggle to enable/disable the "location" multi-select drop down.
It's a little counter intuitive since you have to turn "off" showing equipped to then be able to define which characters to show equipped for. There might be a better way to communicate that in the UI?
The terminology "Inventory" can also be confusing as artifacts in your in-game inventory do not discriminate between equipped status. It's just all the artifacts in your inventory.
States you want is:
All Artifacts (Equipped and Unequipped)
Exclusively Equipped
Exclusively Unequipped
Exclusively Character Specific (Multi-select)
Character Specific and Unequipped
How about the following:

I think this communicates the intention clearer and the UI flows a little more when "toggling" the All Equipped button to enable the Location field below

I liked the look of the inputs being all stacked up, but I think the text can be updated.


text:
Lights unavailable in home assistant

Hi fsaris!
First, I would like to thank you for your amazing work on this integration. I'm complete newbie to HA, so I hope I am not missing anything simple.
I have in total Awox 9 smart bulbs - four Eglo 12222 (ZigBee and BT) , one Eglo 12244 (ZigBee and BT) and five Eglo 11856 (BT only) . All these lights show properly in the Awox app and I can control them through there.
I run HA on HA Blue, with attached Conbee stick and Asus BT adapter. I have 0.1.3 version of your Awox integration.
All lights appear correctly in HA after installing the integration through HACS and entering my credentials, however all the five 5 Eglo 11856 bulbs appear as not available. I have tried to remove the integration and different versions, with the same outcome.
Going through the logs I found 4 errors and 3 warnings and I think the connection is timing out for the 5 BT bulbs. I have attached logs below for all the errors and warnings merged into txt file as I have not figured out how to copy the full log.  I do not understand why they appear as unavailable as I can control them through the Awox native app and they are all within reach of each other and also within reach of my home assistant.
What am I missing?
Thanks again for all the hard work invested into the integration & problem solving.
underctrl
Awox_logs.txt

I have the exact same issue with my:

5x EPanel_300, Version 2.2.17 (HW 4.30)
2x EPanel_600, Version 2.2.17 (HW 4.30)
1x EGLO-RGB-TW, Version 2.6.17 (HW 4.50)

Here is the log message:
Dieser Fehler wurde von einer benutzerdefinierten Integration verursacht
Logger: custom_components.awox.awox_mesh
Source: custom_components/awox/awoxmeshlight/init.py:108
Integration: AwoX Mesh Beleuchtung (documentation, issues)
First occurred: 23:29:57 (27 occurrences)
Last logged: 23:37:31
exception Timed out connecting to a4:c1:38:a3:33:53 after 15 seconds.
exception Timed out connecting to a4:c1:38:a7:7c:7f after 15 seconds.
exception Timed out connecting to a4:c1:38:e4:0e:99 after 15 seconds.
exception Timed out connecting to a4:c1:38:ee:0c:67 after 15 seconds.
exception Timed out connecting to a4:c1:38:96:d9:18 after 15 seconds.
Traceback (most recent call last):
File "/config/custom_components/awox/awoxmeshlight/init.py", line 101, in connect
with self._receiver.event("connect", timeout):
File "/usr/local/lib/python3.10/contextlib.py", line 142, in exit
next(self.gen)
File "/usr/local/lib/python3.10/site-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.10/site-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/config/custom_components/awox/awox_mesh.py", line 324, in _async_connect_device
if await self.hass.async_add_executor_job(device.connect):
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/awox/awoxmeshlight/init.py", line 196, in connect
self.btdevice = self.adapter.connect(self.mac, timeout=15)
File "/config/custom_components/awox/awoxmeshlight/init.py", line 108, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to a4:c1:38:e4:0e:99 after 15 seconds.

repo: fsaris/home-assistant-awox


text:
Broken message edit

STR:

Install math-with-slack
Write message
Click ↑ to edit last message
Whitespace can't be used while editing

Editing through UI "edit message" works, tho.
Env:
Direct Download 3.2.1 64-bit
Ubuntu 18.04

Thank you for the report. Are you sure this isn't a bug with Slack? The bug pops up also for messages without math in them. Does the bug replicate also without math-with-slack?

At least on my env — sure, I've checked it before reporting this ;)
Removing math-with-slack + restarting slack instantly solves problem.

Thanks -- just checking. This will not be a priority, but I'll look into it when I get a chance.

Yes, I notice the same thing. The edit can do everything except add whitespace.

I have the same issue

I have the same issue as well :disappointed:

Please prioritize this more... Every time I want to edit more than a single word in a message I have to write it in an external editor and paste it in

@rfrowe Thank you for letting me know that this is a requested feature. I, however, provide this script free of charge as a courtesy to the community. This is in no way a service I provide to you. If you urgently need this feature, I suggest you spend the weekend implementing it yourself, and then make a pull request.

authors: 3lnc fsavje isnbh0 kmace matzhaugenOI rfrowe

repo: fsavje/math-with-slack


text:
Removing broken link

Remove broken link for FCell project

Thanks!

authors: dsyme lqdev


text:
Elmish hook optional overloads

Added an overload to useElmish hook that makes initArg does not need to be specified when initArg is unit.
So this:
let model, dispatch = ctx.useElmish(init, update, ())

Can also be written as this:
let model, dispatch = ctx.useElmish(init, update)

@sleepyfran, this one is ready, and I bumped the version to v0.6.0-preview7.
It contains this change plus a render performance optimization (#237).
I will create a new release.


text:
Paket pack fails if output type is executable.

This is probably a bit of an edge case, but: I have a project that produces an .exe file, but this .exe file is also used as a library, so I want to pack it as a nuget package.
Leaving aside the discussion on where in the package folder this .exe file should go, paket .pack assumes it should be looking for a dll file, and failes packing when the projectname.dll file is nowhere to be found. (It should be looking for projectname.exe).

(This is a project template btw, not a file type template)

/cc @mavnn

Attempted to work around this by not adding a template file to the executables => paket pack should include project binaries into package for packed dlls, same issue

Yes I assume this needs to be addressed in paket

It's holding up my progress, So I'll have a go at shaving this yak. (unless @mavnn  is already way ahead of me)

found the issue
Now, lets see if I can also get some tests covering it

authors: Vidarls forki

repo: fsprojects/Paket


text:
[WIP] Verbose bootstrapper

This PR change the way -s work in the bootstrapper. There is now a verbosity level that can be decreased via -s and increased via -v.
The levels are :

Silent -> Never display anything.
ErrorsOnly -> Only errors are shown on the console (Default in magic mode)
Normal -> Informative logs (Default in non-magic mode)
Trace -> More logs, especially timing for most operation is displayed.

This PR change the default behavior, before a single -s resulted in the boostrapper being silent but 2 are now needed for the same result

can you please make it compile with older C#? I have trouble in VS2013

authors: forki vbfox


text:
[Coloring] Enums are colored as mutable vars

Current master

https://github.com/fsharp/FSharp.Compiler.Service/issues/452

https://github.com/fsprojects/VisualFSharpPowerTools/pull/1193

Fixed in #1193

repo: fsprojects/VisualFSharpPowerTools


text:
Make DefaultAzureCredential as default credential method instead of anonymous access?

Hi there
what do you think of making DefaultAzureCredential as the default credential method instead of anonymouns access because I think that is the most common use case.

+1, that would be great.

xref https://github.com/fsspec/adlfs/pull/250, where this was implemented but then reverted. I think we can do this, but we'll need a deprecation cycle.
I was somewhat worried that this would be too noisy of a deprecation, but if we think that the majority of users are specifying credential anyway (which I think they are) then the only people affected are those relying on credential="anon".
So +1 to deprecating the current default with a FutureWarning and then moving to DefaultAzureCredential in a later future.

Is there any way to move this forward? There are some libraries that do not expose fsspec storage options because they assume the anon=False logic like in s3, and I suppose azure is not their main target audience. As a workaround would it be possible to add an env option to disable anon access before we transition to anon=False by default?

For those interested in this https://github.com/fsspec/filesystem_spec/pull/1194 provides a generic alternative solution (make sure to update fsspec as it's pretty recent addition). You can pass a default argument to FSSPEC for specific implementations through an env variable as follows:
os.environ["FSSPEC_ABFS"] = """
{
  "anon": false
}
"""

I'll be closing my PR (https://github.com/fsspec/adlfs/pull/393) as it's not getting any traction.

authors: JoostvDoorn QianqianNie TomAugspurger agrinh

repo: fsspec/adlfs


text:
Refresh credentials to check validity

The original call to credentials.valid does not work until the
credential has been refreshed once, as discussed in #486. This
instead checks if the credential will work by trying to connect

Apparently this is not how to call refresh?
>           self.credentials.refresh()
E           TypeError: refresh() missing 1 required positional argument: 'request'

ping

Can someone with a GCP instance to hand please check this?

OK, I am convinced - this is going in. Thanks @baxen

authors: baxen martindurant

repo: fsspec/gcsfs


text:
Blur active element only on Android devices

On iPhones, a click on editable content, attached to FastClick, would unexpectedly dismiss the keyboard. Not blurring the active element fixes the problem.

duplicate of #350

authors: CyborgMaster lichtsinn

repo: ftlabs/fastclick


text:
Save seed (and generation parameters) in the world file

"There seems to be no easy way to check the seeds that are used to generate the map. A little thing, but very frustrating when I want to recreate a map whose seed I did not write down. Perhaps the parameters used to create the world could be embedded/commented into the images as they are created? Or, perhaps, could this information be extracted from the .world file? "
We should save all generation parameters and also the Lands version number

In progress. I should have a commit in a day or two.

Great to read that!

Hey Federico,
I'm working through the issues with getting the protobuf stuff working with the new fields/members in the world class. Adding members obviously changes the serialization schema, and therefore the world file format. Do you care about backward compatibility?
Russ

Hey Russ,
I think we could add the new fields marking them as optional and assigning to them the next free field id, it should give us backward compatibility (of course we should use some sensible default value).
So said I think backward compatibility it is not super important because we just added protobuf, so I guess we can change it if it is necessary

Sounds reasonable. There might have to be a try:, except: clause to handle to the two versions. In my initial experiments, things seemed a little wonky.
What was the main motivation for adding protobuf? Giving access to the world data to other programming languages? Or does it have something to do with the GUI development?
On a side note, I've had a little bit of a setback. I'm having trouble getting protobuf installed via macports. I think when I recently reinstalled macports after upgrading to yosemite, that it screwed some things up, so I'm in the middle of re-installing macports. Normally this wouldn't be a big deal, but I make heavy use of the octave program, and it takes most of a day for macports to (re)compile it.

I started working on merging the master into my changes, and the new simulations/ directory was a little bit of a surprise. I'm going to back off on including seed, etc into the world class for now, and focus on the help message and verbose messages.

Hmm. simulations/ was always there. Grr. Still wrapping my head around git (still used to subversion).

"Sounds reasonable. There might have to be a try:, except: clause to handle to the two versions. In my initial experiments, things seemed a little wonky."
Little wonky is ok, first have it working, we can improve it later.
The idea about protobuf was to support other languages (would be nice to be able to import lands generated worlds in programs written in Java, C/C++ etc.) but I was also hoping it was more space-efficient that pickle. In practice I think it is not :)
I am sorry about the problems with protobuf. I used brew on the mac and I ran brew install protobug however you need the protoc tool that comes with protobuf only to generate the stubs (running generated_protobuf_stubs.sh). To actually run lands after that you just need the protobuf python package installable through pip. If it becomes messy to install protobuf you can always send me the changes you have done to the proto file and I can generate the new stubs and send them back to you. It is best to use brain cycles on coding than on figuring out installation stuff :D
About the problems with git... I hear you, it is starting to become a little more natural now but I am still confused from time to time. If I can help do not hesitate to ask, if you send a pull request which require some adjusting we can work on that together and have it merged.

Btw, I did some commits to master (moving code from geo to separate classes, one for each simulation) and it could have caused conflicts with your changes. It is not a super easy scenario because you have to play with two remotes (your github repo, my github repo) so it is something that can easily confuse.

whew. I think I finally got the git commit figured out  - including your commits to master over the weekend. ([This commit])(https://github.com/rbb/lands/tree/world_class_with_creation_params) still breaks the protobuf stuff, but at least it has the seed, and a few other variables included in the world class.

Thank you! I took your branch, I am doing a few changes and fixing the protobuf serialization.
I just removed the verbose and the recursion limit fields from world (I think they are parameters of the generation important only while generating, but they should not be stored).
I will merge soon your changes in the master branch and add you in the README.md, if it is ok for you

Awesome.
I have a couple of thoughts about the simulations package/directory. Should these functions really be part of the World class? It seems like they really want to be.
Russ

well, I think about the simulations as transformations operated on the world class. The world class should represent a specific state at a given time.
Each simulation could know for example when it can be applied, generate verbose messages (which could either go to the console or to a label in a GUI).
Ideally I would like to have a common interface for all the operations, so that I can treat them in the same way from the GUI. I introduced them when working on the GUI for this reason mainly.
I would also love to reduce the size of the World class.
However I think that the whole application could use some refactoring because it was not well planned at the beginning (I started writing it while learning Python and then it just sort of grow over time).
Now that we have more contributions we should have a cleaner, well architected (and documented code) so I am very open to suggestions. I will close this issue because we solved it with your code but feel free to open other issues or write to me.
Or maybe I will start a mailing-list in the future.

Now the seed and a bunch of generation parameters are saved. I guess we can close this one. Let's open a new one if there is still data that we want to add.

authors: ftomassetti rbb

repo: ftomassetti/lands


text:
:alien: :lipstick:

the :rocket: reached us :alien:.

features:

windows supports :shipit:
colorful response :rainbow:

Not bad :+1:

I would also like to thank @gpedro for the contributions he made.

authors: alvarowolfx ftonato gpedro

repo: ftonato/registrobr


text:
ESP8266 NodeMCU CP2102

Hello @fu-hsi ,
i would like to use the PMS library in a .ino sketch for the board NodeMCU in subject.
I need to understand which PMS5003 pins must be connected to which NodeMCU pins and how to specify in the .ino which NodeMCU pins i am using.
I saw somewhere that +5V can be got from NodeMCU VIN ..is it true?
I am going to connect in this way:
NODEMCU -- PMS5003:
VIN -- PIN1
GND -- PIN2
RX -- PIN5 (TXD)
TX -- PIN4 (RXD)
Is it right?
I have to connect the PMS5003 PIN3 (SET) and PIN6 (RESET) too, or they can be left unconnected?
THANK YOU!

Hi.
Yes, it looks fine.
You can leave SET and RESET pins floated.
Regards.

I saw somewhere that +5V can be got from NodeMCU VIN ..is it true?

I do use NodeMCU Vin for PSM5005 V+.
need to make sure that the power supply is enough, 5V 500ma could be fail to start PMS, you will find the PMS fan is not working.

If you are supply NodeMCU from USB then VIN can have 5V.
You can't broke anything, just connect and check.
VIN is Voltage Input for powering module, but it can proivide voltage if you power supply from USB socket.
Ther is not diode in circuit for CH340G.
https://circuits4you.com/wp-content/uploads/2017/12/nodemcu-circuit-diagram.png

Thank you @fu-hsi, @kalapontsai .
In my case, i have CP2102 instead of CH340G, i hope there is no diode also in this circuit.
I have two other questions:
I know that in NodeMCU board, the Serial pins TXD0 and RXD0 are connected to USB .
Do you think there is conflict between micro USB adapter and PMS5003?
To avoid conflict, is it enough to leave the PMS5003 unconnected while the USB is connected to my pc?
And sorry for these questions, i am a newbie:
after uploading the sketch (for example, Basic.ino), the USB can still work when i connect it to my pc and i want to upload other sketches?
Perhaps do i have to press the Flash button to put the board in Flash mode?
And finally: i see in the Basic.ino sketch that 'normal' messages are sent to TXD1 (via Serial1.println).
How can i see these messages?
In my case i am going to use your lib with Blynk lib, and so the pms data is sent through wifi to my smartphone Blynk app, so actually i dont need the Serial1 prints, but they could be useful for debug purposes...
Let me know, thank you again!!

Do  you think there is conflict between micro USB adapter and PMS5003?

Yes. That's whay You can't use USB for programming when PMS is connected.
To get around this I use OTA (over-the-Air programming).
You can also use any other pins for TX/RX with software serial library to avoid this conflict.

after  uploading the sketch (for example, Basic.ino), the USB can still work when i connect it to my pc and i want to upload other sketches?

No. See the first answer.

Perhaps do i have to press the Flash button to put the board in Flash mode?

I never did use this, so I don't know.

And  finally: i see in the Basic.ino sketch that 'normal' messages are sent to TXD1 (via Serial1.println).
How can i see these messages?

You muse connect external CP2102 or CH340G module to TXD1 and then to PC or you can use HC-06 and your Smartphone for receive messages (https://play.google.com/store/apps/details?id=de.kai_morich.serial_bluetooth_terminal&hl=en).

Regards.

thank you @fu-hsi
yes perhaps i have to buy one of such cp2102 , ch340g , hc06 modules
but in the meantime i would try to use software serial...about this i have a question:
to use software serial are needed big changes in your lib?
i forked the lib to my user, so i could try to add the changes there...

to use software serial are needed big changes in your lib?

Nope. Small changes is required.
For example: #14.
PMS object requires Stream object as argument.
You can pass hardware or software serial object.

ah thank you, @fu-tsi, seems simple, i will try.
but do you think could be better to use hardware serial instead of software serial?

I use hardware serial when possible.
Instead of SoftwareSerial you can use better implementations like:

AltSoftSerial,
NeoSWSerial.

The best way to avoid many problems is to use hw serial port. Nowadays there are many microcontrollers/developer boards which has at least two HW  serial ports. In my case I using MEGA2560 Core (or Pro) and with this library works great

Ok thank you for the suggestions.
I tried the sensor using pms and 'standard' software serial lib, using GPIO04 and GPIO05 pins.
At first time it did not work, i had only 'No Data' readings.
Then i found information that ESP8266 does not work with 'standard' software serial, but needs a specific library 'espserial' .
So i installed it , uploaded the sketch #14 , and it worked.
I have a question, now, about the readings:
the values are not stable:
for example, in my home, i get for pm2.5 in sequence :
18 µg/m³
10 µg/m³
6 µg/m³
11 µg/m³
15 µg/m³
...
so i wonder if the sensor is working well, or it gives random results
perhaps i have to calculate the medium value of the readings?
thank you!

hello @fu-tsi, i tried to use default mode ( basic.ino logic) , and the readings now have changed, and are more stable
now i read
pm1.0 10
pm2.5  16
pm10 22
and these values change only a little in the time (+- 1 or 2 points)
seems these values are correct and instead the old values in passive mode are not correct...

authors: Roberto6969 fu-hsi kalapontsai vicolodo

repo: fu-hsi/PMS


text:
Pagefind hurdles

Hello! Came across your commits hitting issues with Pagefind on Netlify and Cloudflare Pages — any logs you can share? If there are any issues with those environments I could look at improving the code or the documentation 🙂

Hi! Appreciate you taking the time to reach out and try to help! The issue I was having is that even though I could see in the deploy that pagefind was working as intended, it would index everything and the search bar appeared on the page, but it would not show search results. Per the network tab in Chrome DevTools, the CDN (in Netlify's case cloudfront.net) would return a 404 error for pagefind.js when I tried to do a search, and it would get stuck on "Searching for [query]..." because it could not fetch search results.
I don't think it's anything to do with the code itself, because I published the site with identical code to Surge.sh as a test and it works perfectly! (It's still up on Surge, see here -- pagefind.js responds with 200 and search results appear.) I also tried on GitHub Pages (already took it down so can't link) and it worked as well. I tried one last test on Cloudflare Pages, and it acted identical as on Netlify -- stuck on "Searching for [query]..." and never loads the search results. I didn't even bother checking DevTools that time, I was tired and frustrated, and decided to scrap the whole thing. I'm guessing it was a 404 error too, I could re-publish to a temp Cloudflare Page to confirm.
I thought it might be an issue with Netlify and Cloudflare CDNs, but I assume if Pagefind didn't work on two of the most popular free static site hosts, you'd have heard about it by now. It could be an issue with Astro (I doubt it but I couldn't really find much on using Pagefind with Astro) or I'm doing something wrong (very possible since I'm a JS newbie). I got really confused when it worked on Surge and GH Pages with no change to the code.
If you'd like, I can push a branch with the code I used and do a branch deploy on Netlify for you to check out. Thanks again for reaching out!!

If you push a branch I'd be more than happy to take a look! :)

Ok, test branch is up. I deployed to Surge.sh just to make sure (https://magenta-apples.surge.sh/search), it works there. The Netlify branch deploy (https://test--arieldiaz.netlify.app/search) still won't work, DevTools shows 404 response from Cloudfront.

Thanks for reproducing!
The issue seems to be that Netlify's Cloudfront in this case isn't serving the file with the right content type. If you open the dev console we see the following:
Loading module from “https://d33wubrfki0l68.cloudfront.net/js/ed605c29e3c132f03d08b671588e03b6ebfff62a/_pagefind/pagefind.js” was blocked because of a disallowed MIME type (“text/html”).

Since this js file is being served with a content type text/html it gets dinged with a CORS error. I'm not sure why that file isn't getting an application/javascript content type, and I'm not familiar enough with configuration on Netlify to suggest the correct fix there. Looking at your netlify.toml it seems that adding a [[headers]] block setting "/*.js" to Content-Type = "application/javascript" might be a fix? (Assuming those headers control Cloudfront)

Adding that header did not work, in fact in DevTools it was still showing content-type as text/html despite the change. However I noticed the console error said No 'Access-Control-Allow-Origin' header is present on the requested resource which was weird because I definitely had that in my Content Security Policy and it was set to "*".
This led to me searching around the Netlify support forums for that error and I discovered this answer to someone getting the same error under the same circumstances -- turns out using Netlify's asset optimization to bundle JS "will clash with custom headers" per the answer. I was having the issue even removing all header blocks from netlify.toml however, but I turned asset optimization off for JavaScript and viola, it worked!! (I did have to add 'unsafe-eval' but that's fine.)
Further testing showed that it's specifically the "Bundle JS" option in asset optimization that breaks Pagefind, using only "Minify JS" allows Pagefind to work just fine. Might be worthwhile to add a note about this in the docs re: Netlify. I didn't test on Cloudflare, but it seems they bundle JS by default and I couldn't find the option in their UI to disable it. This is probably why I was getting the error there as well. I could be wrong, but it seems the only way to change that on Cloudflare would be to use a custom build script.
Liam, thank you so much for taking time to help a nobody like me with this issue, you've really gone above and beyond!

My pleasure! Happy to see that there is a path to get it working and I'll take mental note of these configuration hurdles in case I see them crop up again in the future. I might even add some notes to the Pagefind documentation about pitfalls here, so thank you for the detailed notes on what did and didn't work to fix the problem! ❤
(Also, enjoying the blog so I'm glad I stumbled across it! Added to my reader 🙂)

authors: bglw fullmetalbrackets

repo: fullmetalbrackets/blog


text:
🛑 Profile API is down

In ed83ce2, Profile API (https://profile.live.net.co/) was down:

HTTP code: 502
Response time: 464 ms

Resolved: Profile API is back up in 098c9fb after 9 minutes.

repo: fullmoondev/status


text:
ModelPointClass will generate a gdignore regardless of whether "generate_gd_ignore_file" is true or false.

I have a ModelPointClass in my game project, using func_godot for mapping. I like to be able to access all of my folders from within Godot, so I set the "generate_gd_ignore_file" boolean to false within the ModelPointClass resource.

Even with this set, func_godot is insistent in still producing a .gdignore file within my Trenchbroom models folder.

Should be resolved by 2fba771

authors: LukesOffline RhapsodyInGeek


text:
Corrected documentation

The all function takes as a parameter vidOffset so I have updated the comment to correct this

thanks!

authors: bickart fungku

repo: fungku/hubspot-php


text:
Allow to obtain a permalink to the character sheet

Hello,
It exists for some random generators, so why not for this one?
For example, here you can generate a random character with stats and equipment, and using the random seed used to reset the random generator, you can recreate the character sheet. e.g: http://odd.pushingcows.se/?s=1496350790007 as a permalink.
You could then roll for a character on one device, being satisfied enough with it, send the permalink to yourself on another device, or share it with a friend of yours, etc.

It doesn't exist for this one because I didn't write the code to make that happen, and no one else has.

authors: brunobord funkaoshi

repo: funkaoshi/randomcharacter


text:
[React] [JS] Folder structure / basic rules

In general
In React

###Components structure

components

ui

containers

Questions:

What should be in ui folder - general rule

Something to read:

https://www.taniarascia.com/react-architecture-directory-structure/
https://www.robinwieruch.de/react-folder-structure
https://dev.to/knitesh/react-project-folder-structure-30cm
https://reboot.studio/blog/folder-structures-to-organize-react-project/

1. Components structure

components

ui

containers

Questions:

What should be in ui folder - general rules
How to nest components, should be a child components or not rules
Lower or upper case, everything need to be specify, to avoid inconsistency

UI means User Interface, so in ui folder should be all buttons, links, checkbox etc

[PROPOSITION]
In JS app

assets
scripts
styles


text:
Throwing error on nodejs 6.3.1

Latest version of nodeJS on CodeBuild is currently 6.3.1.
I know that's not very recent, but its latest on CodeBuild.
The rest parameter function is not supported on 6.3.1, so it's throwing an error.
Can we adjust the target FuseBox builds to make it compatible?

require("fuse-box/es6)

repo: fuse-box/fuse-box


text:
fix: require statements ignored if not 'true' requires. fixes #1142

fixes #1142

it's just been given a solid makeover, have another look

@jpike88 Thank you very much for contributing and spending so much time polishing up this PR! ❤

A project as awesome as fuse-box deserves everyone's love. I don't usually like to compliment things but seriously you deserve big kudos for this. I'll be around for other improvement and touch ups if you need the help!


text:
Revisit hard vs soft pod affinity for stage pods

When we implemented the pod affinity for stage pods, we created it as a soft affinity, as the intent was to colocate stage and application pods on the same node if possible, but if not, putting them on different nodes would at least allow migrations to work without failures for storage that doesn't require colocation. This was to avoid situations in which colocation wasn't possible (overloaded nodes, etc.) but the storage used didn't require it (NFS, etc.). We may want to revisit this if a higher failure rate with a clearer reason behind the failure would be preferable. "Migration failed because at least one node is overloaded".
It might be that with the diagnostic warnings requested by https://github.com/fusor/mig-controller/issues/310 this change won't be needed. Another possibility is to conditionalize the hard vs. soft affinity (or even conditionalize the presence of the affinity at all) based on whether the underlying storage plugin actually needs the pods to be running on the same node. All of this is more complicated (and error-prone) than simply making the affinity a hard one in all cases and moving on, though.

Closing, as this is no longer relevant with the removal of  the podAffinity scheduling.

repo: fusor/mig-controller


text:
Unfortunatelly, PepperoniAppTemplate has stopped

Get error message while starting vanila project 1.0.0 on android. Please find attached. The app also complain about env component.
Any Ideas?

Take a look at installation instuctions here: https://github.com/futurice/pepperoni-app-kit/blob/master/docs/SETUP.md#installation. You have to create a blank env file.

Worked! Thanks!

We'll improve the visibility of the setup instructions in the docs. Thanks for your help on responding to this fast @gaykov!

authors: cciszak gaykov jevakallio

repo: futurice/pepperoni-app-kit


text:
Navigation controls are not updated to reflect position when user scroll it with their trackpad

Left Right Navigation should reflect the real position after scroll snap event.
This unique scenario can only be experienced with a computer that support horizontal scrolling (a.k.a a trackpad).

The solution could be setup listener for dragging  the list and after dragend, evaluate the new position that is the smallest left value between item and left corner (via getBoundingClientRect).

@fuxingloh I have solved this problem. In scroll container of the vue-horizontal-list component, I setup @touchend listener, that evaluates actual position of the shown item. It works like a charm. Should I make PR ?

@Draccano please do, appreciate it!

@fuxingloh I just made PR https://github.com/fuxingloh/vue-horizontal-list/pull/29

authors: Draccano fuxingloh

repo: fuxingloh/vue-horizontal-list


text:
How can I use HtmlWidget  var in a expandable text ?

I'm using an html text(coming from my database)  and the package flutter_widget_from_html to show the text in the app but the expandable_text only accept a String to limit the number if caracterers.
How can I use HtmlWidget  var in a expandable text ?
https://pub.dev/packages/flutter_widget_from_html

Unfortunately using widgets for the text is not possible, because of how the overflow calculation works.

authors: davidsonmartins fweinaug


text:
Running Nuclei

anyone who ran nuclei using this tool?
I'm getting the following error.
                    __     _
       ____  __  _______/ /__  (_)
      / __ \/ / / / ___/ / _ \/ /
     / / / / /_/ / /__/ /  __/ /
    /_/ /_/\__,_/\___/_/\___/_/   v2.9.2

    		projectdiscovery.io

    [INF] nuclei-templates are not installed, installing...
    [INF] nuclei-templates are not installed, installing...
    [FTL] Could not create runner: [:RUNTIME] could not create config file <- open /home/sbx_user1051/.config/nuclei/reporting-config.yaml: no such file or directory
    Error in running the command:/go/bin/nuclei -list /tmp/infile -es info
    ----------------------------------------------------------
    2023-05-02 00:44:27,639 [INFO] jobrunner.py:239 -- Success function execution
    2023-05-02 00:44:27,640 [INFO] jobrunner.py:311 -- Process finished
]

Activation: 'sc-runtime' (**********id**************)
[
    2023-05-02 00:44:26,303 [INFO] handler.py:152 -- Lithops v2.9.0 - Starting AWS Lambda execution
    2023-05-02 00:44:26,303 [INFO] handler.py:153 -- Execution ID: fbb4d8-0-M000/00003
    2023-05-02 00:44:26,322 [INFO] aws_s3.py:67 -- S3 client created - Region: ap-south-1
    2023-05-02 00:44:26,412 [INFO] jobrunner.py:134 -- Getting dataset from aws_s3://my-bucket
    2023-05-02 00:44:26,504 [INFO] jobrunner.py:180 -- Chunk: 1/1 - Size: 3464 - Range: 0-3463
    2023-05-02 00:44:26,505 [INFO] jobrunner.py:233 -- Going to execute 'execute_command()'
    ---------------------- FUNCTION LOG ----------------------
    [ERR] failed to create config directory at /home/sbx_user1051/.config/nuclei got: mkdir /home/sbx_user1051: read-only file system
    [ERR] failed to write config file at /home/sbx_user1051/.config/nuclei/.templates-config.json got: [:RUNTIME] could not create nuclei config directory at /home/sbx_user1051/.config/nuclei <- mkdir /home/sbx_user1051: read-only file system

I am using the following commands
python3 shadowclone.py -i ~/bbdata/alive.txt --split 200 -o nuke.txt -c "/go/bin/nuclei -list {INPUT} -es info

 python3 shadowclone.py -i ~/bbdata/alive.txt --split 200 -o nuke.txt -c "/go/bin/nuclei -list {INPUT} -t $HOME/nuclei-templates/ -es info"

But still getting the same error can anyone tell if there is anything wrong I'm doing here?

There is an example for this in wiki
python shadowclone.py -i <WEB DOMAINS FILE> -c "nuclei -duc -l {INPUT} -t /nuclei-templates/technologies/tech-detect.yaml -config-directory /tmp/"

Another pro tip: don't run all templates -t $HOME/nucle,i-templates/.  It will never work with tis tool.

Hey thanks for your reply I tried just like you mentioned and I ran the following command
python3 shadowclone.py -i ~/bbdata/alive.txt -c "/go/bin/nuclei -l {INPUT} -t /nuclei-templates/technologies/tech-detect.yaml -config-directory /tmp/"

Tried with or without / before nuclei-templates but no luck :/ .
When I check the execution logs I'm getting this error
       [INF] nuclei-templates are not installed, installing...
    [INF] nuclei-templates are not installed, installing...
    [ERR] Could not find template '/nuclei-templates/technologies/tech-detect.yaml': could not find file: stat /nuclei-templates/technologies/tech-detect.yaml: no such file or directory
    [INF] Current nuclei version: v2.9.2 (latest)
    [INF] Current nuclei-templates version:  (outdated)
    [INF] Targets loaded for current scan: 705
    [INF] No results found. Better luck next time!
    [FTL] Could not run nuclei: no valid templates were found
    Error in running the command:/go/bin/nuclei -l /tmp/infile -t /nuclei-templates/technologies/tech-detect.yaml -config-directory /tmp/
    ----------------------------------------------------------
    2023-05-02 02:24:33,036 [INFO] jobrunner.py:239 -- Success function execution
    2023-05-02 02:24:33,046 [INFO] jobrunner.py:311 -- Process finished

The error is weired because it's say that nuclei templates are not installed but I believe we did install them because it was there in the docker file.

It seems ProjectDiscovery changed the directory structure for nuclei-templates repo recently. Use the correct path and it should work after that

Yes I saw the repo looks like they changed it on the Github. So I tried it locally and noticed that it's still the same directory structure nothing changed. Any suggestion how can I guess the correct path for the templates?.
Also you mentioned that you can't run all the templates any reason why?
Thanks

try this
python3 shadowclone.py -i ~/bbdata/alive.txt -c "/go/bin/nuclei -l {INPUT} -t /nuclei-templates/http/technologies/tech-detect.yaml -config-directory /tmp/"

Also you mentioned that you can't run all the templates any reason why?

Running all templates even on a single host will definitely take more than 15 minutes. Running it on a bunch of hosts will just kill your lambdas and cost you money.

Encountered a bad command exit code!
Command: 'nuclei -duc -l /tmp/infile -t /nuclei-templates/technologies/tech-detect.yaml -config-directory /tmp/'
Exit code: 127
Stdout: already printed
Stderr: already printed
I got this bruh

hey @fyoorer,
If I would want to run nuclei templates anyway because I care about the speed I scan, what do you think I should adjust the memory so I don't run into this error?
2023-10-12 23:25:39,256 [INFO] executors.py:612 -- ExecutorID 44b0ed-0 - Cleaning temporary data
2023-10-12 23:25:39,258 [ERROR] Could not execute the runtime.
Function exceeded maximum memory and was killed

repo: fyoorer/ShadowClone


text:
Disable CakePHP Model Behavior before populating data

Is there a way/or could you provide a config to remove behaviors from a table before data gets populated?

ping @jadb

Definitely. Adding this to my todo :) Thanks for pinging @fzaninotto!

Will this suffice?
        if (isset($options['behaviors']) && $options['behaviors'] === false) {
            $behaviors = $table->behaviors()->loaded();
            array_walk($behaviors, [$table, 'removeBehavior']);
            unset($options['behaviors']);
        }

right before save is called?

Also, on [https://github.com/fzaninotto/Faker/blob/master/src/Faker/ORM/CakePHP/EntityPopulator.php#L82]
Would you consider skipping the belongsTo if the key is passed in to $customColumnFormatters ?
This will prevents needless records from being created.
                if ( ! empty($this->columnFormatters[$assoc->foreignKey()])) {
                    return $data;
                }

ping: any updates on this one?

@jadb pretty any updates still on this? Else we will close it as a stale issue.

authors: aydot fzaninotto jadb pimjansen

repo: fzaninotto/Faker


text:
Feature/melhorias e limpeza

relacionado a #62

resolvendo problema #64


text:
Feature Request : Reaction avatars (like RefinedGithub)

This would be a nice feature. :slightly_smiling_face:

heh, I have all what's needed to make this happen... except for designing skills. If you could provide HTML for it (and indications of where to put it in the DOM) I could some day work on it :)
Also: this is something I'd gladly merge a PR for (it should be its own plugin)

I'm continuing the development of the extension in private :( read more about it on my blogpost


text:
"My workflows" waits an indeterminate period of time if SAM is non-responsive

Bug Report
Expected behaviour
Timeout after a reasonable amount of time and just show your own workflows.
Actual behaviour
Indeterminate progress bar doesn't seem to end.
Replicate with an AWS instance in a security group with no outgoing access to the Internet
Follows #1588 which was more serious (doesn't display anything if SAM is down)

Can do something like this in here -- in the getApiClient() method in case the line numbers change after this comment.

authors: coverbeck denis-yuen


text:
Batch sql inserts for gff3 script

Issue #1080

+1 Nice! Thanks @dcolligan - the code looks great, passed all my tests and resulted in a decent speedup of a moderately sized dataset (all gencode v24 annotations on Chromosome 17): The old code finished in ~ 98 seconds, this version in ~ 65 seconds.

+1. Merging.

authors: dcolligan jeromekelleher macieksmuga


text:
Fixed issues flagged by failing tests in test_schemas

All the problems in test_schemas came from inconsistencies in the schema definitions themselves. I'll be creating a separate pull request on those based on my experiences here. While I needed to edit _protocol_definitions.py by hand, fixing the underlying schema problems in the future will make such manual adjustments unnecessary.
Addresses Issue #356

Not sure if I agree with this; can you give us a bit more detail on why they were breaking, and what you have changed?

Specifically: An array member of a record was being defaulted to null, and inconsistent duplicate definitions of  the Experiment record were being pulled from two places (metadata and reads). I made a pull request against schemas to address these issues there, but for now edited the _protocol_definitions file by hand to make the tests pass.
@jeromekelleher I do agree, however, that this may not be worth pulling - this issue will resolve itself automatically once we update to the corrected schemas. Shall I close this PR then?

I think so @macieksmuga, let's close this PR and fix the problem at the source.

Closing PR, since underlying problem is addressed in this schemas PR

authors: jeromekelleher macieksmuga


text:
Proof of Concept

A redirection has:

A slug (to find with)
A url (to redirect to)
A next (reference to another redirection)
A previous (virtual reference to another redirection)

Using this, we can do redirection.next.url and redirection.previous.url
This is, as the title suggests a proof of concept. There's a bit of cleaning up (using the slug as a default find method, law of demeter in controller) to do. Lemme know what cha think.

Solid commit messaging. It's shenanigans like that which keep side projects alive.

This looks great. :+1:

Cool. Gonna squash down some of these commits and then :ship:

@gabebw @adarsh okay give this whole thing a look-see and let me know if I'm good to :shipit:

Minor comments, overall looks great. :100: :tada: :fireworks: :sparkling_heart:

authors: adarsh edwardloveall gabebw

repo: gabebw/hotline-webring


text:
Add summary string representation for message 3 and 4

Eu acho bem confuso olhar valores de texto muito grande (acima do milhão). Gostaria que existise tipo um "sumário para isso".
Antes

Depois

O total de caracteres for: 263. O que ainda é menor que 280

Eu entendo sua preocupação e concordo que simplificar os valores para formatos mais resumidos pode tornar a mensagem mais legível e economizar caracteres.
Porém, ao apresentar valores financeiros, especialmente a criptomoedas como o Bitcoin, a precisão acaba sendo mais bem relevante. Mesmo pequenas variações percentuais podem ser grandes somas em termos absolutos, por ter uma grande volatilidade. Por exemplo, uma variação de 0.5% ou 10% em um market cap de bilhões pode significar uma mudança substancial em termos de valor monetário.
Então, ao utilizar números arredondados ou simplificados pode ser que mascare essas variações.
Fiz recentemente uma mudança para tentar deixar mais claro, adicionei mais informações e reduzi o número de caracteres.
Antes da mudança (221 caracteres)

Depois da mudança (201 caracteres)

Estou usando de guia o CoinMarketCap e o CoinGecko que mostram os valores absolutos.
CoinMarketCap

CoinGecko

authors: Dathin gabireze

repo: gabireze/bitcoin-twitter-bot


text:
Add menu to access the Settings Screen

Check a way to add the menu in the current top bar to access the Settings Screen.

#16

repo: gabrielbmoro/MovieDB-Android


text:
Compartilhar resultado em redes sociais

Adicionar botão de compartilhamento para redes sociais (Facebook, Twitter).
O ideal é que o texto da publicação já seja padronizado como "Eu sou...." (ao invés de "Você é") e não precisa conter os atributos.
Também seria ideal que a imagem de preview (quando aplicável) fosse o "olho.jpg".

Implementando na versão 0.9.5


text:
Drawing when TPS and FPS are not in sync / have different rates

Hello
I think that some restructuring of the code/API is needed to make ebiten-imgui support different TPS/FPS rates.
In usual Dear ImGui setup, you call Begin/EndFrame and widget creation functions in "Update", not "Draw". Actual drawing should be just just done in "Draw" function.
So, I think it's the usage should be like this:
func (g *Game) Update() {
    g.mgr.BeginFrame()
    // put stuff like imgui.Button etc. here
    g.mgr.EndFrame()
}

func (g *Game) Draw(screen *ebiten.Image) {
    g.mgr.Draw(screen) // new function - doesn't call "EndFrame" for us
}

This is much better and allows to have 60 TPS (update calls per second) and 60+ FPS (Draw calls per second) - we just need to render the old frame if Draw has been called more than once for 1 update call. Note that we can call imgui.Render once - it doesn't break anything.
Thoughts? If you agree with this, I can make a PR which implements the changes, though it'll break the API.

Hello. I guess that this is indeed the correct approach. Feel free to submit a PR if you want to. Thanks!

I fixed the implementation in #12

Works wonderfully, thanks a lot!

authors: eliasdaler gabstv

repo: gabstv/ebiten-imgui


text:
run but does not work

i can use this sample  code in android studio without any problem
also run in my android phone but does not work , just camera preview and show filters below
but no effect .
android studio 3.6.1
android phone sumsong j5 and hoawei honor

Hi @fardinfroghi ,
Assuming that it is only a prototype.
It could be more detailed, I did not understand what the problem.
P. S.
I would like to ask you to respect the documentation I wrote with commitment to the issues.

authors: fardinfroghi gaetanozappi

repo: gaetanozappi/Android-face-filters


text:
what the mint of usdt?

func (s *Solana) BalanceOfContract(addr string, contract string) (value decimal.Decimal, symbol string, erc *cerror.CError) {
pubKey, err := solana.PublicKeyFromBase58(addr)
if err != nil {
return decimal.Zero, "", cerror.NewError(cerror.CODE_ADDR_ERROR, err.Error())
}
out, err := s.client.GetTokenAccountsByDelegate(
context.TODO(),
pubKey,
&rpc.GetTokenAccountsConfig{
Mint: solana.MustPublicKeyFromBase58(contract).ToPointer(),
},
&rpc.GetTokenAccountsOpts{
Commitment: rpc.CommitmentFinalized,
},
)
if err != nil {
return decimal.Zero, "", cerror.NewError(cerror.CODE_THIRD_REQ_ERROR, err.Error())
}
fmt.Println(out)
//s.client.GetTokenAccountsByOwner(context.TODO(), pubKey, &rpc.GetTokenAccountsConfig{},&rpc.GetTokenAccountsOpts{})
return decimal.Zero, "", nil
}
func TestSolana_BalanceOfContract(t *testing.T) {
//value, symbol, erc := caseSolana.BalanceOfContract("7xLk17EQQ5KLDLDe44wCmupJKJjTGd8hs3eSVVhCx932", "So11111111111111111111111111111111111111112")
value, symbol, erc := caseSolana.BalanceOfContract("7xLk17EQQ5KLDLDe44wCmupJKJjTGd8hs3eSVVhCx932", "FEYFyLCFLcBNfSuaf2eXNvyY5Jpii7zg9X48Br5vyenG")
//value, symbol, erc := caseSolana.BalanceOfContract("7xLk17EQQ5KLDLDe44wCmupJKJjTGd8hs3eSVVhCx932", "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB")
require.Nil(t, erc)
require.NotEmpty(t, symbol)
t.Log(value)
}
    	Error:      	Expected nil, but got: &cerror.CError{Code:1008, Msg:"(*jsonrpc.RPCError)(0x140003942d0)({\n Code: (int) -32602,\n Message: (string) (len=34) \"Invalid param: could not find mint\",\n Data: (interface {}) <nil>\n})\n"}

func TestSolana_BalanceOfContract(t *testing.T) {
//value, symbol, erc := caseSolana.BalanceOfContract("7xLk17EQQ5KLDLDe44wCmupJKJjTGd8hs3eSVVhCx932", "So11111111111111111111111111111111111111112")
//value, symbol, erc := caseSolana.BalanceOfContract("7xLk17EQQ5KLDLDe44wCmupJKJjTGd8hs3eSVVhCx932", "FEYFyLCFLcBNfSuaf2eXNvyY5Jpii7zg9X48Br5vyenG")
value, symbol, erc := caseSolana.BalanceOfContract("7xLk17EQQ5KLDLDe44wCmupJKJjTGd8hs3eSVVhCx932", "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB")
require.Nil(t, erc)
require.NotEmpty(t, symbol)
t.Log(value)
}
GOROOT=/opt/homebrew/Cellar/go/1.20.3/libexec #gosetup
GOPATH=/Users/admin/Documents/work/go #gosetup
/opt/homebrew/Cellar/go/1.20.3/libexec/bin/go test -c -o /private/var/folders/y0/nd19tl3j51b10r1gj1l98qsc0000gn/T/GoLand/___gitint_epandabank_com_blockchain_interface_chain_implement_git_imp_impsolana__TestSolana_BalanceOfContract.test gitint.epandabank.com/blockchain/interface/chain-implement.git/imp/impsolana #gosetup
/opt/homebrew/Cellar/go/1.20.3/libexec/bin/go tool test2json -t /private/var/folders/y0/nd19tl3j51b10r1gj1l98qsc0000gn/T/GoLand/___gitint_epandabank_com_blockchain_interface_chain_implement_git_imp_impsolana__TestSolana_BalanceOfContract.test -test.v -test.paniconexit0 -test.run ^\QTestSolana_BalanceOfContract\E$
=== RUN   TestSolana_BalanceOfContract
solana_test.go:26:
Error Trace:	/Users/admin/work_jiaojie/chain-implement/imp/impsolana/solana_test.go:26
Error:      	Expected nil, but got: &cerror.CError{Code:1008, Msg:"(*jsonrpc.RPCError)(0x140002e62d0)({\n Code: (int) -32602,\n Message: (string) (len=47) "Invalid param: Token mint could not be unpacked",\n Data: (interface {}) \n})\n"}
Test:       	TestSolana_BalanceOfContract
--- FAIL: TestSolana_BalanceOfContract (0.60s)
FAIL
进程 已完成，退出代码为 1

So11111111111111111111111111111111111111112 这个是什么东西

So11111111111111111111111111111111111111112 - it is a SOL mint.
And mint of USDT is Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB

repo: gagliardetto/solana-go


text:
Prevent a service inside Worker being shared across 'tabs'

With BroadcastChannel it's possible for a Worker to have a client from another browser 'tab'. This is dangerous as if 'tab1' is closed, any clients in 'tab2' that depend on services in 'tab1' will be disconnected.
This could be fixed by ensuring only SharedWorkers can used for cross-tab services and that each tab's manager calls new SharedWorker(...).

The first idea I have around this is for each 'tab' to have a UUID. This 'root' UUID would be known by all threads spawned by the tab ('root').
Using this knowledge of root, we could deny access to any client that is from a different root than the thread as created. SharedWorkers would be excluded from this as they are designed to be shared across tabs.

Each 'root' window will have a uuid.

Any threads created from a 'root', belong to this root. The root uuid can be passed to new threads via url query param (eg. new Worker(src + '?root=' + rootId)).

Managers will ignore connection requests from Clients that are from a different 'root' tab.

Consider removing the ability for a Client to connect magically to a Service without going via a Manager or directly .postMessageing the thread. This is to prevent Client's connecting to a SharedWorker thread without the root window having explicitly called new SharedWorker(), and then the SharedWorker being terminated, leaving the client service-less.

Open Questions

How do we cope with threads that have no root?

This is fine for SharedWorkers as they aren't 'owned' by one single tab.
They could postMessage() their outside world to ask for rootId before being 'ready'. ThreadGlobal could respond to any rootRequest messages.

This wouldn't work if user had manually called new Worker(), but perhaps we shouldn't support that?
This would be too late if embedded Clients had already made connection requests. Perhaps these could be blocked until its threadGlobal.ready promise resolved.

What happens if the user calls thread.client('my-service') from a SharedWorker?

The request would hit a Manager (in either tab1 or tab2) and the Client would be connected. If this tab died, the Client would lose its Service.

Alternatively:
If Services were given warning before a tab is closed they could disconnect their Client's. The Client could then after a short timeout try to reconnect. Hitting another Manager that would spin up the Service again, this time probably in the same root tab.

pagehide event can be used to disconnect Clients from Services when Services like in window. This is preferable over unload as it doesn't impact the BF cache.
Q: What hook can we use for services that live in Workers?

A: We may be able to use the Worker's onclose event. Need to test that this fires when a tab that created a Worker is closed.

Initial test in Firefox shows that onclose callback does fire when tab closed the spawned Worker

repo: gaia-components/threads


text:
RFC: Distributer Pipeline execution via Workers

Abstract
This document discusses the problem of executing pipelines in a distributed
manner.
Table of Contents

Introduction
Problem Statement
Terminology
Architecture Diagram
Proposed Worker Distribution Model
Managing Workers
Worker Tags
The Worker RPC API
Gaia Master - Agent
Scheduling Jobs
Implementation Approach

Introduction
Problem Statement
The problem poses the following set of challenges for Gaia:

Manage workers

See what pipeline is running on which worker at any given point in time
Add / Delete / Suspend workers
Add specific environment variables to the worker

Either automatically, or manually choose which pipeline should run on which
worker.
Label the workers so the user knows it's a windows machine or a linux machine
or Go, Python, Java SDK is available on it... etc.

Terminology
Gaia Master: The Gaia Master is a running instance of gaia launched via make or the
released Gaia binary.
Worker: A worker is a server which is connected to the Gaia Master and has
certain capabilities like, what kind of SDK it supports or what operating system
is installed on it.
Pipeline: A pipeline is a configured entity with a set of Jobs.
Job: A job is a single running task like, create a user. A pipeline can have multiple jobs.
RPC: Remote Procedure Call
Architecture Diagram

Proposed Worker Distribution Model
The proposed model which aims to solve this problem is laid out as follows.
Managing Workers
The managing of the workers will happen through a set of API endpoints.
All workers are stored in the database with a designated set of labels
assigned name and IP address.
These endpoints will be Delete / Suspend. Since adding will be taken care of
by the Gaia agent, we don't support that operation here specifically.
Delete: Delete will simply remove the server from the rotation. It won't restart
the server, or shut it down, it will just simply delete it from the database which
holds the worker instances.
Suspend: Suspending a worker will take it out of rotation but will not delete it.
Suspended this worker will not be able to run any pipelines. This is a good option
if some kind of maintenance needs to be performed on the machine.
Worker Tags
The workers will need to be tagged with what kind of resource they are providing. For example:

name
tags

Worker 1
Ubuntu Linux 64bit

Worker 2
Windows 10 64bit

Worker 3
Debian Linux 64bit

When a pipeline is first created in needs to set on the pipeline creation window what kind of resources it requires. These tags will need to be made accessible by a drop down list for ease of usage. These tags can be created when a Worker is created and saved to Gaia. Tagging them can be done manually on the Worker Manager screen.
The Worker RPC API
The Workers will talk to the Gaia Master via a set of defined RPC interfaces.
These are as follows:
// RegisterWorker will take a worker struct which contains the following information:
// Security: This will be protected by the TLS connection between master and worker.
// IP: The address of the worker
// Name: The name of the worker which typically can be `hostname`.
// Operating System: The OS of the worker to save as a label.
// SDK: The SDK the worker has.
rpc RegisterWorker(Worker) {}

// RunPipeline will take a pipeline, and execute it. This ia bi-directional endpoint.
// Pipeline struct:
// ID: Id of the pipeline
// Repo: The git repository for the pipeline. This is needed because the worker needs
// to build the pipeline.
rpc RunPipeline(Pipeline) returns (Success) {}

rpc GetAllPipelines(Worker) returns (Pipelines) {}

Gaia Master - Agent
The current Gaia implementation will still hold and will be designated as Gaia Master.
The master will be a hub for the worker to connect to, get pipelines from, and report
back on the current state of the pipelines they are running.
As such, Gaia Master will no longer be solely responsible to build and distribute
binaries. Since the operation system of the worker decides in what format the binaries
will be in, the workers will build their own binaries.
Which means a worker will get a repository to pull code from and do the whole thing
that Gaia does currently. This will not involve duplicating code however, since the
whole thing will be in the worker package. Gaia Master will use this package by
setting worker to localhost.
The Workers will need to have the go-plugin extracted because HashiCorp's plugin
system does not support RPC calls over the network. Just strictly localhost communication
is allowed. Pipeline execution and communication between jobs' running and state
changes are all through RPC.
Scheduling Jobs
Scheduling jobs will also have to be included into the workers. Workers will schedule
their own parallel jobs execution model and Gaia Master will have to schedule and manage
which worker to distribute pipelines to. This means that the workers will need an indicator
to define when they are too busy to accept more pipelines.
Where jobs are built
Currently, once a user initiates a pipeline build, that pipeline is saved and built on Gaia Master.
This has to change in order for the worker to be able to run the pipeline. The binary
needs to be built on the worker. However, Gaia also needs to be aware of the jobs,
and does pre-validation which means it also needs to build the pipeline.
Scenario 1:
We build the pipeline on both, the Gaia master, and the Worker. Which means we get immediate validation of the pipeline but have to duplicate the building process.
Scenario 2:
We only build on the worker and just save the pipeline on the master to track it. The validation will be deferred until it's actually built on one of the workers. This way, validation is deferred but the building process isn't duplicated.
Implementation Approach

Extract all functionality regarding running and building pipelines including
the SDK and the go-plugin facility into a worker package. This should not change
the current behavior of Gaia. All tests should still pass. Including the WebHook
capability which should be able to still just call build. The worker package should
take care of building and distributing the binary.

Create the API which handles most of the things worker related. But still don't
bother extracting it.

Create an Agent binary which calls back to master's RPC API and registers a
server as a worker.

Implement the managing of the servers below settings on the left of the admin
screen.

Deals with #46.

Awesome work, @Skarlso . 🤗
A few hints from my side:

RegisterWorker should pass something like a secret. Otherwise attackers could easily attach random workers to Gaia and use that to their advantage.
Currently it's not really clear when pipelines are build on the worker. When a user opens the detailed view of a pipeline, he should be able to see all jobs from this pipeline. That means the pipeline needs to be started after creation and GetJobs must be executed to get this information.
We might need an interface for DeregisterWorker. If you dynamically spawn new workers "on-demand", they need to be removed somehow. And a graceful removal can be done by the worker itself.
Really love the Suspend functionality! 🤗

Of course. I'll spell that out more in detail.
Uh. :D Yeah.
The dynamical spawning I would leave for later. For now I was just thinking that someones spins up a server and executes the agent on it, which calls home.
Thanks. :) 😁

@michelvocks just a heads up. I'm going to start on this soon, which means there will be merge conflicts all over the place as I extract the building functionality into a worker package. :)

Awesome @Skarlso 🤗 Looking forward to all the merge conflicts :skull: :nerd_face:

@michelvocks Added some more info about Worker tags and requirements for resource tagging.

One additional point which is missing in the RFC: Securing the communication between Master and Worker.
Following the proposal:

Generate a global secret in Gaia Master. This secret can be replaced by a newly generated one (in case of a leak).
Every Worker expects that secret as an argument as well as the hostname of Gaia Master.
Gaia Master provides two different gRPC APIs: 1.) Registration API 2.) API for already registered workers.
Worker connects (insecure) to the registration API and starts the registration process with the given secret.
Gaia Master validates given secret and registers worker.
Gaia master returns valid certificates for mTLS which can be used for API 2.).
Worker can securely talk with Gaia Master via a mTLS secured connection.

This should work without any problems. The only disadvantage (from security perspective) is the initial registration process where the secret is sent to the master in plain text. What do you think @Skarlso ?

authors: Skarlso michelvocks

repo: gaia-pipeline/gaia


text:
feat: generate rust structs from solidity JSON ABI

Motivation
Currently, parameters of solidity functions that are solidity structures are generated to rust tuples, which then requires some extra boilerplate code if the user wants to use rust structs within the ethers program.

Solution
Since solidity 0.5.11 the solidity compiler adds an extra fields internalType to the inputs/outputs objects in the JSON ABI, which also contains structs with their qualified path (struct SomeLibrary.StructName). We can use this to essentially turn the tuple into a rust struct.
However this is not trivial because ethabi strips the internalType field entirely (https://github.com/rust-ethereum/ethabi/issues/230), therefor we need to parse the abi string again but keep the internalType. I made a minimal representation auf the abi (RawAbi) which supports that.
Next challenge are nested structs, again since the ethabi totally removes any information about the internaltype, we need to do additional work. Essentially we start with the structs that are used as inputs and outputs and check their fields recursively for structs. Since all structs boil down to elementary type, we will eventually end up with structs that only use elementary types.
This tedious step is necessary, so that we don't end up with lots of struct duplicates.

[x] turn JSON ABI tuples into rust structs
[x] use them as input parameters for the corresponding contract calls
[ ] use them as return types for the corresponding contract calls
[ ] test some edge cases, like name collisions LibraryA.Point LibraryB.Point

As discussed, this seems to work well so far so merging as-is.

authors: gakonst mattsse

repo: gakonst/ethers-rs


text:
[Proteomics] Add level metadata to tutorials

just re-applying PR https://github.com/galaxyproject/training-material/pull/2100 from @subinamehta to the master branch

Thanks and sorry @shiltemann

authors: bgruening shiltemann

repo: galaxyproject/training-material


text:
Improvements to RO-Crate in Python tutorial

Hello again GTN team, a new job has brought me back :)
Suggesting these changes after following the tutorial myself:

updated output of get_entities() because ./ Dataset always appears first
added "name" property to Donald Duck because if you re-export the crate and then continue with the tutorial, the name can appear as None when you print authors in a later section causing confusion
switched bash commands to Python where possible so it's easier to follow along with the auto-generated notebook
added explanation of what happens when including the exp/logs dataset in the crate
added extra CLI commands

One question:
The command-line interface section has the student clone an entire repository just to get one folder of test data to run rocrate on. I think it'd be better to host this test data in another repository by itself or as a downloadable zip file, which would simplify the commands needed - I'm happy to update the tutorial accordingly but what's the best approach (or most common in the GTN) to storing the data? Zenodo?
Requesting feedback from @simleo as a maintainer of the rocrate package

Hello again GTN team, a new job has brought me back :)

I saw you recently on some registration list and was like --- "What can this be, is Eli back?" --- so happy to see you again! :)

Thanks for this update, Eli. I'm a bit taken aback because I never thought of this tutorial to be something "alive" that would need updating, but only a training component written for the 2023 Smorgasbord. If the intent is to keep it in sync with the development of ro-crate-py, there's the matter of avoiding duplication / out-of-sync with the ro-crate-py docs (which are in the repository's README.md), as noted by Eli in this issue. Eli's proposed solution (see the issue linked above) is to keep updating this tutorial and make it the only documentation source. We could do that, though I have a few doubts. E.g. is there a way to see the rendering of a PR such as this one before it's merged? Is the language just GitHub-flavored markdown or something more specialized to the GTN?

If the intent is to keep it in sync with the development of ro-crate-py,

I think it could be nice? The GTN is a very FAIR training platform, it could be a good way to ensure that it's seen by a number of people.
It's not necessarily that we want to 'take over' your documentation, since you're obviously in the best place to maintain it long term, and this would mean using a different platform and changes going through peer-review which I recognise is an added burden for you @simleo.
I think there are some benefits to having it in the GTN but I can recognise those aren't necessarily aligned with your primary goals of delivering RO-Crate's python library, so, at least from our side, thanks to contributors like @elichad, and potentially others in the future, we can consider also maintaining parallel versions, as an additional place to advertise this really nice library.

Eli's proposed solution (see the issue linked above) is to keep updating this tutorial and make it the only documentation source. We could do that, though I have a few doubts. E.g. is there a way to see the rendering of a PR such as this one before it's merged?

Yes!

if you just want a basic rendering of markdown there is the github view.
If you wish to see a fully rendered preview, it's absolutely possible. (this can also be done locally, but many part-time contributors find gitpod easier.)

The fully rendered preview is potentially more important in this case since this tutorial uses one of the advanced GTN features of converting a markdown document directly into a Jupyter notebook which users can use if they're not following along in their own terminal.

Is the language just GitHub-flavored markdown or something more specialized to the GTN?

It is GFM, you can use all the familiar markdown constructs
But there are some jekyll specific, and GTN-specific additions on top.
Jekyll templates out variables such as {{ site.baseurl }} for us, GTN specific additions include features like tip boxes which are written with standard markdown blockquotes plus a css class, plus a GTN specific title <tip-title>..</tip-title> feature.

I've given you merge permissions @simleo for the future!

authors: bgruening elichad hexylena simleo


text:
Something to automatically drop bad calibration points

In some eyetracking videos, there are a few calibration points that are bad in that the estimated pupil position is consistently off. Should implement something to automatically drop these calibration points from the final calibrator.

Some of these problems can be fixed by using a larger image median blur filter. Maybe also implement something that suggests using that if the quality is not good.

repo: gallantlab/Eyetracking


text:
Doesn't work with Redis Cluster

When trying to run against a Redis Cluster node:
Traceback (most recent call last):
  File "/usr/local/bin/rma", line 9, in <module>
    load_entry_point('rma==0.1.6', 'console_scripts', 'rma')()
  File "/usr/local/lib/python3.4/dist-packages/rma/cli/rma_cli.py", line 95, in main
    app.run()
  File "/usr/local/lib/python3.4/dist-packages/rma/application.py", line 109, in run
    for v in scanner.scan(limit=self.limit):
  File "/usr/local/lib/python3.4/dist-packages/rma/scanner.py", line 61, in scan
    for key_tuple in self.batch_scan():
  File "/usr/local/lib/python3.4/dist-packages/rma/scanner.py", line 44, in batch_scan
    yield from self.resolve_types(ret)
  File "/usr/local/lib/python3.4/dist-packages/rma/scanner.py", line 50, in resolve_types
    key_with_types = msgpack.unpackb(self.resolve_types_script(ret))
  File "/usr/local/lib/python3.4/dist-packages/redis/client.py", line 2694, in __call__
    return client.evalsha(self.sha, len(keys), *args)
  File "/usr/local/lib/python3.4/dist-packages/redis/client.py", line 1944, in evalsha
    return self.execute_command('EVALSHA', sha, numkeys, *keys_and_args)
  File "/usr/local/lib/python3.4/dist-packages/redis/client.py", line 573, in execute_command
    return self.parse_response(connection, command_name, **options)
  File "/usr/local/lib/python3.4/dist-packages/redis/client.py", line 585, in parse_response
    response = connection.read_response()
  File "/usr/local/lib/python3.4/dist-packages/redis/connection.py", line 582, in read_response
    raise response
redis.exceptions.ResponseError: CROSSSLOT Keys in request don't hash to the same slot

Maybe you should put a note about it in the README.. would have saved me some time :smile:

We do not  use redis cluster right now, so i do not know this not working with it. From stacktrace i see this can be fast fixed with some perfomance breakdown. So i tnink i fix it during this week.

Ok thnx, let me know when you have and i'll give it a shot

@shaharmor how do you see cluster report? It is per node report or full cluster? Now i fix original issue, but as i see redis-py can`t work with MOVE responses. So i want to understang how to it in right way. If you need node stat i can just skip keys from node which actually not on this node.

@misterion - I tried running it right now with latest version.
Its running and looks like its going over all keys (In the specified node i connected it to), but the report doesn't show anything other than the global stats. (Just empty tables).
I don't expect the report to be of the full cluster (Although that would be awesome), but just for the node i connected to.
When you use scan on the node itself, its going only over the keys in that node (Not in the entire cluster), so it shouldn't be a change from what you do today.
But for some reason there is no output for the keys it scanned.

I still working under it. May be i missed something but as is see SCAN return all keys on the cluster, not just on that node. Anyway from time to time node ask to MOVE to other node to execute command. Now my devops moves one of out redis test server to cluster to test all of this in live cluster server.

Now waiting resposne with https://github.com/Grokzen/redis-py-cluster/issues/123. Looks like this labrary has a bug with MOVED response :(

The issue from redis-py-cluster was fixed in unstable branch according to the contributors comments. I check it with my dev cluster and still have MOVE fails with it. So want to check why this so and help to improve redis-py-cluster to fix this. I have working workaround to hack fix this but this patch could be used in production becouse based on reACK on each MOVE error. In this case scanning takes absolutely unreal time.

authors: misterion shaharmor

repo: gamenet/redis-memory-analyzer


text:
bad

DO ECONOMY AND GAMBBBLLLLLLLL!!!!!!!

soon™

authors: Mootbing notrealn

repo: gamer-gang/gamerbot


text:
Bluetooth devices (including Xbox One S and DS4 controllers) not pairing correctly via SteamOS bluetooth settings

Upstream bug report for Steam:
https://github.com/ValveSoftware/steam-for-linux/issues/6756
A workaround to successfully pair a bluetooth device is to use bluetoothctl from the command line and follow the connection instructions here (no need for the xpad neo driver): https://atar-axis.github.io/xpadneo/#connection
If you have already attempted to pair the device in the UI, you must first run the remove <device id> command in bluetoothctl before following the instructions linked above.

This is pretty much preventing me from using this distro :disappointed:

This is pretty much preventing me from using this distro :disappointed: I can pair from the UI once but on subsequent boots the controller (xbox one) keeps flashing between "connected" and "unpaired" until I delete an reconnect.

This seemed quite promising (see the Auto pairing / trusting / no PIN section):
https://www.raspberrypi.org/forums/viewtopic.php?t=235519
However, the problem persisted.

authors: alkazar jayarnielsen

repo: gamer-os/gamer-os


text:
Fixed the version being displayed incorrectly and update button showing at the wrong time

This fixes the following issues:

Even if the version was not set it was being displayed
Apllications which weren't installed would have a blank version shown instead of the available one in the flathub repo
Updating applications which don't use a version number wasn't possible

In the case of the version not being known, there will be a check for updates button now.

Closing, since this is also addressed in pull request #5

repo: gamer-os/steam-buddy


text:
update to 1.20.1

as the title says

nah this was a one off thing im probably taking the mod down


text:
Extremely poor contrast

Text in the GUI is generally light gray on even lighter gray. There is barely any contrast and it is very hard to read.

Thanks for reporting the issue. I've increased the contrasts by darkening the default text color with nearly 5% (a3d4186eb17c9907919cc37c39dadf5e107dcbf4) but it depends a lot on your monitor color settings (I've tested it on standard lcd laptop screen and on calibrated TN and IPS monitors and it looks ok to me).
If anyone experience the same issue, please reopen the ticket.

@garrett Thanks for the detailed info. A slightly improvement was included in v1.11.3 release.
I've recently started working on the design for v2 and will definitely keep in mind the accessibility.

authors: ganigeorgiev jorunn

repo: ganigeorgiev/presentator


text:
Change order of getWidthFrom calculation to prevent innaccurate widths

This is to fix inaccurate widths being applied from getWidthFrom, under specific conditions:

box-sizing of the container is border-box
the container has left or right padding
the element being stickied is being used as getWidthFrom

Under these conditions, when the sticky element is changed to position:fixed, it's width becomes equal to the width of the container + left/right padding on the container (due to border-box). This can lead to unexpected widths being applied to the stick element. Calculating the width from getWidthFrom before setting position:fixed fixes this issue.

I think commit a429b78f from PR #148 addresses this issue. In that commit the width is applied exactly once, at once with position: fixed.

Hi all,
I´d like to know if the effect can stop working when it reaches a certain resolution, for example 991px. Thank you and sorry for my english.

authors: dpedu duzun franilo

repo: garand/sticky


text:
Allow specifying additional accepted issuers for the shoot kapi server

How to categorize this PR?

/area control-plane
/kind api-change
/kind enhancement
What this PR does / why we need it:
In k8s 1.22+ there is a posibility to specify the flag --service-account-issuer multiple times for the kube-apiserver. Right now Gardener sets this flag to the value of .kubeAPIServer.serviceAccountConfig.issuer or defaults it to the API server's address. If one wants to change this flag, all of the already generated tokens will be invalidated and the change would cause disturbance. As kube-apiserver's documentation here (see --service-account-issuer flag) states if the flag is specified multiple times then the first occurrence will be used to generate new service account tokens and all other occurrences will be used to determine if a service account token is accepted.
This PR introduces a new field in the shoot spec called .kubeAPIServer.serviceAccountConfig.acceptedIssuers which will allow the configuration of multiple accepted issuers. This will allow a non-disruptive change of the issuer of the kube-apiserver. See here and read the note regarding the --service-account-issuer flag.
Having the ability to change the issuer of a kube-apiserver will give the opportunity to expose the openid-configuration and jwks of a cluster without enabling anonymous authentication. This will also allow serving the OpenID discovery documents on an endpoint with certificate signed by a trusted certificate authority.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
I am not sure if changing the order in the protobuf struct tags can have some implications.
Release note:

It is now possible to configure multiple accepted issuers for a shoot's `kube-apiserver` by setting `.kubernetes.kubeAPIServer.serviceAccountConfig.acceptedIssuers` in the shoot spec. This list of issuers will not be used to generate new service account tokens but will be used to determine if a service account token is accepted by asserting the value in the `iss` claim. This also allows a non-disruptive change of the current issuer of a `kube-apiserver`.

/cc @vpnachev

/assign

authors: dimityrmirchev rfranzke

repo: gardener/gardener


text:
Add interface to get Type of Extensions resources

What this PR does / why we need it:
This PR adds an interface which is supposed to be implemented by Gardener Extensions to get their type information. Especially for extension controllers it will get handy to use this common accessor.
NONE

As discussed, please add the interface to register.go, and the implementations directly to type definition files, e.g.,  types_worker.go`.

Thanks @rfranzke, PTAL.

authors: rfranzke timuthy


text:
Disable selinux for gardener

How to categorize this PR?
/kind fix
/area os
/os garden-linux
What this PR does / why we need it:
We need to disable selinux for gardener.
Fixing the packages-musthave test in order to properly handle excluded packages.
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Release note:

There have been some misunderstandings regarding these changes, closing.

repo: gardenlinux/gardenlinux