File-scoped namespace declarations

As described in https://github.com/microsoft/qsharp-language/issues/98 in the old repository, file-scoped namespaces should be a thing to reduce boilerplate and nesting. My search didn't turn up this feature request in this current repo.
Original issue text, by cgranade:

Suggestion
Allow namespace statements to end with a semicolon instead of a block, indicating that the namespace declaration applies to the entire file.
Considerations
Most Q# source files declare exactly one namespace, such that the extra level of indenting is unnecessary in most common cases. Allowing namespace declarations to be file-scoped would cut down on the amount of boilerplate and nesting, making Q# source files easier to read (esp. for newer users).
A similar discussion has led to the proposal and likely adoption of a similar feature into C# 10 (https://github.com/dotnet/csharplang/blob/main/proposals/csharp-10.0/file-scoped-namespaces.md).
Context
This proposal would not change any Q# semantics, but would provide a useful shorthand for existing features and semantics.
Examples
Example 1:
Using file-scoped namespaces to apply a namespace to all declarations in a file.
namespace Microsoft.Quantum.Foo;

// This function is declared with the fully
// qualified name Microsoft.Quantum.Foo.A.
function A() : String {
    return "aaaaaa";
}

Example 2:
Mixing file- and block-scoped namespaces is forbidden.
namespace Microsoft.Quantum.Foo;

namespace Bar { // 💣: can't mix file- and block-scope namespace declarations.

}

Affidavit (please fill out)
Please add ticks by placing a cross in the box:

[x] I have searched both open and closed suggestions and proposals on this site and believe this is not a duplicate.
[x] I believe that the spirit of this suggestion is aligned with the design principles and general vision for Q#.

Please tick all that apply:

[x] This is not a breaking change to the Q# language design
[x] I or my organization would be willing to help implement and/or test this

Closing as #493 addresses this, albeit with a different design.


chore(ci): remove autogen resource file

Release Note
chore(ci): remove autogen resource file

Build check enough for this PR.


Collapse a widget through a fade in (equal to the spotify playlist bar)

Can someone help me implement a widget like the Spotify playlist bar?
I have a SingleChildScrollView, and I have the Not Collapsed widget, and when I pull it up, when the widget is no longer visible, Collapsed widget appears through a fade in.
Thanks!
Not Collpased

Collapsed

Hey @LuisCampos97 ,
This issue tracker is used for tracking bugs and feature requests for the flutter framework, engine and the flutter tool.
Please see https://flutter.dev/community for resources and asking queries doubts and assistance on personal code. You may get some help if you post it on StackOverflow and if you need help with your code, please check https://www.reddit.com/r/flutterhelp/.
Thanks

Ok, sorry.
Thanks!


Commented Annotations with 4 Columns are Still Applied

Current Behavior
As spotted by @eharkins - currently it seems rows that are commented but have 4 columns are applied, rather than ignored.
In this commit, lines 698-707, Eli included some commented information for reference but that shouldn't be processed.
Example:
# USA/OK-ADDL-03/2020	EPI_ISL_535362	location	City Suburb
# USA/OK-ADDL-04/2020	EPI_ISL_535363	location	City Suburb
# USA/PR-B35B/2020	EPI_ISL_534693	location	Ausilio Mutuo # Hospital in San Juan
# USA/PR-B3SB/2020	EPI_ISL_534694	location	Ausilio Mutuo # Hospital in San Juan

However, after pushing this update, we got notified that these locations had been applied, despite being commented:

Expected behavior
Any line that starts with # should be fully ignored, even if it has the right number of columns.
Possible solution
This seems to stem from this section of the code in gisaid_transform where we check if a line has 4 columns -- only if it does not then do we see if it is commented. If it has 4 columns, it seems to go ahead and try to process it, even if it starts with #.
We should change this so that it first checks to see if the first character (minus whitespace) is # and ignore the whole line if so (regardless of number of columns).
Temporary solution
Ensure that commented columns we don't want to be applied do not have 4 columns.

I will try to work on this later if I have a minute - just trying to do something else (non-COVID-related!) at the moment. If not, I imagine @kairstenfay or @ttung would be able to check into this and (probably) fix pretty quickly!

Finally this did raise one more question for me - we have other lines (older) that are commented but have 4 columns. However, they reference keys that don't exist - take for example this row:
# USA/FL-9F97/2020	EPI_ISL_513265	additional_host_info: Tranplant Patient	additional_location_info: Jackson Memorial Hospital

Shouldn't we be getting an error showing up saying that it couldn't apply a key of 'additional_host_info Tranplant Patient'?

Shouldn't we be getting an error showing up saying that it couldn't apply a key of 'additional_host_info Tranplant Patient'?

No, I didn't end up adding that code, though we probably should.
Also, does that have 4 tab-separated columns?  It looks like spaces.

See #96 for the fix for this particular issue.

Thanks @ttung! I can make a separate issue for the warnings thing - sorry, I had thought this was in there!

Also, does that have 4 tab-separated columns? It looks like spaces.

Yea, hard to copy to Github and make this look convincing. However, can confirm they are tabs, via my fancy text editor color-column plugin :)

Fixed by #96 !

I've filed a new issue about the warnings in #97. I don't think there's urgency on this. I'll try to do a quick test today to estimate whether this is a problem at all in our current file and if so, the size of it


Fixed typos in code and doc strings

Description
Fixed typos in code and document strings, and a few wrong error names also.
How has this been tested?

Existing tests.

Checklist

[x] I have followed the Contribution Guidelines and Code of Conduct
[x] I have commented my code following the OpenMined Styleguide
[x] I have labeled this PR with the relevant Type labels
[x] My changes are covered by tests

@hericlesme The CI tests failed while installing dependencies. :thinking:

@sachin-101  I ran it again and it worked this time. Now the problem is with formatting. It can be solved by running black .


[WIP] Use docker's build-push-action to speedup tests CI

Task linked: QF-4996 Speed up CI tests by using the cached images for QFieldCloud


Identifier's id field points to a Name

This issue is just feedback for the AST's API, not a bug.
I've been working with the Ruff parser, which has been really great so far. Thanks a ton for providing this code! While working with the AST, I have found the naming around Identifier and Name nodes a bit awkward. Specifically, Identifier's id field is a Name, so I often end up with code that looks like id.id, because I use id to refer to the Identifier.
This is just a minor thing, but I thought I'd raise it. Would you consider changing the field to name eventually?
Thanks!

Yeah, id.id reads a bit awkward. However, most of the time, it shouldn't be necessary to access the name directly. Instead, you can write &*id or id.as_str to get to the underlying string. You can also compare Identifier with a str etc.
Using name, unfortunately, can also be somewhat awkward:

