Path payment may produce incorrect results of query effects for account

Here is a query for effects for account, the response have 4 records. The 2nd and 3rd record was produced by a path payment operation. I think the 3rd record is incorrect which type is "account_debited", it's asset code should be "BFQ" instead of "native", and the amount should be "20" instead of "0.0200000". I believe the 3rd record does not correctly quote sub-operation.
The query for effects for account:
https://www.stellar.org/laboratory/#explorer?resource=effects&endpoint=for_account&values=eyJhY2NvdW50X2lkIjoiR0I3N1JGNjU3R1FSUkJOTUREWTVKR1hHTzZBVk5aNkpXNVdWT1lISFRKNkVONVc2VkVRWTJGTFgiLCJvcmRlciI6ImRlc2MiLCJjdXJzb3IiOiI5NzAwNjc3MTI5NzY4NTUwNS0xIiwibGltaXQiOiI0In0%3D&network=public
The query for the path payment:
https://www.stellar.org/laboratory/#explorer?resource=operations&endpoint=single&values=eyJvcGVyYXRpb24iOiI5NzAwNjA5MjY5Mjc5OTQ4OSJ9&network=public

I think this is fine. The path_payment is sending native and wants a destination account to receive BFQ. GCXSQ7MW6KK3IZSZDOFMOPUDPT6YXP642UIM2CXJL54K6RCT4P5BSOYF. To make this happen native asset must be debited from the account, native asset must be sold and BFQ asset must be bought. Is it more clear now?

@bartekn Thanks for your reply.
I think you misunderstand my opinion. To make the whole things more clear, let's simplify the sender GB77RF657GQRRBNMDDY5JGXGO6AVNZ6JW5WVOYHHTJ6EN5W6VEQY2FLX to '2FLX', and
recipient GCXSQ7MW6KK3IZSZDOFMOPUDPT6YXP642UIM2CXJL54K6RCT4P5BSOY to BSOY.
And the whole things was:
2FLX (0.02 XLM) -------> BSOY (20 BFQ)
When i query effects for account 2FLX to track 2FLX's asset changing history, i got two records corresponding to the operation: 2FLX (0.02 XLM) -------> BSOY (20 BFQ).
The 1st corresponding record is:
2FLX sell 0.02 XLM to bought 20 BFQ. So account 2FLX asset changes should be:
2FLX debited 0.02 XLM and credited 20 BFQ.
The 2nd corresponding record is:
2FLX debited 0.02 XLM.
Now let's summary the 1st record and 2nd record will get a totally result:
2FLX debited 0.04 XLM and credited 20 BFQ.
This is obviously not true.
So what i want to say is the 2nd records should be "2FLX debited 20 BFQ", but not the "2FLXdebited 0.02XLM`"
Thanks for your patience in reading my poor English expression. :D

OK, I understand now. I think the confusion comes from the fact that effects are independent. So if you have account_debited and trade you shouldn't sum amounts. It's like:

System debited 0.02 XLM from your account.
Then it used that debited amount and trade it to BFQ.
Finally the destination account was credited with 20 BFQ from the trade above.

So if I want to accurately track asset changes in an account, i should ignore trade type records in result of "query effects for account"?

@bartekn I have just tested to make an offer in the exchange. I found if i make an offer and the offer is successfully being trade, the result of query effects for account will show one single record corresponding the offer operation. So i can't tell a trade result is produced by an offer or a path payment, and so i can't know a trade record shoud be counted or be ignored.
The query for testing few minutes ago:
https://www.stellar.org/laboratory/#explorer?resource=effects&endpoint=for_account&values=eyJhY2NvdW50X2lkIjoiR0NPUElBWU9PRUpGVVFFTFU1R1pQMlBFSldWQlpEM0dVQjJXMlJBTlNYSTNYTUhLRUg0T01QRkgiLCJvcmRlciI6ImFzYyIsImN1cnNvciI6IjAwMDA5NjI5MTQ0ODc4OTgxMTQtMDAwMDAwMDAwMyJ9&network=test

OK, the issue you described in the last message is probably something we should look into so reopening this issue. In short: should manage_offer that were actually executed contain a account_debited and account_credited effects?

@bartekn Yep, that's my confusion and thank you again. :D

@bartekn Hello. Is there any progress or plan to resolve this problem? It really make us confusing to track account asset balance. T_T


docs(obtain-jwt-token.mdx): curl request data-raw should be valid json

Changes proposed
Remove comma from curl command so that the data-raw is valid json.
Check List (Check all the applicable boxes)

[x] I sign off on contributing this submission to open-source
[x] My code follows the code style of this project.
[ ] My change requires changes to the documentation.
[x] I have updated the documentation accordingly.
[x] All new and existing tests passed.
[x] This PR does not contain plagiarized content.
[x] The title of my pull request is a short description of the requested changes.

@emily-zall Thanks!


RN 0.68 released

Build/Submit details page URL
No response
Summary
Defaults for EAS support: https://reactnative.dev/blog/2022/03/30/version-068
Android Gradle Plugin was updated to 7.0.1, enforcing JDK 11 for Android builds, so make sure to upgrade your configurations (we recommend you use the temurin11 JDK flavor)
Node 16 also is required.
Gradle 7.3
Managed or bare?
bare
Environment
n/a
Error output
No response
Reproducible demo or steps to reproduce from a blank project
n/a

ok, see you provided a bunch of information about rn68 requirements, but what is actually the issue here? As far as I'm aware everything is already supported except the other issue you created 2 days ago.

Not sure. There are so many new things in the gradle for support of TurboModules, and many many new architectural things like compiling in C++. I put this here, so someone could test it, and verify it works on RN .68. I am sure there are several issues that will need to be resolved as users start using these new features.


Reboot support

Part of our self-healing should be restarting all services after node reboot.

Currently covered services:

Containers are created and started again.
Gateway and all its services (http, dhcp, firewall and cloudinit) are started again.
Grafana, statsdb and statscollector are started again.
Storagepools are remounted.
Brides are recreated.


⚠ Cioos National CKAN Sitemap has degraded performance

