SeatAndEat : Replace The Static Image In About Us Page With Animation

In the about us section, you have to replace the static image with a suitable animation.
It should be responsive with the whole page.

I would like to work on it

Hey @SWITCHin2, Assigned. All the best.


script/delayed_job background process immediately dies silently

This is in development. It seems delayed job immediately dies as soon as I start it, and fails silently without writing anything to the log (that's the most frustrating part bc I'm completely stuck). Below are more details:
I start DJ in the console using script/delayed_job start. The PID file is created, but when I do a script/delayed_job status it says:
pid-file for killed process 47552 found (/Users/me/Rails/projects/tmp/pids/delayed_job.pid), deleting.
delayed_job: no instances running

Sure enough, the jobs in the database table just sit there, with the first one up getting its locked_at timestamp set.
My DJ log file only logs the attempted start, but nothing about the stop. It just says:
Starting job worker
Job job_name (id=1537) RUNNING

I followed the instructions in Common Problems to no avail. If I manually run rake jobs:work the jobs are indeed processed and disappear from the db.
I thought it might be a serialization problem, but I can do this successfully from the console:
j = Delayed::Job.last
YAML.load(j.handler)

Versions of everything:

Rails (3.2.22)
Ruby (2.2.10)
delayed_job (4.1.5)
delayed_job_active_record (4.1.3)
daemons (1.3.1)

My DJ config looks like this:
Delayed::Worker.max_attempts = 5
Delayed::Worker.max_run_time = 5.minutes
Delayed::Worker.logger = Logger.new(File.join(Rails.root, 'log', 'delayed_job.log'))
Delayed::Worker.destroy_failed_jobs = false

@gchiaren Did you ever resolve this? The same thing is happening to me.

@dignoe Nope! But I had to handle it somehow so I'm using bluepill to bring DJ back up when it goes down. Lmk if you need help with the bluepill config.

Ok, thanks. I've noticed that certain jobs cause DJ to fail, and sometimes DJ will process multiple jobs and just keep on going. All the jobs pass our tests and work fine in production. I'm slowly migrating everything over to ActiveJob and then I'm probably going to switch to Resque anyway, so I'll just live with this until I get everything moved over.

FYI - This issue might be related: https://github.com/collectiveidea/delayed_job/issues/935
I've switched to using foreman in dev mode, so instead of running bin/delayed_job start I'm now just using bin/rails jobs:work in my Procfile. This seems to have solved the issue for me.

This is expected behavior of the daemons gem. You can see here the first thing it does is to fork the parent and exit I forget exactly why.
If you're ok to run everything in the foreground (e.g. for a container) try my "forking" mode PR: https://github.com/collectiveidea/delayed_job/pull/1138

Closing stale


Cannot read property 'topology' of undefined

Hi.
I'm new with node, so i could write wrong code.
I'm trying to read a file saved into collection "fs.files".
My code is:
var readstream = gfs.createReadStream({           _id: file_id,           readPreference: 'secondaryPreferred',           w: -1         });
I obtaing this error:
**node_modules/mongodb/lib/gridfs/grid_store.js:205
return executeOperation(this.db.s.topology, open, [this, options, callback], {
^
TypeError: Cannot read property 'topology' of undefined**
Could someone give me help?
Thanx

same here

Same

I am facing the same and any solution to this?
let gfs;

const conn = mongoose.connection;
conn.options = {};
conn.once('open',  ()  => {
  gfs = Grid(mongoose.connection, mongoose.mongo);
  gfs.collection('uploads');

});

router.get('/image/:filename', getFile)

function getFile(req, res, next)
{
   var readstream = gfs.createReadStream(req.params.filename);

   readstream.pipe(res)
}

I am facing the same issue and any solution for this?
let gfs;

const conn = mongoose.connection;
conn.options = {};
conn.once('open',  ()  => {
  gfs = Grid(mongoose.connection, mongoose.mongo);
  gfs.collection('uploads');

});

router.get('/image/:filename', getFile)

function getFile(req, res, next)
{
   var readstream = gfs.createReadStream(req.params.filename);

   readstream.pipe(res)
}


Support for ivysilani.cz

DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE

[X] I understand that I will be blocked if I intentionally remove or skip any mandatory* field

Checklist

[X] I'm reporting a new site support request
[X] I've verified that I'm running yt-dlp version 2023.10.13 (update instructions) or later (specify commit)
[X] I've checked that all provided URLs are playable in a browser with the same IP and same login details
[X] I've checked that none of provided URLs violate any copyrights or contain any DRM to the best of my knowledge
[X] I've searched known issues and the bugtracker for similar issues including closed ones. DO NOT post duplicates
[X] I've read the guidelines for opening an issue
[x] I've read about sharing account credentials and am willing to share it if required

Region
Czech Republic
Example URLs
https://www.ceskatelevize.cz/ivysilani/
Provide a description that is worded well enough to be understood
Old version<EMAIL_ADDRESS>works, now it is broken.
Provide verbose output that clearly demonstrates the problem

[X] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
[x] If using API, add 'verbose': True to YoutubeDL params instead
[X] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

Complete Verbose Output
[debug] Command-line config: ['-vU', 'https://www.ceskatelevize.cz/porady/1186000189-13-komnata/223562210800016/']
[debug] Encodings: locale cp1250, fs utf-8, pref cp1250, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version<EMAIL_ADDRESS>[b634ba742] (win_exe)
[debug] Python 3.8.10 (CPython AMD64 64bit) - Windows-10-10.0.22631-SP0 (OpenSSL 1.1.1k  25 Mar 2021)
[debug] exe versions: none
[debug] Optional libraries: Cryptodome-3.19.0, brotli-1.1.0, certifi-2023.07.22, mutagen-1.47.0, sqlite3-3.35.5, websockets-11.0.3
[debug] Proxy map: {}
[debug] Loaded 1890 extractors
[debug] Fetching release info: https://api.github.com/repos/yt-dlp/yt-dlp/releases/latest
Available version<EMAIL_ADDRESS>Current version<EMAIL_ADDRESS>Current Build Hash: 13d6a04ef6678dc61cb6e2d42eb53e69486bd2f52b8e5d778db029ccd4c600b4
yt-dlp is up to date<EMAIL_ADDRESS>[CeskaTelevize] Extracting URL: https://www.ceskatelevize.cz/porady/1186000189-13-komnata/223562210800016/
[CeskaTelevize]<PHONE_NUMBER>00016: Downloading webpage
[CeskaTelevize]<PHONE_NUMBER>00016: Getting IFRAME hash
ERROR: [CeskaTelevize]<PHONE_NUMBER>00016: Unable to download webpage: HTTP Error 404: Not Found (caused by <HTTPError 404: Not Found>); please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
  File "yt_dlp\extractor\common.py", line 715, in extract
  File "yt_dlp\extractor\ceskatelevize.py", line 122, in _real_extract
  File "yt_dlp\extractor\common.py", line 1118, in _download_webpage
  File "yt_dlp\extractor\common.py", line 1069, in download_content
  File "yt_dlp\extractor\common.py", line 903, in _download_webpage_handle
  File "yt_dlp\extractor\common.py", line 860, in _request_webpage

  File "yt_dlp\networking\_urllib.py", line 410, in _send
  File "urllib\request.py", line 531, in open
  File "urllib\request.py", line 640, in http_response
  File "urllib\request.py", line 569, in error
  File "urllib\request.py", line 502, in _call_chain
  File "urllib\request.py", line 649, in http_error_default
urllib.error.HTTPError: HTTP Error 404: Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "yt_dlp\YoutubeDL.py", line 4051, in urlopen
  File "yt_dlp\networking\common.py", line 114, in send
  File "yt_dlp\networking\_helper.py", line 204, in wrapper
  File "yt_dlp\networking\common.py", line 325, in send
  File "yt_dlp\networking\_urllib.py", line 415, in _send
yt_dlp.networking.exceptions.HTTPError: HTTP Error 404: Not Found

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "yt_dlp\extractor\common.py", line 847, in _request_webpage
  File "yt_dlp\YoutubeDL.py", line 4070, in urlopen
yt_dlp.networking.exceptions._CompatHTTPError: HTTP Error 404: Not Found

yt-dlp 2<IP_ADDRESS>029 was a custom/unofficial build released by me
I will make another one soon
Duplicate of #6539


Remove readable-stream as dependency

git grep shows hyperbahn is not using readable-stream anymore, and the version seems to break npm shrinkwrap if anyone has a dependency on hyperbahn.
r: @ShanniLi @Raynos

Get rid of it :D.
lgtm.


Ban Issues/ Staff Abuse?

Hello there. This is my ban appeal.
My name is bedsheet5 and I was wrongly banned, but because I cannot then add anything in regards to a log of the chat messages due to me being banned from the discord and the server I will do my best to quote on quote remember the events leading up to the abuse of the power.
Point Number One: Wording of the ban
I was banned for and I quote, "Obvious Troll" now I would first like specification with what "obvious troll" means due to the fact it can mean everything however since there are no actual rules saying or defining an original meaning of the word "troll" I shall use the site Urban dictionary's definition of the word troll, "Trolling – (verb), as it relates to the internet, is the deliberate act, (by a Troll – noun or adjective), of making random unsolicited and/or controversial comments on various internet forums with the intent to provoke an emotional knee jerk reaction from unsuspecting readers to engage in a fight or argument" Do I believe any of my actions could constitute to being by this definition given by urban dictionary as "troll-like behaviour" I do not, I do however believe it was for a comical / satire purpose to which the best suited the conversation at the time.
Point Number Two: Miscommunication of rules
To the best of my knowledge, there was no discord rules removing or limiting the use of the discord channel "server" from the use of banned, muted or punished players in any way. My use of the channel was not blocked by any of the discord rules stated in the rules section of the discord server. I would like to politely request a unban from the discord.
Conclusion and Sources
I do not believe it is fair to ban me for a vague rule and for other reasons stated above.
Urban Dictionary : https://www.urbandictionary.com/define.php?term=Trolling.
Any further questions can be made to the discord account: Martin 🦈#9722

If you want me to apologize for breaking the "server rules" all you have to do is ask, I put some time into that server and for all my work to be deleted without any reason, seems like a massive waste.


fix pasting errors

Closed because of all the changes that have been done, including already resolving this issue.


[Easm] Fix cspell errors

The package is a RLC and these words are inherited from api specs.
Fixes #27434

/check-enforcer override


After stoping syncing a dataset the view is refreshed but the type of columns cannot be changed

@saleiva, I tried this and I was actually able to edit the type of columns:

Can you provide some steps to reproduce it? Thanks!

I cannot reproduce this neither. Closing! :)

self healing issues FTW! Thanks!


Support other web components libraries and syntaxes

Provide support for different WC libs and their approaches.

Different ways to mark a template region (html, , JSX, etc.)
Different property / attribute / event accessors

Avoid creating a maintenance hell, but have a clear, approachable way to implement these

I'd definitely love to see support for FAST 😄  I haven't worked on a language server before so I'm not sure what's involved but I can easily answer any questions about FAST in the meantime as can @chrisdholt. If the language server can be pluggable and provide me some patterns to follow, then maybe I can jump in and help out with the implementation with a bit of guidance from you.

@EisenbergEffect  Yes, having general support for the most popular libs should be on the backlog.
What I'd love to have for every framework/platform that wants support is an example project.
So if you have an project that showcases the general structure, components, etc. of FAST, I'd love a link and see how it works with it

That sounds totally reasonable. @Chrisdholt Can you meet sometime next week to discuss? If we could put something together for @Matsuuu that would really help him. The advantage to our community of having this tooling would be huge.

That sounds totally reasonable. @chrisdholt Can you meet sometime next week to discuss? If we could put something together for @Matsuuu that would really help him. The advantage to our community of having this tooling would be huge.

Yep, let’s figure out a time!

Heya @EisenbergEffect @chrisdholt !
Have yall had time to check out and cobble together a small FAST project with CEM generation I could take a look at and see how the CE LS works with it?
I'm currently finalizing some large CEM generation ground work in the LSP side and a part of it is providing a better support for different kinds of projects out of the box.
With an example FAST project, I could see if you could get up and running writing FAST components with the language server, and what still needs to be worked on

Thanks for pinging this issue @Matsuuu. A lot has changed in my life since I originally posted here, particularly a big change in job. Being in the process of building a new business, I have very limited time to contribute to open-source projects. I've been focusing all that time on contributing directly to W3C efforts lately. So, I don't think I'll be able to help out here unfortunately.
Hopefully @chrisdholt or someone from Microsoft can put this together for you.

Heya! Reviving this a bit as I'm now supporting more file formats.
Can I get syntax examples on the following

Setting an attribute on a FAST element
Setting a property on an FAST element
Setting a event listener for FAST element
Setting a boolean variable for a FAST element.

e.g. For like the property binding is <my-el .prop=${1+1}>

FAST Syntax
Attributes have no special syntax, properties are prepended with :, boolean attributes are prepended with ?, and events are prepended with @. For dynamic, data-bound values, all three of these accept a lambda function where the first parameter is the instance of the web component itself.
Setting Attributes
Static Value
<my-el attr="value"></my-el>

Dynamic Value
<my-el attr="${x => x.value}"></my-el>

Setting Properties
Static Value
<my-el :property="value"></my-el>

Dynamic Value
<my-el :property="${x => x.value}"></my-el>

Setting Boolean Attributes
Static Value
<my-el ?attr="value"></my-el>

Dynamic Value
<my-el ?attr="${x => x.value}"></my-el>

Adding an Event Listener
<my-el @event="${x => x.myCallback()}"></my-el>

I think the below should handle it :)

