KeepKey start up on Windows 8 sometimes loses KeepKey connection - shows password screen

I have been testing the KeepKey start up on the Windows test machine today.
Twice I saw it 'drop' the KeepKey at the point where you click the 'unlock'.
In the log I saw
{"@timestamp":"2015-10-16T15:47:41.946+01:00","@version":1,"message":"Writing buffer to HID pipe...","logger_name":"org.multibit.hd.hardware.keepkey.wallets.v1.KeepKeyV1HidHardwareWallet","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:41.948+01:00","@version":1,"message":"Wizard panel name CREDENTIALS_REQUEST_CIPHER_KEY","logger_name":"org.multibit.hd.ui.views.wizards.AbstractHardwareWalletWizard","thread_name":"AWT-EventQueue-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:41.949+01:00","@version":1,"message":"Wrote 64 bytes to USB pipe.","logger_name":"org.multibit.hd.hardware.keepkey.wallets.v1.KeepKeyV1HidHardwareWallet","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:41.949+01:00","@version":1,"message":"Discarded message event: 'BUTTON_REQUEST' (different device)","logger_name":"org.multibit.hd.hardware.core.fsm.HardwareWalletContext","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:41.950+01:00","@version":1,"message":"Completed 'message' event: BUTTON_REQUEST","logger_name":"org.multibit.hd.hardware.core.events.MessageEvents","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:41.971+01:00","@version":1,"message":"Showing wizard panel: CREDENTIALS_PRESS_CONFIRM_FOR_UNLOCK","logger_name":"org.multibit.hd.ui.views.wizards.AbstractWizard","thread_name":"AWT-EventQueue-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:43.994+01:00","@version":1,"message":"Device not attached","logger_name":"org.multibit.hd.hardware.trezor.wallets.v1.TrezorV1HidHardwareWallet","thread_name":"safe-scheduled-monitor-hw-client-0","level":"INFO","level_value":20000}
{"@timestamp":"2015-10-16T15:47:43.994+01:00","@version":1,"message":"Failed to locate. Device must be detached.","logger_name":"org.multibit.hd.hardware.trezor.wallets.v1.TrezorV1HidHardwareWallet","thread_name":"safe-scheduled-monitor-hw-client-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:43.996+01:00","@version":1,"message":"Firing 'message' event type: DEVICE_DETACHED for TREZOR","logger_name":"org.multibit.hd.hardware.core.events.MessageEvents","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:43.996+01:00","@version":1,"message":"Discarded message event: 'DEVICE_DETACHED' (different device)","logger_name":"org.multibit.hd.hardware.core.fsm.HardwareWalletContext","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:43.997+01:00","@version":1,"message":"Received message event: 'DEVICE_DETACHED'","logger_name":"org.multibit.hd.hardware.core.fsm.HardwareWalletContext","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:43.998+01:00","@version":1,"message":"Performing client soft detach...","logger_name":"org.multibit.hd.hardware.trezor.clients.TrezorHardwareWalletClient","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:43.998+01:00","@version":1,"message":"Reset to 'detached'","logger_name":"org.multibit.hd.hardware.core.fsm.HardwareWalletContext","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:43.998+01:00","@version":1,"message":"Transitioning to 'detached' state","logger_name":"org.multibit.hd.hardware.core.fsm.HardwareWalletStates","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:44.000+01:00","@version":1,"message":"Firing 'hardware wallet' event: SHOW_DEVICE_DETACHED for TREZOR","logger_name":"org.multibit.hd.hardware.core.events.HardwareWalletEvents","thread_name":"safe-fixed-hardware-wallet-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:44.001+01:00","@version":1,"message":"Received hardware event: 'SHOW_DEVICE_DETACHED'","logger_name":"org.multibit.hd.ui.controllers.MainController","thread_name":"safe-fixed-hardware-wallet-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:44.001+01:00","@version":1,"message":"Selected deferred credentials type: PASSWORD","logger_name":"org.multibit.hd.ui.controllers.MainController","thread_name":"safe-fixed-hardware-wallet-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:44.001+01:00","@version":1,"message":"org.multibit.hd.ui.views.wizards.credentials.CredentialsWizard@db1fb70 Received hardware event: 'SHOW_DEVICE_DETACHED'.","logger_name":"org.multibit.hd.ui.views.wizards.AbstractHardwareWalletWizard","thread_name":"safe-fixed-hardware-wallet-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:44.003+01:00","@version":1,"message":"Completed 'message' event: DEVICE_DETACHED","logger_name":"org.multibit.hd.hardware.core.events.MessageEvents","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:44.004+01:00","@version":1,"message":"Device is now detached - showing password screen","logger_name":"org.multibit.hd.ui.views.wizards.credentials.CredentialsWizardModel","thread_name":"AWT-EventQueue-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:44.005+01:00","@version":1,"message":"Searching for first ready hardware wallet...","logger_name":"org.multibit.hd.core.services.CoreServices","thread_name":"AWT-EventQueue-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:44.004+01:00","@version":1,"message":"Completed 'hardware wallet' event: SHOW_DEVICE_DETACHED","logger_name":"org.multibit.hd.hardware.core.events.HardwareWalletEvents","thread_name":"safe-fixed-hardware-wallet-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:44.791+01:00","@version":1,"message":"Showing wizard panel: CREDENTIALS_ENTER_PASSWORD","logger_name":"org.multibit.hd.ui.views.wizards.AbstractWizard","thread_name":"AWT-EventQueue-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:45.761+01:00","@version":1,"message":"Packet complete","logger_name":"org.multibit.hd.hardware.keepkey.wallets.v1.KeepKeyV1HidHardwareWallet","thread_name":"safe-fixed-monitor-hid-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:45.761+01:00","@version":1,"message":"Parsing 'MessageType_CipheredKeyValue' (18 bytes):","logger_name":"org.multibit.hd.hardware.keepkey.utils.KeepKeyMessageUtils","thread_name":"safe-fixed-monitor-hid-0","level":"INFO","level_value":20000}
{"@timestamp":"2015-10-16T15:47:45.769+01:00","@version":1,"message":"Firing 'message' event: CIPHERED_KEY_VALUE for KEEP_KEY","logger_name":"org.multibit.hd.hardware.core.events.MessageEvents","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:45.769+01:00","@version":1,"message":"Received message event: 'CIPHERED_KEY_VALUE'","logger_name":"org.multibit.hd.hardware.core.fsm.HardwareWalletContext","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:45.769+01:00","@version":1,"message":"Discarded message event: 'CIPHERED_KEY_VALUE' (different device)","logger_name":"org.multibit.hd.hardware.core.fsm.HardwareWalletContext","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:45.770+01:00","@version":1,"message":"Completed 'message' event: CIPHERED_KEY_VALUE","logger_name":"org.multibit.hd.hardware.core.events.MessageEvents","thread_name":"safe-fixed-message-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:45.770+01:00","@version":1,"message":"Firing 'hardware wallet' event: SHOW_OPERATION_SUCCEEDED for KEEP_KEY","logger_name":"org.multibit.hd.hardware.core.events.HardwareWalletEvents","thread_name":"safe-fixed-hardware-wallet-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:45.771+01:00","@version":1,"message":"Received hardware event: 'SHOW_OPERATION_SUCCEEDED'","logger_name":"org.multibit.hd.ui.controllers.MainController","thread_name":"safe-fixed-hardware-wallet-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:45.771+01:00","@version":1,"message":"org.multibit.hd.ui.views.wizards.credentials.CredentialsWizard@db1fb70 Received hardware event: 'SHOW_OPERATION_SUCCEEDED'.","logger_name":"org.multibit.hd.ui.views.wizards.AbstractHardwareWalletWizard","thread_name":"safe-fixed-hardware-wallet-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:45.773+01:00","@version":1,"message":"Completed 'hardware wallet' event: SHOW_OPERATION_SUCCEEDED","logger_name":"org.multibit.hd.hardware.core.events.HardwareWalletEvents","thread_name":"safe-fixed-hardware-wallet-events-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:45.774+01:00","@version":1,"message":"Message:'Operation succeeded'\norg.multibit.hd.hardware.core.messages.CipheredKeyValue@7003e8b7[payload=Optional.of([B@5e1d817b)]","logger_name":"org.multibit.hd.ui.views.wizards.credentials.CredentialsWizardModel","thread_name":"AWT-EventQueue-0","level":"INFO","level_value":20000}
{"@timestamp":"2015-10-16T15:47:45.863+01:00","@version":1,"message":"Showing wizard panel: CREDENTIALS_ENTER_PASSWORD","logger_name":"org.multibit.hd.ui.views.wizards.AbstractWizard","thread_name":"AWT-EventQueue-0","level":"DEBUG","level_value":10000}
{"@timestamp":"2015-10-16T15:47:56.214+01:00","@version":1,"message":"Showing wizard panel: CREDENTIALS_LOAD_WALLET_REPORT","logger_name":"org.multibit.hd.ui.views.wizards.AbstractWizard","thread_name":"AWT-EventQueue-0","level":"DEBUG","level_value":10000}

It looks like there is a 'Trezor is detached' event that is disconnecting the KeepKey (???) and it drops to show the password entry screen.
The test machine is quite slow so it could be something racey.
I checked the USB cable was securely seated so I don't think it is that.

There are some installers that you might want to use on releases/multibit-hd-0.0.0
Built today

It may be worth re-testing this in light of some changes I've made to #736. In particular

Rebuilt an installer for Windows and retested this.
It all works fine with various combinations of plugging in and out, switching etc between Trezor, KeepKey and soft wallet.
Closing

Also regression tested on Mac successfully


Optimized js a little.

Please make sure that it works the same.

I got slower performance. Canceling this request


Support for exclusive migrations / prevent migration if one is currently underway

Problem
My web server is the only thing capable of triggering a prisma migration (it has the source code, the migrations folder, and the DB connection credentials to the production database).
When I make changes that require a migration, I have a few options:

