Support Unix timestamp as double in the InfluxDB Sink connector

Issue Guidelines
Please review these questions before submitting any issue?
What version of the Stream Reactor are you reporting this issue for?
1.2.1
Are you running the correct version of Kafka/Confluent for the Stream reactor release?
yes
Do you have a supported version of the data source/sink .i.e Cassandra 3.0.9?
--
Have you read the docs?
yes
What is the expected behaviour?
I would expect the InfluxDB Sink connector to work with Unix timestamps in seconds with type double.
What was observed?
I've got the following error:
java.lang.IllegalArgumentException: Invalid value for field:private_sndStamp.Value '1.3261721783120623E9' is not a valid field for the timestamp
    at com.datamountaineer.streamreactor.connect.influx.writers.TimestampValueCoerce$.apply(TimestampValueCoerce.scala:35)
    at com.datamountaineer.streamreactor.connect.influx.writers.InfluxBatchPointsBuilder$$anonfun$buildPointFromStruct$2$$anonfun$19.apply(InfluxBatchPointsBuilder.scala:237)

I can see that double type is not supported here

See PR #626 for a proposal.

Fixed in #626 626


fix route for "contact" page

the route (/contact) should go to the contact form page.

an additional part of this issue is updating all the static links in the app/views/markdown/*.md files


GASaccounts

Can someone either explain the logic for oldGASaccount and newGASaccount to me, or point me to a document that explains this? I think block rewards feed this account (partially?) but I’m unable to fully understand this concept.
For reference: I’m trying to calculate the sum of all block rewards in a given day (hoping that I could take the difference of two amounts).

The notion of the GAS account exists to smooth out transaction fees over time. Since all bakers have to execute all blocks.
The rough idea is that transaction fees don't go directly to the baker, but instead some of it goes to the baker directly, and some to the GAS account (and some to the foundation). The proportions are determined by the value of these parameters http://developer.concordium.software/concordium-rust-sdk/concordium_rust_sdk/types/struct.TransactionFeeDistribution.html
At the same time, in addition to direct transaction fees for the block that they have produced, the baker gets a share of the value of the GAS account from the past blocks (recall that this value is accumulated from each block according to the fraction http://developer.concordium.software/concordium-rust-sdk/concordium_rust_sdk/types/struct.TransactionFeeDistribution.html#structfield.gas_account )
In addition to this, GAS reward is used to reward inclusion of "special transactions" that are not directly paid by the sender, such as account creations and update instructions, and inclusion of finalization proofs. The fractions that determine the distribution are at the following link http://developer.concordium.software/concordium-rust-sdk/concordium_rust_sdk/types/struct.GASRewards.html
So for block rewards we

take the transaction fees in the block and split it into

foundation tax
rewards that go directly to the baker
rewards that accrue GAS account (this becomes the "new gas account")

take the existing value of the GAS account and reward the baker from it according to the parameters in http://developer.concordium.software/concordium-rust-sdk/concordium_rust_sdk/types/struct.GASRewards.html

🤔, far more complicated than I ever could have imagined.
Another question to try to achieve the same thing: bakers get more rewards when #txs increases (in general). Is there a way to calculate the total transaction fees paid (on a given day)?

Each block summary has a list of transactions, and each account transaction, which are the only ones that contribute transaction fees, has a cost field http://developer.concordium.software/concordium-rust-sdk/concordium_rust_sdk/types/struct.AccountTransactionDetails.html#structfield.cost which is the amount of fees they paid.
So at least this way you can calculate how many fees were paid. I can't remember a quicker way at the moment.

Yes, that's a field I'm familiar with, but this approach forces me to search all 3M+ blocks for all transactions to calculate tx fees. If that is the only way for now, I'll hold off on improving my APY estimates.


chore: OB Revamp BE code refactor

Description
This PR adds minor refactors in the code to support the latest changes in onboarding flow.
PR fixes following issue(s)
Fixes https://github.com/appsmithorg/appsmith-ee/issues/1519
Type of change

Chore (housekeeping or task changes that don't impact user perception)

Testing

[x] Manual
[ ] Jest
[ ] Cypress

Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

/ok-to-test

/ok-to-test

/ok-to-test


x/build: add doas package on NetBSD systems

Go version
devel
Output of go env in your module/workspace:
N/A

What did you do?
#70702 reports that su asks for a password on some FreeBSD systems, causing the runtime test TestSUID to fail and leaving the terminal in a broken state.  Using the doas command with the -n option avoids this problem.  doas is available as a separate package on FreeBSD and perhaps also NetBSD.  Let's add it to the builders, and switch the test to use it.  It's OK to run the test on systems where there is no doas command; the test will be skipped.
What did you see happen?
/bin/sh: doas: not found

What did you expect to see?
A passing test.
CC @golang/release

Now that #61095 is nearly done, I think this should be a matter of adding the right package to this line and rebuilding the image.
CC @mknyszek.

I rebuilt the image with doas installed and redeployed it.

Thanks!

Ah, perhaps I closed it prematurely. I didn't do anything for NetBSD, but it's also not ported to LUCI. Might be similarly easy to update. Updating the title, reopening, and leaving for the next release rotation person.

Related Code Changes

runtime: in TestSUID use doas on FreeBSD

(Emoji vote if this was helpful or unhelpful; more detailed feedback welcome in this discussion.)

There are LUCI builders for netbsd/arm and netbsd/arm64 ports (#63698 and #63614). They're remote, so this change is something their builder owner can consider applying (CC @bsiegert).

The NetBSD LUCI builders (arm and arm64) now have doas installed. But at the moment, there is no config file, so it is disabled. I am hesitant to open full root access to the swarming user.
On the other hand, these systems also have sudo installed already, since the LUCI infrastructure uses it to run reboot after a failed test. So perhaps having NetBSD use the sudo branch that's already there for Darwin would be useful. What do you think?

@bsiegert See the discussion on #70702, which suggests that doas is better because it can be told to not ask for a password.


Build failure: k3d

Build log
https://nixpkgs-update-logs.nix-community.org/k3d/2024-07-20.log
Notify maintainers
@kuznero @jlesquembre @ngerstle @jk @ricochet

Add a :+1: reaction to issues you find important.

close as PR https://github.com/NixOS/nixpkgs/pull/331081


Common Lisp files ending in .l not being recognised

Please see https://github.com/hscells/CSC466 for example.
Thank you.

This seems tricky.  There are more than 300k .l files.  Traditionally, this extension is used for Lex input.  These files usually contain lots of code from the target language, so the Bayesian classifier would have a hard time doing the right thing.  I guess heuristics could latch onto the %{ and %} keywords used by Lex.
I found more than 5000 .l files which seems to be Lisp.

I agree with @larsbrinkhoff (but I'm not part of GitHub staff either). This is going to be a lot of work but it's feasible. We'll first need to identify all languages using this extension.

3,600 of them seem to be C#
a good number seems to be C++/C

@pchaigno Many of those two searches include files which are Lex files.
E.g. the first C# result: https://github.com/jk983294/Store/blob/e1e052231917815dc3f02768a69f70a2f5cfb164/CompileExp/SeuYacc/用例/example1-简单运算/lex.l
Note the precense of %{.

Which language or testing framework use .l and .p?  See for example this directory:
https://github.com/doespresso/leroy/tree/eecbeee944ebc09fde4c353a442de3a7ed892bf7/node_modules/grunt-csso/node_modules/csso/test/data/test_simpleselector

@pchaigno Those two searches include many files which are Lex files.
E.g. the first C# result. Note the precense of %{.

Arf! Good to know.

What extension should I use if I wanted linguist to pick them up?

@hscells .lispis by far the most common.  .lsp and .cl are also supported by GitHub if you need something shorter.

larsbrinkhoff

Thank you :)

May the sexp be with you!


Make the tutorial index more beautiful

It would be awesome to make the tutorial index more pretty and user friendly so that we can link to it directly from the qutip.org website. Some ideas for things to include:

Links to Nbviewer (for viewing the notebook as-is with output)
A links to MyBinder (with an environment.yml file, for trying the notebooks out)
Some headings (maybe this can be derived from folder names initially, or something?)
Some CSS styling that matches the qutip.org site somewhat.

This issue was closed with https://github.com/qutip/qutip-tutorials/pull/40.


Uglify task slowness

Review the recent degradation of uglify task. It seems related to tangram integration and some problems with the uglify version we have.
See https://github.com/mishoo/UglifyJS2/issues/321
cc @xavijam @luisbosque @jorgesancha @javisantana

cc @javitonino

Created a PR for my little experiment updaing uglifyJS -> https://github.com/CartoDB/cartodb/pull/11471

Thanks @javitonino! I'll try it in staging :)

It seems to be working properly, closing!


Error handling in PySoft?

Is your feature request related to a problem? Please describe.
I've already done a lot of the error handling work, but I don't see it in new programs.
Describe the solution you'd like
Simple. Add :
           {codehere}
    except BaseException:
           print("ERROR : 770A\nA random exception has occured.")

Don't even have to put the full complement of error handling from the error chart
Describe alternatives you've considered
None, apart when the program terminates because I put a typo in my filename
Additional context
See your SMS in PySoft/Utilities

oh yes gmaersoft42 exists now

UARTE

uarte

@GmaerSoft42 @Okmeque1 can u please sort it off for me? I will edit directly from there and it would be very nice of you. call it pysoft-error-handling-upd or something and you can include your:
      {codehere}
      except BaseException:
            print("ERROR: 770A\nA random exception has occured.")

with Error without capital and without a space after error please (e.g Error: 770A\n A random blablabla...)
Thank you,
SutoEXEC (AUTOEXEC.BAT)

we are currenlty sorting this out @Okmeque1

@Okmeque1 @SutoEXEC where more should i add error handling? (sms and ipcmd now have error handling)

@Okmeque1 @SutoEXEC where more should i add error handling? (sms and ipcmd now have error handling)

do it in every python prog

Bunch of updates on PySoft Error handling. Same with PR #36

@Okmeque1 @SutoEXEC where more should i add error handling? (sms and ipcmd now have error handling)

do it in every python prog

yep okay!

all good, issue can now be closed


Bool interval analysis for constant folding

For some reason, this folds a lot more expressions than cvec matching. I think it has something to do with data.exact but I don't totally understand it yet. I'm still looking into it, but thought I'd open the PR for discussion if you have any ideas.
Edit: It looks like the difference is coming from terms like (and false ?x). The interval for this will be (false, false) so it gets constant folded if you're using IntervalAnalysis, but it's not an exact term, so it won't get constant folding if you're using CvecMatching. This also explains why it didn't come up for rational (none of the ops short-circuit on their args the same way). In that case, I think this interval analysis is good, and strictly better than the old cvec matching constant fold?

For some reason, this folds a lot more expressions than cvec matching. I think it has something to do with data.exact but I don't totally understand it yet. I'm still looking into it, but thought I'd open the PR for discussion if you have any ideas.
Edit: It looks like the difference is coming from terms like (and false ?x). The interval for this will be (false, false) so it gets constant folded if you're using IntervalAnalysis, but it's not an exact term, so it won't get constant folding if you're using CvecMatching. This also explains why it didn't come up for rational (none of the ops short-circuit on their args the same way). In that case, I think this interval analysis is good, and strictly better than the old cvec matching constant fold?

@ajpal how are you comparing the two approaches?

For some reason, this folds a lot more expressions than cvec matching. I think it has something to do with data.exact but I don't totally understand it yet. I'm still looking into it, but thought I'd open the PR for discussion if you have any ideas.
Edit: It looks like the difference is coming from terms like (and false ?x). The interval for this will be (false, false) so it gets constant folded if you're using IntervalAnalysis, but it's not an exact term, so it won't get constant folding if you're using CvecMatching. This also explains why it didn't come up for rational (none of the ops short-circuit on their args the same way). In that case, I think this interval analysis is good, and strictly better than the old cvec matching constant fold?

@ajpal how are you comparing the two approaches?

Strong agree that this approach is better than cvec-matching. I don't think cvec-matching is a good way, it works out but should not be preferred.

@chandrakananandi Nothing fancy, I just ran it with both folding methods and used println to count how many times it folded things. Then, since it was clear that Interval Analysis was folding way more terms, I printed out a little more information in the cases where the interval analysis folded but the cvec matching wouldn't have:
if !sig.exact {
                            let extract = Extractor::new(&egraph, ExtractableAstSize);
                            println!("interval fold: {:?}", a);
                            let x = extract.find_best(id);
                            println!("{:?}", x);
                            println!("{:?}", sig.cvec);
                        }

That's how I figured out it was terms like (and false ?x) that were causing the difference

Very cool!! IA is strictly better that the other one.


Tray icon balloon in every closes of the mainwindow

My Setup

Operating System: Windows 10
App Version: 3.0.0
Installation type: MSI

[X] I have tested with the latest version
[X] I can simulate the issue easily

Description
Tray icon balloon in every closes of the mainwindow
Current Behavior
Every time I close the mainwindow, a balloon it´s showed saying me that app is´still running. I know from the first notification that the application it´s still running in background,
Expected Behavior
I expect only one notification the first that I close the application´s mainwindow, but not all the times, same as other windows applications. If anything, the first time after every restart of the application process.

I also have users complaining of that,
they would wan't to have the ability to disable this specific notification, but not the other one.

Its extremely annoying, we need an option to remove this completely useless notification.

This persists in 3.0.2. I recommend to pull version 3 until this is fixed.

Just to add to this - Skype shows a similar notification, but includes a message indicating that clicking the notification will dismiss it and not show again.  I can't imagine why anyone would think it a good idea to show it every single time.

Windows 10 x64, version 3.0.4, exe installation, same issue

can these lines be removed
https://github.com/RocketChat/Rocket.Chat.Electron/blob/0adc73c2ecfe7010adbb06583b22c55ff172a169/src/ui/main/trayIcon.ts#L122-L124
they are the source of this popup and it's win32 only and really annoying.
alternatively maybe add a setting to enable/disable this "feature" ?

can these lines be removed
https://github.com/RocketChat/Rocket.Chat.Electron/blob/0adc73c2ecfe7010adbb06583b22c55ff172a169/src/ui/main/trayIcon.ts#L122-L124
they are the source of this popup and it's win32 only and really annoying.
alternatively maybe add a setting to enable/disable this "feature" ?

More than removing, I'd say better just add a flag so it is only shown the first time the window is closed to tray. And serializing it somewhere, so it doesn't que get shown again on next app executions.

can these lines be removed
https://github.com/RocketChat/Rocket.Chat.Electron/blob/0adc73c2ecfe7010adbb06583b22c55ff172a169/src/ui/main/trayIcon.ts#L122-L124
they are the source of this popup and it's win32 only and really annoying.
alternatively maybe add a setting to enable/disable this "feature" ?

More than removing, I'd say better just add a flag so it is only shown the first time the window is closed to tray. And serializing it somewhere, so it doesn't que get shown again on next app executions.

that would be great but if that's not something that will be built by the next release, I would suggest just disabling this and enabling it once we actually have a setting or option to disable it.

can these lines be removed
https://github.com/RocketChat/Rocket.Chat.Electron/blob/0adc73c2ecfe7010adbb06583b22c55ff172a169/src/ui/main/trayIcon.ts#L122-L124
they are the source of this popup and it's win32 only and really annoying.
alternatively maybe add a setting to enable/disable this "feature" ?

More than removing, I'd say better just add a flag so it is only shown the first time the window is closed to tray. And serializing it somewhere, so it doesn't que get shown again on next app executions.

that would be great but if that's not something that will be built by the next release, I would suggest just disabling this and enabling it once we actually have a setting or option to disable it.

I have stopped my users from updating the client, until this is resolved.  Yes, it is that big an issue for our team.   I second @Dark-Passenger in just commenting it out until there is an official option (or not, our team used it perfectly well for years without being told that the window was still open - Heck, OSX does that by default for applications all the time, keeping it open, even when the main window is closed, without the user having to be explicitly told so.)

Showing the message only once per execution is an improvement, but still a tad too annoying. Please improve this further, either by showing the message only once (and persisting the flag that stores that the user has seen this message before), as recommended by @eduardhc, or by providing a user preference to not display these messages at all, as recommended by @Dark-Passenger.
Thanks!

Almost a year not activity in this. I need create new issue for improving this? See this popup every day is rally annoying!

Made new issue https://github.com/RocketChat/Rocket.Chat.Electron/issues/2188


sorter param for data tables

The docs say the field can be a function but there's no example for this.
What I want to do is sort a field that has a <template> inside, and it seems sorter="custom" won't work with templated columns.
Any advice would be appreciated.

I just looked at the source and noticed it works if the field attribute is present. Might be an idea to add this to the docs (that sorter works only when field is specified).


Snapshot and API bind addresses

This PR does the following:

Moves all the data node handlers under a /data prefix to make the top-level handler less brittle.
Removes the separate snapshot listener and makes it an endpoint on the cluster server at /data/snapshot
Removes the [snapshot].bind-address and [snapshot].port config sections since it now uses the cluster bind address and port
Fixes the HTTP API listener so that it can actually be run on a separate interface and port from the cluster addr.

+1, nice to see that top-level URL routing fixed up.

One small typo in a comment, otherwise :+1:


Tensor data type error

This may have something to do with pytorch version (I use 0.4.0), but I think people should know:
Traceback (most recent call last):                                                                                File "train.py", line 271, in <module>     main()   File "train.py", line 268, in main     train(transformer, training_data, validation_data, crit, optimizer, opt)   File "train.py", line 126, in train     train_loss, train_accu = train_epoch(model, training_data, crit, optimizer)   File "train.py", line 73, in train_epoch     return total_loss/n_total_words, n_total_correct/n_total_words RuntimeError: Expected object of type torch.cuda.FloatTensor but found type torch.cuda.LongTensor for argument #2 'other'

Try to change loss.data[0] to loss.item()

Hello @Xuwanjun9  Thanks for explanation!
Hello @ylmeng, sorry for that, it is a version issue. The code now has been updated to PyTorch 0.4.1, please take a look.
Thanks,
Yu-Hsiang


Error cannot read properties of undefined (reading 'style')

Which version of Room Card?
1.07.25
Describe the bug
Random error message "Cannot read properties of undefined (reading 'style')" on one of the cards everytime I open the main page.
I get these on both the browser and companion app.
It pops up around 50% of the time.
To Reproduce
Dont know.
Expected behavior
Screenshots

Desktop (please complete the following information):

OS: [e.g. iOS] Windows/ Android
Browser [e.g. chrome, safari] Chrome/ Companion App
Version [e.g. 22]

Smartphone (please complete the following information):

Device: [e.g. iPhone6]
OS: [e.g. iOS8.1]
Browser [e.g. stock browser, safari]
Version [e.g. 22]

Additional context
Add any other context about the problem here.

Do you have template entities? It got to do with the timing when entities are available. I really can't do much to help you with this except for giving you some hints where to look

Do you have template entities? It got to do with the timing when entities are available. I really can't do much to help you with this except for giving you some hints where to look

Hi, no Template Entities. Heres the whole card.
type: custom:room-card
title: 客廳
info_entities:

entity: input_boolean.someone_is_home_wifi
hold_action:
action: toggle
icon: mdi:home-import-outline
show_icon: true
state_color: true
entity: input_boolean.simulated_night_switch
hold_action:
action: toggle
icon: mdi:bed-clock
show_icon: true
state_color: true
rows:
entities:

entity: light.magic_switch_s1e_b001_switch_3
name: 天花燈
icon: mdi:chandelier
tap_action:
action: toggle
show_icon: true
state_color: true
entity: light.magic_switch_s1e_b001_switch_1
name: 牆射燈
icon: mdi:light-flood-down
tap_action:
action: toggle
show_icon: true
state_color: true
entity: light.living_room_entrance_lights
name: 鞋櫃燈
secondary_info: brightness
icon: mdi:led-strip-variant
tap_action:
action: toggle
show_icon: true
state_color: true
entity: switch.table_entrance_lights_l1
name: 飯檯燈
icon: mdi:ceiling-light
tap_action:
action: toggle
show_icon: true
state_color: true

entities:

entity: switch.living_room_air_conditioner_2
name: 冷氣機
icon: mdi:air-conditioner
hold_action:
action: toggle
show_icon: true
state_color: true
entity: media_player.sony_kd_55x9000e
name: Sony TV
icon: mdi:television
show_icon: true
state_color: true
entity: input_boolean.living_room_tv_in_out
name: 電視臂
icon: mdi:swap-horizontal
hold_action:
action: toggle
show_icon: true
state_color: true
entity: light.living_room_tv_led
secondary_info: brightness
name: 電視 LED
icon: mdi:led-strip-variant
tap_action:
action: toggle
show_icon: true
state_color: true
entity: switch.0xa4c138a4a323b554
name: PS5 散熱
icon: mdi:fan
tap_action:
action: toggle
state_color: true
show_icon: true
hide_if:
conditions:
- condition: equals
value: 'off'
- condition: equals
value: unavailable
entity: media_player.living_room_speaker
icon: mdi:google-assistant
name: Google
tap_action:
action: toggle
state_color: true
show_icon: true
hide_if:
conditions:
- condition: equals
value: 'off'
entity: switch.ps5_567_power
icon: mdi:sony-playstation
name: PS5
tap_action:
action: toggle
state_color: true
hide_if:
conditions:
- condition: equals
value: unavailable
cards:

type: custom:mini-media-player
entity: media_player.sony_kd_55x9000e
volume_stateless: true
hide_if:
conditions:
- condition: equals
value: 'off'
- condition: equals
value: unavailable
type: custom:mini-media-player
entity: media_player.living_room_speaker
volume_stateless: true
hide_if:
conditions:
- condition: equals
value: 'off'
- condition: equals
value: unavailable

Any ideas? thanks in advance

Ok, I think its the custom:mini-media-player cause it doesnt happen when its hidden.
Any idea how I could solve this? thanks

Might be the unavailable condition for hiding. Not sure

@cherryocola   can you test it with v1.08.00 thanks to Scott ( don't know your github handle bro ) it should be fixed :)

@cherryocola try v1.08.01 xD It's going fast

Works for me. Thank you very much for fixing this bug.
On Sun, Oct 15, 2023, 19:23 Marco Kreeft @.***> wrote:

@cherryocola https://github.com/cherryocola try v1.08.01 xD It's going
fast
—
Reply to this email directly, view it on GitHub
https://github.com/marcokreeft87/room-card/issues/269#issuecomment-1763453189,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ACURVVDS6P4DTGZTQLDL4P3X7QLZPANCNFSM6AAAAAA5TT2IQA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


Update Project URL on all Web Projects

and fix the designer files

looks good to me :+1:

This needs a Jira with a good description of what this is supposed to fix.

@ohine this PR has many conflicts. Moreover, this has to follow what @jbrinkman commented earlier (need a Jira, etc.). I will close it without merging. If you still feel it is relevant, please follow the guidelines by creating a Jira issue and adding relevant info there with a conflict free PR.

Due to the large number of merge conflicts and no response from the submitter, beside no associated Jira issue # for this PR, I will close this without merging.


How can I use smart flank to reduce the cost of the devices

I'm using Flank in running our tests using Firebase Test Lab but I need to use Smart Flank to reduce the cost of devices, how can I do that ?

  ## Google cloud storage path to store the JUnit XML results from the last run.
  smart-flank-gcs-path: gs://tmp_flank/flank/test_app_ios.xm

If you set the GCS path for smart flank, then flank will store the test timing info there and use it when generating shards.
See max-test-shards and shard-time from the readme as well.
We have a #flank channel on firebase test lab which is a good place to ask general questions.
https://firebase.community/


Mavenisation of YCSB with a (tar ball) distribution packager.

Refactored the whole project structure as a standard maven project, which makes it easier to manage dependencies.
Also, added a YCSB distribution module which packages a tar ball with all libraries, workloads, configurations and executable binary.
To test this, execute this command from top level directory
"mvn clean package"
If the build is successful; you will find a distribution package at
"distribution/target/ycsb-distribution-0.1.3-package.tar.gz"
NOTE :

gemfire, mapkeeper dependencies could not be found in standard maven repositories. So, as of now; they are not included in the distribution package.
If they are available in other external repositories (could not find it), they can be configured and included as well.
For JDBC, this distribution is done with openjpa-jdbc library. For custom JDBC sources, the corresponding maven dependency have to be configured and recompiled.

Hi Hariprasad, this is a great work! Here are my comments:

I got compilation errors about annotations. I added something like this to the top-level pom to fix it:

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.3.2</version>
        <configuration>
          <source>1.6</source>
          <target>1.6</target>
        </configuration>
      </plugin>
    </plugins>
  </build>

It would be good to include older versions of Cassandra. Some people might need them to check for performance regression.

I think this patch is ready to go in if you can fix these 2 things. Hariprasad, I'm really excited about this patch!
--Michi

Michi,
Okay. Pushed a new version just now.
Here is the summary of changes

Added the maven-compiler-plugin section in top level pom.
MapKeeper is also included as part of build
Support for older Cassandra Versions until 0.7.0

Notes :

I already tried the link for gemfire. But it seems Gemfire uses older Spring Core version, which is no obsolete and no longer hosted in any maven repositories.
Failed to execute goal on project gemfire-binding: Could not resolve dependencies for project org.apache.ycsb:gemfire-binding:jar:0.1.3: Could not find artifact org.springframework:spring-core:jar:1.0.0.M3 in gemstone (http://dist.gemstone.com.s3.amazonaws.com/maven/release/)

So, it has to be fixed in Gemfire.

Older Cassandra Versions are no longer in standard Maven Repositories. So, I could not add support for 0.5.0 and 0.6.0 clients.

Interestingly, Cassandra 7 Client does not work with latest version. So, right now all Cassandra clients are compiled against 0.7.0 libraries.

I have no problem with third party or external libraries as long as they are trusted and available always.

Hope this is good to go.
Thanks,
Hari

Hi Hariprasad, I merged the patch to the master.

For Gemfire, I'll check with sbawaska if he can help (gh-55).
Let's not worry about Cassandra 5 and 6 for now.

Again, this is a great work. Thank you for your contribution!
Thanks!
--Michi

Hi Hariprasad,
I have been trying to figure out how to include README and CHANGELOG to the distribution. Ideally they should stay in the top-level directory, but I haven't been able to include these files without moving them under distribution/ directory. Any advice?
Thanks!
--Michi

... I think I figured it out. Adding <include>org.apache.ycsb:*</include> under moduleSet in distribution.xml seems to fix the issue.
--Michi

Spoke too soon. It's still not working :(

It surely did! Thank you, Hariprasad.
--Michi


Make nonmono flag closest pairs

In some cases (again, like the wolves and coyotes) it's not marking the closest instance to the flagged nonmono.

This is not relevant anymore.


Remove restart:always from default configs

Having the services always restart results in a race condition after 2 separate instances of the docker wp-local-docker are used. On machine restart (or docker restart) each instance has containers wanting to bind to the same ports but only one can bind to the ports on the local host.
It's been mentioned in slack a few times that this has caused people some issues. Having containers only restart when manually started would solve this.

I've had ongoing issues with ports clashing and have yet to be able to note the exact steps to replicate. For now the only solution I've found is having to restart my computer whenever I want to switch sites using WP Local Docker, which is kind of frustrating.
I'm going to experiment in coming days with removing the restart:always and I'll report back on if it helps my situation.

The behavior described here should not be present if containers are removed.
docker-composer down
or
docker stop $(docker ps -aq) && docker rm $(docker ps -aq)

Noting here that the default policy for restart is no: https://docs.docker.com/compose/compose-file/#restart.
This seems to be aimed at keeping containers live in case of software/hardware failures. I can't really really make of it for development work but I might be missing something.

@christianc1 Using docker-compose down will remove volumes defined in the file as well - which might not be expected behaviour for since generally volumes are defined for data persistence between container stop/starts. In most cases you would want the database to remain between uses if your working on the same project for more than one task.

@pattonwebz Volumes meant to persist are mounted from the host.  Containers can be safely removed.  The database is mounted from <project-root>/data/db, and the codebase is mounted from <project-root>/wordpress.  Configuration files are also mounted see <project-root>/config.

@christianc1 yup, my bad I already noticed my mistake and was editing my other comment I guess at same time as you were writing your :stuck_out_tongue:

Ok, it is a new dawn and a new day. Here are steps to recreating the issue I keep encountering and pretty much making me give up on using WP Local Docker.
Note: I have Docker set as a startup item, and MAMP Pro is not a startup item at all. Nor, any MySQL instances that I'm aware of.

Restart MacBook Pro.
Open iTerm and run docker ps (screenshot #1 of output)
Run docker stop $(docker ps -aq) && docker rm $(docker ps -aq) (screenshot #2 of output)
I opened both of my site's docker-compose.yml for clientx and clienty in VS Code and removed all instances of restart:always, save and close.


Menu sizes are wrong the first time running the mod

Because canvas sizes depend on resolution. Need to make sure the resolution changes right away.

Kinda still happens in some menus, but I think't it's fine


Update README.md

Hey, I really liked the project and was reading through the Readme.md file when I came across some of the spelling errors that you might have missed while editing it out. It would be really a great opportunity for me if I could contribute to this project. Thank you.

fantastic, thanks! Yes markdown does not check spelling


Add psycopg2-binary

Remove deprecation warning.

Needs testing. Just to be safe

Sorry for the late reply. Manual testing works just about fine. Do you need any other standard procedure? My intention is to just remove the annoying deprecation warning. Works smoothly for me.


Undo and set bugfixes, and entity handling

Fixes #57 and fixes #50 with the solutions proposed in each bugreport.

hmm, your fix for the undo now makes it so if I set a block with the same state as before, it still thinks that many blocks changed.

Woops, I forgot to check that. I'll see what's up.

I need to be more moderate and make multiple PRs. Sorry, people :/

Did the minimum review count change? (should I merge it?)

It changed when the activity here lowered and fewer people were reviewing stuff. Two reviews meant that the whole active team had to agree, since there were only three of us ding stuff :P Idk if it was the right decission, but it was the only way to keep developing the app in the meantime.
I don't recall this having any bugs, so it's good to merge, as far as I'm concerned. Idk if you tested or not tho...

Yes I tested it back in my previous review and again today. I'll merge it, if it breaks, it can be fixed SoonTM.


Add route_sort_order field to route in gtfs spec

 Issue by evansiroky
Wednesday Nov 28, 2018 at 08:20 GMT
Originally opened as https://github.com/catalogueglobal/datatools-ui/pull/264

The field route_sort_order was missing from the route table in the gtfs yml spec.  This fixes that.
This depends on https://github.com/conveyal/gtfs-lib/pull/154 being used by datatools-server to fully work.

evansiroky included the following code: https://github.com/catalogueglobal/datatools-ui/pull/264/commits

 Comment by evansiroky
Wednesday Nov 28, 2018 at 17:05 GMT

Was just copy pasting from some other area that had those quotes.  I removed them.  Shall I remove all the others as well while I'm at it?

 Comment by codecov-io
Wednesday Nov 28, 2018 at 17:12 GMT

Codecov Report

Merging #264 into dev will increase coverage by 0.23%.
The diff coverage is 48.57%.

@@           Coverage Diff            @@
##             dev    #264      +/-   ##
========================================
+ Coverage   4.92%   5.16%   +0.23%
========================================
  Files        324     324
  Lines      15361   15423      +62
  Branches    4636    4661      +25
========================================
+ Hits         756     796      +40
- Misses     12445   12474      +29
+ Partials    2160    2153       -7

Impacted Files
Coverage Δ

lib/editor/components/HourMinuteInput.js
0% <ø> (ø)
:arrow_up:

lib/editor/components/FareRulesForm.js
0% <ø> (ø)
:arrow_up:

lib/editor/components/FareRuleSelections.js
0% <ø> (ø)
:arrow_up:

lib/editor/components/ScheduleExceptionForm.js
0% <ø> (ø)
:arrow_up:

lib/editor/components/GtfsEditor.js
0% <ø> (ø)
:arrow_up:

lib/types/index.js
0% <ø> (ø)
:arrow_up:

lib/editor/components/EditorInput.js
0% <ø> (ø)
:arrow_up:

lib/editor/components/EntityDetails.js
0% <ø> (ø)
:arrow_up:

lib/editor/components/timetable/TimetableEditor.js
0% <0%> (ø)
:arrow_up:

lib/editor/components/timetable/HeaderCell.js
0% <0%> (ø)
:arrow_up:

... and 12 more

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 f288254...e50b91b. Read the comment docs.

 Comment by landonreed
Wednesday Nov 28, 2018 at 18:27 GMT

Oh, gotcha. Actually, it's fine to leave them in. I think there was some unquoted help content at one point that was causing issues, so we might as well just leave it in. Thanks.

 Comment by landonreed
Thursday Nov 29, 2018 at 17:29 GMT

@evansiroky, could you also move the field into a different position in the yml list? Adding it to the bottom has it awkwardly appear below the image upload. I think a more appropriate location would be next to route_type (that field's width would need to change to 6).

 Comment by evansiroky
Friday Nov 30, 2018 at 19:14 GMT

Order changed and validation for POSITIVE_INT and POSITIVE_NUM added.


Don't use Qid class object when hashing

When hashing Qid objects we were including the Qid class, but class hashes are not stable between restarts of the interpreter. This caused #3777 where the hash of unpickled GridQubit objects disagrees with other GridQubits to which they compare equal. Here we fix this by hashing based on the class name rather than the class object itself.
Fixes #3777

Are string hashes stable :)

@mpharrigan, that is a very good question :-)
I also noticed the tests were failing because we specifically do not want the hashes to depend on the specific Qid class, since, e.g. GridQubit(0, 0) and GridQid(0, 0, dimension=2) compare equal so should hash to the same thing. I've switched instead to just implementing the __getstate__ and __setstate__ functions used when pickling to skip storing the hash and recompute it when unpickling. Also added a test that this works as intended with pickle.

Looks like there are also other places where the hash of the class is used, like Moment?

I think hash of a class is fine; we just have to avoid serializing hashes when e.g. pickling, because the hashes are not stable from one run of the python interpreter to the next. I'll change the issue title to reflect this.


Support Groovy

Add support for compiling Groovy projects.

Done in https://github.com/renatoathaydes/jb/pull/15


Domain join v2

PR with updates from review.  Still need to determine folder names.

Closing PR.  See https://techcommunity.microsoft.com/t5/azure-lab-services-blog/use-labs-without-registering-joining-to-ad-aad/ba-p/3880261 for details.


docs(changelog): add 0.20.0 release notes

Release notes for 0.20.0.

Hold on, just spotted here that the newly added job that builds PyPy wheels for ARM64 actually builds AMD64. Will check that before releasing.

Well it looks like PyPy does not support Windows ARM in fact: https://pypy.org/download.html. My bad, since the CI job was green, I assumed it worked, but I should have checked the generated wheels better. Will update the changelog.


Make azure secret field nullable

https://github.com/rancher/rancher/issues/34756
Fixing schema to make azure applicationSecret nullable.
Corresponding Dashboard PR https://github.com/rancher/dashboard/pull/4218

Tested Azure Auth setup against this fix and the Dashboard fix https://github.com/rancher/dashboard/pull/4218  and changing ""Authorized Users & Group" list. Authorized Users can still login without issues.
Also tested user search.


Update google-cloud-nio to 0.123.7

Updates com.google.cloud:google-cloud-nio from 0.123.3 to 0.123.7.
GitHub Release Notes - Changelog - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "com.google.cloud", artifactId = "google-cloud-nio" } ]

labels: test-library-update, semver-patch

Superseded by #476.


Feature/refactoring

Q
A

Is bugfix?
✔

New feature?
✔

Breaks BC?
✔(configs format changed)

Tests pass?
✔

Fixed issues

Aliases in DBAL connection config
Removed default presets from config
Some refactoring

Merged. Thanks!


Add some helpers for Class

For better support for our projects, the forked project has been rename to hunt-reflection.
Thanks for your works.


Add explicit compat bounds for packages that use GEOS_jll

Addresses https://github.com/JuliaGeo/GDAL.jl/issues/126
I used #39444 as an example for this edit.

Perfect, thanks a lot!  After this, a PR to addd the same compat bounds in Yggdrasil would be the great (Dependency("GEOS_jll"; compat="~3.9")), but please use [skip ci] [skip build] in the commit message because we don't want to rebuild the packages, it's useless


Reading netcdfs with xarray and taking mean of subset returns nans

@Zeitsperre @huard In branch bias_correction, the test "test_bias_correction.py", selection and mean of subset returns nans everywhere so the codes fail. Any help would be appreciated!

This happens if some of the entries in the NetCDF are NaN. You could just try np.nanmean().

Hmmm I didn't realize everyone got these messages, sorry! Thanks, I can try doing that on the main array, but NRCan should not have any Nans in it. I will check!

No need to be sorry. My setting is that I receive all messages.  At least that would be the case for CaSPAr data.

The worst part is that the code is the exact same as the one used in the NRCan data test script, so I really am at a loss. I'll try and debug some more. I am extracting the points in a 2°x2°grid around a point in central Ontario, so there should be no NaNs there in NRCan 10km. I will try the nrcan code directly to see the differences.

Ok. Otherwise send me the NetCDF and I'll have a look

Thanks for the offer, but it's a ncml that links to like a few GB of ncfiles... I'll try and debug some more first!

Sounds good! Let me know if there's something I can do

Problem solved, it was a user error. Forgot to wrap the test suite in a class... still don't know why that changes anything but now works so I'll leave it at that. Thanks for the support :)


use the k8s auth from a string

Will merge when/if my k8s PR is accepted and merged.
https://github.com/kubernetes/kubernetes/pull/80303
Until than need to use the global env variable.
Signed-off-by: Krasi Georgiev<EMAIL_ADDRESS>

can this be closed now?

I am still waiting for a final answer upstream.

upstream seems either busy or not interested to give an answer so closing


Added Gunicorn

Added Gunicorn for production mode.
I have made minimal changes for add this web-server.
Fixed, exclude grep command from aux result.
Added Let's Encrypt via certbot
Need SERVERURL, EMAIL, CONFIGURATION_PATH, SSL ENV variables

Hi, could you please kindly explain what does Gunicorn do? Because I'm not familiar with it. Thank you!

https://vsupalov.com/what-is-gunicorn/
Application server running on the webserver to mediate Python callback requests from what I can gather.

Hi @ikidd, thank you for providing this, it is actually a good idea, if I understand it correctly, it is kinda like a apache server that wrapped a flask application?

Hi @ikidd, thank you for providing this, it is actually a good idea, if I understand it correctly, it is kinda like a apache server that wrapped a flask application?

https://flask.palletsprojects.com/en/2.0.x/deploying/
If i understand, web server in flask better for developing and testing.
Using separate server better for security and can using https and i added certbot for Let's Encrypt

Hi! I've been looking into the code for integrating Gunicorn, is it possible that you could create a PR that only contains changes for Gunicorn? I've noticed there are some other changes. Thanks a lot!

Hi! I've been looking into the code for integrating Gunicorn, is it possible that you could create a PR that only contains changes for Gunicorn? I've noticed there are some other changes. Thanks a lot!

Sorry, i will be more attentive.

Hi! I've been looking into the code for integrating Gunicorn, is it possible that you could create a PR that only contains changes for Gunicorn? I've noticed there are some other changes. Thanks a lot!

Sorry, i will be more attentive.

No need to say sorry and I love what you did to helping this project!!

Hi! I clone a copy of your branch, how should I start the dashboard with gunicorn?

export ENVIRONMENT = production
export SSL = true
cd /app/wgdashboard/src/ && ./wgd.sh start

Hi! I've noticed that the speed to load with Gunicorn is much slower compared to run directly from Flask, is there a reason why?

Hi! I've noticed that the speed to load with Gunicorn is much slower compared to run directly from Flask, is there a reason why?

OK, I testing it.

I think I know why, I just removed locking for every request, can you try to merge main to your branch?

Yes, it is working perfectly now!!

Hi! I've successfully merging your branch into my production branch #126 ! But I've noticed that if I do ./wgd.sh start running it with Gunicorn, it seems not be able to read the global variables, I'm still looking into it.

Everything is sorted out! I will move any further conversation to #126. Thank you so much for your hard-work!!

Hi, I'm running 3.0.6. I didn't see any option to provide the SSL variables for LetsEncrypt. What am I doing wrong?


required-server-files.json: No such file or directory

I'm encountering an error in the beforeBundling hook of the ImageOptimizationLambda class. The CDK app for my project is located in a directory named cdk. The Next app is located in a directory named web-frontend. These two directories both exist directly below the project root directory, which is named next-lambda.
.
├── cdk
│   ├── bin
│   │   └── cdk.ts
│   ├── lib
│   │   └── web-app-stack.ts
│   ├── cdk.json
│   └── package.json
├── web-frontend
│   ├── .next
│   ├── next.config.js
│   ├── ...
│   ├── ...
│   └── package.json

// cdk/lib/web-app-stack.ts

import { Construct } from 'constructs';
import { Stack, StackProps } from 'aws-cdk-lib';
import { Nextjs } from 'cdk-nextjs-standalone';

export class WebAppStack extends Stack {
    constructor(scope: Construct, id: string, props?: StackProps) {
        super(scope, id, props);

        new Nextjs(this, 'Web', {
            nextjsPath: '../web-frontend'
        });
    }
}

When I execute cdk deploy, the asset bundling stage fails with the error cp: cannot stat ‘/Users/Alistair/Sites/next-lambda/web-frontend/.next/web-frontend/.next/required-server-files.json’: No such file or directory. The actual locations of required-server-files.json are web-frontend/.next and web-frontend/.next/standalone/.next.
I've tried moving the Next application into the cdk directory and changing the value of the nextjsPath prop to ./web-frontend. Using this directory structure, the error reads cp: cannot stat ‘/Users/Alistair/Sites/next-lambda/cdk/web-frontend/.next/standalone/web-frontend/.next/required-server-files.json’: No such file or directory. In this case, the required-server-files.json does exist at the location specified in the error message, but seemingly could not be found when the code ran.

Hi thanks for reporting, I'll try to reproduce it and fix.

@alistairdivorty which version are you using?
@khuezy could be wrong output tracing root

Yes I believe so, if you're executing the build from cdk, your web app would be one level up which will mess up the build.
nextBuild.nextStandaloneBuildDir will have the wrong path

I am hitting this as well in a yarn monorepo that is using turbo. The path to required-server-files.json has <app-dir>/.next twice.

@lukeshay what does your file structure look like?

@alistairdivorty which version are you using? @khuezy could be wrong output tracing root

Version 2.0.2. I tried rolling back to 2.0.1 but encountered the same issue.

@lukeshay what does your file structure look like?

root
  -> apps
    -> infra (contains cdk)
    -> website (contains nextjs app)

This is how I have the Nextjs construct configured:
const nextjs = new Nextjs(this, "Website", {
  buildPath: resolve("../.."),
  nextjsPath: resolve("../website"),
});

I have to run cdk synth from apps/infra for it to work properly.

@alistairdivorty can you try resolving the buildPath and nextjsPath as @lukeshay has done above?

@alistairdivorty can you try resolving the buildPath and nextjsPath as @lukeshay has done above?

The stack deploys if I resolve the nextjsPath and set the value of experimental.outputFileTracingRoot in next.config.js to path.join(__dirname, '../'), although the Server Handler Lambda function reports the following error:
{
    "errorType": "Runtime.ImportModuleError",
    "errorMessage": "Error: Cannot find module 'server'\nRequire stack:\n- /var/runtime/index.mjs",
    "stack": [
        "Runtime.ImportModuleError: Error: Cannot find module 'server'",
        "Require stack:",
        "- /var/runtime/index.mjs",
        "    at _loadUserApp (file:///var/runtime/index.mjs:1000:17)",
        "    at async Object.UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1035:21)",
        "    at async start (file:///var/runtime/index.mjs:1200:23)",
        "    at async file:///var/runtime/index.mjs:1206:1"
    ]
}

There's something funky going on w/ the path building when joining paths with "..".

The directory structure of the Lambda function once deployed:
.
├── Users
│   └── Alistair
│       └── Sites
│           └── next-lambda
│               └── web-frontend
│                   ├── server.cjs
│                   └── server.cjs.map
└── web-frontend
    ├── node_modules
    │   └── ...
    ├── package.json
    └── server.js

In the quickstart readme, there's this line of code that converts the absolute to relative path:
 // make path relative to the app root
      nextjsPath: path.isAbsolute(props.nextjsPath) ? path.relative(app.appPath, props.nextjsPath) : props.nextjsPath,

If you don't do this and pass it the absolute path, you'll get that structure in the build output.
The issue lies when we're doing path.join(x, nextjsPath, y)

Possible fix here: https://github.com/jetbridge/cdk-nextjs/pull/62 - would appreciate it if you can try it out

Possible fix here: #62 - would appreciate it if you can try it out

For my setup – Next app and CDK app in adjacent directories – errors still occur in the Lambda function code:

With projectRoot set to '../' and nextjsPath set to resolve('../web-frontend'):  Error: Cannot find module 'server'\nRequire stack:\n- /var/runtime/index.mjs.
With projectRoot set to '../' and nextjsPath set to '../':  '../web-frontend/server.handler' is not a valid handler name. Use absolute paths when specifying root directories in handler names..

Would you mind please testing out version 2.0.3 and let us know if that fixes your issues?

Would you mind please testing out version 2.0.3 and let us know if that fixes your issues?

It does! Thank you @revmischa and @khuezy for the fix, and for this great project.


Explorer: Show asset source chain

The Chore
The asset by ID page does not show what chain an asset came from. See also Icon support for multi chain
### Tasks
- [ ] Add source chain ID to asset query
- [ ] Add row on asset by ID showing source chain ID
- [ ] Make source chain ID link to the source chain explorer and contract

Originally poitned out by @jeremyletang

{
  assetsConnection {
    edges {
      node {
        id
        source {
          ... on ERC20 {
            chainId
          }
        }
      }
    }
  }
}

Works on testnet and below, but is not yet supported in mainnet. Rather than add in an environment switch, I'm going to wait for this version so be deployed.


Refresh status page on git checkout

Feature request: Refresh status page on git checkout
Note: it works if you're running the checkout from the git status page but not from another tab.
I usually have the status page open in a pane and I'm working in another pane.
Every time I'm checking out a branch (from the command palette), I have to select the status page to refresh it.
Could we refresh it automatically after a git checkout ?
Looking at the CheckoutCommand
util.view.refresh_gitsavvy(self.window.active_view(), refresh_sidebar=True)
it seems we only refresh the active view.
We should hunt for GitSavvy views (at least visible views in the current window) and refresh them.
Maybe we should modify refresh_gitsavvy to refresh all views or create a refresh_all method.
Other commands (pull, ...) could benefit from this.
WDYT ?

Alternatively, we would refresh the status dashboard when it is focused.


Speed up imports

Removes pandas (no resource uses it) and fixes aiohttp importing as suggested in https://github.com/openai/openai-python/issues/380.
I think this gets us from ~5 seconds to 2.5 seconds:

@hallacy Was curious about what tool you used to get the visualization above.

Looks like tuna? I've seen some accuracy issues using tuna, I recommend one of these two: https://github.com/openai/openai-python/issues/380#issuecomment-1498200495

Looks like tuna? I've seen some accuracy issues using tuna, I recommend one of these two: #380 (comment)

Thanks @hauntsaninja. From the README of tuna it sounds like it's also compatible with importtime, you just save the log locally and parse it with tuna.


Code cleanup

Gets rid of all the go vet warnings.
Updates the version of go compiler.

@gondor can you give a look at this? thanks
/cesar

@calvernaz I appologize, I totally missed this pending PR.  Looks great, thank you!


Add recipe for blueconnect

Add bitbake recipe for blueconnect which is a library for creating
bluetooth demos.
Signed-off-by: Viktor Sjölind<EMAIL_ADDRESS>

@GordanM oh yeah forgot about that, will do :)

Added ofono as a RRECOMMENDS instead. It is really up to the application using the library if that functionality is used or not.

@GordanM I updated the recipe to follow the template but omitted the PACKAGES part since I wanna build all the stuffs. Is this OK? :)


Module 4 exercises [Saida Abubakari]

WS2_M4E1_Saida Abubakari.docx

Well done, Saida. You clearly grasped the material outlined in Module 4 and successfully applied it to these exercises. Thank you for your participation! Please be sure to fill out the post-Module survey before you begin the next Module.


Update dependencies

Updated husky from v4 to v7
Removed package-lock.json to resolve conflicts on NPM 7
Updated ajv dependency to 8.6

Why?

@anonrig I’ve enabled dependabot so it updates dependencies one by one, so it’s clear which one breaks the build.
Also there were some other unrelated changes - e.g. package-lock should not be committed for libraries, only for applications, scripts changes - they should not be bundled and it’s not certain they are needed…

Hi @epoberezkin. Thank you for the explanation.
I would like to tell that this was my first and last contribution to Ajv. Nothing personal. I think that the communication is handled in the worst possible way. For the sake of not destroying other developers willingness to contribute to open-source and the projects that they believe, I recommend communicating more rather than just closing a pull request without a response.
After all, we're all humans. What separates us from machines are our emotions and our way of communication with each other.

Sorry to disappoint, communication could have been better, that's never the intention to make you feel bad or unwelcome to contribute.
It's always more effective, unless the contribution is minimal and/or you're certain that it's in line with the expectations/requirements of the maintainers (not just with ajv, with most projects):

limit the scope to the change to just one minimal thing achieving one purpose.
unless it's an open issue or docs typo correction, discuss the change via the issues.
expect that the change will not be accepted, even if you strongly believe it is necessary.

In this case my [incorrect] assumption was that it was abandoned without being completed, as I didn't initially noticed it and there was no follow up...


What should appear in the fcc console?

Is your feature request related to a problem? Please describe.
Currently test output appears in both the test suite, in the left frame, and below the editor.  This seems like unnecessary duplication when viewing on a desktop, though it could be useful on mobile.
Describe the solution you'd like
The fcc console could exclusively show error reports and console logs, updating as the user edits their code.  See #37570 for more discussion.
On desktop, clicking run the tests could scroll the test suite into view (as it can disappear if there are lengthy instructions).
On mobile, it would depend. If there are no errors or logs it would show the test suite. If there are then the console would be shown instead.  The idea being the console output should be the most useful thing to help them debug, though it would involve some flipping back and forth between the console output and the test suite.  I'm not sure what's best for mobile.
Credit to @RandellDawson for pointing out this issue.

#37625 is related.  That challenge is confusing because you're told to look at the console to see the error, but it is not shown in the fcc console.  It only appears in the browser console.

// running tests
// tests completed
// console output
the logs, but only one copy

I'm in favor of this - there is one log for each test which makes the output confusing. I think that it should only show exactly what the code would log.

Looks like this has been implemented @ojeytonwilliams? Safe to close?

It's certainly better than it was, but I'll defer to @RandellDawson on this one.

I think it can be closed.


Bar chart widget

Sparklines are great for one variable, but it would be great to have other kind of charts available. What would it take to get a simple barchart with multiple variables working?

can you help me in suggesting how to add Widget to show Date and Time.

Hi @hugocore thanks for sharing, looks like a very cool project! Could you share some of the code with us, especially for the Highcharts stuff? Thanks!

@jritsema How do i install freeboard-jqplot plugin in freeboard?

@abhirocks550 there are installation instructions in the readme

I try it and it doesn't recongnize the jqplot widget when I try it on google chrome

I found this plugin that has a great selection of charts: https://github.com/stufisher/freeboard-flot-extended


this is not an issue

is there anything i can do to get my sold blooks back some bad person logged into my account and sold all my chromas

no


Release: v2.9.0

This issue template is used to track the rollout of a new KEDA version.
This issue is to track v2.9.0 release currently planned for ~08/12~ Dec 9th.
For the full release process, we recommend reading this document.
Prerequisites

[x] Document new breaking changes & deprecation policy
[x] Announce deprecation of Prometheus metrics in Metrics Adapter (https://github.com/kedacore/keda/issues/3919)
[x] Document new dashboard mentioned in blog post (https://github.com/kedacore/keda-docs/pull/985)

Progress

[x] Prepare changelog
[x] Add the new version to GitHub Bug report template
[x] Create KEDA release
[x] Publish new documentation version
[x] Setup continous container scanning with Snyk
[x] Prepare & ship Helm chart
[x] Prepare next release
[x] Provide update in Slack
[ ] Tweet about new release

It's Twitter official - We're done!
https://twitter.com/kedaorg/status/1601212754970525696


Failed to load native tensorflow runtime

Please make sure that this is a build/installation issue. As per our GitHub Policy, we only address code/doc bugs, performance issues, feature requests and build/installation issues on GitHub. tag:build_template
System information

OS Platform and Distribution : Windows Server 2012 R2 Standard
TensorFlow installed from : Binary (pip)
TensorFlow version: 2.2.0
Python version: 3.7.2
Installed using : pip
CUDA/cuDNN version: NA
GPU model and memory: NA

Tensorflow is installed without any issues. But when running my program I am getting the below error.

D:\Tetherfi\TRS\TFaceAuthServer>python tfacecompare.py
Traceback (most recent call last):
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\site-packag
es\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\site-packag
es\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\site-packag
es\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_hel
per
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, descript
ion)
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\imp.py", li
ne 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\imp.py", li
ne 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "tfacecompare.py", line 20, in
import tensorflow.keras
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\site-packag
es\tensorflow_init_.py", line 41, in
from tensorflow.python.tools import module_util as module_util
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\site-packag
es\tensorflow\python_init.py", line 50, in
from tensorflow.python import pywrap_tensorflow
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\site-packag
es\tensorflow\python\pywrap_tensorflow.py", line 69, in
raise ImportError(msg)
ImportError: Traceback (most recent call last):
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\site-packag
es\tensorflow\python\pywrap_tensorflow.py", line 58, in
from tensorflow.python.pywrap_tensorflow_internal import *
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\site-packag
es\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in
_pywrap_tensorflow_internal = swig_import_helper()
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\site-packag
es\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_hel
per
_mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, descript
ion)
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\imp.py", li
ne 242, in load_module
return load_dynamic(name, filename, file)
File "C:\Users\kiolocal\AppData\Local\Programs\Python\Python37\lib\imp.py", li
ne 342, in load_dynamic
return _load(spec)
ImportError: DLL load failed: The specified module could not be found.
Failed to load the native TensorFlow runtime.
See https://www.tensorflow.org/install/errors
for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

I have tried installing visual c++ redistributable for 2015 (64 and 32 bit), but still the same. Reinstalling of python also didn't help.
Please guide and help to solve this.

@shreeraj04
Could you please refer to this comment and let us know if all the requirements are met as this is the common reason for the error.


requirements

Unimport isn't a dependicy for this project. inspectortiger.plugins.community has a hook for unimport but it is disabled by default.


Update to last 5.0.0-beta.2 and get Generic parameter 'T' could not be inferred on all CloudKit Operation

After updating to 5.0.0-beta.2 I get now errors on all CloudKit operations : Generic parameter 'T' could not be inferred.
Should I update something ?

Hi @imrabti - sorry, didn't have time to get to this yet. Will look into it tonight.
Can you share the error message, and your code which is causing it?

Hi @imrabti - this is now fixed by the changes in PR #902. Would you be able to compile your project against this branch and let me know?
My own integration project using CloudKit compiles fine (and I did see the original issue you referred to). So, I'm pretty confident, just would like to check that your usage is also okay.

@imrabti closing this for now - the fix is merged in development and will be released in a new Beta in the next day or so.

@danthorpe I just tested on my project it is working smoothly, thanks :-)


Help?

I recently updated, and now the application is prompting for an email and password. I'm new to Docker, AI, and related technologies. How can I restore the web UI without being required to enter an email and password?

Hi, Thanks for creating issue! Due to recent reports on losing chat logs and security concerns from some users, we decided to introduce authentication feature with #216. You should have the option to import all your chat logs when you sign up (all your information is saved locally). More detailed instructions here: https://github.com/ollama-webui/ollama-webui#how-to-install-
If you have any other questions or having an issue migrating to a more secure recent version, feel free to reach out anytime, Thanks!

I've successfully installed it, created my admin user, but it cannot connect to my local instance of Ollama, which I know is running because I checked. I'm unable to open the settings or anything. I'm using the Brave browser.

Could you share the screenshot of the webui and the commands you used to deploy the webui with us? Thanks!

docker run -d -p 3000:8080 --add-host=host.docker.internal:host-gateway -v ollama-webui:/app/backend/data --name ollama-webui --restart always ghcr.io/ollama-webui/ollama-webui:main

Hmm, if both ollama and ollama-webui is running on the same machine, here's an alternative method: https://github.com/ollama-webui/ollama-webui/blob/main/TROUBLESHOOTING.md#ollama-webui-server-connection-error

That Worked! Thanks.

That  got it to connect properly, but I still can't open the settings or the admin panel.

Hmm, the account you logged in with has the admin privilege right? Could you share your browser console logs with us?

Also, how would I produce the log files you need? I'm not a developer, but I know my way around if I have some instructions.

Just tried with brave browser on m1, cannot seem to reproduce the issue :/ If possible, could you try accessing the webui from other browser and see if the issue still persists? Also, checking the logs all depends on the system/browser you have, so you'd be better off googling "how to open dev tool". Thanks!

Okay, I'm having so many problems. Can you walk me through the steps to revert to the last version before the backend was changed? It was literally so simple to install, but now it's just complicated and buggy.
Also, when I try to log in with my existing username for the account I just created, I keep getting the wrong password or mistyped password, even though I'm directly copying and pasting my password from my password manager.

not available

0.4f11b3d4.js:1
Object
auth
:
true
status
:
true
version
:
"v1.0.0-alpha.42"
[[Prototype]]
:
Object
2.fc2f1f5a.js:47 IDB Not Found
2.fc2f1f5a.js:47
Array(0)
length
:
0
[[Prototype]]
:
Array(0)
2.fc2f1f5a.js:47 0.1.17
2.fc2f1f5a.js:36
Object
API_BASE_URL
:
"/ollama/api"
models
:
['mistral-2cores:latest']
notificationEnabled
:
true
[[Prototype]]
:
Object
3.54cff0a9.js:1 initNewChat
3.54cff0a9.js:1
3.54cff0a9.js:1 initNewChat

You should be able to revert by pulling the old container image with this command: docker pull ghcr.io/ollama-webui/ollama-webui@sha256:38a4629859bb94b7aa7206240ccc426b46e8384d580d1b67dd9e214ae38cd2f5
But I strongly suggest you stay up-to-date with the latest version, I'll try to help you out to the best of my ability so, please bear with me! Join our discord for faster help, if you haven't already. Thanks!


Can't Load Again After Unload XIVAlexander

How to repro:

Load XIVAlexander
Unload XIVAlexander
Load XIVAlexander again

I assume by unload it will remove the hook, turns out it doesn't.
I'm doing this to change opcodes without restarting client

Is this a case after installing, or from load once? Changing opcodes do not require reloading XivAlexander - opening Opcode editor and saving will apply the changes immediately. Anyhow, I'll check what's wrong.

from load once

This has just happened to me as well.

I can't reproduce this - it unloads and loads just fine for me. Any particular settings that you've configured?

Just default configuration.
Here's the error

I login from launcher (both default and xivlauncher effected), still on main menu
Start xivalexander64.exe, choose "load once" then "load"
then from xivalexander menu i choose "unload"
repeat step 2
error shows up

Having the exact same problem aswell, need to restart the game everytime i unload it so i can load it again

Why do you want to load it again, by the way? If you're trying to apply different opcodes, simply saving in opcode editor will do.

For my case, i have another application (Auto Synth) that will not work when Alex is running so what i used to do is turn Alex off if im using Auto Synth and turn it back on after im done.

Is it a .NET based program? As a workaround for now, you can close XivAlexander windows (just hide it without exiting), including main, log, and configuration windows, and then run other program, and it should work.

I believe its a .NET based program yea.The workaround is great and i think ill keep doing this from now on LOL.
Thanks for the help!

AutoSynthesis and Alexander have always worked fine together for me and still does.

This was exactly what happened to me before installing. I can’t remember why I did it but I know that loading and unloading Alexander always worked before. It’s a non-issue for me now, using the installed DLL.
That said, is there a problem with renaming the DLL “dxgi.dll” for any possible conflicts with Dalmud plugins?

As a workaround, you can copy xivalex files to another folder and launching it from there. While I can't replicate this problem, it's probably about the program not being completely unloaded, and this error is caused by that. Having XivAlexander in an alternative directory will make the system treat two copies of XivAlexander to be different ones.


Task log response does not conform to specs

Problem description
Accessing GET /v1/tasks/{id} via py-tes v0.3.0 yields the following error:
UnmarshalError: {'logs': [{'start_time': '2020-05-07T18:50:27.000Z', 'end_time': '2020-05-07T18:50:31.000Z', 'exit_code': 0}], 'metadata': {'GROUP_NAME': 'ELIXIR-CH', 'USER_ID': 'some_user_name'}, 'start_time': '2020-05-07T18:49:58.000Z', 'end_time': '2020-05-07T18:50:43.000Z', 'system_logs': [None]} could not be unmarshalled to type: ExecutorLog

Expected outcome
The call should return the task log.
Probable cause
It appears that the response does not conform to the ExecutorLog model defined by py-tes v0.3.0 in the models.py module as:
@attrs
class ExecutorLog(Base):
    start_time = attrib(
        default=None,
        convert=timestampconv,
        validator=optional(instance_of(datetime))
    )
    end_time = attrib(
        default=None,
        convert=timestampconv,
        validator=optional(instance_of(datetime))
    )
    stdout = attrib(
        default=None, convert=strconv, validator=optional(instance_of(str))
    )
    stderr = attrib(
        default=None, convert=strconv, validator=optional(instance_of(str))
    )
    exit_code = attrib(
        default=None, validator=optional(instance_of(int))
    )

This model is identical to the one used in the latest version of py-tes (0.4.0) is in line with the current version of the TES specs, which defines the ExecutorLog model as:
  tesExecutorLog:
    type: object
    properties:
      start_time:
        type: string
        description: 'Time the executor started, in RFC 3339 format.'
      end_time:
        type: string
        description: 'Time the executor ended, in RFC 3339 format.'
      stdout:
        type: string
        description: |-
          Stdout content.
          This is meant for convenience. No guarantees are made about the content.
          Implementations may chose different approaches: only the head, only the tail,
          a URL reference only, etc.
          In order to capture the full stdout users should set Executor.stdout
          to a container file path, and use Task.outputs to upload that file
          to permanent storage.
      stderr:
        type: string
        description: |-
          Stderr content.
          This is meant for convenience. No guarantees are made about the content.
          Implementations may chose different approaches: only the head, only the tail,
          a URL reference only, etc.
          In order to capture the full stderr users should set Executor.stderr
          to a container file path, and use Task.outputs to upload that file
          to permanent storage.
      exit_code:
        type: integer
        format: int32
        description: Exit code.
    description: ExecutorLog describes logging information related to an Executor.
    required:
    - exit_code
    readOnly: true

Instead, TESK returns the following JSON object:
{
    "logs" : [ {
        "start_time" : "2020-05-07T18:50:27.000Z",
        "end_time" : "2020-05-07T18:50:31.000Z",
        "exit_code" : 0
    } ],
    "metadata" : {
        "GROUP_NAME" : "ELIXIR-CH",
        "USER_ID" : "some_user_name"
    },
    "start_time" : "2020-05-07T18:49:58.000Z",
    "end_time" : "2020-05-07T18:50:43.000Z",
    "system_logs" : [ null ]
}

Steps to reproduce
Install py-tes 0.3.0 with:
pip install py-tes==0.3.0

Then in a Python instance execute:
import tes

task_id = "VALID_TASK_ID"  # add here ID of task that you have access to

tes_client = tes.HTTPClient(
    url="https://csc-tesk.c03.k8s-popup.csc.fi"
)

task_log = tes_client.get_task(
    task_id=task_id,
    view="FULL",
)

Actually, to my eyes it looks conformant with the spec.
"logs": [
        {
          "logs": [
            {
              "start_time": "2020-05-11T08:36:22.000Z",
              "end_time": "2020-05-11T08:36:28.000Z",
              "exit_code": 0
            }
          ],
          "metadata": {
            "GROUP_NAME": "EBI",
            "USER_ID": "be1845f95de525c1b402811ec516e19780ec1ac0_elixir-europe.org"
          },
          "start_time": "2020-05-11T08:35:58.000Z",
          "end_time": "2020-05-11T08:36:48.000Z",
          "system_logs": [
            null
          ]
        }
      ],
      "creation_time": "2020-05-11T08:35:58.000Z"
    }
  ]

This is a snippet of TESK task output. Outer logs should be of type tesTaskLog and inner of  tesExecutorLog. It looks as if teskTaskLog (the outer one) was being unmarshalled to  tesExecutorLog the inner one. Maybe this is a problem with py-tes v0.3.0?

There are 2 separate problems:
py-tes seams not to like this bit:
 "system_logs": [
            null
          ]

This - I am not even sure, if is TES spec compliant or not and I will fix that by removing system_logs altogether in case they contain only nulls.
But there is an additional problem and that is an error in py-tes, that occurs, when an executor only started and does not have all fields filled in:
 {
      "id": "task-e8e3e235",
      "state": "QUEUED",
      "name": "Hello World",
      "description": "Hello World, inspired by Funnel's most basic example",
      "executors": [
        {
          "image": "alpine",
          "command": [
            "echo",
            "TESK says: Hello World"
          ]
        }
      ],
      "logs": [
        {
          "logs": [
            {
              "start_time": "2020-05-18T13:50:38.000Z"
            }
          ],
          "metadata": {
            "USER_ID": "anonymousUser"
          },
          "start_time": "2020-05-18T13:50:36.000Z",
          "system_logs": [" "]
        }
      ],
      "creation_time": "2020-05-18T13:50:36.000Z"
    }

This correct example will fail with ExecutorLog trying to get unmarshalled to TaskLog first, succeeding and breaking the whole JSON parsing. This can be only fixed in py-tes, I can only think of some workaround in TESK.

Fixed in this release: https://github.com/EMBL-EBI-TSI/tesk-api/releases/tag/v0.6
Fixes:

system_logs only added to output, when non null
stdout filled with an empty string to workaround problems with the parser in py-tes.


Remove oldfulgora package and contents

also remove associated unit tests. This should all be GraphComputer from now on.

As we discussed recently, it turns out that we don't actually want to remove the associated unit tests (as would have been done by #966).  We want to instead port the unit tests forward to the new fulgora interfaces.  I removed oldfulgora but kept the tests in 5b8bcce7f2d645fe3e27a93a18ab5ca34bf86de5.  The tests compile as of that commit, though two of them have problems:

The pagerank test is @Ignored.  Per offline discussion, we're not going to use the TP3 PR impl, but instead a vertexprogram (could be pagerank, could be something else, just as long as it has an interesting access pattern for testing) written and maintained as part of Titan.  I made #863 for this.

The TitanPartitionGraphTest of degree counting over partitioned vertices is broken.  This issue seems to be independent of the migration from old to new fulgora.  This method is not @Ignored like the pagerank test, so it still breaks builds.


really love the idea, is this repo still maintained?

I really like this idea, most new models have similar API, but an UI interface would be very nice. is there a way to add new models easily? like claude v3
Thanks

I like this project too, and I've got my own branch going -- added a few features like Anthropic's new messaging API for Claude3, and a system prompt field. You're welcome to check it out
https://github.com/quilime/openplayground
It's not as clean as it could be, but I think this project is v useful!


Usage of Flashbax

Hello everyone,
Amazing work you've done here! I see you've updated your algorithms to use Flashbax. Glad you thought it was a worthwhile change to make. I thought I'd just give my two cents as to how its being used in the q learning scripts. Looking at your use case it would make more sense to use the trajectory buffer instead of the flat buffer. Usually one would add trajectories sequentially and allow these trajectories to be sampled in a variety of ways (any possible subsequence). If I understand correctly, what you are doing here is adding entire trajectories as data items that are then being sampled in a batch. Either option is valid and have their benefits but in both cases a trajectory buffer would be more apt. In your exact use case, a trajectory buffer with entire trajectories being stored as data items would simply use a sample_sequence_length=1 and any desired batch size. This would be faster as you're performing less indexing in the sampling function and I found that there are pretty significant indexing issues with JAX right now on certain accelerators.
This might not be worth your time to change as the performance gains would be only slight but I thought I'd let you know.

@mttga !

Hi Edan,
thank you very much for reaching out! We really appreciate your contribution in refining our use of flashbax. Regarding the replacement of the current flat buffer with a trajectory buffer, I concur with your suggestion. Currently, our implementation is as follows:
# INIT
buffer = fbx.make_flat_buffer(
    max_length=config['BUFFER_SIZE'],
    min_length=config['BUFFER_BATCH_SIZE'],
    sample_batch_size=config['BUFFER_BATCH_SIZE'],
    add_sequences=True,
    add_batch_size=None,
)
# sample_traj_unbatched is (max_time_steps, ...)
buffer_state = buffer.init(sample_traj_unbatched)

# ADDING
# sample_traj is (max_time_steps, num_envs)
buffer_traj_batch = jax.tree_util.tree_map(lambda x:jnp.swapaxes(x, 0, 1), sample_traj) # put the batch size (num envs) in first axis
buffer_state = buffer.add(buffer_state, buffer_traj_batch)

# SAMPLING
rng, _rng = jax.random.split(rng)
learn_traj = buffer.sample(buffer_state, _rng).experience.first # (batch_size, max_time_steps, ...)
learn_traj = jax.tree_map(lambda x: jnp.swapaxes(x, 0, 1), learn_traj) # (max_time_steps, batch_size, ...)

Do you agree that the following would be more appropriate?
# INIT
# Instantiate the trajectory buffer, which is a NamedTuple of pure functions.
buffer = fbx.make_trajectory_buffer(
    max_length_time_axis=config['BUFFER_SIZE']//config['NUM_ENVS'],
    min_length_time_axis=config['BUFFER_BATCH_SIZE'],
    sample_batch_size=config['BUFFER_BATCH_SIZE'],
    add_batch_size=config['NUM_ENVS'],
    sample_sequence_length=1,
    period=1,
)
# sample_traj_unbatched is (max_time_steps, ...)
buffer_state = buffer.init(sample_traj_unbatched)

# ADDING
# sample_traj is (max_time_steps, num_envs)
buffer_traj_batch = jax.tree_util.tree_map(
    lambda x:jnp.swapaxes(x, 0, 1)[:, np.newaxis], # put the batch dim first and add a dummy sequence dim
    sample_traj
) # (num_envs, 1, time_steps, ...)
buffer_state = buffer.add(buffer_state, buffer_traj_batch)

# SAMPLING
rng, _rng = jax.random.split(rng)
learn_traj = buffer.sample(buffer_state, _rng).experience # (batch_size, 1, max_time_steps, ...)
learn_traj = jax.tree_map(
    lambda x: jnp.swapaxes(x[:, 0], 0, 1), # remove the dummy sequence dim (1) and swap batch and temporal dims
    learn_traj
) # (max_time_steps, batch_size, ...)

Additionally, I'd like to mention that my approach was inspired by the DQN with Vectorised Gym Environments notebook featured on the examples page of Flashbax.


Backup and Restore Codes

Reported by stephenjudge on 8 Mar 2014 17:44 UTC
Many sites that offer two factor authentication offer a method to recover access to your account should you loose your authentication device, this is usually SMS authentication or a set of printable codes. However some sites and OTP implementations don't have such a feature and if you loose your authentication device, you loose access to your account.
An example of this is if you add the Google Authenticator plugin to a self-hosted Wordpress blog. The plugin does not provide a secondary method of authentication. In their FAQ there is this question:
"'''Can I create backupcodes'''?
''No, but if you're using an Android smartphone you can replace the Google Authenticator app with Authenticator Plus.
It's a really nice app that can import your existing settings, sync between devices and backup/restore using your sd-card.
It's not a free app, but it's well worth the money.''"
This proprietary app, Authenticator Plus, does look very nice and has some nice features, but the most beneficial I think is its ability to backup and restore codes.
This could be a huge addition to FreeOTP and I would like to request that someone considers this feature and looks at a way of implementing it. I am not able to code myself.

Modified by stephenjudge on 8 Mar 2014 17:46 UTC

Comment by davidstrauss on 14 Mar 2014 04:32 UTC
What I would really like is for it to use a standard, FOSS service like Firefox Sync to shuffle data between devices in a secure way.

Comment by npmccallum on 28 Mar 2014 18:20 UTC
Doing is a really great idea. But without encryption support, it is not possible in a secure way. We need to implement encryption first.

Comment by patcon on 5 Jan 2015 21:38 UTC
+1 from me. This is the only feature I really miss. (Having just spent the last 2 hours trying to recover access to a service using 2FA :)
As a work-around in the meantime, there was a review in the android app store that offered a great solution:
https://play.google.com/store/apps/details?id=org.fedorahosted.freeotp&reviewId=Z3A6QU9xcFRPRWNKSE93UTRlVENSall1Wi1FNnY0TVd0SGtDNHhzUEdvVnBoaUZXbHloM2RoVF9NN3NTNFdoSGRoWXZLMWRIcF9hYS1TYlM3MFdteGE2ZHc&hl=en

After playing with it a bit the only downside is the backup. It needs a proper way to generate a local backup which I could copy to a computer with a truecrypt volume using sftp. To backup you need to use the adb command on your computer. Connect your phone and run: adb backup -f freeotp.bak org.fedorahosted.freeotp That will store the FreeOTP data to the file freeotp.bak. To restore this data, just run: adb restore freeotp.bak

I suppose you need to be decently tech savvy to use it, but it's better than nothing :)

Comment by jpl on 16 Jan 2015 02:09 UTC
YES!  I have some more thoughts about this in ticket #6.
Being able to view the saved tokens would allow manual export to pen/paper, but there's so much more that could be done with import/export/backup/sharing/migrating, all securely, and the crypto isn't that hard.

Comment by woi on 17 Jul 2016 18:51 UTC
Replying to npmccallum:

Doing is a really great idea. But without encryption support, it is not possible in a secure way. We need to implement encryption first.

I think it would be sufficient to save the backup as an encrypted archive. At least as a first step.
So the user would manually chose to create a backup, then be asked for a password, which then is used to create an AES encrypted zip file (or which ever achieve format is convenient).
Threema for example backs up like this.

Comment by zeevro on 20 Jul 2016 16:12 UTC
Android can now back up app data to google drive automatically. Adding support for that would be a good idea IMHO.


simpson's paradox is added

I need to do many changes because I got to know many new features about it.


Where do i put the models?

I donwloaded this workflow and have this node i need to add a model for. where do i put the model? I've read the readme file and it doesn't specify. also, the link that's there "https://pan.baidu.com/s/1T_uXMX3OKIWOJLPuLijrgA?pwd=1yye". isn't linking to anything.

You can find the link to download the model in the readme description of this node
https://github.com/chflame163/ComfyUI_LayerStyle?tab=readme-ov-file#YoloV8Detect
Usually there are two links here, one of which is BaiduNetdisk. You can find the websites you can access and download from here.
I will try my best to upload the model to GoogleDrive, but my Google space is already full and I cannot purchase it because I am in China.

Thank you for the response. That's a huge help. I would say just the most recent models would be fine if space is a problem
BUT
It ight have been a small part of the question but the main question was where do i put the models. It says i put them in comfyui/models but into what folder? I do have a folder with some other models that does masking detection but it works rather differently and i'm not sure which folder this is reading from.
If you could help me again, that would be very nice.

That is in the ComfyUI where you are working, like this ```C:\ComfyUI_windows_portable\ComfyUI\models``

Thank you for replying. Going back to my original question, where do i put this file.
I understand that the main folder is ComfyUI/models. However with most other custom nodes, there is a dedicated folder that's created with the custom node to put all of the models into. I don't know which one i'm meant to put the model into for layermask. I'm looking to use the node below and don't know where to put this model. I also tried putting the file just in the models folder like you said but no luck, it's not picking it up.
Much appreciated

You can follow the instructions in the readme and place these model files in the ComfyUI/models/yolo folder

ahh. i did miss it. my fault. thank you

You can follow the instructions in the readme and place these model files in the ComfyUI/models/yolo folder

thank you!! its help me to solve the problem


advapi32-sys 0.1.2 has * dependencies

I would recommend yanking advapi32-sys 0.1.0 to 0.1.2, and releasing 0.1.3 which is essentially the same as 0.1.2, but without * dependencies, using real supported versions instead.
Alternatively, yank 0.1.* without releasing 0.1.3, it's not that anyone is using 0.1 anyway.
This causes issues with -Z minimal-versions builds (https://github.com/rust-lang/cargo/issues/5657).

To be clear, this isn't about actual users of v0.1, which there are none. It's about minimal-versions picking 0.1 just because it exists, and other crates weren't specifying their dependencies correctly (e.g. because other crates used advapi32-sys = "*" to get 0.2).
I've asked several people to yank problematic versions, but most tell me "I won't yank it, because it's just an old version that nobody uses", and don't care or appreciate that minimal-version picks these old versions, and they are used by accident.


Fix the support for phonemes

Please make sure you have searched for information in the following guides.

[X] Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues
[X] Search StackOverflow: http://stackoverflow.com/questions/tagged/google-cloud-platform+node.js
[X] Check our Troubleshooting guide: https://github.com/googleapis/google-cloud-node/blob/main/docs/troubleshooting.md
[X] Check our FAQ: https://github.com/googleapis/google-cloud-node/blob/main/docs/faq.md
[X] Check our libraries HOW-TO: https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md
[X] Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs
[X] Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples

A screenshot that you have tested with "Try this API".
<speak>
      <phoneme alphabet="ipa" ph="soso"></phoneme>
</speak>

Link to the code that reproduces this issue. A link to a public Github Repository or gist with a minimal reproduction.
<speak>       <phoneme alphabet="ipa" ph="soso"></phoneme> </speak>
A step-by-step description of how to reproduce the issue, based on the linked reproduction.

Go to https://console.cloud.google.com/speech/text-to-speech%3Buse-ssml=true%3Binput=<speak>
      <phoneme alphabet="ipa" ph="soso"></phoneme>
    </speak>%3Blocale=en-US%3Bvoice=en-US-Standard-F%3Bencoding=LINEAR16%3Bspeed=1%3Blocation=global?hl=en
Write that input on SSML
Click play button, each time you will heart nothing

A clear and concise description of what the bug is, and what you expected to happen.
In this case, reproduce /soso/ but really I want Text to Speech can reproduce all phonemes, right now it only support a small IPA subset
A clear and concise description WHY you expect this behavior, i.e., was it a recent change, there is documentation that points to this behavior, etc. **
Because I wrote an IPA reader, and if Text to Speech doesn't support it, I can't use Text to Speech

For some reason the url is broken