Heya! Reviving this a bit as I'm now supporting more file formats.
Can I get syntax examples on the following

Setting an attribute on a FAST element
Attribute:

<my-el foo="${x => x.foo}">

Setting a property on an FAST element
Boolean attribute:

<my-el :foo="${x => x.foo}">

Setting a event listener for FAST element
Boolean attribute:

<my-el @click="${(x, c) => x.handleClick(c.event)}">

Setting a boolean variable for a FAST element.
Boolean attribute:

<my-el ?foo="${x => x.foo}">

Cheers lads!
The current implementation already supports the @ annotation and the lit specific . annotation. I'll be sure to add the : property assignment to the set and look into supporting boolean attributes through ?

Version 1.0.2 should support FAST at a somewhat comprehensible level.
Added support for the :prop syntax, added some CEM defaults to analyze FAST etc.


Remove unnecessary GADT usage.

Awesome! Thanks! I think I had these left over from a different scheme but as things changed I didn't need the GADTs anymore!


Trying to run just rv64/F  does not pickup RV32/F tests?

When running just the F extension for RV64, I thought that it should also pick up the RV32/F tests.  All it does is runt he test cases in RV64i_m/F dir.
Am I missing something?
riscof  run --config ./config.ini --suite ./riscv-arch-test/riscv-test-suite/rv64i_m/F --env ./riscv-arch-test/riscv-test-suite/env
Same question for D extension..

It's a completely different architecture - why should an RV64 run RV32
tests?
On Thu, Jun 8, 2023 at 9:01 AM InspireSemi @.***> wrote:

When running just the F extension for RV64, I thought that it should also
pick up the RV32/F tests. All it does is runt he test cases in RV64i_m/F
dir.
Am I missing something?
riscof run --config ./config.ini --suite
./riscv-arch-test/riscv-test-suite/rv64i_m/F --env
./riscv-arch-test/riscv-test-suite/env
—
Reply to this email directly, view it on GitHub
https://github.com/riscv-non-isa/riscv-arch-test/issues/361, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AHPXVJVVFWVPAEWXBTP5W5TXKHZOXANCNFSM6AAAAAAY7QADWI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

F and D extensions cross the boundary.   So not all of the F tests are under rv64i_m nor are all D test under the same path.   You need to run the vrv32i_m tests as well.
Sent from my T-Mobile 5G Device
Get Outlook for Androidhttps://aka.ms/AAb9ysg