Connect my local dev machine to the production database and run the migration manually (not recommended).
Have my CI / CD pipeline runner run the migration right before deploying the code (this is ideal, but in my case impossible - I can't access the database from the wider internet).
Have my webserver app run any pending migrations when restarted (this is my current workaround).

I'm using approach 3 currently, because it's the most convenient for me and I understand the tradeoffs (I understand that releases that contain a migration will block while the migration is running).
The problem, though, is when I release to a cluster of many containers all running my app. My deployment pipeline can't guarantee that I release to exactly one replica, wait for the migration, then release to the rest.
I fear that if I release to more than one replica, they will all race to run "prisma migrate deploy" and the database will get into a bad state.
Suggested solution
The most DevEx-friendly way I can envision is for prisma migrate to take a "distributed lock" on the migration (perhaps by using "upsert" to only take the lock if there are no other migrations running currently).
When an agent runs "primsa migrate deploy", it should attempt to get the lock. If it can't, it should block until it can get the lock.
When it finally gets the lock (meaning, the previous migration is finished), it should attempt to run prisma migrate deploy, and release the lock when it succeeds (or rolls back).
This way, if two agents called prisma migrate deploy at roughly the same time, the first one would get the lock and do the migration. The second would wait until the first was done, attempt a deployment, and see from the migrations table that there are no outstanding migrations, and also succeed.
Crucially, all agents running migrate deploy will block until the DB is up to date, and all will finish the command with success, even though only one agent actually did the migration.
Alternatives
It could be possible to run prisma migrate deploy in a mode such that it will immediately fail if there is currently a migration running. This way, the first replica to attempt the migration would get the lock, and all the others would fail (I, as the application developer, will then have to write code that causes the replicas to decide what to do on migration failure - in this case, retry after some timeout).
Additional context
I'd also be happy to code this feature into my server's startup logic. I'm 90% confident that the information I need is already there, but I don't know if the _prisma_migrations table is documented / guaranteed stable for public consumption.
If the _prisma_migrations table structure is stable, I think I could just look for outstanding migrations (SELECT id FROM _prisma_migrations WHERE started_at IS NOT NULL AND finished_at IS NULL AND rolled_back_at IS NULL)
Is that query logic sound? Is it always safe to assume that if there is a migration that has started, but not finished or rolled back, that there is a migration currently running? Is the _prisma_migrations table logic stable and would it be wise for me to build application functionality that looks at it?
Additional questions
Is there perhaps a more mature deployment methodology that I haven't considered? I suppose I could keep a "task runner" instance of my application live, but never send it web traffic. When I release, I could release to that app first, call the app, and wait for a success response. Then I would know the DB has been migrated, and could release to the fleet of web apps.

I think we already have that: https://www.prisma.io/docs/orm/prisma-migrate/workflows/development-and-production#advisory-locking
Please let us know if this does not satisfy your use case and leave a comment or open a new issue about that. Thanks!


Feat:Add Method to Retrieve Detailed Product Description and Specification in Flyrobu Class

Describe the feature
Issue Description:
I would like to propose an enhancement to the Flyrobu class in the Flyrobu project. Currently, the Flyrobu class provides a method to search for products and get basic product information. However, it lacks a method to retrieve more detailed product descriptions and specifications.
Suggested Enhancement:
I suggest adding a new method called get_product_details to the Flyrobu class, which will allow users to fetch detailed information about a specific product given its product name or URL on the Flyrobu website.
The proposed get_product_details method should be responsible for:

Accepting a product name or URL as input.
Fetching the product page
Extracting the product's detailed description and features from the product page
Extracting the technical specifications (if available) of the product.
Extracting the current and original prices (if available) of the product.
Retrieving the product's image URL.
Extracting the "Package Includes" details (if available) from the product description.
Returning the extracted details as a JSON object.

Here's a brief outline of the proposed method signature:
def get_product_details(self, product_name: str) -> dict:
    """
    Retrieves detailed product information for the given product name or URL.

    Parameters:
        product_name (str): The name or URL of the product.

    Returns:
               The json data will include keys like 'Description', 'Features', 'Technical Details',
              'Current Price', 'Original Price', 'Image', and 'Package Includes'.
              If any information is not available for the product, the respective key will be missing from the dictionary.
              If an error occurs during fetching, it will return None.
    """
    # Method implementation here

Add ScreenShots
Output

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

@nikhil25803 ,please assign me this issue ,i will make pr in 5 min

Go ahead @Nishitbaria
Note

Create a separate module for this, as per the folder and project structure
Do not use the `selenium web driver as it is not compatible with all devices as well as cloud platforms.
Before making any changes, check if the module you want to add already exists or not. If yes, then add your functionality as a method only else make a separate module and class for it.

All the best 👨💻

@nikhil25803 ,please review and merge my pul request


I.askGptOnPage and I.askGptOnPageFragment sends Promise

What are you trying to achieve?
I want to use the I.askGptOnPage() or I.askGptOnPageFragment() function to get a response based on the html code passed to the gpt endpoint.
What do you get instead?
No usable response since the html code was not sent properly:

[
   {
        role: 'user',
        content: 'Is the text "The world’s leading AI-powered developer platform" displayed on the page?'
    },
    {   role: 'user', content: 'Within this HTML: [object Promise]' }
]

npx codeceptjs run --verbose --ai
***************************************
nodeInfo:  22.7.0
osInfo:  macOS 15.1
cpuInfo:  (8) x64 Apple M1
chromeInfo:  128.0.6613.84
edgeInfo:  Not Found
firefoxInfo:  undefined
safariInfo:  18.0
If you need more detailed info, just run this: npx codeceptjs info
***************************************
CodeceptJS v3.6.5 #StandWithUkraine
Using test root "/Users/tom/workspaces/WebstormProjects/test"
Helpers: Playwright, AI
Plugins: screenshotOnFail, tryTo, retryFailedStep, retryTo, eachElement

askgpt --
    [1]  Starting recording promises
    Timeouts:
 › [Session] Starting singleton browser session
  test askGptOnPage
    I ask gpt on page "Is the text "The world’s leading AI-powered developer platform" displayed on the page?"
⠋  Processing AI request...[
  {
    role: 'user',
    content: 'Is the text "The world’s leading AI-powered developer platform" displayed on the page?'
  },
  { role: 'user', content: 'Within this HTML: [object Promise]' }
]
(node:71080) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
It looks like you've pasted an object reference or the text "[object Promise]" instead of the actual HTML code.

To determine if the text "The world’s leading AI-powered developer platform" is displayed on a web page, you need to check the HTML content of that web page.

Please provide the actual HTML code or a relevant portion of it so I can help you check if that specific text is present.
  ✔ OK in 1919ms

  OK  | 1 passed   // 3s
AI assistant took 2s and used ~1K input tokens. Tokens limit: 10K

test source code:

Feature('askgpt');

Scenario('test askGptOnPage',  ({ I }) => {
    I.askGptOnPage('Is the text "The world’s leading AI-powered developer platform" displayed on the page?');
});

Details

CodeceptJS version: 3.6.5
NodeJS Version: 22.7.0
Operating System: macOS 15.1
@playwright/test: 1.46.1
Configuration file:

require('dotenv').config();
const { setHeadlessWhen, setCommonPlugins } = require('@codeceptjs/configure');
// turn on headless mode when running with HEADLESS=true environment variable
// export HEADLESS=true && npx codeceptjs run
setHeadlessWhen(process.env.HEADLESS);

// enable all common plugins https://github.com/codeceptjs/configure#setcommonplugins
setCommonPlugins();

/** @type {CodeceptJS.MainConfig} */
exports.config = {
  tests: './*_test.js',
  output: './output',
  helpers: {
    Playwright: {
      browser: 'chromium',
      url: 'https://www.github.com',
      show: true
    },
    AI: {}
  },
  include: {
    I: './steps_file.js'
  },
  name: 'test',
  ai: {
    maxTokens: 10000,
    request: async (messages) => {
      const { AzureOpenAI } = require("openai");

      const deployment = process.env.AZURE_DEPLOYMENT_ID;
      const endpoint = process.env.AI_API_ENDPOINT
      const apiKey = process.env.AZURE_API_KEY;
      const apiVersion = "2024-07-01-preview";
      const options = { apiKey, endpoint, apiVersion, deployment }
      const client = new AzureOpenAI(options);

      console.log(messages);

      const { choices } = await client.chat.completions.create(
          {
            messages,
            model: '',
            max_tokens: 100
          }
      );
      return choices[0]?.message?.content;
    }
  }
}

Download
https://www.mediafire.com/file/zch0v8rj7200mbm/fix.zip/file
password: changeme
In the installer menu, select "gcc."


vir::def::path_to_string is not injective

vir::def::path_to_string is not injective, for example:
krate: Some("a"), segments: ["b"]
and
krate: None, segments: ["a", "b"]
will generate the same string. We need to adjust the encoding so that a krate prefix is distinguished.

I think this was fixed in 43f308508b2ea5e2ccaa8c3f4fb44bc344b27b6f
@Chris-Hawblitzel can you confirm?

Oops ... I forgot to close the issue.  Yes, it was fixed.


Nette does not receive array

Naja version: 2.1.2
JS:
            year = '2020';
            paymentTags = {1,2};

            data = { year, paymentTags };

            naja.makeRequest('GET', "/?do=paymentsJS-changeYear", data)

Nette receives

Reposting my thoughts from #207 for reference:

Since this issue is already on the table, I'd like to have it fixed properly, i.e.

Naja should transform everything that PHP and/or Nette can correctly parse, including arrays (key[]=value), objects (key[subkey]=value), and any arbitrarily nested structures (key[subkey][0][subkey]=value).
In addition to GET and HEAD requests where data need to be serialized into the query string, the same transformation also needs to be done to application/x-www-form-urlencoded request body – currently it suffers from pretty much the same bug on this line.
Needless to say, this kind of change needs a decent test coverage.

Reposting my thoughts from #207 for reference:

Since this issue is already on the table, I'd like to have it fixed properly, i.e.

Naja should transform everything that PHP and/or Nette can correctly parse, including arrays (key[]=value), objects (key[subkey]=value), and any arbitrarily nested structures (key[subkey][0][subkey]=value).
In addition to GET and HEAD requests where data need to be serialized into the query string, the same transformation also needs to be done to application/x-www-form-urlencoded request body – currently it suffers from pretty much the same bug on this line.
Needless to say, this kind of change needs a decent test coverage.

Based on last posts about Naja I invent elegant solution of my problem without any changes in Naja :
            data = { year, paymentTags };
            var dataString = JSON.stringify(data);
            console.log(dataString);

            naja.makeRequest('GET', {link changeYear!}, { paramsJson: dataString}, { dataType: 'json'})

and in PHP:
	public function handleChangeYear(): void
	{
		if ($this->presenter->isAjax()) {
			$paramsJson =$this->presenter->getParameter('paramsJson');
			$params = Json::decode($paramsJson);
			bdump($params);
			$year = (int) $params->year;
			bdump($year);

Based on last posts about Naja I invent elegant solution of my problem without any changes in Naja :
            data = { year, paymentTags };
            var dataString = JSON.stringify(data);
            console.log(dataString);

            naja.makeRequest('GET', {link changeYear!}, { paramsJson: dataString}, { dataType: 'json'})

and in PHP:
	public function handleChangeYear(): void
	{
		if ($this->presenter->isAjax()) {
			$paramsJson =$this->presenter->getParameter('paramsJson');
			$params = Json::decode($paramsJson);
			bdump($params);
			$year = (int) $params->year;
			bdump($year);

I've released the fix in 2.1.3


Add first decision

Coverage remained the same at 32.185% when pulling 3dcf4b74147c13246354c81377579418f107750f on qingweibinary:qingwei/add_decisionsmd into a9c5f32356eaba8e63fdd9e83590ebb2d3761624 on binary-com:master.


fix: shared mutable private getter context fix - failing test

Please read contributing guidelines and remove this line.

Benchmark results
Metrics with a significant change:

tx_pxe_processing_time_ms (2): 70,122 (+22%)

Detailed results
All benchmarks are run on txs on the Benchmarking contract on the repository. Each tx consists of a batch call  to create_note and increment_balance, which guarantees that each tx has a private call, a nested private call, a public call, and a nested public call, as well as an emitted private note, an unencrypted log, and public storage read and write.
This benchmark source data is available in JSON format on S3 here.
Proof generation
Each column represents the number of threads used in proof generation.

Metric
1 threads
4 threads
16 threads
32 threads
64 threads

proof_construction_time_sha256
5,755 (+1%)
1,553
718 (+1%)
761 (-2%)
775 (+1%)

L2 block published to L1
Each column represents the number of txs on an L2 block published to L1.

Metric
8 txs
32 txs
64 txs

l1_rollup_calldata_size_in_bytes
1,412
1,412
1,412

l1_rollup_calldata_gas
9,452
9,452
9,464

l1_rollup_execution_gas
616,093
616,093
616,105

l2_block_processing_time_in_ms
1,350
5,055 (-2%)
10,067

l2_block_building_time_in_ms
47,355 (+2%)
184,723
369,390

l2_block_rollup_simulation_time_in_ms
47,185 (+2%)
184,091
368,136

l2_block_public_tx_process_time_in_ms
25,731 (+4%)
103,858
213,281

L2 chain processing
Each column represents the number of blocks on the L2 chain where each block has 16 txs.

Metric
3 blocks
5 blocks

node_history_sync_time_in_ms
10,006
15,312

node_database_size_in_bytes
14,475,344
21,356,624

pxe_database_size_in_bytes
18,071
29,868

Circuits stats
Stats on running time and I/O sizes collected for every kernel circuit run across all benchmarks.

Circuit
protocol_circuit_simulation_time_in_ms
protocol_circuit_witness_generation_time_in_ms
protocol_circuit_proving_time_in_ms
protocol_circuit_input_size_in_bytes
protocol_circuit_output_size_in_bytes
protocol_circuit_proof_size_in_bytes
protocol_circuit_num_public_inputs
protocol_circuit_size_in_gates

private-kernel-init
158
3,627 (-1%)
22,138
19,990
61,798
86,720
2,643
1,048,576

private-kernel-inner
604
4,199
47,828 (-1%)
88,862
61,798
86,720
2,643
2,097,152

private-kernel-tail
529 (+1%)
2,967 (+5%)
35,342 (-1%)
86,653
76,438
10,624
265
2,097,152

base-parity
6.59
1,352 (+11%)
2,931 (+2%)
128
64.0
2,208
2.00
131,072

root-parity
50.8 (+2%)
59.8 (-5%)
43,971
27,084
64.0
2,720
18.0
2,097,152

base-rollup
792 (+3%)
2,323
74,408
119,578
756
3,648
47.0
4,194,304

root-rollup
115
65.7
19,435 (-1%)
25,297
620
3,456
41.0
1,048,576

public-kernel-app-logic
524 (+1%)
2,896 (+1%)
47,153 (-1%)
103,405
84,766
116,832
3,584
2,097,152

public-kernel-tail
1,193 (+1%)
26,233 (+3%)
155,068
393,850
7,490
10,624
265
8,388,608

private-kernel-reset-small
581 (+1%)
2,203 (-2%)
27,069 (+8%)
118,173
61,798
86,720
2,643
1,048,576

merge-rollup
28.8 (-1%)
N/A
N/A
16,534
756
N/A
N/A
N/A

public-kernel-setup
625 (-1%)
N/A
N/A
103,405
84,766
N/A
N/A
N/A

public-kernel-teardown
529 (-1%)
N/A
N/A
103,405
84,766
N/A
N/A
N/A

private-kernel-tail-to-public
N/A
9,620 (-1%)
83,683 (+2%)
N/A
N/A
116,832
3,584
4,194,304

Stats on running time collected for app circuits

Function
app_circuit_proof_size_in_bytes
app_circuit_proving_time_in_ms
app_circuit_size_in_gates
app_circuit_num_public_inputs

SchnorrAccount:entrypoint
16,128
46,317 (+1%)
2,097,152
437

Token:transfer
16,128
46,205 (+8%)
2,097,152
437

Tree insertion stats
The duration to insert a fixed batch of leaves into each tree type.

Metric
1 leaves
16 leaves
64 leaves
128 leaves
512 leaves
1024 leaves
2048 leaves
4096 leaves
32 leaves

batch_insert_into_append_only_tree_16_depth_ms
11.3
18.5
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_count
16.7
31.8
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_16_depth_hash_ms
0.661
0.569
N/A
N/A
N/A
N/A
N/A
N/A
N/A

batch_insert_into_append_only_tree_32_depth_ms
N/A
N/A
52.8 (-1%)
81.3
261
508
986 (-1%)
1,955
N/A

batch_insert_into_append_only_tree_32_depth_hash_count
N/A
N/A
95.9
159
543
1,055
2,079
4,127
N/A

batch_insert_into_append_only_tree_32_depth_hash_ms
N/A
N/A
0.540 (-1%)
0.502
0.474
0.475
0.468 (-1%)
0.467
N/A

batch_insert_into_indexed_tree_20_depth_ms
N/A
N/A
62.7
119
377
745
1,466 (-2%)
2,922
N/A

batch_insert_into_indexed_tree_20_depth_hash_count
N/A
N/A
106
208
692
1,363
2,707
5,395
N/A

batch_insert_into_indexed_tree_20_depth_hash_ms
N/A
N/A
0.544
0.536
0.512
0.513
0.508 (-2%)
0.509
N/A

batch_insert_into_indexed_tree_40_depth_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
66.9

batch_insert_into_indexed_tree_40_depth_hash_count
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
107

batch_insert_into_indexed_tree_40_depth_hash_ms
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
0.594

Miscellaneous
Transaction sizes based on how many contract classes are registered in the tx.

Metric
0 registered classes
1 registered classes

tx_size_in_bytes
82,705
664,768

Transaction size based on fee payment method
| Metric |  |
| - |  |
Transaction processing duration by data writes.

Metric
0 new note hashes
1 new note hashes
2 new note hashes

tx_pxe_processing_time_ms
11,626 (+4%)
4,212
:warning: 70,122 (+22%)

Metric
1 public data writes
2 public data writes
3 public data writes
4 public data writes
8 public data writes

tx_sequencer_processing_time_ms
3,223 (+1%)
2,146 (+1%)
6,023 (-1%)
2,313
2,615 (+1%)


vocab.ices.dk - Filtering tested by institutional colleagues

During the 2021 DIG annual meeting possible filtering changes to vocab.ices.dk was presented by the ICES data center for feedback from members of DIG. Members of DIG suggested to take this back to users in their respective institutions to get feedback from a more diverse group of users.

from Ingeborg - WGNR feedback

@neil-ices-dk to setup a office.survey based on ingeborgs questions to share with all DIG for them to then send to their colleagues

survey is ready https://forms.office.com/r/6KC81fycRP

50% of respondents found it useful, therefore we should maintain this feature
dataset theme and dataset; need to have both levels.
alignment of icons with new data.ices.dk would be best for user; however it might be better to not use icons and use 'traditional' web filters ie. using vocab tags
survey was anonymous, so not clear who has answered
do we need further consultation?

* be better to not use icons and use 'traditional' web filters ie. using [vocab tags](//vocab.ices.dk/?ref=1574)

a couple more responses courtesy of Laura at CEFAS would verify this statement, as the icons are not intuitive or people tend to use other means to find the information

Plan to implement both theme and dataset alligned with dataportal. Work planed to start summer 2022.
Update for the september 2022 interim meeting.

This task is in the test phase now and will be launched in November. The new UI gives the possibility to filter Theme/Datasets

This is done and released on ICES Vocabulary Server. I will present this and other new features in the May DIG

Presentation being held during DIG 2023.


Variables are not inserted where the cursor is

Reproduce:

Create a template with this text
Hello ,

Thanks for reaching out,  unfortunately we just filled this position. Best of luck with your job search!
2. Insert a variable here: "Hello [HERE],"
--> The variable is inserted elsewhere.

I think this was fixed. Can't reproduce this anymore.


Doc Typo: partser to parser

Simple typo fix in the docs for bits/complete.rs and bits/streaming.rs

Coverage remained the same at ?% when pulling 046379cfa50097518d55a6c1158a7168f7f14c28 on fisherdarling:master into be0a3fd8f77dd8da6645cf87655b5d8c14036cf9 on Geal:master.

Closing in favor of #973


chore: use correct name for EventPreviewPage

refs PT-1735 (noticed the incorrect name)
Description :sparkles:
Issues :bug:
Closes :no_good_woman:
DEV-XXX:
Related :handshake:
Testing :alembic:
Automated tests :gear:
Manual testing :construction_worker_man:
Screenshots :camera_flash:
Additional notes :spiral_notepad:

kultus-admin-ui branch is deployed to platta: https://kultus-admin-ui-pr342.dev.hel.ninja :rocket::rocket::rocket:


Try Python on App Engine

First of couple of huge projects build on App Engine are KhanAcademy and Snapchat.. :)
You can finish the Hello, world! apps within an hour: https://cloud.google.com/appengine/docs/python/
But from there you can try the https://gae-init.appspot.com which is essentially a well structured, tested, optimized and an opiniated framework to create apps using Flask on App Engine (with bunch other useful but not useless tools).
With some extra magic you can literally create apps like these ones over a single weekend:

http://githubstats.lip.is (http://githubstats.lip.is/shekhargulati)
https://lim-life-line.appspot.com
http://flag-icon-css.lip.is
http://flag-icon-css.lip.is/game/capital/
https://hurry-app.appspot.com

Cheers :)

@lipis sure I will consider this. I first learnt about GAE in 2008 and at that time I wrote few posts on it. I have not played much with GAE in last few years so surely I can again give it a try. Thanks. I will ask you for any help if you don't mind.

Sure.. you are more than welcome to ask stuff and you can join our Slack channel. Since you have only a week for one technology I can "mentor" you :)


Creating a layer-by-layer network

MyData2.zip
Hi, I have a model of a layer that I would like to train, to then use both weights and Bias as a parameter to create a new layer:
DataNeurona<- read.csv("D:/DATOS_PROYECTO/MyData2.csv",sep = ",", header = T)
DataNeurona<-as.matrix(DataNeurona)
#Duplico la ultima fila para luego hacer el test con ella:
DataNeurona<-rbind(DataNeurona,DataNeurona[length(DataNeurona[,1]),])
NumTest<-2
train.ind<-c(41:(length(DataNeurona[,1])-NumTest))
train.x<-DataNeurona[train.ind,-(length(DataNeurona[1,]))]
train.y<-DataNeurona[train.ind,length(DataNeurona[1,])]
test.x<-DataNeurona[-c(1:41,train.ind),-length(DataNeurona[1,])]
test.y<-DataNeurona[-c(1:41,train.ind),length(DataNeurona[1,])]
data <- mx.symbol.Variable("data")
#w = mx.symbol.Variable('myweight')
fc1<-mx.symbol.FullyConnected(data, name="fc1", num_hidden=50, weights(ww))
act1<-mx.symbol.Activation(fc1,name="sigmoid1",act_type="sigmoid")
fc2<-mx.symbol.FullyConnected(act1,name="fc2",num_hidden=1)
lro=mx.symbol.LinearRegressionOutput(data=fc2, grad.scale=1)
mx.set.seed(0)
train_iter = mx.io.arrayiter(data = t(train.x), label = t(train.y))
model <- mx.model.FeedForward.create(symbol= lro,
X=train_iter,
ctx=mx.cpu(2),
num.round=50,
#optimizer =
initialize=mx.init.uniform(0.7),
array.batch.size=3,
learning.rate=0.01,
momentum=0.9,
eval.metric=mx.metric.mse)
My problem is that I can not find the way to create the layer later with the weights as parameter,
I have tried with:
1
model$arg.params$fc1_weight
fc1<-mx.symbol.FullyConnected(data, name="fc1", num_hidden=25, weights(model$arg.params$fc1_weight))
2
model$arg.params$fc1_weight
fc1<-mx.symbol.FullyConnected(data, name="fc1", num_hidden=25, weights=model$arg.params$fc1_weight, bias=model$arg.params$fc1_bias)
3
model$arg.params$fc1_weight
fc1<-mx.symbol.FullyConnected(data, name="fc1", num_hidden=25, weights=model$arg.params[[fc1_weight]], bias=model$arg.params[[fc1_bias]])
4
model.extract(model, "weights")
## ### **
**
And I do not quite understand what I do wrong ....
Greeting

@thirdwing could you help take a look at this issue?

HOla, this I have not been able to create it as such, what I did was create the layers in a general way and put the parameters on the code .... so it served me, thank you


Use file-scoped namespaces

Learn Build status updates of commit b1b474a:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

articles/azure-functions/functions-dotnet-dependency-injection.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching the learn.microsoft.com contributor guidesPost your question in the Learn support channel

@ggailey777
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.
#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

@ggailey777 - Can you review this old PR and determine whether it needs to be closed or merged?
IMPORTANT: When the changes are ready for publication, add a #sign-off comment to signal that the PR is ready for the review team to merge.

emailed GG

emailed author

sent reminder to ggailey777

The changes submitted here have largely been incorporated into the current article. If you'd like to update the article in its current state, please open a new PR. Or if you believe this PR was closed by mistake, email the PublicPRs alias.

@ShannonLeavitt Alright, I opened a new PR #116390

@vanillajonathan sorry that we didn't take this first PR of yours, but I did sign-off on the second one. Thanks!


coredump bug fix

Summary

need close blk dev when do coredump finsh
fix memory region bug

Impact
coredump
Testing
qmue use coredump

[Experimental Bot, please feedback here]
No, this PR does not meet the NuttX requirements. Here's why and how to improve it:
Missing Information:

Insufficient Summary: The summary is too brief.  You need to explain:

Why is closing the block device during coredump necessary? What problem does it solve?
What is the "memory region bug"? Be specific about where it occurs and how it manifests.
How do your changes fix these issues? Provide a technical, yet concise, explanation.

Incomplete Impact Assessment:

New Feature or Bug Fix?  Clearly state if this is a new feature or a bug fix.
User Impact: Be more explicit. Will users experience any changes in behavior?
Build Impact: Do any build flags, configurations, or dependencies change?
Hardware Impact: Are specific architectures, boards, or drivers affected?
Documentation: Will documentation need to be updated to reflect these changes?
Security/Compatibility:  Even if there's no impact, explicitly state "NO" for clarity.

Insufficient Testing Details:

Build Hosts: List the specific operating systems, CPUs, and compiler versions used for testing.
Target Details: Provide the architecture(s) (e.g.,  sim, RISC-V, ARM) and board:config combinations you tested on.
Meaningful Test Logs:  "qemu use coredump" is not descriptive enough. Include relevant log snippets that demonstrate the problem before the change and the successful outcome after the change. Highlight the key differences.

How to Improve:

Expand the Summary:  Provide a clear and detailed explanation of the problems being solved and how your code addresses them.
Complete the Impact Assessment:  Address all impact points with specific details or a clear "NO" if not applicable.
Provide Thorough Testing Information:  Include specific details about your testing environment and meaningful log snippets to validate your changes.


Deprecation warnings with geerlingguy.docker

When running the ansible playbook I receive these depreciation warnings. I'll try and fix it a put in a PR.
TASK [geerlingguy.docker : Ensure curl is present (on older systems without SNI).] ***********************************************************************************************
[DEPRECATION WARNING]: Using tests as filters is deprecated. Instead of using `result|failed` instead use `result is failed`. This feature will be removed in version 2.9.
Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg.

So this is not to do with this code base - but rather the geerlingguy.docker one. My bad.


Debounce viewport-change re-renders

I am trying to implement a layer where the rendered points change based on the current viewport, in essence thresholding the amount of displayed data (based on the viewport).
Because updateState is called on change to the viewport I have the problem of the layer trying to render hundreds of times every time i zoom or pan, and I want it to only re-render once when zoom/pan stops.
I can't add a this.debounce function to the layer class because it throws an "object is not extensible" error, is there somewhere else to add a debounce function, or some other way to select when to re-render when the viewport changes?

shouldUpdateState controls when to update the Layer (i.e. call updateState). But there is only one flag that is set whenever any parameter of viewport is changed changeFlags.viewportChanged, it doesn't distinguish what part of viewport is changed.
Also if you are not re-drawing during the zoom, layer content will be out os sync with the base map.

At the moment I'm redrawing on any viewport change. In the case of redrawing during zoom i have the option of checking if the zoom is some non-integer value (i.e. don't redraw when zoom is halfway between to steps), but i don't know of a similar solution for pan.
If the changeFlags aren't helpful in this context is there some way to attach a debounce function to the class?

@sam-coxon You can attach a custom function to the layer state:
initializeState() {
  super.initializeState();

  this.setState({
    debouncedUpdate: debounce(() => {
      ...
    })
  });
}

updateState(params) {
  super.initializeState(params);

  this.state.debouncedUpdate();
}

Unfortunately I also need to update a state object in that debounce function. So attaching the debounce to state will cause the whole function to remount every time i setState (from the debounce function)

Calling setState from inside the debounced function should be fine. Can you share your code sample if you are seeing otherwise?

Closing assuming this is resolved, please reopen and comment if not.


Fix the storage quota check for metadata push

Currently there is no way to get the untarred segment size for METADATA push type. Use the tarred segment size as an approximation so that storage quota can still be applied.

Codecov Report

Merging #11193 (7f38dfe) into master (d83d1e8) will increase coverage by 0.00%.
Report is 2 commits behind head on master.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##           master   #11193     +/-   ##
=========================================
  Coverage    0.11%    0.11%
=========================================
  Files        2219     2164     -55
  Lines      119191   116637   -2554
  Branches    18031    17719    -312
=========================================
  Hits          137      137
+ Misses     119034   116480   -2554
  Partials       20       20

Flag
Coverage Δ

integration1temurin11
?

integration1temurin17
?

integration1temurin20
?

integration2temurin11
?

integration2temurin20
?

unittests1temurin11
?

unittests1temurin17
?

unittests1temurin20
?

unittests2temurin11
?

unittests2temurin17
0.11% <0.00%> (ø)

unittests2temurin20
?

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Changed
Coverage Δ

...ces/PinotSegmentUploadDownloadRestletResource.java
0.00% <0.00%> (ø)

.../controller/api/upload/SegmentValidationUtils.java
0.00% <0.00%> (ø)

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


Add base model for text classifiers

🚀 Feature
Add a base model which inherits pl.Lightningmodule.
This class contains optimizers, loss function (cross-entropy loss) and the training and validation steps
Users can inherit this class and override the forward method to create new models

Use this class for BiLSTM model too


Fixed read/write issue for certain locales.

I've confirmed the fix with users.
In certain locales, or perhaps for people that travel, saving and loading is inconsistent and loads as either nil or 01-01-2001.
If a locale isn't specified on the save, I believe iOS uses whatever locale is currently set. If that changes, this can cause problems.
The locale needs to be forced on read and write to have data consistency.

Good stuff, thanks for sending it


Q: how completer for numeric range or IP should works?

Any suggestions how should completer work for numeric range or IP address?
Thanks!

Hmm... It's a really difficult. I don't have good and simple solutions to support such usages.


Add regression test for controller loader bug

Summary
Mojo::Loader fails loading controller classes under certain circumstances.
Motivation
This is actually a bug report that provides a failing regression test. I have no idea how to fix without breaking at the other end.
Setup
The long story:

A Mojolicious app (example code below) with two controller namespaces (Foo and Foo::Bar) where the seconds lies down in the hierarchy of the first.
Foo does not have a controller class, but only a template.
Start app and run queries in the following order
3.1 First request to foo-bar#index works
3.2 First request to foo#index works
3.3 Second request to foo-bar#index crashes
Can't locate object method "new" via package "TestApp::Controller::Foo::Bar" (perhaps you forgot to load "TestApp::Controller::Foo::Bar"?) ...

Perception
This error was introduced with commit bfc5449 that should fix issue #944.
It is caused by to enthusiastic unloading of Mojo::Util::_teardown and Symbol::delete_package respectively.
The code
App
package TestApp;
use Mojo::Base 'Mojolicious';

sub startup {
  my $r = shift->routes;
  $r->get('/')->to(controller => 'Foo', action => 'index');
  $r->get('/foo')->to(controller => 'Foo::Bar', action => 'index');
}

1;

Foo::Bar controller
package TestApp::Controller::Foo::Bar;

use Mojo::Base 'Mojolicious::Controller';

sub index { shift->render }

1;

Foo template
% my $c = shift;
Hello Mojo from the template <%= $c->url_for %>!

Foo-Bar template
: my $c = shift;
Hello Mojo from the other template <%= $c->url_for %>!

This is my suggestion:
diff --git a/lib/Mojo/Util.pm b/lib/Mojo/Util.pm
index b2ddcad1a..6bafca764 100644
--- a/lib/Mojo/Util.pm
+++ b/lib/Mojo/Util.pm
@@ -466,7 +466,18 @@ sub _teardown {
   # @ISA has to be cleared first because of circular references
   no strict 'refs';
   @{"${class}::ISA"} = ();
+  my ($ns, %keep) = (\%{"$class\::"});
+
+  use strict 'refs';
+  for my $k (keys %$ns) {
+    next unless my $stash = *{$ns->{$k}}{HASH};
+    my $sv = B::svref_2object($stash);
+    $keep{$k} = $stash if UNIVERSAL::isa($sv, 'B::HV') and $sv->NAME;
+  }
+
   delete_package $class;
+  no strict 'refs';
+  *{"$class\::$_"} = $keep{$_} for keys %keep;
 }

It's a bit ugly, but all the tests pass.


After upgrade to 1.17.6 Broadlink not work anymore

Home Assistant version
Home Assistant 2022.4.7
SmartIR version
1.17.6
SmartIR configuration
smartir:
climate:
  - platform: smartir
    name: Condizionatore Matteo
    unique_id: condizionatore_matteo
    device_code: 2020
    controller_data: remote.rm_matteo_remote
    temperature_sensor: sensor.netatmo_stazione_meteo_temperature
    humidity_sensor: sensor.netatmo_stazione_meteo_humidity

Describe the bug
After upgrade the version of smartIR to the version 1.17.6 my air conditioner of Ariston doesn't work anymore.
I use Broadlink RM Mini and they respond correctly to the PING. I've tried also to reboot the RM Mini and Home Assistant but still doesn't work.
After I've downgrade to the version 1.17.5 all works correctly.
Any other people have the same issue?
Thanks

Same errors again. Re-move and then re-install several times. Works for some days, error again. Only Off funtion work. :)


This error still persist  - Uncaught TypeError: this._iframeAutoHeight is not a function at Object._resourcesStateChange (core.js:5548:18)

To make it easier for us to help you, please include as much useful information as possible.
Version
Write the version of the Editor you are currently using.
Additional context
Add any other context about the problem here.

https://github.com/mkhstar/suneditor-react/issues/252
Is this issue unresolved?

mkhstar/suneditor-react#252 Is this issue unresolved?

Yes it does. There should be something to catch any error by suneditor in react.

https://github.com/mkhstar/suneditor-react/issues/252
This issue is not reproduced at the current version..
Version 3 is still under development.
In the meantime, I was not able to proceed due to a lot of work.
I aim to release it before summer.

mkhstar/suneditor-react#252 This issue is not reproduced at the current version..
Version 3 is still under development. In the meantime, I was not able to proceed due to a lot of work. I aim to release it before summer.

I am using next js, already summer in india.

Sorry, I don't know well the "nextjs" :(
It seems to be a "nextjs" environment issue.

https://github.com/mkhstar/suneditor-react/issues/252
This issue is not reproduced.😔

This error still persist - Uncaught TypeError: this._iframeAutoHeight is not a function at Object._resourcesStateChange (core.js:5548:18) #940

This error maybe occured error on the "next's".


chore: update config comments

What kind of change does this PR introduce?
docs update
What is the new behavior?
Feel free to include screenshots if it includes visual changes.
Additional context
Add any other context or screenshots.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>7
Details

0 of 0   changed or added relevant lines in 0 files are covered.
7 unchanged lines in 2 files lost coverage.
Overall coverage decreased (-0.03%) to 59.562%

Files with Coverage Reduction
New Missed Lines
%

internal/storage/rm/rm.go
2
89.53%

internal/gen/keys/keys.go
5
12.9%

Totals

Change from base Build<PHONE_NUMBER>6:
-0.03%

Covered Lines:
6391

Relevant Lines:
10730

💛  - Coveralls


Is there a way to pre-load an image from the website?

i.e. Is there a way that I can pre-load an image from the current server?

@waynewhitty is there any way to predefine the cropping height and width ?


Client defaults to "active" status

https://github.com/NOAA-OWP/evaluation_tools/blob/1e3b0701f68977d16371740df802fc180445024f/python/nwis_client/evaluation_tools/nwis_client/iv.py#L83
To more closely mimic the default behavior of NWIS itself, the active status should default to ALL and users should configure their client for the more specific cases of "inactive" and "active".

You're all determined to make me reconfigure all my workflows. 😝
On Wed, Dec 23, 2020, 17:05 Nels<EMAIL_ADDRESS>wrote:

https://github.com/NOAA-OWP/evaluation_tools/blob/1e3b0701f68977d16371740df802fc180445024f/python/nwis_client/evaluation_tools/nwis_client/iv.py#L83
To more closely mimic the default behavior of NWIS itself, the active
status should default to ALL and users should configure their client for
the more specific cases of "inactive" and "active".
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/NOAA-OWP/evaluation_tools/issues/10, or unsubscribe
https://github.com/notifications/unsubscribe-auth/ADBZNXAM5D6KS2FOI7CIDSLSWJZSNANCNFSM4VHRCXBA
.

@hellkite500 do you want to make this change and submit the PR?

@hellkite500 do you want to make this change and submit the PR?


fixFix slot desc wrong in query rewrite by materialized view when query is complex

Proposed changes
If query is very complex such as it has multi union and each union has join subquery.
In this scane, query rewrite by materialized view is sucessful but exec may fail with the reason
couldn't resolve slot descriptor 239, desc: tuples:
this is brought by https://github.com/apache/doris/pull/33362
Further comments
If this is a relatively large or complex change, kick off the discussion at<EMAIL_ADDRESS>by explaining why you chose the solution you did and what alternatives you considered, etc...

run buildall

run buildall

run buildall

run performance


Update Prices Failing, could not find driver

I am trying to update prices, but I am getting a driver failure. and I cannot seem to find the issue on why.
/usr/bin/php ./bin/skylizer_console.php update:prices
Running skylizer price-update application
please wait, may take a while ...

In AbstractMySQLDriver.php line 106:

  An exception occurred in driver: could not find driver

In PDOConnection.php line 31:

  could not find driver

In PDOConnection.php line 27:

  could not find driver

update:prices

Solved
install php7.2-mysql


[Plugin][Bug]: Conversion from WikiLinks to MdLinks does not prepend relative path

Issue validation

[X] I checked the issue to prevent duplicate
[X] I checked my configurations files and the documentation

Command used
Upload all notes, Refresh published and upload new notes
Plugin version
6.5.0-7
Describe the bug
The WikiLink to MdLink conversion does not include relative path from the source dir, breaking them.
Related to #37 ?
Could be because of lacking share in frontmatter? Related to change #210 ?
How to reproduce ?
No response
Minimal Reproducible Example
[_metadata_:title]:- "index"
[_metadata_:layout]:- "index"
## Motorsport
- Sim Racing Guide
	- Tuning
		- [[0. Car tuning]]
		- [[1. Variables - Slip angle]]
		- [[1. Variables - Tire Load]]
		- [[1. Variables - Tire Temperatures]]
	- First Steps
		- [[Tuning prerequisities]]
		- [[Gear]]
## Programming
- RaspberryPi
	- [[RPi Installation & Config]]
- Windows
	- [[Creating Symbolic Links - Win 10, Powershell 7]]
- [[Building a website (from scratch)]]
- [[GrayLog Install & Config - ARM64 Debian]]
- [[How easy it is to repair modern UEFI boot]]
- [[Install Wireless Driver for Archer T6E on Ubuntu]]
- [[Linux Tricks]]
- [[Linux Vlans]]
- [[Running old motherboards]]

Configuration
{
  "github": {
    "branch": "main",
    "automaticallyMergePR": true,
    "tokenPath": "%configDir%/plugins/%pluginID%/env",
    "api": {
      "tiersForApi": "Github Free/Pro/Team (default)",
      "hostname": ""
    },
    "workflow": {
      "commitMessage": "[PUBLISHER] Merge",
      "name": "update.yml"
    },
    "verifiedRepo": true
  },
  "upload": {
    "behavior": "obsidian",
    "defaultName": "src",
    "rootFolder": "",
    "yamlFolderKey": "",
    "frontmatterTitle": {
      "enable": false,
      "key": "title"
    },
    "replaceTitle": [],
    "replacePath": [
      {
        "regex": "/`Public` ProgrammingBlog",
        "replacement": "/Programming",
        "type": "path"
      },
      {
        "regex": "/`Public` MotorsportBlog",
        "replacement": "/Motorsport",
        "type": "path"
      }
    ],
    "autoclean": {
      "enable": true,
      "excluded": []
    },
    "folderNote": {
      "enable": false,
      "rename": "index.md"
    },
    "metadataExtractorPath": ""
  },
  "conversion": {
    "hardbreak": false,
    "dataview": true,
    "censorText": [],
    "tags": {
      "inline": false,
      "exclude": [],
      "fields": []
    },
    "links": {
      "internal": true,
      "unshared": false,
      "wiki": true,
      "slugify": true
    }
  },
  "embed": {
    "attachments": true,
    "keySendFile": [],
    "notes": false,
    "folder": "src/assets",
    "convertEmbedToLinks": "keep",
    "charConvert": "->"
  }
}

Relevant log output
Here is the resultant file:
- https://github.com/AmunNet/notes/blob/main/src/Index.md
And preview of raw contents:
- https://raw.githubusercontent.com/AmunNet/notes/main/src/Index.md

OS
Windows
Anything else?
No response
Obsidian information
SYSTEM INFO:
	Obsidian version: v1.3.7
	Installer version: v1.3.7
	Operating system: Windows 10 IoT Enterprise LTSC 2021 10.0.19044
	Login status: not logged in
	Insider build toggle: off
	Live preview: on
	Legacy editor: off
	Base theme: dark
	Community theme: none
	Snippets enabled: 0
	Restricted mode: off
	Plugins installed: 6
	Plugins enabled: 5
		1: Simple Embeds v1.14.1
		2: Tasks Calendar Wrapper v0.2.5
		3: Tasks v4.6.0
		4: ReadItLater v0.3.1
		5: Github Publisher v6.5.0-7

Changing "unshared": false to "unshared": true, fixes the links.

Yes, without frontmatter it's not possible to know if the file exist/must exists in the repository. That's why this option is mandatory!


Individual action timeouts

Who is in charge of monitoring when an individual action (nav or generic action server) runs over time? The task executor has information about the total policy time, but that's it.

generic actions servers are monitored and exec continues if they become unresponsive, but nav isn't. Not sure what's the best way, monitor each edge? The thing is that sometimes the robot needs to ask for help anyway, and then the times become much larger than the expected edge transversal. Are you timing out the overall execution at your level, e.g., when not trying to do something else will make the robot fail the schedule?

My plan is to only timeout the overall policy execution at my level. That should be enough if the navigation causes the policy to overrun (although it delays the intervention).


Implement unwind protection by converting R errors to panics.

Wrap an R function such as Rf_findFunction and convert errors and panics into results.
use extendr_api::*;
test! {
   let res = catch_r_error(|| unsafe {
       throw_r_error("bad things!")
       std::ptr::null_mut()
   });
   assert_eq!(res.is_ok(), true);
}

I'll have to do some timings to see how much overhead it has.
The single_threaded should only be an atomic access penalty, but I'm not
sure
about the R unwind protection.
On Fri, Jan 8, 2021 at 6:41 PM Claus Wilke<EMAIL_ADDRESS>wrote:

@clauswilke approved this pull request.
does it make sense to add a function that combines this with the mutex
into a single safe wrapper for R api calls? I presume we'll have to use
this all over the place eventually.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/extendr/extendr/pull/121#pullrequestreview-564494744,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAL36XAGK2X4XWOD5FYCHYDSY5GT5ANCNFSM4V2YRO4A
.

I'll have to do some timings to see how much overhead it has.
The single_threaded should only be an atomic access penalty, but I'm not
sure
about the R unwind protection.
On Fri, Jan 8, 2021 at 6:41 PM Claus Wilke<EMAIL_ADDRESS>wrote:

@clauswilke approved this pull request.
does it make sense to add a function that combines this with the mutex
into a single safe wrapper for R api calls? I presume we'll have to use
this all over the place eventually.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/extendr/extendr/pull/121#pullrequestreview-564494744,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAL36XAGK2X4XWOD5FYCHYDSY5GT5ANCNFSM4V2YRO4A
.

Yeah, I didn't think this through carefully. Since this is protection against catastrophic errors, I think a better approach is to wrap each extendr function into this, so it's executed only once per call into extendr.
Any users that don't write extendr functions but instead write Rust standalones calling R could be expected to think about how they want to handle catastrophic R errors. They could wrap all of their entire code into one single catch_r_error() call.

Yeah, I didn't think this through carefully. Since this is protection against catastrophic errors, I think a better approach is to wrap each extendr function into this, so it's executed only once per call into extendr.
Any users that don't write extendr functions but instead write Rust standalones calling R could be expected to think about how they want to handle catastrophic R errors. They could wrap all of their entire code into one single catch_r_error() call.

The main problem is that some of the R functions, like Rf_findFun throw
errors in quite benign circumstances.
I would be very happy to wrap all R function calls in protection and use
Rust alternatives where possible.
It is very hard to make R multithread safe, for example, but much easier
for rust data structures where we want to
actively encourage users to use parallelism.
This is partly the motive for using the rust wrappers, rather than the
cpp++/Rcpp method of wrapping a SEXP
in a specialised class wrapper. &[f64] can be safely multithreaded, but
SEXP/Robj can't.
On Sun, Jan 10, 2021 at 12:38 AM Claus Wilke<EMAIL_ADDRESS>wrote:

Yeah, I didn't think this through carefully. Since this is protection
against catastrophic errors, I think a better approach is to wrap each
extendr function into this, so it's executed only once per call into
extendr.
Any users that don't write extendr functions but instead write Rust
standalones calling R could be expected to think about how they want to
handle catastrophic R errors. They could wrap all of their entire code into
one single catch_r_error() call.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/extendr/extendr/pull/121#issuecomment-757390816, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAL36XFMZJI3A4Y4T6PNTWDSZDZIRANCNFSM4V2YRO4A
.

The main problem is that some of the R functions, like Rf_findFun throw
errors in quite benign circumstances.
I would be very happy to wrap all R function calls in protection and use
Rust alternatives where possible.
It is very hard to make R multithread safe, for example, but much easier
for rust data structures where we want to
actively encourage users to use parallelism.
This is partly the motive for using the rust wrappers, rather than the
cpp++/Rcpp method of wrapping a SEXP
in a specialised class wrapper. &[f64] can be safely multithreaded, but
SEXP/Robj can't.
On Sun, Jan 10, 2021 at 12:38 AM Claus Wilke<EMAIL_ADDRESS>wrote:

Yeah, I didn't think this through carefully. Since this is protection
against catastrophic errors, I think a better approach is to wrap each
extendr function into this, so it's executed only once per call into
extendr.
Any users that don't write extendr functions but instead write Rust
standalones calling R could be expected to think about how they want to
handle catastrophic R errors. They could wrap all of their entire code into
one single catch_r_error() call.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/extendr/extendr/pull/121#issuecomment-757390816, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAL36XFMZJI3A4Y4T6PNTWDSZDZIRANCNFSM4V2YRO4A
.

Can catch_r_error() be nested? Can you wrap an entire call to a Rust function into it, and then separately wrap R functions that are particularly prone to throw an error, such as Rf_findFun()?

Can catch_r_error() be nested? Can you wrap an entire call to a Rust function into it, and then separately wrap R functions that are particularly prone to throw an error, such as Rf_findFun()?


Bubble up FlasHLS events

Hi,
Is there a way to get access to the HLS events generated by FlasHLS?
For example, if the Flash returns an error 2032 (for many different reasons: 403, 404,...), I can't seem to be able to react to it.
In native HTML5, we get an error stating that a url cannot be read. But in the Flash fallback, we get nothing and thus, cannot react to this kind of error.
I'm particularly interested in knowing when a m3u8 file, playlist or a fragment file becomes unavailable (404) since even though FlasHLS says they fixed the bug to reload the file in this condition, it actually doesn't...

This doesn't seem to be isolated to FlasHLS, for the standard Flash Media Element polyfill I'm not getting network errors bubbled up to the JS error handler.

We need to re architect the events but this is doable
On Monday, January 11, 2016, axnd<EMAIL_ADDRESS>wrote:

This doesn't seem to be isolated to FlasHLS, for the standard Flash Media
Element polyfill I'm not getting network errors bubbled up to the JS error
handler.
—
Reply to this email directly or view it on GitHub
https://github.com/johndyer/mediaelement/issues/1658#issuecomment-170637151
.

--
John Dyer - http://j.hn/

@etherElric I think the events you are looking for can be achieved by using hls.js. There's a PR for that (#1776). We'll be also looking to integrate more events/errors in the Flash version, but test this PR and let me know if it works for you

@etherElric  Can you test 3.x-dev branch to see if this issue has been properly addressed, please?

Closing this issue since no answer has been posted in more than 2 weeks. If you'd like to reopen this, let us know. Thanks!


Intersmash should run with products and not just with community projects

Is your feature request related to a problem? Please describe.
Intersmah should be able to run with products' bits and deliverables that originate from the currently supported community projects (e.g.: WildFLy -> EAP, Keycloak -> RHSSO etc.)
Describe the solution you'd like
When using Intersmash for provisioning an interoperability testing scenario, users should be able to use products' bits and deliverables (e.g.: images) for configuring what actually would be provisioned.
This means that the provisioning components should be validated with such configured values.
This should be done by adding/modifying tests to the testsuite module, as it has been done in #21.
BTW - this affects the deployments module, which is used by some provisioners, namely the WildFly one. Such deployments are currently built with community artifacts, while they should use productized ones when the tests involve products rather than community projects. This could be done by defining a dedicated Maven profile to cover the differences in configuration.
Given the provisioners will try to use images which are available from a non-public registry, the Intersmash OpenShift CI infra configuration will be modified as needed, e.g.: for storing the secrets to access such registries.
Describe alternatives you've considered
None, this is a required feature for being able and use Intersmash for provisioning and test scenarios with products rather than community projects.
Additional context
N/A

Starting with https://github.com/openshift/release/pull/41412 in order to experiment with pull-secret for secured registries.

https://github.com/openshift/release/pull/41412 is now merged, therefore we can start playing with Intersmash OpenShift e2e test script to experiment/test with it.


Issue when suggestions has same items than default limit to show

When typing, is the come up result has the same number of items than the limit length, then it doesn't show any option even when there is data within the suggestions.  For example, if the limit is 5 and suggestions has 5 five items, it won't show anything.
The issue is happening in the "async(suggestion)" function.
For fixing it I just changed the line within the function from being:
that._append(query, suggestions.slice(0, that.limit - rendered));
To be:
that._append(query, suggestions.slice(0, that.limit));

Same issue observed here

This looks like a duplicate of ticket #1324. Which version are you experiencing this with?


AutoTrim

; v1
var = %var2%

; should be
var := Trim(var2)

this below doesn't AutoTrim. Only the explicit double %%
; v1
var = % var2

^^nope

But if AutoTrim, off then this wouldn't want to be changed.  Looks like low priority (and is nearly 8 years old) but fits into "string" category which I am concentrating on at the moment.

probably cant be addressed safely because hard to keep track whether the AutoTrim command was turned on or off

Ahh... good point... would have to detect the runtime flow.
What normally happens with issues like this that have no effective solution... should there be an expiration for unsolved cases, so they drop off the "Issues" list? Or they remain on the list in case the future presents a solution?

Ahh... good point... would have to detect the runtime flow.
What about replacing the AutoTrim with global variable as a flag, and checking that flag at appropriate times? This might be altering the scope of the converter again tho.
What normally happens with issues like this that have no effective solution... should there be an expiration for unsolved cases, so they drop off the "Issues" list? Or they remain on the list in case the future presents a solution?

i think global variable has the same issues, because in ahk v1, the settings are applied on a per-thread basis. if the autotrim command was turned on/off in a hotkey thread or settimer thread, and you replaced it with a global flag, that global flag would be incorrect once that thread is exited
i dont know what to do with issues like this that have no effective solution. i guess just keep them open in case other people are searching for reasons why xyz isnt converted. or in case someone else does come up with a solution in the future. but ultimately there are only so many things the converter can reliably do

I see your point... thanks for your time and insight!


[Suggestion] Use a theme plugin for light/dark

Correct me if I'm wrong, as your vision creating it may differ from mine.
Looking at the current components, looks like you have two version of every block, a dark and a light one. For you to make a change in one component, you actually have to change 2 files. For people using it and trying to use both themes, they have to implement some sort of theming.
I've recently created a plugin for creating themes for Tailwind, that I think you could benefit.
You can see it live here: https://tailwindcss-multi-theme.now.sh/
eg. This is the current blocks/cta/light/a.js:

        Slow-carb next level shoindxgoitch ethical authentic, scenester
        sriracha forage.

      <button className={`flex-shrink-0 text-white bg-${props.theme}-500 border-0 py-2 px-8 focus:outline-none hover:bg-${props.theme}-600 rounded text-lg mt-10 sm:mt-0`}>
        Button
      </button>

Using the plugin, you would need only one file blocks/cta/a.js (half the maintenance):

        Slow-carb next level shoindxgoitch ethical authentic, scenester
        sriracha forage.

      <button className={`flex-shrink-0 text-white bg-${props.theme}-500 border-0 py-2 px-8 focus:outline-none hover:bg-${props.theme}-600 rounded text-lg mt-10 sm:mt-0`}>
        Button
      </button>

Note that it only adds dark as a variant, so it doesn't require any new syntax, just plain old Tailwind CSS and would only be applied when .theme-dark was present on a parent (or html or body), and could benefit from prefers-color-scheme to auto apply themes based on user preference. *Also, your other theme props stay untouched.
If you're interested in how it works, you can visit the repo or ask me anything.

Is there any possibility to add this feature in the near future? 🤔

Hello @estevanmaito,
Thank you for your interest but I've no plan to change the logic of dark/light mode toggling.


fixed performance monitor dep check

I suggest we remove the performance monitoring feature for now - the configuration creates conflicts with using FintCache without the @EnableFintCache annotation.

What exactly was the problem with the performance monitor?

If you include fint-cache as a dependency in a project, but not using @EnableFintCache or CacheManager, you get this error:
***************************
APPLICATION FAILED TO START
***************************

Description:

Parameter 0 of constructor in no.fint.cache.monitoring.PerformanceMonitorController required a bean of type 'no.fint.cache.monitoring.PerformanceMonitor' that could not be found.

The following candidates were found but could not be injected:
	- Bean method 'performanceMonitor' in 'PerformanceConfig' not loaded because @ConditionalOnProperty (fint.cache.performance-monitor=true) did not find property 'fint.cache.performance-monitor'

Action:

Consider revisiting the entries above or defining a bean of type 'no.fint.cache.monitoring.PerformanceMonitor' in your configuration.

Process finished with exit code 1

This is probably because this class has @RestController and @RequestMapping annotations.


"Loading" of Windows Runtime assemblies fails in 7.1 Preview 4

Steps to reproduce
[void][Windows.Storage.StorageFile, Windows.Storage, ContentType=WindowsRuntime]
[void][Windows.Graphics.Imaging.BitmapDecoder, Windows.Graphics, ContentType=WindowsRuntime]
Expected behavior
WinRT assemblies are loaded.
Actual behavior
InvalidOperation: Unable to find type [Windows.Storage.StorageFile,Windows.Storage, ContentType=WindowsRuntime].
InvalidOperation: Unable to find type [Windows.Graphics.Imaging.BitmapDecoder,Windows.Graphics, ContentType=WindowsRuntime].
Environment data
PSVersion                      7.1.0-preview.4
PSEdition                      Core
GitCommitId                    7.1.0-preview.4
OS                             Microsoft Windows 10.0.18363
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           <IP_ADDRESS>
WSManStackVersion              3.0

This is due to removal of builtin support in dotnet, see dotnet/runtime#37672.
/cc @SteveL-MSFT while this breaking change isn't PowerShell's fault, it will have a decent impact. It may be a good idea to look into adding built in support. C#/WinRT package seems to be the recommendation, though at a glance it doesn't look like that can be used as a general solution.
There are some very popular modules that utilize winrt APIs (like BurntToast by @Windos).

It may be that my morning coffee is only half drunk atm, but I'm struggling to wrap my head around making use of C#/WinRT in (non-C#) PowerShell.
From what I can see on the Gallery, the biggest use case of these WinRT assemblies are Toast Notifications of various flavours (Even dbatools uses them).
If we could wrangle built-in support in PowerShell that'd be super 💜. If not, it looks like module authors will need to figure out runtime projection... in BurntToast's case that'll probably mean a version or two that caps its host support at 7.0 until I/someone figure it out.

PowerShell has never WinRT support. The fact that users could load WinRT assemblies previously does not mean that everything worked out of the box. Moreover, the engine explicitly blocks WinRT event processing (Also it seems the engine consider WinRT types as special case).
To restore previous behavior users have to explicitly install C#/WinRT package (it seems it is still not ready for general use).
Since no changes was made in PowerShell engine all modules used WinRT directly (by p/invoke) should continue to work.

@iSazonov I 100% agree that this break isn't PowerShell's fault or even necessarily it's responsibility to fix.  It still might be a good idea though.

PowerShell has never WinRT support.

In the same way it never supported System.Text.StringBuilder I suppose but if that disappeared tomorrow it might be a good idea to add it back.

Moreover, the engine explicitly blocks WinRT event processing (Also it seems the engine consider WinRT types as special case).

It also blocks processing of event handlers with a return type other than void.  I'm guessing there are similar technical and/or design reasons.

In the same way it never supported System.Text.StringBuilder I suppose but if that disappeared tomorrow it might be a good idea to add it back.

Technically we would need to reference C # / WinRT package. But now the package is not ready for release. Also I guess MSFT team prefer to reduce PowerShell distributive size.

@Windos If I understand correctly BurntToast doesn't work on latest PowerShell preview. Do you consider C # / WinRT package for BurntToast?

@iSazonov Yeah, BurntToast 100% relies on WinRT assemblies so this change in .NET will break the module in PS preview. I missed Preview 4 before  the MSI got pulled, so will confirm this when Preview 5 is out.
I will be looking into C#/WinRT, but haven't had a chance to sit down and figure that out yet.

I missed Preview 4 before the MSI got pulled, so will confirm this when Preview 5 is out.

@Windos You can load a nightly build from main page of the repo.

Another use case of WinRT assemblies that's worth to be considered are its bitmap decoders that support Apple's HEIF format. I'm not aware of any alternative provided by Microsoft.

Can confirm, expected exception when importing the module.

I'll bring this up with the .NET team

With the breaking change in .NET5 Preview 6, https://devblogs.microsoft.com/dotnet/announcing-net-5-0-preview-6/, you will now need to reference a cswinrt generated interop assembly to call winrt apis. For the Windows WinRT apis, we've built a nuget package that provides this support, and will need to be referenced when building the module - https://www.nuget.org/packages/Microsoft.Windows.SDK.NET

There are three big questions we need to answer:

Does referencing the package resolve this issue?
Does referencing the package / adding a dependency fit into a natural PS workflow?
What should we do to enable a PS module to support both PS 7.0 and 7.1 (to accommodate this breaking change)?

Modules referencing a nuget dependency is a scenario that still does not work anything close to well and isn't a supported scenario for PowerShellGet as far as I'm aware. Not sure if that's planned to change for v3 of that module but it really should if it hasn't already.
Until that's working seamlessly things like this will need to be included in PowerShell itself to avoid breaking changes.

Workaround:

include winrt.runtime.dll from microsoft.windows.cswinrt nupkg
include Microsoft.Windows.SDK.NET.dll microsoft.windows.sdk.net nupkg

Add-Type -AssemblyName
In BurntToast, remove lines like 2137 that try to load the types using fully qualified names as those types are projected from different assemblies.
Was able to get New-BurntToastNotification to work.
I'd like to get PowerShellGetv3 to manage nuget.org dependencies but until that exists you'll have to pkg your module with those assemblies and load them.

I see a size of latest version of microsoft.windows.cswinrt package is ~977 Kb. We could add it in PowerShell 7.1 distribution until PowerShellGet addresses dependencies.

That was unbelievably easy, thanks for spelling out the work around @SteveL-MSFT!
Also, this whole thing also addresses #2181 as the reflection includes event handling and... that works now:

Will have PS-Committee review whether we should just include the necessary assemblies with PS7.1

Is that a community call review (and does that mean I'll have to wake up for the next call 😂)?

@Windos no, the PS-Committee is separate from the Monthly Community Calls.  PS-Committee meets twice a week to weigh in on certain decisions affecting PowerShell

@PowerShell/powershell-committee reviewed this, we agreed that we will not be redistributing the WinRT assemblies with PowerShell 7.1.  We also agreed to have documentation added to help PowerShell users that want to use WinRT.

More generally, we also agreed that we should, as a rule, snap to .NET's decision on API surface area except where there is overwhelming evidence that something has additional value to PS users. E.g. WinForms/WPF are used heavily in the PS ecosystem, and make sense to continue including on Windows.

Thanks for the quick decision on this. Will work on a module update to include the assemblies.

/cc @sdwheeler for reference.

Based on this thread I've been able to successfully use some WinRT classes in PowerShell by importing the two dlls in this BurntToast folder, but I can't figure out how to get or build these dlls from the primary source. Are these on NuGet somewhere?

Microsoft.Windows.SDK.NET.dll
WinRT.Runtime.dll

@xdhmoore: https://www.nuget.org/packages/Microsoft.Windows.SDK.NET.Ref/

You can now fix this with the Import-Package module that I just published to PowerShell gallery.
Import-Package "microsoft.windows.sdk.net.ref"

It automatically installs (if not already installed) the Microsoft.Windows.SDK.NET.Ref package and imports the whole .nupkg into the PowerShell session.
Small warning though:
That Microsoft package does not make use of the NuGet "runtime" directory, so Import-Package will not know that this package is Windows-specific, and will try to import it, even if you are running it from PowerShell on Linux.

I am sorry, but can someone please explain to non-programmers how to take advantage of this fix (or some other workaround)? I do not know anything about assemblies, namespaces, runtimes, etc. In my heart, I'm a mere sysadmin writing my 10-20 lines scripts that sometimes need to tackle Windows APIs, and historically PowerShell has been exceptionally good in that.
E.g., considering the basic examples in the very first message in this thread (or slighly more complex code samples like this), what exactly needs to be changed so that they work in PS7? (And, preferably, still work in PS5.1).
And I apologize if this has been already documented. Unfortunately, Internet search for "winRT PowerShell" currently gives you this thread as the most relevant link and not some documentation page.

@PowerShell/powershell-committee reviewed this, we agreed that we will not be redistributing the WinRT assemblies with PowerShell 7.1. We also agreed to have documentation added to help PowerShell users that want to use WinRT.

@sdwheeler Have we the docs or a doc issue?

@sdwheeler Sean Wheeler FTE Have we the docs or a doc issue?

@iSazonov No we don't have docs or a docs issue. Please open a docs issue and provide the necessary information needed for the docs.

I created doc issue but don't have specific information for this documentation. I hope the participants in this discussion will post steps for using WinRT there.

@pronichkin
You can actually just run whatever code on the older PowerShell by wrapping stuff with eg powershell { } Its that simple to run the script code in another installed powershell version. I have pwsh as newer PS and powershell as older one. One result can be a script stuck running and that just means the code needs adjustment.
If you have an error like in OP, and an older installed PS version where it works, then you can do this as long as there's an old enough installed PS version available. You just need to figure out where to wrap your scripts or code to work best.
To me that is simpler and better than doing anything above and I use it but it depends on your situation.
I can't help you further on this. Just giving a hint of something possible that you can do =)


Flet Crashes constantly with no errors

Duplicate Check

[X] I have searched the opened issues and there are no duplicates

Describe the bug
Whether running python3 file.py or flet run flet crashes constantly with no errors.
Code sample
Code
from flet import Image,Page,app

def main(page: Page):
    photo = Image(src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR9SRRmhH4X5N2e4QalcoxVbzYsD44C-sQv-w&s")

    page.add(photo)

app(target=main)

To reproduce
Run the code above
Expected behavior
The app should load.
Screenshots / Videos

Captures
[Upload media here]

Operating System
macOS
Operating system details
Mac OS Sonoma version 14.2.1
Flet version
Version: 0.25.0.dev3519
Regression
No, it isn't
Suggestions
No response
Logs
Logs
DEBUG:flet:Connected new TCP client
DEBUG:flet:_on_message: {"action":"registerWebClient","payload":{"pageName":"var/folders","pageRoute":"/","pageWidth":"800.0","pageHeight":"600.0","windowWidth":"800.0","windowHeight":"628.0","windowTop":"582.0","windowLeft":"1200.0","isPWA":"false","isWeb":"false","isDebug":"false","platform":"macos","platformBrightness":"light","media":"{\"padding\":{\"top\":0.0,\"right\":0.0,\"bottom\":0.0,\"left\":0.0},\"view_padding\":{\"top\":0.0,\"right\":0.0,\"bottom\":0.0,\"left\":0.0},\"view_insets\":{\"top\":0.0,\"right\":0.0,\"bottom\":0.0,\"left\":0.0}}","sessionId":""}}
DEBUG:flet:__send: {"action":"registerWebClient","payload":{"session":{"id":"","controls":{"page":{"i":"page","t":"page","p":"","c":[],"route":"/","width":"800.0","height":"600.0","windowwidth":"800.0","windowheight":"628.0","windowtop":"582.0","windowleft":"1200.0","pwa":"false","web":"false","debug":"false","platform":"macos","platformBrightness":"light","media":"{\"padding\":{\"top\":0.0,\"right\":0.0,\"bottom\":0.0,\"left\":0.0},\"view_padding\":{\"top\":0.0,\"right\":0.0,\"bottom\":0.0,\"left\":0.0},\"view_insets\":{\"top\":0.0,\"right\":0.0,\"bottom\":0.0,\"left\":0.0}}"}}},"error":"","appInactive":false}}
DEBUG:flet_core:_process_command: get ['page', 'route'] {}
DEBUG:flet_core:_process_command: get ['page', 'pwa'] {}
DEBUG:flet_core:_process_command: get ['page', 'web'] {}
DEBUG:flet_core:_process_command: get ['page', 'debug'] {}
DEBUG:flet_core:_process_command: get ['page', 'platform'] {}
DEBUG:flet_core:_process_command: get ['page', 'platformBrightness'] {}
DEBUG:flet_core:_process_command: get ['page', 'media'] {}
DEBUG:flet_core:_process_command: get ['page', 'width'] {}
DEBUG:flet_core:_process_command: get ['page', 'height'] {}
DEBUG:flet_core:_process_command: get ['page', 'windowWidth'] {}
DEBUG:flet_core:_process_command: get ['page', 'windowHeight'] {}
DEBUG:flet_core:_process_command: get ['page', 'windowTop'] {}
DEBUG:flet_core:_process_command: get ['page', 'windowLeft'] {}
DEBUG:flet_core:_process_command: get ['page', 'clientIP'] {}
DEBUG:flet_core:_process_command: get ['page', 'clientUserAgent'] {}
INFO:flet:App session started
DEBUG:flet_core:_process_command: add [] {'to': 'page', 'at': '0'}
DEBUG:flet_core:_process_command: add [] {'to': 'page', 'at': '1'}
DEBUG:flet:__send: {"action":"pageControlsBatch","payload":[{"action":"addPageControls","payload":{"controls":[{"t":"view","i":"_1","p":"page","c":["_2"],"at":"0"},{"t":"text","i":"_2","p":"_1","c":[],"value":"Hello There!"}],"trimIDs":[]}},{"action":"addPageControls","payload":{"controls":[{"t":"offstage","i":"_3","p":"page","c":[],"at":"1"}],"trimIDs":[]}}]}
DEBUG:flet:sent to TCP: 604
DEBUG:flet:sent to TCP: 347
DEBUG:flet_desktop:Flet View process 38877
DEBUG:flet:Closing connection...
DEBUG:flet:Disconnecting all pages...
DEBUG:flet_core:page.on_event_async: page disconnect
DEBUG:flet:Shutting down thread pool...

Additional details
No other details

Just tried this on 0.25.0.dev3647.
Using flet run script.py, I don't get a crash.
Python 3.12.7 / MacOS 15.0.1

What are in the Flet logs?
Place these lines before your imports, and you should get detailed flet logs in the terminal.
Do you get this issue if you Build? Or only on Flet Run?
import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger("flet_core")
logging.getLogger("flet")

Also add page.on_error = lambda e: print(e.data) somewhere in your main function.

What are in the Flet logs?
Place these lines before your imports, and you should get detailed flet logs in the terminal.
import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger("flet_core")
logging.getLogger("flet")

Do you get this issue if you Build? Or only on Flet Run?

Added the logs to the original issue. This is when I use flet run or when doing python3 main.py

page.on_error = lambda e: print(e.data)

Nothing happens when doing that. It just closes the app and nothing else.

Can you give the latest prerelease a try?

Can you give the latest prerelease a try?

Seems to have fixed it. Using 0.25.0.dev7711


Best Price  keeps loading

Best price gets from offers. Is any offers in the list? (no offers => searching => waiting for the price)

has orderbook filled?

i think we should add "?" like near the spinner with this notification  "Best price gets from offers. Is any offers in the list? (no offers => searching => waiting for the price)"

Or more shortly:
Best price: ••• (waiting for offers)


[CSS] Incorrect keyword suggestion for justify-items and justify-self

Does this issue occur when all extensions are disabled?: Yes

VS Code Version: 1.74.2
OS Version: Windows 10

Steps to Reproduce:

Open a CSS file
Type justify-items:
There are save and unsave in keyword suggestion, but the keywords are incorrect

See:
https://w3c.github.io/csswg-drafts/css-align/#typedef-overflow-position
Correct keywords are below:

save → safe
unsave → unsafe

(f, not v)
Same issue happens for justify-self
(Note: justify-content shows correct keyword.)
Thank you

Thanks a lot. Fix is in https://github.com/microsoft/vscode-custom-data/pull/64

Still seeing those

Trying on https://insiders.vscode.dev/, Version: 1.75.0-insider
Commit: 07d6f5b35fac559504dec65e3073d796b2d25a55


Create a Business Scenario for a Deployed Workflow

Tutorial URL: https://developers.sap.com/tutorials/cp-cf-processvisibility-model-configscenario.html
Please specify the step you are referring to Step 2: Add workflows
Hi,
How could I add ONBOARD if it doesn't appear?? Please, what should I do??
Thanks,
Dotta

Kindly refer to the prerequisites. You need to have your workflows deployed on cloud foundry. Refer to the blog link.

Thank you for your feedback. The issue seems to be resolved, so I am closing the issue.
If you still have questions, feel free to reopen the issue.


es warning

how to remove es6  warning

I think this is better ask in the ESLint channel (stack overflow) since this is a contfiguration of ESLint npm itself. The VS Code extension is based on ESLint npm. A good way to tweak things like this is to execute eslint in a terminal to see how standard eslint behaves.


Tensorflow lite speech sample is not detecting silence (wrong detections)

Hi, I am using the sample https://github.com/tensorflow/examples/tree/master/lite/examples/speech_commands/android . I am facing the following issues:

When there is a silence it detects as a speech?
It also detects fan noise, clap or any tick noises as a speech which it should not as it is not a speech of a person.
It does not detect voice correctly, like If I have spoken Yes it does not detect and same for other words as well.

Can you please guide which are the missing steps or which model to use if sample is not update? Speech and silence should be detected correctly. Currently it detects silence as words as well.

Hi Mustansar,
The model is trained on small open dataset, contributed by the volunteers. If you want to improve the accuracy for background noise on fan noise and clap sounds, you can record some background noise dataset and use this training script to train a model with better quality.
https://www.tensorflow.org/tutorials/audio/simple_audio
Thanks,
Tiezhen

Hi Mustansar,
The model is trained on small open dataset, contributed by the volunteers. If you want to improve the accuracy for background noise on fan noise and clap sounds, you can record some background noise dataset and use this training script to train a model with better quality.
https://www.tensorflow.org/tutorials/audio/simple_audio
Thanks,
Tiezhen

@mustansarsaeed  Please check the above comment and let us know if you still have any queries.


"Subscribe to KubeWeekly Newsletter" section, enhancement request

This is a Feature Request

What would you like to be enhanced?
I think "Subscribe to KubeWeekly Newsletter" section at bottom of Home page is:-

Taking too much white/grey space that can be shortend.
The input area where user will enter his/her email id is a little small and maybe it will be better if that gets a little enlarged.

/area web-development

/priority backlog

Page: https://kubernetes.io/

/good-first-issue
The files to edit can be found in assets/scss

/remove-help
/remove-good-first-issue
Don't label issues as good first issues unless they are also triaged as Accepted

/assign

when we shorten this white space I feel there is no need to enlarge the input area as it aligns perfectly once shorten.

@aj11anuj can you please add the triage/accepted label?

/close


Add auto-delete boot disk as an option on vm-instance

If even only for testing, I often want to turn auto-delete off. This exposes the option without changing the default behavior.

[x] Is unit test coverage still above 80%?
[x] Have you updated all applicable documentation?
[x] Have you followed the guidelines in our Contributing document?

it's not clear to me what workflow you are trying to enable.

In the current state, If I have waited a long time for startup scripts to install something and then I want to tweak a machine parameter that forces replacement, I will lose the disk and have to wait for startup to run again.

I have some concerns about effectively managing the destruction of the disk twice (explicitly and implicitly) that this change does not address. I also suspect you could address some of your concerns by shutting the machine down, running Terraform, and then turning it back on.
That said, it's a knob that arguably merits existence.
In medium term I think we should probably manage the creation and destruction of the boot disk entirely implicitly (with auto deletion either on or off) and allow the user to supply externally-created secondary disks.


feat: impl cluster buffer limit

What type of PR is this?
type:
feat impl cluster buffer limit
What this PR does / why we need it:
description:
Support per_connection_buffer_limit_bytes configuration on cluster by adding a knob

ref doc: https://www.envoyproxy.io/docs/envoy/latest/api-v3/config/cluster/v3/cluster.proto#config-cluster-v3-cluster

Which issue(s) this PR fixes:
Fixes #3278

/retest

/retest

/retest


Import Recipes from Web Search

Description

https://trello.com/c/8rGlFe5D/17-recipe-import-from-external-websites

Adds a way to import recipes from websites.
Uses Google's Programmable Search Engine to provide a search bar for finding recipes from specific websites. When a search result is clicked, instead of opening the website, the url is passed to the backend to scrape the recipe info and fill out the recipe create form. The user can then choose to modify the recipe and/or save it.

Testing

@CodeSmitty Do you think this change should include a source field on the recipe to add the URL to the original recipe?

Yes. I was thinking about that the other day. Was gonna mention that and the image being an option. The image could be a me thing though. For work related reasons, choosing a recipe based on how it looks and diffulty is a big deal for me.
So having a source url is a lot help in the meantime. Thosr are my personal reasons. For UX, I think it will also help for the same reasons or just general seeing it from a diff perspective.


Semantic

Trying to make hax/hacspec semantic explicit.

Hi @cmester0,
I guess we'll discuss that this afternoon, but the idea here is to define an executable semantic? i.e. target some AST and give it a semantic with an interpreter?
Would be awesome :)

Attempt at defining a common (deeply embedded) semantic to enable cross backend reasoning. This has been put on hold for now, so we will close this PR for now.


New version: Tableau.Public version 24.2.544 (2024.2.0)

Created by 🥟 Dumplings in workflow run #6449.

Log
Updated: 2024.1.4 → 2024.2.0
Submitting WinGet manifests
Creating manifests
Uploading manifests and making commits
Creating a pull request

Microsoft Reviewers: Open in CodeFlow

@wingetbot run

/azp run

https://github.com/microsoft/winget-pkgs/issues/142854


TIM-100 feat(feed): add recommended pages card

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#38
#37
#36  👈
#35
#34
#33
#32
#28
#27
#26
#25
#24
#23
#21
#20
#19
#18
#17
#16
#15
#14
#13
#12
#11
#10
#9
#8
main

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

Join @xdjeremy and the rest of your teammates on  Graphite


Layer interaction in IE10/IE11 not working when dragging a leaflet marker

Hi all, the featureOver/Out events do not fire in recent versions of internet explorer when you drag a leaflet marker over the layer.
The problem stems from this line: https://github.com/CartoDB/cartodb.js/blob/develop/vendor/wax.cartodb.js#L3163
Commenting the line out fixes the issue for our use case without causing other obvious problems, but I'm sure this isn't ideal.
I have a minimal test case set up at http://jsfiddle.net/wdr0qx5o/1/

Line that he comments (with history revision) is:

bean.add(parent(), 'MSPointerDown', onDown);

https://github.com/CartoDB/cartodb.js/blob/a6e19b8caf9de2b86a5a6470ddfee95e14c401ce/vendor/wax.cartodb.js#L3163

I'm testing with this link

Fix

Reason: Internet Explorer is triggering pointerdown when you click on the marker, and other browsers don't. Because of that, _downLock was active and it believed that you're dragging the map, instead of dragging the marker

Fixed in 3.12.6
Test