Fix Role Binding for Custom Namespace

Major changes:

Fix the role binding to use the configured namespace instead of the default one.

closes #147.

👍

/kick

/test

/kick - ci flaked

/kick

ci wasnt updating from some reason - i fixed it manually and its running now.


Disable default features

So skulpin has SDL2 and winit support enabled by default, right? Because of this we have a linking problem on Windows. And the best part is that SDL2 is not even used.
So why not remove it (SDL2)??

Good idea, will include this in the next episode.


Batch mode (output numbers only)?

This is not a request to implement number theory superpowers. This is just a request to add an option to output only the primes and nothing else, for batch processing. -q currently does not do that: primesieve 1 100 -n -q outputs Nth prime: 101 instead of just 101.

Thanks for your feedback, I wasn't aware of this issue.
I think that batch processing is important therefore I have changed the behavior of the -q/--quiet option (https://github.com/kimwalisch/primesieve/commit/4981c10e1d3fbdae15a3f2119cccd0039baca582) to your suggestion. I know this is a backwards incompatible change, it will e.g. break the phoronix test suite. However I think it is worth it, so I will likely help fixing the projects that this change will break.
Note that as I have done a release not so long ago, it will take some time before I do another release. So if you want this change immediately, you will have to compile primesieve from source yourself. Also note that my primecount project also has an --nth-prime option and actually computes the nth prime much faster, more info here.


Update procution broad Crawling Documentation howto split DB Worker

A second PR? That one contains also code, not only documentation. I would also recommend to add documentation to the same PR with code. You shouldn't have much, and it's easier for me to review everything related to Cassandra in the same PR.
Thx)

Hi Alex,
sry my fault - was not planed - decline the last PR. I've made a Branch for
updating the documentation for splitting up the Worker DB.
But i haven't created a branch for the cassandra commitment (was direct in
master) - so i've commited the master with the branch... sry
Michael
2016-04-04 18:15 GMT+02:00 Alexander Sibiryakov<EMAIL_ADDRESS>
A second PR? That one contains also code, not only documentation. I would
also recommend to add documentation to the same PR with code. You shouldn't
have much, and it's easier for me to review everything related to Cassandra
in the same PR.
Thx)
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
https://github.com/scrapinghub/frontera/pull/130#issuecomment-205372146

No problem :)


Make SSI documentation for Assembler and BMS optional

Adding the SSI info for the link step in language scripts Assembler and BMS is not conditional through a fileProperty like in the other language scripts.
Missing in Assembler.groovy and BMS.groovy
https://github.com/IBM/dbb-zappbuild/blob/74c662aee4a7b5a006a0c8cadd3287986823f4f4/languages/Assembler.groovy#L321-L325
https://github.com/IBM/dbb-zappbuild/blob/74c662aee4a7b5a006a0c8cadd3287986823f4f4/languages/BMS.groovy#L124-L128
This is how it should look like:
https://github.com/IBM/dbb-zappbuild/blob/74c662aee4a7b5a006a0c8cadd3287986823f4f4/languages/Cobol.groovy#L286-L291

Resolved


Using this instead of qemu?

Hello!
My question is: Is it possible to use this instead of qemu? So can this actually do anything with image files and such? (Sorry, a bit of a noob here.)
Thanks in advance.

Not yet. We are working on the hyperkernel right now, but even then it will only support Linux Guest VMs (or anything that adheres to the Xen PV interface) to start. Generic guest support is likely not to be supported for several years.

I see. The place I want to use this is actually rather specific. I want to use it for the KataRuntime, it starts a Linux VM from their own specific kernel and VM image, can this do that, or will it soon be able to do that?

A small update to my question: I have tried this a bit and it seems to me that at the moment you can only run C or C++ applications, is that right? I used the 1.1.0 version, since I have Ubuntu 16.04.

@Kuvesz That is correct. I am in the process of refactoring a lot of the hyperkernel to support Linux VM using the Xen PV interface. The current hyperkernel is being broken up so that guest support and the PV interface are no longer mixed together, which will allow us to support different PV interfaces over time including KVM, Xen and possibly our own Bareflank specific interface (we have a GSoC project working on that right now for LibVMI support).
I expect Linux guest support by the end of the year. IncludeOS support shortly after that.


Data partionning with same seed produces different partitions

Title is self-explanatory. The data split with stations seems to be broken: different splits are produced even when the seed is identical.

@dnerini when you come back (not before!), could you confirm that you use the features.zarr stored on your scratch/mlpp/ ?
Also, can you confirm the train_validation_test.json is recreated every time you change the base.yaml and that you don't use a .json file that you created once and re-use for each training ?


Fix import of char_maps module so both Pytest and PyPi distribution work properly

Needed to add setup.py to point to setup.cfg and place init.py in the specific module directories.  Also, needed to add conftest.py to the src/ directory for pytest to find the debug_tokenize module.

Please fix import tuple multi-line indention in debug_tokenize_test.py.


PrefixComboBox setSelectTextOnClick has no effect in Grid

I'm trying to use the PrefixComboBox as a bound field for a Grid. When I try to use combobox.setSelectTextOnClick(false) it doesn't seem to matter and the text is always selected on focus.
I'm using Vaadin 8.13.1 and version 1.5 of the PrefixComboBox addon.

Do you have code example to reproduce this behavior. I am asking this because there are two ways how to use the component in Grid, either in its integrated row editor or in component renderer. My intuitive guess is that it is the first one, but I would like to verify that first.

I also would like to know, if you are using other add-ons. For example Grid FastNavigation  adds such behavior to Grid's integrated editor, i.e. it will select the text when editor is opened (with all fields where it is possible).

I am using the editor component Binding to the column and also using the
FastNavigation add-on.
private void createAndBindProcedureColumn(Binder<VendorRateWrapper>

binder) {
ptsProcedureComboBox = new PrefixComboBox();
ptsProcedureComboBox.addValueChangeListener(event ->
filterDataLookups(event));
ptsProcedureComboBox.setSelectTextOnClick(COMBO_SELECT_TEXT_ON_FOCUS);
Binder.Binding<VendorRateWrapper, PtsProcedure> ptsProcedureBinding
= binder.forField(ptsProcedureComboBox).
bind(VendorRateWrapper::getPtsProcedure,
VendorRateWrapper::setPtsProcedure);
Column<VendorRateWrapper, String> ptsProcedureColumn =
listGrid.addColumn((VendorRateWrapper arg0) -> arg0.getPtsProcedure() !=
null ? arg0.getPtsProcedure().getCode() : "");
ptsProcedureColumn.setDescriptionGenerator((t) -> {
return t.getPtsProcedure() != null ?
t.getPtsProcedure().getDescription() : "";
}, ContentMode.TEXT);
ptsProcedureColumn.setCaption(PROCEDURE_CODE_CAPTION).setEditorBinding(ptsProcedureBinding);
}
On Tue, Jun 15, 2021 at 5:58 AM Tatu Lund @.***> wrote:

I also would like to know, if you are using other add-ons. For example Grid
FastNavigation
https://vaadin.com/directory/component/gridfastnavigation-add-on adds
such behavior to Grid's integrated editor, i.e. it will select the text
when editor is opened (with all fields where it is possible).
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/TatuLund/PrefixComboBox/issues/4#issuecomment-861362840,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AT3EATPKHHFBLJRBPKIXOBDTS4P4RANCNFSM46DVNZYQ
.

--
Bill Swift @.***>
Center for Information Management Inc. http://www.ciminc.com

You need to turn off the text selection in fast navigation add-on first
fastNavigation.setSelectTextOnEditorOpen(false);
If you do so, does the problem still occur?

The combination of both settings works. Thanks for the clarification.
On Thu, Jun 17, 2021 at 8:36 AM Tatu Lund @.***> wrote:

You need to turn off the text selection in fast navigation add-on first
fastNavigation.setSelectTextOnEditorOpen(false);
If you do so, does the problem still occur?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/TatuLund/PrefixComboBox/issues/4#issuecomment-863202087,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AT3EATOIOFE7NB32KA4YWP3TTHT5DANCNFSM46DVNZYQ
.

--
Bill Swift @.***>
Center for Information Management Inc. http://www.ciminc.com


Could you tell me which part is the code of Patch Shuffling Loss?

Nice work in CVPR 2023. Could you tell me which part is the code of Patch Shuffling Loss?

Hi Gary,
Thanks for your interest in our work. We have made a basic version of the code public for encouraging research purposes. Please consider that this is a basic implementation of the paper, not ideally optimised for performance.
The code for the ZS-SBIR paradigm using CLIP has been uploaded now, and the code for the extension to FG-SBIR will be uploaded in some time.
So, the code does not contain the Patch Shuffling Loss yet.
Hope you found this useful.
Thanks


[QUESTION] how secure is NON

hello again.
just to ask.
this looks like LOVE2D, just its outlook. though seems very different as well. but one problem i always had with LOVE2D is the security of files and how things are built in an application
im a mac user myself, and found that i could find files of .lua code in the application, thorugh the right-clickn, show contents etc.
does NON address this and fix this problem. i have not built anything yet, but just want to find out about it to see if its secure.
whilst i know nothing is 100% secure and people can find ways, i just dont need code so easy to find really like what LOVE2D does with applications
thanks

Right now, it works similar to Love2D, so users can view your source Lua code when they will decompress JAR or APK file. But, NON comes with built-in signer, so if you will sign your application, users will be able to see your Lua code, but not edit it.

Here is link to tutorial on how to sign your application.


Startup waits forever

When performing "up" on the system, I see the following:
Starting k8smaster-01 VM ...
> booting k8smaster-01
[corectl] stable/835.11.0 already available on your system
[corectl] '/Users/sganyo' was already available to VMs via NFS
[corectl] started 'k8smaster-01' in background with IP <IP_ADDRESS> and PID 14695

Starting k8snode-01 VM ...
> booting k8snode-01
[corectl] stable/835.11.0 already available on your system
[corectl] '/Users/sganyo' was already available to VMs via NFS
[corectl] started 'k8snode-01' in background with IP <IP_ADDRESS> and PID 14723

Starting k8snode-02 VM ...
> booting k8snode-02
[corectl] stable/835.11.0 already available on your system
[corectl] '/Users/sganyo' was already available to VMs via NFS
[corectl] started 'k8snode-02' in background with IP <IP_ADDRESS> and PID 14741

Waiting for k8smaster-01 to be ready...

fleetctl list-machines:
MACHINE		IP		METADATA
012edea6...	<IP_ADDRESS>	role=control

Waiting for Kubernetes cluster to be ready. This can take a few minutes...

But then it waits forever. Ideas?

fixed in v0.1.4

Great! Thanks!
BTW: The Kubernetes-UI still doesn't run. That's less important, though. :)

@theganyo it does work for me, after setup it takes a few minutes to bootstrap it, as to download docker images

I destroyed and recreated the VM. It's all good. Maybe it was still broken from the failed attempt earlier. Thanks again!

Just downloaded the latest v1.0.6 and see it waiting for 20 minutes now. I did have a working kube-solo before i removed. Dunno if that matters.
Starting all fleet units in ~/kube-cluster/fleet:
Unit fleet-ui.service inactive
Unit fleet-ui.service launched on fc4edcaf.../<IP_ADDRESS>
Unit kube-apiserver.service inactive
Unit kube-apiserver.service launched on fc4edcaf.../<IP_ADDRESS>
Unit kube-controller-manager.service inactive
Unit kube-controller-manager.service launched on fc4edcaf.../<IP_ADDRESS>
Unit kube-scheduler.service inactive
Unit kube-scheduler.service launched on fc4edcaf.../<IP_ADDRESS>
Unit kube-apiproxy.service
Triggered global unit kube-apiproxy.service start
Unit kube-kubelet.service
Triggered global unit kube-kubelet.service start
Unit kube-proxy.service
Triggered global unit kube-proxy.service start