From: Allen Baum @.>
Sent: Thursday, June 8, 2023 1:45:51 PM
To: riscv-non-isa/riscv-arch-test @.>
Cc: Marc Karasek @.>; Author @.>
Subject: Re: [riscv-non-isa/riscv-arch-test] Trying to run just rv64/F does not pickup RV32/F tests? (Issue #361)
It's a completely different architecture - why should an RV64 run RV32
tests?
On Thu, Jun 8, 2023 at 9:01 AM InspireSemi @.***> wrote:

When running just the F extension for RV64, I thought that it should also
pick up the RV32/F tests. All it does is runt he test cases in RV64i_m/F
dir.
Am I missing something?
riscof run --config ./config.ini --suite
./riscv-arch-test/riscv-test-suite/rv64i_m/F --env
./riscv-arch-test/riscv-test-suite/env
—
Reply to this email directly, view it on GitHub
https://url.avanan.click/v2/___https://github.com/riscv-non-isa/riscv-arch-test/issues/361.YXAzOmluc3BpcmVzZW1pOmE6bzphZTY4NjY4NGI5YTc4YTc1OWYxMGIxM2FhYzM4ZWQ0Nzo2OmViMzA6MmE4NzE0MzdhNjIwZWVlMTdkMzAzNTZmZDVhMDJmYWU5MzE2NTdjZDEwZTA2ZTU3MTJmNTkzNDgxOTlmMGNmMjp0OlQ;, or
unsubscribe
https://url.avanan.click/v2/___https://github.com/notifications/unsubscribe-auth/AHPXVJVVFWVPAEWXBTP5W5TXKHZOXANCNFSM6AAAAAAY7QADWI.YXAzOmluc3BpcmVzZW1pOmE6bzphZTY4NjY4NGI5YTc4YTc1OWYxMGIxM2FhYzM4ZWQ0Nzo2OjA5Nzk6ZTM1MzkxNDhkZDcwYjdjY2NiM2RmYThkNDBmOWRlMmFlNmU2ZGY1Mjk4MGZhNTA0ZGFkMDZkZTg2NGEzOGY0Mjp0OlQ;
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

—
Reply to this email directly, view it on GitHubhttps://url.avanan.click/v2/___https://github.com/riscv-non-isa/riscv-arch-test/issues/361%23issuecomment-1583085356___.YXAzOmluc3BpcmVzZW1pOmE6bzphZTY4NjY4NGI5YTc4YTc1OWYxMGIxM2FhYzM4ZWQ0Nzo2Ojg2MDA6NGViNDk3NGQ5ZTQ1OGYzMjE3OWU2YTY0ZDYyMWNmNjcxMTI0YmQxYjVmYmQyZjJkYTQxZjZlNTFmNDE3Y2NhYTpoOlQ, or unsubscribehttps://url.avanan.click/v2/___https://github.com/notifications/unsubscribe-auth/AR3S6YY67HQ7KAGEQJ4REBLXKIFU7ANCNFSM6AAAAAAY7QADWI___.YXAzOmluc3BpcmVzZW1pOmE6bzphZTY4NjY4NGI5YTc4YTc1OWYxMGIxM2FhYzM4ZWQ0Nzo2OjE4MjI6ZTJkYjVjMjE0MmM0ODU2MjQxMjViMjc3OGNlMDVkNTA0MWQwODc1NjNiYmQ2YzczZGE2YzFmMjAxYjVkYTAyYzpoOlQ.
You are receiving this because you authored the thread.Message ID: @.***>

The fault is in this argument of the command: --suite ./riscv-arch-test/riscv-test-suite/rv64i_m/F. The suite argument controls the root directory for the suite for the riscof run. So riscof will not discover any tests outside of those directories. In order to select the appropriate tests you will have to give the argument as --suite ./riscv-arch-test/riscv-test-suite/. Note that the directory organisation in the repo is not intended to allow filtering of tests. Its merely cosmetic and to enable easier maintenance. The filtering is always best left to riscof rather than use manual intervention to get the desired result.

How can I run just the F or D test cases for rv64 then.  For all the others
in you can specify on the cmdline what you want to test.
On Fri, Jun 9, 2023, 6:06 AM S Pawan Kumar @.***> wrote:

The fault is in this argument of the command: --suite
./riscv-arch-test/riscv-test-suite/rv64i_m/F. The suite argument controls
the root directory for the suite for the riscof run. So riscof will not
discover any tests outside of those directories. In order to select the
appropriate tests you will have to give the argument as --suite
./riscv-arch-test/riscv-test-suite/. Note that the directory organisation
in the repo is not intended to allow filtering of tests. Its merely
cosmetic and to enable easier maintenance. The filtering is always best
left to riscof rather than use manual intervention to get the desired
result.
—
Reply to this email directly, view it on GitHub
https://github.com/riscv-non-isa/riscv-arch-test/issues/361#issuecomment-1584319418,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AD72ZMYIZLF5TDPDA76E5EDXKLYQ5ANCNFSM6AAAAAAY7QADWI
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

How can I run just the F or D test cases for rv64 then. For all the others in you can specify on the cmdline what you want to test.

Ideally, the way to do that is to use a custom database yaml with just the required tests in it. Alternatively, you can create another directory containing symlinks to all the 4 directories(RV32F,RV32D, RV64F & RV64D) and pass that directory path to the suite argument.

I tried the first one with a custom yaml with the –noclean option.  It fails with an error code of a file exists in the path.
I guess I could symlink one dir and try that next.
Marc Karasek
Principal Software Engineer
M:<PHONE_NUMBER>
[A close up of a sign    Description automatically generated]
www.inspiresemi.comhttp://www.cryptocoretech.com/
THIS MESSAGE IS INTENDED ONLY FOR THE USE OF THE INDIVIDUAL OR ENTITY TO WHICH IT IS ADDRESSED AND MAY CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND/OR EXEMPT FROM DISCLOSURE UNDER APPLICABLE LAW.  If the reader of this message is not the intended recipient or agent responsible for delivering the message to the intended recipient, then you are hereby notified that any dissemination or copying of this communication is strictly prohibited.  If you have received this electronic transmission in error, please delete it from your system without copying it and notify the sender by reply e-mail  so that our address record can be corrected.  Thank you.
From: S Pawan Kumar @.>
Sent: Friday, June 9, 2023 9:24 AM
To: riscv-non-isa/riscv-arch-test @.>
Cc: Marc Karasek @.>; Author @.>
Subject: Re: [riscv-non-isa/riscv-arch-test] Trying to run just rv64/F does not pickup RV32/F tests? (Issue #361)
How can I run just the F or D test cases for rv64 then. For all the others in you can specify on the cmdline what you want to test.
Ideally, the way to do that is to use a custom database yaml with just the required tests in it. Alternatively, you can create another directory containing symlinks to all the 4 directories(RV32F,RV32D, RV64F & RV64D) and pass that directory path to the suite argument.
—
Reply to this email directly, view it on GitHubhttps://url.avanan.click/v2/___https:/github.com/riscv-non-isa/riscv-arch-test/issues/361%23issuecomment-1584570022___.YXAzOmluc3BpcmVzZW1pOmE6bzpjZjIxMWEyMGI0ODU5NDUwZTkzYWMzYWY3MjMxNTllNDo2OmE3OWQ6Y2M2ODI1YmU0YWJkMzY1MWJkODcxODQ1MjA2YjY3MTAyNDc3ZjgxMGExOWE3MzYxNzM5ZTEwN2VhMzE4YzMzMDpoOlQ, or unsubscribehttps://url.avanan.click/v2/___https:/github.com/notifications/unsubscribe-auth/AR3S6Y6AUK3HJNC633QZ3DTXKMPVLANCNFSM6AAAAAAY7QADWI___.YXAzOmluc3BpcmVzZW1pOmE6bzpjZjIxMWEyMGI0ODU5NDUwZTkzYWMzYWY3MjMxNTllNDo2OjI2Y2Q6ODc1NjM3NjVkY2Y3YjBjMWQ2NzE4ZTc1ZTBiMTAxMzk4NWRhZWFiNWMzYmM3ZjAzMmRjYWFjMTEwNTg3N2I2OTpoOlQ.
You are receiving this because you authored the thread.Message ID<EMAIL_ADDRESS>


Correct rviz model location

Description of changes:
In the install folders, the .rviz file under the cloudwatch_robot package are under the rviz directory, when it should be under the share/rviz directory to be consistent with the cloudwatch_simulation package of the simulation workspace.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The confusion has been cleared up. The directories are different between ROS1 and ROS2 because of differences between rospack find and ros2 pkg prefix.


Update mikroorm.md

Information

Type
Breaking change

Doc
No

Todos

[ ] Tests
[ ] Coverage
[ ] Example
[ ] Documentation

:tada: This PR is included in version 7.29.1 :tada:
The release is available on:

v7.29.1
GitHub release

Your semantic-release bot :package::rocket:


Bogus performance regression on Jenkins

Since we changed around thread number in #200. Example failure: http://jenkins.db.cs.cmu.edu:8080/blue/organizations/jenkins/terrier/detail/PR-207/27/pipeline
I guess we either didn't notice or didn't fix this because of  #193
I've verified both locally and on dev4 that these seemingly large deltas result from changes in the benchmark setup rather than code performance regression. We might still want these number changes, and we just need to reset the reference numbers on Jenkins.

@pervazea discussed it at the time #200 went in. We have bigger issues with Jenkins right now.

Is this the Jenkins trigger not working issue?

Yes.  It never worked as intended for new pull requests and I'm about to back it out.  In the meantime, I re-enabled the periodic repository scan in the Jenkins configuration to pick this up.

@pervazea or @apavlo, if you have admin privileges for the terrier Github project, could you please add a webhook with a payload URL of http://jenkins.db.cs.cmu.edu:8080/github-webhook/  ?  All of the other values can stay at their defaults.

@crd477 Done!

Fixed in #218


Make docs_generator.py work with Python2/3

Change-type: patch
Signed-off-by: Matthew McGinn<EMAIL_ADDRESS>

closing in favor of #119


hi, how to change the playerView's frame

i can't change the frame,can you tell me how to change the frame?thank you !

always is fullScreen,whatever how i changed

change the frame of playerView's parent view , baby

it‘s can’t work

@beydeng i am using cocoapod 2.0.4 and not able to play stream

for all , plz use this awesome player! - >   https://github.com/Bilibili/ijkplayer

@peiweichen I know this however it needs me to include the .framework (ijkmediaframework) file of 135 mb... I want something which comes with cocoapod

@satyamub  i can smell you on every repo about video stream...but this repo is not stable and designated for specific server called 七牛 . I believe it got memory issue...
These day I bump into tencent cloud , they got stream publishing and playing integration.

if you're not able to play stream , you'd better check your server side.

Its playing well if I use the IJKPlayer and other player like Vitamio so there must be some issue with this lib... I am using Adobe FMS

@satyamub  stay in touch , I am making a streaming app.

please make sure you add that lib in cocoapod so that we could easily add that in our project and thanks for your awesomest reply and help!!!


HGVS fails for non-proband variants

I opened the demo data set, view the parental tracks, then select a variant in a parent, but NOT present in the proband. I always get the following error:

@adityaekawade has this been fixed? I can't replicate. If it is fixed, or you also can't replicate (just use any gene where the parents have variants the proband doesn't), you can close this issue.

Tried with different genes, selecting variants in the parent that are not present in the proband. I couldn't replicate it and didn't get the error. Closing it.


Macports and imexam

Hi,
it seems that imexam is not available as a port on Macports. Is there any plan to port it?
Cheers,
Iskren

Hi  @iskreng  - I don't think there is a current plan to make it available on Macports, but I can look into it.  Is Macports the only thing you are using to manage your environment? Have you tried installing imexam with pip?

Hi Megan,
I'm trying to stick to, and so far I've managed to get all I need via macports. But surely I can install imexam with pip (or downloading the source). I just wanted to keep my system more tidy.
If you find some time in the future, that'll be nice.
Cheers,
Iskren

I'm going to reopen this just so I don't forget it exists :)
cheers


Update index.md

Remove layout metadata and update the formatting of links.

Docs Build status updates of commit 1410134:
:warning: Validation status: warnings

File
Status
Preview URL
Details

Docs/index.md
:warning:Warning

Details

Docs/index.md

Line 35: [Warning] Link 'https://docs.microsoft.com/en-us/windows/uwp/audio-video-camera/playready-Client-sdk' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 36: [Warning] Link 'https://docs.microsoft.com/en-us/previous-versions/windows/apps/dn468834(v=ieb.10)' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.
Line 44: [Warning] Link 'https://docs.microsoft.com/en-us/uwp/api/Windows.Media.Protection.PlayReady' contains locale code 'en-us'. For localizability, remove 'en-us' from links to most Microsoft sites.

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.

Docs Build status updates of commit c1b3473:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

Docs/index.md
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: If you changed an existing file name or deleted a file, broken links in other files to the deleted or renamed file are listed only in the full build report.


Block Expression in Binding Evaluates to a Thunk

General Summary
Consider the following snippet:
from Builtins import all

main =
    x =
        f a = a + 1
        f 42
    x

In the interpreter (runtime server), variable x evaluates to a Thunk

Only reproduces in the interpreter (IDE) mode. Does not happen in CLI (text) mode

Steps to Reproduce
Run the provided example in the interpreter.

Expected Result
x evaluates to an Integer

Actual Result
x evaluates to a Thunk

Enso Version
main @ 8b023e2549faa927794dcd8a419e23d4e331fc50

I think this is a problem of how the compiler attaches source locations in demand analysis – it attaches the location to the variable read, but in case of force nodes, the location should be moved to the force.


fix: add correct support for compressing file-like objects

This PR contains the fix for the bug in the request preparation step.
Previously file-like object couldn't be compressed and the code
threw and exception if the user tried to do it. The solution that can
be found in this PR, is a helper class called GzipStream which act
like a middle item between the reader and the writer and compresses
the data on the fly. More details can be found in the comments.

I have updated the PR based on @padamstx's suggestion. Let me know what you think, I am open to change it you have major concerns or better ideas!

do you by chance have a scenario that might be a good test prior to merging?

I'll try and run it through our suites tomorrow.

No good I'm afraid, 167 failures, I didn't check each one individually, but they seem to be of two types.

At first glance the second might be related to the generated test code's expectations about the request body.

Thanks a lot @ricellis, I will take a look! At first glance these issues should be reproducible in unit tests, but we'll see.

@ricellis Could you do another test run when you have some time? I've fixed the issues I found, and tweaked the generated unit tests to handle GzipStream bodies - so please use the generator, built from the main branch.
(I've tested the changes with all our APIs and found no issues, hopefully you will get the same result.)

Re-tested with new generated test fixes, all passing now. Thanks!

@ricellis Thanks for the testing (and finding the bugs)!

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


Is there a way to access the Q-Values for a given observation?

Specifically, in the deepq/experiments/atari/train.py file?

@dqii I've done this before. One way is to change deepq/build_graph.py so that the build_act function returns the q-values in addition to the actual action.
This line has the q-values.
https://github.com/openai/baselines/blob/master/baselines/deepq/build_graph.py#L152

Thanks!

After making the relevant changes to simple.py and build_graph.py as suggested and trying
import tensorflow as tf
import numpy as np
import modified_simple
act, q = modified_simple.load("/Users/Neil/cartpole_model.pkl")
observation = tf.placeholder(tf.float32, shape=[None, 4])
q.eval(feed_dict={"observation: [np.zeros(4)]})

I get an error
InvalidArgumentError (see above for traceback): You must feed a value for placeholder tensor 'deepq/observation' with dtype float and shape [?,4] 	 [[Node: deepq/observation = Placeholder[dtype=DT_FLOAT, shape=[?,4], _device="/job:localhost/replica:0/task:0/device:CPU:0"]()]]
but it isn't possible to name a variable with a "/" in it. What am I missing?
I suspect that I can save the Q network in the traditional way with checkpoints and then access it from there if this isn't possible but it seems like it should be since act can be used so easily as in enjoy_cartpole.py

@nflu change this method
https://github.com/openai/baselines/blob/master/baselines/deepq/build_graph.py#L146
to return q_values in addition to what it already returns. You have access to the q-values when running the policy and it returns the action and then the q-values. I've done this many times.

Yeah I tried that :/  The last line in my modified build_act in build_graph.py is return act, q_values and I modified load in simple.py to
	def load(path):
		with open(path, "rb") as f:
			model_data, act_params = cloudpickle.load(f)
		act, q = modified_build_graph.build_act(**act_params)
		sess = tf.Session()
		sess.__enter__()
		with tempfile.TemporaryDirectory() as td:
			arc_path = os.path.join(td, "packed.zip")
			with open(arc_path, "wb") as f:
				f.write(model_data)

			zipfile.ZipFile(arc_path, 'r', zipfile.ZIP_DEFLATED).extractall(td)
			load_state(os.path.join(td, "model"))

		return ActWrapper(act, act_params), q

I'm wondering how to use the q values once I return them from load. As I showed in my example above I'm not sure how to feed in an observation. If you have done this before perhaps you could make a pull request or fork with your implementation?

For anyone who encounters this issue and would like some more specifics.  In build_act you need to change the _act function to evaluate the q_values as well
The last few lines of build_act should be
_act = U.function(inputs=[observations_ph, stochastic_ph, update_eps_ph],
				 outputs=(output_actions, q_values),
				 givens={update_eps_ph: -1.0, stochastic_ph: True},
				 updates=[update_eps_expr])
def act(ob, stochastic=True, update_eps=-1):
	return _act(ob, stochastic, update_eps)
return act

so that you get the values and not the tensor.
Then anywhere where you call act you will have to go one index deeper.  For example in simple.py line 252 action = act(np.array(obs)[None], update_eps=update_eps, **kwargs)[0] should be action = act(np.array(obs)[None], update_eps=update_eps, **kwargs)[0][0]

Thanks @nflu! That's exactly what I was looking for. Those Theano-like functions were driving me crazy...

For anyone who encounters this issue and would like some more specifics: in build_act you need to change the _act function to evaluate the q_values as well
The last few lines of build_act should be
_act = U.function(inputs=[observations_ph, stochastic_ph, update_eps_ph],
				 outputs=(output_actions, q_values),
				 givens={update_eps_ph: -1.0, stochastic_ph: True},
				 updates=[update_eps_expr])
def act(ob, stochastic=True, update_eps=-1):
	return _act(ob, stochastic, update_eps)
return act

so that you get the values and not the tensor.
Then anywhere where you call act expecting to get an action you will have to go one index deeper. For example in simple.py line 252 action = act(np.array(obs)[None], update_eps=update_eps, **kwargs)[0] should be action = act(np.array(obs)[None], update_eps=update_eps, **kwargs)[0][0]

I tried what you suggested, but it dosen't seem to pass any value where I should find q_values. Are there other modification necessary to make that work?
Thanks

Once you have made the modifications that @nflu mentioned, when you call the act function in simple.py (now called deepq.py) in the following line
action = act(np.array(obs)[None], update_eps=update_eps, **kwargs)[0]
you should now get a list with two elements (output_actions and q_values). So if you wanted to print the q_values, for instance, you should do something like this:
print(action[1])
You will probably want to rename the list action to step_output or something similar since that list does not contain only actions anymore.


Feature: djangocms 4.0.x documentation updates

Description
Back ported the latest documentation from develop.
Added the latest v4 notes in a format that can be used to update the documentation.
Related resources
Checklist

[] I have opened this pull request against develop
[x] I have updated the CHANGELOG.rst
[] I have added or modified the tests when changing logic

should we rebase this onto develop-4 branch?


SECURITY WARNING!! BEWARE

I started a tunnel using localtunnel and because it was night I slept and let it running
after I woke up in the morning I visited the link and saw this:

I am really frustrated on what could happened, I am using linux but still can't confirm if anything was stolen
please if anyone has a background in computer security, help
also I would appreciate if anyone can tell me how to check if anything was stolen/downloaded from my computer

Hi,
That's alarming...
Could you confirm the tunnel on your end was still up and running for that subdomain? If not, it could be that someone else could have taken over the same subdomain you had and hosted this portal?
What was the rails app you ran? I wonder if your app itself had a vulnerability that got exploited (not localtunnel itself)

@TheBoroer

Could you confirm the tunnel on your end was still up and running for that subdomain?

I'm not entirely sure what you mean, but here’s exactly what happened:
It was late yesterday, and I was trying to get Localtunnel working because it kept crashing every time I ran it. I came across a comment suggesting a solution using a bash script to make it retry automatically. I implemented something similar, like this:
#!/bin/bash
until lt --port 3000 --subdomain rails-app-webhook
do
  echo "Try again"
done

I made the script executable using chmod +x localtunnel.sh and ran it. But because I was tired, I fell asleep. When I woke up in the morning, I checked my terminal and saw multiple attempts to reconnect (due to the above script). Eventually, after many retries, Localtunnel started and didn’t crash again.
I accessed the URL rails-app-webhook.loca.it, which prompted me for a password. I entered the IP address as the password and submitted, but instead of reaching my Rails app page, I encountered that suspicious interface.
I don’t think my Rails app has any vulnerabilities. It’s still in development, built with the latest version of Rails and common libraries. However, my concern is not so much about the app itself but about sensitive files stored on my local computer. Some of these files are quite important.

maybe this is related? localtunnel is having axios vulnerability in their package nobody updated this repo for 2 years so that explains why somebody got into your localtunnel

I think this project's implemention actually should not be used in production env, just for dev test I think.
'cause from the logic (maybe not quite correct), when new client is accepted, the server will create a new socket which is listening on a random port, which means that even though the initial connection has authorization, but when new socket created, the new socket's port is really easily to be attacked.


A white stroke is visible on dark backgrounds in hidden-on-mouse-over view

Fixed with 8765cb297bfc032fda42ff3b1b9998aeb680b159


Is Landmarks necessary when training?

I didn't see any loss about landmarks, but when create_bin, there is a step for checking if the landmarks .npy exists. Is this necessary or can I train without landmarks .npys?

I have the same question


feat: add tables to file metadata

What changed?

add tables to file metadata

Why?

I like store some of my data in a table. It is much easier to read/write compare to using frontmatter. Ideally, I would be able to write

dataview
TABLE file.tables WHERE length(file.tables) > 0

dataviewjs
const tables = dv.pages('"path"').file.tables

// show table for the last 5 days
for (let table of tables) {
  dv.table(
    table.headers,
    table.rows
  )
}

@mihaibirsan LMK, if additional work needed. I want to get this merge before start working on adding callout.

Any chance this can get in whenever you do your next release? It's a feature I'd really enjoy having.


Use namespace performance_test_fixture for shorter method names in .cpp

Small commit to cleanup these method names as they get a bit long, especially with parameters.
Signed-off-by: Stephen Brawner<EMAIL_ADDRESS>

Testing --packages-select performance_test_fixture

Linux
Linux-aarch64
macOS
Windows

Thanks for the review


Lens.zip

Dear Monoclers,
I found myself wanting to zip Lenses so that I can update multiple fields "at once."
def zip[S, A, B](l: Lens[S, A], r: Lens[S, B]): Lens[S, (A, B)] =
    Lens((s: S) => (l.get(s), r.get(s)))((ab: (A, B)) => (s: S) => r.set(ab._2)(l.set(ab._1)(s)))

So, as part of playing around with a 6502-interpreter, I can encode the ADC-instruction as a lens spanning the A and Flags fields of a case class:
@Lenses
case class CpuState(a: Int, x: Int, y: Int, sp: Int, pc: Int, flags: Int)

So that I can:
def adc(a: Int, flags: Int): (Int, Int) = ???

zip(CpuState.a, CpuState.flags) modify { case (a, flags) => adc(a, flags) }

Now, looking around and reading whatever I could find about Monocle, I cannot seem to understand if "this" is already in Monocle and/ or if there's another Correct way of doing this.
Thank you!

Hi @pandemonium, unfortunately zip is unlawful for lenses. It breaks the composition law when two lenses overlap: https://github.com/julien-truffaut/Monocle/blob/master/core/shared/src/main/scala/monocle/law/LensLaws.scala#L24-L25

Ahh - I saw that and thought that could be the reason. This is not a problem for me in this case though so I’ll just keep the zip. Thank you for taking the time to answer!

On 8 Nov 2017, at 10:53, Julien Truffaut<EMAIL_ADDRESS>wrote:
Hi @pandemonium, unfortunately zip is unlawful for lenses. It breaks the composition law when two lenses overlap: https://github.com/julien-truffaut/Monocle/blob/master/core/shared/src/main/scala/monocle/law/LensLaws.scala#L24-L25
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.


Agola in k3s, build flow err, failed to find Session for client XX

failed to expand working dir "~/project". Error: error dialing backend: failed to find Session for client ali-vm1

ali-vm1 is the cloud host,
my k3s agent node in this vm(node in docker container AA, only one node),
and agola pod(simple mode) with task pod run in the container AA with containerd.
[root@ali-vm1 v071]# docker ps |grep k3s
c02fd3b4cbd1        xxx/rancher/k3s:v0.8.1      "/entry.sh agent --k…"   3 days ago          Up 3 days                                                                                v071_node_1

[root@ali-vm1 v071]# docker exec -it c02fd3b4cbd1 bash
[root@ali-vm1 /]# crictl ps
CONTAINER ID        IMAGE               CREATED             STATE               NAME                     ATTEMPT             POD ID
732fabd4e689e       e0af76187afb9       40 minutes ago      Running             agola                    0                   63a74d9656124

error dialing backend: failed to find Session for client ali-vm1 this was from k3s:
vendor/github.com/rancher/remotedialer/session_manager.go func getDialer
return nil, fmt.Errorf("failed to find Session for client %s", clientKey)

Now all be Okay. k3s since v070 have a experimental ha feature, that in my use cause tunnel link err. I've fixed it.

@huapox glad you fixed it. Next time it'll be better if you write to https://talk.agola.io since it's better to at first discuss questions/support there and then open an issue when the real problem is clear.

Thx, I'll try. @sgotti

I have same problem. i used latest version of k3s k3s version v1.0.0 (18bd921c)
But the logs tell me is executor error. it's haven't permission .

2019-12-30T02:50:43.484Z	FATAL	cmd/serve.go:60	err: failed to start run service executor: failed to create kubernetes driver: configmaps "agola-executors-group" is forbidden: User "system:serviceaccount:agola:default" cannot get resource "configmaps" in API group "" in the namespace "agola"

anyone help me ?
YAML file :

kind: PersistentVolumeClaim
apiVersion: v1
metadata:
  name: agola-vol
  namespace: agola
spec:
  accessModes:
    - ReadWriteOnce
  resources:
    requests:
      storage: 1Gi
  storageClassName: local-path

---

# The client service. It's a node port for easier testing on minikube. Change
# it to become a LoadBalancer if needed.
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: agola
  namespace: agola
  annotations:
    kubernetes.io/ingress.class: 'traefik'
    ingress.kubernetes.io/ssl-redirect: "false"
spec:
  rules:
  - host: agola.influx.io
    http:
      paths:
      - path: /
        backend:
          serviceName: agola
          servicePort: 30002
---

# The service for internal components communication.
# We are using an headless service since some k8s deployment doesn't have
# hairpin mode enabled and pods cannot communicate with themself via a
# service
apiVersion: v1
kind: Service
metadata:
  name: agola-internal
  namespace: agola
spec:
  ports:
    - port: 8000
      name: api
    - port: 4000
      name: runservice
    - port: 4002
      name: configstore
    - port: 4003
      name: gitserver
  selector:
    app: agola
  clusterIP: None

---

# The agola config

apiVersion: v1
kind: ConfigMap
metadata:
  name: agola
  namespace: agola
data:
  config.yml: |
    gateway:
      # The api url that clients will call
      # Change this to the exposed "agola" service IP
      apiExposedURL: "http://<IP_ADDRESS>:30002"
      # The web interface url that clients will use
      # Change this to the exposed "agola" service IP
      webExposedURL: "http://<IP_ADDRESS>:30002"
      runserviceURL: "http://agola-internal:4000"
      configstoreURL: "http://agola-internal:4002"
      gitserverURL: "http://agola-internal:4003"

      web:
        listenAddress: ":8000"
      tokenSigning:
        # hmac or rsa (it possible use rsa)
        method: hmac
        # key to use when signing with hmac
        key: supersecretsigningkey
        # paths to the private and public keys in pem encoding when using rsa signing
        #privateKeyPath: /path/to/privatekey.pem
        #publicKeyPath: /path/to/public.pem
      adminToken: "admintoken"

    scheduler:
      runserviceURL: "http://agola-internal:4000"

    notification:
      webExposedURL: "http://<IP_ADDRESS>:30002"
      runserviceURL: "http://agola-internal:4000"
      configstoreURL: "http://agola-internal:4002"
      etcd:
        endpoints: "http://localhost:2379"

    configstore:
      dataDir: /mnt/agola/local/configstore
      etcd:
        endpoints: "http://localhost:2379"
      objectStorage:
        type: posix
        path: /mnt/agola/objectstorage/configstore/ost
      web:
        listenAddress: ":4002"

    runservice:
      #debug: true
      dataDir: /mnt/agola/local/runservice
      etcd:
        endpoints: "http://localhost:2379"
      objectStorage:
        type: posix
        path: /mnt/agola/objectstorage/runservice/ost
      web:
        listenAddress: ":4000"

    executor:
      dataDir: /mnt/agola/local/executor
      # The directory containing the toolbox compiled for the various supported architectures
      toolboxPath: ./bin
      runserviceURL: "http://agola-internal:4000"
      web:
        listenAddress: ":4001"
      activeTasksLimit: 2
      driver:
        type: kubernetes

    gitserver:
      dataDir: /mnt/agola/local/gitserver
      gatewayURL: "http://agola-internal:8000"
      web:
        listenAddress: ":4003"
---

apiVersion: apps/v1
kind: Deployment
metadata:
  name: agola
  namespace: agola
spec:
  # Do not increase replica count or everything will break since every pod will
  # have its own etcd instance
  replicas: 1
  selector:
    matchLabels:
      app: agola
  template:
    metadata:
      labels:
        app: agola
    spec:
      containers:
      - name: agola
        image: sorintlab/agola
        command:
          - /bin/agola
          - serve
          - --embedded-etcd
          - "--config"
          - /mnt/agola/config/config.yml
          - "--components"
          - all-base,executor
        env:
        ports:
          - containerPort: 8000
          - containerPort: 4000
          - containerPort: 4002
          - containerPort: 4003
        volumeMounts:
          - name: config-volume
            mountPath: /mnt/agola/config
          - name: agola-localdata
            mountPath: /mnt/agola/local
          - name: agola-objectstorage
            mountPath: /mnt/agola/objectstorage
      volumes:
          - name: config-volume
            configMap:
              name: agola
          - name: agola-localdata
            emptyDir: {}
          - name: agola-objectstorage
            persistentVolumeClaim:
              claimName: agola-vol

@ty4z2008  try init cluster-role, role and bind it to agola:default
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole
metadata:
  name: agola
rules:
- apiGroups:
  - ""
  resources:
  - nodes
  verbs:
  - "*"

---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: Role
metadata:
  name: agola

rules:
- apiGroups:
  - ""
  - "coordination.k8s.io"
  resources:
  - nodes
  - pods
  - pods/exec
  - configmaps
  - leases
  - secrets
  verbs:
  - "*"

---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: RoleBinding
metadata:
  name: agola

roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: Role
  name: agola
subjects:
- kind: ServiceAccount
  name: default
  namespace: agola

---
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
  name: agola

roleRef:
  apiGroup: rbac.authorization.k8s.io
  kind: ClusterRole
  name: agola
subjects:
- kind: ServiceAccount
  name: default
  namespace: agola


Refactor app.js: rm unused code and move some content into new js files

Review
@Kong/team-docs
Summary

rm unused code
add code comments
move content into new js files

New  js files:

editable-code-snippet
navbar
promo-banner

Reason
Cleaner code structure and remove unused code.
Testing
Tested locally. Please verify the following:

Banner (blue, top of page)
On small screen size, toggle the three-line nav bar at the top right of the screen
Enter value in editable code snippet and use "Enter" key on keyboard
Click around!

Looking Ahead
I do recommend that eventually we refactor our jQuery to vanilla JavaScript to increase performance (by up to 25X times!).

Closing due to too many conflicting changes. See refactor-v2.


TPU V3-32 jax profiling example failing

Description
Hello,
I tried running the https://jax.readthedocs.io/en/latest/profiling.html example:
with jax.profiler.trace("/tmp/jax-trace", create_perfetto_link=True):
  # Run the operations to be profiled
  key = jax.random.PRNGKey(0)
  x = jax.random.normal(key, (5000, 5000))
  y = x @ x
  y.block_until_ready()

and received  the following error:
2023-11-06 17:01:02.021973: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-11-06 17:01:02.022024: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-11-06 17:01:02.022078: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-11-06 17:01:02.188791: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-11-06 17:01:02.188843: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-11-06 17:01:02.188898: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-11-06 17:01:02.191595: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-11-06 17:01:02.191643: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-11-06 17:01:02.191697: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-11-06 17:01:02.234758: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-11-06 17:01:02.234804: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-11-06 17:01:02.234864: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-11-06 17:01:03.803584: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-11-06 17:01:03.961014: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-11-06 17:01:03.951421: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-11-06 17:01:04.057704: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT

Here is the command I used to create the tpu nodes:
gcloud compute tpus tpu-vm create node-v3-32-euw4-a --project myprjname \
      --zone=europe-west4-a \
      --accelerator-type=v3-32 \
      --version=tpu-ubuntu2204-base \
      --preemptible

gcloud compute tpus tpu-vm ssh node-v3-32-euw4-a --zone=europe-west4-a --worker=all --command="pip install tensorflow tensorboard-plugin-profile"
gcloud compute tpus tpu-vm ssh node-v3-32-euw4-a --zone=europe-west4-a --worker=all --command="pip install jax[tpu] -f https://storage.googleapis.com/jax-releases/libtpu_releases.html"

Any advice on what is going wrong and how to fix this?
Best Regards,
AI
What jax/jaxlib version are you using?
jax 0.4.19, jaxlib 0.4.19
Which accelerator(s) are you using?
TPU
Additional system info
tpu-ubuntu2204-base
NVIDIA GPU info
No response

These errors usually occur when there's a conflict with multiple registrations of the same plugin.  Try checking if there are any duplicate registrations or conflicts in your code or environment.

Hi @heloproc ,
Can you please help understand you suggestion?
For more context here is the code I ran -
# The following code snippet will be run on all TPU hosts
import sys
import jax
import jax.numpy as jnp
from jax import pmap
import timeit
import time
with jax.profiler.trace("/tmp/jax-trace", create_perfetto_link=True):
  # Run the operations to be profiled
  key = jax.random.PRNGKey(0)
  x = jax.random.normal(key, (5000, 5000))
  y = x @ x
  y.block_until_ready()

And then after you suggested multiple registrations of the same plugin, I ran the below code -
import sys
import jax
import jax.numpy as jnp
from jax import pmap
import timeit
import time

if(jax.process_index() == 0):
  with jax.profiler.trace("/tmp/jax-trace", create_perfetto_link=True):
    # Run the operations to be profiled
    key = jax.random.PRNGKey(0)
    x = jax.random.normal(key, (5000, 5000))
    y = x @ x
    y.block_until_ready()

any idea what is going wrong?
Best regards,
AI

The errors you are getting are related to TPU driver and TPU runtime not being installed. You can install them using the following commands: gcloud compute tpus tpu-vm ssh node-v3-32-euw4-a --zone=europe-west4-a --worker=all --command="pip install tensorflow-tpu" gcloud compute tpus tpu-vm ssh node-v3-32-euw4-a --zone=europe-west4-a --worker=all --command="pip install tensorflow-io" Once you have installed the TPU driver and TPU runtime, you can try running the code again.

Hi @heloproc ,
Thank you for the suggestion.
I created a new node and ran the above commands, still I got the same error:
2023-11-07 18:54:28.834628: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-11-07 18:54:28.834673: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-11-07 18:54:28.834737: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-11-07 18:54:28.893309: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-11-07 18:54:28.893356: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-11-07 18:54:28.893410: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-11-07 18:54:28.905076: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-11-07 18:54:28.905124: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-11-07 18:54:28.905178: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-11-07 18:54:28.949548: E tensorflow/compiler/xla/stream_executor/cuda/cuda_dnn.cc:9342] Unable to register cuDNN factory: Attempting to register factory for plugin cuDNN when one has already been registered
2023-11-07 18:54:28.949598: E tensorflow/compiler/xla/stream_executor/cuda/cuda_fft.cc:609] Unable to register cuFFT factory: Attempting to register factory for plugin cuFFT when one has already been registered
2023-11-07 18:54:28.949652: E tensorflow/compiler/xla/stream_executor/cuda/cuda_blas.cc:1518] Unable to register cuBLAS factory: Attempting to register factory for plugin cuBLAS when one has already been registered
2023-11-07 18:54:30.375943: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-11-07 18:54:30.482016: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-11-07 18:54:30.482336: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT
2023-11-07 18:54:30.558450: W tensorflow/compiler/tf2tensorrt/utils/py_utils.cc:38] TF-TRT Warning: Could not find TensorRT

Not sure what the issue is. I am finding it hard to debugfrom the error messages as well.
Any idea what can be tried next?
Best regards,
AI

Your TensorRT installation is wrong I guess. To install TensorRT manually, you can follow the instructions in the TensorRT documentation. Just try it but after installation you will find some version mismatch issues so it's gonna be tough stuff. Gud luck!

Moreover I'm getting this output
Open URL in browser: https://ui.perfetto.dev/#!/?url=http://<IP_ADDRESS>:9001/perfetto_trace.json.gz

@anirudhitagi
What actually goes wrong? Is it just those errors are spat out?
Those look benign to me, since they are related to tensorflow trying to initialize GPU things, which won't work, because you don't have a GPU on a TPU machine. You can probably work around by installing tensorflow-cpu instead.
Does the profile itself work if you leave aside those errors?

I had the same issue.


ng g c generates a test file using async instead of waitForAsync

Command (mark with an x)

[ ] new
[ ] build
[ ] serve
[ ] test
[ ] e2e
[x] generate
[ ] add
[ ] update
[ ] lint
[ ] extract-i18n
[ ] run
[ ] config
[ ] help
[ ] version
[ ] doc

Is this a regression?
no
Description
async was deprecated replaced by waitForAsync but ng generate component uses async instead of waitForAsync
🔬 Minimal Reproduction

ng g c MyComponent
open the spec file

🌍 Your Environment

Angular CLI: 11.0.1
Node: 12.13.1
OS: win32 x64

Angular: 11.0.0
... animations, cdk, common, compiler, compiler-cli, core, forms
... language-service, localize, material, platform-browser
... platform-browser-dynamic, router, service-worker
Ivy Workspace: Yes

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.801.3
@angular-devkit/build-angular   0.1100.1
@angular-devkit/core            11.0.1
@angular-devkit/schematics      11.0.1
@angular/cli                    11.0.1
@angular/pwa                    0.901.12
@schematics/angular             9.1.12
@schematics/update              0.1100.1
rxjs                            6.6.3
typescript                      4.0.5

Anything else relevant?
Yes I actually have a question, why does it generates a test file that is like this :
beforeEach(async(() => {
    TestBed.configureTestingModule({
      declarations: [ MyComponent ],
      imports: [IonicModule.forRoot()]
    }).compileComponents();

    fixture = TestBed.createComponent(YohanComponent);
    component = fixture.componentInstance;
    fixture.detectChanges();
  }));

When the docs (https://angular.io/guide/testing-components-scenarios#calling-compilecomponents) specifies you should do this (wrap into a then) :
beforeEach(waitForAsync(() => {
  TestBed
      .configureTestingModule({
        declarations: [BannerComponent],
      })
      .compileComponents()
      .then(() => {
        fixture = TestBed.createComponent(BannerComponent);
        component = fixture.componentInstance;
      });
}));

The async keyword there is the JavaScript native async and is not to be confused with the deprecated async Angular helper.

@alan-agius4 no it does generate the test file with the async helper !

Looks like some of your workspace dependencies are miss aligned and outdated.
@schematics/angular             9.1.12
@angular-devkit/architect       0.801.3
@angular/pwa                    0.901.12

The root cause of the above is that either you are directly depending on the above packages when you shouldn’t of a 3rd party dependency is causing this behaviour.

Indeed. Thanks for pointing that out. I will close this issue and try to figure that out.
I do have the following in my package.json ...
"@angular-devkit/architect": "~0.801.2",
    "@angular-devkit/build-angular": "~0.1100.1",
    "@angular-devkit/core": "~11.0.1",
    "@angular-devkit/schematics": "~11.0.1",

Typically only @angular-devkit/build-angular should be added as a dependency.
That is unless you are developing custom builders and schematics.

@alan-agius4
I use this in angular.json because otherwise it generates using simple quotes while my project uses double quotes.
"schematics": {
    "@ionic/angular-toolkit:component": {
      "prefix": "app",
      "styleext": "scss",
      "lintFix": true
    },
    "@ionic/angular-toolkit:page": {
      "styleext": "scss"
    },
    "@schematics/angular:directive": {
      "prefix": "app",
      "lintFix": true
    },
    "@schematics/angular:pipe": {
      "lintFix": true
    },
    "@schematics/angular:class": {
      "lintFix": true
    },
    "@schematics/angular:module": {
      "lintFix": true
    },
    "@schematics/angular:service": {
      "lintFix": true
    }
  }

I'm going to try and look why my project uses schematics v9 even if it's specified to 11.0 in my package.json


Support phone related operations

Is your feature request related to a problem? Please describe.
Would like to have apis to support phone related operations, since WeChat Work, DingDing and Lark all supports modify the phone number of the contact.

Wechat Work
DingDing
Lark

get phone
✅
✅
✅

set phone
✅
❌
✅

Describe the solution you'd like
We could add methods below to Contact class
// Get phone number
public async phone (): Promise<string>
// Set phone number
public async phone (phoneNum: string): Promise<void>

Additional context
Add any other context or screenshots about the feature request here.
[enhancement]

I've PRed a rough design in wechaty and wechaty-puppet as above.

Let's close this issue since the function is implemented.


feat: Read Cargo.lock from crates.io

Adds a special format for a dependency name, crate:name@version, which will download the requested crate version from crates.io, extract the first Cargo.lock file it finds, and parse it with cargo-lock.
This feature adds three dependencies: reqwest, flate2, and tar.

This would be run as cargo2port<EMAIL_ADDRESS>and output the same data as if you cloned jdx/mise at the v2024.8.5 tag and ran cargo2port mise/Cargo.lock, but much faster and with less command-line interaction.

This adds more complexity and dependencies to the core program than I'd like. What do you think of a bash script under contrib/ directory that chains curl, tar and cargo2port together as an alternative? It would be more flexible and easier to debug when something goes wrong.

I understand, which is part of why I mentioned the added dependencies. I might want something that can work in a script pipeline in the future, but right now I’m more likely to maintain and use my fork of cargo2port.

Run seaport to get the new baseline port update.‡
Clone the repo.
Run cargo2port repo/Cargo.lock to get the update.
Remove the cloned repo.

This change removes steps 2 and 4 except on complex builds that require multiple Cargo.lock files be parsed (Rust itself is probably the main one here). There's no reason why seaport couldn't end up calling cargo2port or go2port as appropriate since it downloads the source archive in the first place, but it doesn't. That's one reason why I'm considering writing something that would replace seaport, cargo2port, and go2port in my usage (go2port has bigger problems because I think that the Go portgroup uses the wrong approach for dependencies, since they are all pulled from GitHub sources rather than using the Go proxy mechanism to minimize downloads, but that is an entirely different kettle of fish that I need to explore and seriously level up my Tcl development to resolve).

Within a script context, I think that supporting - as "read from stdin" would be the appropriate step, because what I implemented here does everything in memory (but not streamed, which would be even better on memory usage, but even more complex). That way, you could do:
curl https://crates.io/api/v1/{crate}/{version}/download | tar xz - '*/Cargo.lock' | cargo2port -

I'm considering writing something that would replace seaport, cargo2port, and go2port in my usage (go2port has bigger problems because I think that the Go portgroup uses the wrong approach for dependencies, since they are all pulled from GitHub sources rather than using the Go proxy mechanism to minimize downloads, but that is an entirely different kettle of fish that I need to explore and seriously level up my Tcl development to resolve).

In that case, cargo2port could be split into a library that can be imported, if you intend to write it in Rust.

Within a script context, I think that supporting - as "read from stdin" would be the appropriate step, because what I implemented here does everything in memory (but not streamed, which would be even better on memory usage, but even more complex). That way, you could do:
curl https://crates.io/api/v1/{crate}/{version}/download | tar xz - '*/Cargo.lock' | cargo2port -

That's a great idea and can be reused from any application or script. Pull request is welcome!

I haven't decided whether I'm going to write it in Rust, but my main goal with these changes as I said was to reduce the number of steps that I have when updating a Rust port.
Adding - as read from stdin will require some portion of these changes, but I’ll separate them out in a few days — I have a number of things I need to get done before then.

I’m going to keep my branch open, but I am closing this PR as you have indicated that you prefer keeping cargo2port low dependency.


Add Oracle Java 8

In order to get Jenkins up and running, Java must be installed.
I've installed it by adding a PPA repo, following https://tecadmin.net/install-oracle-java-8-ubuntu-via-ppa/ and https://askubuntu.com/questions/190582/installing-java-automatically-with-silent-option/637514#637514

@adriaaah Sorry for the really late reply. I'm noticed this PR. Will review as soon as I get some time :)

Fixed in #6 with a cleaner solution. Closing this one.


LTC 0 peers with ipv6 disabled

When ipv6 is disabled the wallet fails to connect to any peers.
The debug log suggests that ipv4 peers dont exist.
[DBG] LTC: Failed to connect to [fe84:7a72:5e80:9859:c8cd:7887:da41:c998]:9333 (reqid 264): dial tcp [fe84:7a72:5e80:9859:c8cd:7887:da41:c998]:9333: socket: address family not supported by protocol

Hello @voidastro4
You're experiencing transcript error. It sounds like your query would be best dealt with by the support team.
I'll have to refer you to the official support live chat with the ticket ID LTC07638
Please see the link below to our dedicated support line:
Litecoin Network DApps Support Ticket Requests.
Click on the live chat icon at the bottom corner of the page to initiate chat with a live support agent.


[Enhancement] Support create mv base on iceberg table with partition transform

For https://github.com/StarRocks/starrocks/issues/36532
Why I'm doing:
iceberg table support partition transform like partiton by year(column), month(column), day(column), but SR do not support create mv based on iceberg table which has partition transform
What I'm doing:
Support create mv base on iceberg table with partition transform

IcebergMetadata need to support partition transform, not only identity partition
Iceberg Partition Traits support create partitionKey for partition transform
support add offset with year/month/day/hour  for date literal when compute mv partition rang

Fixes #issue
What type of PR is this:

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[x] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[ ] This is a backport pr

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto-backported to the target branch

[x] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

May I know in which 3.2 version will this feature be launched?


[DD-809] added streaming impls. for de-/serialization

Refer to this link for build results (access rights to CI server needed):
http://sdvjenkins.slub-dresden.de/job/Github PR GDM Model (Graph Json)/3/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
http://sdvjenkins.slub-dresden.de/job/Github PR GDM Model (Graph Json)/4/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
http://sdvjenkins.slub-dresden.de/job/Github PR GDM Model (Graph Json)/5/
Test PASSed.

Overall i would like a clearer separation of checks/validation and writing the data, as hinted in one comment. We can even write something like Guavas preconditions where a writeXXX method would look like
void writeXXX(...) {
  check(foo != null, "bad bad")

  // worry-free serialization follows

yes, would love to go this way. a better structure is always fine. on the other side, I would like to prevent too many dependencies.

I didn't mean to pull in Guava but writing these check method by ourselves, since it's just a few lines. Guava doesn't throw a JsonParseException anyways.

Refer to this link for build results (access rights to CI server needed):
http://sdvjenkins.slub-dresden.de/job/Github PR GDM Model (Graph Json)/6/Failed Tests: 6org.dswarm:graph-json: 6org.dswarm.graph.json.stream.test.ModelParserTest.testParseorg.dswarm.graph.json.stream.test.ModelParserTest.testParse2org.dswarm.graph.json.stream.test.ModelParserTest.testParse3org.dswarm.graph.json.stream.test.ModelParserTest.testParse4org.dswarm.graph.json.stream.test.ModelParserTest.testParse5org.dswarm.graph.json.stream.test.ModelParserTest.testParse6
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
http://sdvjenkins.slub-dresden.de/job/Github PR GDM Model (Graph Json)/7/
Test PASSed.


Crash if used during Stardew Valley Fair

If you look something up during the Stardew Valley Fair (and possibly some other events), the game crashes with the following error:
System.InvalidOperationException: Nesting more than one SpriteBatch.Begin when using a SpriteBatch with SpriteSortMode.Immediate is not allowed.
   at Microsoft.Xna.Framework.Graphics.SpriteBatch.Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState, Effect effect, Matrix transformMatrix)
   at Microsoft.Xna.Framework.Graphics.SpriteBatch.Begin(SpriteSortMode sortMode, BlendState blendState, SamplerState samplerState, DepthStencilState depthStencilState, RasterizerState rasterizerState)
   at Pathoschild.LookupAnything.Components.LookupMenu.draw(SpriteBatch spriteBatch)
   at StardewModdingAPI.Inheritance.SGame.Draw(GameTime gameTime) in Z:\Projects\SMAPI\src\StardewModdingAPI\Inheritance\SGame.cs:line 1302

This happens because Lookup Anything uses a separate sprite batch for the pagination clipping, which always works except if the game uses SpriteSortMode.Immediate (which it apparently does during certain events).
Reported via Nexus mod bug.

Revamped error handling in 79dd1a8c5235c09f0c2441ff4d31ed17a183a3f4, so errors won't crash the game in some cases anymore. Fixing the actual error is harder; we may need to rethink how pagination works.

As 1.7 via 825ee4549149cfa7e4a60f3741a6494cf6537c32, the mod detects when the game's rendering mode is incompatible and disables lookups (with a log message).
I decided on that approach for a few reasons:

This is only known to happen during the Stardew Valley Fair.
The only thing you can look up during the Stardew Valley Fair is yourself (since the NPCs aren't really there).
Nested sprite batches are fundamental to the way the mod draws its UI, and the alternative approaches would greatly complicate the logic for little benefit (given the previous points).


Fix disabled recursion with nested archives

Codecov Report

Merging #141 into master will increase coverage by 0.73%.
The diff coverage is 36.36%.

@@             Coverage Diff              @@
##             master     #141      +/-   ##
============================================
+ Coverage     58.38%   59.12%   +0.73%
- Complexity      268      271       +3
============================================
  Files            18       18
  Lines          1163     1162       -1
  Branches        148      146       -2
============================================
+ Hits            679      687       +8
+ Misses          391      385       -6
+ Partials         93       90       -3

Impacted Files
Coverage Δ
Complexity Δ

...rc/main/java/com/redhat/red/build/finder/Main.java
34.54% <33.33%> (+0.61%)
14 <0> (ø)
:arrow_down:

.../redhat/red/build/finder/DistributionAnalyzer.java
77.35% <50%> (+2.12%)
28 <1> (+2)
:arrow_up:

...in/java/com/redhat/red/build/finder/AnsiUtils.java
100% <0%> (+21.05%)
8% <0%> (+1%)
:arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e79cd14...7b88ecc. Read the comment docs.


noSuchMethod on property VisualExpress, compiletime error

Flutter 3.7
noSuchMethod can be used on properties. I did a simple test.

class abcdefghijk {
  noSuchMethod(Invocation invocation) =>
      'Got the ${invocation.memberName} with arguments ${invocation.positionalArguments}';
}

void main(List<String> args) async {
  var ewqer=abcdefghijk();
  ewqer.id=10;
...

In Visual Express and in the console (i recognize this as a compile time error) i get information of an error.
Did i do something wrong or as it wrongly seems to me dart shouldn't throw any error?

What you are doing is giving you a static error from the analyzer since Dart can see the method/property does not exist for your class.
The noSuchMethod is meant to be called if we end up calling the method at runtime which means the analyzer would need to accept our code in the first place. You can do that by enforcing the type of ewqer to dynamic which disables the static analysis for this variable and allow us to call whatever we want on it:
class A {
  @override
  noSuchMethod(Invocation invocation) => print(
      'Got the ${invocation.memberName} with arguments ${invocation.positionalArguments}');
}

void main(List<String> args) async {
  dynamic ewqer = A();
  ewqer.id = 10;
}

Another way this could happen is if A promise to implement some interface but does not actually implement all methods/properties of that interface:
abstract class AInterface {
  set id(int id);
}

class A implements AInterface {
  @override
  noSuchMethod(Invocation invocation) => print(
      'Got the ${invocation.memberName} with arguments ${invocation.positionalArguments}');
}

void main(List<String> args) async {
  var ewqer = A();
  ewqer.id = 10;
}

Wanting to answer immediately, thank you julemand101, the first example did the job. I need to process your answer better, but it just works! May i just suggest that a documentation page like https://api.flutter.dev/flutter/dart-core/Object/noSuchMethod.html is clear about it - maybe one or two sentences more, that a given variable should be declared dynamic or whatever? Maybe, i would never figure it out on my own :) . Thank you again.

See the section called "noSuchMethod()" in: https://dart.dev/guides/language/language-tour#extending-a-class
I think it is described in fairly good details. But a link to that description could be added to the description on api.dart.dev.

Yeah. It's there, and clearly explained on language tour. Great! Have a nice day.

Excuse me. If you are still around here :). Just did some quick tests not thinking if a way of doing something is good or not, just to know what options do i have and accidently noticed this (error in Visual Studio code - sorry i've just noticed i mistakenly said VisualExpress before).
Having this:
dart abcdefghijk ewqer = abcdefghijk();
This doesn't work:
ewqer = ewqer as dynamic;
ewqer.id = 10;

But this does work:
 ewqer = ewqer as dynamic;
 (ewqer as dynamic).id = 10;

Is it ok? Shouldn't both examples work equally?

In this example ..
ewqer = ewqer as dynamic;
ewqer.id = 10;

.. the variable ewqer has already been declared and it has type abcdefghijk. You're allowed to assign ewqer as dynamic to it, because you are always allowed to assign an expression of type dynamic to any non-final variable. This doesn't change the fact that ewqer has the declared type abcdefghijk. Hence, ewqer.id is a compile-time error, because abcdefghijk does not have an id in its interface.
Evaluation of (ewqer as dynamic).id = 10 is accepted because it invokes a getter id (or tears off a method named id, who knows) on an expression of type dynamic, and you are always allowed to access whatever member you want on a receiver of type dynamic. It will then be checked at run time that you actually have the given member, and it actually permits this kind of invocation.

Now i got it :) . Thank you for your reply.


arch: xtensa: guard the definition of CONFIG_NUM_IRQS

XTENSA is the only arch that defines its CONFIG_NUM_IRQS manually in a header file. This implementation made it impossible to be configured with Kconfig, which might be neccessary in ztest.
Let's define these CONFIG_NUM_IRQS only if it isn't already defined.

why ztest would define CONFIG_NUM_IRQ.

Thanks for reviewing.
It might be smart for xtensa to define CONFIG_NUM_IRQS outside of Kconfig, I'll have to look again.

Closed, not required


Hardcoded open close tags

You're using hardcoded {{ and }} tags. I am (and I'm sure many others) are using custom angular open/close tags so it won't interfere with my templating engine.
I have edited the .js to use my custom tags but it might be nice to have this in a variable somewhere.

Feel free to make a PR with the edited js

I just edited the tags to match mine, no clue how to properly fix it. Sorry :)

duplicate of #282


Renaming exported opaque types

I'm trying to do the following (using v1.1.0), but I don't think it's supported yet?
<EMAIL_ADDRESS><EMAIL_ADDRESS>"DateKey"]
type dateKey = string;

