Set the DB_DATABASE environment variable

I have installed orator in django
Python 3.9.7
django 4.0.5
I create a migration and model in the root that you can see my code and set connection but when i'm running migrate command orator migrate
then coming these issues
[ImproperlyConfigured]
  Set the DB_DATABASE environment variable
migrate [-c|--config CONFIG] [-d|--database DATABASE] [-p|--path PATH] [-s|--seed] [--seed-path SEED-PATH] [-P|--pretend] [-f|--force]

db connection in the root
from orator import DatabaseManager, Schema
import environ
env = environ.Env()
environ.Env.read_env()

databases = {
    'mysql': {
        'driver': 'mysql',
        'host': 'localhost',
        'database':  env('DB_DATABASE'),
        'user': env('DB_USERNAME'),
        'password': env('DB_PASSWORD'),
        'prefix': ''
    }
}
db = DatabaseManager(databases)
schema = Schema(db)

migration file
from orator.migrations import Migration

class CreateProductsable(Migration):

    def up(self):
        """
        Run the migrations.
        """
        with self.schema.create('products') as table:
            table.increments('id')
            table.integer('category_id').unsigned()
            table.timestamps()

            table.foreign('category_id').references('id').on('jobs').on_delete('cascade')

    def down(self):
        """
        Revert the migrations.
        """
        self.schema.drop('products')

model file
from orator import Model

class Product(Model):

    __table__ = 'products'

Please can you help me about this issue where i'm doing mistake . Thanks in advance