fleetctl list-units:
UNIT				MACHINE				ACTIVE		SUB
fleet-ui.service		fc4edcaf.../<IP_ADDRESS>	inactive	dead
kube-apiserver.service		fc4edcaf.../<IP_ADDRESS>	inactive	dead
kube-controller-manager.service	fc4edcaf.../<IP_ADDRESS>	inactive	dead
kube-scheduler.service		fc4edcaf.../<IP_ADDRESS>	inactive	dead

Waiting for Kubernetes cluster to be ready. This can take a few minutes...

interesting, you can check what is going on with Kubernetes fleet units by opening Preset OS shell then type $ fleetctl status kube-apiserver.service please
and post the results

hmm, i removed .core* and .kube and kube* and did a reinstall, now it works:
Waiting for Kubernetes cluster to be ready. This can take a few minutes...
/
node "<IP_ADDRESS>" labeled
node "<IP_ADDRESS>" labeled

Creating kube-system namespace ...
namespace "kube-system" created

Installing SkyDNS ...
replicationcontroller "kube-dns-v10" created
service "kube-dns" created

Installing Kubernetes UI ...
replicationcontroller "kube-ui-v4" created
service "kube-ui" created

fleetctl list-machines:
MACHINE		IP		METADATA
0668e53d...	<IP_ADDRESS>	role=node
1c262d41...	<IP_ADDRESS>	role=node
f17ec4e0...	<IP_ADDRESS>	role=control

fleetctl list-units:
UNIT				MACHINE				ACTIVE	SUB
fleet-ui.service		f17ec4e0.../<IP_ADDRESS>	active	running
kube-apiproxy.service		0668e53d.../<IP_ADDRESS>	active	running
kube-apiproxy.service		1c262d41.../<IP_ADDRESS>	active	running
kube-apiserver.service		f17ec4e0.../<IP_ADDRESS>	active	running
kube-controller-manager.service	f17ec4e0.../<IP_ADDRESS>	active	running
kube-kubelet.service		0668e53d.../<IP_ADDRESS>	active	running
kube-kubelet.service		1c262d41.../<IP_ADDRESS>	active	running
kube-proxy.service		0668e53d.../<IP_ADDRESS>	active	running
kube-proxy.service		1c262d41.../<IP_ADDRESS>	active	running
kube-scheduler.service		f17ec4e0.../<IP_ADDRESS>	active	running

kubectl get nodes:
NAME           LABELS                                             STATUS    AGE
<IP_ADDRESS>   kubernetes.io/hostname=<IP_ADDRESS>,node=worker1   Ready     1s
<IP_ADDRESS>   kubernetes.io/hostname=<IP_ADDRESS>,node=worker2   Ready     18s

Installation has finished, Kube Cluster VMs are up and running !!!

Assigned static IP for master VM: <IP_ADDRESS>
Assigned static IP for node1 VM: <IP_ADDRESS>
Assigned static IP for node2 VM: <IP_ADDRESS>

You can control this App via status bar icon...

