[Subtask] [spark-connector]: support CTAS and ITAS command

Describe the subtask
support CTAS and ITAS command
Parent issue
#1227

Hi @FANNG1 May I know what kind of sql does ITAS correspond to?

Hi @FANNG1 May I know what kind of sql does ITAS correspond to?

Insert table as select xx

Hi @FANNG1 May I know what kind of sql does ITAS correspond to?

Insert table as select, like
 INSERT INTO students PARTITION (student_id = 444444)
     SELECT name, address FROM persons WHERE name = "Dora Williams";

Hi @FANNG1 May I know what kind of sql does ITAS correspond to?

Insert table as select, like
 INSERT INTO students PARTITION (student_id = 444444)
     SELECT name, address FROM persons WHERE name = "Dora Williams";

I got it, thank you @FANNG1.
But why is it necessary in spark-connector?

Normally they are not related to spark-connector, but we should add integrate test in SparkIT to verify it works as expected because the CTAS and ITAS are common on productive env.

Normally they are not related to spark-connector, but we should add integrate test in SparkIT to verify it works as expected because the CTAS and ITAS are common on productive env.

got it. thank you @FANNG1


Properly document the nerdlet.setUrlState method

Description
Not all API methods are documented in the developer documentation. For instance, nerdlet.setUrlState method is not mentioned in the developer documentation under platform API / nerdlet but it’s part of the how to understand url state guide defined on Discuss
Steps to reproduce

Go to https://developer.newrelic.com/apis/nerdlet
Try to find any information on nerdlet.setUrlState
Go to https://discuss.newrelic.com/t/how-to-understand-nerdlet-url-state/97596
Try to see all the information on nerdlet.setUrlState

Expected behavior
We properly document this method in the Platform API / nerdlet section of the developer site.
Additional context
This may require updated NR1 Core documentation for Platform API / nerdlet  as it's also not explained there to ensure the SDK Bundler can auto generate this method's documentation in the future.

I'm wondering if we just need to update this doc section: https://developer.newrelic.com/components/nerdlet-state-context

We will want to also capture that NerdletContext uses the URL state to populate its context value. It would be very useful to link to the nerdlet documentation since the nerdlet.setUrlState method will not only update the URL state, but also effect the NerdletContext value.

Updated per our convos today on the platform documentation @jerelmiller


Projection LSL Support

Corresponds to Phlox PR#6 and already includes a rebuilt edition of the Phlox DLL with the new constants and rules that enable script control of the projectors.
Please use Phlox PR#6 for discussing the engineering of the constants.  Eg: whether they should be individual constants like this, or a glob set like most of the commands - or if you'd like to see the naming be different.
The re-engineering of KeyOrName I'm no longer certain is 100% needed, as such is not an exploit, but it does make things act more consistently: inventory items, no matter the name, are now accessed as such - even if the name of the inventory item is "6522E74D-1660-4E7F-B601-6F48C1659A77".

Done.

Looks good, merged.


Option to display time axis in frames and/or render quanta

The time axis is currently displayed in sec.  This is the most useful setting.
But on occasion it would be nice to have the time axis in frames.  Or maybe even render quanta.  Render quanta is kind of nice to make it clear where each processing block is (but does make graphing the data harder).

I have to think about the best way of doing this. If every RQ is drawn on the timeline, it's going to be messy.

As discussed offline, this request is basically swapping out the axis in seconds to an axis with the frame number instead.  Should pretty much look the same as it does today, except for the labels.  The RQ shouldn't be any messier; the time units on the axis will just change.


Get token both with custom header and custom scheme

Making it possible to get jwt token both with using custom header and custom scheme.
e.g.
http = require('passport-http'),
jwt = require('passport-jwt');

const opts = {};
opts.secretOrKey = 'secret';
opts.jwtFromRequest = jwt.ExtractJwt.fromHeaderWithScheme('x-authorization', 'x-JWT');
passport.use(new jwt.Strategy(opts, function(...) {...}));

then can request like below.
% curl -X "GET" "http://example.com/users" \
       -H "x-Authorization: x-JWT <your JWT token>"

I realized that if use custom Authorization header then no need to use custom Authorization shceme.


Alignment issue on home page.

Describe the bug

To Reproduce
Steps to reproduce the behavior:

Go to home page of the website

Note:

If you want to work on an issue, you should check if it has already been assigned to anyone. If the issue is free you can comment /assign to get the issue assigned to you.
If you are raising a new issue and want to work on it then also you should comment /assign under the issue to get it auto assigned.
Please refrain from adding labels to your issue/pull-request on your own. It is the job of the Project Admin and the Mentors to review your issue/pull-request and add labels accordingly.

Hey @Pranav016 I would like to work on this issue please assign it to me, GSSOC'21 participant

/assign

The issue has been fixed hence closing it.


⚠ Bofrost.fr has degraded performance

In 72b9814, Bofrost.fr (https://www.bofrost.fr) experienced degraded performance:

HTTP code: 200
Response time: 865 ms

Resolved: Bofrost.fr performance has improved in 619bde0 after 9 minutes.


Restore Down not working

Type: Bug
Restore Down is not working. Thank you.
VS Code version: Code 1.76.2 (ee2b180d582a7f601fa6ecfdad8d9fd269ab1884, 2023-03-14T17:55:54.936Z)
OS version: Windows_NT x64 10.0.19045
Modes:
Sandboxed: No

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz (4 x 2592)

GPU Status
2d_canvas: enabledcanvas_oop_rasterization: disabled_offdirect_rendering_display_compositor: disabled_off_okgpu_compositing: enabledmultiple_raster_threads: enabled_onopengl: enabled_onrasterization: enabledraw_draw: disabled_off_okskia_renderer: enabled_onvideo_decode: enabledvideo_encode: enabledvulkan: disabled_offwebgl: enabledwebgl2: enabledwebgpu: disabled_off

Load (avg)
undefined

Memory (System)
7.91GB (2.50GB free)

Process Argv
--crash-reporter-id 9d6b13d8-1708-4126-b763-fafde6efcbcd

Screen Reader
no

VM
0%

Extensions (3)

Extension
Author (truncated)
Version

prettier-vscode
esb
9.12.0

live-server
ms-
0.4.7

html5-boilerplate
sid
1.1.1

A/B Experiments
vsliv368cf:30146710
vsreu685:30147344
python383cf:30185419
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242cf:30382550
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vsdfh931:30280409
vshan820:30294714
vstes263cf:30335440
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vsclangdc:30486549
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
nodejswelcome1cf:30587006
282f8724:30602487
pyind779:30671433
89544117:30613380
pythonsymbol12:30671437
2i9eh265:30646982
azdwalk:30721579
pythonms35:30701012
pythonfmttext:30716742

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.77.3. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.
Happy Coding!

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


New commands not work

I have wrote a new command based on help command
<?php
namespace Longman\TelegramBot\Commands;

use Longman\TelegramBot\Request;
use Longman\TelegramBot\Command;
use Longman\TelegramBot\Entities\Update;

class NicoCommand extends Command
{
	public function execute() {
		$update = $this->getUpdate();
		$message = $this->getMessage();

		$chat_id = $message->getChat()->getId();
		$text = $message->getText(true);

  		$data = array();
  		$data['chat_id'] = $chat_id;
  		$data['text'] = "Sorry, ........";

		$result = Request::sendMessage($data);
	}
}

But when I write /nico it not work :cry:
What's wrong ?
(Sorry for my bad english :grin: )

What is the name of the file? It have to be NicoCommand.php
On 17 Jul 2015 18:40, "Marco Ferraioli"<EMAIL_ADDRESS>wrote:

I have wrote a new command based on help command
getUpdate();        $message = $this->getMessage();        $chat_id = $message->getChat()->getId();        $text = $message->getText(true);        $data = array();        $data['chat_id'] = $chat_id;        $data['text'] = "Sorry, ........";        $result = Request::sendMessage($data);    }}

But when I write /nico it not work [image: :cry:]

What's wrong ?

(Sorry for my bad english [image: :grin:] )

—
Reply to this email directly or view it on GitHub
.

yes, the name is NicoCommand.php

http://s10.postimg.org/smonglf15/Immagine.png

ops I don't want close  this :confused:

ops I don't want close this :confused:

Wich version of the bot you're using? this is not the last one 0.0.8 right?

I have update the bot, but now when I set webhook I recive this error:
var_dump(self::$telegram->getApiKey());
help me :cry:

Try to do he request manually with this:
https://api.telegram.org/bot{yourbottoken}/setWebhook?url={yourhttpsurl}

it work. Thanks


Issue #141 Anchor tags not working

Updated the doc.js to automatically load to the selected section.

Finally given this a proper go this evening.  Looks like the snippet code is racing the anchor code here, and misbehaving in some browsers.  Firefox seems to work as expected, Safari ends up in roughly the right place, but Chrome seems to end up quite some way away.

Deigo,
Sure,I'll look into it.
Regards,
Ravi
On Sat, Mar 23, 2019 at 2:30 AM Diego Molina<EMAIL_ADDRESS>wrote:

@diemol requested changes on this pull request.
Hi @Ravichandra-C https://github.com/Ravichandra-C,
Could you please check the comments in #141
https://github.com/SeleniumHQ/docs/issues/141? I tried the PR and it
does not really fix them.
And sorry for the late review.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/SeleniumHQ/docs/pull/150#pullrequestreview-217973364,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AQ-6iFtnJyhPlNZEiKK0iPJOV0ithYTBks5vZURhgaJpZM4P8kbn
.

Closing in favour of the new docs UI powered by Hugo


Not able to add references columns or foreign keys

Hi everybody plugin is nice, but when I trying to add references columns or foreign keys plugin not works, I test on batch run statements(execute()) or single run statement(run()), thanks for any help.

@urbanboy first thanks to use the plugin. if i understand well your question, as you didn't give an example of the SQL statement you are trying to execute, this is happening when you are trying to ALTER a table to add a FOREIGN KEY and to add a REFERENCES to the key of another table.
ALTER TABLE child ADD CONSTRAINT fk_child_parent
                  FOREIGN KEY (parent_id)
                  REFERENCES parent(id);

If it is the case, this is not supported by sqlite and de facto by the plugin. What you have to do is to create the FOREIGN KEY and the REFERENCES at the time you CREATE the table.
CREATE TABLE child (
    id           INTEGER PRIMARY KEY,
    parent_id    INTEGER,
    description  TEXT,
    FOREIGN KEY (parent_id) REFERENCES parent(id)
);

Unfortunately, if your table already exists, either you will loose the data or you have to copy your_table into child
INSERT INTO child (id,description) SELECT id,description FROM your_table;

and after this update for each row of child the parent_id, drop your_table and rename child to your_table.
Voilà, hope it is a clear answer

@urbanboy see https://www.sqlite.org/omitted.html

Thanks You, definetly I ever trying add foreing key at creation of table like you but   is imposible table is incomplet without the column of foreign key, maybe is posible use the documentation about PRAGMA foreign_keys ? https://www.sqlite.org/foreignkeys.html
Sentence of creation of table with foreign key not works just un the line of definition of foreing key, Can You try this and then use of exportToJson method's plugin and check that output of Json of database with Foreign key?
Cheers.

