text:
STM32F105 unknown chip id

I work with STM32F105RCT6, ST-LINK/v2 and I get this:
me@PC:~/stlink$  sudo ./st-util -p 61234 -v99 -m
2015-03-26T17:52:43 DEBUG src/stlink-common.c: stlink current mode: debug (jtag or swd)
2015-03-26T17:52:43 DEBUG src/stlink-common.c: stlink current mode: debug (jtag or swd)
2015-03-26T17:52:43 DEBUG src/stlink-common.c: *** looking up stlink version
2015-03-26T17:52:43 DEBUG src/stlink-common.c: st vid         = 0x0483 (expect 0x0483)
2015-03-26T17:52:43 DEBUG src/stlink-common.c: stlink pid     = 0x3748
2015-03-26T17:52:43 DEBUG src/stlink-common.c: stlink version = 0x2
2015-03-26T17:52:43 DEBUG src/stlink-common.c: jtag version   = 0x10
2015-03-26T17:52:43 DEBUG src/stlink-common.c: swim version   = 0x4
2015-03-26T17:52:43 INFO src/stlink-common.c: Loading device parameters....
2015-03-26T17:52:43 DEBUG src/stlink-common.c: *** stlink_core_id ***
2015-03-26T17:52:43 DEBUG src/stlink-common.c: core_id = 0x00000000
2015-03-26T17:52:43 DEBUG src/stlink-common.c: *** stlink_read_debug32 e0042000 is 0xe0042000
2015-03-26T17:52:43 WARN src/stlink-common.c: unknown chip id! 0xe0042000
2015-03-26T17:52:43 DEBUG src/stlink-common.c: *** stlink_close ***

Do you have any ideas whats wrong?

If the core is in a sleep state (e.g., WFI was executed), st-link may not
be able to connect.  You can pull BOOT0 high to boot into the bootloader,
from which you will be able to connect.  There are also a few bits in
DBGMCU_CR which enable debugging during sleep modes.
On Thu, Mar 26, 2015, 10:04 tonitrui notifications@github.com wrote:

I work with STM32F105RCT6, ST-LINK/v2 and I get this:
me@PC:~/stlink$  sudo ./st-util -p 61234 -v99 -m
2015-03-26T17:52:43 DEBUG src/stlink-common.c: stlink current mode: debug (jtag or swd)
2015-03-26T17:52:43 DEBUG src/stlink-common.c: stlink current mode: debug (jtag or swd)
2015-03-26T17:52:43 DEBUG src/stlink-common.c: *** looking up stlink version
2015-03-26T17:52:43 DEBUG src/stlink-common.c: st vid         = 0x0483 (expect 0x0483)
2015-03-26T17:52:43 DEBUG src/stlink-common.c: stlink pid     = 0x3748
2015-03-26T17:52:43 DEBUG src/stlink-common.c: stlink version = 0x2
2015-03-26T17:52:43 DEBUG src/stlink-common.c: jtag version   = 0x10
2015-03-26T17:52:43 DEBUG src/stlink-common.c: swim version   = 0x4
2015-03-26T17:52:43 INFO src/stlink-common.c: Loading device parameters....
2015-03-26T17:52:43 DEBUG src/stlink-common.c: *** stlink_core_id ***
2015-03-26T17:52:43 DEBUG src/stlink-common.c: core_id = 0x00000000
2015-03-26T17:52:43 DEBUG src/stlink-common.c: *** stlink_read_debug32 e0042000 is 0xe0042000
2015-03-26T17:52:43 WARN src/stlink-common.c: unknown chip id! 0xe0042000
2015-03-26T17:52:43 DEBUG src/stlink-common.c: *** stlink_close ***
Do you have any ideas whats wrong?
—
Reply to this email directly or view it on GitHub
https://github.com/texane/stlink/issues/304.

authors: prattmic tonitrui

repo: texane/stlink


text:
Disable static library installation by default

Static library not needed if shared library installed, isn't it?

One might have applications using either at the same time, distributions always ship both

@bluca Are you shure? Why someone need use static and shared libs at the same time?
And about distributions you completely wrong
https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Static_Libraries

Packages including libraries SHOULD exclude static libs as far as possible (eg by configuring with --disable-static). Applications linking against libraries SHOULD link against shared libraries not static versions.

I know that's the aspiration, in reality it's a bit different and users often ask for both - anyhow I don't care that much about the default, as long as there's an option for it

Where option for it?

Having a static library installed doesn't make any sense. Static library should only be used during static builds and distributed. We should stick with dynamic library for all systems except windows (mingw)/osx builds.

Or may be you can add parameter to not build static lib at all?

Maybe about the static library build we should do something like the nanomsg project https://github.com/nanomsg/nanomsg/blob/master/CMakeLists.txt#L99

It would be great.

Thanks

source: gharchive/pull-request

authors: Vascom bluca xor-gate

license_type: permissive

license_source: github-api


text:
api: update api methods/types/responses for go-threads

fixes #180
fixes #181

Assuming we are holding off on this one until we get some consensus on https://github.com/textileio/go-threads/pull/293?

LGTM! There are just two comments that could probably use tickets? Your call.

took care for them, will be gtg once those tests pass

authors: andrewxhill carsonfarmer

repo: textileio/js-threads-client

license: MIT


text:
Consolidate contacts screen and add contacts screen

Fixes #1108. Uses the same rendering logic as in AddContact.tsx, but in Contacts.tsx.

@asutula Fixed the placeholder text!

repo: textileio/photos


text:
Configure golangci-lint via yml file

This is a cleaner way of integrating golangci-lint because the yml file will be used by the GitHub action, your IDE, and golangci-lint run locally. I think I have the yml file configured to effectively the same as was being run in the CI action (running golint with exclude-use-default: false). I also tried enabling the mispell linter and it is catching things that reviewdog is not, so I removed the reviewdog step in favor of this linter.

If you want to see the misspell output, here's a failure from before I fixed the problems
https://github.com/textileio/powergate/pull/249/checks?check_run_id=590725004#step:4:5

Actually looks like the misspell linter is just for code comments and "commonly misspelled" words, so I added reviewdog back in so now we can use both. I'm not sure why reviewdog didn't find the typos that misspell did.

I'm not sure why reviewdog didn't find the typos that misspell did.
I wonder the same. I agree better with both!

authors: asutula jsign

repo: textileio/powergate


text:
Add inequality

Now that both negation and equality exist, it makes sense to add inequality. The prelude calls this /=.

The prelude makes /= an optional member of the Eq type class, but I've never seen a good reason for that. I suppose it could be easier to think about inequality as opposed to equality, but I haven't ever seen someone implement /= instead of ==. I think inequality should be derived automatically from equality. In Ruby, for instance, you get != for free when you implement ==.

source: gharchive/issue

repo: tfausak/imp


text:
New viz: PCA plots (e.g. over time)

Once @brieuclehmann comes back to me with fast code for PCA analysis using tskit and np.linalg.eig, I should put together a PCA page. This issue is just to remind me to do so (and follow up with Brieuc).
Transferred from https://github.com/percyfal/tseda/issues/8

I've not forgotten about this - there's an even faster implementation being cooked up by Hanbin Lee and which will eventually be incorporated directly into tskit. Happy to dig out my draft code if this is holding you back though?

authors: brieuclehmann percyfal

repo: tforest/tseda


text:
Update main.cpp

new IP "40.114.249.243" // router.eu.thethings.network
detect CodingRate

Hi, Just so you know, I've merged this into my fork at https://github.com/proffalken/single_chan_pkt_fwd - I'm slowly adding all of the current PR's on this repo to my code and then I'll add my debian packaging code as well :)

authors: proffalken zeflo

license_source: bigquery


text:
Support for transforming scalar values

Closes #2.

Seems ok, but; shouldn't we add this to the filterIfHasData method too?

Also if your use-case can be interesting to others, can you add that to the recipes?

Yes, both are good ideas, I will extend the pull request accordingly.

All changes are applied. Is it possible to preview the rendered recipe?

I configured GitHub Pages for my development branch so that a recipe preview is available.


text:
Improving scope handling of std::unique_lock to avoid premature unlock

Line 40: uniquelk(mut); https://github.com/thanhit95/multi-threading/blob/main/cpp/cpp-std/demo17c-reentrant-lock.cpp
I've encountered a potential issue in the synchronization logic involving std::recursive_mutex and std::unique_lock. The current implementation creates temporary std::unique_lock objects that are not assigned to variables. This results in the locks being released immediately after their creation due to the temporary objects going out of scope. I wonder if this approach was chosen for specific reasons that I might not be aware of.

Thank you for identifying the mistake. I've made the commit 9557cdf to fix it.


text:
tap vs drag adjustments

Is it possible to set the touch and drag sensitivity? Operating a wall mounted tablet is different then operating it in your hand. the tablet registers drags instead of presses a lot. this results in button presses not being executed but merely the UI trying to drag the page. Its hard to keep your finger very still to press a button on a small screen on the wall. I wonder if there is a way to maybe adjust this sensitivity of drag and touch. so that it registers presses easier / more often.
Maybe im the only one having these issues and maybe it isnt even possible to adjust. But i need to press most tabs on home assistant multiple times before it actually registers a press instead of a swipe/drag.

Can you be more specific, you taking about the code screen?

Im sorry if im wasn't clear enough.
I mean in the browser or whatever is used to show home assistant in within the wallpanel app. So what i mean is pressing buttons in home assistant within wallpanel. When controlling home assistant on the tablet using wallpanel most of the presses i make are registered as drags/swipes thats because it is very hard to keep your finger still when aiming for a small button on the screen.
I just wondered if the sensitivity of the touch / drag can be adjusted so this doesnt happen.
I hope i explained it right this time. My english isn't very good with explaining these kind of things.

I would turn off the browser refresh option in the application settings, then there is no drag events captured.   If that is not on, there is nothing I can do to fix the drag events within the web page rendered.

I understand. i will look if i can adjust these setting in android itself

authors: sygys thanksmister

repo: thanksmister/wallpanel-android


text:
Optimize Equinix usage

Hello! Friendly neighborhood CNCF person here.
We're looking to reduce Equinix usage where possible. This is all related to https://contribute.cncf.io/resources/newsletters/2024-02-21-projectnewsletter/#equinix-updates and the resource usage policy linked further below. :)
We see you're using both a pretty beefy machine that, based on bandwidth alone, looks to sit mostly idle. Since these are bare-metal machines, could you instead tear down that machine and only spin something like that up when a benchmark actually needs to run? :)
Additionally, is there a reason you're running a dedicated GHA runner instead of using the GitHub provided runners?
Thanks!
cc @vielmetti (Awesome Equinix staffer :sunglasses:)

Thank you for the message and sorry for the problems. I wanted to use on-demand provisioned physical servers but never found the time to implement this. Currently it runs our continuous benchmarking job but it has been broken for a long time - the website doesn't show newest entries, it sometimes times out or even gets OOM killed. Given that it's basically unmaintained, I think we can just destroy the machine/job and get back to it when we have the time to do it properly. @fpetkovski do you have any thoughts?

Decomissioning the machine for now makes sense. I think we should go back to running our light weight benchmarks using shared GH runners and we can reconsider a dedicated machine if we need it again.

https://github.com/thanos-io/promql-engine/pull/449

Thank you!

authors: GiedriusS fpetkovski jeefy vielmetti

repo: thanos-io/promql-engine


text:
Compactor: invalid size downsample block to window 3600000

Thanos, Prometheus and Golang version used:

