Losing my committed offsets

Hi all,
I have some strange behavior I can't quite get to the bottom of.  I have a consumer listening on a topic in a consumer group like so (I'm using Kafka 0.8.2):
    client = KafkaClient(hosts=kafka_hosts)
    input_topic = client.topics[topic_in]
    consumer = input_topic.get_simple_consumer(consumer_group=group_id,
                                               auto_offset_reset=OffsetType.EARLIEST,
                                               auto_commit_enable=False)

    for message in consumer:
        # Do some work....
        consumer.commit_offsets()

This works great most of the time, e.g. I can restart the consumer and it picks up after the last successfully processed message.
However, I've found that if I restart my consumer after its been idle for quite some time, it occasionally loses its mind and starts processing all the messages in the topic that have already been committed!  It's as if Kafka has reset the offsets on me.
Could it be something to do with where the offsets are being stored (not sure if they're being stored in ZooKeeper or Kafka)?  I came across this guy,
http://kafka.apache.org/documentation.html#offsetmigration
I'm using the defaults for 0.8.2...
Thanks for any tips on getting to the bottom of this!  It's hard for me to reproduce!

Hi @youngpm, thanks for checking this in. I've actually seen behavior like this before in my local testing, but I've never gotten to the bottom of it. We've never seen it in production, so it hasn't been a super high priority to fix, but it's good to know I'm not the only one who's seen this. Pykafka only knows how to store offsets in kafka itself, so offsets in zookeeper should not be a factor here.
There are two things I recommend changing about your test script to see if/how they affect the results you're seeing. First, I'd use auto_commit_enable=True with auto_commit_interval_ms=1000. Committing the offset after each message as you're doing should work, but the tests I've run are all using autocommitting since it's slightly more performant in production. Second, I'd change auto_offset_reset to OffsetType.LATEST. It's possible that your consumer is resetting itself to the beginning of the topic because of this setting, so it would be good to remove that variable.

This excerpt from the documentation strikes me as a possible cause:
In case the offset manager was just started or if it just became the offset manager for a new set of consumer groups (by becoming a leader for a partition of the offsets topic), it may need to load the offsets topic partition into the cache. In this case, the offset fetch will fail with an OffsetsLoadInProgress exception and the consumer may retry the OffsetFetchRequest after backing off.

Though the SimpleConsumer does handle this case here.

Hey @emmett9001,
I avoided using auto_commit_enable=True because my client launches a pretty long running compute job (image processing), and I didn't want the message marked as consumed if it failed.  Same with auto_offset_reset being set to OffsetType.EARLIEST; I wanted the client to pick up where it left off if it died on me, I think when set to latest you'd miss any messages that came in while you were down.  Might be wrong though, pretty new to Kafka!  Maybe there's a better way to deal with a failure?
I've upped the verbosity on my logs, so next time it happens, maybe I'll have more info!

Restarting from EARLIEST can actually result in repeated messages, since it sets the consumer offset to the earliest offset available for each partition. This means that if you've consumed some messages on a partition and then the consumer resets its offsets, it will go back to the earliest offset still held on that partition - probably one of the ones you just consumed. Neither EARLIEST nor LATEST will actually guarantee that the consumer will pick up where it left off after a failure - the best way to ensure this is to commit offsets regularly, as you're doing.

I got some more info with a better logging level on!
I had a consumer listening on a topic, no activity on the topic for days.  A message came in, it processed it, but died trying to commit the offsets:
Traceback (most recent call last):
  File "/home/ubuntu/whackstack/metadata_matsel_service.py", line 190, in <module>
    consumer.commit_offsets()
  File "/home/ubuntu/whackstack/venv/local/lib/python2.7/site-packages/pykafka/simpleconsumer.py", line 340, in commit_offsets
    self._consumer_group, 1, 'pykafka', reqs)
  File "/home/ubuntu/whackstack/venv/local/lib/python2.7/site-packages/pykafka/broker.py", line 309, in commit_consumer_group_offsets
    return self._offsets_channel_req_handler.request(req).get(OffsetCommitResponse)
  File "/home/ubuntu/whackstack/venv/local/lib/python2.7/site-packages/pykafka/handlers.py", line 55, in get
    raise self.error
pykafka.exceptions.SocketDisconnectedError

This process is running under supervisord, so it restarted and I see this:
INFO:2015-07-27 22:12:17,426:cluster.py:_update_brokers:Discovered 1 brokers
INFO:2015-07-27 22:12:17,428:cluster.py:_update_topics:Discovered 15 topics
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,429:topic.py:update:Adding 1 partitions
INFO:2015-07-27 22:12:17,430:cluster.py:get_offset_manager:Attempting to discover offset manager for consumer group 'matsel'
INFO:2015-07-27 22:12:17,432:cluster.py:get_offset_manager:Found coordinator broker with id 1
INFO:2015-07-27 22:12:17,436:simpleconsumer.py:_setup_fetch_workers:Starting 1 fetcher threads
INFO:2015-07-27 22:12:17,438:simpleconsumer.py:_reset_offsets:Resetting offsets for 1 partitions

So the last line there says it reset the offsets!  I would guess that the failure to commit the offsets in the first place is related.  The consumer actually processed everything correctly up until the commit_offsets call.  In fact, it posted a message on another topic, where another service died in the same exact way!
That's about all I know, any ideas what would cause the restart?

Just realized I was on version 1.0.3, looks like _reset_offsets doesn't exist anymore.  I've got the latest from pip and will keep monitoring the logs!

@emmett9001, So moving to the latest version on pip (pykafka 1.1.0), I haven't seen any more resetting of offsets!
However, I am now getting quite a number of these fellows when calling commit_offsets() when the consumer has been idle for a few hours:
Traceback (most recent call last):
  File "/home/ubuntu/whackstack/refine_matsel_service.py", line 230, in <module>
    consumer.commit_offsets()
  File "/home/ubuntu/whackstack/venv/local/lib/python2.7/site-packages/pykafka/simpleconsumer.py", line 349, in commit_offsets
    self._consumer_group, 1, 'pykafka', reqs)
  File "/home/ubuntu/whackstack/venv/local/lib/python2.7/site-packages/pykafka/broker.py", line 308, in commit_consumer_group_offsets
    return self._offsets_channel_req_handler.request(req).get(OffsetCommitResponse)
  File "/home/ubuntu/whackstack/venv/local/lib/python2.7/site-packages/pykafka/handlers.py", line 55, in get
    raise self.error
pykafka.exceptions.SocketDisconnectedError

The consumer still gets the message and does its thing, but dies at the very end on the commit.  supervisord restarts and it succeeds on the second go around with the commit, not sure what's up!

I wonder if your losing stored offsets previously could be related to the topic having been idle for days, which in combination with your brokers' retention settings may have caused them to get cleaned up by the time you hit this SocketDisconnectedError (which triggered the restart then, too, right?).

Good point, @yungchin.  Unlike previous versions of Kafka where offsets were stored forever in Kafka, offset storage rotates after a defined TTL which is offsets.topic.retention.minutes in the broker config. link.  The default for this is 24h, so if you weren't saving offsets for a few days and it crashed before you saved new values, it makes sense that the old values would be lost.

@kbourgoin Well the offsets were being committed every time a message came in (maybe a few minute delay from getting the message and committing it), its just that no messages were delivered to the topic for a while.
Basically it was idle for long periods of time in the for message in consumerloop.  I'm not sure if the offset reset is a red herring now, I was on pykafka 1.0.3 when I encountered the offset resets, but the logic has changed in 1.1.0.  Now I'm getting what's described in #224, but I haven't seen a reset of the offsets since I upgraded versions.

Closing this issue. @youngpm feel free to reopen if you see this behavior again.

Haven't seen the issue again since moving to the new version, so I think this will stay closed.


Input not reading out content (text) passed in end Adornment

Package name(s)
Core (@salt-ds/core)
Package version(s)
@salt-ds/core": "1.29.0
Description
Adornments should be read similar to a placeholder when user lands on the text input field. Based on the current configuration for the end adornment of “USD”, the Salt storybook shows a configuration where the salt Text element is passed which results in the attached image.
<Input endAdornment={USD} defaultValue={args.defaultValue ?? "Value 1"} {...args} />
https://storybook.saltdesignsystem.com/?path=/story/core-input--with-static-adornments
Steps to reproduce
Use screenreader to tab onto field in example.
Expected behavior
Screenreader should announce something like “Edit text, USD"
Operating system

[X] macOS
[ ] Windows
[ ] Linux
[ ] iOS
[ ] Android

Browser

[X] Chrome
[X] Safari
[ ] Firefox
[ ] Edge

Are you a JPMorgan Chase & Co. employee?

[X] I am an employee of JPMorgan Chase & Co.

Will need information whether expectation is the same between static adornment and button adornments

Goal: S(3)
Pepper team to provide more information (update this story)

Updates:

to fix the static adornments for input so that screen reader can read the label for static adornments along with input value when user lands on the text input.
the button adornments works fine. no fix needed for this.

Update static adornment examples with a11y recommendation, likely via aria-describedby

All static adornments aren't associated to the input by default. Channels teams will have to do it manually with aria-describedby and an id for the screen reader to call out the statuic adornments.
What Salt has updated:
Salt has updated the docs for static adornment example on site stating "Don't rely on static adornments alone for labelling, screen readers will not read them out." so that channel teams are aware about this.


Most plugins are gone

I logged into Runelite today and for some reason nearly all of the plugins are gone. The only plugins still there are: Account, HiScore, Info Panel, News Feed, Notes, and Runelite. I have already tried restarting the client and my computer and that didn't solve the problem. I have not tried uninstalling and reinstalling just in case there is a simpler fix. If anyone knows any way to fix this please let me know!

RuneLite is outdated, that is vanilla, expected behaviour.


[Bug] <Hide/unhide content.>

Is there an existing issue for this?

[X] Yes, I have searched the existing issues and none of them match my problem.