@urbanboy
i did this and it works fine
        // create tables
        let sqlcmd: string = `
        PRAGMA foreign_keys = ON;
        CREATE TABLE IF NOT EXISTS users (
            id INTEGER PRIMARY KEY NOT NULL,
            email TEXT UNIQUE NOT NULL,
            name TEXT,
            company TEXT,
            size FLOAT,
            age INTEGER
        );
        CREATE TABLE IF NOT EXISTS messages (
            id INTEGER PRIMARY KEY NOT NULL,
            userid INTEGER,
            title TEXT NOT NULL,
            body TEXT NOT NULL,
            FOREIGN KEY (userid) REFERENCES users(id)
        );
        CREATE INDEX users_index_name ON users (name);
        `;
        result = await this._SQLiteService.execute(sqlcmd);
        console.log('1 result.changes')
        if(result.changes.changes === 0 || result.changes.changes === 1) {
          sqlcmd = `
          BEGIN TRANSACTION;
          INSERT INTO users (name,email,age) VALUES ("Simpson","Simpson@example.com",69);
          INSERT INTO users (name,email,age) VALUES ("Jones","Jones@example.com",42);
          INSERT INTO messages (id,userid,title,body) VALUES (1,1,"Message 1","Blabla");
          INSERT INTO messages (id,userid,title,body) VALUES (2,1,"Message 2","More Blabla");
          INSERT INTO messages (id,userid,title,body) VALUES (3,2,"Message 1","Response from Blabla");
          COMMIT TRANSACTION;
          `;
          result = await this._SQLiteService.execute(sqlcmd);
          console.log('2 result.changes')
          if(result.changes.changes === 5) {
          }
       }

Now for the importFromJson and exportToJson i will have to see how it can be implemented
Hope this will help

Thank you so much, your sample code works well.Greetings.

@urbanboy The support of FOREIGN KEY has been added in release<EMAIL_ADDRESS>Hope you will find it helpful


fix(response): correct response.writable logic

related #781

[Current coverage][cc-pull] is 100% (diff: 100%)

Merging [#782][cc-pull] into [v2.x][cc-base-branch] will not change coverage

@@           v2.x   #782   diff @@
==================================
  Files         4      4
  Lines       414    415     +1
  Methods      80     80
  Messages      0      0
  Branches     99    100     +1
==================================
+ Hits        414    415     +1
  Misses        0      0
  Partials      0      0

Powered by Codecov. Last update [2c507d3...7c82484][cc-compare]
[cc-base-branch]: https://codecov.io/gh/koajs/koa/branch/v2.x?src=pr
[cc-compare]: https://codecov.io/gh/koajs/koa/compare/2c507d335d1125eaf9fd6770519e9e2be47c5961...7c82484abd6de7f36d1d0cddf48cf251b9e34919?src=pr
[cc-pull]: https://codecov.io/gh/koajs/koa/pull/782?src=pr


Pictures don't resize properly on team homepage

The hackers team has a picture in their description that will overlap with reviews and team blog sections on skinny monitors.   Screenshot is on a 1600x900 monitor flipped vertically.  It doesn't resize properly on mobile either.

Yep, looks good.


Record paths handle root-level array indices inconsistently

In the js client:
let r = client.record.getRecord('foo')
r.set([0,1,2,3])
r.get() // [0, 1, 2, 3]
r.set('[4]', 4)
r.set('.5', 5)
r.get() // [0, 1, 2, 3, 4, 5]
r.discard()
client.record.snapshot('foo', (err, record) => console.log(record)) // [0, 1, 2, 3, null, 5]

In the example above, local and remote record state diverge due to different handling of the path. The client believes the '[4]' path accesses the fourth index of the array, the server believes the path is invalid.
Perhaps this issue should be raised against the client instead, since it's supposed to replicate the behaviour of the server, but in this case I believe this is a due to a regression in server behaviour.

Related: https://github.com/deepstreamIO/deepstream.io/issues/651

It seems that in v4, the states no longer diverge, I've tested so with the same script as John's in v4:
const deepstream = require('deepstream.io-client-js')
const BBPromise = require('bluebird').Promise
const server = require('./server')

const expect = require('chai').expect

const run = async() => {
  await server.start()

  const client = deepstream('localhost:6020', {
    reconnectIntervalIncrement: 100,
    maxReconnectInterval: 1000,
    maxReconnectAttempts: 999,
  })

  await client.login({})

  const record = client.record.getRecord('posts/a')
  await record.whenReady()

  record.set([0, 1, 2, 3])
  await BBPromise.delay(500)

  record.set('[4]', 4)
  await BBPromise.delay(500)

  record.set('.5', 5)
  await BBPromise.delay(500)

  const localSnapshot = record.get() // [0, 1, 2, 3, null, 5]

  record.discard()
  await BBPromise.delay(500)

  const snapshot = await client.record.snapshot('posts/a')  // [0, 1, 2, 3, null, 5]

  let exceptionCaught = false
  try {
    expect(snapshot).to.deep.equal(localSnapshot)
  } catch (e) {
    exceptionCaught = true
  } finally {
    const message = exceptionCaught
      ? 'failed: path with array indices does not update values properly'
      : 'succeeded: path with array indices updates values correctly'

    console.log('Assertion', message)
    process.exit(exceptionCaught)
  }
}

run()

So this is fixed in v4 since both the local version of the record and the server's have the value [0, 1, 2, 3, null, 5],
However as you can see, the client does not handle properly root level array indices path, resulting in the null in the fourth position. Not sure if it is a client or server issue

You can find the script in: https://github.com/deepstreamIO/test-scripts/commit/8361b68fe79f6521fa7ffb0951dbb1a5d0a230ca

In this script it doesn't look like you wait for the discardTimeout, so when you snapshot you're just loading the same data again.
I would recommend connecting another client and doing a snapshot to confirm data is the same between client and server

Thank you Alex for pointing out the discard timeout option, that escaped my mind.
Here is the updated version of the script, which also reveals that the states no longer diverge, so we are only left with the issue of not being able to set a root level array using brackets notation, so statements like record.set('[4]', 4) fail to update the root level array correctly.
const deepstream = require('deepstream.io-client-js')
const BBPromise = require('bluebird').Promise
const server = require('./server')

const expect = require('chai').expect
const assert = require('./assert').assert

const run = async() => {
  const snapshots = {
    clientA: {
      local: null,
      remote: null,
    },
    clientB: {
      remote: null
    }
  }

  const discardTimeout = 1000

  await server.start()

  const clientA = deepstream('localhost:6020', {
    reconnectIntervalIncrement: 100,
    maxReconnectInterval: 1000,
    maxReconnectAttempts: 999,
    discardTimeout
  })

  const clientB = deepstream('localhost:6020', {
    reconnectIntervalIncrement: 100,
    maxReconnectInterval: 1000,
    maxReconnectAttempts: 999,
  })

  await clientA.login({})
  await clientB.login({})

  const record = clientA.record.getRecord('posts/a')
  await record.whenReady()

  record.set([0, 1, 2, 3])
  await BBPromise.delay(500)

  record.set('[4]', 4)
  await BBPromise.delay(500)

  record.set('.5', 5)
  await BBPromise.delay(500)

  snapshots.clientA.local = record.get()

  record.discard()

  await BBPromise.delay(discardTimeout)

  snapshots.clientA.remote = await clientA.record.snapshot('posts/a')
  snapshots.clientB.remote = await clientB.record.snapshot('posts/a')

  const assertion = assert(() => {
    expect(snapshots.clientA.local)
      .to.deep.equal(snapshots.clientA.remote)

    expect(snapshots.clientA.local)
      .to.deep.equal(snapshots.clientB.remote)
  }, {
      success: 'path with array indices does not update values properly',
      failure: 'path with array indices updates values correctly'
    })

  await BBPromise.delay(100)
  process.exit(assertion)
}

run()

Closing in favour of https://github.com/deepstreamIO/deepstream.io/issues/1046


[JS] Topic: Operators in Javascript

Description 📜
Fixed Issue No. #202
Directory
Topics/5.Syntax/2.Operators

Discussed various Javascript Operators

Assignment Operator
Arithmetic Operator
Comparison Operator
Bitwise Operator
Logical Operator
Ternary Operator

Type of change 📝

[x] Documentation (Content Creation in the form of codes or tutorials)

Domain of Contribution 📊

[x] JavaScript

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GWOC'21 contributor

Screenshots / Gif (Optional) 📸

@Creatoon @dakshsethi @s4-2 Please do a speedy review. This is a recreation of #536 to get rid of the conflicts.

@rwiteshbera Check for other mistakes also, if present then fix them, i will approve

@Creatoon Sir, I have fixed all the issues that you have mentioned, Kindly check it once.


A backslash is added in the markdown before the point when the last word is a number.

HTML

Blabla 167. Blabla

Markdown
Blabla 167\. Blabla

Expected markdown
Blabla 167. Blabla

This is to prevent things like '1. hello world' from becoming a list (if converted back to HTML). See https://github.com/domchristie/to-markdown/blob/master/index.js#L33
Perhaps the regex is a bit greedy, though?

I'm not sure to understand. It's the responsibility of the tool that converted back to HTML, not yours ?!?

It's the responsibility of the tool that converted back to HTML, not yours ?!?

Yes, but it’s also the responsibility of the tool to ensure that semantics are (somewhat maintained).
For example if the following was not escaped:

1. Hello world

then it would convert to:
1. Hello world

…which is perceived as a list, and is therefore incorrect. The paragraph has been lost.
Hope that helps

Naive change: https://regex101.com/r/uZ9hD8/1

Nice. I wonder if we should think about performing the escaping when each node is converted?

IMHO it depends if you have a first pass that tries to simplify the input by removing useless tags (like for example ...).

I’m not sure that is related: it’d be pretty simple to come up with a list of elements that should be removed  altogether (e.g. ) and those which should just have their tags removed, but the content in tact (e.g. ). Whilst html -> md is a lossy process, I have tended to err on the “lossless” side, by keeping all non-md elements. Maybe I should change this stance—probably one for another issue.
With regards to this issue, I’m thinking we could pre-process the innerHTML of each element, and escape any
 triggers there, rather than doing a .replace on the entire input string.
It might be quite tricky though, because as
s get converted, parent nodes will have to be aware that it contains a list, so that converted lists are not escaped! So perhaps your 'naive' approach is simplest?
This is related to: https://github.com/domchristie/to-markdown/issues/44 - all markdown syntax should be escaped where possible.

I’m not sure that is related

It was just to reduce the length of the input before the use of the regex.

It was just to reduce the length of the input before the use of the regex.

Aha, I see! :)

I started using this library in a project today and encountered this same issue.  Glad to see it already under discussion.

I've also noticed this - is there any movement on a fix?
IMO the edge-case of a list-looking paragraph getting converted to a list is much smaller than a number ever being before a period.

