Read precision

Hi, golles
I've been running the component for a while but my heat readings have a precision of only 2 decimal places. I see on your screenshots that you have 3.
Do you know if it is meter specific or if it's dependent on meter settings? I'm running on Multical 601.

Hmmm, this might be related to your meter, the component doesn't do any rounding or reducing on the decimal place.
What is even odder, is that the thousand separator (the dot) is there

Looking at my own meter now, I see the value is 27,491 GJ. With the comma separator, it looks like the value needs to be *1000 to fix this

Thanks for looking into it.
So as i understand it's raw value sent by the meter and multiplying it will not improve accuracy, we'll just end up with 0 at the end.
I can imagine it could depend on the configuration done by the technician who mounted it (locale etc.).
I will try again to call the company delivering the heat, but I don't have high hopes.
My current workaround is to use integration sensor with the Power reading provided by integration, this way I also get kW for energy dashboard. It seems accurate enough for now.
P.S.: I already voted for your Feature Request for GJs as an energy unit ;)

This should be fixed here, I'll try to look into it soon...
Thanks for voting, yesterday I noticed on the forums that gj will be added to long term statistics, so that's good news.

I did a bit of checking as I'm working on an improvement for this component and I do think the reading is correct.
The reason you do only see 2 decimal points is that the third decimal is a 0 and the HA recognizes the value as a number and shows it like this.
eg 380.89 is the exact same as 380.890 and<PHONE_NUMBER>0 (I think you get my point now)


Refactor/word hashing

for #452 not the final version, but this will resolve the memory issues.

Remove word hashing from dssm preprocessor into point/pair/list generator.
update integration test.

Codecov Report

Merging #463 into 2.0 will not change coverage.
The diff coverage is 100%.

@@         Coverage Diff         @@
##            2.0   #463   +/-   ##
===================================
  Coverage   100%   100%
===================================
  Files        38     38
  Lines      1252   1284   +32
===================================
+ Hits       1252   1284   +32

Impacted Files
Coverage Δ

matchzoo/preprocessor/dssm_preprocessor.py
100% <ø> (ø)
:arrow_up:

matchzoo/generators/pair_generator.py
100% <100%> (ø)
:arrow_up:

matchzoo/generators/point_generator.py
100% <100%> (ø)
:arrow_up:

matchzoo/generators/list_generator.py
100% <100%> (ø)
: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 da0dc41...d235a50. Read the comment docs.


Pr fix docked viewport window resizing

When the viewport is docket within the app window and other circumstances apply (e.g., the app window is not maximized, or it is maximized but you have a secondary monitor to the right), rescaling the viewport rescales the app window.
This PR changes this behavior:

If the viewport is undocked, the behavior remains the same.
If the viewport is docked, now changing Tools/Preview Resolution value do change the scene resolution but not the docked viewport panel size.

@trevorvanhoof https://github.com/trevorvanhoof/sqrmelon/pull/39/commits/13089140acba7f263339d788e47faeb8d6546a21


World's bringToTop docs are a bit confusing

This Issue is about (delete as applicable)

An error in the documentation

http://phaser.io/docs/2.6.2/Phaser.World.html#bringToTop
Since world is a 'special' group, I interpreted

Brings the given child to the top of this group so it renders above all other children.

meant that the child would be brought in front of all other sprites in the world, not just the ones in the same group. Any way we could clear this up?

It's an inherited method from DisplsyObjectContainer, which most things
extend. Change it, to make more sense for World specifically, and it'll
make less sense for everything else!
On Saturday, 10 September 2016, James<EMAIL_ADDRESS>wrote:

This Issue is about (delete as applicable)

An error in the documentation

http://phaser.io/docs/2.4.4/Phaser.World.html#bringToTop
Since world is a 'special' group, I interpreted
Brings the given child to the top of this group so it renders above all
other children.
meant that the child would be brought in front of all other sprites in the
world, not just the ones in the same group. Any way we could clear this up?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/photonstorm/phaser/issues/2749, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAKCfOmO5NEVqKwLoJ2d43TIanYLtu-5ks5qojcCgaJpZM4J5oo6
.

--
Photon Storm Ltd.
http://www.photonstorm.com
Skype: richard.davey
Twitter: @photonstorm
Registered in England and Wales.
Company ID: 8036404
VAT Number: 136 4333 27

Thats what i thought. I suppose you could override the function in world's source and then just return the super? That'd probably allow more specific documentation + easier consumer usage, but would muddy up the code a bit. What do you think?

Nah I'm not willing to add in code just to do this.
Am pretty sure this can just be overridden by providing a jsdoc block in the World file instead, that replaces the inherited one when it exports.


[Popup] popup on hover?

It sounds like this is mostly for clicking on something (and presumably hitting the space key or Enter key when focused) to get something else to popup. But what if it should popup when hovered (or focused), like a tooltip? Could that be done with this same mechanism, perhaps using an attribute like activate="hover|focus" on the button?

This can be done with CSS if you order the HTML in a specific way.
https://jsfiddle.net/ftqxbz6e/

<input type="button" value="Popup">

Here is a CSS-enabled popup.

It's not very clean though, and I'm sure there's situations in which it wouldn't work.

@Yay295 this issue is in regards to the <popup> proposal.

Hi folks! <popup> has moved over to OpenUI, and dramatically changed shape in the meantime: https://open-ui.org/components/popup.research.explainer. I'm not sure if this issue is still particularly relevant, but if so, please re-file over in their issue list: https://github.com/openui/open-ui/issues


Allow user to specify model in TunedModel as arg instead of kwarg

To close #154

Codecov Report

Merging #175 (0174e93) into dev (76b3718) will increase coverage by 0.12%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #175      +/-   ##
==========================================
+ Coverage   87.25%   87.38%   +0.12%
==========================================
  Files          12       12
  Lines         620      626       +6
==========================================
+ Hits          541      547       +6
  Misses         79       79

Impacted Files
Coverage Δ

src/tuned_models.jl
93.69% <100.00%> (+0.16%)
: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 76b3718...0174e93. Read the comment docs.


Getting a warning in StudioPro console "A locale object was not found for the provided string ["nl"]."

Hi,
Thanks for the advanced datepicker widget.
As the title says, we'regetting a warning in the console when adding the widget (we have nl_NL and en_US as languages in our apps).

Hereby the dutch translations we use:
en_US | Time | Today | Toggle calendar | Show | Select | Week | Month | Select Month | Select Year | Not selectable | Clear
nl_NL | Tijd | Vandaag | Wijzig | Toon | Selecteer | Week | Maand | Selecteer maand | Selecteer jaar | Niet mogelijk | Annuleren
Kind regards, Lourens

Hi,
Thank you for the help! I've added your translations to release v1.0.1 in the marketplace.
I've also fixed the issue generating that warning.


Issues/#195 spin ctx

This PR addresses GitHub issue: #195
Briefly describe the changes proposed in this PR:

Fixed handling of multiple contexts

Make sure you've followed the Contributor Guidelines. In particular (please tick to indicate you've taken care of it):

[x] RDF4J code formatting has been applied
[x] checked against user submitted data
[x] all tests succeed

It's fine for me either way, but did you intend to put this in master instead of the 2.0 branch?

Nop, just blind clicking. I'm sure I set the default to be release/2.0 but doesnt seem to make any difference.


Improvements on the sync API and working on persistence

Codecov Report

Merging #203 into master will decrease coverage by 1.09%.
The diff coverage is 32.1%.

@@            Coverage Diff            @@
##           master     #203     +/-   ##
=========================================
- Coverage   60.36%   59.26%   -1.1%
=========================================
  Files         310      315      +5
  Lines        7654     7769    +115
=========================================
- Hits         4620     4604     -16
- Misses       3034     3165    +131

Impacted Files
Coverage Δ

...rCore/CodeGenerated/EnumProperties.generated.swift
0% <0%> (ø)
:arrow_up:

...erPersistence/Realm/Entities/ShowEntityRealm.swift
0% <0%> (ø)
:arrow_up:

...rSync/CodeGenerated/EnumProperties.generated.swift
0% <0%> (ø)
:arrow_up:

...ence/Realm/CouchTrackerSync/Models/ShowRealm.swift
0% <0%> (ø)

...ouchTrackerSync/DatabaseEnvironmentFunctions.swift
0% <0%> (ø)

.../CouchTrackerSync/Models/WatchedEpisodeRealm.swift
0% <0%> (ø)

...ersistence/Realm/Entities/EpisodeEntityRealm.swift
0% <0%> (ø)
:arrow_up:

...kerCore/CodeGenerated/EnumClosures.generated.swift
0% <0%> (ø)
:arrow_up:

...e/Realm/CouchTrackerSync/Models/EpisodeRealm.swift
0% <0%> (ø)

...alm/CouchTrackerSync/CouchTrackerPersistence.swift
0% <0%> (ø)

... and 13 more

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 5b884a0...fcf3632. Read the comment docs.


Meeting information is duplicated

The bot that is scheduling the meetings duplicates most of the information when a meeting is rescheduled. It would be cleaner if the main part of the issue was updated and then noted it was edited. Since users could also edit the main section, clearly indicating what is auto generated would be helpful. This would enable the bot to simply update the section of the main body that it is responsible for.

Duplicate issue. Closing in favor of https://github.com/Azure/azure-sdk-tools/issues/5401


Error: Could not create user. The registration process is not available.

I am getting the following error after I login:
Error: Could not create user. The registration process is not available.

This seems to be caused by this: https://github.com/auth0/wp-auth0/blob/fed6a4916de0e74d365653f3a6e4a6cb0e78c6d6/lib/WP_Auth0_Options.php#L9 which means that you need to turn on WP user creation to have newly visiting Auth0 users work. This seems wrong.

@cancan101 if you turn the WP "Anyone can register" off, the signup is disabled on lock, why does it seem wrong to you?

Presumably the user has already registered, just not with the WP site. Unchecking this means that the WP will not allow an already registered user to "login for the first time" to the WP site.

oh, ok. thanks


add hero styling and background image

Requires https://github.com/mysociety/alaveteli/pull/2645

This PR should be made against develop as it relies on features not yet released in alaveteli-core.
develop currently has some differences to master, and I'm not sure why. I think we should reconcile the branches before we actually try to merge this PR.
I'm going to have a look at why the differences exist and try to resolve them. I'll send an update once I've been able to do this.