func_def.name.name and the same for class_def`.
global_stmt.name[0].name  and the same for local_stmt.name[0]
except_handler.name.unwrap().name

We could consider renaming the field to text (TypeScript calls it escaped text), go for name regardless (same as jsshift) or value (swc).
Or we leave it as is and treat it as an internal name that you rarely need to access.

In the code I'm writing (along with Sam), we often need to go from an Identifier to a Name, since we are deliberately keeping the Name intact as a name when passing it around, rather than reducing it to a &str to keep more type safety, and benefit from the underlying CompactStr representation. As a result, Name is being used directly quite a bit.
If you look at the types, Identifier is a pair of Name and Range, but Name is just the name. As a result, naming an Identifier with .name (as you do in StmtFunctionDef) is reasonable (semantically, it's the Name, just wrapped up with a bit more stuff), but naming the Name within an Identifier as id feels wrong (it lacks the Range information that would make it an Identifier). As a result of that, I don't find func_def.name.name to be that awkward.

I don't fully agree with the reasoning about FunctionDef. IMO, func.name should be renamed to func.id to be consistent with renaming Identifier.id to name because the field's type is Name. For historical context, it used to be a str.
Either way. I don't think the name matters that much that it justifies the churn it creates for downstream tools. There are multiple projects using Ruff's parser today and while the rename isn't hard, it still imposes work on them for little gain, especially considering that it's arguable whether the new name is considerably better.
Having said that. I also don't care enough about the name. Feel free to go ahead with the rename if you feel strongly but consider the impact it has on other parser users.


etherToWei incorrect value

Expected 1 ether.. showing over 4k ether..

Found solution.. value should be hex encoded..
import { etherToWei, hexValue } from "essential-eth";

hexValue(etherToWei(1))

this is correct example:


Do we need to do anything special to get ngResource working?

I'm getting an authentication error when I try to call my rails api (through ngResource) when I am signed in on the angular side. In my rails api controller, I have:
before_action :authenticate_user!
which is supposed to require the user to be signed in. I do believe that I am signed in on the angular side. because $auth.validateUser() is returning the user, which I can see on $scope.user. My angular controller code is:
  $auth.validateUser().then (resp) ->
    $scope.user = resp

  rooms = Room.query( ->
    $scope.rooms = rooms
  )

The authentication error is happening on Room.query (where Room is defined via ngResource). I get the following response:
errors: ["Authorized users only."]
In case it helps, I tried turning off the authentication filter and checking the value of current_user. It is nil.
Also, below are the headers sent (retrieved from Chrome console):
Remote Address:[::1]:3000
Request URL:http://localhost:3000/api/rooms.json
Request Method:GET
Status Code:401 Unauthorized
Request Headers
Accept:application/json, text/plain, */*
Accept-Encoding:gzip, deflate, sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Cookie:currentConfigName=default; auth_headers=%7B%22access-token%22%3A%22wg1TBw99F-WyUkKg2b0zwg%22%2C%22token-type%22%3A%22Bearer%22%2C%22client%22%3A%228lrfL8MbS1Kj6Za1a36wKQ%22%2C%22expiry%22%3A%221424738386%22%2C%22uid%22%3A%22108633578503144270402%22%7D; XSRF-TOKEN=BNLWVtiNas8gw7uARftqyhnUIHZA16RoY5TQK51UKqztbOvFG%2BsNF6Yfy4WJBS0qJoIKwu9uYJ6yWg%2F8vrBxkQ%3D%3D; _synapp-chat_session=VjY1bHMrdTdvMWlFZ3VsN0IzUXViaFZUblQ4SmNwa0tyRUdDelU4eXhkczhjMXY1N3VnV1pDVHd1UXFoaGZxakZCelZqc0k4L1RML2FjbzExUnBKeDg2dHdrdVlkTGhyVXBUSFEzV2tPc1NlVDAybnZhU3RDZlN4K3NzNk83Sm9kYnpaNlk5ekRkK0tnUnlFdmJDSlNHVDJjSzBuNHB6d2Q4MlI2L1lVRi9BUHAwRVZXOE85LzNLK1Q4aW1UZC9tMHFMMi92VjNUL3dwbm5rbUo5dVd3ZEs1bmhCUWVERlNXY3kxSDl5WWJaVT0tLUhFRlM4RU9UNE9VMUY5MGcwSnZaYVE9PQ%3D%3D--77244be28f1b77ade2a0ca74bd1176222afe7961
Host:localhost:3000
If-Modified-Since:0
Referer:http://localhost:3000/
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.111 Safari/537.36
X-CSRF-Token:/XNZzGJFdTsrUtUtZEuPnSw6EqD+N3F+nKT3nGw4QDEUzWRfoSMS462OpSiotch9E2w4FFGOtYhNaihLT9wbDA==
X-XSRF-TOKEN:BNLWVtiNas8gw7uARftqyhnUIHZA16RoY5TQK51UKqztbOvFG+sNF6Yfy4WJBS0qJoIKwu9uYJ6yWg/8vrBxkQ==

Just fixed it :) I think, somehow, it wasn't adding the right variables from the cookie into the header, possibly because my apiUrl was defined as localhost:3000.
By changing apiUrl to:
$authProvider.configure({ apiUrl: 'api' });
and changing my rails route to
mount_devise_token_auth_for 'User', at: 'api/auth'
things seem to be working now :)


Sorting of completion breaks fuzzy-matching

Essentially: it appears that completion suggestions are sorted, rather than shown in the order they're given, which makes fuzzy-matching unable to provide precedence over "closer" matches.
Here's an example with rust-analyzer: mem suggests core::arch::x86_64::_mm_cmp_epi8_max among a ridiculous number of others before std::mem:

We sort completions according to the LSP filterText properties, and give them in that order to Kakoune, which preserves the orde if it's version v2023.08.05 or higher and if the "query string" (in this case mem is empty.
If the query string is non-empty, it is matched against all completion candidates; the match score dominates input order.
Only if two matches are considered equal score, the input order will be applied again.
With your example I don't get std::mem at all (rust-analyzer doesn't send it).
Perhaps the problem (if any) is on the rust-analyzer side.

Huh, I was certain this was a kak-lsp bug, but I'll double-test in codium to make sure it is in fact a rust-analyzer bug. Maybe there's a subtle difference with the LSP implementation that they're relying on.

So one issue is that while rust-analyzer sends mem when I type me, it no longer does when I type mem.
It would be useful because selecting that completion would auto-import std::mem, the same way it works when importing types or functions.
The rest of the issue comes down to Kakoune's fuzzy matching algorithm.
I saw that when typing me, MetadataExt was listed before mem.
I confirmed that this is the ranking assigned by Kakoune - the unit test kak_assert(preferred("me", "MetadataExt", "mem")); passes.
This is because word boundary matches are scored higher.
I think we can definitely improve the heuristic here; maybe rank a match higher if the majority of characters are matched (like in me/mem). Dunno

So one issue is that while rust-analyzer sends mem

I can no longer reproduce this or the other issue, so it's likely fixed in
$ rust-analyzer --version
rust-analyzer 1 (fd74511f34 2024-07-28)


Udemy Video Not Working

I am getting a issue while downloading a video fron Udemy.com. Please Fix The Issue.
Video Link: https://www.udemy.com/learn-nodejs-by-building-an-employee-to-business-rating-app
I am using Ubuntu VPS Server.
[udemy:course] Downloading login popup
[udemy:course] Logging in as<EMAIL_ADDRESS>[udemy:course] learn-nodejs-by-building-an-employee-to-business-rating-app: Downloading webpage
[udemy:course] 1107524: Downloading course curriculum
[download] Downloading playlist: The Complete NodeJS Course: Build a Full Business Rating App
[udemy:course] playlist The Complete NodeJS Course: Build a Full Business Rating App: Collected 61 video ids (downloading 61 of them)
[download] Downloading video 1 of 61
[udemy] Downloading login popup
[udemy] 6554280: Downloading webpage
[udemy] 6554280: Downloading lecture JSON
ERROR: No video formats found; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Carefully read new issue template and provide all requested information.


Data fields in Composite Groups

I want to define a reusable <composite> to be reused in different message which contains a <data ...> field:
<composite name="peerInfo">
    <type name="port" primitiveType="uint8"/>
    <type name="state" primitiveType="uint8"/>
    <type name="generation" primitiveType="uint64"/>
    <type name="version" primitiveType="uint64"/>
    <data name="hostname" type="varDataEncoding"/>
</composite>

However, this does not seem to be possible (Schema does not allow <data> as child element of <composite>.
Is it possible to have variable length fields in reusable composite declarations?
Many thanks!

Data fields and repeating groups are not permitted in composite types. The standard is specified this way.


Advanced connectivity policy tests script could not be downloaded

When the script is invoked the following error is thrown at the end of the execution,
 Advanced connectivity policy tests script could not be downloaded!
 Confirm this machine can access https://github.com/Azure/SQL-Connectivity-Checker/
 or use a machine with Internet access to see how to run this from machines without Internet. See how at https://github.com/Azure/SQL-Connectivity-Checker/

It seems like the script URL for the Advanced connectivity policy tests script defined with HTTP instead of HTTPS protocol. https://github.com/Azure/SQL-Connectivity-Checker/blob/fd34a078493d16d768d22d09bccc1473858be379/AzureSQLConnectivityChecker.ps1#L1040

Apologies for the delay getting back to you.
Thank you for the feedback, fixed on v1.35


Add an argument for just printing out the color palette in the terminal

When you generate/set a new theme, it has a nice display of what that looks like. It'd be nice to be able to ask wal to just print that and do nothing else for the purposes of designing elements.

This was actually way easier than I thought to do, so I just did it: #268


Fix typos in shallow/ShallowWrapper docs

The object returned from shallow is a ShallowWrapper, not ReactWrapper
complexFoo is defined in an example in filterWhere.md, but complexComponents is asserted

Thanks! @alextaylor000 if it's not too much trouble, would you mind rebasing this on latest master?

@ljharb is rebasing necessary for a commit to the docs like this?  Also, how do you tell if a PR is out of date if there are no merge conflicts?

It's not necessary, no :-) it just allows me to merge on the command line without a merge commit.
I tell by looking at the git log locally (i have my git client set up to fetch PRs automatically)

@ljharb No worries, just rebased. Let me know if that works.

@alextaylor000 thanks!


Unable to fetch bgp rib-in prefixes with gnmic on OTG

gnmi request for path "/bgp-peers/" did not provide the received routes
"in-routes": "2",
Also, gnmic controller is trashing after the request
root@controller:~/featureprofiles# gnmic -a <IP_ADDRESS>:32470 --skip-verify -u admin -p admin get --path  "/bgp-peers/"
[
{
"source": "<IP_ADDRESS>:32470",
"timestamp":<PHONE_NUMBER>483020915,
"time": "2023-09-11T22:40:24.483020915-07:00",
"updates": [
{
"Path": "bgp-peers/bgp-peer[name=ateIbgp3.BGP4.peer]",
"values": {
"bgp-peers/bgp-peer": {
"open-traffic-generator-bgp:name": "ateIbgp3.BGP4.peer",
"open-traffic-generator-bgp:state": {
"counters": {
"flaps": "0",
"in-end-of-rib": "1",
"in-keepalives": "32",
"in-route-withdraw": "0",
"in-routes": "2",
"out-keepalives": "30",
"out-route-withdraw": "0",
"out-routes": "0"
},
"name": "ateIbgp3.BGP4.peer",
"session-state": "ESTABLISHED"
}
}
}
},
{
"Path": "bgp-peers/bgp-peer[name=ateEbgp1.BGP4.peer]",
"values": {
"bgp-peers/bgp-peer": {
"open-traffic-generator-bgp:name": "ateEbgp1.BGP4.peer",
"open-traffic-generator-bgp:state": {
"counters": {
"flaps": "0",
"in-end-of-rib": "1",
"in-keepalives": "32",
"in-route-withdraw": "0",
"in-routes": "0",
"out-keepalives": "30",
"out-route-withdraw": "0",
"out-routes": "1"
},
"name": "ateEbgp1.BGP4.peer",
"session-state": "ESTABLISHED"
}
}
}
},
{
"Path": "bgp-peers/bgp-peer[name=ateEbgp2.BGP4.peer]",
"values": {
"bgp-peers/bgp-peer": {
"open-traffic-generator-bgp:name": "ateEbgp2.BGP4.peer",
"open-traffic-generator-bgp:state": {
"counters": {
"flaps": "0",
"in-end-of-rib": "1",
"in-keepalives": "32",
"in-route-withdraw": "0",
"in-routes": "1",
"out-keepalives": "30",
"out-route-withdraw": "0",
"out-routes": "1"
},
"name": "ateEbgp2.BGP4.peer",
"session-state": "ESTABLISHED"
}
}
}
},
{
"Path": "bgp-peers/bgp-peer[name=ateIbgp1.BGP4.peer]",
"values": {
"bgp-peers/bgp-peer": {
"open-traffic-generator-bgp:name": "ateIbgp1.BGP4.peer",
"open-traffic-generator-bgp:state": {
"counters": {
"flaps": "0",
"in-end-of-rib": "1",
"in-keepalives": "33",
"in-route-withdraw": "0",
"in-routes": "2",
"out-keepalives": "31",
"out-route-withdraw": "0",
"out-routes": "0"
},
"name": "ateIbgp1.BGP4.peer",
"session-state": "ESTABLISHED"
}
}
}
},
{
"Path": "bgp-peers/bgp-peer[name=ateIbgp2.BGP4.peer]",
"values": {
"bgp-peers/bgp-peer": {
"open-traffic-generator-bgp:name": "ateIbgp2.BGP4.peer",
"open-traffic-generator-bgp:state": {
"counters": {
"flaps": "0",
"in-end-of-rib": "1",
"in-keepalives": "32",
"in-route-withdraw": "0",
"in-routes": "2",
"out-keepalives": "30",
"out-route-withdraw": "0",
"out-routes": "0"
},
"name": "ateIbgp2.BGP4.peer",
"session-state": "ESTABLISHED"
}
}
}
}
]
}
]
root@controller:~/featureprofiles# gnmic -a <IP_ADDRESS>:32470 --skip-verify -u admin -p admin get --path  "/bgp-peers/bgp-peer[name=ateIbgp2.BGP4.
peer]"
target "<IP_ADDRESS>:32470" get request failed: failed to create a gRPC client for target "<IP_ADDRESS>:32470" : <IP_ADDRESS>:32470: context deadline exceeded
target "<IP_ADDRESS>:32470" get request failed: failed to create a gRPC client for target "<IP_ADDRESS>:32470" : <IP_ADDRESS>:32470: context deadline exceeded
Error: one or more requests failed
root@controller:~/featureprofiles#
root@controller:~# kubectl get pods -A
NAMESPACE                        NAME                                                          READY   STATUS             RESTARTS       AGE
arista-ceoslab-operator-system   arista-ceoslab-operator-controller-manager-66cb57484f-zwcf7   2/2     Running            0              4d9h
ixiatg-op-system                 ixiatg-op-controller-manager-6678b5b6d8-d528z                 2/2     Running            0              4d9h
juniper-cptx-dutate-lag          dut                                                           1/1     Running            0              4d9h
juniper-cptx-dutate-lag          otg-controller                                                1/2     CrashLoopBackOff   7 (5m2s ago)   4d9h
juniper-cptx-dutate-lag          otg-port-eth1                                                 2/2     Running            0              4d9h
juniper-cptx-dutate-lag          otg-port-group-lag                                            2/2     Running            0              4d9h
kube-system                      coredns-787d4945fb-sq6tf                                      1/1     Running            0              4d9h
kube-system                      coredns-787d4945fb-sxkxp                                      1/1     Running            0              4d9h
kube-system                      etcd-kne-control-plane                                        1/1     Running            0              4d9h
kube-system                      kindnet-8jbkk                                                 1/1     Running            0              4d9h
kube-system                      kube-apiserver-kne-control-plane                              1/1     Running            0              4d9h
kube-system                      kube-controller-manager-kne-control-plane                     1/1     Running            0              4d9h
kube-system                      kube-proxy-cj8j6                                              1/1     Running            0              4d9h
kube-system                      kube-scheduler-kne-control-plane                              1/1     Running            0              4d9h
lemming-operator                 lemming-controller-manager-6fc9d47f7d-mp7zh                   2/2     Running            0              4d9h
local-path-storage               local-path-provisioner-c8855d4bb-8hfpf                        1/1     Running            0              4d9h
meshnet                          meshnet-s8kzt                                                 1/1     Running            0              4d9h
metallb-system                   controller-8bb68977b-h62gb                                    1/1     Running            0              4d9h
metallb-system                   speaker-l8lbs                                                 1/1     Running            0              4d9h
srlinux-controller               srlinux-controller-controller-manager-66b4b6976d-htgqx        2/2     Running            0              4d9h
root@controller:~#
root@controller:~# kubectl describe pod otg-controller -n juniper-cptx-dutate-lag
Name:             otg-controller
Namespace:        juniper-cptx-dutate-lag
Priority:         0
Service Account:  default
Node:             kne-control-plane/<IP_ADDRESS>
Start Time:       Thu, 07 Sep 2023 13:35:05 -0700
Labels:           app=otg-controller
Annotations:
Status:           Running
IP:               <IP_ADDRESS>
IPs:
IP:  <IP_ADDRESS>
Containers:
ixia-c:
Container ID:  containerd://a78826bf558467137b9a549c164bca0e0eca8632ec8e600eecefb9cb88fc7603
Image:         ghcr.io/open-traffic-generator/licensed/ixia-c-controller:0.0.1-4399
Image ID:      docker.io/library/import-2023-09-07@sha256:fb779d7a15895cd000f711f75c6a2d00098c9a1c50b4f4b2f3b0975f76e5ed7f
Port:
Host Port:
Args:
--accept-eula
--debug
State:          Waiting
Reason:       CrashLoopBackOff
Last State:     Terminated
Reason:       Error
Exit Code:    2
Started:      Mon, 11 Sep 2023 22:56:29 -0700
Finished:     Mon, 11 Sep 2023 22:56:29 -0700
Ready:          False
Restart Count:  8
Liveness:       tcp-socket :40051 delay=1s timeout=1s period=10s #success=1 #failure=6
Environment:
Mounts:
/home/ixia-c/controller/config from config (ro)
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-4pvzm (ro)
gnmi:
Container ID:  containerd://0246037cefa6131629228bf02b98a463b3ebcd2f577a922701e4e37bc93beb19
Image:         ghcr.io/open-traffic-generator/ixia-c-gnmi-server:1.12.2
Image ID:      docker.io/library/import-2023-09-07@sha256:eabcd298b8bc45315d802f6d3416d3e8548f3fbf39ad5d44fe7deae9fda81574
Port:          50051/TCP
Host Port:     0/TCP
Args:
-http-server
https://localhost:8443
--debug
State:          Running
Started:      Thu, 07 Sep 2023 13:35:07 -0700
Ready:          True
Restart Count:  0
Liveness:       tcp-socket :50051 delay=1s timeout=1s period=10s #success=1 #failure=6
Environment:
Mounts:
/var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-4pvzm (ro)
Conditions:
Type              Status
Initialized       True
Ready             False
ContainersReady   False
PodScheduled      True
Volumes:
config:
Type:      ConfigMap (a volume populated by a ConfigMap)
Name:      controller-config
Optional:  false
kube-api-access-4pvzm:
Type:                    Projected (a volume that contains injected data from multiple sources)
TokenExpirationSeconds:  3607
ConfigMapName:           kube-root-ca.crt
ConfigMapOptional:
DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
Type     Reason   Age                 From     Message

Normal   Pulled   14m (x5 over 4d9h)  kubelet  Container image "ghcr.io/open-traffic-generator/licensed/ixia-c-controller:0.0.1-4399" already present on machine
Normal   Created  14m (x5 over 4d9h)  kubelet  Created container ixia-c
Normal   Started  14m (x5 over 4d9h)  kubelet  Started container ixia-c
Warning  BackOff  76s (x74 over 16m)  kubelet  Back-off restarting failed container ixia-c in pod otg-controller_juniper-cptx-dutate-lag(1dc6d49c-af69-480e-8893-898bc613d5ee)
root@controller:~#

Looks like LearnedInformationFilter is not added in the test, can you check if that is added
txBgpv4Peer.LearnedInformationFilter().SetUnicastIpv4Prefix(true)
I am able to get the parameters in b2b setup with ixia-c in kne version(<IP_ADDRESS>99)
automation@automation-virtual-machine:~/featureprofiles$ gnmic -a <IP_ADDRESS>:32000 --skip-verify -u admin -p admin get --path  "/bgp-peers/"
[
  {
    "source": "<IP_ADDRESS>:32000",
    "timestamp":<PHONE_NUMBER>613372671,
    "time": "2023-09-12T12:54:14.613372671+05:30",
    "updates": [
      {
        "Path": "bgp-peers/bgp-peer[name=rxBgpv4Peer]",
        "values": {
          "bgp-peers/bgp-peer": {
            "open-traffic-generator-bgp:name": "rxBgpv4Peer",
            "open-traffic-generator-bgp:state": {
              "counters": {
                "flaps": "0",
                "in-end-of-rib": "0",
                "in-keepalives": "4",
                "in-route-withdraw": "0",
                "in-routes": "1",
                "out-keepalives": "4",
                "out-route-withdraw": "0",
                "out-routes": "0"
              },
              "name": "rxBgpv4Peer",
              "session-state": "ESTABLISHED"
            },
            "open-traffic-generator-bgp:unicast-ipv4-prefixes": {
              "unicast-ipv4-prefix": [
                {
                  "address": "<IP_ADDRESS>",
                  "origin": "EGP",
                  "path-id": 0,
                  "prefix-length": 32,
                  "state": {
                    "address": "<IP_ADDRESS>",
                    "as-path": [
                      {
                        "as_numbers": [
                          65000
                        ],
                        "segment-type": "AS_SET"
                      },
                      {
                        "as_numbers": [
                          1112,
                          1113
                        ],
                        "segment-type": "AS_SEQUENCE"
                      },
                      {
                        "as_numbers": [
                          2222,
                          2223
                        ],
                        "segment-type": "AS_SET"
                      }
                    ],
                    "community": [
                      {
                        "community-type": "MANUAL_AS_NUMBER",
                        "custom-as-number": 1,
                        "custom-as-value": 2
                      }
                    ],
                    "multi-exit-discriminator": 50,
                    "next-hop-ipv4-address": "<IP_ADDRESS>",
                    "origin": "EGP",
                    "path-id": 0,
                    "prefix-length": 32
                  }
                }
              ]
            }
          }
        }
      },
      {
        "Path": "bgp-peers/bgp-peer[name=txBgpv4Peer]",
        "values": {
          "bgp-peers/bgp-peer": {
            "open-traffic-generator-bgp:name": "txBgpv4Peer",
            "open-traffic-generator-bgp:state": {
              "counters": {
                "flaps": "0",
                "in-end-of-rib": "0",
                "in-keepalives": "4",
                "in-route-withdraw": "0",
                "in-routes": "0",
                "out-keepalives": "4",
                "out-route-withdraw": "0",
                "out-routes": "1"
              },
              "name": "txBgpv4Peer",
              "session-state": "ESTABLISHED"
            }
          }
        }
      }
    ]
  }
]

automation@automation-virtual-machine:~/featureprofiles$ kubectl describe pod otg-controller -n ixia-c-b2b
Name:             otg-controller
Namespace:        ixia-c-b2b
Priority:         0
Service Account:  default
Node:             kind-control-plane/<IP_ADDRESS>
Start Time:       Tue, 12 Sep 2023 12:39:35 +0530
Labels:           app=otg-controller
Annotations:      <none>
Status:           Running
IP:               <IP_ADDRESS>
IPs:
  IP:  <IP_ADDRESS>
Containers:
  ixia-c:
    Container ID:  containerd://3d0ebb63ead7f87891303742aca12044e63f4af04d791d54d38f74cfac7c3502
    Image:         ghcr.io/open-traffic-generator/licensed/ixia-c-controller:0.0.1-4399
    Image ID:      docker.io/library/import-2023-09-12@sha256:fb779d7a15895cd000f711f75c6a2d00098c9a1c50b4f4b2f3b0975f76e5ed7f
    Port:          <none>
    Host Port:     <none>
    Args:
      --accept-eula
      --debug
    State:          Running
      Started:      Tue, 12 Sep 2023 12:39:35 +0530
    Ready:          True
    Restart Count:  0
    Liveness:       tcp-socket :40051 delay=1s timeout=1s period=10s #success=1 #failure=6
    Environment:    <none>
    Mounts:
      /home/ixia-c/controller/config from config (ro)
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-2fk4r (ro)
  gnmi:
    Container ID:  containerd://5093e741e367d49a4eeb62ebebf7e766f375f48149a55bc4d53b3baf020495de
    Image:         ghcr.io/open-traffic-generator/ixia-c-gnmi-server:1.12.2
    Image ID:      docker.io/library/import-2023-09-12@sha256:eabcd298b8bc45315d802f6d3416d3e8548f3fbf39ad5d44fe7deae9fda81574
    Port:          50051/TCP
    Host Port:     0/TCP

closing it as got acknowledgement from the user that it it working


Uncaught Error: Cannot read property object of undefined,

[Enter steps to reproduce below:]

...
...

Atom Version: 1.10.2
Electron Version: 0.37.8
Thrown From: Atom Core
Stack Trace
Uncaught Error: Cannot read property 'object' of undefined
TypeError: Cannot read property 'object' of undefined
at ObjectsRegistry.get (atom\app-1.10.2\resources\electron.asar\browser\objects-registry.js:44:28)
at EventEmitter. (atom\app-1.10.2\resources\electron.asar\browser\rpc-server.js:309:31)
at emitMany (events.js:121:13)
at EventEmitter.emit (events.js:195:7)
at EventEmitter. (atom\app-1.10.2\resources\electron.asar\browser\api\web-contents.js:141:25)
at emitTwo (events.js:100:13)
at EventEmitter.emit (events.js:185:7)
At atom\app-1.10.2\resources\electron.asar\renderer\api\remote.js:178

Error: Cannot read property 'object' of undefined
TypeError: Cannot read property 'object' of undefined
    at ObjectsRegistry.get (atom\app-1.10.2\resources\electron.asar\browser\objects-registry.js:44:28)
    at EventEmitter.<anonymous> (atom\app-1.10.2\resources\electron.asar\browser\rpc-server.js:309:31)
    at emitMany (events.js:121:13)
    at EventEmitter.emit (events.js:195:7)
    at EventEmitter.<anonymous> (atom\app-1.10.2\resources\electron.asar\browser\api\web-contents.js:141:25)
    at emitTwo (events.js:100:13)
    at EventEmitter.emit (events.js:185:7)
    at metaToValue (atom\app-1.10.2\resources\electron.asar\renderer\api\remote.js:178:13)
    at undefined.remoteMemberFunction
(atom\app-1.10.2\resources\electron.asar\renderer\api\remote.js:112:18)
    at AtomEnvironment.module.exports.AtomEnvironment.getWindowDimensions
(atom\app-1.10.2\resources\app.asar\src\atom-environment.js:636:29)
    at AtomEnvironment.module.exports.AtomEnvironment.storeWindowDimensions
(\atom\app-1.10.2\resources\app.asar\src\atom-environment.js:670:36)
    at WindowEventHandler.module.exports.WindowEventHandler.handleWindowBlur (atom\app-1.10.2\resources\app.asar\src\window-event-handler.js:182:35)
    a atom\app-1.10.2\resources\app.asar\src\window-event-handler.js:3:61

Commands
     -4:05.1.0 core:backspace (atom-text-editor.editor.is-focused)
     -4:04.7.0 core:move-down (atom-text-editor.editor.is-focused)
     -4:04.6.0 core:move-left (atom-text-editor.editor.is-focused)
     -4:04.0 core:backspace (atom-text-editor.editor.is-focused)
 93x -4:03.6.0 core:move-down (atom-text-editor.editor.is-focused)
     -3:55.6.0 core:move-right (atom-text-editor.editor.is-focused)
     -3:55.2.0 core:backspace (atom-text-editor.editor.is-focused)
     -3:54.5.0 core:move-down (atom-text-editor.editor.is-focused)
     -3:54.1.0 core:move-left (atom-text-editor.editor.is-focused)
     -3:53.8.0 core:backspace (atom-text-editor.editor.is-focused)
     -3:52.5.0 core:save (atom-text-editor.editor.is-focused)
     -2:25 editor:newline (atom-text-editor.editor.is-focused)
  2x -2:15.7.0 core:backspace (atom-text-editor.editor.is-focused)
  5x -2:13 core:move-up (atom-text-editor.editor.is-focused)
 13x -2:11.6.0 core:move-left (atom-text-editor.editor.is-focused)
  2x -1:38.3.0 core:save (atom-text-editor.editor.is-focused)

Config
{
  "editor": {
    "atomicSoftTabs": false,
    "softTabs": false
  }
}

Installed Packages
# User
node-debugger, v1.7.0 (active)
atom-dark-syntax, v0.27.0 (inactive)
atom-dark-ui, v0.52.0 (inactive)
atom-light-syntax, v0.28.0 (inactive)
atom-light-ui, v0.44.0 (inactive)
base16-tomorrow-dark-theme, v1.1.0 (inactive)
base16-tomorrow-light-theme, v1.1.1 (inactive)
one-dark-ui, v1.5.0 (active)
one-light-ui, v1.5.0 (inactive)
one-dark-syntax, v1.3.0 (active)
one-light-syntax, v1.3.0 (inactive)
solarized-dark-syntax, v1.0.2 (inactive)
solarized-light-syntax, v1.0.2 (inactive)
about, v1.5.3 (active)
archive-view, v0.61.1 (active)
autocomplete-atom-api, v0.10.0 (active)
autocomplete-css, v0.11.2 (active)
autocomplete-html, v0.7.2 (active)
autocomplete-plus, v2.31.1 (active)
autocomplete-snippets, v1.11.0 (active)
autoflow, v0.27.0 (inactive)
autosave, v0.23.1 (active)
background-tips, v0.26.1 (active)
bookmarks, v0.41.0 (active)
bracket-matcher, v0.82.1 (active)
command-palette, v0.38.0 (inactive)
deprecation-cop, v0.54.1 (active)
dev-live-reload, v0.47.0 (active)
encoding-selector, v0.22.0 (active)
exception-reporting, v0.39.0 (active)
find-and-replace, v0.201.0 (active)
fuzzy-finder, v1.3.0 (active)
git-diff, v1.1.0 (active)
go-to-line, v0.31.0 (inactive)
grammar-selector, v0.48.1 (active)
image-view, v0.58.2 (active)
incompatible-packages, v0.26.1 (active)
keybinding-resolver, v0.35.0 (active)
line-ending-selector, v0.5.0 (active)
link, v0.31.1 (inactive)
markdown-preview, v0.158.0 (active)
metrics, v0.53.1 (active)
notifications, v0.65.0 (active)
open-on-github, v1.2.0 (inactive)
package-generator, v1.0.0 (inactive)
settings-view, v0.242.2 (active)
snippets, v1.0.2 (active)
spell-check, v0.67.1 (active)
status-bar, v1.4.1 (active)
styleguide, v0.47.0 (active)
symbols-view, v0.113.0 (inactive)
tabs, v0.100.2 (active)
timecop, v0.33.2 (active)
tree-view, v0.208.2 (active)
update-package-dependencies, v0.10.0 (active)
welcome, v0.34.0 (active)
whitespace, v0.33.0 (active)
wrap-guide, v0.38.1 (active)
language-c, v0.52.1 (active)
language-clojure, v0.21.0 (active)
language-coffee-script, v0.47.2 (active)
language-csharp, v0.12.1 (active)
language-css, v0.37.1 (active)
language-gfm, v0.88.0 (active)
language-git, v0.15.0 (active)
language-go, v0.42.1 (active)
language-html, v0.45.1 (active)
language-hyperlink, v0.16.0 (active)
language-java, v0.23.0 (active)
language-javascript, v0.119.0 (active)
language-json, v0.18.2 (active)
language-less, v0.29.5 (active)
language-make, v0.22.2 (active)
language-mustache, v0.13.0 (active)
language-objective-c, v0.15.1 (active)
language-perl, v0.35.0 (active)
language-php, v0.37.2 (active)
language-property-list, v0.8.0 (active)
language-python, v0.45.0 (active)
language-ruby, v0.69.0 (active)
language-ruby-on-rails, v0.25.0 (active)
language-sass, v0.56.0 (active)
language-shellscript, v0.22.4 (active)
language-source, v0.9.0 (active)
language-sql, v0.23.0 (active)
language-text, v0.7.1 (active)
language-todo, v0.28.0 (active)
language-toml, v0.18.0 (active)
language-xml, v0.34.9 (active)
language-yaml, v0.26.0 (active)

# Dev
No dev packages

This is a duplicate of https://github.com/atom/atom/issues/11692.


feat: add simple FT block-list implementation

Adds simplest implementation for hiding scam tokens - just a hard-coded list for now.
More flexible implementations to-be-done in next iteration

@hcho112 can we please change the title and description to show that this is a release. You can see the latest release PR: https://github.com/near/near-wallet/pull/2929


fix timming

https://github.com/cloudofoz/raylib-media/blob/462a9c73cf23a84148136634ea635fae7a93cdc3/src/rmedia.c#L1196
fix the timing of each frame for certain videos, by disassembling the multiplication, precision is not lost.
I reeplace to:
AVRational* timebase=&ctx->formatContext->streams[streamCtx->streamIdx]->time_base;
const double nextFrameTime = (double)(avPacket->pts-streamCtx->startPts)*timebase->num/timebase->den;

Hi @phreda4 ,
thank you for pointing out this very interesting issue! I’ve just pushed your fix to use integer multiplication before floating-point division.
Please feel free to close the issue if everything looks good on your end.
Best,
C.

nice!! I see this
Best!
Pablo
El sáb, 21 dic 2024 a las 9:13, Claudio Z. @.***>)
escribió:

Hi @phreda4 https://github.com/phreda4 ,
thank you for pointing out this very interesting issue! I’ve just pushed
your fix to use integer multiplication before floating-point division.
Please feel free to close the issue if everything looks good on your end.
Best,
C.
—
Reply to this email directly, view it on GitHub
https://github.com/cloudofoz/raylib-media/issues/8#issuecomment-2558099261,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADH3HBMY74DY247ZOESKLL2GVLM5AVCNFSM6AAAAABUAOHXQOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJYGA4TSMRWGE
.
You are receiving this because you were mentioned.Message ID:
@.***>


Misleading documentation for sap.m.Table  bindings

For a particular table,
oTable= this.getView().byId("tableID");

when we try to get the binding using the below code
oTable.getBinding("items")

This returns us an element of type sap.ui.model.ListBinding  .
However the documentation does not clearly mention this. The only 'getBinding' method that can be seen for sap.m.Table is for sap.ui.base.ManagedObject which returns sap.ui.model.Binding
Could you please check and correct this?

I don't see yet why this should be misleading. https://sapui5.hana.ondemand.com/sdk/docs/api/symbols/sap.ui.model.Binding.html is documented to be a base class for sap.ui.model.ListBinding (as well as for sap.ui.model.PropertyBinding and sap.ui.model.ContextBinding - it is even a base class for  sap.ui.model.TreeBinding, but in older versions the inheritance relationship between TreeBinding and Binding was not properly documented).
Depending on the name that you provide to getBinding() and depending on the current binding state, you get one of the subclasses of sap.ui.model.Binding or undefined. So the only common type for the returned object is indeed sap.ui.model.Binding.
Or do you suggest to mention exactly this inheritance relationship in the documentation of ManagedObject.prototype.getBinding()? We usually only document the common base type for all such methods. it is then automatically linked by JSDoc and one can see the subclasses (or the implementing classes in the case of an interface type).
But we could at least mention that you'll get a subclass depending on the name.Would such a remark help? I would add it then for ManagedObject.prototype.getBinding().
As the (documented) behaviour of Table.prototype.getBinding matches the documentation for ManagedObject.prototype.getBinding, I see no need for a duplicated documentation in class Table.
But maybe I missed your point. Then please forgive me and try to explain it again.
Kind Regards,
cw

Hi Frank,
I understand your point . But for someone trying to just refer the documentation it is not very obvious as documentation for ManagedObject.html#getBinding says return type as {sap.ui.model.Binding} .  Since the usual behavior is to maybe use the hyperlink and check further APIs , the assumption that @ return type could also point to one of the sub-classes of sap.ui.model.Binding is not very clear.
In such cases, I would prefer (as you suggested) we mention something like below at least
{sap.ui.model.Binding} or one of the sub-classes depending on the name of parameter/aggregation
I feel, this should probably be considered for similar instances in other APIs also.
Best Regards,
Nitish

I've created a internal incident<PHONE_NUMBER>. You can check its status on GitHub.
Regards, Diana

sap.ui.model.Binding is an abstract class, so getBinding will always return a subclass of it. As the getBinding method can return any kind of binding (depending of the property) it is absolutely correct that it has "sap.ui.model.Binding" as its return type.


Kernel dies with inline-r or maybe TemplateHaskell or QuasiQuotes

bash-3.2$ nix-build -I nixpkgs=https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz release-8.6.nix --arg packages "haskellPackages: [ haskellPackages.inline-r ]"

bash-3.2$ /nix/store/x5a6dxgsv7ry0cr8gj2q5a9jc37naf5k-ihaskell-with-packages/bin/ihaskell-notebook
[I 08:09:41.205 NotebookApp] JupyterLab extension loaded from /nix/store/ny8p0l9hm8gwcsp2fd3f2d8cwqchbplb-python3-3.7.4-env/lib/python3.7/site-packages/jupyterlab
[I 08:09:41.205 NotebookApp] JupyterLab application directory is /nix/store/gq2ckky2yvibw0yag1yb1kwzfv5vbaff-python3.7-jupyterlab-0.35.4/share/jupyter/lab
[W 08:09:41.208 NotebookApp] Error loading server extension nbdime
    Traceback (most recent call last):
      File "/nix/store/ny8p0l9hm8gwcsp2fd3f2d8cwqchbplb-python3-3.7.4-env/lib/python3.7/site-packages/notebook/notebookapp.py", line 1572, in init_server_extensions
        mod = importlib.import_module(modulename)
      File "/nix/store/ny8p0l9hm8gwcsp2fd3f2d8cwqchbplb-python3-3.7.4-env/lib/python3.7/importlib/__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 965, in _find_and_load_unlocked
    ModuleNotFoundError: No module named 'nbdime'
[I 08:09:41.209 NotebookApp] Serving notebooks from local directory: /Users/dom/IHaskell
[I 08:09:41.209 NotebookApp] The Jupyter Notebook is running at:
[I 08:09:41.209 NotebookApp] http://localhost:8888/?token=03dadc502fe7ed2d67886524439104914cb134ba7f9fdd1a
[I 08:09:41.217 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 08:09:41.237 NotebookApp]

    To access the notebook, open this file in a browser:
        file:///Users/dom/Library/Jupyter/runtime/nbserver-11996-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=03dadc502fe7ed2d67886524439104914cb134ba7f9fdd1a
[I 08:10:14.526 NotebookApp] Kernel started: 23fa1b9c-1d43-4eb2-b1e2-94b049c18c15
[W 08:10:14.543 NotebookApp] 404 GET /static/components/codemirror/mode/ihaskell/ihaskell.js?v=20190725080940 (::1) 12.51ms referer=http://localhost:8888/notebooks/Untitled1.ipynb
[W 08:10:14.592 NotebookApp] 404 POST /nbdime/api/isgit (::1) 1.56ms referer=http://localhost:8888/notebooks/Untitled1.ipynb
[W 08:10:14.603 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20190725080940 (::1) 1.50ms referer=http://localhost:8888/notebooks/Untitled1.ipynb
[I 08:10:15.497 NotebookApp] Adapting to protocol v5.0 for kernel 23fa1b9c-1d43-4eb2-b1e2-94b049c18c15
[I 08:10:23.526 NotebookApp] KernelRestarter: restarting kernel (1/5), keep random ports
kernel 23fa1b9c-1d43-4eb2-b1e2-94b049c18c15 restarted
[I 08:12:15.522 NotebookApp] Saving file at /Untitled1.ipynb

See also https://github.com/gibiansky/IHaskell/issues/965 and https://github.com/gibiansky/IHaskell/issues/236.

Again, does this work with GHCi?
[vaibhavsagar@nixos:~/repos/IHaskell]$ nix-shell -p 'haskellPackages.ghcWithPackages (p: [ p.inline-r ])'
<...>
[nix-shell:~/repos/IHaskell]$ ghci
GHCi, version 8.6.4: http://www.haskell.org/ghc/  :? for help
package flags have changed, resetting and loading new packages...
cannot satisfy -package ghc-paths
    (use -v for more information)
Loaded GHCi configuration from /home/vaibhavsagar/repos/IHaskell/.ghci
λ> :set -XTemplateHaskell
λ> :set -XQuasiQuotes
λ> import qualified Language.R as R
λ> import Language.R.QQ
λ> :t [r| print(df_hs) |]

<interactive>:1:1: error:
    • Exception when trying to run compile-time code:
        R: readCreateProcess: runInteractiveProcess: exec: does not exist (No such file or directory)
      Code: Language.Haskell.TH.Quote.quoteExp r " print(df_hs) "
    • In the quasi-quotation: [r| print(df_hs) |]

Ah it needs R

[nix-shell:~/nixtest]$ ghci -fno-ghci-sandbox
GHCi, version 8.6.4: http://www.haskell.org/ghc/  :? for help
Prelude> :set -XTemplateHaskell
Prelude> :set -XQuasiQuotes
Prelude> import qualified Language.R as R
Prelude R> import Language.R.QQ
Prelude R> (R.runRegion $ do _ <- [r| print(pi) |]; return ())
Prelude R Language.R.QQ> (R.runRegion $ do _ <- [r| print(pi) |]; return ())
[1] 3.141593

shell.nix
{ nixpkgs ? import ./nix/nixpkgs.nix {} }:

let
  inherit (nixpkgs) pkgs;
  inherit (pkgs) haskellPackages;

  haskellDeps = ps: with ps; [
    inline-r
  ];

  ghc = haskellPackages.ghcWithPackages haskellDeps;

  nixPackages = [
    ghc
    pkgs.R
  ];
in
pkgs.stdenv.mkDerivation {
  name = "env";
  buildInputs = nixPackages;
}

'nixpkgs.nix`
{ system ? builtins.currentSystem }:
let
  nixpkgs = builtins.fetchTarball {
    url = "https://github.com/NixOS/nixpkgs-channels/archive/nixos-19.03.tar.gz";
    sha256 = "06cqc37yj23g3jbwvlf9704bl5dg8vrzqvs5y2q18ayg9sw61i6z";
  };