I came across this issue when investigating some odd escaping happening with dates. Looks like I have to just strip the backslash out manually.

I believe this is fixed in https://github.com/domchristie/turndown This is a rewrite, which will eventually supersede to-markdown. If you discover any related issues, please raise an issue on that project.


Character model tool availability?

So I used the given DALtools here for testing purposes. When I wanted to play with the character models, I tried to have them in my Photoshop, but the actual file containing the character sprites is this:

I tried to solve this hell of a puzzle, but the results were horrible, to say the least. I know that it was intentionally made to compensate for the moving parts of characters in-game. But I think there could be a way to render the disfigured model in a said tool where their parts joined and showed as intended, where a selective frame could be used as a character picture model like this.

Sorry if I dragged the request for too long, but In short, is there any way to have the desired character spirits into a normal-looking model?  Say if I wanted to use the character pictures for my own personal interest uses.

Oh nice, this is the first time hearing a MP viewer existing.

Wow, thanks a lot @henrybode and @thesupersonic16, I wasn't expecting a quick reply. However, I have a few last doubts,
Is it possible to take the entire animation loop as one .gif or video file? The only method I could think of is to take all the frames and arrange them in another video software. But it would be filled with errors and kinda time-consuming.
I also came across the loop option, I thought it could be used to freeze the animation to help one take the required shot of a said frame only. While it could be taken regularly, it could be little reliable.
I also wondering if somehow there is an inbuilt feature where the site would take perfect cuts out of the character without requiring the user to manually fit the character on the screen and then take the picture.
All of these requests might sound demanding. But It's just asking for features which may be said to make "Life a bit easier."
Again, thanks for the original help thought. Cheers.

I am currently looking for alternatives for recording for the first request, And I thought that the loop option is intended to stop or play the animation of a said character(My fault, sorry about it).
About the third point thought, I do not have any option which allows me to remove the left control panel, is it togglable? And about the browser's viewport, I tried fiddling with it but didn't get any likeable outcome. Can you help me with this?

It works. I just had to do" ctrl+shift+c" after entering the inspect mode. Then I hover my mouse over the left control panel, as it would highlight the code page related in the elements tab in blue colour. I would right-click the options and grey background panel respectively and click the hide option, this may be better than entirely deleting and potentially ruining the code lines. All set.
Thanks again for the huge help. Appreciate it.

@henrybode.
Oh, What is it, I am hearing it for the first time. What does it do for my benefit? Could you explain?
Also, how do I make the "viewer" show this feature to me? (I am in doubt about what exactly you mean by a viewer and the steps to achieve the feature?)

One last thing, how do I increase the resolution of the page? Like when I take photos of a character, it seems a little blurry. I was wondering if I could use any code help to increase the site's resolution, potentially fixing the average res shots problem.
I just want to clarify that the photo taken is not trash nor a fault from my PC end, they are above something I wanted for working on a project involving these elements. I did my research like " increase the res of html5 canvas" and the obvious solution seems to increase the height and width pixel count in a constant ratio. I tried it, but it didn't help or just those Uncaught SyntaxError: Unexpected token '>'. Since I am not into the fields of codes and tech, I am clueless about the problem.
Since you are one tech guy, could you help me with the solution of increasing the page's resolution?

Ok, I came through the solution. I will write down steps to help any future commer who came across this same problem.

You want to make your screen ratio 8k(7680 x 4320), having your selected model in optimal size fitting in the screen. [While this can noticeably lag the process, even for my low-end PC, it took a few extra seconds before doing the task perfectly. ]

We would choose "capture screenshot" option after clicking the 3 dots to see our available options, to take the image( For a low-end PC, again, it will seem as if it will crash, but it will a few seconds before taking a perfect screenshot.)

You want to trim the screenshot image[preferitially in a 1:1 square ratio] in any image editing software [I will be using Photoshop since it always makes sure of preserving the details we need for high res.], cutting the excess details like the blank grey background and the panel of options.


Hololens2 Azure Spatial Anchors Tutorial Crash

Trying to follow the Microsoft Azure Spatial Anchors tutorial (even after it was recently updated) but the Release build of the project crashes on launch on the device (just after the Unity splash screen). Interestingly a Debug build of the same project seems to launch ok.
I've been able to build, deploy, test both the basic Hololen2 tutorials and the ASA Samples as well as some custom projects so don't think this is a general development or deployment issue.
Have others been able to follow this tutorial and successfully deploy to a device recently and/or is there any suggestions to diagnose the issue further?
Setup and Unity packages used (as per the tutorial and linked instructions):

Hololens OS (up to date): 19041.1136
Unity 2019.4.19f1
<EMAIL_ADDRESS><EMAIL_ADDRESS>MRTK Foundation - 2.5.3 from the basic tutorial series (MRTK Package Tool)
AR Foundation: 3.1.3
Windows Mixed Reality: 4.2.1 (downgrade from 4.2.3?)
MRTK.HoloLens2.Unity.Tutorials.Assets.GettingStarted.2.4.0.unitypackage
MRTK.HoloLens2.Unity.Tutorials.Assets.AzureSpatialAnchors.2.4.0.unitypackage

Note: MRTK.HoloLens2.Unity.Tutorials.Assets.AzureSpatialAnchors.2.4.0.unitypackage actually links to a new 2.5.3 package (https://github.com/microsoft/MixedRealityLearning/releases/tag/azure-spatial-anchors-v2.5.3) however the version file in this package still has 2.4.0??
Exception thrown at 0x00000226E0FBCC40 in Workspace Hololens2 MRTK.exe: 0xC0000005: Access violation executing location 0x00000226E0FBCC40.

I think through process of elimination this is somehow caused by the DebugWindow prefab's BoundsControl component (as provided in the Tutorials.Assets.AzureSpatialAnchors package from the tutorial). If I disable this one component on the instance of this in the scene then the application loads.

I think through process of elimination this is somehow caused by the DebugWindow prefab's BoundsControl component (as provided in the Tutorials.Assets.AzureSpatialAnchors package from the tutorial). If I disable this one component on the instance of this in the scene then the application loads.

Marking this stale issue as "won't fix".
If relevant, please try out the new MRTK3 tutorial samples. @ https://github.com/microsoft/MixedRealityLearning/tree/development/MRTK3 Tutorials.
If the new MRTK3 samples don't have a relevant fix for your problem, please open a new issue.
Thank you.


running limactl stop failed

lima --version
limactl version 0.4.0

output of limactl ls
➜  ~ limactl ls
NAME       STATUS     SSH                ARCH      DIR
default    Running    <IP_ADDRESS>:60022    x86_64    /Users/fanbingxin/.lima/default

output of limactl --debug stop default
limactl --debug stop default
INFO[0000] Sending SIGINT to hostagent process 14565
ERRO[0000] no such process
INFO[0000] Waiting for the host agent and the qemu processes to shut down
DEBU[0000] received an event                             event="{2021-07-21 21:04:04.079921 +0800 CST {false false false [] 60022}}"
DEBU[0000] received an event                             event="{2021-07-21 21:05:19.355825 +0800 CST {true false false [] 60022}}"
FATA[0180] did not receive an event with the "exiting" status

The QEMU process no longer exists, but Lima thinks the virtual machine is still running.
How to restart Lima instance?
Thank you!

Could you try limactl stop -f and then limactl start?

I didn't notice the - f flag, it works, thank you!


Crashed when placing an electric steel furnace

The mod Factory Levels (0.7.3) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event factory-levels::on_built_entity (ID 6)
Unknown entity name: electric-steel-furnace-level-14
stack traceback:
[C]: in function 'create_entity'
factory-levels/control.lua:387: in function 'upgrade_factory'
factory-levels/control.lua:526: in function 'replace_built_entity'
factory-levels/control.lua:545: in function <factory-levels/control.lua:536>

do you use the mod electric furnaces?

https://mods.factorio.com/mod/Electric_Furnaces_2_0_Zennou
This mod!
I apologize too I should have linked this in the original message.

The mod Factory Levels (0.7.10) caused a non-recoverable error.
Please report this error to the mod author.
Error while running event factory-levels::on_nth_tick(6)
Unknown entity name: electric-stone-furnace-level-1
stack traceback:
[C]: in function 'create_entity'
factory-levels/control.lua:379: in function 'upgrade_factory'
factory-levels/control.lua:422: in function 'replace_machines'
factory-levels/control.lua:471: in function <factory-levels/control.lua:451>

same issue as @Mialunia
when replacing or removing an entity, game crashes with this error.


Staking workflow e2e test

Create new random wallet
Set ETH balance to 100
Set SNX balance to 500
Approve SNX spending
Create user account
Deposit 400 SNX into the system
Delegate 300 SNX into the Spartan Council pool
Undelegate 200 SNX from the Spartan Council pool
Not be able to withdraw because of accountTimeoutWithdraw config
Withdraw 200 SNX (after setting accountTimeoutWithdraw to 0)

Some extra notes on implementation and further work

At the moment in CI we run all the test on the same Anvil. When new test is added will need to reset Anvil state for each test (evm_snapshot / evm_revert).
We are testing against deployed version. Version is taken from toml file. I have seen we do PR with version update (that version may not yet be deployed to the relevant network). May need some input on how to accommodate for the publishing workflow (if it is not going to be somehow fixed by point 3)
Next step for the e2e testing is to upgrade contracts on anvil fork and run e2e tests for that. This will resolve problem from point 2 and also give us understanding if tests are going to fail AFTER deploying.
Running against currently deployed version will happening by schedule on master branch instead of PRs. For PRs we will release on fork an test on fork with latest deployment configs (point 3)

i am not in support of the inclusion of these tests in our workflow for the following reasons:

the tests are all redundant. we have very similar tests (and more!) already in our v3 repo. therefore, wouldn't it be better to update the v3 repo to run fork tests along with our current non-fork tests instead? dont believe a test is redundant? please ask and I can provide a link to the corresponding test in the v3 repo
the original motivation for this PR, to my knowledge, was to verify that configuration changes do not inadvertently lead to dangerous states of the system. for example, shouldn't the first test in this suite be the one raised by @kaleb-keny for example, checking that the c-ratio is above 1.0? or vice versa, checking that a c-ratio change does not trigger every single account in the system to be immediately liquidated
this adds about 1000 lines of additional code that we have to remember/think to maintain on top of all the other stuff it seems like we are barely keeping up with. even if we included it in the repo mandatory and maybe added it to the runsheet, it seems like extremely optimistic thinking to believe that we are actively going to go out and update tests every time before a release
ive said this before but e2e tests are notoriously the last reliable and most difficult to maintain tests. coupled with the fact that these tests are extremely redundant, its likely these tests will be a barrier which has a high noise to signal ratio, making the tests a nuisance we like to ignore instead of a source of help.

as a solution, i think we should consider implementing something more like shadow forking. basically, every time a user intracts with our system, we attempt to run the same transaction on a fork. if the transation fails, that gets added to a report. This gives an excellent picture of what a chance is likely to have in terms of impact on actual transactions on mainnet. This type of system would definitely catch the case of liquidation due to incorrect c-ratio.

These tests are not redundant. They are e2e tests over existing deployment (and potential deployment) that we do not have in v3.

Ok, but the actual test that is being performed, regardless of the environment it is performed, is the same. Why don't we instead update our existing tests to work for this on the v3 repo?

They are testing actual chain deploy and not just the protocol code.

Previous comment. The actual tests are the same as the ones performed on the protocol code deploy, just not on live chain/fork.

They are also very reliable. We had almost zero flakiness over past months in v3ui

I'm also concerned about tests failing because the spec changed (as intended)

Adding extra check to ensure deployment is not breaking things BEFORE changes are deployed is quite crucial. Checking ui after deploy would be too late as everything can be already bricked.

Yes I agree. So we do shadow deployment before the deployment as you say and we gain the insight.

The tests code is intentionally as dumb as possible with zero abstraction beyond single operation utils, so supporting them should not be an issue

Every line of code that we have to maintain is a burden

cannon should not checkout git, diff needs to be embedded into the state. This solves the problem with repo size. But even with current size cannon can checkout only tomls subfolder + chain config. That should eliminate size issue too

Not possible because of the way git protocol works. We can't work by diff no matter what we do

I believe this counters all the points @dbeal-eth and I do believe this PR should be merged.

I have countered your counters I believe

I guess the tricky thing is when we expect the networks to differ, eg. base currently. Not sure how often we could have changes that requires the core LP interactions to fail.. But it would be a challenge if we add more complicated tests.


Feature: Add support for IIS 8 and improve DeployVDirs target

Add support for IIS 8
Refactor DeployVDirs target for simplicity and ease of maintenance
Remove support for legacy VDirList.txt file from BTDF 4.x and prior
This work item was migrated from CodePlex
CodePlex work item ID: '10082'
Assigned to: 'tfabraham'
Vote count: '1'

[UnknownUser@5/4/2013]
Resolved with changeset 72724: Add support for IIS 8 and pre-configured AppPools; drop legacy VDirList.txt; refactor DeployVDirs target (#10067, 10082)

[UnknownUser@5/16/2013]


Replacing cloudprovider-reported hostname

What kind of request is this (question/bug/enhancement/feature request):
bug
Steps to reproduce (least amount of steps as possible):
setup rancher-1.6.26 and check kubelet logs
Result:
kubelet-logs are being spammed with the following (every 10sec):
W0213 19:57:10.335133    3206 setters.go:144] replacing cloudprovider-reported hostname of ranch04.domain.net with overridden hostname of ranch04.domain.net

Other details that may be helpful:
^C
rvg@ranch03:~$ hostname
ranch03
rvg@ranch03:~$ hostname -f
ranch03.domain.net

Environment information

Rancher version (rancher/rancher/rancher/server image tag or shown bottom left in the UI):1.6.26
Installation option (single install/HA): HA

Cluster information

Cluster type (Hosted/Infrastructure Provider/Custom/Imported): custom
Machine type (cloud/VM/metal) and specifications (CPU/memory): metal
Kubernetes version (use kubectl version):

Server Version: version.Info{Major:"1", Minor:"12+", GitVersion:"v1.12.5-rancher1", GitCommit:"00e69cc3ad8d71667493eb05df2445f72feb104e", GitTreeState:"clean", BuildDate:"2019-01-22T04:06:23Z", GoVersion:"go1.10.7", Compiler:"gc", Platform:"linux/amd64"}

Docker version (use docker version):

Client:
 Version:           18.06.1-ce
 API version:       1.38
 Go version:        go1.10.3
 Git commit:        e68fc7a
 Built:             Tue Aug 21 17:24:51 2018
 OS/Arch:           linux/amd64
 Experimental:      false

Server:
 Engine:
  Version:          18.06.1-ce
  API version:      1.38 (minimum version 1.12)
  Go version:       go1.10.3
  Git commit:       e68fc7a
  Built:            Tue Aug 21 17:23:15 2018
  OS/Arch:          linux/amd64
  Experimental:     false

regards,
strowi

I have same problem in Rancher 2.2.2-rc8/RancherOS 1.5.1. docker logs kubelet:
W0410 10:11:05.613585    3930 vsphere.go:589] Failed to patch IP as MAC address "${MAC1}" does not belong to a VMware platform
W0410 10:11:05.614585    3930 vsphere.go:589] Failed to patch IP as MAC address "${MAC2}" does not belong to a VMware platform
W0410 10:11:05.615140    3930 vsphere.go:589] Failed to patch IP as MAC address "${MAC3}" does not belong to a VMware platform
W0410 10:11:06.790583    3930 setters.go:144] replacing cloudprovider-reported hostname of ${HOSTNAME} with overridden hostname of ${HOSTNAME}
W0410 10:11:15.616340    3930 vsphere.go:589] Failed to patch IP as MAC address "${MAC1}" does not belong to a VMware platform
W0410 10:11:15.617162    3930 vsphere.go:589] Failed to patch IP as MAC address "${MAC2}" does not belong to a VMware platform
W0410 10:11:15.617641    3930 vsphere.go:589] Failed to patch IP as MAC address "${MAC3}" does not belong to a VMware platform
W0410 10:11:16.833151    3930 setters.go:144] replacing cloudprovider-reported hostname of ${HOSTNAME} with overridden hostname of ${HOSTNAME}