Thanos: v0.23.1 (AFAK it was also present in v0.22.0)

Object Storage Provider:
S3
What happened:
After enabling vertical compaction, downsampling runs from our compactor dedicated to Thanos receive blocks eventually crash with this error:
downsample aggregate block, series: 72045: invalid size\ndownsample block 01FKGKPPMDT9CSFTTC1YR1JHB2 to window 3600000

What you expected to happen:
Compactor run downsamples without issues.
How to reproduce it (as minimally and precisely as possible):

set up Thanos Receive & some Prometheus to remote write
deploy a Thanos compactor instance filtering on Thanos Receive blocks only
enable vertical compaction based on the one-to-one algorithm

Full logs to relevant components:
Compactor logs

{"caller":"factory.go:49","level":"info","msg":"loading bucket configuration","ts":"2021-11-22T16:41:53.39209367Z"}
{"caller":"compact.go:242","dedupReplicaLabels":"thanos_receive_replica","level":"info","msg":"deduplication.replica-label specified, enabling vertical compaction","ts":"2021-11-22T16:41:53.489805343Z"}
{"caller":"compact.go:247","compact.enable-vertical-compaction":"true","level":"info","msg":"vertical compaction is enabled","ts":"2021-11-22T16:41:53.489869944Z"}
{"caller":"compact.go:385","duration":"360h0m0s","level":"info","msg":"retention policy of raw samples is enabled","ts":"2021-11-22T16:41:53.490258748Z"}
{"caller":"compact.go:388","duration":"2160h0m0s","level":"info","msg":"retention policy of 5 min aggregated samples is enabled","ts":"2021-11-22T16:41:53.490302848Z"}
{"caller":"compact.go:391","duration":"4320h0m0s","level":"info","msg":"retention policy of 1 hour aggregated samples is enabled","ts":"2021-11-22T16:41:53.490323049Z"}
{"caller":"compact.go:559","level":"info","msg":"starting compact node","ts":"2021-11-22T16:41:53.491754764Z"}
{"caller":"intrumentation.go:48","level":"info","msg":"changing probe status","status":"ready","ts":"2021-11-22T16:41:53.491793665Z"}
{"caller":"compact.go:999","level":"info","msg":"start sync of metas","ts":"2021-11-22T16:41:53.491933766Z"}
{"caller":"intrumentation.go:60","level":"info","msg":"changing probe status","status":"healthy","ts":"2021-11-22T16:41:53.492046468Z"}
{"address":"0.0.0.0:10902","caller":"http.go:63","component":"compact","level":"info","msg":"listening for requests and metrics","service":"http/server","ts":"2021-11-22T16:41:53.492063368Z"}
{"caller":"log.go:168","component":"compact","http2":false,"level":"info","msg":"TLS is disabled.","service":"http/server","ts":"2021-11-22T16:41:53.492380471Z"}
{"cached":1029,"caller":"fetcher.go:476","component":"block.BaseFetcher","duration":"27.932945864s","duration_ms":27932,"level":"info","msg":"successfully synchronized block metadata","partial":0,"returned":1029,"ts":"2021-11-22T16:42:21.425397736Z"}
{"cached":1029,"caller":"fetcher.go:476","component":"block.BaseFetcher","duration":"34.675992609s","duration_ms":34675,"level":"info","msg":"successfully synchronized block metadata","partial":0,"returned":46,"ts":"2021-11-22T16:42:28.167967776Z"}
{"caller":"clean.go:33","level":"info","msg":"started cleaning of aborted partial uploads","ts":"2021-11-22T16:42:28.171171912Z"}
{"caller":"clean.go:60","level":"info","msg":"cleaning of aborted partial uploads done","ts":"2021-11-22T16:42:28.171235613Z"}
{"caller":"blocks_cleaner.go:43","level":"info","msg":"started cleaning of blocks marked for deletion","ts":"2021-11-22T16:42:28.171251713Z"}
{"caller":"blocks_cleaner.go:57","level":"info","msg":"cleaning of blocks marked for deletion done","ts":"2021-11-22T16:42:28.171305513Z"}
{"cached":1029,"caller":"fetcher.go:476","component":"block.BaseFetcher","duration":"10.384440238s","duration_ms":10384,"level":"info","msg":"successfully synchronized block metadata","partial":0,"returned":1029,"ts":"2021-11-22T16:42:31.8301932Z"}
{"cached":1029,"caller":"fetcher.go:476","component":"block.BaseFetcher","duration":"7.263413096s","duration_ms":7263,"level":"info","msg":"successfully synchronized block metadata","partial":0,"returned":46,"ts":"2021-11-22T16:42:35.43473801Z"}
{"caller":"compact.go:1004","level":"info","msg":"start of GC","ts":"2021-11-22T16:42:35.438271549Z"}
{"caller":"compact.go:1027","level":"info","msg":"start of compactions","ts":"2021-11-22T16:42:35.438696854Z"}
{"caller":"compact.go:1059","level":"info","msg":"compaction iterations done","ts":"2021-11-22T16:42:35.43921746Z"}
{"caller":"compact.go:423","level":"info","msg":"start first pass of downsampling","ts":"2021-11-22T16:42:35.439278361Z"}
{"cached":1029,"caller":"fetcher.go:476","component":"block.BaseFetcher","duration":"11.34039438s","duration_ms":11340,"level":"info","msg":"successfully synchronized block metadata","partial":0,"returned":46,"ts":"2021-11-22T16:42:46.779696341Z"}
{"cached":1030,"caller":"fetcher.go:476","component":"block.BaseFetcher","duration":"7.545503296s","duration_ms":7545,"level":"info","msg":"successfully synchronized block metadata","partial":0,"returned":1030,"ts":"2021-11-22T16:43:28.992014034Z"}
{"caller":"downsample.go:335","duration":"59.36744997s","duration_ms":59367,"id":"01FKGKPPMDT9CSFTTC1YR1JHB2","level":"info","msg":"downloaded block","ts":"2021-11-22T16:43:46.154009687Z"}
{"caller":"streamed_block_writer.go:176","level":"info","maxt":1630540800000,"mint":1629331200008,"msg":"finalized downsampled block","resolution":3600000,"ts":"2021-11-22T16:43:49.309490801Z","ulid":"01FN48GEFX70BDY5HSPTZKW289"}
{"caller":"intrumentation.go:54","level":"warn","msg":"changing probe status","reason":"error executing compaction: first pass of downsampling failed: downsample bucket: downsampling to 60 min: downsample block 01FKGKPPMDT9CSFTTC1YR1JHB2 to window 3600000: downsample aggregate block, series: 72045: invalid size","status":"not-ready","ts":"2021-11-22T16:43:49.313760947Z"}
{"caller":"http.go:74","component":"compact","err":"error executing compaction: first pass of downsampling failed: downsample bucket: downsampling to 60 min: downsample block 01FKGKPPMDT9CSFTTC1YR1JHB2 to window 3600000: downsample aggregate block, series: 72045: invalid size","level":"info","msg":"internal server is shutting down","service":"http/server","ts":"2021-11-22T16:43:49.313871349Z"}
{"caller":"http.go:93","component":"compact","err":"error executing compaction: first pass of downsampling failed: downsample bucket: downsampling to 60 min: downsample block 01FKGKPPMDT9CSFTTC1YR1JHB2 to window 3600000: downsample aggregate block, series: 72045: invalid size","level":"info","msg":"internal server is shutdown gracefully","service":"http/server","ts":"2021-11-22T16:43:49.315077762Z"}
{"caller":"intrumentation.go:66","level":"info","msg":"changing probe status","reason":"error executing compaction: first pass of downsampling failed: downsample bucket: downsampling to 60 min: downsample block 01FKGKPPMDT9CSFTTC1YR1JHB2 to window 3600000: downsample aggregate block, series: 72045: invalid size","status":"not-healthy","ts":"2021-11-22T16:43:49.315151863Z"}
{"caller":"main.go:157","err":"downsample aggregate block, series: 72045: invalid size\ndownsample block 01FKGKPPMDT9CSFTTC1YR1JHB2 to window 3600000\nmain.processDownsampling\n\t/app/cmd/thanos/downsample.go:358\nmain.downsampleBucket.func3\n\t/app/cmd/thanos/downsample.go:246\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\ndownsampling to 60 min\nmain.downsampleBucket.func3\n\t/app/cmd/thanos/downsample.go:248\ngolang.org/x/sync/errgroup.(*Group).Go.func1\n\t/go/pkg/mod/golang.org/x/sync@v0.0.0-20210220032951-036812b2e83c/errgroup/errgroup.go:57\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\ndownsample bucket\nmain.downsampleBucket\n\t/app/cmd/thanos/downsample.go:313\nmain.runCompact.func7\n\t/app/cmd/thanos/compact.go:433\nmain.runCompact.func8.1\n\t/app/cmd/thanos/compact.go:470\ngithub.com/thanos-io/thanos/pkg/runutil.Repeat\n\t/app/pkg/runutil/runutil.go:75\nmain.runCompact.func8\n\t/app/cmd/thanos/compact.go:469\ngithub.com/oklog/run.(*Group).Run.func1\n\t/go/pkg/mod/github.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\nfirst pass of downsampling failed\nmain.runCompact.func7\n\t/app/cmd/thanos/compact.go:434\nmain.runCompact.func8.1\n\t/app/cmd/thanos/compact.go:470\ngithub.com/thanos-io/thanos/pkg/runutil.Repeat\n\t/app/pkg/runutil/runutil.go:75\nmain.runCompact.func8\n\t/app/cmd/thanos/compact.go:469\ngithub.com/oklog/run.(*Group).Run.func1\n\t/go/pkg/mod/github.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\nerror executing compaction\nmain.runCompact.func8.1\n\t/app/cmd/thanos/compact.go:497\ngithub.com/thanos-io/thanos/pkg/runutil.Repeat\n\t/app/pkg/runutil/runutil.go:75\nmain.runCompact.func8\n\t/app/cmd/thanos/compact.go:469\ngithub.com/oklog/run.(*Group).Run.func1\n\t/go/pkg/mod/github.com/oklog/run@v1.1.0/group.go:38\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371\ncompact command failed\nmain.main\n\t/app/cmd/thanos/main.go:157\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225\nruntime.goexit\n\t/usr/local/go/src/runtime/asm_amd64.s:1371","level":"error","ts":"2021-11-22T16:43:49.315413166Z"}

Anything else we need to know:

Thanos compactor flags:

compact
--log.level=info
--log.format=json
--http-address=0.0.0.0:10902
--data-dir=/data
--retention.resolution-raw=15d
--retention.resolution-5m=90d
--retention.resolution-1h=180d
--consistency-delay=30m
--objstore.config-file=/conf/objstore.yml
--compact.concurrency=2
--compact.enable-vertical-compaction
--deduplication.replica-label=thanos_receive_replica
--downsample.concurrency=2
--selector.relabel-config-file=/tmp/relabel.yml
--wait

Thanos compactor relabelling:

    - action: keep
      regex: "true"
      source_labels:
      - receive

Thanos Receive flags:

receive
--log.level=info
--log.format=json
--grpc-address=0.0.0.0:10901
--http-address=0.0.0.0:10902
--remote-write.address=0.0.0.0:19291
--receive.replication-factor=3
--objstore.config=$(OBJSTORE_CONFIG)
--tsdb.path=/var/thanos/receive
--label=replica="$(NAME)"
--label=receive="true"
--tsdb.retention=2d
--receive.local-endpoint=$(NAME).thanos-receive-receive-headless.$(NAMESPACE).svc.cluster.local:10901
--receive.hashrings-file=/var/lib/thanos-receive/hashrings.json
--tsdb.allow-overlapping-blocks