in
  import nixpkgs {
    inherit system;
    config = {}; # prevent nixpkgs from loading user configuration
    overlays = [ (import ./overlay.nix) ];
  }

overlay.nix
self: super:

let haskellOverlay = hself: hsuper: {
  inline-r = self.haskell.lib.dontCheck (super.haskellPackages.inline-r);
};

in

{
  haskellPackages = super.haskellPackages.override { overrides = haskellOverlay; };
}

Template Haskell works just fine in an IHaskell notebook, that's not what's going on here

Here's what I see:

What nix expression are you using? The same as mine?

I updated my comment with the Nix expression I'm using. I have it saved as foo.nix and am running it with nix-build foo.nix.

Closing, please reopen if necessary.

If you are on macOS don't forget :set -fno-ghci-sandbox.


File corrupted on  paragraph insert with text Box

Hello
I found this function to add content to another docx:
  def direct_insert(self,doc_dest, doc_src):
      for k,p in enumerate(doc_src.paragraphs):
            inserted_p = doc_dest._body._body._insert_p(p._p)
            if p._p.get_or_add_pPr().numPr:
                inserted_p.style = "ListNumber"

When i open the file with MS WORD i got message :

We’re sorry. We can’t open DocumentName.docx because we found a problem with its contents.
When I want to see Details the following message shows:
Unspecified error
Location: Part: /word/document.xml, Line 2, Column: 0.