I'm also seeing this in an Azure VM on an Ubuntu 18.04 machine with docker 18.09. It is single node cluster (all roles) deployed using the custom method with the azure cloud provider enabled and only the default required parameters for the cloud config.

Is there any chance to do something about it? It still affects Rancher 2.3+ clusters

Yes confirming that I am seeing this on Rancher 2.3.5 and k8s 1.15.9.
I see this is in the 1.6 Backlog but what about the 2.3.x backlog. Some clarification would be great on this.

same issue:
Rancher | v2.3.3

Seeing this issue in Rancher v2.3.7, so it's not specific to v1.6.x.

I can see it on v2.5.6.

I am seeing this too. I hope it's harmless.

We've had this error for a few years now and as far as we can tell it is benign (other than pestering the log every 10 seconds indefinitely). It appears to occur when the hostname of the EC2 instance does not match the value of $(curl -s <IP_ADDRESS>/latest/meta-data/local-hostname).


Playback services frozen

I'm submitting a ...

[X] bug report
[ ] feature request
[ ] support request

General information
Playback services are frozen if the skip section is not clicked but closed by alarm.
Addon version used
Last master at today.
Steps to Reproduce

Play any episode, the skip dialog pops up
Don't click, let it get closed by alarm
Stop the episode
Play another episode -> skip dialog won't show, StreamContinuity won't work anymore, any services won't pass _on_tick anymore.

Context (Environment)
Platform independent
Debug log
I added som extra debug code so we can see it better:
once dlg.doModal() in xmldialogsshow_modal_dialog is called, the services won't keep ticking,, it's locked on this instruction until the dialog is clicked. If the dialog is closed by alarm, the service remains frozen.
Search for "_on_tick" in the logs to get it faster. Sorry about the log format, it's over limits.
kodi.zip

it is not beautiful but i think it can go well

No sure it's more a hack than anything, bit at least it works. Thanks.


build: automatically enable module dependencies

@real-or-random

Though what I don't like too much about this approach that it silently enables options, even if explicitly disabled

Oh, I missed that. I don't like that either. And yeah, if we keep it that way we can remove the error checking.

I don't see an straightforward way to error out if dependencies are explicitly disabled. If we fix the configure output with respect to the enabled modules maybe that's not so much of a problem.

I removed the error checking and added two commits that improve the output.

I don't see an straightforward way to error out if dependencies are explicitly disabled. If we fix the configure output with respect to the enabled modules maybe that's not so much of a problem.

Agreed, and PR is an improvement in the end, so we shouldn't hold it up.

@real-or-random  this seems to be a commit id belonging to a different PR :)


Linux support?

This doesn't support Linux because of the AppKit dependency, right?

Oops, that seems to be an issue in the latest master indeed, thanks for reporting!
For reference: Looks like it was introduced here. That new code should be wrapped in #if os(macOS). I will do that and test it later on my linux machine

Hey @rensbreur would you have a branch with these changes I could test? I'm also interested in trying this on linux.
Thanks :)

I've just fixed it so you can use the latest main

I tested it and it worked! thanks :)

Great!


abi files are in CMakeFiles directory not with in wasm files.

In the abigen_test directory when i do:
cmake CMakeList.txt
make
the abi file is in CMakeFiles
CMakeFiles/test.abi

why not in the same directory with wasm files

fixed as of v.1.3.0 use the new add_contract macro.


fix: allow project editors to send patches with the current visibility

Follow up from #483: the issue also appears for the visibility field.
/deploy

You can access the deployment of this PR at https://renku-ci-ds-484.dev.renku.ch

Tearing down the temporary RenkuLab deplyoment for this PR.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>4
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

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
5 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-0.006%) to 90.804%

Files with Coverage Reduction
New Missed Lines
%

components/renku_data_services/base_api/auth.py
1
90.91%

components/renku_data_services/storage/blueprints.py
1
93.18%

components/renku_data_services/crc/blueprints.py
3
92.88%

Totals

Change from base Build<PHONE_NUMBER>7:
-0.006%

Covered Lines:
10862

Relevant Lines:
11962

💛  - Coveralls


Instagram not working (macos)

Checklist

[x] I'm reporting a broken site support
[x] I've verified that I'm running youtube-dl version 2021.04.07
[x] I've checked that all provided URLs are alive and playable in a browser
[x] I've checked that all URLs and arguments with special characters are properly quoted or escaped
[x] I've searched the bugtracker for similar issues including closed ones

Verbose log
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.instagram.com/p/CNnsINknHtb/']
[debug] Encodings: locale UTF-8, fs utf-8, out utf-8, pref UTF-8
[debug] youtube-dl version 2021.04.07
[debug] Git HEAD: 586d25a52
[debug] Python version 3.9.4 (CPython) - macOS-11.2.3-arm64-arm-64bit
[debug] exe versions: none
[debug] Proxy map: {}
[Instagram] CNnsINknHtb: Downloading webpage
ERROR: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update
on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 806, in wrapper
    return func(self, *args, **kwargs)
  File "/opt/homebrew/lib/python3.9/site-packages/youtube_dl/YoutubeDL.py", line 827, in __extract_info
    ie_result = ie.extract(url)
  File "/opt/homebrew/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 534, in extract
    ie_result = self._real_extract(url)
  File "/opt/homebrew/lib/python3.9/site-packages/youtube_dl/extractor/instagram.py", line 240, in _real_extract
    video_url = self._og_search_video_url(webpage, secure=False)
  File "/opt/homebrew/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 1130, in _og_search_video_url
    return self._html_search_regex(regexes, html, name, **kargs)
  File "/opt/homebrew/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 1021, in _html_search_regex
    res = self._search_regex(pattern, string, name, default, fatal, flags, group)
  File "/opt/homebrew/lib/python3.9/site-packages/youtube_dl/extractor/common.py", line 1012, in _search_regex
    raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; see  https://yt-dl.org/update  on how to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

