text:
Do OpenOCD and ST-Util both can give the GDB service? What is the different?

[X ] Programmer/board type: Stlink/v
[ X] Programmer firmware version: e.g STSW-LINK007 2.27.15
[ X] Operating system: Linux
[ X] Stlink commandline tool name: e.g st-info, st-flash, st-util
[ X] Target chip (and optional board): e.g STM32F103RB

Do OpenOCD and ST-Util both can give the GDB service? What is the different?
Thanks!

OpenOCD and st-util both implement a gdb server which are used to program and debug the stm32 firmware application. Those are completely two different projects. OpenOCD implements also the driver to control the stlink programmer. But it also has an TCL scripting language integrated which st-util doesn't have.

authors: xor-gate zhubeilife

repo: texane/stlink


text:
I need your help with implementing your config folder on Ubantu

stion" tag.
On Ubantu, I downloaded a lot of dependencies from your Dockfile. Execute runtest. I want to know if this builds successfully
If successful, why only one Cpp file was generated

What is your expectation and how is the result different from those expectations? What commands did you run?

I want to reference it in Qt as a server up and down function

The CMake script for finding the ZooKeeper server classpath generates a CPP file per ZooKeeper library version, so it looks like it is working as intended. I'm not sure what you expect to happen here.

source: gharchive/issue

repo: tgockel/zookeeper-cpp

license_type: permissive

license_source: bigquery


text:
Error:Timeout acquiring a connection. The pool is probably full.

Hello to everyone!
I have a problem and i want to find a solution.
I need to scrap a site and get some data from it.
There are a lot of data, worst case scenario is about 400.000.
Because of high cpu and memory usage i get the following error:
Unhandled rejection Error: Knex: Timeout acquiring a connection. The pool is probably full. Are you missing a .transacting(trx) call?
and as you guess everything blows up.
I use bookshelf with knex, and I try to make chunk save the data, all eficiense as possible.
Because i dont know if the data are already in my db, i came to something like this:
function sequence(products, vendor) {
  function chain(products, vendor) {
    if (!products.length) {
      return Promise.resolve();
    }
    return Promise.map(products.splice(0, 100), (product) =>  {
     /* Some validations to product */
      return bookshelf.knex('my_table')
        .where('someId', vendor.id)
        .andWhere('productCode', product.code)
        .update(product)
        .then((affected) => {
          if (!affected) {
            return tableModel.forge(product)
              .save()
              .then()
              .catch(function ignore() {});
          }
        });
    }).then(() => {
      return chain(products, vendor);
    });
  }
  return chain(products, vendor);
}

I want to accomplish something like bulkInsert function in knex to make it more efficient or to use .toString method on my chuck as i read this is more efficient for large amount of rows.
Any suggestions?

@kozer You can adjust the timeout before this error is thrown, see this.
I don't know if this is a pool config issue or if it's due to running this in parallel with 400,000 objects, but at some point the timeout of 10sec is reached on acquiring a new connection.

I thought that this might be a solution too, but I haven't try it yet.
But Im also intersted in a cleaner solution.
Did you find any?
How i can do better? I ll try the timeout thing and i ll update.

@kozer Assuming I'm reading your code correctly, something like this should do I suppose. I haven't worked with bookshelf so I left that part out.
let Promise = require('bluebird');
function processData(products) {
	var db = require('knex')({...});
	return Promise.mapSeries(products, (product) => {
		return db('my_table')
		.where({
				someId: vendor.id,
				productCode: product.code
			})
		.update(product)
		.then((affectedRowCount) => {
				if(affectedRowCount > 0) {
					return Promise.resolve();
				}
				return db('my_table')
				.insert(product);
			})
	})
}

Called by
processData(products)
.then(() => {})
.catch((error) => {});

It's essentially what you already wrote yourself. They're both a variant of an UPSERT. If you are using postgres 9.5+ you could take a look at their new UPSERT support and run .raw queries instead. (As UPSERT is not yet directly supported via knex API afaik)

authors: kozer wubzz

repo: tgriesser/knex

license: MIT

license_source: github-api


text:
🛑 DDoS-Relay US-W-hil-2 is down

In 4615a0d, DDoS-Relay US-W-hil-2 (http://5.78.111.66:42069/;csv) was down:

HTTP code: 0
Response time: 0 ms

Resolved: DDoS-Relay US-W-hil-2 is back up in 0b938a7 after 45 minutes.

repo: tgstation-operations/status


text:
Switched off execution of the node tests.

This change is

Hi @jareksl, I'm your friendly neighborhood Microsoft Pull Request Bot (You can call me MSBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by Microsoft and real humans are currently evaluating your PR.
TTYL, MSBOT;

source: gharchive/pull-request

authors: jareksl msftclas

license: mit


text:
about late devoxelization

in your softgroup++ paper, You mentioned  late devoxelization , but it is not configured in config. Instead,  in the code, lvl_fusion needs to be manually adjusted to achieve late devoxelization. Did I understand it wrong?

is late devoxelization only used in test not train?

repo: thangvubk/SoftGroup


text:
too manny "unsupported type of io.Reader" warnings

Thanos, Prometheus and Golang version used:
Build Information Version	0.17.2 Revision	37e6ef61566c7c70793ba6d128f00c4c66cb2402 Branch	HEAD BuildUser	root@92283ccb0bc0 BuildDate	20201208-10:00:57 GoVersion	go1.15
Object Storage Provider:
MiniO S3
What happened:
Too many warning logs
level=warn ts=2021-03-02T09:02:42.039730584Z caller=s3.go:399 msg="could not guess file size for multipart upload; upload might be not optimized" name=debug/metas/01EZS2RSX37B27ABYDE5HMWRJS.json err="unsupported type of io.Reader"

Hello, @venkatnpedada , This issue has been fixed in version 0.18.0.
duplicate of: https://github.com/thanos-io/thanos/issues/3470

Please update to 0.18.0 or newer and see if it helps. Closing as per @ahurtaud 's message. Let us know if that didn't help and you want this to be reopened.

authors: GiedriusS ahurtaud venkatnpedada

repo: thanos-io/thanos


text:
Query: add query metrics to calls going through the Store API

[x] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes
Overall, this pull request's intent is to implement the first step in the proposal More granular query performance metrics.

Verification

Built the containers and ran it locally.
Added some tests, including e2e tests.

Should we start documenting metrics somewhere in our docs?

@fpetkovski I believe we should. One of the first things that looked for when I started to learn more Thanos was a list of all metrics it exports and their meaning. I still find myself very often digging through code to figure out what metrics there are, what they measure, etc.
It'll be quite some work, but super useful!

We can maybe start with these ones that you added now, and extend the list over time?

just curious if we have thinking about expose these stats with the query response as well?

authors: christopherzli douglascamata fpetkovski


text:
Node, gulp and sass are out of date

As the title says, this repo is essentially way out of date. Should be updated for manual compiling to work. Otherwise, you have to use outdated versions of node.

Fixed in dev.

repo: thatgibbyguy/ply


text:
how to create a download option and print option in laravel voyager on my websites from voyageradmin pannel

how to create a download option and print option in laravel voyager on my websites from voyageradmin pannel- Laravel Version: #.#.#

Voyager Version: #.#.#
PHP Version:
Database Driver & Version:

Description:
Steps To Reproduce:

@aamirkhan37557 please fill the provided format for asking an issue. Fill with your system description, fill description with your problem.

i want to create an option on my school websites to dwonload the pdf or doc or excel ....in laravel voyager i have created a column and name it attachements and given its type as file now i want to display this file on my school website and want the clients or students to download it

This isn't an issue with Voyager.  Voyager's purpose is to make it easy for you to create/edit content for your site through the BREAD system.  What you're looking to do is to make use of the models on the front-end of your site, which can be done with basic Laravel functionality.  For that, I'll direct you toward the Laravel documentation.
If you need further assistance, you're welcome to join our Slack group and post questions in the #help channel, and someone may be able/willing to help you figure it out.  Your best bet is to join one of the Laravel support channels (Slack or otherwise) for assistance.

repo: the-control-group/voyager


text:
feature request: code folding in vim

ideally, when setting set foldmethod=syntax merlin should allow code folding based on semantics. modules, let bindings etc... sorry if this is already implemented but i did not work for me.

right now, folding based on indentation is possible but that's really not as good

This is not really merlin's job. If you have a recent version of the vim ocaml plugin e.g. my own fork example [1] you should be able to enable it with
let g:ocaml_folding=1

[1] https://github.com/rgrinberg/vim-ocaml

even better! i was not aware that there were more vim plugins besides merlin and ocp-indent. i looked in the help for the ocaml mode bundled with vim but that does not seem to offer that. is vim-ocaml  intended as a replacement for the built-in ocaml support in the future, or will it remain an addon?

actually, it looks like vim-ocaml does indentation, so it is incompatible with ocp-indent, yes?

vim-ocaml is basically a more up to date version of the builtin OCaml mode that comes with Vim. It's not incompatible with ocp-indent but you do have to choose who you'd like to do the indentation - vim or ocp.

ah, i think i misunderstood. the indent() calls in vim-ocaml read the indent level. i thought they set it, which is why i thought it competes with ocp-indent. so basically, i can just install both plugins together iiuc.

authors: nilsbecker rgrinberg

repo: the-lambda-church/merlin


text:
Does not render texture on the group WavefrontLoader.java [fix]

Looks this line should be here .materialFile(mtllib)
Because, I see Object Group without textures =)

Hello @itslonua
Thanks a lot for the fix
I will test it myself when I have some time
and I will publish to play store.
Kind regards

Hi Andres!
Do you plan support bump textures in OBJ model?

9 дек. 2020 г., в 17:36, Andres Oviedo notifications@github.com написал(а):
Hello @itslonua https://github.com/itslonua
Thanks a lot for the fix
I will test it myself when I have some time
and I will publish to play store.
Kind regards
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/the3deers/android-3D-model-viewer/pull/163#issuecomment-741851701, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACR7BSI54T6CDSNVEBB5SOLST6KRHANCNFSM4UR2OWWQ.

authors: andresoviedo itslonua


text:
🛑 www.h2s is down

In 63c3215, www.h2s (https://www.hack2skill.com) was down:

HTTP code: 502
Response time: 534 ms

Resolved: www.h2s is back up in ee61691.

repo: thealphadevs/uptimeTrack


text:
FB SDK version Needs upgrade (from v17.0.3 to v17.1.0)

Hello, Facebook has been in need of an update to a new version for a long time, and without an update, launching ads for events in the application does not work... Also, Facebook constantly reminds you that you need to update the SDK. Unfortunately, the last update here was 5 months ago, and it's not clear if someone is working on an update now...
That is why I am asking for help, what other solutions can there be to integrate Facebook with React Native, so that it is not necessary to use xcode... Maybe some modules or something else...

That's odd, I don't see a PR anywhere 🤔  - @yaroslav-bodnar have you tried proposing a PR here to do the update?
It's pretty easy usually, typically not much more than bumping the versions, attempting to compile the example app and seeing what breaks. That's normally just some simple compile fixes then boom, you've got your update

Hello, @mikehardy. I found facebook-ios-sdk Release v17.1.0. Please update react-native-fbsdk-next. 🙌

https://github.com/facebook/facebook-ios-sdk/releases/tag/v17.1.0
https://github.com/facebook/facebook-ios-sdk/compare/v17.0.3...v17.1.0

Open a PR please, more effective than pleading...

I realize everyone's time is short, especially those gracious enough to contribute to OSS like this. (thank you @mikehardy  and others -- couldn't have done this without you, including your firebase SDK)
Id like to sponsor the upgrade to the newest SDKs across ios and android. Please reach me at josh@wave.co to arrange details. This is high priority for me as its disrupted our ads since 17.1 came out.
Thank you :)