master and develop are now up to date. The only differences were the new icon images (#40) that hadn't been merged across. This branch can now be PR'd to develop.


fix: remove _order_book_stream_listener_task from huobi order book tracker

Before submitting this PR, please make sure:

[x] Your code builds clean without any errors or warnings
[x] You are using approved title ("feat/", "fix/", "docs/", "refactor/")

A description of the changes proposed in the pull request:
This fixed the issue:
https://github.com/hummingbot/hummingbot/issues/5220
During the debugging, I figured out the listen_for_subscriptions  function is called twice and caused some error like
Traceback (most recent call last):
  File "/Users/XX/src/hummingbot/hummingbot/connector/exchange/huobi/huobi_api_order_book_data_source.py", line 160, in listen_for_subscriptions
    async for ws_response in ws.iter_messages():
  File "/Users/XX/src/hummingbot/hummingbot/core/web_assistant/ws_assistant.py", line 69, in iter_messages
    response = await self._connection.receive()
  File "/Users/XX/src/hummingbot/hummingbot/core/web_assistant/connections/ws_connection.py", line 62, in receive
    msg = await self._read_message()
  File "/Users/XX/src/hummingbot/hummingbot/core/web_assistant/connections/ws_connection.py", line 86, in _read_message
    msg = await self._connection.receive(self._message_timeout)
  File "/Users/XX/opt/anaconda3/envs/hummingbot/lib/python3.8/site-packages/aiohttp/client_ws.py", line 216, in receive
    raise RuntimeError("Concurrent call to receive() is not allowed")
RuntimeError: Concurrent call to receive() is not allowed

https://github.com/hummingbot/hummingbot/blob/d3dbc4064fcf66332bc710e40d278f1f853d23a1/hummingbot/connector/exchange/huobi/huobi_api_order_book_data_source.py#L151
And figure out that huobi_order_book_tracker.py has duplicate logic as parent class:
https://github.com/hummingbot/hummingbot/blob/d3dbc4064fcf66332bc710e40d278f1f853d23a1/hummingbot/core/data_type/order_book_tracker.py#L95
Tests performed by the developer:
Start PMM startegy on huobi.
Previous behavior:

It errors quickly after a few seconds
Current behavior:
it runs for a few minutes without erroring, extra logging shows it's receing messages correctly.

Tips for QA testing:
./clean && ./compile

Run a PMM on huobi.

Should I refer to this commit: https://github.com/hummingbot/hummingbot/commit/93b63ca72378ba64550487b8701c855caf801d76?diff=unified#diff-66a8c19cf795c4c882f97c2a361f1593549fc0fbc2cdd64cc4402e595c464762
to refactor the code to latest standard?
@cardosofede


Add 2.80+ support

Adds support for blender-2.8 sacrificing support for all the previous versions of Blender.

Codecov Report

Merging #5 into master will not change coverage.
The diff coverage is 83.33%.

@@           Coverage Diff           @@
##           master       #5   +/-   ##
=======================================
  Coverage   80.96%   80.96%
=======================================
  Files           4        4
  Lines         331      331
  Branches       54       54
=======================================
  Hits          268      268
  Misses         54       54
  Partials        9        9

Impacted Files
Coverage Δ

animation_retarget/__init__.py
100% <ø> (ø)
:arrow_up:

animation_retarget/core.py
90.95% <100%> (ø)
:arrow_up:

animation_retarget/ui.py
33.82% <33.33%> (ø)
: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 3c1a7dd...f24d48e. Read the comment docs.


Python 3.7 is the minimum version supported

Hi @benleb ,
First of all, thanks for this awesome project, I use it on my setup and it saved me hours of my life :)
I am raising this issue due to a topic from the HA community. Due to the use of await keyword inside f-strings, this code is only compatible with Python >= 3.7. However, the minimum supported version of Python for AppDaemon is Python 3.6 (https://github.com/home-assistant/appdaemon/blob/e82bd7cd63e8f972315b4606f63d8e91227f4da5/setup.py#L29). This means that if someone runs your app on Python 3.6, it will crash (see topic from above).
I am not creating this issue so you make it compatible with Python 3.6 (like AppDaemon). I just wanted you to know this in case you were not aware of it and you are wiling to fix it.
Thanks :)

The error logs that appear when running on Python 3.6:
2020-05-19 15:55:00.319878 INFO AppDaemon: Initializing app ench using class EnCh from module ench
2020-05-19 15:55:00.322201 WARNING AppDaemon: ------------------------------------------------------------
2020-05-19 15:55:00.322325 WARNING AppDaemon: Unexpected error initializing app: ench:
2020-05-19 15:55:00.322416 WARNING AppDaemon: ------------------------------------------------------------
2020-05-19 15:55:00.322669 WARNING AppDaemon: Traceback (most recent call last):
  File "/usr/local/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 2051, in check_app_updates
    self.init_object(app)
  File "/usr/local/lib/python3.6/site-packages/appdaemon/appdaemon.py", line 1567, in init_object
    modname = __import__(app_args["module"])
  File "<fstring>", line 1
    (await self._name(entity))
              ^
SyntaxError: invalid syntax

Thanks, its even 3.8 ;) And also documented in the readme now :)


Implement goto and label in DMVisitorProcBuilder and DMProc

Disclaimer: I have no idea if this works.
I have not actually tested this with sample DM code.

[snip]
To fix this I'd rather change the behavior of loops than the implementation of goto.

This is above my level of comprehension for this project, so should I close this or leave it open until you address that?

Leave it open

After that's fixed, I'm going to just merge this and create a new issue for the loop problem.

Done


Create a Basic Workflow in SAP Business Application Studio

Tutorial: https://developers.sap.com/tutorials/cp-workflow-2-create-module-cf.html
Hi there,
Issue on the step 3 - BAS cannot open the Workflow editor.
I have raised an internal ticket to support, if somebody can look at it:<PHONE_NUMBER>
Problem description:
BAS cannot load embedded editor functionality for the Workflow.
It was working good until yesterday, I could edit my workflow using the workflow embedded editor, but started throwing bellow this morning.
The error message pops as a "Notification" in BAS:
"The embedded editor functionality failed to load. This could happen due to bad connectivity or loading errors. Please check the browser console logs for more information."
Steps to reproduce the issue(incl. used master data and/or business documents numbers):
Open the web browser;
Browse to https://2bffd846trial.eu10cf.trial.applicationstudio.cloud.sap/index.html#ws-csrd9
Right click file "/home/user/projects/onboarding/approvals/workflows/onboard.workflow"
Click "Open With"
The only option available is "Code Editor", it should allow to edit using the workflow editor.
Additional information to reproduce the issue, e.g. server, browser version, operating system, ...
Thanks,
Thiago.

Hi Thiago,
I have just learned that the issue has been solved and that the workflow editor should work again on Trial SBAS. Please let me know should the error persist.
Regards, Astrid

Hi Thiago,
I have just learned that the issue has been solved and that the workflow editor should work again on Trial SBAS. Please let me know should the error persist.
Regards, Astrid


Deselecting elements in Simulator

Describe the bug
Currently, to deselect the selected elements on the simulator, we have to double click on a clear space.
To Reproduce
Steps to reproduce the behavior:

Go to Simulator
Select one or more elements
Double click somewhere else to deselect

Expected behaviour
As used in Windows and everywhere as far as I remember, a single click should deselect the element.
Screenshots

can i work on it ?

Work on your proposal, please. Take up issues after 31st.

@nitin10s
DONE ! 🙂


Active IPTT filter with no options

I think filters that don't have any options are supposed to be disabled?  If so, in the "Empowering Sustainable Communities in Gaza - WASH" program, when the Group by RF level is checked in the admin (and the auto-numbering is selected), the Level filter is empty but still active.

PASSED.  Level filter is disabled when there are no levels.  So are the other filters.


In v4 FormBuilderImagePicker link for package is down.

same problem
in 4.20 release note : https://pub.dev/packages/flutter_form_builder/changelog#420---29-dec-2020
form_builder_image_picker link cannot find any Additional plugin

Same issues same, I cannot run the project

Sorry for the delay guys, this should be fixed now.


back to top button size made smaller

ok @deepbeatz
but please next time follow the PR Template.
Close #97


fix CSSNodeList memory leak

CSSNodeListFree does not free the list->items memory

By analyzing the blame information on this pull request, we identified @emilsjolander to be a potential reviewer.

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at<EMAIL_ADDRESS>Thanks!

Thanks for the PR. The original repo with this code is actually https://github.com/facebook/css-layout -- could you open a new PR with this same code there?

Sure


Fix typo TreeMapp -> TreeMap

Nice catch @kryger
I guess, since commons-beanutils original code is still hosted on Subversion, I am not able to merge your pull request. Will drop a message to the mailing list to check how to merge this PR.
The Travis CI error is not related to your change. Looks more like a glitch in Travis CI build for Java 8, though all tests passed, the build failed after that for some weird reason.
Thank you
Bruno


Can messages be sent manually?

Sorry if this is too similar to the issue I made in the RSMP ruby gem repo, but this might be more related to the core specification itself. Once the site and supervisor are established, it seems as though all messages are expected to be sent by the equipment itself. Is this correct? Or can the user send a message through this established connection somehow, even without equipment connected?

Once the site and supervisor are established, it seems as though all messages are expected to be sent by the equipment itself. Is this correct?

Not really. Several types of messages can be sent by the supervision system. E.g. Alarm acknowledge, Alarm suspend/resume, StatusRequest, StatusSubscription, CommandRequest, Watchdog, and so on.

Or can the user send a message through this established connection somehow, even without equipment connected?

It depends on how use define user and how to you establish connection without connected equipment. I'm a bit confused.

I suppose you could send a Watchdog message manually. You should receive a MessageAck as a response.

Thanks for the response. The impression I get is that the site and supervisor are more or less autonomous. They do what they're supposed to do after receiving the messages they're listening for. I guess my confusion is where these various types of messages are meant to come from.
From the implementation workflows, it seems that the messages are expected to be initiated by TLC equipment or a simulator software rather than manual user input. Technically the latter would be possible, but it doesn't seem to be a specific component of this protocol. Have I understood that correctly?

Yes, I think you're right.
The  RSMP simulator for windows were made to be an interactive simulator were the user could do things manually.
The rsmp_validator and rsmp ruby gem were focused on being able to automate validation of RSMP implementations by running test cases with rspec. I think they are lacking an interactive mode. However, it would be a great feature.

Then if there were a piece of equipment, say a small computer, directly connected to a TLC via RSMP connection, what would be the expected method for it to begin asynchronous message exchange after establishing itself as a site according to this protocol?
I'm modifying the ruby gem API to allow for a message to be sent before the indefinite wait for the asynchronous task's completion begins, but I'm having trouble getting the recipient to acknowledge it. It seems like sending a message from one box to another should be a simpler task than I'm making it out to be. Is there some simpler method I'm overlooking?
Thanks.

Then if there were a piece of equipment, say a small computer, directly connected to a TLC via RSMP connection, what would be the expected method for it to begin asynchronous message exchange after establishing itself as a site according to this protocol?