Description

Instagram not working for me, youtube for example works

@dstftw @remitamine
If this helps for testing:
Noticed that for some countries like Sweden, UK,Netherlands, Japan, Russia (tested via a VPN) all instagram links are redirected to main log in page or even throws "allow cookies" popup over the login page in addition. However, under German VPN - all links are shown as regular instagram pages with playable videos and ytdl works flawlessly.. If more testing is needed I'm glad to help. Used ClearVPN for it (not sure if this matters)

@dstftw @remitamine
If this helps for testing:
Noticed that for some countries like Sweden, UK,Netherlands, Japan, Russia (tested via a VPN) all instagram links are redirected to main log in page or even throws "allow cookies" popup over the login page in addition. However, under German VPN - all links are shown as regular instagram pages with playable videos and ytdl works flawlessly.. If more testing is needed I'm glad to help. Used ClearVPN for it (not sure if this matters)

No, using VPNs get you redirect to login.

@dstftw @remitamine
If this helps for testing:
Noticed that for some countries like Sweden, UK,Netherlands, Japan, Russia (tested via a VPN) all instagram links are redirected to main log in page or even throws "allow cookies" popup over the login page in addition. However, under German VPN - all links are shown as regular instagram pages with playable videos and ytdl works flawlessly.. If more testing is needed I'm glad to help. Used ClearVPN for it (not sure if this matters)

No, using VPNs get you redirect to login.

Thanks for clarification. Did not know this was the case for instagram. Thought it'd be better to report things like that, rather than keeping silent about it. Cheers

I had this issue on one machine yet it downloaded correctly on a different machine  (same network same ig creds etc...)
Hope this helps someone....
On the machine that was NOT working I tried:
youtube-dl.py --dump-pages https://www.instagram.com/p/CNnsINknHtb/
and discovered that youtube-dl was being sent to: https://www.instagram.com/accounts/login/
On that machine I had logged into IG and save pw etc (with both chrome and IE) but youtube-dl was still being directed to login.
From chrome I exported my Instagram Cookies  the "Get cookies.txt" chrome plugin and then forced Youtube-dl to use that cookie text file:
youtube-dl.py --cookies instagram.com_cookies.txt https://www.instagram.com/p/CNnsINknHtb/
so now I am able to download the video with --cookies file...but I am still  NOT able to download without the cookies file.
Somehow site cookies are being read on one machine and not the other?...or the cookies are corrupt somehow?
Here are the back to back attempts on the same PC:
`
C:\Temp>youtube-dl.py -v --cookies instagram.com_cookies.txt https://www.instagram.com/p/CNnsINknHtb/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--cookies', 'instagram.com_cookies.txt', 'https://www.instagram.com/p/CNnsINknHtb/']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2021.04.07
[debug] Python version 3.6.6 (CPython) - Windows-10-10.0.14393-SP0
[debug] exe versions: ffmpeg 4.3.2-2021-02-02-full_build-www.gyan.dev, ffprobe 4.3.2-2021-02-02-full_build-www.gyan.dev, rtmpdump 2.4
[debug] Proxy map: {}
[Instagram] CNnsINknHtb: Downloading webpage
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on 'https://instagram.fybz2-1.fna.fbcdn.net/v/t50.2886-16/10000000_454373325624009_1815201162850549139_n.mp4?efg=eyJ2ZW5jb2RlX3RhZyI6InZ0c192b2RfdXJsZ2VuLjcyMC5pZ3R2LmRlZmF1bHQiLCJxZV9ncm91cHMiOiJbXCJpZ193ZWJfZGVsaXZlcnlfdnRzX290ZlwiXSJ9&_nc_ht=instagram.fybz2-1.fna.fbcdn.net&_nc_cat=109&_nc_ohc=qUaLpM5of1UAX9f7Mq3&edm=AABBvjUAAAAA&vs=17873921561294650_2741068888&_nc_vs=HBksFQAYJEdJQ1dtQURKVXFzSVFKMEJBSk05bFJ2WDR6QVpicUNCQUFBRhUAAsgBABUAGCRHSUNXbUFEMUI2VkNxUFVBQUtfYV8wbnhmT05OYnFDQkFBQUYVAgLIAQAoABgAGwGIB3VzZV9vaWwBMRUAACb0kerllI%2FAPxUCKAJDMywXQKOmBaHKwIMYEmRhc2hfYmFzZWxpbmVfMV92MREAdewHAA%3D%3D&_nc_rid=f59babb279&ccb=7-4&oe=607AB3FB&oh=322e893b99d6a96241e5e956c7904107&_nc_sid=83d603'
[download] Destination: @silviacongost Dependencia emocional.-CNnsINknHtb.mp4
[download] 100% of 402.37MiB in 00:05
C:\Temp>youtube-dl.py -v https://www.instagram.com/p/CNnsINknHtb/
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', 'https://www.instagram.com/p/CNnsINknHtb/']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] youtube-dl version 2021.04.07
[debug] Python version 3.6.6 (CPython) - Windows-10-10.0.14393-SP0
[debug] exe versions: ffmpeg 4.3.2-2021-02-02-full_build-www.gyan.dev, ffprobe 4.3.2-2021-02-02-full_build-www.gyan.dev, rtmpdump 2.4
[debug] Proxy map: {}
[Instagram] CNnsINknHtb: Downloading webpage
ERROR: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
File "C:\TRANSMOGRIFIER\youtube-dl.py\youtube_dl\YoutubeDL.py", line 806, in wrapper
return func(self, *args, **kwargs)
File "C:\TRANSMOGRIFIER\youtube-dl.py\youtube_dl\YoutubeDL.py", line 827, in __extract_info
ie_result = ie.extract(url)
File "C:\TRANSMOGRIFIER\youtube-dl.py\youtube_dl\extractor\common.py", line 534, in extract
ie_result = self._real_extract(url)
File "C:\TRANSMOGRIFIER\youtube-dl.py\youtube_dl\extractor\instagram.py", line 240, in _real_extract
video_url = self._og_search_video_url(webpage, secure=False)
File "C:\TRANSMOGRIFIER\youtube-dl.py\youtube_dl\extractor\common.py", line 1130, in _og_search_video_url
return self._html_search_regex(regexes, html, name, **kargs)
File "C:\TRANSMOGRIFIER\youtube-dl.py\youtube_dl\extractor\common.py", line 1021, in _html_search_regex
res = self._search_regex(pattern, string, name, default, fatal, flags, group)
File "C:\TRANSMOGRIFIER\youtube-dl.py\youtube_dl\extractor\common.py", line 1012, in _search_regex
raise RegexNotFoundError('Unable to extract %s' % _name)
youtube_dl.utils.RegexNotFoundError: Unable to extract video url; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
`

@RingoTheDog Are these on the same network?
I tested accessing to IG without cookies and proxies in FF (Private Window mode), but I was also redirected to login page. Anything browser can't do also applies to youtube-dl.


Listview keep cache render if there is a TextField in the screen

Steps to Reproduce

A simple application with filter by type functional.
In the UI, there is a listview, a textfield and some filter button.
After I change filter, the list view display wrong (use previous frame render)
Expected results:
The listview must render normally.
Actual results:
The listview render is cached. I have to touch and then scroll, then the new data will be displayed.
Notes:

This bug is hard to reproduce on debug mode or on an android emulator.
Easier to reproduce if run in profiler/release mode on a real device.
This bug also can't reproduce if the TextField is got focused (the cursor blink in the TextField).

It also can't reproduce if I use a recorder tool (to record video).
I feel that flutter is missing rendering one frame.
It looks like the text field is consumed by the render last frame of the listview.
https://user-images.githubusercontent.com/6185205/191405866-483752b6-5df8-42cd-a6d1-b84c2159f0e6.mp4

Code sample

import 'package:flutter/material.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key, required this.title});

  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

enum Type {
  all,
  a,
  b;
}

class Item {
  const Item({
    required this.name,
    required this.type,
  });

  final String name;
  final Type type;

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is Item &&
          runtimeType == other.runtimeType &&
          name == other.name &&
          type == other.type;

  @override
  int get hashCode => name.hashCode ^ type.hashCode;
}

class _MyHomePageState extends State<MyHomePage> {
  static const _allItems = <Item>[
    Item(name: "Type b 1", type: Type.b),
    Item(name: "Type a 1", type: Type.a),
    Item(name: "Type a 2", type: Type.a),
    Item(name: "Type a 3", type: Type.a),
    Item(name: "Type a 4", type: Type.a),
    Item(name: "Type a 5", type: Type.a),
    Item(name: "Type a 6", type: Type.a),
    Item(name: "Type a 7", type: Type.a),
    Item(name: "Type a 8", type: Type.a),
    Item(name: "Type a 9", type: Type.a),
    Item(name: "Type a 10", type: Type.a),
    Item(name: "Type a 11", type: Type.a),
  ];

  var _items = <Item>[];
  var _type = Type.all;

  List<Item> _filterBy(Type type) {
    return _allItems
        .where((element) => type == Type.all || type == element.type)
        .toList();
  }

  void _onChangeFilter(Type type) {
    setState(() {
      _type = type;
      final newItems = _filterBy(type);
      _items = newItems;
    });
  }