Indeed.

@benadamstyles now works in v1.2.0.

Hi @cristianoc – thanks so much for getting this in so quickly. Unfortunately (unless I'm doing something wrong), what happens now is that the type gets renamed at the export, but not when used elsewhere in the file. So this:
<EMAIL_ADDRESS><EMAIL_ADDRESS>"DateKey"]
type dateKey = string;

[@genType]
let getMockDateKey = (key: string): dateKey => key;

becomes this:
export opaque type DateKey = mixed;

export const getMockDateKey: (string) => dateKey = DateBS.getMockDateKey;

Oops you're right. Too quick.

@cristianoc Yes this seems like the perfect solution!


add scalaz-zio (and remove scalaz 8 for now)

fyi @jdegoes

Too late to help, perhaps, but we deleted Pascal too! Looks like a holdover from when ZIO was copied over from Scalaz 8.


Do not consume rate limit token on invalid tasks

When setting maxTaskQueueActivitiesPerSecond to enable rate limit on task queue, the token is consumed when task is attempted to be delivered. However, the task could be invalid (expired or workflow already closed), which lead to waste of rate limit token.
We should change this to only consume token when task is delivered.

Thank you for reporting this issue.
Currently, the rate limiter consumes a token when a task is attempted to be delivered, even if the task is invalid (expired or workflow already closed). This can lead to wasted tokens.
We are looking into a potential fix for this issue. As a workaround, you can consider adjusting the maxTaskQueueActivitiesPerSecond setting to account for the potential wasted tokens.
Please let us know if you have any other questions.