i have done a break in loop for paragraph to debug and i realise that is the textBox hwo makes problems

This is a random block of code that manipulates the underlying XML directly. There's no guarantee from me (of course) that this sort of thing will work. It's commonly done, but relies on the skill of the developer to understand what they're doing and get it right. I suggest you appeal to the author for help or work out how to write your own.

Thanks for your response


Version 5.0.276 Doesn't install on VS 2017

The end of the log has this:
01/11/2018 10:38:11 - Skipping 'C:\Users\boazd\AppData\Local\Microsoft SDKs' as it doesn't exist
01/11/2018 10:38:11 - Uninstalling 'CodeNav', version 5.0.276.
01/11/2018 10:38:12 - Successfully uninstalled CodeNav.
I reverted back to 4.5 but would love to use the new version.
Thanks!

Hey,
Which version number and edition of Visual Studio 2017 are you running?
Can you send me the full installation log?
Installation works on my machine, lets try to find out if there is a hidden missing depency.
Greetings,
Samir

Hi Samir,
Originally it crashed cause I didn't have the Microsoft SDK installed (first log).
I then created an empty directory in the path it was searching. Still crashed (second log).
Love your product. Can't think of coding without it.
Thanks,
Boaz Davidoff
Senior Software Engineer
Landa Digital Printing
[Logo]
Mobile: +972-52-680-3604
Tel/Fax:  +972-77-344-4837
boaz.davidoff<EMAIL_ADDRESS>www.landanano.comhttp://www.landanano.com
From: Samir Boulema<EMAIL_ADDRESS>Sent: יום ה 01 נובמבר 2018 11:47
To: sboulema/CodeNav<EMAIL_ADDRESS>Cc: Boaz Davidoff<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [sboulema/CodeNav] Version 5.0.276 Doesn't install on VS 2017 (#71)
Hey,
Which version number and edition of Visual Studio 2017 are you running?
Can you send me the full installation log?
Installation works on my machine, lets try to find out if there is a hidden missing depency.
Greetings,
Samir
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/sboulema/CodeNav/issues/71#issuecomment-434988061, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AqmQ8uh2oN_4NfBfz2yI2azvMYGg5Cvnks5uqsMCgaJpZM4YGCLr.
Click herehttps://www.mailcontrol.com/sr/W0Af_7rPlXnGX2PQPOmvUizKrmxxhcEGQ9kzQRSOMygWitH_8HSRbzgSNFR7R8lZynLaxThOMFDJaydNu2tBwg== to report this email as spam.
Confidentiality Notice: This e-mail message, including any attachment thereof, is intended only for the person(s) to whom it is addressed and may contain proprietary, confidential and/or privileged material. Any review, reproduction, dissemination or other use of, or taking any action in reliance upon, this information by persons or entities other than the intended recipient(s), is prohibited. If you received this e-mail in error, please immediately notify the sender by return e-mail, and delete this message from your computer. Thank you.