If you connect a piece of equipment directly to a TLC, my recommendation is that the equipment acts as a supervisor (and not a site). I know that RSMP defines both communication supervison-site as well as site-site, however site-site was specifically added in order to support coordnation between TLC's and I don't know how well TLC's actually supports it when used for other purposes. On the other hand, supervision-site is well tested.
When using supervisor-site, the supervisor needs to listen to a port (typically 12111). The site (TLC) is expected  to connect to the supervisor (in this case the equipment).
Regardless of using supervision-site or site-site communication, the section on communication establishment defines when asynchronous message exchange can begin. Basically after the version messages and the first watchdog messages has been exchanged.

I'm modifying the ruby gem API to allow for a message to be sent before the indefinite wait for the asynchronous task's completion begins, but I'm having trouble getting the recipient to acknowledge it. It seems like sending a message from one box to another should be a simpler task than I'm making it out to be. Is there some simpler method I'm overlooking?

Sorry, I don't know the ruby gem well enough. Perhaps @emiltin can answer when he gets back.

@DavidAdamsBluecity Is this issue still relevant? Let me know if this is still an issue for you or if we can close it.

Definitely resolved for me. Thanks!


Incompatible to Django 1.7

Hey there,
Thanks a bunch for your work. Found the following incompatibility towards Django 1.7:
Traceback (most recent call last):
  File "/var/lib/sso/mama_cas/forms.py", line 41, in clean
    self.user = authenticate(username=username, password=password)
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/__init__.py", line 51, in authenticate
    for backend in get_backends():
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/__init__.py", line 26, in get_backends
    backends.append(load_backend(backend_path))
  File "/usr/lib/python2.7/dist-packages/django/contrib/auth/__init__.py", line 20, in load_backend
    return import_string(path)()
  File "/usr/lib/python2.7/dist-packages/django/utils/module_loading.py", line 26, in import_string
    module = import_module(module_path)
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/usr/lib/python2.7/dist-packages/django_auth_ldap/backend.py", line 59, in <module>
    from django.contrib.auth.models import User, Group, Permission, SiteProfileNotAvailable
ImportError: cannot import name SiteProfileNotAvailable

Nevermind, I see this is a bug of django_auth_ldap and none of yours.

That's correct, the latest versions of MamaCAS should fully support Django 1.7. I'm guessing you're running an older version of django-auth-ldap, as this issue appears to have been resolved in 1.2.0. I'm currently running the latest version of django-auth-ldap with Django 1.7 with no problems.
Thanks!


Solves todos

Nice work!
For clarity you could have used mod as an infix operator as follows:
 n `mod` 2 == 0
But nice understanding of operators as functions!
Keep up the nice work!


Change boot GPIO states

Hi,
I am currently buiding the Pyro64 to test it.
One thing i would need it for is to able to change GPIO state as soon as possible.
The reason are:

we have a power button for which we need to put the GPIO state to 0 as soon as possible. That button is used to power on the device and we need to tell it we are good and the edison is started
we have a pump connected to gpio which state makes it start at full speed. We would like for the pump to be off on start (less noise)

Can i do that using a recipe? Could someone point me to the right way to do that?
Sorry i am new to building my own linux image
Thanks

@farfromrefug During boot first the microkernel starts (from ROM), then U-Boot, then (as it is now) after pressing  you manually boot the kernel with initramsfs which then switchroots to the rootfs on the sd card. Eventually the manual intervention will go away (but currently I want always to automatically fall back to a working original image). But I think the fastest point in time to reset a gpio is in U-Boot. I don't know if you feel like patching U-Boot for this? I will be working on getting U-Boot to provide acpi tables to an acpi enabled kernel. It might be possible to get his done by providing some acpi stuff to U-Boot. As I understand U-Boot has an interpreter for that. More info here: https://edison.internet-share.com/wiki/ACPI

@htot Yes that s what i was thinking too. I also talked with @esialb and that s what he said too.
Now about patching U-Boot i think i can do it. But honestly i don't know anything about it or ACPI.
If you are willing to help me a bit that would be great!
If i understand correctly the ACPI stuff is not working yet but you are working on it?
If so let me know if i can help in anyway too.
Thanks

No it works (but not everything is there yet). Andy Shevchenko works on that. I just trying to make it build with yocto.

Ok great do you have a sample code anywhere? I or maybe I should ask @andy-shev directly?
Thanks again

The acpi code is linked from here https://edison.internet-share.com/wiki/ACPI

U-Boot does not have any ACPI interpreter. It just provides a minimum tables needed to boot a board on certain OS(es). Basically what you, @farfromrefug, need is to create a pinctrl/GPIO driver for Merrifield in U-Boot (followed by enabling of gpio command there) where you control pins as needed. You may take Linux' driver as a base.