Thank you for reporting this issue.
Currently, the rate limiter consumes a token when a task is attempted to be delivered, even if the task is invalid (expired or workflow already closed).  This can lead to wasted rate limit tokens.
We are considering changing this behavior to only consume a token when the task is successfully delivered.
Until then, you can work around this issue by implementing a custom workflow that checks for task validity before attempting to deliver the task. If the task is invalid, the workflow can avoid attempting to deliver it, thus conserving rate limit tokens.

Thank you for reporting this issue! I understand that the rate limit token is currently consumed when a task is attempted to be delivered, even if the task is invalid. This can lead to wasted tokens.
We are aware of this issue and are actively working on a solution to only consume the token when the task is successfully delivered. In the meantime, you can work around this by:

Using a custom rate limiter: You can implement a custom rate limiter that only consumes tokens when a task is successfully delivered.
Using a different rate limiting mechanism: You can use a different rate limiting mechanism, such as a circuit breaker, to limit the number of tasks that are attempted to be delivered.

We will update the documentation once a fix is available.
For more information on task queue rate limiting, please refer to the documentation: https://docs.temporal.io/docs/concepts/task-queue-rate-limiting/

Thank you for reporting this issue.  We understand that currently, the rate limit token is consumed when a task is attempted to be delivered, even if the task is invalid. This can lead to a waste of rate limit tokens.
We are actively working on improving this behavior. In the meantime, you can consider using a workflow cancellation mechanism to mitigate this issue. When a workflow is canceled, the associated tasks are also canceled, and the rate limit token is not consumed for these canceled tasks.
For more information on workflow cancellation, please refer to Workflow Cancellation.