<EMAIL_ADDRESS>Boaz Davidoff
Senior Software Engineer
Landa Digital Printing
[Logo]
Mobile: +972-52-680-3604
Tel/Fax:  +972-77-344-4837
boaz.davidoff<EMAIL_ADDRESS>www.landanano.comhttp://www.landanano.com
From: Samir Boulema<EMAIL_ADDRESS>Sent: יום ה 01 נובמבר 2018 11:47
To: sboulema/CodeNav<EMAIL_ADDRESS>Cc: Boaz Davidoff<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [sboulema/CodeNav] Version 5.0.276 Doesn't install on VS 2017 (#71)
Hey,
Which version number and edition of Visual Studio 2017 are you running?
Can you send me the full installation log?
Installation works on my machine, lets try to find out if there is a hidden missing depency.
Greetings,
Samir
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/sboulema/CodeNav/issues/71#issuecomment-434988061, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AqmQ8uh2oN_4NfBfz2yI2azvMYGg5Cvnks5uqsMCgaJpZM4YGCLr.
Click herehttps://www.mailcontrol.com/sr/W0Af_7rPlXnGX2PQPOmvUizKrmxxhcEGQ9kzQRSOMygWitH_8HSRbzgSNFR7R8lZynLaxThOMFDJaydNu2tBwg== to report this email as spam.
Confidentiality Notice: This e-mail message, including any attachment thereof, is intended only for the person(s) to whom it is addressed and may contain proprietary, confidential and/or privileged material. Any review, reproduction, dissemination or other use of, or taking any action in reliance upon, this information by persons or entities other than the intended recipient(s), is prohibited. If you received this e-mail in error, please immediately notify the sender by return e-mail, and delete this message from your computer. Thank you.

