rockradio.com

On the radio began to add to the title of the song name of the music style. Scroobler does not recognize

The same for https://www.radiotunes.com

Probably all of their subsidiaries

@SeleniaIrisha @Alex-Kho can you check the extension from this zip? https://github.com/alexesprit/web-scrobbler/archive/radiotunes-fix.zip

Yes, di.fm and others stations(radiotunes, rockradio) has changed their players from flash technology and direct streams. Also, they prepend station title to song title and its complicate extension to scrobbler.
I think, we just need add gsub function to scrobbler for cut out unnecessary text. I'll do pull request with this very soon

@rymarcode I have already fixed the issue and post URL to the fixed extension. I'm just waiting until someone confirms it's fixed.

@alexesprit okay. You can create pull request with fixed code


How the parameters trasfer from one module to another one

Dear Thomas,
Sorry if my question is a bit silly but I need to make sure I understand all details since your work is my cornerstone of GCNN and I almost have memorised all lines !!!
I was wondering when in the line 10 of models.py we pass nfeat and nhid to GraphConvolution:
self.gc1 = GraphConvolution(nfeat, nhid)
then these two parameter will transfer to the line 14 of layers.py
def init(self, in_features, out_features, bias=True)
right?
In this case, in_features and out_features are replaced with nfeat and nhid respectively, right?
Can you please let me know why it works like this? I mean when the name of parameter is different how the code replace them accordingly.
I appreciate your time.
Fatima

def init(self, in_features, out_features, bias=True)
You don't need to pass same name while passing parameters in python function :
Quick example
def example(p_1, p_2):
      return p_1*p_2

Here while calling this function I can pass any int variable to example

var_a = 1

example(var_a,var_a)


Update README.md

Checkmarx AST – Scan Summary & Details – fc612009-21f5-4306-beb1-4fc7c25317e4
No New Or Fixed Issues Found


feat(really-docs): Add docs for the websocket wire protocol

Refer to this link for build results (access rights to CI server needed):
http://ci.really.io//job/really-pr-validator/86/
Test PASSed.


chore(main): release 1.1.3

:robot: I have created a release beep boop
1.1.3 (2024-10-08)
Bug Fixes

update table IPRF 2024. (70d0bd0)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/diillson/calculador-de-plr/releases/tag/v1.1.3 :sunflower:


Job limit documentation for gate-folding ZNE

URL to the relevant documentation
The Job limits documentation contains an error when describing the limits that apply to gate-folding ZNE "The number of two-qubit gates is multiplied by the largest noise factor requested in gate-folding ZNE."
Select all that apply

[ ] typo
[ ] code bug
[x] out-of-date content
[ ] broken link
[ ] other

Describe the fix.
The sentence should be "The number of two-qubit gates is multiplied by the sum of noise factor requested in gate-folding ZNE."

This will be closed by #2073

#2073 was merged


ReferenceDataRequest with various return sizes

Related to https://github.com/matthewgilbert/pdblp/issues/5, when an array of reference data is returned it is ambiguous which values are grouped together
import pdblp

con = pdblp.BCon(debug=True)
con.start()
df = con.ref("BCOM Index", "INDX_MWEIGHT_HIST")

DEBUG:root:Sending Request:
 ReferenceDataRequest = {
    securities[] = {
        "BCOM Index"
    }
    fields[] = {
        "INDX_MWEIGHT_HIST"
    }
    overrides[] = {
    }
}

DEBUG:root:Message Received:
 ReferenceDataResponse = {
    securityData[] = {
        securityData = {
            security = "BCOM Index"
            eidData[] = {
            }
            fieldExceptions[] = {
            }
            sequenceNumber = 0
            fieldData = {
                INDX_MWEIGHT_HIST[] = {
                    INDX_MWEIGHT_HIST = {
                        Index Member = "BON8"
                        Percent Weight = 2.430000
                    }
                    INDX_MWEIGHT_HIST = {
                        Index Member = "C N8"
                        Percent Weight = 6.680000
                    }
                    INDX_MWEIGHT_HIST = {
                        Index Member = "CLN8"
                        Percent Weight = 7.600000
                    }
                [ommitted]
                }
            }
        }
    }
}

df.head()

       ticker                             field value
0  BCOM Index    INDX_MWEIGHT_HIST:Index Member  BON8
1  BCOM Index  INDX_MWEIGHT_HIST:Percent Weight  2.43
2  BCOM Index    INDX_MWEIGHT_HIST:Index Member  C N8
3  BCOM Index  INDX_MWEIGHT_HIST:Percent Weight  6.68
4  BCOM Index    INDX_MWEIGHT_HIST:Index Member  CLN8

Implicitly these are associated in the order they are returned but it would be better to be explicit.
One complication for implementing a coherent interface is that currently both array data and singleton data can be returned from the same call to ref(), e.g.
con.debug = False
con.ref("BCOM Index", ["INDX_MWEIGHT_HIST", "PERCENT_WEIGHT"]).tail()

        ticker                             field value
40  BCOM Index    INDX_MWEIGHT_HIST:Index Member  W N8
41  BCOM Index  INDX_MWEIGHT_HIST:Percent Weight  3.88
42  BCOM Index    INDX_MWEIGHT_HIST:Index Member  XBN8
43  BCOM Index  INDX_MWEIGHT_HIST:Percent Weight  4.23
44  BCOM Index                    PERCENT_WEIGHT   100

To deal with this coherently, ref and bulkref have been introduced for dealing with ReferenceDataRequests that return singleton or array data respectively. Examples of these are
import pdblp
con = pdblp.BCon()
con.start()
df = con.bulkref('BCOM Index', 'INDX_MWEIGHT')
df.head()

       ticker         field                             name value  position
0  BCOM Index  INDX_MWEIGHT  Member Ticker and Exchange Code  BON8         0
1  BCOM Index  INDX_MWEIGHT                Percentage Weight  2.41         0
2  BCOM Index  INDX_MWEIGHT  Member Ticker and Exchange Code  C N8         1
3  BCOM Index  INDX_MWEIGHT                Percentage Weight  6.56         1
4  BCOM Index  INDX_MWEIGHT  Member Ticker and Exchange Code  CLN8         2

df2 = con.ref("CL1 Comdty", ["FUT_GEN_MONTH"])
df2

       ticker          field         value
0  CL1 Comdty  FUT_GEN_MONTH  FGHJKMNQUVXZ

Here position is introduced to keep track of the spot in the array this was parsed from.


CUDA: Fix linking with PTX when compiling lazily

When no signature was provided, the link kwarg was accidentally dropped in the wrapper function calling jit inside the decorator.
Also includes the removal of some un-needed decorators in the linker test.
Fixes #7607.

gpuci run tests

@stuartarchibald Thanks for the review - change applied.
gpuci run tests

Buildfarm ID: numba_smoketest_cuda_yaml_111.

Buildfarm ID: numba_smoketest_cuda_yaml_111.

Passed.


Generate TypeScript definitions from docs

Surfing the web I stumbled upon this Hindley-Milner parser written in JS. I immediately saw the possibility of to generate the TS definitions -and possibly Flow- from Ramda docs. What's your thoughts about it guys?

I think this would be a fantastic idea.  I know little about TS or Flow definitions, but if they could be generated from our signatures, it would be a huge win, even if our signatures need some updating to make it work.
But it would take someone who understands TS/Flow pretty well to implement this, I think.  Any volunteers?

Contributors of https://github.com/types/npm-ramda can be a great help on this. They know enough HM and TS :muscle: I think.

@tycho01: What do you think?  Would this be a good idea?  Would you be interested in participating?

This is a fun idea.
It begs the question why the types in npm-ramda no longer look like the signatures though, and that I know -- to improve type inference and safely handle currying/placeholders, at the cost of semi-legible source templates yet codegen results unsightly compared to their JS counterparts.
The Hindley-Milner type signatures definitely served as the obvious starting point, but TS typings had their own challenges, which the signatures don't evidently help address.
In Haskell we have data classes, and HM is fine, but with a structural typing system like TypeScript, preserving object key info is essential to safely distinguish say a { foo: string, bar: number, baz: string } from a { name: string, id: number }.
Now, if one were to navigate such an object using e.g. R.path, suddenly the result will depend on your keys as well (is this string a "foo" or a "bar"?), and quickly your challenges explode beyond what HM handles.
Things I consider remaining challenges in typing Ramda, blocked by present language features:

pipe / compose losing generics of input functions. I think there was finally a PR at TypeScript for this, but I forgot where.
better inference to negate the need for explicit type hints.
better typing map for heterogeneous objects/tuples.
better typing path / lenses.
recursive type approaches to replace codegen, which kinda blows for currying / placeholders / path / lenses.
handling HKTs, allowing one to define functions for a HKT in one repo (R.map), and functor implementations that can properly use it in another.

I haven't been doing much TypeScript anymore (now Scala/Python at work, Haskell at night), but there's nothing to say you should take a similar focus as others!
On typing Ramda, I'd be kinda interested to see/try a serious attempt using Flow -- I think its $Call functionality would solve much of the blockers experienced with TypeScript.
I've yet to see functional expressiveness + structural typing inference in any other language / repo / typing -- but Flow typings to Ramda seems like it could actually pull this off.


Windows shortcut doesn't check conda distribution

Solution to issue cannot be found in the documentation.

[X] I checked the documentation.

Issue
When installing the git package on a Windows machine, a Windows shortcut is added (using menuinst). This shortcut is hardcoded to install to a folder called "Anaconda${PY_VER} ${PLATFORM}". This is really annoying when a user is using miniconda, or any custom distribution (i.e. some company made their own distribution using constructor). The menuinst package provides a $DISTRIBUTION_NAME variable, which can be used instead. This will neatly group the git windows shortcut into the same Start Menu folder as the rest of the shortcuts created in that distribution.
The proposed change is to update the menu-windows.json file as:
{
-    "menu_name": "Anaconda${PY_VER} ${PLATFORM}",
+    "menu_name": "${DISTRIBUTION_NAME}",
    "menu_items":
    [
    {
        "name": "Git Bash",
        "script": "${PREFIX}/Library/bin/bash.exe",
        "scriptarguments": ["--login", "-i", "--"],
        "workdir": "${PERSONALDIR}",
        "icon": "${MENU_DIR}/git-for-windows.ico"
    }
    ]
}

As an example of a feedstock that uses this, see spyder
Installed packages
n/a

Environment info
n/a

Do you want to send a PR for this? I don't understand the first thing about Windows and menus but it sounds like a good solution.


Question: How to access the result list of a filter

I want to do an specific operation on the result of the application of one or more filters.
How can I do this?