  @override
  void initState() {
    super.initState();
    setState(() {
      _onChangeFilter(Type.all);
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: SizedBox.expand(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const TextField(),
            Row(
              mainAxisAlignment: MainAxisAlignment.center,
              children: [
                for (final type in Type.values) ...[
                  TextButton(
                      onPressed: () {
                        _onChangeFilter(type);
                      },
                      child:
                          Text("Type ${type.name} ${type == _type ? "x" : ""}"))
                ]
              ],
            ),
            Expanded(
              child: ListView.builder(
                itemBuilder: (context, index) {
                  final item = _items[index];
                  return Material(
                    color: Colors.red,
                    child: ListTile(
                      onTap: () {},
                      title: Text(item.name),
                      subtitle: Text(item.type.name),
                    ),
                  );
                },
                itemCount: _items.length,
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Logs

$ flutter doctor -v
[✓] Flutter (Channel stable, 3.3.2, on Microsoft Windows [Version 10.0.22000.978], locale en-US)
    • Flutter version 3.3.2 on channel stable at C:\Users\admin\fvm\versions\3.3.2
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision e3c29ec00c (7 days ago), 2022-09-14 08:46:55 -0500
    • Engine revision a4ff2c53d8
    • Dart version 2.18.1
    • DevTools version 2.15.0

[!] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
    • Android SDK at C:\Users\admin\AppData\Local\Android\sdk
    ✗ cmdline-tools component is missing
      Run `path/to/sdkmanager --install "cmdline-tools;latest"`
      See https://developer.android.com/studio/command-line for more details.
    ✗ Android license status unknown.
      Run `flutter doctor --android-licenses` to accept the SDK licenses.
      See https://flutter.dev/docs/get-started/install/windows#android-setup for more details.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✗] Visual Studio - develop for Windows
    ✗ Visual Studio not installed; this is necessary for Windows development.
      Download at https://visualstudio.microsoft.com/downloads/.
      Please install the "Desktop development with C++" workload, including all of its default components

[✓] Android Studio (version 2021.2)
    • Android Studio at C:\Users\admin\AppData\Local\JetBrains\Toolbox\apps\AndroidStudio\ch-0\212.5712.43.2112.8815526
    • Flutter plugin version 70.0.2
    • Dart plugin version 212.5744
    • Java version OpenJDK Runtime Environment (build 11.0.12+7-b1504.28-7817840)

[✓] IntelliJ IDEA Ultimate Edition (version 2022.2)
    • IntelliJ at C:\Users\admin\AppData\Local\JetBrains\Toolbox\apps\IDEA-U\ch-0\222.3739.54
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart

[✓] VS Code (version 1.71.2)
    • VS Code at C:\Users\admin\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.48.0

[✓] Connected device (4 available)
    • SM N960F (mobile) • 2b2a0538133f7ece • android-arm64  • Android 10 (API 29)
    • Windows (desktop) • windows          • windows-x64    • Microsoft Windows [Version 10.0.22000.978]
    • Chrome (web)      • chrome           • web-javascript • Google Chrome 105.0.5195.127
    • Edge (web)        • edge             • web-javascript • Microsoft Edge 105.0.1343.33

[✓] HTTP Host Availability
    • All required HTTP hosts are available

! Doctor found issues in 2 categories.

Hi @quangson91
This issue doesn't seem to describe a bug or a feature request. Please see https://flutter.dev/community for resources and asking questions like this,
you may also get some help if you post it on Stack Overflow and if you need help with your code, please see https://www.reddit.com/r/flutterhelp/
Closing, as this isn't an issue with Flutter itself. If you disagree, please write in the comments and I will reopen it.
Thank you


Highlight triggering ratio - near target stake but in need of liquidity

mark for triggering ratio / where the auction trigger is
Its just Market.Liquidity.Targetstake.Triggering.Ratio
Network param (currently 0.7) so all markets will have same value.
target stake x triggering ratio = auction point

We will definitely want this on the healthbar at some point ... but until we put more realistic values for target stake in it wont matter.


Handle the update of SSO resource

Update the proxy configuration when the SSO resource is changed.

/remove-lifecycle stale

/remove-lifecycle rotten


Allow declaration of target platforms for Java libraries

Support the declaration of target platforms for a Java Library:
targetPlatforms {
   java7
   java8
}

This story should discuss the DSL, but also the generation of the variants and what happens if no target platform is defined.

Speeding up the closing


invalid syntax (keepass_http_password.py, line 121)"}

Hi Andre!
I wanted to try your keepass_http_password.py but failing every single time.
# workstation.yaml
---
#############################
- name: Workstation
  hosts: workstation
  gather_facts: false
  remote_user: steffen
  vars:
    #- _ansible_become_pass: "{{ lookup('keepass_http_password', 'url=ansible://linux-user login=foo') }}"
    #- _ansible_become_pass: "{{ lookup('keepass_http_password', 'url=https://linux-user login=foo') }}"
    #- _ansible_become_pass: "{{ lookup('keepass_http_password', 'ansible://linux-user login=foo') }}"
    - _ansible_become_pass: "{{ lookup('keepass_http_password', 'https://linux-user login=foo') }}"
  tasks:
#############################

  - set_fact:
      ansible_become_pass: "{{ ansible_become_pass | default(_ansible_become_pass) | default(omit) }}"

  - name: create bla
    become: true
    file:
     path: /etc/bla

I've tried all 4 syntax-styles you see at vars- but get the below error every single time.
steffen@Dell:~/ansible/workstation$ ansible-playbook  workstation.yaml
/home/steffen/.local/lib/python2.7/site-packages/ansible/parsing/vault/__init__.py:44: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
  from cryptography.exceptions import InvalidSignature

PLAY [Workstation] ***********************************************************************************************************

TASK [set_fact] **************************************************************************************************************
fatal: [localhost]: FAILED! => {"msg": "An unhandled exception occurred while templating '{{ lookup('keepass_http_password', 'https://linux-user login=foo') }}'. Error was a <type 'exceptions.SyntaxError'>, original message: invalid syntax (keepass_http_password.py, line 121)"}

PLAY RECAP *******************************************************************************************************************
localhost                  : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0

Do you have a hint for me?

Hi, the plugin is written with only Python 3 in mind. Python 2 is not supported. You can tell Ansible to use a specific python executable by defining the variable ansible_python_interpreter in your inventory, e.g.:
as ini format:
# for all your hosts
[all:vars]
ansible_python_interpreter=/usr/bin/python3

[all]
# or just for a single host
some_host  ansible_python_interpreter=/usr/bin/python3

Running the plugin on Windows hosts with WSL requires some more settings. Maybe add some notes on that topic.


kong nginx-ingress not support http2 upstream

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
we use kong-nginx-ingress as gateway, and we have http2 server, can kong support http2 protocol with upstream http2 servers ?
kong docs supports backend protocols only for http/https/grpcs/grpc/tcp/tls, see docs in https://docs.konghq.com/kubernetes-ingress-controller/latest/references/annotations/#konghqcomprotocols
we tests client use http2 , and found kong can handle http2 ,but kong proxy url to upstream server with http1.1
this is a trafficecapture on serversides:

client side http2 request
$ curl -0 --http2 http://nginx/yevents/v1/topic/broker.invest_plan/events -X POST --header "Content-Type: application/json" -d '[{xxxxx}]' -vv
Note: Unnecessary use of -X or --request, POST is already inferred.

Trying <IP_ADDRESS>...
TCP_NODELAY set
Connected to nginx (<IP_ADDRESS>) port 80 (#0)
POST /yevents/v1/topic/broker.invest_plan/events HTTP/1.1
Host: nginx
User-Agent: curl/7.58.0
Accept: /
Connection: Upgrade, HTTP2-Settings
Upgrade: h2c
HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
Content-Type: application/json
Content-Length: 704

upload completely sent off: 704 out of 704 bytes
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=utf-8
< Content-Length: 750
< Connection: keep-alive
< Date: Sat, 07 May 2022 05:02:43 GMT
< X-Kong-Upstream-Latency: 21
< X-Kong-Proxy-Latency: 1
< Via: kong/2.4.1
<

can kong support http2 upstream ? and how ? thanks
Expected Behavior
expected kong-nginx-ingress-controller can proxy the same http2 request to http2 server
Steps To Reproduce
No response
Kong Ingress Controller version
kubernetes-ingress-controller:1.3
kong:2.4.1

Kubernetes version
kubernetes  1.20 / 1.18

Anything else?
No response

Thanks for your question @ly123-liu.
NGinx (the underlying technology behind Kong Gateway) does not support HTTP2 for upstreams unless specifically for GRPC as the community has previously decided that there wasn't a reason to do so.
Here are some related articles related to this decision:

https://trac.nginx.org/nginx/ticket/923
https://www.nginx.com/blog/http2-module-nginx/#QandA

Let us know if this helps and if you have any further questions or comments on this issue.


Empty enums

After Wordpress 4.7 upgrade empty enums appeared into template POST parameters in several enpoints (Page, Post):
e.g.:
{
  "name":"template",
  "type":"string",
  "in":"formData",
  "description":"Teematiedosto joka n\u00e4ytt\u00e4\u00e4 kohteen.",
  "enum":[
    ""
  ]
}

Is that by design I wonder?
I see plenty of other template variables that have an enum list...
I'm not sure what should be here though?

I have also come across this issue. Also I my swagger UI would not display this because of null values. I have written a small fix, maybe you want to add this.
`if($prop['enum']){
if($prop['enum'][0] == ""){
if(count($prop['enum']) > 1){
array_shift($prop['enum']);
}else{
$prop['enum'][0] = "NONE";
}
};
}
		if(array_key_exists('default',$prop) && $prop['default'] == null){
			unset($prop['default']);
		}`

I haven't coded PHP for 15 years, so please ignore any rookie mistakes I might have made.


Courses always need to display the semester

E.g., in the path to enrollment, it says 61A but not which semester. I think it would be easy to enroll a student in the wrong offering accidentally.

Fixed in v3. v2 is no longer being maintained.


create release tags

Can you tag the releases going forward?
For example, this  commit has changes for version upgrade 1.9.2.

Hi @KosToZyB. From now on we will regularly publish new semver releases.
v1.9.4 was just released.


feat(deps): Unblock the version of Angular to >= 2.3

This includes using a private API not published.
Also added a SHA option when running e2e to install a SHA of Angular. This is the first 7 digits of an angular SHA that is on master.

lgtm with a few comments

Thanks a lot @vicb !


[bug] failed compiling in docker container

I wrote a simple unit test and I found that the test goes well on bare-metal, but fails compiling in container.
To make sure I have available GPUs in container:
$ echo $NVIDIA_VISIBLE_DEVICES
GPU-4b41ce77-8c75-e9e7-b631-36b3c0d52c51,GPU-40bada99-59cd-67b6-9b77-724f00f0222d

$ nvidia-smi
Mon Feb  1 10:18:53 2021
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 418.39       Driver Version: 418.39       CUDA Version: 10.1     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|===============================+======================+======================|
|   0  Tesla V100-SXM2...  Off  | 00000000:00:09.0 Off |                    0 |
| N/A   41C    P0    43W / 300W |      0MiB / 32480MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
|   1  Tesla V100-SXM2...  Off  | 00000000:00:0A.0 Off |                    0 |
| N/A   41C    P0    45W / 300W |      0MiB / 32480MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID   Type   Process name                             Usage      |
|=============================================================================|
|  No running processes found                                                 |
+-----------------------------------------------------------------------------+

$ ll /dev/nvidia*
crw-rw-rw- 1 root root 195,   4 Jan 14 19:36 /dev/nvidia4
crw-rw-rw- 1 root root 195,   5 Jan 14 19:36 /dev/nvidia5
crw-rw-rw- 1 root root 195, 255 Jan 14 19:36 /dev/nvidiactl
crw-rw-rw- 1 root root 233,   0 Jan 14 19:36 /dev/nvidia-uvm
crw-rw-rw- 1 root root 233,   1 Jan 14 19:36 /dev/nvidia-uvm-tools

When running the test in container, it reports:

$ go test ./pkg/util
github.com/NVIDIA/go-nvml/pkg/nvml
../.go/pkg/mod/github.com/!n!v!i!d!i!a/go-nvml@v0.0.0-20201208210537-1c123dad9d48/pkg/nvml/nvml.go:282:16: could not determine kind of name for C.nvmlAffinityScope_t
../.go/pkg/mod/github.com/!n!v!i!d!i!a/go-nvml@v0.0.0-20201208210537-1c123dad9d48/pkg/nvml/nvml.go:1936:16: could not determine kind of name for C.nvmlBlacklistDeviceInfo_t
../.go/pkg/mod/github.com/!n!v!i!d!i!a/go-nvml@v0.0.0-20201208210537-1c123dad9d48/pkg/nvml/nvml.go:2075:11: could not determine kind of name for C.nvmlComputeInstanceDestroy
../.go/pkg/mod/github.com/!n!v!i!d!i!a/go-nvml@v0.0.0-20201208210537-1c123dad9d48/pkg/nvml/nvml.go:2105:11: could not determine kind of name for C.nvmlComputeInstanceGetInfo
../.go/pkg/mod/github.com/!n!v!i!d!i!a/go-nvml@v0.0.0-20201208210537-1c123dad9d48/pkg/nvml/nvml.go:2104:16: could not determine kind of name for C.nvmlComputeInstanceInfo_t
../.go/pkg/mod/github.com/!n!v!i!d!i!a/go-nvml@v0.0.0-20201208210537-1c123dad9d48/pkg/nvml/nvml.go:2046:16: could not determine kind of name for C.nvmlComputeInstanceProfileInfo_t
../.go/pkg/mod/github.com/!n!v!i!d!i!a/go-nvml@v0.0.0-20201208210537-1c123dad9d48/pkg/nvml/nvml.go:2066:27: could not determine kind of name for C.nvmlComputeInstance_t
../.go/pkg/mod/github.com/!n!v!i!d!i!a/go-nvml@v0.0.0-20201208210537-1c123dad9d48/pkg/nvml/nvml.go:1475:19: could not determine kind of name for C.nvmlDetachGpuState_t
...(the same as above, a lot of error messages)

I guess it's due to either missing libs when pass-through GPU to container, or the go-binding itself has some problems. As a dev-ops engineer, I'm not fimiliar with GPU, so would you help explain why I cannot call the libs in container, thx!
The source code of my test:
func TestGetGPUStatus(t *testing.T) {
	ret := nvml.Init()
	if ret != nvml.SUCCESS {
		t.Error(ret.Error())
	}
	defer func() {
		if ret := nvml.Shutdown(); ret != nvml.SUCCESS {
			t.Error(ret.Error())
		}
	}()

	n, ret := nvml.DeviceGetCount()
	if ret != nvml.SUCCESS {
		t.Error(ret.Error())
	}
	for i := 0; i < n; i++ {
		dev, ret := nvml.DeviceGetHandleByIndex(i)
		if ret != nvml.SUCCESS {
			t.Error(ret.Error())
		}
		_, ret = dev.GetUUID()
		if ret != nvml.SUCCESS {
			t.Error(ret.Error())
		}

		_, ret = dev.GetName()
		if ret != nvml.SUCCESS {
			t.Error(ret.Error())
		}

		_, ret = dev.GetMemoryInfo()
		if ret != nvml.SUCCESS {
			t.Error(ret.Error())
		}

		_, ret = dev.GetUtilizationRates()
		if ret != nvml.SUCCESS {
			t.Error(ret.Error())
		}
	}
}

Which container are you using and how are you launching it? NVML needs access to the devices and the drivers which need to be present in the running container. Depending on you setup there are different ways to achieve this. Are you able to launch GPU-enabled containers in general?

This looks as though the C header is not getting picked up during compilation. How did you run go mod vendor to pull the package into a vendor folder, or just go mod to pull it into your host level GOPATH?
It's hard to tell with the strange path of:
../.go/pkg/mod/github.com/!n!v!i!d!i!a/go-nvml/...

In any case, do you see a nvml.h file in the /pkg/nvml/ folder? It that's missing, that would explain this.
That said, it would be strange if it's missing, since I have used go mod many times with go-nvml without problems. MAybe an older version of go mod strips out C header files?

Which container are you using and how are you launching it? NVML needs access to the devices and the drivers which need to be present in the running container. Depending on you setup there are different ways to achieve this. Are you able to launch GPU-enabled containers in general?

I'm using nvidia-container-runtime. I started the container by kubernetes(default runtime is nv-container-runtime) by specifying resource: nvidia.com/gpu: 2.
All the AI workloads, such as pytorch jobs... work well. But I'm not able to compile this code.
I guess the drivers are properly mounted into the container, nvidia-smi works and see below output:
$ ll /dev/nvidia*
crw-rw-rw- 1 root root 195,   4 Jan 14 19:36 /dev/nvidia4
crw-rw-rw- 1 root root 195,   5 Jan 14 19:36 /dev/nvidia5
crw-rw-rw- 1 root root 195, 255 Jan 14 19:36 /dev/nvidiactl
crw-rw-rw- 1 root root 233,   0 Jan 14 19:36 /dev/nvidia-uvm
crw-rw-rw- 1 root root 233,   1 Jan 14 19:36 /dev/nvidia-uvm-tools

Or any other ways to verify the driver capability?

This looks as though the C header is not getting picked up during compilation. How did you run go mod vendor to pull the package into a vendor folder, or just go mod to pull it into your host level GOPATH?
It's hard to tell with the strange path of:
../.go/pkg/mod/github.com/!n!v!i!d!i!a/go-nvml/...

In any case, do you see a nvml.h file in the /pkg/nvml/ folder? It that's missing, that would explain this.
That said, it would be strange if it's missing, since I have used go mod many times with go-nvml without problems. MAybe an older version of go mod strips out C header files?

Nothing obvious jumps out as to why it wouldn't work. Can you try vendoring it in your build environment and see if that helps?

➜  go-nvml git:(master) ✗ make test
c-for-go -out /home/aerok/workspace/go-nvml/pkg /home/aerok/workspace/go-nvml/gen/nvml/nvml.yml
  processing /home/aerok/workspace/go-nvml/gen/nvml/nvml.yml done.
cp /home/aerok/workspace/go-nvml/gen/nvml/*.go /home/aerok/workspace/go-nvml/pkg/nvml
cd /home/aerok/workspace/go-nvml/pkg/nvml; \
	go tool cgo -godefs types.go > types_gen.go; \
	go fmt types_gen.go; \
cd -> /dev/null
types_gen.go
rm -rf /home/aerok/workspace/go-nvml/pkg/nvml/types.go /home/aerok/workspace/go-nvml/pkg/nvml/_obj
grep -l -R "// WARNING: This file has automatically been generated on" pkg \
	| xargs sed -i -E 's#// WARNING: This file has automatically been generated on.*$#// WARNING: THIS FILE WAS AUTOMATICALLY GENERATED.#g'
grep -l -RE "// (.*) nvml/nvml.h:[0-9]+" pkg \
	| xargs sed -i -E 's#// (.*) nvml/nvml.h:[0-9]+$#// \1 nvml/nvml.h#g'
cd /home/aerok/workspace/go-nvml/pkg/nvml; \
	go test -v .; \
cd -> /dev/null
# github.com/NVIDIA/go-nvml/pkg/nvml [github.com/NVIDIA/go-nvml/pkg/nvml.test]
./device.go:25:29: undefined: Return
./device.go:32:49: undefined: Return
./device.go:39:54: undefined: Return
./device.go:46:50: undefined: Return
./device.go:53:58: undefined: Return
./device.go:60:44: undefined: Return
./device.go:66:41: undefined: Return
./device.go:71:37: undefined: BrandType
./device.go:71:48: undefined: Return
./types_gen.go:9:10: undefined: _Ctype_struct_nvmlDevice_st
./device.go:71:48: too many errors
FAIL	github.com/NVIDIA/go-nvml/pkg/nvml [build failed]
FAIL
➜  go-nvml git:(master) ✗ tree .
.
├── CONTRIBUTING.md
├── Dockerfile
├── gen
│   └── nvml
│       ├── cgo_helpers.go
│       ├── const_gen.go
│       ├── device.go
│       ├── event_set.go
│       ├── init.go
│       ├── nvml.h
│       ├── nvml_test.go
│       ├── nvml.yml
│       ├── return.go
│       ├── system.go
│       ├── unit.go
│       └── vgpu.go
├── go.mod
├── go.sum
├── LICENSE
├── Makefile
├── pkg
│   ├── dl
│   │   ├── dl.go
│   │   └── dl_test.go
│   └── nvml
│       ├── cgo_helpers.go
│       ├── cgo_helpers.h
│       ├── const_gen.go
│       ├── const.go
│       ├── device.go
│       ├── doc.go
│       ├── event_set.go
│       ├── init.go
│       ├── nvml.go
│       ├── nvml.h
│       ├── nvml_test.go
│       ├── return.go
│       ├── system.go
│       ├── types_gen.go
│       ├── unit.go
│       └── vgpu.go
└── README.md

5 directories, 37 files

@aerok your error seems different to the one originally reported in this issue. Are you also seeing this failure in a container?  If not could you please create a separate issue and provide additional information on your development environment.

@elezar @klueska  It's frustrating that this go-binding does not work in container. I found another one, https://github.com/mindprince/gonvml, that works. But that one provides limited API and does not cover all of my demands. Sadly I'm not fimiliar with CGo so I can't figure out the differences.
Do you have any plan on supporting compiling go-nvml in container? Container is cloud-computing engineer's oxygen, many of us are using container everywhere: develop, test, debug, build, release... To use this project, we have to do it on bare-metal, and it is so frustrating...

@xial-thu we use the bindings in packages that are built in containers on a regular basis and have not come across this behaviour ourselves. It should be noted that we always vendor in the dependencies and use up to date go versions. This could be the difference.
If you are able to provide a sample Dockerfile that reproduces the issues that you are seeing we could debug this further. We will also look at the project you linked and see if there is anything apparent that we are missing on our end.

@xial-thu we use the bindings in packages that are built in containers on a regular basis and have not come across this behaviour ourselves. It should be noted that we always vendor in the dependencies and use up to date go versions. This could be the difference.
If you are able to provide a sample Dockerfile that reproduces the issues that you are seeing we could debug this further. We will also look at the project you linked and see if there is anything apparent that we are missing on our end.

Several months ago, I do met the problem, but now I cannot reproduce it now. It works well... Same code, same go mod (not vendor), same nvidia driver and gpu product, the only difference is that my pod shifts to another host.
If I reproduce this issue some day, I'll update this issue. Now please close this issue.
BTW, why do you always vendor? Is there any difference between go module and vendor?

Thanks for the update. I'll close the issue then.
With regards to:

BTW, why do you always vendor? Is there any difference between go module and vendor?

This means that our dependencies are all checked into version control and don't need to be pulled in when building (e.g. in containers). This makes the builds of container images, for example, a little bit quicker and means that we can more easily build on systems without public internet access directly from the repo.
In theory, however, there should't be a significant difference in behaviour when pulling dependencies in at build time (as I believe these are generally cached anyway).


Adds a few more unit tests

This PR

Completes the Login form tests
Creates the ResetForm tests and modifies the ResetForm class
Creates the tests for the OpenCFP/Http/Form/Entity/Login class
Creates the tests for the OpenCFP/Http/Form/Entity/Profile class
Creates the tests for the OpenCFP/Http/Form/Entity/User class
Modifies the TalkForm test class

Follows N/A.
Related to N/A.
Fixes N/A.

Thanks @andrewscaya -- I removed a test that we don't need for now (testing the Talk form)


Change Test FCS_CKM.6

Change to address issue https://github.com/DSC-iTC/cPP/issues/235

Would it be useful to add some discussion about the intent here? I do get the point about the testing, but I had figured that it would be added as another possible method to test, such that the tests would be conditional to the implementation. This may be removing too much detail to add support for cases where you can't get to the key in the first place.

Discussion results:

Leave current test 1, but make conditional to implementations where keys are directly accessible
take proposed test 1 and make conditional to implementations where keys are referenced
Force choice of one of the test types (grouping test 1 and test 2 together for the selection)

Merge at the moment while being aware that updated requirements may come from @JDavid-Thompson and the Crypto WG

I don’t know what the objections to my version of FCS_CKM.6 are, other asserting that it is not necessary.

Do you not agree with my interpretation of FDP_RIP.1?
Do you agree with that, but think that wear-leveled flash meets that interpretation?

-Dave
From: Brian Wood @.>
Sent: Friday, March 15, 2024 12:39 PM
To: DSC-iTC/cPP @.>
Cc: J David D Thompson @.>; Mention @.>
Subject: Re: [DSC-iTC/cPP] Change Test FCS_CKM.6 (PR #251)
Discussion results:

Leave current test 1, but make conditional to implementations where keys are directly accessible
take proposed test 1 and make conditional to implementations where keys are referenced
Force choice of one of the test types (grouping test 1 and test 2 together for the selection)

Merge at the moment while being aware that updated requirements may come from @JDavid-Thompsonhttps://github.com/JDavid-Thompson and the Crypto WG
—
Reply to this email directly, view it on GitHubhttps://github.com/DSC-iTC/cPP/pull/251#issuecomment-2000040169, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFSTVCP2XFDYKE53VLO6SMLYYMP2RAVCNFSM6AAAAABEGEYFLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBQGA2DAMJWHE.
You are receiving this because you were mentioned.Message ID: @.***>

Brian,
OK.  Thanks for the clarification.
-Dave
From: Brian Wood @.>
Sent: Friday, March 15, 2024 1:08 PM
To: DSC-iTC/cPP @.>
Cc: J David D Thompson @.>; Mention @.>
Subject: Re: [DSC-iTC/cPP] Change Test FCS_CKM.6 (PR #251)
@JDavid-Thompsonhttps://github.com/JDavid-Thompson these specific changes are different than yours and serve a different intent. Once we have yours agreed to from your pull requests, we will look at how to merge the changes. The intent here is specifically for when the key itself is not directly accessible but is called by some sort of reference, so you can't dump the key to check that it is deleted, as you never get direct access to said key. As such, the expectation that you can directly verify that it is removed is not possible, but if the reference is reused, you can verify that the value reported by the reference changes.
How this would interact with your proposed change was not under discussion, only that we would have to reconcile them once they are both approved (which hasn't happened yet)
—
Reply to this email directly, view it on GitHubhttps://github.com/DSC-iTC/cPP/pull/251#issuecomment-2000089672, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BFSTVCKYLXWVHU223GIOAGTYYMTH7AVCNFSM6AAAAABEGEYFLOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBQGA4DSNRXGI.
You are receiving this because you were mentioned.Message ID: @.***>

I don't believe the existing tests should be changed this much to address #235. I opened a new PR #292 with smaller changes.


Add MLRun Serving: Index + External Add-Ons

-Add MLRun serving description under Homepage's Serving (_index)

Add KF site under External Add-Ons, Serving

/assign @animeshsingh

/assign @RFMVasconcelos

@RFMVasconcelos Thank you for your review. I have made some changes to the content in mlrun.md that should reflect your recommendations. Please let me know if there is anything else I should amend.

@alexiguazio Thank you for the work on this PR.
/lgtm
/approve

Thank you :))


Add hamburger button

Added a hamburger icon button. Animations are included in CSS, but require JS to toggle between hamburger (default) state and active state. Active states include a cross (X), minus sign, left arrow, and right arrow.

Issue: #765

I've removed the variant hamburger icons, but my checks aren't passing and I'm unsure of how to fix that.

Great work thank you!
@all-contributors please add @senguyen1011 for code and idea


cmd: Disable local node routes when endpoint routes are enabled

The command-line description of enable-endpoint-routes states: "Use per endpoint routes instead of routing via cilium_host". This description however has not been true: Even with per-endpoint routes enabled, Cilium would still install the local node route unless explicitly disabled.
Not only is the local node route (which installs a single route based on the local pod CIDR) redundant to per-endpoint routes (which installs a route per endpoint), it also does not work on IPAM modes that do not have a local pod CIDR, such as ENI or Azure.
On Azure, GKE, and in the MultiPool CI, we already disabled the local node route explicitly when enabling per-endpoint routes, but in many other cases (ENI, as well as most of our CI (see
github/actions/cilium-config)) we forgot to disable local node routes explicitly when per-endpoint routes are enabled. Therefore, this commit improves UX by automatically disabling the local node route if per-endpoint routes are enabled. This approach was discussed at the Cilium Community meeting on June 7, 2023.
As an alternative to this change, we could also introduce a new tri-mode flag (i.e. "per-endpoint routes", "local node route", "none"), but such a change might introduce unnecessary churn if we decide to remove the local node routes further down the road.

/test

@learnitall I've updated the highlighted section as follows:
diff --git a/Documentation/network/concepts/routing.rst b/Documentation/network/concepts/routing.rst
index 002407eaa24d..1e912248d477 100644
--- a/Documentation/network/concepts/routing.rst
+++ b/Documentation/network/concepts/routing.rst
@@ -296,7 +296,7 @@ The following configuration options must be set to run the datapath on GKE:
   * ``ipam: kubernetes``: Enable :ref:`k8s_hostscope` IPAM
   * ``routing-mode: native``: Enable native routing mode
   * ``enable-endpoint-routes: true``: Enable per-endpoint routing on the node
-  * ``enable-local-node-route: false``: Disable installation of the local node route
+   (this automatically disables the local node route).

 * ``ipv4-native-routing-cidr: x.x.x.x/y``: Set the CIDR in which native routing
   is supported.


#38 | Add CNAME file to fix deployment error

This branch just adds the CNAME file that was deleted yesterday.

No longer necessary.


Possible source of <cuda_runtime_api.h> error on Windows

I am getting the following error on compilation:
In file included from src/nnet/conv_bc01_matmul.cpp:1:0:
./include/cudarray/common.hpp:8:30: fatal error: cuda_runtime_api.h: No such file or directory
 #include <cuda_runtime_api.h>

I suspect the reason is that by default, Windows installs CUDA a path that includes spaces:
C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v7.5/
I know CUDA is installed properly on my system because it works fine using cuDNN with Keras.
If this is the case, is there a workaround, like providing the make file with a link?
Changing the file path might work, but it seems like a stretch.

Alternatively, perhaps it could work if a symlink was created

same error, no idea  how to fix.

Have you issued that problem yet? It really cost me a lot of time to find a solution.

the same problem

we need the provider fix it !

@andersbll


Problem with parentheses.

I think the caligator ignores the parentheses.

Simply instead of 5 / (2/2) the caligator sees 5/2/2. I think.

I would like to work on this and challenge myself @sarthology

Go on.


Route traffic from a virtual hub to an NVA

Hi Team,
I have tested this using a Microsoft Azure Firewall and I cannot get traffic to route to the firewall within the next hop, using the Azure Virtual WAN / Virtual Hub.
I have 4 VNets:
App1 - <IP_ADDRESS>/24
App2 - <IP_ADDRESS>/24
FirewallHub - <IP_ADDRESS>/24
Apps3 - <IP_ADDRESS>/24
and the hub: AzureHub - <IP_ADDRESS>/24
App1 and App2 are VNet peered to FirewallHub. A traditional UDR has been created to route traffic to the Azure Firewall.
Firewallhub and app1/app2 spoke is working correctly. - firewall rules are applied.
App1, FirewallHub and App3 have been peered to the AzureHub.
I have configured the following hub routes:
<IP_ADDRESS>/24 > <IP_ADDRESS>
<IP_ADDRESS>/24 > <IP_ADDRESS>
However, App3 will always connect to App1 directly - it will never go via the Azure Firewall (I have created a firewall rule blocking RDP access from App3 to App1 VM's).
If I try to go to App2, which is not peered - there is no routing.
It appears that the hub routing doesn't do anything. If I drop the routes, add in one at a time, add in fake addresses... nothing works.
Anything which is peered is routing - but I need to override the defaults to use the firewall.
Can someone please confirm?

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

ID: ff59f117-79c3-f134-f6ff-9c3745a7cd52
Version Independent ID: 6e1bf338-5501-b1d7-6b2d-3dc98dc25a60
Content: Virtual WAN: Create virtual hub route table to NVA: Azure portal
Content Source: articles/virtual-wan/virtual-wan-route-table-portal.md
Service: virtual-wan
GitHub Login: @cherylmc
Microsoft Alias: cherylmc

@baljitaujlaVD Thanks for the feedback! We are currently investigating and will update you shortly.

@baljitaujlaVD, Appreciate your patience. Ideally Azure firewall should work as expected in place of NVA here in this architecture. We are assigning the respective SME here for better insights.

Thanks for the update Suvasara. Just to advise that I did try this with a Linux NVA and had the same problem. It appears that the hub routing is either not propagating or is not adhered to.

Hey guys. We are facing the same problems with a third party vendor firewall. So any update on this topic would be very helpful. Thank you very much.

Thank you for you dedication to our documentation.
Unfortunately, we have been unable to review this issue in a timely manner. We sincerely apologize for the delayed response. We are closing this issue. If you feel that the problem persists, please respond to this issue with additional information.
Please continue to provide feedback about the documentation. We appreciate your contributions to our community.
#please-close


Add support for initial Router for packet matching & delegation

Add basic support for Router to make it easier to get your code trigger when some packets are received.
Add initial support for namespace delegation (XEP-0355) and priviledged entities (XEP-0356) and example component.
Clean up un IQ structures.

@genofire Here is a big change in API for components. You can check the diff on the example to get an idea of the impact. The main goal was to be able to support XEP-0355 and XEP-0356.
I have also tagged previous version as v0.1.0 so that you can stay on that branch if you are not yet confortable with new API or have doubts about it.
To get an idea of where we should be heading: I think we still should make it easier to generate XMPP packets. I need to think about how to improve that.

Is there a method to receive unrouted elements ?
i like to have a log message for it

@genofire No, there is no such method yet, but that's a good idea. It is possible that adding an empty route at the end would work, but I will create a ticket for that and expose a route function in API to clarify intent. We should add it.

And a route for IQ, get only.
(And maybe a SendIQ with callback func as parameter)

You should also handle unrouted iq with an error, like here:
https://github.com/FluuxIO/go-xmpp/blob/f7b7482d2e1aa7eec5127a47319db000e975437e/_examples/xmpp_component/xmpp_component.go#L53-L60

Which has a higher prio
router.HandleFunc("iq", HandleMessage)

or
router.NewRoute().IQNamespaces("urn:xmpp:delegation:1").HandlerFunc(HandleDelegation)

???

@genofire Thanks, I will add all this after I have closed by branch to improve packet building.
I have a tentative API here: #61