Turned out to be related to the switch to PackageReferences and meta sdk package.
https://blogs.msdn.microsoft.com/visualstudio/2018/10/10/simplify-extension-development-with-packagereference-and-the-vssdk-meta-package/
Fixed in the new release.

Haven't done a VS Extension yet.
Looks like great fun!
Boaz Davidoff
Senior Software Engineer
Landa Digital Printing
[Logo]
Mobile: +972-52-680-3604
Tel/Fax:  +972-77-344-4837
boaz.davidoff<EMAIL_ADDRESS>www.landanano.comhttp://www.landanano.com
From: Samir Boulema<EMAIL_ADDRESS>Sent: יום ג 13 נובמבר 2018 18:34
To: sboulema/CodeNav<EMAIL_ADDRESS>Cc: Boaz Davidoff<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [sboulema/CodeNav] Version 5.0.276 Doesn't install on VS 2017 (#71)
Turned out to be related to the switch to PackageReferences and meta sdk package.
https://blogs.msdn.microsoft.com/visualstudio/2018/10/10/simplify-extension-development-with-packagereference-and-the-vssdk-meta-package/
Fixed in the new release.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/sboulema/CodeNav/issues/71#issuecomment-438339098, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AqmQ8oRRpfqy7Cxm5tt0yRwQUTCB5Z8aks5uuvRvgaJpZM4YGCLr.
Click herehttps://www.mailcontrol.com/sr/LI535ytIzDLGX2PQPOmvUvskgEWXzasP2-mU1jz8SNJkIn8rr1LNJcmUPX7xrQy8l6SD2y_YtiX4eW8epClCcw== to report this email as spam.
Confidentiality Notice: This e-mail message, including any attachment thereof, is intended only for the person(s) to whom it is addressed and may contain proprietary, confidential and/or privileged material. Any review, reproduction, dissemination or other use of, or taking any action in reliance upon, this information by persons or entities other than the intended recipient(s), is prohibited. If you received this e-mail in error, please immediately notify the sender by return e-mail, and delete this message from your computer. Thank you.