Hi,
Thanks a lot for the prompt reply.
In fact, I want to do kind of bulk update on the rows that remain in the grid after applying query filters.
So, the screen contains apart from the mvc grid also a button which initiates a post request.
As param for this post I would like to send the ids of the grid rows but if there is a more elegant way to get the selected rows at the server ...

If your user process is filter->see if they are ok with the data->submit for update.
I would recommend using inputs in a hidden column.
However if you want to update them on filter you would have to move your grid declaration to the controller similar to export example and use grid's Rows property to access the model ids for update before you return the grid for rendering.

My workflow is the first one you suggest: filter->see if they are ok with the data->submit for update.
Could you give an example how to store inputs in hidden column?
Thanks

You need to render input values and use a css class which hides the column.
columns.Add(model => Html.Hidden("ids[]", model.Id)).Css("hidden").

Thanks for your continuous support.
Sorry, I don't see it quite well. Using Razor Pages.
Isn't there a way to access the data via javascript?
When I try the data object from
```var instance = $('.mvc-grid').mvcgrid('instance')````
it is undefined.

Your call is correct, but data is not available from the javascript's instance.
Maybe you are using older scripts or $('.mvc-grid') returns no matches.

Do I understand correctly that when there are data on the screen, instance should contain data?
I'm seeing version 3.1.0 in the browser F12.

to be very concrete: I have a grid on screen and I'm in the javascript console of my chrome browser.
I type:  var instance = $('.mvc-grid').mvcgrid('instance');
should instance.data contain data?
Thanks a lot
paul.

No worries.
Your suggestion
columns.Add(model => Html.Hidden("ids[]", model.Id)).Css("hidden")

is working great !
Thanks a lot for the help. Very much appreciated.


Kodi crashes on Video load - no debug Infos

Hi,
hopefully this is the right place for this problem:
After starting a skygo Video, kodi crashes without a warning. I set the debug log level and this is the output:
2020-02-03 20:23:04.895 T:139862657201920   DEBUG: [script.module.inputstreamhelper]: There are no missing Widevine libraries! :-)
2020-02-03 20:23:04.895 T:139862657201920   DEBUG: [script.module.inputstreamhelper]: Widevine update check was made on 2020-02-03T19:22:53
2020-02-03 20:23:04.992 T:139862657201920   DEBUG: [Sky Go] User still logged in
2020-02-03 20:23:05.068 T:139862657201920    INFO: CPythonInvoker(10, /home/maxblank/.kodi/addons/plugin.video.skygo.de/default.py): script successfully run
2020-02-03 20:23:05.082 T:139862795016896   DEBUG: ------ Window Deinit (DialogBusy.xml) ------
2020-02-03 20:23:05.082 T:139860946380544   DEBUG: Thread scriptobs<PHONE_NUMBER>80544 terminating
2020-02-03 20:23:05.085 T:139862795016896   DEBUG: CPlayerCoreFactory::GetPlayers(http://skywebvod-s.akamaihd.net/ondemand/Production/de_at/movies/F30055371____100332001/F30055371____100332001.ism/Manifest)
2020-02-03 20:23:05.085 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
2020-02-03 20:23:05.085 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
2020-02-03 20:23:05.085 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
2020-02-03 20:23:05.085 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer)
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
2020-02-03 20:23:05.086 T:139862795016896   DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
2020-02-03 20:23:05.087 T:139862795016896   DEBUG: Radio UECP (RDS) Processor - new CDVDRadioRDSData
2020-02-03 20:23:05.087 T:139862795016896  NOTICE: VideoPlayer::OpenFile: plugin://plugin.video.skygo.de/
2020-02-03 20:23:05.087 T:139862795016896    INFO: easy_acquire - Created session to http://skywebvod-s.akamaihd.net
2020-02-03 20:23:05.126 T:139862795016896   DEBUG: CCurlFile::GetMimeType - http://skywebvod-s.akamaihd.net/ondemand/Production/de_at/movies/F30055371____100332001/F30055371____100332001.ism/Manifest -> text/xml
2020-02-03 20:23:05.126 T:139862795016896   DEBUG: OnPlayBackStarted: CApplication::OnPlayBackStarted
2020-02-03 20:23:05.126 T:139860946380544   DEBUG: Thread VideoPlayer start, auto delete: false
2020-02-03 20:23:05.127 T:139860946380544  NOTICE: Creating InputStream
2020-02-03 20:23:05.127 T:139862636508928   DEBUG: Thread BackgroundLoader start, auto delete: false
2020-02-03 20:23:05.127 T:139860946380544   DEBUG: ADDON: Dll Initializing - InputStream Adaptive
2020-02-03 20:23:05.127 T:139860946380544   DEBUG: SECTION:LoadDLL(/usr/lib/kodi/addons/inputstream.adaptive/inputstream.adaptive.so.2.4.2)
2020-02-03 20:23:05.127 T:139860946380544   DEBUG: Loading: /usr/lib/kodi/addons/inputstream.adaptive/inputstream.adaptive.so.2.4.2

I don't see an error in your log, so I don't have a clue what the problem is.
Please reboot you Kodi device, try again and post a full debug log if the problem persists.

It is more likely that inputstream.adaptive is causing a crash like this.
Kodi can dump memory and log a stacktrace.

No feedback, closing this issue.


Move shell to if/builtins

Sub of: #656
What
Move the shell plugin from if-plugins to if/builtins
Why
This is part of our migration of our core plugins into a standard library in if/builtins.
Context
This is a core feature we want to support, so it is migrating into if.
Prerequisites/resources
no
SoW (scope of work)

[ ] move plugin code into builtins/shell
[ ] fix any integration issues caused by the migration
[ ] migrate and fix unit tests
[ ] update README documentation updated

Acceptance criteria

[ ] plugin code is migrated to if-builtins
Given (Setup): The migration has been completed.
When (Action): A user or developer navigates to if
Then (Assertion): they will find a folder if/builtins/shell containing the plugin source code and a README.

[ ] plugin code and unit tests pass and maintain 100% coverage
Given (Setup): The migration has been completed and a user has downloaded if.
When (Action): they run npx jest --coverage
Then (Assertion): they will receive a report showing 100% coverage and 100% passing

@zanete making this blocked on the bug fix related to this plugin https://github.com/Green-Software-Foundation/if/issues/694


Add validation leeway_seconds on riak-cs-admin gc batch <leeway_seconds> [JIRA: RCS-239]

riak-cs-admin gc batch passes leeway_secounds argument to riak_cs_gc_d and let a process crash.
2015-07-14 08:55:32.982 [error] <0.8038.0> CRASH REPORT Process riak_cs_gc_d with 1 neighbours exited with reason: bad arithmetic expression in riak_cs_gc_key_list:fetch_eligible_manifest_keys/4 line 89 in gen_fsm:terminate/7 line 622
2015-07-14 08:55:32.983 [error] <0.145.0> Supervisor riak_cs_sup had child riak_cs_gc_d started with riak_cs_gc_d:start_link() at <0.8038.0> exit with reason bad arithmetic expression in riak_cs_gc_key_list:fetch_eligible_manifest_keys/4 line 89 in context child_terminated

Which version of Riak CS are you referring? Is that 2.0?

It's Riak CS 2.0.1.


PyPi README format incorrect

In GitLab by @arisilon on Oct 30, 2019, 13:28
It is still formatting restructured even though the README was changed to markdown. This is a setting in the setup.py. Should probably have a different README for PyPi than what is used for GitLab. The PyPi README should be more user-facing  whereas the GitLab one is developer-facing.

In GitLab by @arisilon on Nov 10, 2019, 21:37
mentioned in commit ad57b8ed3b706e3a2f944cb3a909e9b6df5d63a5


Persist settings across restarts

@tkdrob pointed out: Why wipe out settings on restart?
I think this is a matter of setting up the initial config in /data. I think it may need to have the binary support a flag pointed at the config file, rather than assuming its in the current directory.

The --config flag also was not being respected, and i submitted a fix upstream to be included in next release.


Directory watcher feature post work items

These are the items that came out from directory watcher PR - https://github.com/cilium/cilium/pull/32599

[ ] Unit tests covering the scenario - https://github.com/cilium/cilium/pull/32599#discussion_r1640078945
[ ] Exponential backoff retry for new watcher failure - https://github.com/cilium/cilium/pull/32599#discussion_r1635268955

@tamilmani1989 will you be working on those items?

@aanm yes im going to pick this up. First will work on unit test


chore(deps): update dependency flow-bin to v0.119.0

This PR contains the following updates:

Package
Type
Update
Change

flow-bin (changelog)
devDependencies
minor
0.118.0 -> 0.119.0

Release Notes

flowtype/flow-bin
v0.119.0
Compare Source

Renovate configuration
:date: Schedule: At any time (no schedule defined).
:vertical_traffic_light: Automerge: Disabled by config. Please merge this manually once you are satisfied.
:recycle: Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".
:no_bell: Ignore: Close this PR and you won't be reminded about this update again.

[ ] If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

:tada: This PR is included in version 2.2.2 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


add jammy and x64 labels for self hosted

This is so that the workflow keeps working as we add more architectures and Ubuntu OS versions

This PR I think needs the approval comment for the functional tests to run 🙂  see the workflow second step

/canonical/self-hosted-runners/run-workflows 8ad00a810c42a5518fd1b772d26ad5c4c1fc7a8a

/canonical/self-hosted-runners/run-workflows https://github.com/canonical/charm-juju-backup-all/commit/8ad00a810c42a5518fd1b772d26ad5c4c1fc7a8a

/canonical/self-hosted-runners/run-workflows 8ad00a810c42a5518fd1b772d26ad5c4c1fc7a8a

@jdkandersson does that have to be a "user with write permission" not the "team"?


how to run this work on UBuntu?

how  can I run this on Ubuntu? In librealsense example ,I can get position from rs-pose.cpp? how can I get attitude data from t265 directly? what is the interface?   In other words , how does this work get t265's  attitude in the windows form?  I am sorry for my poor english

Sorry, this code is just only for Windows. It's written on Visual Studio. The code getting sensor data is based on librealsense/examples/pose/rs-pose.cpp. The interface is based on "MFC dialog based application". I used thread in order to achieve both updating the interface and data acquisition / transmission at the same time.

thanks for your  answer ，the interface I mean is program interface from sdk in which you get attitude data   ？rs.cpp can only get pose data
---Original---
From: "Sunao<EMAIL_ADDRESS>Date: Fri, Oct 23, 2020 22:04 PM
To<EMAIL_ADDRESS>Cc: "jingshaojing"<2638117940<EMAIL_ADDRESS>Subject: Re: [kougaku/RealSenseOSC] how to run this work on UBuntu? (#2)
Sorry, this code is just only for Windows. It's written on Visual Studio. The code getting sensor data is based on librealsense/examples/pose/rs-pose.cpp. The interface is based on "MFC dialog based application". I used thread in order to achieve both updating the interface and data acquisition / transmission at the same time.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

OK, I see.
Here is the code.
Line192-204 in RealSenseOSC/Sender (Visual Studio)/RealSenseOSC/RealSenseOSCDlg.cpp
	// Cast the frame to pose_frame and get its data
    auto pose_data = f.as<rs2::pose_frame>().get_pose_data();

	p.Clear();
	p << osc::BeginBundleImmediate
		<< osc::BeginMessage("/realsense")
		<< pose_data.translation.x
		<< pose_data.translation.y
		<< pose_data.translation.z
		<< pose_data.rotation.w
		<< pose_data.rotation.x
		<< pose_data.rotation.y
		<< pose_data.rotation.z

Here, .rotation.w, .rotation.x, .rotation.y, and .rotation.z are quotation parameters expressing 3D rotation.

thanks，this is exactly I needed。
---Original---
From: "Sunao<EMAIL_ADDRESS>Date: Fri, Oct 23, 2020 23:01 PM
To<EMAIL_ADDRESS>Cc: "jingshaojing"<2638117940<EMAIL_ADDRESS>Subject: Re: [kougaku/RealSenseOSC] how to run this work on UBuntu? (#2)
OK, I see.
Here is the code.
Line192-204 in RealSenseOSC/Sender (Visual Studio)/RealSenseOSC/RealSenseOSCDlg.cpp
// Cast the frame to pose_frame and get its data     auto pose_data = f.as<rs2::pose_frame>().get_pose_data(); p.Clear(); p << osc::BeginBundleImmediate << osc::BeginMessage("/realsense") << pose_data.translation.x << pose_data.translation.y << pose_data.translation.z << pose_data.rotation.w << pose_data.rotation.x << pose_data.rotation.y << pose_data.rotation.z
Here, .rotation.w, .rotation.x, .rotation.y, and .rotation.z are quotation parameters expressing 3D rotation.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

Yeah! Glad to hear that. Have a nice coding!

thanks !
---Original---
From: "Sunao<EMAIL_ADDRESS>Date: Fri, Oct 23, 2020 23:09 PM
To<EMAIL_ADDRESS>Cc: "jingshaojing"<2638117940<EMAIL_ADDRESS>Subject: Re: [kougaku/RealSenseOSC] how to run this work on UBuntu? (#2)
Yeah! Glad to hear that. Have a nice coding!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.


Feature/test files

This fixes issue ga4gh/dockstore#585 by:

Retaining the version that was previous selected
Displaying the error that specifically mentions that the file doesn't exist for that specific version/descriptor type.

Not to self: as discussed, this doesn't really need to make it into the hotfix


Remove quotation marks

Remove quotation marks around environment variable export for DOCKERCLOUD_NAMESPACE

Proposed changes

Unreleased project version (optional)

Related issues (optional)

Hey @sardjv thanks for the heads-up. I think you actually removed the tickmarks from the wrong one of these. (I see it's rendered in the code-block, but removing the ones that you've removed makes the example in the running text render as plain text.)
If you'll edit it to remove the ticks from the code block I will gladly take this PR. :) Otherwise, I'll close it and do it myself - let me know what you'd prefer.

Actually, I found the Github "edit" button so I've fixed the patch. Once CI finishes, I'll merge.


Modded Blueprints Tag

Description of the bug
Modded blueprints tag toggle still shows vanilla items as modded
Steps To Reproduce
Enable the toggle, and restart the game
Expected Behavior
No response
Log Files
No response
Save File
No response
Screenshots
No response
Settings
No response
Toybox Version
1.6.0
Operating System
Windows
What game are you using Toybox on?
Pathfinder Wrath of the Righteous
Game Version
2.3.3k
Anything else?
Posting for reference, so we can tell people there's an open issue for it, and then let's just not fix it :owlcat_laugh:

Apparently my last PR only fixed it during a hot reload, but doesn't actually solve the issue. Will eventually find the will power to look into it and fix


Post detail ui

Created post detail UI and updated the initial data

Post Detail can be accessed when user clicks on article's title (eg: "CSS Tricks") or "Read more" button


sanitizer=undefined warnings about signed integer overflows

First to clarify: This is not a bug report. But it could be interesting to be aware of it, especially as Milagro is targeting many platforms, and it could create portability issues.
When compiling with fsanitize=undefined, the sanitizer detects signed integer overflows. According to the C standard, overflow behavior is only defined for unsigned types (where it wraps around), but not for signed integers. (For signed integers, it is undefined behavior, even though on the systems that I'm aware of, it will normally also wrap around.)
One function where the sanitizer complains is BIG_XXX_fshl:
milagro-crypto-c/src/big_256_56.c:828:15: runtime error: left shift of<PHONE_NUMBER>4259063 by 8 places cannot be represented in type 'int64_t' (aka 'long')
milagro-crypto-c/src/big_256_56.c:827:20: runtime error: left shift of<PHONE_NUMBER>4259063 by 8 places cannot be represented in type 'int64_t' (aka 'long')
milagro-crypto-c/src/big_256_56.c:745:19: runtime error: signed integer overflow:<PHONE_NUMBER>4719273 *<PHONE_NUMBER>6823141 cannot be represented in type 'long'
milagro-crypto-c/src/big_256_56.c:754:23: runtime error: signed integer overflow:<PHONE_NUMBER>945317875 *<PHONE_NUMBER>6823141 cannot be represented in type 'long'
milagro-crypto-c/src/big_256_56.c:873:32: runtime error: left shift of<PHONE_NUMBER>7027471 by 55 places cannot be represented in type 'int64_t' (aka 'long')
milagro-crypto-c/src/big_256_56.c:886:36: runtime error: left shift of 13312 by 55 places cannot be represented in type 'int64_t' (aka 'long')
milagro-crypto-c/src/big_256_56.c:859:36: runtime error: left shift of<PHONE_NUMBER>4859191 by 55 places cannot be represented in type 'int64_t' (aka 'long')

From my understanding, it boils down to that BIG_XXX uses internally the chunk type, which is defined as a signed integer.

Hello Philipp,
Thanks for that observation. The reason for using signed integers for the
chunk is due to the method we use for big number multiplication, described
here.
https://eprint.iacr.org/2015/1247
To be honest I wasn't aware that the C standard does not strictly allow
overflow for signed integers. Like you I have never come across a compiler
which inserted code that flagged that as a run-time error.
In the Swift language all overflows are flagged as run-time errors by
default, so we were aware that such overflows were happening.
I guess the solution would be judicious use of casts in the affected
subroutines. That is something we can look at.
Mike
On Wed, Apr 11, 2018 at 12:35 PM, philipp-cliqz<EMAIL_ADDRESS>wrote:

First to clarify: This is not a bug report. But it could be interesting to
be aware of it, especially as Milagro is targeting many platforms, and it
could create portability issues.
When compiling with fsanitize=undefined, the sanitizer detects signed
integer overflows. According to the C standard, overflow behavior is only
defined for unsigned types (where it wraps around), but not for signed
integers. (For signed integers, it is undefined behavior, even though on
the systems that I'm aware of, it will normally also wrap around.)
One function where the sanitizer complains is BIG_XXX_fshl
https://github.com/milagro-crypto/milagro-crypto-c/blob/develop/src/big.c.in#L819
:
milagro-crypto-c/src/big_256_56.c:828:15: runtime error: left shift of<PHONE_NUMBER>4259063 by 8 places cannot be represented in type 'int64_t' (aka 'long')
milagro-crypto-c/src/big_256_56.c:827:20: runtime error: left shift of<PHONE_NUMBER>4259063 by 8 places cannot be represented in type 'int64_t' (aka 'long')
milagro-crypto-c/src/big_256_56.c:745:19: runtime error: signed integer overflow:<PHONE_NUMBER>4719273 *<PHONE_NUMBER>6823141 cannot be represented in type 'long'
milagro-crypto-c/src/big_256_56.c:754:23: runtime error: signed integer overflow:<PHONE_NUMBER>945317875 *<PHONE_NUMBER>6823141 cannot be represented in type 'long'
milagro-crypto-c/src/big_256_56.c:873:32: runtime error: left shift of<PHONE_NUMBER>7027471 by 55 places cannot be represented in type 'int64_t' (aka 'long')
milagro-crypto-c/src/big_256_56.c:886:36: runtime error: left shift of 13312 by 55 places cannot be represented in type 'int64_t' (aka 'long')
milagro-crypto-c/src/big_256_56.c:859:36: runtime error: left shift of<PHONE_NUMBER>4859191 by 55 places cannot be represented in type 'int64_t' (aka 'long')
From my understanding, it boils down to that BIG_XXX uses internally the
chunk type, which is defined as a signed integer.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/milagro-crypto/milagro-crypto-c/issues/258, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ACm8juRCqHpPNfBjv0e7Gj5c1VvUYQoXks5tnep-gaJpZM4TP3I2
.

Explicitly casting to unsigned is an option. There alternative is to use unsigned types for everything, for instance, changing the BIG_XXX type. I'm not too familiar with the code but that change could be non-trivial.
A summary of the subtleties concerning the standard:
Arithmetic:

unsigned arithmetic is always well-defined (for any overflows it will wrap around, e.g.: UINT_MAX + 1 must be 0)
signed arithmetic is undefined when an overflow happens (e.g., INT_MAX + 1 can be anything, including crashing. On typical machines, it will mostly return INT_MIN though.)

Conversion:

signed to unsigned is always well-defined
unsigned to signed is implementation-defined

Implementation-defined is different more undefined behavior. It is well-defined by any implementation, but it is not 100% portable.
In case of unsigned to signed, the implementation-defined part it should be the same for all architectures that internally are using two's complement. That are essentially all of today's machines. At least, I'm not aware that there are still one's complement architectures left.
Assuming two's complement is practically speaking fine. So, adding casts should work in my opinion.
So, far I have only seen the warning in the BIG_XXX_fshl function, but we do not cover all the code. Maybe there are more.


Normalization prior to clustering

Hi
Do you normalize the data prior to clustering, or is this done using raw counts?

Hi,
We followed the Seurat v2 pipeline to identify cell clusters, which includes normalization before clustering. You could refer to the Seurat toolkit website (https://satijalab.org/seurat/) for more details. Thanks!

Thanks!


⚠ Cioos National CKAN has degraded performance

In 6d68640, Cioos National CKAN (https://catalogue.cioos.ca/) experienced degraded performance:

HTTP code: 200
Response time: 23244 ms

Resolved: Cioos National CKAN performance has improved in fa87cee after 12 minutes.


why no download more?

Why no download more???

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

ID: e816c04b-7c8c-dc54-6382-7c7f2ba532c0
Version Independent ID: 0e949478-2401-c768-49c6-b21d01d80aa3
Content: Get Started Overview - Windows IoT
Content Source: windows-iotcore/tutorials/Tutorials.md
Product: windows-iot
GitHub Login: @saraclay
Microsoft Alias: saclayt

@holygoth can you clarify the actual issue here as the problem is not clear?

Closing this due to ambiguity.


Transformer Changes

The current preprocessing script has a few issues that deviate from expected behavior.
There is a "file_byte_limit" that takes on a default value of ~1MB, while the input files range from 30-300MB. This results in an extremely small subsampling of lines from the input files to generate the vocabulary.
After the vocab been built to consist of the set of unique tokens from the subset of the input, it is whittled down to approximately the user-specified vocab size by using a bisection method. While this looks to be deterministic, it does not provide the user with the vocab size requested and is unlikely to be a convenient size (e.g., 32768).
The vocab size generated in preprocessing is different than the size indicated (hard-coded) in the model_params.py file.
A proposed method would sample the entire set of input files to generate the vocab, and perform a top-k operation based on number of occurrences (e.g., collections.counter.most_common(target_vocab_size)) to return exactly the requested vocab size. Additionally to improve performance by minimizing padding required, the preprocessor could optionally sort the data by sequence length, create batches, and then shuffle the frozen batches. This would serve to group similar length sequences into the same batch to require less padding.

SWG:
Revisit over email or in next meeting. Talk to engineers if you're submitting to get an opinion on the impact of this change. Furtherer information about performance and convergence will be provided.

I also agree with the value of file_byte_limit being used as ~1MB for reading tokens to build vocabulary. Since a lower value will not be a good representative for tokens in the whole file. The current way of constructing tokens allows passing min_count by which we can set up a threshold of minimum occurrence of any token to get added into the vocabulary file, hence changing the parameter would cover the proposed method. Also, the bisection based search method is deterministic and makes vocabulary file to the closest possible number of target_vocab_size (which is 32768 right now). Fixing upon target_vocab_size is necessary from this perspective as it controls the overall number of parameters in the embedding layer and hence the final model. If we decide to search other for some other value of target_vocab_size then essentially we will have to do the search manually and then hardcode it in model_params.py.
Regarding next point, if I have not got it wrong, minimizing padding for improved performance is already implemented here. It basically allocates every sample to a fixed number of buckets based on their length and creates the batch accordingly. This preprocessing also takes care of discarding aberrantly large samples (could be either training sample or target sample or both) which is 256 right now iirc.

SWG:
We expect a PR to be circulated over email for review for this bug fix.

SWG:
We want to have an immediate follow up meeting to discuss; will summarization the exact proposal on the mailing list with the specific changes. We ask everyone interested to follow and engage with the mailing list on this issue for swift resolution.

Can we defer to 5.1? Would need the most impressive data ever. Email sooner if possible.

I tried to vary file_byte_size and seems like the target_vocab_size does not have any impact on the final number of subtokens. See the attached figure for tokens vs file_byte_limit.
I think this is due to a bug in tokenizer.py, I had sent one PR for the fix here https://github.com/mlperf/training/pull/64/

SWG:
Decided to return to in 5.1 and figure out vocab size.


Sampler-based VQE for diagonal operators, plus QAOA

Summary
Add a VQE variant based on the sampler primitive, which only allows for optimization of diagonal ("classical") Hamiltonians.
Adds QAOA based on the above.
Details and comments
This differs from the estimator-based, standard VQE in that this version

takes a BaseSampler and not a BaseEstimator
allows for a custom aggregation function (such as CVaR)
keeps track of the best overall measurement (not possible/useful in estimator-based case)
returns samples of the final state (not possible in estimator-based case we generally have to measure in more than one basis)

Gradient support
In this PR, the gradient support has not yet been added. That's because it's not quite clear what's the best way to integrate the gradients. Here are the options we came up with, and we decided that we will first not support them and then directly implement option 4 if possible:
Option 1 The SamplingVQE takes a sampler and sampler gradient as input
pro: it is consistent as it takes a sampler and a sampler gradient
problem: I cannot support aggregation functions like CVaR, since I cannot easily compute the gradient if I have only access to the samples
Option 2 The SamplingVQE takes a sampler and an empty estimator gradient (i.e. without an estimator set)
pro: I build the diagonal estimator inside the SamplingVQE, and plug it into the estimator gradient
problem: consistency suffers, since I have to make the estimator in the gradients optional
Option 3 Make the SamplingVQE take a DiagonalEstimator and a EstimatorGradient equipped with said diagonal estimator
pro: consistent
problem: users have to build out the diagonal estimator, and the Sampling VQE will take an estimator
Option 4 Change how gradients work and introduce a general ParameterShift() (& co) which is not sampler or estimator specific
pro: makes my life easy
pro: makes users life easy as they don’t have to write out these nasty gradient names
problem: doesn’t exist yet
Todo

[x] Support batching
[x] See TODOs in tests

@Cryoris See also my DM to you for some comments

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

267 of 293 (91.13%)  changed or added relevant lines in 6 files are covered.
186 unchanged lines in 12 files lost coverage.
Overall coverage decreased (-0.04%) to 84.321%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

qiskit/algorithms/minimum_eigensolvers/sampling_vqe.py
122
128
95.31%

qiskit/algorithms/minimum_eigensolvers/sampling_mes.py
45
52
86.54%

qiskit/algorithms/minimum_eigensolvers/diagonal_estimator.py
77
90
85.56%

Files with Coverage Reduction
New Missed Lines
%

qiskit/algorithms/gradients/finite_diff_estimator_gradient.py
1
95.24%

qiskit/tools/visualization.py
1
0%

qiskit/algorithms/gradients/base_sampler_gradient.py
2
95.35%

qiskit/extensions/quantum_initializer/squ.py
2
79.78%

qiskit/visualization/circuit_visualization.py
2
0%

qiskit/visualization/init.py
2
88.46%

qiskit/visualization/qcstyle.py
2
0%

qiskit/algorithms/gradients/base_estimator_gradient.py
3
94.0%

qiskit/algorithms/optimizers/qnspsa.py
7
87.3%

qiskit/visualization/utils.py
9
47.06%

Totals

Change from base Build<PHONE_NUMBER>:
-0.04%

Covered Lines:
58088

Relevant Lines:
68889

💛  - Coveralls

This PR will also include a QAOA implementation that subclasses SamplingVQE.

Needs a release note added.


⚠ Bofrost.de has degraded performance

In 49e2ba8, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 2064 ms

Resolved: Bofrost.de performance has improved in 605b681 after 8 minutes.


onComplete doesn't support iframes

Hey,
When using iframe, I expected onComplete  fire after iframe loaded completely, but it doesn't and fire before that.
I'm using latest version of Colorbox btw.
Thanks.

Try setting the fastIframe option to false: http://www.jacklmoore.com/colorbox/#setting-fastiframe
Example:
$('.example').colorbox({iframe: true, fastIframe: false});

Awesome man, thanks!


Slack integration generates error

Hello,
I just can't figure out why this is happening when trying to send a Slack notification in an action:
[21:03:23]: no implicit conversion of nil into Hash

+------+-----------------+-------------+
|           fastlane summary           |
+------+-----------------+-------------+
| Step | Action          | Time (in s) |
+------+-----------------+-------------+
| 1    | ./getChanges.sh | 0           |
| 2    | cocoapods       | 24          |
| 3    | team_name       | 0           |
| 4    | build_beta      | 306         |
+------+-----------------+-------------+

[21:03:23]: fastlane finished with errors
/Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/actions/slack.rb:191:in `merge': no implicit conversion of nil into Hash (TypeError)
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/actions/slack.rb:191:in `deep_merge'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/actions/slack.rb:181:in `generate_slack_attachments'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/actions/slack.rb:42:in `run'
	from /Users/robicalm/code/ios/iphone/fastlane/actions/build_beta.rb:63:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:142:in `block (2 levels) in execute_action'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/actions/actions_helper.rb:37:in `execute_action'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:128:in `block in execute_action'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:127:in `chdir'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:127:in `execute_action'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/fast_file.rb:137:in `method_missing'
	from (eval):145:in `block (2 levels) in parse'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/lane.rb:36:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/lane.rb:36:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:51:in `block in execute'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:46:in `chdir'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/runner.rb:46:in `execute'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/lane_manager.rb:43:in `cruise_lane'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/lib/fastlane/command_line_handler.rb:31:in `handle'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/bin/fastlane:36:in `block (2 levels) in run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:178:in `call'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/command.rb:153:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:428:in `run_active_command'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/runner.rb:68:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/commander-4.3.5/lib/commander/delegates.rb:15:in `run!'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/bin/fastlane:127:in `run'
	from /Library/Ruby/Gems/2.0.0/gems/fastlane-1.30.2/bin/fastlane:133:in `<top (required)>'
	from /usr/bin/fastlane:23:in `load'
	from /usr/bin/fastlane:23:in `<main>'

Here's a snippet from the action:
        if (params.include? :slack)
          Fastlane::Actions::SlackAction.run({
            message: "An iOS app (" + appname + "[" + ENV['GENERATE_APPFILE_APP_IDENTIFIER'] + "]) was successfully built and uploaded to Crashlytics.",
            channel: "dev-general",
            success: true,
            payload: {'appname' => appname, 'appidentifier' => ENV['GENERATE_APPFILE_APP_IDENTIFIER']}
          })
        end

Any ideas?

Why do you call Fastlane::Actions::SlackAction.run? Do you call the slack action from a custom action?
It should work when having the exact same code in your Fastfile, right?

Actually this is not my work from the beginning. I’m new to Fastlane and I’m just trying to fix stuff in someone else’s code. :)
My predecessor apparently made a quite advanced setup using custom actions instead of putting everything in the Fastfile and calling Fastlane::Actions::SlackAction.run used to work, but apparently not anymore. They’ve made the same thing with sigh which also stopped working after a recent update.
Maybe I should rewrite the whole setup instead?

Probably. You should have the actions in your Fastfile :+1: You can share a bit more of your setup

Hey @robincalmegard, I'm going to close this issue for now as it has been a while since there has been activity on it. Please feel free to reopen it if you are still having issues. Thanks! :earth_africa:


run circleci as non-root user

It saves several minutes per CI task because it keeps recompiling grpc being unable to unpack it. Some details here.

[x] Tests and linter pass
[x] Code coverage does not decrease (if any source code was changed)
[x] Appropriate docs were updated (if necessary)

Codecov Report

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

@@          Coverage Diff          @@
##           master    #24   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           1      1
  Lines           4      4
=====================================
  Hits            4      4

Continue to review full report at Codecov.

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

@lukesneeringer or @matthewayne - ping please :) This one will speed up CI a lot (we don't have any better solution so far).


tools: introduce git-change-exec tool

This new tool detects if in your git tree changed files (compared to master branch and local-only changed files) and uses this information to run only the specified actions.
Here it is used to run pillar's go-tests only if something changed there, same for this tool itself and the get-deps tool.

No, this is not possible with what gh checks out here, so closing ...

No, this is not possible with what gh checks out here, so closing ...

hmm, seems it is possible, but I don't know what I am doing with those gh actions ...

Do you know how you're going to use it? Will developers use it for local runs, or will you make it part of CI?

Do you know how you're going to use it? Will developers use it for local runs, or will you make it part of CI?

It is used by make test which is also used by the CI.
So the answer is: both

I am a little bit confused. Is this tool's purpose to check which directories have changed files, and thus determine where we should run go test? For example, if pkg/a had changes and pkg/b did not, then run go test ./pkg/a as opposed to go test ./...?
Does it actually execute the go test, or just give the relevant paths, sort of like:
$ gce ./...
pkg/a
pkg/c
pkg/q

thus telling us which dirs changed? And we always can choose to ignore it and run all tests? And with it, I would run go test $(gce ./...)? Something like that?
A README would help, along with some sample of what it would look like when run.

Aha! I've got the idea. I like it. Good luck with the implementation =) I find it easier to write such tools in interpreted languages, but okay, let it be =)

I am a little bit confused. Is this tool's purpose to check which directories have changed files, and thus determine where we should run go test? For example, if pkg/a had changes and pkg/b did not, then run go test ./pkg/a as opposed to go test ./...?
Does it actually execute the go test, or just give the relevant paths, sort of like:
$ gce ./...
pkg/a
pkg/c
pkg/q

thus telling us which dirs changed? And we always can choose to ignore it and run all tests? And with it, I would run go test $(gce ./...)? Something like that?
A README would help, along with some sample of what it would look like when run.

It does not do magic, it just looks in actions.go what to do exactly, f.e.: https://github.com/lf-edge/eve/pull/4202/files#diff-5bf19742ee6060707f406c1625c23226124e161d2049d12a80a8a61ef076ace8R47

I like the idea of it just reporting.  As long as the output format can be fed to  another tool, it's pretty good. Just the name should be like Erik said.

Based on the name I'd expect git-change-exec to take an argument of what it will exec when it finds differences. But that seems to be somehow hard-coded to run the golang tests.

Perhaps git-change-actions?
I am open to name suggestions.

git-changed-dirs? Something like that?

I like the idea of it just reporting. As long as the output format can be fed to another tool, it's pretty good. Just the name should be like Erik said.

It has a dry-run option.
I am not sure if you want to only put the output into another tool, I guess you would need a way to configure the action matches as well, don't you?
Then, instead of hard-coded actions we would need a config file, then people would use the config file instead of just editing actions.go; at some point somebody has the need to have config file templates, so they introduce sed, awk and yq. Then others complain that they use a different implementation of yq, so it works on the pipeline but not on their local system and so on and so on ;-) - so my conclusion is that it is best to have a full-fledged programming language to configure it.

git-changed-dirs? Something like that?

That leaves out:

it works on files as well
it does something if a file changed (like f.e. run make -C pkg/pillar test

So it is kinda like find where there is an option to --exec?

So it is kinda like find where there is an option to --exec?

Interesting.
So it would look like this?
gce
--match '^pkg/pillar.*' --exec 'make -C pkg/pillar test' \
--match '^tools/get-deps' --exec 'go test -C tools/get-deps' \
--match '^tools/git-change-exec' --exec 'go test -C tools/git-change-exec'

But what about more complex rules, like f.e. we don't want to run the tests on pillar if a README.md file changes?
gce --match '^pkg/pillar.*' --exclude-match 'pkg/pillar.*README\.md' --exec ...

What will it look like, if we want to run the pillar tests with slow tests enabled only if specific files have changed?
What will it look like if we want to check if a file is bigger than 10mb?
Check the file magic?

The manpage for find on my system has 1183 lines and still it was not enough, so somebody invented find2perl ;-)

What will it look like, if we want to run the pillar tests with slow tests enabled only if specific files have changed?

I think it's the most valuable example for a more complicated approach like proposed with this PR...

I don't know what yetus complains about

results-full.txt from https://github.com/lf-edge/eve/actions/runs/10770711970/job/29864646035#step:5:20 is empty
make mini-yetus shows:christoph@ponyhof ~/p/eve (git_change_detect)> cat /tmp/yetus.hBuc5lILQs/yetus-output/results-full.txt
home/christoph/projects/eve/pkg/nvidia/Dockerfile:30:25:hadolint: invalid flag: --keep-git-dir
home/christoph/projects/eve/pkg/pillar/containerd/oci_test.go:19:2:revive: should not use dot imports https://revive.run/r#dot-imports
home/christoph/projects/eve/pkg/pillar/dpcreconciler/linux_test.go:16:2:revive: should not use dot imports https://revive.run/r#dot-imports
home/christoph/projects/eve/tools/check-commit-messages/check_commit_messages.py:15:0:pylint:[E0401(import-error), ] Unable to import 'git'
home/christoph/projects/eve/tools/parse-pkgs.sh:15:8:shellcheck: note: Double quote to prevent globbing and word splitting. [SC2086]
home/christoph/projects/eve/tools/parse-pkgs.sh:64:8:shellcheck: note: Useless echo? Instead of 'echo $(cmd)', just use 'cmd'. [SC2005]
home/christoph/projects/eve/tools/parse-pkgs.sh:64:8:shellcheck: warning: Quote this to prevent word splitting. [SC2046]
home/christoph/projects/eve/tools/parse-pkgs.sh:74:14:shellcheck: note: Use $(...) notation instead of legacy backticks `...`. [SC2006]
home/christoph/projects/eve/tools/parse-pkgs.sh:74:9:shellcheck: warning: Declare and assign separately to avoid masking return values. [SC2155]
home/christoph/projects/eve/tools/parse-pkgs.sh:84:10:shellcheck: note: Double quote to prevent globbing and word splitting. [SC2086]
home/christoph/projects/eve/tools/parse-pkgs.sh:92:16:shellcheck: note: Double quote to prevent globbing and word splitting. [SC2086]
home/christoph/projects/eve/tools/parse-pkgs.sh:92:8:shellcheck: note: Double quote to prevent globbing and word splitting. [SC2086]

I added https://github.com/lf-edge/eve/pull/4202/files#diff-159efde8a5a441c430d0d0c512d4dd1553136852df9f0ac2443606d2faf1db5cR38-R46
which was the original motivation to have this as the tests take several minutes

I didn't have time lately to work on it, so I move it into draft state.


Update snap

Bug
Snap is out of date
To Reproduce
Steps to reproduce the behavior:

sudo snap refresh
lbry
UI says "Upgrade is ready", the "install" button does not upgrade

Expected behavior
Update snap please
System Configuration

LBRY Daemon version:0.38.5
LBRY App version:0.34.2
LBRY Installation ID:
Operating system: Linux (Linux-4.9.0-12-amd64-x86_64-with-debian-9.12)

The snap is community run, we'll reach out to maintainer and get it added to the readme. Sorry for the trouble.
For best results with auto update, we'd recommend the aur.


Published ports w/ ingress?

To run this example locally, I had a port with target and published set:
version: '3.9'
name: slackbot
services:
  bot:
    build:
      context: .
      dockerfile: Dockerfile
    ports:
      - mode: ingress
        target: 8080
        published: 8080
    secrets:
      - SLACK_TOKEN
      - SLACK_CHANNEL_ID

secrets:
  SLACK_TOKEN:
    external: true
  SLACK_CHANNEL_ID:
    external: true

This is useful for local dev (though note that I had to remove secrets, use env vars, and then switch back to deploy).
But when I try to deploy with the target and published set, I get the following error:
WARNING Published ports are not supported in ingress mode; assuming 'host' (add 'mode' to silence)  target=8080
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x2 addr=0x30 pc=0x103370248]

goroutine 1 [running]:
github.com/defang-io/defang/src/pkg/cli.validateProject(0x1400013b360)
        /Users/runner/work/defang/defang/src/pkg/cli/composeStart.go:264 +0xef8
github.com/defang-io/defang/src/pkg/cli.ComposeStart({0x103f95778, 0x1400036c820}, {0x103fa1d10?, 0x140000ec1e0?}, 0x1400013b360, 0x0?)
        /Users/runner/work/defang/defang/src/pkg/cli/composeStart.go:276 +0x48
main.glob..func11(0x104a02d00, {0x104a44970?, 0x0?, 0x0?})
        /Users/runner/work/defang/defang/src/cmd/cli/main.go:441 +0xa8
github.com/spf13/cobra.(*Command).execute(0x104a02d00, {0x104a44970, 0x0, 0x0})
        /Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:983 +0x7e4
github.com/spf13/cobra.(*Command).ExecuteC(0x104a004c0)
        /Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1115 +0x380
github.com/spf13/cobra.(*Command).Execute(...)
        /Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1039
github.com/spf13/cobra.(*Command).ExecuteContext(...)
        /Users/runner/go/pkg/mod/github.com/spf13/cobra@v1.8.0/command.go:1032
main.main()
        /Users/runner/work/defang/defang/src/cmd/cli/main.go:886 +0x1410

Nvm @edwardrf just let me know what the actual issue was and it had nothing to do with ports. I'm going to leave this open though, because I don't think we should assume host when target and published are set, if the user explicitly put ingress

Same as #186


[GEODE-2295] Add constructors for LocatorCancelException.

[GEODE-2295] Add constructors for LocatorCancelException.

Merged in a61c55b9b0d4fffc70a1502f06cbca59098c9418


BUSCO Assessment - erroneous BUSCO set used

Hi Martin,
AutDeNovo was started with "metazoa_odb10" as parameter for the BUSCO assessment.
Yet, vertebrate_odb10 was used (see snippet from qsub_busco_ILL.sh generated by AutDeNovo below)
$ sh /media/inter/pipelines/AutDeNovo/AutDeNovo.sh \
>   Name=ILL \
>   OutputFolder=~/MG_Micropyga/AutDeNovo \
>   Fwd=~/MG_Micropyga/data/SRX11438636_R1.fastq.gz \
>   Rev=~/MG_Micropyga/data/SRX11438636_R2.fastq.gz \
>   threads=50 \
>   RAM=100 \
>   RAMAssembly=500 \
>   decont=no \
>   SmudgePlot=no \
>   BuscoDB=metazoa_odb10

From qsub_busco_ILL.sh:
  busco -i ../../../output/ILL_ILL.fa     -o ILL     -m genome     -c 50     -f     -l vertebrata_odb10
All the best
Andreas

Martin resolved error (different case of variable in AutDeNovo pipeline script than in instructons)
Closing issue


<sponsor> is ignored when creating the metadata table

I think this is the case because it was not used when the original code was written, but also because it's almost always empty, consisting only of a @ref pointing to an <org>. It's not clear what should be done with it at all -- get output the name of the org? @JanelleJenstad and @LEMDO-PM, could you tell me how you want this to be acted on? Then I can add it to the rendering.

Fix committed in two commits, second being 16111. Waiting to see if the build succeeds.

It's building fine. We need @pszpak to style the output. Right now, it's displaying in a serif font. We use our sans serif font in the metadata panel.

Can you provide me with an example page where it is rendering with serif? I'm looking at Jenkins and see sans in the metadata panel.

I think I fixed it now.


macOS Sierra install fails on dyld error

--> Existing Haskell-Vim-Now installation detected at /Users/ed/.config/haskell-vim-now.
--- Syncing Haskell-Vim-Now with upstream...
Current branch master is up to date.
--- Installing system package dependencies...
--- Installing with homebrew...
Checking out v1.0.1 in /usr/local/Homebrew...
To checkout v1.0.1 in /usr/local/Homebrew run:
'cd /usr/local/Homebrew && git checkout v1.0.1
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
packer                               slimerjs                             voldemort                            zplug
Warning: git-2.10.0 already installed
Warning: homebrew/dupes/make-4.2.1 already installed
Warning: vim-8.0.0005 already installed
Warning: ctags-5.8_1 already installed
Warning: par-1.52 already installed
--- Checking ctags' exuberance...
--- Setting git to use fully-pathed vim for messages...
--- Testing for broken Ruby interface in vim...
--- Test passed. Ruby interface is OK.
--- Backing up current vim config using timestamp 20160921_220237...
/Users/ed/.config/haskell-vim-now/backup/.vim.20160921_220237
/Users/ed/.config/haskell-vim-now/backup/.vimrc.20160921_220237
--- Creating vim config symlinks
~/.vimrc -> /Users/ed/.config/haskell-vim-now/.vimrc
~/.vim   -> /Users/ed/.config/haskell-vim-now/.vim
--- Installing plugins using vim-plug...
--- Setting up GHC if needed...
dyld: malformed mach-o: load commands size (38712) > 32768
/Users/ed/.config/haskell-vim-now/scripts/setup.sh: line 20: 23726 Abort trap: 6           stack setup --verbosity warning
*** Stack setup failed with error 134.
*** Aborting...

not sure whether this is helpful: https://stackoverflow.com/questions/39381754/malformed-mach-o-image-symbol-table-underruns-linkedit

Looks like a manifestation of https://github.com/commercialhaskell/stack/issues/2577 -- I think we'll have to wait for this to be fixed upstream.

seems to work now.

Glad to hear it. I'll close the issue for now and we can reopen if it comes back.


Clean up NBS cruft

Clean up NBS cruft standing in the way of improvements:

Unmap buffer in newMmapTableReader()
By the time this function exits, we're done with this buffer.
Hanging on to it complicates lifetime management for the file
backing the mmapTableReader, which is something I'm trying to
make simpler. So...ditch it!

remove compactSourcesToBuffer
replace with simpler test-focused version

PTAL


DDC not initialing mixin fields properly from named constructor

This was hit internally.  This is the simplified repro:
import 'package:test/test.dart';

abstract class A {
  bool _done = true;
}

abstract class B {
  String name;

  B.protected();
}

class C extends B with A {
  C(): super.protected() {
    name = 'C';
  }
}

void main() {
  test('mixin works', () {
    C c = new C();
    expect(c._done, true); // DDC test fails because [c._done] reads [null]
  });
}

@jmesserly - can you take a look?

https://codereview.chromium.org/2859703003/


Vimium chrome plugin prevents text editing in web feature demo

Vimium if you aren't already familiar is a plug-in that listens for particular keypresses so that you can navigate links in your web browser just using the keyboard. Normally it plays well with web forms, only intercepting keypresses when a form isn't selected. However when I click inside the input box in the demo, all of my keypresses are still being captured by Vimium, so I can't actually type anything. It seems there is some "you are in an editing field" state that doesn't get communicated back to the browser. I'm not sure if you would consider fixing this in scope but I could see it being a barrier for using emigui for non-game web apps, where plugins may be relevant for accessibility. I use Vimium so I can navigate webpages with a finite speech recognition command set (only letters like "A", "F" etc need to be recognized to be able to verbally click around). My guess is the current state of web assembly API standardization would make fixing this a horror show but I thought I'd mention it in case it's not ;)

Might be related, when I'm trying to edit text in the demo, pressing backspace causes the browser to go back in history. Firefox 81.0.2 on Mac 10.15.7

Note this issue also prevents editing text on mobile. The browser can't tell you're in a text field so the keyboard never appears.

To be fair, I find quite a few sites break (including google properties) break Vimium, and I usually just disable it for the site and move on. Not saying there aren't still things that can be improved.

To be fair, I find quite a few sites break (including google properties) break Vimium, and I usually just disable it for the site and move on. Not saying there aren't still things that can be improved.

Is this still an issue?

I tried two things:

In chrome w/ vimium, try pressing F (highlights links) with no text input having focus. As expected it found no links to click on. Then I opened the easymark editor and pressed F, and as desired it actually typed it! So main problem fixed. For accessibility it would be even better if pressing F without input focus actually highlighted the clickable GUI elements like it does on a regular web page, I assume this requires somehow tricking the browser into thinking there are links at these locations. But that should probably be its own issue?
I opened the demo on my android phone, clicked the easy mark editor and confirmed keyboard pops up as expected! But then, strangely, my phone started reading outloud all the text in the editor with text-to-speech, which I've never configured or used. Not sure if that's egui or something weird with my phone.

For accessibility it would be even better if pressing F without input focus actually highlighted the clickable GUI elements like it does on a regular web page, I assume this requires somehow tricking the browser into thinking there are links at these locations. But that should probably be its own issue?

Yeah, let's do that as it's own issue as it is quite separate from text input.

my phone started reading outloud all the text in the editor with text-to-speech

This is part of egui/eframe - you can toggle it at the bottom of the backend panel


Always use contiguous AddAt in GatherGrad

Thanks to https://github.com/chainer/chainer/pull/8299
contiguous case is significantly faster.

/test


ci: restore a proper workflow-dispatch action tag

Signed-off-by: Niccolò Fei<EMAIL_ADDRESS>

/ok-to-merge


investigate transaction

research about exposed transaction.
and change current code to use correct transaction

for jarmonica, problem was cleared


Port all issues from domitry/nyaplot.

I found this app which could be useful to port all issues automatically: https://github-issue-mover.appspot.com/
I just ported one issue using this app.

Don't they have a script for porting all issues with comments?

I do not think they have a script to move all issues at once but it certainly does move one issue at a time with all its comments. Here's the code for this app. The comments mention whom are they originally from but they are posted by the user who gives authorization to the app (as you can see with this issue that I ported).
I think I can write a script in Ruby that could port all the open issues or we can also do this manually. Its just 35 in number.

Yeah you can write a script for porting issues when you have time. This is not priority right now, though.
PS: That script would be immensely useful to other people as well.

@v0dro its a bit complicated as the website requires login before moving the issues. I was thinking maybe we can recreate this repo in the way daru was cloned to SciRuby/daru without losing any issues.

Hmmm that makes sense. Let me ask Naoki.


Double Reconnect Test

Here's a PR with both @philstrong work and my test to expose the bug.
The test's approach is for the server to disconnect the first connection immediately.  Subsequent connections are allowed to sit around.  You would expect 2 connections (1 initial, 1 retry) within the timeframe of the test, however there are actually 3 that are made (2 retries).
The test might not be to your liking as it waits 1500 seconds before succeeding.  This threshold basically has to exceed the 1,000 of the reconnectInterval so that the client may issue a 2nd (and 3rd) reconnect.

thanks for adding the tests @badunk

This fixes #57

@aslakhellesoy any chance this can be reviewed?

I ran into this as well.  I'd love to see it merged.  @aslakhellesoy any particular reason to hold this up?

@esalter see #69

Got time to review this, @rexxars? Can't speak to the test implementation, but the fix itself has been valuable enough that I've had to run philstrong's fork.

On Easter holidays at the moment, promise I'll look at this as soon as I get back!


Errors in example

b_rabbit version: master
Python version: 3.8.1
Operating System: macOS

Description
Running the scripts in the example in the README I get the following error
Task Response received
bytearray(b'return this value to requester')
Traceback (most recent call last):
  File "./requster.py", line 16, in <module>
    rabbit.close_connection()
  File "/Users/zrgorak/Development/b_rabbit/b_rabbit/b_rabbit.py", line 50, in close_connection
    self._shutdown_gracefully()
  File "/Users/zrgorak/Development/b_rabbit/b_rabbit/b_rabbit.py", line 60, in _shutdown_gracefully
    activeQueue.stop_consuming()
  File "/Users/zrgorak/.pyenv/versions/b_rabbit/lib/python3.8/site-packages/rabbitpy/amqp_queue.py", line 342, in stop_consuming
    raise exceptions.NotConsumingError()
rabbitpy.exceptions.NotConsumingError: No active consumer to cancel

% pip freeze
appdirs==1.4.4
b-rabbit @ file:///Users/zrgorak/Development/b_rabbit
distlib==0.3.1
filelock==3.0.12
packaging==20.4
pamqp==2.3.0
pluggy==0.13.1
py==1.9.0
pyparsing==2.4.7
rabbitpy==2.0.1
six==1.15.0
toml==0.10.1
tox==3.19.0
virtualenv==20.0.30

Seems like you either have to check if the queue is consuming or just wrap in a try catch

Thanks for noticing this. Actually, I forgot to push changes I made at that time. I will fix this now

Not sure if I should create a new issue for this but I noticed that https://github.com/nidhaloff/b_rabbit/blob/master/b_rabbit/b_rabbit.py#L376
returns True but if the with fails the default return value is None. Also I don't understand why there is a for loop when the first value returns True no matter what

You are right there should be no return there. I played with the code sometime and forgot to checkout these changes! Thanks for creating the issue. Feel free to make a pull request If you can see any improvement ;)


Folder support for OPDS

Describe your suggested feature
Supported extensions like Kavita offer folders in OPDS. When visiting the primary OPDS URL for example, there are sections like Reading Lists that allow you to filter down collections for reading order, Recently Added, All Libraries, etc, however Mihon goes straight to showing all files in all libraries at once. It would be nice to be able to navigate this hierarchy.
Other details
No response
Acknowledgements

[X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
[X] I have written a short but informative title.
[X] I have updated the app to version 0.16.3.
[X] I will fill out all of the requested information in this form.

I think the filters are made by extension developer
You should conplain there instead


add const to toChars()

A good start. Getting it entirely const will enable much more to be made const.

Auto-merge toggled on


Outputs "ggml_metal_free: deallocating" to standard error

I still haven't found a good fix for this:
llm -m mistral-7b-v0.1.Q8_0 'hi'

Output (which is mangled because I'm not using the correct prompt template yet):
i have a problem with my gmail.com account - i want to create an email alias for it, but whenever i try it, it gives me this error message:
"The address you entered is already taken."

but it's not true! i'm sure i haven't created any other aliases. the only way i was able to "bypass" it, and send emails through an alias, was changing my display name - however, i want to keep my display name as a default one (e.g., my first name + last name).

can anybody please explain me how to fix this problem?
thanks!ggml_metal_free: deallocating

Note the ggml_metal_free: deallocating at the end.

I tried to fix that like this:
https://github.com/simonw/llm-llama-cpp/blob/6d19096a14dd61727927e791c7459d712f71f6a3/llm_llama_cpp.py#L249
https://github.com/simonw/llm-llama-cpp/blob/6d19096a14dd61727927e791c7459d712f71f6a3/llm_llama_cpp.py#L284-L324
But it clearly isn't working correctly.

This was addressed in llama-cpp-python 0.2.12.
From https://github.com/abetlen/llama-cpp-python/blob/main/CHANGELOG.md#0212 it says:

Suppress stdout and stderr when freeing model by @paschembri in #803

I can confirm it working for me, whereas in 0.2.7 it was still printing the output.

Fantastic! Yes I confirmed that this is no longer a problem with the latest llama-cpp-python.


installing with Pipfile behaves differently when installing without when using incompatible packages

Be sure to check the existing issues (both open and closed!).
Describe the issue briefly here.
installing incompatible packages on purpose. azure 2.00 wants azure-mgmt-compute ~1.0.0, but we need 3.0.1. so far works for us using just pip
This works fine:
pipenv install --skip-lock azure==2.0.0 azure-mgmt-compute==3.0.1
However, if we want to recreate the virtualenv from scratch and use the Pipfile generated by the above command, the result is that we have both 1.0.0 and 3.0.1 of azure-mgmt-compute installed in site-packages. I can verify this by looking at ..../site-packages/azure/mgmt/compute/. If there is another computer dir under that, then 1.0.0 is installed. If compute_management_client.py is there, then 3.0.1 is installed. It seems though that 1.0.0 is active because of the errors we get when running our code.
Please run $ python -m pipenv.help, and paste the results here.
$ python -m pipenv.help output
Pipenv version: '11.10.0'
Pipenv location: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pipenv'
Python location: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python'
Other Python installations in PATH:

2.6: /opt/local/bin/python2.6

2.6: /opt/local/bin/python2.6

2.6: /opt/local/bin/python2.6

2.7: /opt/local/bin/python2.7

2.7: /opt/local/bin/python2.7

2.7: /opt/local/bin/python2.7

2.7: /usr/bin/python2.7

3.6: /opt/local/bin/python3.6m

3.6: /opt/local/bin/python3.6

3.6: /opt/local/bin/python3.6

2.7.14: /opt/local/bin/python

2.7.14: /opt/local/bin/python

2.7.10: /usr/bin/python

2.7.14: /opt/local/bin/python2

2.7.14: /opt/local/bin/python2

3.6.4: /opt/local/bin/python3

3.6.4: /opt/local/bin/python3

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '0',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '17.5.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 17.5.0: Mon Mar  5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64',
 'python_full_version': '2.7.14',
 'python_version': '2.7',
 'sys_platform': 'darwin'}

System environment variables:

TERM_PROGRAM_VERSION
LOGNAME
USER
HOME
PATH
PYTHONUNBUFFERED
DISPLAY
TERM_PROGRAM
LANG
TERM
Apple_PubSub_Socket_Render
COLORFGBG
CDPATH
SHLVL
VIEW_NAME
XPC_FLAGS
ITERM_SESSION_ID
VIEW_DIR
GITLAB_PRIVATE_TOKEN
TERM_SESSION_ID
XPC_SERVICE_NAME
OMF_PATH
SSH_AUTH_SOCK
SHELL
PYTHONDONTWRITEBYTECODE
ITERM_PROFILE
PIP_PYTHON_PATH
OMF_CONFIG
TMPDIR
__CF_USER_TEXT_ENCODING
PWD
OBJC_DISABLE_INITIALIZE_FORK_SAFETY
COLORTERM

Pipenv–specific environment variables:
Debug–specific environment variables:

PATH: /opt/local/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/go/bin:/Users/gdavid/bin
SHELL: /opt/local/bin/fish
LANG: en_US.UTF-8
PWD: /Users/gdavid/pipenv-test-2

Contents of Pipfile ('/Users/gdavid/pipenv-test-2/Pipfile'):
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[dev-packages]

[packages]
azure = "==2.0.0"
azure-mgmt-compute = "==3.0.1"

[requires]
python_version = "2.7"

If you're on MacOS, just run the following:
$ python -m pipenv.help | pbcopy

error running this on my Mac:
Traceback (most recent call last):
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pipenv/help.py", line 89, in
main()
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pipenv/help.py", line 48, in main
print(u'Pipenv–specific environment variables:')
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2013' in position 6: ordinal not in range(128)
And this in my clipboard:
$ python -m pipenv.help output
Pipenv version: '11.10.0'
Pipenv location: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pipenv'
Python location: '/opt/local/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python'
Other Python installations in PATH:

2.6: /opt/local/bin/python2.6

2.6: /opt/local/bin/python2.6

2.6: /opt/local/bin/python2.6

2.7: /opt/local/bin/python2.7

2.7: /opt/local/bin/python2.7

2.7: /opt/local/bin/python2.7

2.7: /usr/bin/python2.7

3.6: /opt/local/bin/python3.6m

3.6: /opt/local/bin/python3.6

3.6: /opt/local/bin/python3.6

2.7.14: /opt/local/bin/python

2.7.14: /opt/local/bin/python

2.7.10: /usr/bin/python

2.7.14: /opt/local/bin/python2

2.7.14: /opt/local/bin/python2

3.6.4: /opt/local/bin/python3

3.6.4: /opt/local/bin/python3

PEP 508 Information:
{'implementation_name': 'cpython',
 'implementation_version': '0',
 'os_name': 'posix',
 'platform_machine': 'x86_64',
 'platform_python_implementation': 'CPython',
 'platform_release': '17.5.0',
 'platform_system': 'Darwin',
 'platform_version': 'Darwin Kernel Version 17.5.0: Mon Mar  5 22:24:32 PST 2018; root:xnu-4570.51.1~1/RELEASE_X86_64',
 'python_full_version': '2.7.14',
 'python_version': '2.7',
 'sys_platform': 'darwin'}

System environment variables:

TERM_PROGRAM_VERSION
LOGNAME
USER
HOME
PATH
PYTHONUNBUFFERED
DISPLAY
TERM_PROGRAM
LANG
TERM
Apple_PubSub_Socket_Render
COLORFGBG
CDPATH
SHLVL
VIEW_NAME
XPC_FLAGS
ITERM_SESSION_ID
VIEW_DIR
GITLAB_PRIVATE_TOKEN
TERM_SESSION_ID
XPC_SERVICE_NAME
OMF_PATH
SSH_AUTH_SOCK
SHELL
PYTHONDONTWRITEBYTECODE
ITERM_PROFILE
PIP_PYTHON_PATH
OMF_CONFIG
TMPDIR
__CF_USER_TEXT_ENCODING
PWD
OBJC_DISABLE_INITIALIZE_FORK_SAFETY
COLORTERM

Expected result
Describe what you expected.
Expected running with or without a Pipfile would result in the same installation.
Actual result
When possible, provide the verbose output (--verbose), especially for locking and dependencies resolving issues.
Installing with the Pipfile installed azure-mgmt-compute 3.0.1 first then installed azure-mgmt-compute 1.0.0 on top of it.
Running without the Pipfile resulted in 1.0.0 installed first and then 3.0.1 on top of it which uninstalls 1.0.0. Probably because I specify the order of the packages:
pipenv install --skip-lock azure==2.0.0 azure-mgmt-compute==3.0.1
Whereas I can't specify the order of the packages when running form the Pipfile.
Steps to replicate
Provide the steps to replicate (which usually at least includes the commands and the Pipfile).
run the following:
pipenv install --skip-lock azure==2.0.0 azure-mgmt-compute==3.0.1
This will have the expected result:  azure-mgmt-compute==3.0.1 is installed
Then delete the virtualenv: pipenv --rm
The using the generated Pipfile: pipenv install
This will have both 1.0.0 and 3.0.1 installed with 1.0.0 active.

oh also that wasn't related to this issue sorry, reopening

okay so what you're saying is when you forcefully skip locking, then you lock, then you use the lockfile but somehow install versions that are not allowed to coexist, your environment is broken? Pipenv has a dependency resolver, you can either use it or not use it, you can't both use it AND not use it. This is not a supported use.

sorry I wasn't explicit. I can't actually generate a lock file because it can't resolve the dependencies. Make sense since I am forcing 3.0.1 on it when it wants 1.0.0.
Anyways thanks for responding. I understand what I am doing isn't supported. Just reported in case it revealed an actual bug. Thankfully I have a workaround that allows me to continue to use Pipenv.

@gsalsero you can actually put azure in [dev-packages] and azure-mgmt-compute in [packages] and this should allow you to generate a lockfile:
[[source]]
url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"

[packages]
azure-mgmt-compute = "==3.0.1"

[dev-packages]
azure = "*"

[requires]
python_version = "3.6"

This is a nifty workaround that I usually recommend, since pipenv will always let packages win conflicts when they are encountered.

I appreciate your help. That works like charm!


ES localization of ´Loosely coupled architecture´

Add Spanish localization of ´loosely coupled architecture
Describe your changes
This is a Spanish localization of the CNCF concept of ´loosely coupled architecture´.
Related issue number or link (ex: resolves #issue-number)
Resolves Issue #610
Checklist before opening this PR (put x in the checkboxes)

[x] This PR does not contain plagiarism

don’t copy other people’s work unless you are quoting and contributing it to them.

[x] I have signed off on all commits

signing off (ex: git commit -s) is to affirm that commits comply DCO. If you are working locally, you could add an alias to your gitconfig by running git config --global alias.ci "commit -s".

/lgtm
@92nqb @valeriahhdez could you review/approve this PR, please?


Simplify SendPacket API

Description

closes: #1395

Before we can merge this PR, please make sure that all the following items have been
checked off. If any of the checklist items are not applicable, please leave them but
write a little note why.

[x] Targeted PR against correct branch (see CONTRIBUTING.md)
[x] Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
[ ] Code follows the module structure standards.
[ ] Wrote unit and integration tests
[ ] Updated relevant documentation (docs/) or specification (x/<module>/spec/)
[ ] Added relevant godoc comments.
[ ] Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
[ ] Re-reviewed Files changed in the Github PR explorer
[ ] Review Codecov Report in the comment section below once CI passes

Marking as draft just so it is easier to know when suggestions and merge conflicts have been addressed and the pr is ready for a full review again

Codecov Report

Merging #1703 (7a94343) into main (7dcfc2c) will increase coverage by 0.02%.
The diff coverage is 82.00%.

Additional details and impacted files

@@            Coverage Diff             @@
##             main    #1703      +/-   ##
==========================================
+ Coverage   78.63%   78.65%   +0.02%
==========================================
  Files         178      178
  Lines       12354    12296      -58
==========================================
- Hits         9714     9671      -43
+ Misses       2208     2197      -11
+ Partials      432      428       -4

Impacted Files
Coverage Δ

...7-interchain-accounts/controller/ibc_middleware.go
70.96% <0.00%> (ø)

...27-interchain-accounts/controller/keeper/keeper.go
92.53% <ø> (ø)

.../apps/27-interchain-accounts/host/keeper/keeper.go
83.80% <ø> (ø)

modules/apps/29-fee/ibc_middleware.go
91.83% <0.00%> (ø)

modules/apps/29-fee/keeper/keeper.go
92.48% <ø> (ø)

modules/apps/29-fee/keeper/relay.go
88.23% <0.00%> (ø)

modules/apps/transfer/keeper/keeper.go
91.17% <ø> (ø)

modules/apps/transfer/keeper/relay.go
87.45% <50.00%> (-1.22%)
:arrow_down:

.../27-interchain-accounts/controller/keeper/relay.go
75.00% <66.66%> (+0.53%)
:arrow_up:

modules/core/04-channel/keeper/packet.go
98.20% <92.59%> (+1.61%)
:arrow_up:

... and 2 more

@crodriguezvega Are there any changes left you think we should make? With regards to your current suggestions, I think it probably makes sense to continue using the packet variables so as to ensure we are referencing the correct values
Otherwise I think this pr is ready to be merged

@crodriguezvega Are there any changes left you think we should make?

Yes, I just updated the documentation. I would appreciate a review to check it all looks ok. After that, I agree we can merge it.


Button click & issuing commands using SendAccessKeys unstable

I have a stability problem with UI automation using the WinAppDriver. When running my WPF exe file without any strings attached to the WinAppDriver I can use shortcut keys to open modal dialogs in my UI. However, when I try to use the same shortcut keys to open modal dialogs some of them fail all the time (no UI reaction at all) and some seem to work all the time.
If I leave my application open after running a test suite, I can press the shortcut key that didn't work using WinAppDriver and the application opens up the modal dialog immediately without me even clicking inside the app to ensure that focus/most foreground app/window is set. There seems to be a discrepancy somewhere - between my app running when manually started and my app started by WinAppDriver.
The reason why I use shortcut keys is that normal button click behaviour does not work - I am using third party user controls with several controls within and do not have the Automation IDs to access the buttons directly. Using mouse click functions do not work either.

Hi @daghb,
What is the shortcut sequence that you are sending? Can you come up with a sample app or existing app that can repro the issue you are seeing?
Could you also open another issue if you have a separate issue with the mouse click? Similarly steps to reproduce the issue would greatly help.

Looks like this problem is caused by closed modal dialogs. Will investigate this further and open further issues based on findings.


Calendar View Crash on lastest demo app

environment:

xcode 4.2
ios sdk 5.0

Got a EXC_BAD_ACCESS at the following line in DemoCalendarMonth.m
NSArray *ar = [dataDictionary objectForKey:[self.monthView dateSelected]];

This was an arc issue when I converted everything. Fixed it with the latest commit.


Spawing many entities lead to slow down.

Spawning many entities leads to slow down.
I despawn the entities after some time so this is not a matter of too many draw calls.
Minimum example.
slow_down.zip
Checked on 0.1.3 and the current master.

The issue here is that you are creating unique materials for each new spawned entity. Materials are currently always written to gpu memory, which means you were clogging gpu memory with new materials. Instead, you should just reuse one material. In the future we will likely be a bit smarter about what gets loaded to the gpu (and when). Until then, do something like this. I get 100fps (my monitor's refresh rate) in release mode.
use bevy::{
    diagnostic::{Diagnostics, FrameTimeDiagnosticsPlugin},
    prelude::*,
};

/// This example illustrates how to create text and update it in a system. It displays the current FPS in the upper left hand corner.
fn main() {
    App::build()
        .add_default_plugins()
        .init_resource::<TrailMaterial>()
        .add_plugin(FrameTimeDiagnosticsPlugin::default())
        .add_startup_system(setup.system())
        .add_startup_system(add_camera.system())
        .add_system(text_update_system.system())
        .add_system(add_items.system())
        .add_system(update_items.system())
        .run();
}

struct TrailMaterial(Handle<ColorMaterial>);

impl FromResources for TrailMaterial {
    fn from_resources(resources: &Resources) -> Self {
        let mut materials = resources.get_mut::<Assets<ColorMaterial>>().unwrap();
        let asset_server = resources.get_mut::<AssetServer>().unwrap();
        TrailMaterial(materials.add(asset_server.load("assets/trail.png").unwrap().into()))
    }
}

fn text_update_system(diagnostics: Res<Diagnostics>, mut query: Query<&mut Text>) {
    for mut text in &mut query.iter() {
        if let Some(fps) = diagnostics.get(FrameTimeDiagnosticsPlugin::FPS) {
            if let Some(average) = fps.average() {
                text.value = format!("FPS: {:.2}", average);
            }
        }
    }
}

fn setup(mut commands: Commands, asset_server: Res<AssetServer>) {
    let font_handle = asset_server.load("assets/FiraSans-Bold.ttf").unwrap();
    commands
        // 2d camera
        .spawn(UiCameraComponents::default())
        // texture
        .spawn(TextComponents {
            style: Style {
                align_self: AlignSelf::FlexEnd,
                ..Default::default()
            },
            text: Text {
                value: "FPS:".to_string(),
                font: font_handle,
                style: TextStyle {
                    font_size: 60.0,
                    color: Color::WHITE,
                },
            },
            ..Default::default()
        });
}

struct Item {
    max_time: f32,
    time: f32,
}

fn add_camera(mut commands: Commands) {
    commands.spawn(Camera2dComponents{
        translation: Translation::new(1280.0 / 2.0, 720.0 / 2.0, 1000.0),
        ..Default::default()
    });
}

fn add_items(mut commands: Commands, trail_material: Res<TrailMaterial>) {
    for _ in 0..10 {
        let x: f32 = 1280.0 * rand::random::<f32>();
        let y: f32 = 720.0 * rand::random::<f32>();
        commands.spawn(SpriteComponents {
            translation: Translation::new(x, y, 1.0),
            material: trail_material.0,
            ..Default::default()
        })
        .with(Item {max_time: 1.0, time: 0.0});
    }

}

fn update_items(mut commands: Commands, time: Res<Time>, mut query: Query<(&mut Item, Entity)>) {
    let mut num = 0;
    for (mut item, e) in &mut query.iter() {
        num += 1;
        item.time += time.delta_seconds;
        if item.time >= item.max_time {
            commands.despawn(e);
        }
    }
    println!("number of items : {}", num);
}

So there was a bug in the example.
Thanks for the solution.


[AutoPR security/resource-manager] Remove security contact phone field mandatory fields

Created to sync https://github.com/Azure/azure-rest-api-specs/pull/4417

(message created by the CI based on PR content)

This PR has been merged into https://github.com/Azure/azure-sdk-for-python/pull/3782


Asyncio stopped working on Windows with Python 3.12.3 Release

To reproduce:
PS > bin\python
Python 3.12.3 (main, May 25 2024, 19:21:37) [GCC 12.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio
>>> asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'asyncio' has no attribute 'WindowsSelectorEventLoopPolicy'
>>> asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'asyncio' has no attribute 'WindowsProactorEventLoopPolicy'
>>> asyncio.set_event_loop_policy(asyncio.ProactorEventLoopPolicy())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'asyncio' has no attribute 'ProactorEventLoopPolicy'. Did you mean: 'AbstractEventLoopPolicy'?
>>> asyncio.set_event_loop_policy(asyncio.SelectorEventLoopPolicy())
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: module 'asyncio' has no attribute 'SelectorEventLoopPolicy'. Did you mean: 'SelectorEventLoop'?
>>> asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy())
>>> loop = asyncio.get_event_loop()
<stdin>:1: DeprecationWarning: There is no current event loop
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "./Lib/asyncio/events.py", line 699, in get_event_loop
  File "./Lib/asyncio/events.py", line 720, in new_event_loop
  File "./Lib/asyncio/unix_events.py", line 64, in __init__
  File "./Lib/asyncio/selector_events.py", line 66, in __init__
  File "./Lib/asyncio/selector_events.py", line 120, in _make_self_pipe
  File "./Lib/socket.py", line 610, in socketpair
  File "./Lib/socket.py", line 233, in __init__

It's possible this could be related to a regression I introduced in the last few days with standard i/o. I believe it's fully fixed at Cosmopolitan HEAD.

Thanks for all your guys work. I’m a big fan

can you post the output python.com --strace when you run these commands?

can you post the output python.com --strace when you run these commands?

ran as user, lmk if needed as admin
strace.txt
PS > .\bin\python3.12.com --strace 2>strace.txt
>>> import asyncio
>>> asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
>>> asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
>>> asyncio.set_event_loop_policy(asyncio.ProactorEventLoopPolicy())
>>> asyncio.set_event_loop_policy(asyncio.SelectorEventLoopPolicy())
>>> asyncio.set_event_loop_policy(asyncio.DefaultEventLoopPolicy())
>>> loop = asyncio.get_event_loop()
>>> quit()

ok, can you check again with the nightly build now?

ok, can you check again with the nightly build now?

strace.txt

I've had a lot of fun writing bootstrapping code to deploy llamafile with cosmos python and curl. You can check that out here if you're interested https://github.com/igoforth/RWAILib/blob/master/Bootstrap.py

For anyone coming back to this, I've had a lot of luck using the Cosmopolitan Python as a first stage to bootstrap a PYZ. The PYZ can retain cross-platform compatibility by modifying its sys.path at runtime with a __main__.py at the root. See the gist here for an example, which takes advantage of wheels and PyBI's to unzip and run a native python within a subprocess: https://gist.github.com/igoforth/0a7e93b20d341d24ba3f10a1283432cb
Limitations:
Must use wheels, with no building required at runtime