We discovered a mishap in our Thanos Receive configuration where the external label thanos_receive_replica was removed from our deployment.
We are fixing this by restoring --label=thanos_receive_replica="$(NAME)" though I have no clue wether or not this is link to the issue we see in our Compactors.
My understanding is that our blocks were not vertically compacted due to this missing external label but in any case they should have been downsampled properly.

Here is a link to a block that crashes during downsampling: https://drive.google.com/drive/folders/1ZCVoHE_ry5suZ18AQTOlWEhvm-ADyteH?usp=sharing

The timestamp of this block tells us that it was created before we deployed a dedicated Thanos compactor for receive blocks.
At the moment of its creation it was the result of vertical compaction of receive blocks through a Compactor configured to use the penalty algorithm.
I originally assumed that even if blocks from Thanos Receive were supposed to benefit from the one-to-one vertical compaction algorithm, penalty would not hurt either.
Now I'm starting to suspect that this is the root cause of our downsampling failures.

We haven't got this issue since we deployed a dedicated Thanos Compactor for receive blocks with the one-to-one dedup algo.
So I suppose this error was due to the usage of penalty algo on Thanos receive blocks, or maybe another configuration issue from our side.
No need to keep this item opened I guess :)

repo: thanos-io/thanos


text:
Removed Querier duplicate labels checks & made sure store will be not blocked for older Queriers.

Current idea is to remove duplication for now as it's tricky to make it right and we aim to unblock v0.8.0. Ticket to consider it back: https://github.com/thanos-io/thanos/issues/1635
Changes:

Cleaned up the code a bit.
Ensured proper locks.
thanos_store_nodes_grpc_connections is not per store type and external labels. thanos_store_node_info is marked as deprecated.
Added (optional, but enabled by default) compatibility label to store GW Info method (@thanos_compatibility_store_type" = "store". ) with flag to disable it. Store only adds it if there is any labelset to advertise.
Disabled any strict deduplication in external labels detection; just warning!
More tests; compatibility tests for query pre 0.8.0 and new store GW.
Remove compatibility label if spotted.

Fixes https://github.com/thanos-io/thanos/issues/1632
Signed-off-by: Bartek Plotka bwplotka@gmail.com

Seems reasonable for the time being. :+1:

This should work. PTAL @metalmatze @brancz @GiedriusS @povilasv if you have time. It is quite big ):
I build quay.io/thanos/thanos:v0.8.1-test-d042b5b image with this.

authors: bwplotka metalmatze


text:
Server not working proporly

Credentials 'yahoo' not working proporly. Form not sent

Credentials done using zoho mail, all working fine now.

Credentials done using zoho mail, all working fine now.

repo: thaymacdolw/my-portfolio


text:
Add oauth-v2 flow to allow installation of Slack apps

https://api.slack.com/authentication/oauth-v2

Resolved in #8


text:
Open Browse very slow only 3k rows

Laravel Version: 5.4
Voyager Version: 0.11.8
PHP Version:
Database Driver & Version:mysql

Description:
When I open browse a 3k table, need more then 1 minute. If I use Server-side Pagination = on, then very fast.
I test 2, 300 rows,it is ok.
Hardware and MySql are very fast.
Steps To Reproduce:

I'm Sorry, is there an issue or question here? Sounds like it's functioning exactly as expected

I think if open a page need more then 1 minute, this function is unacceptable, so I must be use Server-side Pagination = on, but use Server-side Pagination, not search function.
is it possible use Server-side Pagination, and have search function?

Probably dataTables not working with loading data by Server Side loading so all 3k rows is loaded, with server side pagination just only as many rows is load as you set how much items should be loaded with pagination.