@andy-shev thanks it is what i was afraid of when i first started to look at this.
Linux driver is something totally new to me but i might try(don't really have a choice).
That's what you are talking about right?
https://github.com/torvalds/linux/blob/master/drivers/gpio/gpio-merrifield.c
I even see you are a contributor !
I might try with this.
Thanks @andy-shev for pointing me there.

@andy-shev Made a a little bit of research about how i could achieve this.
I think i figured it out:

adding the merrifield driver to you u-boot edison branch
update edison_defconfig to enable GPIO command

Now from what i have seen i can simply upgrade my u-boot without touching my kernel or linux, is that right?
I am currently using jubilinux. Would upgrading the u-boot still work?
Thanks and sorry for all the questions

Newer u-boot still boots the original edison image. You can read in the wiki for this repo how to upgrade. I few env variables need to be manually modified. Likely jubilinux will also still boot, otherwise you can always go back to the original u-boot.

@htot thanks just pushed a compile uboot with success! Now i have a final question. If i want to update my "flash image" with that u-boot. Simply copying the u-boot.bin is enough? I see a u-boot.img in my "flash image" which is not built by u-boot.

That one would be used by flashall --recovery (xfstk). And of course the env still needs to be fixed up.

@farfromrefug
There are two parts, pin control or Family-Level Interface Shim (FLIS) and GPIO. Thus, if you want to switch function of the pin (pin muxing) you need pin control stuff to do it, GPIO drivers works only on GPIO function itself.

@andy-shev thanks for the info. I will to look deeper at this. To be honest for now i have no idea on how to do this. Will dig deeper.

@farfromrefug Have you gotten any further with this issue? If so would you like to share the result?

To support I²C #6 @staroselskii added minimal pin control stubs. You perhaps may extend this.

This is a U-Boot related question and since we are switched to upstream, this should be asked in official mailing list of U-Boot project. Closing here.


Extension Host Terminates with Remote Server During Upload

The extension works fine on my local server. But a remote server I can SFTP with WinSCP has suddenly stopped working in the latest VSCode release. Anyone else have this issue and found a resolution for it?
The Extension Host terminates when I select a file and the choose Upload.

This looks like it was reported again as #883. I will close this one.


feature: move snapshot management to container's create and remove

Signed-off-by: skoo87<EMAIL_ADDRESS>
1.Describe what this PR did
Now, when create a container, will create a snapshot with container's
id. After container be stopped, the snapshot will not be removed until
the container be removed.
2.Does this pull request fix one issue?

3.Describe how you did it
4.Describe how to verify it
5.Special notes for reviews

Could you push hard again? Since it does not trigger CI travis testing. @skoo87

ci seems not to work... @allencloud


Adding Drops to Cyberzombies

Add the Cyberware Components to Cyberzombies.

Aren't we adding basic capacitors as a rare drop as well?

Added a 30% chance for a single component to drop and a 2.5% chance for a basic capacitor to drop.


ops and above (admin) should not have any server fields masked

What does this PR do?
Since ops/admins can update server objects, no fields should be "masked" or rather converted to **** because subsequent updates (PUT) will result in *** being inserted into the database
Which TC components are affected by this PR?

[ ] Documentation
[ ] Grove
[ ] Traffic Analytics
[ ] Traffic Monitor
[x] Traffic Ops
[ ] Traffic Ops ORT
[ ] Traffic Portal
[ ] Traffic Router
[ ] Traffic Stats
[ ] Traffic Vault
[ ] Other _________

What is the best way to verify this PR?

Login as an ops user in TP, edit a server, ensure that ilopassword field is not ****.
update the server object and check in the database to ensure the ilopassword is not set to ***

Check all that apply

[ ] This PR includes tests
[x] This PR includes documentation updates
[ ] This PR includes an update to CHANGELOG.md
[ ] This PR includes all required license headers
[ ] This PR includes a database migration (ensure that migration sequence is correct)
[ ] This PR fixes a serious security flaw. Read more: www.apache.org/security

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2464/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2465/
Test PASSed.


Nice elonmusk bot, but make him current: Please also support RAG for social media such as twitter

🚀 The feature
Hey, Since you have elonmusk as your main readme example, please have that example also include social media such as   twitter.com and instagram.com (etc)
import os
from embedchain import Pipeline as App

# Create a bot instance
os.environ["OPENAI_API_KEY"] = "YOUR API KEY"
elon_bot = App()

# Embed online resources
elon_bot.add("https://en.wikipedia.org/wiki/Elon_Musk")
elon_bot.add("https://www.forbes.com/profile/elon-musk")

# Query the bot
elon_bot.query("What's the latest with Elon Musk?")

  File "/Users/mbp16_2022_m1max/MyTests/python/test_embedchain.py", line 11, in <module>
    elon_bot.add("https://www.x.com/elonmusk")
  File "/Users/mbp16_2022_m1max/MyTests/python/embedchainenv/lib/python3.9/site-packages/embedchain/embedchain.py", line 198, in add
    documents, metadatas, _ids, new_chunks = self._load_and_embed(
  File "/Users/mbp16_2022_m1max/MyTests/python/embedchainenv/lib/python3.9/site-packages/embedchain/embedchain.py", line 363, in _load_and_embed
    embeddings_data = chunker.create_chunks(loader, src, app_id=app_id, config=add_config.chunker)
  File "/Users/mbp16_2022_m1max/MyTests/python/embedchainenv/lib/python3.9/site-packages/embedchain/chunkers/base_chunker.py", line 31, in create_chunks
    data_result = loader.load_data(src)
  File "/Users/mbp16_2022_m1max/MyTests/python/embedchainenv/lib/python3.9/site-packages/embedchain/loaders/web_page.py", line 26, in load_data
    response.raise_for_status()
  File "/Users/mbp16_2022_m1max/MyTests/python/embedchainenv/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://twitter.com/elonmusk

Motivation, pitch
Nice elonmusk bot, but make him current: Please also support RAG for social media such as twitter etc

Hello @yosun, thank you for raising this issue. Your suggestion to include social media platforms like Instagram and X (substitute for Twitter) in our elonmusk bot example is insightful. However, integrating these platforms directly poses challenges due to their API usage policies and access restrictions.


kdenlive cannot import videos anymore (missing libavformat)

Describe the bug
When trying to add a video to a kdenlive project, it fails with an error message.
Steps To Reproduce
Steps to reproduce the behavior:

Start kdenlive in the console. It says:

mlt_repository_init: failed to dlopen /nix/store/hyvz5vk8q9gggk577gr9jcdx875c9fck-mlt-6.24.0/lib/mlt/libmltavformat.so
(/nix/store/dykpx47ifizhqibhzh7nhjn3kzhsr0fb-ffmpeg-4.4/lib/libavdevice.so.58: undefined symbol: drmModeFreeFB2)

Click on the button to add a new video file. There is an error message saying that the file cannot be added.
Click on Settings -> Configuration Assistant. It complains that an MLT module is missing, libavformat (ffmpeg).

Metadata
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.4.77, NixOS, 21.03pre252083.2deeb58f494 (Okapi)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.8`
 - channels(root): `"home-manager, musnix, nixos-21.05pre276379.266dc8c3d05, nixos-hardware"`
 - channels(turion): `"nixpkgs-21.11pre297902.e8597594274, home-manager"`
 - nixpkgs: `/home/turion/.nix-defexpr/channels/nixpkgs`

Maintainer information:
# a list of nixpkgs attributes affected by the problem
attribute:
  - kdenlive
# a list of nixos modules affected by the problem
module:

Maybe it's because MLT is built with ffmpeg and kdenlive is built with ffmpeg-full?

Maybe it's because MLT is built with ffmpeg and kdenlive is built with ffmpeg-full?

Yes, this seems to be the case. At least it's related to this. A workaround is this derivation:
(kdenlive.override {
        mlt = mlt.override {
          ffmpeg = ffmpeg-full;
        };
      })

This doesn't work anymore:
-- Checking for module 'mlt++-7'
--   No package 'mlt++-7' found
CMake Error at /nix/store/sg4gfdp6ahmz8341zh8r3f2s1hylmy47-cmake-3.21.2/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find MLT (missing: MLT_LIBRARIES MLTPP_LIBRARIES MLT_INCLUDE_DIR)
  (Required is at least version "7.0.0")
Call Stack (most recent call first):
  /nix/store/sg4gfdp6ahmz8341zh8r3f2s1hylmy47-cmake-3.21.2/share/cmake-3.21/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindMLT.cmake:65 (find_package_handle_standard_args)
  CMakeLists.txt:61 (find_package)

The build error can be fixed with this workaround:
      kdenlive.override {
        mlt = mlt-qt5.override {
          ffmpeg = ffmpeg-full;
        };
      }

Reason: mlt-qt5was maintained a bit more and is on 7.0.1.
But then I run into https://github.com/NixOS/nixpkgs/issues/145198.


Remove stop words from the corpus

Remove stop words from the corpus. The stop words can be taken from here: https://gist.github.com/peterdalle/8865eb918a824a475b7ac5561f2f88e9

Solved in upcoming commit.


Problems with cp_mgmt_api_python_sdk - can't log in

[root@networks-test examples_python2]# python ./find_dup_ip.py
Enter server IP address or hostname:weed
Enter username: API_admin
Enter password:
Login failed:
APIResponse received a response which is not a valid JSON.
api_calls.json
[
{
"request": {
"headers": {
"Accept": "/",
"Content-Length": 98,
"Content-Type": "application/json",
"User-Agent": "python-api-wrapper"
},
"payload": {
"continue-last-session": false,
"password": "****",
"read-only": false,
"user": "API_admin"
},
"url": "/web_api/login"
},
"response": {
"data": null,
"status_code": 403
}
}
]
This worked for me 12 months ago. I have updated the management version to R80.30 possibly since it last worked.

Hi @dpround , please do the following:

Reproduce the issue
Connect to Mgmt via SSH and execute api status -s
Send the output (.tgz file) to<EMAIL_ADDRESS>

By default, the API server is configured to accept calls from local host only.
Therefore, trying to communicate with the API server from external clients, including running tests and viewing the documentation, will fail.
You can set the API to either accept calls from Management server only, all IP addresses that can be used for GUI clients or all IP addresses using the api-settings from Smart Console or from API command.


Linksys.yaml source file and destination file should be reverse

I see you put symbolic link into dotfiles directory. Is it supposed to use dotfiles as source and the destination /home/user/.config/ should have symbolic link to dotfiles? Not the other way around. Nice theme by the way

Correct me if I'm wrong, I might be misunderstanding what you're saying.
The Source and Destinations are defined by Linksym. Which I'd say is declared more from the process of it.
Linksym, takes a file from the Source (.config/whatever) and moves it to the destination, which is the dotfiles directory and creates a symlink at the source pointing towards destination. It doesn't use the naming from the results, as you say, where the dotfiles directory is the source of configs.
And thanks for the compliment about the theme, which I just noticed I forgot to update the screenshots, as I've moved to using kanagawa.nvim theme and colors on my system

Thank you for your reply,I am kind of confuse of it, because I git clone your dotfiles into ~/river/dotfiles,
Run linksym update and linksym source. The first time it might work fine, but since it does not copy the scripts directory, I manually clone your scripts into dotfiles. and run linksym update and linksym source again.
Now I got lots of errors, and it creates a symbolic link  ~/river/dotfiles/river/river  which is pointing to it self. my .config/river is empty now.
so I am kind of confuse of what it does, does it remove all the file in the .config and create a symbolic link into .config/
point to the dotfiles directory, how come i got a  ~/river/dotfiles/river/river which is symbolic link in the dotfiles?

I actually want to install your dotfiles, not move my ./config all into dotfiles directory.
If I need to backup my .config as my dotfiles I am suppose to do that. But to install your dotfiles is to move your files to my .config/  or create a symbolic link in .config/ point to your dotfiles
Do I get it right? Please advise.

To achieve the setup where files from ~/river/dotfiles are symlinked into ~/.config, you need to adjust the entries in your .linksym.yaml file so that the source is in ~/river/dotfiles and the target is in ~/.config.
Here’s how you can adjust your .linksym.yaml:
init_directory: ~/river/dotfiles
records:
- name: dotfiles/btop
paths:
- $init_directory/btop
- ~/.config/btop
- name: dotfiles/cava
paths:
- $init_directory/cava
- ~/.config/cava
- name: dotfiles/dunst
paths:
- $init_directory/dunst
- ~/.config/dunst
- name: dotfiles/fastfetch
paths:
- $init_directory/fastfetch
- ~/.config/fastfetch
- name: dotfiles/foot
paths:
- $init_directory/foot
- ~/.config/foot
- name: dotfiles/hypr
paths:
- $init_directory/hypr
- ~/.config/hypr
- name: dotfiles/i3
paths:
- $init_directory/i3
- ~/.config/i3
- name: dotfiles/kitty
paths:
- $init_directory/kitty
- ~/.config/kitty
- name: dotfiles/lf
paths:
- $init_directory/lf
- ~/.config/lf
- name: dotfiles/micro
paths:
- $init_directory/micro
- ~/.config/micro
- name: dotfiles/neofetch
paths:
- $init_directory/neofetch
- ~/.config/neofetch
- name: dotfiles/nvim
paths:
- $init_directory/nvim
- ~/.config/nvim
- name: dotfiles/polybar
paths:
- $init_directory/polybar
- ~/.config/polybar
- name: dotfiles/river
paths:
- $init_directory/river
- ~/.config/river
- name: dotfiles/rofi
paths:
- $init_directory/rofi
- ~/.config/rofi
- name: dotfiles/sway
paths:
- $init_directory/sway
- ~/.config/sway
- name: dotfiles/swayidle
paths:
- $init_directory/swayidle
- ~/.config/swayidle
- name: dotfiles/swaylock
paths:
- $init_directory/swaylock
- ~/.config/swaylock
- name: dotfiles/tmux
paths:
- $init_directory/tmux
- ~/.config/tmux
- name: dotfiles/waybar
paths:
- $init_directory/waybar
- ~/.config/waybar
- name: dotfiles/wezterm
paths:
- $init_directory/wezterm
- ~/.config/wezterm
- name: dotfiles/yazi
paths:
- $init_directory/yazi
- ~/.config/yazi
- name: share/applications
paths:
- $init_directory/.local/share/applications
- ~/.local/share/applications
- name: ES-DE/es_settings.xml
paths:
- $init_directory/ES-DE/es_settings.xml
- ~/ES-DE/settings/es_settings.xml
- name: RetroArch/retroarch.cfg
paths:
- $init_directory/RetroArch/retroarch.cfg
- ~/.config/retroarch/retroarch.cfg
- name: RetroArch/retroarch-core-options.cfg
paths:
- $init_directory/RetroArch/retroarch-core-options.cfg
- ~/.config/retroarch/retroarch-core-options.cfg
- name: dotfiles/starship.toml
paths:
- $init_directory/starship.toml
- ~/.config/starship.toml
- name: dotfiles/.bashrc
paths:
- $init_directory/.bashrc
- ~/.bashrc
- name: dotfiles/.gitconfig
paths:
- $init_directory/.gitconfig
- ~/.gitconfig
- name: dotfiles/.profile
paths:
- $init_directory/.profile
- ~/.profile
- name: dotfiles/.ripgreprc
paths:
- $init_directory/.ripgreprc
- ~/.ripgreprc
- name: dotfiles/.zshrc
paths:
- $init_directory/.zshrc
- ~/.zshrc
- name: dotfiles/.zsh_history.bak
paths:
- $init_directory/.zsh_history.bak
- ~/.zsh_history.bak
- name: dotfiles/home.gitignore
paths:
- $init_directory/home.gitignore
- ~/home.gitignore
- name: dotfiles/.vimrc
paths:
- $init_directory/.vimrc
- ~/.vimrc
- name: dotfiles/mimeapps.list
paths:
- $init_directory/mimeapps.list
- ~/.config/mimeapps.list
- name: Code/settings.json
paths:
- $init_directory/Code/settings.json
- ~/.config/Code/User/settings.json
This is the advise taken from chatgpt

Can you create an issue on linksym.
I did find this bug when testing, and it should be fixed. But I'll do some more testing to see if I can reproduce this bug.
The latest linksym release was 2 days ago, are you using the latest version?
If that doesn't fix it, please open an issue on linksym, which the necessary details


Helper code for Lab 3

Issue που θα χρησιμοποιηθεί κατά τη διάρκεια του Εργαστηρίου (στις 2/6/23) για τη σημείωση βοηθητικού κώδικα, οδηγιών κ.α.

0

Prep-Lab: https://helios.ntua.gr/mod/assign/view.php?id=35806
Lab: https://helios.ntua.gr/mod/assign/view.php?id=36122
repo: https://github.com/slp-ntua/slp-labs/tree/master/lab3

1
# Convert data labels from strings to integers

from sklearn.preprocessing import LabelEncoder

label_encoder = LabelEncoder()

label_encoder.fit(y_train)

y_train = label_encoder.transform(y_train)
y_test = label_encoder.transform(y_test)
n_classes = label_encoder.classes_.size

###2
'''python
def init(self, X, y, word2idx):
"""
In the initialization of the dataset we will have to assign the
input values to the corresponding class attributes
and preprocess the text samples
    - Store all meaningful arguments to the constructor here for debugging
      and for usage in other methods
    - Do most of the heavy-lifting like preprocessing the dataset here

    Args:
        X (list): List of training samples
        y (list): List of training labels
        word2idx (dict): a dictionary which maps words to indexes
    """

    self.data = X
    # Tokenize the sentences using nltk tokenizer
    self.tokenized_data = [word_tokenize(sentence) for sentence in self.data]
    self.labels = y
    self.word2idx = word2idx
    """

3
'''
python
def getitem(self, index):
"""
Returns the transformed item from the dataset
    Args:
        index (int):

    Returns:
        (tuple):
            * example (ndarray): vector representation of a training example
            * label (int): the class label
            * length (int): the length (tokens) of the sentence

    Examples:
        For an `index` where:
        ::
            self.data[index] = ['this', 'is', 'really', 'simple']
            self.labels[index] = "neutral"

        the function will have to return something like:
        ::
            example = [  533  3908  1387   649   0     0     0     0]
            label = 1
            length = 4
    """
    example = self.tokenized_data[index]
    # map tokens to ids according to word2idx
    example = [self.word2idx.get(token, self.word2idx['<unk>']) for token in example]
    label = self.labels[index]
    length = len(example)

    # zero padding using the maximum length from initialization
    # or truncation in case a larger example is found
    if length < self.max_length:
        example += [0] * (self.max_length - length)
    else:
        example = example[:self.max_length]

    return np.array(example), label, length

'''

4, 5, 6
class BaselineDNN(nn.Module):
    """
    1. We embed the words in the input texts using an embedding layer
    2. We compute the min, mean, max of the word embeddings in each sample
       and use it as the feature representation of the sequence.
    4. We project with a linear layer the representation
       to the number of classes.ngth)
    """

    def __init__(self, output_size, embeddings, trainable_emb=False):
        """

        Args:
            output_size(int): the number of classes
            embeddings(bool):  the 2D matrix with the pretrained embeddings
            trainable_emb(bool): train (finetune) or freeze the weights
                the embedding layer
        """

        super(BaselineDNN, self).__init__()

        # EX4
        # 1 - define the embedding layer
        num_embeddings = len(embeddings)
        dim = len(embeddings[0])
        self.embeddings = nn.Embedding(num_embeddings, dim)
        self.output_size = output_size

        # 2 - initialize the weights of our Embedding layer
        # from the pretrained word embeddings
        # 3 - define if the embedding layer will be frozen or finetuned
        if not trainable_emb:
            self.embeddings = self.embeddings.from_pretrained(torch.Tensor(embeddings), freeze = True)

        # 4 - define a non-linear transformation of the representations
        # EX5
        self.linear = nn.Linear(dim, 1000)
        self.relu = nn.ReLU()

        # 5 - define the final Linear layer which maps
        # the representations to the classes
        # EX5
        self.output = nn.Linear(1000, output_size)

    def forward(self, x, lengths):
        """
        This is the heart of the model.
        This function, defines how the data passes through the network.

        Returns: the logits for each class

        """

        # 1 - embed the words, using the embedding layer
        # EX6
        embeddings = self.embeddings(x)

        # 2 - construct a sentence representation out of the word embeddings
        # EX6
        # calculate the means
        representations = torch.sum(embeddings, dim=1)
        for i in range(lengths.shape[0]): # necessary to skip zeros in mean calculation
            representations[i] = representations[i] / lengths[i]

        # 3 - transform the representations to new ones.
        # EX6
        representations = self.relu(self.linear(representations))

        # 4 - project the representations to classes using a linear layer
        # EX6
        logits = self.output(representations)

        return logits

7,8
'''
python
#############################################################################
Training Pipeline
#############################################################################
lists to acummulate train and test losses
TRAIN_LOSS = []
TEST_LOSS = []
for epoch in range(1, EPOCHS + 1):
# train the model for one epoch
train_dataset(epoch, train_loader, model, criterion, optimizer)
# evaluate the performance of the model, on both data sets
train_loss, (y_train_gold, y_train_pred) = eval_dataset(train_loader,
                                                        model,
                                                        criterion)

test_loss, (y_test_gold, y_test_pred) = eval_dataset(test_loader,
                                                     model,
                                                     criterion)
TRAIN_LOSS.append(train_loss)
TEST_LOSS.append(test_loss)
# concatenate the predictions and gold labels in lists.
y_train_true = np.concatenate( y_train_gold, axis=0 )
y_test_true = np.concatenate( y_test_gold, axis=0 )
y_train_pred = np.concatenate( y_train_pred, axis=0 )
y_test_pred = np.concatenate( y_test_pred, axis=0 )
# compute metrics using sklearn functions

print("Train loss:" , train_loss)
print("Test loss:", test_loss)
print("Train accuracy:" , accuracy_score(y_train_true, y_train_pred))
print("Test accuracy:" , accuracy_score(y_test_true, y_test_pred))
print("Train F1 score:", f1_score(y_train_true, y_train_pred, average='macro'))
print("Test F1 score:", f1_score(y_test_true, y_test_pred, average='macro'))
print("Tain Recall:", recall_score(y_train_true, y_train_pred, average='macro'))
print("Test Recall:", recall_score(y_test_true, y_test_pred, average='macro'))

plot training and validation loss curves
plt.plot(range(1, EPOCHS + 1), TRAIN_LOSS, label='Training Loss')
plt.plot(range(1, EPOCHS + 1), TEST_LOSS, label='Validation Loss')
plt.xlabel('Epoch')
plt.ylabel('Loss')
plt.title('Training and Validation Loss')
plt.legend()
plt.show()
'''

9
def train_dataset(_epoch, dataloader, model, loss_function, optimizer):
    # IMPORTANT: switch to train mode
    # enable regularization layers, such as Dropout
    model.train()
    running_loss = 0.0

    # obtain the model's device ID
    device = next(model.parameters()).device

    for index, batch in enumerate(dataloader, 1):
        # get the inputs (batch)
        inputs, labels, lengths = batch

        # EX9
        # move the batch tensors to the right device
        inputs = inputs.to(device)
        labels = labels.to(device)
        lengths = lengths.to(device)

        # Step 1 - zero the gradients
        # Remember that PyTorch accumulates gradients.
        # We need to clear them out before each batch!
        model.zero_grad()

        # Step 2 - forward pass: y' = model(x)
        if model.__class__.__name__ in ['BaselineDNN', 'LSTM']:
            outputs = model(inputs, lengths)
        else:
            outputs = model(inputs)

        # fix label type for different loss func
        # print(loss_function.__dict__)
        # if loss_function.__func__.__name__ == 'BCEWithLogitsLoss':
        #     labels = torch.nn.functional.one_hot(labels, num_classes=2)

        # Step 3 - compute loss: L = loss_function(y, y')
        try:
            loss = loss_function(outputs, labels)
        except ValueError:
            # fix labels for 'BCEWithLogitsLoss' loss function
            bin_labels = torch.nn.functional.one_hot(labels.long(), num_classes=2)
            loss = loss_function(outputs, bin_labels.float())

        # Step 4 - backward pass: compute gradient wrt model parameters
        loss.backward()

        # Step 5 - update weights
        optimizer.step()

        running_loss += loss.data.item()

        # print statistics
        progress(loss=loss.data.item(),
                 epoch=_epoch,
                 batch=index,
                 batch_size=dataloader.batch_size,
                 dataset_size=len(dataloader.dataset))

    return running_loss / index

Main Lab

2.1
# main.py
from training import torch_train_val_split
# train_loader = DataLoader(train_set, batch_size=BATCH_SIZE, shuffle=True) # REMOVE
train_loader, val_loader = torch_train_val_split(train_set, BATCH_SIZE, BATCH_SIZE)

# main.py
#############################################################################
# Training Pipeline
#############################################################################
save_path = f'{DATASET}_{model.__class__.__name__}.pth'
early_stopper = EarlyStopper(model, save_path, patience=5)
for epoch in range(1, EPOCHS + 1):
    # train the model for one epoch
    train_dataset(epoch, train_loader, model, criterion, optimizer)

    # evaluate the performance of the model, on both data sets
    train_loss, (y_train_gold, y_train_pred) = eval_dataset(train_loader,
                                                            model,
                                                            criterion)

    # evaluate the performance of the model, on both data sets
    valid_loss, (y_valid_gold, y_valid_pred) = eval_dataset(val_loader,
                                                            model,
                                                            criterion)

    print(f"\n===== EPOCH {epoch} ========")
    print(f'\nTraining set\n{get_metrics_report(y_train_gold, y_train_pred)}')
    print(f'\nValidation set\n{get_metrics_report(y_valid_gold, y_valid_pred)}')

    if early_stopper.early_stop(valid_loss):
        print('Early Stopping was activated.')
        print(f'Epoch {epoch}/{EPOCHS}, Loss at training set: {train_loss}\n\tLoss at validation set: {valid_loss}')
        print('Training has been completed.\n')
        break

2.2
# models.py:LSTM
# 2EX2
class LSTM(nn.Module):
    ...

    def forward(self, x, lengths):
        ...

        # pick the output of the lstm corresponding to the last word
        representations = torch.zeros(batch_size, self.representation_size).float()
        for i in range(lengths.shape[0]):
            last = lengths[i] - 1 if lengths[i] <= max_length else max_length - 1
            representations[i] = ht[i, last, :]

        logits = self.linear(representations)

        return logits


[dev] On change, cloudflared tunnel breaks

@EverlastingBugstopper

If you would like to try something that hasn't been tested yet, you could try to put a worker in front of something you're running on localhost.
Let's say you have a react app that you're developing locally and it's running on localhost:4000 and you want to also develop a worker at the same time (maybe play around with the new HTMLRewriter API a bit). Unfortunately, you cannot call $ wrangler dev --host localhost:4000 because Cloudflare's preview service needs the back end to be a public URL.
What you can do instead is spin up a TryCloudflare endpoint and pass that url to the --host argument of wrangler dev and then develop them in tandem.
This is a completely unpaved path that has not been tested at all so your mileage may vary. If you get it to work, we'd love to hear about it!

I've tested this out and it kinda works. The first issue I've run into is getting changes to update. The steps of what I'm seeing:

save a change (say, a simple change in my worker site's HTML)
refresh the page
the change is not there...
if I restart wrangler dev the change is there
if i do not restart wrangler dev but instead refresh my browser every few seconds I eventually see a 500 for the HTML page with an error code along the lines of could not find index.cc2f4dbd9f20219bea74e17400a95478e40941f0f0a4c17e2ec83eac27a2e0e8.html in your content namespace.
Wait maybe 2 minutes or so (seriously!), refreshing every few seconds, and the 500 is gone and the update is live (without having restarted wrangler dev).

So it seems like there's some type of conflict between the way wrangler dev is updating on changes and the way the tunnel is serving them.

save a change (say, a simple change in my worker site's HTML)
refresh the page
the change is not there...
if I restart wrangler dev the change is there

I came here to report this bug also.  Discovered during public beta, but since I am still learning Workers I thought it could had been my error.  Now I'm using wrangler v1.8.0 (Win10, VSCode Bash), I get the same non-updating error even when I [CTRL-Z, CTRL-S] to a previously known working version.


shopify app serve not work

Issue summary
After following the Shopify 'create an app' steps and using the CLI to clone the shopify node app, I have been unable to run the shopify app serve command
Node version: 17.3.0
NPM version: 8.5.5
Actual behavior

Hi,
Kindly check the App urls in the App Setup from Partner Dashboard.
Right now the ngrok is showing a url with '/login' instead of '/auth'.
Link => https://[ngrok-link]/login/[your-store]


Disable logging of (specific) environment variables (or mask values) in Windows 'Application' event log

I was investigating #52 and discovered that all of the environment variables, and their values, are logged in the Windows Application event log, in plaintext.
Based on this, every interactive user has read+write access to that event log.
I'm currently using environment variables to store all of my application's runtime environment-specific configuration, e.g. database credentials. I'm not particularly worried that they will be compromised as-is, but it would be much better were this info to not be included in the event log in plaintext.
It would fine if an attribute could be added or set on the env elements in the configuration file to indicate that the value for those variables not be included (or even just masked) in the event log.

It makes sense to handle this case in winsw-2.0 with log4net (#72)

In #154 I've clarified the behavior of this option.
Maybe makes sense to disable the wrapper log as well, but likely it needs to be a separate option in order to retain the backward compatibility

@oleg-nenashev Fantastic! I'll test this when I get a chance; hopefully within a month or two.


Add Support for Swarm Secrets

It'd be great to support the new Swarm Secrets from 1.13 in the interface.
User Docs: https://docs.docker.com/engine/swarm/secrets/
API Docs: https://docs.docker.com/engine/api/v1.25/#tag/Secret

I've added support for creating, listing and inspecting secrets in #521.

Awesome @Glowbal !


Support tsx syntax highlighting

What
Support tsx syntax highlighting
Why
Example where tsx has no syntax highlighting:

https://review.learn.microsoft.com/en-us/azure/communication-services/tutorials/call-readiness/call-readiness-tutorial-part-1-browser-support?branch=pr-en-us-220750#setup-app

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

ID: 53570093-6fd5-0021-fb6a-0bce472cdbec
Version Independent ID: 4995e670-cf27-6fec-a1dd-0d024ce923d3
Content: Ensuring a user is on a supported browser using Azure Communication Services UI Library - An Azure Communication Services tutorial
Content Source: articles/communication-services/tutorials/call-readiness/call-readiness-tutorial-part-1-browser-support.md
Service: azure-communication-services
Sub-service: calling
GitHub Login: @JamesBurnside
Microsoft Alias: jaburnsi

@JamesBurnside
Thanks for your feedback! We will investigate and update as appropriate.

Removing assignment - not sure why I was assigned here. The issue links to a document I am writing as an example but the issue is with the platform not the article.

@JamesBurnside We typically try to keep the Azure-Docs channel scoped to feedback directly about the docs. Reached you internally, We will close this out, Thanks for your understanding in this.


Download on other machine doesn't work at all

Occurs On: [Download ]
Proxy Enabled: [ No ]
I have a problem and nothing seems to work.
I basically created a public gist on machine A. Now I want to download that gist from another machine but whatever I do I get
Invalid / Expired GitHub Token. Please generate new token with scopes mentioned in readme. Exception Logged in Console.

I can't understand why it comes back invalid/expired as I can still upload my setting from the other machine B. Really, what to do, what token/id etc to use isn't clear enough. I watched the gif a hundred time and I still keep having something different happening for me.
What is the clear process to achieve what I wanna do?
Thanks

I've had this a few times, try clearing your sync settings (Sync: Reset Extension Settings), remove any extension settings in your user settings, then uninstall the extension. Restart vscode, install the extension, attempt to sync your settings, then add the api key and gist id when prompted.

Thanksfor the tips. When you say "api key".. What is this api key ? ^^
I already gave up on this, but might give it another go at some point.
Thanks

Your github api key that you should have created to allow the extension access to write to the gist
Lee Powell
<EMAIL_ADDRESS>https://uk.linkedin.com/in/leepowell

On 17 Mar 2018, at 11:11, dnd<EMAIL_ADDRESS>wrote:
Thanksfor the tips. When you say "api key".. What is this api key ? ^^
I already gave up on this, but might give it another go at some point.
Thanks
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.

Sorry, I meant an access token ... steps can be found here:
https://github.com/shanalikhan/code-settings-sync#steps-to-get-a-personal-access-token-from-github
You'll then need to go and create a gist under your account here:
gist.github.com
You'll need both the access token, and the created gist id in order to use the extension.

Right. The gist id is the name/ref of the gist right?
I tried that too unfortunately.

I can confirm the problem

Entered: vscode-settings

Why you entering the vscode-settings on prompt on download settings. You need to insert GITHUB TOKEN first prompt and GIST ID in second prompt while downloading.
Already written in https://github.com/shanalikhan/code-settings-sync#download-your-settings
Feel free to send me pull request to improve documentation or WIKI, where required.

@shanalikhan
I entered my github token first - that is "vscode-settings". Then, I was prompted to enter my gist and I entered "4f937150aa...". Maybe I'm mixing things up here, too...

You need to insert the token here which is generated by github by doing the following steps.
https://github.com/shanalikhan/code-settings-sync#steps-to-get-a-personal-access-token-from-github

Same problem. I can't download settings on another machine.

> Sync: Download setting
insert token then enter
insert gist id

Get an error
Invalid / Expired GitHub Token. Please generate new token with scopes mentioned in readme. Exception Logged in Console.

What i am do it wrong?


feat(navigator): add EventEmitter to selected item

Description
Need the item id to maintain the help panel state
What's included?

add EventEmitter to navigator selected item

Test Steps

[ ] npm run start
[ ] then this
[ ] finally this

General Tests for Every PR

[ ] npm run start still works.
[ ] npm run lint passes.
[ ] npm run stylelint passes.
[ ] npm test passes and code coverage is not lower.
[ ] npm run build still works.

Screenshots or link to StackBlitz/Plunker

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

v4.3.0
GitHub release

Your semantic-release bot :package::rocket:


[Feature Request] Copy to Clipboard or Customizable Button Bar

Proposal
Hi, first of all, this is a great react component. I have used it for some of my projects and it works as intended. Great stuff!
I'd like to propose a change. Specifically on adding a few floating menu navigation inside the code editor. This will allow the developers to insert some contextual functionality into the component.

@alvin-reyes This is not suitable for current components. You may need other options.

https://github.com/uiwjs/react-codemirror
https://github.com/jaywcjlove/react-monacoeditor


Fix CVE 2024-24790 for golang and backport the fix to golang 1.18

Merge Checklist

All boxes should be checked before merging the PR (just tick any boxes which don't apply to this PR)

[ x] The toolchain has been rebuilt successfully (or no changes were made to it)
[ x] The toolchain/worker package manifests are up-to-date
[ x] Any updated packages successfully build (or no packages were changed)
[x ] Packages depending on static components modified in this PR (Golang, *-static subpackages, etc.) have had their Release tag incremented.
[ x] Package tests (%check section) have been verified with RUN_CHECK=y for existing SPEC files, or added to new SPEC files
[ x] All package sources are available
[ ] cgmanifest files are up-to-date and sorted (./cgmanifest.json, ./toolkit/scripts/toolchain/cgmanifest.json, .github/workflows/cgmanifest.json)
[ x] LICENSE-MAP files are up-to-date (./SPECS/LICENSES-AND-NOTICES/data/licenses.json, ./SPECS/LICENSES-AND-NOTICES/LICENSES-MAP.md, ./SPECS/LICENSES-AND-NOTICES/LICENSE-EXCEPTIONS.PHOTON)
[x ] All source files have up-to-date hashes in the *.signatures.json files
[x ] sudo make go-tidy-all and sudo make go-test-coverage pass
[ x] Documentation has been updated to match any changes to the build system
[x ] If you are adding/removing a .spec file that has multiple-versions supported, please add @microsoft/cbl-mariner-multi-package-reviewers team as reviewer (Eg. golang has 2 versions 1.18, 1.21+)
[ x] Ready to merge

Summary

This PR fix the CVE-2024-24790 for golang
Change Log

Upgrade golang 1.21 to 1.22
Backport fix to golang 1.18
Bump release version of all packages using golang & golang1.18

Does this affect the toolchain?

YES/NO
Associated issues

#xxxx

Links to CVEs
https://nvd.nist.gov/vuln/detail/CVE-2024-24790
Test Methodology

Pipeline build id:
golang 1.18 Build -  https://dev.azure.com/mariner-org/mariner/_build/results?buildId=602940&view=results
golang Build - https://dev.azure.com/mariner-org/mariner/_build/results?buildId=605230&view=results

Opted to just take the golang fix.  Closing this PR.


drivers: modem: Fix loop variables type

int was used regardless of the type used in the
end-loop condition
Signed-off-by: Guillaume Lager<EMAIL_ADDRESS>

Sorry about the noise I pushed a commit to the wrong branch

Cc @bbilas


Yask does not support data slicing with step != 1

With Yask enabled data slicing currently only gives correct results with step sizes of one.
To do:
Add Data slicing support from main Devito to Yask builds.

Yask not supported anymore, closing.


Recommended infrastructure

Hi I'd welcome some advice. We are new to Boomerang but are considering using it to monitor a client site with circa 82m Page Views per month traffic.
Do we need to supply our own infrastructure for data storage etc, or is there some out there for general use? If the latter, how is it paid for, and if the former grateful if somebody could recommend a spec for an environment to support this.
In other words, can we just deploy the tag and capture the results, or do we need to setup an infrastructure to do this?
By all means point me to any docs on the subject.
Many thanks

Since there aren't any open questions in this Issue, I'm going to close it for now.


Just the first day of collection is shown in calendar

Before you submit a new bug report, please check that

[X] I have read frequently asked questions and limitations

Write your question here
Hi,
I configured the helpers as suggested in the documentation but just the first day of collection is shown in calendar and in the countdown. Am I doing something wrong?

Probably. Mine shows all of them (for the current and the following year anyhow).


Localize memoize

Details

Fixed Issues

$ https://github.com/Expensify/App/issues/50194
PROPOSAL: https://github.com/Expensify/App/issues/50194#issuecomment-2392702540
Tests

Test the whole App and confirm that the translations are correct

[x] Verify that no errors appear in the JS console

Offline tests

Same as Tests
QA Steps

Same as Tests
PR Author Checklist

[x] I linked the correct issue in the ### Fixed Issues section above
[x] I wrote clear testing steps that cover the changes made in this PR

[x] I added steps for local testing in the Tests section
[x] I added steps for the expected offline behavior in the Offline steps section
[x] I added steps for Staging and/or Production testing in the QA steps section
[x] I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
[x] I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
[x] I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).

[x] I included screenshots or videos for tests on all platforms
[x] I ran the tests on all platforms & verified they passed on:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

[x] I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
[x] I followed proper code patterns (see Reviewing the code)

[x] I verified that any callback methods that were added or modified are named for what the method does and never what callback they handle (i.e. toggleReport and not onIconClick)
[x] I verified that the left part of a conditional rendering a React component is a boolean and NOT a string, e.g. myBool && <MyComponent />.
[x] I verified that comments were added to code that is not self explanatory
[x] I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
[x] I verified any copy / text shown in the product is localized by adding it to src/languages/* files and using the translation method

[x] If any non-english text was added/modified, I verified the translation was requested/reviewed in #expensify-open-source and it was approved by an internal Expensify engineer. Link to Slack message:

[x] I verified all numbers, amounts, dates and phone numbers shown in the product are using the localization methods
[x] I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
[x] I verified proper file naming conventions were followed for any new files or renamed files. All non-platform specific files are named after what they export and are not named "index.js". All platform-specific files are named for the platform the code supports as outlined in the README.
[x] I verified the JSDocs style guidelines (in STYLE.md) were followed

[x] If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
[x] I followed the guidelines as stated in the Review Guidelines
[x] I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
[x] I verified all code is DRY (the PR doesn't include any logic written more than once, with the exception of tests)
[x] I verified any variables that can be defined as constants (ie. in CONST.js or at the top of the file that uses the constant) are defined as such
[x] I verified that if a function's arguments changed that all usages have also been updated correctly
[x] If any new file was added I verified that:

[x] The file has a description of what it does and/or why is needed at the top of the file if the code is not self explanatory

[x] If a new CSS style is added I verified that:

[x] A similar style doesn't already exist
[x] The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))

[x] If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
[x] If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
[x] If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
[x] If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
[x] If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:

[x] I verified that all the inputs inside a form are aligned with each other.
[x] I added Design label and/or tagged @Expensify/design so the design team can review the changes.

[x] If a new page is added, I verified it's using the ScrollView component to make it scrollable when more elements are added to the page.
[x] If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
https://github.com/user-attachments/assets/52ab048a-3694-47c0-ace3-0b0234cb572c

Android: mWeb Chrome
https://github.com/user-attachments/assets/e8b1d7b6-17c4-429d-b79b-c4e74b183caf

iOS: Native
https://github.com/user-attachments/assets/e0ab2eb7-a5b3-4c69-8e83-75e35c02df36

iOS: mWeb Safari
https://github.com/user-attachments/assets/3a3f3248-54e1-4814-9ffc-2480ffb2db9e

MacOS: Chrome / Safari
https://github.com/user-attachments/assets/19364fd4-68a3-4036-bf4d-26bd490f2078

MacOS: Desktop
https://github.com/user-attachments/assets/4f99d64d-2319-4188-b039-5f1537960cc9

:hand: This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.


"not same as password" is not localized

Hi,
thanks for this awesome lib. Do i see this correctly, that the passwords do not match message cannot be localized?
https://github.com/danschultzer/pow/blob/b1d4904492ea85287ec0845a1d9bb4635df17989/lib/pow/ecto/schema/changeset.ex#L215

How do you currently translate ecto errors?
Usually you would use the MyAppWeb.ErrorHelpers for translations. Also note that `v1.0.17 (#380 #379) will change that message to "does not match confirmation" so it matches the default in Ecto for confirmation validation.


Twitter official app in-app browser on iOS not working

When we open Twitter official app in-app browser from tweets or something, polyfill does not work properly.
My environment is:

Device: iOS 10.2.1
App version: 6.73.2

A Twitter official apps User-Agent is:
Mozilla/5.0 (iPhone; CPU iPhone OS 10_2_1 like Mac OS X) AppleWebKit/602.3.12 (KHTML, like Gecko) Mobile/14D27 Twitter for iPhone

I accessed with remove min,  the server responds:

/* Polyfill service v3.17.0
 * For detailed credits and licence information see https://github.com/financial-times/polyfill-service ….
 *
 * UA detected: other/0.0.0 (unknown/unsupported; using policy `unknown=ignore`)
 * Features requested: Array.prototype.find,Array.prototype.findIndex,Array.prototype.includes,Element.prototype.dataset,IntersectionObserver,MutationObserver,default,fetch,http://performance.now
 *  */

/* No polyfills found for current settings */

And, I tried to investigate in development. Requested with ua and above User-Agent string:
http://localhost:3000/v2/polyfill.js?ua=Mozilla/5.0%20(iPhone;%20CPU%20iPhone%20OS%2010_2_1%20like%20Mac%20OS%20X)%20AppleWebKit/602.3.12%20(KHTML,%20like%20Gecko)%20Mobile/14D27%20Twitter%20for%20iPhone

And redponds:
/* Polyfill service DEVELOPMENT MODE - for live use set NODE_ENV to 'production'
 * For detailed credits and licence information see https://github.com/financial-times/polyfill-service.
 *
 * UA detected: ios_saf/10.2.0
 * Features requested: default
 *
 * - URL, License: CC0 (required by "default") */

with polyfill's code. I guess that the problem seems Normalized User-Agent in vcl.

When testing locally, were you using the code in master? If so, that has changes which are not yet live on https://polyfill.io. If it works in master branch, it will be fixed in the next release ✨

Yes, I've tested on master branch and it works. thanks!

I will close this issue as the fix will be in the next release :-) If you watch this repository or follow @polyfillio on twitter you will get notifications when we release new versions of the service.


Description Regex

Hi,
I see this class not getting the description of the movie.
Can you add another function called getDescription() which will return description of the movie?
Thanks

Can you give an example for what you're looking for? Maybe it's already covered with getTagline() or getPlot()?

For example if you visit this url
https://www.imdb.com/title/tt4456850/
Descrition of this movie is
"Two teen rival babysitters, Jenny and Lola, team up to hunt down one of their kids who accidentally runs away into the big city without any supervision."
But getPlot() and getTagline() returning "N/A"

Added in v6.1.0. 👍


feat(client): modify breadcrumb design

Checklist:

[X] I have read freeCodeCamp's contribution guidelines.
[X] My pull request has a descriptive title (not a vague title like Update index.md)
[ ] My pull request targets the master branch of freeCodeCamp.
[X] All the files I changed are in the same world language, for example: only English changes, or only Chinese changes, etc.

Closes #40832

@ahmadabdolsaheb I took your suggestion of using the superblock icon for the breadcrumbs to allow more space for the block name - helps a bit with responsiveness.

Sounds good - I will update this in the morning 🙂

Sounds good - I will update this in the morning 🙂

Thanks @nhcarrigan - do not worry about rushing this in. This can wait till Monday or even after we have shipped. BTW, I have re-targeted and re-base this branch.

Thanks @nhcarrigan - do not worry about rushing this in. This can wait till Monday or even after we have shipped. BTW, I have re-targeted and re-base this branch.

Okay I think I've got this locked down:
Large screen

Small screen:

Mobile:

Okay I think I've got this locked down:
Large screen

Small screen:

Mobile:


Add Search support for R4 primitive type Money

User story
Add support for the R4 primitive type Money.
Acceptance criteria

Support is visible at the /metadata endpoint
Canonical urls are indexed correctly
Search mapped from Money=>Quantity. e.g. Account.Balance

AB#72427


Revert "Update vimeo/psalm requirement from ^5.16 to ^5.17"

Reverts silarhi/cfonb-parser#170

Cause the job failed

Replaced by https://github.com/silarhi/cfonb-parser/pull/178


Feature: run action in a separate thread

Version: ß59 (3842)
Steps that will reproduce the problem?

Invoke QS
Type the name of an application
Chose "open" as the action
Invoke QS again

What is the expected result?
QS should show up immediately.
What happens instead?
QS does not respond till the application started.
Possible workaround:
Any additional information:
If you open an alias that points to a folder on a (not yet) mounted volume, you'll not be able to use QS till the volume is mounted.

Looking back at this, does the 'run tasks in background' Extras pref option not enable this? Have we been completely overlooking that all this time?

Finally, yes. I think this is what I was looking for! Thank you.
@Skurfer: if this also solves your issue, please close this ticket.

Yeah, and it works pretty well strangely enough.
Quicksilver isn’t held hostage to long operations in Finder, but the “result” still comes back when it finishes. This could cause a problem if you’re in the middle of doing something when that happens. I’m not sure of the best way to handle that. For now, I guess it’s just a trade-off.
Interestingly, you can do something else with Quicksilver and the result from the first thing will still come back at the end.


SentrySubsystem never initialized

How do you use Sentry?
Sentry SaaS (sentry.io)
Which SDK and version?
sentry-unreal 0.0.1 Pre-release
I'm on MacOS Monterey, using Unreal Engine 5.
Problem
Following this tutorial Sentry plugin was crashing on SentrySubsystem->CaptureMessage() function.
I tried to debug and found out that void USentrySubsystem::Initialize(FSubsystemCollectionBase& Collection) is never called.
I included the plugin in my plugin folder, enabled it, added PublicDependencyModuleNames.AddRange(new string[] { "Sentry" }); to my project Build.cs, entered the DSN in the project settings and enabled Initialize SDK Automatically.
Is there something I need to do that is not mentioned in the tutorial or is it a bug?

Ok, I tried the plugin demo level and after pressing "capture message" the result is the following:
2022-06-01 14:30:56.655592+0100 UnrealEditor[3644:42290] [UE] [2022.06.01-13.30.56:655][192]LogScript: Warning: Accessed None trying to read property CallFunc_GetGameInstanceSubsystem_ReturnValue_1

	W_SentryDemo_C /Engine/Transient.UnrealEdEngine_0:GInstance_0.W_SentryDemo_C_0

	Function /Sentry/UI/W_SentryDemo.W_SentryDemo_C:ExecuteUbergraph_W_SentryDemo:0198
2022-06-01 14:30:56.656348+0100 UnrealEditor[3644:42290] [UE] [2022.06.01-13.30.56:655][192]PIE: Error: Blueprint Runtime Error: "Accessed None trying to read property CallFunc_GetGameInstanceSubsystem_ReturnValue_1". Node:  Capture Message Graph:  EventGraph Function:  Execute Ubergraph W Sentry Demo Blueprint:  W_SentryDemo

Regarding the crash in my code, I put the stack and the most relevant lines of the code below:
LOG
2022-06-01 14:34:16.081796+0100 UnrealEditor[4163:46663] [UE] [2022.06.01-13.34.16:081][760]LogG: Display: Testing Sentry...
Exception: EXC_BAD_ACCESS (code=1, address=0x38)

SentrySubsystem.cpp
88 USentryId* USentrySubsystem::CaptureMessage(const FString& Message, ESentryLevel Level)
89 {
90	if (!SubsystemNativeImpl)
91		return nullptr;

GInstance.cpp
174 G_LOG(TEXT("Testing Sentry... "));
175 USentrySubsystem* SentrySubsystem = GetSubsystem<USentrySubsystem>();
176 SentrySubsystem->CaptureMessage(TEXT("Capture message"));

STACK
[Inlined] TSharedPtr<ISentrySubsystem, (ESPMode)1>::operator bool() const SharedPointer.h:1043
USentrySubsystem::CaptureMessage(FString const&, ESentryLevel) SentrySubsystem.cpp:90
UGInstance::Exec(UWorld*, char16_t const*, FOutputDevice&) GInstance.cpp:176
UGameViewportClient::Exec(UWorld*, char16_t const*, FOutputDevice&) 0x000000011c6f5554
ULocalPlayer::Exec(UWorld*, char16_t const*, FOutputDevice&) 0x000000011c993ce8
UPlayer::ConsoleCommand(FString const&, bool) 0x000000011d4a2133
APlayerController::ConsoleCommand(FString const&, bool) 0x000000011d4b02ce
UConsole::ConsoleCommand(FString const&) 0x000000011dc61791
UConsole::InputKey_InputLine(int, FKey, EInputEvent, float, bool) 0x000000011dc63265
UConsole::InputKey(int, FKey, EInputEvent, float, bool) 0x000000011dc667db
UGameViewportClient::InputKey(FInputKeyEventArgs const&) 0x000000011c6e79b3
FSceneViewport::OnKeyUp(FGeometry const&, FKeyEvent const&) 0x000000011d84719f
non-virtual thunk to FSceneViewport::OnKeyUp(FGeometry const&, FKeyEvent const&) 0x000000011d847565
SViewport::OnKeyUp(FGeometry const&, FKeyEvent const&) 0x0000000113b90040
FSlateApplication::ProcessKeyUpEvent(FKeyEvent const&) 0x0000000113846a5e
FSlateApplication::OnKeyUp(int, unsigned int, bool) 0x00000001138460bc
FMacApplication::ProcessEvent(FDeferredMacEvent const&) 0x000000010e9f05d4
FMacApplication::ProcessDeferredEvents(float) 0x000000010e9f007f
FSlateApplication::TickPlatform(float) 0x0000000113822d57
FSlateApplication::Tick(ESlateTickType) 0x00000001138222a5
FEngineLoop::Tick() 0x000000010e0d2bea
GuardedMain(char16_t const*) 0x000000010e0df9c2
-[UEAppDelegate runGameThread:] 0x000000010e0fb13a
-[FCocoaGameThread main] 0x000000011114f771
__NSThread__start__ 0x00007ff801e9e9c4
_pthread_start 0x00007ff800f7d4e1
thread_start 0x00007ff800f78f6b

Hi @Lju88, is there any chance that the CaptureMessage method was called before GInstance initialization? Maybe you can provide some extra context for that GInstance.cpp code snipped you've shared earlier?

Somehow, installing Sentry, I managed to delete the super initialization UGameInstance::Init();
Checking out what you asked for, I noticed the missing of the super call and from git I noticed that it had been removed from me with the installation of Sentry. Thanks for the support, everything works perfectly now, I can close!


Possible typos in table 6.1

Given that bit 10, 6, and 2 in hideleg correspond to bits 9, 5, and 1 in the vsip/vsie CSRs, it seems that some of the bit indices in table 6.1 is  off by 1.   Instead of vsip[n], we should have vsip[n-1]: this way when hiedelg[10] is zero, vsip[9] is read only zero.
Similarly, sip[n], vsie[n], and sie[n] should all be indexed with n-1.

The caption for Table 6.1 says:

The effects of hideleg and hvien on vsip and vsie for major interrupts 13-63.

None of the bit numbers you mentioned (10, 6, 2, or 9, 5, 1) are for major interrupts in the range 13-63.

Thanks for the clarification


fix Stream icon colors

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Feature Request: Update FBBG to work on Web and Desktop

I love that FBBG uses the Android and iOS-specific implementations on mobile. However, for me to use this on mobile and other things on desktop is pretty annoying. Would it be possible to update FBBG to use WidgetsBindingObserver and/or AppLifecycleListener on non-mobile so we can just have a single solution that works best on every platform?

suggested fix: https://github.com/ajinasokan/flutter_fgbg/pull/17

Makes sense. I had thought of this when I had to write an if-else for running app in macOS. But never really had the motivation to add this to plugin.
Sorry I couldn't check this sooner, I was a bit busy with the work. I will review the PR in a moment.

This is published as flutter_fgbg: ^0.4.0.
Thank you for the PR.

The plug-in still shows up on pub.dev as only supporting Android and iOS instead of all six Flutter platforms.


Add imagePullSecrets values at gslb-controller

This Pull Request addresses the issue where gslb-operator was unable to pull images from a private container registry due to missing imagePullSecrets configuration.
I've edited the Helm templates for citrix-gslb-controller and netscaler-gslb-controller to include imagePullSecrets configuration.
To verify the fix, I confirmed successful application using the following commands:
$ helm template citrix-gslb-controller --set localRegion=site1 --set localCluster=test --set "imagePullSecrets={example-token}"

$ helm template netscaler-gslb-controller --set localRegion=site1 --set localCluster=test --set "imagePullSecrets={example-token}"

hi @inerplat
Thank you for raising the PR, we will incorporate the ask in upcoming release.

hi @inerplat
We have released 1.40.12 version with this fix
https://github.com/netscaler/netscaler-helm-charts/releases/tag/nsic-v1.40.12


Increase default width of body

Hi,
Default css width of body is 45em please increase to 55em. Imho 45em is very low default value.

What is it on GitHub?

How can I change this value? where can I find the template guide?

@F1LT3R I'm checked width of github website.
Github markdown width: 978px
Markserv width: 720px
My monitor resolution is 1920px, imho 45em don't is correct value for mirror GitHubs style on big monitor.

You're welcome to submit a PR. I have been pulling GitHub styles from another repo. But it's possible that repo is no longer in sync with GitHub.

Here's where I was getting my styles: https://github.com/sindresorhus/github-markdown-css

That's all done and merged in<EMAIL_ADDRESS>Can you let me know that things are working as you expect if you install latest markserv?


Optimized Docker Image

Changed to Alpine
Changed shell to sh from bash due to Alpine
Optimized Docker Layers
Changes put the new docker image at 336.4 MB from previously 1.3 GB, and also lowers the number of layers needed. Tested as having same functionality both on init and on re-run.
Closes #20

actually just found a small typo, working on that...

Actually, just realized that one of the additional checks that was added only works in bash, not sh, so the script won't really work. Server does, however.
Will mess around with startup_checks.sh a bit more in the following days to have it be sh compatible and resolve this.

I actually thought about it for two more seconds and instead of refactoring 5 scripts and introducing potentially breaking changes, I added Bash as a dependency to the image, which brings the new total to a whopping... 337.5 MB.
I thinkyou'll forgive me the extra 6 MB :)
Did a Git-Revert-Hard and then repushed, so things look good now. Pull ofificially available for review :)

Merged into dev, pending merge into master once I run this on my own Shynet instance for a bit and make sure everything goes smoothly. Thanks!


Simplify with from six.moves import input

Use feature detection instead of version detection
Also deal gracefully with uppercase input and text with leading or trailing whitespace.

Tests are failing. Do you want to keep working on it?


Relax consistency check for the Transfer choice

Instead of requiring the same implementation being Credited and Debited, just check that the holding standard (i.e., Fungible, NonFungible, NonTransferable) is the same.

https://github.com/digital-asset/daml-finance/pull/1014


Fix for cognitive services API version

Motivation and Context
Fix for issue #425
The older API version was no longer working.  It allows for deploying a new Azure OpenAI resource.
Description
Updates the API version and SKU of the Azure OpenAI
Contribution Checklist

[x] The code builds clean without any errors or warnings
[x] The PR follows the Contribution Guidelines and the pre-submission formatting script raises no violations
[x] All unit tests pass, and I have added new tests where possible
[x] I didn't break anyone :smile:

@microsoft-github-policy-service agree


Fix default value for northd probe interval

Southbound DB cluster tolerates 16 seconds of leader being unavailable.  It doesn't make sense for northd to be more sensitive.  And also, at 500+ node scale it can take more than 5 seconds to send a full database snapshot leading to constant re-connections and 100% CPU usage on Sb DB server preparing the same snapshot over and over.
CI updated to Ubuntu 24.04, because 23.10 is EoL and images for it are no longer available on GCP.  However, CI will still fail until https://github.com/ovn-org/ovn-fake-multinode/pull/90 is merged.

CI passed, merging, thanks!


Controlling concurrency on a per file basis

Clear and concise description of the problem
As a developer using Vitest I want to run specific test files in single-threaded mode so that I can control the performance characteristics of the individual test file.
Suggested solution
In vitest we already have the ability to control concurrency of test cases by using test.concurrent or just regular test. The new feature would add a similar mechanism but on a per file basis. A test file could be marked as serial which would turn vitest into single-threaded mode during the execution of this test file.
Alternative
A workaround would be to run multiple instances of vitest, one multi-threaded and one single-threaded:
npx vitest run --threads=false serial && npx vitest run concurrent

Additional context
My project contains test files that perform relatively heavy weight tasks like rendering pages in headless chrome. Each individual test case needs to complete within a certain time window or else it is considered failed. Running such a test file by itself already generates a high CPU load on all cores because work is offloaded onto the chrome process. I want to run these test files in isolation so they can have full access to system resources and finish as fast as possible.
In the same project there are also other tests files that are not time sensitive and that perform all of their work in a single thread. So naturally, I want to run those tests in parallel to speed them up.
The problem arises when the time sensitive test files run in parallel with other tests because now they are competing for system resources, possibly causing the time sensitive tests to timeout.

Edit:
Something I didn't consider when first writing this issue is that maxConcurrency would also have to be overridable by the individual test files.

Validations

[x] Follow our Code of Conduct
[X] Read the Contributing Guidelines.
[X] Read the docs.
[X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.

Workspace feature provides a way to achieve the same thing using inline workspace config:
export default defineWorkspace([
  {
    test: {
      include: ['**/serial/*'],
      poolOptions: { threads: { singleFork: true } },
    },
    test: {
      include: ['**/concurrent/*'],
    },
  },
])