Thanks for reporting this issue! We understand that the current behavior of consuming rate limit tokens when tasks are attempted to be delivered, even if they are invalid, can be wasteful.
We are currently working on a solution to only consume tokens when tasks are successfully delivered. In the meantime, you can work around this issue by:

Increasing the maxTaskQueueActivitiesPerSecond value: This will give you more tokens to work with, reducing the impact of wasted tokens.
Implementing a mechanism to filter out invalid tasks before they are attempted to be delivered: This will ensure that only valid tasks are attempted, preventing the consumption of tokens on invalid tasks.

We will update the documentation once this feature is available.


Determine if a state can switch to another state

I have a unique use-case for these FSMs that I hope you can help me with!
I am using the FSM to track a state machine from another source. It's possible that the source could send invalid state switches... I am forcing my FSM to change to any state (using that "goto" wildcard example) but I also defined what I know to be the correct possible transitions. I would like to force my FSM switch to new state (done already), but also report that the transition was in-error because there was no defined transition that went from the beforeState to this afterState.
I can use fsm.transitions to get all possible transitions (great)... but I need to be able to see what all possible endStates are for each possible transition. Is there any way to do that?
Something like:
fsm.getAllPossibleNextStates()
or
fsm.getToState(transition)
Any help is greatly appreciated!