Product Variant
Cloud (https://rxresu.me)
Current Behavior
I am able to hide whole sections but not components of the sections. For example i can hide all of work exerience section, but if i wanted to hide a specific work experience entry i can't do that.
Expected Behavior
Previously it was possible to hide a block from within a section. For example if the section was called refrencess, i could hide or unhide references to tailor them to my current application.
Steps To Reproduce
No response
What browsers are you seeing the problem on?
Chrome
What template are you using?
None
Anything else?
No response

Please right click on an item to hide/show it.


Implemented adaptive UIViewController responses to invalidate message bubble cache on size change.

:muscle::sunglasses::facepunch:
Specifically, I implemented viewWillTransitionToSize:withTransitionCoordinator: and traitCollectionDidChange: for JSQMessagesViewController to remove cached message bubble sizes on size class transition. This is necessary to support split-screen multitasking.
This should fix #1212.
Before:

After:

Thanks @harlanhaskins !
These are iOS 8+ APIs. But, since we're just overriding these methods, they shouldn't get called on iOS 7. So I think we are good. Can you confirm that this doesn't crash on iOS 7?

Had to go next door and borrow an iPod 5 from my neighbor, but yes, it works fine rotating and everything on an iOS 7 device. Figured it would -- the iOS 7 SDK sees those as normal methods that aren't ever called.
:+1:

Any thoughts on this PR?

@harlanhaskins - definitely going to merge. set for 7.1.2 release

This fix it's ready on the master branch?

Woo!

@harlanhaskins lol. sorry it took so long. been really busy lately.

Totally understood. :+1:


Disable dynamic sequence caching for Oracle

Signed-off-by: Jan Schatteman<EMAIL_ADDRESS>

It's unfortunately not working, so we have to apply the NOCACHE hint to all envers tests.


[com.google.fonts/check/fontbakery_version] Development versions not parsed correctly

Observed behaviour
Current FontBakery version is 0.11.1.dev1+g7f28eca2.d20240202, while  a newer 0.11.1 is already available.

Expected behaviour
0.11.1.dev1 is newer then 0.11.1, so this should be a PASS.
Perhaps using standard version parsing libraries (packaging.version.parse) would get this right and cut down on code.

If you pip install -e .[all], then the scm module will set the version to 0.11.2.dev-something
For me, on main branch, the version now is 0.11.2.dev40+gce0d40cc.d20240207

0.11.1.dev1+g7f28eca2.d20240202 is not newer than 0.11.1
These .dev<n>+git-hash suffixes denote that there are N commits in the development of would in the future become version 0.11.1
I think what is actually missing is for you to fetch the v0.11.1 git tag by doing something like git fetch upstream; git rebase upstream/main
Once the tag is available on your local repo, then setuptools_scm will understand that the base version number is now 0.11.2

I believe the check implementation is actually correct, so I'll close this issue. Please reopen the issue if you think that's incorrect.


Receive an SMS Delivery Receipt

See gist: https://gist.github.com/adambutler/3aa45be4116ac38eaca42f001e655ed8

See sms/delivery_receipt.rb


misc(crypto, kscan, pcie): Convert drivers to new DT device macros

@galak Can you please point to the description of what this new macro does compare to the original one?

@galak Can you please point to the description of what this new macro does compare to the original one?

Take a look here:

https://github.com/zephyrproject-rtos/zephyr/blob/7a3f9c4e391f75558c74cbebcd503f16c6ed047c/include/device.h#L133
PR - https://github.com/zephyrproject-rtos/zephyr/pull/30196


Changing the language

How to change the keyboard lang after starting startx?

ok, i just edit /etc/X11/xorg.conf/00-keyboard.conf


[WIP] Refactor DML actions handling

The main goal of this refactor is to improve code quality (a bit, i'm not super fluent in go) and allow for EMPTY, NULL and DEFAULT values to be used in the DML statements.
Please feel free to make suggestions.

any progress? do you need help?

I just lost my main job, i'm busy right now preparing for interviews and those things. When I have more stability I will come back and get this done. Thanks for asking.

Wow, take care of you


Move tests inside tested modules

I want to merge this change because moving tests inside tested modules. Some of the test files have been split(e.g. tests/api/test_bulk_delete.py).
After this PR I open new PR where I take care of import cohesion inside test files.

Impact

[ ] New migrations
[ ] New/Updated API fields or mutations
[ ] Deprecated API fields or mutations
[ ] Removed API types, fields, or mutations

Pull Request Checklist

[ ] Privileged queries and mutations are guarded by proper permission checks
[ ] Database queries are optimized and the number of queries is constant
[ ] Database migration files are up to date
[x] The changes are tested
[ ] GraphQL schema and type definitions are up to date
[ ] Changes are mentioned in the changelog

@maarcingebala in this PR I plan just move test near to code. We should refactor each test module one by one.


Can the first screen copy be improved?

This is the the first text the user sees when they have decided to launch the tool

Threat Dragon is an open-source threat modeling tool from OWASP. It can be used as a standalone desktop app for Windows, MacOS and Linux or as a web application. Use the desktop application without if you do not want it to access your GitHub repos, and if you choose the online version you get to unleash the awesome power of GitHub on your threat models! To do this you need to log in first.

It focuses on technical details of the implementation rather than:
a. orientating the user, and/or
b. setting out the capabilities of the tool
There is also a possible typo, should without be throughout?
It would seem there is scope to improve this copy. I can propose an alternative but before doing so would like to know more about:

what type of users are expected to read the copy
what should be communicated to them
should the text be contextual (first time launch, type of deployment they are accessing etc)

Hello @ChristopherHackett
I must admit I am quite emotionally attached to this wording, it is little changed from Mike Goodwin's original - a bit of history I guess
Having said that ... it definitely needs changing and now is the time. Something like this?
OWASP Threat Dragon is a free, open-source, cross-platform application for creating threat models. Use it to draw threat modeling diagrams and to identify threats for your system. It is easily accessible for various types of teams, with an emphasis on flexibility and simplicity.

The version 2.0 release is very very close - just waiting on the Windows code signing certificate
We can get this wording changed for version 2.0 if we agree on it over this weekend

I have created a pull-request with suggested wording "OWASP Threat Dragon is a free, open-source, cross-platform application for creating threat models. Use it to draw threat modeling diagrams and to identify threats for your system. With an emphasis on flexibility and simplicity it is easily accessible for all types of uses."


fix: URI::setSegment() accepts the last +2 segment without Exception

Description
Fixes #7250
Related #7249
Checklist:

[x] Securely signed commits
[] Component(s) with PHPDoc blocks, only if necessary or adds value
[ ] Unit testing, with >80% coverage
[x] User guide updated
[x] Conforms to style guide

Added docs.


Bump supported Python version to 3.10

Currently failing because of https://github.com/agronholm/sphinx-autodoc-typehints/issues/183.

Some pointers on the current failure:

https://bugs.python.org/issue45487
Look into OP_IGNORE_UNEXPECTED_EOF and why Homebrew Python is built with OpenSSL 1.1 (and not something newer).


gui support for website specific search

@nikhilkumarsingh

also changed some bugs in gui

@akansh97531  Please wait for #7 to get merged. Then you can add support for same in GUI.

@nikhilkumarsingh  i added duckduckgo as an option please review

Please use same function implementations for google and duckduckgo.
Try to avoid extra no. of lines.

there will be some differences in both implementations
like for query parameter

At least use consistent function names @akansh97531

renamed function names


Latest version error @ NextJS 14.2.4

I started getting this error on build:
unhandledRejection CssSyntaxError: /home/source/next/app/globals.css:1:1: Unknown word
    at Input.error (/home/source/next/node_modules/postcss/lib/input.js:106:16)
    at Parser.unknownWord (/home/source/next/node_modules/postcss/lib/parser.js:593:22)
    at Parser.other (/home/source/next/node_modules/postcss/lib/parser.js:435:12)
    at Parser.parse (/home/source/next/node_modules/postcss/lib/parser.js:470:16)
    at parse (/home/source/next/node_modules/postcss/lib/parse.js:11:12)
    at LazyResult (/home/source/next/node_modules/postcss/lib/lazy-result.js:133:16)
    at Processor.process (/home/source/next/node_modules/postcss/lib/processor.js:53:14)
    at cssHandler (file:///home/source/next/node_modules/@tailwindcss-mangle/core/dist/index.mjs:247:61)
    at Object.transform (file:///home/source/next/node_modules/unplugin-tailwindcss-mangle/dist/index.mjs:40:24)
    at Object.transform (/home/source/next/node_modules/unplugin/dist/webpack/loaders/transform.js:108:38)
    at LOADER_EXECUTION (/home/source/next/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4134)
    at runSyncOrAsync (/home/source/next/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4145)
    at iterateNormalLoaders (/home/source/next/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:5782)
    at iterateNormalLoaders (/home/source/next/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:5650)
    at /home/source/next/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:5879
    at runSyncOrAsync (/home/source/next/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4293)
    at iterateNormalLoaders (/home/source/next/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:5782)
    at /home/source/next/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:5142
    at r.callback (/home/source/next/node_modules/next/dist/compiled/loader-runner/LoaderRunner.js:1:4039)
    at handleExports (/home/source/next/node_modules/next/dist/compiled/mini-css-extract-plugin/loader.js:1:6828)
    at /home/source/next/node_modules/next/dist/compiled/mini-css-extract-plugin/loader.js:1:7646
    at /home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:821142
    at /home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:131690
    at symbolIterator (/home/source/next/node_modules/next/dist/compiled/neo-async/async.js:1:14444)
    at timesSync (/home/source/next/node_modules/next/dist/compiled/neo-async/async.js:1:5027)
    at Object.eachLimit (/home/source/next/node_modules/next/dist/compiled/neo-async/async.js:1:14208)
    at /home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:129889
    at symbolIterator (/home/source/next/node_modules/next/dist/compiled/neo-async/async.js:1:14444)
    at done (/home/source/next/node_modules/next/dist/compiled/neo-async/async.js:1:14824)
    at /home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:129140
    at /home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:109939
    at /home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:312825
    at _done (eval at create (/home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:13:28858), <anonymous>:9:1)
    at Hook.eval [as callAsync] (eval at create (/home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:13:28858), <anonymous>:39:22)
    at Cache.store (/home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:16097)
    at ItemCacheFacade.store (/home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:17341)
    at /home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:109926
    at /home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:15962
    at /home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:15523
    at /home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:539171
    at /home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:28:15992
    at eval (eval at create (/home/source/next/node_modules/next/dist/compiled/webpack/bundle5.js:13:28858), <anonymous>:30:1)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at runNextTicks (node:internal/process/task_queues:64:3)
    at process.processImmediate (node:internal/timers:449:9) {
  reason: 'Unknown word',
  file: '/home/source/next/app/globals.css',
  source: '// extracted by mini-css-extract-plugin',
  line: 1,
  column: 1,
  endLine: 1,
  endColumn: 3,
  input: {
    column: 1,
    endColumn: 3,
    endLine: 1,
    line: 1,
    source: '// extracted by mini-css-extract-plugin',
    url: 'file:///home/source/next/app/globals.css',
    file: '/home/source/next/app/globals.css'
  }
}

Hi nickimbo:
Currently, it appears that version 3.0 only supports Vite.
More frameworks will be supported in the future, and this issue will be continuously tracked.

Add nextjs support at<EMAIL_ADDRESS>you could have a try.

Giving it a try right now.

`Failed to compile.
./app/globals.css
Module not found: Can't resolve 'text-red-800":{"name":"inju-build-339-fh","usedBy":{}},"dark:from-zinc-900":{"name":"inju-build-339-gh","usedBy":{}},"dark:text-blue-500":{"name":"inju-build-339-hh","usedBy":{}},"focus:outline-none":{"name":"inju-build-339-ih","usedBy":{}},"focus:ring-red-500":{"name":"inju-build-339-jh","usedBy":{}},"group-hover:hidden":{"name":"inju-build-339-kh","usedBy":{}},"hover:bg-secondary":{"name":"inju-build-339-lh","usedBy":{}},"hover:text-primary":{"name":"inju-build-339-mh","usedBy":{}},"place-items-center":{"name":"inju-build-339-nh","usedBy":{}},"text-foreground/50":{"name":"inju-build-339-oh","usedBy":{}},"text-foreground/90":{"name":"inju-build-339-ph","usedBy":{}},"transition-opacity":{"name":"inju-build-339-qh","usedBy":{}},"translate-x-[-50%]":{"name":"inju-build-339-rh","usedBy":{}},"translate-y-[-50%]":{"name":"inju-build-339-sh","usedBy":{}},"underline-offset-4":{"name":"inju-build-339-th","usedBy":{}},"'
https://nextjs.org/docs/messages/module-not-found
./app/globals.css
Module not found: Module not found: Error: Can't resolve 'text-red-800":{"name":"inju-build-339-fh","usedBy":{}},"dark:from-zinc-900":{"name":"inju-build-339-gh","usedBy":{}},"dark:text-blue-500":{"name":"inju-build-339-hh","usedBy":{}},"focus:outline-none":{"name":"inju-build-339-ih","usedBy":{}},"focus:ring-red-500":{"name":"inju-build-339-jh","usedBy":{}},"group-hover:hidden":{"name":"inju-build-339-kh","usedBy":{}},"hover:bg-secondary":{"name":"inju-build-339-lh","usedBy":{}},"hover:text-primary":{"name":"inju-build-339-mh","usedBy":{}},"place-items-center":{"name":"inju-build-339-nh","usedBy":{}},"text-foreground/50":{"name":"inju-build-339-oh","usedBy":{}},"text-foreground/90":{"name":"inju-build-339-ph","usedBy":{}},"transition-opacity":{"name":"inju-build-339-qh","usedBy":{}},"translate-x-[-50%]":{"name":"inju-build-339-rh","usedBy":{}},"translate-y-[-50%]":{"name":"inju-build-339-sh","usedBy":{}},"underline-offset-4":{"name":"inju-build-339-th","usedBy":{}},"'
https://nextjs.org/docs/messages/module-not-found

Build failed because of webpack errors`

Can you provide me with a reproducible case? I would be very grateful.

me too @sonofmagic
The second time I come back with this plugin in nextjs, also not working but different error :D .
Keep it up.
./src/styles/globals.css
Module not found: Can't resolve 'p-[var(--mega-body-padding)]":{"name":"tw-id","usedBy":{}},"[&_[cmdk-group-heading]]:px-2":{"name":"tw-jd","usedBy":{}},"after:transition-[background]":{"name":"tw-kd","usedBy":{}},"before:dark:bg-gradient-to-br":{"name":"tw-ld","usedBy":{}},"before:shadow-mega-primary/40":{"name":"tw-md","usedBy":{}},"before:shadow-mega-primary/80":{"name":"tw-nd","usedBy":{}},"data-[state=closed]:ease-vaul":{"name":"tw-od","usedBy":{}},"data-[state=open]:blur-in-2xl":{"name":"tw-pd","usedBy":{}},"data-[state=open]:zoom-in-125":{"name":"tw-qd","usedBy":{}},"data-align=start:duration-400":{"name":"tw-rd","usedBy":{}},"data-disabled=true:opacity-50":{"name":"tw-sd","usedBy":{}},"data-state=closed:animate-out":{"name":"tw-td","usedBy":{}},"data-state=closed:zoom-out-95":{"name":"tw-ud","usedBy":{}},"hover:after:dark:to-[#0065FF]":{"name":"tw-vd","usedBy":{}},"hover:before:bg-purple-500/20":{"name":"tw-wd","usedBy":{}},"hover:before:bg-yellow-500/20":{"name":"tw-xd","usedBy":{}},"hover:text-mega-secondary/100":{"name":"tw-yd","usedBy":{}},"selection:text-mega-secondary":{"name":"tw-zd","usedBy":{}},"transition-[background-color]":{"name":"tw-ae","usedBy":{}},"after:dark:bg-gradient-to-br":{"name":"tw-be","usedBy":{}},"before:'

https://nextjs.org/docs/messages/module-not-found

./src/styles/globals.css
Module not found: Module not found: Error: Can't resolve 'p-[var(--mega-body-padding)]":{"name":"tw-id","usedBy":{}},"[&_[cmdk-group-heading]]:px-2":{"name":"tw-jd","usedBy":{}},"after:transition-[background]":{"name":"tw-kd","usedBy":{}},"before:dark:bg-gradient-to-br":{"name":"tw-ld","usedBy":{}},"before:shadow-mega-primary/40":{"name":"tw-md","usedBy":{}},"before:shadow-mega-primary/80":{"name":"tw-nd","usedBy":{}},"data-[state=closed]:ease-vaul":{"name":"tw-od","usedBy":{}},"data-[state=open]:blur-in-2xl":{"name":"tw-pd","usedBy":{}},"data-[state=open]:zoom-in-125":{"name":"tw-qd","usedBy":{}},"data-align=start:duration-400":{"name":"tw-rd","usedBy":{}},"data-disabled=true:opacity-50":{"name":"tw-sd","usedBy":{}},"data-state=closed:animate-out":{"name":"tw-td","usedBy":{}},"data-state=closed:zoom-out-95":{"name":"tw-ud","usedBy":{}},"hover:after:dark:to-[#0065FF]":{"name":"tw-vd","usedBy":{}},"hover:before:bg-purple-500/20":{"name":"tw-wd","usedBy":{}},"hover:before:bg-yellow-500/20":{"name":"tw-xd","usedBy":{}},"hover:text-mega-secondary/100":{"name":"tw-yd","usedBy":{}},"selection:text-mega-secondary":{"name":"tw-zd","usedBy":{}},"transition-[background-color]":{"name":"tw-ae","usedBy":{}},"after:dark:bg-gradient-to-br":{"name":"tw-be","usedBy":{}},"before:'

https://nextjs.org/docs/messages/module-not-found

./src/styles/overlay-scrollbar.css
Module not found: Can't resolve 'p-[var(--mega-body-padding)]":{"name":"tw-id","usedBy":{}},"[&_[cmdk-group-heading]]:px-2":{"name":"tw-jd","usedBy":{}},"after:transition-[background]":{"name":"tw-kd","usedBy":{}},"before:dark:bg-gradient-to-br":{"name":"tw-ld","usedBy":{}},"before:shadow-mega-primary/40":{"name":"tw-md","usedBy":{}},"before:shadow-mega-primary/80":{"name":"tw-nd","usedBy":{}},"data-[state=closed]:ease-vaul":{"name":"tw-od","usedBy":{}},"data-[state=open]:blur-in-2xl":{"name":"tw-pd","usedBy":{}},"data-[state=open]:zoom-in-125":{"name":"tw-qd","usedBy":{}},"data-align=start:duration-400":{"name":"tw-rd","usedBy":{}},"data-disabled=true:opacity-50":{"name":"tw-sd","usedBy":{}},"data-state=closed:animate-out":{"name":"tw-td","usedBy":{}},"data-state=closed:zoom-out-95":{"name":"tw-ud","usedBy":{}},"hover:after:dark:to-[#0065FF]":{"name":"tw-vd","usedBy":{}},"hover:before:bg-purple-500/20":{"name":"tw-wd","usedBy":{}},"hover:before:bg-yellow-500/20":{"name":"tw-xd","usedBy":{}},"hover:text-mega-secondary/100":{"name":"tw-yd","usedBy":{}},"selection:text-mega-secondary":{"name":"tw-zd","usedBy":{}},"transition-[background-color]":{"name":"tw-ae","usedBy":{}},"after:dark:bg-gradient-to-br":{"name":"tw-be","usedBy":{}},"before:'

https://nextjs.org/docs/messages/module-not-found

./src/styles/overlay-scrollbar.css
Module not found: Module not found: Error: Can't resolve 'p-[var(--mega-body-padding)]":{"name":"tw-id","usedBy":{}},"[&_[cmdk-group-heading]]:px-2":{"name":"tw-jd","usedBy":{}},"after:transition-[background]":{"name":"tw-kd","usedBy":{}},"before:dark:bg-gradient-to-br":{"name":"tw-ld","usedBy":{}},"before:shadow-mega-primary/40":{"name":"tw-md","usedBy":{}},"before:shadow-mega-primary/80":{"name":"tw-nd","usedBy":{}},"data-[state=closed]:ease-vaul":{"name":"tw-od","usedBy":{}},"data-[state=open]:blur-in-2xl":{"name":"tw-pd","usedBy":{}},"data-[state=open]:zoom-in-125":{"name":"tw-qd","usedBy":{}},"data-align=start:duration-400":{"name":"tw-rd","usedBy":{}},"data-disabled=true:opacity-50":{"name":"tw-sd","usedBy":{}},"data-state=closed:animate-out":{"name":"tw-td","usedBy":{}},"data-state=closed:zoom-out-95":{"name":"tw-ud","usedBy":{}},"hover:after:dark:to-[#0065FF]":{"name":"tw-vd","usedBy":{}},"hover:before:bg-purple-500/20":{"name":"tw-wd","usedBy":{}},"hover:before:bg-yellow-500/20":{"name":"tw-xd","usedBy":{}},"hover:text-mega-secondary/100":{"name":"tw-yd","usedBy":{}},"selection:text-mega-secondary":{"name":"tw-zd","usedBy":{}},"transition-[background-color]":{"name":"tw-ae","usedBy":{}},"after:dark:bg-gradient-to-br":{"name":"tw-be","usedBy":{}},"before:'

https://nextjs.org/docs/messages/module-not-found

> Build failed because of webpack errors

Let see if I can send you a reproduction later

hmmm I tried with Nextjs 14 and 15 boilerplate in CodeSandBox, it's just a default template of Nextjs with Tailwind, but I can't even use utwm from that. Please check the reproduction to see if I have any mistakes.

Also having this problem with v3.0.1, I'm on NextJS 13.4.2

unplugin-tailwindcss-mangle version 2.3.0 seems to still be working with nextjs version 14.2.15


Can not download the kubectl client of version v1.7.0

Environment

Server - VSTS or TFS on-premises?
VSTS

Agent - Hosted or Private:
Hosted

If using Hosted agent, provide agent queue name:
Hosted Linux agent

Issue Description
Agent is unable to download kubectl client.
Error logs
018-02-06T19:16:36.4377125Z ==============================================================================
2018-02-06T19:16:36.4764570Z Task         : Deploy to Kubernetes
2018-02-06T19:16:36.5064902Z Description  : Deploy, configure, update your Kubernetes cluster in Azure Container Service by running kubectl commands.
2018-02-06T19:16:36.5338080Z Version      : 0.1.9
2018-02-06T19:16:36.5594830Z Author       : Microsoft Corporation
2018-02-06T19:16:36.5850998Z Help         : [More Information](https://go.microsoft.com/fwlink/?linkid=851275)
2018-02-06T19:16:36.6128659Z ==============================================================================
2018-02-06T19:16:40.5616628Z ##[error]Can not download the kubectl client of version v1.7.0. Check if the version is correct https://github.com/kubernetes/kubernetes/releases

Can you check if this url "https://storage.googleapis.com/kubernetes-release/release/v1.7.0/bin/linux/amd64/kubectl" is accessible from agent machine? K8 task tries to download the agent from this URL. If it's not able to access you need to manually place the kubectl in the agent machine.
If the url is accessible from agent machine, can you run a release with a variable 'system.debug' as true and share the logs?. This will help us understand the reason why k8 task was not able to download the k8 client.

Jite had fixed this issue sometime back, so marking it closed.


build.zig: Fix @src logic and a few things

This should be the proper version of https://github.com/raysan5/raylib/pull/4380. Compared to the previous version, line 68 has been changed and I deleted some printf expression I forgot to remove.

@sagehane thanks for the review!


NameError: name 'unicode' is not defined

python3
when im trying to post a post
can we update it following this link’s https://stackoverflow.com/questions/6812031/how-to-make-unicode-string-with-python3 ?

Thanks @bboyadao


DM-37758: Replace Cachemachine with JupyterLab Controller

This was done using the bot API instead of talking to the lab controller directly in #227.


benchrun.lua: Support matching "vN_stats:" lines

This patch adds support for matching output lines like the following:
v4_stats: 1.23 MPPS, 3.45 Gbps
v6_stats: 4.56 MPPS, 1.23 Gbps

Also, the code was refactored to make it easier to add support for matching more patterns and OO-ified a bit:

sample_set objects are responsible for aggregating samples, stats calculation (for now the existing min/max/average/stderror combo), and how to print a report.
Matching lines is moved to “matcher” objects.

For the record, I am adding here an example output for the following command (which just uses a constant value):
 ./benchrun.lua 20 'echo "v4_stats: 2.5 MPPS, 1.2 Gbps" ;
   echo "v6_stats: 2.4 MPPS, 1.1 Gbps" ;
   echo "Rate: 4.5 MPPS";
   echo "Rate 1.2 MPPS"'

The output is:
Progress: 100% (20/20), last value: Rate 1.2 MPPS
rate[1].mpps:
  min: 4.5
  max: 4.5
  avg: 4.5
  err: 0
rate[2].mpps:
  min: 1.2
  max: 1.2
  avg: 1.2
  err: 4.96507e-17
rate[sum].mpps:
  min: 5.7
  max: 5.7
  avg: 5.7
  err: 3.97205e-16
v4_stats.mpps:
  min: 2.5
  max: 2.5
  avg: 2.5
  err: 0
v6_stats.mpps:
  min: 2.4
  max: 2.4
  avg: 2.4
  err: 9.93014e-17
v6_stats.gbps:
  min: 1.1
  max: 1.1
  avg: 1.1
  err: 0
v4_stats.gbps:
  min: 1.2
  max: 1.2
  avg: 1.2
  err: 4.96507e-17

Thanks for your work on this. I must have specified it unclearly.
v4_stats: 1.032 MPPS, 4.211 Gbps. <-- line A
v6_stats: 1.030 MPPS, 4.862 Gbps.
v4_stats: 1.100 MPPS, 4.490 Gbps.
v6_stats: 1.098 MPPS, 5.184 Gbps.
v4_stats: 1.081 MPPS, 4.410 Gbps.
v6_stats: 1.079 MPPS, 5.092 Gbps.
v4_stats: 1.105 MPPS, 4.507 Gbps. <-- line B
v6_stats: 1.102 MPPS, 5.203 Gbps.
link report:
           5,421,952 sent on b4sideNic.tx -> lwaftr.v6 (loss rate: 0%)
           5,421,952 sent on inetNic.tx -> lwaftr.v4 (loss rate: 0%)
           5,421,952 sent on lwaftr.v4 -> v4_stats.input (loss rate: 0%)
           5,411,366 sent on lwaftr.v6 -> v6_stats.input (loss rate: 0%)
           5,421,952 sent on v4_stats.output -> inetNic.rx (loss rate: 0%)
           5,411,366 sent on v6_stats.output -> b4sideNic.rx (loss rate: 0%)
v4_stats: 1.272 MPPS, 5.192 Gbps. <-- line C
v6_stats: 1.270 MPPS, 5.994 Gbps.
v4_stats: 1.354 MPPS, 5.525 Gbps.
v6_stats: 1.351 MPPS, 6.379 Gbps.
v4_stats: 1.336 MPPS, 5.451 Gbps.
v6_stats: 1.333 MPPS, 6.294 Gbps.
v4_stats: 1.358 MPPS, 5.542 Gbps. <-- line D
v6_stats: 1.356 MPPS, 6.399 Gbps.
link report:
           6,695,168 sent on b4sideNic.tx -> lwaftr.v6 (loss rate: 0%)
           6,695,168 sent on inetNic.tx -> lwaftr.v4 (loss rate: 0%)
           6,695,168 sent on lwaftr.v4 -> v4_stats.input (loss rate: 0%)
           6,682,014 sent on lwaftr.v6 -> v6_stats.input (loss rate: 0%)
           6,695,168 sent on v4_stats.output -> inetNic.rx (loss rate: 0%)

Given the above data, I want the statistics on lines A&C, and on lines B&D, not on all the v4 lines. I want to compare initial and warmed up (final) speeds of several runs (per-interface, so I care about v4_stats and v6_stats), not the details of how it progresses during a run.
As a nit, could you make min/max/avg/stderr be on one line rather than 4? It saves a lot of vertical space on a terminal, which makes it easier to compare different runs with code changes between them, which is my use case for this tool: to see if performance differences look statistically valid.

I ended up writing it myself. Thanks for your effort on it.
#!/usr/bin/env python3
import sys
import statistics
import re

def get_num_from_line(l):
	return float(re.findall("([0-9.]+) MPPS", l)[0])

def wrap_stdev(s):
	if len(s) < 2: return 0
	return statistics.stdev(s)

def print_stats(s, desc):
	print("%s: min: %.3f, max: %.3f, avg: %.3f, stdev: %.4f" % (desc, min(s), max(s), statistics.mean(s), wrap_stdev(s)))

def process_chunk(lines):
	v = list(filter(lambda x: x != '' and x[0] == 'v', lines))
	v4i = get_num_from_line(v[0])
	v6i = get_num_from_line(v[1])
	v4f = get_num_from_line(v[-2])
	v6f = get_num_from_line(v[-1])
	return v4i, v6i, v4f, v6f

def main():
	chunks = sys.stdin.read().split("link report")
	v4i = []
	v6i = []
	v4f = []
	v6f = []

	for i in range(0, len(chunks) - 1):
		a, b, c, d = process_chunk(chunks[i].split("\n"))
		v4i.append(a)
		v6i.append(b)
		v4f.append(c)
		v6f.append(d)

	print_stats(v4i, "Initial v4 MPPS")
	print_stats(v6i, "Initial v6 MPPS")
	print_stats(v4f, "  Final v4 MPPS")
	print_stats(v6f, "  Final v6 MPPS")

main()

cat check | lwstats.py
Initial v4 MPPS: min: 1.032, max: 1.272, avg: 1.152, stdev: 0.1697
Initial v6 MPPS: min: 1.030, max: 1.270, avg: 1.150, stdev: 0.1697
  Final v4 MPPS: min: 1.105, max: 1.358, avg: 1.232, stdev: 0.1789
  Final v6 MPPS: min: 1.102, max: 1.356, avg: 1.229, stdev: 0.1796


8.x routing thows error without Scope Resolution Operator (::)

From 8.* docs:
use App\Http\Controllers\UserController;

Route::get('/user', [UserController::class, 'index']);

From 7.* docs
Route::get('/user', 'UserController@index');

Without changing to ::class you get a namespace error.
But this is not mentioned in the upgrade guide. Yes it's in the routing chapter, but being a breaking change shouldn't it be included in upgrade guide.
And has anyone addressed this https://github.com/laravel/ui/issues/138
Why doesn't docs have an issue section.
I did PR, but positive I did it correctly.

There's a pr to the docs open now: https://github.com/laravel/docs/pull/6309


KML load images included in kmz zip file

Currently images included in the zip/kmz file are not loaded in KMLLayer where the urls in the KML are relative paths to the image.
e.g. /sampel.png
im not sure though if the url starts with http if it also loads, but these kind of urls should also be supported.

@chitgoks Thanks! Could you please provide an example KMZ for this?

i will PM back once i can get a KMZ for this. i access the google crisis site for the kmz, currently there is no natural disaster.

I added KMZ support in https://github.com/googlemaps/android-maps-utils/pull/625.


[Frontend]: CSS Box Model

Description 📜
Here I've explained briefly about CSS Box Model in the documentation. The following topics are covered:

Content Box Model
Border Box Model

along with the examples and visual representation of both.
Fixes #930

Type of change 📝

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

Domain of Contribution 📊

[x] Frontend Dev (HTML, CSS, JS)

Checklist ✅

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

@code-reaper08, please review it :)

Looks so awesome @nayyyhaa
I'll merge it soon.

Sure, thanks! 😃

Hello @nayyyhaa!
I missed to spot that you didn't have a folder for this.
For example the file should be inside,
winter-of-contributing/Web_Development/FrontEnd/CSS_BoxModel/yourfile.md
Please have a look, and I'll merge it back.

I've commented about file structure, do have a look.

Sure, will make the changes.

Ping the new PR here, so that It'll be easy to merge.


dotnet is not recognized

Problem encountered on https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/install
Operating System: windows
Provide details about the problem you're experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
I  followed the .NET Tutorial and at the end when writing dotnet it doesnt recognize the name i refreashed a few times and even restarted my pc but it still didnt work

Please make sure you've installed dotnet: https://dotnet.microsoft.com/en-us/download

Do you see .NET on the install folders?
https://learn.microsoft.com/en-us/dotnet/core/install/how-to-detect-installed-versions?pivots=os-windows#check-for-install-folders
Have you installed the .NET SDK?


⚠ Spryr has degraded performance

In 1cf043c, Spryr (https://spryr.com) experienced degraded performance:

HTTP code: 200
Response time: 5171 ms

Resolved: Spryr performance has improved in d84fd17 after 8 minutes.


infection badge readme

Codecov Report

Merging #32 into master will not change coverage by %.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #32   +/-   ##
=========================================
  Coverage     92.82%   92.82%
  Complexity       97       97
=========================================
  Files            16       16
  Lines           237      237
=========================================
  Hits            220      220
  Misses           17       17

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 408c748...5c2a963. Read the comment docs.


Outline Mode

I love using lists in MarkEdit. It would be amazing to be able to create nested lists.
So I would be able to intend lists with tabs and keep the intent when creating a new line.

Perfect! Thank you so much, and sorry for not finding it myself :)


CSS red and blue classes aren't working properly

On the game ending screen, although the element has class "red" or "blue" the css doesn't make it red or blue. I'm not sure what's going on.

Added hacktoberfest so someone might come help

Fixed by #25


Need to find out why the value of the reward before the CLAIM is different than the value after the CLAIM.

@sirpy  please take a look. any ideas why it happening?
Env: web PROD 1.35.12
Device: Windows 10 // Google Chrome v96
Attachments: https://app.birdeatsbug.com/sessions/UbuHbrTPYdnVbkf8SprA7

@sirpy
It happened to me one more time, please start watch from 8:15 min.
https://app.birdeatsbug.com/sessions/6N5tlOlr2xtDgOb3nI7tA?

@vldkh @patpedrosa
So there are a few issues here

this happens when user is checking on blockchain what is the next claim amount, just after a new day has started but still no one claimed yet. Each day the current day claim amount is calculated on the first claim.
we did handle this case, when user checks claim amount before no one has claimed yet, but the calculation is wrong
in any case the calculation will always be just an ESTIMATE, usually it will be exact estimate but not always, because of the way the calculation happens on the first claim.

I will fix the check claim amount calculation for V2, but it still might not be exact for users that check the claim amount just before the first claim.
@patpedrosa on the UI we can put some indication that it is an estimate in those cases.

Could we use yesterday's value as an estimate until the first claim of the day is done?

we are upgrading to v2 this week, so it will be fixed


NeuralODE: modeling dynamics of system with (discontinuous) control inputs

I am trying to investigate the applicability of neural ODEs to system ID under actuation. Essentially, if my system can be described as x_dot = f(x, u), given x_o and u, I would like to predict the evolution of x. Sort of like what SINDYc attempts to do.
My question is two-fold: firstly, is it possible to also include time-dependent control inputs in the neural ODE formulation? Is it straightforward enough to just "stack" an input value along with the state being passed to the neural network (depending on the value of t being considered), under the hope that the NN will figure out the relationship between x and u?
Secondly, for systems such as the inverted pendulum on a cart, the input can just be a relay-type input, where a force is applied only for a period of time. Would such a discontinuity be a problem?

Yes. https://github.com/JuliaDiffEq/DiffEqFlux.jl/issues/174 is somewhat an example, though I would use a spline from DataInterpolations instead of a neural network there, but you get the point.

Secondly, for systems such as the inverted pendulum on a cart, the input can just be a relay-type input, where a force is applied only for a period of time. Would such a discontinuity be a problem?

You might want to declare the discontinuity via d_discontinuity or ContinuousCallback, but that's mostly an optimization. You'll find a lot of discussions around on how to do this, but feel free to ask for more details if necessary.

Thank you, will try them out! Ideally I'd like to see a sufficiently trained model generalizing to different inputs by finding the right 'decoupling' in the equations (hence the NN instead of just fitting)

I'm not sure what you mean about that?

I am trying to see if it's possible to train a black box that takes as inputs an initial state x0 and control signal info (arbitrary u applied for time period t) and approximates the long term evolution of the system.

Yes, and we've added an example to the README. Making it discontinuous will have local minima though, so you have to be careful how you optimize that.


Change the name in 'Response Class' -> 'Model'

I have the following API view:
from rest_framework.authtoken.views import ObtainAuthToken

class UglyAPILoginClassName(ObtainAuthToken):
    def post(self, request):
        """
        Short description
        ---
        type:
          token:
            type: string
            required: true
          full_name:
            type: string
            required: true
        """
        return Response({
            'token': 'token123',
            'full_name': 'John Doe'
        })

which I later use like this:
url(r'^ugly-token-auth/', UglyAPILoginClassName.as_view(), name='ugly_login'),

Swagger creates the following:

Under 'Response Class' -> 'Model' you can see an automatically generated name UglyAPILoginClassNamePostResponse. It looks terrible. I would like to hide it somehow from users. How can I do that? Can I specify another name in the docstring? Or maybe hide the name (leaving just the curly braces and everything between them)? Or can I hide the 'Model' tab, leaving only 'Model Schema'?

DRF is now responsible for generating the schema and setting these properties.


I am seeing the same issue using SDWebImage version 5.3.2, cocoapods, Xcode 12. Crashes are appearing on iOS 14+, does not appear to be happening below iOS 14.

I am seeing the same issue using SDWebImage version 5.3.2, cocoapods, Xcode 12. Crashes are appearing on iOS 14+, does not appear to be happening below iOS 14.
Originally posted by @poiuyqwert in https://github.com/SDWebImage/SDWebImage/issues/3124#issuecomment-726898987

Try the latest SDWebImage version (update to 5.10.4)


update broken

Expected behaviour
updating to new version should work as normal
Actual behaviour
returning 500 internal server error
Steps to reproduce

update to new version

Configuration
Copy and paste the configuration section from the Kanboard settings page or fill these fields:

Kanboard version: latest
Database type and version: sqlite (default)
PHP version:5.6
OS:ubuntu 12
Browser: chrome

Now, i went back to old version and it displays following error
"Internal Error: Unable to load this plugin class \Kanboard\Plugin\Hipchat\Plugin"
I have tried updating Hipchat to latest version, still same error.
if i remove Hipchat plugin, both old and new versions works fine
now the biggest problem for me is...
old working plugins (Hipchat, google authentication, Mailgun) not working with old version also now :cry:
my page shows error like
Internal Error: Unable to load this plugin class \Kanboard\Plugin\Hipchat\Plugin
debug.log has
[2016-05-08 21:34:55] [debug] SQL_QUERIES=0
[2016-05-08 21:34:55] [debug] RENDERING=0.015743970870972
[2016-05-08 21:34:55] [debug] MEMORY=962.84k
[2016-05-08 21:34:55] [debug] URI=/pms/settings
[2016-05-08 21:34:55] [debug] ###############################################
[2016-05-08 21:35:22] [debug] SQL_QUERIES=0
[2016-05-08 21:35:22] [debug] RENDERING=0.023101091384888
[2016-05-08 21:35:22] [debug] MEMORY=962.84k
[2016-05-08 21:35:22] [debug] URI=/pms/settings
[2016-05-08 21:35:22] [debug] ###############################################

Thank god...its working now
i changed nothing but i activated google auth first, then mailgun plugin then hipchat and its working fine.
i don't know what is the cause but activating hipchat first causing all the trouble.


Overlapping segments are not detected

I was playing with the library to see how it handles edge cases, and I stumbled upon this one, which doesn't seem to be right:
import poly_point_isect

print (
    poly_point_isect.isect_segments_include_segments(
        [
            ((0.0, 0.0),(10.000000, 10.000000)),
            ((5.0, 5.0),(20.000000, 20.000000))
        ]
    )
)

The output is []. I expected to see both [5, 5] and [10, 10], but maybe I'm missing something?

This case is not handled.
However comparing all edges against all other edges also doesn't show any intersections in this case.
import poly_point_isect

print (
    poly_point_isect.isect_segments__naive([
        ((0.0, 0.0),(10.000000, 10.000000)),
        ((5.0, 5.0),(20.000000, 20.000000))
    ]))

Closing as this isn't a bug in the implementation.


avoid "std::pow(10,x)"?

Please consider this as a very low priority feature request, but let me post it, as performance is important part of mfast :)
I've found such code:
 operator double()
  {
    double x = mantissa();
    return x * std::pow(10, exponent());
  }

Of course it should be tested, but likely something like this must be significantly faster:
int pow10[] = {
            0.0000000001,
            0.000000001,
            0.00000001,
            0.0000001,
            0.000001,
            0.00001,
            0.0001,
            0.001,
            0.01,
            0.1,
	1,
	10,
	100,
	1000,
	10000,
	100000,
	1000000,
	10000000,
	100000000,
<PHONE_NUMBER>,
};

 operator double()
  {
    double x = mantissa();
    return x * pow10[exponent() + 10];
  }

The code uses boost::x3::extension::scale() instead of std::pow() now.


Add VFG to CDN services

Allowing installation of VFG like this
<script src="https://cdnjs.cloudflare.com/ajax/libs/vue/2.5.13/vue.min.js"></script>

@networkimprov The CloudFlare CDN you provided as an example has a "request library" feature which you are welcome to submit a ticket to.
Here's a link to the Issue Request provided by CloudFlare.  This is a simple GitHub Issue request filed with cdnjs's github repo requesting them to add a library of your choice to their repository.  We have no direct control over this.
Request VFG Be Added to CloudFlare
In addition, you can also use the unpkg CDN, which is used regularly for JSFiddle samples in the documentation and for issue support.
<!-- full vfg -->
<script<EMAIL_ADDRESS><link rel="stylesheet"<EMAIL_ADDRESS>/>

<!-- vfg-core only -->
<script<EMAIL_ADDRESS><link rel="stylesheet"<EMAIL_ADDRESS>/>

Maybe include the above code for unpkg in the installation docs? Most other JS libs I've seen do this...


ZeroDivisionError: float division by zero

Trying to get my electrum server synced and it keeps stopping with this error:
Exception in thread Thread-4:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
self.run()
File "/usr/lib/python2.7/threading.py", line 754, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/python2.7/site-packages/electrumserver/blockchain_processor.py", line 104, in do_catch_up
self.catch_up(sync=False)
File "/usr/lib/python2.7/site-packages/electrumserver/blockchain_processor.py", line 709, in catch_up
self.print_time(n)
File "/usr/lib/python2.7/site-packages/electrumserver/blockchain_processor.py", line 128, in print_time
tx_per_second = (1-alpha2) * tx_per_second + alpha2 * num_tx / delta
ZeroDivisionError: float division by zero
^CINFO:electrum:Stopping Stratum
I assume delta becomes zero at a point.  Any ideas?

I see that it is part of some reporting, at the moment I am going to try this:
delta = time.time() - self.time_ref +<PHONE_NUMBER>.000001

So far so good...running for 6 hrs.

Running for days.  Anyone think this could have something to do with this:  http://xenbits.xen.org/docs/4.3-testing/misc/tscmode.txt

#155 proposed


Support for new ES6 string methods?

I just wanted to ask if there was any intention of adding the new ES6 string methods to Typescript. Doing something like "string".includes("in"); warns with "prototype 'includes' does not exist on type 'string'." Thanks in advance for any information.
Ref: http://www.ecma-international.org/ecma-262/6.0/#sec-string.prototype.includes

Are you targeting es6 or es2015 because it is in core.es6.d.ts?

Indeed, just --target es6 and you're good to go

So, if I target ES5, it won't transpile it to valid ES5?

I maybe don't understand the question.
If you're targeting ES5, ES6 string methods aren't available. If you include a polyfill at runtime, just include the corresponding .d.ts file for that polyfill and you're back in good shape.

Oh, okay. I think I may have had a misunderstanding of Typescript's features. I was thinking Typescript allows authoring in ES6 and it will transpile to ES5 (like Babel), but it seems that Typescript only does that for select ES6 features, like modules.
If one wanted this ES6 to ES5 functionality, would I add Babel to my build process? Is that what most Typescript users do?
 Thanks for the replies @kitsonk and @RyanCavanaugh!

So, if I target ES5, it won't transpile it to valid ES5?

but it seems that Typescript only does that for select ES6 features, like modules.

TypeScript does not add runtime polyfills/shims.  It is a TypeScript non-design goal:

Provide additional runtime functionality or libraries. Instead, use TypeScript to describe existing libraries.

It only deals with language constructs (e.g. classes, variables, operators).  Many people use es6-shim or core.js.  In Dojo Toolkit, we have chosen not to polyfill globals and provide many of the functional features as a module which offloads to native if present or otherwise fills the functionality.  For example, importing dojo/core/Promise would provide you with something that always behaved like a ES6 Promise, but didn't interfere with anyone else.  This is because we believe that you aren't always fully in control of your runtime environment in complex projects, so why mess with globals and potentially break someone else's code.

I think you're confusing transpilation with auto-polyfilling. TypeScript doesn't automatically polyfill for you like Babel does, but does perform syntactic downleveling (e.g. for arrow functions).
If you want to use ES6 runtime prototype methods, I'd simply include an appropriate ES6 polyfill and its accompanying definition file.

You are correct. I am confusing transpilation with polyfilling. I will look into an appropriate solution. Still getting used to all this terminology, so thank you for putting up with me :)

Hey so I'm trying to figure this out.
Seeing this message:

Running into the same issue. Again I'm coming from a babel ecosystem and have a polyfill for these. I noticed these online, but not quite sure how to install them:
http://definitelytyped.org/docs/typescript-services--typescriptServices/classes/typescript.stringutilities.html

@xjamundx I did a bit of research, and it seems extending the "basic types" in TypeScript is pretty easy. I just tossed the below interface into my custom typings directory (not the "typings" directory that is managed by typings, the NPM module), and all my ES6 string methods were essentially ignored by the compiler and complied as written:
// arbitrarily named "es6-string-methods.d.ts"
interface String {
	repeat: (string) => string;
	startsWith: (string) => string;
	endsWith: (string) => string;
	includes: (string) => string;
}

// Original TypeScript file "greeting.ts"
let overlyFriendly = 'hello'.repeat(3);

// Compile JavaScript file "greeting.js"
var overlyFriendly = 'hello'.repeat(3);

Just use it as an "ambient definition", meaning it's treated like a global definition. As long as you have the polyfill to handle the new string methods, It Just Works (TM). Let me know if it works for you.

Thanks @cerebrl
I just changed my target to es6 and it all worked fine without needing any of this. Also looks like Typescript 2.0 has more explicit support for this kind of thing here:
https://github.com/Microsoft/TypeScript/wiki/What's-new-in-TypeScript#including-built-in-type-declarations-with---lib


bug: fix uppercase of 'FILTER' keyword in tests

'FILTER' keyword should be lower case in filter definitions.

The expected behavior is that metadata keys should work both as uppercase or lowercase

@legau this issue is meant in the clients. And grpc is only working with lower case metadata. If it's working in our env it's because in your api client we make sure it's lower string before sending them. We need to update doc/exemple to be sure everything is in lower case

https://github.com/socotecio/django-socio-grpc/commit/14b48c9ab753971503883527677c514a55edb4df
Should be enough to fix this issue

Seems to be HTTP/2 https://httpwg.org/specs/rfc7540.html#rfc.section.8.1.2


Resolve contradiction in mtval definition

The definition gives the implementation the flexibility of hardwiring mtval to 0, but also says that mtval is always written on certain exceptions.  This is, at a minimum, confusing since if mtval is hardwired to 0, those writes are fruitless.
Resolve by conditioning the sentence on whether mtval is hardwired to 0.
@jhauser-us -- this is not the resolution we discussed last night, but I think it does the trick, right?

That edit seems okay, but later in the same section there is also:

For misaligned loads and stores that cause access-fault or page-fault exceptions, mtval will contain the virtual address ....  For instruction access-fault or page-fault exceptions on systems with variable-length instructions, mtval will contain the virtual address ....

Plus, we have:

If the hardware platform specifies that no exceptions set mtval to a nonzero value, then it may be hardwired to zero.

The way you're going, you better say that it is hardwired to zero, not just that it may be.

Thanks for the review, @jhauser-us, and yes, I agree on the latter point.  Can you re-review?

The new version looks good.

Thank you!


Improve unimplemented MemberRef bucketing

The only two unimplemented options are MethodDesc and ModuleDesc.

Hi @MichalStrehovsky, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
The agreement was validated by .NET Foundation and real humans are currently evaluating your PR.
TTYL, DNFBOT;


feat: custom token imports

Description
Implements custom token imports, disabled by default using the REACT_APP_FEATURE_CUSTOM_TOKEN_IMPORT feature flag. Enable this to test.
Allows for the token address to be searched in the trade asset search modal. We'll use Alchemy to check for that token address on Ethereum, Polygon, Optimism, Arbitrum, and Base.
Once imported, these assets can be traded with a supported swapper.
This PR does not handle market data.
Pull Request Type

[ ] :bug: Bug fix (Non-breaking Change: Fixes an issue)
[ ] :hammer_and_wrench: Chore (Non-breaking Change: Doc updates, pkg upgrades, typos, etc..)
[x] :nail_care: New Feature (Breaking/Non-breaking Change)

Issue (if applicable)
Contributes to https://github.com/shapeshift/web/issues/7213
Contributes to https://github.com/shapeshift/web/issues/7245
Still missing:

MixPanel event
Fiat amount handling

Risk

High Risk PRs Require 2 approvals

Medium - touches the asset store, and allows users to trade custom assets, but includes a lot of warnings about the potential dahger.

What protocols, transaction types or contract interactions might be affected by this PR?

Trades with custom imported tokens.
Testing
Enable the REACT_APP_FEATURE_CUSTOM_TOKEN_IMPORT feature flag.
Adding a custom token
Add a custom token on Ethereum, Polygon, Optimism, Arbitrum, or Base by searching for it in the trade asset search.
At the time of writing I've been testing with 0x3cc4b5ad020ddd02f67e41e4f04e436e48c0329f on Base and trading it with WETH.
Trading a custom token
This link is handy to find asset pairs to import and trade: https://www.geckoterminal.com/explore/new-crypto-pools/base
I've been testing with https://www.geckoterminal.com/base/pools/0x4c2439ec58ad9bb235e645c762bb0b6cf76e2167, 0x3cc4b5ad020ddd02f67e41e4f04e436e48c0329f and WETH.
Note, the route will say "Insufficient sell amount" because the fiat price is 0, but you can do it anyway.
Engineering
☝
Operations
☝
Screenshots (if applicable)

@woodenfurniture blocking responsive issue fixed in https://github.com/shapeshift/web/pull/7285/commits/1acd163922588074a2f80cb0ddc296eefead2b83
We'll now use row as the flexDirection when the sm breakpoint is hit.

Blocking comments resolved - merging this as is and will address the remaining, excellent, comments in a follow-up PR 🫡


it do be like that sometimes

https://github.com/TorrezMN/EDA_Helper/blob/a9146b9eaf8efec2900bf5121bfa6a49094b7445/docs/mkdocs.yml#L7

About 5 minutes later I understood why it wasn't working and I went to sleep hahaha


Refactor test_upgrade_vpc.py by moving all test logic into a class

Refactor test_upgrade_vpc.py by moving all test logic into a class

The new class VpcClusterUpdateTest now provides an abstraction from running the test and configuring the test. This will allow the test to be instantiated with a different cluster api when ran against and enterprise cluster.
Add teamcity logging messages for each of the major scopes run in this test

@orsenthil @branden Ready for Review

my only comment left. If addressed/ (rejected), I am fine with the change and will give the approval.


Predictive Modeling with XGBoost* and the Intel® AI Analytics Toolkit sample readme update

Existing Sample Changes
Description
Removed link references to sample owner's repo, and updated the link references to point to the oneAPI-sample repo instead. Removed sample owner’s name. Updated multiple branding and legal issues. Update some copy for clarity. Corrected formatting issues. Rearranged some sections to match new template structure as much as possible. Added prerequisites information. Updated name in sample.json file to match the name in the readme.
Fixes Issue#
External Dependencies
N/A
Type of change
Please delete options that are not relevant. Add a 'X' to the one that is applicable.

[x] Documentation

How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[x] VSCode

Adding @bjodom and @jimmytwei for notices. Could not assign @bjodom as reviewer. (Don't know why.)


Percent signs escaping in templatetags

Closes https://github.com/python-babel/django-babel/issues/43
In Django >= 1.9, % signs are escaped to %% during extraction
then replaced by % during the rendering. [1]
Before Django 1.9, only single percent signs were escaped.
The extraction now behaves in the same way.
[1] https://github.com/django/django/commit/b7508896fbe19ec2cdeb81565cd587091b6b68d0

project seems dead


Synology NAS Sensors stopped being displayed after 0.95.4 update

Home Assistant release with the issue:
0.95.4

Last working Home Assistant release (if known):
0.94.1
I updated from this straight to 0.95.4
Operating environment (Hass.io/Docker/Windows/etc.):
Synology NAS

Component/platform:
SynologyDSM Sensors
https://www.home-assistant.io/components/synologydsm/

Description of problem:
After the HA update the sensors no longer display correctly in the frontend, they are all "Entity Not Found"
In my old groups.yaml file they worked in 0.94.1 and when they didn't I added "synology_dsm_" to each sensor name (see below for my groups.yaml extract).
All sensors appear correctly in "Developer Tools" "States" and I can filter on "synology"

sensor.synology_dsm_cpu_load_5_min
etc

Using 0.95.4, they appear correctly in the previous frontend when I go to
https://xyz.duckdns.org/states
but not when I use
https://xyz.duckdns.org/lovelace/default_view
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
This is extracted from my groups.yaml file
myserver:
  name: My Server
  view: yes
  icon: mdi:server
  entities:
    - sensor.synology_dsm_cpu_load_5_min
    - sensor.synology_dsm_cpu_load_15_min
    - sensor.synology_dsm_cpu_load_total
    - sensor.synology_dsm_memory_usage_real
    - sensor.synology_dsm_network_up
    - sensor.synology_dsm_network_down
    - sensor.synology_dsm_status_sda
    - sensor.synology_dsm_status_sdb
    - sensor.synology_dsm_status_smart_sda
    - sensor.synology_dsm_status_smart_sdb
    - sensor.synology_dsm_status_volume_1
    - sensor.synology_dsm_status_volume_2
    - sensor.synology_dsm_volume_used_volume_1
    - sensor.synology_dsm_volume_used_volume_2
    - sensor.synology_dsm_temperature_sda
    - sensor.synology_dsm_temperature_sdb

Traceback (if applicable):

Additional information:

Need to manually update .storage/lovelace file or edit the raw entries in the lovelace frontend


mongodb-sync-v4-driver dependent on spring-boot ?

As far as I understand, you basically provide a driver for using it with spring, and one to use it without spring. Unfortunately it turns out that the one for using standalone (mongodb-sync-v4-driver) also references to the springframework chain, as you can see in the following. Is there a way to use it without spring ? Preferable: org.mongodb:mongodb-driver-sync

--- com.github.cloudyrock.mongock:mongodb-sync-v4-driver:4.3.3
+--- com.github.cloudyrock.mongock:mongock-driver-core:4.3.3
|    +--- com.github.cloudyrock.mongock:mongock-driver-api:4.3.3
|    |    +--- com.github.cloudyrock.mongock:mongock-api:4.3.3
|    |    |    +--- org.springframework.boot:spring-boot-autoconfigure:2.3.7.RELEASE
|    |    |    |    --- org.springframework.boot:spring-boot:2.3.7.RELEASE
|    |    |    |         +--- org.springframework:spring-core:5.2.12.RELEASE
|    |    |    |         --- org.springframework:spring-context:5.2.12.RELEASE
|    |    |    |              +--- org.springframework:spring-aop:5.2.12.RELEASE
|    |    |    |              |    +--- org.springframework:spring-beans:5.2.12.RELEASE
|    |    |    |              |    |    --- org.springframework:spring-core:5.2.12.RELEASE
|    |    |    |              |    --- org.springframework:spring-core:5.2.12.RELEASE
|    |    |    |              +--- org.springframework:spring-beans:5.2.12.RELEASE
|    |    |    |              +--- org.springframework:spring-core:5.2.12.RELEASE
|    |    |    |              --- org.springframework:spring-expression:5.2.12.RELEASE
|    |    |    |                   --- org.springframework:spring-core:5.2.12.RELEASE
|    |    |    --- org.springframework.boot:spring-boot-configuration-processor:2.3.7.RELEASE
|    |    +--- com.github.cloudyrock.mongock:mongock-utils:4.3.3
|    |    |    --- org.slf4j:slf4j-api:1.7.25 -> 1.7.29
|    |    --- javax.inject:javax.inject:1
|    +--- com.github.cloudyrock.mongock:mongock-api:4.3.3 ()
|    +--- com.github.cloudyrock.mongock:mongock-utils:4.3.3 ()
|    --- org.slf4j:slf4j-api:1.7.25 -> 1.7.29
+--- com.github.cloudyrock.mongock:mongock-api:4.3.3 (*)
--- org.slf4j:slf4j-api:1.7.25 -> 1.7.29

We'll look a it. Thanks!

In order to keep you updated. We expect to have this sorted in the next week.
Thanks!

Is there any updates about the issue?

Hello, sorry for the late reply.
We have fixed this as part of the version 5. Our expectation its to have a RC middle/end of August.


a problem with the order of ref DOM after onUpdated

Version
3.0.5
Reproduction link
https://codesandbox.io/s/ref-dom-s6s3f?file=/src/App.vue
Steps to reproduce
点击列表
Click the list in view
What is expected?
视图中dom顺序和打印的dom顺序应该相同
The updated DOM order is the same as that printed by console
What is actually happening?
打印结果总是上一次dom
The result of printing is always the last dom

The template refs are set in the order of patching, not in the order of the DOM structure. For your demo, you can use an object instead of an array to achieve the goal: https://codesandbox.io/s/ref-dom-forked-p493e?file=/src/App.vue

The template refs are set in the order of patching, not in the order of the DOM structure. For your demo, you can use an object instead of an array to achieve the goal: https://codesandbox.io/s/ref-dom-forked-p493e?file=/src/App.vue

@HcySunYang thanks

@HcySunYang thanks


Added check for high dynamic range support in High Dynamic Range sandcastle demo

Fixes #8231

Thanks for the pull request @IanLilleyT!

:heavy_check_mark: Signed CLA found.
:grey_question: CHANGES.md was not updated.

If this change updates the public API in any way, please add a bullet point to CHANGES.md.

:grey_question: Unit tests were not updated.

Make sure you've updated tests to reflect your changes, added tests for any new code, and ran the code coverage tool.

Reviewers, don't forget to make sure that:

[ ] Cesium Viewer works.
[ ] Works in 2D/CV.
[ ] Works (or fails gracefully) in IE11.

ready @lilleyse.
I'm going to create a different PR for the other demos that errored with console.log or RuntimeError

CI is failing for an unrelated reason:
[21:16:06] 'test' errored after 1.83 s
[21:16:06] Error: 1
    at formatError (/home/travis/build/AnalyticalGraphicsInc/cesium/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/format-error.js:21:10)
    at Gulp.<anonymous> (/home/travis/build/AnalyticalGraphicsInc/cesium/node_modules/gulp/node_modules/gulp-cli/lib/versioned/^4.0.0/log/events.js:33:15)
    at emitOne (events.js:121:20)
    at Gulp.emit (events.js:211:7)
    at Object.error (/home/travis/build/AnalyticalGraphicsInc/cesium/node_modules/undertaker/lib/helpers/createExtensions.js:61:10)
    at handler (/home/travis/build/AnalyticalGraphicsInc/cesium/node_modules/now-and-later/lib/map.js:50:14)
    at f (/home/travis/build/AnalyticalGraphicsInc/cesium/node_modules/once/once.js:25:25)
    at f (/home/travis/build/AnalyticalGraphicsInc/cesium/node_modules/once/once.js:25:25)
    at tryCatch (/home/travis/build/AnalyticalGraphicsInc/cesium/node_modules/async-done/index.js:24:15)
    at done (/home/travis/build/AnalyticalGraphicsInc/cesium/node_modules/async-done/index.js:40:12)
    at /home/travis/build/AnalyticalGraphicsInc/cesium/gulpfile.js:848:16
    at removeAllListeners (/home/travis/build/AnalyticalGraphicsInc/cesium/node_modules/karma/lib/server.js:364:9)
    at webServer.close (/home/travis/build/AnalyticalGraphicsInc/cesium/node_modules/karma/lib/server.js:375:13)
    at Server.close (net.js:1613:9)
    at Object.onceWrapper (events.js:313:30)
    at emitNone (events.js:111:20)
The command "npm --silent run test -- --browsers ChromeCI --failTaskOnError --webgl-stub --release --suppressPassed" exited with 1.


updated .gitignore

Coverage remained the same at 99.054% when pulling faea8789b6633dc201954309b6dc08bbbb50afff on update-git-ignore into 8eca3d5613b980ee92fae085c3538bac0a5d2cbd on master.


Swift 3.1 support

With xcode 8.3 and Swift 3.1 there is a build error:
Method 'initialize()' defines Objective-C class method 'initialize', which is not guaranteed to be invoked by Swift and will be disallowed in future versions

@saldous Hi, thanks for your report. I 've updated 2.1.0, in which we must call Guard.setup() directly, so users have more control where to use Guard or not. Hope you find this useful


bug: Image Write Doesn't Seem to Work on Linux and Windows (Ubuntu 20.04)

My computer:

OS: Ubuntu 20.04, 5.15.0-56-generic
Arch: amd64
Display manager: X11

Sample 1
If I take a screenshot, and run the following code, I can no longer access the screenshot.
The code below simply reads the image, and write it back after 10 seconds.
func main() {
	err := clipboard.Init()
	checkErr(err)

	imgBuf := clipboard.Read(clipboard.FmtImage)
	fmt.Println(len(imgBuf))
	time.Sleep(10 * time.Second)
	clipboard.Write(clipboard.FmtImage, imgBuf)
}

Sample 2
I tried to use a base64 image string for testing. The code writes the image and read it back then compare with the source.
stdout outputs "true" in the end (on ubuntu), but I can't paste the image out. It seems like the image is written to somewhere not recognized by the OS.
This sample works on MacOS and Windows (Windows outputs false in the end but image can be pasted, seems like there were some transformation applied.)
func main() {
	sampleBase64Img := "iVBORw0KGgoAAAANSUhEUgAAABcAAAAXCAYAAADgKtSgAAAABHNCSVQICAgIfAhkiAAAABl0RVh0U29mdHdhcmUAZ25vbWUtc2NyZWVuc2hvdO8Dvz4AAAAtdEVYdENyZWF0aW9uIFRpbWUAVHVlIDEzIERlYyAyMDIyIDA0OjM5OjI1IFBNIEVTVH9UhTgAAAIhSURBVEiJrZQxaBNhFMd/d7leYprGWEMkldIONta4xFAHqWiEYMHBpRktCkWHUoJOcexsF8EO6iA4KE4O0jgIgk6iUrDadrKobW3TJhgSm6S5kPscUhQbcvkS+qbHvXe/7//e979TwuGwYE8c6Du691HDmJqI/80TicR/NVWa0kZYwAV9wW1OHqobbH/gJ6Ip7t/5xqPrWcKe1g+xXIsQgK1K4EyGu1PrXB0wUfYHrvLqQT+Tjw+yVADFXWQ8vsGoX34Ca+WGxvxbH/FpL58KoHYWuXElR4+kfCm37Kx4mE46MAQ4j+e43C+nXh2PTBILRQm4dIs2hbX3bj5XAbXCULAipUr9svULvXuI8+FLHLM3ntfM63zPAQj8vgo2GfiHpWe8XF5H6AMM+lyN3SAUSkatatcl1wIm+XyKklBw6M6WrNYUrmsOHA4nuiLYKRdp/3usD+1a5GYtEwVyRWt4q1Nps3NPd1OD3/lq407VpNNRO7psyP3vtPXsilSjerhMwA2g8HNTw0LGv3d0zzAjp8cY6fdb2EsQPJdnUAXMDj4udGDKwGOnztKr51hOpRqoEXhDaW5HDWwKbC96eLEqt31tczXJ/I9FMpX6q+zqKXDxQpaxSAmvDcx8JzNP3GxKWkp7/XWhQclkOLbBrVCNVMm4uDdzhNktec9ozRrMos67N908THaxXJLmNoMrzD3vZXTLTtpoDSoFT6/Z26Puxh8ZKK5kzvJifAAAAABJRU5ErkJggg=="
	sampleImgBuf, _ := base64.StdEncoding.DecodeString(sampleBase64Img)
	clipboard.Write(clipboard.FmtImage, sampleImgBuf)
	time.Sleep(time.Second)
	imgRead := clipboard.Read(clipboard.FmtImage)
	decodedImgRead := base64.StdEncoding.EncodeToString(imgRead)
	fmt.Println(decodedImgRead == sampleBase64Img)
}

It seems like doing this makes image writing works on Linux Ubuntu, even without triggering changed. Why does this happen?
changed := clipboard.Write(clipboard.FmtImage, sampleImgBuf)
select {
case <-changed:
    println(`Image Updated`)
}

On Linux, you must keep the application running so that others can read your data. See https://github.com/golang-design/clipboard/issues/15 for another discussion. Closing because this is not a bug, and feel free if this is actually a bug.

@changkun Thanks, I kind of noticed that the program has to be running. I did a work-around with xclip.
Is it the same on Windows? I also can't write image on Windows.

That's not a requirement on Windows. Is the problem reproducible on latest release?

@changkun Yes I tried to write an image on Windows on the latest release and it doesn't work.
Here is my sample code.
package main

import (
	"encoding/base64"
	"golang.design/x/clipboard"
	"log"
)

func main() {
	if err := clipboard.Init(); err != nil {
		log.Fatal(err)
	}
	base64Str := "/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAAgACADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDumIVSx6AZrD0LxPba9d3sFujD7K+xie5rVvpPJsJ5P7qE/pXn3woXdY6rfdWluWNcEYpxbOlvVI9JormvDPioa/eahbGHy3tJNh966WpaadmUnfYy/ESzP4fvVgUtK0TBQOpOK8s8Kaj4q8P6MbC38PPJlifMbjOa9npMD0FXGdlaxLjd3ueFeDr/AMTReJtRjsrSPzpJd1yr/wAHPavc4S5hQyDD4G761mWXh6xsNWudSgQrPcffPY1rUVJqT0CEWkf/2Q=="
	imgBuf, err := base64.StdEncoding.DecodeString(base64Str)
	if err != nil {
		log.Fatal(err)
	}
	clipboard.Write(clipboard.FmtImage, imgBuf)
}

And if I use select to monitor changed, there is a deadlock.
changed := clipboard.Write(clipboard.FmtImage, imgBuf)
select {
case <-changed:
    println(`"text data" is no longer available from clipboard.`)
}

fatal error: all goroutines are asleep - deadlock!

goroutine 1 [chan receive (nil chan)]:
main.main()
	C:/Users/username/Desktop/clipboard-app/main.go:20 +0xce

Is your image png encoded?

@changkun  Yes, if you copy the base64 string to https://onlinepngtools.com/convert-base64-to-png
The image can be rendered.

As documented in the API, the image buffer must be png encoded: https://pkg.go.dev/golang.design/x/clipboard#Write
It is recommended that you encode it using image/png package to encode the bytes buffer
There are underlying implementation reasons, but it is not important for users who are not interested in the details.


Problem with rendering emoji SVG files

Hi, these SVG files are displayed without problems in any browser:
SVG.zip
Why can Image32 not render them?
This is not a font issue, as the 'Segoe UI Emoji' is present on my system.

See  #80
TLDR; There's no support for Emoji fonts.

But ImageEn can render these SVGs without problems:
https://www.imageen.com

Did you have a point?

I am referring to an issue, and you reply: "Did you have a point?"

I am referring to an issue, and you reply: "Did you have a point?

You did not "refer to an issue"; You stated:

But ImageEn can render these SVGs without problems

and I asked what your point was with that statement. It isn't a hard question.
You have asked why the library can't render your SVGs and I have explained the reason why; It doesn't support Emoji fonts and, as the linked issue states, it will not support them.


SQL Scrapbooks

Support for developing and testing queries against CosmosDB in SQL mode in a client with any type of developer experience is completely lacking.
Please extend the CosmosDB add-on to VSCode with an experience similar to MongoDB scrap books so that queries can be developed, tested and saved between sessions. Also include all information returned from CosmosDB in the Http header from the API like request charge and so on.

Support for developing and testing queries against CosmosDB in SQL mode in a client with any type of developer experience is completely lacking.
Please extend the CosmosDB add-on to VSCode with an experience similar to MongoDB scrap books so that queries can be developed, tested and saved between sessions. Also include all information returned from CosmosDB in the Http header from the API like request charge and so on.

This is sorely lacking and we need this. The Azure Data Explorer in the Portal is terribly slow to work with.

There were five votes for this in https://github.com/Microsoft/vscode-cosmosdb/issues/326 and https://github.com/Microsoft/vscode-cosmosdb/issues/822.  Note the request to enable this for all accounts, not just those with SQL as the default interface.
cc @chrisdias @johnpapa @bryceg @julielerman

Is this the right issues for us to track ? The other 2 are closed, like this one.

Thanks, somehow accidentally closed this one.

no worries - thought i missed the right one
I'm excited to see this feature!

Oddly me2 :-)
Hope this gets traction!

:slightly_smiling_face: This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.
Happy Coding!

Is this problem sloved, if yes please share. We need something like Scrapbook for SQL API, it has been very annoying working with portal. Thanks

@fiveisprime Could you please give an update on this feature? This issue is open for 4 years now and developers and other IT personnel out there struggle with this shortcoming every day.

@JasonYeMSFT That's great! Thank you for implementing this! Will it also provide a possibility to export the queried results?

@sit-md Exporting the query result won't be supported in 0.21.0. The query result would be presented in a JSON document and for now you will need to manually parse the results.


Idiomatic way to stop pylint complaining about flask route unused function names?

My Python Flask application contains a lot of route definitions like
@app.route('/')
def index():

Then pylint complains
W: 72, 4: Unused variable 'index' (unused-variable)

which is technically correct.  I can't replace all the function names by _, say, because then Flask complains
AssertionError: View function mapping is overwriting an existing endpoint function: _

I could replace all the handler function names with their underscore-prefixed equivalents, i.e. change index to _index, etc..  Is there another idiomatic way of dealing with this problem?
(I also asked this question on StackOverflow but got no responses.)

I think the proper solution would be for pylint to add an option to list decorators that "register" functions so they are not considered unused.

What do Flask-and-pylint-using people normally do?  This issue must come up a lot.

@tomjaguarpaw I'd love to see @ThiefMaster's suggestion added as a plugin or rule. pylint-flask package appears to not do this, https://github.com/jschaf/pylint-flask/issues/7#issuecomment-318673953.


[operator] Manage Virtual Garden kube-apiserver Exposure

How to categorize this PR?

/area dev-productivity delivery
/kind enhancement
What this PR does / why we need it:
With this PR, gardener-operator manages the virtual garden kube-apiserver exposure.

A Service of type LoadBalancer with name virtual-garden-kube-apiserver is deployed.
In the future, we might switch to Istio and expose it via SNI (similar to how the kube-apiservers of shoot clusters are exposed), cc @ScheererJ.

Which issue(s) this PR fixes:
Part of https://github.com/gardener/gardener/issues/7016
Special notes for your reviewer:
For the local development scenario, there is no load balancer controller running which would reconcile the Service. However, gardener-operator is waiting for its readiness. Hence, the Service controller of provider-local is made reusable and also added to the gardener-operators manager in case the GARDENER_OPERATOR_LOCAL=true environment variable is set. This way, the human user is not required to manually patch the service spec/status to make the reconciliation work.
Release note:

`gardener-operator` is now managing the load balancer `Service` for exposing the `virtual-garden-kube-apiserver` as part of the virtual garden cluster control plane. It is possible to specify annotations for it via `.spec.runtimeCluster.settings.loadBalancerServices.annotations` in the `Garden` resource.

/cc @oliver-goetz

/lgtm

/unassign
I'm on vacation now 🎅🎄

/lgtm

/approve


GestureArena class name is confusing

 Issue by Hixie
Wednesday Oct 14, 2015 at 20:47 GMT
Originally opened as https://github.com/flutter/engine/issues/1618

GestureArena is confused about whether it is an arena with multiple matches, or if it's a group of arenas. We seem to use "arena" to mean both interchangeably right now.

What should we call it?  GestureDisambiguatior ?  GestureResolver ?
/cc @krisgiesing

/cc @Hixie

_GestureArenaState is really the singular GestureArena class (but it's private).
GestureArena today is a map of keys to _GestureArenaState, i.e. it's a global lookup table of arenas.
I would typically rename _GestureArenaState to GestureArena (or _GestureArena if it stays private), and GestureArena to GestureArenaManager.  But we don't tend to use *Manager in Flutter code, so it might be odd to introduce that nomenclature just for this one case.
Another option is to give GestureArena a static lookup method that returns a GestureArena, and make the methods close(), sweep(), hold(), and release() not take a key anymore.  But that introduces lifetime issues since the caller might hold onto a GestureArena longer than necessary.

GestureArena and GestureArenaManager seems fine to me. It's an improvement over the current state.

We should also consider whether to continue making GestureArenaManager (currently GestureArena) pretend that it uses arbitrary keys (as opposed to integers), with GestureRecognizer (the subclass of GestureArenaMember) knowing that they're really ints. We should probably merge GestureArenaMember and GestureRecognizer and move to just saying int everywhere. We're not getting anything from pretending that keys can be arbitrary objects.

Agreed; and in fact the notion that the ints are pointer IDs turned out to be pretty important when I was working in this code a few months ago, so I might vote to be even more explicit.


Remove deprecated transform from Dataset

VCTK and YesNo dataset have transform and target_transform arguments which have been deprecated over  AFAIK at least two releases, so we can get rid of them.

(If you are interested in working on, please leave a comment so that other people will not do duplicated work.)

When you make a PR, please, set title [BC-Breaking] ...

Once the code is updated, the following test should pass.
pytest test/torchaudio_unittest/datasets -vs

https://github.com/pytorch/audio/blob/be442561a538b1ecc73394eeba610c8a7e2b7f4a/torchaudio/datasets/vctk.py#L95-L100
https://github.com/pytorch/audio/blob/be442561a538b1ecc73394eeba610c8a7e2b7f4a/torchaudio/datasets/yesno.py#L58-L63

Hey @mthrok , i am ready to work on this issue...
I  will only have to remove line 95-100 from vctk.py  and line 58-63 from yesno.py ,

Once the code is updated, the following test should pass.pytest test/torchaudio_unittest/datasets -vs

Also i am not familiar with ML and its packages , will i have to perform the tests as well.

Hi @aadarsh10c
Thanks for the help.

I will only have to remove line 95-100 from vctk.py and line 58-63 from yesno.py ,

well, you need to remove the corresponding arguments from the class constructor, and the logic that uses these arguments too.

Also i am not familiar with ML and its packages ,

This task does not require any ML specific knowledge, just a regular software engineering stuff.
That is;

instaling Python environment and dependencies (PyTorch)
cloning torchaudio (for this specific task, you should be able to do it without building torchaudio)
making changes
running test (run the test command from the root directory of the repository)
pushing changes
making PR
asking for review (tag @mthrok as a reviewer)

will i have to perform the tests as well.

When you make a PR, these tests run automatically, so you can rely on that too, but you have to wait like 10 mins every time you push a commit. If you run the test locally, then you get the result with in few seconds.

I can work on this issue.

@aadarsh10c
@AzizCode92 has created the PR #1120 however, since you raised hand first, I would like to honor your efforts too. Would you still want to work on this?
@AzizCode92
Thanks for the contribution but but let me wait for @aadarsh10c first.

@mthrok
Sure, no problems.

I saw #1122 , I think I still require some knowledge before I work on this type o issues, anyways thanks for consideration, if there is any other way I can help let me know. 😀

@aadarsh10c
I see, then I will proceed with @AzizCode92 PR #1122.
If you are new to GitHub open source contribution workflow, there is a bunch of tutorials like this https://www.dataschool.io/how-to-contribute-on-github/


use locally installed PHPUnit and PHPCS

uses local requirements instead of global requirements, in case there are version differences.

Doesn't composer resolve this automagically?

hmm... not sure. i'll dig a little bit.

looks like you're correct. purple box in the link.
https://getcomposer.org/doc/articles/scripts.md#writing-custom-commands
I had someone PR this to one of my projects.  good to know we can leave as is.
thanks


Add perl's perlcritic maker

This PR works nicely, I've simply added -4 for my own purpose.
I fought with implementing this in my init.vim config as so:
let g:neomake_perl_perlcritic_maker = {
 	\ 'exe': '/usr/bin/vendor_perl/perlcritic',
 	\ 'args': ['--quiet', '--nocolor', '--verbose "%f:%l:%c:%m (%e)\\n"', '-4'],
 	\ 'errorformat': '%f:%l:%c:%m',
 	\ }

Would like to know how I can make "my way" work so I can keep it all together in my init.vim until this gets merged in. PerlCritic seems to return exit code 2 naturally so neomake doesn't recognize as an error as far as I found out. Would love an explanation if anyone has one. In the meantime this patch works well!

I have the following in my init.vim, so all you would need to do is add the -4 to the command line. or you can add severity = 4 to a  $HOME/.perlcriticrc
let g:neomake_perl_perlcritic_maker = {
             \'exe': 'perlcritic',
             \ 'args' : ['--quiet', '--nocolor', '--verbose', '\\%f:\\%l:\\%c:(\\%s) \\%m (\\%e)\\n'],
             \ 'errorformat':
             \ '%f:%l:%c:%m,'

Not sure why I thought the "extra" escaping was specific to this patch, that's likely the issue I am having. Thanks for the perlcriticrc hint too that'll be handy when this is merged in!

Thanks!


Switch over to using the CI repo for non-push images.

Description

Motivation and Context

How Has This Been Tested?

[ ] Covered by existing integration testing
[ ] Added integration testing to cover
[ ] Tested locally
[ ] Have not tested

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

OK... so the images are being pushed... now to sort out the test fails...

Replaced for master branch by #1315


Merges Master to Live. See commits for details.

Docs Build status updates of commit 0064f61:
:clock10: Full build: the average full build time is 11 min(s) 48 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 0064f61:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

skype/skype-ps/skype/Grant-CsTeamsEmergencyCallRoutingPolicy.md
:white_check_mark:Succeeded
View (skype-ps)

skype/skype-ps/skype/Grant-CsTeamsEmergencyCallingPolicy.md
:white_check_mark:Succeeded
View (skype-ps)

skype/skype-ps/skype/skype.md
:white_check_mark:Succeeded
View (skype-ps)

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

Docs Build status updates of commit 1148fef:
:clock10: Full build: the average full build time is 11 min(s) 48 sec(s), this is based on the last 1000 build(s) for this repository.

Docs Build status updates of commit 1148fef:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

skype/skype-ps/skype/Grant-CsTeamsEmergencyCallRoutingPolicy.md
:white_check_mark:Succeeded
View (skype-ps)

skype/skype-ps/skype/Grant-CsTeamsEmergencyCallingPolicy.md
:white_check_mark:Succeeded
View (skype-ps)

skype/skype-ps/skype/skype.md
:white_check_mark:Succeeded
View (skype-ps)

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


When will the code be released? As well as ability to fine tune?

Hi. Thanks for the great work and for making this public. What is the expected timeline for the code as well as instructions on how to fine tune?

Thanks! We'll release all of MotionGPT, like our prior work, Motion-Latent-Diffusion (CVPR 2023). Expect the demo and training in a month, and full release with fine-tuning instructions in two months.

Any updates?

Hello. Thanks for the amazing work. Eagerly waiting for the code.

@tshrjn @khannabeela @smandava98  Hi, thank you all for your kind attention.
We plan to release the first version (v1.0) of MotionGPT on September 9th.
Furthermore, more models and add-ons will also be introduced in the future.
We hope this work could help your research or development. Thanks!


Typing in scripture lags when the verse is long

Per Steven Wunrow, typing in the scripture window lags when there are more than ~50 words and many changes.
DoD
Typing remains normal after completely changing a 50 word verse.

@elsylambert OK, I was able to reproduce.  Investigating.

@elsylambert @danielklapp The fix is in GWE develop v2.3.0 build 0eda053

Verified in v2.3.0 build 0eda053 QA.  Not seeing lag in typing when we have a big chunk of text typed into the verse. It shows a spinner OnBlur, after the edit is done and then Save button is enabled. When the spinner is running, the action buttons on the card are disabled which is intentional to avoid clicks when the system is validating the alignments. Works ars expected.

Agree that there’s no lag when typing in large verses and after an edit is complete a spinner appears letting user know something is happening. Action buttons are working as expected. Tested with v2.3.0 build 0eda053 QA.


Royalty module

maybe I'm just too dumb to understand the concept of a royalty module, but none of the comments help me understand why I would call them


Travis build is failing

Follow up on #98: The first build failed. I'm looking into this. We're successfully building codecentric/springboot-maven3-centos on Travis, so it is possible to build S2I images in general.
Here is the failing command:
Cannot retrieve metalink for repository: epel/x86_64. Please verify its path and try again
The command '/bin/sh -c INSTALL_PKGS="ruby200 ruby200-ruby-devel ruby200-rubygem-rake v8314 ror40-rubygem-bundler nodejs010" &&     yum install -y centos-release-scl &&     yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && rpm -V $INSTALL_PKGS &&     yum clean all -y' returned a non-zero code: 1

likely we need to change the travis logic to "make test TARGET=centos7" because the rhel builds will fail.  do you want to do that?


[3.x] Allow checking for exact matches with Action events.

Backport of #44355
Backport of #51064

May close https://github.com/godotengine/godot-proposals/issues/2464

Rebased on top of #50788

Rebased on top of #50985

The class reference needs to be updated (make sure to keep the descriptions).
The master branch lacks details about what exact_match does in the documentation, this should be added for both branches.

Could you squash the commits?

Thanks!