In 1511581, Cioos National CKAN Sitemap (https://catalogue.cioos.ca/sitemap/sitemap-1.xml) experienced degraded performance:

HTTP code: 200
Response time: 18626 ms

Resolved: Cioos National CKAN Sitemap performance has improved in 5a0e15e after 17 minutes.


pubmatic adapter: support native ads

raised clean pr https://github.com/prebid/prebid-server/pull/2334


Expose runtime baking functionality in LightmapGI

This will resolve https://github.com/godotengine/godot/issues/59217
This partially resolves https://github.com/godotengine/godot-proposals/issues/8656 . It exposes bake() for scripting, however there isn't any cancelling or aborting yet. Additionally it does not currently work for exported projects. It also works for exported projects
Implementation notes:

As .exr files cannot be imported at runtime, I save as a .res. This is also because when the lightmapper is available in exported projects, we can use .res files, while we can't save .exr files
The radiance changes setting to Radiance 128, and then resetting back to what it was, is because the lightmaps were not generating correctly at runtime using the Scene/Custom Sky environment options. Setting it to 128 fixes this. I am not sure what is causing this, possibly something related to environment_bake_panorama or sky_bake_panorama. There is a related Size2i parameter for this radiance size, but setting that to 256 while using a radiance size of 256 doesn't fix this issue.
Is there a better way of converting from an image to a texturelayered?

In which cases you will bake lightmap in runtime?

In which cases you will bake lightmap in runtime?

In custom level editors built with godot
Also when reimporting levels in godot while the game is running. Here's me taking advantage of the fact that VoxelGI can be baked at runtime: https://twitter.com/passivestar_/status/1780433192211612039

In which cases you will bake lightmap in runtime?

This opens up the opportunity for having a script that goes through all your maps/scenes and baking these lightmaps, rather than doing it in-editor, since the editor process is manual currently. So if you want a lot of high quality lightmaps for a lot of scenes, you can go away and do something else in the meantime. Additionally, it also opens it up for custom map makers in a similar way to Quake, where the lightmaps need to be baked(however this would require additional work for it to work in exports as the lightmapper).

Note that bake() will still not work in exported projects, as lightmapping and automatic UV unwrapping (xatlas) functionality is only available in the editor to decrease binary size. bake() will only work in projects run from the editor, as well as the editor itself.

That said this is currently for runtime with the editor, not currently in exported builds(quoted from #59217 ), so it doesn't get us all the way there yet, but at least to the same state Godot 3.X was at which for projects like func_godot, is still very helpful

I'm joining the topicstarter.
I'm creating an engine for a game based on Godot, but the maps are outside the resource file system. They are located in the next folder with the executable file. They are created in TrenchBroom (*.map-files). I use my own parser for these files. Not Quodot and not func_godot. To build them, I call the game executable file via the command line:
> game.exe --headless -- build path/to/file.map

Here a packed scene is created and saved to another external *.scn-file. The scene stores the geometry, light, physics and location of the player, monsters, game objects as well as the conditions for switching to another map. The map file does not embed textures, materials and internal details of game objects.
Everything goes fine and after that the scene can be opened and played.
I really miss the ability to bake light in map building script.

Please discuss the functionality itself in the proposal, as comments on the pull request should only refer to the implementation.

Hi, I tried compiling this fork and I was surprised to find that the exported project (at least the debug build, haven't checked release yet) actually can bake lightmaps into .res file format, however they don't look right. I assume it's due to slice counts. The first screenshot is a lightmap compiled from within the editor, and the second is from the game.

(Temporarily disabled denoiser)
What leads me to believe this is an issue with slices is the fact that if I change the vertical slice count from 2 to 1, I get a rather similar broken lightmap to the one I got while baking in the game.

As there aren't any import options for .res files, I'm not sure what the issue could be here. I want to contribute, I just can't figure out this problem. Do you have an idea by any chance @Calinou?

Update: I got it working in the exported project here https://github.com/RisingThumb/godot/pull/1. This is my first ever contribution to the Godot's codebase, so probably a lot of things are wrong there. I need some assistance.

Thanks @sourcelocation , I've merged your changes into this PR which make it possible to bake at runtime for exported projects into this PR. Also means it addresses the original issue more completely now, as it works for exported projects if module_lightmapper_rd_enabled and module_xatlas_unwrap_enabled are enabled 👍

When can we expect this PR to be reviewed?

When can we expect this PR to be reviewed?

4.3 is in feature freeze, so new features can only be merged in 4.4 at the earliest.
Also, there are merge conflicts that should be resolved. See Pull request workflow for instructions :slightly_smiling_face:

@RisingThumb please confirm you have abandoned this PR

Hi, I'm happy for this PR to be superseded by https://github.com/godotengine/godot/pull/94965


fix ignored IOException in Apps.createApp

cause: my app faced that ResponseBody.string throws java.net.SocketTimeoutException

Codecov Report

Merging #44 into master will increase coverage by 0.03%.
The diff coverage is 71.42%.

@@             Coverage Diff              @@
##             master      #44      +/-   ##
============================================
+ Coverage     26.99%   27.03%   +0.03%
  Complexity       60       60
============================================
  Files            39       39
  Lines           526      529       +3
  Branches         65       65
============================================
+ Hits            142      143       +1
- Misses          375      377       +2
  Partials          9        9

Impacted Files
Coverage Δ
Complexity Δ

...in/java/com/sys1yagi/mastodon4j/api/method/Apps.kt
37.14% <71.42%> (-0.36%)
3 <0> (ø)

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 3bb3377...125e9db. Read the comment docs.

👀


Link layer status listener interface

Added a callback interface to LinkLayer, so the application can be notified when a stack's link layer transitions between RESET and UNRESET. Haven't tested it much, but it seems to work nicely.
I took a shortcut, and just pass the callback using the link config object, because this is just a proof of concept. It'd be nicer to have an equivalent of the IChannel::AddStateListener(), like IStack::AddLinkStatusListener(), but whatever works.
We're using this in our data concentrator, so if an upstream master stops 'scanning' (confirming unsol messages) on what might be a multidrop channel, we get notified so we can stop 'scanning' downstream, freeing up the downstream outstation, so it can be scanned by a secondary datacon etc.
We also use it to set commlost quality on the points we're presenting upstream if the downstream link is lost. We previously used the channel state listener, but this is better.
Not only does it allow multidrop channels with individual link statuses, but it also protects against locked up outstations/masters with an otherwise healthy channel. It would also go nicely with the link status keepalives you have planned :-)
I hope you can get something like this into the stack, because it would be very useful.
Cheers,
Neil.

No issue with this. I think I like just adding a single callback interface instead of growing multiple adhoc callback methods.
What do you think about replacing the AddStateListener with AddLinkListener() and making it an interface we can grow with?

I'm not sure... Do you mean have a single interface to listen to Link status and Channel status? So it would go something like... Make the Channel state listener interface private and use it to notify all stacks on the channel. Add a listener inteface to IStack that notifies all listeners of link status changes and passes on channel state changes as well. And, combine the ChannelState and LinkStatus enums to make a single state type that the callback accepts?
Personally I think it would be neater to have separate listening interfaces for the channel and the stacks, but you might have a better way to implement a combined one than what I just described...
There could be ways of making the separate interfaces less 'adhoc'. Maybe IStack and IChannel could derive from a common IStateNotifier abstract base class or something.
In the end, it wouldn't really matter to me how it's exposed, just as long as it's there. You can decide what works best. I can have a crack at implementing it if you like, but realistically I think you'd do a better job at making it fit.
Cheers,
Neil.

No, you're right. I think keeping channel-specific things at the channel is a good thing.
What I was saying is that we now have two types of notifications at the channel level:

A state callback with enumeration
Callback for the RESET to UNRESET

I propose merging these things into a single IChannel interface and passing it in when you create the channels.
Does this seem reasonable? That way we can add more methods without having to shift things around later.

That sounds reasonable, but I'm not sure how it would work for multidrop.
Would you have to say which outstation on the channel you want to add a
listener for?
I should go away and test what I implemented a bit more thoroughly, but I
thought there's a separate state for each link that may be on the same
channel (I just assumed, and only tested one outstation at a time so far).
Cheers,
Neil.
On 25/05/2015 2:28 am, "Adam Crain"<EMAIL_ADDRESS>wrote:

No, you're right. I think keeping channel-specific things at the channel
is a good thing.
What I was saying is that we now have two types of notifications at the
channel level:

A state callback with enumeration
Callback for the RESET to UNRESET

I propose merging these things into a single IChannel interface and
passing it in when you create the channels.
Does this seem reasonable? That way we can add more methods without having
to shift things around later.
--
Reply to this email directly or view it on GitHub
https://github.com/automatak/dnp3/pull/125#issuecomment-105033799.

You are correct, this belongs at the link layer of each session. I was mistakenly thinking this was a channel thing, but it's not.
Let me take a look at this week. This sounds like a perfectly reasonable thing to add.

OK, great.
I just finished cross-checking against the state diagram in the DNP3 spec, that I was calling the callback in the right spots. Turns out I missed a spot, so I added a commit.
Cheers,
Neil.

I had a go at addressing your points above, if you want to have a look.
I also talked to Alan about the link keepalive implementation he's been working on, and we decided we'd merge that code into this pull request if that sounds good.
Cheers,
Neil.

Do they conflict with eachother since they're both at the LinkLayer?
If not, I'd prefer to merge each one individually.

Ok, this one has been merged. Ask Alan to replay his stuff on top of it when he's ready to submit a pull request.


port=3389 listens on v4 or v6 but not both

The default port=3389 listens to either <IP_ADDRESS>:3389 or {::}:3389 but not both, against intuition. The default should listen to both v4 and v6 when both are enabled on the server.
On v4-only systems, xrdp always listens on <IP_ADDRESS>:3389. On v6-only systems, xrdp always listens on {::}:3389. On a system with both v4 and v6 enabled and using default config, it seems to randomly select one or the other, not both on reboot.
Attempting to workaround manually to configure both such as port=tcp://:3389 tcp6://:3389 fails to start I'm assuming due to https://github.com/neutrinolabs/xrdp/issues/1450 or something similar:
root@control-tower:~# service xrdp status
● xrdp.service - xrdp daemon
     Loaded: loaded (/lib/systemd/system/xrdp.service; enabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Tue 2023-05-02 17:15:58 PDT; 2min 52s ago
       Docs: man:xrdp(8)
             man:xrdp.ini(5)
    Process: 757 ExecStartPre=/bin/sh /usr/share/xrdp/socksetup (code=exited, status=0/SUCCESS)
    Process: 767 ExecStart=/usr/sbin/xrdp $XRDP_OPTIONS (code=exited, status=1/FAILURE)
        CPU: 55ms

May 02 17:15:58 control-tower xrdp[767]: (767)(140517289674560)[INFO ] listening to port 3389 on ::
May 02 17:15:58 control-tower xrdp[767]: (767)(140517289674560)[INFO ] address [<IP_ADDRESS>] port [3389] mode 4
May 02 17:15:58 control-tower xrdp[767]: (767)(140517289674560)[INFO ] listening to port 3389 on <IP_ADDRESS>
May 02 17:15:58 control-tower xrdp[767]: (767)(140517289674560)[ERROR] trans_listen_address failed
May 02 17:15:58 control-tower xrdp[767]: (767)(140517289674560)[DEBUG] Closed socket 8 (AF_INET <IP_ADDRESS>:0)
May 02 17:15:58 control-tower xrdp[767]: (767)(140517289674560)[DEBUG] Closed socket 7 (AF_INET6 :: port 3389)
May 02 17:15:58 control-tower xrdp[767]: (767)(140517289674560)[ERROR] Failed to start xrdp daemon, possibly address already in use.
May 02 17:15:58 control-tower systemd[1]: xrdp.service: Control process exited, code=exited, status=1/FAILURE
May 02 17:15:58 control-tower systemd[1]: xrdp.service: Failed with result 'exit-code'.
May 02 17:15:58 control-tower systemd[1]: Failed to start xrdp daemon.
root@control-tower:~#

root@control-tower:~# aptitude -y install xrdp
xrdp is already installed at the requested version (0.9.12-1.1)
xrdp is already installed at the requested version (0.9.12-1.1)
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.

root@control-tower:~# xrdp -v
xrdp 0.9.12
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2018 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --enable-ipv6
      --enable-jpeg
      --enable-fuse
      --enable-rfxcodec
      --enable-opus
      --enable-painter
      --enable-vsock
      --build=x86_64-linux-gnu
      --prefix=/usr
      --includedir=${prefix}/include
      --mandir=${prefix}/share/man
      --infodir=${prefix}/share/info
      --sysconfdir=/etc
      --localstatedir=/var
      --disable-silent-rules
      --libdir=${prefix}/lib/x86_64-linux-gnu
      --libexecdir=${prefix}/lib/x86_64-linux-gnu
      --disable-maintainer-mode
      --disable-dependency-tracking
      --with-socketdir=/run/xrdp/sockdir
      build_alias=x86_64-linux-gnu
      CFLAGS=-g -O2 -fdebug-prefix-map=/build/xrdp-ftEFny/xrdp-0.9.12=. -fstack-protector-strong -Wformat -Werror=format-security
      LDFLAGS=-Wl,-z,relro -Wl,-z,now -Wl,--as-needed
      CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2
      PKG_CONFIG_PATH=/build/xrdp-ftEFny/xrdp-0.9.12/pkgconfig

  Compiled with OpenSSL 1.1.1n  15 Mar 2022
root@control-tower:~#

For now I've set port=tcp://:3389 because we still have some v4-only clients and I can't get it to listen on both v4 and v6 at the same time.

Ah, I now notice that debian's package is quite a few versions behind.

That's not it.
I've got a v0.9.12 build here:-
$ xrdp -v
Argument 0 - xrdp
Argument 1 - -v
xrdp 0.9.12
  A Remote Desktop Protocol Server.
  Copyright (C) 2004-2018 Jay Sorg, Neutrino Labs, and all contributors.
  See https://github.com/neutrinolabs/xrdp for more information.

  Configure options:
      --enable-xrdpdebug
      --enable-fuse
      --enable-pixman
      --enable-ipv6
      --enable-painter
      --enable-jpeg
      --with-imlib2
      --enable-vsock
      --with-freetype2
      --enable-neutrinordp
      CC=gcc
      CFLAGS=-g -fvar-tracking -Wl,-z,now

  Compiled with OpenSSL 3.0.2 15 Mar 2022

I've got a simple port=3389 in xrdp.ini.
Both interfaces are being listened on.
Check the output of sudo ss -alp 'sport = 3389' so we can try to determine where the problem lies.

@reukiodo - do you need any more input into this?

2023-05-17 13:36:09 root@control-tower:~# nano /etc/xrdp/xrdp.ini
2023-05-17 13:36:39 root@control-tower:~# service xrdp restart
2023-05-17 13:36:44 root@control-tower:~# ss -alp 'sport = 3389'
Netid          State           Recv-Q          Send-Q                   Local Address:Port                            Peer Address:Port         Process
tcp            LISTEN          0               2                                    *:ms-wbt-server                              *:*             users:(("xrdp",pid=38009,fd=11))
2023-05-17 13:36:57 root@control-tower:~#

I changed the xrdp.ini back to the port=3389 and restarted the service. Perhaps it is because I am using a Mac and the Microsoft Remote Desktop client and connecting through a VPN...? I just don't understand why it works when xrdp.ini is configured specifically for port=tcp://:3389

Sorry @reukiodo - I'm missing some information.
From what I can see from that version of the code, port=tcp://:3389  will listen in V4 and port=3389  will listen on all interfaces. Is that not what ss -alp 'sport = 3389' is telling you? In your post above you seem to be listening on all interfaces. What is port set to?
Also, you mention a VPN. This may well be giving you routing issues.

Are you sure BOTH ends are set up to route both IPv4 and IPv6 over the VPN?
Are traceroute commands for v4 and v6 showing end-to-end connectivity?
is the VPN terminated on your xrdp machine, or elsewhere?
Are A and AAAA DNS name queries resolving to the expected addresses from the client?

As I mentioned earlier, you can use nmap from the client to see if the server appears to be listening on a particular interface. This may answer some of the VPN queries.
Suggest you check the server is behaving as I think it is by using ss -alp 'sport = 3389'. If it is, there's a networking issue to investigate. If it's not, I'm not understanding the problem here.

It seems a simple service restart is not enough and I was able to connect to 3389 on ipv4 after a full reboot with default port=3389 config.

That seems odd.
The behaviour of xrdp itself won't be affected by a reboot, but other system-level features might be (IP addresses, routing, etc).
Possible reasons off the top of my head:-

DHCP lease for IPv4 address expired.
System name registered with dynamic DNS expired.

Since this is unexplained it may well happen again. If it does, please repost here and we can look into it. If not, I'll close this in a couple of weeks.

The system had both static IPv4 configured as well as static DNS, so not likely to be a DNS/resolution/IP issue. I'll throw this one up as undefined and close for now. If I can replicate with another server I'll let you know, though it seems that a reboot will likely resolve after installation.


onPlayerReady not triggering in nested view

Has there been a fix for #290 ? I am trying to ng-include a view which has videogular, but the onPlayerReady event never fires.

Include probably isn't the best approach.  For reusability of your Videogular configuration, it's advisable to wrap it in a component or directive depending on your AngularJS version. This would be more in line with best practices and help you avoid some of the include funkiness.


RuntimeIdentifiers doesn't set PlatformTarget

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net452</TargetFramework>
    <RuntimeIdentifiers>win-x64</RuntimeIdentifiers>
    <AssemblyName>Testx64</AssemblyName>
  </PropertyGroup>
</Project>

Expected:
64-bit assembly
Actual:
AnyCPU assembly
Current workaround is to add:
<PlatformTarget>x64</PlatformTarget>

This issue was moved to dotnet/sdk#1017


[MINOR][DOC] Fix comment error of HiveUtils

What changes were proposed in this pull request?
Change the version number in comment of HiveUtils.newClientForExecution from 13 to 1.2.1 .
How was this patch tested?
N/A

Can one of the admins verify this patch?

ok to test

Yea, I was aware of it. I think there are some more old comments in this file if I remember this correctly. Can you double check and fix them while we are here?

Test build #98087 has started for PR 22850 at commit 92a60c4.

@HyukjinKwon ，I checked the file and looks like the others looks good.

Test build #98087 has finished for PR 22850 at commit 92a60c4.

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

Merged build finished. Test PASSed.

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

Merged to master


fixed parameter types to strings

Hi
I believe there is a bug in Permalink.js. It becomes apparent when you enable "useAnchor" and "useLocation". The code continues to trigger calls to the _set_urlvars function. The reason is that
        if (eq(p, this._params) && eq(this._params, p))
            return;

is never true. This happens because the types of zoom, lat and lon in the two dicts are not the same types. They are strings in one of them and floats in the other.
Best regards,
Jesper

Nice catch, thx for the patch :)


Allow Metrics/AbcSize skip wide array/hash literals with nested method calls

We had code pieces like
def builder_meth
  ActiveRecordModel.new(
    attr1: x.attr1,
    attr2: x.attr2,
    attr3: y.attr3,
    attr4: y.attr4
  )
end

The current defaults for Metrics/AbcSize grows at double speed along with column count.
Now some alternative approaches:

You may advise rewriting using merge + extract methods for getting attr1 / attr2 together,
but really, the code looks very clean, there's nothing more simple than a hash declaration, isn't it?

You may advise increasing AbcSize's limit,
but for a non-declarative, imperative code is really good, so we'd rather not

I think this is very similar to what they done in https://github.com/rubocop-hq/rubocop/pull/8159
p.s. but still, I think even declarations should contribute at least something to branches, if not empty, hence added @branches += 1 for every folded thing - but this is questionable, maybe it makes sense not completely -= but -= (.. / 2).ceil - what do you think?

Thanks for raising your concern.

The current defaults for Metrics/AbcSize grows at double speed

You could store y in a local variable and it would actually speed up (moderately) your method and your AbcSize should grown at single speed in the branch condition.
As for the PR, I don't think that it really addresses the actual issue.The issue I see is that multiple calls to y could probably be counted as one (i.e. "assume repeated branch calls are simple attr_reader or cached methods", at least first depth) and/or not count at all some method calls that can be assumed to be builtin (e.g. []).

@marcandre thanks for your thoughts, I've edited example multiple times to get most clean one, but apparently failed :)
First of all, x & y are mostly already lazy cached attr_readers and a local variable for this looks awkward, but there are cases when some values come from arguments and the key's count is just bigger. The main idea here: tables can be legitimately wide and all keys should be side-by-side, no {}#merge
I still think this PR has very tight relation to CountAsOne in MethodSize. Ofc, there that is a pure formatting issue and inline hash literal is total equivalent (except line size).
But here I would like to distinguish the declarative initialisation from imperative one.
Compare this example, which I would be glad to continue restricting by AbcSize like today (branch=16, but also due setters):
Klass.new do |obj|
  obj.a = a.a
  obj.b = b.b
  obj.c = c.c
  obj.d = d.d
  obj.e = e.e
end

Declarative initialisation however carries less cognitive load (imo).
Strictly speaking, this already had less AbcSize (but it's only so because there are no setters):
Klass.new(
  a: a.a
  b: b.b
  c: c.c
  d: d.d
  e: e.e
)

As I've said I'm not sure by totally squashing the whole hash to 1 branch either.
Your idea about deduplicated counting calls to methods with self receiver looks interesting.
Maybe we should strip only top-level :sends only when receiver is self (nil) from hash values?

It's still not clear to me how "where" it's used (building a hash/array vs other things) is that important.
If you are calling 10 different methods (columns) on your object, it seems to me that there is no possible justification for them not to count as 10 branch calls, unless maybe if you explicitly put them in an IgnoreList (because you know they are simple attributes, say). To me the fact that you are putting them in an array / hash makes no difference to the size of the method.
See also discussion in #8564 (has nothing to do with hash/array).

there is no possible justification for them not to count as 10 branch calls
because you know they are simple attributes

This hits the point. One cannot add all instance methods to IgnoredMethods and I'd not to use @ivar because need laziness. Regarding local variable I agree with @jafuentest from linked PR (thanks for this) that readability getter/lvar outweighs perf cost, btw double getter access barely differs with lvar even after 100M iterations: https://gist.github.com/razum2um/133c41a2b9d69db31a469ed8989421bb)
I think we're searching how to tell rubocop counting getters (lazy attributes) differently, and in the linked PR you're right, that ruby cannot allow us to declare that zero-parameter (even memoized) getter calls are idempotent. But this is a very strong rule of thumb across whole ecosystem that for a single object they should (agree?). I think @matz gave us possibility to omit parens exactly having this in mind.
I hear your idea about "discount repeated send without arguments" - but we cannot just skip (or even discount) all getter costs across whole codebase. I'm talking about object integrity.
If you're literally defining a hash/array and fetching values into 2 keys via a single getter - you definitely want to fetch data from a single object (by convention). Local vars will be explicit, but again, never saw such explicitness during 10 yrs with ruby. That's why "how "where" it's used is that important"

For the record - I'm fine with the proposed PR, mostly because of:

I still think this PR has very tight relation to CountAsOne in MethodSize. Ofc, there that is a pure formatting issue and inline hash literal is total equivalent (except line size).

Which is true. I was initially opposed to twisting straighforward metrics like MethodSize with special cases, but there was a lot of demand for this from the end users, and I guess the arguments made for it are relevant here as well.

I'd like to repeat the formatting vs content idea. The fact that one couldn't write a method in a "vertical style" but that the same content with fewer \n was acceptable is an issue imo. I see MethodLength as a poor man's equivalent of the other complexity metrics. It basically counts the number of \n in a method, which is not super releated to it's complexity.
OTOH, AbcSize aims to be more about how much "content" there is. How long the variable names are, on how many lines this is written, these things don't count. What counts is how many method calls, conditions and assignments there are.
With this setting, my feat is that it will be very tempting to "game" the AbcSize metric, even if it will render the code less readable.
def foo # => AbcSize too high
  # ... very complex expression
end

# easy solution!!!

def foo # => AbcSize is ok!
  [
     # ... very complex expression (same as before)
  ].first
end

Note that after  #9053, the original observation that each hash key was growing as double would no longer be true.
I should follow up on #9053 though

@marcandre that was such a brilliant foo workaround example 😂 that I would never welcome in my codebase. https://github.com/rubocop-hq/rubocop/pull/9053 is way better, go ahead 🚀

I thought of an alternative solution to allow (bigger) methods that serialize data (in case there is interest).
Something like GroupHashValues that would apply a different way to count hash values.
def foo(x, y)
  {
    attr1: x.foo.bar.baz,  # size = 3
    attr2: y.convert(42).to_s, # size = 2
    attr3: y.other # size = 1
  }
end

Currently, the branches are simply added (3 + 2 + 1 = 6).
Maybe we should consider another norm, like the euclidian norm: Math.sqrt(3**2 + 2 **2 + 1**2) # => 3.7
For a more typical hash that has 8 values, each with 2 branches say, instead of 8*2 == 16 we'd get 5.6.
The idea of applying a norm is to maintain that more values, or more complex ones increase the size but not as fast.
I we want this, we should only consider for hash literals; I don't see a case where arrays should be counted this way, and I'd even exclude keyword arguments too.
An alternative norm is the maximum norm where only the maximum value would count.
Let me know


cue: Bad backref on a valid jammed noun

If you build this file: https://github.com/zorp-corp/nada/blob/jon/test-thread-app/zkvm/tests/example.hoon and jam a vase of it to disk, then try to cue_into() a NounSlab, you get a Bad backref error.
> =t -build-file /=zkvm=/tests/example/hoon
> .tests/jam !>(t)

     Running `/home/drbeefsupreme/Dropbox/zorp/nada/target/debug/roswell --new test-n 0 tests.jam`
2024-10-04T19:57:22.599117Z  INFO crown::kernel::boot: Deleted existing snap directory: "./.data.crown"
2024-10-04T19:57:22.599126Z  INFO crown::kernel::boot: kernel: starting
2024-10-04T19:57:22.599130Z DEBUG crown::kernel::boot: kernel: snapshot directory: "./.data.crown"
Error: CrownError(Unknown("cue: Bad backref"))

Fixed by #38


oatmeal: init at 0.12.1

Description of changes
Works towards solving https://github.com/dustinblackman/oatmeal/issues/7
Adds Oatmeal, a terminal UI chat application that speaks with LLMs, complete with slash commands and fancy chat bubbles. It features agnostic backends to allow switching between the powerhouse of ChatGPT, or keeping things private with Ollama. While Oatmeal works great as a stand alone terminal application, it works even better paired with an editor like Neovim!

https://github.com/dustinblackman/oatmeal
https://dustinblackman.com/posts/oatmeal/

This file is originally from my NUR generated by GoReleaser, ported here with the addition of adding myself as a maintainer.
Things done

Built on platform(s)

[ ] x86_64-linux
[x] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[x] Tested basic functionality of all binary files (usually in ./result/bin/)
24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@dustinblackman, I've made some changes based on your branch to make oatmeal build from source on nixpkgs. It's on this branch.
I've had to patch the build.rs file to remove network access from within the build process, since the nix sandbox does not allow it; thus, both the themes and the syntaxes are now downloaded by nix.

Thank you for your contribution. Please keep the maintainer addition and the package addition commits separate.

@WolfangAukang I appreciate the feedback! With the comment from @onemoresuza, I'm going to rework this to play nice with buildRustPackage

I've made some changes based on your branch

@onemoresuza This is great stuff, thanks a lot! I should have reached out to you first before putting something up. The patch file you've put in is quite large, I think I can make changes to make this better! Let's keep chatting in https://github.com/dustinblackman/oatmeal/issues/7

This is ready for review again! Huge shoutout to @onemoresuza for helping put this all together.

rustPlatform.buildRustPackage runs cargo test by default. The following tests are failing:
[user@hostname:~/oatmeal]$ nix-build -A oatmeal
failures:
    domain::services::app_state::tests::init::it_inits_and_reloads_from_session
    infrastructure::backends::langchain::tests::it_fails_health_checks
    infrastructure::backends::langchain::tests::it_gets_completions
    infrastructure::backends::langchain::tests::it_lists_models
    infrastructure::backends::langchain::tests::it_successfully_health_checks
    infrastructure::backends::ollama::tests::it_fails_health_checks
    infrastructure::backends::ollama::tests::it_gets_completions
    infrastructure::backends::ollama::tests::it_lists_models
    infrastructure::backends::ollama::tests::it_successfully_health_checks
    infrastructure::backends::openai::tests::it_fails_health_checks
    infrastructure::backends::openai::tests::it_gets_completions
    infrastructure::backends::openai::tests::it_lists_models
    infrastructure::backends::openai::tests::it_successfully_health_checks

test result: FAILED. 76 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s

@dustinblackman, do these tests rely on behaviors not allowed on the sandbox, for example, network access?


Update typings and set typings in package.json

The axios.d.ts is 6 months old (v0.8.1).
I don't know if an update is needed or not. Regardless, if would be great if someone set the typings key in package.json to point to the d.ts as explained in the Typescript docs.
Related issue in Typings repo

Closing in favor of a single issue for all typescript requests (#379).


Revert "Update activeGuide for Monokai-Contrast"

Reverts Colorsublime/Colorsublime-Themes#401

could you provide more info please?


Support for Cubase 14

Doens't seem to work with Cubase 14

Nevermind this works

Well it works, but its pretty buggy

The main bugginess is when you are using the range tool - the event for the command modifier causes the range selector to snap which then leads to a laggy/glitchy experience.
I was able to fix this:
In Extensions.swift, add additional enum for Phase
    enum Phase: Int64 {         case none = 0         case began = 1         case cont = 2         case end = 4         case other     }
In EventMapping.swift, only send key up event when the phase is end:
            if event.phase == .end {                 CGEvent(flagsChangedEventSource: nil, flags: originalFlags)?.tapPostEvent(proxy)             }

Hmm, this doesn't seem to be reliable - still working on this

The issue is that sometimes the .end phase doesn't get fired.

Hm, I signed up for Cubase 14 pro trial version and tested my recent Cubase projects with the settings you described (Tools -> Select Tool: Show Extra Info)
I cannot reproduce your issue, meaning i don't see no glitches in Cubase 14, regardless of hovering midi tracks with the mouse cursor, other tracks or just empty space.
This was tested both on MBP M3pro and on a very old Intel core i5 MBP from 2015, so I suppuse it's not just a performance issue.
So, more detailed information needed here, regarding hardware, Cubase configuration and maybe the project file.
Could you please zip and share your Cubase settings folder (see this page)


@bind="" and @oninput="" issue Blazor

below is my HTML content
<input type="text" id="txtSearch" placeholder="Search Titles..." class="form-control" @bind="searchTerm" @oninput="@FilterRecords" />
@code {
private string searchTerm;
public async Task FilterRecords(EventArgs args)
{
//code
}
but when I press key searchTerm property get previous values like If I press "a" it will take null, if I press "ab" it will take "a", press "abc" will take "ab" etc..
}

Yes, this is because the oninput event runs before onchange, so your FilterRecords method runs before the @bind handler has run. By default, @bind attaches to the onchange event.
As an alternative, consider removing oninput, and instead use @bind with @bind:event="oninput". Then you can put arbitrary logic to react to updates inside the setter of whatever property you're writing to. This is simpler because then you only have one event handler to deal with.

Thanks, it works, I'm adding a solution below so it will be helpful for others.
<input type="text" id="txtSearch" placeholder="Search Titles..." class="form-control" @bind="SearchTerm" @bind:event="oninput" />
@code {
private string searchTerm;
private string SearchTerm
{
get { return searchTerm; }
set { searchTerm = value; FilterRecords(); }
}
public void FilterRecords()
{
    //code
}

}


Error compiling the examples (Ubuntu 14.04)

Hello,
I successfully compile dlib using

cd dlib-19.6/
mkdir build
cd build
cmake ..
cmake --build . --config Release
sudo make install
sudo ldconfig

but when I try to compile the examples, comes up the error:

Linking CXX executable dnn_inception_ex
/usr/local/cuda/lib64/libcusolver.so: undefined reference to GOMP_critical_end' /usr/local/cuda/lib64/libcusolver.so: undefined reference to omp_get_thread_num'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to omp_get_num_threads' /usr/local/cuda/lib64/libcusolver.so: undefined reference to GOMP_parallel_start'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to omp_get_max_threads' /usr/local/cuda/lib64/libcusolver.so: undefined reference to GOMP_loop_end_nowait'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to GOMP_critical_start' /usr/local/cuda/lib64/libcusolver.so: undefined reference to GOMP_parallel_end'
/usr/local/cuda/lib64/libcusolver.so: undefined reference to GOMP_loop_dynamic_next' /usr/local/cuda/lib64/libcusolver.so: undefined reference to GOMP_loop_dynamic_start'
collect2: error: ld returned 1 exit status
make[2]: *** [dnn_inception_ex] Error 1
make[1]: *** [CMakeFiles/dnn_inception_ex.dir/all] Error 2
make: *** [all] Error 2

I guess the gomp lib is missed, so I find all the libgomp.so on my disk, and I get

/home/deep/anaconda/lib/libgomp.so
/home/deep/anaconda/lib/libgomp.so.1
/home/deep/anaconda/lib/libgomp.so.1.0.0
/home/deep/anaconda/pkgs/libgcc-ng-7.2.0-h7cc24e2_2/lib/libgomp.so
/home/deep/anaconda/pkgs/libgcc-ng-7.2.0-h7cc24e2_2/lib/libgomp.so.1
/home/deep/anaconda/pkgs/libgcc-ng-7.2.0-h7cc24e2_2/lib/libgomp.so.1.0.0
/home/deep/anaconda/pkgs/libgcc-ng-7.2.0-h7cc24e2_2/x86_64-conda_cos6-linux-gnu/sysroot/lib/libgomp.so
/home/deep/anaconda/pkgs/libgcc-ng-7.2.0-h7cc24e2_2/x86_64-conda_cos6-linux-gnu/sysroot/lib/libgomp.so.1
/home/deep/anaconda/pkgs/libgcc-ng-7.2.0-h7cc24e2_2/x86_64-conda_cos6-linux-gnu/sysroot/lib/libgomp.so.1.0.0
/home/deep/anaconda/x86_64-conda_cos6-linux-gnu/sysroot/lib/libgomp.so
/home/deep/anaconda/x86_64-conda_cos6-linux-gnu/sysroot/lib/libgomp.so.1
/home/deep/anaconda/x86_64-conda_cos6-linux-gnu/sysroot/lib/libgomp.so.1.0.0
/usr/lib/gcc/x86_64-linux-gnu/4.8/libgomp.so
/usr/lib/gcc/x86_64-linux-gnu/5/libgomp.so
/usr/lib/x86_64-linux-gnu/libgomp.so.1
/usr/lib/x86_64-linux-gnu/libgomp.so.1.0.0

At first I add /home/deep/anaconda/lib into ~/.bashrc, but the same error
Then I make a new link in /usr/lib/x86_64-linux-gnu/libgomp.so, but the same error
I've tried to edit CMakeFile.txt, add

FIND_PACKAGE(OpenMP)
if(OPENMP_FOUND)
message("OPENMP FOUND")
set(openmp_libarires ${OpenMP_CXX_FLAGS})
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenMP_EXE_LINKER_FLAGS}")
endif()
include_directories(SYSTEM ${OpenMP_INCLUDE_PATH})
find_library(GOMP_LIBRARY gomp)
if (NOT GOMP_LIBRARY)
message(SEND_ERROR "gomp library not found")
endif()

and no error shows up, only get "OpenMP found" when run cmake ..
please help me!

I try to compile examples on the other machine, also Ubuntu 14.04 and it works...
don't know why
really confused

This might not be the problem, but I noticed that in the edited cmakefile
you showed, you have a typo in "openmp_libarires" - I imagine that you mean
"openmp_libraries" instead. Is this mistake absent on the machine where it
does compile?
On 16 Nov 2017 07:51, "Howard"<EMAIL_ADDRESS>wrote:
I try to compile examples on the other machine, also Ubuntu 14.04 and it
works...
don't know why
really confused
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/davisking/dlib/issues/960#issuecomment-344842597, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AdflWrsVp_TgFwZPFgUoA5ppWdW-oCI_ks5s2-lygaJpZM4QgBjT
.

You don't need to edit any cmake files.  The problem is probably that cmake
finds the anaconda libraries, which are messed up in some way.  It is a
very frequent problem that anaconda includes some version of a standard
system library (e.g. libjpeg, openmp, etc.) but the anaconda version is
somehow weird and broken with respect to the normal system one.  If CMake
is trying to link against the one in anaconda then that's bad.
Go into your examples/build folder and type cmake -LA | grep openmp  What
does it say?
Also, you do not need to install dlib to compile the examples.  Don't
even bother doing that, it does nothing for you.

@matt-francomb Thanks for your attention. On the machine where it compiles well, I didn't change CMakeFile and just do the compile, which means I didn't introduce that typo...
@davisking I did as you say, and got this

CMake Error: The source directory "/home/deep/dlib-19.7/examples/build" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
OpenMP_CXX_FLAGS:STRING=-fopenmp
OpenMP_C_FLAGS:STRING=-fopenmp
openmp_libarires:FILEPATH=openmp_libarires-NOTFOUND

I also tried on the machine that works fine, and got the same output.


Configure CORS on custom directive

I'm writing custom directive to handle uploaded files, but it's running on different server so throwing no 'Access-Control-Allow-Origin' header is present exception:
XMLHttpRequest cannot load http://<IP_ADDRESS>:8084/image-server/upload/image. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:3000' is therefore not allowed access. The response had HTTP status code 404

Here's my directive code:
ImageService = {

    /**
     * Define the additional parameters that your your service uses here.
     *
     * Note that some parameters like maxSize are shared by all services. You do
     * not need to define those by yourself.
     */
    directiveMatch: {
        accessKey: String,

        options: Object,

        prepareMetadata: Match.Optional(Function)
    },

    /**
     * Here you can set default parameters that your service will use
     */
    directiveDefault: {
        options: {}
    },

    /**
     *
     * @param {Object} method - This is the Meteor Method context.
     * @param {Object} directive - All the parameters from the directive.
     * @param {Object} file - Information about the file as gathered by the
     * browser
     * @param {Object} [meta] - Meta data that was passed to the uploader.
     *
     * @returns {UploadInstructions}
     */
    upload: function (method, directive, file, meta) {
        var accessKey = directive.accessKey;
        var metadata = directive.prepareMetadata && directive.prepareMetadata.call(method, file, meta);

        //Here you need to make sure that all parameters passed in the directive
        //are going to be enforced by the server receiving the file.

        return {
            // Endpoint where the file is to be uploaded:
            upload: 'http://<IP_ADDRESS>:8084/image-server/upload/image',

            // Download URL, once the file uploaded:
            download: directive.cdn + '/' + metadata.entity + '/' + metadata.entityId + '/' + metadata.fileId + '.jpg',

            // POST data to be attached to the file-upload:
            postData: [
                {
                    name: 'entity',
                    value: metadata.entity
                },
                {
                    name: 'entityId',
                    value: metadata.entityId
                }
            ],

            // HTTP headers to send when uploading:
            headers: {
            }
        };
    }
};

Slingshot.createDirective('imageService', ImageService, {
    accessKey: '',
    cdn: 'http://<IP_ADDRESS>:8084/files/',

    authorize: function () {
        return true;
    },

    /**
     * 10MB file upload limit
     */
    maxSize: 10 * 1024 * 1024,

    /**
     * Allow only JPG and PNG images
     */
    allowedFileTypes: ['image/png', 'image/jpeg'],

    prepareMetadata: function (file, meta) {
        return {
            entity: meta.entity,
            entityId: meta.entityId,
            fileId: Random.id()
        };
    }
});

How can I fix this issue?

Configured it on my custom service and it worked!


use https for baseURL

Many websites use https instead of http and many web browsers auto have an auto fill feature
by default. Additionally, if content is loaded from an https connection using http the browsers
will often block that content. This leads to incomplete content loading (e.g. css styles) on the final
web page.
Need to load content (e.g. styles.css) over https to prevent browsers from blocking that content

This change has been tested on Firefox 61.0.1, Chrome 68.0.3440.106, Internet Explorer 11.551.16299.0 Microsoft Edge 41.16299.551.0
To be up-front, I'm no web developer. This change is the product of some googling and some trail-and-error. I am definitely open to making additional changes if needed

Thanks @jdburnet!


I have a field no visible on the grid, how can I change the value data or have a default value? and filter this data?

I have a field no visible on the grid, how can I change the value data or have a default value? and filter this data?
{ name: "id_agency", title: "Agency", type: "number", width: 3, visible: false },
Thank you

To change the value or set a default value use callbacks (http://js-grid.com/docs/#callbacks), like onItemUpdating and onItemInserting.
As for filtering, since it's up how you implement the implementation is also on your side. It can be an external field that you pass to filter in loadData.


fix drone builds

These changes were necessary to get drone building again without rewriting all the imports

LGTM, don't forget to change the branch back in the drone yaml.


Introduce more optional chaining in the src/core/ folder

After PR #12563 we're now free to use optional chaining in the worker-thread as well. (This patch also fixes one previously "missed" case in the web/ folder.)
For the MOZCENTRAL build-target this patch reduces the total bundle-size by 1.6 kilobytes.

/botio test


Clarification on the provided training log file

Hi @MCC-WH. First, thanks for making your training code publicly available. I'm trying to reproduce your training results and have some questions about the provided log file. The README states that it's from a 200 epoch schedule but it only seems to contain 100 epochs?
Also I'm wondering if the log is from the rSfM120k or AugrSfM120k experiment? With a batch size of 256 there should be 91642 / 256 = 358 batches for rSfM120k and 274926 / 256 = 1074 for AugrSfM120k. However the log file indicates that training was run on 765 batches. Perhaps another batch size was used?

Unfortunately the performance was not as expected when training a model with the experiment_rSfm120k.sh script. Here is the output from test.sh:
>> Test Dataset: roxford5k *** fist-stage >>
>> gl18-tl-resnet101-gem-w: mAP Eeay: 84.42, Medium: 67.31, Hard: 44.26
>> gl18-tl-resnet101-gem-w: mP@k[1, 5, 10] Easy: [97.06 91.76 87.04], Medium: [95.71 90.29 84.57], Hard: [87.14 70.29 59.57]

>> Test Dataset: roxford5k *** rerank-top1024 >>
>> gl18-tl-resnet101-gem-w: mAP Eeay: 84.36, Medium: 67.12, Hard: 41.85
>> gl18-tl-resnet101-gem-w: mP@k[1, 5, 10] Easy: [91.18 89.93 86.63], Medium: [90.   85.05 80.6 ], Hard: [77.14 69.5  57.68]

>> Test Dataset: rparis6k *** fist-stage >>
>> gl18-tl-resnet101-gem-w: mAP Eeay: 92.83, Medium: 80.5, Hard: 61.36
>> gl18-tl-resnet101-gem-w: mP@k[1, 5, 10] Easy: [98.57 96.   95.29], Medium: [100.    98.    96.86], Hard: [97.14 93.43 90.43]

>> Test Dataset: rparis6k *** rerank-top1024 >>
>> gl18-tl-resnet101-gem-w: mAP Eeay: 94.1, Medium: 84.25, Hard: 67.98
>> gl18-tl-resnet101-gem-w: mP@k[1, 5, 10] Easy: [95.71 96.29 95.43], Medium: [95.71 98.   97.  ], Hard: [94.29 94.29 90.71]

I trained on a single GPU though, should I be adjusting the batch size or learning rate in any way to compensate?

Sorry to bother you again @MCC-WH but I also have a question about Table 5 in your paper. What values of K and L did you use to compute the mAP for Affinity Feature (second row)? Also do you L2 normalize the affinity features before re-ranking?


Since we are using a large golden app, test numbers are not clean. Update with simple and stable tests.

We cleaned up the tests and the runs are not stable.


updated arm-apimanagement path in readmeTS

The path update is in reference to the github issue Azure/azure-sdk-for-js#2122
Please review Azure/azure-sdk-for-js#2122 as well
@salameer @daschult @kpajdzik @Azure/azure-sdk-eng

Automation for azure-sdk-for-python

Automation for azure-sdk-for-ruby

Automation for azure-sdk-for-go

Automation for azure-sdk-for-js

Can one of the admins verify this patch?

Automation for azure-sdk-for-java


feature: json or xunit reporter ?

Currently from the CI job, I need to read the console log to find out which tests failed and the cause.
It looks to me a json or xunit report file which tells the basic passed/failed/retry information would be really nice. And it could be used by 3rd party dashboard too.
Any thoughts?

We definitely want more of this sort of thing. I have some code landing soon which will allow for much richer suite run analysis so that reporters can build a very detailed picture of what happened or track what is happening while a suite run is in progress. I'm not personally familiar with the xunit format. Do you have some examples?

FYI @Maciek416 http://google.github.io/rich-test-results/xunitxml, it should be standard among the 3rd party frameworks nowadays, perhaps we can just simply enable a xunit reporter and then let the 3rd party framework do the job.


🐛 Added member to MessageInteraction

Changes

fixed: Issue #69

Check off the following

[x] I have tested my changes with the current requirements
[x] My Code follows the pep8 code style.

closing and creating a new pr

https://github.com/Endercheif/Pincer/commits/issue-69


lyrics not synced/incomplete.

🧐 Have you read the FAQ and viewed similar issues?

[X] I have read the FAQ
[X] I have checked older issues, open and closed
[X] I did a clean install of SpotX as described in the FAQ

Сountry of your account
Peru
What is your Spotify Plan?
Free
Do you have Spicetify installed?
No
ℹ Computer information
- Spotify: <IP_ADDRESS>5.gd8cc9372
- Windows: 10
- PowerShell: 5.1.19041.4355

📝 Description
Installed SpotX following the instructions provided. Thought it to be caused by the lyrics being relocated to the rightside bar, so I added -old_lyrics and removed -lyrics_stat parameters to auto_install.bat.
Uninstalled, purged remaining files with Uninstall-Spotify.bat, reinstalled. Problem persists. Everything works as intended otherwise.
Tried: Install_Auto.bat, Install_New_theme.bat.
📸 Screenshots

this is normal behavior for a native client, spotx does not affect synced or not synced lyrics

this is normal behavior for a native client, spotx does not affect synced/not synced lyrics

This is NOT normal behavior

example ?

lyrics in spotx
lyrics in the native client

the information was confirmed, they started limiting today for free users

The bad news for the lyrics has been confirmed, they limit the lyrics on the server side 👀
Maximum that the server returns is part of the beginning of the lyrics without synced
We are waiting for the new release 1.2.37, but judging by the existing feedback, we should not expect changes to the current logic of this restriction.


[BUILD BUG ?]  binaries in "Windows_x64" are same as binaries in "Windows_x86" as artifacts.

Hi, there!
Prerequisites

[ ] Can you reproduce?
Yes.
[ ] Are you running the latest version of SoftEtherVPN?
Yes.

SoftEther version:
SoftEther VPN Developer Edition (Ver 5.02, Build 0)
Component: [Server, Client, Bridge, etc.]
#20230917.1 • Merge pull request #1905 from chipitsine/master
On Nightly
Windows_x64
Windows_x86
Operating system: [Windows, Linux, BSD, macOS, etc.]
Win 10 PRO 22H2 BUILD 19045.3448 (VPN Client)
Architecture: [64 bit, 32 bit]
64 bit
Description
[Description of the bug]
Bug on build ?
Expected behavior:
[What you expected to happen]
Generally speaking, executable file in "Windows_x64" is different from it in "Windows_x86".
Actual behavior:
[What actually happened]
All the executable files in "Windows_x64" are same as in "Windows_x86" .
Steps to reproduce

[First step]
Download "Windows_x64" binaries.

[Second step]
Download "Windows_x86" binaries.

[And so on...]
Compare two binaries using "WinMerge".

interesting, files are the same.

It is likely a bug. I planned to have a look this weekend
On Fri, Oct 6, 2023, 20:17 hiura2023 @.***> wrote:

Why is file container same ?
Jobs in run #20230917.1
File container "#/24733927/Binaries" is the same between Windows_x64
PublishBuildArtifacts and Windows_x86 PublishBuildArtifacts .
Is this correct ?
Appendix
[image: 2023-10-06_x64_publishbuildartifacts]
https://user-images.githubusercontent.com/137624316/273284541-ebe6063a-03da-4917-a69b-d9dfd0558525.JPG
[image: 2023-10-06_x86_publishbuildartifacts]
https://user-images.githubusercontent.com/137624316/273284569-a9c9f0bd-4cc7-47b7-bc2f-e09429420b17.JPG
—
Reply to this email directly, view it on GitHub
https://github.com/SoftEtherVPN/SoftEtherVPN/issues/1913#issuecomment-1751138385,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAQ5KUFX5QVZJTFFM45S5A3X6A4JDAVCNFSM6AAAAAA5SDMEWKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRGEZTQMZYGU
.
You are receiving this because you commented.Message ID:
@.***>

I would like to suggest to publish three artifacts below.

Binaries_x64
Binaries_x86
Installers

Changing the "windows-steps.yml" below.

Refer to No.1, No.2 and No.3 in attached file. I am not sure if the syntax is correct.
windows-steps.txt

you can create your own pipeline in https://dev.azure.com and test changes.

fixed in https://github.com/SoftEtherVPN/SoftEtherVPN/pull/1924


False negative CVE-2018-15756 - Spring Framework (spring-core)

We are using Spring Boot version 2.0.5.RELEASE in many of our microservices projects and use the maven plugin for vulnerability reporting.
org.springframework:spring-core:jar:5.0.9.RELEASE:compile is a transitive dependency and according to https://pivotal.io/security/cve-2018-15756 spring-core.jar versions:

5.1
5.0.x prior to 5.0.10
4.3.x prior to 4.3.20
and older unsupported versions on the 4.2.x branch

are vulnerable but doesn't seems to be detected by the plugin.
Output from the command line:
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------< nl.jtim:spring-boot-2.x >-----------------------
[INFO] Building spring-boot-2.x 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency-check-maven:3.3.2:check (default-cli) @ spring-boot-2.x ---
[INFO] Central analyzer disabled
[INFO] Checking for updates
[INFO] Skipping NVD check since last check was within 4 hours.
[INFO] Skipping RetireJS update since last update was within 24 hours.
[INFO] Check for updates complete (45 ms)
[INFO] Analysis Started
[INFO] Finished Archive Analyzer (1 seconds)
[INFO] Finished File Name Analyzer (0 seconds)
[INFO] Finished Jar Analyzer (1 seconds)
[INFO] Finished Dependency Merging Analyzer (0 seconds)
[INFO] Finished Version Filter Analyzer (0 seconds)
[INFO] Finished Hint Analyzer (0 seconds)
[INFO] Created CPE Index (1 seconds)
[INFO] Skipping CPE Analysis for npm
[INFO] Finished CPE Analyzer (2 seconds)
[INFO] Finished False Positive Analyzer (0 seconds)
[INFO] Finished NVD CVE Analyzer (0 seconds)
[INFO] Finished Vulnerability Suppression Analyzer (0 seconds)
[INFO] Finished Dependency Bundling Analyzer (0 seconds)
[INFO] Analysis Complete (6 seconds)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.629 s
[INFO] Finished at: 2018-10-27T16:45:19+02:00
[INFO] ------------------------------------------------------------------------

I expected a failing build for a CVE on spring-core version 2.0.9
Maven dependency tree:
[INFO] nl.jtim:spring-boot-2.x:jar:0.0.1-SNAPSHOT
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.0.5.RELEASE:compile
[INFO] |  +- org.springframework.boot:spring-boot-starter:jar:2.0.5.RELEASE:compile
[INFO] |  |  +- org.springframework.boot:spring-boot:jar:2.0.5.RELEASE:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-autoconfigure:jar:2.0.5.RELEASE:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-starter-logging:jar:2.0.5.RELEASE:compile
[INFO] |  |  |  +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] |  |  |  |  \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] |  |  |  +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.10.0:compile
[INFO] |  |  |  |  \- org.apache.logging.log4j:log4j-api:jar:2.10.0:compile
[INFO] |  |  |  \- org.slf4j:jul-to-slf4j:jar:1.7.25:compile
[INFO] |  |  +- javax.annotation:javax.annotation-api:jar:1.3.2:compile
[INFO] |  |  +- org.springframework:spring-core:jar:5.0.9.RELEASE:compile
[INFO] |  |  |  \- org.springframework:spring-jcl:jar:5.0.9.RELEASE:compile
[INFO] |  |  \- org.yaml:snakeyaml:jar:1.19:runtime
[INFO] |  +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.0.5.RELEASE:compile
[INFO] |  |  +- org.springframework.boot:spring-boot-actuator:jar:2.0.5.RELEASE:compile
[INFO] |  |  +- org.springframework:spring-context:jar:5.0.9.RELEASE:compile
[INFO] |  |  \- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.9.6:compile
[INFO] |  \- io.micrometer:micrometer-core:jar:1.0.6:compile
[INFO] |     +- org.hdrhistogram:HdrHistogram:jar:2.1.10:compile
[INFO] |     \- org.latencyutils:LatencyUtils:jar:2.0.3:compile

Details on spring-core-5.0.9.RELEASE.jar in the report:
Description:

 Spring Core
License:

Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0
File Path: /home/tim/.m2/repository/org/springframework/spring-core/5.0.9.RELEASE/spring-core-5.0.9.RELEASE.jar
MD5: b10aec4e9d6fb7bedba8589125d37009
SHA1: 9f9a828936d81afd49a603bda9cc1aed863a0d85
SHA256:9aa6aaee47cee083917dc5d203368819b8a81788fceaafb9e316a127e20e2657
Referenced In Project/Scope:spring-boot-2.x:compile

Identifiers
cpe: cpe:/a:pivotal:spring_framework:5.0.9  Confidence:Low  suppress
maven: org.springframework:spring-core:5.0.9.RELEASE  Confidence:Highest
cpe: cpe:/a:pivotal_software:spring_framework:5.0.9  Confidence:Low  suppress

mvn dependency-check:check --debug > dependency-check-issue.log

output see: https://gist.github.com/j-tim/827a113e8e851300745a1f46eab21e5b

Thanks for your quick response.
Ok now i understand why it's not detected. Keep up the good work :+1:


staqtunnel page

Hi,
We're using staqtunnel now, it works great. However a page is shown when we tunnel into our own page.  Can we remove this page from our process?
Thanks

Hi xxmoC, that page is to avoid phishing through the service.
You can remove this page by purchasing a pro plan $1/month only.
More details at https://tunnel.staqlab.com/admin/billing/
You will need to sign In to the portal to view billing page

Hi,
I just logged in, created an account and try to pay. However it shows:
As per Indian regulations, only registered Indian businesses (i.e. sole proprietorships, limited liability partnerships and companies, but not individuals) can accept international payments. More info here: https://stripe.com/docs/india-exports
So I cannot pay, I'm NL based (EU)

Can you connect with me on email<EMAIL_ADDRESS>

All fixed. Thanks so much for the good service!


why using peerDependencies instead of DevDependencies?

I know NPM7.X will auto-install peerDependdencies, but for NPM7.X early version users, they have to install those by themselves, which is not convenient, and I use Pnpm has the same issue, what's the good of using peerDependencies?

Because there is no executable code in shared configs (it's essentially just exporting a plain object), so it wouldn't make sense to package a bunch of dependencies with it. Users are expected to have ESLint and the other plugins installed in the consuming project, which is exactly what the peerDependencies field is for.
See these issues for more details:
https://github.com/eslint/eslint/issues/3458
https://github.com/eslint/eslint/issues/2518


typos

:)

I seem to have completely missed this pull request. The edited parts in this pull request don't exist anymore :(


source_id registration IPSL-CM6A-MR1

label = IPSL-CM6A-MR1
label_extended = IPSL-CM6A-MR1
source_id = IPSL-CM6A-MR1
institution_id = IPSL
release_year = 2021
activity_participation = [CMIP]
aerosol:
description = none
nominal_resolution = none
atmos:
description = LMDZ (NPv6; 256 x 256 longitude/latitude; 79 levels; top level 80000 m)
nominal_resolution = 100 km
atmosChem:
description = none
nominal_resolution = none
land:
description = ORCHIDEE (v2.2, Water/Carbon/Energy mode)
nominal_resolution = 100 km
landIce:
description = none
nominal_resolution = none
ocean:
description = NEMO-OPA (eORCA1.3, tripolar primarily 1deg; 362 x 332 longitude/latitude; 75 levels; top grid cell 0-2 m)
nominal_resolution = 100 km
ocnBgchem:
description = NEMO-PISCES
nominal_resolution = 100 km
seaIce:
description = NEMO-LIM3
nominal_resolution = 100 km

@acaubel apologies for the delay. IPSL-CM6A-MR1 is now registered, please take a peek at CMIP6_source_id.html and let me know of any further tweaks


DEC-308-Bust the cache on redeploy

On start, the application will now generate a unique key that will be prepended to all cache key strings used to generate etags, causing all etags to change after a restart of the server.

Coverage remained the same at 94.23% when pulling 358b666c3e5ccc8d41213c25592350d072ece27e on DEC-308 into ad75b2ef1ec1537eca4970af3e70dd1e481c71f8 on master.

Coverage remained the same at 94.23% when pulling 358b666c3e5ccc8d41213c25592350d072ece27e on DEC-308 into ad75b2ef1ec1537eca4970af3e70dd1e481c71f8 on master.

:+1:

Very helpful. :+1:
:shipit:


setDefaultClearDuration is missing in latest release

Seems like the method setDefaultClearDuration is no longer available on the service. The documentation still states that it is present.  This occurred sometime between 4.2.1 and 4.3.1.

@Kilowhisky thanks for the issue report 👍
This was fixed in 4.3.2 https://github.com/stonecircle/ember-cli-notifications/pull/209 🎉

That’s autoClear not clearDuration. I tried 4.3.2.

On May 2, 2018, at 11:49 PM, Chris Manson<EMAIL_ADDRESS>wrote:
@Kilowhisky thanks for the issue report 👍
This was fixed in 4.3.2 #209 🎉
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Bug: Missing support for pkgconf for Fedora

Running Fedora 34. When compiling the alsa-sys package I get the following error:
❯ cargo build
    Updating crates.io index
   Compiling pkg-config v0.3.19
   Compiling libc v0.2.97
   Compiling alsa-sys v0.3.1 (/tmp/alsa-sys)
error: failed to run custom build command for `alsa-sys v0.3.1 (/tmp/alsa-sys)`

Caused by:
  process didn't exit successfully: `/tmp/alsa-sys/target/debug/build/alsa-sys-f3f02a86952bc1b7/build-script-build` (exit status: 101)
  --- stdout
  cargo:rerun-if-env-changed=ALSA_NO_PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_PATH
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_LIBDIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64-unknown-linux-gnu
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR_x86_64_unknown_linux_gnu
  cargo:rerun-if-env-changed=HOST_PKG_CONFIG_SYSROOT_DIR
  cargo:rerun-if-env-changed=PKG_CONFIG_SYSROOT_DIR

  --- stderr
  thread 'main' panicked at 'Pkg-config failed - usually this is because alsa development headers are not installed.

  For Fedora users:
  # dnf install alsa-lib-devel

  For Debian/Ubuntu users:
  # apt-get install libasound2-dev

  pkg_config details:
  `"pkg-config" "--libs" "--cflags" "alsa"` did not exit successfully: exit status: 1
  --- stderr
  Package alsa was not found in the pkg-config search path.
  Perhaps you should add the directory containing `alsa.pc'
  to the PKG_CONFIG_PATH environment variable
  No package 'alsa' found

  ', build.rs:8:64
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

After installing the package via dnf install alsa-lib-devel:

pkg-config --list-all | grep alsa gives me nothing
pkgconf --list-all | grep alsa gives the correct result.

But the build process of the alsa-sys package still fails.

I'm getting exactly the same error. I'm running Ubuntu 20.04.

Do you want to provide a PR for this? I'm not running a distro that uses pkgconf

On Fedora, you need to install the pkgconf-pkg-config package. It is generally installed by default already; are you using a docker image or similar? You may like to file a bug with the creator of the docker image, because build systems generally assume that your pkg-config is pkg-config, not pkgconf.
Or you should set PKG_CONFIG=pkgconf. I think that should also work. There's nothing for pkg-config-rs to do here IMO.

Let's close this then until there's something actionable here.


chore(deps): update terraform github.com/terraform-ibm-modules/terraform-ibm-observability-instances to v2.2.0

This PR contains the following updates:

Package
Type
Update
Change

github.com/terraform-ibm-modules/terraform-ibm-observability-instances
module
minor
v2.1.1 -> v2.2.0

Release Notes

terraform-ibm-modules/terraform-ibm-observability-instances
v2.2.0
Compare Source
Features

add support to tag to resource keys (#210) (e3e4066)

Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.

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

This PR has been generated by Renovate Bot.

Pipeline failing due to known CRA bug. Fix due later today

:tada: This PR is included in version 1.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


added linode docs and ibm docs

Summary
Did you read the CONTRIBUTING.md?
If Yes, proceed, else read it Contributing GUidelines
Any relevant issues this PR addresses? (optional)
This addresses the issue of linode docs
#
#157

kindly treat these issues differently, send a PR for the one you were assigned to


Missing gamma parameter for ARVI index.

@davemlz is the gamma parameter a fixed constant or does it need to always be specified by the user ? It is not added in the constant class. Thanks for looking into this.

Done! gamma is now part of the constants. If you install the dev version, it should be available: pip install git+https://github.com/davemlz/spyndex
Thank you!


feat: Onboard Open Targets Platform dataset

Description
Pipelines included:

open_targets,platform

Checklist
Note: If an item applies to you, all of its sub-items must be fulfilled

[x] (Required) This pull request is appropriately labeled
[x] Please merge this pull request after it's approved
[x] I'm adding or editing a feature

[x] The Google Cloud Datasets team is aware of the proposed dataset
[x] I put all my code inside  open_targets/platform and nothing outside of that directory

[x] I'm refactoring or cleaning up some code

Your PR shouldn't include code related to the nasa_wildfire dataset


Best score is now saved to cookies

Best score is now displayed next to current score and stored into cookies. Fixes issue #6

@mantevian why did you force pushed or am I doing something wrong?

I messed up a bit, gonna open a new PR, you can delete this one

alright make sure you don't do something wrong :clinking_glasses:


Pr branch

@VicTest1234 Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


is there a way to "hide" information within slides?

Hi,
in an application using python-pptx, I want to store information which is not relevant for the presentation user but relevant for an additional tooling. that tooling is to read-in the presentation file and gather that information which is "hidden" from the user.
Currently, I use the hyperlink attribute of a specific pptx element to store those "internal values" which are later read-out by another tooling. For example I store the value "ID_12345678" within an image shape, located as <slide>.<shape>.click_action.hyperlink.address.
There are two major drawbacks when using the element's hyperlink in such a way:

via <MOUSE-OVER>, the user might accidentally view these cryptic content and be confused
there is no way to use "real" hyperlinks in case I want to jump into an URL

Is there a way to store (and later read out) element-specific but "internal" information within a pptx file using python-pptx, so that a presentation user might not be confused and the hyperlink functionality might still be used for hyperlinking?

I think you'll need to do your own research here and see what PowerPoint supports for this and perhaps what other folks have worked out.
It will vary based on what object(s) you want to annotate, like slide, shape, presentation, etc.
Rough ideas might be:

shape alt-text
could change shape name, I don't think anything uses that but might in outline view or something
off-slide shapes
custom XML
might want to consult the XML schema in spec/ISO-IEC-29500-4/xsd/pml.xsd in the repo to see if there are any good candidate elements.
searching Google on "add metadata to powerpoint shapes" shows something to with "custom tags" which might be an idea.


Layout disalignment using addon and icon bootstrap

[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ x] support request

I use the addon feature with bootstrap and open-ionic icon
but the addon is disaligned.

This is the stackblitz to reproduce the problem:
https://stackblitz.com/angular/qkkndaxgodlq

Probably you shared the wrong stackblitz link

Ops @mohammedzamakhan you are right.
This is the correct link:
https://stackblitz.com/edit/angular-usybfe-asjl7u

the issue is not caused by bootstrap but open-iconic-bootstrap style, setting top: 0px; for oi selector would solve the issue https://stackblitz.com/edit/angular-usybfe-gth5gr


Add TypeScript definition file

Fixes #26
This change adds typescript definitions using an ejs template file to produce the overloads of submit and schedule.
I also added a default export from the module to improve interop with ES2015 modules and TypeScript import syntax.

Wonderful! Thank you! I'll review as soon as I can.

Sorry for the long delay. This is beautiful! I've left a few comments.

@SGrondin I have made the requested fixes and have updated the PR.

Awesome! Thank you very much.

The callback can return more than one result, but I understand that having to define
type Callback2<T,U> = (err: any, result1: T, result2: U) => void; and then Callback3 and so on would make the whole thing exponentially complicated since submit() and submitPriority() are declared in a loop. Ideas?

Any thoughts about this?

It would be possible to generate signatures using nested loops for those cases, but it would be nasty code. I don't think that case is very interesting. I haven't seen any libraries that use callbacks with multiple return values and if multiple returns are needed in application code TypeScripts Tuple type support can be used. T would be something like [string, int] in that case. If there is a compelling use case for multiple results in a callback I can add cases for 2/3 returns.

Good point! Thank you.


Request support for the vite environment

Recently, Svelte started to use the latest version of vite to for new projects. Vite doesn't support the current way of importing functions in the "src/d3-voronoi-treemap.js". I found out that way to make the package works again is to replace the first line of "src/d3-voronoi-treemap.js" to import * as voronoiMap from 'd3-voronoi-map'. Could the development team of d3-voronoi-map considering changing the file to make it compatible to vite environment? Thank you!

Hi,
I will take a look today at your issue and proposal.


Twitch analytics

Summary
Twitch analytics, similar to YouTube ones. There are seemingly a few options for this, but I'm not sure any of them contain channel analytics. Either some third-party thing will be needed, or this may not be possible.
The idea
More stats!
The ideal implementation
As close to the YouTube analytics systems as possible for maximum consistency.
Contribution
Do you want to contribute this feature yourself?
Yes

Closed as this is not possible using the Twitch API.


How to create a fold in a lexer.

I am creating a simple regex \colorizer\ using the StyleNeeded event and I want to add support for folding, To add folds for {'s and }'s.
In the C++ regex, It was possible by doing so:
        Editor.SetProperty("fold", "1");
        Editor.SetProperty("fold.compact", "0");

More like, How to create custom folds programmaticly ?

I don't have a guide written specifically for ScintillaNET, but you should be able to follow this guide based on the native Scintilla component -- starting at the section titled "Special case: Folding":
http://www.scintilla.org/Lexer.txt

Thanks.


Here is a solution ： About white flashes on borders when slides changes (real iPad/iPhone)

https://www.cnblogs.com/zhengyan/p/4719613.html
refer to the above, add css code like as shown below
.swiper-slide{
-webkit-backface-visibility: hidden;
-webkit-transform: translate3d(0,0,0);
}
.swiper-wrapper{
-webkit-transform-style: preserve-3d;
}

thank you!

@frontendhomie can you make a screenshot how the bug looks like?
Maybe this should be added to swipers styles by default?

of course, i made a video:
https://user-images.githubusercontent.com/20923682/106584994-243d1b80-6547-11eb-8541-9f70d00453e7.mov

thanks!

Issue is closed because of outdated/irrelevant/not actual/needed more information/inactivity.
If this issue is still actual and reproducible for latest version of Swiper, please create new issue and fill the issue template correctly:

Clearly describe the issue including steps to reproduce when it is a bug.
Make sure you fill in the earliest version that you know has the issue.
Provide live link or JSFiddle/Codepen or website with issue


Taxsim Missing outputs

frate: Federal Marginal Rate
srate: State Marginal Rate
ficar: Marginal Rates wrt Weighted Average Earnings
v15: Exemption Phaseout 1991+ of Federal Tax Calculation
v16: Deduction Phaseout 1991+ of Federal Tax Calculation
v20: Exemption Surtax 1988-96 of Federal Tax Calculation
v21: General Tax Credit 1975-8 of Federal Tax Calculation
v30: Household Income of State Tax Calculation
v31: Imputed Rent of State Tax Calculation
v33: Exemptions of State Tax Calculation
v35: Itemized Deductions of State Tax Calculation
v41: Bracket Rate of State Tax Calculation

issue #137

taxbc needs to introduced


KurtZimmermann.RegCoolX32 version 1.324

[ ] Have you signed the Contributor License Agreement?
[ ] Have you checked that there aren't other open pull requests for the same manifest update/change?
[ ] Have you validated your manifest locally with winget validate --manifest <path>?
[ ] Have you tested your manifest locally with winget install --manifest <path>?
[ ] Does your manifest conform to the 1.4 schema?

Note: <path> is the name of the directory containing the manifest you're submitting.

Microsoft Reviewers: Open in CodeFlow

As there is a similar PR for the x64-version with #94921 it might be a good idea to merge these into one manifest?


smart quotes

@michaelnmmeyer — I am not sure when this has changed but it seems that our database is now less good than it used to be about converting straight quotes to smart ones in our bibliographic entries.

I'd like to know if we can automate conversion of straight to smart quotes in zotero itself, or whether this can only be done manually, or whether there is no need because our database will once again do the work for us (as it used to to, I think) while grinding our xml data.

I do not remember having ever written something like that, so it probably dates from Axelle's time.
Smart single quotes are generally OK, but there are probably cases where people want to keep the bare ' symbol, and  _anugraha_s will incorrectly be translated to an opening single quote instead of an apostrophe. I think this kind of stuff would be better handled at the input stage, but this might not be pragmatic enough.

I understand that we should not let our database make such replacements because of the unwanted side-effects.
But is there a way to make batch replacements in the zotero source data, e.g. convert all cases of straught quote in École française d'Extrême-Orient to apostrophe École française d’Extrême-Orient?

There is no convenient way to do that, unless I write an interface for it. This would take a lot of time, so I would prefer if we postpone the problem.


Custom user image and opportunity to unplug gravatar

I don't need gravatar functionality on my web-site. Is it possible to unplug it? It's very useful feature, it should be used on some websites, but it's not needed everywhere.
IMHO, as the enhancement, the module should show the image the following way:

show uploaded image, if it was uploaded before (as I can see uploading images is going to be implemented)
show social network avatar, if no other image was uploaded and user is entered via social network
show site custom default image for users, that has logged in on the web-site (not via social networks), but haven't uploaded images yes.
PS: Is new release is going to be published? Milestones tab shows, that is was planned 8 days ago.
PPS: very good extension. It can become even better and perfect for all yii2 web-sites if it'll have uploading images functionality and more flexibility with icons.

You can override profile settings form and remove gravatar field from there. By the way, you will also need to adjust default scenario of Profile model, to prevent mass-assignment for gravatar field.
I'm thinking to adjust profile picture as follows:

Remove gravatar_email field and use user's email address to generate gravatar hash.
Add special method to profile model, that will return profile picture url
If user uploaded image, then that method will return it's url, otherwise gravatar url.

PS. New release is coming in a few days.

I would suggest to implement the opportunity to turn on and off gravatar image in the configuration. So (in case if gravatar is turned off) if user hasn't uploaded image yet, the default image will be shown. The default image could be specified in the configuration also. This approach gives a huge flexibility.

Of course, I can add configuration options for every single line of code (you need to disable gravatar, someone needs to disable something else). But this options will provide only complication for me as a developer, and for you as an end user. IMHO, profile model provides needed flexibility, because you may override it and implement whatever you need.


Fix the latest version of go in the CI config

Depends on #184

What is the goal of this PR?

To "Fix the latest version of go in the CI config" so that it actually uses the latest version of Go.
However, as discussed in #184, apparently, we cannot support Go 1.19 yet.


Make video player div resizable

https://medium.com/the-z/making-a-resizable-div-in-js-is-not-easy-as-you-think-bda19a1bc53d
If anyone wants to dig into this I think it could be really amazing

For example, this upload is a bit too large on the screen for my taste. I could resize the whole browser but that sucks, if I could resize the div that would be amazing

Done!


pkgx adds 300ms+ to each invocation of a tool

This doesn't matter much for some tools, but for others that are invoked a lot such as eg. C compilers in a large build, or protoc+plugins with a large number of .proto files, this can really add up.
I'm not sure where this time is spent, perhaps it's Deno bootstrap overhead?
~ $ time go version
go version go1.23.0 darwin/arm64
go version  0.00s user 0.00s system 74% cpu 0.012 total
~ $ time pkgx<EMAIL_ADDRESS>version
go version go1.23.0 darwin/arm64
pkgx<EMAIL_ADDRESS>version  0.20s user 0.06s system 78% cpu 0.341 total
~ $ time ~/.local/bin/go version
go version go1.23.0 darwin/arm64
~/.local/bin/go version  0.17s user 0.06s system 51% cpu 0.438 total

Should be fixed in the just released v1.2.0. If you get a chance please take a look and let us know. You will need to do a single --sync before the new cache is available.

Thanks, I gave it a shot but it seems to be roughly the same:
🐚 ~ $ pkgx --sync

🐚 ~ $ time pkgx<EMAIL_ADDRESS>version
go version go1.23.0 darwin/arm64
pkgx<EMAIL_ADDRESS>version  0.18s user 0.10s system 75% cpu 0.377 total
🐚 ~ $ time pkgx<EMAIL_ADDRESS>version
go version go1.23.0 darwin/arm64
pkgx<EMAIL_ADDRESS>version  0.18s user 0.10s system 74% cpu 0.366 total
🐚 ~ $ time pkgx<EMAIL_ADDRESS>version
go version go1.23.0 darwin/arm64
pkgx<EMAIL_ADDRESS>version  0.18s user 0.10s system 74% cpu 0.372 total
🐚 ~ $ pkgx --version
pkgx 1.2.0

Hmm the cache cannot be working since for me eg:
$ time pkgx go version
go version go1.22.2 darwin/arm64

real	0m0.076s
user	0m0.053s
sys	0m0.018s

$ time ~/.pkgx/go.dev/v\*/bin/go version
go version go1.22.2 darwin/arm64

real	0m0.014s
user	0m0.005s
sys	0m0.007s

So still slower but not nearly as slow as before:
$ time ~/.pkgx/pkgx.sh/v1.1/bin/pkgx go version
go version go1.22.2 darwin/arm64

real	0m0.269s
user	0m0.198s
sys	0m0.042s

Note, I ran all a few times before posting these.

When you do pkgx --sync does it say caching during the output?

When not pinning the version I get a similar result to you:
🐚 ~ $ time pkgx go version
go version go1.23.0 darwin/arm64
pkgx go version  0.04s user 0.01s system 63% cpu 0.086 total

k can reproduce, this shouldn't be the case I'll figure it out.

🙏

Has there been any development on this?
I'm on pkgx 1.3.1 and still seeing this delay.


AE models output invalid results on part of datasets

I find MultiVAE and MultiDAE both output nan recall on ml-1m while performing correctly on ml-100k and gowalla. But BPR (MF model) and LightGCN (graph model) are normal on all three datasets. So I guess it may be a problem with AE models.

Thanks! We find the bug caused by spliting in AEDataset.  The main reason is behavior sequences of some users are too short  to be split into 3 parts, which will result in that the number of some targets is zero! Therefore, the recall metric will meet divided by zero problem and return nan value.
We solved the bug by filter out those users with too short behaviors in split, which means if the behavior sequence of a user is too short to be divided into 3 parts, the user will be filtered out.

Thanks for your time!


How do I add node image ?

In my project, the node images are vary depend on the node value. If the child element has pdf files then the main node folder icon should be a pdf. Now I can change it via css but how do i make  dynamic ?

As of now only three states are provided for a node (expanded, collapsed, normal). I think you might need to modify the tree template and css accordingly

You could just add  -element to your ng-repeat and ng-source for the image. Edit the original files if the folder image bugs you out.


DEVENV: Provide strong feedback when provisioning fails

Fix for Issue #2222
Description
Introduces a MOTD that will be displayed for environments that have failed to fully provision:
##########################################################
 __      __                         .__
/  \    /  \_____   _______   ____  |__|  ____     ____
\   \/\/   /\__  \  \_  __ \ /    \ |  | /    \   / ___\
 \        /  / __ \_ |  | \/|   |  \|  ||   |  \ / /_/  |
  \__/\  /  (____  / |__|   |___|  /|__||___|  / \___  /
       \/        \/              \/          \/ /_____/
##########################################################

If you can see this, something is wrong with your
hyperledger/fabric development env.

Typically this indicates that something failed during
provisioning and your environment is incomplete.  Builds,
execution, etc, may not operate as they were intended.
Please review the provisioning log for more information.

##########################################################

Motivation and Context

Fixes #2222
How Has This Been Tested?
I tested that the message displays when I artificially cause the provisioner script to exit early, and that it is not displayed when thins run properly.  No code changes were introduced, so no UTs were added nor run.  CI should confirm this.
Checklist:

[x] I have added a Signed-off-by.
[x] I have either added documentation to cover my changes or this change requires no new documentation.
[x] I have either added unit tests to cover my changes or this change requires no new tests.
[ ] I have run golint and have fixed valid warnings in code I have added or modified. This tool generates false positives so you may choose to ignore some warnings. The goal is clean, consistent, and readable code.

Signed-off-by: Greg Haskins<EMAIL_ADDRESS>

LMAO! MAybe an ASCII Art animated Robby the Robot telling Will Robinson "Warning! Danger! Will Robinson!"

https://www.youtube.com/watch?v=OWwOJlOI1nU
OK, let's do it! Give me a few mins ;-)

Shamelessly stolen from the internet
            ,.-""``""-.,
           /  ,:,;;,;,  \  DANGER DANGER
           \  ';';;';'  /   WILL ROBINSON...
            `'---;;---'`
            <>_==""==_<>
            _<<<<<>>>>>_
          .'____\==/____'.
     _____|__   |__|   __|______
   /C \\\\\\\\  |..|  //////// C\
   \_C////////  |;;|  \\\\\\\\C_/
          |____o|##|o____|
           \ ___|~~|___ /
            '>--------<'
            {==_==_==_=}
            {= -=_=-_==}
            {=_=-}{=-=_}
            {=_==}{-=_=}
            }~~~~""~~~~{
       jgs  }____::____{
           /`    ||    `\
           |     ||     |
           |     ||     |
           |     ||     |
           '-----''-----'

Waiting for the improved version from @JonathanLevi :)

     FAIL WHALE!

W     W      W
W        W  W     W
              '.  W
  .-""-._     \ \.--|
 /       "-..__) .-'
|     _         /
\'-.__,   .__.,'
 `'----'._\--'
VVVVVVVVVVVVVVVVVVVVV

I was also thinking of perhaps creating a wiki section for provisioning failures and linking to it in the MOTD text.  Thoughts?

@srderson You have raised the bar way too high! This is awesome! Can't top/match this. Have to resort to Scott Adams' Dilbert...
██╗    ██╗ █████╗ ██████╗ ███╗   ██╗██╗███╗   ██╗ ██████╗
██║    ██║██╔══██╗██╔══██╗████╗  ██║██║████╗  ██║██╔════╝
██║ █╗ ██║███████║██████╔╝██╔██╗ ██║██║██╔██╗ ██║██║  ███╗
██║███╗██║██╔══██║██╔══██╗██║╚██╗██║██║██║╚██╗██║██║   ██║
╚███╔███╔╝██║  ██║██║  ██║██║ ╚████║██║██║ ╚████║╚██████╔╝
 ╚══╝╚══╝ ╚═╝  ╚═╝╚═╝  ╚═╝╚═╝  ╚═══╝╚═╝╚═╝  ╚═══╝ ╚═════╝

No pun intended :-) @srderson if your version gets approved, then I'll propose to add the below to the command line of output of membersrvc when the wrong YAML is provided:
   _ _ _ _ _
  ( " " " " )                    .gggppp.
   l       :                    :$P_  _T$;
   |       |                    (  ,  .  )
   |      _|                     ; '--' :
   |_   _/ l)_                   ;  -- ):
   |(""" `-'  l                  "------"t-.                         ___
   |-'      _.'                 /"j-.-,t' \ \                   .-.C'   "..'
   |        ;                  / .^./ :_"-.\ ;                  ;' ;":--._;-
   :        :      .'.  ______j____J____t___Lj________          :_ :_;   ))
   :"-.__    t  .-.|  ;/       ,-+. ,-----.           \         : "      ";
   :"--._"""/ \/  :\ //        :  : |      \           \   _____;C   )    ;
  .;     ""-`t'\.'\\Y/          ""  |_______;          _j / _| /-.-._____:
 / ;      `. '-/ _///  ,--------.   |_     _:         /  """jj'/-/.____.-:
: :   \     ;.' /\"y  /         /l  |-"""""-;        /      : / /_  .     ;-.
; :    \   /   /  /  /_        / ;   """""""        :    ___:/ // )'      :  ;
; ;     \.'"--'  /   \ """""--: /                   |"""" _.; /(.-\    /  :  :
; ;             /    /""""---(|/                    | )--|  """"_.-`..'   ;  :
; :            /     """""----'                     '--..'--""t"         :   ;
:  ;          /                                                \         ;  :
 ; :.__      /                                                  \       /   ;
 :  `^$$$pppy                                                    tp._.gj   /
  `.   "^$$P                                                      T$$^'  .'
    ""--._/ bug                                                    \__.-"

    [respect to Scott Adams!]

http://chris.com/ascii/index.php?art=comics/dilbert

Alright, alright, time to get the day started... ;-)
@ghaskins, yes, I think so. At least the connection issues (from China, etc.) and some other known platform related stuff. I think there is something about some platforms, but we could add more as we they come (e.g., the Golang 1.5, ...)

Alright, alright, time to get the day started... ;-)
@ghaskins, yes, I think so. At least the connection issues (from China, etc.) and some other known platform related stuff. I think there is something about some platforms, but we could add more as we encounter them/as they are reported (e.g., the Golang 1.5, ...)

I pushed an update the uses Robby and adds a link to a newly created wiki entry I started here:
https://github.com/hyperledger/fabric/wiki/Troubleshooting-devenv-provisioning

@christo4ferris Is there a formal process for merging into the 0.5 branch? This change is quite innocuous as it only providing a warning if the dev environment setup script fails. Possibly we should send a note to the fabric mailing list to ensure there are no objections?

Pushed grammar updates as suggested by @JonathanLevi

I found the steps to add a fix in the wiki at https://github.com/hyperledger/fabric/wiki/Release-Process#perform-if-necessary as written by @binhn. I'm going to suggest we update that to include also sending note on the fabric mailing list and give people a day to respond. Any objections?

@srderson +1

cute!

reverify jenkins

@ghaskins looks like this never got merged. Can you please migrate to Gerrit? Thanks!

Will do, thx


[wip] Make mapper tokenizable

Hello @richardjgowers! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

In the file src/kartograf/atom_mapper.py:

Line 152:80: E501 line too long (83 > 79 characters)
Line 160:80: E501 line too long (82 > 79 characters)
Line 161:80: E501 line too long (83 > 79 characters)
Line 167:80: E501 line too long (85 > 79 characters)