@jun283 Search is not implemented with server side pagination, I also miss that feature :(
See PR #937.

repo: the-control-group/voyager

license: mit


text:
建议

建议添加“将应用或证书拖拽到这里以屏蔽”功能

不能向管理员权限运行的程序里拖文件


text:
Unit Tests

It's time to start adding unit tests. And they should be buildable by doing:
python setup.py test

Unit Tests for the GUI portions of this code base are problematic. They would be better served with system tests. But that would be a waste for most users. Sadly, much of the project is GUI-related.

repo: theJollySin/pytextgame


text:
Standardize featured_image logic

Updates the site-header partial's featured_image logic to call the GetFeaturedImage partial so that it's consistent with the homepage and the page-header partial.
Closes #473

Just noticed #467, which would ultimately supersede this once implemented

Ready for review @regisphilibert

repo: theNewDynamic/gohugo-theme-ananke


text:
Sergio Perez's last lap (Missing last inlap)

Sorry I have an issue when I try to access to Checo's last lap of Q3 in Mexico( the one that he went on the grass because of Tsunoda). I think it is because he didn't complete the lap as he went into the pits after the mistake. If I'm not wrong there is a way to access to it isn't it?
Thanks

Fixed it, will be in the next release. You can install directly from master for now to test it
pip install --upgrade --no-deps --force-reinstall git+https://github.com/theOehrly/Fast-F1.git
or you could use the 'manual' way, similar to what's described here: #41

Thanks! I have done it manually and now I can see the telemetry correctly. However, is there any way to get position data of that inlap, instead of the car data telemetry?
I mean, to plot the Speed vs Distance, instead of Speed vs Time

I think you are looking for this
https://theoehrly.github.io/Fast-F1/core.html#fastf1.core.Telemetry.add_distance
for example
car_data_per = car_data_per.add_distance()

Thanks! That's what I was looking for. However, to get the XYZ coordenates of the lap,  do I need to use  the fastf1.api.position_data function?

Apart from Session.car_data there's also Session.pos_data which should give you the data you want. Slicing is the same then.
You can use Telemetry.merge_channels to combine the two if necessary.


text:
Autowire in Symfony in prefetchMethod is failing

I'm trying to autowire a service in a prefetchMethod in Symfony.
    /**
     * @Field(prefetchMethod="prefetchProducts")
     * @return Product[]
     */
    public function getProducts($sortedProducts)
    {
        return $sortedProducts[$this->getId()];
    }

    /**
     * @param Company[] $companies
     * @Autowire(for="$productRepository")
     * @return array<int, array<Product>>
     */
    public function prefetchProducts(iterable $companies, ProductRepository $productRepository)
    {
        $products = $productRepository->findByCompanies($companies);

        $sortedProducts = [];
        foreach ($products as $product) {
            $sortedProducts[$product->getId()][] = $product;
        }

        return $sortedProducts;
    }

I get this:
{
  "type": "https://tools.ietf.org/html/rfc2616#section-10",
  "title": "An error occurred",
  "status": 500,
  "detail": "The \"App\\Repository\\ProductRepository\" service or alias has been removed or inlined when the container was compiled. You should either make it public, or stop using the container directly and use dependency injection instead.",
  "class": "Symfony\\Component\\DependencyInjection\\Exception\\ServiceNotFoundException",

I have same issue

authors: darkiron moufmouf

repo: thecodingmachine/graphqlite


text:
Fix double ASN issue

Some IP addresses when fed into the GreenDomainChecker, return two possible ASNs.
This is totally possible under BGP, but our system assumes this isn't the case.
It causes 500 errors, so we should account for when there are two cases.
For the purposes of our checks, we'd need to account for so we check both ASNs, so here:

def check_for_matching_asn(self, ip_address):
        """
        Return the Green ASN that this IP address 'belongs' to.
        """
        from .models import GreencheckASN

        try:
            asn = self.asn_from_ip(ip_address)
        except IPDefinedError:
            return False
        except Exception as err:
            logger.exception(err)
            return False
        return GreencheckASN.objects.filter(asn=asn).first()

We would change it to expect one or two values to be returned.
From the logs, checking against www.applecapitalgroup.com seems to have returned two ASNs, at least as of today.

Closed by #125

repo: thegreenwebfoundation/admin-portal


text:
ModuleNotFoundError: No module named 'louvain'

Getting the following error with the latest version of scanpy:
ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-24-7f6e74b434f4> in <module>
----> 1 sc.tl.louvain(adata, resolution=0.2, key_added='louvain_r0.2', random_state=10)
      2 sc.tl.louvain(adata, resolution=0.1, key_added='louvain_r0.1', random_state=10)

~/xconda/newconda/envs/cpumode/lib/python3.6/site-packages/scanpy/tools/_louvain.py in louvain(adata, resolution, random_state, restrict_to, key_added, adjacency, flavor, directed, use_weights, partition_type, partition_kwargs, neighbors_key, obsp, copy)
    135             weights = None
    136         if flavor == 'vtraag':
--> 137             import louvain
    138             if partition_type is None:
    139                 partition_type = louvain.RBConfigurationVertexPartition

ModuleNotFoundError: No module named 'louvain'

Install it, it’s an optional dependency.

authors: flying-sheep sheetalgiri

repo: theislab/scanpy


text:
More detailed training logs

Hi,
Would it be possible to update the logs to state the use of CPU or GPU. I can see that you have a GPU check within the trainer, but it does not tell the user which is being used. For me, I had assumed the model was just much slower than the other models within scArches, but then realised that my cuda was not being detected. Even though I now have ensured my torch is detecting cuda, I still have no idea if the trainer is using the gpu.
This could be a major source of headache for people on different institutional HPC set ups
Many thanks

Hi, this has been added now for all models in PR #221. Thanks for the recommendation!

Amazing! thank you!

repo: theislab/scarches


text:
Unintegrated metrics

Fixed snakemake structure to allow for running metrics on unintegrated data.

The unintegrated adata was preprocessed with runPP.py prior to metric computation. This was not the case before.
unintegrated metrics are done for each scaling, feature subset and scenario
unintegrated metrics files separated from integrated metrics files  {scenario}/metrics_unintegrated/
unintegrated metrics are added to the final metrics.csv file

This was still WIP, right @mumichae ?

authors: LuckyMD mumichae

repo: theislab/scib


text:
Project Initialization

Description:
Set up the hawak-kamay repository on GitHub. Include a README, .gitignore file (Node.js or Python), and MIT License.
Acceptance Criteria:

Repository is created and public.
README includes a brief project description.
.gitignore is properly configured.

README.md was updated and now contains brief description about the project. Check this commit.

repo: thejdsoto/hawak-kamay


text:
Ignore

Ignore ... opened in error.

Okay

authors: Selver-gba thejsa

repo: thejsa/tinytot


text:
Update strings.xml

To match new strings in Italian

These are new strings for new features. They are missing from other languages.

I translated them in Italian

Sorry, my bad. Merging

authors: shmykelsa thekirankumar

repo: thekirankumar/carstream-android-auto


text:
USB support

It's not an issue but it would be cool to have an option to use bluetooth or usb-serial. I saw your Steering-Wheel-Interface project, but it looks like you will not support it any more.

no immediate plans for this myself, but maybe someone else will tackle the ehancement

I'd be interested in helping to add this feature, but I'm only a intermediate programmer. @theksmith care to give some guidance where to start? I was thinking to use some of your code from Steering-Wheel-Interface project. Any idea for problems I'd run into right away?

sorry for the late reply!
the biggest issue is that the BT code is pretty tightly integrated. so in order to keep things clean we'd want to refactor a lot of my overall design and abstract out the hardware/protocol layer related code (then have 2+ implementations - one for BT, one for USB, and maybe even one for BLE).
just hacking in USB support would be pretty quick. in fact it would probably be easier to take a sample USB serial project and add in the stuff from here for the ELM interface if you just wanted to get something working.

authors: dipcore smellykid101 theksmith

repo: theksmith/CarBusInterface


text:
Wyze v3 on UCTRONICS adapter connection issues

I have a couple of wyze v3 with thingino. I am using the UCTRONICs poe adapter for power and data.
They are all connected to a poe switch with a budget of 64w. There is no usb OTG cables in between. If they are all started at the same time, they work for roughly 4 to 5 hours then they start losing connection.
I can’t figure out why they would work for hours then start dropping off network.
The poe adapter still shows active on the router
How do I troubleshoot this issue please?
I would like to know what log to read right before the camera lost connection if possible.

there are three major loggers in thingino accessible via dmesg, logread, logcat

Make sure your POE switch actually puts out 64w in the budget... I've had some generic switches that can not sustain the claimed power output for long.

Thank you both. The switch I have is tp-link LS108GP
It's a decent unmanaged poe switch.
I am leaning towards giving up on the poe option altogether and just using wifi. Picture Quality gonna be reduced but it's better than nothing.
With the adapters, there is too many points of failure and since I am planing on setting these v3s through the attic, I rather have something that just works.
Thanks guys for your suggestions.

moving this to discussions for visibility

authors: gtxaspec themactep tismofied

repo: themactep/thingino-firmware


text:
new Galayou Y4 Variant   T31L, SC2336, ATBM6012BX, 8MB

Galayou Y4
Add new Cameramodel/Variant
Galayou Y4 with
HW:
-T31L
-SC2336
-ATBM6012BX
-8MB
I did all the testings I could do.
Works fine since 10 days for now.

This is my first Pullrequest!
Hope I did it the right way!

merged thanks!

Hi @gtxaspec @tobs1895 how do i flash the fw to Galayou 4k?

authors: devdems gtxaspec tobs1895


text:
🛑 Matters (IPFS) is down

In 108b323, Matters (IPFS) (https://ipfs.io/ipfs/QmNXVLMMLEq8XHtErBh3NFBetGt29wD7V2aXDp29Q4Lo4C) was down:

HTTP code: 429
Response time: 25 ms

Resolved: Matters (IPFS) is back up in b0a89b8.

repo: thematters/uptime


text:
Build failing

Describe the bug
While trying to build the project, it fails due typescript interfaces mismatch.
To Reproduce
Steps to reproduce the behavior:
1 - Clone the repo
2 - Try to run yarn build or yarn build:storybook
3 - Report from terminal: Interface 'FloatingProps' incorrectly extends interface 'PropsWithChildren<Omit<DetailedHTMLProps<HTMLAttributes, HTMLDivElement>, "style">>'.
Type 'FloatingProps' is not assignable to type 'Omit<DetailedHTMLProps<HTMLAttributes, HTMLDivElement>, "style">'.
Types of property 'content' are incompatible.
Type 'ReactNode' is not assignable to type 'string | undefined'.
Type 'null' is not assignable to type 'string | undefined'.
Expected behavior
The project to be built correctly without any errors.
Screenshots
If applicable, add screenshots to help explain your problem.

System information:

Device: Macbook Pro M1
Resolution:
OS: MacOS Ventura
Browser:
Version:

Project information:

Tailwind: ^3.2.7
Flowbite: ^1.6.3
Flowbite React: 0.4.4
Type: Flowbite-react own project

Additional context
Add any other context about the problem here.

Hey @rluders @tulup-conner  check this out.

I'm using MacOS as well. No issue to compile the project, also CI isn't failing to compete.
➜ node -v
v19.2.0

@rluders thank you! I removed node_modules and reinstalled it. Seems to be fine. Sorry about that. Gonna close the issue.

authors: IuriPires rluders

repo: themesberg/flowbite-react


text:
Errata: typo in fill-gt-gu, frame 388:48

In the print version of The Little Learner, the last line of fill-gt-gu references a variable called g but there's no variable g in the scope. I think the g was instead supposed to be init.

Thank you for the report. Yes, you are absolutely right. We will update the erratum. The code inside malt, however is correct.

authors: rigdern themetaschemer

repo: themetaschemer/malt


text:
🛑 Docs is down

In 83be38b, Docs (https://docs.themonetizr.com) was down:

HTTP code: 500
Response time: 413 ms

Resolved: Docs is back up in 94890f5 after 7 minutes.

repo: themonetizr/upptime


text:
Add coverage to Codecov

Adds coverage to ladder
Publish coverage report on every build
Add Codecov badge

closes #7

Codecov Report

Merging #8 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master       #8   +/-   ##
=======================================
  Coverage   73.12%   73.12%
=======================================
  Files          37       37
  Lines        2259     2259
=======================================
  Hits         1652     1652
  Misses        489      489
  Partials      118      118

Continue to review full report at Codecov.

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

authors: codecov-io slok

repo: themotion/ladder


text:
Feature/108343 asset allocation page

Add an extension method to find a bound blocklistitem in a published request

To be clear, and consistent with the existing implementation, this method should be called FindBlockByBoundProperty.


text:
User management and the non-admin user experience

Users would login to upload their submission. They wouldn't have to enter their email address, because it would already be linked to the account they logged in with. They would also have a role that says that they're a member of the group and can see the new "assignments" for that group. They would also be able to click on an "assignment," see the list of all users who have already submitted, and submit a new track.
Once the assignment due date has passed, they would be able to view the playlist, or they could always view and play past playlists. Users could also edit their profile information and for instance change their alias or contact info or bio/links, and view other users' profiles (this would replace the current spreadsheet). A user who has signed up but is not a member (either they haven't been added to the group yet or they've been removed by missing a deadline) would still be able to login and view and edit their own profile, but they wouldn't be able see any of the group activity....except maybe they could see the existence of the group and request to join. Most of the functionality needed for this is already in place, but some effort is needed to finalize memberships and build out the rest of the basic user and member views.

closed with #37 and subsequent fixes

repo: thephilgray/mew-app


text:
Problem with UTF-8 BOM on csv Reader

Issue summary
When reading a simple csv (utf-8 with bom), a character 194 (Â) is appended to each string.
Delimiter: »(Char: 187)
System informations
(In case of a bug report Please complete the table below)

Information
Description

League\Csv version
9.1.4

PHP/HHVM version
7.2.5

OS Platform
Windows Server

Standalone code, or other way to reproduce the problem

$csvData = Reader::createFromPath(PATH);
$csvData->setDelimiter(chr(187));
$csvData->setHeaderOffset(0);
$csvData->getHeader());

Expected result
Header without additional Characters
Actual result

@jagDanJu Are you sure your CSV is an correctly UTF-8 encoded ? The fact that the library remove the BOM sequence does not mean that it also convert back the CSV content to UTF-8 you must still do it manually. Here's a simple example of how to do it.
Of course your CSV must supports stream filters.
use League\Csv\CharsetConverter;
use League\Csv\Reader;

function csv_to_utf8(Reader $reader)
{
    if (!$reader->supportsStreamFilter()) {
        return $reader;
    }

    $input_bom = $reader ->getInputBOM(); //returns the BOM sequence if any
    if (in_array($input_bom, [Reader::BOM_UTF16_LE, Reader::BOM_UTF16_BE], true)) {
        return CharsetConverter::addTo($reader, 'utf-16', 'utf-8');
        //return $reader->addStreamFilter('convert.iconv.UTF-16/UTF-8'); //if iconv extension is installed
    }

    if (in_array($input_bom, [Reader::BOM_UTF32_LE, Reader::BOM_UTF32_BE], true)) {
        return CharsetConverter::addTo($reader, 'utf-32', 'utf-8');
        //return $reader->addStreamFilter('convert.iconv.UTF-32/UTF-8'); // if iconv extension is installed
    }

    return $reader;
}

$csvData = Reader::createFromPath($path);
csv_to_utf8($csvData);
$csvData->getHeaders();

@nyamsprod I am not completely sure that the file is correctly UTF-8 encoded. The file ist from an external source..
Anyway, your function works pretty well.. Thanks Guy!

authors: jagDanJu nyamsprod

repo: thephpleague/csv


text:
Populate missing user fields in BitBucket provider

Title speaks for itself

Are those fields alway present in every request? (i.e., can the user can configure their account not to expose those fields?)

Thanks for the PR by the way :)
Just undertaking the due diligence required before merging in.

You're welcome :)
From the documentation, it seems that the fields would be empty when the value is not available (ie, last_name field is empty for field accounts): https://confluence.atlassian.com/display/BITBUCKET/user+Endpoint#userEndpoint-Overview
I just checked by clearing out my user profile and it confirms that the fields are present when not set (even when the profile is set to private).

Perfect! Thanks :)

authors: aztech-dev bencorlett


text:
I need help creating a section

I have this:
index.php:
<?php require 'vendor/autoload.php'; $plantillas = new League\Plates\Engine('views'); $plantillas->addFolder('public', 'views/public'); echo $plantillas->render('public::header'); echo $plantillas->section('contenido'); ?>
views/public/header.php:
`

Hola esta es la plantilla

Hola
start('contenido'); ?>
Welcome!
stop(); ?>`
I get the following error:
Fatal error: Uncaught Error: Call to undefined method League\Plates\Engine::section() in C:\xampp\htdocs\plate\index.php:6 Stack trace: #0 {main} thrown in C:\xampp\htdocs\plate\index.php on line 6
Please help!

@mateoagudelo are you still having issues with this?

Closing this for now. If you still need help @mateoagudelo, please feel free to continue the discussion here.

authors: mateoagudelo ragboyjr reinink

repo: thephpleague/plates


text:
Initial implementation

Implements #1. Not yet tested or really well thought about yet.
example memory.x changes:
BEFORE
MEMORY
{
  /* FLASH and RAM are mandatory memory regions */
  /* Update examples/data_overflow.rs if you change these sizes. */
  FLASH : ORIGIN = 0x00000000, LENGTH = 256K
  RAM : ORIGIN = 0x20000000, LENGTH = 64K
}

AFTER
MEMORY
{
  /* FLASH and RAM are mandatory memory regions */
  /* Update examples/data_overflow.rs if you change these sizes. */
  FLASH : ORIGIN = 0x00000000, LENGTH = 256K
  RAM : ORIGIN = 0x20000000, LENGTH = 63K
  PANDUMP: ORIGIN = 0x20010000, LENGTH = 1K
}

_panic_dump_start = ORIGIN(PANDUMP);
_panic_dump_end = ORIGIN(PANDUMP) + LENGTH(PANDUMP);

@korken89 implemented unaligned pointer methods.
@therealprof changed function signature to return a byte slice, added an optional utf8 feature which enables checked utf8 strings. In a totally non-scientific test, this feature seemed to add 1KiB to the code size. At opt-level=3:
Before (without utf8):
arm-none-eabi-size target/thumbv7em-none-eabihf/release/timer-uart
   text	   data	    bss	    dec	    hex	filename
  19714	   4136	      4	  23854	   5d2e	target/thumbv7em-none-eabihf/release/timer-uart

After (with utf8):
arm-none-eabi-size target/thumbv7em-none-eabihf/release/timer-uart
   text	   data	    bss	    dec	    hex	filename
  20714	   4136	      4	  24854	   6116	target/thumbv7em-none-eabihf/release/timer-uart

This was also tested on the nrf52832, specifically on this stream: https://youtu.be/KT6VnwuouPY.
This should be ready to merge, or if you don't want it here, I'll fork this and make another crate as-is.

@jamesmunns Considering that this implements a somewhat different idea and is not a drop-in compatible change I think it would make sense to have this in another crate. How about calling this panic-persist?

Will do!

authors: jamesmunns therealprof

repo: therealprof/panic-ramdump


text:
Output diff or expected/actual?

https://github.com/theupdateframework/tuf-conformance/blob/main/tuf_conformance/client_runner.py#L142 is a somewhat difficult error message to act on.
A more helpful failure might be output expected vs actual. We know metadata is serialized as a string in these tests. If it's too much to output to the screen then write it to a results file and upload it as an asset on the job? or like a deepdiff or something?

Hmm, there might be two issues here:

first, for some reason pytests verbose asserts don't seem to happen here fro some reason... They really should. Maybe asserting outside of the actual test function (like here in ClientRunner) is handled differently?
second, maybe we should compare serialized bytes so pytest asserts are more helpful

Aha:

asserts in supporting modules which are not themselves test modules will not be rewritten.
You can manually enable assertion rewriting for an imported module by calling register_assert_rewrite before you
import it (a good place to do that is in your root conftest.py).

If it's too much to output to the screen then write it to a results file and upload it as an asset on the job

I can increase default verbosity or make verbosity configurable if that's still needed, please file a new issue if current setup is not useful yet

I think this doesn't matter much, now that I figured out the local experience, which is sufficient to debug the problem for me.

authors: jku loosebazooka

repo: theupdateframework/tuf-conformance


text:
Using variables in answers of a question does not work as expected if Glossary is enabled

See https://xotbeta.dlearning.nl/play.php?template_id=114#page3 (which is working) and https://xotbeta.dlearning.nl/play.php?template_id=114#page4 (which is a copy).
On page3 Glossary is disabled, on Page 4 is enabled.
What is used is something like thsi:
[BWM1A] %
or
€ [BWM1A]
If Glossary is enabled, the % disaapears or the number dissapears (only € is left)

Think that is it fixed @torinfo, you can now even add glossary terms into the questions and they appear to work correctly.

authors: JohnSmith-LT torinfo

repo: thexerteproject/xerteonlinetoolkits


text:
Remove unused dart:async import

Since Dart 2.1, Future and Stream have been exported from dart:core

Ping @lukef

Thanks for the PR but we're going to decline to merge. Appreciate the efforts.

authors: MichaelRFairhurst lukepighetti


text:
[hiccup-markdown] resolve interaction of inline formats and newlines

Hi @postspectacular
I'm smashing my head against this and I'm sure there's a simple explanation or I'm just doing something dumb, but...
In your hiccup-markdown example, I'm trying to recreate it, but when I try to use a file string read via fs.readFileSync call (with utf8 encoding) the result is an empty [] rather than a hiccup tree:
const blog = readFileSync('./assets/blog.md', 'utf8')
console.log([...iterator(parse(), blog)]) //? -> []

It works perfectly (both in console and rendered in hiccup within hdom start()) if the string is stored as a standard var/let/const. but not when I try to load it in as a file. I can't figure out what I'm doing wrong. When I print/log/return the variable wherein I store the result of readFileSync - the markdown is printed. I just can't figure out why the iterator isn't parsing it...
Why? I'm trying to figure out how best to script this up so that I can dynamically load static markdown files (e.g., from assets/) as plain strings that can be used by iterator.
I also tried to use your Parcel setup:
    "scripts": {
... // is this (--global md) where the magic happens:?
        "build-parser": "yarn clean && parcel build src/parser.ts -d out --global md --public-url ./ --no-source-maps --no-cache --experimental-scope-hoisting --detailed-report --experimental-scope-hoisting",
...
    },

...but I noticed you .gitignored the *.js files
I'm stuck.
Two questions:

is there a better way than using readFile from node with Parcel to turn the file string into an iterable that can be consumed by iterator?
Should I forgo HDOM's start() in favor of transducers-hdom? I recall you mentioning you prefer using streams rather than RAF/interceptors. It would help me if you have some guidance as what the pros/cons are for the various approaches

Hmm.. not sure what's going on here. I just tried this myself (in the node REPL) and it seems to work:
// md-debug.js
const md = require("@thi.ng/hiccup-markdown");
const tx = require("@thi.ng/transducers");
const fs = require("fs");

const src = fs.readFileSync("examples/markdown/README.md", "utf8");
console.log([...tx.iterator(md.parse(), src)]);

node md-debug.js
[
  [ 'h1', ' Minimal Markdown parser ' ],
  [
    'p',
    'This project is part of the ',
    [ 'a', [Object], '@thi.ng/umbrella' ],
    ' monorepo. '
  ],
  [ 'h2', ' About ' ],
  [
    'p',
    'This example is a test environment for the new & minimal ',
    [ 'a', [Object], 'Markdown' ],
    ' parser & converter to ',
    [ 'a', [Object], 'hiccup' ],
    ' format from the ',
    [ 'a', [Object], '@thi.ng/hiccup-markdown' ],
    ' package. '
  ],
 ...
]

I'm somewhat confused how you'd use fs.readFileSync() with Parcel, but at the same time are asking in the context of hdom, so i'm assuming this is in the browser, yes? Could you please post your example (e.g. a gist)?
As for that --global md - I've got no idea what I was thinking there, must be some left over remains of some experiment... 99% sure this isn't used or relevant here
And re: start() vs updateDOM() - recently I've been largely using the latter, but its use is not precluding interceptors/atoms and in fact I found it useful to compartmentalize different parts of state updates and the resulting transformations (derived view creations). So still using an atom as single source of truth, interceptors for event processing and triggering atom updates, then rstream pipelines attached to different branches of the atom's state value to drive transformations and eventually update the UI (but only do so when needed)...

Hi @loganpowell
I use this code in runjs:
import fs from 'fs'
import {iterator} from '@thi.ng/transducers'
import { parse } from "@thi.ng/hiccup-markdown";

const blog = fs.readFileSync('/tmp/foo.md', 'utf8')
console.log(blog)
console.log([...iterator(parse(), blog)])

where content of /tmp/foo.md is:
# title

body```

and my output is correct:

[ [ 'h1', ' title ' ] ]

So seems there are no problem here

(@postspectacular did the answer first ;)

@nkint you win, i got side tracked... :)

Could it be that Parcel is transforming referenced .md files as part of the bundling process? I just look at the example again and there I'm importing README.txt (not README.md). Could be the reason, but can't check right now...

🤔 I have no idea why this isn't working for me. Yes, I'm using Parcel and doing this in the browser, just used the console example to keep it short. In the browser, it's not rendering anything (not even an empty div or anything).
As for why readFile, Parcel will actually use these to parse and instantiate the file via given calls.
Let me see if I can change up the dev env a bit. That looks like it may be the issue. Thank you both so much for looking into this for me. At least I know it's supposed to work!

Hi @loganpowell I don't know how parcel handle this but honestly IMHO is not the best idea ever to use filesystem functions in the browser even if a specific version of the bundler can handle it...
Some different thought if you're building server-side-rendering app or if you're treating them as static asset but in that case parcel can handle differently without the need of fs node module at all, I think.

@nkint I totally agree with you. I was just trying to get started and hit a road block. I mean to look into a more robust static .md file handling solution with Parcel, I just wanted to see my md -> hiccup :). Might you have a resource for a better Parcel solution for this?

@loganpowell you can directly import asset files into your source and Parcel will resolve them for you as URL. Though, because MD assets are auto-transformed by Parcel (and I don't know how to disable this), I've resorted to renaming the .md file(s) to .txt and this then just works:
import readme from "../README.txt";

// readme's value is just a URL
fetch(readme).then((res) => res.text()).then(() => yadayada...)

To avoid the error highlight for that txt import, you can add a declaration file like this to the /src folder:
e.g. save as /src/assets.d.ts:
declare module "*.txt";
declare module "*.png";
declare module "*.jpg";

@postspectacular thank you for that. I am digging deeper into this and I made this example:
https://codesandbox.io/s/jovial-dew-6wpz9
it's not working for me here either 😢
What am I doing wrong?
I can create an even more slimmed down version if so desired...

Ok, I've narrowed it down a bit.
It seems that part of the issue is that - in Windows - in order to make it work, I have to use LF (\n) instead of CRLF (\r\n) and - for the most part - it works with this change. I can give this fix a go if you'd like as many teams just use carriage return as it's cross-platform (including codesandbox):
However, regardless of whether I use Carriage Return or regular Line Feed, I need to add a trailing empty new line to get the last group of markdown (characters/lines) to be parsed. See the interactive example below
https://codesandbox.io/s/confident-pike-ezhf4

That'd make sense, but bloody windows linefeeds! It's should be fine to just compose parse() with a pre-filter for \r chars:
[...tx.iterator(md.parse(), `# hi\r\n\r\nfoo\r\n\r\n`)]
// []

[...tx.iterator(tx.comp(tx.filter((x)=>x!=`\r`),md.parse()), `# hi\r\n\r\nfoo\r\n\r\n`)]
// [ [ 'h1', ' hi ' ], [ 'p', 'foo ' ] ]

But that should be done internally (by updating parse() itself) - i can/will do that...
That trailing extra line is currently required because the parser only processes one char at a time and is reading from an iterable, without knowledge of more inputs coming. And due to the way line breaks are interpreted in MD, it's not sufficient to just have a single line break at the end - a paragraph is only finished when reading 2 consecutive ones...
It's not hard though to invoke like this though:
src = "# hi\r\n\r\nthere...\r\n`

[...tx.iterator(tx.comp(tx.filter((x)=>x!=`\r`),md.parse()), src + "\n")]

Thank you sir! One more thing, for some reason the > character (blockquote) breaks the parser.

Everything now works as expected 🙏

Not sure if this is a bug, but - currently - I have to add 3x \n (newline) for two adjacent paragraphs to be split into separate ["p"...] components. E.g., :
This doesn't work:
Herz sich nennt erfreuet dunst tränen die. Den zauberhauch lispelnd lied gestalten gezeigt. Nun das ihr halbverklungnen besitze  steigen menge ihr der.

Besitze das gesänge die geisterreich mein die, nebel und herz früh was ihr wahn, hören sie das nach vom festzuhalten und stillen hören sich. Einer vom gleich.

this does:
Herz sich nennt erfreuet dunst tränen die. Den zauberhauch lispelnd lied gestalten gezeigt. Nun das ihr halbverklungnen besitze  steigen menge ihr der.

Besitze das gesänge die geisterreich mein die, nebel und herz früh was ihr wahn, hören sie das nach vom festzuhalten und stillen hören sich. Einer vom gleich.

Hi @loganpowell - off the top of my head I can't quite say if this is something which is related to the recent updates, but I can't replicate this issue in the latest develop version:
[...tx.iterator(m.parse(), `hello\n\nthere\n\n`)]
// [ [ 'p', 'hello ' ], [ 'p', 'there ' ] ]

[...tx.iterator(m.parse(), `hello\r\n\r\nthere\r\n\r\n`)]
// [ [ 'p', 'hello ' ], [ 'p', 'there ' ] ]

Thank you! It must be something on my end...

I think it breaks when you add an exclamation point to the end of a paragraph.
Try:
[...tx.iterator(m.parse(), `hello!\n\nthere\n\n`)]

example:
https://codesandbox.io/s/confident-pike-ezhf4

Thanks @loganpowell - this probably has to do with inline element/style parsing and the fact that ! is a partial match for ![ (image tag)... will take a deeper look! FWIW I was just about to release a bunch new updates (incl. the updates done to this package), but if this is something which isn't too obvious to fix tonight, then a fix for this new issue will probably only be coming later, since I don't want this to hold off everything else...

No worries at all. I'm actually amazed with what you've done using a transducer. Finite state machine as an xform, was that your idea?

I've done some more testing and can confirm that the issue has to do with an interaction with partially matched inline format symbols. I've updated the readme to link to this issue, but the fix is more involved and so will only be part of a future release...
@loganpowell - that's exactly right. The FSM transducer is essentially a collection of user provided transformation functions of which always only one will be active and which delegate to responsibility to each other based on incoming input values. For each input, the transducer might do any combination of:

consume input
trigger internal state change
produce a transformed result for external downstream processing

Parsing is just one example of this, but my initial impetus for this was event processing (as yet another alternative to explore in addition to interceptors etc.)

Parsing is just one example of this, but my initial impetus for this was event processing (as yet another alternative to explore in addition to interceptors etc.)

Indeed I can see the potential for this!

Closing. Parser was completely rewritten for v3.0.0

authors: loganpowell nkint postspectacular

repo: thi-ng/umbrella


text:
How to enumerate nodes?

I want to execute some code for each node in the tree. What would be the best way to achieve this?
Current, I'm using the following code:
var node = $scope.my_tree.get_first_node();
while (node) {
    if (node.CurrentState !== 1) {
        $scope.my_tree.expand_node(node);
    }
    node = $scope.my_tree.get_next_node(node);
}

But this will recurse endlessly until the browser throws a stack trace error somewhere in the get_closest_ancestor_next_sibling function.

Never mind, just found the bug and fixed it. I created a pull request (my very first ever, actually!)

Fixed


text:
Ability to get FontAwesome enum name from CSS code

As example usage, for making UIImage, knowing only CSS name:
let code = product.icon ?? "cube"
let faIcon = FontAwesome.fromCode("fa-\(code)") ?? .Cube

cell.imageView?.image = UIImage.fontAwesomeIconWithName(faIcon, textColor: color, size: size)

Thanks!

authors: thii xslim


text:
Changed API END POINT

Once Thingboard is initialization after that how can we reinitilization or changes the API end point

Hello @VPATEL007,
Currently, we can't behave like you're asking for. Only by modifying the following field:
abstract class ThingsboardAppConstants {
  static final thingsBoardApiEndpoint = '....'; <- This field
 }

and then recompile the app.
However, we will consider your feature request in our upcoming releases.


text:
Minor Fixes

Fix Grammar in ConnectWallet preview
Fix Get Started / FTUX not rendering anything when wallet is connecting

📝 Changed routes:

/dashboard

(view full size)

Commit 600146d55e146289e2a5ad18e5242f48c8f8b995 (https://thirdweb-lkrjkkrl7.thirdweb-preview.com).

authors: MananTank jnsdls

repo: thirdweb-dev/dashboard


text:
[BUG] Broken image link for Views on Vue podcas

Describe the bug
The Views on Vue podcast has a broken image link
It needs to be replaced a new image.
To Reproduce
Steps to reproduce the behavior:

Go to https://www.framework.dev/
Click on Vue resources
Click on podcasts
See the broken image link for the Views on Vue podcast

Expected behavior
An image should display
Screenshots

If you are interested in working on this issue, please comment below and it will be assign to you.
If this is your first time working with framework.dev, then please read through the Code of Conduct and Contributing documentation.
This assignment will be given out on a first come basis.

Hi, Please assign this issue to me

@aksy2512
It has been assigned to you

Thank you, I have created a pull request for the same:- https://github.com/thisdot/framework.dev/pull/352


text:
TOC incorrect link to header that contains vertical bar character

Very useful tool!  I did find a minor issue.  In a Github wiki page I have a header that looks like this:
#### `history [pgn | alg]`

When I open the wiki page in my browser and View Source, I see this where the header is in the html code:

history [pgn | alg]

DocToc generates the following TOC entry:
- [`history [pgn | alg]`](#history-pgn-%7C-alg)

Note the TOC link's anchor tag has an extraneous %7C in it.
I am manually fixing this for now, but I thought you would want to know.
Update: A similar problem happens when the header title text contains a # character: GitHub's Markdown processor creates an anchor without the #, but that character is still in DocToc's link to the anchor.

It looks like this is actually an issue with thlorenz/anchor-markdown-header.
It also looks like our code treats GitHub and BitBucket somewhat similarly in the code. Looking at how BitBucket handles the case you outlined, they actually output #history-pgn-alg, presumably collapsing the consecutive hyphens.

@thlorenz I've sent a patch to the upstream repo that fixes this issue.

Thanks you @jez .
I looked at the code change.  It looks like there will still be a problem with the # character in a title though.  Example:
## Demo #1: using the `-s` option

The correct link should be the following:
- [Demo #1: using the `-s` option](#demo-1-using-the--s-option)

The link actually generated by DocToc was:
- [Demo #1: using the `-s` option](#demo-#1-using-the--s-option)

Don

This should be addressed in jez/anchor-markdown-header@3b7210a in the PR thlorenz/anchor-markdown-header#24.

@thlorenz I'm not sure what the best way to bump the versions of the deps is, but it should be the only thing left to do.

It's a patch update so it'll be pulled automagically due to the ~ -- would also work for minor updated.
People just have to reinstall doctoc to get it:
npm rm -g doctoc && npm i -g doctoc

Oh ok, cool.
It might be useful to peg anchor-markdown-header at 0.5.4 to force an
update (for example, npm outdated won't list doctoc as being outdated).
On Wed, Jul 1, 2015 at 11:41 AM Thorsten Lorenz notifications@github.com
wrote:

It's a patch update so it'll be pulled automagically due to the ~
https://github.com/thlorenz/doctoc/blob/master/package.json#L19 --
would also work for minor updated.
People just have to reinstall doctoc to get it:
npm rm -g doctoc && npm i -g doctoc
—
Reply to this email directly or view it on GitHub
https://github.com/thlorenz/doctoc/issues/71#issuecomment-117792087.

I don't peg versions usually, but if you wanna just change the version to ^0.5.4 that'd be fine with me.

Closed by #72.

authors: cosinekitty jez thlorenz

repo: thlorenz/doctoc


text:
Thoughts on configuration

I'm building a simple Backbone app, and hit a strange bug where if I required a node module it always returned an empty object.
The configuration option you've suggested:
.transform(es6ify.configure(/^(?!.*node_modules)+.+\.js$/))

Seems to fix this, but I wonder if there's a way to make this more explicit. This is a really strange bug to decipher.
Just a thought. I love this transform!

Well... 8 months have flown by and I can no longer reproduce this. I'm going to close this out.


text:
Zoho\OAuth\Utility\ZohoOAuthConstants not Found

Hello,
I get this error message when trying to initialize the SDK.
Uncaught Error: Class 'Zoho\OAuth\Utility\ZohoOAuthConstants'
I get this here
tklein\php-sdk-zoho-desk\src\Client\ConfigProviderBuilder.php on line 37
Did you encounter this issue or am I using something wrong?
Thanks!

@dimizago how did you installed the package and how are you using it?
This sdk must installed through composer, then you have to use the composer autoloader to get class loaded as expected.

I'm following the documentation line by line.
I installed the package through composer and I have the class on autoloader.
I am using Slim 4

Hi @dimizago
Indeed there was an issue in the composer autoloader configuration, you check the changes here:
https://github.com/thomas-kl1/php-sdk-zoho-desk/compare/2.1.1...3.0.0
Also as I didn't touch the zoho oauth base package, there were still a dependency with the zoho crm/utility package in the logger class. I've fixed it and you can declare a constant LOGGER_PATH to store the zoho/oauth logs in the location of your choice.

Btw if you still want to use the original package of zoho/oauth which also include zoho/crm (https://github.com/zoho/zcrm-php-sdk), please use the strict version of 2.0.0


text:
Fixes

I corrected some small style "errors" (if I can say), and some un-used imports.

Looks very good to me ! :) Thanks !

authors: brouberol thomas-maurice

license: WTFPL


text:
Use raw mode instead of cbreak

Maybe also return events instead of using signal handlers?
https://github.com/bpython/bpython/issues/507

See bpython/bpython#507

repo: thomasballinger/curtsies


text:
🛑 Portainer-KA is down

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

HTTP code: 0
Response time: 0 ms

Resolved: Portainer-KA is back up in 03f3280.

repo: thomasmerz/upptime


text:
Tilt not communicating with fermentrack

I've done a clean install of fermentrack on raspian stretch.
Enabled gravity measurments and installed a black Tilt.
However the tilt does not manage to communicate with fermentrack.
I've checked with sudo hcitool lescan and the tilt shows up there.
I've tried to connect with the sibowler's TiltHydrometerTest.py and that owrked fine too (on another install).
After reinstalling twice now I'm a bit stumped as to why I can't get it to work.
Any ideas?
I am using an OEM Brewpi Spark photon v2
Here are the logs:
stderr:
NFO:processmgr:Settings: Start delay: 2s, Sleep Interval: 15s,  INFO:processmgr:Settings: Start delay: 2s, Sleep Interval: 15s,  INFO:processmgr:New BrewPi device found: dev-brewpi INFO:processmgr:New Tilt device found: tilt- INFO:processmgr:Settings: Start delay: 2s, Sleep Interval: 15s,  INFO:processmgr:New BrewPi device found: dev-brewpi INFO:processmgr:New Tilt device found: tilt-
/log/tilt-black-stdout.log:
Error opening /home/fermentrack/fermentrack/log/tilt-black-stdout.log logfile: [Errno 2] No such file or directory: '/home/fermentrack/fermentrack/log/tilt-black-stdout.log'
/log/tilt-black-stderr.log:
Error opening /home/fermentrack/fermentrack/log/tilt-black-stderr.log logfile: [Errno 2] No such file or directory: '/home/fermentrack/fermentrack/log/tilt-black-stderr.log'
`Sep 11 2018 00:07:16   BrewPi version received was 0.5.10 which this script supports in 'develop' branch mode.
Sep 11 2018 00:07:16   Warning: version number of local copy of logMessages.h does not match log version number received from controller.controller version = 4, local copy version = 3. This is generally a non-issue, as thus far log messages have only been added - not changed.
Sep 11 2018 00:07:16   Bound to TCP socket on port 2150, interface localhost
Sep 11 2018 00:07:16   Installed devices received: [{"f": 9, "j": -0.004, "d": 0, "v": 21.059, "i": 0, "h": 2, "p": 0, "t": 1, "a": "28C095C0070000A7", "b": 1, "c": 1}, {"f": 5, "j": -0.004, "d": 0, "v": 18.684, "i": 1, "h": 2, "p": 0, "t": 1, "a": "28A57CC0070000A6", "b": 0, "c": 1}, {"f": 3, "x": 0, "d": 10, "v": 0, "i": 2, "h": 1, "p": 10, "t": 3, "b": 0, "c": 1}, {"f": 2, "x": 0, "d": 0, "v": 0, "i": 3, "h": 1, "p": 11, "t": 3, "b": 0, "c": 1}]
Sep 11 2018 00:07:16   Available devices received: [{"f": 0, "x": 0, "d": 0, "i": -1, "h": 1, "p": 17, "t": 0, "b": 0, "c": 1}, {"f": 0, "x": 0, "d": 0, "i": -1, "h": 1, "p": 16, "t": 0, "b": 0, "c": 1}]
Sep 11 2018 00:14:17   Stopped data logging, as requested in web interface. BrewPi will continue to control temperatures, but will not log any data.
Sep 11 2018 00:15:08   Setting controller to beer profile mode using database-configured profile
Sep 11 2018 00:51:18   Setting controller to beer profile mode using database-configured profile
Sep 11 2018 00:51:45   Notification: Restarted logging for beer 'Hop-Cleanup IPA'.
Sep 11 2018 01:09:25   Connection type Serial selected. Opening serial port.
Sep 11 2018 01:09:25   Connected via serial to port /dev/ttyACM0
Sep 11 2018 01:09:25   Notification: Script started for beer 'Hop-Cleanup IPA'
Sep 11 2018 01:09:44   Checking software version on controller...
Sep 11 2018 01:09:44   Found BrewPi v0.5.10 build 0.5.10-0-gac67918, running on a Particle Photon with a V2 shield on port /dev/ttyACM0
Sep 11 2018 01:09:44   BrewPi version received was 0.5.10 which this script supports in 'develop' branch mode.
Sep 11 2018 01:09:44   Warning: version number of local copy of logMessages.h does not match log version number received from controller.controller version = 4, local copy version = 3. This is generally a non-issue, as thus far log messages have only been added - not changed.
Sep 11 2018 01:09:44   Bound to TCP socket on port 2150, interface localhost
Sep 11 2018 01:09:44   Installed devices received: [{"b": 1, "v": 20.496, "j": -0.004, "c": 1, "t": 1, "h": 2, "f": 9, "a": "28C095C0070000A7", "d": 0, "p": 0, "i": 0}, {"b": 0, "v": 15.871, "j": -0.004, "c": 1, "t": 1, "h": 2, "f": 5, "a": "28A57CC0070000A6", "d": 0, "p": 0, "i": 1}, {"b": 0, "x": 0, "v": 0, "c": 1, "t": 3, "h": 1, "f": 3, "d": 10, "p": 10, "i": 2}, {"b": 0, "x": 0, "v": 0, "c": 1, "t": 3, "h": 1, "f": 2, "d": 0, "p": 11, "i": 3}]
Sep 11 2018 01:09:44   Available devices received: [{"b": 0, "x": 0, "c": 1, "t": 0, "h": 1, "f": 0, "d": 0, "p": 17, "i": -1}, {"b": 0, "x": 0, "c": 1, "t": 0, "h": 1, "f": 0, "d": 0, "p": 16, "i": -1}]`

Does your temperature control work as expected, or is it also having issues alongside the Tilt?

Temperature control works perfectly.
I can see that .../gravity/tilt/monitor.py runs as a process, but for some reason nothing shows up on the dashboard

Interesting. What color is your Tilt, and do you happen to know if it is the old or new model?
Sent from my iPhone
On Sep 11, 2018, at 5:04 AM, Peter <notifications@github.commailto:notifications@github.com> wrote:
Temperature control works perfectly.
I can see that .../gravity/tilt/monitor.py runs as a process, but for some reason nothing shows up on the dashboard
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/thorrak/fermentrack/issues/304#issuecomment-420201898, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACWBLPWb8KG1zL4zhV-57KhjEtdZNPkvks5uZ3yogaJpZM4WicFY.

It’s a black v2. Not the completely new tubing. I have a v1 as well but it just eats batteries. This one lasts longer but has the same overall design. Not sure that helps?

It does - I have a different Tilt-related project that works with the old Tilts but not the new ones for some reason.
Let me try to debug a bit when I get home.
Sent from my iPhone
On Sep 11, 2018, at 7:43 AM, Peter <notifications@github.commailto:notifications@github.com> wrote:
It’s a black v2. Not the completely new tubing. I have a v1 as well but it just eats batteries. This one lasts longer but has the same overall design. Not sure that helps?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/thorrak/fermentrack/issues/304#issuecomment-420244222, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACWBLHKgi1x2Ww0PIeWhuYfIa3ZFMbLoks5uZ6HHgaJpZM4WicFY.

I think uSlackr on HBT was having a similar issue, and posted being able to run a bletools command to clear filters and restore functionality:
https://raspberrypi.stackexchange.com/questions/89414/why-cant-one-of-my-rpis-talk-to-bluetooth-device
That said, from reading the discussions he linked to, I think that the problem may be one of the underlying dependencies of beacontools. It sounds like the maintainers of the bluez library made it so the library implements some kind of beacon filtering for beacons that are sent frequently to reduce strain on low-powered systems like the RPi. Great for some projects, I’m sure, but in our case I think these filters are screening out the Tilt packets.
There is a library mentioned - https://github.com/frawau/aioblescan - which sounds like it might not suffer from the same limitation. Assuming I can’t find a way to remove filters using beacontools I’m going to see if it would be possible to switch to use that library instead to scan.

I just went and did (another) rip & rewrite of the tilt monitor code - the new version uses the frawau/aioblescan project rather than beacontools. If you're interested in testing the new code, it's in the aio_ble branch.
I've got this running on my local install of Fermentrack - if everything seems to be running well after a few days, I'll merge to dev.

Thanks for your effort! Once it’s merged to dev, how do I change my installation to that track?

It’s already in “dev” - if you’re on Master, just wait a few more days. Going to push live to master along with some bug fixes this weekend.
Sent from my iPhone
On Oct 24, 2018, at 2:05 PM, Peter <notifications@github.commailto:notifications@github.com> wrote:
Thanks for your effort! Once it’s merged to dev, how do I change my installation to that track?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/thorrak/fermentrack/issues/304#issuecomment-432767154, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACWBLJdgt5xkgpq4q-PevwB7bUOcfz_Pks5uoKvMgaJpZM4WicFY.

I thiiiink this is fixed now that everything has been released. Going to close this issue for now - if you're still having problems, let me know and we can reopen it!

I’ve just startes a new brew yesterday and updated first to master, now to dev, but i still can’t get contact to the tilt via fermentrack.
I see the tilt on the raspberry (I think) if I call Bluetoothctl:
Discovery started
[CHG] Controller 5C:F3:70:78:21:97 Discovering: yes
[NEW] Device 6F:2D:F2:97:D1:75 6F-2D-F2-97-D1-75
[NEW] Device 78:4B:08:03:F0:FE Mo0111
[NEW] Device 4D:3E:5E:96:70:31 4D-3E-5E-96-70-31
[CHG] Device 4D:3E:5E:96:70:31 ManufacturerData Key: 0x004c
[CHG] Device 4D:3E:5E:96:70:31 ManufacturerData Value: 0x10
[CHG] Device 4D:3E:5E:96:70:31 ManufacturerData Value: 0x05
[CHG] Device 4D:3E:5E:96:70:31 ManufacturerData Value: 0x07
[CHG] Device 4D:3E:5E:96:70:31 ManufacturerData Value: 0x1c
[CHG] Device 4D:3E:5E:96:70:31 ManufacturerData Value: 0xb3
[CHG] Device 4D:3E:5E:96:70:31 ManufacturerData Value: 0x28
[CHG] Device 4D:3E:5E:96:70:31 ManufacturerData Value: 0x12
[bluetooth]#
I’ve tried to see the tilt via aioblescan but I get the following error message:
pi@raspberrypi:~ $ python3 -m aioblescan
Fatal write error on socket transport
protocol: <aioblescan.aioblescan.BLEScanRequester object at 0x76428270>
transport: <_SelectorSocketTransport fd=6 read=idle write=<idle, bufsize=0>>
Traceback (most recent call last):
File "/usr/lib/python3.5/asyncio/selector_events.py", line 761, in write
n = self._sock.send(data)
PermissionError: [Errno 1] Operation not permitted
Any ideas?

@Kollensperger  Take a look at this thread: https://www.homebrewtalk.com/forum/threads/fermentrack-fermentation-monitoring-brewpi-www-replacement-for-raspberry-pi.649303/page-4#post-8403107

Try running the command in sudo
It sounds like a permissions error (which is odd, as the permissions should have been set at install-time)

Strange, I get
‘pi@raspberrypi:~ $ sudo python3 -m aioblescan
/usr/bin/python3: No module named aioblescan
pi@raspberrypi:~ $’
I also tried
‘python3 -m pip install aioblescan’
And ran the command as sudo again but same result.

Ok I also ran the install as sudo and now aioblescan works and I can see the tilt.
However after 5 min on a 2 min log cycle, fermentrack is still not showing the data...

authors: Kollensperger thorrak uSlackr

repo: thorrak/fermentrack


text:
Upgrade requires new fermentrack-tools

The latest version of Fermentrack requires that you use an updated version of the fermentrack-tools scripts in order to function as expected. To fully upgrade (and eliminate the error message) log into your Raspberry Pi via SSH, and run the following commands:

cd fermentrack-tools
git fetch
git pull
./install.sh

I received a large number of permission errors.  I suspect related to the initial install encouraging the use of sudo but the above doesn't.
rm: cannot remove './compose/production/django/entrypoint': Permission denied rm: cannot remove './compose/production/django/Dockerfile': Permission denied rm: cannot remove './compose/production/django/nsswitch.conf': Permission denied rm: cannot remove './compose/production/django/pip.conf': Permission denied rm: cannot remove './compose/production/django/start': Permission denied rm: cannot remove './compose/production/redis/Dockerfile': Permission denied rm: cannot remove './compose/production/redis/redis.conf': Permission denied rm: cannot remove './compose/production/postgres/Dockerfile': Permission denied rm: cannot remove './compose/production/postgres/maintenance/backup': Permission                                                                              denied rm: cannot remove './compose/production/postgres/maintenance/backups': Permissio                                                                             n denied rm: cannot remove './compose/production/postgres/maintenance/_sourced/countdown.                                                                             sh': Permission denied rm: cannot remove './compose/production/postgres/maintenance/_sourced/messages.s                                                                             h': Permission denied rm: cannot remove './compose/production/postgres/maintenance/_sourced/yes_no.sh'                                                                             : Permission denied rm: cannot remove './compose/production/postgres/maintenance/_sourced/constants.                                                                             sh': Permission denied rm: cannot remove './compose/production/postgres/maintenance/restore': Permissio                                                                             n denied rm: cannot remove './compose/production/nginx/Dockerfile': Permission denied rm: cannot remove './compose/production/nginx/nginx.conf': Permission denied
It seems to complete install but fails to bring it online:
::: Waiting for Fermentrack install to initialize and become responsive. ::: Fermentrack may take up to 3 minutes to first boot as the database is being initialized. ..........................................................................................missing. *** ERROR: Unable to find an initialized, responsive instance of Fermentrack
All containers are running and logs on them don't have errors.

You are almost certainly right about that! Try running sudo chown pi ../fermentrack-tools to correct for that. If that doesn't work, let me know.
Also, if you haven't, once you've done that, run git pull to update fermentrack-tools

For better or worse prior to this above I ran sudo ./install.sh and that resolved the issue.  I noticed the main github still encourages the use of sudo but the docs say not to.  I think this may cause a few others some issues too.

Successfully ran the new install using sudo but when loading fermentrack in my browser, get the following error:
Environment:
Request Method: GET
Request URL: http://192.168.1.200/
Django Version: 3.2.20
Python Version: 3.9.17
Installed Applications:
['django.contrib.admin',
'django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.messages',
'django.contrib.staticfiles',
'app.apps.AppConfig',
'firmware_flash.apps.AppConfig',
'gravity.apps.GravityAppConfig',
'external_push.apps.AppConfig',
'backups.apps.BackupsConfig',
'constance',
'constance.backends.database',
'huey.contrib.djhuey']
Installed Middleware:
['django.middleware.security.SecurityMiddleware',
'whitenoise.middleware.WhiteNoiseMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.common.CommonMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'django.middleware.clickjacking.XFrameOptionsMiddleware']
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
The above exception (current transaction is aborted, commands ignored until end of transaction block
) was the direct cause of the following exception:
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/exception.py", line 47, in inner
response = get_response(request)
File "/usr/local/lib/python3.9/site-packages/django/core/handlers/base.py", line 181, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/django/views.py", line 84, in sentry_wrapped_callback
return callback(request, *args, **kwargs)
File "/usr/local/lib/python3.9/contextlib.py", line 79, in inner
return func(*args, **kwds)
File "/app/app/views.py", line 81, in siteroot
if not config.USER_HAS_COMPLETED_CONFIGURATION or num_users <= 0:
File "/usr/local/lib/python3.9/site-packages/django/utils/functional.py", line 247, in inner
return func(self._wrapped, *args)
File "/usr/local/lib/python3.9/site-packages/constance/base.py", line 22, in getattr
setattr(self, key, default)
File "/usr/local/lib/python3.9/site-packages/constance/base.py", line 29, in setattr
self._backend.set(key, value)
File "/usr/local/lib/python3.9/site-packages/constance/backends/database/init.py", line 97, in set
constance = queryset.get(key=key)
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 431, in get
num = len(clone)
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 262, in len
self._fetch_all()
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 1324, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/usr/local/lib/python3.9/site-packages/django/db/models/query.py", line 51, in iter
results = compiler.execute_sql(chunked_fetch=self.chunked_fetch, chunk_size=self.chunk_size)
File "/usr/local/lib/python3.9/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
cursor.execute(sql, params)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 98, in execute
return super().execute(sql, params)
File "/usr/local/lib/python3.9/site-packages/sentry_sdk/integrations/django/init.py", line 596, in execute
return real_execute(self, sql, params)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/usr/local/lib/python3.9/site-packages/django/db/utils.py", line 90, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
Exception Type: InternalError at /
Exception Value: current transaction is aborted, commands ignored until end of transaction block

authors: cdnninja rpreston99 thorrak


text:
Update README.md

Update the README to reflect the fact that Capybara Webkit now requires Qt 5.

My tests all fail now with QT4...

Hey @lpender, if you take a look at the Travis builds for capybara-webkit, for example, https://travis-ci.org/thoughtbot/capybara-webkit/jobs/65627737, you'll see that they are testing against QT 4.8.1 as well as QT5.
There is a plan to eventually drop QT 4, as mentioned https://github.com/thoughtbot/capybara-webkit/issues/760, but it's not until at least 2.0 release.
Can you please give more information about the issues you are having?
Maybe open an Issue with your current Capybara Webkit version, QT version, webkit_debug output, and a reproducible test sample app for the issues you are experiencing?

Hey @nritholtz, thanks for that.  Sorry about the premature PR.
So I think the issue is that I'm using REACT, which apparently requires QT 5 to work with capybara-webkit, possibly because it uses ES6 libraries.
Perhaps I should do some more research to see exactly what is going on.  I can close this PR for the time being.
Thanks
-Lee

authors: lpender nritholtz

repo: thoughtbot/capybara-webkit


text:
Broken link

Broken link to a grid-span feature:

Ah, this should be grid-column

my b

fixed

authors: tysongach whmii


text:
Heroku:Pipelines now a core plugin?

I've updated my system and it appears the Heroku Pipelines plugin is now part of the core toolbelt. I need to confirm that, but the build exits when it can't grep the piplelines plugin.
heroku plugins:install heroku-pipelines
Not installing heroku-pipelines because it is already installed as a core plugin.

That is right, thanks for reporting. Also reported in https://github.com/thoughtbot/suspenders/issues/758.

This is the condition that we should fix in order to make this work for people with newer and older versions of the heroku command:
https://github.com/thoughtbot/suspenders/blob/master/lib/suspenders/adapters/heroku.rb#L54-L58

Is using heroku help | grep pipelines an option to work from?

Not sure. Will it work on both newer and older versions of the toolbelt?

After some searching:
This did not change:
https://github.com/heroku/heroku-pipelines/blob/6cb73973e2cd72ad2cea5eb9812f5a7eafd81beb/index.js#L7
When the plugin became part of the cli (general available):
https://github.com/heroku/heroku-pipelines/commit/08915b80cb7b7b62cb0cf87a9724df48d6a0802d
https://github.com/heroku/cli/commit/e026f854a0f981d4ac0ee34feeafa9589fc60e2f

Closing in favor of PR: https://github.com/thoughtbot/suspenders/pull/772. Thank you!

authors: rikkipitt rubylibre tute

repo: thoughtbot/suspenders


text:
Enforce SSL in production environment

This setting has been on for every thoughtbot Rails app I've touched
in the past year or two (maybe a dozen?).

Use configure_environment helper method more consistently.
Fixes https://github.com/thoughtbot/suspenders/issues/781

More about the pervasiveness of SSL in our ecosystem:
https://blog.heroku.com/announcing_heroku_free_ssl_beta_and_flexible_dyno_hours
https://letsencrypt.org/

Yes, please.
Can this be a separate generator instead? See #767 for an example, but in short: new file under lib/suspenders/generators, modify #generate_default in lib/suspenders/generators/app_generator.rb, require it in lib/suspenders.rb.

Can this be a separate generator instead?

@mike-burns Like a suspenders/generators/production_config_generator that groups all the changes to the config/environments/production.rb file?

I'd be OK with that, but I'm thinking more fine-grained: a suspenders/generators/enforce_ssl_generator that only makes this change.
The problem this is trying to solve is: people want suspenders to be more configurable, and want it to be easier to undo parts of suspenders. The long-term goal is to move each concept into its own generator, with one generator to rule them all.

@mike-burns Ready for another review

authors: croaky mike-burns


text:
Linking from projects to its team members

need to be able to go koen's page

done

authors: Hamdy xmonader


text:
Creating capacity contract on a rented node

Steps

Create a capacity contract on a node (that will rent the whole node resources)
Create another capacity contract on the same node with 0 resources (can be used for wireguard network or gateway deployments)

Result
The second contract will be created.
Question
Is it okay to let anyone creates a contract on a rented node?

also, not sure if it's possible to differentiate between a capacity contract on a node and a capacity contract with all node's resources

Why would you create multiple capacity contracts on the same node?

Just wondering why you would do this?

in case a user needs a wireguard access or gateway that will need a public node, and this contract will carry the network workload or gateway workload only, so he will need a contract on a public node without any resources

I see, this is quite cumbersome in my opinion. A user would need to create 2 contracts on a public node (capacity contract and deployment contract) in order to expose it's network..

@AhmedHanafy725 is this clear now?

shall we prevent any contract with 0 resources?
also what about this one?

also, not sure if it's possible to differentiate between a capacity contract on a node and a capacity contract with all node's resources (any option on the contract)

closing because of https://github.com/threefoldtech/tfchain/issues/551

repo: threefoldtech/tfchain


text:
feat: revert add node gpu status

Revert:

#738

Related to:

#759

@renauter please fix merge conflicts before we can re-review and merge

authors: DylanVerstraete renauter


text:
Node can be down even the state and target are up

Description

Node can be down even the state and target are up

Results

That will make the farmer bot treat the node as an up node
If all nodes are down and this false node is the only one left in the farmer bot that would deceive the farmer (having an on node while it is actually down, but it won't affect setting power targets because its state is up)

Logs

node 18 on devnet is down while its state and target are up

{
  "id": "0000000617-000001-7e072",
  "nodeId": 18,
  "farmId": 3042,
  "farmName": "dierenboerderij",
  "twinId": 27,
  "country": "Belgium",
  "gridVersion": 5,
  "city": "Beervelde",
  "uptime": 7320,
  "created": 1649252862,
  "farmingPolicyId": 1,
  "updatedAt": 1704893766,
  "capacity": {
    "total_resources": {
      "cru": 4,
      "sru": 1610612736000,
      "hru": 1073741824000,
      "mru": 4126011392
    },
    "used_resources": {
      "cru": 0,
      "sru": 289910292480,
      "hru": 0,
      "mru": 2147483648
    }
  },
  "location": {
    "country": "Belgium",
    "city": "Beervelde",
    "longitude": 3.8802,
    "latitude": 51.0826
  },
  "publicConfig": {
    "domain": "",
    "gw4": "",
    "gw6": "",
    "ipv4": "",
    "ipv6": ""
  },
  // status
  "status": "down",
  "certificationType": "Diy",
  "dedicated": false,
  "inDedicatedFarm": false,
  "rentContractId": 0,
  "rentedByTwinId": 0,
  "serialNumber": "Not Specified",
  // power
  "power": {
    "state": "Up",
    "target": "Up"
  },
  "num_gpu": 0,
  "extraFee": 0,
  "healthy": true
}

long time fixed

authors: rawdaGastan xmonader

repo: threefoldtech/tfgrid-sdk-go


text:
fix page cursor dirty pages

Fixes https://github.com/thrumdev/nomt/pull/72#discussion_r1554441596

#81  👈
master

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @pepyakin and the rest of your teammates on  Graphite

Merge activity

Apr 8, 7:28 PM EDT: @rphmeier started a stack merge that includes this pull request via Graphite.

authors: pepyakin rphmeier

repo: thrumdev/nomt


text:
Allow adding details to any of commands

[ ] #38
[ ] #39
[ ] #40

Hi @Kritika30032002,
Thank you for your interest in this project.
Feel free to add details if you want this feature to be implemented.
If you want to implement this feature yourself, please write down 1-2 lines about what you are going to implement.
Regards
THT

experience - command can be added
about answer can be made little bit more detailed.
contact can also provide details like LinkedIn id and GitHub along with email.
Skills can be described specifying languages ad tools.

Hi @Kritika30032002
experience - command can be added

=> Can you please explain it a bit more, sounds interesting.
about answer can be made little bit more detailed.
contact can also provide details like LinkedIn id and GitHub along with email.
Skills can be described specifying languages ad tools.

=> I'll go ahead and create separate issues for these. I'll also convert this issue into EPIC issue. I'll also assign them to you. Sounds good?

@Kritika30032002 I've created separate issues.
Please comment on the issues so that I can assign them to you.
Thanks

experience - command can be added  ------ this command will display the work experience of the person.
about answer can be made little bit more detailed.  --------- about right now is just showing the name. The designation like student or professional can be added along with current position.
contact can also provide details like LinkedIn id and GitHub along with email.  ------- right now it only displays email to contact
Skills can be described specifying languages and tools.  ----------- skills like react, tailwind, redux can be specified to show proficiency in that technology.

@Kritika30032002 I've created separate issues. Please comment on the issues so that I can assign them to you.
Thanks

also plz add hacktoberfest label to all

Oh. Understood.
I'll create issue for experience - command can be added this one too.
Comment on it so I can assign it to you.
I'll add hacktoberfest label also.
Thanks for your interest in this project.
Regards
THT

Thanks for believing in my ideas.

@Kritika30032002 your ideas are awesome. Feel free to contribute more ideas. The open-source community needs people like you.

Thanks for your appreciation.
Will definitely contribute more ideas after completing these.

@thtauhid  The details to be added is of specific person or dummy data?

Dummy Data

Okay

@Kritika30032002 wow!
Thanks for the huge contribution.
Feel free to share your thoughts.

It was the great experience.
Happy to contribute.

repo: thtauhid/terminal-portfolio