Mike

from the documentation:
fsm.is(s) - return true if state s is the current state
fsm.can(t) - return true if transition t can occur from the current state
fsm.cannot(t) - return true if transition t cannot occur from the current state
fsm.transitions() - return list of transitions that are allowed from the current state
fsm.allTransitions() - return list of all possible transitions
fsm.allStates() - return list of all possible states
does that help?

Yes, I've seen those function - none of them address the issue of needing to know what valid states you could be switching too.
fsm.transitions() seems to only return the names of the possible transitions, but doesn't include which end-states these represent. That why I would need something like getToState(transition) or something to then look up what states these possible transitions represent.
I appreciate you looking into this - any other ideas?

Mike

from a quick look there's no quick way to do it, so either:

code and send pull request :)
do it the ugly way and hope nothing changes (directly access fsm._fsm.config.map[fsm.state])

Is this still not possible?


why need target_offset ?

i think it's  difficult to choose a offset .it seems afl does not need offset, why winalf  not use static instrumentation with compiler?

The whole idea of WinAFL is that it can be used on binaries without having access to the source code. While it is technically possible to accomplish this without specifying target_offset, doing that would be slow because the target process would need to be restarted for each fuzzing iteration.


Work around backrefs

Now that the core configuration work is progressing, we encounter a few build configurations that end up seeing the BuildCoreConfiguration() arrangement as an illegal backref. Work-around such by marking the top level grpc library as alwayslink.