Just to note that I've reached out @joshmohrer but haven't heard back? As mentioned I'm past "very busy" to "ridiculously busy" at the moment but the family understands me working late if it's not all pro bono (I do enough of that with AnkiDroid but that one helps medical students so the family gives me a pass ;-) https://github.com/ankidroid/Anki-Android)
It doesn't look like a difficult upgrade, but the qualification of current repo state + qualification of the new SDKs and doing the release does take an hour or so. Not much more than that at least

Gah, sorry @mikehardy  -- replying now

Oh no I'm spammy 😆 . Possibly true, I'm at peace with myself

My spam filter just takes itself way too seriously I think

Hey, so this is done in #557 however I am unable to publish the v13.1.0 release that I just packed up
The semantic release system correctly built and tagged the release and made the changelog but it failed on the npm publish step
@thebergamo help! have you changed your 2FA settings on npmjs.com to auth-and-writes instead of auth-only? Or did you revoke the NPM token that's configured in this repository? I don't have any authority on the npmjs.com react-native-fbsdk-next package nor do I have admin authority on this repo, so I'm not able to resolve this
In the meantime, I suppose you can always rely on the v13.1.0 tag here as a direct github dependency, it should work?
For yarn2+ I think that's something like yarn add react-native-fbsdk-next@thebergamo/react-native-fbsdk-next#v13.1.0
for yarn classic I think yarn add git@github.com:thebergamo/react-native-fbsdk-next#v13.1.0 but I could be wrong
unsure on npm but something similar?
It'll be published on npmjs.com once the NPM auth / token situation is resolved, but until then I've taken it as far as I can - it's good bits on a known good tag at least 🤷

Oh, if you don't mind I can check this first thing in the morning, tomorrow!!
I will take a look on what happened in npm and maybe I can even try to give you permissions in the npm itself for publishing.

Alright, I fixed the token, but would need to get hands on my terminal to publish again to npm from the tags as semantic release cannot do it on a retry.
Will do it tomorrow for next ones it should be fine.
Basically npm has new token type specific for automation and it should be enough now to publish again without 2fa (was forced to enable it once I recovered my npm account hehe)

@thebergamo excellent! That did it, after your invite on npmjs.com so I was a known package maintainer, I was able to do an npm publish of the package. So now I think everything is in sync
With luck, the next package publish will be fully auto with the new token as well - I believe I/we will get to test that shortly because facebook-ios-sdk is in the middle of their publishing process for 17.2.0 already (but it isn't on cocoapods yet so we can't use it yet...)
Thanks!
https://www.npmjs.com/package/react-native-fbsdk-next?activeTab=versions

Might be specific to the code on my end but the expo config plugin stopped working, app.json stopped recognizing the plug-in:

CommandError: Package "react-native-fbsdk-next" does not contain a valid config plugin.
Learn more: https://docs.expo.dev/guides/config-plugins/#creating-a-plugin

Cannot use import statement outside a module

Hmm @joshmohrer that's obviously unexpected, sorry about that.
There were a couple items in the PR that may have played a part and I can revert them as a stopgap, then exercise the publish with new NPM token at the same time, ideally a win-win. Lemme see
I'm going to extract your comment to a new issue for separate tracking

@thebergamo publish worked on 13.1.1 🫡
v13.1.1 has a revert of the two items I think broke the expo plugin, would love feedback

authors: imki123 joshmohrer mikehardy thebergamo yaroslav-bodnar

repo: thebergamo/react-native-fbsdk-next


text:
OTA not working most of the time

Describe the bug
When I made a new bin file in Arduino (Sketch -> export Compiled binary), go the the lamp update page, select the bin file and then update, 8 times out of 10 I get an error page back (ERR_EMPTY_RESPONSE)
Am I doing something wrong, or is there a problem with the OTA ?

What Browser are you using?

I'm using Chrome, both normal and in incognito.

From a quick read, seems like google chrome has a few issues which may lead to this error. I use chrome as well for all my uploads and haven't run into this error before so maybe try some of the suggestions from here.
If they don't work it may be an issue, and I can look into it.

Based on your previous answer, I tried it with safari, and that seems to be working fine.

Awesome. Can include this issue then?

This issue can be closed.


text:
Chapter 5 "Speeding it up even more - recalculating visibility when we need to" doesn't check dirty

In this section of Chapter 5, it sounds like the section should have a code snippet for checking whether the dirty flag is set, and in fact alludes to it:

Our system can be extended to check if the dirty flag is true, and only recalculate if it is - and set the dirty flag to false when it is done.

Are we actually supposed to do this here, or in a later section..?

The game now runs very fast once more

Kinda implies that we should have made the change ourselves and it should be faster now.

I would also like to point out that the setting of tiles to non-visible just kind of happens, it's there if you read the code block line by line, but if you are skimming through and trying to implement based on what you read, and using the code block to check your work, it's kind of not there.
for t in map.visible_tiles.iter_mut() { *t = false }; out of this sections second code block.

authors: UnwarySage nanodeath

repo: thebracket/rustrogueliketutorial


text:
[FEATURE] Quiz section : add answers

Detailed description
when we take the quiz , if our answer is right it will skip to the next question ,if the answer is wrong it will show us the right answer (the right answer will be highlighted in green and the wrong one in red )
Context
Users can benefit from a more educational experience by understanding which questions they answered correctly and learning from those they got wrong. in addition to increasing user engagement.
Possible implementation
No response
Additional information
No response
Code of Conduct

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

hi thanks for creating this issue

I would like to work on this

@kabir0x23 did you like how the feature was implemented? Any suggestions or feedback would be awesome!

repo: thecyberworld/TheCyberHUB


text:
214.2 patch seems to have broken the mod

The health bars here are not attached to anything, and seems to be stacking. All was working prior to 0.214.2 patch

Closed as duplicate of #60

authors: azegoca thedefside

repo: thedefside/BetterUI


text:
Support wasm32-unknown-unknown Target

Thanks for this project!
Is there any way to compile this in a lib crate to target wasm32-unknown-unknown? (ex. cargo build --release --target=wasm32-unknown-unknown)
I'm suspecting no. I tried and got this error:
error: failed to run custom build command for `libquickjs-sys v0.6.0`

Caused by:
  process didn't exit successfully: `/mnt/v/dprint/crates/test-plugin/target/release/build/libquickjs-sys-7f85a6e12a75c9e1/build-script-build` (exit code: 1)
--- stdout
TARGET = Some("wasm32-unknown-unknown")
HOST = Some("x86_64-unknown-linux-gnu")
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
running: "clang" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-Wall" "-Wextra" "-D_GNU_SOURCE" "-DCONFIG_VERSION=\"2020-04-12\"" "-DCONFIG_BIGNUM" "-o" "/mnt/v/dprint/crates/test-plugin/target/wasm32-unknown-unknown/release/build/libquickjs-sys-62382c90b72b3b52/out/quickjs/cutils.o" "-c" "/mnt/v/dprint/crates/test-plugin/target/wasm32-unknown-unknown/release/build/libquickjs-sys-62382c90b72b3b52/out/quickjs/cutils.c"
cargo:warning=In file included from /mnt/v/dprint/crates/test-plugin/target/wasm32-unknown-unknown/release/build/libquickjs-sys-62382c90b72b3b52/out/quickjs/cutils.c:25:
cargo:warning=/usr/include/stdlib.h:25:10: fatal error: 'bits/libc-header-start.h' file not found
cargo:warning=#include <bits/libc-header-start.h>
cargo:warning=         ^~~~~~~~~~~~~~~~~~~~~~~~~~
cargo:warning=1 error generated.
exit code: 1

--- stderr
Compiling quickjs...

error occurred: Command "clang" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-Wall" "-Wextra" "-D_GNU_SOURCE" "-DCONFIG_VERSION=\"2020-04-12\"" "-DCONFIG_BIGNUM" "-o" "/mnt/v/dprint/crates/test-plugin/target/wasm32-unknown-unknown/release/build/libquickjs-sys-62382c90b72b3b52/out/quickjs/cutils.o" "-c" "/mnt/v/dprint/crates/test-plugin/target/wasm32-unknown-unknown/release/build/libquickjs-sys-62382c90b72b3b52/out/quickjs/cutils.c" with args "clang" did not execute successfully (status code exit code: 1).

I was able to compile this only on Mac by doing:
quick-js = "=0.3.0"

Once it's bumped to 0.3.3 it no longer works and the following error occurs:
cargo:warning=/test/target/wasm32-unknown-unknown/release/build/libquickjs-sys-3ceefb9672fa932f/out/quickjs/cutils.c:25:10: fatal error: 'stdlib.h' file not found
cargo:warning=#include <stdlib.h>
cargo:warning=         ^~~~~~~~~~
cargo:warning=1 error generated.
exit code: 1

Not sure why it only works on Mac, but at least it's working now!

obviously there always is a way, but it isn't easy to do in this case - wasm32-unknown-unknown c interop is in an extremely basic state at the moment - there's no libc and the abi doesn't perfectly match.

I want to build quickjs as a wasm based mini vm and having wasm32-unknown-unknown target support would be super handy.
I have more experience working with rust/wasm than emscripten :(, I was able to build https://github.com/justjake/quickjs-emscripten but would prefer to have a rust/wasm version.

I'm looking into this again.
It will require quite a few patches to the codebase though, sadly.

Good news!
I managed to transpile Quickjs to Rust with c2rust, and I have the code running fine after some relatively refactoring.
I will need to patch out the libc dependency, but a WASM build is relatively easy to do now.

Little progress update:
I've done quite extensive cleanup of the c2rust generated code.
I probably introduced some bugs during reafactoring of the types, but the basics all seem to work on x86.
The code builds fine on wasm, but setting up a Context currently fails with an error.
I will probably continue to rewrite it step by step to idiomatic Rust, which is a lot of work but probably worthwile and can be done incrementally.
That also means that the code will diverge significantly from QuickJS, and will live in a different repo with a new name.
If anyone wants to play with the code or, even better, help out with porting, a preliminary version is published here: https://github.com/theduke/slimjs

Hi @theduke
I've been trying out your crate for a bit while trying to pick up some rust skills - awesome work!
I've ran into the same issue as mr @dsherret  describes above and had a look at the quickjs-fork in the link above. I noticed it's been about a year since the last commit - did you abandon it or did you found a way forward with this?

authors: dsherret jakob-lilliemarck pavlukivan theduke twop

repo: theduke/quickjs-rs


text:
Cloning context for SSR

let ctx = Context::new().unwrap();
let renderer = read_to_string(RENDERER)?;
let render = read_to_string(RENDER)?;
let bundle = read_to_string(BUNDLE)?;

let _loaded_renderer = ctx.eval(&renderer).unwrap();
let _loaded_bundle = ctx.eval(&bundle).unwrap();

let routes = warp::path!(String)
    .map(|path| {
        println!("Rendering {}", path);
        let reply = ctx.eval(&render).unwrap();
        Ok(reply::html(reply.as_str().unwrap()))
    });

When trying to compile this, I get:
error[E0277]: `*mut libquickjs_sys::JSRuntime` cannot be shared between threads safely

Is there a way to safely (and quickly) clone a JS context?

As the error notes, a Context must remain inside the thread it is launched due to some quickjs internals.
You also cannot have concurrent access to a context.
In this specific case, I would have a dedicated thread (pool) of renderer that are accessed from the warp handler via channels.

In this specific case, I would have a dedicated thread (pool) of render workers that are accessed from the warp handler via channels.

Thanks, golden advice -- I'm a Rust newbie, but I'm also one of the folks that works on the Nuxt.js framework. I specialise in Vue SSR applications. I'm trying to build a Vue SSR renderer using QuickJS now :) I'd love to give you access to my repository and have you as technical advisor if you find the project interest.
Guess I'll be studying Chapter 20 now. Once, many thanks!

Turns out I also needed a Mutex, but it seems to work rather well!
Proof of concept: https://github.com/galvez/multithreaded-quickjs-server-example
Thanks again for the help.

Sure thing.

authors: galvez theduke


text:
Copy button for code fences

First of all: great theme! I'm going to convert my current documentation website to this.
Now what I'm missing, but definitely not a blocker, is a button to copy code, similar to the following:

Would be great to get this, and if I can be of any help, please let me know.

thanks a lot :)

