[LiveComponent] Multiple Turbo Streams in response - how to live component can communicate with Turbo Frames

My goal was to update turbo frames and other live components on my site as a result of some live action from another live component. Finally I managed how to do it, but I'm not sure it such behaviour is just a side effect or a correct one. I describe my use case and then I will present my thoughts, doubts and maybe some improvements in live components communication with Turbo Frames.
I develop a bookshop. One of it's feature is to allow clients to configure a product set to buy. Configurator works as a live component (without forms) and re-render the configurator to update prices, display validation errors and add additional products to the list. When client is ready to buy, he need to click the add to cart button. Then configurator validates itself and there are two possible scenarios: there were errors which have to be displayed to the client (re-render the component) or product was added to the cart.

# site skeleton

    <turbo-frame id="popup">
    </turbo-frame>

After adding product to cart 3 things should happen:

configurator should reset itself to the original state (empty
inputs, remove prices etc.)
"thank you" pop-up should appear (turbo frame in my case)
the number of items in cart component should be increased

To achieve that I tried to return in live action a simple turbo response
<turbo-stream action="replace" target="popup">
    <template>
         Product was added to cart box
    </template>
</turbo-stream>

When a popup controller (turbo) receives new data it displays pop-up and dispatches an event for cart live component. cart live component listens for that event to update itself with new data (newly added product).
It works fine, but in such case my configurator live component disappears after button add to cart is clicked. It's happening because my response consist only new content for a turbo frame. That stream replaces configurator's html content and then it is handled by turbo and moved to the popup frame.