Colab notebook_login goes to hf.co login page in Safari

Describe the bug
When clicking on the token link in Colab of notebook_login I get to https://huggingface.co/login?next=%2Fsettings%2Ftokens which asks me to login even if I am logged in. But if I right click and copy paste the link I see that the link was actually https://huggingface.co/settings/tokens. So I don't think this is a huggingface_hub issue per se but something in the browser/HF website.
Note: It works in Chrome.

@coyotte508 @Pierrci can it be a cookie issue on Safari? Can't really test myself here since it requires a mac.


[DOCS] Rename Flink Table Store to Apache Paimon (Incubating) in docs Connectors for Flink SQL Query Engine

Why are the changes needed?

To update docs.
Rename Flink Table Store to Apache Paimon (Incubating) in docs Connectors for Flink SQL Query Engine
How was this patch tested?

[ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible

[ ] Add screenshots for manual tests if appropriate

[ ] Run test locally before make a pull request

Codecov Report

Merging #4614 (1806160) into master (5c90e84) will decrease coverage by 0.03%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master    #4614      +/-   ##
============================================
- Coverage     53.34%   53.31%   -0.03%
  Complexity       13       13
============================================
  Files           577      577
  Lines         31584    31584
  Branches       4248     4248
============================================
- Hits          16847    16840       -7
- Misses        13149    13160      +11
+ Partials       1588     1584       -4

see 7 files with indirect coverage changes
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

Thanks @yaooqinn for the review. I have modified the docs. It looks like there are no errors or warning in the compiled output

Thanks, merged to master/1.7


Provide troubleshooting guidance, when "TASK [core/cluster : cluster | Create new cluster]" hanging

Describe the bug
I provisioned three VMs on virtual infrastructure and tried to create a three-node Spectrum Scale cluster.
The following step was hanging for an hour or so:
TASK [core/cluster : cluster | Create new cluster] *********************************************

I added a debug message to the core/cluster.yml:
    - debug:
        msg: "/usr/lpp/mmfs/bin/mmcrcluster -N /var/mmfs/tmp/NodeFile -C {{ scale_cluster_clustername }} {{ profile_type }} {{ extra_option }}"

    - name: cluster | Create new cluster
      command: /usr/lpp/mmfs/bin/mmcrcluster -N /var/mmfs/tmp/NodeFile -C {{ scale_cluster_clustername }} {{ profile_type }} {{ extra_option }}
      notify: accept-licenses
      register: mmcrcluster_results

In the next run of the playbook it gave me a hint:
TASK [core/cluster : debug] ******************************************************************************************************************************************************************
ok: [sc1-n1 -> sc1-n1] => {
    "msg": "/usr/lpp/mmfs/bin/mmcrcluster -N /var/mmfs/tmp/NodeFile -C gpfs1.local  "
}

So I tried this command without Ansible:
[root@sc1-n1 ~]# /usr/lpp/mmfs/bin/mmcrcluster -N /var/mmfs/tmp/NodeFile -C gpfs1.local
mmcrcluster: Performing preliminary node verification ...
mmcrcluster: Processing quorum and other critical nodes ...
The authenticity of host 'sc1-n3.fyre.ibm.com (<IP_ADDRESS>)' can't be established.
ECDSA key fingerprint is SHA256:2J35XBfRLzv5RUqHYH9rGCGA+jS1KR/Lw1f1+n0JbSU.
The authenticity of host 'sc1-n1.fyre.ibm.com (<IP_ADDRESS>)' can't be established.
ECDSA key fingerprint is SHA256:2J35XBfRLzv5RUqHYH9rGCGA+jS1KR/Lw1f1+n0JbSU.
The authenticity of host 'sc1-n2.fyre.ibm.com (<IP_ADDRESS>)' can't be established.
ECDSA key fingerprint is SHA256:2J35XBfRLzv5RUqHYH9rGCGA+jS1KR/Lw1f1+n0JbSU.
Are you sure you want to continue connecting (yes/no/[fingerprint])?

Ah. SSH is not set up properly. For a new user this is not easy to determine, although this is mentioned in the README.
To improve usability, it would be good to have an additional check in the role for ssh connectivity to make the troubleshooting easier for new users.
I have also considered to have a section Troubleshooting in the README, though a check in the role would be preferred.
To Reproduce
Steps to reproduce the behavior:

Provision three VMs
Follow instructions in README and run ansible-playbook -i hosts playbook.yml

Expected behavior
Described above.
Environment
Please run the following an paste your output here:

Spectrum Scale <IP_ADDRESS>
Ansible from EPEL
Current version of this project

Thanks @troppens . agree. we have a pre-check in the cli toolkit though mmnetverify. we were discussing if we can validate ansible host inventory through mmnetverify but mmnetveify is internal  tools that we can't use here as its not open source tool.
We can add this info in the  README , so that user can run manual mmnetverify before starting the scale cluster creation.
I will also check if we can add some ssh ansible module to validate host inventory. Thanks

mmnetverify is externally available:
https://www.ibm.com/docs/en/spectrum-scale/5.1.2?topic=reference-mmnetverify-command
Regarding ssh, I believe that this is required from admin node to all other nodes, but not from each node to all other nodes. From an ease-of-use perspective it might be desired to have ssh from any node to any other node. This would be good for new users just get started with Spectrum Scale, e.g. for evaluation or demo. From an production perspective it might be desired to restrict ssh to improve security.

A few thoughts on this one:

I like the idea of printing stdout/stderr of the underlying mm* commands in human-readable format in case of errors. This is especially true for essential commands like mmcrcluster, mmcrnsd, mmcrfs, etc.

I've repeatedly seen people stumble over missing SSH keys, fingerprints, etc. Esp. for new users getting started with Scale this is always confusing. We have all the necessary logic (in core_prepare) to configure SSH and exchange keys... but it's all disabled by default. Most users might not even be aware of these vars:

scale_prepare_enable_ssh_login
scale_prepare_exchange_keys

@rajan-mis: Wouldn't it make sense to change the default of these to true so that it "just works", esp. for new users just getting started?

I missed the prep roles too, although I know that ssh must be configured. I was curious to see what breaks when I work with the OS and the role defaults ;-)
I would not change ssh settings per default because they impact security.
I believe it is sufficient to do a quick check on the node which executes mmcrcluster. From there just do an ssh to each Spectrum Scale node used in the mmcrcluster. Add a timer so that the command fails after a few seconds or one minute at most. This provides fast feedback to users of the Spectrum Scale roles and it implicitly teaches Spectrum Scale newbies to plan for ssh prerequisites.


