Cannot  find symbol method getCenterY() in TimelineTileSkin.java

C:\Users\ASUS\Downloads\tilesfx-master\src\main\java\eu\hansolo\tilesfx\skins\TimelineTileSkin.java:934: error: cannot find symbol
entry.getValue().relocate(size * 0.05, sections.get(entry.getKey()).getLayoutBounds().getCenterY() - entry.getValue().getLayoutBounds().getCenterY());
^
symbol:   method getCenterY()
location: class Bounds

Could you please provide a code snippet that shows the error? Makes things so much easier to reproduce :)

Sure)
Here is one problem (  getCenterY()  ):
percentageInSections.entrySet().forEach(entry -> {
entry.getValue().setFont(Fonts.latoRegular(size * 0.025));
entry.getValue().setPrefWidth(size * 0.065);
entry.getValue().relocate(size * 0.05,
sections.get(entry.getKey()).getLayoutBounds().getCenterY() -
entry.getValue().getLayoutBounds().getCenterY());
entry.getValue().setVisible(size * 0.025 > 6);
});
And there is another ():
пт, 24 апр. 2020 г. в 11:28, Gerrit Grunwald<EMAIL_ADDRESS>
Could you please provide a code snippet that shows the error? Makes things
so much easier to reproduce :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/HanSolo/tilesfx/issues/92#issuecomment-618878349, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOWHXJ7BBFSCWTBTYBBBG4TROFERRANCNFSM4MP4VB7Q
.

O, sorry. there is only one problem
пт, 24 апр. 2020 г. в 11:39, J. Russo<EMAIL_ADDRESS>
Sure)
Here is one problem (  getCenterY()  ):
percentageInSections.entrySet().forEach(entry -> {
entry.getValue().setFont(Fonts.latoRegular(size * 0.025));
entry.getValue().setPrefWidth(size * 0.065);
entry.getValue().relocate(size * 0.05, sections.get(entry.getKey()).getLayoutBounds().getCenterY() - entry.getValue().getLayoutBounds().getCenterY());
entry.getValue().setVisible(size * 0.025 > 6);
});
And there is another ():
пт, 24 апр. 2020 г. в 11:28, Gerrit Grunwald<EMAIL_ADDRESS>
Could you please provide a code snippet that shows the error? Makes
things so much easier to reproduce :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/HanSolo/tilesfx/issues/92#issuecomment-618878349,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOWHXJ7BBFSCWTBTYBBBG4TROFERRANCNFSM4MP4VB7Q
.

Ok...I mean a code snippet that I can just copy/paste and run on my machine. I need to reproduce the error on my machine.

Close this one because no example code was provided.

Sure and thanks, I dealed with the problem
пт, 22 мая 2020 г. в 09:37, Gerrit Grunwald<EMAIL_ADDRESS>
Close this one because no example code was provided.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/HanSolo/tilesfx/issues/92#issuecomment-632516626, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AOWHXJ6FHHI53LJLSIQCAPLRSYMRFANCNFSM4MP4VB7Q
.


feat: add charge model and API

fixes #309

add chargesAPI to modules.kt too

PR updated

@nikit19 travis is failing

PR updated it was because since I am not using the @id in the data class I cannot add it to JSONAPI factory


Compactor Retention Issue and Resource Usage

I am running compactor with these retention values --retention.resolution-raw=14d --retention.resolution-5m=30d --retention.resolution-1h=60d the stores show a min date of 2019-01-14T17:00:00-07:00 for a while we saw data go back to 14th on our dashboard then 2 days ago it’s now stopping at getting now data beyond January 24, 2019 1:00:00 AM  what could have happened and why is it happening ?
We have minimal space available to our Prometheus servers (3d worth for relatively high volume kubernetes clusters with 000's of nodes) and it's more cost effective to our company to have longer data in object store rather than block devices, or SAN/NAS based NFS space.
With 1tb uploaded by the sidecars the compactor is now using 120gb of RAM, and 600gb of disk space.
I am aware of https://github.com/improbable-eng/thanos/issues/813
But of concern is why I cannot access data past 14d even though Thanos seems to think it exists since I started the sidecars on the 14th of Jan.

 Also as per the Slack channel my storage nodes are panic'ing:-
panic: runtime error: slice bounds out of range
goroutine 836 [running]:
github.com/improbable-eng/thanos/pkg/store.(*bucketChunkReader).loadChunks(0xc11b060e40, 0x127d1e0, 0xc104d4d900, 0xc0cd0fc000, 0x13a1, 0x4800, 0x7d, 0x1911011418ddefaf, 0x0, 0x0)
/go/src/github.com/improbable-eng/thanos/pkg/store/bucket.go:1573 +0x6d3
github.com/improbable-eng/thanos/pkg/store.(*bucketChunkReader).preload.func3(0x4346e9, 0x11757b0)
/go/src/github.com/improbable-eng/thanos/pkg/store/bucket.go:1544 +0xb2
github.com/improbable-eng/thanos/vendor/github.com/oklog/run.(*Group).Run.func1(0xc104db0e40, 0xc104db0d80, 0xc0ca97e0f0)
/go/src/github.com/improbable-eng/thanos/vendor/github.com/oklog/run/group.go:38 +0x27
created by github.com/improbable-eng/thanos/vendor/github.com/oklog/run.(*Group).Run
/go/src/github.com/improbable-eng/thanos/vendor/github.com/oklog/run/group.go:37 +0xbe
thanos_storage.service: main process exited, code=exited, status=2/INVALIDARGUMENT
This is happening in 2 environments now.

Wonder if these are related at all ?

It seems like it crashes at the same place just like in https://github.com/improbable-eng/thanos/issues/829 ... you might be running into the same issue and it doesn't seem like this is related to being out-of-memory :( so I guess your query node sends a query to Thanos Store, it crashes, and then you only get data from Prometheus

Yes to all those questions :(

Verify tells me I have some issues. Not sure how to resolve these as repair cannot fix these:-
level=info ts=2019-02-10T12:06:55.976663571Z caller=index_issue.go:130 msg="verified issue" with-repair=true issue=index_issue
level=info ts=2019-02-10T12:06:55.976901997Z caller=overlapped_blocks.go:25 msg="started verifying issue" with-repair=true issue=overlapped_blocks
level=warn ts=2019-02-10T12:06:56.324043501Z caller=overlapped_blocks.go:38 msg="found overlapped blocks" group="0@{cluster="v4/customer/paas/e1",environment="ecp-prometheus-e1_blue",replica="lpdosput50627"}" overlap="[mint: 154975680
0000, maxt:<PHONE_NUMBER>000, range: 0s, blocks: 2]: <ulid: 01D3ANHT1KXTQVCV0EZMAT8S9P, mint:<PHONE_NUMBER>000, maxt:<PHONE_NUMBER>000, range: 2h0m0s>, <ulid: 01D3AQNCX7EKC0VHJZA9EXDC15, mint:<PHONE_NUMBER>000, maxt:<PHONE_NUMBER>000, range: 8h0m0s>"
level=warn ts=2019-02-10T12:06:56.32416754Z caller=overlapped_blocks.go:38 msg="found overlapped blocks" group="0@{cluster="v4/customer/paas/e1",environment="ecp-prometheus-e1_blue",replica="lpdosput50628"}" overlap="[mint:<PHONE_NUMBER>
000, maxt:<PHONE_NUMBER>000, range: 0s, blocks: 2]: <ulid: 01D3ANHSYXWCYVPCTSR71GQEZC, mint:<PHONE_NUMBER>000, maxt:<PHONE_NUMBER>000, range: 2h0m0s>, <ulid: 01D3AR4HQ1W5SF523CE7DX0Q37, mint:<PHONE_NUMBER>000, maxt:<PHONE_NUMBER>000, range: 8h0m0s>"
level=warn ts=2019-02-10T12:06:56.324207636Z caller=overlapped_blocks.go:42 msg="repair is not implemented for this issue" issue=overlapped_blocks
level=info ts=2019-02-10T12:06:56.324223267Z caller=verify.go:68 msg="verify completed" issues=2 repair=true

Did it do any changes to the indices? Was there any output prior to the first line there? There should've been. I wonder if this is related to https://github.com/improbable-eng/thanos/pull/816. The issue with overlapping blocks is that the timestamps of different blocks overlap and they have the same sets of labels so it is impossible to determine which we should choose when responding to a query. You should sensibly choose one of them which has the real data and then delete it. I wonder, however, how that could've happened. Is the issue still reproducible now?

As for the resource usage - we are aware of the issues here: https://github.com/improbable-eng/thanos/issues/814. It seems that it is especially painful for you since your index files are probably huge considering you have 000s of K8s nodes (you probably mean pods?). Maybe compactor has been killed or something in the middle of the uploading/deleting process considering how big the index files are however that should've still not happen. Those numbers seem excessively huge to me for the amount of time series that you have.

Did it do any changes to the indices? Was there any output prior to the first line there? There should've been. I wonder if this is related to #816. The issue with overlapping blocks is that the timestamps of different blocks overlap and they have the same sets of labels so it is impossible to determine which we should choose when responding to a query. You should sensibly choose one of them which has the real data and then delete it. I wonder, however, how that could've happened. Is the issue still reproducible now?

There is no prior lines, and the issue persists on one of our clusters with this issue I removed the blocks that report overlaps and the storage node still panic's

As for the resource usage - we are aware of the issues here: #814. It seems that it is especially painful for you since your index files are probably huge considering you have 000s of K8s nodes (you probably mean pods?). Maybe compactor has been killed or something in the middle of the uploading/deleting process considering how big the index files are however that should've still not happen. Those numbers seem excessively huge to me for the amount of time series that you have.

000's of nodes, many 000's of pods :)
We did have issues with running out of our quota space on our internal object store. Not to mention the OOM issues. So these may have caused the issue.
If I can help with any debugging information I will be happy to provide it. If not I should probably wipe this environment and start again. Please let me know. Thanks for all the guidance.