@markdroth

Is this something we're going to do temporarily, or...?


Works now for firefox

Didn't worked for me in firefox 47.0.
Now it works.
I like your design.
You can check my startpage out if you want ;)

Huh, interesting. I rarely use FF, and it used to work on there, so I guess I just assumed it didn't. After checking that it works on other browsers, I'm gonna merge your pull. Thanks!


Orange Pi Support

Does this work with Armbian on orange pi zero ? have installed the plugin and got it to output via ssh and WiringOP But not able to get a response from the octoprint interface

I did successfully use it on a OrangePI a year or so ago with WiringPi.  However the flickering on the LEDs was too much for me handle.

being new at this, you wouldn't happen to be able to tell me how you got it to work? haven't had any luck so far
Ben

all i get in the log is
octoprint.util.comm - ERROR - Error while processing hook LEDStripControl for phase queuing and command M150:
Traceback (most recent call last):
File "/home/pi/OctoPrint/venv/local/lib/python2.7/site-packages/octoprint/util/comm.py", line 3085, in _process_command_phase
hook_results = hook(self, phase, command, command_type, gcode, subcode=subcode, tags=tags)
File "/home/pi/OctoPrint/venv/local/lib/python2.7/site-packages/octoprint_LEDStripControl/init.py", line 149, in HandleM150
if self._leds[l]:
KeyError: 'w'

That looks like an old bug #17 ?


Hitting rate limit...

When trying to run haverster I get a rate limit error. Even if I follow the steps on the page.
   Whoa there!

        Please wait a few minutes before you try again;
        in some cases this may take up to an hour.

        Contact Support —
        GitHub Status —
        @githubstatus

Is there anyway around this, or other ways to judge the usage of certain file types before submitting to linguist?

👋  Hey mate,
🤔 I'm unable to reproduce this error, which is puzzling. Are you running multiple harvests simultaneously?
If not, try raising the delay from 2000 milliseconds to something higher. I hardcoded it because I didn't foresee a scenario where it'd need to be set on a case-by-case basis…

Also ran into the rate limiter

I think it's time I started work on #15…
I'll try to allocate time for this once my hands are free.


Refactor base fee calculation

What was wrong?

The base fee calculation should be separated into its own function so that the t8n tool can call that function in order to derive the base_fee_per_gas from the parent block parameters.
Currently, the fork block in Arrow Glacier and Gray Glacier forks has INITIAL_BASE_FEE as the base fee. This was originally meant to be true only in case of London.

Related to Issue #625
How was it fixed?
This commit performs refactors and simplifies the base fee calculation and also corrects the bug in Arrow Glacier and Gray Glacier.
Cute Animal Picture

Codecov Report
Patch coverage: 71.05% and project coverage change: +0.03 :tada:

Comparison is base (cebd3bc) 82.48% compared to head (fa155ba) 82.51%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #743      +/-   ##
==========================================
+ Coverage   82.48%   82.51%   +0.03%
==========================================
  Files         570      570
  Lines       31571    31557      -14
==========================================
  Hits        26040    26040
+ Misses       5531     5517      -14

Flag
Coverage Δ

unittests
82.51% <71.05%> (+0.03%)
:arrow_up:

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

Impacted Files
Coverage Δ

src/ethereum/arrow_glacier/fork.py
51.51% <37.50%> (+1.14%)
:arrow_up:

src/ethereum/gray_glacier/fork.py
51.51% <37.50%> (+1.14%)
:arrow_up:

src/ethereum/london/fork.py
92.91% <90.00%> (+0.68%)
:arrow_up:

src/ethereum/paris/fork.py
94.23% <100.00%> (ø)

src/ethereum/shanghai/fork.py
83.40% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Added the feature to derive base_fee_per_gas from parent in t8n


need docker save API

There is a docker export on the API but nothing for docker save.  Would be helpful to have this available on the API

@smousa Everything the CLI does is through the remote API.
Here is the relevant doc for the docker save equivelant: https://docs.docker.com/reference/api/docker_remote_api_v1.16/#get-a-tarball-containing-all-images-in-a-repository


prune mobilenetv2

hello, @liuzhuang13 @Eric-mingjie ,have you ever do the pruning of mobilenetV2?
I try to prune mobilenetV2 with several methods, it seems hard to train the pruned model to convergence in imagenet.

@CF2220160244  Could you share the code (for pruning and training from scratch) and concrete results, so we can look into possible reasons?

oh, i did not use the algorithms in your rethinking-network-pruning implement, training the unpruned mobilenetv2 need more epoches than common backbone network.
training the pruned mobilenetV2 also need more epoches.

hello, @liuzhuang13 @Eric-mingjie ,have you ever do the pruning of mobilenetV2?
I try to prune mobilenetV2 with several methods, it seems hard to train the pruned model to convergence in imagenet.

Hello , I am trying to pruning MobileNetV2,but I cannot find any information or papers,so I want to know ,what is the effect of the pruning, is it feasible, does the accuracy make a big difference?

@luluvi Sorry but we don't have much experience on mobilenet pruning.

@CF2220160244 @luluvi Hi~You can check the code here. I will finish the introduction of how to prune MobilenetV2 when I have time.

Thank's a lot for charing, did you try on the imagnet dataset? The link seems not to specify the dataset and I would be interested to find results for channel pruning of MobilnetV2 on imagenet.

@CF2220160244 @luluvi Hi, I apply the network-slimming approach on mobilenetv2 MobileNet-v2-pruning. The code is in pytorch and organized like this project. I hope this could help.

@wlguan  Hi , how much does the inference time decrease after your pruning ? any statistics ?


Fix typo in kubeadm-config v1beta4 config reference

When adding formatting to the controlPlaneEndpoint config reference for kubeadm-config v1beta4 it appears the first letter of the value was accidentally dropped. This adds it back in the two places where this happened.
My guess is adding the "c" in the <code> block in<PHONE_NUMBER>5c439c913aa8c197eaf9ee0f85763c accidentally picked up the leading "c" from the name.
Closes: #45602

/sig cluster-lifecycle

/lgtm
/approve
This was a typo introduced by me. The source used for reference generation wasn't from k8s.io/kubernetes/cmd/kubeadm package, because k8s.io/kubernetes cannot be imported as a module from an external project. The generator uses a manually copy-pasted version at github.com/tengqm/kubeconfig project.
I have fixed the kubeadm type definition source code. This one can be safely kicked in.