Notice that there is no configurator at the background.
A workaround for that is to return multiple turbo stream response and wrap configurator component with a new turbo frame. And because the _executeMorphdom method from live_controller takes only the first node child (const child = template.content.firstChild;) all response have to be wrapped with some kind of root tag.
# updated site skeleton

    <turbo-frame id="configurator-live"> {# <-- added #}

    </turbo-frame> {# <-- added #}

    <turbo-frame id="popup">
    </turbo-frame>

# live component response

    <turbo-stream action="update" target="popup">
        <template>
            Product was added to cart.
        </template>
    </turbo-stream>
    <turbo-stream action="update" target="configurator-live">
        <template>
            New html for live component.
        </template>
    </turbo-stream>

Final effect

All in all it works, but wrapping live component with turbo frame is very hacky to me. If there is no other clear way to send response to turbo I would introduce a new tag in live component's response. For example: <live-template>
Then the response could looks like:
<live-stream> {# some root node if needed #}
    <turbo-stream action="update" target="popup"> {# turbo streams - can be more than one #}
        <template>
            Product was added to cart.
        </template>
    </turbo-stream>
    <live-template>{# only one #}
        New html for live component.
    </live-template>
</live-stream>

Hey @sabat24!

To achieve that I tried to return in live action a simple turbo response

To make sure I understand, you have a LiveAction inside of a live component and you are returning (via rendering a Twig template) a stream response like this?
<turbo-stream action="replace" target="popup">
    <template>
         Product was added to cart box
    </template>
</turbo-stream>

If so, this is, indeed, not a situation that has been considered before :). Live components are always meant to return their own HTML, not HTML for other parts of your page or a turbo stream. Btw, who is processing the Turbo Stream response that you return? I would not have expected that to happen automatically, even with Turbo active.
In theory, we could support something like this... though I'm not sure the best way. Certainly your <live-stream> idea is logical... but now would have 2 different formats returned for a live component based on the situation: the "normal" one and this one, where it is a combination of the live component HTML and turbo stream HTML. It's logical... just not sure how I feel about it :)

To make sure I understand, you have a LiveAction inside of a live component and you are returning (via rendering a Twig template) a stream response like this?
<turbo-stream action="replace" target="popup">
    <template>
         Product was added to cart box
    </template>
</turbo-stream>

Exactly.

If so, this is, indeed, not a situation that has been considered before :). Live components are always meant to return their own HTML, not HTML for other parts of your page or a turbo stream. Btw, who is processing the Turbo Stream response that you return? I would not have expected that to happen automatically, even with Turbo active.

Turbo makes this job out of the box. I've just installed a clear SF5.4 project with latest Turbo (v. 2.20) and Live Component (v. 2.20) bundles to test this behaviour in an isolated environment. I was able to reproduce this behaviour just by returning mentioned above piece of code from my LiveAction

In theory, we could support something like this... though I'm not sure the best way. Certainly your <live-stream> idea is logical... but now would have 2 different formats returned for a live component based on the situation: the "normal" one and this one, where it is a combination of the live component HTML and turbo stream HTML. It's logical... just not sure how I feel about it :)

Basically I agree with you that supporting 2 formats it's not a case which was planned and such behaviour is probably a side effect. However such effect works quite well. For example it's very easy to display some modal or update any part of site using data returned from live component's response triggered by some action. The best part is that I do not have to touch any js file at all.
So all in all my point is to tame that "side effect", tweak it a bit and change into something controlled by you and more planned.


Not working properly with react native 0.57.4

Hey, since I upgraded to 0.57.4 triangles dont seem to get rendered properly anymore on iOS.
From this issue: https://github.com/facebook/react-native/issues/21945 I get that the problem is from native's new version but I wonder if anyone has found a temporal solution? It doesn't look like a bug they'll prioritize... rendering this lib useless :(
Thanks!

any one found a temp solution for this ?

I undid this commit on my node_modules instance of react-native https://github.com/facebook/react-native/commit/dba2235d95e46514206bcfaefc7e965193536fe8
shitty workaround ;(

Just an FYI for anyone running into this: you can add a borderRadius to the triangle to fix this.
I added comment on the issue: https://github.com/facebook/react-native/issues/21945#issuecomment-473965109

nice find, thanks for sharing! :)


Changing keymaps requires a restart

I use multiple keymaps (input sources) on my laptop. Dvorak when I'm on the internal keyboard and then US when I use my hardware Dvorak keyboard at the office.
Each time I switch between the different keymaps, I need to restart skhd in order for it to correctly get the new keymap and bind the right keys. If I don't restart, it holds the previous mapping so CMD-T is mapped to the action bound to CMD-K
My expectation would be that I could switch keymaps and not need to kill/restart the process.

Forgot to mention that this is on Mojave.

So this is just due to a caching optimization done in skhd: https://github.com/koekeishiya/skhd/blob/master/src/locale.c#L88
Which is only called once, in the startup routine.
We'd need a way to track when a keymap switch occur (is there an API for this?).
I'd like to avoid having to call this every time we parse the config-file, but that may be the only approach is there is no API available.
No ETA for now.

This seems like it might be a public API, but I'm no macOS developer: https://stackoverflow.com/a/26024628

I was able to fix this by using Hammerspoon's hs.keycodes.inputSourceChanged() and just running an hs.execute('pkill skhd')
The source for how they implement the watcher is here: Source

Fixed on master.

part of release 0.3.1. closing this.

Is it possible to disable this feature? I use multiple languages daily, so I frequently switches between multiple input sources, but those layouts are all same. So I don't want skhd to reload config every time I switches windows, which might triggers input source switches, in turn, reloading skhd config.

Ideally, it would be better to add an option for this feature, like the hotload option.


Command line reference contains no info other than what is shown in help for each command

Consider adding more details, or at least link to conceptual documentation.
(originally tracked as part of #424)

Closing for now; can re-open if outcome of #506 and related issues leads us in this direction.


unprocessed record handling in BatchWrite.ts

Hi @jeskew ,
Thank you for maintaining the repo.
I see that in BatchWrite.ts, we are manually handling the unprocessed records and sending them back to AWS for retry.
Why do we need this logic when we already have an exponential backoff logic that is supported by AWS-SDK?

Hi @anupareek,
Batch operations are a bit unique in the way they process errors. Per the DynamoDB developer guide, a "batch operation can tolerate the failure of individual requests in the batch." What this means is that the SDK will only retry requests where all individual requests failed. If you send a BatchWriteItem request with 25 items and each one of them is throttled, then the SDK will retry the whole batch request. If 1 item is written and 24 are throttled, then DynamoDB will report a success with some unprocessed records, and the SDK will not retry.

Thanks @jeskew !


PyQt5 not installing

I'm only getting error messages when trying to use the install code, check the issue

Hello @elderny. Can you provide the error you are getting? Also, what version of python are you using and what operating system are you running on?

hi there, I fixed the error by manually installing PyQt5 and restarting my PC. One question, is there any way to increase depth or skills?


Fixes issue #2826 - Update build to use Java 17 and Java 19

Required
Associated issue: #2826

@Thihup Thanks!


Large Cookie Size Issue Due to IDataSerializer not using gzip compression : Documentation needed

I have a .NET 4.5.2 web app that uses ASP.NET Identity for authentication. There is large data in one of the claims (Serialized json) which went un-noticed until we tried to share the cookie with asp.net core application.
Basically, the IDataSerializer implementation used by Katana has gzip compression while writing cookie. Same is absent in Interop serializer and asp.net core serializer. This results in large cookie which mandates chunking.
I would like to know reason behind this change(no compression in asp.net core vs gzip in katana/owin). Also if we could highlight this change in the documentation, it would help developers to comprehend drastic change in cookie size after enabling AspNetTicketDataFormat
Software versions
Check the .NET target framework(s) being used, and include the version number(s).

[ ] .NET Core 2.2
[ ] .NET Framework 4.5.2

If using the .NET Core SDK, include dotnet --info output. If using .NET Framework without the .NET Core SDK, include info from Visual Studio's Help > About Microsoft Visual Studio dialog.

dotnet --info output or About VS info
<replace>

@vaibhavramdasi  2.2 is out of support. Have you tested this on 5.0?
@Tratcher  would this be useful in the migration docs?

@blowdart for comment.

We're back at "don't compress data that is encrypted and can include user-controlled information"
The change was made in light of the crime and breach attacks, and the potential for the principle behind them to apply elsewhere. It was too breaking to backport. We can note that cookies are no longer compressed, and that developers should minimize the amount of claims included to just those necessary for their needs.

@vaibhavramdasi  can you recommend a doc this should be added to? How about the following?

https://docs.microsoft.com/en-us/aspnet/core/security/authentication/cookie
https://docs.microsoft.com/en-us/aspnet/core/migration/identity
https://docs.microsoft.com/en-us/aspnet/core/migration/proper-to-2x/
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/
https://docs.microsoft.com/en-us/aspnet/core/security/authorization/limitingidentitybyscheme
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/cookie
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity

That seems like overkill. I can create an include file with the information and add it to multiple docs.

@vaibhavramdasi can you recommend a doc this should be added to? How about the following?

https://docs.microsoft.com/en-us/aspnet/core/security/authentication/cookie
https://docs.microsoft.com/en-us/aspnet/core/fundamentals/app-state#cookies
https://docs.microsoft.com/en-us/aspnet/core/migration/identity
https://docs.microsoft.com/en-us/aspnet/core/migration/proper-to-2x/
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/
https://docs.microsoft.com/en-us/aspnet/core/security/authorization/limitingidentitybyscheme
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/cookie
https://docs.microsoft.com/en-us/aspnet/core/security/authentication/identity

That seems like overkill. I can create an include file with the information and add it to multiple docs.

I think this should be added to all ASP.NET Core Cookie authentication related docs. I don't see one doc in above list from where I came to know about this change.
https://docs.microsoft.com/en-us/aspnet/core/security/cookie-sharing?view=aspnetcore-2.2#share-authentication-cookies-with-aspnet-core-identity

The cookie sharing doc does seem the most appropriate place to document a behavioral difference vs the prior platform.

The cookie sharing doc does seem the most appropriate place to document a behavioral difference vs the prior platform.

I added it to the cookie sharing doc. But I'm not documenting new behavior. I'm documenting the behavior and good advice
I can remove some of the files  in #21571, but the information doesn't hurt.


What datetime format is needed for market.trade() ?

I'm trying to get market trade history using python-bitshares, and am using the following datetime format:
"2017-12-29T19:16:36Z"
It results in the following error:
"grapheneapi.graphenewsrpc.RPCError: Day of month value is out of range 1..31: Day of month value is out of range 1..31: unable to convert ISO-formatted string to fc::time_point_sec"
Am I not using the proper date format?
More details:
Traceback (most recent call last):
  File "/home/btsapi/python-bitshares/bitsharesapi/bitsharesnoderpc.py", line 42, in rpcexec
    return super(BitSharesNodeRPC, self).rpcexec(payload)
  File "/home/btsapi/.local/lib/python3.6/site-packages/grapheneapi/graphenewsrpc.py", line 160, in rpcexec
    raise RPCError(ret['error']['message'])
grapheneapi.graphenewsrpc.RPCError: Day of month value is out of range 1..31: Day of month value is out of range 1..31: unable to convert ISO-formatted string to fc::time_point_sec

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test.py", line 74, in <module>
    temp_market_history = list(target_market.trades(start="2017-12-20T20:02:08+00:00", stop="2017-12-21T20:02:08+00:00", limit=100))
  File "/home/btsapi/python-bitshares/bitshares/market.py", line 269, in trades
    limit)
  File "/home/btsapi/.local/lib/python3.6/site-packages/grapheneapi/graphenewsrpc.py", line 195, in method
    r = self.rpcexec(query)
  File "/home/btsapi/python-bitshares/bitsharesapi/bitsharesnoderpc.py", line 50, in rpcexec
    raise exceptions.UnhandledRPCError(msg)
bitsharesapi.exceptions.UnhandledRPCError: Day of month value is out of range 1..31: Day of month value is out of range 1..31: unable to convert ISO-formatted string to fc::time_point_sec

I make use of datetime.isoformat() to get a string like '2017-11-30T11:35:27.638665+00:00'

I'm getting this same error and I have used the methods described above
code and output:
https://pastebin.com/43AhbVaS

market.trades expects an instance of datetime. Please use
datetime.utcfromtimestamp(z0)

instead of
datetime.utcfromtimestamp(z0).strftime('%Y-%m-%dT%H:%M:%S')


Client Allocation Request for: M2M Economy

Client Allocation Questions
Core Information

Name: M2M Economy
Website / Social Media: https://merklebot.com, ([at]merkleb0t, Twitter)
Region: United States
DataCap Requested: 82 TiB
Addresses to be Notarized: f3ut3b7muto3gqesiagrbyxuv54wvtkpojfbsuabjg4r4smihwi2ujbqaazn6ah2pabbnwfvodm2c3fsuwn4ja
Notary Requested: Andress Sarria

Application created via filplus.storage

This user’s identity has been verified through filplus.storage


Data: project addition by harshal2002

Add a new project to the list
Hello Priyankar,
I want to add my static Netflix Clone project
Technologies used: HTML, CSS
Repository Link: https://github.com/harshal2002/NetflixClone
This is a beginner-level yet effective project where I cloned the frontend part of Netflix website using Html and CSS. ProjectsHut is a great open-source initiative so please let me add my project to ProjectsHut's list of projects.
Record

[X] I agree to follow this project's Code of Conduct
[X] I'm a GSSoC'23 contributor
[X] I want to work on this issue

Completed. Thanks for your contributions 🎉 ❤


error vnet peering across tenants using Cloud Shell

Hi there,
getting an error when using Cloud shell for vnet peering across tenants:
https://docs.microsoft.com/en-us/azure/virtual-network/create-peering-different-subscriptions#cli
Using desktop native CLI works just fine.
Cloud shell:
az network vnet peering create \

  --name myVnetAToMyVnetB \
  --resource-group test \
  --vnet-name vnet-home \
  --remote-vnet-id "/subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MC_cloud-shell-storage-westeurope_thecluster_westeurope/providers/Microsoft.Network/virtualNetworks/aks-vnet-94615314" \
  --allow-vnet-access

Option '--remote-vnet-id' has been deprecated and will be removed in version '2.1.0'.
Subscription 'xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' not found. Check the spelling and casing and try again.
native CLI:
C:\Users\shays>az network vnet peering create --name myVnetAToMyVnetB --resource-group test --vnet-name vnet-home --remote-vnet-id /subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MC_cloud-shell-storage-westeurope_thecluster_westeurope/providers/Microsoft.Network/virtualNetworks/aks-vnet-94615314 --allow-vnet-access
{
"allowForwardedTraffic": false,
"allowGatewayTransit": false,
"allowVirtualNetworkAccess": true,
"etag": "W/"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"",
"id": "/subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/vnet-home/virtualNetworkPeerings/myVnetAToMyVnetB",
"name": "myVnetAToMyVnetB",
"peeringState": "Initiated",
"provisioningState": "Succeeded",
"remoteAddressSpace": {
"addressPrefixes": [
"<IP_ADDRESS>/8"
]
},
"remoteVirtualNetwork": {
"id": "/subscriptions/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MC_cloud-shell-storage-westeurope_thecluster_westeurope/providers/Microsoft.Network/virtualNetworks/aks-vnet-94615314",
"resourceGroup": "MC_cloud-shell-storage-westeurope_thecluster_westeurope"
},
"resourceGroup": "test",
"type": "Microsoft.Network/virtualNetworks/virtualNetworkPeerings",
"useRemoteGateways": false
}

@shayshahak is what you shared the exact error kicked back in cloud shell? It looks like your original input is using a deprecated command, what version of AZ CLI is on your local machine that worked?

hi,
yes, this is the exact error. don't know about the deprecated. you can ask Azure Networking PM for that, this feature is relatively new.
as for my local CLI version:
azure-cli (2.0.37)

@tjprescott can you confirm if this is simply due to latest CLI deprecating the original command? Sounds like a CLI versioning issue and not specific to cloud shell.

The deprecation is not why this command isn't working. The non-deprecated form of --remote-vnet-id is simply --remote-vnet. The source doc needs to be updated.
@shayshahak you are using a very old version of the CLI. If you try your scenario again on the latest version of the CLI (2.0.52) can you confirm whether or not the scenario work locally but not on Cloud Shell, or does it not work on either?

hi @tjprescott , I upgraded my local CLI to the latest (2.0.52), ran it locally and it passed:
C:\Users\shays>az network vnet peering create --name myVnetA2ToMyVnetB --resource-group test --vnet-name vnet-home2 --remote-vnet-id /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MC_cloud-shell-storage-westeurope_thecluster_westeurope/providers/Microsoft.Network/virtualNetworks/aks-vnet-94615314 --allow-vnet-access
Option '--remote-vnet-id' has been deprecated and will be removed in version '2.1.0'.
{
"allowForwardedTraffic": false,
"allowGatewayTransit": false,
"allowVirtualNetworkAccess": true,
"etag": "W/"f39efd80-b8a8-470f-8961-b12c25cec6a6"",
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/test/providers/Microsoft.Network/virtualNetworks/vnet-home2/virtualNetworkPeerings/myVnetA2ToMyVnetB",
"name": "myVnetA2ToMyVnetB",
"peeringState": "Initiated",
"provisioningState": "Succeeded",
"remoteAddressSpace": {
"addressPrefixes": [
"<IP_ADDRESS>/8"
]
},
"remoteVirtualNetwork": {
"id": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MC_cloud-shell-storage-westeurope_thecluster_westeurope/providers/Microsoft.Network/virtualNetworks/aks-vnet-94615314",
"resourceGroup": "MC_cloud-shell-storage-westeurope_thecluster_westeurope"
},
"resourceGroup": "test",
"type": "Microsoft.Network/virtualNetworks/virtualNetworkPeerings",
"useRemoteGateways": false
}
C:\Users\shays>
then I ran it again from Cloud Shell CLI and it failed:
az network vnet peering create --name myVnetA3ToMyVnetB --resource-group test --vnet-name vnet-home3 --remote-vnet-id /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MC_cloud-shell-storage-westeurope_thecluster_westeurope/providers/Microsoft.Network/virtualNetworks/aks-vnet-94615314 --allow-vnet-access
Option '--remote-vnet-id' has been deprecated and will be removed in version '2.1.0'.
Subscription 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' not found. Check the spelling and casing and try again.
shay@Azure:~$
so it seems scenario work locally but not on Cloud Shell

@shayshahak thank you for the confirmation. @jluk @yugangw-msft my best guess would be this has something to do with how auth is handled in Cloud Shell such that the user doesn't need to log in. @shayshahak can you share a--debug trace from Cloud Shell for the failing instance?

@tjprescott here is the debug output from using the Cloud Shell:
az network vnet peering create --name myVnetA3ToMyVnetB --resource-group test --vnet-name vnet-home3 --remote-vnet-id /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MC_cloud-shell-storage-westeurope_thecluster_westeurope/providers/Microsoft.Network/virtualNetworks/aks-vnet-94615314 --allow-vnet-access --debug
Command arguments: ['network', 'vnet', 'peering', 'create', '--name', 'myVnetA3ToMyVnetB', '--resource-group', 'test', '--vnet-name', 'vnet-home3', '--remote-vnet-id', '/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/MC_cloud-shell-storage-westeurope_thecluster_westeurope/providers/Microsoft.Network/virtualNetworks/aks-vnet-94615314', '--allow-vnet-access', '--debug']
Event: Cli.PreExecute []
Event: CommandParser.OnGlobalArgumentsCreate [<function CLILogging.on_global_arguments at 0x7f56f5292a60>, <function OutputProducer.on_global_arguments at 0x7f56f502f158>, <function CLIQuery.on_global_arguments at 0x7f56f4ddbbf8>]
Event: CommandInvoker.OnPreCommandTableCreate []
Installed command modules ['acr', 'acs', 'advisor', 'ams', 'appservice', 'backup', 'batch', 'batchai', 'billing', 'botservice', 'cdn', 'cloud', 'cognitiveservices', 'configure', 'consumption', 'container', 'cosmosdb', 'dla', 'dls', 'dms', 'eventgrid', 'eventhubs', 'extension', 'feedback', 'find', 'hdinsight', 'interactive', 'iot', 'iotcentral', 'keyvault', 'lab', 'maps', 'monitor', 'network', 'policyinsights', 'profile', 'rdbms', 'redis', 'relay', 'reservations', 'resource', 'role', 'search', 'servicebus', 'servicefabric', 'signalr', 'sql', 'storage', 'vm']
Loaded module 'acr' in 0.018 seconds.
Loaded module 'acs' in 0.003 seconds.
Loaded module 'advisor' in 0.001 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'ams' in 0.005 seconds.
Loaded module 'appservice' in 0.006 seconds.
Loaded module 'backup' in 0.003 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'batch' in 0.009 seconds.
Loaded module 'batchai' in 0.003 seconds.
Loaded module 'billing' in 0.001 seconds.
Loaded module 'botservice' in 0.003 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'cdn' in 0.002 seconds.
Loaded module 'cloud' in 0.001 seconds.
Loaded module 'cognitiveservices' in 0.001 seconds.
Loaded module 'configure' in 0.001 seconds.
Loaded module 'consumption' in 0.002 seconds.
Loaded module 'container' in 0.002 seconds.
Loaded module 'cosmosdb' in 0.003 seconds.
Loaded module 'dla' in 0.004 seconds.
Loaded module 'dls' in 0.004 seconds.
Loaded module 'dms' in 0.002 seconds.
Loaded module 'eventgrid' in 0.002 seconds.
Loaded module 'eventhubs' in 0.003 seconds.
Loaded module 'extension' in 0.001 seconds.
Loaded module 'feedback' in 0.001 seconds.
Loaded module 'find' in 0.001 seconds.
Loaded module 'hdinsight' in 0.001 seconds.
Loaded module 'interactive' in 0.000 seconds.
Loaded module 'iot' in 0.004 seconds.
Loaded module 'iotcentral' in 0.001 seconds.
Loaded module 'keyvault' in 0.005 seconds.
Loaded module 'lab' in 0.003 seconds.
Loaded module 'maps' in 0.001 seconds.
Loaded module 'monitor' in 0.006 seconds.
Loaded module 'network' in 0.025 seconds.
Loaded module 'policyinsights' in 0.001 seconds.
Loaded module 'profile' in 0.001 seconds.
Loaded module 'rdbms' in 0.005 seconds.
Loaded module 'redis' in 0.002 seconds.
Loaded module 'relay' in 0.003 seconds.
Loaded module 'reservations' in 0.002 seconds.
Loaded module 'resource' in 0.006 seconds.
Loaded module 'role' in 0.004 seconds.
Loaded module 'search' in 0.002 seconds.
Loaded module 'servicebus' in 0.004 seconds.
Loaded module 'servicefabric' in 0.002 seconds.
Loaded module 'signalr' in 0.001 seconds.
Loaded module 'sql' in 0.006 seconds.
Event: CommandLoader.OnLoadCommandTable []
Loaded module 'storage' in 0.031 seconds.
Loaded module 'vm' in 0.013 seconds.
Loaded all modules in 0.210 seconds. (note: there's always an overhead with the first module loaded)
Extensions directory: '/home/shay/.azure/cliextensions'
Event: CommandInvoker.OnPreCommandTableTruncate []
Event: CommandInvoker.OnPostCommandTableCreate [<function register_global_subscription_argument..add_subscription_parameter at 0x7f56f4d639d8>, <function register_ids_argument..add_ids_arguments at 0x7f56f4d1b400>]
Event: CommandInvoker.OnCommandTableLoaded []
Event: CommandInvoker.OnPreParseArgs [<function _documentdb_deprecate at 0x7f56f232e378>]
Event: CommandInvoker.OnPostParseArgs [<function OutputProducer.handle_output_argument at 0x7f56f502f1e0>, <function CLIQuery.handle_query_parameter at 0x7f56f4ddbc80>, <function register_ids_argument..parse_ids_arguments at 0x7f56f4d1b488>, <function handler at 0x7f56f2286a60>]
Option '--remote-vnet-id' has been deprecated and will be removed in version '2.1.0'.
Getting management service client client_type=NetworkManagementClient
Subscription 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' not found. Check the spelling and casing and try again.
telemetry.save : Save telemetry record of length 2532 in cache
telemetry.check : Negative: The /home/shay/.azure/telemetry.txt was modified at 2018-12-06 19:35:29.972294, which in less than 600.000000 s
shay@Azure:~$

@tjprescott could you reassign this to @maertendMSFT who is the new service owner?


UI pagination support for backends that doesn't support total count

Problem
Certain backends will not support a total count returned in their list APIs. The pagination component in this case will be incompatible showing, for example 0-0 of 0 in the counts.

Proposed Solution
Enhance the pagination component to stop showing count if a zero is returned. In addition, pagination should only show the next and previous buttons to indicate that there are more pages available.
Additional context
Version: 0.5.1

cc @bhadrip


Sustainability application that tests websites for carbon footprint impacts

Discussed in https://github.com/orgs/myHerbAI/discussions/7

Originally posted by myHerbDev September 24, 2024
A simple sustainability application that tests websites for carbon footprint impacts provides ratings and personalized recommendations. We'll use Python for the backend, Flask for the web framework, and a simple HTML/CSS frontend. Here's an essential structure for the application:
Backend (Python/Flask)
Frontend (HTML/CSS)
Carbon footprint calculation module
Recommendation engine
Database to store results and recommendations
Let's start with the backend:

From Flask import Flask, render_template, request, jsonify
from carbon_footprint import calculate_carbon_footprint
from recommendations, import get_recommendations

app = Flask(__name__)

@app.route('/')
def index():
    return render_template('index.html')

@app.route('/analyze', methods=['POST'])
def analyze():
    url = request.form['url']

    # Calculate carbon footprint
    footprint, rating = calculate_carbon_footprint(url)

    # Get recommendations
    recommendations = get_recommendations(footprint)

    return jsonify({
        'footprint': footprint,
        'rating': rating,
        'recommendations': recommendations
    })

if __name__ == '__main__':
    app.run(debug=True)

app.py
Now, let's create the carbon footprint calculation module:
import requests
from bs4 import BeautifulSoup

def calculate_carbon_footprint(url):
    # This is a simplified calculation. In a real-world scenario, you'd need to consider
    # many more factors and use more sophisticated methods.

    response = requests.get(url)
    soup = BeautifulSoup(response.text, 'html.parser')

    # Calculate based on page size
    page_size = len(response.content) / 1024  # in KB

    # Calculate based on number of resources
    num_images = len(soup.find_all('img'))
    num_scripts = len(soup.find_all('script'))

    # Simple formula (for demonstration purposes)
    footprint = page_size * 0.2 + num_images * 0.5 + num_scripts * 0.3

    # Assign rating
    if footprint < 50:
        rating = 'A'
    elif footprint < 100:
        rating = 'B'
    elif footprint < 150:
        rating = 'C'
    else:
        rating = 'D'

    return footprint, rating

carbon_footprint.py
Next, let's create the recommendation engine:
def get_recommendations(footprint):
    recommendations = []

    if footprint > 100:
        recommendations.append("Optimize images to reduce file sizes")
    if footprint > 150:
        recommendations.append("Minimize the use of external scripts")
    if footprint > 200:
        recommendations.append("Consider using a content delivery network (CDN)")

    recommendations.append("Use green hosting providers")
    recommendations.append("Implement lazy loading for images and videos")

    return recommendations

recommendations.py
Now, let's create a simple HTML template for the frontend:
<!DOCTYPE html>

    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Website Sustainability Analyzer</title>

Website Sustainability Analyzer

        <form id="analyzeForm">
            <input type="text" id="url" name="url" placeholder="Enter website URL" required>
            <input type="submit" value="Analyze">
        </form>

index.html
This simple application provides a basic framework for analyzing website sustainability. To run the application:
Install the required Python packages:
pip install flask requests beautifulsoup4
Save all the files in the appropriate directory structure.
Run the Flask application:
python app.py
Open a web browser and navigate to http://localhost:5000.
This application is a starting point and can be expanded in many ways:

Improve the carbon footprint calculation by considering more factors and using more accurate methods.
Implement a database to store analysis results and track improvements over time.

Could you add more detailed recommendations and resources for each suggestion?

Implement user authentication to allow users to save and compare multiple websites.
Create a more comprehensive front end with the carbon footprint data visualizations.
Integrate with real-world carbon offset programs or green hosting providers.

[ ] Remember that this is a simplified version. Real-world carbon footprint calculations for websites are much more complex, involving factors like server energy consumption, network transfer, and user device energy consumption.
@myHerbAI/collaborative-team

git fetch origin
git checkout sustainability-app


Does not work with Spark 2.0

Hi,
I was using the connector with Spark 1.6.2 and it was working fine, once we upgraded it to Spark 2.0, it creates the table but doesn't write anything.

Hi @abstract-karshit,
I want to start using Memsql Spark connector with Spark 2.0, Can you update me if you succeeded to do so ?
Also have you complied the memsql-spark-connecter with Spark 2.0 jars ?
Thanks

the connector is compiled against spark 1.5.2 - our sql pushdown code hooks into the catalyst optimizer so running against spark 2.0 won't work out of the box.
porting to spark 2.0 will require some amount of rewriting since the catalyst internal apis have changed. we're looking into doing this but not timeline yet.

Its almost 3 months , but Memsql is still supporting Spark 1.5 only. I was almost ready to recommend memsql to a client when I got stuck with this issue in Spark 2.0. Memsql context is no more working with spark 2.0, the only option left is to use jdbc for query and data loading just like any other database.Is memsql going out of business ?Why is it taking so long to upgrade to Spark 2.0 ?

The MemSQL Spark connector will support Spark 2.0 by February 2017 (as announced here: http://www.memsql.com/releases/apache-spark-integration/).


Action #8, DrawLine

Created DrawLine class that draws a line on the specified page of the specified PDF. More pages are created if necessary.
Input and output can be found in DrawLineResources folder

This is one of the largest pull requests made so far. How can there be no review comments?

This is one of the largest pull requests made so far. How can there be no review comments?

I cannot speak for the reviewer but I imagine he didn't find anything he thought worth commenting on. that is, anything he felt needed changing. I do believe he told me over discord he didn't find anything wrong but that is obviously not cataloged here.


Add TexturePack support (Texture Atlas + Json file)

Hello,
It seems to me that the current TextureAtlas object is lacking the ability to extract sprites and/or animations from a single image file (in jpg, png or else) and a companion json file (containing the details of where are the sprites in the image file).
The technique is used widely, and one of the most famous format/standard is from the following Texture Packer software: https://www.codeandweb.com/texturepacker
Although BabylonJS is not a 2D engine, that is still very useful for menus for instance !
Note that libGDX is also providing a texture packer, in case your are interested in coding one in javascript for BabylonJS, Phaser and other JS engines: https://github.com/libgdx/libgdx/wiki/Texture-packer
Feature request
Add import of animations and sprites from a SpriteSheet + JSON file pair
add a texture packer (but that's probably out-of-scope): Moved to #6877

Hi All, Any information about the achievment of this task/issue. I could help but want to avoid double work.

Pinging @PolygonalSun

I have a definitional question about what folks would like the TextureShader to be.  If anyone is watching, I would be interested to read their responses.
Currently, BABYLON allow textures to be imported but the application is a matter of careful measuring.  Like this:  https://www.babylonjs-playground.com/#ICZEXW
That is awkward and brittle.  It would be better to be able to pluck sprites out by some previously affixed label or index.  This label/index is presumably available from a "companion file", along with coordinates, by the "texture packer".  The TextureAtlas object would make the mapping from label/index to coordinates.
Warm?  Warmer?
Floating in the ether somewhere are file formats for texture packers which built the aforementioned "companion file".  TextureAtlas should be able to read and use one of those formats.  Presumably a popular one.
Is this in the ballpark?

already developed a texture pack extension which support all the standard companion file format as loader. did not had the time to integrate into the framework. it's actually work as standalone bundle which add texturepack support to Babylon.
Babylon team is aware of this.
sent from Mars rover.

From: Brian Todd<EMAIL_ADDRESS>Sent: Tuesday, September 24, 2019 1:40:30 AM
To: BabylonJS/Babylon.js<EMAIL_ADDRESS>Cc: Guillaume Pelletier<EMAIL_ADDRESS>Manual<EMAIL_ADDRESS>Subject: Re: [BabylonJS/Babylon.js] Add TexturePack support (Texture Atlas + Json file) (#5314)
I have a definitional question about what folks would like the TextureShader to be. If anyone is watching, I would be interested to read their responses.
Currently, BABYLON allow textures to be imported but the application is a matter of careful measuring. Like this: https://www.babylonjs-playground.com/#ICZEXW
That is awkward and brittle. It would be better to be able to pluck sprites out by some previously affixed label or index. This label/index is presumably available from a "companion file", along with coordinates, by the "texture packer". The TextureAtlas object would make the mapping from label/index to coordinates.
Warm? Warmer?
Floating in the ether somewhere are file formats for texture packers which built the aforementioned "companion file". TextureAtlas should be able to read and use one of those formats. Presumably a popular one.
Is this in the ballpark?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/BabylonJS/Babylon.js/issues/5314?email_source=notifications&email_token=AFM3ZMGITELHJVA25NSFY2LQLD5Q5A5CNFSM4FZL22T2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD7LVK5A#issuecomment-534205812, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AFM3ZMHAYC2CVGZMX2Q57ULQLD5Q5ANCNFSM4FZL22TQ.

I gave your code to @briantbutton

To clarify, I extracted the TexturePacker to its own issue: #6877

It seems that the module we would want to enhance for this ticket is Sprites (https://doc.babylonjs.com/babylon101/sprites).  Yes?  No?
I cannot think of any reason to leave Sprites as they are, with partial support for the external TexturePacker utility and building a new, different utility in BABYLON.  Please gently let me know if I fail to understand something.

Agree!

So after doing so looking around under the hood and trying to be a cool kid and deploy my own sprite map with actors I was able to establish what feature is lacking from the current system and some flaws with how we are rending them to the screen.
https://playground.babylonjs.com/#X2FVF5#3
The top row is the standard Sprite system.  I had to hack it a little bit to account for the scaling changes.  The bottom rows are a quickly deployed PerFragment Sprite Shader that is rendering on quads just to demonstrate how the base system should look.
I am going to purpose some changes and additions but I need some support here on how to keep the backward compatibility.  I want to add all of the features of the TexturePackers standard JSON from into the Buffer that we are passing the Sprite system
//Mat4 Frame Structure
//[0] : Frame xywh
//[1] : spriteSourceSize xywh
//[2] : sourceSize xy rotated trimmed
//still have 4 slots to do things with

Is the structure I use when I do PerFragment Sprite stuff and our current shader seems to have quite a bit of that ready to go in the attribute buffer.  So I am coming to the assumption is that the error is in SpriteManager.  Im particularly dubious of lines
https://github.com/BabylonJS/Babylon.js/blob/ef59cbec46fd1800de0c3578b053d8361b635fca/src/Sprites/spriteManager.ts#L280
to 292.
The plan is to make these things render in the correct position, a 1x1 sprite should not show a seam between them when placed in the correct spots.  And then make sure that the clipping system and position data passed from the JSON file actually supports more than just the frame. Oh and I gotta add the Parser for JSON Array Type and have the Sprite Manager auto-detect which type of JSON it is.
Ummmm anything else?
In addition, I want to deploy a SpriteMaterial which will be a Shader for rendering out more specific sprites who might need lighting effects normals maps (non billboard) etc, which will all be from #include stuff...

First I think that we need to modify the structure ONLY if we have the data so we need (Look at what I did for Particles for instances. I use #ifdef in the shader to make sure  no extra data is processed if not required)
You  plan seem fine to me. The core priorities are:

No impact of perf if the feature is not used
No backward compat issue

I also need some suggestions on how to handle non-concurrent frame animations.  Otherwise, support for animations on "trimmed and rotated" Atlases will be hard to pull off do to the auto arrangement that happens in the TexturePacker program.

I would be leaning toward a support texture buffer that holds the animation cells and timings that is auto-generated when some new method like "sprite.addAnimationFrame" would take care off

I like it!

This is a simplified version of the idea I was talking about with using lookup textures.  I was seeing a benefit to making something like this in addition to updated the current sprite system.
The reason for why is clear with these two PGs:
https://playground.babylonjs.com/#X2FVF5#11
^ is the classic system rending out 200by200 sprites.  Pretty laggy, because at this point there is a ton of vertex data.  Not ideal for a Sprite Map level.  Great for characters and actors on a sprite stage because they all have their own movement.
https://playground.babylonjs.com/#3X5XME#8
^Is a texture lookup system, doing 2000 by 2000 Sprites.  Great for level design, Not ideal for actors as it's restricted to a grid.  Can and will implement lighting effects because we have fragment data.
I need some input on how to make the structure for the animation texture.
Ideally, we could pass the cellID so we can get the frame info from the frame map, and then have it increment through the next frames at certain time intervals.  But I am not really sure how to handle that as of yet...  I kinda had a hacky version in the past but wanna work up something more legit.

The second PG does not work :(
We do support 9patch for images in the GUI not for sprites.

I need some input on how to make the structure for the animation texture.
Can you elaborate more?

https://www.babylonjs-playground.com/#CW0VAQ#8
My bad!  I actually figured it out.  I created a lookup texture method that makes it so you can assign CellID and custom timing for each animation and frame.  With an additional value still blank in case something comes up.
Now I am modifying the frame lookup texture to account for rotation and trimming and will be fixing this up a little bit.
If I can get my command line to stop being a punk ill push the changes to the standard SpriteManager to account for the Json.Array parsing it is lacking.

https://www.babylonjs-playground.com/#958CJY#1
Here you go, had to stick everything in the createScene function

How does the trim parameter work with the TexturePacker?
Here is the format:
"frame": {"x":1,"y":103,"w":24,"h":32},
"rotated": true,
"trimmed": true,
"spriteSourceSize": {"x":4,"y":0,"w":24,"h":32},
"sourceSize": {"w":32,"h":32}

Ive got the rotation and frame figured out, I just dont know how to incourperate trim now.

Sorry but I'm a bit under the water for now and I cannot help  too much :(

(not a big deal if for v1 we do not support trim)

I was about to ask that. hahah!

Pinging @Nodragem: Do you feel like the PR #7198 works the way you expected it? Do you feel like having a new class named SpriteMap is ok for the need?


Endpoint host report is not showing active findings

Bug description
I have not been able to get working endpoint host report in version DefectDojo 2.1.0. I go to /endpoint/host and then select the host. It shows me active findings, which I currently have four findings for one host. From the upper right corner I select Report and /endpoint/<host_id>/report?host_view page is opened. Instead of showing these four active findings this page shows all findings related to the host. When I use filter to show Active=Yes and Verified=Yes it filters everything out and the list is empty. Another host has 32 active findings and using the filter gives two findings. So, I am not able to generate html report with active findings. Am I doing something wrong or what is the best way to get an html report for a vulnerable host?
Steps to reproduce
See above and screenshots
Expected behavior
Endpoint host report with active findings
Deployment method (select with an X)

[X] Docker
[ ] Kubernetes
[ ] GoDojo
[ ] setup.bash / legacy-setup.bash

Environment information

Ubuntu 20.04
DefectDojo 2.1.0

Screenshots (optional)
Here are vulnerable hosts and then I click Imaginary-10 host, which shows 4 active findings:

The report shows more than four findings when the report page opens (102 findings):

If I use filter to set Active and Verified, it shows only one finding. I was expecting four findings:

I can work on it

Fixed in #4942

merged into dev / 2.2.0


Update Stargate to 1.0.51

What this PR does:
Upgrades Stargate dependency from 1.0.50 to 1.0.51

Note: not sure if C*/DSE versions in examples matter a lot but I updated them to the latest matching values just in case.


Fixed point signed adder is incorrect.

Given fixed point form: Q6.3, i.e.
Total width: 6, Integer width: 3, Fractional width: 3
We have:
   -1.5  101100
+   1.0  001000
_______________
   -0.5  100100

However, using the current fixed point signed add, we get:
-2.5: 110100, since its quite literally adding bits. This is before the dat stage is reached, i.e. I confirmed the output in a waveform viewer.

Hmm perhaps this is because I'm misinterpreting it...

I think this is an issue of interpretation. From my understanding, and how we are currently parsing fixed points, is that bit 0 is the signed bit, and bits 1:N are the actual number. That means add will really need to conduct different calculations depending on whether the operands are (1) both positive, (2) both negative, or (3) different signs.

If we instead interpret it as 2s complement fixed point,
Given that 0.5 = 000.100
To get -0.5, we:

Invert bits: 111.011
Add 0'b1: 111.100

We need to adjust -1.5 as well.
1.5 = 001.100

Invert bits: 110.011
Add one: 110.100.

Then we have:
// 2s complement
   -1.5  110.100
+   1.0  001.000
_______________
   -0.5  111.100

Huh! Yeah, I totally agree that two's complement seems like the natural thing to do. The magical thing is that you just get to use a plain old integer adder and it works out, right? This whole two's complement idea is a seriously good innovation!!! 🥈😄
Pretty weird that the other library you found uses sign/magnitude. The whole "four cases for each of the four possible sign combinations" thing is a telltale sign that it seems more complicated than it needs to be. I wonder why… is there any reason why two's complement is better for integers than for fixed-point numbers? Can't think of one at the moment.

Decision: Use two's complement to represent FP.
Reasoning: No concrete reason for why signed magnitude may be useful to represent fixed point numbers. Twos complement provides awesome representation features, and parallels nicely with the bitnum representation.
Changes required: Calyx just interprets bits -- not much there other than understand that the fp_const must use twos complement. However, the dat stage of fud currently interprets FP as signed magnitude. This needs to be changed to twos complement.


19041.789 not supported Help!

Windows10Pro was updated and it no longer works, can someone please help me?

Try replace your rdpwrap.ini with this one from the link
https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini
Of course you need to temporary stop the remote desktop service. Replace the rdpwrap.ini then start the RDP service

Try replace your rdpwrap.ini with this one from the link
https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini
Of course you need to temporary stop the remote desktop service. Replace the rdpwrap.ini then start the RDP service

Hi
the latest rdpwrap.ini (21332.1000-SLInit) do not worked on windows 10 20h2.
Please help me figure out how to fix this problem.
Thanks

Try replace your rdpwrap.ini with this one from the link
https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini
Of course you need to temporary stop the remote desktop service. Replace the rdpwrap.ini then start the RDP service

Hi
the latest rdpwrap.ini (21332.1000-SLInit) do not worked on windows 10 20h2.
Please help me figure out how to fix this problem.
Thanks

Try replace your rdpwrap.ini with this one from the link
https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini
Of course you need to temporary stop the remote desktop service. Replace the rdpwrap.ini then start the RDP service

Hi
the latest rdpwrap.ini (21332.1000-SLInit) do not worked on windows 10 20h2.
Please help me figure out how to fix this problem.
Thanks

Try replace your rdpwrap.ini with this one from the link
https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini
Of course you need to temporary stop the remote desktop service. Replace the rdpwrap.ini then start the RDP service

Hi
the latest rdpwrap.ini (21332.1000-SLInit) do not worked on windows 10 20h2.
Please help me figure out how to fix this problem.
Thanks

Intente reemplazar su rdpwrap.ini con este del enlace
https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini
Por supuesto, debe detener temporalmente el servicio de escritorio remoto. Reemplace rdpwrap.ini y luego inicie el servicio RDP

copy paste?

Try replace your rdpwrap.ini with this one from the link
https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini
Of course you need to temporary stop the remote desktop service. Replace the rdpwrap.ini then start the RDP service

Hi
the latest rdpwrap.ini (21332.1000-SLInit) do not worked on windows 10 20h2.
Please help me figure out how to fix this problem.
Thanks

copy paste

Try replace your rdpwrap.ini with this one from the link
https://github.com/sebaxakerhtc/rdpwrap.ini/blob/master/rdpwrap.ini
Of course you need to temporary stop the remote desktop service. Replace the rdpwrap.ini then start the RDP service

Copy Paste?.....


[Flyout] Missing Opened and Closed event

Describe the bug
The Flyout control does not have an Opened and Closed event. Would be great to have those to update specific logic in an app.
To Reproduce
..
Expected behavior
Simple Opened and Closed event
Screenshots
No response
OS version
Windows 11
.NET version
NET 7
WPF-UI NuGet version
Preview-3
Additional context
No response

Seems to be implemented already:
https://github.com/lepoco/wpfui/blob/development/src/Wpf.Ui/Controls/Flyout.cs#L114

This issue should be closed @pomianowski since the PR has been merged.


Python 2.7 support broken with latest pyrsistent release

pyrsistent release 0.17.0 no longer supports py2
https://github.com/tobgu/pyrsistent/blob/master/CHANGES.txt#L10-L14
Version set here: https://github.com/Julian/jsonschema/blob/master/setup.cfg#L31

Hi, this is a dupe of #732
Have a look at the upstream ticket there in pyrsistent which is where the fix should go.


Mouse pointer on vertical line

From contrebasse on 2014-04-17T10:00:11Z
Spyder Version:  2.3.0dev (3525: re700fc971086 )
Python Version:  2.7.6
Qt Version    :  4.8.5, PyQt4 (API v2) 4.10.4 on Linux
IPython >=0.13  :  2.0.0 (OK)
pyflakes >=0.5.0:  0.5.0 (OK)
pep8 >=0.6      :  1.4.6 (OK)
sphinx >=0.6.6  :  1.2.2 (OK)
rope >=0.9.2    :  0.9.4 (OK)
matplotlib >=1.0:  1.3.1 (OK)
sympy >=0.7.0   :  0.7.5 (OK)
pylint >=0.25   :  1.1.0 (OK)
What steps will reproduce the problem?

Put the mouse pointer over the 79-chars vertical line
Clic to change the current line 3. What is the expected output? What do you see instead? The line gets the clic (and does nothing of it) instead of being "transparent to clics":

the pointer has an arrow shape instead of a common text edit
clicking on it does not change the current line and does not start a selection

Please provide any additional information below
.
This is a minor issue givent that the line is 1px width.
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=1794

From ccordoba12 on 2014-05-24T08:08:38Z
Labels: -Easy MS-v2.3

From ccordoba12 on 2014-05-24T08:19:54Z
This issue was updated by revision 34d392670fbd .
Status: Fixed


【Error】 ERROR at //build/config/linux/pkg_config.gni:116:17: Script returned non-zero exit code.     pkgresult = exec_script(pkg_config_script, args, "value") (CON-469)

How can I solve this problem?
The first time I tried to run the./install.sh command, I got the following error:
  Building wheel for pycryptodome (setup.py): started
  error: subprocess-exited-with-error

  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> See above for output.

  note: This error originates from a subprocess, and is likely not a problem with pip.
  Building wheel for pycryptodome (setup.py): finished with status 'error'
  ERROR: Failed building wheel for pycryptodome
  Running setup.py clean for pycryptodome
  Building wheel for gevent (pyproject.toml): started

So I tried to fix this by installing the necessary dependencies for the system using: sudo apt install build-essential python3-dev
But a new error occurs：
ERROR at //build/config/linux/pkg_config.gni:116:17: Script returned non-zero exit code.
    pkgresult = exec_script(pkg_config_script, args, "value")
                ^----------
Current dir: /home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/.environment/gn_out/
Command: python3 /home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/build/config/linux/pkg-config.py glib-2.0 gio-unix-2.0
Returned 1.
stderr:

Could not run pkg-config.

See //build/chip/linux/BUILD.gn:19:1: whence it was called.
pkg_config("glib") {
^-------------------
See //build/chip/linux/gdbus_library.gni:99:7: which caused the file to be included.
      glib_config,
      ^----------
['gn', 'gen', '/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/.environment/gn_out', '--args=chip_crypto="boringssl" dir_pigweed="/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo"']

Traceback (most recent call last):
  File "/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 335, in install_packages
    subprocess.check_call(
  File "/usr/lib/python3.10/subprocess.py", line 369, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['gn', 'gen', '/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/.environment/gn_out', '--args=chip_crypto="boringssl" dir_pigweed="/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo"']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 857, in <module>
    sys.exit(main())
  File "/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 849, in main
    return EnvSetup(**vars(parse())).setup()
  File "/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 501, in setup
    result = step(spin)
  File "/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/env_setup.py", line 661, in virtualenv
    if not virtualenv_setup.install(
  File "/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 370, in install
    install_packages(gn_target)
  File "/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo/pw_env_setup/py/pw_env_setup/virtualenv_setup/install.py", line 343, in install_packages
    raise subprocess.CalledProcessError(
subprocess.CalledProcessError: Command '['gn', 'gen', '/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/.environment/gn_out', '--args=chip_crypto="boringssl" dir_pigweed="/home/kurisaw/Desktop/esp/esp-matter/connectedhomeip/connectedhomeip/third_party/pigweed/repo"']' returned non-zero exit status 1.

This issue has been resolved and all you need to do is install the following dependencies:
sudo apt install build-essential python3-dev

sudo apt-get install pkg-config

sudo apt-get install libglib2.0-dev libglib2.0-dev-bin libgio2.0-cil-dev


Questions about coordinates of points

Thank you for your outstanding work in the field of surface reconstruction ,But I want to know why this network changes the coordinates of the points.

We will normalize the point cloud before feeding it into the network.

I see, thank you.

I see, thank you.
And I noticed that the training network needs less than 100000 points and faces to input mesh. Can I change this value?

I see,thank you


require_all 2.0 is not compatible anymore

The breaking change was https://github.com/jarmo/require_all/pull/21
I think ideally contentful_model should remove the require_all dependency.

https://github.com/contentful/contentful_model/pull/97 shows that tests no longer run on the latest master.


2000 lines limit

Hi,
First, thank you for this amazing google sheet connector.
This is not really an issue but the 2000 lines limit you set is really low.
Indeed, we want to write more than 7500 lines in a spreadsheet but we can't due to this limit.
The error : Failed to write rows : <type 'exceptions.Exception'> : A spreadsheet cannot contain more than 2000 lines.
Could you increase this limit ? I could download your plugin and do it by myself but it would be no longer up to date with yours.
Thanks in advance.

Hi Lucas,
I added this hard limit 2 years ago because, empirically, the recipe could fail when writing more than 2000 lines to a spreadsheet  There might be a limit on the Google API side (if I remember well, there is a documented limit on the number of cells).
You can increase this limit by modifying the file DATA_DIR/plugins/installed/googlesheets/python-connectors/googlesheets-sheet/connector.py. You can change this variable. Let me know how that works for you.
I plan to rewrite this plugin in the coming weeks. My plan is to use a newer version of the API (Google Sheets API v4) and review all the limits.

Hi Jeremy,
Thanks for your answer.
Yes, that's what I did and it works well.
Great, I prefer using unmodified extension!

Hi @LucasLf, this is now fixed in the 1.0.0 version.


The Web detail page is not displayed

Short summary about the issue/question:

Brief what process you are following:

How to reproduce it:

nni Environment:

nni version:
nni mode(local|pai|remote):
OS:
python version:
is conda or virtualenv used?:
is running in docker?:

need to update document(yes/no):
Anything else we need to know:

Can you paste the output of nnictl experiment status? We need to know if the whole experiment is dead or it's only a web UI issue.
If the experiment it self is still working, please show us the console output of your browser. You can open the browser console by pressing F12 then clicking the Console tab.

The output is {
"errors":[],
"status":"RUNNING"
}
Now the detail page can be displayed normally. I found that this problem only occurs when starting a new trial. When nni.report_final_result gets the first value, the page can be opened.

You can try refresh the page if you run into this problem again.
We will investigate the root cause later. Thanks for your report.

Thank you for your reply.


Sets the allowUncaught parameter for hooks.

https://github.com/mochajs/mocha/issues/2302

@dima117 Thanks!  Can you please add a test in test/runner.js?

I added a test for allowUncaught parameter in hooks.

Do I need to do something else for this PR?

@boneskull What is the state of this PR?

Is it safe to call suite.beforeEach inside a test?

I think yes. Why it may be unsafe?

@dima117 Apologies for not getting to this earlier.

Hello! What is the status of this PR?


What is the correct crypto wallet transfer process I need to do?

Hi,
Can anyone tell me what I need to do to correctly "withdraw" my Storj tokens from an online cryptocurrency trading exchange and deposit them into my  to my wallet IPhone BlockChain.info currency wallet?
Ok, I purchased some STORJ TOKENS ON THE EXCHANGE market, and I used Bitcoin to make the purchase of the Storj tokens on the trading exchange.
My purchase order shows ( BTC-STJ /# of Storj shares) I purchased and own in my crypto online exchange market wallet.
I assume the wallet in the trading exchange is a Bitcoin wallet there's a Bitcoin B on the wallet tab.
I am wanting to transfer my Storj tokens over to my IPhone,app/ BlockChain.info cryptocurrency wallet. My wallet says it will hold Bitcoin or Etherum.
If I bought the Storj tokens with Bitcoin in the online currency exchange using Bitcoin, what is the correct process that I need to use to withdraw my Storj tokens from the exchange over to my wallet?
Do I withdraw my Storj tokens from the cryptocurrency online exchange using the BlockChain.info/Bitcoin Address it to my BlockChain.info
Or do I withdraw the Stroj using the BlockChain Ether Address?
Or do I need to do something totally different to get my Storj tokens into my wallet?
And clarification on this issues would be a big help, I'm not going to move them till I know what the correct steps are for doing this process because if I don't do the steps required correctly, I will probably lose my Storj tokens all together.
Anybody had to deal with this type of issue before? What do I do?
Thanks,
Gary

HI Gary,
This topic is out of scope of what Storj can do. Storj can assist with development, farming, or anything related to the platform. It sounds like you need to submit a request to the exchange you are involved in and get assistance.  Storj is not an exchange or a platform that can discuss token management. How you choose to manage your STORJ tokens is not something Storj can assist.
Nadine

Please be advised that the Blockchain.info wallet does NOT support STORJ or any other ERC20 tokens. If you send STORJ tokens to that wallet from an exchange or anywhere else, you will lose access to those tokens. Only use wallets that you hold the private key of yourself, such as myetherwallet.com, Parity or Mist. If you already sent your tokens to a wallet where private keys are not under your own control, you will need to contact their customer support and ask them to assist you in retrieving the STORJ tokens to an address that you control yourself, like is the case with the wallets I mentioned above. If you need more assistance regarding ethereum wallet management for STORJ tokens, please sign up for our rocketchat at https://community.storj.io and ask in the #eth-support channel.

Hi Heunland,
Thanks amillion, myEtherWallet worked prefectly. Thanks for the clear information on what wallets will work, I spent 5-6 hours searching on the various Storj community websites for any article that was even remotely close to discussing which wallets a person can use if they want to purchase Storj.
When A person has to figure out where to buy Bitcion(FEE) send it to my bitcoin wallet(FEE)  then to an trading exchange(FEE), where I needed to find out somewhere to convert the bitcoin into Etherum. Never found that, so in the exchange. At that point, I was left wondering if There is Storj with 2 seperate codes, 1 for Bitcoin, 1 for Etherum sold on the Exchanges, will the Stoj even be able to be deposited in any ERC20 wallet if bought with bitcoin? Then Im sitting on Bittrex looking for any Storj (Support, article of any type at all for 3 hours.)
((like all the crypto trading exchanges, the Bittrex 5,Star customer support team is so "wicked fast" LOL, at answering questions, they just now replied to my question 78 days ago. Back when I originally wanted to buy Storj tokens. I was asking them what wallet I can use to Hold Storj tokens )) so I have 0% faith in any trading exchanges CS team. And before I ever considered trying to send my Storj tokens to any address in any wallet, (blockchain.info wallets claim to accept Etherum now, but I didnt trust trying until someone with solid Knowledge on the wallet subject replied to me regarding, my conundrum.
Your information is invaluable to a older person thats not computer savey, the snip that replied above your reply needs to be enlightened that commits like hers have no place in any new cryptocommunity. The people looking to invest in crypto need EASYTO: READ, FOLLOW, FIND, USE, DIRECTIONS, EXAMPLES, ETC.......... The scores that investors are being taught to look at before investing in a coin recieves is based on those type plus other factors and that is the one big thing Storj is currently lacking. Ive probably searched no less than 14-20 hours of my time trying to figure out A.) where and how to buy Storj Tokens, B.) A wallet to keep my storj in, C.) a Storj help website that answers all those questions and all the other questions I tried to findout information about that I never found.
When I compare the experience I had with Storj, with the other cryptocion I invested in, ZenCash, it took me under 2 hours and I was done buying my Zencash. The Storj community really needs to focus getting something posted at Storj.io or .com that is written by a noncoder, for a noncoder minded person that is easy to read, clearly points to the help your looking for, and outlines every process for every investor. I started trying to buy Stroj tokens during their ICO, thanks to your help, TONIGHT I finally completed the process and have my Storj token in my wallet. Once again, thank you for you invaluable 411.

Thanks @heunland . @CoinKraken We are currently working on redoing our whole website and onboarding experience. It's active as of now. In terms of purchasing tokens and onboarding, we are currently developing material that makes its easier for you to do this. We're sorry it took you awhile and I'm really glad @heunland was there to help. Give us a few months to get this in place. Our goal is to really focus on community and ensuring all your needs are met. Thanks for being patient.


Add docker-entrypoint.sh for Dockerfile

Proposed workflow:
xk apply # use $XK_WORKDIR environmental variable
xk apply live/infra/gcp-ethereal-argon/
xk gcloud
xk kubectl
xk helm

✅ Implemented in https://github.com/ilyasotkov/exekube/commit/4459572c9a98fd8de10403b6a52884fd25acd987
Create a separate issue to fix further edge cases and error handling.


Full Coverage

Added test to catch the panic response when an invalid member is entered which raises the test coverage from 97% to 100%.

Thank you! I'm always a bit lazy to test panics. That was the very last thing I covered in genesis too :)


fix: upgrade node to v18

What does this change?
Re-do #672, following a downgrade which attempted to fix a bug with releases. The correct fix was to skip HUSKY in CI
Why?
Closer parity with csnx

I didn't see this but it can be closed now @SiAdcock since #841

Completed by https://github.com/guardian/commercial/pull/841


Pressing ^D doesn't work in ftl dev (but does with ftl interactive)

The first time it prints "exit" but doesn't exit, the second time it wedges the console making it unresponsive :(
> exit
> ^D

This will be fixed by https://github.com/TBD54566975/ftl/pull/2817

Actually it was already fixed by https://github.com/TBD54566975/ftl/pull/2810


update(kubernetes): Deployment files

Updating deployment files (automatically generated by helm template). Made using the update-falco-k8s-manifests ProwJob. Do not edit this PR.\n\n/kind update\n\n/area manifests

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by: poiana
Once this PR has been reviewed and has the lgtm label, please assign leogr for approval. For more information see the Kubernetes Code Review Process.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

LGTM label has been added.  Git tree hash: 4cae6243e0b9d3b3f9ca460f39a0cbd0571b5330

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: poiana, zuc
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [zuc]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Hyprlock just sometimes unlocking

Regression?
No
Hyprlock Info and Version
<0.4.1>
 Hyprlock config
background {
    path = "/home/lajna/nixConfig/bgs/*.jpeg"
    color = "rgb(27, 36, 41)"
}

input-field {
    size = 200, 50
    outline_thickness = 3
    dots_size = 0.33
    dots_spacing = 0.15
    outer_color = "rgb(109, 142, 152)"
    inner_color = "rgb(225, 234, 234)"
    font_color = "rgb(27, 36, 41)"
    fade_on_empty = true
    placeholder_text = "<i>Password...</i>"
    hide_input = false
    position = 0, -20
    halign = center
    valign = center
}

label {
    text = Welcome back, $USER
    color = "rgb(225, 234, 234)"
    font_size = 25
    font_family = Sans
    position = 0, 80
    halign = center
    valign = center
}

Compositor Info and Version
 System/Version info
Hyprland, built from branch  at commit 6ae89940c761d4ed4317df0af29e8df41d472091  ().
Date: 2024-10-09
Tag: , commits: 5323
built against aquamarine 0.4.2

flags: (if any)

System Information:
System name: Linux
Node name: nixos-gaming
Release: 6.6.54
Version: #1-NixOS SMP PREEMPT_DYNAMIC Fri Oct  4 14:30:05 UTC 2024

GPU information:
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU106 [GeForce RTX 2070] [10de:1f02] (rev a1) (prog-if 00 [VGA controller])
10:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev cb) (prog-if 00 [VGA controller])
NVRM version: NVIDIA UNIX x86_64 Kernel Module  550.120  Fri Sep 13 10:10:01 UTC 2024

os-release: ANSI_COLOR="1;34"
BUG_REPORT_URL="https://github.com/NixOS/nixpkgs/issues"
BUILD_ID="24.11.20241006.c31898a"
DOCUMENTATION_URL="https://nixos.org/learn.html"
HOME_URL="https://nixos.org/"
ID=nixos
IMAGE_ID=""
IMAGE_VERSION=""
LOGO="nix-snowflake"
NAME=NixOS
PRETTY_NAME="NixOS 24.11 (Vicuna)"
SUPPORT_URL="https://nixos.org/community.html"
VERSION="24.11 (Vicuna)"
VERSION_CODENAME=vicuna
VERSION_ID="24.11"

plugins:
  csgo-vulkan-fix by Vaxry ver 1.2

Description
Running hyprlock once from the terminal works as expected, unlocks fine. Running the same command once more, does not unlock the computer, instead just making the password field orange indefinitely.
Unlocking with pkill -USR1 hyprlock does remove it, but leaves a black screen with the x cursor. Only way back into hyprland is to kill it and relaunch from another tty.
How to reproduce
hyprlock > log.txt
hyprlock > log.txt # second time wont work for some reason
Crash reports, logs, images, videos
log.txt This is from the second run.

Ok so what might happen is that due to config errors you might not have a working representation of the input field. Try to normally enter your password and see if it unlocks, cause I can see that your config has some problems. Quotes around rgb() not allowed.
Config error in file /home/lajna/.config/hypr/hyprlock.conf at line 3: cannot parse ""rgb(27, 36, 41)"" as an int.
Config error in file /home/lajna/.config/hypr/hyprlock.conf at line 11: cannot parse ""rgb(109, 142, 152)"" as an int.
Config error in file /home/lajna/.config/hypr/hyprlock.conf at line 12: cannot parse ""rgb(225, 234, 234)"" as an int.
Config error in file /home/lajna/.config/hypr/hyprlock.conf at line 13: cannot parse ""rgb(27, 36, 41)"" as an int.
Config error in file /home/lajna/.config/hypr/hyprlock.conf at line 24: cannot parse ""rgb(225, 234, 234)"" as an int.

If that is not it, then hyprlock crashed the second time. In that case you would need to check coredumpctl and see if you can get me a stack trace.

Unlocking with pkill -USR1 hyprlock does remove it, but leaves a black screen with the x cursor. Only way back into hyprland is to kill it and relaunch from another tty.

Don't you have new session lock panic screen?
With your hl version you should see lockdead.png
Also checking if -git/the flake fixes it is also a good idea.

Fixing the colors did solve the issue. Saw those in the logs and assumed that it was not the cause.


MvcReportViewer control ID is missing

Hi,
I'm getting an error similar to https://github.com/ilich/MvcReportViewer/issues/68
I get a control ID error when I try and run the following code;
string ReportName = "Reports/DailyReport.rdl";
DateTime d = new DateTime(2015,03,31);

return this.Report(
                    ReportFormat.PDF,
                    ReportName,
                    new { PortfolioID = 1, ValueDate = d},
                    ProcessingMode.Local);

Though my difference is I can't get it to work on 0.5.2 so I may be doing something wrong?

Hi,
You will not be able to use it on 0.5.2. You have to upgrade to 0.6.2.

Sorry I wasn't clear, I couldn't get it to work on 0.6.2, I tried 0.5.2 but that didn't work either

Are you sure you provide data source for your local report? For example,

 return this.Report(
                    ReportFormat.PDF,
                    "App_Data/Reports/Products.rdlc",
                    new { Parameter1 = "Test", Parameter2 = 123 },
                    ProcessingMode.Local,
                    new Dictionary
                    {
                        { "Products", GetProducts() },
                        { "Cities", GetCities() }
                    });

What is your error message? Could you send me a screenshot via http://screencast.com/ or something similar?

I was able to recreate the issue. I am going to fix it. Thank you for the report.

The issue has been fixed. Please install v0.6.3 and test your application.