Also you can install Deis PaaS (http://deis.io) v2 alpha version with 'install_deis' command ...

The kube-solo worked at the https://2015.distributed-matters.org/bcn/ but wouldn't start after anymore...

@cobrowserAlex hmm, interesting where kube-cluster misbehaved.
Would be good to reproduce it.
kube-solo has very involved/changed since distributed-matters.org/bcn/, have you tried the latest version?

Ha, I closed my macbook so I guess it went to sleep. When I opened again it had crashed.
After i tried kube-cluster and I get the same behaviour as before,
"Waiting for Kubernetes cluster to be ready. This can take a few minutes..."

@AntonioMeireles is any way we can have a fix which should not crash VMs when Mac comes back from sleep with the left running VMs?

@rimusz looking at it.

It seems 'suspend' is not the issue, because putting to sleep and waking up the mac (instant) while vms are running  works for me. It is the hibernation and restart that results in 'waiting for Kubernetes cluster....'

Problem Solved: I have an openVPN connection running for work, that routes all traffic over vpn. If I start the kube-cluster after the VPN is up, it's waiting forever to connect. When I kill the openVPN connection, it works as expected.


fix:Add padding to the mobile auth component

This PR:

Add Padding to the Login and Register Page in the Auth Component
Made sure the padding only reflected on the mobile view and not other breakpoints
The changes are shown in the images below

@was-coder excellent! Feel free to merge


[Feature Request]Better fan pls.

make a upgraded fan, because when I turn it on is just annoying when I'm pushed back, is hard to set mobtraps.

"upgraded" in what way?
I guess i could add a GUI screen so you can open it and customize.
What kind of options make sense. maybe...
speed
range
particles on/off
maybe even a pull vs push?

speed is not neded because it can push the player runing (too fast)
range is good the upgraded version have more blocks
particles pls turn off (can save a lot of lag)
push is not a bad idea at all
and better with this gui you can select the entities that can or can't be pushed by the fan.

I have started working on this 🔢

WIP

don't forget about the elevator vesion (Or make a elevator to push the player or the entities UP (I have a lot of uses for blocks like this).

It wasnt as easy as I thought to make it face upwards. Ill have to revisit that another time.  Possibly as a new block.
Anyway the other stuff is out here
https://minecraft.curseforge.com/projects/cyclic/files/2389366
https://minecraft.curseforge.com/projects/cyclic/files/2389358

Oh yeah, actually i already have vertical facing machines including fans in my milestone planning, so its comming eventually. maybe next weekend https://github.com/PrinceOfAmber/Cyclic/milestone/14


[feat]: Add styles.yml File for Raising Enhancement, Styling related Requests Separately

Is your feature request related to a problem? Please describe.
style.yml (Custom ISSUE_TEMPLATE):

The style.yml file, on the other hand, serves as a custom ISSUE_TEMPLATE for issues related to coding style, code formatting, and linting rules within your GitHub repository. This template helps contributors or users report code style-related concerns or seek guidance on adhering to the project's coding standards.
The contents of style.yml might include specific questions or prompts related to coding style, requesting users to provide examples of code snippets that need formatting adjustments or explanation. Additionally, you might include instructions on how to check code against the project's style guidelines and best practices.

Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context

I want to work on this Issue Under GSSOC'23

Hi @thestarsahil . Please review on this Issue.

Looks Good !
Go ahead Any further help feel free reach us


Make the minority pops feature more powerful

https://forum.paradoxplaza.com/forum/index.php?threads/the-eu4-to-v2-converter-project.707362/page-177#post-20566491
https://forum.paradoxplaza.com/forum/index.php?threads/the-eu4-to-v2-converter-project.707362/page-178#post-20567717

https://forum.paradoxplaza.com/forum/index.php?threads/the-eu4-to-v2-converter-project.707362/page-168#post-20412312
https://forum.paradoxplaza.com/forum/index.php?threads/the-eu4-to-v2-converter-project.707362/page-168#post-20413118

SaintPetersbour: "Sorry to keep posting, but I'm curious, if you played as a Jewish custom nation (or CKII conversion) in Europe or Anatolia, would all of your people come out of the conversion as ashkenazi and sephardi culture? or is there a mechanism similar to creating ashkenazi and sephardi in other games that creates North German, Greek, etc., in such cases?"
Idhrendur: "Ashkenazi would come out Ashkenazi, Sephardi as Sephardi, and Greek culture group and German culture group pops of Jewish religion would get also become Ashkenazi and Sephardi, respectively. The normal mechanics that put in Jewish pops would still happen and make the pops files a little more messy, but I expect it would all come out fine."
SaintPetersbour: "So a Jewish Europe would be mono-cultural? As in literally every culture would become Ashkenazi? This is obviously not a serious suggestion but wouldn't it be cool if in such a situation the Jewish pops retained the base cultures and Christian pops were generated with a generic European-Christian-culture? I imagine a Zionist might enjoy something like that."
Idhrendur: "That would be interesting, though I can't really think of a way to do it without massively editing the pops files first.
Scratch that, I could make the minority pops file specify cultures and religions it matches, and cultures and religions it turns them into. There'd still be a manual component, but it could work…"


Positional "constant" doesn't honor axis limits

# No limits - both labels are visible
p = (ggplot() +
    geom_label(aes(y=[10]), label="Data y=10") +
    geom_label(label="Const y=13", y = 13)
)
p

# y-axis is limited : "Const y=13" should not be visible.
p + ylim(10, 10)

This produces the same plot (shown above) even though label "Const y=13" is now beyond the scale limits.

completed in https://github.com/JetBrains/lets-plot/commit/ac22aa70d9390d340b835966522df25f2b3687cb


[SPARK-27937][CORE] Revert partial logic for auto namespace discovery

What changes were proposed in this pull request?
This change reverts the logic which was introduced as a part of SPARK-24149 and a subsequent followup PR.
With existing logic:

Spark fails to launch with HDFS federation enabled while trying to get a path to a logical nameservice.
It gets tokens for unrelated namespaces if they are used in HDFS Federation
Automatic namespace discovery is supported only if these are on the same cluster.

Rationale for change:

For accessing data from related namespaces, viewfs should handle getting tokens for spark
For accessing data from unrelated namespaces(user explicitly specifies them using existing configs) as these could be on the same or different cluster.

(Please fill in changes proposed in this fix)
Revert the changes.
How was this patch tested?
Ran few manual tests and unit test.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/11376/
Test PASSed.

Test build #106124 has started for PR 24785 at commit 207d192.

Test build #106124 has finished for PR 24785 at commit 207d192.

This patch fails Spark unit tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test FAILed.

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/106124/
Test FAILed.

It seems to fail at UT, @dhruve . If this is a right fix, please make this pass the tests.

cc @vanzin

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/11495/
Test PASSed.

Test build #106247 has started for PR 24785 at commit c02246e.

Also cc @mgaido91 since this wants to revert SPARK-24149.

Test build #106247 has finished for PR 24785 at commit c02246e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/106247/
Test PASSed.

cc @attilapiros

I am not sure this is the right approach.
First, this change introduces a breaking change which can introduce regressions with federated namespaces: jobs running with the current code may break if they rely on this behavior after this PR.
Moreover:

For accessing data from related namespaces, viewfs should handle getting tokens for spark

This is already the case, please see the comment in the code you reverted. If there is a case when this is not true, we should rather fix it than revert the full change IMHO.

For accessing data from unrelated namespaces(user explicitly specifies them using existing configs) as these could be on the same or different cluster.

This is still the case, if you want to access a namespace which is on a different cluster, you still have to use that config.
Probably I am missing something, may you please provide a concrete use case where the current behavior is causing issues and which are the issues? Thanks.

I have updated the jira with the use case where the current behavior of spark fails to launch an application.

If you get a token from a specific NN, it is valid with or without HA. HDFS takes care of this. I don't think that Spark needs to do this explicitly. May be an hdfs expert can give a better perspective. cc @kihwal @daryn-sharp

From the discussion in SPARK-24149, the reason why this change was introduced seems to address a very specific use case (while it is common to have tables and partitions across different namespaces, this one addresses a very specific use case: where partitions are stored across unrelated namespaces, using federation and luckily on the same cluster ) which I am not sure of is very common.

the use case for this change, for instance, is when you have a partitioned table, when the partitions are on different namespaces and there is no viewFS configured

@dhruve what you are calling a very specific use case, is what in the hadoop documentation is called federation: https://hadoop.apache.org/docs/r2.8.3/hadoop-project-dist/hadoop-hdfs/Federation.html#Federation_Configuration.
Thanks for updating the JIRA. I am yet not very clear what the problem is in your case: I mean what was your configuration (hdfs-site.xml)? Anyway, why isn't setting spark.kerberos.access.hadoopFileSystems a solution for your use case? With that you can basically decide what to do and all the logic here is skipped.

I think I have tried to explain the use case in the linked jira/s, but it seems it isn't clear.
Let me try to explain the use case for which the change was implemented as described in the original jira:
Storing table/hive partitions across namespaces isn't uncommon. For storing partitions of a given table across namespaces, a good design would dictate that storing related data in related namespaces. This can be either in the same namespace or a large namespace that is broken into sub namespaces for better namespace management. In this case, good design would dictate to use viewfs. Just because we have the option of selecting a namespace while creating a hive partition, choosing an unrelated namespace is a poor decision. While a single team or organization might do this for whatever reason, I don't think this is the norm or hadoop/hive encourage storage policies where to store related data in unrelated namespaces, especially when the data belongs to the same table.
Because of Federation, the unrelated namespace happens to be stored on the same cluster as the other namespace. This, is okay.
So the problem we wanted to achieve comes down to:
Can we make spark figure it out for us, so the user doesn't need to know about the storage choices.
Question is how do we do this. We cannot do this, because spark doesn't know anything about how the data is stored across namespaces(this is where using viewfs would make total sense).
The use case which I refer to - Just because the data ended up being on the same cluster, we figure out the namespace information from the federation configs.
Some issues that I see with the approach:

It doesn't solve the issue. The user still has to know about the storage choices. If the data is stored on a different cluster, this solution doesn't work. Its just a hack to get around because of a poor design choice.
We now get tokens for namespaces which the user isn't going to read/write from. This was broken and there was another patch on top of the change to avoid doing exactly that and mention namespaces explicitly

(https://github.com/apache/spark/commit/c3f285c939ba046de5171ada9c4bbb1a2589635d)

If hadoop already figures out getting tokens for different namespaces uing viewfs, that is a better choice.
It fails to launch spark with existing HDFS deployments while trying to create a path from NameServiceIDs.

Answering to your points:

If the data is stored on a different cluster, this solution doesn't work.

Well, that's quite expected since Spark runs on a specific hadoop cluster. For that case, you still have to do it manually, as before the patch you'd like to revert. So, no change on this.

We now get tokens for namespaces which the user isn't going to read/write from.

As you mentioned, there is also a configuration for that. So if you want, you can limit your app to get only the tokens you need.

If hadoop already figures out getting tokens for different namespaces using viewfs, that is a better choice.

Yes, but this is not related with Spark code and this patch, it is rather related to how you configure and use your cluster. You're definitely allowed to use viewfs and no extra token is taken in that case...

It fails to launch spark with existing HDFS deployments while trying to create a path from NameServiceIDs.

Then this is a bug, if you have a fix for this, that's great.

This is a bug, and we should fix it. Taking a closer look, we don't need the change at all. Just specify an additional namespace - you don't need one more config, it also doesn't break anything.

The client should specify all the required filesystems directly or indirectly via viewfs.  It’s a very user specific use case to assume that not using viewfs means the config should be scanned for all federated/HA namespaces.
A client should never distinguish between filesystem types when acquiring tokens.  Viewfs just happens to be a handy way to implicitly collect tokens for all mounted filesystems rather than explicitly specifying them but it should not be the basis for any conditionalized behavior.
Federation is a server-side only configuration for enabling multi-namespace DNs.  A client cannot and should not distinguish between a federated and non-federated namespace.  Technically a federation config doesn’t even belong in a client config and as such should never be used by a client.
In short, the user’s use case is better solved specifying the filesystems.  If the federation configs are leaked into the client configs, it should be easy to replace them with a conf key of required filesystems.

Thanks @daryn-sharp for the inputs. @mgaido91 - hope that explanation gives more perspective.

I see your point and I respect it. Despite this, reverting that change has breaking effects, so it should be done only if there are strong reasons for that, ie. use cases which are not working in the current way, which isn't the case IMHO, as there is also a config to specify the namespaces strictly required.

Guys, sorry but can anyone clarify if:

Did the auto namespace discovery cause any regression?
If so, is it a corner case, or is it something worthy reverting the HDFS federation out of the box?

Sounds like we rather better fix rather than revert.

It did cause a regression in our [Yahoo/VerizonMedia] clusters. And the way spark currently implements them is totally unnecessary. You can read the context from the jira and also the comments above. The change is a hack around a very user specific case and ends up relying on reading hdfs server configs, which is not what any client should be doing.

It can also lead to confusion for the user, because if a table is stored across multiple namespaces, the user will see two behaviors:

If federation is enabled:
a. If data is stored on same cluster => User can query the data
b. If data is stored on diff cluster => User has to specify the namespace explicitly
If federation is disabled:
User has to specify the namespace explicitly

Before the change:
User has to specify the namespace explicitly all the times. Which I think is more consistent to reason about.

Technically a federation config doesn’t even belong in a client config and as such should never be used by a client.

Well, technically you have similar configuration on the client so that the viewfs mount points can reference the appropriate namespaces... but that's nitpicking.
But in general I agree that it feels weird for the client to be looking at random HDFS configurations (in fact I made a similar comment on the original review and requested to special-case viewfs if the config scraping code was going to be added).
Given that I'm ok with removing the config scraping code. Viewfs users (which in my view should be all users accessing a federated HDFS) shouldn't see any difference. Those using the Spark config should not see any difference either. Only those relying on a weird HDFS config that had multiple configured namespaces but not viewfs should see a difference... but well, it's the price to pay if this causes problems for people.
(I haven't looked at the code yet.)

retest this please

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/12067/
Test PASSed.

Test build #106850 has started for PR 24785 at commit c02246e.

Test build #106850 has finished for PR 24785 at commit c02246e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/106850/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/14482/
Test PASSed.

Test build #109420 has started for PR 24785 at commit 25240e5.

Test build #109420 has finished for PR 24785 at commit 25240e5.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/109420/
Test PASSed.

Merged build finished. Test PASSed.

Merging to master.

Thanks @vanzin


fix(42829) ignore preceeding jsx whitespace

Fixes #42829

@jessetrinity is there something I can do to get this reviewed? First contribution

Closing and reopening to hopefully get a fresh run.


token-2022: Move each extension into its own module

It's still yucky that adding a new extension requires modifying ExtensionType in two places but I can hold my nose on this.  Overall a single extension.rs is gonna turn into a mess once things like zk-token start getting turned into an extension, so I wanted to setup this kind of precedent early


use "netstat -an" to prevent IP resolution

a call to netstat -a in file  /home/admin/config.scripts/bonus.electrs.sh creates lots of reverse DNS requests.
Use netstat -an instead
seems that issue #1909 is related to this PR

Hi @PatrickScheich can you rebase this PR on the dev branch?

Merged into dev for v1.7RC1 release by cherry-pick. Thx.


Final post

Also I think an example of how to define a circuit and use ZX calculus to simplify it (call the simplification pass manually) would be nice to have. This will show people who are not familiar with the implementation of YaoLang how it works.

This is much better! I'll have a look at the benchmark script shortly.


stop sidebar adjusting width to content

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 62.557%

Totals

Change from base Build<PHONE_NUMBER>:
0.0%

Covered Lines:
1240

Relevant Lines:
1724

💛  - Coveralls


weekly meeting

wednesdays https://meet.google.com/dci-nqnf-exg 16:00-17:00 CEST

We have current information in README, I think we can close this issue.


[Docs]: Persist the Calendly button/link throughout our docs

Where did you see an issue in our documentation?
everywhere in the docs
Description of the issue
The banner introduced in #157 in our docs is great! However, this banner (and our Calendly link) disappears anytime someone scrolls down the page.
This means that if someone is going through our docs (specifically longer pages like our guides, quickstart, reference docs, explanations, etc) and decides that they want to ask us questions or get in touch with us, there is no longer a easy-to-access link or obvious way for them to do so. They would have to either scroll all the way back up to see the Calendly link or scroll all the way down to the bottom to see links to our Discord/Github/Twitter links.
I would like there to be some sort of button or banner that persists to the user for how to get in touch with us for questions/feedback, no matter how far down they scroll through our docs pages.

Recording of the behavior: https://www.loom.com/share/c3d4064c8fcf45089dd2549d79788f7a

Going to actually close this because I don't believe this is a frictionful point for users.


MouseControlsCameraPlugin and other screens

Hi again,
I use your MouseControlCameraPlugion for zooming and moving on the map. However if i use it and go to another camera with other contents it breaks the content position. What can I do so that the it transitions nicely. Is there a way to reset it just before state change?

It seems to only happen after the battle state or during it because the elements are misplaced

Please provide a minimal example of the problem.

let mut camera = Camera2dBundle {camera: Camera{order: 2, ..Default::default()}, ..Default::default()};
commands.spawn(camera).insert(BattleCameraComponent);
  commands.spawn((
                NodeBundle {
                    style: Style {
                        position_type: PositionType::Absolute,
                        left: Val::Px(20.0),
                        bottom: Val::Px(110.0), // Adjust this value to place it above the player bar
                        width: Val::Px(200.0),
                        height: Val::Px(20.0),
                        ..Default::default()
                    },
                    background_color: BackgroundColor(Color::NONE.into()),
                    transform: Transform {
                        translation: Vec3::new(0.0, 0.0, 9.1),
                        ..Default::default()
                    },
                    ..Default::default()
                },
                stat.health,
                healthbar,
                PlayerBar,
            ))

        ... continues

pub fn toggle_cameras(
    state: Res<State<AppState>>,
    mut query: Query<&mut Visibility, (With<TownBoardUI>)>,
    town_board_camera: Option<Res<crate::resources::TownBoardCamera>>,
    battle_camera: Option<Res<crate::resources::BattleCamera>>, // Changed to Res to avoid moving
    mut param_set: ParamSet<(
        Query<&mut Camera>,
        Query<(Entity, &Camera), With<PrimaryCamera>>,
    )>,
) {
    let primary_camera_entity = param_set.p1().single().0;

        match *state.get() {
            AppState::TownBoardOpen => {

                if let Some(town_board_camera) = town_board_camera.as_ref() {
                    if let Ok(mut camera) = param_set.p0().get_mut(town_board_camera.0) {

                        camera.is_active = true;
                    }
                }
                if let Some(battle_camera) = battle_camera.as_ref() {
                    if let Ok(mut camera) = param_set.p0().get_mut(battle_camera.0) {

                        camera.is_active = false;
                    }
                }
                if let Ok(mut primary_camera) = param_set.p0().get_mut(primary_camera_entity) {
                    primary_camera.is_active = false;
                }
                for mut visible in query.iter_mut() {
                    *visible = Visibility::Visible;
                }
            }
            (AppState::Running | AppState::RunningFromBattle )=> {

                if let Some(town_board_camera) = town_board_camera.as_ref() {
                 if let Ok(mut camera) = param_set.p0().get_mut(town_board_camera.0) {
                    camera.is_active = false;
                    }
                }
                if let Some(battle_camera) = battle_camera.as_ref() {
                    if let Ok(mut camera) = param_set.p0().get_mut(battle_camera.0) {
                        camera.is_active = false;
                    }
                }
                if let Ok(mut primary_camera) = param_set.p0().get_mut(primary_camera_entity) {
                    primary_camera.is_active = true;
                }
                for mut visible in query.iter_mut() {
                    *visible = Visibility::Hidden;
                }
            }
            AppState::Battle => {

                if let Some(town_board_camera) = town_board_camera.as_ref() {
                    if let Ok(mut camera) = param_set.p0().get_mut(town_board_camera.0) {
                        camera.is_active = false;
                    }
                }
                if let Some(battle_camera) = battle_camera.as_ref() {
                    if let Ok(mut camera) = param_set.p0().get_mut(battle_camera.0) {
                        camera.is_active = true;
                    }
                }
                if let Ok(mut primary_camera) = param_set.p0().get_mut(primary_camera_entity) {
                    primary_camera.is_active = false;
                }
                for mut visible in query.iter_mut() {
                    *visible = Visibility::Hidden;
                }
            }
            _ => {}
        }
}

Everytime i come from batttle the map seems copied and spawn multiple times also the cursor is no longer aligned using your iso.rs example

Okay, what I did was make a resource that on exit of my state running stores the transform values of the camera. This wasnt an issue for townboard because it was a viewport but for battle it messed up the scaling if i moved or zoomed.  If anyone else has this issue at least there is a way.


KPI: Monitoring data at site-scale for crayfish and plants

This template is send around to all partners so they can fill in there monitoring data accordingly.
Email send around to partners (9/11):
After consulting Etienne, we agreed on the following template to document monitoring data of management actions. The goal of this template is to fill in all monitoring data at sites where management has been or will be performed on Riparias checklist species in the context of C2, C3 or D2. Monitoring data at sites were no management will occur is not relevant to be added to this template. As you notice, there is a tab for plant species and one for crayfish species.
The collected data will be used in the dashboard of D1 to visualise the effect of management actions at site-level across all species. Also, it will be used by Etienne, for the midterm report on C2 and C3.
Please, add your data to this template by the end of the month so it can be included in the dashboard.

Update: monitoring data send by Christine and Dido is manually added to the template

Data have been added to the file. Graph needs to be updated accordingly. Crayfish will not be displayed in a graph.


'/' appended to ssh url

When using an git ssh url git@github.com:cpputest/cpputest.git, dfetch adds an extra '/' resulting in git@github.com:cpputest/cpputest.git/ which is not a legal url

issue is in ProjectEntry::remote_url, too much joins and splits

Probably good to create a separate util function for safe joining, which skips:

Empty strings ''
None types None
Whitespace only ' '

>>> a = ['', 'a', None, ' ', 'b', '']
>>> "/".join(filter(lambda x:  str(x or '').strip(), a))
'a/b'

Hi, new to opensource, wanted to contribute.
Why split at "/" when joining them back again?
Can't we just join both paths and strip the result for corner case?

Welcome! Thanks for the suggestion. You're probably right, if you would like to contribute, a PR is always welcome. Otherwise I could also pick this up in a branch.
If you need any help, please let me know.

I've sent a PR, but not sure what the Codacy error means.
Thx

Thanks for your help!


Migrate Prod applications to cflinuxfs4 stack

Context
During 7/19 Planning discussed that Cloud. Gov will no longer support cflinuxfs3. Need to migrate applications to cflinuxfs4. The scope of this ticket is to Migrate the prod applications to cflinuxfs4 since Migrate applications to cflinuxfs4 - Pre Prod Applications only #5519 has been completed
Will plan to migrate campd to cflinuxfs4 during the prod release. If that attempt does not work will work on this ticket later in august. Must be completed before the end of Sept

There was an issue getting the prod stacks changed so the apps will need to be deleted & repushed. There is also an issue with the existing packages so a pipeline was created to rebuild & package them from the existing artifacts. Will get with NCC to redeploy next week.

Run the following on each cflinuxfs3 app left...
cf target -o epa-easey -s prod && cf change-stack account-api cflinuxfs4
cf target -o epa-easey -s prod && cf change-stack auth-api cflinuxfs4
cf target -o epa-easey -s prod && cf change-stack campd-tools-proxy cflinuxfs4
cf target -o epa-easey -s prod && cf change-stack emissions-api cflinuxfs4
cf target -o epa-easey -s prod && cf change-stack facilities-api cflinuxfs4
cf target -o epa-easey -s prod && cf change-stack mdm-api cflinuxfs4
cf target -o epa-easey -s prod && cf change-stack ssh-tunnel cflinuxfs4
If any of these fail to change the stack then...

Modify the deploy-list.txt in devops repo removing the apps where the stack successfully change to cflinuxfs4
Delete the app from the prod space in cloud.gov
Redeploy by running the deploy-all.sh per normal production deployment

Please use the link below to access the recording that reviews this ticket:
https://decisionpointcorp-my.sharepoint.com/personal/skhan_decisionpointcorp_com/_layouts/15/guestaccess.aspx?share=EcnurFMyQs1CmS5dgwPUumwBKZd7BIxxWo1OEI58M82pvA

Decision Point is taking on this ticket.

Based on 9/19 refinement discussion, DPC/ERG will add details to the comment of this ticket and close it out

AttachedPDFen.pdf
are the documents that aRE_ EASEY CDC - DB test failed (1).pdf
re essential during the deployment process.
RE_ EASEY CDC - DB test failed (2).pdf


Release Extensions v1.11

@stephendeoca  Looks good. I just had one additional change. I have that in another PR. That is to change the date of the 1.11 release from February to April. Should I go ahead an merge that in?


Implement RISC-V 'lui' instruction

What is this?

Pull request. You are assigned as a reviewer to keep you involved to the context.


usage of react components not recognized

The following code results in two warnings: React and Article unused. Is this expected ?
import React from 'react'
import Article from './components/article/Article'
import PropTypes from 'prop-types'

function ArticleList ({data, itemState}) {
  const listElements = data.map(p =>

)
  return (

    {listElements}

)
}

ArticleList.propTypes = {
  data: PropTypes.array,
  itemState: PropTypes.func
}

export default ArticleList

It looks like you're using "ArticleList" and not "Article" - also "React"
isn't used anywhere. I think the errors are right here. If for some reason
you need things to be in scope, you can always disable the checks manually
for this instance.
On Sun, Apr 30, 2017 at 5:01 PM Roger Gilliar<EMAIL_ADDRESS>wrote:

The following code results in two warnings: React and Article unused. Is
this expected ?
import React from 'react'
import Article from './components/article/Article'
import PropTypes from 'prop-types'
function ArticleList ({data, itemState}) {
const listElements = data.map(p => )
return (
{listElements}
)
}
ArticleList.propTypes = {
data: PropTypes.array,
itemState: PropTypes.func
}
export default ArticleList
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/feross/standard/issues/872, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACWleovr9B-WiNrRoy3b0ZZlrKPfFdn8ks5r1KJCgaJpZM4NMl9j
.

No, I'm using Article inside the map and React is required to make things work. It seems that  usages of React components like  are never recognized.

Oops dang, yeah you're right. Nope, no clue what's up haha. Perhaps someone that uses JSX can help you out (:

It's not necessary to use JSX in React, the issue is on the .js files too

@rogergl so how you were able to fix that. Want to use standard with react, but unused var errors are becoming blockers.

Use this: https://github.com/standard/eslint-config-standard-jsx

It looks like this is fixed in the lastest version of standard!
Could you give it a try? npm install standard@beta

🗣 Standard 11 is released! Run npm install standard@latest --save-dev to update to the latest version. This will also update the version in package.json ✨
Changelog: https://github.com/standard/standard/releases/tag/v11.0.0


Installation problems with reppy

reppy is having some installation problems.  It relies upon a C++ library, Robots Exclusion Protocol Parser for C++ (rep-cpp).  reppy currently won't install on Python 3.10.  See: https://github.com/seomoz/reppy/issues/132
Remove reppy.  Replace with the Python standard library urllib.robotparser or protego.

Removed reppy in PR #11, chose urllib.robotparser.


Robit inventory dupe

Please use the search functionality before reporting an issue. Also take a look at the closed issues!
I checked, this specific case didn't seem to be mentioned yet.
Issue description:
When you open the Robit GUI and click on its inventory icon with an item in hand, that item will get duped.
Steps to reproduce:

Open the Robit GUI. Don't go anywhere specific yet.
From your own inventory, select an item you wanted to dump in the Robit's inventory.
With that item selected, click on the Robit's inventory icon.
You'll drop that item (which you can pick up again).
Quit the GUI, reopen it, go to its inventory normally, and you'll also see the item there. It's duped at this point.

Version (make sure you are on the latest version before reporting):
Forge: forge-1.12.1-<IP_ADDRESS>5-universal
Mekanism: 1.12.1-<IP_ADDRESS>6
Other relevant version: Using All The Mods 3 v3.3

Cannot reproduce in the latest version.
Steps tried:

Place creative energy cube
Place ChargePad in front of it
Place Robit on top of it
Right click Robit
Left click a stack of gold ore (any item will do)
Left click the chest icon of the Robit
See stack being dropped
Quit the GUI
Pickup the dropped stack
Open GUI
Click the chest icon
No items are inserted into the Robit's inventory

I've tested it some more. At first I thought the upgrade of All The Mods 3 to v4.0 fixed it, but then I tried out something: Enable Drop Pickup.
It is not terribly consistent as before, but I still manage to dupe items relatively easily. Follow the steps above but with pickup turned on. When you pick up the dropped item, supposedly at the same time as the Robit picks it up, it's a dupe. Hope you can pinpoint the source now with this info!

Confirmed, if you're quick enough to pick the stack up, you've duplicated it.

Fixed in dev, will be available in the next release :)


[IMPORTANT] Your steam account was hacked

I have sent you multiple DMs and you have not responded yet, please try to recover your steam account, it has sent 2 lots of scam links.

If this is a personal matter, please email me at<EMAIL_ADDRESS>


Use ScreenUtils.clear() instead of glClear in templates

This might be in other templates too, but I noticed in the classic template of liftoff that to clear the screen, this code is used:
Gdx.gl.glClearColor(0.15f, 0.15f, 0.2f, 1f);
Gdx.gl.glClear(GL20.GL_COLOR_BUFFER_BIT);

gdx-setup on the other hand, uses ScreenUtils.clear() instead and I think that is a much better way to do it. It's easier to understand (abstracts away gl stuff), uses one less line of code and is consistent with the libgdx.com tutorial.
I'm unaware of any advantages with using the gl methods directly as ScreenUtils.clear appears to call those anyway.
public static void clear (float r, float g, float b, float a, boolean clearDepth) {
		Gdx.gl.glClearColor(r, g, b, a);
		int mask = GL20.GL_COLOR_BUFFER_BIT;
		if (clearDepth) mask = mask | GL20.GL_DEPTH_BUFFER_BIT;
		Gdx.gl.glClear(mask);
}

I've considered this before, and it could easily be time to change. If creating a project with a much older libGDX version (I think somewhere earlier in the 1.9.x version series), then ScreenUtils.clear() doesn't exist. That said, I don't think there's much reason to make such an old project; breaking changes have been few. Using ScreenUtils does seem much cleaner, so I think I'll update the templates.


.query : Array type problem

Hello,
I use your .query function (as explained here : http://visionmedia.github.io/superagent/#query-strings) and I found an issue : the array of int is parsed to not an array
The only workaround I found is to put them directly in url :
request(app)
                .get(BASE_PATH + "/calls?callsIds=[1,2,125,777]")
                .query({
                    offset: 0,
                    limit: 10,
                    order: "ascending",
                    treated: true,
                    date: "2016-02-28"
                })
                .expect(200, done);

Anyway to fix it ? Seems the array type isn't supported ...
EDIT : also unable to pass object to url, again have to pass them directly in url
request(app).get(BASE_PATH
 +"&extendTypes={\"phones\":true,\"plates\":true,\"subscriptions\":true}");

Any response to this issue ? Because I have opened one where .query does not pass parameter value to a get route as below:
var someValue='1234';
.get('/someRoute')
.query(someValue) nor
.query({'someKey': someValue})

没有灵魂啊!express用的qs是支持数组的


Getting BELU score 0 in validation set

Hi Team, I was trying to train pythia-1.4b-deduped using cli & while training I am getting BELU as 0 for validation set, so basically its not able to generate any text. FYI - I followed the same tutorial shared in the colab notebook of repo
I have shared the logs below, can you please tell if I am going wrong somewhere ?
CUDA_SETUP: WARNING! libcudart.so not found in any environmental path. Searching /usr/local/cuda/lib64...
CUDA SETUP: CUDA runtime path found: /usr/local/cuda/lib64/libcudart.so.11.0
CUDA SETUP: Highest compute capability among GPUs detected: 8.0
CUDA SETUP: Detected CUDA version 117
CUDA SETUP: Loading binary /home/dell/.conda/envs/h2oai/lib/python3.10/site-packages/bitsandbytes/libbitsandbytes_cuda117.so...
2023-04-26 17:53:58,234 - INFO: Global random seed: 1
2023-04-26 17:53:58,234 - INFO: Preparing the data...
2023-04-26 17:53:58,234 - INFO: Setting up automatic validation split...
2023-04-26 17:53:58,376 - INFO: Preparing train and validation data
2023-04-26 17:53:58,377 - INFO: Loading train dataset...
Using pad_token, but it is not set yet.
Using cls_token, but it is not set yet.
Using sep_token, but it is not set yet.
2023-04-26 17:53:58,506 - INFO: Stop token ids: [tensor([])]
2023-04-26 17:53:58,563 - INFO: Sample prompt: As an AI what are your personal feelings on Sarah Connor?<|endoftext|>
2023-04-26 17:53:58,563 - INFO: Loading validation dataset...
Using pad_token, but it is not set yet.
Using cls_token, but it is not set yet.
Using sep_token, but it is not set yet.
2023-04-26 17:53:58,677 - INFO: Stop token ids: [tensor([])]
2023-04-26 17:53:58,681 - INFO: Sample prompt: What types of tests do we have in software development?<|endoftext|>
2023-04-26 17:53:58,681 - INFO: Number of observations in train dataset: 8191
2023-04-26 17:53:58,681 - INFO: Number of observations in validation dataset: 83
2023-04-26 17:53:58,688 - INFO: dtype: torch.float16
/home/dell/.conda/envs/h2oai/lib/python3.10/site-packages/peft/tuners/lora.py:173: UserWarning: fan_in_fan_out is set to True but the target module is not a Conv1D. Setting fan_in_fan_out to False.
warnings.warn(
trainable params: 786432 || all params:<PHONE_NUMBER> || trainable%: 0.055561182411413196
2023-04-26 17:54:05,371 - INFO: Training Epoch: 1 / 1
2023-04-26 17:54:05,372 - INFO: train loss:   0%|          | 0/2047 [00:00<?, ?it/s]
Using pad_token, but it is not set yet.
Using cls_token, but it is not set yet.
Using sep_token, but it is not set yet.
2023-04-26 17:54:05,779 - INFO: Stop token ids: [tensor([])]
2023-04-26 17:55:01,890 - INFO: train loss: 2.22:   5%|4         | 102/2047 [00:56<17:57,  1.80it/s]
2023-04-26 17:55:15,374 - INFO: train loss: 2.22:   5%|4         | 102/2047 [01:10<17:57,  1.80it/s]
2023-04-26 17:55:42,947 - INFO: train loss: 2.21:  10%|9         | 204/2047 [01:37<14:16,  2.15it/s]
2023-04-26 17:55:55,376 - INFO: train loss: 2.21:  10%|9         | 204/2047 [01:50<14:16,  2.15it/s]
2023-04-26 17:56:18,324 - INFO: train loss: 2.17:  15%|#4        | 306/2047 [02:12<11:55,  2.43it/s]
2023-04-26 17:56:35,377 - INFO: train loss: 2.17:  15%|#4        | 306/2047 [02:30<11:55,  2.43it/s]
2023-04-26 17:56:55,301 - INFO: train loss: 1.91:  20%|#9        | 408/2047 [02:49<10:42,  2.55it/s]
2023-04-26 17:57:05,378 - INFO: train loss: 1.91:  20%|#9        | 408/2047 [03:00<10:42,  2.55it/s]
2023-04-26 17:57:30,784 - INFO: train loss: 2.27:  25%|##4       | 510/2047 [03:25<09:37,  2.66it/s]
2023-04-26 17:57:45,380 - INFO: train loss: 2.27:  25%|##4       | 510/2047 [03:40<09:37,  2.66it/s]
2023-04-26 17:58:06,714 - INFO: train loss: 2.04:  30%|##9       | 612/2047 [04:01<08:47,  2.72it/s]
2023-04-26 17:58:25,381 - INFO: train loss: 2.04:  30%|##9       | 612/2047 [04:20<08:47,  2.72it/s]
2023-04-26 17:58:41,145 - INFO: train loss: 2.22:  35%|###4      | 714/2047 [04:35<07:57,  2.79it/s]
2023-04-26 17:58:55,383 - INFO: train loss: 2.22:  35%|###4      | 714/2047 [04:50<07:57,  2.79it/s]
2023-04-26 17:59:16,807 - INFO: train loss: 2.03:  40%|###9      | 816/2047 [05:11<07:17,  2.81it/s]
2023-04-26 17:59:35,384 - INFO: train loss: 2.03:  40%|###9      | 816/2047 [05:30<07:17,  2.81it/s]
2023-04-26 17:59:52,680 - INFO: train loss: 1.96:  45%|####4     | 918/2047 [05:47<06:39,  2.82it/s]
2023-04-26 18:00:05,386 - INFO: train loss: 1.96:  45%|####4     | 918/2047 [06:00<06:39,  2.82it/s]
2023-04-26 18:00:33,621 - INFO: train loss: 2.27:  50%|####9     | 1020/2047 [06:28<06:18,  2.71it/s]
2023-04-26 18:00:45,388 - INFO: train loss: 2.27:  50%|####9     | 1020/2047 [06:40<06:18,  2.71it/s]
2023-04-26 18:01:12,389 - INFO: train loss: 2.12:  55%|#####4    | 1122/2047 [07:07<05:44,  2.69it/s]
2023-04-26 18:01:25,389 - INFO: train loss: 2.12:  55%|#####4    | 1122/2047 [07:20<05:44,  2.69it/s]
2023-04-26 18:01:53,475 - INFO: train loss: 2.11:  60%|#####9    | 1224/2047 [07:48<05:13,  2.62it/s]
2023-04-26 18:02:05,391 - INFO: train loss: 2.11:  60%|#####9    | 1224/2047 [08:00<05:13,  2.62it/s]
2023-04-26 18:02:31,822 - INFO: train loss: 2.00:  65%|######4   | 1326/2047 [08:26<04:33,  2.63it/s]
2023-04-26 18:02:45,393 - INFO: train loss: 2.00:  65%|######4   | 1326/2047 [08:40<04:33,  2.63it/s]
2023-04-26 18:03:07,590 - INFO: train loss: 2.02:  70%|######9   | 1428/2047 [09:02<03:49,  2.70it/s]
2023-04-26 18:03:25,394 - INFO: train loss: 2.02:  70%|######9   | 1428/2047 [09:20<03:49,  2.70it/s]
2023-04-26 18:03:47,965 - INFO: train loss: 2.08:  75%|#######4  | 1530/2047 [09:42<03:15,  2.64it/s]
2023-04-26 18:04:05,396 - INFO: train loss: 2.08:  75%|#######4  | 1530/2047 [10:00<03:15,  2.64it/s]
2023-04-26 18:04:23,403 - INFO: train loss: 2.01:  80%|#######9  | 1632/2047 [10:18<02:33,  2.71it/s]
2023-04-26 18:04:35,397 - INFO: train loss: 2.01:  80%|#######9  | 1632/2047 [10:30<02:33,  2.71it/s]
2023-04-26 18:04:59,964 - INFO: train loss: 2.11:  85%|########4 | 1734/2047 [10:54<01:54,  2.73it/s]
2023-04-26 18:05:15,399 - INFO: train loss: 2.11:  85%|########4 | 1734/2047 [11:10<01:54,  2.73it/s]
2023-04-26 18:05:39,237 - INFO: train loss: 2.09:  90%|########9 | 1836/2047 [11:33<01:18,  2.69it/s]
2023-04-26 18:05:55,401 - INFO: train loss: 2.09:  90%|########9 | 1836/2047 [11:50<01:18,  2.69it/s]
2023-04-26 18:06:16,531 - INFO: train loss: 2.05:  95%|#########4| 1938/2047 [12:11<00:40,  2.70it/s]
2023-04-26 18:06:35,402 - INFO: train loss: 2.05:  95%|#########4| 1938/2047 [12:30<00:40,  2.70it/s]
2023-04-26 18:06:55,230 - INFO: train loss: 2.00: 100%|#########9| 2040/2047 [12:49<00:02,  2.68it/s]
2023-04-26 18:06:57,568 - INFO: train loss: 1.93: 100%|##########| 2047/2047 [12:52<00:00,  2.65it/s]
2023-04-26 18:06:57,570 - INFO: Starting validation inference
2023-04-26 18:06:57,570 - INFO: validation progress:   0%|          | 0/21 [00:00<?, ?it/s]
2023-04-26 18:06:58,259 - INFO: validation progress:   5%|4         | 1/21 [00:00<00:13,  1.45it/s]
2023-04-26 18:06:58,528 - INFO: validation progress:  10%|9         | 2/21 [00:00<00:08,  2.26it/s]
2023-04-26 18:06:58,768 - INFO: validation progress:  14%|#4        | 3/21 [00:01<00:06,  2.86it/s]
2023-04-26 18:06:58,991 - INFO: validation progress:  19%|#9        | 4/21 [00:01<00:05,  3.34it/s]
2023-04-26 18:06:59,203 - INFO: validation progress:  24%|##3       | 5/21 [00:01<00:04,  3.73it/s]
2023-04-26 18:06:59,507 - INFO: validation progress:  29%|##8       | 6/21 [00:01<00:04,  3.57it/s]
2023-04-26 18:06:59,732 - INFO: validation progress:  33%|###3      | 7/21 [00:02<00:03,  3.81it/s]
2023-04-26 18:06:59,918 - INFO: validation progress:  38%|###8      | 8/21 [00:02<00:03,  4.20it/s]
2023-04-26 18:07:00,148 - INFO: validation progress:  43%|####2     | 9/21 [00:02<00:02,  4.25it/s]
2023-04-26 18:07:00,367 - INFO: validation progress:  48%|####7     | 10/21 [00:02<00:02,  4.34it/s]
2023-04-26 18:07:00,607 - INFO: validation progress:  52%|#####2    | 11/21 [00:03<00:02,  4.29it/s]
2023-04-26 18:07:00,818 - INFO: validation progress:  57%|#####7    | 12/21 [00:03<00:02,  4.42it/s]
2023-04-26 18:07:01,090 - INFO: validation progress:  62%|######1   | 13/21 [00:03<00:01,  4.16it/s]
2023-04-26 18:07:01,353 - INFO: validation progress:  67%|######6   | 14/21 [00:03<00:01,  4.04it/s]
2023-04-26 18:07:01,541 - INFO: validation progress:  71%|#######1  | 15/21 [00:03<00:01,  4.36it/s]
2023-04-26 18:07:01,781 - INFO: validation progress:  76%|#######6  | 16/21 [00:04<00:01,  4.30it/s]
2023-04-26 18:07:02,006 - INFO: validation progress:  81%|########  | 17/21 [00:04<00:00,  4.34it/s]
2023-04-26 18:07:02,221 - INFO: validation progress:  86%|########5 | 18/21 [00:04<00:00,  4.43it/s]
2023-04-26 18:07:02,434 - INFO: validation progress:  90%|######### | 19/21 [00:04<00:00,  4.51it/s]
2023-04-26 18:07:02,800 - INFO: validation progress:  95%|#########5| 20/21 [00:05<00:00,  3.77it/s]
2023-04-26 18:07:03,217 - INFO: validation progress: 100%|##########| 21/21 [00:05<00:00,  3.22it/s]
2023-04-26 18:07:03,269 - INFO: validation progress: 100%|##########| 21/21 [00:05<00:00,  3.69it/s]
2023-04-26 18:07:03,449 - INFO: Mean validation loss: 2.13012
2023-04-26 18:07:03,520 - INFO: Validation BLEU: 0.00000
2023-04-26 18:07:03,891 - INFO: Saving last model checkpoint: val_loss 2.1301, val_BLEU 0.0 to output/demo_oasst-data/
all done

Thank you for reporting @canamika27
Actually, I believe you ran into a bug with stop tokens cutting off the prediction at the first token.
It was fixed in this PR: https://github.com/h2oai/h2o-llmstudio/pull/54
Can you check if the issue still persists on the current main branch, please.

Its working now Thanks !!


custom-style element appears to have a size limit

This was a huge pain to narrow down.
This only seems to happen on Chrome. I have a relatively large <style is="custom-style"> element that styles all the paper components via CSS mix-ins and a lot of custom stuff in my application.
At some point I started having an issue where this style block would randomly fail to initialize. No errors were reported.
I came across the "solution" by accident, when removing a big chunk of inner CSS would suddenly made it work. Then I tested it by splitting this one style element into two - also made it work.
Bottom line: a large-ish ( 1500 lines, generously spaced ? ) custom-style element fails to initialize ( still appears in DOM, with all its includes, but nothing else ).

Could this also be caused by a CSS parsing error? Missing semicolon or something.. I haven't found one, but it hit me as a possibility for this scenario as well.

Getting this in some other places as well - namely a large

Seriously, this happens a lot - styles fail to initialize.

Given the age of this issue and no runnable JSBin, I am going to close this issue. If you can still reproduce this issue in Polymer 2 with the polyfills, please reopen this issue with a JSBin that shows the issue.


blurOrChange corrected into changeOrBlur

Small correction in documentation

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.

@jdanyow Can you validate that this docs change is correct?


remove indirect dependencies on lxd

Currently, cloudconfig-lxd uses 3 go.mod files for LXD dependencies:

melato.org/lxdclient/go.mod
melato.org/cloudconfiglxd/go.mod
melato.org/cloudconfiglxd/main/go.mod

To simplify dependencies, merge the lxdcient/ package here, and use a single go.mod.
melato.org/lxdclient was meant to be a separate module that provides a mechanism to connect to an LXD server.
But I have encountered bugs with cloudconfig-lxd depending on which version of lxd is used.  Therefore, I eliminate submodules,
until these issues are resolved.

copied code from melato.org/lxdclient/ here (except for main/).
It now seems to work (I encountered a but when creating files before).


firebase_dynamic_links 0.6.3

FirebaseDynamicLinks.instance.getInitialLink() not working on IOS

Hi @hovanhung98hust
Please flutter upgrade to at least the latest stable version, and use the latest firebase_dynamic_links: ^2.0.9.
If the issue persists please file a new bug report and fill out the template with all of the required information.
Thank you


module/date ignores my locale

Hi,
it seems like polybar ignores the locale-settings.
I found this but it should be fixed: https://github.com/jaagr/polybar/issues/74
$ polybar -s bar-base
%{c}%{F#d1d1d1}Friday, 17.03.17 01:08%{F-}
It is still english.
$ date "+%A"
Freitag
This is german. Any ideas?

Could you show the bar section of your config?

Hi jaagr
I deleted the most settungs but this config shows the same wrong translation:
[bar/bar-base]
modules-center = date

[module/date]
type = internal/date
date = %A, %d.%m.%y
time = %H:%M
label = %date%  - %time%

I use the Arch version. Maybe not a problem in the upstream version?
$ polybar -v
polybar 3.0.4

Ah yes I have it. There is an option "locale" in the bar section which have to be set.
I thought polyar would inherit this from my system. But it seems not.
Thanks!


Lovelace: Missing padding/margin between buttons on mobile

Home Assistant release with the issue:
   -  homeassistant:
          version: 0.90.0
          dev: false
          hassio: true
          virtualenv: false
          python_version: 3.7.2
          docker: true
          arch: armv7l
          timezone: Europe/Amsterdam
          os_name: Linux
      lovelace:
          mode: yaml
          resources: 2
          views: 8

Last working Home Assistant release (if known):
Not that I know of
Operating environment (Hass.io/Docker/Windows/etc.):
Hass.io
Component/platform:
lovelace
Description of problem:
Missing padding/margin between buttons. (see screenshot)

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
lovelace:

Traceback (if applicable):
N/A
Additional information:
This can be fixed by adding extra margin for the botton. (add an extra 4px to margin)
IS:
.actions mwc-button {
    min-width: calc(var(--base-unit) * 9);
    margin: 0 4px;
}

SHOULD:
.actions mwc-button {
    min-width: calc(var(--base-unit) * 9);
    margin: 0 4px 4px;
}

/move to home-assistant-polymer


Polygons with many points cause app to become unresponsive

Describe the bug
Some models return polygons with 6000 or more points in, the app/browser becomes un-responsive when loading them / clicking between images.
As a workaround I should probably reduce the number of polygon points.
To Reproduce
Add a polygon with a large number points from a prediction / pre-annotation.
Expected behavior
The app doesn't become unresponsive
Environment (please complete the following information):

OS: Firefox / Chrome
Label Studio Version [1.8.0]

@turtle0x1 Have you tried using InstaLabel? It automates most of your polygon masks and bounding box labeling with custom AI. All you need to do is upload your dataset, select and label a few samples you'd like to finetune the model on, and hit the 'Train annotator' button. You can then head over to the 'Annotate' tab, click 'Instant Annotation' and have the finetuned model label the rest of your dataset for you. There's even a crowdsourcing option to correct AI predictions for verified ground truth labels. Could be useful for a lot of custom computer vision labeling use cases if you're on the lookout.


Make BenchHist non buildable by default and save logs

As the title says

I think I've figured out a nicer way to turn benchHist into a benchmark. Moving to draft until I've tested it on both stack and Cabal ....


python310Packages.pytest-testmon: 2.0.9 -> 2.0.12

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for python310Packages.pytest-testmon is: Pytest plug-in which automatically selects and re-executes only tests affected by recent changes
meta.homepage for python310Packages.pytest-testmon is: https://github.com/tarpas/pytest-testmon/
meta.changelog for python310Packages.pytest-testmon is: https://github.com/tarpas/pytest-testmon/releases/tag/v2.0.12
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 2.0.12 with grep in /nix/store/96rbjn3qnbx90hgyrgmp6ip9lq5yp2kx-python3.10-pytest-testmon-2.0.12
found 2.0.12 in filename of file in /nix/store/96rbjn3qnbx90hgyrgmp6ip9lq5yp2kx-python3.10-pytest-testmon-2.0.12

Rebuild report (if merged into master) (click to expand)

2 total rebuild path(s)

2 package rebuild(s)

First fifty rebuilds by attrpath
python310Packages.pytest-testmon
python311Packages.pytest-testmon

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/96rbjn3qnbx90hgyrgmp6ip9lq5yp2kx-python3.10-pytest-testmon-2.0.12 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A python310Packages.pytest-testmon https://github.com/r-ryantm/nixpkgs/archive/36a0dfc4c502265f4945f0e9dae7c326dd8270f5.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/96rbjn3qnbx90hgyrgmp6ip9lq5yp2kx-python3.10-pytest-testmon-2.0.12
ls -la /nix/store/96rbjn3qnbx90hgyrgmp6ip9lq5yp2kx-python3.10-pytest-testmon-2.0.12/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

2 packages built:

python310Packages.pytest-testmon
python311Packages.pytest-testmon

Maintainer pings
cc @dmvianna for testing.

Result of nixpkgs-review pr 243598 run on aarch64-linux 1

4 packages built:

python310Packages.pytest-testmon
python310Packages.pytest-testmon.dist
python311Packages.pytest-testmon
python311Packages.pytest-testmon.dist

Result of nixpkgs-review pr 243598 run on aarch64-darwin 1

4 packages built:

python310Packages.pytest-testmon
python310Packages.pytest-testmon.dist
python311Packages.pytest-testmon
python311Packages.pytest-testmon.dist


seth feature parity

Problem & Context
Currently, cast and its cli are not at feature parity with seth.
All of Seth's commands can be found here, and the so far implemented cast commands can be found here.
Solution
Pick any of the commands that are not implemented, and go for it!
Some reference PRs on how this was done for other commands for newcomers can be seen below:

https://github.com/gakonst/foundry/pull/266
https://github.com/gakonst/foundry/pull/261
https://github.com/gakonst/foundry/pull/260
https://github.com/gakonst/foundry/pull/242
https://github.com/gakonst/foundry/pull/223

@gakonst let's make this a good first issue and rename it to cast.

Checklist of implemented commands here: https://github.com/gakonst/foundry/blob/master/cast/README.md

Yes! These are small self-contained commands, so shouldn't require much. Take a look at the PRs linked in the OP for guidance. Also happy to review.

Update: I'm working on this.

Update: I'm working on this.

I have started working on this as well. Perhaps we can coordinate and not implement the same functionality.
I have opened a draft PR while I work on it #284 and I note what I work on. Perhaps you can do as well or write a reply there?

I'll add comments to this issue for features that I've noticed are missing as I attempt to replace seth with cast during my normal usage:

cast call does not support the --block <block> flag for querying historical data
as noted in the readme, cast run-tx is not supported—I used the --trace and --debug modes often

I'm working on cast index, after implementing exaclty what seth does, we can discus how to improve the syntax.

There are 2 reasons why I still use seth over cast

--rpc-url defaults to http://localhost:8545 without needing to set an env var, so I can omit adding it when I port forward my remote geth node
The table response is pretty printed (ie hex strings are turned into integers, easier for human consumption)

[ ] cast send --create is missing as well

Seems like the last two remaining items are cast send --create and I256 support?

Seems like the last two remaining items are cast send --create and I256 support?

cast ls and cast accounts are missing as well. It's convenient to know which wallets you currently have access to. I do think the commands can be improved upon

Other features missing, from comparing the outputs of seth and cast

--from-ascii
bundle-source, though I don't think we need this one
logs
mktx
sign
solc

I'm not sure how many of these are used so we may not care about getting exact parity.

sign exists under "cast wallet"

solc

What is this one?

--from-ascii

We do have this one :smile:

Ah, --from-ascii doesn't show up when running cast -h, but yes just confirmed it is there under an alias for --from-utf8
solc lets you "compile a single file using a default --standard-json input"

Not sure we want that necessarily? :thinking:

I've personally never used it and would be ok not adding it proactively, and perhaps we wait until its requested and discuss then?

Ok so to sum up:

[ ] cast accounts/cast ls (they could just be merged into cast wallet ls?)
[ ] cast send --create
[ ] cast logs
[ ] cast mktx

Optionally also cast bundle-source but there probably isn't a lot of usage for that command. Seems like seth bundle-source was primarily used to get source maps for seth run-tx and the DappTools debugger, but we should try to make this automatic or push Etherscan to include source maps in their API.

There is another command that could be useful - seth rpc which doesn't seem to completely work when passing args, but it does work when the RPC accepts no arguments. This would be useful to call RPCs that don't already have cast commands. I think something like this would be helpful to cut out the curl -H ... boilerplate.
cast rpc <rpc-method> <arg 1> <arg 2> ...

Delineating between types here would need to be handled, for example strings vs numbers. geth will only accept numbers at times, not strings of numbers. So strings would need to be explicit, like '"3"' would be a string  and "3" or 3 would be a number. The response json could return the jsonrpc result field and it could be easily composed with jq

Hi :)  Does cast run remote debugging with custom source ? In the example below, it's possible to start the debugger in FUSE network without the need of Etherscan.
seth run-tx --debug 0xc3b63ab002d4a16fe95566a9c0816fab6cf07ac9867bd5ad1319095cef13b9a2 --source out/dapp.sol.json

I'm not entirely sure I understand - you want to optionally use local sources for decoding with cast run? I don't think this is currently possible - feel free to open up a feature request so we can track it better :)

@onbjerg exactly, many side-chains does not have direct support to retrieve the source code from etherscan, so adding the source code of the deployed contract on the path is how seth is doing.

Makes sense - we don't have support for this yet, let's track in a separate feature issue (pls open one @henry-hz) and we can discuss there

Ok!
Done
https://github.com/foundry-rs/foundry/issues/1723

Closing, everything in here is implemented except cast mktx which is unplanned, and cast events/cast accounts that have separate issues


I use PostgreSQL 9.6.x database,failed to push some refs to my repos

Gogs version (or commit ref): <IP_ADDRESS>7
Git version: <IP_ADDRESS>
Operating system: CentOS Linux 7  kernel 3.10.0-514.10.2.el7.x86_64
Database (use [x]):

[x ] PostgreSQL
[ ] MySQL
[ ] MSSQL
[ ] SQLite

Can you reproduce the bug at https://try.gogs.io:

[ ] Yes (provide example URL)
[x ] No
[ ] Not relevant

Log gist (usually found in log/gogs.log):

 git push
Counting objects: 3, done.
Writing objects: 100% (3/3), 210 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: 2017/03/18 11:22:31 [ WARN] Custom config './custom/conf/app.ini' not found, ignore this if you're running first time
remote: Gogs: Internal error
remote: GetProtectBranchOfRepoByName [repo_id: 5, branch: master]: dial tcp <IP_ADDRESS>:3306: getsockopt: connection refused
To https://mydomain.doman/xiaoming/test.git
 ! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://mydomain.doman/xiaoming/test.git'

# $(pwd)/gogs web -c $(pwd)/custom/conf/app.ini
2017/03/18 11:22:17 [TRACE] Custom path: /home/git/gogs/custom
2017/03/18 11:22:17 [TRACE] Log path: /home/git/gogs/log
2017/03/18 11:22:17 [TRACE] Log Mode: File (Trace)
2017/03/18 11:22:17 [ INFO] https4u <IP_ADDRESS>7
[Macaron] 2017-03-18 11:22:21: Started GET /xiaoming/test for <IP_ADDRESS>
[Macaron] 2017-03-18 11:22:21: Completed GET /xiaoming/test 200 OK in 52.881506ms
[Macaron] 2017-03-18 11:22:22: Started GET /img/favicon.png for <IP_ADDRESS>
[Macaron] [Static] Serving /img/favicon.png
[Macaron] 2017-03-18 11:22:22: Completed GET /img/favicon.png 200 OK in 376.998µs
[Macaron] 2017-03-18 11:22:31: Started GET /xiaoming/test.git/info/refs?service=git-receive-pack for <IP_ADDRESS>
[Macaron] 2017-03-18 11:22:31: Completed GET /xiaoming/test.git/info/refs?service=git-receive-pack 401 Unauthorized in 4.941104ms
[Macaron] 2017-03-18 11:22:31: Started GET /xiaoming/test.git/info/refs?service=git-receive-pack for <IP_ADDRESS>
[Macaron] 2017-03-18 11:22:31: Completed GET /xiaoming/test.git/info/refs?service=git-receive-pack 200 OK in 92.456086ms
[Macaron] 2017-03-18 11:22:31: Started POST /xiaoming/test.git/git-receive-pack for <IP_ADDRESS>
[Macaron] 2017-03-18 11:22:31: Completed POST /xiaoming/test.git/git-receive-pack 200 OK in 134.573563ms

Description
I use PostgreSQL 9.6.x database, but when I push  to master ,dial tcp <IP_ADDRESS>:3306: getsockopt: connection refused
...

Hi, goto admin dashboard and do:

Should solve your problem.

thx @Unknwon , it's resolve.


problem with BME280 values

Hello,
I have a problem with your BME280 library.
Your card work fine and is a good card for my classroom but pressure and humidity are always read 1026 and 30 !
First I suspect hardware problems but BME280 give me good values with :
https://makecode.microbit.org/pkg/makecode-extensions/bme280
Do you have a solution ?
Because add only one library is better for my little students.
Best regards,
Alex

It's something I'm in the process of looking into and a fix is incoming.

Thanks

Work in progress here - https://github.com/pimoroni/pxt-envirobit/tree/fix-from-bme280
I need to pick up some hardware to test it, though! (Currently at home with a brand shiny new baby)

Hopefully now fixed and available in v0.0.5! Please let me know how you get on.

Yes, all good.
Thanks from Marseille.
Alex


no longer able to see upgrade stats on machines

Description
yes
Reproduction
examine machine > no upgrade button

I think I found the cause. FormattedMessage was changed in an engine update, and it broke the IsEmpty method, so now my code thinks there are no upgrades and hides the button.
This looks sus: https://github.com/space-wizards/RobustToolbox/blob/f29f57aa7c24e2d08f09c33fd7a797639bb4026f/Robust.Shared/Utility/FormattedMessage.cs#L24-L27

yeah that should probably be ==...

fixed in engine


mysensors attribute error V_POSITION

Home Assistant release (hass --version):
0.38.1
Component/platform:
RPI with running a mysensors gateway on the usb
Description of problem:
I have two mysensors devices running correctly on my hass rpi combo (light sensor and scene controller). Somehow I get a lot of attribute V_POSITION errors. These come from a device discovery component ? No idea how to solve this.
Problem-relevant configuration.yaml entries and steps to reproduce:
gateways:
    - device: "/dev/ttyUSB0"
      persistence_file: "/home/pi/.homeassistant/mysensors_usb.json"
persistence: true
version: "1.5"

Traceback (if applicable):
Feb 12 20:42:15 raspberrypi hass[417]: File "/home/pi/.homeassistant/deps/mysensors/mysensors.py", line 290, in alert
Feb 12 20:42:15 raspberrypi hass[417]: self.event_callback('sensor_update', nid)
Feb 12 20:42:15 raspberrypi hass[417]: File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/mysensors.py", line 331, in node_update
Feb 12 20:42:15 raspberrypi hass[417]: callback(self, node_id)
Feb 12 20:42:15 raspberrypi hass[417]: File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/device_tracker/mysensors.py", line 30, in mysensors_callback
Feb 12 20:42:15 raspberrypi hass[417]: position = child.values.get(set_req.V_POSITION)
Feb 12 20:42:15 raspberrypi hass[417]: File "/usr/lib/python3.4/enum.py", line 255, in __getattr__
Feb 12 20:42:15 raspberrypi hass[417]: raise AttributeError(name) from None
Feb 12 20:42:15 raspberrypi hass[417]: AttributeError: V_POSITION

Additional info:

@MartinHjelmare Could this have something to do with: https://github.com/home-assistant/home-assistant/pull/5781 ?

Yes, you've found a bug. V_POSITION is only available with mysensors 2.x. I'll make a fix ASAP.


Fix interactive window diagnostics position

Fix interactive window concat document position offset

Is this needed for the upcoming release next week?

@karthiknadig it doesn't affect all users so if we already freeze the build, it's okay to not merge now but I would suggest we have it fixed in a point release for Stable. If we don't have a point release coming soon, I would recommend to have it merged for the release next week.


Cython sensitive to class declaration order in pure mode

edibles.py
class Edible:
  ...

class Blueberry(Edible):
  ...

edibles.pxd
class Blueberry(Edible):  # BOOM
  ...

class Edible:
  ...

I guess you meant cdef class in the .pxd file, right? Is this really a bug? (I mean, it shouldn't crash, but it shouldn't necessarily allow out-of-order declarations either.)


No data from heatpump

Hi, and thanks for all this amazing work!
I am trying to get my m5 stickC connected to my heatpump.
Double checked cabling and all seems fine, also I used your newest code with
#include "def/German/ALTHERMA(LT_CA_CB_04-08KW).h"
(and uncommented a few items there).
pio worked also, but the screen on the stickC looks scrambled and is switched on (is this the way it is supposed to look, also would pull much more power from the heatpump board with the screen on).
The StickC is getting into Wifi and connects to the MQTT Broker (as I can see in the Home Assistant Mosquitto log). However,
this is all I get from the sensor.althermasensors (by the way, the name "sensor.althermasensors" is different from what is in your readme):
M5VIN: 4.949V
M5AmpIn: 107.500mA
M5BatV: 4.165V
M5BatCur: 0.000mA
M5BatPwr: 0.000mW
friendly_name: AlthermaSensors
How can I debug this? Thanks

Hi @m-reuter, thanks and welcome!
The very latest code (few minutes ago) handles the screen properly: it displays the logs at the beginning and shuts off until you press the main button.
You can look at the logs from the warmth of your mqtt broker also:
~$ mosquitto_sub -v -t "espaltherma/#"

Now, if you get nothing from the heatpump, cross check again the RX TX Pins from setup.h. Remember they are crossed: the RX of ESP goes to TX of the heatpump X10A.
What is the model of your heat pump?

Hi @m-reuter, thanks and welcome!
The very latest code (few minutes ago) handles the screen properly: it displays the logs at the beginning and shuts off until you press the main button.
You can look at the logs from the warmth of your mqtt broker also:
~$ mosquitto_sub -v -t "espaltherma/#"

Now, if you get nothing from the heatpump, cross check again the RX TX Pins from setup.h. Remember they are crossed: the RX of ESP goes to TX of the heatpump X10A.
What is the model of your heat pump?

Thanks for the fast reply.
here a pic of the cabling:
https://up.picr.de/40339297na.jpg
5v red: 1 (pin on the right in the photo)
G26 orange 2
G36/G25 green 3
GND brown 5
(blue and yellow are not connected at the moment).
How can I run the mosquitto_sub on my raspi  (my home assistant runs in a docker and so does the mosquitto)? mosquitto_sub is not available in the OS.
I just checked the log and am getting these:
1610842006: New connection from <IP_ADDRESS> on port 1883.
[INFO] found mqtt on local database
1610842006: New client connected from <IP_ADDRESS> as ESPAltherma (p2, c1, k15, u'mqtt').
1610843106: Socket error on client ESPAltherma, disconnecting.
1610843180: New connection from <IP_ADDRESS> on port 1883.
...
And currently no data at all in sensor.althermasensors
Could it be that I need to power the StickC via USB? Although I still see it in Wifi Clients on my Network.
My heat pump is the Rotex HPSU Compact Ultra RHSX08P50D  (aka: DAIKIN Altherma 3 R ECH2O )

Thanks for the fast reply.
here a pic of the cabling:
https://up.picr.de/40339297na.jpg
5v red: 1 (pin on the right in the photo)
G26 orange 2
G36/G25 green 3
GND brown 5
(blue and yellow are not connected at the moment).
How can I run the mosquitto_sub on my raspi  (my home assistant runs in a docker and so does the mosquitto)? mosquitto_sub is not available in the OS.
I just checked the log and am getting these:
1610842006: New connection from <IP_ADDRESS> on port 1883.
[INFO] found mqtt on local database
1610842006: New client connected from <IP_ADDRESS> as ESPAltherma (p2, c1, k15, u'mqtt').
1610843106: Socket error on client ESPAltherma, disconnecting.
1610843180: New connection from <IP_ADDRESS> on port 1883.
...
And currently no data at all in sensor.althermasensors
Could it be that I need to power the StickC via USB? Although I still see it in Wifi Clients on my Network.
My heat pump is the Rotex HPSU Compact Ultra RHSX08P50D  (aka: DAIKIN Altherma 3 R ECH2O )

Your RX and TX are reversed. You should have this:

Your RX and TX are reversed. You should have this:

Thanks, will try tomorrow. But then your drawing in the readme is incorrect.

Thanks, will try tomorrow. But then your drawing in the readme is incorrect.

Damn, yes, my drawing is wrong, I forgot to update it!

Note: you have an M5Stickc Plus, never had one before but you might have to put the G25 as floating as it shares G36:
gpio_pulldown_dis(GPIO_NUM_25);
gpio_pullup_dis(GPIO_NUM_25);

Damn, yes, my drawing is wrong, I forgot to update it!

Note: you have an M5Stickc Plus, never had one before but you might have to put the G25 as floating as it shares G36:
gpio_pulldown_dis(GPIO_NUM_25);
gpio_pullup_dis(GPIO_NUM_25);

Where would I need to put those lines?

Where would I need to put those lines?

In main.cpp line 147
  digitalWrite(PIN_THERM, HIGH);
  gpio_pulldown_dis(GPIO_NUM_25);
  gpio_pullup_dis(GPIO_NUM_25);
  EEPROM.begin(10);

In main.cpp line 147
  digitalWrite(PIN_THERM, HIGH);
  gpio_pulldown_dis(GPIO_NUM_25);
  gpio_pullup_dis(GPIO_NUM_25);
  EEPROM.begin(10);

Ok, I updated the schema. Thanks for noticing!

Ok, I updated the schema. Thanks for noticing!

Working now?

Working now?

yes, just tried it and it works! Thanks. I did not need to change the lines in main.cpp .
I noticed on my StickC Plus that your screen output only covers 1/4 of the screen the rest is filled with noise intensities, probably the screen on the older stickc is much smaller.

yes, just tried it and it works! Thanks. I did not need to change the lines in main.cpp .
I noticed on my StickC Plus that your screen output only covers 1/4 of the screen the rest is filled with noise intensities, probably the screen on the older stickc is much smaller.

Great I'm glad it works!
Maybe I'll make another environnement for the M5stickc plus, but I don't have any at hand to test at the moment.
You can try, it should be as easy as changing the library from m5stickc.h to #include <M5StickCPlus.h> and changing also the lib-dep in platformio.ini.
This should be enough to have a proper screen display!
Not this is not really a critical feature for ESPAltherma 😉

Great I'm glad it works!
Maybe I'll make another environnement for the M5stickc plus, but I don't have any at hand to test at the moment.
You can try, it should be as easy as changing the library from m5stickc.h to #include <M5StickCPlus.h> and changing also the lib-dep in platformio.ini.
This should be enough to have a proper screen display!
Not this is not really a critical feature for ESPAltherma 😉

Thanks, it is not critical indeed. I won't open the heatpump again until Tuesday or Wednesday (to attach a permanent USB cable so I have faster access in the future). Will let you know then.
Also do you know where I would attach the cables for switching on and off (via the relay?). On the Daikini board or on the Rotex board?

Thanks, it is not critical indeed. I won't open the heatpump again until Tuesday or Wednesday (to attach a permanent USB cable so I have faster access in the future). Will let you know then.
Also do you know where I would attach the cables for switching on and off (via the relay?). On the Daikini board or on the Rotex board?

Can't wait to see your final setup.
Regarding controlling your heatpump, I checked what could be the technical drawings for it and if I'm not mistaken, I would say the first 2 pins of J8.

But better to let @KalaNagHTD confirm indeed!

Can't wait to see your final setup.
Regarding controlling your heatpump, I checked what could be the technical drawings for it and if I'm not mistaken, I would say the first 2 pins of J8.

But better to let @KalaNagHTD confirm indeed!

You should connect to the RT („room thermostat“) connector J16, pin 1 and 2!

You should connect to the RT („room thermostat“) connector J16, pin 1 and 2!


Rename calculated fields to avoid ambiguity section may be breaking due to execution order, not naming problem

In Rename calculated fields to avoid ambiguity section
INSERT INTO products (product, revenue)
VALUES
    ('Shark', 100),
    ('Robot', 150),
    ('Alien', 90);

-- The window function will rank the 'Robot' product as 1 when it should be 3.
SELECT
product
, CASE product WHEN 'Robot' THEN 0 ELSE revenue END AS revenue
, RANK() OVER (ORDER BY revenue DESC)
FROM products
;

The text is saying that naming was the cause of the ranking bug, which implies if we change column alias revenue, it should work to rank Robot product as 3.
.
For example, changing revenue to updated_revenue:
SELECT
product
, CASE product WHEN 'Robot' THEN 0 ELSE revenue END AS updated_revenue
, RANK() OVER (ORDER BY updated_revenue DESC)
FROM products
;

However this breaks with Error 42703 column "updated_revenue" does not exist.
I believe the lesson here is not that alias name clashing can cause bugs, but that window functions cannot refer to columns created at the same query scope, and that the solution would involve something like a subquery. This scoping issue is the same thing that QUALIFY aims to give convenience to.
Working subquery to rank Robot as 3
WITH ranked_products AS (
    SELECT
        product,
        CASE product WHEN 'Robot' THEN 0 ELSE revenue END AS adjusted_revenue
    FROM products
)
SELECT
    product,
    adjusted_revenue,
    RANK() OVER (ORDER BY adjusted_revenue DESC) AS rank
FROM ranked_products;

DDL

CREATE TABLE products (
    product VARCHAR(50) NOT NULL,
    revenue INT NOT NULL
);

INSERT INTO products (product, revenue)
VALUES
    ('Shark', 100),
    ('Robot', 150),
    ('Alien', 90);

Thanks for flagging.
In Snowflake and MariaDB it definitely works:
SELECT
product
, CASE product WHEN 'Robot' THEN 0 ELSE revenue END AS updated_revenue
, RANK() OVER (ORDER BY updated_revenue DESC)
FROM products
;

However you're right, doesn't look like it works in other RDBMs.
Rather than use subquery you can do this:
SELECT
product
, CASE product WHEN 'Robot' THEN 0 ELSE revenue END AS updated_revenue
, RANK() OVER (ORDER BY CASE product WHEN 'Robot' THEN 0 ELSE revenue END DESC)
FROM products
;

I'll update the README, thanks!


I am only opening an issue because there's no discussion section and I don't know how else to contact you!

Hi, my name is Bryan. I love your videos and I would love to help out in any way I can... even in a trivial way like converting videos into blog format. If you are looking for collaborators on this project you can reach me at<EMAIL_ADDRESS>Thanks again for what you do.... your fourier transform videos provided more insight to me than years of college as an Electrical Engineer; in fact they partially inspired my senior project.

Hey Bryan, this is the right place to reach out about this. Grant and I will be figuring out how to make this effort easier for everyone in the next few weeks and will make an announcement then.
I will say that this process is not super trivial and is something we really want to see done, so we are making sure it's done right before allowing external collaborators.


Sample from the README does not work

I've just copied this from the README:
README script
from compact_json import Formatter, EolStyle

formatter = Formatter()
formatter.indent_spaces = 2
formatter.max_inline_complexity = 10
formatter.json_eol_style = EolStyle.LF

# Format the JSON contents:
with open("input.json", "r") as f:
    obj = json.load(f)
    json_string = formatter.serialize(obj)
    print(json_string)

# Create a new JSON file with formatted JSON contents:
with open("input.json", "r") as f:
    obj = json.load(f)

formatter.dump(obj, output_file="output.json", newline_at_eof=True)

Minor details is that it should import json, but even when I do that, I get
AttributeError: 'Formatter' object has no attribute 'dump'

Finally updated. Thanks for the issue report.


Enhancement: ability to disable the flash functionality

Now that we have the desktop notification it would be awesome to actually be able to toggle the flash screen functionality - particularly a few friends I have said they like the alert but dislike the flashing screen (or inability to set a flash timer)

You should be able to set the flash color to fully transparent in the config -- I imagine that'd have the same effect.

You should be able to set the flash color to fully transparent in the config -- I imagine that'd have the same effect.

You're right - 0000FF00 seems to work


When linking a service to an app, I want to get more feedback

At this point we just redirect you back to the app show page. We should give more feedback when linking a service.

This feature seems to be a bit more crucial then first thought. Since linking a service can easily take 20+ seconds.

@jvanbaarsen Right, perhaps some kind of "spinner" page or a little spinner in the add-on widget to indicate it's still installing/done after finishing.

@michiels I want to make this the same as installing services on the server. So you get a label: "Linking" and it will be changed to "Linked" when ready.

@jvanbaarsen Allright! Btw, if you don't know Dokku/Docker, I think the concept of "linking" a service is not widely known. But we can see if our initial users understand that term. Otherwise, we can just call it "enable". So you "enable" a service for an app. Linking is a bit "under the hood".

@michiels Yeah maybe something called "Attach". Since the service is already "Enabled" but not attached to your app yet. I'll see what looks/feels better; Enable or Attache. Good suggestion! 👍


Support all additive functions with rollup

As of today, only sum, max and min are supported in the RealtimeToOfflineSegmentsTask. We should be able to support all additive functions during rollup (eg. percentile etc)

The challenge here is that the intermediate result (e.g. list for percentile) must be of the same type of the input. In order to support any aggregation function, we need to figure out a way to store the intermediate result as a separate column (similar to star-tree). The query engine needs to smartly choose the intermediate result column to aggregate on. We also need to decide what value to put in the original column (or not allow querying it directly).


Feature/add buttons mobile

There is a typo in the function name stoptAnimation, i think it should be stopAnimation. I would have changed it but thought i should ask you first @vasu-gondaliya

Oh! Ok. Thank you for pointing it out @ptechofficial. Can you change the function name at all places? I think there are 3 times this name occurs.

Can you merge this PR first @vasu-gondaliya ? So, i'll fork it again to work on the updated files.