Hope you enjoy it :) please test it and report bugs.

authors: matkoch xoxys

repo: thegeeklab/hugo-geekdoc


text:
Cambiar la ip

Buenas una pregunta dónde puedo encontrar el fichero para cambiar mi ip en la polybar?

Hola, llegaste a encontrar una solución para ese problema?

authors: Apigna camhorma

repo: thegoodhackertv/hackerpwm


text:
Examine tabmat

Question
https://github.com/Quantco/tabmat
May or may not be useful. Found by Isaac

Seems like it's quite a nice speedup. Nevertheless, this would require too much work for now. Also not sure whether we'd implement this in ehrapy or whether it should be another matrix type that we support in AnnData. Tabmat basically extends Numpy or Scipy arrays

repo: theislab/ehrapy


text:
Calculation of feature importances in a supervised setting

PR Checklist

[X] This comment contains a description of changes (with reason)
[X] Referenced issue is linked (closes #258)
[X] If you've fixed a bug or added code that should be tested, add tests!

Description of changes

Added a new method feature_importances to calculate the contribution of each feature to the prediction of a specified feature. For instance, one could be interested in what features are good predictors of disease severity, and depending on the disease, features such as age or pre-existing conditions would have high feature importance.
Users have the option to choose between a continuous or a categorical prediction, as well as the option to choose between using SVM, Random Forest, or Regression to perform the prediction
Implemented a basic plotting function for visualizing individual feature importances with a bar plot (see example below)

ToDos

[ ] Test performance on the test set. Should we print the resulting loss/accuracy out then? Should that somehow affect the plotting function, e.g. as an indicator of reliability?
[ ] Improve the plotting function. Personally, I would prefer to plot everything in the same color - what do you think?

Considerations

Currently, the importances are only comparable relative to each other; we can't compare them across models or datasets. I'll think more about how we could improve interpretability.
How do we handle non-numerical features? Currently, I'm simply dropping them and give a warning. Should we instead throw an error stating it's necessary to properly encode features first?
We should discuss if we want to incorporate bias detection (e.g. FairLearn).

Example
adata = ep.dt.mimic_2(encoded=False)
ep.pp.knn_impute(adata, n_neighbours=5)
ep.tl.feature_importances(adata, predicted_feature="tco2_first", prediction_type="continuous", model="rf", input_features="all")
ep.pl.feature_importances(adata)

How do we handle non-numerical features? Currently, I'm simply dropping them and give a warning. Should we instead throw an error stating it's necessary to properly encode features first?

Yes, I would not drop them. Maybe even throw a ValueError with the suggested solution

Yes, I would not drop them. Maybe even throw a ValueError with the suggested solution

I adjusted the code as suggested: Non-numeric features now cause the function to fail with a ValueError, requesting a proper encoding of the features beforehand.

Awesome! Just one more thing to resolve (https://github.com/theislab/ehrapy/pull/677#discussion_r1549682387) and then we're good to go!

authors: Lilly-May Zethson


text:
Fix: test_compute_interpolated_distance_regression and numerical column error

Hi @MUCDK @giovp ,
When running generate_gt_temporal_data I encountered an error because adata[day] wasn't categorical but was a float. So in the code I cast it as a category. Not sure why this happens now. But in the end I created the file and it should help the tests pass. But as I said I am not sure what I should do for the temporal key.
After this PR, ".A" PR will also be ready to merge. Then the "prepare" PR

That’s fine. I think when we generated the data we didn’t have the restriction for the temporal key to be of categorical type. But it’s true that now we do check for it. So all good! Thanks for this fix

authors: MUCDK selmanozleyen

repo: theislab/moscot


text:
Logistic Regression in scRNA

Hi all,
Following this preprint and the polemic comment by its author, I wonder if Logistic Regression should be in scanpy environment.
I tried the sklearn.linear_model.LogisticRegressionCV classifier from scikit-learn. It is pretty fast and seems to do the job. Of course there is no urgent need to include in scanpy, as it can be used with two lines like
clf = sklearn.linear_model.LogisticRegressionCV()
clf.fit(adata.X, adata.obs[group])

among the returned elements, clf.coef_ can be used to rank genes by their importance on each group, clf.predict_proba may be used to score the strength of cell/group association given the scored genes.
Any thought?

Hi Davide,
I like the preprint and the blog post. I agree that differential expression testing deserves a classification perspective. Coincidentally, we (with @tcallies) were also working on a little paper that makes this point but used neither logistic regression nor TCCs as covariates... unfortunately, we still haven't updated our benchmarks, but I'd assume that what Lior Pachter does works best. :smile:
Anyways, yes, we should include it at some point but let's still collect some experience... Until then, people can use your two-line workaround. :wink:
Thanks!

Agreed. I don’t think we should rush and include everything into scanpy, especially when it would be a simple wrapper of something existing.

authors: dawe falexwolf

repo: theislab/scanpy


text:
How to add custom fields on the ticket form?

We need few other parameters with a ticket.

#454

authors: abuzer-firdousi-confiz balping

repo: thekordy/ticketit


text:
Ticketit attempts to install after unrelated migrations

I have already successfully installed and used Ticketit.  Then I recently updated some unrelated models and ran migrations related to those new, unrelated models and now my users are directed to tickets-install despite Ticketit having already worked.

Right. It looks into ticketit/src/Migrations dir and checks if all migration files are migrated.
https://github.com/thekordy/ticketit/blob/0.2/src/Controllers/InstallController.php#L211

authors: ThistleApps thekordy


text:
Show all messages from server

Show all info on server chan instead of just motd and notice messages.

PS: The good snipping tool!

I don't think slate-irc sends any events with that information. Another issue for #24

Ah, I doubt it would be difficult to implement your own client code for IRC, its a very basic protocol.

+1 Would be a good option to see server messages, or the option too.

Slate uses the motd event for these messages; definitely supported.

#167 shows connection related messages, nothing about server capabilities yet though.

"all messages" is not very descriptive. master now shows all the connection related messages that are raised by irc-fw. If you would like to see other specific information (e.g. server capabilities), create a new issue for each of these please.

repo: thelounge/lounge


text:
Correct mode in kick message

@dgw mind testing?

The from_mode appears to be always empty with this patch.
FWIW I have a patch that displays both modes correctly in all tests so far. I can push it up tonight.

authors: dgw xPaw


text:
ToC management

It would be perfect to have the ability to enable Table of Contents for pages and posts.
Maybe on a column at the right of the content column.

hey there, Thanks for your concern, but there is no space for adding TOC in this template.
Please try this theme
https://gethugothemes.com/products/godocs-hugo-documentation-theme/ .
It has all the features and an advanced search system.

authors: PetiPandaRou themefisherDev

repo: themefisher/dot


text:
Dropdown should close when we click outside

Describe the bug
Dropdown should close when we click outside
To Reproduce
Steps to reproduce the behavior:

Click on the dropdown
Click outside the dropdown
Dropdown won't close

Expected behavior
Dropdown should close
Project information:

Tailwind: 3.0.18
Flowbite: 1.6.3
Flowbite React: 0.3.8
Type: Next.js

Thank you, I just confirmed this is how it works in the normal Flowbite library. Off the top of my head, I'm not sure what the solution to this is in React but I'm sure it's probably not terribly challenging. I'll add this to 1.0.0

Following up, can you reproduce this still? I just tested at https://flowbite-react.com/dropdown and it seems to work fine. Thank you!

Following up, can you reproduce this still? I just tested at https://flowbite-react.com/dropdown and it seems to work fine. Thank you!

Works well for me too

It doesn't work fine at https://flowbite-react.com/dropdown ... If you click a dropdown to open it, and then click outside of it, it will close as it should. However, once you've clicked inside the dropdown it will no longer close when you click outside...

Any updates on that?

I can confirm that if you:

open the dropdown
click on any item
Click outside the dropdown

I expect the dropdown to close. But it keeps open.

Hey all, it looks like we accidentally tracked this in two issues but you are all correct. There is indeed a problem with this behavior and someone has proposed a solution that works great. Please see #793 - if you have time to create a PR it would be welcome! See https://flowbite-react.com/docs/getting-started/contributing

authors: Marian0 MykolaM-Redvik RealEstateGuys diamondback15 fsioni tulup-conner

repo: themesberg/flowbite-react


text:
Close dropdown on click on dropdown item

Summary
A way to support closing the dropdown when the dropdown items are clicked.
Basic example
By either exposing a handler or the open prop. I'm not sure what's the best way.
Motivation
In some situations, the user expects the dropdown to close after a click on its items.

thanks @shinokada !

repo: themesberg/flowbite-svelte


text:
Make TableSearch flexible for user defined filter

let the user bind the search box inputValue for their own filter logic
Ref: https://github.com/themesberg/flowbite-svelte/issues/117

Closes # 117
📑 Description
let the user bind the search box inputValue for their own filter logic
syntax

[ ] Not Completed
[x] Completed

✅ Checks

[x] My pull request adheres to the code style of this project
[ ] My code requires changes to the documentation
[ ] I have updated the documentation as required
[ ] All the tests have passed
[x] My pull request is based on the latest commit/version

If your branch is behind the upstream master, I will have difficulties to merge the request. Please fetch the latest version of the branch:
git checkout your-branch
git pull upstream main

or
git checkout your-branch
git pull --rebase upstream main

ℹ Additional Information

CRUD table example:

{#if error}

{error.code}

{error.details}

{/if}

<TableSearch placeholder="Search by subject name" hoverable={true} bind:inputValue={searchTerm} >
	<TableHead>
		<TableHeadCell>Name</TableHeadCell>
		<TableHeadCell>Subject ID</TableHeadCell>
		<TableHeadCell>Source</TableHeadCell>
		<TableHeadCell>Destination</TableHeadCell>
		<TableHeadCell>Enforcement</TableHeadCell>
		<TableHeadCell>Delete</TableHeadCell>

	</TableHead>
	<TableBody class="divide-y">
		{#each filteredItems as item}
			<TableBodyRow>
				<TableBodyCell>
					{item.displayName?.value}
				</TableBodyCell>
				<TableBodyCell>{item.subject?.id?.value}</TableBodyCell>
				<TableBodyCell>{item.rule?.sourceAddress?.value}</TableBodyCell>
				<TableBodyCell>{item.rule?.destinationAddress?.value}</TableBodyCell>
				<TableBodyCell>{item.enforcement ?? 0}</TableBodyCell>
				<TableBodyCell>
					<button on:click|preventDefault={deletePolicy(item.id?.value)}> <Archive class="text-pink-700 dark:text-blue-300"/> </button>
				</TableBodyCell>
			</TableBodyRow>
		{/each}
	</TableBody>
</TableSearch>

I need sometime for this. I will get back to you asap. Please be patient with me.
Thank you.

authors: shinokada xmlking


text:
Megamenu

📑 Description
Mega menu component.
<Megamenu/> is a standard visible component and its floating and visibility is managed by the `.
✅ Checks

[x] My pull request adheres to the code style of this project
[x] My code requires changes to the documentation
[x] I have updated the documentation as required
[x] All the tests have passed
[x] My pull request is based on the latest commit/version

ℹ Additional Information
I've tried to add all the necessary links, declarations, types, etc., but probably I've missed something.
There's a strange error and the doc page megamenu/index.md gets narrower then expected from time to time. I don't know how to fix that.

Thank you for the PR.

Can you check the position for the default mega menu and the mega menu with icons?

Flowbite

Flowbite-Svelte

Flowbite

Flowbite-Svelte

Menu item style

Flowbite

Flowbite-Svelte

Menu items in a mega menu li should not have the class but li>a should have the class hover:underline hover:text-blue-600 dark:hover:text-blue-500.

Should be good to run npm run gen:props to refresh all the recent changes.

Thank you for the fix. Merged.

Added megamenuLayout, megamenuBlock and updated the props.
Please set export variables at the top, before a function.
Thank you for your hard work.

@jjagielka Thank you for your continuous contribution. Your contribution is a great help.
Is it possible to inform the component you want to  work by adding a short comment in the issue?
Then we can avoid duplicate work.

https://github.com/themesberg/flowbite-svelte/issues/176
https://github.com/themesberg/flowbite-svelte/issues/11
https://github.com/themesberg/flowbite-svelte/issues/168
https://github.com/themesberg/flowbite-svelte/issues/76
https://github.com/themesberg/flowbite-svelte/issues/51
https://github.com/themesberg/flowbite-svelte/issues/50
https://github.com/themesberg/flowbite-svelte/issues/49
https://github.com/themesberg/flowbite-svelte/issues/29
https://github.com/themesberg/flowbite-svelte/issues/6

@jjagielka Can you have a look at this issue?
Mega menu is centered in a small screen.
Flowbite

http://localhost:8000/mega-menu#Mega_menu_with_icons

@jjagielka Can you have a look at item type error?

A11y problems with mega-menu page.
https://validator.unl.edu/?showsource=yes&showoutline=yes&doc=https%3A%2F%2Fflowbite-svelte.com%2Fcomponents%2Fmega-menu#cl307c338

authors: jjagielka shinokada


text:
Timesheet - 29/04/2021 - Muhammad Anas Azam Bhatti

Task 1
Gathered community feedback and completed new member guide document.
Proof of Work
I gathered community and core team feedback from all of the channels of discord(public and private). Then I completed this document: https://docs.google.com/document/d/1B8DGWC_C58-h4pEvLXwh8CxaBvtWf2SEuchyoeumDyE/edit?usp=sharing
Time Spent
3.5 hours

Task 2
Discussion with core team members
Proof of Work
I had discussion with the following core team members:
1: With Mr K and Vyz, about developer portal's design meeting on Saturday
2: With Justin, about adding admin panel on website for some core members
3: With James, about adding job post form, milestone page, opening page, projects page and created following issues for FE:

https://github.com/thenewboston-developers/Website/issues/1772
https://github.com/thenewboston-developers/Website/issues/1771
https://github.com/thenewboston-developers/Website/issues/1770

4: With Kristy, about updating the job application google form for various teams.

Made changes to this form: https://github.com/thenewboston-developers/Website/issues/1770.
Also created this issue for design team, to add new member guide on website: https://github.com/thenewboston-developers/Design/issues/206

Time Spent
3.5 hours

Total Time Spent
7 hours
Account Number
7180f46c4c8dbcffa0945633b03e1dacebf966069d436cb91cf1dde5f1da9fa7

Approved

Approved

authors: ma2b0043 manishram tspearing


text:
Add Newsletter Modal

Resolves #931
Account number: fb84a32a698a03dd327c4ce673f19fa0acf6e68cb50f143d5d7c080471bc4625
The modal is done, the only thing missing is the endpoint for saving the email in the database for the newsletter.

Got it @thesanjeevsharma now I know what the rules are for the PR's

Just to be sure do you guys want that I insert Formik into it with yup or normal form? :D @thesanjeevsharma

@whitelionx , use Formik with yup. You can take the Formik component for input from the Account-Manager repo.

Added Yup & Formik ( I used the useFormik hook as it is cleaner ), made the css alphabetical, adjusted things to be responsive, the only thing remaining is the endpoint. @thesanjeevsharma @Hristijan95

Just to add to it yesterday I added an error message when the validation kicks in, I hope that's okay?

Hey @whitelionx I can see the #585 PR active again. There are a lot of form components and elements that are coming from AM to Website in that PR. So once that is done, can you reuse all that is required to re-create this news letter modal ?
I am pretty sure you will find custom Input and Modal components once that PR gets merged.

This isn't a complicated form, this is just a single input field I made it as a form even though I didn't need to, so I don't see many issues keeping it this way @lapstjup but later on when all stuff gets merged it is easy to exchange the certain element for the component. No need to wait for the one or another.

@whitelionx I have merged #585. You can now use Form components and elements. Can you update your PR to use those? Also, resolve these conflicts.

Yeah will update it and resolve the conflicts @thesanjeevsharma

@whitelionx This PR is not needed. We are going to have GitHub auth on our website soon so no email forms needed. My mistake for not prioritizing engineering tasks as well as I could have. Paid you the task reward out of my personal funds.

authors: Hristijan95 buckyroberts lapstjup thesanjeevsharma whitelionx

repo: thenewboston-developers/Website


text:
Investigate having external compiler host process, and forward compilation request to it

This will enable us to avoid the costs of starting a new instance of the compiler for every step (avoiding the cost of jitting for example), and of loading assemblies in memory for Cecil, used here:
https://github.com/theolivenbaum/h5/blob/ba27f3936aa878d26f51e2cbdfe994b948bb363b/H5/Compiler/Translator/Emitter/Emitter.Properties.cs#L140

Initial experiments suggests we can easily achieve >60% reduction in compilation time from not having to reload assemblies.

Closed with https://github.com/theolivenbaum/h5/pull/13/commits


text:
your download site is missing, how do i compile the project on github to a jar?

your download site is missing, how do i compile the project on github to a jar?

You can download the last builds on my website at
http://thatcraniumguy.net:8081
On Thu, Nov 19, 2015, 9:30 AM gravestristen notifications@github.com
wrote:

your download site is missing, how do i compile the project on github to a
jar?
—
Reply to this email directly or view it on GitHub
https://github.com/theoriginalbit/MoarPeripherals/issues/53.

authors: gravestristen thatcraniumguy

repo: theoriginalbit/MoarPeripherals


text:
Query params

Hope you like this one dude, we could possibly add some validation for the params

Sorry for the delay! This is exceptionally cool and looks great to me!

Things we could think about in the future:

persisting map position: "I want to link to a zoomed-in version of London"
persisting "stacked/unstacked" status

Super cool. In case it wasn't clear these comments weren't demands for changes (but the changes are amazing!)

Thanks and no worries, I thought they were good suggestions and might as well get them done now :+1:

hopefully this change didn't break anything, then I think we can merge 👍🏽

This is incredibly cool!! LGTM (with the caveat that some bits are a bit beyond me :) )

I'd be happy to talk through it, that would probably highlight some issues and make it better!

authors: richardgoater theosanderson

repo: theosanderson/covince


text:
Trusting

This package made 9 years ago, still can I use it for laravel?

This package does basically nothing. I would just go to the parent package glide-symfony.
I would even recommending that you integrate it's code directly so that you can install the beta version of glide without intervention/image 3

repo: thephpleague/glide-laravel


text:
Use only Flysystem v2

This PR contains changes that remove Flysystem 1 and adapt to Flysystem 2.
Most of the work went into changing test suite to mimic Flysystem 2 exception logic, while changes to the code are rather simple.
I create another PR to visualize changes needed to migrate fully from V1 to V2 in case this will be the way chosen by maintainers.

This is a great PR, thanks a lot for your work (again!). I feel the option of releasing Glide 2.0 with only Flysystem 2 is probably the best idea, and then use 3.0 as an opportunity to add other BC breaks if necessary.
WDYT?

This is a great PR, thanks a lot for your work (again!). I feel the option of releasing Glide 2.0 with only Flysystem 2 is probably the best idea, and then use 3.0 as an opportunity to add other BC breaks if necessary.
WDYT?

This is a great PR, thanks a lot for your work (again!). I feel the option of releasing Glide 2.0 with only Flysystem 2 is probably the best idea, and then use 3.0 as an opportunity to add other BC breaks if necessary.
WDYT?

I agree. While other PR shows that glide can support both versions, it'd probably be a burden to maintain.

This is a great PR, thanks a lot for your work (again!). I feel the option of releasing Glide 2.0 with only Flysystem 2 is probably the best idea, and then use 3.0 as an opportunity to add other BC breaks if necessary.
WDYT?

I agree. While other PR shows that glide can support both versions, it'd probably be a burden to maintain.

FYI I'm merging several PRs in Glide 1.0, trying to make a final release that provides features for the ones who asked before releasing Glide 2, as it would require them to migrate to Flysystem 2.
Can you finalize this PR if you didn't already and rebase when you have time? I'll merge as soon as possible :) .

FYI I'm merging several PRs in Glide 1.0, trying to make a final release that provides features for the ones who asked before releasing Glide 2, as it would require them to migrate to Flysystem 2.
Can you finalize this PR if you didn't already and rebase when you have time? I'll merge as soon as possible :) .

I have rebased to master and finalized PR as you requested. I have opted to not make any change regarding your comment as that'd require changes in tests that I am uncertain about.

I have rebased to master and finalized PR as you requested. I have opted to not make any change regarding your comment as that'd require changes in tests that I am uncertain about.

@tgalopin just a friendly ping :)

Thanks! I'll merge this asap :) . Pinning the tab on my browser ;) .

@tgalopin I don't know hounding maintainers because I know we're all busy. But can I help in some way with checking and merging pull-requests? I'm actively using this library.

It would be great if there's more than one individual who has the rights to merge at least maintenance related pull request. Given the popularity of the lib and the limited amount of time the past and current maintainer has had, it takes a bit too long for PRs to be reviewed/merged. PRs such as this one in particular would be blocking development for so many projects.

I agree, I don't have much time to maintain this library in the short term. @ADmad would you be down for a quick chat in the coming days/weeks to discuss this? Can you ping me at galopintitouan@gmail.com ?

Thanks @Lustmored !

@tgalopin I would also not mind spending time to review, and merge PR's. If you're willing to have me.

@rjd22 thanks a lot for your proposal, that's very much appreciated!
I think we need to be careful not to add too many people in the team, as it can create more problems than it would solve, and in this regard the overall big involvement of @ADmad in the project led me to think we should discuss it together first. If we think we need a third person, I'll definitely ping you :) !

authors: ADmad Lustmored rjd22 tgalopin

repo: thephpleague/glide


text:
Access route vars in middleware

Hi,
Is there a possibility to have access to route vars in a middleware?
Here's my use case: I'd like to translate some parts of the URL, depending on the locale passed in the URL.
For example, I'd like to define one only route for: /en/category/english-name and /fr/categorie/nom-francais.
$router->group('/{locale:locale}', function (RouteGroup $route) {
    $r = sprintf('/%s/{category:slug}', gettext('category'));
    $route->get($r);
})->middleware(new LocaleMiddleware());

LocaleMiddleware would then be responsible for setting the locale so that the route can be translated.
The middleware only knows about the ServerRequestInterface, which holds the query path, but it then requires to extract the locale, without guarantee that the route actually matches, afaik.
I'm looking for a clean way to achieve this (without setting the route in a global variable or in a registry) but I have no idea where I could get the matched route and inject it in the controller. I don't even know if it can be done easily.
I think it can be achieved with a custom strategy, but strategies are not stackable.
For now, I have defined distinct routes for en and fr, but even if it's for a limited purpose (it's not supposed to be widely installed accross the world), it requires duplicate routes, with duplicate names (like fr.article.show/en.article.show) and does not make url generation based on route name easy.

I've been playing a little with the dispatcher, to see what's possible to do. It appears that it's not really possible (at least in v4) to pass a custom dispatcher to the Router. It is required to extend the Router to have a custom dispatcher. Also, the setFoundMiddleware() method is quite complex and overloading it may lead to unexpected behaviour depending on future releases.
Something that could be possible:

define a RouteAwareInterface with a public function setRoute(Route $route): void
in Dispatcher::setFoundMiddleware(), in the loop which adds group and route middleware, check if the middleware implements RouteAwareInterface and, if yes, set the route.

Doing like this does not introduce any BC break and could be added in v4.
What do you think? Did I miss something that is important? Could this feature be interesting for others than me? Should I provide a PR?

Took me 8 days to see it was a duplicate of #249 ...

repo: thephpleague/route


text:
Objekt UT6V67YO6RCWZLRQEBNBVWE3IQ kann nicht geladen werden

http://localhost:8080/object/UT6V67YO6RCWZLRQEBNBVWE3IQ
https://thesaurus-linguae-aegyptiae.de/object/UT6V67YO6RCWZLRQEBNBVWE3IQ

[http-nio-8080-exec-3] ERROR tla.web.service.ObjectService - Failed to obtain details for object ID 'UT6V67YO6RCWZLRQEBNBVWE3IQ'!
[http-nio-8080-exec-3] ERROR tla.web.service.ObjectService - cause:
org.modelmapper.MappingException: ModelMapper mapping errors:
1 ) Converter Converter<interface java.util.SortedMap, interface java.util.SortedMap> failed to convert java.util.TreeMap to java.util.TreeMap.
1 error

Ursache: gändlich fehlender type-Eintrag bei Trismegistos-Referenzen
Workaround erledigt.

repo: thesaurus-linguae-aegyptiae/tla-web


text:
module.py added

script.py now  only contains main method and necessary imports
rest  of all database-query functions are moved in modules.py file

LGTM! Thanks for the contribution!
A couple of suggestions:

You don't need to create a new pull request if I request changes. You can push changes to the same branch and they will be added to the same pull request.
Name the pull request and commits such that it completes the following This pull request/commit will ______. So your PR should be titled Add modules.py. Just a good practice in open source :smile:

authors: singh-yashwant thescriptninja

repo: thescriptninja/pytodo


text:
Package Layout

The package layouts should not be so different. I think it would nice, and save us time in the future, to have a consistent layout for all packages. Here's a suggestion that I can implement eventually if desired.
Create a folder _packages/ or _software/ whatever. Fill the directory with md files for each package. For example, here's one for TensorSpace.
---
layout: package-layout
name: TensorSpace
---

The **markdown** description here if wanted.

One can create one html file for all the packages, similar to how one would create a blog layout in Jekyll. From just the name, we can point people to the latest releases with something like:
https://github.com/thetensor-space/{{ package.name }}/releases/latest
This way, we need only input data into the md files, and we get a consistent looking html page for all the packages. Future edits can then just be done to the layout file.

I don't understand the suggestion, what two categories are you comparing to when you say "shouldn't be so different?"
One point perhaps I see: Yes we don't want a lot to maintain.  Problem though is that our repo structure doesn't necessarily represent our package structure.  Repos we create and some are experimental or convenience or trying to separate concepts.  Packages seem to be polished.  That is my only thought.  Can you explain a bit more what you are invisioning seeing Josh?

Only discussing website layout and design. We should (or I can) create a layout page for packages, e.g. package-layout.html. In it will be html code creating a package page. Jekyll will run through all the files in the, say, _software/ directory and produce an html page for each md file in _software/. It should work just like blog posts work in Jekyll.
The main advantage is design changes can be centralized to one location, package-layout.html for example. Every time we add a new package, we just add an md file with metadata and a description. Formatting does not need to be considered every time we want to add a new package.
This also has the advantage of making all package pages have the same format.
As for your concern about repo structure, add a flag to the meta data. For example
---
experimental: True
---

When running through the files, peel off the experimental packages and do something special with those. When it's no longer experimental, set to False or delete the tag. Or one can just delete the md file to remove the package from the website.
Am I making sense? This is nothing about actual design, and more about preventing repeated work.

Fine, so each package follows a template, yes, that I agree with.  Lets do that.  I think lets have Alex put that together as he already knows how it affects the theme and we can just suggest how to adapt.

@algeboy @joshmaglione I'll quickly go over how packages work in /dev  (note that this will be documented in #9 :
File Structure
_posts
  2019-10-16-your-package-name.md

Package front matter example:
---
layout: post
title:  Densor
categories: [ Tools ]
image: assets/images/densor.jpg
package: true
---

Note: We're using the "post" layout for packages. I can attach a screenshot if requested.

Package link:
/articles/YOUR_PACKAGE_NAME

Would you help confirm the changes we want? From what I gathered, we'd like these changes:

A packages layout
Add a new link for a packages: /{{ package.name }}/releases/latest

Is this correct?
(Also, be sure to @mention me so I can respond to issues faster. Thanks!)

@Alex-Cannon seems fine.

@algeboy great. I'll add these changes.

See #32 to view my PR

authors: Alex-Cannon algeboy joshmaglione


text:
New and improved version of the website

New and improved version of the TUF website, based on the Docsy Hugo theme, which will allow for easier maintenance and growth of the website.
Initial work by LFX Term 2 TUF project mentee  @Dindihub, who also completed the TUF Documentation Analysis for the CNCF techdocs team. Thank you Sandra, and well done! 🙌🏻 ✨
Website migration completed by myself (@chalin)
Contributes to #85
All content from the existing website has a home in this new version of the website.
Feedback by TUF approvers is welcome.

Preview: https://deploy-preview-105--theupdateframework.netlify.app/

Looks nice.
On content/en/spec.md:

is the idea that spec maintainers should update this page too when they make a specification release? This feels like unnecessary process. I would suggest replacing the list with:

Large button to current TUF specification
A bit of additional info like: "Specification is maintained at https://github.com/theupdateframework/specification/, full  list  of releases is available in ..."

Currently the link for list of releases /specification/list/ is broken: should be /specification/

Also header for the "spec" tab seems wrong --  it's got a large image  that looks a bit placeholdery
Compare partial screenshot from docs and spec tab:

Approved by @JustinCappos et al.: see Slack #tuf thread, and a Slack message to @lukpueh and myself. Merging now.
@jku - thanks for your comments. I'll open issue(s) to track those and address them separately.
All: here's a link to the current version of the website. We can keep this around for reference for a little while, for those times where we wonder "how was it before" :) -- https://pre-lfx-2024--theupdateframework.netlify.app

Yes, this also looks great.   I approve!
On Sat, Oct 12, 2024 at 1:10 PM Patrice Chalin @.***>
wrote:

@.**** commented on this pull request.
In netlify.toml
https://github.com/theupdateframework/theupdateframework.io/pull/105#discussion_r1797733953
:

[[headers]]
for = "/*"
[headers.values]

Content-Security-Policy = "default-src 'self' code.jquery.com fonts.googleapis.com fonts.gstatic.com use.fontawesome.com app.netlify.com netlify-cdp-loader.netlify.app youtube.com; frame-src youtube.com www.youtube.com"

Content-Security-Policy = "default-src 'self' code.jquery.com fonts.googleapis.com fonts.gstatic.com cse.google.com www.google.com use.fontawesome.com app.netlify.com netlify-cdp-loader.netlify.app youtube.com; frame-src youtube.com www.youtube.com"

@JustinCappos https://github.com/JustinCappos et al.: I wanted to
highlight this addition to the CSP, i.e., two google.com sites, which I
added while experimenting with custom Google search for the website (#91
https://github.com/theupdateframework/theupdateframework.io/issues/91).
Please confirm that you are ok with this addition, otherwise I'll roll it
back.
—
Reply to this email directly, view it on GitHub
https://github.com/theupdateframework/theupdateframework.io/pull/105#pullrequestreview-2364053443,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAGROD6QRJRUCDP4RMK4QFDZ3FJXFAVCNFSM6AAAAABPTHRYFSVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDGNRUGA2TGNBUGM
.
You are receiving this because you were mentioned.Message ID:
<theupdateframework/theupdateframework.io/pull/105/review/2364053443@
github.com>

@jku - I created the following issue to track your comments:

#107

authors: JustinCappos chalin jku


text:
What's the difference between kong.mlcache and lua-resty-mlcache?

I took a look at the source code and found that FFI is removed.
Could you please describe what side effects does it give?

Closing this now, I think it answered your question :) Thanks for your interest!

authors: blry thibaultcha

repo: thibaultcha/lua-resty-mlcache


text:
Improve tedge connect to address a race condition

Is your feature request related to a problem? Please describe.
In the existing tedge connect c8y the bridge will be created first and then a device create message will be sent to cumulocity.
The device-create message will have device-name and device-type fields. The values for these will be the name of the device and  thin-edge.io respectively.
The problem is if any message is sent to the cumulocity on c8y/s/us before sending a device creation message, then still the device will get created on the Cumulocity cloud with MQTT-device-name and MQTT-device-type as name and type respectively.
Describe the solution you'd like
So, to avoid this race condition the proposed solution is to do directly connect to the cumulocity over MQTT and send the device create message, once the device is successfully created, create the bridge and connect the device to the Cumulocity over the bridge for further communications.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

This has been implemented by https://github.com/thin-edge/thin-edge.io/issues/710

authors: PradeepKiruvale didier-wenzek


text:
Cannot access thingsboard after installing in kube cluster using HELM

I have installed thingsboard using HELM. All the services and pods are up and running but cannot access the thingsboard app.
I have tried the following-

Using ingress ip
Using tb-https ip
It seems none of them are working.

Here is the status of the pods

Here is the status of the services

Status of the cert-manager and nginx-ingress:

How can I access the thingsboard?

HAve you set an an ingress? I cannot see it in the logs shown.
In order to access the service you'll need on of these:

ingress and a ingress controller like nginx, DNS pointing there...
set service as loadbalancer, but that's a lot more tricky, because some routes should go to the Thingsboard webui and others to the Thingsboard node
Do you have other ingress services working in this cluster so you can be sure ingress is working properly?

authors: midokura-agustin ssmtariq


text:
Madlibs generator

Develop a Javascript madlibs app.

The Mad Libs project is a fun and interactive program that allows users to create humorous and often nonsensical stories by filling in the blanks with their own words or phrases it is a great way to practice user input, string manipulation, and basic programming concepts while providing an entertaining and creative experience for the users
The project typically involves the following components:
Story Template: Start by creating a story template that includes a narrative with specific placeholders for different parts of speech (e.g., nouns, verbs, adjectives, adverbs).
Requirements:

Prompt the user to provide words or phrases for each placeholder. Collect and store these user inputs.
Replace the placeholders in the story template with the user-provided words or phrases, creating a customized and often comical story.
Present the final generated story to the user, complete with their input, and let them enjoy the humorous results.

Bonus:

Allow the user to play again with a different template or share the generated story with others.

Any number of people can work on a single issue,
This issue is open to all.
Project location 👉🏻 MadStory/{USERNAME}/...yourfiles
👨🏻💻 Happy Coding 👩🏻💻

assign this to me.

assign this to me.
Hi,
The issue is open to all, please go through the readme file and raise your PR.
Thank You.

Ok sure.

authors: hritikbhattacharya thinkswell

repo: thinkswell/javascript-mini-projects

license: Unlicense


text:
add an image preview and support dark mode?

I thought it would be cool to have a visual.
Also, I think the CSS allows dark or light mode depending on user preference.  Not sure how correct that is.

repo: thiscouldbebetter/EntropyHarvester


text:
Loop() is not goroutine safe

Package tests run a second connection with go irccon.Loop(), like here.
I've been using this code in my own libraries with -race and discovered a bunch of race conditions, such as github.com/thoj/go-ircevent.(*Connection).RunCallbacks() and github.com/thoj/go-ircevent.(*Connection).AddCallback()
These issues seem like they could easily be solved by adding some mutexes around unsafe operations like callback map access. I may have the time to fix this in the next few weeks, but I'm not sure.

Work in progress. Latest change will fix some of the issues. See da78ed515c0f0833e7a92c7cc52898176198e2c1

Most races has been fixed.

authors: Joshua-Anderson thoj

repo: thoj/go-ircevent


text:
Developer/contributing documentation?

Seems there is a lot of steps to build, minify and otherwise be able to reproduce the same files that exists here in this repository.
In order to contribute, it'd be great to be able to run these steps locally too. Currently I'm trying to figure out why the <select> element is not firing change events and was gonna use this websites examples as a base, but because I don't know/understand how this project is built, I cannot use it...

https://github.com/thomas-lowry/figma-plugin-ds/pull/9/commits/ad7750e253b5e6c2cca09eb0656a17d64c32c91a
Check this pull request, it fixes the  issue.
Still not sure how to build it though.

Thanks a lot @jackiecorn, will give that a try! Found another issue that is now blocked by this one https://github.com/thomas-lowry/figma-plugin-ds/issues/10

Fixed in the latest release which is now available as an npm package with a Gulp 4 build.
Also please check out Figma Plugin Boilerplate which comes pre-installed with this library. As a build process as well and is steup with CSS Purge to remove most unused styles to keep it light.

authors: jackiecorn thomas-lowry victorb

repo: thomas-lowry/figma-plugin-ds


text:
feature request: add a release-notes output to the action

Hey, awesome action, been using it for years now 😄
I would find it very useful if the action was providing the rotated release notes as an output (https://docs.github.com/en/actions/creating-actions/metadata-syntax-for-github-actions#outputs-for-docker-container-and-javascript-actions).
This would allow feeding the release notes right into the GitHub Releases API when creating a new release, and avoid the need to set it up separately.

Tried something at #28.


text:
Hooks.unsubscribe argument corrected to subscriptionId

Just found this typo in the useLifecycleEffect example: Hooks.unsubscribe expects the subscription ID.

Thanks

authors: dduehr thomashoneyman

repo: thomashoneyman/purescript-halogen-hooks


text:
🛑 Pihole-KA is down

In a40175c, Pihole-KA ($URL_PIHOLE_MERZ_NIMBUS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pihole-KA is back up in 22bdd18.

repo: thomasmerz/upptime


text:
🛑 Dashboards-FSN is down

In 4202ff9, Dashboards-FSN ($URL_DASHBOARDS_FSN) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Dashboards-FSN is back up in 0c621b5 after 5 hours, 12 minutes.


text:
🛑 Portainer-KA is down

In 45f02bd, Portainer-KA ($URL_PORTAINER_MERZ_NIMBUS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Portainer-KA is back up in 0b23583 after 15 minutes.


text:
🛑 Netdata-NBG is down

In 4c62a40, Netdata-NBG ($URL_NETDATA_DE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Netdata-NBG is back up in 57cdb5e after 6 minutes.


text:
🛑 Syncthing-NBG is down

In b39b56e, Syncthing-NBG ($URL_SYNCTHING_HETZNER_CLOUDSERVER_DE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Syncthing-NBG is back up in 69286f8.

Due to #727


text:
🛑 Pihole-KA is down

In 9e33282, Pihole-KA ($URL_PIHOLE_MERZ_NIMBUS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Pihole-KA is back up in 6da0d29.


text:
A few types can't be found

I'm getting an error on the EventHandlerNonNull and BinaryType types.
ERROR in node_modules/mock-socket/index.d.ts(21,13): error TS2304: Cannot find name 'EventHandlerNonNull'.
node_modules/mock-socket/index.d.ts(22,14): error TS2304: Cannot find name 'EventHandlerNonNull'.
node_modules/mock-socket/index.d.ts(23,14): error TS2304: Cannot find name 'EventHandlerNonNull'.
node_modules/mock-socket/index.d.ts(28,16): error TS2304: Cannot find name 'EventHandlerNonNull'.
node_modules/mock-socket/index.d.ts(29,17): error TS2304: Cannot find name 'BinaryType'.

I already have the dom library defined in my tsconfig.json file, and this is where those types seem to be be.
I'm using version 8.0.2.
How can this be resolved? I have tried many things, to no avail.

I am having the same issue.

Same problem here. Trying to figure out what's exactly happening.

Anyone found a solution or work-around to this?

Same issue here.

Missing typings are added in Typescript 2.8. Update typescript in project or add missing typings from https://github.com/Microsoft/TypeScript/blob/release-2.9/lib/lib.dom.d.ts

I'm using Typescript 4.4.3, and still has the same issue.

Hi @thoov! Could you please cut a new release with this fix?

authors: AmirF27 Townsheriff andreyfel benplummer daveschwerstein guilhermechiara odyzxc orgads

repo: thoov/mock-socket


text:
Add AssetInput component

Had to fix eslint for windows. Lint wasn't working
"lint": "eslint \"{src,electron,e2e,}/**/*.{ts,tsx}\" --fix",
Still busy adding coinInputAdvanced. AssetInput is dependent on it.

Closes #91

authors: nomadnic trolloks

repo: thorchain/asgardex-electron


text:
Does design-system main work with thoughtbot search?

The current README states that design-system works with thoughtbot search. This issue is to run tests to make sure that this is the case. If design-system is indeed a dependency, please test that design-system main works as expected. If it is no longer a dependency, please update the README accordingly.

Yes, it does.

authors: mo-amama smaboshe

repo: thoughtbot/design-system


text:
Stub out ActiveRecord::Base#destroyed?

See #981 for more details
FactoryGirl 4.8.0 updated some logic to make sure to raise on all ActiveRecord::Persistence methods.
However the destroyed? method seems like it is easily stubbed on the Stub object and allows the ActiveRecord::AutosaveAssociation#save_belongs_to_association method to work with stubbed objects again

I hope will be merged soon.

Hit this exact issue when I tried to upgrade the FG gem.  Hoping to see this merged soon.

@urbanautomaton Given this was introduced in https://github.com/thoughtbot/factory_girl/commit/fd3bf889f8ba33ba8cd0a69fd891a1b0a0bae5e8, do you have any insight you could provide here? I've confirmed that :destroyed? is in fact present within ActiveRecord::Persistence.public_instance_methods, so I'm interested in your thoughts on whether this is the appropriate solution, or if you're aware of other impacts here.
Thanks in advance!

@joshuaclayton Yep, this change makes total sense to me - it's consistent with the existing stubbing and I can't think of any problems it would cause. 👍

Excellent, all set; I've merged this as 168bbf8e346487973d2b50496ed2d93100f83276.

@joshuaclayton any plans on releasing this as a new version? 4.8.1 perhaps?

I also ran into this regression with 4.8.0 as well. Mongoid calls destroyed? as a part of its ActiveModel to_key method, so our decorator secs that use stubbed factories now have a bunch of errors. Any plans for a release?

@joshuaclayton @jferris sorry to ping you guys directly, but that's an easy and very important fix

@TheRusskiy @cgriego @leonelgalan all set - 4.8.1 is up and published on Rubygems!

authors: Jakanapes Joeper214 TheRusskiy bradleypriest cgriego joshuaclayton leonelgalan urbanautomaton


text:
Create CODEOWNERS

@louis-antonopoulos you've shared interesting in becoming the codeowner of this library. Please merge this if you're okay with it. Thank you!

Thanks, @stefannibrasil! I'm the proud new codeowner of yuri-ita.

yay, congrats! and thank you 👏🏼

authors: louis-antonopoulos stefannibrasil

repo: thoughtbot/yuri-ita


text:
Neue Funktion: Gas/Ölverbrauch und Betriebsstunden

Hi, danke für die Arbeit, toll! Adapter läuft ohne Fehler auf Anhieb!
Super wäre es, wenn, da der Wert "Brenner on/off" ja geliefert wird, noch gleich die Betriebsstunden und der Verbrauch von Gas/Öl ausgerechnet werden könnte, so wie hier das Script für HM macht:
https://smart-wohnen.org/homematic-verbrauchs-und-betriebsstundenzaehler-fuer-oelheizungen/?fbclid=IwAR0CYFoED8GcymnswzDJCuDTesqtuY-jlMV8Xy_IPgwDnJ3qH1_2svfc13g
Es werden die Daten der Düse (Durchflussmenge) und bei Öl der vorhandene Tankinhalt (um den restlichen Tankinhalt zu berechnen) benötigt.

Hi, danke für das Feedback. Ich schaue mir das verlinkte Script bei Gelegenheit mal an. Könnte man die Berechnung nicht auch in einem eigenen Script machen, wenn man die entsprechenden States subscribed?

Ich denke wenn der Brennerstatus, also AN oder AUS, ausgegeben wird, ermöglicht dies eigene Berechnungen sehr leicht.

Wenn man die Brennerstunden direkt auslesen kann - was mit vcontrold möglich ist - kann man das Polling entsprechend verringern. Außerdem muss man sich keine Sorgen machen, falls der ioBroker mal neu aufgesetzt werden muss. Ich denke für die Mehrzahl der User dürften die Brennerstunden das k.o.-Kriterium sein. Denn das Interessanteste an der Heizung ist doch der Brennstoffverbrauch.

Der Adapter liefert nur genau das, was Viessmann über seinen Server zur Verfügung stellt. Zumindest bei meiner Heizung habe ich da keine Brennerbetriebsstunden oder ähnliches gefunden. Ihr könnt mal schauen, ob ihr einen state heating.burner.statistics habt, und ob da etwas sinnvolles drin steht...
Im Übrigen gebe ich euch recht, mit einem vertretbaren Polling-Wert lassen sich die Betriebsstunden nicht sinnvoll berechnen, da ist die Unschärfe zu groß.

Warum Viessmann so etwas macht (bzw. nicht macht) ist mir absolut unverständlich. Die Vicare App ist leider total nutzlos. Dass die Brennerstunden über das mitgelieferte Kabel auslesbar sind, aber nicht über die API ausgegeben werden ist für mich ein Armutszeugnis.
Jetzt steht leider weiterhin ein Raspberry samt USB-WLAN-Adapter auf meinem Heizkessel.

Die gewünschte Funktion kann ich leider so nicht unterstützen. Bei Gasheizungen gibt es (je nach Heizung?) die States heating.gas.consumption.heating.*, die den durch die Heizung ermittelten Verbrauch enthalten. Ob es etwas vergleichbares bei anderen Heizungen gibt kann ich nicht sagen (Test Hardware wäre etwas teuer und aufwändig ;-) ). Ich schließe dieses Issue daher. Falls noch Diskussionsbedarf besteht, einfach wieder öffnen.
Grüße,
Thomas


text:
users.search() returns wrong number of objects

Hello again!
I've tried to use await client.users.search("zuck", 2) to get 2 results about "zuck" but got tens of objects as response.
Any idea why?

yeah, this is a problem I've experienced. I believe the minimum is 30 or 40, so you won't get just 2 responses. nothing I can do about it tho

Okay thanks for clarification, I think it could be interesting to mention this in the docs :)

fixed

authors: LilaRest elijah-wright


text:
Gitea docs is missing

The link to Gitea on the dashboard is missing on the manual

It's in manual.dev.grid.tf for now. Just merged to master manual.grid.tf for simplicity.

To be clear, the link is working now.

authors: Mik-TF samaradel


text:
over provisioning & test cert to be configured from settings page

over provisioning & test cert to be configured from settings page

Commit_ID 3faf52c9a846f2ee6f5a64307c5afcf1f1d2468f , Branch development

authors: Dina-Abd-Elrahman xmonader

repo: threefoldtech/js-sdk


text:
Current jsx install script no longer ask for 3bot name - therefor cannot authenticate with 3bot connect

In older scripts the was a question to specify your 3bot name:
    users = threebotusers()
    ok = False
    while not ok:
        tname = IT.Tools.ask_string("give your 3bot name, as used with your 3bot connect.")
        tname = tname.lower().strip()
        # if tname not in users:
        #
        #     break
        if "." not in tname:
            assert "3bot" not in tname
            tname += ".3bot"

New code:
  def _userdata_ask(self, name=None, email=None):
        name = name.lower().strip()
        if not name:
            name = IT.Tools.ask_string("give your 3bot name, as used with your 3bot connect.")
        name_res, email_res = self.phonebook_check(tname, None)
        if name_res:
            IT.Tools.shell()
            # IT.Tools.ask_yes_no(
            #     "your 3botname:'%s' does not exist in the tfgrid explorer, ok to register your name?"
            # )
            #
            #     break
            # if "." not in tname:
            #     assert "3bot" not in tname
            #     tname += ".3bot"
            #
            # print("Could not find the user. Specify an existing name in 3bot phonebook.")
            ok = True

Does noft ask me for my 3bot name....

no need to look at,
there is a new IDENTITY MANAGER almost done, see separate branch

authors: despiegk weynandkuijpers


text:
Terraform fails to create vm if wireguard access = true

I tried many times to create vms using terraform, and all failed. Tested on different nodes, differente configurations, different days.... My conclusion is that if using wireguard access = true it will not work!

I'm using 1.9.2, I didn't know there was a 1.9.3-rc1. Anyway I upgraded to 1.9.3-rc1 and te problem is exacly the same.
Version 1.9.3-rc1  with add_wg_access      = true
grid_network.netteste_3021 will be created

resource "grid_network" "netteste_3021" {

access_wg_config   = (known after apply)
add_wg_access      = true
description        = "SomeNetwork"
external_ip        = (known after apply)
external_sk        = (known after apply)
id                 = (known after apply)
ip_range           = "10.32.0.0/16"
name               = "netteste_3021"
node_deployment_id = (known after apply)
nodes              = [

3021,
]

nodes_ip_range     = (known after apply)
public_node_id     = (known after apply)
solution_type      = "Network"
}

Plan: 2 to add, 0 to change, 0 to destroy.
Changes to Outputs:

ygg_ip_3021 = (known after apply)
grid_network.netteste_3021: Creating...
grid_network.netteste_3021: Still creating... [10s elapsed]
grid_network.netteste_3021: Still creating... [20s elapsed]
╷
│ Error: could not generate deployments data: failed to get node 1 endpoint: could not list node interfaces: context deadline exceeded

Version 1.9.3-rc1  with add_wg_access      = false
grid_network.netteste_3021 will be created

resource "grid_network" "netteste_3021" {

access_wg_config   = (known after apply)
add_wg_access      = false
description        = "SomeNetwork"
external_ip        = (known after apply)
external_sk        = (known after apply)
id                 = (known after apply)
ip_range           = "10.32.0.0/16"
name               = "netteste_3021"
node_deployment_id = (known after apply)
nodes              = [

3021,
]

nodes_ip_range     = (known after apply)
public_node_id     = (known after apply)
solution_type      = "Network"
}

Plan: 2 to add, 0 to change, 0 to destroy.
Changes to Outputs:

ygg_ip_3021 = (known after apply)
grid_network.netteste_3021: Creating...
grid_network.netteste_3021: Creation complete after 6s [id=a204ee8d-d755-475d-bb2b-e9e88b3543b5]
grid_deployment._3021: Creating...
grid_deployment._3021: Still creating... [10s elapsed]
grid_deployment._3021: Creation complete after 11s [id=94036]

Apply complete! Resources: 2 added, 0 changed, 0 destroyed.

╷
│ Error: could not generate deployments data: failed to get node 1 endpoint: could not list node interfaces: context deadline exceeded

The error appears to be from node 1, not the wireguard. You could specify a node ID in both the network and the VM for another node ID and try again.
I checked node 1, and it does have a problem responding over RMB.

It turned the issue is caused by some nodes appearing as "Up" while they actually don't respond to RMB calls. So, in case of wireguard access = true, the deployer looks for a public node that is up and try to include it with the deployment (that's why node 1 in your case appeared while you didn't choose it).
We added some extra checks to make sure the nodes chosen as access nodes are actually up and respond to RMB calls. The fix should be on it's way in the upcoming mainnet release.

Verified using version 1.9.3-rc2. Will be available in the next release 1.9.3
Tried the multinode example (https://github.com/threefoldtech/terraform-provider-grid/tree/development/examples/resources/multinode)
It uses WireGuard and it worked fine

We seem to have a regression on this. I'm using v1.11.1 and the scheduler is picking down nodes again:
╷
│ Error: could not generate deployments data: 2 errors occurred:
│ 	* failed to get node 31 endpoint: could not list node interfaces: context deadline exceeded
│ 	* failed to process network testvm
│
│
│
│   with grid_network.net1,
│   on main.tf line 36, in resource "grid_network" "net1":
│   36: resource "grid_network" "net1" {
│
╵

This is running the single VM Mycelium example against mainnet: https://github.com/threefoldtech/terraform-provider-grid/tree/development/examples/resources/single_vm_mycelium

authors: A-Harby AbdelrahmanElawady rawdaGastan s-areal scottyeager

repo: threefoldtech/terraform-provider-grid


text:
Weird numbers in the explorer.

On  a dedicated node I launched 2 VM's and the explorer showed me this:

To me, the overview of CRU looks weird.
The physical capacity available in the dedicated server: 8 cores and 16GB of memory.  I provisioned 2VM's as follows:
1:  4 CPU (logical cores) + 8GB of memory
2: 12 CPU (logical cores) + 5GB (can not do more - Zero-OS needs memory)
Detailed views:
First:
{
    "version": 0,
    "contractId": 14248,
    "nodeId": 190,
    "name": "dedicatedmach",
    "created": 1666167927,
    "status": "ok",
    "message": "",
    "flist": "https://hub.grid.tf/tf-official-vms/ubuntu-18.04-lts.flist",
    "publicIP": null,
    "planetary": "300:9248:feb6:2ab7:3d66:50ac:dfe1:38f9",
    "interfaces": [
        {
            "network": "NW13e96299",
            "ip": "10.20.2.2"
        }
    ],
    "capacity": {
        "cpu": 4,
        "memory": 8192
    },
    "mounts": [
        {
            "name": "DISK68d6920d",
            "mountPoint": "/",
            "size": 53687091200,
            "state": "ok",
            "message": ""
        }
    ],
    "env": {
        "SSH_KEY": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAOP0h6VImNcxnIBRMoMfbMfb0xwGHDlaPxZ+nu0CL8ATJekVDHDLMGEPdvACfHBe0sqIw/l6jqoEMR4Dzhjgm4bVEUBVEnG1FvkeNB59sT2DOxDCZuqJvjx2M1bJlH8AR/JQXxUQ+zvfTbavc4/zfCuJm4PYNUsmEt/IQmRwLznGOkoJbwYLhKCC3ykZd0EGpmCWgUUYn0ihaaYkyrliQi5Ny00x0s6jOIJg0CG2Xh5xcrkhOfCZMxZAB+/LGQpZ3tu+Cy5jRf8V/JZ8XQmtYM2GmBUZ1KGcMcsGzrtuudn13JeYLtWJBw6A7Q3Fb7dQSCMLC9UA0uMSZk67M6DFV john@RescuedMac"
    },
    "entrypoint": "/init.sh",
    "metadata": "{\"type\":\"vm\",\"name\":\"dedicatedmach\",\"projectName\":\"Fullvm\"}",
    "description": "",
    "corex": false
}

Second one:

{
    "version": 0,
    "contractId": 14250,
    "nodeId": 190,
    "name": "dedicated2",
    "created": 1666168668,
    "status": "ok",
    "message": "",
    "flist": "https://hub.grid.tf/tf-official-vms/ubuntu-18.04-lts.flist",
    "publicIP": null,
    "planetary": "300:9248:feb6:2ab7:46f:adc5:6ae9:1158",
    "interfaces": [
        {
            "network": "NW837483af",
            "ip": "10.20.2.2"
        }
    ],
    "capacity": {
        "cpu": 10,
        "memory": 5120
    },
    "mounts": [
        {
            "name": "DISK68d6920d",
            "mountPoint": "/",
            "size": 53687091200,
            "state": "ok",
            "message": ""
        }
    ],
    "env": {
        "SSH_KEY": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDAOP0h6VImNcxnIBRMoMfbMfb0xwGHDlaPxZ+nu0CL8ATJekVDHDLMGEPdvACfHBe0sqIw/l6jqoEMR4Dzhjgm4bVEUBVEnG1FvkeNB59sT2DOxDCZuqJvjx2M1bJlH8AR/JQXxUQ+zvfTbavc4/zfCuJm4PYNUsmEt/IQmRwLznGOkoJbwYLhKCC3ykZd0EGpmCWgUUYn0ihaaYkyrliQi5Ny00x0s6jOIJg0CG2Xh5xcrkhOfCZMxZAB+/LGQpZ3tu+Cy5jRf8V/JZ8XQmtYM2GmBUZ1KGcMcsGzrtuudn13JeYLtWJBw6A7Q3Fb7dQSCMLC9UA0uMSZk67M6DFV john@RescuedMac"
    },
    "entrypoint": "/init.sh",
    "metadata": "{\"type\":\"vm\",\"name\":\"dedicated2\",\"projectName\":\"Fullvm\"}",
    "description": "",
    "corex": false
}

yes - 2x, not?  So this is presenting the actual status of usage including overprovisioning.  My argument would be to still go to 100% in total and half the provisioned precentage.

cores
reserved
current percentage
proposed percentage

8
0
0%
0%

8
4
50%
25%

8
8
100%
50%

8
12
150%
60%

8
16
200%
100%

I think the proposed percentages make more sense.

it can be more that 2x actually. Please move the suggested proposal to an issue in zos for discussion, it won't work for 2x nevertheless. A more appropriate solution is having a note that CPU is overprovisioned.

authors: weynandkuijpers xmonader


text:
I need help, I can't properly process pictures from S3.

First of all, I'm sorry, I don't understand English, I usually use Google translate, if I didn't express my question clearly, please understand, thank you!
I'm using an object storage compatible with AWS S3 protocol, when I'm done configuring Thumbor, try to run the image fetched from S3, Thumbor got a 500 error and I need help.
This is my config file
LOADER = 'thumbor.loaders.http_loader'
STORAGE = 'thumbor_aws.storage'
RESULT_STORAGE = 'thumbor_aws.result_storage'

################################# AWS Storage ##################################
AWS_STORAGE_REGION_NAME = 'ap-beijing'
AWS_STORAGE_BUCKET_NAME = 'img'
AWS_STORAGE_S3_SECRET_ACCESS_KEY = 'XXXXXXXXX'
AWS_STORAGE_S3_ACCESS_KEY_ID = 'XXXXXXXXX'
AWS_STORAGE_S3_ENDPOINT_URL = 'https://cos.ap-beijing.myqcloud.com'
AWS_STORAGE_ROOT_PATH = '/storage'
AWS_STORAGE_S3_ACL = None
AWS_DEFAULT_LOCATION = 'https://img.cos.ap-beijing.myqcloud.com'

################################################################################

############################## AWS Result Storage ##############################
AWS_RESULT_STORAGE_REGION_NAME = 'ap-beijing'
AWS_RESULT_STORAGE_BUCKET_NAME = 'img'
AWS_RESULT_STORAGE_S3_SECRET_ACCESS_KEY = 'XXXXXXXX'
AWS_RESULT_STORAGE_S3_ACCESS_KEY_ID = 'XXXXXX'
AWS_RESULT_STORAGE_S3_ENDPOINT_URL = 'https://cos.ap-beijing.myqcloud.com'
AWS_RESULT_STORAGE_ROOT_PATH = '/result-storage'
AWS_RESULT_STORAGE_S3_ACL = None

################################################################################

My environment configuration
thumbor        7.0.6
thumbor-aws    0.4.0
S3             private read and write

Access
http://127.0.0.1:8689/unsafe/20221/a78a8a02-6c94-452e-9322-62824c458acd.jpg

Error
2022-02-18 03:14:09 thumbor:ERROR ERROR: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/thumbor/handlers/__init__.py", line 195, in get_image
    result = await self._fetch(self.context.request.image_url)
  File "/usr/local/lib/python3.9/dist-packages/thumbor/handlers/__init__.py", line 732, in _fetch
    loader_result = await self.context.modules.loader.load(self.context, url)
  File "/usr/local/lib/python3.9/dist-packages/thumbor/loaders/http_loader.py", line 191, in load
    response = await client.fetch(req, raise_error=True)
TimeoutError: [Errno 110] Connection timed out

2022-02-18 03:14:09 thumbor:ERROR [BaseHandler] get_image failed for url `20221/a78a8a02-6c94-452e-9322-62824c458acd.jpg`. error: `[Errno 110] Connection timed out`
2022-02-18 03:14:09 tornado.access:ERROR 500 GET /unsafe/20221/a78a8a02-6c94-452e-9322-62824c458acd.jpg (127.0.0.1) 3231.83ms

Access
http://127.0.0.1:8689/unsafe/https://www.baidu.com/img/PC_880906d2a4ad95f5fafb2e540c5cdad7.png

Error
2022-02-18 03:12:18 thumbor:ERROR [BaseHander.finish_request]
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/thumbor/handlers/__init__.py", line 514, in finish_request
    result = await self.context.thread_pool.queue(
  File "/usr/local/lib/python3.9/dist-packages/thumbor/threadpool.py", line 53, in queue
    return await self._execute_in_foreground(operation, *args)
  File "/usr/local/lib/python3.9/dist-packages/thumbor/threadpool.py", line 45, in _execute_in_foreground
    return operation(*args)
  File "/usr/local/lib/python3.9/dist-packages/thumbor/handlers/__init__.py", line 428, in _load_results
    image_extension, content_type = self.define_image_type(context, None)
  File "/usr/local/lib/python3.9/dist-packages/thumbor/handlers/__init__.py", line 393, in define_image_type
    elif self.can_auto_convert_png_to_jpg():
  File "/usr/local/lib/python3.9/dist-packages/thumbor/handlers/__init__.py", line 372, in can_auto_convert_png_to_jpg
    return self.context.request.engine.can_auto_convert_png_to_jpg()
  File "/usr/local/lib/python3.9/dist-packages/thumbor/engines/__init__.py", line 398, in can_auto_convert_png_to_jpg
    can_convert = self.extension == ".png" and not self.has_transparency()
  File "/usr/local/lib/python3.9/dist-packages/thumbor_vips_engine/engine.py", line 151, in has_transparency
    raise NotImplementedError()
NotImplementedError
2022-02-18 03:12:18 thumbor:WARNING Error while trying to fetch the image:
2022-02-18 03:12:18 tornado.access:ERROR 500 GET /unsafe/https://www.baidu.com/img/PC_880906d2a4ad95f5fafb2e540c5cdad7.png (127.0.0.1) 329.15ms

I think Thumbor's configuration on AWS S3 is very simple, but I have these problems, I try to solve them and find that nothing works, I would like to get help from the developers, I would appreciate any reply.
I have been using Thumbor 6.0 for the past two years, and I have to say, Thumbor is an excellent work!

Wait you are using thumbor vips engine? It's not ready, that's why you are getting a NotImplementedError...

About the TimeoutError: [Errno 110] Connection timed out probably some network error between your computer and the actual file. Hard to help without understanding your use case better.

BTW your english is fine :)

Wait you are using thumbor vips engine? It's not ready, that's why you are getting a NotImplementedError...

Yes, I use thumbor vips engine, but I got so many bugs that I had to stop using thumbor vips engine.
I use thumbor-aws to load images from http, this problem has been solved so far, I use thumbor-aws to transfer images from the intranet, there should be no problems with the network, thank you for your reply.

authors: Anbool heynemann

repo: thumbor/thumbor-aws


text:
Drawing problem

Hi author! I want to use this method to my paper, please about how to get Figure 1?
thank your answer！

Hi, thanks for your interest.
The first column: the original series as training dataset
The second: window-partitioned series as model inputs
The third row: train Transformer with raw inputs/ stationarized inputs(e.g. normalization) / train with NSTransformer, then visualize the learned attention maps

已收到邮件!

authors: WenWeiTHU linsonM


text:
Relax lower bound on directory

Without this the project does not compile on GHC 8.0.1.

Thanks! Sorry about the Travis emails.

That Travis failure looks kinda spurious, but I can't seem to convince it to retry the build. Feel free to merge if you're confident!

No worries! I didn't receive any emails, just noticed the build failure on #50.

authors: thumphries vaibhavsagar

repo: thumphries/hgrep


text:
Updating Series.dims on Series.applyKeys

Currently, calling Series.applyKeys returns a new Series copies the value of the Series.dims property from the original Series. However, a call to Series.applyKeys is very likely to change the range of the keys, so this may not be appropriate.
Example:
In [49]: data.dims
Out[49]: Dimensions(values=[(0, 0, 0), (75, 86, 1)], n=3)

In [50]: data.applyKeys(lambda k: tuple([i-1 for i in k])).dims
Out[50]: Dimensions(values=[(0, 0, 0), (75, 86, 1)], n=3)

Unfortunately, the fix here is not entirely straight-forward, as applyKeys is define on Data but dims is defined down a level, separately on Images and Series. This means that, at the level it is defined, applyKeys does not have access to the dims property. One possibility would be to override applyKeys on Series and have it call the super(Series, self).applyKeys as well as resetting dims to None (perhaps after checking for a no-op on the function applied to the keys).

There is definitely a solid use-case for Series -- I've been dealing with data that gets loaded in with the keys starting at 1 and I need to reindex them to start at 0 for later use of Series.pack. There may be similar use-cases on Images, in which case we might want to take a look at implementing a fix for this on Images as well.

I agree that your suggestion would solve the issue for now, but I'm generally in favor of reducing direct access to keys and values, especially with the transition to Bolt in mind, where direct access to keys should never be necessary as part of the public API, and shape information will be propagated correctly appropriately by other functions (like map).
This particular case might best be handled as an optional flag during loading, though I'm not sure that would handle every current use of applyKeys.
And note that in the case of images, the dims actually refers to the dimensions of the values, so the same issue arises for applyValues, but there's no metadata that's key-specific.

That makes a lot of sense. The one thing I would add is that, at least for Series, access to the keys will still remain essential all the way up until Bolt has a sparse array, which could be a ways off.
Should we try to implement something to fix this for now?

authors: freeman-lab jwittenbach

repo: thunder-project/thunder


text:
updated edge dependency

Hi
In order to use the latest version of edge I have had to change the source of where npm install edge from.
Thanks
Simon

Shall I close if you are not going to merge in?