are you sure that the env('DB_DATABASE´)  is returning a non-empty string?


Tweak proto definitions for fees

We should consider:

[x] moving the fee into the TransactionParameters
[ ] adding a FeeView to provide denom support.

The first point was done in #3542, but there's no FeeView. I'm not sure if we should add it, we would have to make a TransactionParametersView and it doesn't do much because we only accept one asset type as the fee token.


Cannot view original, only copies

See the video demonstration of this issue:
(Too big for github upload, link expires in 30 days)
https://upload.disroot.org/r/EF0Kh6uu#cctjsbepEdtWQ/8BYQ1WtTWTYq3lfOx9jvJgpqoiOj0=
First download:

Second download:

(Note that they are exactly the same file, except for (1) at the of the name of the second version)
As can be seen in the video, I need to download the image twice to be able to view it in Aves.

aves-logs-20211125_033842.txt
Aves version: 1.5.6-play (Build 60)
Flutter version: 2.5.3 (Channel stable)
Android version: 10 (SDK 29)
Android build: lineage_raphael-userdebug 10 QQ3A.200705.002 eng.abhish.20200710.065119 test-keys
Device: Xiaomi Mi 9T Pro
Google Play services: not available

Thanks for the report.
From the logs, I see that the Media Store on your device thought the first GIF was a video (which is incorrect) and the second GIF an image (which it is). I can't reproduce that phenomenon, but I'll try to make Aves more robust against that kind of nonsense.


Vkukke/eventgrid

Description

Testing Guide

History Notes

[Component Name 1] BREAKING CHANGE: az command a: Make some customer-facing breaking change.
[Component Name 2] az command b: Add some customer-facing feature.

This checklist is used to make sure that common guidelines for a pull request are followed.

[ ] The PR title and description has followed the guideline in Submitting Pull Requests.

[ ] I adhere to the Command Guidelines.

[ ] I adhere to the Error Handling Guidelines.

eventgrid

It is just a draft.


App of the day tile papercuts

At narrow sizes the app of the day tiles have a number of issues:

[x] The "App of the Day" header is part of the left column. This means it wraps awkwardly at narrow sizes, even though there's enough space to its right. I'd make the header its own full-width element at mobile width.

[ ] The icon is not vertically centered on the name+summary, which looks especially off with longer summaries:

[ ] The summary needs a little bit of padding from the icon on the right, currently they can almost touch, which looks weird. Perhaps it'd also help to use a smaller font size for the summary here?

The icon is not vertically centered on the name+summary, which looks especially off with longer summaries:

If I'm not misunderstanding this, I've tried it and it made it look weird/broken. As it throws off the balance in that element.

Perhaps it'd also help to use a smaller font size for the summary here?

Done with the latest changes


Add small and not large media queries

hai tachyons teams,
i admire your works thanks for realy helping my in my project.
and then i realized that i need more Media Queries for my project.
so i add small(max-width: 30em) and not-large(max-width: 60em)
and the class name too like -s for small and -nl for not-large

Tachyons is mobile-first. All styles without suffix is for small screens. For "not-large" you can use -ns.

-ns is deprecated. You have to use explicit -m and -l classes.

On Nov 10, 2018, at 9:12 AM, luizbills<EMAIL_ADDRESS>wrote:
Tachyons is mobile-first. All styles without suffix is for small screens. For "not-large" you can use -ns.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@dangayle -ns will be deprecated just in v5 and v5 has no release date yet.

To clarify, -ns is now considered deprecated since it will be removed in v5.

How one thing becomes obsolete with an update that has no release date. v5 may still take years to release. And the -ns breakpoint (min-width: 30em) is still extremely necessary.
 If it is really obsolete, this should be explicit somewhere.

I don’t disagree that a release schedule with depreciations would be nice. I also don’t disagree that -ns is handy. Heck, I complained about its removal on Slack just a few weeks ago because when that day comes it’s going to make me refactor a ton of components.
But adding xyz-m and xyz-l styles is functionally equivalent. By removing -ns, you make the compiled CSS a fourth smaller without any loss in functionality. I call that a win.

These media-queries don't fit our philosophy / pattern. Shouldn't need a small media query at all as that's what the global classes cover as-is.


testing MVU

Description
[Describe what this change achieves - Guidelines below (please delete the guidelines after writing the PR description)]

What is the change? This is best described in terms of “Currently, Babelfish does X. With this change it now does Y.” Think of “What did it used to do?” and “What does it do now?”

Why was the change made? What drove our desire to put effort into the change?
How was the code changed should only appear for large commits. This can serve as a rough roadmap to what’s contained in the commit. It should be very high level; if it’s directly referencing code it’s probably too detailed. It’s also critical that this section of a commit message does not try to replace proper code documentation (ie, block comments or README files). Generally, this section should only appear if the commit itself is large enough that it’s helpful to provide a roadmap to someone looking at the commit.
The last descriptive piece is the “title” for the commit: the very first line of the commit message, which should typically be less than 80 characters. A good title is critical, because it’s the only thing that shows up in places like the Github commit listing. No one’s got time to read through full commit messages when trying to find a single commit out of dozens.

Issues Resolved
[List any issues this PR will resolve]
Test Scenarios Covered

Use case based -

Boundary conditions -

Arbitrary inputs -

Negative test cases -

Minor version upgrade tests -

Major version upgrade tests -

Performance tests -

Tooling impact -

Client tests -

Check List

[ ] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is under the terms of the Apache 2.0 and PostgreSQL licenses, and grant any person obtaining a copy of the contribution permission to relicense all or a portion of my contribution to the PostgreSQL License solely to contribute all or a portion of my contribution to the PostgreSQL open source project.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>1
Warning: This coverage report may be inaccurate.
This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

For more information on this, see Tracking coverage changes with pull request builds.
To avoid this issue with future PRs, see these Recommended CI Configurations.
For a quick fix, rebase this PR at GitHub. Your next report should be accurate.

Details

0 of 0   changed or added relevant lines in 0 files are covered.
22123 unchanged lines in 96 files lost coverage.
Overall coverage decreased (-38.1%) to 35.492%

Files with Coverage Reduction
New Missed Lines
%

contrib/babelfishpg_tds/src/backend/tds/tds_srv.c
1
89.15%

contrib/babelfishpg_tsql/src/collationproperty.c
1
92.86%

contrib/babelfishpg_tds/src/include/tds_request.h
1
73.8%

contrib/babelfishpg_tds/src/backend/tds/tdscomm.c
1
75.71%

contrib/babelfishpg_tsql/src/pltsql_function_probin_handler.c
2
94.01%

contrib/babelfishpg_common/src/encoding/mb/conversion_procs/utf8_and_uhc/utf8_and_uhc.c
2
0.0%

contrib/babelfishpg_tsql/src/pl_comp-2.c
3
89.29%

contrib/babelfishpg_tds/src/backend/tds/tdsprotocol.c
3
82.53%

contrib/babelfishpg_common/src/encoding/mb/conversion_procs/utf8_and_gbk/utf8_and_gbk.c
4
0.0%

contrib/babelfishpg_common/src/encoding/mb/conversion_procs/utf8_and_sjis/utf8_and_sjis.c
4
0.0%

Totals

Change from base Build<PHONE_NUMBER>9:
-38.1%

Covered Lines:
20590

Relevant Lines:
58013

💛  - Coveralls


should trim if a string containing non whitespace characters

we briefly talked about my comment ^ - this should be safe since this was what simcapi was doing prior to all our changes. the only difference now is it should maintain purely white-space children now. :+1: with me, @eliasem ?


Cannot change SourceMaps path if esbuild is not used

Describe the bug
For the dev mode, I am using Babel for transpiling typescript and not esbuild which is turned off inside vite.config.
In that case all sourcemaps (..."sources":["app.ts"]) have only relative paths and not absolute path as they have when esbuild is used. It seems that default rollup sourcemap settings are used because exactly the same output I am getting using only rollup.
There is not way to create sourceMaps with absolute path or maybe I miss something.
e.g.
sourcemapPathTransform: (relativeSourcePath, sourcemapPath) => {
            // will replace relative paths with absolute paths
            return path.resolve(
              path.dirname(sourcemapPath),
              relativeSourcePath
            );
},

Reproduction
https://stackblitz.com/edit/vitejs-vite-kn5643?file=vite.config.js
System Info
npx envinfo --system --npmPackages '{vite,@vitejs/*}' --binaries --browsers

Used Package Manager
npm
Logs
No response
Validations

[X] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
[X] Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/core instead.
[X] Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
[X] The provided reproduction is a minimal reproducible example of the bug.

What is the reason you want to change sourcemap paths during dev?

What is the reason you want to change sourcemap paths during dev?

Because  breakpoints and debugging within vscode don't work.

Then, I think if #2950 is implemented, it is  possible to solve with sourceMapPathOverrides.
https://github.com/microsoft/vscode-chrome-debug/blob/master/README.md#sourcemaps

That would also solve my problem, just I don't have any patter which I could replace.
All SourceMap paths ends up with just filename.js without any paths (relative or absolute).
e.g.
src/components/fileone.js
src/lib/filetwo.js
src/file.js
ends with sources like ... ["sources":["filewhatever.js"]].
I could solved those paths problems on my side by using custom createBabelInputPluginFactory after that I had still problems with svelte which I solved with using experimental: dynamicCompileOptions. That experience was painful.
It would be great if default sourcemapPathTransform from rollup could be changed for vite dev.

Got the same problem while debugging ssrLoadModule in VSCode

Closing as the VSCode debugger should work with JS files by #13514


[Feature] Add initial test file for engine account functionality

PR-Codex overview
This PR adds a placeholder comment for future tests in engine-account.test.ts.
Detailed summary

Added a comment placeholder for future tests in engine-account.test.ts.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

[!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

#3821  👈
#3584
main

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

Join @jnsdls and the rest of your teammates on  Graphite


allow the change of locale code instead of hard coded 'en'

This is the first time I submit a pull request on github. Please review.

This actually looks pretty good. Thanks for your efforts, I will merge shortly.
Please confirm that this doesn't break anything in production and then I will tag for release.


add ignore rows enhancement.

Nice work! I'm getting ready to release a major update soon that will completely change how data is exported on the JSON side, so I'm going to hold off merging this up for a few days. Once the new update is out I'll merge this in and push another update so people don't have a new feature just to have it taken away for a bit. Sorry for the delay in merging your changes up!

Thank you for fast response. I'll wait for the update.

Sorry for the ridiculous, way more time than it should have taken, delay in getting your stuff merged up. The JSON rewrite caused a few conflicts with your code, so I ended up going around your commit and merging your additions in manually. (Unfortunately that means GitHub won't list you as a collaborator, but I have added you to the credits section in the README. Sorry about that.)
I ended up merging the ignore row functionality with the existing "Ignore prefix" option, so there is only one ignore prefix that needs to be used.
Anyway, sorry again for taking way longer on this than I should have! I just pushed the new version with this feature, so you should be able to ignore rows once that version has been approved.


Floating Label

Any chance for an option for floating label for this? Once a value is selected, there's no label anymore.. I could use description, but
1: Maybe I want an actual description instead of label there
2: Breaks the design from other elements that use floating label

Thanks for the issue!
We've implemented the floating label and the dropdown should align well with other inputs now.
If you keep having the same problem after updating, clear your bower cache (in case you are using bower) and try a fresh install.

Thank you! When reinstalling, I receive this error:
bower font-roboto#^1.0.0            ENORESTARGET No tag found that was able to satisfy ^1.0.0

That's what I meant. Fixed it.


Support for custom action for the custom event trigger

It would be very nice to have Drone's custom event type to support custom actions.
E.g.
If the trigger configuration is like this:
kind: pipeline
type: kubernetes
name: custom-with-action
trigger:
  event:
    - custom
  action:
    - mycustomaction

the API call to trigger would look something like this.
curl -X POST <drone-base-url>/api/repos/<org>/<repo>/builds?action=mycustomaction
One use case would be to integrate Drone with an external CI system. Drone step would initiate a build on the other CI system that supports webhooks and when the other system finishes its job it makes the above POST request. Drone accepts that and looks at the action to choose a pipeline to run. You can currently do that without action, but if you have more than one custom trigger, all of them would be triggered.

@ppodevlabs  Could you eleborate a bit on this? Not sure if I understand you correctly...

@ppodevlabs can you write small example? I'm not understood


Getting We had some trouble connecting. Try again? after updating a view. Using aws lambda.

Below code will open a comment modal.
// Handle selection of a pending task in the static select
app.action(
  { type: "block_actions", action_id: /^pending_task_action_(\d+)$/ },
  async ({ ack, body, client }) => {
    await ack();

    const selectedOption = body.actions[0].selected_option.value;
    const selectedApplicationId = body.actions[0].block_id;
    const userEmail = body.user.name +<EMAIL_ADDRESS>
    // Open a modal with a text input for reason
    await client.views.open({
      trigger_id: body.trigger_id,
      view: {
        type: "modal",
        callback_id: "reason_modal",
        private_metadata: JSON.stringify({
          selectedOption,
          selectedApplicationId,
          userEmail
        }),
        title: {
          type: "plain_text",
          text: ":wave: Please comment ",
        },
        blocks: [
          {
            type: "input",
            block_id: "reason_input",
            element: {
              type: "plain_text_input",
              action_id: "reason",
              multiline: true,
            },
            label: {
              type: "plain_text",
              text: "Please provide comment for your action:",
            },
          },
        ],
        submit: {
          type: "plain_text",
          text: "Submit",
        },
      },
    });
  }
);

And After comment we will update the existing view with
// Handle submission of the reason modal
app.view('reason_modal', async ({ ack, body, view, client }) => {

  await ack()

  const viewId = view.id;
   // Open a quick loading modal
   await client.views.update({
    view_id: viewId,
    "response_action": "update",
    view: {
      type: "modal",
      title: {
        type: "plain_text",
        text: ":man-biking:Processing..",
      },
      blocks: [
        {
          type: "section",
          text: {
            type: "plain_text",
            text: ":hourglass_flowing_sand: Please wait while we process your request...",
          },
        },
      ],
    },
  });

**

But I am getting an error as We had some trouble connecting. Try again? after submitting the comment.

**

Hi @tusharwagh-mdsol, thanks for asking the question!
When you want to update the submitted modal in app.view listeners, you can use await ack({ response_action: "update", view: view}) instead of views.update API call. Please refer to https://slack.dev/bolt-js/concepts#view-submissions for more details.

Hi @seratch
Thanks for the quick response.
So basically i am using aws lambda for hosting my bolt application using JS.
In above code when we submit the comments i want to display processing modal and after that the modal should get updated with another message as this task is completed but here task completion will take some time to complete because we have some api calls as well and also after task completion I have to refresh the homeview as well to remove the completed task.
Can you please suggest best way to do this ?
below is the full code for the same.
`// Handle submission of the reason modal
app.view('reason_modal', async ({ ack, body, view, client }) => {
await ack({ response_action: "update", view: view})
const viewId = view.id;
// Open a quick loading modal
await client.views.update({
view_id: viewId,
"response_action": "update",
view: {
type: "modal",
title: {
type: "plain_text",
text: ":man-biking:Processing..",
},
blocks: [
{
type: "section",
text: {
type: "plain_text",
text: ":hourglass_flowing_sand: Please wait while we process your request...",
},
},
],
},
});
const { selectedOption, selectedApplicationId, userEmail } = JSON.parse(view.private_metadata);
const reason = view.state.values.reason_input.reason.value;
const approveruserId = body.user.id;
const pendingTasksUrl = ${process.env.slack_local_api}/pending-tasks?user_email=${userEmail};
try {
const response = await axios.get(pendingTasksUrl, {
headers: {
"Content-Type": "application/json",
"x-api-key": process.env.X_API_KEY,
},
});
const tasks = response.data.tasks;
const task = tasks.find(task => task.application_req_ref_id == selectedApplicationId);

if (!task) {
  throw new Error("Task not found");
}

const payload = {
  _id: task._id,
  recordedAction: capitalizeFirstCharacter(selectedOption),
  tasktoken: task.tasktoken,
  application_req_ref_id: selectedApplicationId,
  requestingApplication: task.requestingApplication,
  actioned_at: new Date().toISOString().slice(0, 10),
  taskName: task.taskName,
  description: task.description,
  userEmail: userEmail,
  reason: reason,
  approveruserId: approveruserId,
  approvalScheme: task.approvalScheme
};

const approvalUrl = `${process.env.slack_local_api}/slack-approval`;

// Ensure the post request is awaited
await axios.post(approvalUrl, payload, {
  headers: {
    "Content-Type": "application/json",
    "x-api-key": process.env.X_API_KEY,
  },
});

// Determine the final title and message based on the selected option
let titleTxt = "";
let blockMsg = "";
switch (selectedOption) {
  case "Approve":
    titleTxt = "Approved";
    blockMsg = "Requested action is completed :white_check_mark:";
    break;
  case "Reject":
    titleTxt = "Rejected";
    blockMsg = "Requested action is rejected :x:";
    break;
  case "Ignore":
    titleTxt = "Ignored";
    blockMsg = "Requested action is ignored :no_entry_sign:";
    break;
  default:
    titleTxt = "Unknown Action";
    blockMsg = "An unknown action was selected.";
}

// Update the modal with the final content
await client.views.update({
  view_id: viewId,
  "response_action": "update",
  view: {
    type: "modal",
    callback_id: "modal-1",
    title: {
      type: "plain_text",
      text: titleTxt,
    },
    blocks: [
      {
        type: "section",
        block_id: "section-1",
        text: {
          type: "mrkdwn",
          text: blockMsg,
        },
      },
    ],
  },
});

try{
// Optionally refresh the pending tasks view
const refreshResponse = await axios.get(pendingTasksUrl, {
  headers: {
    "Content-Type": "application/json",
    "x-api-key": process.env.X_API_KEY,
  },
});

const refreshedTasks = refreshResponse.data.tasks;

// Always include the Pending and Completed Tasks buttons
const baseViewBlocks = [
  {
    type: "section",
    text: {
      type: "mrkdwn",
      text: ":wave: *Welcome to the Approval Application!*\n Please choose between the options to check tasks..",
    },
  },
  {
    type: "actions",
    elements: [
      {
        type: "button",
        text: {
          type: "plain_text",
          text: "Pending Tasks",
          emoji: true,
        },
        action_id: "pending_button",
        style: "danger",
      },
      {
        type: "button",
        text: {
          type: "plain_text",
          text: "Completed Tasks",
          emoji: true,
        },
        action_id: "completed_button",
        style: "primary",
      },
    ],
  },
];

if (refreshedTasks.length === 0) {
  baseViewBlocks.push(
    {
      type: "section",
      text: {
        type: "mrkdwn",
        text: "*You have no pending tasks at the moment.*",
      },
    },
    {
      type: "section",
      text: {
        type: "mrkdwn",
        text: "*Please check back later or contact support if you believe this is an error.*",
      },
    }
  );

  await client.views.publish({
    user_id: body.user.id,
    "response_action": "clear",
    view: {
      type: "home",
      blocks: baseViewBlocks,
    },
  });

  return;
}

const uniqueCategories = [...new Set(refreshedTasks.map(task => task.requestingApplication))];
const defaultCategory = uniqueCategories.includes(task.requestingApplication) ? task.requestingApplication : uniqueCategories[0];
const tasksForDefaultCategory = getTasksForCategory(defaultCategory, refreshedTasks);

const categoryButtons = uniqueCategories.map(category => {
  const tasksForCategory = getTasksForCategory(category, refreshedTasks);
  const pendingTasksCount = tasksForCategory.length;
  return {
    type: "button",
    text: {
      type: "plain_text",
      text: `${category} (${pendingTasksCount})`,
    },
    action_id: `pending_category_${category.replace(/\s/g, "_")}_button`,
    style: selectedCategory === category ? "primary" : "danger",
  };
});

const tasksBlocks = tasksForDefaultCategory.map((task, index) => [
  {
    type: "section",
    block_id: `${task.application_req_ref_id}`,
    text: {
      type: "mrkdwn",
      text: `:clipboard: *Task ${index + 1}:* <${task.req_app_redirect_url}| ${task.application_req_ref_id}> ${task.taskName}`,
    },
    accessory: {
      type: "static_select",
      action_id: `pending_task_action_${index + 1}`,
      placeholder: {
        type: "plain_text",
        text: "Select an action",
      },
      options: getOptionsForTaskActions(task.actions),
    },
  },
  {
    type: "divider",
  },
]).flat();

const view = {
  type: "home",
  blocks: [
    ...baseViewBlocks,
    {
      type: "section",
      text: {
        type: "mrkdwn",
        text: "*Please choose between below tasks category*",
      },
    },
    {
      type: "actions",
      elements: categoryButtons,
    },
    {
      type: "divider",
    },
    {
      type: "section",
      text: {
        type: "mrkdwn",
        text: `Selected Category Tasks (${defaultCategory}):`,
      },
    },
    ...tasksBlocks,
  ],
};

await client.views.publish({
  user_id: body.user.id,
  "response_action": "clear",
  view,
});

}catch (error) {
// Always include the Pending and Completed Tasks buttons
const baseViewBlocks = [
  {
    type: "section",
    text: {
      type: "mrkdwn",
      text: ":wave: *Welcome to the Approval Application!*\n Please choose between the options to check tasks..",
    },
  },
  {
    type: "actions",
    elements: [
      {
        type: "button",
        text: {
          type: "plain_text",
          text: "Pending Tasks",
          emoji: true,
        },
        action_id: "pending_button",
        style: "danger",
      },
      {
        type: "button",
        text: {
          type: "plain_text",
          text: "Completed Tasks",
          emoji: true,
        },
        action_id: "completed_button",
        style: "primary",
      },
    ],
  },
];

  baseViewBlocks.push(
    {
      type: "section",
      text: {
        type: "mrkdwn",
        text: "*You have no pending tasks at the moment.*",
      },
    },
    {
      type: "section",
      text: {
        type: "mrkdwn",
        text: "*Please check back later or contact support if you believe this is an error.*",
      },
    }
  );

  await client.views.publish({
    user_id: body.user.id,
    "response_action": "clear",
    view: {
      type: "home",
      blocks: baseViewBlocks,
    },
  });

  return;

}
} catch (error) {
let errorMessage = "Something went wrong while processing your request.";
if (error.response && error.response.status === 404) {
  errorMessage = "You have caught up with all tasks! :white_check_mark:";
}

await client.views.update({
  view_id: viewId,
  "response_action": "update",
  view: {
    type: "modal",
    title: {
      type: "plain_text",
      text: "Congratulations!",
    },
    blocks: [
      {
        type: "section",
        text: {
          type: "mrkdwn",
          text: errorMessage,
        },
      },
    ],
  },
});

}
});`

bolt-python's lazy listeners could be the best solution for your use case: https://slack.dev/bolt-python/concepts#lazy-listeners However, unfortunately the same functionality does not exist in bolt-js due to its design restrictions. Also, we don't have plans to enhance bolt-js for the need.
If we want to write your app using bolt-js + AWS Lambda, the only suggestion I can give is to have a queue for delegating the time-consuming task to a different Lambda function. You can store the event payload and view_id etc. into the queue message. With that, the async task worker function can update the end-user once the task completes.
I hope this helps. Is everyting clear now? If yes, would you mind closing this?


How to edit tab's down color?

In this picture I cant edit the pink lines.

If you are using Sass you can change the $tabs-underline-color variable in _variables.scss.
Otherwise you will have to add your own css to it. You can use the selector:
.tabs .indicator {
  background-color: #yourcolor;
}

Thank you a lot!
25 Haz 2016 22:45 tarihinde "Alan Chang"<EMAIL_ADDRESS>yazdı:

If you are using Sass you can change the $tabs-underline-color variable in
_variables.scss.
Otherwise you will have to add your own css to it. You can use the
selector:
.tabs .indicator {
background-color: #yourcolor;
}
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Dogfalo/materialize/issues/3306#issuecomment-228567167,
or mute the thread
https://github.com/notifications/unsubscribe/AJ5Q_aiSR3pFgj7XffKaUrc_6GDtswBsks5qPYVtgaJpZM4I9bY3
.


Armstrong number using c programming

Hey bro..any problem?
On Mon, Oct 5, 2020, 4:20 PM abhiray310<EMAIL_ADDRESS>wrote:

Closed #2 https://github.com/mitul3737/Hacktoberfest-Contribution/pull/2
.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mitul3737/Hacktoberfest-Contribution/pull/2#event-3839674071,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANULK5USENDDMMA4MSKA3HDSJGMWHANCNFSM4SCPTUDQ
.


Update Readme: Fix up example for custom NameResolver

I tried the example code from the readme and could not get it to work as it does not expect an array for nameResolver

Thanks @warrenbuckley!


Fix broken video link

Fixes ethereum/btcrelay#11

Thanks, looks good.  (It will be live when we build and push to gh-pages branch)


add source-pins

@cleverca22 Is this still relevant? Labelled WIP but many months old.

it is still relevant, but has needs the conflicts fixed up first

bors r+


The git plugin

I saw in your screenshot there is a git plugin showing the branch and changes on the right of directory,  which plugin do you use to have that? I install hyper-ayu-mirage theme on my hyper but it does not show up.
Thank you so much 👍

Thank you so much for your answer 👍


Unicode Emoji Proposal: Jam Emoji

Okay here me out. We're going to do something silly here. :wink:
For a little bit of background, I tried to find myself an emoji to communicate "Jam", and I couldn't find anything good enough. :guitar: is too music. :baby_bottle: is the only bottle. :strawberry: isn't clear enough. Just like the :eggplant: has found new use (gigity), I want to propose something to the Unicode board with widespread use, that we can also claim for ourselves for fun social media usage.
I have a couple ideas for a proposal. I would expect one should propose a few ideas, but seeing how they only add 60-80 per year, reasons for their existence will likely need a strong argument.
First: Mason Jar with Lid

https://en.wikipedia.org/wiki/Mason_jar
Ideally though we want this:

But frankly I'll whatever we can get.
Also notably absent is a Pickle emoji. Next best thing is Cucumber. What do you do with a  :cucumber:? You put it in a Mason Jar!

Mason Jar with Lid
Mason Jar with Strawberry Jam
Mason Jar with Pickle

As the most common uses of the Mason Jar, I would start with these. Mason Jar with Beer can come another day. :wink:
Second: Bread with Strawberry Jam. i.e. :bread: + :strawberry:

It's a shame there's no Toast or Slice of Bread emoji. That might be another route, to get to what we need. :wink:
Anyway, that's what I have thus far. I'm not yet familiar with the procedure. Just wanted to share the silly to see if anyone else wanted to come on board to help champion the idea with me. :wink:

Have you taken a look at http://unicode.org/emoji/selection.html
I'm sure we could contribute to writing a proposal the way they've suggested! :wink:

This seems to be where you submit the proposal: http://www.unicode.org/emoji/selection.html


create TLS client & server with full set of arguments

Signed-off-by: Alexander Diemand<EMAIL_ADDRESS>This change allows to pass in more arguments to the basic Tls_io functions to setup its Tls.Config.
This allows to more finegrained control the TLS handshake and improve security.
An example of its usage is in: https://github.com/CodiePP/ml-grpc-examples
(an accompanying PR is submitted to https://github.com/anmonteiro/ocaml-h2)

My rationale for having a limited set of options for these default handlers is that you can always "jailbreak" by using your own Tls_lwt.Unix.t, check out this example https://github.com/anmonteiro/ocaml-h2/blob/fceaad2cfa198f090b47d6d72cb1c4ea9dee4a07/examples/alpn/unix/alpn_server_tls.ml#L29-L48


[ENHANCEMENT] Rewrite

Refactor your code to be readable and usable.
Links
YouTube Videos about this: https://www.youtube.com/watch?v=-J3wNP6u5YU, https://www.youtube.com/watch?v=qUeud6DvOWI and more
Websites: https://peps.python.org, https://google.github.io/styleguide/pyguide.html and more
Todos

[ ] #68
[x] Use f strings
[x] Refactor functions.py (utils folder)
[ ] Refactor config.json
[ ] Refactor other code
[ ] #69
[ ] Assign types to variables
[ ] Assign errors to except
[x] Change base error class to subclass of BaseException or Exception
[ ] Clean up GitHub
[x] Remove unnecessary requirements (Note: pipreqs shows that adrest is required, even if it's not)
[ ] Do pylint stuff, because I hate my life
[ ] Mardown to reStructuredText
[ ] More docs
[ ] Sphnix docs
[ ] Examples
[ ] Database
[ ] Do list comprehensions
[x] Change version name to v1.0.0 as it will be a mayor change.
[ ] #67
[ ] More comments
[ ] Use less custom and more builtin errors
[x] Add codecov
[ ] Add codecov requirements
[ ] Setup git correctly
[ ] Use pathlib for paths

More coming as an edit

Why am I doing this?

Basically it's a rewrite

Maybe I'll use rich later on too.

#$(COLOR)
#$(LEVELNAME)
#$(MESSAGE)
#$(NAME)
#$(TIMESTAMP)

I'll work on this again.

I'll completley rewrite the entire cog system.


Blur looks weird

Already reported ? *

[X] I have searched the existing open and closed issues.

Regression?
Yes
System Info and Version

This is the old Hyprland
Hyprland 0.45.0 built from branch main at commit aefaeedf5e3f773c923373795267c1633141566c dirty (data-device: fixup wrong box expansion).
Date: Thu Dec 12 20:16:59 2024
Tag: v0.45.0-102-gaefaeedf, commits: 5535
built against:
 aquamarine 0.5.0
 hyprlang 0.5.3
 hyprutils 0.2.6
 hyprcursor 0.1.10
 hyprgraphics 0.1.1

flags set:
debug

System Information:
System name: Linux
Node name: archlinux
Release: 6.6.65-1-lts
Version: #1 SMP PREEMPT_DYNAMIC Wed, 11 Dec 2024 15:35:54 +0000

GPU information:
63:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 [1002:15bf] (rev c2) (prog-if 00 [VGA controller])

os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo

plugins:

======Config-Start======

Config File: /home/oh016/.config/hypr/hyprland.conf: Read Succeeded

# #######################################################################################
# AUTOGENERATED HYPR CONFIG.
# PLEASE USE THE CONFIG PROVIDED IN THE GIT REPO /examples/hypr.conf AND EDIT IT,
# OR EDIT THIS ONE ACCORDING TO THE WIKI INSTRUCTIONS.
# #######################################################################################

# This is an example Hyprland config file.
# Refer to the wiki for more information.
# https://wiki.hyprland.org/Configuring/

# Please note not all available settings / options are set here.
# For a full list, see the wiki

# You can split this configuration into multiple files
# Create your files separately and then link them to this file like this:
# source = ~/.config/hypr/myColors.conf

################
### MONITORS ###
################

# See https://wiki.hyprland.org/Configuring/Monitors/
monitor = eDP-1, 2880x1800@120, 0x0, 2, transform, 0
monitor = DP-1, 2880x1800@90,1440x-190, 2, transform, 3

###################
### MY PROGRAMS ###
###################

# See https://wiki.hyprland.org/Configuring/Keywords/

# Set programs that you use
# $terminal = foot
# $fileManager = dolphin
# $menu = wofi --show drun

$terminal = foot
$menu = tofi-drun | xargs hyprctl dispatch exec --
$shot = hyprshot -m region -o ~/Picture/Screenshot

#################
### AUTOSTART ###
#################

# Autostart necessary processes (like notifications daemons, status bars, etc.)
# Or execute your favorite apps at launch like this:

# exec-once = $terminal
# exec-once = nm-applet &
# exec-once = waybar & hyprpaper & firefox

exec-once = fcitx5 --replace -d & waybar & hyprpaper
exec-once = xprop -root -f _XWAYLAND_GLOBAL_OUTPUT_SCALE 32c -set _XWAYLAND_GLOBAL_OUTPUT_SCALE
exec-once = echo Xft.dpi:192 | xrdb -merge

#############################
### ENVIRONMENT VARIABLES ###
#############################

# See https://wiki.hyprland.org/Configuring/Environment-variables/

env = GDK_SCALE,2
env = XCURSOR_SIZE,24
env = HYPRCURSOR_SIZE,24
env = LANG,zh_CN.UTF-8

xwayland {
  force_zero_scaling = true
}

#####################
### LOOK AND FEEL ###
#####################

# Refer to https://wiki.hyprland.org/Configuring/Variables/

# https://wiki.hyprland.org/Configuring/Variables/#general
general {
    gaps_in = 3
    gaps_out = 6

    border_size = 2

    # https://wiki.hyprland.org/Configuring/Variables/#variable-types for info about colors
    col.active_border = rgba(c1e8ffee)
    col.inactive_border = rgba(595959aa)

    # Set to true enable resizing windows by clicking and dragging on borders and gaps
    resize_on_border = false

    # Please see https://wiki.hyprland.org/Configuring/Tearing/ before you turn this on
    allow_tearing = false

    layout = dwindle
}

# https://wiki.hyprland.org/Configuring/Variables/#decoration
decoration {
    rounding = 8

    # Change transparency of focused and unfocused windows
    active_opacity = 0.85
    inactive_opacity = 0.85

    shadow {
        enabled = false
        range = 4
        render_power = 3
        color = rgba(1a1a1aee)
    }

    # https://wiki.hyprland.org/Configuring/Variables/#blur
    blur {
        enabled = true
        size = 6
        passes = 2
	popups = true
    }
}

# https://wiki.hyprland.org/Configuring/Variables/#animations
# animations {
#    enabled = yes, please :)
#
#     # Default animations, see https://wiki.hyprland.org/Configuring/Animations/ for more
#
#     bezier = easeOutQuint,0.23,1,0.32,1
#     bezier = easeInOutCubic,0.65,0.05,0.36,1
#     bezier = linear,0,0,1,1
#     bezier = almostLinear,0.5,0.5,0.75,1.0
#     bezier = quick,0.15,0,0.1,1
#
#     animation = global, 1, 10, default
#     animation = border, 1, 5.39, easeOutQuint
#     animation = windows, 1, 4.79, easeOutQuint
#     animation = windowsIn, 1, 4.1, easeOutQuint, popin 87%
#     animation = windowsOut, 1, 1.49, linear, popin 87%
#     animation = fadeIn, 1, 1.73, almostLinear
#     animation = fadeOut, 1, 1.46, almostLinear
#     animation = fade, 1, 3.03, quick
#     animation = layers, 1, 3.81, easeOutQuint
#     animation = layersIn, 1, 4, easeOutQuint, fade
#     animation = layersOut, 1, 1.5, linear, fade
#     animation = fadeLayersIn, 1, 1.79, almostLinear
#     animation = fadeLayersOut, 1, 1.39, almostLinear
#     animation = workspaces, 1, 1.94, almostLinear, fade
#     animation = workspacesIn, 1, 1.21, almostLinear, fade
#     animation = workspacesOut, 1, 1.94, almostLinear, fade
# }

animations {
    enabled = yes

    bezier = myBezier, 0.05, 0.9, 0.1, 1

    animation = windows, 1, 5, myBezier
    animation = windowsOut, 1, 5, default, popin 98%
    animation = windowsIn, 1, 5, default, popin 95%
    animation = border, 1, 10, default
    animation = borderangle, 1, 5, default
    animation = fade, 1, 5, default
    animation = workspaces, 1, 5, default
}

# Ref https://wiki.hyprland.org/Configuring/Workspace-Rules/
# "Smart gaps" / "No gaps when only"
# uncomment all if you wish to use that.
# workspace = w[t1], gapsout:0, gapsin:0
# workspace = w[tg1], gapsout:0, gapsin:0
# workspace = f[1], gapsout:0, gapsin:0
# windowrulev2 = bordersize 0, floating:0, onworkspace:w[t1]
# windowrulev2 = rounding 0, floating:0, onworkspace:w[t1]
# windowrulev2 = bordersize 0, floating:0, onworkspace:w[tg1]
# windowrulev2 = rounding 0, floating:0, onworkspace:w[tg1]
# windowrulev2 = bordersize 0, floating:0, onworkspace:f[1]
# windowrulev2 = rounding 0, floating:0, onworkspace:f[1]

# See https://wiki.hyprland.org/Configuring/Dwindle-Layout/ for more
dwindle {
    pseudotile = true # Master switch for pseudotiling. Enabling is bound to mainMod + P in the keybinds section below
    preserve_split = true # You probably want this
}

# See https://wiki.hyprland.org/Configuring/Master-Layout/ for more
master {
    new_status = master
}

# https://wiki.hyprland.org/Configuring/Variables/#misc
misc {

	vfr = true

    force_default_wallpaper = -1 # Set to 0 or 1 to disable the anime mascot wallpapers
    disable_hyprland_logo = false # If true disables the random hyprland logo / anime girl background. :(
}

#############
### INPUT ###
#############

# https://wiki.hyprland.org/Configuring/Variables/#input
input {
    kb_layout = us
    kb_variant =
    kb_model =
    kb_options =
    kb_rules =

    follow_mouse = 1

    sensitivity = -0.8 # -1.0 - 1.0, 0 means no modification.

    touchpad {
        natural_scroll = false
    }
}

# https://wiki.hyprland.org/Configuring/Variables/#gestures
gestures {
    workspace_swipe = false
}

# Example per-device config
# See https://wiki.hyprland.org/Configuring/Keywords/#per-device-input-configs for more
device {
    name = epic-mouse-v1
    sensitivity = -0.5
}

###################
### KEYBINDINGS ###
###################

# See https://wiki.hyprland.org/Configuring/Keywords/
$mainMod = SUPER # Sets "Windows" key as main modifier

# Example binds, see https://wiki.hyprland.org/Configuring/Binds/ for more
bind = $mainMod, Return, exec, $terminal
bind = $mainMod, Q, killactive,
bind = $mainMod SHIFT, Q, exit,
bind = $mainMod, R, exec, $fileManager
bind = $mainMod, L, togglefloating,
bind = $mainMod, A, exec, $menu
bind = $mainMod, J, togglesplit, # dwindle

bind = $mainMod SHIFT, S, exec, $shot

# Move focus with mainMod + arrow keys
bind = $mainMod, left, movefocus, l
bind = $mainMod, right, movefocus, r
bind = $mainMod, up, movefocus, u
bind = $mainMod, down, movefocus, d

# Switch workspaces with mainMod + [0-9]
bind = $mainMod, 1, workspace, 1
bind = $mainMod, 2, workspace, 2
bind = $mainMod, 3, workspace, 3
bind = $mainMod, 4, workspace, 4
bind = $mainMod, 5, workspace, 5
bind = $mainMod, 6, workspace, 6
bind = $mainMod, 7, workspace, 7
bind = $mainMod, 8, workspace, 8
bind = $mainMod, 9, workspace, 9
bind = $mainMod, 0, workspace, 10

# Move active window to a workspace with mainMod + SHIFT + [0-9]
bind = $mainMod SHIFT, 1, movetoworkspace, 1
bind = $mainMod SHIFT, 2, movetoworkspace, 2
bind = $mainMod SHIFT, 3, movetoworkspace, 3
bind = $mainMod SHIFT, 4, movetoworkspace, 4
bind = $mainMod SHIFT, 5, movetoworkspace, 5
bind = $mainMod SHIFT, 6, movetoworkspace, 6
bind = $mainMod SHIFT, 7, movetoworkspace, 7
bind = $mainMod SHIFT, 8, movetoworkspace, 8
bind = $mainMod SHIFT, 9, movetoworkspace, 9
bind = $mainMod SHIFT, 0, movetoworkspace, 10

# Example special workspace (scratchpad)
# bind = $mainMod, S, togglespecialworkspace, magic
# bind = $mainMod SHIFT, S, movetoworkspace, special:magic

# Scroll through existing workspaces with mainMod + scroll
bind = $mainMod, mouse_down, workspace, e+1
bind = $mainMod, mouse_up, workspace, e-1

# Move/resize windows with mainMod + LMB/RMB and dragging
bindm = $mainMod, mouse:272, movewindow
bindm = $mainMod, mouse:273, resizewindow

# Laptop multimedia keys for volume and LCD brightness
bindel = ,XF86AudioRaiseVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+
bindel = ,XF86AudioLowerVolume, exec, wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-
bindel = ,XF86AudioMute, exec, wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle
bindel = ,XF86AudioMicMute, exec, wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle
bindel = ,XF86MonBrightnessUp, exec, brightnessctl s 10%+
bindel = ,XF86MonBrightnessDown, exec, brightnessctl s 10%-

# Requires playerctl
bindl = , XF86AudioNext, exec, playerctl next
bindl = , XF86AudioPause, exec, playerctl play-pause
bindl = , XF86AudioPlay, exec, playerctl play-pause
bindl = , XF86AudioPrev, exec, playerctl previous

##############################
### WINDOWS AND WORKSPACES ###
##############################

# See https://wiki.hyprland.org/Configuring/Window-Rules/ for more
# See https://wiki.hyprland.org/Configuring/Workspace-Rules/ for workspace rules

# Example windowrule v1
# windowrule = float, ^(kitty)$

windowrule = float, ^(foot)$
windowrule = float, ^(thunar)$
windowrule = float, ^(chromium)$
windowrule = float, ^(wechat)$
windowrule = maxsize 1150 750, ^(chromium)$
windowrule = center 1, ^(chromium)$

# Example windowrule v2
# windowrulev2 = float,class:^(kitty)$,title:^(kitty)$

# Ignore maximize requests from apps. You'll probably like this.
# windowrulev2 = suppressevent maximize, class:.*

# Fix some dragging issues with XWayland
# windowrulev2 = nofocus,class:^$,title:^$,xwayland:1,floating:1,fullscreen:0,pinned:0

======Config-End========

Description
Blur effect looks fake in v0.45.2, strange, not like blur, no problem in older versions (v0.45.0)
How to reproduce
v0.45.2
Crash reports, logs, images, videos
v0.45.0

v0.45.2

looks to me like the blur layer's opacity is not full. Can you try enabling blur:ignore_opacity?
If that doesn't help, please bisect: https://wiki.hyprland.org/Crashes-and-Bugs/#bisecting-an-issue

looks to me like the blur layer's opacity is not full. Can you try enabling blur:ignore_opacity?
If that doesn't help, please bisect: https://wiki.hyprland.org/Crashes-and-Bugs/#bisecting-an-issue

Solved. Thank you.


Fix/8 documentation

Close #8

@jeongukjae I updated the regex to accept dashes and underscores; full disclosure that I haven't written C++ since high school so I wasn't able to test


Denite support

Hi @kopischke,  is there any plan to add support for denite.nvim? Thanks!

I am sorry to say that is rather unlikely, as the plugin is effectively unmaintained for a simple reason: I have stopped using Unite. However, I am curious as to how Denite compares to Unite in practice (all I know is that it is a rewrite leveraging Neovim’ async feature).

This plugin is officially EOL as I no longer use Vim (much), much less Unite. Sorry.


When using {@trigger} replies don't seem to be getting eliminated.

I am currently using a plugin function to generate some dynamic replies.
+ get question
- ^getQuestion()

+ __partone__
- part one reply

+ __parttwo__
- part two reply

Then in the plugin I return callback that builds the reply string as follows: {@__partone__} some other text i dynamically generate {@__parttwo__}
This functions as expected, EXCEPT that the replies in __partone__ and __parttwo__ do not get eliminated when used.

So this is really challenging because we only record ONE reply in the final object and not all three (in your case)
Perhaps we should keep an array of replies and exhaust all of them

That makes sense. Not an urgent issue for me, just something I discovered and can work around for now.

Also related, the topicName in the replyObject displays the first match and while that isn't wrong, in some cases you may have a pass though gambit in pre and that will always be the first match, even if that isn't were the bulk of the reply is coming from.

Fixed in v1.0.0.


test_import_time takes a lot of time

Rasa version: 2.3.1 (used main branch, commit hash: 2574c46e9576607a7b8de39f823ff3e5c01a475c)
Rasa SDK version (if used & relevant): 2.3.1
Rasa X version (if used & relevant):
Python version: 3.7 / 3.8
Operating system (windows, osx, ...): MacOS / Windows
Issue:
tests/import_time.py::test_import_time takes about 1.5-2 minutes on my machine (slower on Windows), and it's one of the most time-consuming tests we have. Partially it's because we run this measurement 15 times and get an average time it takes to import Rasa after 15 attempts.
I doubt it's needed. First of all, we might consider limiting the number of measurements. But even if we don't want to, we need to think of how we actually use this number.
See more details about time measurements: https://docs.google.com/spreadsheets/d/1tDRD0vWaLW91W1wPj5h__dwXuXioRt9aBPYyF1n4MjI/edit#gid=57091041
Definition of done:

Set up a separate job
Check if it's required
Fix it

Command or request that led to error:
pytest tests/import_time.py::test_import_time

related https://github.com/RasaHQ/rasa/issues/6473

Importing rasa is very slow, it would be great if the import speed is fixed instead. Even my project's tests are slow because it imports Rasa at the start of each run.

@Mazyod Thanks for your input. Import time was recently fixed on main. Will be released with 2.5.0


[BEAM-7033] Updates for reading with query using BigQuery Storage API

Updates storage API section for query support. @davidcavazos is working on the snippet so I put the JIRA there for now.

Run Website_Stage_GCS PreCommit

Run Website PreCommit


az vm list-skus --zone is not working

az vm list-skus --zone is not working for all resourceType as shown below commands. It would be better to mention it on public document mentioning it. It seems like --zone is checking a string instead of an array.
az vm list-skus -l uksouth -o table --query "[].{name:name, resourceType:resourceType, zones:length(locationInfo[].zones[])}" -z false
az vm list-skus -l uksouth -r hostGroups/hosts -o table --zone false

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

ID: 152b549b-d4b3-13e5-081c-c604b6e4d89e
Version Independent ID: 3f79be78-ce75-ad31-304b-bad7d475ec9e
Content: az vm
Content Source: src/azure-cli/azure/cli/command_modules/vm/_help.py
Service: virtual-machines
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

hi @qwordy could you pls have a look? thanks

Here is more information.
As shown below, hosts are not working for “--zone” parameter
I guess --zone is just checking a string instead of an array. locationInfo[].zone[] is an array.
az vm list-skus -l uksouth -o table --query "[].{name:name, resourceType:resourceType, zones:length(locationInfo[].zones[])}" -z false
<EMAIL_ADDRESS>az vm list-skus -l uksouth -r hostGroups/hosts -z true -o table
az vm list-skus -l uksouth -r hostGroups/hosts -z false -o table
<EMAIL_ADDRESS>If you have manual query for array zone as below, it works as expected.
az vm list-skus -l uksouth -r hostGroups/hosts --query "[?not_null(locationInfo[].zones[])]" -o table                    //list skus supporting zones
az vm list-skus -l uksouth -r hostGroups/hosts --query "[?!not_null(locationInfo[].zones[])]" -o table                 //list skus not supporting zones
<EMAIL_ADDRESS>Best regards,
Jae Pak
From: Yunge Zhu<EMAIL_ADDRESS>Sent: Friday, May 8, 2020 4:04 PM
To: Azure/azure-cli<EMAIL_ADDRESS>Cc: Jae Pak<EMAIL_ADDRESS>Author<EMAIL_ADDRESS>Subject: Re: [Azure/azure-cli] az vm list-skus --zone is not working (#13407)
hi @qwordyhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fqwordy&data=02|01|Jae.Y.Pak%40microsoft.com|bf78d5d512b14abb7e8608d7f3a41cad|72f988bf86f141af91ab2d7cd011db47|1|0|637245758493068665&sdata=ya%2B3hvyVCqZXKlIFmtOCheofYS6DnrkPU2uWOs7zHUA%3D&reserved=0 could you pls have a look? thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FAzure%2Fazure-cli%2Fissues%2F13407%23issuecomment-626056146&data=02|01|Jae.Y.Pak%40microsoft.com|bf78d5d512b14abb7e8608d7f3a41cad|72f988bf86f141af91ab2d7cd011db47|1|0|637245758493078659&sdata=HjW023wdPLN%2BEPgS%2BK7EO55ymLRgjE7mpsbNxwnd0dc%3D&reserved=0, or unsubscribehttps://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAMCT4UKTT74XFQ2OUAGBNRTRQSFWNANCNFSM4M4QRDJQ&data=02|01|Jae.Y.Pak%40microsoft.com|bf78d5d512b14abb7e8608d7f3a41cad|72f988bf86f141af91ab2d7cd011db47|1|0|637245758493088657&sdata=DGNCX9A0z6A3wkYyYMYSrl7V63yZp9hZCWidRLamf3M%3D&reserved=0.

I have reproduced the issue and found the root cause.
--zone -z
Show all vm size supporting availability zones.

This parameter limits the resource type to vm. When -z is set, only vm skus will be shown. It's not reasonable. I will update it.

I have written a PR to solve this issue.

Would please upgrade to latest Azure CLI and have a try? It fixes this issue.

on cloudshell (I guess it is updated to the latest all the times), below command didn't return anything still.
az vm list-skus -l uksouth -r hostGroups/hosts -o table -z

Result in Azure CLI 2.6.0
> az vm list-skus -l uksouth -r hostGroups/hosts -o table --zone
ResourceType      Locations    Name        Zones    Restrictions
----------------  -----------  ----------  -------  --------------
hostGroups/hosts  uksouth      DSv3-Type1  1,2,3    None
hostGroups/hosts  uksouth      ESv3-Type1  1,2,3    None
hostGroups/hosts  uksouth      DSv3-Type2  1,2,3    None
hostGroups/hosts  uksouth      ESv3-Type2  1,2,3    None
hostGroups/hosts  uksouth      FSv2-Type2  1,3      None

Cloud Shell may need some days to get updated to latest version. It should not be a long time.

Thank you. Just confirmed that it works fine on 2.6.0

Glad to know that!

Result in Azure CLI 2.6.0
> az vm list-skus -l uksouth -r hostGroups/hosts -o table --zone
ResourceType      Locations    Name        Zones    Restrictions
----------------  -----------  ----------  -------  --------------
hostGroups/hosts  uksouth      DSv3-Type1  1,2,3    None
hostGroups/hosts  uksouth      ESv3-Type1  1,2,3    None
hostGroups/hosts  uksouth      DSv3-Type2  1,2,3    None
hostGroups/hosts  uksouth      ESv3-Type2  1,2,3    None
hostGroups/hosts  uksouth      FSv2-Type2  1,3      None

Cloud Shell may need some days to get updated to latest version. It should not be a long time.

@fengzhou-msft Should cloud shell upgrades before we announce a new version of CLI?


Fix Google Maps origin param being set to undefined in certain scenarios

This fixes origin param being set to "undefined" when using app === 'google-maps' and directionsMode.

@tschoffelen could you please have a look at this? Seems nasty enough :)
Thanks!

Thanks! Released to NPM as<EMAIL_ADDRESS>


WIP: Remove most uses of extern crate

TODO:

Document how to require serde now.

Is automatically resolving use statements a new feature in Rust?

it's part of the 2018 edition: https://doc.rust-lang.org/nightly/edition-guide/rust-2018/module-system/path-clarity.html

Awesome!


map loading problem

Subject: map loading problem
Description:
?
Results:
Hey, so the map doesn't really work on my phone. I first thought it was because I use tor Browser, but I realised that the map works on the tor version of my laptop, so I have no idea why it doesn't work
Backend version: develop-7c33e18d
Frontend version:
User Agent: Mozilla/5.0 (Android 10; Mobile; rv:91.0) Gecko/91.0 Firefox/91.0
Page: https://couchers.org/search?#loc=1.86/28.06/3.28
User: ldlm (14346)

not enough info or can't reproduce


Configuration validation on ForcedFeedbackEffect

The subclasses of ForcedFeedbackEffect need some check to validate the modified update won't throw errors within the SDL object
Need to look into a way to validate on an individual class basis

This has been fixed in #11 - restructure forces subclasses to use their own data types.


⚠ Bofrost.de has degraded performance

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

HTTP code: 200
Response time: 1315 ms

Resolved: Bofrost.de performance has improved in c6a0e0a after 1 hour, 33 minutes.


Salsa should not suggest "caller" in strict mode as it causes TypeError

Testing #2218

function restricted()
{
	"use strict";
	restricted.ca
}

console.log(restricted());

Since we're at it, it could also highlight the caller and arguments below with a squiggly indicating a TypeError:

function restricted()
{
	"use strict";
	restricted.caller;    // throws a TypeError
	restricted.arguments; // throws a TypeError
}

console.log(restricted());

This issue was moved to Microsoft/TypeScript#6649


4.4-dev6: Signals don't work in exported builds if .godot dir was created by dev6

Tested versions

Reproducible in: v4.4.dev6.official [1f47e4c4e]
Not reproducible in: v4.4.dev5.official [9e6098432]

System information
Godot v4.4.dev6 - Ubuntu 24.04.1 LTS 24.04 on X11 - X11 display driver, Multi-window, 2 monitors - OpenGL 3 (Compatibility) - NVIDIA GeForce GTX 1060 6GB (nvidia; 535.183.01) - Intel(R) Core(TM) i5-4570 CPU @ 3.20GHz (4 threads)
Issue description
In 4.4-dev6, signals do not work, at all in exported builds. The signal handlers are never called. I have tried both built-in signals (such as clicking a button) and custom signals (calling .emit()).
However, the circumstances are extremely weird. It is not tied to the Godot version you used to export, but rather, the Godot version that created the .godot directory.
To elaborate:

If you create a new project in 4.4-dev6, then export it, signals are broken.
If you create a project in 4.4-dev5, then upgrade to 4.4-dev6, then export, signals work.
However, if you delete the .godot directory, then re-open with 4.4-dev6, signals are broken.
But, if you then re-open the project (with the .godot dir created in dev6) in 4.4-dev5, and export, signals are still broken!

So this bug can manifest in 4.4-dev5 and earlier, but only if the .godot dir was created by dev6.
I'm at a loss to explain this behaviour, but I have tested it extensively (on Linux), both on a "real" project and in a minimal repro. I have compared the "good" and "bad" .godot directories and can't see much that would distinguish them - the binary .scn files are different but you would expect those to regenerate every time you re-save the scene. And shader cache files are different, but you wouldn't expect that to affect something as unrelated as signals.
And to be clear, everything works fine in the editor. It's only broken for exported builds.
I have tested both the Linux native and Web exports, and the issue affects both.
Steps to reproduce

Create a new project using 4.4-dev6.
Create a new "User Interface" scene.
Attach a script to the scene.
Add a Button to the scene and give it some text.
In the editor, connect the Button's pressed() signal up to a new method.
Add the code print('Button pressed') to the signal handler. For good measure, also $Button.text = 'Pressed'.
Run the project (setting the scene as the main scene) and verify that clicking the button prints "Button pressed" to the console and changes the button text.
Project > Export and add a Linux native export, without changing any settings.
Export Project. Ensure that "Export With Debug" is ticked.
From the command line, run New Game Project.x86_64.
Observe that clicking the button has no effect, neither printing to the console, nor changing the text.

As mentioned above, there are some very weird interactions if we change Godot versions:

Open the project in dev5 - it is still broken.
Delete the .godot dir and re-open in dev5 - it now works.
Open the project in dev6 - it still works.
Delete the .godot dir and re-open in dev6 - it is now broken again.

Minimal reproduction project (MRP)
signal-repro.zip

Just looking at the dev6 changelog, a possible commit that might have caused this is #97303. (Because perhaps the "avoid duplicating signals" avoided something necessary to do with signals, and wrote that into the PackedScene inside the .godot directory, which means signals don't fire even if it's loaded in old versions.)

I tested the issue (on the Web platform, running dev5 and dev6 as explained) and I can confirm it.

I can confirm too that the regression is caused by #97303. I reverted the PR from master, then created a project with it. And it works when exported.

CC @cixil

The problem seems to be how the CONNECT_INHERITED is applied.
https://github.com/godotengine/godot/blob/aa8d9b83f66488dbb2c9c918e9016ef80f821fb4/scene/resources/packed_scene.cpp#L609
Changing this to use GEN_EDIT_STATE_MAIN fixes the bug, but it's probably not the right fix.
https://github.com/godotengine/godot/blob/aa8d9b83f66488dbb2c9c918e9016ef80f821fb4/editor/export/editor_export_platform.cpp#L825
The bug happens, because scenes are processed during export if you have editor/export/convert_text_resources_to_binary enabled, and due to wrong inheritance state, the connections are lost.

Well there is another case of this bug (or at least I think this is related). Signal connections don't work in scenes instantiated by plugins, like custom main screens.

Don't know if it matters, but you can get around this bug by connecting signals via code instead of the UI.

Confirmed on android XR builds. Good to know ^_^

Can anyone explain exactly what the role is for this flag:
https://github.com/godotengine/godot/blob/aa8d9b83f66488dbb2c9c918e9016ef80f821fb4/core/object/object.h#L575
and these enums?:
https://github.com/godotengine/godot/blob/aa8d9b83f66488dbb2c9c918e9016ef80f821fb4/scene/resources/packed_scene.h#L126-L131
re @KoBeWi's comment
I don't quite understand why the inherited flag would be added  during instantiation, isn't this flag just supposed to be a way for the editor to determine which connections are a part of the scene?
https://github.com/godotengine/godot/blob/aa8d9b83f66488dbb2c9c918e9016ef80f821fb4/scene/resources/packed_scene.cpp#L609

The flag is temporary. All connections that belong to a different scene than the currently opened one will get the flag, which applies to instances and inherited scenes. The flag is never stored in the scene though.

I guess the simplest fix to #97303 would be to add #ifdef TOOLS_ENABLED around the check for the inherited flag (haven't tested). But I'm not sure if this points to an incorrect use of CONNECT_INHERITED that should be fixed instead.

The problem exists in the editor.

I'm trying to verify this bug to fix the old PR. How do you export projects in dev versions of Godot? More specifically, how do I make/where do I find export templates?

@cixil official dev builds have a button in the export panel to download export templates just like stable versions. You shouldn't need to build anything from source unless you're running an unofficial Godot built from source.

You can also download the version-specific pre-built export templates. For example, you can download the 4.4-dev7 export templates here: https://godotengine.org/download/archive/4.4-dev7/
The button in the export hasn't been working for me in the 4.4-dev's so I've had to get the export templates in that manner.


TypeError: this.updater.enqueueCallback is not a function HELP URGENT

I get this error while usuing Mapple Tooltip on one of the pages. Any idea how can i fix it...
Error.

Actual Code:

please help @haldarmahesh

I do have the same problem


Convert currency in publish product is not working anymore

Convert currencies from Google finance is not working anymore.
Changed currency_convertor_helper for
$currencies->val;
	$converted = $amount * $rate;
    return number_format(round($converted, 3), 2);
}

@loginetsolutions Yes. Google finance will not working and with this commit - https://github.com/kirilkirkov/Shopping-Cart-Solution-CodeIgniter/commit/0e0e1326851c554e25792b13d6a5441444d02072 i remove currency convertor. Now paypal currency will be get from selected site language

I just changed the helper to other url:
`function convertCurrency($amount, $from, $to)
{
if ($from == $to) {
return number_format(round($amount, 3), 2);
}
$data = json_decode(file_get_contents("https://free.currencyconverterapi.com/api/v5/convert?q=".$from."_".$to."&compact=y"));
$currencies = $from."_".$to;
$rate = $data->$currencies->val;
$converted = $amount * $rate;
return number_format(round($converted, 3), 2);

}`

@loginetsolutions ok, its fine while working and this api :)


[REEF-276]: Requesting 100 Containers on YARN causes injection errors in...

... submitting tasks on REEF.NET on HDInsight
This addressed the issue by

The original issue was caused by AvroSerializer not serializing HashSets correctly and included empty entries.
Changing the use of HashSet in AvroConfiguration.Bindings to List fixes the issue temporarily.

JIRA: REEF-276

I will take it.

Can you please mark the hotfix as such. For instance, put a comment above the change from ISet to List that contains the string [REEF-276] such that we can find it again.

Updated. Thanks!

Looks like Avor serializer doesn't like IList. Lot of test cases fail. I can remove it during the merge.


[vehicule layer cdn]: Facing Challenges in Updating Vehicle Positions Dynamically

Description:
Upon successfully initializing Mapbox and integrating a vehicle layer, and established a WebSocket connection to receive real-time vehicle data from an external API, we encountered challenges with updating vehicle positions dynamically based on data received via WebSocket.
Problem Statement:
The main issue lies in the updating process. receiving real-time data from the WebSocket connection, we lack a robust mechanism to seamlessly update the vehicle positions on the map in real-time.
Expected Behavior:
The vehicle's coordinates should be updated smoothly at regular intervals. and should move seamlessly across the map without any disruptions.
Code:
"" document.addEventListener("DOMContentLoaded", async function () {
        const { MapboxOverlay, TextLayer, MapController } = deck;
        const MAPBOX_TOKEN = 'toekn';
        let latitude = 39.768458, longitude = -86.155231;
        async function getGeo () { return [{ latitude: latitude, longitude: longitude, bearing: -87.94099460927194, vehilceType: 1}]; }

        let map = new mapboxgl.Map({
            accessToken: MAPBOX_TOKEN,
            container: 'map',
            center: [longitude, latitude],
            zoom: 17,
            maxZoom: 17,
            pitch: 25,
            bearing: -17.6
        });

        map.on('load', async function () {

            let vehicleLayer = new VehicleLayer({
                id: 'vehicle-layer',
                data: await getGeo(),
                sizeScale: 5,
                dimensionMode: '3D',
                getColor: [238, 255, 203],
                getPosition: vehicle => [vehicle.longitude, vehicle.latitude],
                getBearing: vehicle => vehicle.bearing,
                getVehicleType: vehicle => vehicle.vehilceType,
            }

            let deckOverlay = new MapboxOverlay({ layers: [vehicleLayer, ] });
            map.addControl(deckOverlay);

        });
    }); ""

Hi, @Elkarroudi ! Nice to see you using my VehicleLayer. Is this issue actual for you right now?
Also, any feedback would be appreciated as well as nice to have feature requests.

Hi Viktor, yeah if you could help i would appreciate it , the problem that i have is in the animation, when the vehicle location change i won't go smoothly, what ever i do, could you do a simple example how can i integrate the animation you have implemented. and thank you !


Normalize content to match RFC-821 rule

Strip content to match max 1000 characters line length including the CRLF according to RFC-821 rule.
Some SMTP servers doesn't strip lines automatically wich causes the following error (SMTP error from remote mail server after end of data: 500 5.5.0 Line too long)

Trusting you on this, dude!

I think you made a mistake on line 12 -- you didn't set the body, you set the text.  So I undid that change.

Ouch. Sorry for this mistake. :(
The changes itself works pretty well. I've faced this problem some days ago in my mailer package to Mako Framework so I had to implement this.
Since my package is based on this class I've decided to contribute ;)


Java Functions Framework

Java Functions Framework
We should release the Functions Framework for Java. It should use the javax.servlet.http API.

Note: The Java FF is technically public, but only includes interfaces

https://github.com/GoogleCloudPlatform/functions-framework-java

The Java FF was updated a few days ago with the source code:
https://github.com/GoogleCloudPlatform/functions-framework-java
I've added the link to the README. Closing!


Onboarding - NRM GPU Mapping/GIS repo project

Describe the issue
NRM needs to upgrade\replace its current Citrix-based Mapping\GIS farm of servers and would like to explore Azure GPU capability\functionality and services in this area for possible replacement of current farm
Additional context
Definition of done

Forms to be filled out and reviewed for approval and MOU's signed as per covering costs
Once approved, transferred for Technical Review (#1173)
Recall where landed and update the funnel records together with Julian as training

Checked in with Adam 2021-12-07 - he has lots on the go and will pick this discussion up with Julian in the New Year.

No longer relevant


Maria:component-based-design, 3 weeks

Component-Based Design
Learn to design, plan and build frontend applications using a Component-Based approach. You will explore the React library which is designed to make Component-Based design easy and efficient.

Learning Objectives

Priorities: 🥚, 🐣, 🐥, 🐔 (click to learn more)

There is a lot to learn in this repository. If you can't master all the material
at once, that's expected! Anything you don't master now will always be waiting
for you to review when you need it. These 4 emoji's will help you prioritize
your study time and to measure your progress:

🥚: Understanding this material is required, it covers the base skills you'll
need for this module and the next. You do not need to finish all of them but
should feel comfortable that you could with enough time.
🐣: You have started all of these exercises and feel you could complete them
all if you just had more time. It may not be easy for you but with effort you
can make it through.
🐥: You have studied the examples and started some exercises if you had time.
You should have a big-picture understanding of these concepts/skills, but may
not be confident completing the exercises.
🐔: These concepts or skills are not necessary but are related to this module.
If you are finished with 🥚, 🐣 and 🐥 you can use the 🐔 exercises to push
yourself without getting distracted from the module's main objectives.

1. Rendering Static Pages

recreate an HTML/CSS web page using pure functions components and encapsulated styles

🥚  JSX : you can ...

[ ]  Write elements with JSX syntax

2. Rendering Data

functional React components
render a static page with provided data
component props
splitting components with design in mind

🥚functional React components: you can ...

[x] Create a React function component (both function definition and arrow function styles)

[x] Import/export components between files

🥚 Render data: you can

[x] Use interpolation ({}) to insert JavaScript expressions into JSX
[x] Render a list using the .map method

🥚 Components and props : you can ...

[x] create small, reusable components
[x] how to pass props into React components

🥚 Create reusable components: you can ...

[x] Nest components within other components

one folder with a main component
sub-components for your convenience (not part of public contract)

3. Stateful Components

VDOM
what is a hook
useState
useEffect (any side-effect)
component lifecycle

🥚VDOM : you ....

[x]  can differenciate the real dom from the virtual dom
[x]  know what reconciliation process is ..

🥚 Hook

[x] simple, just enough for the flavor
[ ] the react docs "rules of hooks"

🥚 use-state
🥚 use-effect
🥚 component lifecycle
4. Events

create components that manage internal state and emit custom events
handling events
build reusable components that take functions as arguments
child components communicating with parent components
passing functions as props

5. Component Structure

splitting components with logic in mind

why create dumb components when hooks can be anywhere?

re-render cycles (all children)

why putting state at lower levels is efficient
why not to use everything in global state

6. Consuming APIs

fetch and use API data in components
async useEffect callbacks

7. Frontend Routing

react router

8. Global State

being careful about what you put in useContext

only move data to context when it's necessary

store and manage global app state shared between components
useContext

shared state, not the same as useState

other state management systems/strategies exist

Week 1/ Week 2
I pushed my progress here
I Need Help With:
What "root" element is?
What went well?
I am getting familiar with React slowly but surely.
I formed a big picture of:

data rendering
functional React components
nested components
VDOM
hooks: useState, useEffect, useRef

I've also tried:

to fetch and use API data in components
async useEffect callbacks

What went less well?
Splitting components and re-render cycles (all children).
I think three weeks are not enough for this module, at least for me.
Lessons Learned
Putting state at lower levels is efficient
Sunday Prep Work
Keep working on to-do list improvements.


Docker port

Has anyone looked at porting this firmware over to docker? These USB C1011 dongle maybe good hardware to allow this.
https://a.aliexpress.com/_Ex9a4yj

I am pretty sure that would take a bit more than just porting the firmware to docker.   ESPSomfy RTS communicates with the transceiver over SPI and not over RS232.  There would need to be some driver work done to bitbang on RS232.  In the end you would be back to an MCU.
I guess what I am saying is that it is possible but I don't see a need for it.

Thank you for the response, I truly appreciate it.
In terms of use case I think projects like zigbee2mqtt or zwavejs are good examples. Being able to attach radios to a single machine runing a docker stack acting as a hub can offer simplicity and flexibility.
Would this SPI project be useful to create a USB to spi bridge https://pypi.org/project/spi-adapter/

I am going to close this as I don't plan to create a docker port.


Simulation Environment with line drawing robot

Describe the bug

The robot (color sensor) detects black after repositioning.

To Reproduce
Steps to reproduce the behavior:

Go to Open Roberta Lab
Click on Sim, and chance the scene (where the robot draws a black line)
Start a program and let the robot drive somewhere
Reposition the robot
Start the program again and have a close look the the color sensor
See error - color sensor detects a quite long time black

Expected behavior

After repositioning the robot, the robot should detect white instead of black

Screenshots

Device information

Type: Laptop
OS: macOS
Browser chrome

works as expected


Autosuggest only the commands available to the terminal

Is there any way to autosuggest only the commands available to the terminal (e.g. echo, cp, rm, etc.)? Most of the time I don't need my entire history, but when I do, the arrow keys suffice for me.
Consider: https://fishshell.com/docs/current/tutorial.html#tut_autosuggestions
Ideally you'd be able to use any combination of these features (the one I'm interested in is commands without the entire history).
As a workaround, would it be possible to tell zsh-autosuggestions to use a blank or nonexistent history file? Ignore everything after the first space in autosuggestions? A history file that lists all the commands to autosuggest and nothing more?
Thanks

You can write your own suggestion strategy. You just have to define a function with the right name and then change the strategy variable in your config. Check out https://github.com/zsh-users/zsh-autosuggestions/tree/master/src/strategies for some inspiration.

Sorry it took so long for me to reply. I changed default.zsh a bit and got it to show only the command (i.e. everything before the first space), but now it shows the same command every time I press space. What am I doing wrong?
_zsh_autosuggest_strategy_command() {
    local prefix="$1"

    typeset -g suggestion="${"${history[(r)${(b)prefix}*]}"% *}"
}

source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

export ZSH_AUTOSUGGEST_STRATEGY="command"


What is the correct way to use quantized versions of vicuna or guanco?

I have been trying to use quantized versions of models to use my GPU whose VRAM is 6GB max. However nothing seems to work. How would I go about using 5bit versions that use under 6GB in memory?

@armsp vLLM does not support quantization at the moment. However, could you let us know the data type & quantization method you use for the models? That will definitely help our development decision.

For what it's worth, https://github.com/qwopqwop200/GPTQ-for-LLaMa and https://github.com/PanQiWei/AutoGPTQ seem to be the most common mentions from folks posting quantized models on huggingface lately - the later more just for general use.  https://github.com/SqueezeAILab/SqueezeLLM seems to do a much better job of 3bit in particular, but I haven't seen much general use yet.. maybe down the road?

@WoosukKwon @zhuohan123 sure. I wasn't trying anything fancy neither was I trying to quantize my own models. I was just trying to use the 4 and 5_1 bit quantized models that are available and I tried to do that by just changing the model path/name. Not quite sure how to use local models yet, but maybe using local models works? For example - there is a consumer hardware version of JosephusCheung/Guanaco -> https://huggingface.co/JosephusCheung/GuanacoOnConsumerHardware which is supposed to take only 5+GB V-Ram.
The error I get for that is -
Downloading (…)lve/main/config.json: 100%|████████████████| 568/568 [00:00<00:00, 307kB/s]
INFO 06-23 10:59:16 llm_engine.py:59] Initializing an LLM engine with config: model='JosephusCheung/GuanacoOnConsumerHardware', dtype=torch.float16, use_dummy_weights=False, download_dir=None, use_np_weights=False, tensor_parallel_size=1, seed=0)
INFO 06-23 10:59:16 tokenizer_utils.py:30] Using the LLaMA fast tokenizer in 'hf-internal-testing/llama-tokenizer' to avoid potential protobuf errors.
Traceback (most recent call last):
  File "demo.py", line 20, in <module>
    llm = LLM(model="JosephusCheung/GuanacoOnConsumerHardware")  # Name or path of your model
  File "/home/eli/vllm-test/vllm/lib/python3.8/site-packages/vllm/entrypoints/llm.py", line 55, in __init__
    self.llm_engine = LLMEngine.from_engine_args(engine_args)
  File "/home/eli/vllm-test/vllm/lib/python3.8/site-packages/vllm/engine/llm_engine.py", line 151, in from_engine_args
    engine = cls(*engine_configs, distributed_init_method, devices,
  File "/home/eli/vllm-test/vllm/lib/python3.8/site-packages/vllm/engine/llm_engine.py", line 93, in __init__
    worker = worker_cls(
  File "/home/eli/vllm-test/vllm/lib/python3.8/site-packages/vllm/worker/worker.py", line 45, in __init__
    self.model = get_model(model_config)
  File "/home/eli/vllm-test/vllm/lib/python3.8/site-packages/vllm/model_executor/model_loader.py", line 39, in get_model
    model = model_class(model_config.hf_config)
  File "/home/eli/vllm-test/vllm/lib/python3.8/site-packages/vllm/model_executor/models/llama.py", line 215, in __init__
    self.model = LlamaModel(config)
  File "/home/eli/vllm-test/vllm/lib/python3.8/site-packages/vllm/model_executor/models/llama.py", line 182, in __init__
    self.layers = nn.ModuleList([LlamaDecoderLayer(config) for _ in range(config.num_hidden_layers)])
  File "/home/eli/vllm-test/vllm/lib/python3.8/site-packages/vllm/model_executor/models/llama.py", line 182, in <listcomp>
    self.layers = nn.ModuleList([LlamaDecoderLayer(config) for _ in range(config.num_hidden_layers)])
  File "/home/eli/vllm-test/vllm/lib/python3.8/site-packages/vllm/model_executor/models/llama.py", line 136, in __init__
    self.mlp = LlamaMLP(
  File "/home/eli/vllm-test/vllm/lib/python3.8/site-packages/vllm/model_executor/models/llama.py", line 59, in __init__
    self.gate_up_proj = ColumnParallelLinear(hidden_size, 2 * intermediate_size,
  File "/home/eli/vllm-test/vllm/lib/python3.8/site-packages/vllm/model_executor/parallel_utils/tensor_parallel/layers.py", line 272, in __init__
    self.weight = Parameter(torch.empty(
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 172.00 MiB (GPU 0; 6.00 GiB total capacity; 5.27 GiB already allocated; 0 bytes free; 5.27 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation.  See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

I tried the quantized version of vicuna: https://huggingface.co/vicuna/ggml-vicuna-7b-1.1, https://huggingface.co/CRD716/ggml-vicuna-1.1-quantized, https://huggingface.co/TheBloke/vicuna-7B-1.1-GPTQ-4bit-128g
For other models the errors I get are either OOM, or that I need login access to huggingface hub.

Also support for gguf would be nice

Closing because quantization is supported via GPTQ, AWQ, SqueezeLLM.


Drop build-time option to embed Harfbuzz+FreeType.

@data-man I've finally decided to drop that compile-time option, as it's a valid argument to say that users (or package maintainers) wishing to statically link Harfbuzz and/or Freetype into the binary, can do so by simply providing them on the system.
/cc @herrhotzenplotz FYI :)

I'm using Devuan now.
$ apt info libharfbuzz-dev

Version: 2.7.4-1

But HarfBuzz 4.0.1 was released.

I'm using Devuan now. $ apt info libharfbuzz-dev

Version: 2.7.4-1

But HarfBuzz 4.0.1 was released.

I didn't want to believe the version range difference and installed a docker image of Devuan. And then even fetched the exact source packages of harfbuzz. That is from year 2017 (6 years old). That is literally even older than Ubuntu 18.04 LTS, which is already giving me a hard time to support.
What could be done is to specifically address Devuan by providing .deb files made for Devuan. So in order to not pollute the global scope of the project (objectively speaking here), I'd suggest to have a .deb package build script for Devuan OS instead that creates the contour-for-devuan.deb package deals with this situation exclusively.

No problem, you are boss! :)
I'll switch to CPM again (or to git submodules) in my local sources.


System.MissingFieldException after upgrading to 5.0.5

After upgrading from 5.0.4 to 5.0.5 application crashes on startup when running Release build. When launching Debug everything works.
Stack trace:
System.MissingFieldException: Field not found: 'Avalonia.Controls.Presenters.ItemsPresenter.AreVerticalSnapPointsRegularProperty'.
   at CompiledAvaloniaXaml.!AvaloniaResources.XamlClosure_324.XamlClosure_325.Build(IServiceProvider)
   at Avalonia.Markup.Xaml.XamlIl.Runtime.XamlIlRuntimeHelpers.<>c__DisplayClass1_0`1.<DeferredTransformationFactoryV2>b__0(IServiceProvider sp)
   at Avalonia.Markup.Xaml.Templates.TemplateContent.Load(Object templateContent)
   at Avalonia.Markup.Xaml.Templates.ControlTemplate.Build(TemplatedControl control)
   at Avalonia.Controls.Primitives.TemplatedControl.ApplyTemplate()
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Controls.DockPanel.MeasureOverride(Size constraint)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Controls.Grid.MeasureOverride(Size constraint)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Layout.LayoutHelper.MeasureChild(Layoutable control, Size availableSize, Thickness padding, Thickness borderThickness)
   at Avalonia.Controls.Border.MeasureOverride(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Layout.LayoutHelper.MeasureChild(Layoutable control, Size availableSize, Thickness padding, Thickness borderThickness)
   at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Controls.Grid.MeasureCell(Int32 cell, Boolean forceInfinityV)
   at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV, Boolean& hasDesiredSizeUChanged)
   at Avalonia.Controls.Grid.MeasureCellsGroup(Int32 cellsHead, Size referenceSize, Boolean ignoreDesiredSizeU, Boolean forceInfinityV)
   at Avalonia.Controls.Grid.MeasureOverride(Size constraint)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Layout.LayoutHelper.MeasureChild(Layoutable control, Size availableSize, Thickness padding, Thickness borderThickness)
   at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Controls.Grid.MeasureOverride(Size constraint)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Layout.LayoutHelper.MeasureChild(Layoutable control, Size availableSize, Thickness padding, Thickness borderThickness)
   at Avalonia.Controls.Presenters.ContentPresenter.MeasureOverride(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Layout.LayoutHelper.MeasureChild(Layoutable control, Size availableSize, Thickness padding)
   at Avalonia.Controls.Decorator.MeasureOverride(Size availableSize)
   at Avalonia.Controls.Primitives.VisualLayerManager.MeasureOverride(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Controls.Grid.MeasureOverride(Size constraint)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Controls.Grid.MeasureOverride(Size constraint)
   at Avalonia.Layout.Layoutable.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Layout.Layoutable.MeasureOverride(Size availableSize)
   at Avalonia.Controls.Window.MeasureOverride(Size availableSize)
   at Avalonia.Controls.WindowBase.MeasureCore(Size availableSize)
   at Avalonia.Layout.Layoutable.Measure(Size availableSize)
   at Avalonia.Layout.LayoutManager.Measure(Layoutable control)
   at Avalonia.Layout.LayoutManager.ExecuteInitialLayoutPass()
   at Avalonia.Controls.Window.ShowCore(Window owner)
   at Avalonia.Controls.Window.Show()
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.ShowMainWindow()
   at Avalonia.Controls.ApplicationLifetimes.ClassicDesktopStyleApplicationLifetime.Start(String[] args)
   at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, ShutdownMode shutdownMode)
   at D2Oracle.Avalonia.Program.Main(String[] args) in Program.cs:line 22

Libraries:
SukiUI 5.0.5
Avalonia 11.0.4
MainWindow.axaml

Test app with bug. Run in Release mode
AvaloniaApplication1.zip

I think that whatever the reason (probably a small syntax change) that triggers that, it's because SukiUI use Avalonia 11.0.0-rc2.1, which is because I stucked to this version for professional project where more recent version of Avalonia triggered weird bugs on LinuxFrameBuffer and TransitioningContentControl.
Can you confirm the bug still happen if you downgrade to Avalonia 11.0.0-rc2.1 ? Usually it's not a problem to stay few versions behind unless annoying syntax changes happen.
In any case I will update AvaloniaUI version to more recent when I will have the opportunity.


"Top Rated Apis" widget has gone missing

Description:
"Top Rated Apis" widget which was there in the "Overview" page is missing in the RC2 pack.
Affected Product Version:
3.0.0-RC2

This issue seems to be intermittent and started working after a restart in the dashboard profile.

Fixed with https://github.com/wso2/analytics-apim/pull/764


Revamp Quarters Offered Display

Use the school's API to get historical and future enrollment data for a particular course

Closed by #295


Fixed "Checking unitsPerEm value is reasonable."

We already have a test to check whether the font upm is 1000, Is font em size (ideally) equal to 1000?
Since 1000 is not a power of 2 between 16–16384, I've inserted 1000 as the first entry.
I considered deleting this test, I'll leave it up to you.
Cheers,
Marc

@felipesanches hey can you take a look at this?
Even though I can merge pull requests, I still feel it isn't right to merge my own.

I did look at it a few days ago. The spec says that only a few powers of 2 are valid values in this field. But simultaneously the other check prefers to have a value of 1000. Do you know what's the rationale behind the expected value of 1000? Is there any real problem caused by having a font with unitsPerEm != 1000 ?
I think this is a question that @davelab6 may be able to answer.

Hey,
It's mentioned in our spec. I didn't want to destroy this check or we'd have problems with legacy fonts which are 2048 upm.
imo, the 1000upm check should just be a warning.
Cheers,
Marc

https://www.microsoft.com/typography/otspec/head.htm
USHORT

unitsPerEm

Valid range is from 16 to 16384.
This value should be a power of 2 for fonts that have TrueType outlines.

ok, so should we make the upm==1000 check a warning and also make it Google-Fonts specific? (i.e. can be disabled with the -s optional cmdline argument)
-s, --skip     Skip checks specific to github.com/google/fonts

I agree with this approach. @davelab6 what do you think?

@m4rc1e I think it is safe enought for us to move on with this approach.


[QUESTION] How add sheet (view blade) to existing file?

[QUESTION].
Laravel 5.1
\Excel::load(public_path("reports/excel/1473708996.xlsx"), function($excel) {
$excel->sheet('Administrators', function($sheet) {
$sheet->loadView('reportes.general.sheet', ['name' => 'nombre']);
});
})->store('xlsx', public_path('reports/excel'));

Did you try it, what is the output you currently get.


Enable output redirection

Many UNIX tools support the ability to pipe output to other programs for processing. Adding support for this functionality is relatively trivial, given the tools the script utilizes.
If you wish to eliminate the gifsicle dependency, using gif:${outfile} should work just as well.
This addresses one of the issues mentioned in #14, however I've preserved the -o functionality, just because.

Not adding the gifsicle dependency.


How can I build android wallet from source on my linux machine?

Hi. I found instruction for build android version of Verge (wallet) but it deprecated, right? How can I build android version myself? I know that Google Play already delivery Verge wallet, but I want build it myself :) because version of Google Play just crash on my device. Maybe I can debug this issue and upload fix for this :)

what kind of crash? we haven't gotten any crash reports

Hi, I implemented updates from original electrum wallet for your wallet project (based on Tor) and build mobile app from source. This issue not relevant more :)


Biweekly Contest 80

Question Name : Count Subarrays With Score Less Than K
Question Tag : Hard

this is amazing @CodeBreakerSep
thanks for the contribution in my repo and please share in social media and tag me on twitter


Exclude support for unused codecs

Hi media_kit team,
Thank you for providing this awesome Flutter package!
We are building an app for Windows and noticed that including media_kit bundles a large number of DLLs (see here). It seems that some of these DLLs conflict with other dependencies of our app and cause crashes. Additionally, packaging all those DLLs significantly increases the bundle size.
In our app, we only use h265 (without sound). Our current workaround is deleting the following DLLs after a build:
api-ms-*.dll
concrt140.dll
msvcp*.dll
ucrtbas*.dll
vc*.dll

With this, the app still works but does not crash anymore.
Is there a more elegant way to exclude certain, unneeded codecs?
Thank you!

Interesting. Those are MSVCP & UCRT from Microsoft, they don't provide any codec support etc. I included them to make application run out-of-the-box, in-fact I think ANGLE also bundles them by default.

Build against main branch.


Pathvector cli back

Pathvector cli back

Elaborate please?

Elaborate please?

old version of pathvector hac a cli command  its still in docs but not in recent version i think the command should come back


pythonPackages.mypy: 0.812 -> 0.910

Motivation for this change
Update mypy from version 0.812 to 0.910.
Introduces new build-time dependencies on types-toml and types-typed-ast which are both added as Python modules. Unfortunately, building fails:
[...]
python3.8-mypy> mypy/modulefinder.py:436: error: Library stubs not installed for "toml" (or incompatible with Python 3.8)
python3.8-mypy> mypy/config_parser.py:10: error: Library stubs not installed for "toml" (or incompatible with Python 3.8)
python3.8-mypy> mypy/config_parser.py:10: note: Hint: "python3 -m pip install types-toml"
python3.8-mypy> mypy/config_parser.py:10: note: (or run "mypy --install-types" to install all missing stub packages)
python3.8-mypy> mypy/config_parser.py:10: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
python3.8-mypy> mypy/fastparse.py:109: error: Library stubs not installed for "typed_ast" (or incompatible with Python 3.8)
python3.8-mypy> mypy/fastparse.py:109: note: Hint: "python3 -m pip install types-typed-ast"
python3.8-mypy> mypy/fastparse2.py:57: error: Library stubs not installed for "typed_ast.ast27" (or incompatible with Python 3.8)
python3.8-mypy> mypy/fastparse2.py:68: error: Library stubs not installed for "typed_ast" (or incompatible with Python 3.8)
[...]

Building complains about missing stubs for toml and typed-ast although I added them to the nativeBuildInputs.
Maybe someone else has an idea why this is happening.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[ ] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Relase notes)

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

[ ] Fits CONTRIBUTING.md.

Ref. https://github.com/nix-community/poetry2nix/issues/323.

Thanks to @bjornfor's reference, I can confirm that disabling mypyc results in a successful build. Given the (huge) runtime impact, it's not really an option though.

I disabled mypyc for versions newer than v0.900 unless somebody knows how to make the derivation work with mypyc enabled.

Closes https://github.com/NixOS/nixpkgs/issues/139319
(so the issue gets closed when any one of the two mypy-update-PRs get merged)

@veehaitch That went nowhere, are you interested in looking into this further?

I didn't quite follow the development in #140627. What's left to do? If it's just addressing the pending suggestions, I'm happy to reopen this PR.

Mypy is still stuck at 0.812. Not exactly sure what is missing. Does it find the library stubs?