Error handling and spinner

Added error handling and spinner to placing a comment

Review this pull request on Preview Code.

Good changes! Will merge when rebased

Rebase and added your suggestion


editor service: check file against glob directly instead of walking

Yep, I'll move this over. I'll just hard reset the other branch to the tip of this one instead, we can just go back to the original PR 😄

Raised it in the main repo here: https://github.com/dprint/dprint/pull/386


Can you update the document to reference the correct certification details regarding to the DigiCert Global G2 Root ?

Can you update the document to reference the correct certification details regarding to the DigiCert Global G2 Root ?

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

ID: bcf2a86a-1de0-2786-db87-58279ceffb22
Version Independent ID: 7e43624f-a87d-1c4d-94e6-e38c1d42686f
Content: Use MQTT to communicate with Azure IoT Hub - Azure IoT Hub
Content Source: articles/iot/iot-mqtt-connect-to-iot-hub.md
Service: iot
GitHub Login: @kgremban
Microsoft Alias: kgremban

@SergiSM
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

@SergiSM  thank you for pointing this out. I've opened a pull request to update this article to reference both the Baltimore and Global G2 certificates, since the certificate migration is still ongoing through October 15.

@SergiSM I checked with the team managing the portal messaging and I think I understand the confusion. The migration window does go through October 15, but the portal banner is supposed to be telling any unmigrated customers to have their devices ready by September 15th, 2023, because from that point onwards, Microsoft drives the migration for all remaining customers (rather than having the self-migration option). I've shared the feedback that this is unclear messaging.

@kgremban Understood. Thank you for clarify this


Disable kOps clusters temporarily

See https://github.com/awslabs/mountpoint-s3-csi-driver/issues/288

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

It started working fine again. Seems like it was a transient issue, closing it for now.


FPS for IP camera driver is calculated incorrectly

FPS hits some absurd values, e.g. 430.

https://github.com/sarxos/webcam-capture/issues/563

I get about 800 or more FPS for my ip-cam. I think the issue is in this line of the code. Where processing variable is never set to true. Please, someone, have a look.


[feature request] Add a 'cancel upload' button for file uploads in progress

Reported by @HarryRybacki on the 0.24 Trello board
Related to https://github.com/CenterForOpenScience/osf.io/issues/758 but new issue since we are now using Treebeard
Steps
(1) Navigate to a projects file section
(2) Click 'Upload Files'
(3) Select file to upload
(4) Click 'Open' and watch the file upload begin
(5) Realize you selected the wrong file after starting the upload
(6) Try to cancel the upload in progress
Expected
Click a button that cancels the upload in progress.
Actual
Either wait for the upload to complete and delete it afterwards or manually force the browser 'back' to kill the upload.
Both actual options are undesirable. One is inefficient and can take excessive time (especially for larger files). The other can throw off a workflow unnecessarily.

This is not just a UI process, I think waterbutler needs to intervene here about what happens when file upload is canceled. Tagging @icereval @chrisseto @jmcarp

Sounds good @caneruguz

If an upload is cancelled WaterButler will just disconnect the upload from the third party (Dropbox, S3 etc..) so you should be fine to just cancel the upload and report the operation back to the user via the frontend client.

Okay then @lbanner you can assign this to me as well.

related to https://github.com/CenterForOpenScience/osf.io/issues/2282. Discussion can be continued there.