In terms of OOM, this should be fixed in 0.10.0 release, given improvements we made for Prometheus compaction (:
Closing for now, unless you can still reproduce this in newest version (:


Add "Make Relative" option

var manifest = require('asset-builder')('./assets/manifest.json', {
  makePathsRelative: true
});

This will transform all the paths to be relative to the project root.
/home/you/project/bower_componets/jquery/jquery.js :arrow_right: bower_components/jquery/jquery.js
Stopgap for https://github.com/roots/sage/pull/1485#issuecomment-129622691

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/25629387-add-make-relative-option?utm_campaign=plugin&utm_content=tracker%2F8853550&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F8853550&utm_medium=issues&utm_source=github).

Needs tests

:eyes:


Show plain text in issue card instead of markdown syntax

In the backend we've moved the description from plain text to markdown, so the user can just write the markdown but in the mobile this markdown text is shown just as it is, it should be rendered. For eg Readme.md file we write it in markdown but while viewing it is rendered to beautiful layout. Add this feature of rendering markdown in mobile app.

Markdown feature is implemented in issues page. But there's a list of issues card in the home page, that needs fixing. It shows markdown text as plain text. Either render the markdown, if that looks weird, show plain text without formatters.

@DonnieBLT This issue can be closed as it is redundant after the introduction of the "title" field in issue model.

@DonnieBLT This issue can be closed as it is redundant after the introduction of the "title" field in issue model.

@DonnieBLT i have tested and made the changes if necessary in the pr i have made...
Link: https://github.com/OWASP/BLT-Flutter/pull/337


net: http client: HTTP timeout can lead to deadlock of global system queue

Describe the bug
To be able to have http timeouts working, a driver should implement the socket shutdown call.
Therefore I'm implementing the shutdown call in my own offload driver (bg95), but during testing I've come up with a problem which leads to a deadlock in the http client design.
When doing a http_client_req in a different thread, that thread is blocking on a receive call (socket receive) after it's done the post. This socket is being locked (https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/net/lib/sockets/sockets.c#L54) during this blocking receive call. When a timeout occurs, this is not in the thread context, but on the global system queue. This call is trying to obtain the lock again in the socket to do the shutdown call (https://github.com/zephyrproject-rtos/zephyr/blob/main/subsys/net/lib/http/http_client.c#L499) on the socket, but it's blocked due to a different thread requesting the lock. This is blocking the global system queue forever.
This seems to me like a bad design of the http client since it's calling in different threads on the same socket.
Any suggestion on how to fix would be welcome (eg: replacing the timeout by a poll timeout on the receive)
Environment (please complete the following information):

OS: Ubuntu 22.04
Toolchain Zephyr SDK 15.1
Zephyr Release 3.2

Generaly, when mutex protection was introduced for sockets, the idea was to allow access to a socket from different threads, by unlocking the mutex when socket function is blocked (for instance in recv()). Native socket implementation achieves that by using a conditional variable, and offloaded sockets should follow this pattern (in worst case by simply releasing the mutex for the offloaded call).
I'm ok though with updating the http_client implementation by using poll(), IMO it's better to use built-in mechanisms to handle timeout.

@rlubos , thanks for the clarification. For the unlocking of the socket mutex, it feels not as a good design to control a mutex from socket layer in the driver? I also couldn't find any documentation on this (as far as I could see). Since you're okay with changing this to poll, i will update it as propsed.

it feels not as a good design to control a mutex from socket layer in the driver?

Well, if it was a regular driver, then yes it'd be awkward, but here we'll talking about offloaded devices. In this case the offloaded implementation takes full control of the socket call, so IMO it's ok to handle the mutex (just like the native implementation does).

I also couldn't find any documentation on this (as far as I could see)

Very likely it's not documented well.


Maybe a Video Tutorial?

For some reason I can't install the beat run mod, I've tried both methods (Manual and Automatic) so I think having a video tutorial would be nice to have because video tutorials are much easier to follow than text ones (imo)

readthe installation steps again. and tedo them.
idk why you need a video if everyone else including me got beatrun running instantly.
just copy the correct files into the correct directory. hows that hard?

i can't figure it out i have tried for the last 2 hours please help

I'll make a video tutorials later


About  configure client to connect  to other hosts

Hi olivere
Elastic works OK, when sending data to default url "http://localhost:9200", but when i trying to send to remote elasticsearch I'm getting error.
client, err := elastic.NewClient(
		elastic.SetURL(elasticHost))
	if err != nil {
		// Handle error
		panic(err)
	}

	// Ping the Elasticsearch server to get e.g. the version number
	info, code, err := client.Ping().URL(elasticHost).Do()
	if err != nil {
		// Handle error
		panic(err)
	}
	fmt.Printf("Elasticsearch returned with code %d and version %s", code, info.Version.Number)

This is my test environment,
core@8d3c56f4-3468-4c69-9afb-6202099641f0 ~/bin $ curl <IP_ADDRESS>:9200
{
  "status" : 200,
  "name" : "Black Tarantula",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.1",
    "build_hash" : "b88f43fc40b0bcd7f173a1f9ee2e97816de80b19",
    "build_timestamp" : "2015-07-29T09:54:16Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}

core@8d3c56f4-3468-4c69-9afb-6202099641f0 ~/bin $ curl http://<IP_ADDRESS>:9200/
{
  "status" : 200,
  "name" : "Black Tarantula",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.1",
    "build_hash" : "b88f43fc40b0bcd7f173a1f9ee2e97816de80b19",
    "build_timestamp" : "2015-07-29T09:54:16Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}

core@8d3c56f4-3468-4c69-9afb-6202099641f0 ~/bin $ curl http://remote_elk:9200/
{
  "status" : 200,
  "name" : "Ecstasy",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.1",
    "build_hash" : "b88f43fc40b0bcd7f173a1f9ee2e97816de80b19",
    "build_timestamp" : "2015-07-29T09:54:16Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}

As you can see here is:
<IP_ADDRESS> its localhost for <IP_ADDRESS> and remote_elk its some remote elk.

It works fine with remote hosts. We're using it in production for more than 2 years now. I suppose its ErrNoClient?!
I have two questions for you:

What is the error message you get?
What is the output of curl http://<remote-ip>:9200/_nodes/http?pretty when you run it from the server where Elastic is running?

Maybe ES is binding to an interface that is not accessible from the host that Elastic/Go is sitting on. You might look into the sniffing process and Docker issues (I know you're not on Docker, but it might be the same issue).

I get the error message.
panic: no Elasticsearch node available

goroutine 1 [running]:
github.com/google/cadvisor/storage/elasticsearch.New(0xc2080a4780, 0x24, 0xb663d0, 0x8, 0xb45290, 0x5, 0x7ffdf2ef8da9, 0x24, 0x0, 0x0, ...)
    /home/tpost/go/src/github.com/google/cadvisor/storage/elasticsearch/elasticsearch.go:104 +0x1af
main.NewMemoryStorage(0x7ffdf2ef8d62, 0xd, 0xbc1890, 0x0, 0x0)
    /home/tpost/go/src/github.com/google/cadvisor/storagedriver.go:111 +0x716
main.main()
    /home/tpost/go/src/github.com/google/cadvisor/cadvisor.go:63 +0x18a

goroutine 5 [chan receive]:
github.com/golang/glog.(*loggingT).flushDaemon(0x11ffe80)
    /home/tpost/go/src/github.com/google/cadvisor/Godeps/_workspace/src/github.com/golang/glog/glog.go:839 +0x78
created by github.com/golang/glog.init·1
    /home/tpost/go/src/github.com/google/cadvisor/Godeps/_workspace/src/github.com/golang/glog/glog.go:406 +0x2a7

goroutine 17 [syscall, locked to thread]:
runtime.goexit()
    /usr/local/go/src/runtime/asm_amd64.s:2232 +0x1

goroutine 11 [syscall]:
os/signal.loop()
    /usr/local/go/src/os/signal/signal_unix.go:21 +0x1f
created by os/signal.init·1
    /usr/local/go/src/os/signal/signal_unix.go:27 +0x35

goroutine 15 [IO wait]:
net.(*pollDesc).Wait(0xc208011480, 0x72, 0x0, 0x0)
    /usr/local/go/src/net/fd_poll_runtime.go:84 +0x47
net.(*pollDesc).WaitRead(0xc208011480, 0x0, 0x0)
    /usr/local/go/src/net/fd_poll_runtime.go:89 +0x43
net.(*netFD).Read(0xc208011420, 0xc20800f000, 0x1000, 0x1000, 0x0, 0x7f4ea0dc8fb0, 0xc2080a0ab0)
    /usr/local/go/src/net/fd_unix.go:242 +0x40f
net.(*conn).Read(0xc20803a2d8, 0xc20800f000, 0x1000, 0x1000, 0x0, 0x0, 0x0)
    /usr/local/go/src/net/net.go:121 +0xdc
net/http.noteEOFReader.Read(0x7f4ea0dcb278, 0xc20803a2d8, 0xc2080fd658, 0xc20800f000, 0x1000, 0x1000, 0x9ba820, 0x0, 0x0)
    /usr/local/go/src/net/http/transport.go:1270 +0x6e
net/http.(*noteEOFReader).Read(0xc20801fe60, 0xc20800f000, 0x1000, 0x1000, 0xc208012000, 0x0, 0x0)
    <autogenerated>:125 +0xd4
bufio.(*Reader).fill(0xc208038c60)
    /usr/local/go/src/bufio/bufio.go:97 +0x1ce
bufio.(*Reader).Peek(0xc208038c60, 0x1, 0x0, 0x0, 0x0, 0x0, 0x0)
    /usr/local/go/src/bufio/bufio.go:132 +0xf0
net/http.(*persistConn).readLoop(0xc2080fd600)
    /usr/local/go/src/net/http/transport.go:842 +0xa4
created by net/http.(*Transport).dialConn
    /usr/local/go/src/net/http/transport.go:660 +0xc9f

goroutine 16 [select]:
net/http.(*persistConn).writeLoop(0xc2080fd600)
    /usr/local/go/src/net/http/transport.go:945 +0x41d
created by net/http.(*Transport).dialConn
    /usr/local/go/src/net/http/transport.go:661 +0xcbc

2 .
root@ES:~/.gvm/pkgsets/go1.4.2/global/src/github.com/google/cadvisor# curl -XGET 'http://<IP_ADDRESS>:9200/_nodes/http?pretty=1'
{
  "cluster_name" : "elasticsearch",
  "nodes" : {
    "Uy_kzkbZTT-6YE7dDWvNxQ" : {
      "name" : "Lighting Rod",
      "transport_address" : "inet[/<IP_ADDRESS>:9300]",
      "host" : "83cbfa134cfd",
      "ip" : "<IP_ADDRESS>",
      "version" : "1.7.1",
      "build" : "b88f43f",
      "http_address" : "inet[/<IP_ADDRESS>:9200]",
      "http" : {
        "bound_address" : "inet[/0:0:0:0:0:0:0:0:9200]",
        "publish_address" : "inet[/<IP_ADDRESS>:9200]",
        "max_content_length_in_bytes" : 104857600
      }
    }
  }
}

Okay. Elastic will pick up the IP address returned via HTTP nodes info:
"http_address" : "inet[/<IP_ADDRESS>:9200]"

Can you try to curl <IP_ADDRESS> from the machine that Elastic/Go is sitting on? I'm pretty sure it's not accessible.
Then you have two options:

Configure the list of HTTP endpoint URLs manually and disable sniffing.
Make sure Elasticsearch nodes bind to an IP address that is accessible from the client side.

For 2. you should read the Docker wiki page.
Let me know if you succeed.

Thanks @olivere
This is my new code:
client, err := elastic.NewClient(
         elastic.SetSniff(false),
        elastic.SetURL(elasticHost)
    )
    if err != nil {
        // Handle error
        panic(err)
    }

It works.

Yes. That's option 1. So it's the "Docker issue". I'm sure people using cAdvisor with Elasticsearch would want both options so you should document this or somehow propose options to go for 1. or 2.
Anyway. :-)  HTH.


Edit function does not work in my use-case

I am working with the smart_listing gem in my application but unfortunately the edit function does not work. When I click on the edit function nothing happens. I can see the output in the console is correct (see below). Can you see in the code if I do anything incorrectly?
Output console
Started GET "/churches/36/edit" for ::1 at 2016-02-23 22:12:01 +0100
Processing by ChurchesController#edit as JS
Parameters: {"id"=>"36"}
Church Load (1.0ms)  SELECT  "churches".*  FROM "churches" WHERE "churches"."id" = ? LIMIT 1  [["id", 36]]
Rendered churches/_form.html.erb (3.0ms)
Rendered smart_listing/item/_edit.js.erb (46.1ms)
Rendered churches/edit.js.erb (93.2ms)
Completed 200 OK in 232ms (Views: 219.4ms | ActiveRecord: 2.0ms)
Controller
class ChurchesController < ApplicationController

  before_filter :set_church, except: [:index, :new, :create]

  def index
    smart_listing_create :churches, Church.all, partial: "churches/list"
  end

  def new
    @church = Church.new
  end

  def create
    @church = Church.create(church_params)
  end

  def edit
  end

  def update
    @church.update_attributes(church_params)
  end

  def destroy
    @church.destroy
  end

  private
    def set_church
      @church = Church.find(params[:id])
    end

    def church_params
      params.require(:church).permit(:id, :name, :subdomain, :logo)
    end
end

Partial _church.html.erb

  <%= link_to object.name, object %>

  <%= object.subdomain %>

  <%= smart_listing_item_actions [
    {name: :show, url: church_path(object)},
    {name: :edit, url: edit_church_path(object)},
    {name: :destroy, url: church_path(object), confirmation: "Are you sure you want to delete this?"}
    ] %>

Partial _form.html.erb

  <%= form_for object, url: object.new_record? ? churches_path : church_path(object), remote: true, html: { :class => "form-horizontal" } do |f| %>
    <form class="form-horizontal">

        Naam

          <%= f.text_field :name, class: "form-control input", placeholder: "Naam" %>

        Subdomein

          <%= f.text_field :subdomain, class: "form-control input", placeholder: "Subdomein" %>

      <%= f.submit "Save", class: "btn btn-primary" %>
      <button class="btn btn-link cancel">Cancel</button>
    </form>
  <% end %>

Partial _list.html.erb
<% unless smart_listing.empty? %>

      Organisatie
      Domeinnaam

      <% smart_listing.collection.each do |o| %>
        <tr class="editable" data="<%= {id:(o.id)} %>">
          <%= smart_listing.render object: o, partial: "churches/church", locals: {object: o} %>

      <% end %>
      <%= smart_listing.item_new colspan: 3, link: new_church_path %>

<% else %>

      <%= smart_listing.item_new colspan: 3, link: new_church_path %>

<% end %>
<%= smart_listing.paginate %>
<%= smart_listing.pagination_per_page_links %>

Please check the JS ajax response you get and evaluate it in the console. If it causes and error, you'll see it.

I see this issue too.
no error in app console. in chrome/ms edge development console
in js body in development console see only this:
var smart_listing = $('#domains').smart_listing();
smart_listing.edit(ffd5feb2-b8ac-434e-b0e5-029352b7a4cb, "test	\n"); received from be erb ot haml templates
and in main window contend goes to background, as for modal windows opened, but nothing, I don't see my test  into row of my editable object

Try to create new rails 5 app on same server, with your code provided in
http://showcase.sology.eu/smart_listing
use bootstrap-sass, smart_listing only gems.
partial tests seems passed - my simple form opens for editing properly
I use integer as record in and sqlite for database.
In my production app from prevoius comment where edit/update actions failed to show after fadeIn - i use postgresql UUIDs as record identifiers and drop turbolinks from Gemfile. may be problem in this damaged requirements?

@foxmuldercp I don't think you have the same problem as @wytzejan
SmartListing doesn't support UUID record identifiers as you can see above:
smart_listing.edit(5f3cf870-f87e-4178-b604-6e0df657b85c, "my long content here<\/td>\n");
is syntax error (5f3cf870-f87e-4178-b604-6e0df657b85c instead of simple int).
If you like us to include such feature, please open separate ticket or submit a pull request.

any updates on this? i am having same problem.
new action works, but not edit action. it fades in and thats it. 200, successful answer from server, templates are fine as well. + turbolinks disabled.
no idea whats wrong.

Can you get the response body of XHR request, paste it into your JS console and execute please?

hey man,
thanks for the tip!.
it gives and invalid/unexpected token in that case, and here is my response:
var smart_listing = $('#variants').smart_listing();
smart_listing.edit(5a74dbeb1abe263777000001, "\n  <form enctype=\"multipart/form-data\" class=\"form-horizontal\" id=\"edit_variant_5a74dbeb1abe263777000001\" action=\"/tr/companies/nur-abla-karadeniz-sofrasi/products/kara-lahana-corbasi-nur-abla-karadeniz-sofrasi-umraniye-alemdag/variants/5a74dbeb1abe263777000001\" accept-charset=\"UTF-8\" data-remote=\"true\" method=\"post\"><input name=\"utf8\" type=\"hidden\" value=\"✓\" /><input type=\"hidden\" name=\"_method\" value=\"patch\" />
\n      Title <\/label>\n      <input type=\"text\" value=\"var 2\" name=\"variant[title]\" id=\"variant_title\" />\n
\n    <\/div>\n
\n      Director <\/label>\n      <input type=\"text\" value=\"merve durmaz\" name=\"variant[director]\" id=\"variant_director\" />\n
\n    <\/div>\n
\n
\n      <input type=\"submit\" name=\"commit\" value=\"Save\" class=\"btn btn-primary\" />\n    <\/div>\n    <button class=\'cancel btn btn-link\'>Cancel<\/button>\n  <\/form>\n<\/td>\n");
but when i try it for new action, it works fine and also in the console.

I had the same problem but for me the issue was that I misspelled the .editable class selector...
For folks like me I just want to note, please check your class spellings


waypoint: 0.2.2 -> 0.2.3

Motivation for this change
Bump waypoint to 0.2.3
Also:

add installCheckPhase
add runHooks to build and install

Things done

[X] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[X] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[X] Ensured that relevant documentation is up to date
[X] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 114244 run on x86_64-linux 1

1 package built:

waypoint


Notebook Reorganization

If you haven't already, please read through our contributing guidelines before opening your PR
What is the purpose of this PR?
Reorganizes the notebooks to be more in line with toffy. Closes #640, closes #590
Remaining issues
The links, table of contents, etc in readme will need to be updated. The testbook stuff will need to be updated

@ngreenwald I can't seem to request a review for this. How does it look?

Overall looks really nice.
I think the outline could use some more formatting:

Maybe one section on using the repo, which would include the first three bullets.
Giving Mantis it's own section, rather than a subheading under the unrelated "Once you are finished" tab. Etc etc. Then update the headers to be the appropriate size based on the hierarchical formatting

@ngreenwald I've adjusted the organization a bit more. How does it look?

Looks great!


Invalid collection.json in schematics

Bug, feature request, or proposal:
Bug
What is the expected behavior?
Valid JSON
What is the current behavior?
Invalid JSON, a double quote is missing after materialNav in schematics/collection.json, causing errors in tools using schematics (see cyrilletuzi/vscode-angular-schematics#5).
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Material 6.3
Is there anything else we should know?
As an additional note, comments are not valid inside a JSON file. It forces tools which use schematics, like Angular Schematics extension for VS Code, to install additional JSON parsing libraries, as a normal JSON.parse() fail. If it's OK to remove them, I'll open another issue and PR.

Fixed by https://github.com/angular/material2/pull/11839


Upgrade the container/compute library to 0.32.0

@derekbekoe @yugangw-msft

It looks like there are some Pylint errors and at least one test ( test_acs_create_update) needs to be re-recorded due to the SDK update.

@brendandburns, please add a new test step for list in the test case and re-record

comments addressed, ci/cd fixed (i hope), please take another look.
Thanks!

there are lint errors still:
python -m pylint -d I0013 -r n /home/travis/build/Azure/azure-cli/src/command_modules/azure-cli-vm/azure
************* Module azure.cli.command_modules.vm.custom
C:1021, 0: Wrong continued indentation (add 1 space).
                                                     container_service_name, instance)
                                                     ^| (bad-continuation)
C:1025, 0: Line too long (106/100) (line-too-long)

@yugangw-msft all passing now, sorry for the issues.
Thanks!
--brendan


Modify type validation in artifacts

Once the 149 issue have been done, validate type field in artifacts.
Example to field type in AIC artifact:  "type": ["AlastriaIdentityCreation", "US12"]

Already done!
https://github.com/alastria/alastria-identity-JSON-objects/blob/develop/validators/alastriaIdCreations/alastriaIdCreation-json-schema.json#L43


Add Serializable Trait to DirectBinaryAvroDecoder

What changes were proposed in this pull request?

Why are the changes needed?

Does this PR introduce any user-facing change?

How was this patch tested?

Can one of the admins verify this patch?

i meant to close this PR. accidental pull request
On Tue, Jun 7, 2022 at 7:40 PM UCB AMPLab @.***> wrote:

Can one of the admins verify this patch?
—
Reply to this email directly, view it on GitHub
https://github.com/apache/spark/pull/36794#issuecomment-1149277712, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AUM25WRDVS22JAAGHBPNIGLVN7MVRANCNFSM5YEI2MCA
.
You are receiving this because you authored the thread.Message ID:
@.***>


AssertionError: COCOAPI does not support empty polygons

The following error occurs when training a custom dataset

Hello, Do you solve the problem?

This issue generally occurs as an error that interrupts the training code after running for a period of time. Although I searched on GitHub and found some people encountering the same problem, there were no useful results to refer to. I suspected that there might be a problem with my own dataset. However, my dataset can run smoothly on mmdetection. Meanwhile, the error occurred in the file detectron2/structures/masks.py. So I investigated the masks.py in both mmdetection and detectron2, and indeed found that the statement "assert len(polygons) > 0, "COCOAPI does not support empty polygons"" was not present in mmdetection and detectron2. Instead, it was replaced by other statements in mmdetection and detectron2. After replacing the statement with the corresponding one from mmdetection and detectron2, the error no longer occurred, and the training proceeded smoothly.
`if len(polygons) == 0:                                                             #added code
# COCOAPI does not support empty polygons              #added code
return np.zeros((height, width)).astype(bool)                 #added code
#assert len(polygons) > 0, "COCOAPI does not support empty polygons"   #To comment out this line`


crop recomendation AND AI chatbot (three issues)

Description
crop  recomendation helps farmers . it will give information about what type of crop we will grow on our land on the basis of temperature , soil fertility , rainfall , etc
Fixes # (issue)
#1126
#1129
#1127
Type of change

[yes ] Added a new machine learning frameworks, libraries or software.
[yes ] Documentation update

Checklist:

[yes ] My code follows the style guidelines of this project
[ yes] I have performed a self-review of my own code
[ yes] I have commented my code, particularly in hard-to-understand areas
[yes ] I have made corresponding changes to the documentation
[yes ] My changes generate no new warnings

@sanjay-kv sir ,  merge my this PR

@sanjay-kv  SIR PLEASE MERGE MY THIS PR
So I SUBMIT another pull request on othher issue

@sanjay-kv sir , can this PR be merged now because I raised the pull request approximate 1hour ago from completion time.
It's matter of 3 issues approx 80 marks on leaderboard
Sir please kindly review my query, if it's possible then please merge it


[Question] Embedding a Pyglet 3D window in a simply GUI

Detailed Description
I've looked through all the documentation I could find (including the Issues), but haven't seen anything regarding what I'm looking to do.
I currently have a Pyglet window showing a 3D scene and shapes (actually a mix of Pyglet and RatCave). I would like to build a GUI around this window, with buttons and sliders that would control, for example, the position and color of objects in my 3D scene. Something like this, but replacing the plot with my 3D scene:

Should I  be using an external GUI package for this? I know PySimpleGUI does not support embedded Pyglet windows, but I'm unsure if another package might support them. Is this something I can do purely with pyglet? If so, how? Any example would be very appreciated.
Thanks,

For simple GUI features you can look at some widget in examples/gui/widgets.py.
If you need something more advanced, maybe look into glooey: https://glooey.readthedocs.io/en/latest/

@gadese Moving between 2D and 3D is just about changing the projection matrix.

Is there any chance you could point me to an example doing this?

fogleman/Minecraft is a good example. The set_2d and set_3d functions tell you how to change the projection matrix.

Switching to PyOpenGL is not an option right now.

As you mentioned first, PySimpleGUI does not support embedded pyglet windows(or OpenGL context?). Did it means I want to use OpenGL in a tk window but I don't know how to do it?
And I gave you 2 choice about the external GUI packages.

Embedding OpenGL context is also supported by Qt and other high-level GUI suit.

I also recommend using pure pyglet. Using pyglet.gui isn't a good idea. But use glooey to draw 2D widget is the best choice.

Thank you, the set_2d and set_3d worked fine.
I ended up running a PyQT GUI and the pyglet window separately, in different windows rather than embedded, because the GUI is more convenient that way. The GUI changes values that are then sent to the pyglet for updates.
For anyone interested, I had to run the pyglet window in a main thread and the QT GUI in a secondary thread using threading.thread.

I've seen this asked before, so I created an example.
We don't really support it as it introduces issues outside our control, but it seems to work so far.
import sys
import pyglet
#from PyQt5 import QtGui
#from PyQt5 import QtCore, QtWidgets
#from PyQt5.QtOpenGL import QGLWidget as OpenGLWidget
from PyQt6 import QtGui
from PyQt6 import QtCore, QtWidgets
from PyQt6.QtOpenGLWidgets import QOpenGLWidget as OpenGLWidget
from pyglet.gl import glClear, GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT
import random

"""An example showing how to use pyglet in QT, utilizing the OGLWidget.

   Since this relies on the QT Window, any events called on Pyglet Window
   will NOT be called.

   This includes mouse, keyboard, tablet, and anything else relating to the Window
   itself. These must be handled by QT itself.

   This just allows user to create and use pyglet related things such as sprites, shapes,
   batches, clock scheduling, sound, etc.
"""

class MainWidget(QtWidgets.QWidget):
    def __init__(self, parent=None):
        super().__init__()
        self.setWindowTitle("Pyglet and QT Example")
        self.shapes = []

        width, height = 640, 480
        self.opengl = PygletWidget(width, height)
        self.sprite_button = QtWidgets.QPushButton('Create Rectangle', self)
        self.sprite_button.clicked.connect(self.create_sprite_click)

        self.clear_sprite_button = QtWidgets.QPushButton('Clear Shapes', self)
        self.clear_sprite_button.clicked.connect(self.clear_sprite_click)

        mainLayout = QtWidgets.QVBoxLayout()
        mainLayout.addWidget(self.opengl)
        mainLayout.addWidget(self.sprite_button)
        mainLayout.addWidget(self.clear_sprite_button)
        self.setLayout(mainLayout)

    def create_sprite_click(self):
        gl_width, gl_height = self.opengl.size().width(), self.opengl.size().height()

        width = random.randint(50, 100)
        height = random.randint(50, 100)

        x = random.randint(0, gl_width-width)
        y = random.randint(0, gl_height-height)
        color = (random.randint(0, 255), random.randint(0, 255), random.randint(0, 255))

        shape = pyglet.shapes.Rectangle(x, y, width, height, color=color, batch=self.opengl.batch)
        shape.opacity = random.randint(100, 255)
        self.shapes.append(shape)

    def clear_sprite_click(self):
        for shape in self.shapes:
            shape.delete()

        self.shapes.clear()

class PygletWidget(OpenGLWidget):
    def __init__(self, width, height, parent=None):
        super().__init__(parent)
        self.setMinimumSize(width, height)

        self.timer = QtCore.QTimer()
        self.timer.timeout.connect(self._pyglet_update)
        self.timer.setInterval(0)
        self.timer.start()

    def _pyglet_update(self):
        # Tick the pyglet clock, so scheduled events can work.
        pyglet.clock.tick()

        # Force widget to update, otherwise paintGL will not be called.
        self.update()  # self.updateGL() for pyqt5

    def paintGL(self):
        """Pyglet equivalent of on_draw event for window"""
        glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)

        self.batch.draw()

    def initializeGL(self):
        """Call anything that needs a context to be created."""
        self.batch = pyglet.graphics.Batch()
        size = self.size()
        w, h = size.width(), size.height()

        self.projection = pyglet.window.Projection2D()
        self.projection.set(w, h, w, h)

if __name__ == '__main__':
    app = QtWidgets.QApplication(sys.argv)
    window = QtWidgets.QMainWindow()
    ui = MainWidget(window)
    ui.show()  # Calls initializeGL. Do not do any GL stuff before this is called.
    app.exec() # exec_ in 5.


add matching on string value having only numeric characters to matchCriteria

Add testing for a string value having only numeric characters to satisfy matchCriteria

Resolved in v 1.4.290


take cell.rcut into account when generating becke grids

I got an error when generating Becke grids for 1D materials. I tracked is down to the rcut being to small. I suggest that we allow the cell.rcut to overwrite the estimation if defined.

Could you please post an issue with an example that demonstrates the problem? There might be some inaccuracies in estimating the "rcut" value during the DFT AO value generation. It's important to thoroughly investigate the cause of this underestimation rather than simply overriding the "rcut" value in a brute force way.

I tried to recreate the error again, but I did not succeed. I do not know what changed. But I wil close the pull request.

Okay, I encountered th error again. so because the unit cell size becomes irrelevant in two directions when working in 1D periodicity, you can place your 1D chain where you want. For example on the edge of a unit cell wich is really big in the two other directions. this will cause all the atoms to be outside the rcut sphere. this should not be possible.
but I think I found two possible soulutions.

change the following line grids_edge = lib.cartesian_prod([[-.5, 1.]] * dimension).dot(a[:dimension]) to grids_edge = lib.cartesian_prod([[-.5, 1.]] * 3).dot(a)
https://github.com/pyscf/pyscf/blob/2c7f7625fd2719b8f3e9715e40c3937cab65c06e/pyscf/pbc/gto/eval_gto.py#L237C5-L237C80
Because even if you have a periodicity in only 1 or 2 dimensions, youare still working in three dimensions. so the grid edges should be set in 3 dimensions.
change the line Ls_mask = (np.linalg.norm(grids2atm, axis=2) < rcut).any(axis=0) to Ls_mask = (np.linalg.norm(grids2atm[:, :, :dimension], axis=2) < rcut).any(axis=0) in order to take into account the lower dimensionality of the periodicity.
I personally prefer the first solution. but I am not an expert regarding this part of the code so please feel free to share what you think.

The get_lattice_Ls function is designed to generate the vectors for lattice sum. For low dimensional systems, these vectors on other directions should not be generated. The exception is dimension=2 which by default calls truncated Coulomb potential. This treatment actually works in 3-dimension. The truncated dimension is only enabled when low_dim_ft_type is set https://github.com/pyscf/pyscf/blob/2c7f7625fd2719b8f3e9715e40c3937cab65c06e/pyscf/pbc/gto/eval_gto.py#L194 .
In this sense, solution 2 makes more sense to me.


Built-in settings/keymaps sync feature

Before you begin
Check the backlog of issues to reduce the chances of creating duplicates; if an issue already exists, place a +1 (👍) on it.
Is your feature request related to a problem? Please describe.
No.
Describe the solution you'd like
I think it will be great for zed to add a built-in settings/keymap sync. For sublime text users, we can download a plugin and use it to sync the settings on the GitHub Gist. I think zed can also do it but with the built-in feature.
Describe alternatives you've considered
Upload, sync, and download the settings from the gist so we don't need to manually configure it everywhere.
Screenshots
If applicable, add mockups / screenshots to help explain present your vision of the feature.

It already has a backing server powering the collaboration feature, and so the stitching to GitHub also already done.
So for sure first class settings sync, would be sick!
I use 2 machines, work and personal laptop, would be sick to have the setting synced, and possibly also a "workspace" specific settings too? 🤔

Emm. I don't understand why the sync will be sick. Sync the settings between the devices will be convenient for people who have more than one computer.

I decided to open a discussion post about what all we should include in a future settings sync feature:

https://github.com/zed-industries/community/discussions/956

close it due to the discussion for it.


added gradient button

Reusable button component with a dynamic gradient background in React, customizable with default color values that can be overridden on each use.

@nawalirfan Good work Nawal! Thanks!


Database entries should expire after a set time

example: http://stackoverflow.com/questions/25305385/meteor-collections-that-expire
Subscription based database entries from lightstreamer to mongodb should be set to expire after a set period of time, to prevent database overflow.
Expire times should be set based on the expected amount of data for each particulary lightstreamer subscription. (ex. 1 day for telemetry, 7 days for radio on/off)

Fixed in 9cd310ac68606c6cc2e6b0d5f9a7c3816510afb1 by @4xposed


Make fetch_bugs a periodic task.

LGTM r+wc

Coverage decreased (-0.01%) to 91.74% when pulling 3a5f1bf372896550bb830b53c5df9c47ebc285e9 on akatsoulas:fetch-bugs-periodic into bd3d3437790cff5dc32302b60b5fed9368696ccb on mozilla:master.

Coverage decreased (-0.01%) to 91.74% when pulling 3a5f1bf372896550bb830b53c5df9c47ebc285e9 on akatsoulas:fetch-bugs-periodic into bd3d3437790cff5dc32302b60b5fed9368696ccb on mozilla:master.

Coverage increased (+0.0%) to 91.75% when pulling 3a5f1bf372896550bb830b53c5df9c47ebc285e9 on akatsoulas:fetch-bugs-periodic into bd3d3437790cff5dc32302b60b5fed9368696ccb on mozilla:master.


README: Update live demo link to use 1.3.4 and React 15

Current coverage is 66.37% (diff: 100%)

Merging #24 into master will not change coverage

@@             master        #24   diff @@
==========================================
  Files             6          6
  Lines           113        113
  Methods           0          0
  Messages          0          0
  Branches         13         13
==========================================
  Hits             75         75
  Misses           34         34
  Partials          4          4

Powered by Codecov. Last update 5a73edf...82c5bef


Improve deployment

Currently page goes offline for 1-2 mins after CD deployment.
Probably because of low-powered Linux appservice plan that need to build a docker image first.
Ideas:

Windows plan
Docker container
Bigger plan
Slot deployment

Using app service deploy v3 task could also have improved things (uses different kudu api now)


Nuxt

This is  a bug | feature request.

Prerequisites

[X] Are you running the latest version?
[X] Are you reporting to the correct repository?
(enso is made of many specialized packages: https://github.com/laravel-enso)
[X] Did you check the documentation?

Description
We used to use Laravel Enso and the backend is amazing but client was slow. Would you consider using Nuxt?
Steps to Reproduce

Expected behavior

Actual behavior

Work in progress here on using Enso with Nuxt (https://github.com/familytree365/genealogy)

https://github.com/familytree365/nuxt

Hi Curtis,
Could you be more specific about

but client was slow.

The pages were all passed through the renderer which slowed down speed and Nuxt makes pages available statically which helps with SEO. There are a few other benefits too.

How could I benchmark page rendering to show you that this is faster? It loads faster for me but I want to be able to prove and demonstrate it is worth considering for the client part.

We are in the process of upgrading to Nuxt 3 and Vue 3 now that you have completed Vue 3 changes. I am wondering how you would suggest benchmarking this?
https://github.com/familytree365/nuxt

https://github.com/cgd-ui/genealogy (new repository location).


Development proactive msg

Added check for valid tenant id; added manifest; added more helpful help text

@jotrick,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot


Closes #71 71_comments_guide: Add Comments section to programming strategy

Thank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.
Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the devel branch until you have checked off each task.

[x] Place Closes #<insert_issue_number> into the beginning of your Pull Request Title (Use Edit button in top-right if you need to update)
[x] Code is formatted according to the tidyverse style guide. Run styler::style_file() to style R and Rmd files
[x] Updated relevant unit tests or have written new unit tests - See Unit Test Guide
[x] If you removed/replaced any function and/or function parameters, did you fully follow the deprecation guidance?
[x] Update to all relevant roxygen headers and examples.
[x] Run devtools::document() so all .Rd files in the man folder and the NAMESPACE file in the project root are updated appropriately
[x] Address any updates needed for vignettes and/or templates
[x] Update NEWS.md if the changes pertain to a user-facing function (i.e. it has an @export tag) or documentation aimed at users (rather than developers)
[x] Build admiral site pkgdown::build_site() and check that all affected examples are displayed correctly and that all new functions occur on the "Reference" page.
[x] Address or fix all lintr warnings and errors - lintr::lint_package()
[x] Run R CMD check locally and address all errors and warnings - devtools::check()
[x] Link the issue so that it closes after successful merging.
[x] Address all merge conflicts and resolve appropriately.
[x] Pat yourself on the back for a job well done! Much love to your accomplishment!

Should we have a message that says don't do something like this

and that our code really should be readable enough that pointing out stuff like this is not necessary.

ugh....looking at these more I am finding them more helpful...I feel like this was why we could never reach a decisions.

I would not use the #++++++ lines because they increase the space used for comment and distract me from the code. For me the syntax highlighting in RStudio is sufficient to distinguish code and comments.
In general I would avoid repeating information which is already provided in the header. But sometimes it is helpful to repeat requirements.
I am not sure what we should add to the guidance and how we could get to an agreement. Should we discuss it in the Wednesday meeting or ask more developers to review this PR?
@bms63 , what do you think?

I have added styler to the "Source Code Formatting" section. I have kept lintr because we use both.

@pharmaverse/admiral Please review.

I tend to agree with not using the #++++ commenting style. I think it is better to keep it in line with the tidyverse style guide, as the comments are clear enough, but also more concise.

Shall we finish this one out @bundfussr?

@bms63 , yes, it would be nice to finish it.
I have added a paragraph regarding formatting of comments.
As far as I remember we did not have a final decision. Thus I have added it to the agenda for next Wednesday.
By the way, why is version 0.2.1 in devel but not in main?

@bms63 , yes, it would be nice to finish it.
I have added a paragraph regarding formatting of comments.
As far as I remember we did not have a final decision. Thus I have added it to the agenda for next Wednesday.
By the way, why is version 0.2.1 in devel but not in main?

I approved a PR that had the version at 0.2.1 and it should be 0.3.0.  Can you update here for us? https://github.com/pharmaverse/admiraldev/pull/198/files

@bms63 , I see. I have updated NEWS.md.

@bms63 , I fixed the checks. They just failed due to a issue on github side. So rerunning them was enough.
Could you approve?


cannot compile nokogiri

I tried on CentOS 7(ruby 2.0.0p598) and Mac(ruby 2.1.5p273, ruby 2.0.0p481). both failed
# gem fetch nokogiri
Fetching: nokogiri-<IP_ADDRESS>.gem (100%)
Downloaded nokogiri-<IP_ADDRESS>
# gem compile nokogiri-<IP_ADDRESS>.gem -- --use-system-libraries
Unpacking gem: 'nokogiri-<IP_ADDRESS>' in temporary directory...
Building native extensions with: '--use-system-libraries'
This could take a while...
WARNING:  See http://guides.rubygems.org/specification-reference/ for help
ERROR:  While executing gem ... (Gem::InvalidSpecificationException)
    ["ports/archives/libxml2-2.9.2.tar.gz", "ports/archives/libxslt-1.1.28.tar.gz"] are not files
# gem compile nokogiri-<IP_ADDRESS>.gem
Unpacking gem: 'nokogiri-<IP_ADDRESS>' in temporary directory...
Building native extensions.  This could take a while...
WARNING:  See http://guides.rubygems.org/specification-reference/ for help
ERROR:  While executing gem ... (Gem::InvalidSpecificationException)
    ["ports/archives/libxml2-2.9.2.tar.gz", "ports/archives/libxslt-1.1.28.tar.gz", "ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch", "ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch", "ports/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch", "ports/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch", "ports/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch", "ports/patches/libxslt/0004-EXSLT-function-str-replace-is-broken-as-is.patch", "ports/patches/libxslt/0006-Fix-str-padding-to-work-with-UTF-8-strings.patch", "ports/patches/libxslt/0007-Separate-function-for-predicate-matching-in-patterns.patch", "ports/patches/libxslt/0008-Fix-direct-pattern-matching.patch", "ports/patches/libxslt/0009-Fix-certain-patterns-with-predicates.patch", "ports/patches/libxslt/0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch", "ports/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch", "ports/patches/libxslt/0014-Fix-for-bug-436589.patch", "ports/patches/libxslt/0015-Fix-mkdir-for-mingw.patch", "ports/patches/sort-patches-by-date"] are not files

@wtnb75 seems the problem of nokogiri, as it removes files that were part of the gem specification after the compilation:
https://github.com/sparklemotion/nokogiri/blob/v<IP_ADDRESS>/ext/nokogiri/extconf.rb#L63-L68
And those files were part of the original gem specification but no longer exist after extconf.rb has executed:
$ gem spec nokogiri-<IP_ADDRESS>.gem files | grep ports
- ports/archives/libxml2-2.9.2.tar.gz
- ports/archives/libxslt-1.1.28.tar.gz
- ports/patches/libxml2/0001-Revert-Missing-initialization-for-the-catalog-module.patch
- ports/patches/libxml2/0002-Fix-missing-entities-after-CVE-2014-3660-fix.patch
- ports/patches/libxslt/0001-Adding-doc-update-related-to-1.1.28.patch
- ports/patches/libxslt/0002-Fix-a-couple-of-places-where-f-printf-parameters-wer.patch
- ports/patches/libxslt/0003-Initialize-pseudo-random-number-generator-with-curre.patch
- ports/patches/libxslt/0004-EXSLT-function-str-replace-is-broken-as-is.patch
- ports/patches/libxslt/0006-Fix-str-padding-to-work-with-UTF-8-strings.patch
- ports/patches/libxslt/0007-Separate-function-for-predicate-matching-in-patterns.patch
- ports/patches/libxslt/0008-Fix-direct-pattern-matching.patch
- ports/patches/libxslt/0009-Fix-certain-patterns-with-predicates.patch
- ports/patches/libxslt/0010-Fix-handling-of-UTF-8-strings-in-EXSLT-crypto-module.patch
- ports/patches/libxslt/0013-Memory-leak-in-xsltCompileIdKeyPattern-error-path.patch
- ports/patches/libxslt/0014-Fix-for-bug-436589.patch
- ports/patches/libxslt/0015-Fix-mkdir-for-mingw.patch
- ports/patches/sort-patches-by-date

gem-compiler cannot rebuild a gem when the original files defined in the gemspec are no longer available.
Please check nokogiri documentation and reach out nokogiri developers about the issue, which is not gem-compiler's issue.
Cheers.

Hit the same issue.

@jk-shah and have the same answer, this is a Nokogiri problem that should be reported upstream, not here.
Chers.

@jk-shah thank you!

In the meanwhile can I break the step after it untars nokogiri  it so that I can change their code before the process as a temporary hack?

just monkey patch it?

@jk-shah :confused:
Why not introduce a flag to gem-compiler that tells it to purge/sanitize the gem specification during re-packaging?
Example UX:
$ gem compile <gemname.gem> --purge-package

(Or --clean-files or --clean-package, whatever fits better)
Then you introduce a check for that flag and removes the reference to files that no longer exist.
I like that approach better than hacks, which I'm not sure where those could be introduced.
Feel free to send a pull request for this change.

@mpapis I'm not sure where the monkey patch fits into the equation as gem-compiler unpacks, compiles and re-pack the gem, so see above comment for an alternative, which I'm open to accept pull requests for.

@luislavena It's what I meant, maybe with a temporary workaround in form of patching ;)

Places where this can be performed are here:
https://github.com/luislavena/gem-compiler/blob/master/lib/rubygems/compiler.rb#L41
After collecting artifacts and removal of extensions.
You will also need to introduce the extra flags that are passed to the compiler form the command:
https://github.com/luislavena/gem-compiler/blob/master/lib/rubygems/commands/compile_command.rb

Actually I patched nokogiri code and built a custom gem and used gem-compiler on it and there were no complains and go  a binary gem.
All good except when the app tries to install it it still goes for the source gem and not the binary gem.
I am not familiar with the gem world but does gem install need to be used differently for these binary gems?

@jk-shah can you push the fix upstream?

Done: https://github.com/sparklemotion/nokogiri/pull/1275 though it will
require review as I did a quick fix to make my case work.
On Sat, Apr 11, 2015 at 3:27 PM, Michal Papis<EMAIL_ADDRESS>wrote:

@jk-shah https://github.com/jk-shah can you push the fix upstream?
—
Reply to this email directly or view it on GitHub
https://github.com/luislavena/gem-compiler/issues/12#issuecomment-91935701
.

Ref: sparklemotion/nokogiri#1275

I opened a PR with @luislavena's suggestion and named the flag --purge-package.

I think we need to add more behaviour. With this flag Nokogiri compiles but after re-packaging the lib directory won't be inside. Looking at their repository, they don't provide a gemspec. Thoughts?

It doesn't matter if nokogiri provides a gemspec in their repository.
Gem-compiler uses the gemspec of the gem that just extracted.
I haven't looked at your code, but I think the test is not properly
checking what really is going on.
I will suggest you look at the code you added that remove files, perhaps
will be better reject spec files after the extensions have been compiled.
Sorry for top posting. Sent from mobile.
On Apr 26, 2015 1:19 AM, "Andrés N. Robalino"<EMAIL_ADDRESS>wrote:

I think we need to add more behaviour. With this flag Nokogiri compiles
but after re-packaging the lib directory won't be inside. Looking at their
repository, they don't provide a gemspec. Thoughts?
--
Reply to this email directly or view it on GitHub
https://github.com/luislavena/gem-compiler/issues/12#issuecomment-96321617
.

@luislavena Before adding the flag feature the test fails as expected (Indicates the files originally in specification are missing).
There was a bug in the logic that didn't remove the files appropriately during re-packaging, which is fixed now.

Just an FYI that this commit upstream in Nokogiri should address the underlying issue:

https://github.com/sparklemotion/nokogiri/commit/20d7591983637365d469cd20a7eea663ad78f7ae

Until a new version of the gem with the fix is pushed out you can build it from source.
git clone https://github.com/sparklemotion/nokogiri.git
cd nokogiri
bundle install
rake native gem

Then the compiled gem is in the pkg/ directory

Seeing the same :(
$ gem compile nokogiri-<IP_ADDRESS>.gem
Unpacking gem: 'nokogiri-<IP_ADDRESS>' in temporary directory...
Building native extensions.  This could take a while...
WARNING:  See http://guides.rubygems.org/specification-reference/ for help
ERROR:  While executing gem ... (Gem::InvalidSpecificationException)
    ["ports/archives/libxml2-2.9.2.tar.gz", "ports/archives/libxslt-1.1.28.tar.gz"] are not files

Will follow your advice drampelt, thank you.

@xanview, thanks for your note.
I've opened a new bug with nokogiri: https://github.com/sparklemotion/nokogiri/issues/1436

@xanview @flavorjones
To deal with removal of files form the original package, --prune option was introduced.
$ gem list gem-compiler

*** LOCAL GEMS ***

gem-compiler (0.4.0)

$ gem fetch nokogiri
Downloaded nokogiri-<IP_ADDRESS>

$ gem compile nokogiri-<IP_ADDRESS>.gem --prune
Unpacking gem: 'nokogiri-<IP_ADDRESS>' in temporary directory...
Building native extensions.  This could take a while...
... (supressed RubyGems warnings) ....
  Successfully built RubyGem
  Name: nokogiri
  Version: <IP_ADDRESS>
  File: nokogiri-<IP_ADDRESS>-x86_64-linux.gem

$ ls -l -h nokogiri*
-rw-rw-r-- 1 luis luis 8,9M feb 29 10:36 nokogiri-<IP_ADDRESS>.gem
-rw-rw-r-- 1 luis luis 1,5M feb 29 10:38 nokogiri-<IP_ADDRESS>-x86_64-linux.gem


array

[Enter feedback here]

Document Details
⚠ Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ID: dc075caf-933b-cda0-703b-6b700f1436f8
Version Independent ID: 102753f5-d177-627e-c14c-e88df91c8000
Content: Resource Manager templates for Azure Cosmos DB API for MongoDB
Content Source: articles/cosmos-db/mongodb/resource-manager-template-samples.md
Service: cosmos-db
Sub-service: cosmosdb-mongo
GitHub Login: @seesharprun
Microsoft Alias: sidandrews

Hi @avi95022,
Thanks. Could you please add more details about the question for the document.

Hi @avi95022,
Could you please add more details about the question for the document.

Hi @avi95022,
Could you please add more details about the question for the document request.

Closing this thread. Please raise another request with details about the document. Thanks


Can create index but not able to migrate data

when I run php migrator.php with --dryrun, it shows there are 1165439 docs:
$ php migrator.php  --elasticsearch.host=<IP_ADDRESS> --elasticsearch.port=9200 --indexes=csv_test --manticoresearch.host=<IP_ADDRESS> --manticoresearch.port=9308 --manticoresearch.batch_size=10000 --threads=1 --dryrun
[2023-08-10T14:24:28]   Thread 0: Index csv_test: Getting index mapping
[2023-08-10T14:24:28]   Thread 0: Index csv_test: {"health":"yellow","status":"open","index":"csv_test","uuid":"L8FNgcPrTqW-GiwurHJnMQ","pri":"1","rep":"1","docs.count":"1165439","docs.deleted":"0","store.size":"926.8mb","pri.store.size":"926.8mb","mapping":{"properties":{"author_comment_count":{"type":"integer"},"comment_author":{"type":"text","fields":{"raw":{"type":"keyword"}}},"comment_id":{"type":"integer"},"comment_ranking":{"type":"integer"},"comment_text":{"type":"text"},"story_author":{"type":"text","fields":{"raw":{"type":"keyword"}}},"story_comment_count":{"type":"integer"},"story_id":{"type":"integer"},"story_text":{"type":"text"},"story_time":{"type":"integer"},"story_url":{"type":"text"}}},"type_mapping":{"author_comment_count":{"type":"integer"},"comment_author":{"type":"text"},"comment_id":{"type":"integer"},"comment_ranking":{"type":"integer"},"comment_text":{"type":"text"},"story_author":{"type":"text"},"story_comment_count":{"type":"integer"},"story_id":{"type":"integer"},"story_text":{"type":"text"},"story_time":{"type":"integer"},"story_url":{"type":"text"}}}

when i run elasticdump, it works fine:
$ NODE_OPTIONS=--max_old_space_size=4096  elasticdump --input=http://<IP_ADDRESS>:9200/ nfcorpus --limit 10 --noRefresh --type=data --output=$
(node:9042) NOTE: We are formalizing our plans to enter AWS SDK for JavaScript (v2) into maintenance mode in 2023.

Please migrate your code to use AWS SDK for JavaScript (v3).
For more information, check the migration guide at https://a.co/7PzMCcy
(Use `node --trace-warnings ...` to show where the warning was created)
{"_index":"csv_test","_type":"_doc","_id":"0","_score":1,"_source":{"story_id":3985069,"story_time":1337221782,"story_url":"http://androidcommunity.com/verizon-killing-off-grandfathered-unlimited-data-plans-this-summer-20120516/","story_text":"","story_author":"joedev","comment_id":3985756,"comment_text":"Makes sense for Verizon, and if they are being greedy, others will step in to fill the void.","comment_author":"Quizzy","comment_ranking":10,"author_comment_count":11,"story_comment_count":13}}
{"_index":"csv_test","_type":"_doc","_id":"1","_score":1,"_source":{"story_id":2481190,"story_time":1303738766,"story_url":"http://www.bbc.co.uk/news/magazine-13140772","story_text":"","story_author":"soitgoes","comment_id":2481521,"comment_text":"\"Made to play\" is a contradiction.","comment_author":"petervandijck","comment_ranking":9,"author_comment_count":1125,"story_comment_count":16}}
... ...

but when i start to migrate data, it can create index but shows no docs:
$ php migrator.php  --elasticsearch.host=<IP_ADDRESS> --elasticsearch.port=9200 --indexes=csv_test --manticoresearch.host=<IP_ADDRESS> --manticoresearch.port=9308 --manticoresearch.batch_size=10000 --threads=2
[2023-08-10T14:13:57]   Thread 0: Index csv_test: Getting index mapping
[2023-08-10T14:13:57]   Thread 0: Index csv_test: Creating index
[2023-08-10T14:13:57]   Thread 0: Index csv_test: Importing data
[2023-08-10T14:13:57]   Thread 0: Index csv_test: Imported 0 docs
[2023-08-10T14:13:57]   Thread 0: Index csv_test: Finished

This issue is blocked by https://github.com/manticoresoftware/manticoresearch/issues/1368 where we want to look deeper into how Manticore can integrate with elasticdump.

This issue is blocked by https://github.com/manticoresoftware/manticoresearch/issues/1368

https://github.com/manticoresoftware/manticoresearch/issues/1368 is done.

Now the data migration from Elastic to Manticore can be done with the elasticdump tool. This feature is currently available in the dev version of Manticore (https://mnt.cr/nightly). Also, we recommend to execute migration in two stages: migrate data schema first and data itself after that.  E.g.:
elasticdump --input=http://localhost:9200/your_index   --output=http://localhost:9308/your_index --type=mapping
elasticdump --input=http://localhost:9200/your_index   --output=http://localhost:9308/your_index --type=data

Otherwise, some data types can be converted incorrectly as described here (https://github.com/manticoresoftware/buddy-plugin-insert/issues/6)

Closing as done.


isExactActive is false after a redirect with a named route

Version
4.1.3
Reproduction link
codesandbox.io
Steps to reproduce

Click on Home Link, isExactActive and isActive is true
Click on 4O4 link
You are redirected to Home page
You current url is /home

What is expected?
isExactActive and isActive are true for page Home because you have been redirected to this page
What is actually happening?
isActive is true but isExactActive is false

I have this issue only when I redirect with a named route, I don't have it when I redirect with a url

Using a beforeEnter() guard also works a a workaround


Fixed tabs + Move between categories

Please make tab display fixed, so that when we scroll down, we always see them. [this could be optional, on a tick of checkbox, but please make it happen].
This request is significantly related to my other one, and that one is
to make possible for users to easily move tasks between categories,
by simply drag-dropping them to other tab.

I see now that 2nd part of this request is actually duplicate of #27

fixed boards list added in v1.7.0 (to turn on in settings). moving items between categories added but not drag&drop (action menu instead)


[Docs] Batch08: adding examples to string functions

Description
Add examples to the sql-functions.md page
Updates the REPLACE, REPEAT, STRPOS, REVERSE, STRING_FORMAT, SUBSTRING, SUBSTR, TRIM, BTRIM, LTRIM and RTRIM functions.
This PR has:

[X] been self-reviewed.

@edgar2020 could you resolve conflicts?

@edgar2020 could you resolve conflicts?

@FrankChen021 Merge conflicts resolved


Add Lykon

Thanks @kieranajp. Mind sending in a verification email please? I'll merge it after :)

Yep, already sent it yesterday :+1:

@kieranajp just making sure, did you email<EMAIL_ADDRESS>don't seem to have received an email about Lykon yet 🤔

@sarupbanskota Apologies, it was stuck in drafts (was travelling and had flaky internet so I guess that's why).
Sent now.

Thanks!


Fix bluetooth characteristic intdef copy-paste typo.

PERMISSION_READ_ENCRYPTED_MITM was duplicated and
PERMISSION_WRITE_ENCRYPTED_MITM was missing.
Full list of available values:
https://developer.android.com/reference/android/bluetooth/BluetoothGattCharacteristic.html

Doh!


Fix SidebarLayout overflow and billing alert spacing

Problem solved
Short description of the bug fixed or feature added

PR-Codex overview
The focus of this PR is to update the styling of alerts in the Alert.tsx component and add overflow-hidden to the main content in SidebarLayout.tsx.
Detailed summary

Updated styling of alerts in Alert.tsx by replacing mb={12} with className="py-6"
Added overflow-hidden to the main content in SidebarLayout.tsx for better layout.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

#4537  👈
main

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

Join @MananTank and the rest of your teammates on  Graphite


No output from rnftools.mishmash.DwgSim

Hi,
I would like to simulate illumina pair-end reads for samples with different coverage following the instructions here: https://bit.ly/2XKmXcV.
However, I encountered the following error.
RuleException:
KeyError in line 47 of /cluster/work/pausch/group_bin/anaconda3/envs/rnftools/lib/python3.6/site-packages/rnftools/mishmash/mishmash.snake:
's not in /cluster/work/pausch/fang/low_cov/sim/ARS-UCD1.2_Btau5.0.1Y.fa.'
File "/cluster/work/pausch/group_bin/anaconda3/envs/rnftools/lib/python3.6/site-packages/rnftools/mishmash/mishmash.snake", line 47, in __rule_5
File "/cluster/work/pausch/group_bin/anaconda3/envs/rnftools/lib/python3.6/site-packages/rnftools/mishmash/Source.py", line 153, in create_fa
File "/cluster/work/pausch/group_bin/anaconda3/envs/rnftools/lib/python3.6/site-packages/pyfaidx/init.py", line 1016, in getitem
File "/cluster/work/pausch/group_bin/anaconda3/envs/rnftools/lib/python3.6/concurrent/futures/thread.py", line 56, in run
Removing output files of failed job 6 since they might be corrupted:
/cluster/work/pausch/fang/low_cov/sim/simulation_with_coverage_control/004/reference.fa
Shutting down, this might take some time.
I am not sure how to fix this error. I'd appreciate any advice. Thanks!

Could you please upload your Snakefile?

I put all the files here: https://www.dropbox.com/sh/455d8m45vqderrn/AACKm5QXBm2mh-2yBZDsNSnVa?dl=0
I had issue with csv, so I installed pandas and replace commends related to csv. Will this cause the issue?


Email template for meeting invites

Create template for meeting invites that includes:

Purpose
Agenda
Goals
Progress report

Tournavation Meeting.docx


CFG post-order panic: reflect: call of reflect.Value.Int on uint64 Value

The following code (from here) is a minimum example for the error message in the title (tested in repl).
type vliType uint64
const vliUnknown vliType = ^vliType(0)

Expected: https://play.golang.org/p/LlTtzkyYIur

It looks like this issue is fixed now:
% yaegi
> type vliType uint64
: 0xc000186170
> const vliUnknown vliType = ^vliType(0)
: 0xc000032400
> println(vliUnknown)
18446744073709551615
>

@tim-st Can you please confirm?

@mpl Yes, it works now!


bug: update sql does't return error in myql5.7

GORM Playground Link

https://github.com/go-gorm/playground/pull/509
Description
see pr⬆

- update users set name = ? and age = ? where id = ?
+ update users set name = ?, age = ? where id = ?;

- update users set name = ? and age = ? where id = ?
+ update users set name = ?, age = ? where id = ?;

I mean it should return an error. but worked.
In latest mysql, gorm return an error

I can't use mysql 5.7 image in mac m1, gorm will not change raw sql, you can try to use https://github.com/go-sql-driver/mysql to compare different versions


Support for Phi-3 models

see huggingface for the models

Hi. work normal with this template

<|user|>
{{prompt}}<|end|>
<|assistant|>

And BOS option enabled.

Hi. How can I make it generate until EOS? If I select the option, the app crashes.

Hi. work normal with this template

<|user|>
{{prompt}}<|end|>
<|assistant|>

And BOS option enabled.

BOS is enabled, I have set that prompt, but I am getting an error as reply for every message:
Load Model Error: [Error]
modelLoad Error
Load Model Error: [Done]

development version

Hi. work normal with this template

<|user|>
{{prompt}}<|end|>
<|assistant|>

And BOS option enabled.

BOS is enabled, I have set that prompt, but I am getting an error as reply for every message: Load Model Error: [Error] modelLoad Error Load Model Error: [Done]

In the TestFlight version I’m using ‘Phi-3-mini-4k-instruct-q4.gguf’
When setting up, I used the “Phi 2” setting template and then wrote the recommended prompt. On my iPhone 14 Pro I’m getting around 2-5 token per second.
Sometimes the <|end|> tag isn’t handle correctly, and it just skips over it and starts a new answer

Make sure Metal is on. And try setting contextsize=1024. I got 8-9 Tok/sec.


Run on Windows

Thanks for authors to share this excellent job!
I just successfully ran the demo on Windows 10. It is painful to search the documents and solve some problems... Here I record it to help anyone who want to run it on windows too.
My env
OS: windows 10
GPU: GTX 3080 Ti
CPU: Intel 12th
Python with conda env
Step 1. Install packages in requirements.txt
The only thing you should pay attention to is the transformers version. Use the following command:
pip install transformers==4.6.1

Step 2. Install pyopengl
Do not use 'pip install pyopengl' directly because it offers a package lacking some libraries (It is amazing but true...).
Download the .whl file from here  and install it with:
pip install <downloaded file>

Note that do not install the opengl before you have installed the pyrender!! This will uninstall your pyopengl and install a pypi version, which lacks the necessary libraries.
Step 3. Install boost
Just do with the google instructions.
Step 4. Install mesh
Download the mesh from here and following its readMe, i.e.
pip install --no-deps --install-option="--boost-location=<path_to_your_boost>" --verbose --no-cache-dir .

Step 5. Install ffmpeg
You can find a pre-compiled version from ffmpeg website. Just double click it.
Step 6. Revise the demo.py
Finally we have install all the necessary packages. But if you run the demo directly, it will throw an error: can not find osmesa.
The easist way to solve it is  to comment this line:
os.environ['PYOPENGL_PLATFORM'] = 'osmesa' # egl

The pyrender will use pyglet for off-screen rendering. Some explainations can be found here.
Then replace the render_sequence(args) funciton with the following code
def render_sequence(args):
    wav_path = args.wav_path
    test_name = os.path.basename(wav_path).split(".")[0]
    predicted_vertices_path = os.path.join(args.result_path,test_name+".npy")
    if args.dataset == "BIWI":
        template_file = os.path.join(args.dataset, args.render_template_path, "BIWI.ply")
    elif args.dataset == "vocaset":
        template_file = os.path.join(args.dataset, args.render_template_path, "FLAME_sample.ply")

    print("rendering: ", test_name)

    template = Mesh(filename=template_file)
    predicted_vertices = np.load(predicted_vertices_path)
    predicted_vertices = np.reshape(predicted_vertices,(-1,args.vertice_dim//3,3))

    output_path = args.output_path
    if not os.path.exists(output_path):
        os.makedirs(output_path)

    num_frames = predicted_vertices.shape[0]
    tmp_file='./output.mp4'

    writer = cv2.VideoWriter(tmp_file, cv2.VideoWriter_fourcc(*'mp4v'), args.fps, (800, 800), True)
    center = np.mean(predicted_vertices[0], axis=0)

    for i_frame in range(num_frames):
        render_mesh = Mesh(predicted_vertices[i_frame], template.f)
        pred_img = render_mesh_helper(args,render_mesh, center)
        pred_img = pred_img.astype(np.uint8)
        writer.write(pred_img)

    writer.release()
    file_name = test_name+"_"+args.subject+"_condition_"+args.condition
    video_fname = os.path.join(output_path, file_name+'.mp4')
    #cmd = ('ffmpeg.exe' + ' -i {0} -pix_fmt yuv420p -qscale 0 {1}'.format(tmp_video_file.name, video_fname)).split()
    cmd='ffmpeg -i %s -i %s %s' %(tmp_file,wav_path,video_fname)
    os.system(cmd)

Here are two modifications:

use a string file name instead of the temp file because the ffmpeg will throw a permission error.
use ffmpeg to put the wav and video together. This can help check the algorithm performance.

Then enjoy it now  : )

Thanks so much! your record helps me a lot!

hello, when i do the step 4,  i have the problem "Running setup.py install for psbody-mesh did not run successfully.", how can i solve it ?
D:\softs\Conda\envs\faceformer\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
D:\git_data\mesh\mesh\src\AABB_n_tree.h(9): fatal error C1083: Cannot open include file: 'CGAL/AABB_tree.h': No such file or directory
error: command 'D:\sofs\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.33.31629\bin\HostX86\x64\cl.exe' failed with exit code 2
error: subprocess-exited-with-error
× Running setup.py install for psbody-mesh did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: 'D:\softs\Conda\envs\faceformer\python.exe' -u -c '
exec(compile('"'"''"'"''"'"'
This is  -- a caller that pip uses to run setup.py

- It imports setuptools before invoking setup.py, to enable projects that directly
import from distutils.core to work with newer packaging standards.
- It provides a clear error message when setuptools is not installed.
- It sets sys.argv[0] to the underlying setup.py, when invoking setup.py so
setuptools doesn'"'"'t think the script is -c. This avoids the following warning:
manifest_maker: standard file '"'"'-c'"'"' not found".
- It generates a shim setup.py, for handling setup.cfg-only projects.
import os, sys, tokenize
try:
import setuptools
except ImportError as error:
print(
"ERROR: Can not execute setup.py since setuptools is not available in "
"the build environment.",
file=sys.stderr,
)
sys.exit(1)
file = %r
sys.argv[0] = file
if os.path.exists(file):
filename = file
with tokenize.open(file) as f:
setup_py_code = f.read()
else:
filename = ""
setup_py_code = "from setuptools import setup; setup()"
exec(compile(setup_py_code, filename, "exec"))
'"'"''"'"''"'"' % ('"'"'D:\git_data\mesh\setup.py'"'"',), "", "exec"))' install --record 'C:\Users\SHENYI~1\AppData\Local\Temp\pip-record-0684pn6u\install-record.txt' --single-version-externally-managed --compile --install-headers 'D:\softs\Conda\envs\faceformer\Include\psbody-mesh' '--boost-location=C:\Boost\boost_1_81_0'
cwd: D:\git_data\mesh
Running setup.py install for psbody-mesh ... error
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> psbody-mesh
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.

hello, when i do the step 4, i have the problem "Running setup.py install for psbody-mesh did not run successfully.", how can i solve it ?

Hi yichen, I notice it may be a compile error:
D:\git_data\mesh\mesh\src\AABB_n_tree.h(9): fatal error C1083: Cannot open include file: 'CGAL/AABB_tree.h': No such file or directory
The compiler can not find the CGAL head file.  It is strange because the package should contain a CGAL package in direction D:\git_data\mesh\mesh\thirdparty\ .
Please check it or you may decode it manually.

hello, when i do the step 4, i have the problem "Running setup.py install for psbody-mesh did not run successfully.", how can i solve it ?

Hi yichen, I notice it may be a compile error:
D:\git_data\mesh\mesh\src\AABB_n_tree.h(9): fatal error C1083: Cannot open include file: 'CGAL/AABB_tree.h': No such file or directory
The compiler can not find the CGAL head file. It is strange because the package should contain a CGAL package in the folder D:\git_data\mesh\mesh\thirdparty\ .
Please check it or you may decode it manually.

thank your response, I took a very stupid mistake: i didn't git checkout the right branch……

hello, when i do the step 4, i have the problem "Running setup.py install for psbody-mesh did not run successfully.", how can i solve it ?

Hi yichen, I notice it may be a compile error:
D:\git_data\mesh\mesh\src\AABB_n_tree.h(9): fatal error C1083: Cannot open include file: 'CGAL/AABB_tree.h': No such file or directory
The compiler can not find the CGAL head file. It is strange because the package should contain a CGAL package in the folder D:\git_data\mesh\mesh\thirdparty\ .
Please check it or you may decode it manually.

thank your response, I took a very stupid mistake: i didn't git checkout the right branch……

Great to know the problem solved!

hello，firstly thank your for your record,it helped me so much, but i found there is no sound in my output.mp4,have you ever encountered this problem? If so, can I ask you how to solve it

hello，firstly thank your for your record,it helped me so much, but i found there is no sound in my output.mp4,have you ever encountered this problem? If so, can I ask you how to solve it

hi there~可以看一下step 6的函数最后几行：
cmd='ffmpeg -i %s -i %s %s' %(tmp_file,wav_path,video_fname)
可以参考这个cmd，在python脚本里面对音视频组装，或者在命令行里面手动调用ffmpeg。tmp_file 指的是网络的输出文件， wav_path是输入的音频文件，video_fname是你希望保存的文件名。

I got the program running, thank you so much😁


Add Coveralls support

Changes Unknown when pulling 88e1f52ee2898305d8b2c53bf330be2673fb7242 on coveralls into ** on master**.

Changes Unknown when pulling 967daf55c68e4931c1b580a8831635a57ebe702a on coveralls into ** on master**.


inginx ingress point default domain

inginx ingress always point to default domain
default     ingress.extensions/nginx             example.com

i think this reason, when i using apex domain for another ingress -> ingress alway return 503 service unavaiable
Any body known how to disable host default inginx ingress

Hi,
Thank you for using BKPR. Could you provide more information to reproduce the issue?

Which is the target platform you are using?
Which command and settings you used to install BKPR?

Hi,
I using kubernetes aws 1.14
I fixed this issue by delete this default ingress

Thanks for letting us know. It seems that something incorrect could be set in the DNS installation parameters. We don't see this issue in our automated tests. Let's see if other users experience the same issue.

Looks like indeed coming from https://github.com/bitnami/kube-prod-runtime/blob/master/docs/troubleshooting.md, confirming the code (manifests) itself doesn't have any example.com bits.
Closing for now, @meodemsao feel free to re-open if you encounter it again -- in such case, appreciate you pasting the full command line you'd used to deploy it.


Stryker test runners timing out on travis

Summary

All tests on travis timed out. This seems fixed after setting maxConcurrentTestRunners to a value like 8.
Example: https://travis-ci.com/avdg/wasm-decompile/jobs/126547066
Note that the number of available cores on travis is 2, but in a bursted configuration. That means there are more cores that may be available (as long as other builds don't use them).
Stryker config

module.exports = function(config){
    testRunner: "mocha",
    mutator: "typescript",
    transpilers: [],
    reporter: ["html", "clear-text", "progress"],
    testFramework: "mocha",
    coverageAnalysis: "off",
    tsconfigFile: "tsconfig.json",
    files: ["src/**/*", "test/**/*", "tsconfig.json", "package.json"],
    mutate: ["src/**/*.ts"],
    // maxConcurrentTestRunners: 8, // Note: uncommenting this line seemed to fix the issue
    mochaOptions: {
        files: [ 'test/**/*.spec.ts' ],
        require: ['ts-node/register', 'source-map-support/register'],
        timeout: 300
    },
    webpack: {
      configFile: "webpack.config.js"
    },
    logLevel: 'info'
  });
}

Stryker environment

+--<EMAIL_ADDRESS>+--<EMAIL_ADDRESS>(woops, seems none was installed `WARN<EMAIL_ADDRESS>requires a peer of<EMAIL_ADDRESS>but none is installed.`. But apparently I can have successful build even with this error)

Your Environment

software
version(s)

node
v8.11.2 and v10.3.0

npm
5.6.0 and v6.1.0 respectively

Operating System
linux

@nicojs mentioned that the cores should now be reported as '2' by Travis. I'm closing this issue for now.


Upgrade to Next.js 12

Upgrades to 12 while remaining on React 17.x
Decided not to upgrade to React 18 at this time as we need to dig in further into these particular hydration bugs: https://github.com/vercel/next.js/discussions/35773

Additional:
Locally, I'm seeing a new UX issue that isn't on production (with Next 11.x/React 17.x) with only the first 5 images loading while the others initially fail to fetch, then get fixed as you scroll. It isn't immediately clear if this is a temporal problem in DEV or will repro in staging, but going to check before landing this. Issue appears cross-browser.

Update 2: Confirmed this issue is present in staging too. Investigating.
Update 3: Changing the LazyLoad threshold from 200 => 500 appears to address this issue. Will want to check on performance implications, but pushing to staging to look at this further.

Okay. The issues with the LazyLoad thresholds should be addressed in https://deploy-preview-13--movies-browser.netlify.app/?category=Popular&page=1.


json parser buffer pipe requests

I'm using superagent for https://github.com/danzajdband/Tuiter
When using a stream method (like tuiter#sample) I'm using the superagent pipe method. Because the response content-type is json (I think that's the reason) the request object is buffering the stream inside res.text.
This is critical for my lib because this buffer is increasing apps memory usage in ~ 1.5MB / sec.
Do you think that's the reason? Is a Superagent issue or am I doing something wrong?

Closing this old issue. If something similar comes up we can revisit. The pipe logic is less than ideal at the moment anyway.


[WIP] agent: Initial implementation

This PR creates the first implementation of the kata-containers agent relying on both Yamux and gRPC protocol.

@sameo @gnawux @laijs @bergwolf I have updated this PR but I am still not happy about the way the different mounts are handled through what we call Storage or Mount.
I'd really like to understand the detail of what you plan to do (some very concrete examples) with a list of Storage from StartSandbox. Same thing for the list of mounts passed to the container, and the meaning of vm:, tmp: and /dev/hostfs. BTW I think having a boolean Rootfs would be easier to detect if a mount is a rootfs.
I am asking for some concrete examples of use cases because it would help me to handle properly every cases, because I am sure you have some use cases we didn't think about.
Please take a look at the PR during those next days and tell me if something is wrong with this.

Same thing for the list of mounts passed to the container, and the meaning of vm:, tmp: and /dev/hostfs.
These are removed without any components replaced. But they will be replaced by Storage if my suggestion is accepted.

The runtime passes this storage config to the agent when starting sandbox:
{
  "driver":"",
  "source":"sharedfs_tag",
  "fstype":"9p",
  "mount_point": "/storage/sharedfs"
}

Then agent mount it on "/storage/sharedfs".
(The runtime also mount the containers rootfs and other things to the shared fs parallel)
Then runtime pass the container config to agent with Spec.Root.Path = "/storage/sharedfs/container_name/rootfs".

When start a container, Storages could be
[
{
  "source":"/dev/sda",
  "fstype":"xfs",
  "mount_point": "/storage/abc/"
},
{
  "source":"/dev/sdb",
  "fstype":"ext4",
  "mount_point": "/storage/xyz/"
}
]

And "/storage/abc/rootfs" and "/storage/xyz/_data" (notice the docker style "rootfs" and "_data") can be used in the oci.Specs for container root and volume.
Without new components, it is hard to do such things with oci.Specs merely.

I prefer the name Sandbox rather than Pod.
We support various kinds of configs. For example, we allow container to have its own pidns, the containers will not compose as a k8s pod.
Doing s/Pod/Sandbox/g in the code will solve the problem.

PR updated

Besides the fact that it needs to be rebased on top of the latest gRPC changes, this looks pretty good. The code is much cleaner and easier to read now.

I have rebased on latest gRPC. I have also fixed the way I handle the storage mounts.

@sboeuf Please add the network API implementation now that the gRPC parts have been merged and then this will LGTM.
@bergwolf @laijs Could you please have another look?

Except for the minor nits above, the PR looks in good shape and I'm giving my LGTM.

@bergwolf thx for the LGTM, I will work today (and maybe tomorrow) on fixing last part we have been talking about, and I expect something to be ready by end of week!

LGTM

We can handle the shared pidns case in a separate PR.

I think the only thing missing from this PR is the s/pod/sandbox/ as requested by @laijs

I have updated the PR today. The things missing are:

Handling of shared PID ns
Use of libcontainer/specconv to convert the OCI spec into a libcontainer config
I will take care of those items in follow up PRs, but I think we should go ahead and merge this one as it is because it looks enough to me as an initial commit.

Since there are two lgtm's, I'm going to merge it and let other contributions in.


portico: Remove core-team profiles from /team.

Merged, thanks @rishig!  I also updated our total contributor count to 500, since it was 300, 400, etc. in various places.  See d0d497fc2d2b6edd4e25c476691c2a575583055e.


Revert "refactor: move if_linux and if_windows into rules_cuda (#30)"

This reverts commit 46926b77369dbc960520db7ec34d9a94cd8c47b4.
Tests did not pass. Previous MR did not have CI per MR, so it was easy to miss.

Superseded by #33.


Add max thread count options to CMake build

This adds an option that defaults to 4096: TS_MAX_EVENT_THREADS, and an option that defaults to 3072: TS_MAX_THREADS_PER_TYPE.

There is a discrepancy between the default MAX_THREADS_PER_TYPE value in the CMake build and in I_EventProcessor.h. The former has a default value of 3072, and the latter has a default value of 3071.


Fixes bug with granting apps owner permissions on SharePoint sites. Closes #3630

Closes #3630
Fixes bug with granting apps owner permissions on SharePoint sites.

Hi @martinlingstuyl
Seems like you are getting some merge conflicts, could you resolve them please?

Hi @martinlingstuyl
Seems like you are getting some merge conflicts, could you resolve them please?

Yeah, I had noticed I had to :) Just needed to find the time


Replace user_agent_string with a random string

Fixes https://github.com/nightscout/minimed-connect-to-nightscout/issues/44
It looks like Medtronic has added some rate limiting based on the User-Agent on the login endpoints, since they return 502 Too Many Connections Requests in 10 minutes. Hardcoding the User-Agent to a real User-Agent fixes it, but also just sending a random string seems to work for me.
Not sure how ideal this fix is

Thanks for the experimentation and this insight.  I wonder if it would help to use another header, purely to provide a random number for traceability.  For example, if we also send x-traceable-req: uuid4 or similar.  This way, if they perform rate limiting against a serialized form of the request, they can correctly trace user agents while essentially deduping our requests?

FWIW, there's a new module, nightscout-connect, with a similar feature discussed here: https://github.com/nightscout/nightscout-connect/pull/19.  Nightscout Connect is a bit easier to maintain because 7 vendor libraries can share a single HTTP dependency for Nightscout.  It would be great to experiment to see if just 6 - 8 random characters is enough.

Thanks for testing @tobiasknudsen.  I can confirm any trace of nightscout on European servers will result in a rejected request.  However, it works fine for patients in the United States.  I think it's critical to contact regulators to let them know of these digital rights abuses and attempts to generate plausible deniability.  Is legal for Medtronic to block patients from accessing factual information about themselves?
Perhaps we can stick some attribution for NS in another header.


Infinite error loop after sign out

Hello, I'm using @aws-amplify/ui-react Authenticator component together with the MapView component. After signing out using the built-in strategy I get an infinite error loop saying:
[DEBUG] 37:23.411 AuthClass - Failed to get user from user pool
ConsoleLogger.js:96 [DEBUG] 37:23.411 AuthClass - Failed to get the current user No current user
ConsoleLogger.js:86 [DEBUG] 37:23.411 AuthClass - getting guest credentials
ConsoleLogger.js:86 [DEBUG] 37:23.411 Credentials - setting credentials for guest
fetch-http-handler.js:47          POST https://cognito-identity.eu-west-1.amazonaws.com/ 400
ConsoleLogger.js:96 [DEBUG] 37:23.470 Credentials - Failed to load credentials Promise {<rejected>: NotAuthorizedException: Unauthenticated access is not supported for this identity pool.
    at http…}
ConsoleLogger.js:96 [DEBUG] 37:23.470 Credentials - Error loading credentials NotAuthorizedException: Unauthenticated access is not supported for this identity pool.
    at http://localhost:3000/static/js/bundle.js:53636:62
    at step (http://localhost:3000/static/js/bundle.js:244523:17)
    at Object.next (http://localhost:3000/static/js/bundle.js:244472:14)
    at fulfilled (http://localhost:3000/static/js/bundle.js:244431:24)

I found out there is a loop trying the refresh the credentials after sign out:
Hub.listen("auth", (data) => {
      switch (data.payload.event) {
        case "signIn":
        case "signOut":
        case "tokenRefresh":
          this.refreshCredentialsWithRetry();
          break;
      }
    });

...

refreshCredentialsWithRetry = async (): Promise<void> => {
    try {
      const MAX_DELAY_MS = 5 * 60 * 1000; // 5 minutes
      await jitteredExponentialRetry(this.refreshCredentials, [], MAX_DELAY_MS);
...

The errors are repeating until I refresh browser. Do you know how to solve this issue or at least what walk-around I could use to avoid the loop? Thanks!

duplicated with https://github.com/aws-amplify/amplify-ui/issues/3367


Update tests to use PHP 8.3

All tests are passing when using PHP 8.3.

All tests are passing when using PHP 8.3.

Thanks for confirming. This issue is mainly about updating the GitHub Action workflows so they test against 8.3 and probably remove 8.1, which I guess will align with Laravel 11 when it's released.


How to deal with DTOs

For me, one of the main reasons to do front end development in C# is the ability to share models (DTOs) between ASP.NET CORE API and UI.
When using MVVM it is possible only to share interfaces because UI properties must implement INotifyPropertyChange.
In Blazor, sharing is possible as no interface is needed.
Commet seems to me the same as MVVM in this point of view as it needs INotifyProertyRead.
Is there any way / plan how to use shared DTO returned from API and bind to them from UI ?

There is a SourceGenerator, that will auto wrap any standard class to handle INotifiyProperytChanges: GenerateStateClassAttribute. This will make it easy to use!


Actually test the RPM building.

Travis tests the source code with tox, which is great and all... but the actual building of packages is not tested. I would propose adding a couple of lines to the script or after_script of the travis file.
Where we put the test depends on whether we want this to be a test which breaks the build or not.

Looks like this is done in #96


Supportfor  typed property.

Mapping configuration via typed property
Remove @ORM\Columm(type="uuid") to minimize effort on configuration.

Background/problem
Redundant info of typed property and annotation.

Proposal/solution
Doctrine support getting type from typed property like so:

Alternatives

Additional context
This is an optional way to configure the mapping

I don't understand the request for this enhancement. Should this lead to a change in the library code, or is this something that needs to be added to the examples in the README?

I think it was clear that with PHP 7.4 classes have a typed property and you don't need to define type imperativly as it might be extracted from the type.
This have to be supported in this library.

What change are you requesting for ramsey/uuid-doctrine?

@Legion112 string id column need not be UUID.


[WEB-988] Support Open Graph Image Generation

From SyncLinear.com | WEB-988

Working in canary, will be published in the next release