States!

Just a thought but what if, as a user, I could:

Create a layout in interface builder.
Duplicate that view and create second, third, nth variations/states.
Eject xibs into view-decorating extensions and playground file that demos animated/sudden state changes.

Code like this:
let view = UIView()
view.translatesAutoresizingMaskIntoConstraints = false
view.backgroundColor = UIColor(white: 1, alpha: 1)

let button = UIButton(type: .roundedRect)
button.titleLabel?.lineBreakMode = .byTruncatingMiddle
button.isOpaque = false
button.translatesAutoresizingMaskIntoConstraints = false
button.clipsToBounds = true
button.setContentCompressionResistancePriority(1, for: .vertical)
button.setTitle("Button", for: .normal)

view.addSubview(button)
contentView.addSubview(view)

would become...
extension UITableViewCell {
    func decorate() {
        let view = UIView()
        view.setState_XcodeSpecificLabel_()
        let button = UIButton()
        button.setState_XcodeSpecificLabel1_()
        view.addSubview(button)
        contentView.addSubview(view)
        button.setState_XcodeSpecificLabel2_()
    }
}

extension UIView {
    func setState_XcodeSpecificLabel_() {
        translatesAutoresizingMaskIntoConstraints = false
        backgroundColor = UIColor(white: 1, alpha: 1)
    }
}

extension UIButton {
    func setState_XcodeSpecificLabel1_() {
        type = .roundedRect
        titleLabel?.lineBreakMode = .byTruncatingMiddle
        isOpaque = false
        translatesAutoresizingMaskIntoConstraints = false
        clipsToBounds = true
        setContentCompressionResistancePriority(1, for: .vertical)
        setTitle("Button", for: .normal)
    }
}

extension UIButton {
    func setState_XcodeSpecificLabel2_() {
         type = .roundedRect
         titleLabel?.lineBreakMode = .byTruncatingMiddle
         isOpaque = false
         translatesAutoresizingMaskIntoConstraints = false
         clipsToBounds = true
         setContentCompressionResistancePriority(1, for: .vertical)
         setTitle("Button", for: .normal)
    }
}

Pros

Compose states visually

Cons

Extensions approach requires concrete types
Changes to XIB-states would sometimes require changes to sibling states, which would be error-prone.

Hey Brian! I am looking into allowing configuration of the structure of the code beyond 1 giant method. This should allow you to structure configuration methods like you have above, with one method for all of the top level views. This will probably be with a better interface on the Reference object and a .stencil file, similar to what SwiftGen uses.
The pattern you state is a bit tricky though, as there is idempotent configuration, and additive configuration (adding subviews) and the approach above would require them to be all idempotent. There are ways around this, but would require a few extra moving parts than what Eject provides.
Also, I'm not sure that Eject will mature enough into a tool that could be used in the build system (IE: Using eject to enhance IB usage, not replace IB usage). I'd love to say it would be, but the current goal is to help users transition xib files out of IB, so your milage may vary!


review all db-structure queries and remove useless date_tranc

all such operations in where clause:
created_at >= date_trunc('day', current_date)
can and should be replaced using
created_at >= current_date

reviewed #854


Show intermediate update of build steps

Fixes #304
Proposed Changes

Intermediate build steps like waiting, running.

/assign @ImJasonH

The rest of this change looks great though, and I can't wait to get updates about the build's status while it's ongoing.
/lgtm
/approve
:tada:


Conditionally disable apheleia-mode locally

When working in shared code base, auto-formatting may lead to diff
noise disasters when there isn't a commonly agreed code formatting
convention (or worse: people don't even care).
With apheleia-global-mode enabled, I think we should add an option
to conditionally disable auto-formatting that is ran at every save,
but still not get in the way when we want to call
apheleia-format-buffer explicitly.
While still using apheleia-global-mode, adding a "dummy" formatter
to apheleia-formatters (like #'ignore), and set
apheleia-formatter to it .dir-locals-2.el may disable
auto-formatting, but it prevents us from M-x apheleia-format-buffer.

Yeah, this is actually a pain point for me as well, but I have never gotten around to fixing it. I think your implementation makes sense.
  (when (and buffer-file-name
             (string-match-p
              "\\`/home/raxod502/files/code/web/riju/[^.]+\\.yaml\\'"
              buffer-file-name))
    (apheleia-mode -1)))


How use other API ? ( Deepseek AI )

Hi guys
any one know how can i use free and open source API like "Deepseek coder AI" and "Deepseek API" ?
its more much better in coding and have 1M free token API.

Its not supported at the moment, if I am not wrong.

You can use it locally through OLLAMA - that‘s at least I did it.

You can use it locally through OLLAMA - that‘s at least I did it.

yeah i think this the only way at this time


Device not detected (OSX / Android 2.2 / GT9000i)

Steps to repeat

The device is in download mode

Plug-in microUSB

Start Heimdall front-end or run the command-line tool
heimdall detect
Failed to detect compatible download-mode device.

OSX Snow Leopard / Heimdall 1.3.0.
From kernel.log:
Oct  2 09:17:20 Pkunk kernel[0]: USBF:	1527.170	[0x7229d00] The IOUSBFamily was not able to enumerate a device.
Oct  2 09:17:41 Pkunk kernel[0]: USBF:	1547.637	AppleUSBEHCI[0x71ec800]::Found a transaction which hasn't moved in 5 seconds on bus 0x26, timing out! (Addr: 0, EP: 0)
Oct  2 09:17:41 Pkunk kernel[0]: USBF:	1547.671	[0x7229d00] The IOUSBFamily is having trouble enumerating a USB device that has been plugged in.  It will keep retrying.  (Port 2 of Hub at 0x26000000)
Oct  2 09:17:47 Pkunk kernel[0]: USBF:	1553.637	AppleUSBEHCI[0x71ec800]::Found a transaction which hasn't moved in 5 seconds on bus 0x26, timing out! (Addr: 0, EP: 0)

No idea what to check next.

I have same problem with OSX Snow Leopard / Heimdall 1.3.1. My phone is Samsung Galaxy S with Android 2.2.1.

As miohtama's log notes, this isn't a problem with Heimdall. The issue is with faulty secondary bootloaders distributed by Samsung. These bad bootloaders don't adhere to the USB specification and hence OS X is unable to communicate with them. In order to solve this issue you need to upgrade your bootloaders to newer bootloaders that Samsung have fixed using Windows or Linux.

Where can we get the new bootloaders?

Hi riceje7,
I flashed my galaxy s with XXJVP firmware (2.3.4), but I used Odin on Windows. Now Heimdall detect my phone.


Unexpected behavior of result

Versions

vee-validate: 2.1.4
vue: 2.5.21

Describe the bug
Get improper output of validation, both Login and Register. Fill in the form, submit and you can see it returns 'no'
To reproduce
Steps to reproduce the behavior:
You can test the reproduction
Expected behavior
Proper output of Validation
Demo link
https://codesandbox.io/s/m711y4r60p
Desktop (please complete the following information):

OS: Windows 10
Browser: Firefox Quantum
Version 65.0b4 (32-bit)

You disabled all validation events and your components inputs do not use a v-model, this prevents vee-validate from tracking the value and thus always causing it to validate it incorrectly.
Adding v-model to your components will solve this issue.


Improve unit test coverage

Ensure all code on the critical execution path is covered by unit tests
Move supplementary code including examples and test data generators into a separate project so it won't interfere with the main code

What tool are you using to report the unit test coverage?  I can definitely help with the code paths related to the parser.

We use scoverage Maven plugin as a primary unit test coverage report tool and IntelliJ's coverage capabilities as a secondary tool.
mvn scoverage:check
mvn scoverage:report


remove parallel build param from BaseTools make

tianocore/edk2-platforms recommend not passing any -j option.
Source: https://github.com/tianocore/edk2-platforms/tree/086a3a3ce6c42c859ee5943eb2c4b6edcefdc241#manual-building
(BaseTools can currently not be built in parallel, so do not specify any -j option, either on the command line or in a MAKEFLAGS environment variable.)

Everything checks out


Errors in log from Steam component.

Make sure you are running the latest version of Home Assistant before reporting an issue.
You should only file an issue if you found a bug. Feature and enhancement requests should go in the Feature Requests section of our community forum:
Home Assistant release (hass --version):
0.38.3
Python release (python3 --version):
Python 3.4.2
Component/platform:
Social/Steam
Description of problem:
Spam's Error's in log.
Expected:
Not to spam log.
Problem-relevant configuration.yaml entries and steps to reproduce:
sensor:
  - platform: steam_online
    api_key: REDACTED_API_KEY
    accounts:
      - redactedid
      - redactedid

Add the Steam component
Wait
Read logs in the log file.

Traceback (if applicable):

Additional info:
Most likely caused by a spike in local ,server traffic or problem with connection that causes the request of the component to timeout or fail. Either way the handling should be better and these error should be fairly easy to catch.
Information added to the log file
17-02-19 20:20:11 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/home/homeassistant/.homeassistant/deps/steam/api.py", line 153, in download
    timeout=self._timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 153, in urlopen
    return opener.open(url, data, timeout)
  File "/usr/lib/python3.4/urllib/request.py", line 455, in open
    response = self._open(req, data)
  File "/usr/lib/python3.4/urllib/request.py", line 473, in _open
    '_open', req)
  File "/usr/lib/python3.4/urllib/request.py", line 433, in _call_chain
    result = func(*args)
  File "/usr/lib/python3.4/urllib/request.py", line 1202, in http_open
    return self.do_open(http.client.HTTPConnection, req)
  File "/usr/lib/python3.4/urllib/request.py", line 1177, in do_open
    r = h.getresponse()
  File "/usr/lib/python3.4/http/client.py", line 1172, in getresponse
    response.begin()
  File "/usr/lib/python3.4/http/client.py", line 351, in begin
    version, status, reason = self._read_status()
  File "/usr/lib/python3.4/http/client.py", line 313, in _read_status
    line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")
  File "/usr/lib/python3.4/socket.py", line 371, in readinto
    return self._sock.recv_into(b)
socket.timeout: timed out

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.4/asyncio/tasks.py", line 233, in _step
    result = coro.throw(exc)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity_component.py", line 387, in _update_entity_states
    yield from update_coro
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/helpers/entity.py", line 209, in async_update_ha_state
    yield from self.hass.loop.run_in_executor(None, self.update)
  File "/usr/lib/python3.4/asyncio/futures.py", line 388, in __iter__
    yield self  # This tells Task to wait for completion.
  File "/usr/lib/python3.4/asyncio/tasks.py", line 286, in _wakeup
    value = future.result()
  File "/usr/lib/python3.4/asyncio/futures.py", line 277, in result
    raise self._exception
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/sensor/steam_online.py", line 65, in update
    if self._profile.current_game[2] is None:
  File "/home/homeassistant/.homeassistant/deps/steam/user.py", line 171, in current_game
    obj = self._prof
  File "/home/homeassistant/.homeassistant/deps/steam/user.py", line 197, in _prof
    res = self._api["response"]["players"]
  File "/home/homeassistant/.homeassistant/deps/steam/api.py", line 220, in __getitem__
    return self.__handle_accessor("__getitem__", *args, **kwargs)
  File "/home/homeassistant/.homeassistant/deps/steam/api.py", line 200, in __handle_accessor
    self.call()
  File "/home/homeassistant/.homeassistant/deps/steam/api.py", line 242, in call
    data = self._downloader.download()
  File "/home/homeassistant/.homeassistant/deps/steam/api.py", line 173, in download
    raise HTTPTimeoutError("Server took too long to respond")
steam.api.HTTPTimeoutError: Server took too long to respond

@GreenTurtwig Mind having a look?
Love the sensor but a tad annoying to have a log fill up with these at times.

This looks like an error with the steam api's side timing out, or your internet service connection. We could add something to the component to pretty print an error to the log that there was a connection timeout, but it is still a timeout on something HASS is waiting on.

I agree that the error is expected but it really shouldn't be normal use case to fill up the log with these.

create a PR that catch the exception and give a simple warning to log...

@Landrash Haven't really been using the Steam sensor. :-P
I'll take a look this week at it, simple to "fix".
You mind if I just make it output "Server took too long to respond"?

@GreenTurtwig Well it should most likely only output that on the correct log level. What that is I 'm unsure-

@Landrash how about a warning loglevel? The code can gracefully catch, log, and ignore the error. The next time the sensor updates, it can try again. It isn't an error per-se as it isn't entirely fatal.

@SEJeff That sounds like where it should be. :+1:


Re apply the onnx import changes

What changes were proposed in this pull request?
This PR re applies the changes necessary for onnx import to import certain onnx models.
(Please fill in changes proposed in this fix)
How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration tests, manual tests)
Quick checklist
The following checklist helps ensure your PR is complete:

[ X] Eclipse Contributor Agreement signed, and signed commits - see IP Requirements page for details
[X ] Reviewed the Contributing Guidelines and followed the steps within.
[ X] Created tests for any significant new code additions.
[X ] Relevant tests for your changes are passing.

I will clean up the comments and add a few more conversions in a followup


HIVE-18925 Prevent failure when JVM zone had change on 1970-01-01

This prevents static initializer failure if JVM zone did not observe
1970-01-01 00:00:00, while retaining original behavior for all other
zones.

Is this the way to send PRs to Hive?

@sankarh, Is this the way to send PRs to Hive?

Merged as https://github.com/apache/hive/commit/fb675ce743a8e3f5805f2c3bcb6e8206febcf7a2


[bug] The error E0252 means that Command is imported twice.

describe the bug
brief description of the bug.
to reproduce

cargo build --release

expected behavior
system info

os: Windows11
screenpipe version: latest

additional context

1


Fix more alias-like language construct, eg, die() -> exit

For configuration or updating questions please read the README and UPGRADE documentation,
or visit: https://gitter.im/PHP-CS-Fixer
When reporting an issue (bug) please provide the following information:
If applicable, please provide minimum samples of PHP code (as plain text, not screenshots):

before running PHP CS Fixer (no changes):

echo doubleval('123.0') . "\n";

echo imap_create(null, 0) . "\n";

echo mbsplit('/./', 'str') . "\n";

die();

die('message');

exit;

with unexpected changes applied when running PHP CS Fixer:

echo floatval('123.0') . "\n";

echo imap_createmailbox(null, 0) . "\n";

echo mb_split('/./', 'str') . "\n";

die();

die('message');

exit;

with the changes you expected instead:

echo floatval('123.0') . "\n";

echo imap_createmailbox(null, 0) . "\n";

echo mb_split('/./', 'str') . "\n";

exit;

echo 'message';
exit;

exit;

I know there's a option called no_alias_functions, it could replace aliases of imap_*, mb*, and internal (chop, close, doubleval, fputs, get_required_files, ini_alter, is_double, is_integer, is_long, is_real, is_writeable, join, key_exists, magic_quotes_runtime, pos, show_source, sizeof, strchr, user_error) functions.
But I wish that there's an another option which called no_mixed_die_exit, no_alias_like_language_construct, or anything we could understand. And it can fix alias-like language construct, for example, replace die(); and die('str'); with exit; and echo 'str'; exit; (working with no_mixed_echo_print).

Can you give another example? :)
Because this is the only one missing - already discussed here.

Would be a nice fixer :)
I think no_mixed_die_exit sounds alright, making it configurable. I don't think there are other language constructs with aliases out there?


Chrysler: Fix standstill departure EPS fault

Description
Make sure we send zero lateral torque if gas is pressed. For the Chrysler port, which doesn't support button spam auto-resume, this is important if the driver uses the gas pedal to resume from standstill and continues holding it past the EPS minimum steer speed. This avoids Panda dropping steering messages and the ensuing controls mismatch / LKAS fault condition.
Credit to @adhintz for identifying the triggering condition. Drew, does this work for you?
Resolves #23398
Resolves #20724
Probably takes a bite out of #2253
Verification
Seems self-evidently correct, but holding in Draft till someone can test.
Route
TBD

I thought there was another reason that we allow gas press for Chrysler. Is it that there is no resume button and only gas press?

Drew's DBC avers the existence of such a button, but the port makes no attempt to hit it. I don't know if it doesn't work, or it was never tried, or what.
Resume spam would certainly be ideal, but I propose we table it for the moment. @realfast and I are going to propose integrating Ram 1500 / 2500 HD support into the Chrysler port. The existing Chrysler port will get plenty of TLC along the way, including resume spam because we know it works for Ram. That will take some time; this PR fixes the end users in time for 0.8.13.

LGTM. I'm fine merging this once a Chrysler has driven on it.

I will have a few Pacifica and Jeep drivers do some testing on my current branch. I had add resume spamming and proper ACC cancel.

I just did a drive on the PR. It fixes the EPS fault. However with this PR, the scenario that caused the EPS fault now causes a controls mismatch error at around 14mph.

I just did a drive on this PR. It fixes the EPS fault. However with this PR, the scenario that caused the EPS fault now causes a controls mismatch error at around 14mph.

Yeah, I should have thought of that before, sorry. It was there before, but I think the LKAS fault complaint was shadowing it.
Turns out we'll have to fix this properly in Panda. I've taken a stab at it in commaai/panda#824. At your convenience, try this same PR again (I've bumped the Panda submodule) and let us know what it does. That said, I expect comma to need more time to review this approach, and they may or may not like the way it's implemented.


feat: Support Elixir, Erlang

Erlang comments syntax
Elixir comments syntax

Are there any extensions required to get syntax highlighting for these languages?

Yes, there is ElixirLS and Erlang LS. To get syntax highlighting with them, there is no need to install erlang or elixir.

Could you please add the names of the extensions as comments to the sample files, so it's clear how to test?

Sure, I added the extension names in the comments to the samples.


CASMINST-6230 Refer admins to the new Software Stack Guide

Description
CASMINST-6230 Refer admins to the new Software Stack Guide
Checklist

[x] If I added any command snippets, the steps they belong to follow the prompt conventions (see example).
[x] If I added a new directory, I also updated .github/CODEOWNERS with the corresponding team in Cray-HPE.
[x] My commits or Pull-Request Title contain my JIRA information, or I do not have a JIRA.

/backport release/1.4


Support removing users

So far it looks as if there is support for adding users, but there is no easy way to remove users. The underlying function passwd.User._remove is implemented, but there is neither bare method, nor a passwd.UserState that triggers it.

This looks like it was implemented as part of jnsgruk's simplified passwd lib. I'm going to go ahead and close this.


View doesn't change after installing laravel excel

I've installed and published Laravel-Excel and when I try to change my views it doesn't change at all. This only happens after I've published Laravel-Excel

Hello,
Please use the provided github issue template (https://github.com/Maatwebsite/Laravel-Excel/blob/2.1/.github/ISSUE_TEMPLATE.md) which was automatically inserted on issue create. Without the template, we are not able to efficiently look at your issue/question/proposal.


Improve documentation on conductor stage/flow/transition code

Some of it is good, some of it is spotty. The function definitions are mostly ok, but inline commenting definitely needs work.
The best way to do this would probably be to sit down with someone and walk through it, documenting where the process is confusing.

is this captured by https://github.com/codeforamerica/pittsburgh-purchasing-suite/pull/378 ?

The code is a lot better/cleaner, but not documented, so no.

This is a partial duplicate of #482 work for this can be captured there, wontfixing here


resolved promise issues in getScrShotByName funct

wrote custom screenshot pull function
returns generic image if screenshot attempt fails

@frankaroca @dcollan @BigDripDarry @Zachg71603 please and TY


Implement a HTML linter

Add a HTML linter in Gulp task to validate all HTML files and prevent problems.
Plugin to be used: gulp-htmlhint
If an error is encountered, the task have to be stopped and it's needed to show in console the errors.

Hey @vini23hot. I have sent a pull request. Can you please review it?

@slntRohit I'll review it after you commit the changes in PR #6


MacOS on-prem agent - permissions to file system in build different than in terminal

I am not sure whether its appropriate to log this as "issue", feel free to close it if this is an expected behaviour. I hope for some tips from you on how to solve it because I am out of ideas.
I have a build agent version 2.170.1 on MacOS BigSur version 11.1, configured as a service using instructions for MacOS setup.
The service runs under local mac account, connects to on-prem "TFS" using domain credentials of build account.
I am trying to save build artifacts to a Windows network share. I have configured it to mount using smb:// in read-write mode using the AD domain account when the Mac user logs in. It works, I can read and write the files with no problem from terminal using the mac account.
When I try to do the same from the build (using Bash@3 or CopyFiles@2 tasks) it fails - build does see the mapped drive under /Volumes/, but has no permissions to list its contents or create a file or directory there.
I have made sure that the account under which the process for the service runs (taken from svc.sh status) is the same that I've been testing on in the terminal.
Is it an expected behaviour?
If not, how can I gather more information on why it is happening?
Agent Version and Platform
Build agent 2.170.1
MacOS BigSur version 11.1
Azure DevOps Type and Version
On-premises Azure DevOps Server Dev18.M170.7
What's not working?
In the build files cannot be copied to a Windows network share mounted using samba in read/write mode.
There is no problem doing the same thing in terminal under the same account that runs build service.
Agent and Worker's Diagnostic Logs
I did check the logs in the _diag folder, but did not notice any messages that I would correlate with the error for filesystem access. Enabling system diagnostic did not help me either.

Are there any update on this issue? I tried adding kinit at the begging of the bash script, before the mkdir command, but got the same error.

ANY COPY FILES TASK in an Azure DevOps release pipeline which involves an SMB mount will fail on recent Mac OS versions! This only occurs when the agent is running as a service. It does not happen when you manually run the agent interactively in a terminal. This means the agent breaks after EVERY REBOOT and requires manual intervention. Not cool.
Agent.Worker gives a MacOS error: -25294 error in the Mac OS "Console" app log viewer.
This error returned to the Azure Devops pipeline UI is: ##[error]Error: Failed find: EPERM: operation not permitted, scandir '/Volumes/xxxx/xxxxProto/20211112.1/Test/'
This OS level error below gives further clues about the block. It manifests as a permissions issue at a high level because it's being blocked by some deep OS security measure, even though permissions are fine (remember, this works when the agent is run interactively, but not when it's run as a service).
`Sandbox violation
error	09:00:34.812354-0800	sandboxd	System Policy: node(49408) deny(1) file-write-create /Volumes/xxxx/xxxxProto/20211112.1
Violation:       deny(1) file-write-create /Volumes/xxxx/xxxxProto/20211112.1
Process:         node [49408]
Path:            /Users/username/azureagent/externals/node/bin/node
Load Address:    0x100000000
Identifier:      node
Version:         ??? (???)
Code Type:       x86_64 (Native)
Parent Process:  Agent.Worker [40744]
Responsible:     /bin/bash [/Users/username/azureagent/runsvc.sh]
User ID:<PHONE_NUMBER>
Date/Time:       2021-11-16 09:00:34.808 PST
OS Version:      macOS 11.3 (20E232)
Report Version:  8
MetaData: {"signing-id":"node","action":"deny","matched-user-intent-extension":false,"pid":49408,"process":"node","vnode-type":"DIRECTORY","rdev":0,"errno":1,"primary-filter":"path","suffix":"20211112.1","platform_binary":"no","process-path":"/Users/username/azureagent/externals.2.194.0/node/bin/node","matched-extension":false,"team-id":"HX7739G8FX","summary":"deny(1) file-write-create /Volumes/xxxx/xxxxProto/20211112.1","responsible-process-path":"/bin/bash","user-approval":"kTCCServiceSystemPolicyNetworkVolumes","target":"/Volumes/xxxx/xxxxProto/20211112.1","path":"/Volumes/xxxx/xxxxProto/20211112.1","build":"macOS 11.3 (20E232)","hardware":"Mac","platform-policy":true,"operation":"file-write-create","mount-flags":24,"storage-class":"kTCCServiceSystemPolicyNetworkVolumes","flags":5,"normalized_target":["Volumes","xxxx","xxxxProto","20211112.1"],"profile-flags":0,"platform-binary":false,"profile":"platform","uid":1082786681,"apple-internal":false,"removable-media":false,"primary-filter-value":"/Volumes/xxxxx/xxxxxProto/20211112.1","responsible-process-hosted-path":"/Users/username/azureagent/runsvc.sh"}
`

@anatolybolshakov this is not a question, this is a (now) long-standing bug.

The problem is the Security & Privacy -> Privacy -> Full Disk Access
You need to add /bin/bash to allow accessing data. (Use mac-button+shift+g in finder to go to /bin and select bash)
Run ./svc.sh stop then ./svc.sh start after that and it should work.
It probably works interactivly because Terminal is already in Full Disk Access

Thank you for your comment, @Cronkan . Unfortunately I cannot confirm whether your solution works - in my current job I do not have MacOS build agents to maintain.

@Cronkan initial reports suggest this may have solved it for us. Thanks!

Hi everyone, seems like there is some issue with bash permissions not related to the agent itself - thanks @Cronkan for a solution!
Please let us know if you still have any questions.


Poetry error message

Issue #845
infoOutput has been updated and logged the message of the command if the command fails inside container

@chrmarti , can you please review the requested changes and approve the same.

@prathameshzarkar9 Can you fix the failing tests? Thanks

@chrmarti Could you please review this PR ..


feat(app): onError() supports async

As mentioned by @AliKaanT in #1088, app.onError() can be an asynchronous function.
app.onError(async (e, c) => {
  //...
})

This PR enables support for an asynchronous function in app.onError(). It is based on #1088, I added tests and a small fix. If this is merged, I will need to add @AliKaanT as a co-author.

@yusukebe
Yes, looks good to me!

@usualoma Thanks!


CVE assignment for GHSA-78m5-jpmf-ch7v

Hi @christophetd
Could you please consider assigning a CVE number to GHSA-78m5-jpmf-ch7v?
Thank you in advance

Hello,
Any specific goal in mind? If this is mostly for crediting purposes, I suggest you directly reference GHSA-78m5-jpmf-ch7v

I made a CodeQl identifying the issue at scale. I would like to make a PR to the Github Security labs One For All program. It requires that I coordinate the vulnerability disclosure with the maintainers and get a CVE assigned (among other conditions of course.)

Let me discuss it internally and get back to you within a few days!

You know GitHub is a CVE Numbering Authority (CNA) and through the Private Vulnerability reporting feature, it would take an hour at maximum to assign a CVE number.

We're discussing it internally, please allow me a couple of days to get back to you. Thanks!

No problem

Requested CVEs from GitHub.

Perfect 👍🏾

CVE-2022-23530 is out


[Enhancement] skipResourceFilters description is misleading

Description
Currently the description for skipResourceFilters https://github.com/kyverno/website/blob/37f6c83f2dbeeebb67d1f6f9a0d4889cd7625267/content/en/docs/Installation/customization.md#L303-L303
describes the false value, which is a bit misleading.
Usually it would be easier to understand if it used either the true value like:
 ignore the ConfigMap's resourceFilters when performing background report scans
or a more general approach like:
whether to skip the ConfigMap's resourceFilters or not when performing background report scans. Setting the value to false will take the resourceFilters into account
Slack discussion
https://kubernetes.slack.com/archives/CLGR9BJU9/p1685571600886239?thread_ts=1685561945.070269&cid=CLGR9BJU9

Please review https://github.com/kyverno/website/pull/899

LGTM @chipzoller
As a side note, (this is not related to the documentation), but it might be easier in the future to avoid terminology like skipXXXX which has the mental burden of having to negate the value to know if it is present.
Basically, instead of:
skipResourceFilters
skip_headers
skip_log_headers
It might be simpler to just have flags like
resourceFiltersEnabled
headers_enabled
log_headers_enabled
and set their default value accordingly.
I feel it is easier to reason about, although I guess this is subjective.

Agree, that would have been better.


THE UI OF THE MOBILE  VERSION CAN BE UPDATED

some of the components in the resposive design can be improved
https://github.com/user-attachments/assets/a95ba139-0b1a-442b-a3c2-5aaad8bcfda2
please assign me this i'll work on it

sure there is an issue for  the same thing i will assign you there

can you help me setting up the project i doesn't know that much backend and i have issues navigating to the page i want to go and make changes

sure @STXRSHIVA  ping me on discord we can connect over call there

i'll call you tomorrow , can you tell me at what time you are going to available

Around 8 PM

how to ping you on discord i tried using @ratnesh couldn't find you anywhere

got it at 8pm

Can you assign it to me @ratnesh-maurya,I can see some issues with UI, and I can fix it
https://github.com/user-attachments/assets/742ea8c2-853d-4a51-be08-2b4fe441e8bb

i want to work on this issue .assign me this project

@ratnesh-maurya I can work on this issue
please assign me


Improve search

Add author search / make search also take content of articles into consideration etc.

probably follow the top answer here: https://stackoverflow.com/questions/759580/how-to-implement-a-keyword-search-in-mysql
The full-text answer, not the like one.


Simplest BlockChain

Student, group: Antunovich Pavel, 3530901/90203
URL: https://github.com/AntunovichPYU/BlockChain
Any comments: Python, Flask, gitflow

+


Implement merge files

CentralDogma has a feature called mergeFiles which lets users "merge" files and retrieve the result easily.
https://github.com/line/centraldogma/blob/0c397eb1f5aa99cec586adcf5417464032ce117f/client/java/src/main/java/com/linecorp/centraldogma/client/CentralDogma.java#L247-L269
It might be useful to implement this feature for the python client as well.

Codecov Report

Merging #34 (bd38213) into main (a7be1bc) will decrease coverage by 17.81%.
The diff coverage is 90.74%.

@@             Coverage Diff             @@
##             main      #34       +/-   ##
===========================================
- Coverage   93.38%   75.56%   -17.82%
===========================================
  Files          21       23        +2
  Lines         650      704       +54
===========================================
- Hits          607      532       -75
- Misses         43      172      +129

Impacted Files
Coverage Δ

centraldogma/content_service.py
64.07% <86.66%> (-25.70%)
:arrow_down:

centraldogma/data/merged_entry.py
89.28% <89.28%> (ø)

centraldogma/data/merge_source.py
100.00% <100.00%> (ø)

centraldogma/dogma.py
89.61% <100.00%> (-10.39%)
:arrow_down:

centraldogma/repository_watcher.py
35.55% <0.00%> (-57.78%)
:arrow_down:

centraldogma/data/entry.py
53.06% <0.00%> (-18.37%)
:arrow_down:

centraldogma/data/revision.py
84.61% <0.00%> (-7.70%)
:arrow_down:

centraldogma/query.py
85.18% <0.00%> (-7.41%)
:arrow_down:

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 a7be1bc...bd38213. Read the comment docs.


FDroid iteration 8 build failing

Build failing on fdroid for iteration 8 stating gradle needs java 11 but only java 8 is available
To Reproduce

See attached build log for error

Expected behavior
Iteration 8 should have been released on fdroid
Build Log
Traceback (most recent call last): File "/home/fbuild/fdroidserver/fdroidserver/build.py", line 1127, in main options.onserver, options.refresh): File "/home/fbuild/fdroidserver/fdroidserver/build.py", line 885, in trybuild build_server(app, build, vcs, build_dir, output_dir, log_dir, force) File "/home/fbuild/fdroidserver/fdroidserver/build.py", line 268, in build_server str(output, 'utf-8')) fdroidserver.exception.BuildException: Build.py failed on server for inc.flide.vi8:iteration-8 ==== detail begin ==== == Installed Android Tools == 2022-01-03 13:53:22,787 DEBUG: Reading 'config.yml' 2022-01-03 13:53:22,796 INFO: Using /opt/android-sdk/build-tools/29.0.3/apksigner 2022-01-03 13:53:22,799 INFO: Creating log directory 2022-01-03 13:53:22,799 INFO: Creating temporary directory 2022-01-03 13:53:22,799 INFO: Creating output directory 2022-01-03 13:53:22,801 DEBUG: Getting git vcs interface for https://github.com/flide/8VIM 2022-01-03 13:53:22,802 DEBUG: > git --version git version 2.11.0 2022-01-03 13:53:23,022 INFO: Using git version 2.11.0 2022-01-03 13:53:23,022 DEBUG: Checking iteration-8 2022-01-03 13:53:23,022 INFO: Building version iteration-8 (8) of inc.flide.vi8 2022-01-03 13:53:23,023 DEBUG: > sudo passwd --lock root passwd: password expiry information changed. 2022-01-03 13:53:23,231 DEBUG: > sudo SUDO_FORCE_REMOVE=yes dpkg --purge sudo (Reading database ... 64893 files and directories currently installed.) Removing sudo (1.8.19p1-2.1+deb9u3) ... Purging configuration files for sudo (1.8.19p1-2.1+deb9u3) ... Processing triggers for systemd (232-25+deb9u13) ... 2022-01-03 13:53:28,818 INFO: Getting source for revision 94d1973644a051aac170f3178d33160094eea607 2022-01-03 13:53:28,830 DEBUG: Directory: build/inc.flide.vi8 2022-01-03 13:53:28,830 DEBUG: > git rev-parse --show-toplevel 2022-01-03 13:53:29,035 DEBUG: Directory: build/inc.flide.vi8 2022-01-03 13:53:29,035 DEBUG: > git submodule foreach --recursive git reset --hard 2022-01-03 13:53:29,140 DEBUG: Directory: build/inc.flide.vi8 2022-01-03 13:53:29,140 DEBUG: > git reset --hard 2022-01-03 13:53:29,486 DEBUG: Directory: build/inc.flide.vi8 2022-01-03 13:53:29,487 DEBUG: > git submodule foreach --recursive git clean -dffx 2022-01-03 13:53:29,592 DEBUG: Directory: build/inc.flide.vi8 2022-01-03 13:53:29,592 DEBUG: > git clean -dffx 2022-01-03 13:53:29,706 DEBUG: Directory: build/inc.flide.vi8 2022-01-03 13:53:29,706 DEBUG: > git -c core.askpass=/bin/true -c core.sshCommand=/bin/false -c url.https://.insteadOf=ssh:// -c url.https://u:p<EMAIL_ADDRESS>-c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p<EMAIL_ADDRESS>-c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p<EMAIL_ADDRESS>-c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com fetch origin 2022-01-03 13:53:30,016 DEBUG: Directory: build/inc.flide.vi8 2022-01-03 13:53:30,017 DEBUG: > git -c core.askpass=/bin/true -c core.sshCommand=/bin/false -c url.https://.insteadOf=ssh:// -c url.https://u:p<EMAIL_ADDRESS>-c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p<EMAIL_ADDRESS>-c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p<EMAIL_ADDRESS>-c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com remote prune origin 2022-01-03 13:53:30,338 DEBUG: Directory: build/inc.flide.vi8 2022-01-03 13:53:30,339 DEBUG: > git -c core.askpass=/bin/true -c core.sshCommand=/bin/false -c url.https://.insteadOf=ssh:// -c url.https://u:p<EMAIL_ADDRESS>-c url.https://u:p@bitbucket.org.insteadOf=git://bitbucket.org -c url.https://u:p@bitbucket.org.insteadOf=https://bitbucket.org -c url.https://u:p<EMAIL_ADDRESS>-c url.https://u:p@github.com.insteadOf=git://github.com -c url.https://u:p@github.com.insteadOf=https://github.com -c url.https://u:p<EMAIL_ADDRESS>-c url.https://u:p@gitlab.com.insteadOf=git://gitlab.com -c url.https://u:p@gitlab.com.insteadOf=https://gitlab.com fetch --prune --tags --force origin 2022-01-03 13:53:30,644 DEBUG: Directory: build/inc.flide.vi8 2022-01-03 13:53:30,645 DEBUG: > git remote set-head origin --auto 2022-01-03 13:53:31,059 DEBUG: Directory: build/inc.flide.vi8 2022-01-03 13:53:31,059 DEBUG: > git checkout -f 94d1973644a051aac170f3178d33160094eea607 2022-01-03 13:53:31,267 DEBUG: Directory: build/inc.flide.vi8 2022-01-03 13:53:31,267 DEBUG: > git clean -dffx 2022-01-03 13:53:31,378 INFO: Creating local.properties file at build/inc.flide.vi8/local.properties 2022-01-03 13:53:31,378 INFO: Creating local.properties file at build/inc.flide.vi8/8vim/local.properties 2022-01-03 13:53:31,379 DEBUG: Removing debuggable flags from build/inc.flide.vi8/8vim 2022-01-03 13:53:31,387 INFO: Cleaning Gradle project... 2022-01-03 13:53:31,388 DEBUG: Directory: build/inc.flide.vi8/8vim 2022-01-03 13:53:31,388 DEBUG: > /home/vagrant/fdroidserver/gradlew-fdroid clean Found 7.0.2 via distributionUrl Running /opt/gradle/versions/7.0.2/bin/gradle clean Welcome to Gradle 7.0.2! Here are the highlights of this release: - File system watching enabled by default - Support for running with and building Java 16 projects - Native support for Apple Silicon processors - Dependency catalog feature preview For more details see https://docs.gradle.org/7.0.2/release-notes.html To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.0.2/userguide/gradle_daemon.html#sec:disabling_the_daemon. Daemon will be stopped at the end of the build FAILURE: Build failed with an exception. * Where: Build file '/home/vagrant/build/inc.flide.vi8/8vim/build.gradle' line: 1 * What went wrong: A problem occurred evaluating project ':8vim'. > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options: - changing the IDE settings. - changing the JAVA_HOME environment variable. - changing org.gradle.java.home in gradle.properties. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 20s 2022-01-03 13:53:52,499 ERROR: Could not build app inc.flide.vi8: Error cleaning inc.flide.vi8:iteration-8 ==== detail begin ==== Found 7.0.2 via distributionUrl Running /opt/gradle/versions/7.0.2/bin/gradle clean Welcome to Gradle 7.0.2! Here are the highlights of this release: - File system watching enabled by default - Support for running with and building Java 16 projects - Native support for Apple Silicon processors - Dependency catalog feature preview For more details see https://docs.gradle.org/7.0.2/release-notes.html To honour the JVM settings for this build a single-use Daemon process will be forked. See https://docs.gradle.org/7.0.2/userguide/gradle_daemon.html#sec:disabling_the_daemon. Daemon will be stopped at the end of the build FAILURE: Build failed with an exception. * Where: Build file '/home/vagrant/build/inc.flide.vi8/8vim/build.gradle' line: 1 * What went wrong: A problem occurred evaluating project ':8vim'. > Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options: - changing the IDE settings. - changing the JAVA_HOME environment variable. - changing org.gradle.java.home in gradle.properties. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 20s ==== detail end ==== 2022-01-03 13:53:52,500 DEBUG: Error encoutered, stopping by user request. ==== detail end ====

Seems like the build was successful after all, iteration 8 is available on f-droid.


Seg Fault (Core Dumped)

I have built Torch7 with LUA 5.2 and installed tds using luarocks.
Whenver I import the "tds' package with the command
require 'tds'
It gives me a segmentation fault.
Can anybody please help me in this?

I am experiencing the same issue, any ideas as to why this is occurring?

I actually have no idea on how to fix this issue. But I found one thing. If
you have a new OS (Worked on Ubuntu 16.04 and 18.04) and go through the
required installation steps, it works. I have tried purging the
installation directory and all installed packages (that were part of the
installation step) but the seg fault remains.
On Wed, Aug 14, 2019, 7:09 PM Mick<EMAIL_ADDRESS>wrote:

I am experiencing the same issue, any ideas as to why this is occurring?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/torch/tds/issues/36?email_source=notifications&email_token=AHKABPAS4BO4XOYWZVSLTQLQEQG2NA5CNFSM4IFONIM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4I5F2I#issuecomment-521261801,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AHKABPAGIDZIQOW3ITEWL6DQEQG2NANCNFSM4IFONIMQ
.

I'm using Ubuntu 18.04 x86_64, Lua 5.2.3, but the seg fault still shows when require 'tds'.
What are the "required installation steps"? (I just installed it using luarocks install tds) Should I use another version of Lua?


Fix code example

Fixes  #29390
Thanks @umunu! 🚀

Internal previews

📄 File
🔗 Preview link

aspnetcore/migration/60-70.md
Migrate from ASP.NET Core 6.0 to 7.0

@Rick-Anderson @tdykstra @wadepickett ... Did some recent changes alter the way that errors that don't pertain to the PR's files can prevent the PR from being merged?
This is a patch PR for code in a completely unrelated file, but I can't merge it due to these unrelated errors that are being dealt with separately ...

https://github.com/dotnet/AspNetCore.Docs/issues/29391
https://github.com/dotnet/AspNetCore.Docs/pull/29384

@guardrex, that does seem odd.  I am not aware of any change, and I am not experiencing the same thing so far. I am curious about what is happening here.  The theory on a change related to admin cred seems plausible.  Maybe try closing and reopening to force a rebuild in case whatever was changed for the worse, was also retracted.

Merging the other PR will temporarily resolve these problems for all PRs here and unblock us. Rick will review, and I'll try to get that in ASAP, hopefully by EOD.


repeat_distance does not work with Stops

Hello, I am not quite sure but I think there is a bug in the element repeat_distance on Tangram-ES. When we applied repeat_distance on roads labels, it did not show repeated labels as we would expected. If the repeat_distance was set only with one number (e.g. repeat_distance: 300px), the labels were shown with this distance. But if we wanted to show different labels distances at different zooms (e.g. repeat_distance: [[15, 30px], [18, 500px]]), I think it did not set properly the distances.

Just realized that this is a duplicate of https://github.com/tangrams/tangram-es/issues/2079


Setup codecov

📚 Documentation preview 📚: https://metatensor-models--111.org.readthedocs.build/en/111/

Please do not merge yet. There seems to be an error with processing the file.

TBH I have no clue. codecov seems to have some issues with parsing the files. Even though we create them the usual way.

Jippie it is working now and we are above 80%. Thanks to @Luthaf  for the debugging help!


There some margins/padding in output pdf

Hello!
When I put <div> with absolute position at (0, 0) it appeared in page at top left corner, but without this style properties it appeared with some margins (or page padding) about 2 x 2 mm. My html don't have any styles. It is possible to deal with it?
Thank you.
p.s. ver. is 2.2.0

Me too. And I've already set border: '0'

@AssKicker0214 I have found solution
body {
margin: 0;
}
try it

Thank you for your information, but it's weird because I don't even have a 'body', I just pass a 'div' to the 'html-pdf' plugin.
I've tried your suggestion but nothing happened. Maybe I should pass a whole 'html' instead.
Thank you very much!
At 2018-02-27 05:56:56, "code-by"<EMAIL_ADDRESS>wrote:
@AssKicker0214 I have found solution
body {
margin: 0;
}
try it
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

lets try whole html

Sounds like phantom.js emulates what most browsers do by default, ie. a margin on the body. (and if you're passing a div it will wrap it)

didn't work, same problem here


Add a 404 Page

Acceptance Criteria
Add a 404 page for incorrect URLs on our site.
A mock-up does not exist just yet!
Related Features

N/A

Design References
Desktop design:
https://xd.adobe.com/view/ae471f35-b465-4155-b95e-4c01bd61deef-fb14/
Mobile design:
https://xd.adobe.com/view/3640d8e0-d80d-43e5-b7d0-fe240a00644f-6313/

Options for possible 404 image.


dbInMemory

It appears that setting dbInMemory means user creation does not survive app restart (container restart). Is this correct? Is this intentional? if so I propose to add it to documentation clearly.

Yeah its more for testing, though I could see it being used for cases ephemeral use cases as well.
For example, I found this instance of SQLPad that has no auth and isn't persisting any user data. In memory only would be fine for this I'd think. https://covid.bit.io/queries/new


ckb-debugger: terminate called after throwing an instance of 'std::bad_alloc'

polyjuice_validator_86Mcycles.tar.gz
I used ckb-debugger to analysis the above tx:
./release/ckb-debugger \
  --cell-index 2 --cell-type input \
  ---script-group-type lock \
  --bin validator \
  --max-cycles<PHONE_NUMBER>00 \
  --tx-file cycles_86667011-0c2b45c5a99226a666ee98cbe6e9a95f0b391038d1f07608af45c89452c4df9d-offchain-cancel-tx.json \
  --pprof polyjuice_validator_86Mcycles.log

and it return this:
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Run result: 1
Total cycles consumed: 73176486
Transfer cycles: 448404, running cycles: 72728082

Polyjuice validator bin：
tx_and_bins.tar.gz
tx:
86Mtx.tar.gz
Originally posted in https://github.com/nervosnetwork/godwoken-internal/issues/346#issuecomment-961895509

Out of memory. Please check the memory usage.

I used -g option instead of 'O0' to compile validator, this problem has gone.
thx.


Pretrained model on Kinetics

Hi,
Thanks a lot for providing the open-source I3D pytorch code! May I ask do you provide the pretrained model on Kinetics?
Highly appreciate your time and help!

Hi @LiliMeng,
The pretrained models (transfered from tensorflow) can be found in the repo directly here (for the case of rgb in this case !).
All the best,
Yana


detectnet not running

Hi Dusty,
when ever I run detectnet this below error is coming. when i  am running video-viewer there is no issue. i wonder how is this possible. I deleted files in build folder and rebuilt the thing again, again i am having the came issue
can you help me to solve this issue ?
[TRT]    requested fasted precision for device GPU without providing valid calibrator, disabling INT8
[TRT]    [MemUsageChange] Init CUDA: CPU +186, GPU +0, now: CPU 225, GPU 7767 (MiB)
[TRT]    Trying to load shared library libnvinfer_builder_resource.so.8.5.2
[TRT]    Loaded shared library libnvinfer_builder_resource.so.8.5.2
[TRT]    [MemUsageChange] Init builder kernel library: CPU +106, GPU +149, now: CPU 354, GPU 7938 (MiB)
[TRT]    native precisions detected for GPU:  FP32, FP16, INT8
[TRT]    selecting fastest native precision for GPU:  FP16
[TRT]    could not find engine cache /usr/local/bin/networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff.1.1.8502.GPU.FP16.engine
[TRT]    cache file invalid, profiling network model on device GPU
[TRT]    [MemUsageChange] Init CUDA: CPU +0, GPU +0, now: CPU 251, GPU 7938 (MiB)
[TRT]    Trying to load shared library libnvinfer_builder_resource.so.8.5.2
[TRT]    Loaded shared library libnvinfer_builder_resource.so.8.5.2
[TRT]    [MemUsageChange] Init builder kernel library: CPU +103, GPU -13, now: CPU 354, GPU 7925 (MiB)
[TRT]    The implicit batch dimension mode has been deprecated. Please create the network with NetworkDefinitionCreationFlag::kEXPLICIT_BATCH flag whenever possible.
[TRT]    device GPU, loading /usr/local/bin/ /usr/local/bin/networks/SSD-Mobilenet-v2/ssd_mobilenet_v2_coco.uff
[TRT]    UFFParser: Parsing Input[Op: Input].
[TRT]    UFFParser: Input -> [3,300,300]
[TRT]    UFFParser: Applying order forwarding to: Input
[TRT]    UFFParser: Parsing FeatureExtractor/MobilenetV2/Conv/weights[Op: Const].
[TRT]    UFFParser: FeatureExtractor/MobilenetV2/Conv/weights -> [3,3,3,32]
[TRT]    UFFParser: Applying order forwarding to: FeatureExtractor/MobilenetV2/Conv/weights
[TRT]    UFFParser: Parsing FeatureExtractor/MobilenetV2/Conv/Conv2D[Op: Conv]. Inputs: Input, FeatureExtractor/MobilenetV2/Conv/weights
[TRT]    UFFParser: FeatureExtractor/MobilenetV2/Conv/Conv2D -> [32,150,150]
[TRT]    UFFParser: Applying order forwarding to: FeatureExtractor/MobilenetV2/Conv/Conv2D
[TRT]    UFFParser: Parsing FeatureExtractor/MobilenetV2/Conv/BatchNorm/moving_variance[Op: Const].
[TRT]    UFFParser: FeatureExtractor/MobilenetV2/Conv/BatchNorm/moving_variance -> [32]
[TRT]    UFFParser: Applying order forwarding to: FeatureExtractor/MobilenetV2/Conv/BatchNorm/moving_variance
[TRT]    UFFParser: Parsing FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/add/y[Op: Const].
[TRT]    UFFParser: FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/add/y -> []
[TRT]    UFFParser: Applying order forwarding to: FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/add/y
[TRT]    UFFParser: Parsing FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/add[Op: Binary]. Inputs: FeatureExtractor/MobilenetV2/Conv/BatchNorm/moving_variance, FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/add/y
[TRT]    UFFParser: Applying order forwarding to: FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/add
[TRT]    UFFParser: Parsing FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/Rsqrt[Op: Unary]. Inputs: FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/add
[TRT]    UFFParser: Applying order forwarding to: FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/Rsqrt
[TRT]    UFFParser: Parsing FeatureExtractor/MobilenetV2/Conv/BatchNorm/gamma[Op: Const].
[TRT]    UFFParser: FeatureExtractor/MobilenetV2/Conv/BatchNorm/gamma -> [32]
[TRT]    UFFParser: Applying order forwarding to: FeatureExtractor/MobilenetV2/Conv/BatchNorm/gamma
[TRT]    UFFParser: Parsing FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/mul[Op: Binary]. Inputs: FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/Rsqrt, FeatureExtractor/MobilenetV2/Conv/BatchNorm/gamma
[TRT]    UFFParser: Applying order forwarding to: FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/mul
[TRT]    UFFParser: Parsing FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/mul_1[Op: Binary]. Inputs: FeatureExtractor/MobilenetV2/Conv/Conv2D, FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/mul
[TRT]    UFFParser: FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/mul_1 -> [32,150,150]
[TRT]    UFFParser: Applying order forwarding to: FeatureExtractor/MobilenetV2/Conv/BatchNorm/batchnorm/mul_1
[TRT]    UFFParser: Parsing FeatureExtractor/MobilenetV2/Conv/BatchNorm/beta[Op: Const].
[TRT]    UFFParser: FeatureExtractor/MobilenetV2/Conv/BatchNorm/beta -> [32]
[TRT]    UFFParser: Applying order forwarding to: FeatureExtractor/MobilenetV2/Conv/BatchNorm/beta
[TRT]    UFFParser: Parsing FeatureExtractor/MobilenetV2/Conv/BatchNorm/moving_mean[Op: Const].
[TRT]    UFFParser: FeatureExtractor/MobilenetV2/Conv/BatchNorm/moving_mean -> [32]

@Shashank860 this isn't an error I don't believe, you just need to let it run for 5-10 minutes first
The first time a model is loaded, TensorRT optimizes it for your GPU.   It then saves the optimized model to disk and loads it quicker the next time.


Scalable deployment on Kubernetes

Is your feature request related to a problem? Please describe.
When I want to deploy parsr as a Kubernetes service and (auto-)scale the deployment to multiple pods with potentially short live time, I cannot be sure that the later GET requests to get the progress and the result, will arrive on the same pod to which I initially submitted the document to parse with a POST. So, in practice, I am limited to one static pod, and not using auto-scaling.
Describe the solution you'd like
I want an event driven approach, where I "fire-and-forget" submit a document to a service (without knowing the worker), get a pointer back, and eventually get the results (by polling or push).
Specifically, I would like the pod to:

send updates about it's progress (initial receipt of the request, interim progress and final status) to be stored e.g. in a key-value store (like DynamoDB) or other fast database.
send the results to an document store (e.g. S3, or maybe DynamoDB if small enough).

Describe alternatives you've considered

use only 1 pod
use a way to connect always to the same pod if more than 1 pod in the deployment (like a gateway with sticky sessions ... very ugly ...)
inside the pod, add a second container, that does the state management and saves the progress and results to DynamoDB and S3, without changing the parsr image.

Additional context
We are from Axa Data Lab in Brussels and would like to deploy parsr in a scalable way in our cluster. The current approach of POST + GET limits our capability to scale.

Explaining in a bit more detail:

the client call the Parsr pod
the container/pod responds immediately with a unique ID (e.g. a UUID)
the container/pod later on sends updates of the progress to a database with the ID as a key
when ready, the container/pod later saves the result to e.g. S3 , using this ID as file name or directory name

So, the client only needs to send exactly 1 http call to the container/pod. So, e.g. a non-stateful loadbalancer can be placed in front of it. And then all next calls or sent to other stateful services (the Dynamo DB and the S3 storage).

@peter-vandenabeele-axa Currently we're trying to scale up are parsr as well in our Kubernetes Cluster but we're facing the same challenge as yours. Have you find any solution yet ? If so then we would love it hear it from you and it would be much appreciated. Thank you!


ENH: optimize: Clarify error when objective function returns array

Add a check to see if the user-provided objective function is
scalar, and if not, raise an exception explaining the issue.
Closes gh-10078.
This solution was similar to that proposed in the comments of #10078, except for an additional try/except to check for numpy arrays of length one (which are also acceptable inputs).
Here it is for minimize:
>>> import numpy as np
>>> from scipy.optimize import minimize
>>>
>>> minimize(lambda x: x, np.array([1, 1]))
Traceback (most recent call last):
  File "/Users/lindsey/Dev/scipy-dev/scipy/scipy/optimize/optimize.py", line 699, in _approx_fprime_helper
    df = df.item()
ValueError: can only convert an array of size 1 to a Python scalar

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/lindsey/Dev/scipy-dev/scipy/scipy/optimize/_minimize.py", line 594, in minimize
    return _minimize_bfgs(fun, x0, args, jac, callback, **options)
  File "/Users/lindsey/Dev/scipy-dev/scipy/scipy/optimize/optimize.py", line 1004, in _minimize_bfgs
    gfk = myfprime(x0)
  File "/Users/lindsey/Dev/scipy-dev/scipy/scipy/optimize/optimize.py", line 326, in function_wrapper
    return function(*(wrapper_args + args))
  File "/Users/lindsey/Dev/scipy-dev/scipy/scipy/optimize/optimize.py", line 764, in approx_fprime
    return _approx_fprime_helper(xk, f, epsilon, args=args)
  File "/Users/lindsey/Dev/scipy-dev/scipy/scipy/optimize/optimize.py", line 701, in _approx_fprime_helper
    raise ValueError("The user-provided "
ValueError: The user-provided objective function must return a scalar value.

Merged, thanks @lhilt


Client Allocation Request for: hanatourist

Client Allocation Questions
Core Information

Name: hanatourist
Website / Social Media: https://hanatourist.vip
Region: Asia excl. Greater China
DataCap Requested: 5TiB
Addresses to be Notarized: f1e4ie6hm6zkdro24ykupqvnt6m6jt5kd2ab4fz6i
Notary Requested: rayshitou

@latoyahdail Please subscribe to notifications for this Issue to be aware of updates. Notaries may request additional information on the Issue.

@latoyahdail Thanks for your application. Please answer the following questions to let me know you and your company.
1.What's your name and your position in your company?What's your company's business?
2.Could you show me your company's business license? And please show me your company searching consequence in the local business license searching website.
3.Have you/your company ever used cloud? Which platform do you use? What's your usage volume and frequency?Could you please show me your cloud usage evidence?

@rayshitou   Sorry to reply so late.

You can call me Randy, I am the technical director at Hanatourist.
Hanatourist is a well-known local tourism integrated service company in Vietnam. We have been established for more than 20 years. We are committed to providing the best service for tourists who come to Vietnam for tourism. Due to the diversified business development, it began to get involved in the digital information industry. My department is mainly responsible for researching the latest digital technology.

Sure but for privacy I will send you via email.

We usually use VDC's cloud service, which is about 5T per month. About the evidence I can not provide for privacy.

Dear@Broz221  Glad to see your reply
1.We think more than 3 is reasonable,It mainly depends on the scale of the miner and the price.
2.The price of their services geographical location and technical capabilities.
3.We will allocate DataCap reasonably to prevent overallocation.

Please send your company's business license and searching consequence to<EMAIL_ADDRESS>And please let me know:
1.What kind of data do you want to store and how much?
2.Could you please send me some demos of your data?
3.Do you agree to use the DataCap to only store data that abides by local regulations and in compliance with the recipient miner's terms of service?

@rayshitou Sorry to reply so late.
1.I want to store the travel data of our users, including photos and videos. Around 5T per month.
2.Because it is customer privacy, I can find some data approved by the customer and send it to your email.
3.yes.

I'm a little confused. Private data is not recommended to storing in Filecoin system.

Yes, we checked the rules of Filecoin Plus again and indeed we can't store private data. So we decided to store data about our own company generated data. Mainly videos of local people and scenery and photos.

About the allocation of DataCap:
1.How many miners do you want to store your data to? How much data for each miner?
2.What method/tool will you use to insperct miners? Which aspect of miners will you inspect?
3.Will you record your allocation decision in public? Which platform will you use?
4.Have you ever allocated before? If yes, how did you do when you were questioned? Any links?


Div style is not reflecting

Hi,
I was trying to align text to the right in a div but looks like styling from
 is not reflecting.
I used the example you have

Taken from wikipedia

Expected result:
Taken from wikipedia and the image should be on the right side.
Actual result:
No impact.
I tried to put the styling in the
 and its working fine for the text.
Ex:

Taken from wikipedia

Ideally I would like to have one style for the contents inside the div.

@orasik Unfortunately, there isn't any equivalent of div in OOXML standards, so we skip div as a whole, at present I don't have any alternative suggestions on this other than translate styles to inner elements if possible.

@privateOmega Thank you for your reply.
I found a workaround and that is by using "style:text-align:right" inside
I am happy to add an example and raise a PR if you agree.

@orasik Well the change that you did was for a very specific case right? i don't think an example of that is required as part of examples, but I guess if you update your entire example along with fix here, that might help as a pointer for new users. I will close this issue, once you post that. Thanks.

Thanks @privateOmega
My specific case was just to align an image to the right.
Here is the code:

text-align is not a valid CSS for  but it worked fine when I exported the docx file.


github.com/golang/mock is deprecated in favour of github.com/uber-go/mock

The https://github.com/golang/mock repo is unmaintained and has been archived. They promote https://github.com/uber/mock instead.

Update, June 2023: This repo and tool are no longer maintained. Please see go.uber.org/mock for a maintained fork instead.

Dropped a mention on the PR but: Thank you and sorry!
I think you want to make this change against the version of this that's in the extras directory of rules_go.
The rules_go folks decided they wanted some changes and have been supporting running gomock over there.


Fixed bugs and code style issues in test files

Like entity test was not fully covered. It was missing a test to assert that the review inside the Like object was the same as the Review object.

like entity test is fully covered in the current main branch.


Failed to install microsoft store

On which version & edition of Windows 10 did you get this error? I need more information to help you.


how to use part of a label vector (split a label vector in network building)

Hi Everyone:
I came across a situation:
Supposing that I have a single label vector as [ L1, L2, L3, N1, N2, N3].
My network has two branches, one branch uses [L1, L2, L3] as labels and the other uses[N1, N2, N3].
I knew I may access label as:  " label = mx.sym.Variable('label_name')"
but how should I access different parts of the label vector or split the label vector, when I build the network?
Thanks a lot !!!

should I use mx.symbol.split()?

just use slice_axis and reshape


I just can't compile my formula after commit  82f5b51

[X] ran brew update and can still reproduce the problem?
[X] ran brew doctor, fixed all issues and can still reproduce the problem?
[X] ran brew config and brew doctor and included their output with your issue?

What you were trying to do (and why)
I have no problem to compile my formula before commit https://github.com/Homebrew/brew/commit/82f5b510c1e895ca7cf5786bf197c4cd67d29469 , after update to brew master head I just can't compile my formula.
My formula list here: https://github.com/markwu/homebrew-personal/blob/master/Formula/zeal.rb
What happened (include command output)

Command output

$ brew reinstall zeal
==> Reinstalling markwu/personal/zeal
==> Cloning https://github.com/zealdocs/zeal.git
Updating /Users/mark/Library/Caches/Homebrew/zeal--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at fc1f18f feat(core,registry): unmount HTTP server prefix on docset removal
==> Downloading<EMAIL_ADDRESS>######################################################################## 100.0%
==> Patching
==> Applying<EMAIL_ADDRESS>patching file src/libs/browser/CMakeLists.txt
patching file src/libs/core/CMakeLists.txt
patching file src/libs/ui/CMakeLists.txt
==> cmake ..
==> make
Last 15 lines from /Users/mark/Library/Logs/Homebrew/zeal/02.make:
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:328:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:329:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:330:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
~~^
13 errors generated.
make[2]: *** [src/libs/registry/CMakeFiles/Registry.dir/docsetregistry.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [src/libs/registry/CMakeFiles/Registry.dir/all] Error 2
make: *** [all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/markwu/homebrew-personal/issues

What you expected to happen
$ brew reinstall zeal
==> Reinstalling markwu/personal/zeal
==> Cloning https://github.com/zealdocs/zeal.git
Updating /Users/mark/Library/Caches/Homebrew/zeal--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at fc1f18f feat(core,registry): unmount HTTP server prefix on docset removal
==> Downloading<EMAIL_ADDRESS>Already downloaded<EMAIL_ADDRESS>==> Patching
==> Applying<EMAIL_ADDRESS>patching file src/libs/browser/CMakeLists.txt
patching file src/libs/core/CMakeLists.txt
patching file src/libs/ui/CMakeLists.txt
==> cmake ..
==> make
🍺  /usr/local/Cellar/zeal/HEAD-fc1f18f: 9 files, 2MB, built in 35 seconds
Removing: /Users/mark/Library/Caches/Homebrew/zeal--patch--91ea0afb7f18865c859fa47301c6f12a4c9aec4556d8b705f7ce32c1caa8102a.diff... (1.9KB)

Step-by-step reproduction instructions (by running brew commands)
$ brew install qt
$ brew tap markwu/personal
$ brew install qt5-webkit
$ brew install zeal

Output of brew config and brew doctor commands

$ brew config
HOMEBREW_VERSION: 2.2.10-12-gb6812d2
ORIGIN: https://github.com/Homebrew/brew.git
HEAD: b6812d2dfba0fa1825be0e20dcaa3b6128f43a93
Last commit: 10 hours ago
Core tap ORIGIN: https://github.com/Homebrew/homebrew-core
Core tap HEAD: 3e2b762e901599ff5d536f322feb2f45d35dad10
Core tap last commit: 2 hours ago
HOMEBREW_PREFIX: /usr/local
HOMEBREW_CUSTOM_RUBY_HOME: /Users/mark/.rvm/rubies/ruby-2.6.5
HOMEBREW_DEV_CMD_RUN: 1
HOMEBREW_NO_ANALYTICS_THIS_RUN: 1
CPU: octa-core 64-bit haswell
Homebrew Ruby: 2.6.3 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.3/bin/ruby
Clang: 11.0 build 1100
Git: 2.25.1 => /usr/local/bin/git
Curl: 7.54.0 => /usr/bin/curl
Java: 1.8.0_231
macOS: 10.14.6-x86_64
CLT: <IP_ADDRESS>.1.1574140115
Xcode: 11.3.1
XQuartz: 2.7.11 => /opt/X11

$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: "config" scripts exist outside your system or Homebrew directories.
`./configure` scripts often look for *-config scripts to determine if
software packages are installed, and which additional flags to use when
compiling and linking.

Having additional scripts in your path can confuse software installed via
Homebrew if the config script overrides a system or Homebrew-provided
script of the same name. We found the following "config" scripts:
  /Users/mark/.phpbrew/php/php-7.3.15/bin/php-config

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

Unexpected header files:
  /usr/local/include/python2.7/greenlet/greenlet.h
  /usr/local/include/python3.7m/greenlet/greenlet.h

Warning: You have uncommitted modifications to Homebrew.
If this is a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
  cd /usr/local/Homebrew/Library && git stash && git clean -d -f

Warning: Some installed formulae are missing dependencies.
You should `brew install` the missing dependencies:
  brew install node

Run `brew missing` for more details.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/markwu/homebrew-personal/issues

We don't support build issues with non-homebrew-core formulae. @Bo98 may be able to provide advice on the error messages.

Should be fixed in: https://github.com/Homebrew/brew/commit/89f3a332644d1b9c41f7cab53ab9045aec2b517f

The problem is that you should be using std_cmake_args, but aren't.
I don't think there's any other way to set CMAKE_OSX_SYSROOT outside that, short of a global SDKROOT or a cmake shim.

@dawidd6 No, it dit not fix the issue.
@Bo98 Can you elaborate me more hints or point me some documents or information? Then, I can check it myself. Thanks.

Example usage of std_cmake_args: https://github.com/Homebrew/homebrew-core/blob/3146235d5f9fc22b3e090f91f1b639567f75691b/Formula/innoextract.rb#L21

@Bo98 Ah, I see. ! Now, I known what you mean, and it fixed my issue. Great thanks!


CI Error: failed golangci-lint job because of staticcheck SA1019 (protobuf/proto)

Describe the bug
A clear and concise description of what the bug is.
CI failed golangci-lint job because of staticcheck SA1019.
run golangci-lint
  Running [/home/runner/golangci-lint-1.29.0-linux-amd64/golangci-lint run --out-format=github-actions] in [] ...
  Error: SA1019: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead.  (staticcheck)
  Error: SA1019: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead.  (staticcheck)
  Error: SA1019: package github.com/golang/protobuf/proto is deprecated: Use the "google.golang.org/protobuf/proto" package instead.  (staticcheck)

  Error: issues found

https://github.com/getgauge/gauge/runs/1662058622
To Reproduce
Steps (or project) to reproduce the behavior:

Initialise a gauge project
Run the gauge command
See error

run https://github.com/getgauge/gauge/runs/1662058622
Logs
Paste any log or error messages here

here https://github.com/getgauge/gauge/runs/1662058622.
Expected behavior
A clear and concise description of what you expect to happen.
Use the "google.golang.org/protobuf/proto" package instead.
Screenshots
If applicable, add screenshots to help explain your problem.

Versions:

gauge -v

OS [e.g. MacOS 10.15.6 (19G2021) please be specific ]
Runner info (Please specify the correct version of Java/Node/Python/Dotnet/Ruby)
IDE info (If using VS Code or Intellij IDEA)

Additional context
Add any other context about the problem here.

thanks!

thanks!


add post description field

This is missing in the original Kaldi template, too. I should probably go do some updates on that as well.
This PR adds the field config and also re-adds the description content that was removed in recent edits (assuming that was not intentional).

Ah nice catch


Add letters and sequences of DIN 91379 (Unicode subset for Europe)

Please add the letters and sequences of DIN 91379 "Characters and defined character sequences in Unicode for the electronic processing of names and data exchange in Europe, with CD-ROM".
The normative part of the standard tries to include all letters and sequences that are required for the transliteration of names to Latin script. For the generation of proof files and QA tests of fonts it is important to consider correct positioning of diacritics in sequences of base letters and diacritic signs.
References:

https://en.wikipedia.org/wiki/DIN_91379
https://github.com/String-Latin/DIN-91379-Characters-and-Sequences
https://raw.githubusercontent.com/String-Latin/DIN-91379-Characters-and-Sequences/main/latin_list_1.3.txt List of all letters and sequences of DIN 91379
https://github.com/notofonts/latin-greek-cyrillic/issues/33

The compliance to DIN 91379 will be mandatory for German authorities and organisations in the exchange of data between authorities or with citizens and business from Nov 1, 2024.[1]
The architecture guideline for German federal IT - version 2022 - demands the usage of the predecessor DIN SPEC 91379.[2]
See: https://en.wikipedia.org/wiki/DIN_91379


AutoModelForCausalLM.from_pretrained() fails: "TypeError: 'type' object is not subscriptable"

I'm trying to run moondream on a Raspberry Pi 5 (8gb) running Raspberry Pi OS Bookworm Lite (fully up-to-date) and Python 3.8.19, which is the latest version of Python that is compatible with pygame 1.x (the latest version of pygame that runs on Raspberry Pi Lite).
I followed the install instructions and example script upt to the AUtoModelForCausalLM.form_pretrained statement, which generated this error:
>>> model = AutoModelForCausalLM.from_pretrained(
...     model_id, trust_remote_code=True, revision=revision
... )
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/pi/.pyenv/versions/3.8.19/lib/python3.8/site-packages/transformers/models/auto/auto_factory.py", line 551, in from_pretrained
    model_class = get_class_from_dynamic_module(
  File "/home/pi/.pyenv/versions/3.8.19/lib/python3.8/site-packages/transformers/dynamic_module_utils.py", line 514, in get_class_from_dynamic_module
    return get_class_in_module(class_name, final_module)
  File "/home/pi/.pyenv/versions/3.8.19/lib/python3.8/site-packages/transformers/dynamic_module_utils.py", line 212, in get_class_in_module
    module_spec.loader.exec_module(module)
  File "<frozen importlib._bootstrap_external>", line 843, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/home/pi/.cache/huggingface/modules/transformers_modules/vikhyatk/moondream2/92d3d73b6fd61ab84d9fe093a9c7fd8c04bf2c0d/moondream.py", line 9, in <module>
    from .vision_encoder import VisionEncoder
  File "/home/pi/.cache/huggingface/modules/transformers_modules/vikhyatk/moondream2/92d3d73b6fd61ab84d9fe093a9c7fd8c04bf2c0d/vision_encoder.py", line 209, in <module>
    class VisionEncoder(nn.Module):
  File "/home/pi/.cache/huggingface/modules/transformers_modules/vikhyatk/moondream2/92d3d73b6fd61ab84d9fe093a9c7fd8c04bf2c0d/vision_encoder.py", line 251, in VisionEncoder
    self, images: Union[PIL.Image.Image, list[PIL.Image.Image], torch.Tensor]
TypeError: 'type' object is not subscriptable

Could you try using the Python client library? https://pypi.org/project/moondream/
I have it set to require Python 3.10+ for now since I haven't been able to test older versions, but if you pass --ignore-requires-python it should ignore that check.

How to solve it, in the transformer implementation ? I need to finetune the model


bump qs dependency version to address CWE-20

qs dependency is updated to fix the following weakness:
https://snyk.io/vuln/npm:qs:20170213
see current vulnerability report for swagger-tools
https://snyk.io/test/github/apigee-127/swagger-tools

Thanks.  I'll be updating this when I rev https://github.com/whitlockjc/path-loader/issues/11

Done as part of 9b5131361ec75712a6a0784b2e106d7664eb5b4f.


Set view distance per world

Is there any way to set view-distance or mob-spawn-rate per world? I couldn't find anything in the wiki. At the start, chat-logs say it's 10 for all worlds, whether it's a nether or normal world or the end, but it's set to 16 in the server.properties and spigot.yml.

Solution posted - Closing ticket. Please don't hesitate to open a new ticket if you are still encountering issues.


read_parquet super slow

My computer has 64 GB RAM and the parquet files are not large at all. However, they take surprisingly long time to read. I don't know what is the potential cause. If you need more info, please feel free to let me know.

Hi @PursuitOfDataScience . Could you give us a little bit more information on how are you reading the parquet files? Are you reading them through R, Pyarrow, C++? Maybe you can share a snippet of the read.
Thanks

Just using arrow::read_parquet() in R. Everything is regular, nothing fancy. Anything else I need to provide?

Thanks! What version of Arrow are you using?

arrow_8.0.0

How were the files produced? Which compression and encoding do they use? How many columns are there?

They were SAS datasets. I used haven::read_sas() to load them into memory and then used arrow::write_parquet() to write them into disk for future use.

I am not sure about the first question, but there are 80 columns or so.


How to get media via URL parameter

Hi, i`m trying to find current media via URL param in function
// full url is: https://www.instagram.com/p/BpTDvkgl4MS/
m, err := insta.GetMedia("BpTDvkgl4MS")
if err != nil {
	panic(err)
}
fmt.Println(m)

But i see next: panic: fail: Media not found or unavailable ()
How i can get media item via url?

You have to convert it to media_id. #100


Add sockmap

Hi

Add attribute macros #[stream_parser] and #[stream_verdict] for defining BPF programs with brief comments and examples.
Add StreamParser and StreamVerdict structures for userspace programs with concise comments and exmaples.
Add SockMap structure for both BPF and userspace programs with terse comments.
Add an example program for showing how to use StreamParser, StreamVerdict and SockMap.
Fix rust code format.

Any comments would be appreciated.
Thanks,
Junyeong

Hello @rsdy
Could you review this PR?


Make it possible to chose which sub-fields of the related collection we should keep

Problem
If you have a collection in Strapi that has a relation with another collection, once you index it to MeiliSearch the output is the following:
 {
    "id": 2,
    "name": "Italian",
    "restaurants": [
      {
        "id": 1,
        "name": "PetitPatapon",
        "description": "Delicieux",
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2021-03-03T12:09:10.979Z",
        "updated_at": "2021-03-03T12:09:10.988Z"
      },
      {
        "id": 2,
        "name": "LaLoLaLiTa",
        "description": "Ma que bello",
        "created_by": 1,
        "updated_by": 1,
        "created_at": "2021-03-03T12:17:46.503Z",
        "updated_at": "2021-03-03T12:17:46.515Z"
      }
    ]
  },

But for MeiliSearch to create facets the best way would be to transform the restaurants object into the following:
 {
    "id": 2,
    "name": "Italian",
    "restaurants": ["LaLoLaLiTa", "PetitPatapon"]
 },

Solution
It would be better that on indexation, if a relation is discovered, the user is prompted to chose one field or to ignore the questions.

In the meantime: What are options to have facets work for anything like that?

Ok, so for now I found a workaround to make facets on relations work:
When you've created your post types go to your strapi /api/<CONTENT_TYPE> folder. In there your should find 4 folders:

config
controllers
models
services

Go to the services folder and open your posts.js.
In there you can customize how posts are read from the database. As the meilisearch plugin is using the find()-Method of your types service, you need to overwrite its functionality like the following:
"use strict";

/**
 * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services)
 * to customize this service
 */

// use lodash as it is inherited by strapi itself
const _ = require("lodash");

module.exports = {
  /**
   * Retrieve records.
   *
   * @return {Array}
   */
  async find(params, populate) {
    return strapi
      .query("restaurant")
      .find(params, populate)
      .then((entities) => {
        return entities.map((entity) => {
          // check if relation is present
          if (entity.categories) {
            // flatten relation array with lodash
            // "key" is the key you want to represent the category for meilisearch-facets
            // if you do not want to override the standard field "categories" just change entity.categories to something else
            entity.categories = _.map(_.flatten(entity.categories), "key");
          }
          return entity;
        });
      });
  },
};

More on customizing your backend:
https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html
I think this functionality (lodash and flattening) could be the way for the meilisearch-plugin to provide such functionality as long multi-dimensional searches are not possible by meilisearch itself.
Plugin needs to be changed that it recognizes that the content-type you want to add to meilisearch has relations on other types. Therefor it should be possible to have an UI-PopUp which shows all fields of the type. In there you could choose which fields you want to add to the index. Besides choosing the fields you could override the keys and transformation. Transformation: Use-Cases are Enums and relations. Relations could be flattened to one field, Enums mapped to another value.

This is a very interesting improvement.
Usually, categories, tags, or other structured content will come from relationships, and being able to add to the index those fields as facets gives us lightnin' fast filtering over the collections, without the hassle of creating nested GraphQL queries

Ok, so for now I found a workaround to make facets on relations work:
When you've created your post types go to your strapi /api/<CONTENT_TYPE> folder. In there your should find 4 folders:

config
controllers
models
services

Go to the services folder and open your posts.js.
In there you can customize how posts are read from the database. As the meilisearch plugin is using the find()-Method of your types service, you need to overwrite its functionality like the following:
"use strict";

/**
 * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services)
 * to customize this service
 */

// use lodash as it is inherited by strapi itself
const _ = require("lodash");

module.exports = {
  /**
   * Retrieve records.
   *
   * @return {Array}
   */
  async find(params, populate) {
    return strapi
      .query("restaurant")
      .find(params, populate)
      .then((entities) => {
        return entities.map((entity) => {
          // check if relation is present
          if (entity.categories) {
            // flatten relation array with lodash
            // "key" is the key you want to represent the category for meilisearch-facets
            // if you do not want to override the standard field "categories" just change entity.categories to something else
            entity.categories = _.map(_.flatten(entity.categories), "key");
          }
          return entity;
        });
      });
  },
};

More on customizing your backend:
https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html
I think this functionality (lodash and flattening) could be the way for the meilisearch-plugin to provide such functionality as long multi-dimensional searches are not possible by meilisearch itself.
Plugin needs to be changed that it recognizes that the content-type you want to add to meilisearch has relations on other types. Therefor it should be possible to have an UI-PopUp which shows all fields of the type. In there you could choose which fields you want to add to the index. Besides choosing the fields you could override the keys and transformation. Transformation: Use-Cases are Enums and relations. Relations could be flattened to one field, Enums mapped to another value.

Great workaround... thanks @taker93 !!!!

I think #265 is related to this


[BUG] - Mismatching delegation fees

Internal/Exernal
Internal   if an IOHK staff member.
External   otherwise.
Summary

Daedalus wallet 1.3.0-STN2#13677
When deligating a wallet to a new stake pool for the first time I am quoted a fee of .172629 but when the transaction is processed, the fee is .574125.  If you change pools after that, the transaction cost .172629 as what it was originally quoted.
Steps to reproduce
Steps to reproduce the behavior:

created a new wallet
put funds in the wallet
delegate to any stake pool.
Box will for fee pop up.
say okay to stake
see the transaction recorded differently.

Expected behavior
Fee should be .172629 instead of .574125
System info (please complete the following information):

OS: Windows 10 latest patch
Version [e.g. 20.04]
Node version

Screenshots and attachments

If applicable, add screenshots, config files and/or logs to help explain the problem.

Additional context
Add any other context about the problem here.

If this is in the wrong section, please pass this information to the correct fix team.

There is a deposit of 0.4 Ada for registering the stake key.  This will be returned when the stake key is de-registered.  The fee seems to be correct.  We have passed this on to the wallet team for further consideration (e.g. a FAQ)

Kevin, thanks for pointing that out.


Test and fix PartialRange

More correct, always fails existing test... needs more work
r @rf @raynos @kriskowal

Looking reasonable so far.

lgtttm.


Broken ElementsCollection condition since Selenide 7.2.0

The problem
Selenide 7.2.0 can't perform should condition for collections of elements. This problem not affected Selenide 7.1.0 (I have double checked)
Details
java.lang.NoSuchMethodError: 'com.codeborne.selenide.BaseElementsCollection com.codeborne.selenide.ElementsCollection.shouldHave(com.codeborne.selenide.WebElementsCondition[])'
Tell us about your environment

Selenide Version: 7.2.0
Chrome\Firefox\IE Version: Chrome 122
Browser Driver Version:
Selenide-Appium Version:
IOS\Android\WEB version:
Selenium Version:
OS Version:  Windows 10

Code To Reproduce Issue [ Good To Have ]
Gradle:
def selenideVersion = '7.2.0'
  implementation("com.codeborne:selenide:${selenideVersion}")
    // https://mvnrepository.com/artifact/com.codeborne/selenide-proxy
    implementation("com.codeborne:selenide-proxy:${selenideVersion}")
    // https://mvnrepository.com/artifact/com.codeborne/selenide-testng
    implementation ("com.codeborne:selenide-testng:${selenideVersion}")

TestNG:
@Test
    public void selenide720CollectionIssue_Test() {
        $$(By.xpath(".//*")).shouldHave(CollectionCondition.sizeGreaterThan(0));
    }

Can't reproduce anymore too.
Probably it's related to failures during dependencies downloading from the repo.
Can be closed.


Logo to Icon changes

Summary
This PR changes logo to icon in a quickstart's config file, along with changing any details field inside an alert file to description
The PR is separated by commits.
Update Tests commit
update utils scripts
update workflow files
content change
template updates
contributing docs

Closing this as the changes have been separated into different PRs


TST: Add failing test

To be fixed with @britta-wstnr

@larsoner The test looks fine to me, thanks for putting it together! The vector case will be a whole other story I fear but let's discuss this later - let's try and get the scalar version green for this one first!

So the test fails (at least) for the two filters ('unit-noise-gain' and 'unit-gain' filters) not relying on the same lead field if the orientation is picked.
We are not storing the updated lead field in the filters object - maybe we should? Furthermore, it would also make sense to store the selected orienation in that case (max_power_ori in our code).

Can the orientation picking be done last, after all other computations? If so, then maybe we shouldn't even bother doing it during filter creation but rather during apply_lcmv?

No, it should ideally be done before the filter computation and then we pick the lead field and recompute the filter.

Why even bother storing the leadfield in the filters object?

Well in this case it would come in handy for the test. I do not know how many use-cases there are, one argument for it is that we change the lead field if we do orientation selection. The plotting of the orientation itself is sometimes done, to get an overview of which orientations the filter uses, so that would in any case be useful (and would give the actually used lead field as well, if needed).

+1 for storing the selected orientations (surprised we didn't already do this?). Whether you store the entire leadfield or the selected one is up to you. The selected one is just the np.dot in the direction of the orientation selection for each vertex, right? I guess you have more flexibility if you store the entire leadfield and let people do the dot when they want it ... ?
BTW would it be possible at some point to provide the "variance explained" like we do for minimum norm and mixed norm solvers? Probably not for this PR but a follow-up one, it would be nice to have.

What's new / rationale:

We strictly follow the formulas from Sekihara & Nagarajan 2008 for the orientation selection of the unit-noise-gain beamformer and pick the leadfield.
The numerator and denominator of the beamformer are computed in one place and named (no step-by-step changes of Wk into different products anymore).
The weight normalization is done by normalizing the unit-gain beamformer, rationale is stated in comments.
General documentation of where code relates directly to formulas.

What works now:

The new unit-noise-gain test works now for scalar beamformer with orientation selection.
external tests are passing again, even at higher precision
the orientation selection for unit-noise-gain beamformers is fixed.

What does not work yet:

this pass added 5 more failing tests to the already 7 failing tests (fix in _sym_inv)
the single inversion is not implpemented in the orienation selection yet
the correction regarding the sign flipping (orienation arbitrary by 180 deg.) will need to be brought back - where it is now it makes external tests fail horrendeously (correlation of 0.5 instead of 1.0)

So there is still some stuff to do, but I find the code way clearer now and hope it will be easier to maintain in the future!

@wmvanvliet I just pushed a fix that refactors a bit more, now the inversion='single' is in a single code path/function, at least as far as _compute_beamformer is concerned.
@britta-wstnr I:

adjusted tolerances so that all tests should pass
fixed the normal unit-noise-gain formula test by doing the normal picking at the same time as the max-power picking -- seems more principled (if you're going to pick a single ori, it should be done in the same place both in normal and in max-power mode it seems). This will make it so that computing a vector beamformer and taking the stc.normal() will not be the same as computing a beamformer with pick_ori='vector', but I guess this is desired behavior (right?). If it's not, then we need to move the normal orientation picking to the very end of the beamformer calculation, then it's not clear why we wouldn't also do this for max power ori...

To me it seems like the one remaining issue (for LCMV at least) is the pick_ori='vector' case for the unit-noise-gain. I've updated the code comment to make it clear why I think they differ currently, and which of three choices we have to make them equivalent. I'll call it out in-line with a comment...

@agramfort do you want to see if the changes make sense to you based on the doc updates, etc.?

Thanks @britta-wstnr @wmvanvliet !

Congrats 🎉 🍾🍻


error on missing packages check, libxml-2.0, openssl and json-c, even though packages are installed

I receive the following error (same error as jwilk 4 years ago) even after installing check (version 0.9.9).
_checking for CHECK... no
configure: error: Package requirements (check >= 0.9.4) were not met:
No package 'check' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables CHECK_CFLAGS
and CHECK_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details._
I tried commenting out the line PKG_CHECK_MODULES(CHECK, check >= 0.9.4) in configure.ac, but then got a similar error for three other packages libxml-2.0, openssl and json. Again these packages (or newer versions of them) are installed.
I am working with a CentOS 7 installation. Please advise on these errors.

After intense research I found the packages required to get it compiled. However, the initial error on the package 'check', I still worked around by commenting out PKG_CHECK_MODULES(CHECK, check >= 0.9.4) in configure.ac
Now here is how I resolved the other errors  I encountered (on CentOS 7): First of all the packages autoconf, automake and libtool are needed to get started. Then I installed the following packages:
libxml2-devel   (to resolve "No package 'libxml-2.0' found")
openssl-devel  (to resolve "No package 'openssl' found")
json-c-devel (to resolve "No package 'json' found")
libattr-devel (to resolve "configure: error: libattr1 missing")
After installing these development packages the autogen.sh script ran through.

Installed check-devel to resolve the above issue.


traits in types are marked with dyn/impl, not bare

In Rust 2018, we can mark all trait objects using the dyn keyword. Makes it obvious whether &Foo is a trait object (&dyn Foo) or just a struct reference (&Foo) if the user doesn't have context around what Foo is.
Any Trait present in a type is prefixed with either dyn or impl. I think this should be a guideline. Easy to enforce via #![deny(bare_trait_objects)], and upheld by rust source (e.g. see the docs/src of std::error::Error.

Thanks!
I think this is out of scope for the API guidelines because the public API of the crate will be the same either way -- and rustdoc will display dyn even if you have not written one.
I think this would be more appropriate as a Clippy lint, equivalent to warn(bare_trait_objects) but for better visibility among Clippy users.

I think this is out of scope for the API guidelines because the public API of the crate will be the same either way -- and rustdoc will display dyn even if you have not written one.

That kind of raises the question of whether APIs are consumed from rustdocs or from source.
Also, maybe rather than duplicating lints, Clippy (or rustc) should somehow highlight or link to lints already in rustc?  This will become even more relevant as clippy lints are uplifted into rustc.
Finally, by virtue of being a rustc lint, you can update your sources to use the dyn keyword with cargo fix --edition-idioms, though note that (AFAIK) that option is still a bit buggy (which is why it isn't that known).


re-drawing on resize

#8
I have same problem,
version: 1.5.0
container have full width,
when i change width of side element programmatically that happens again

Hey @masoudelahi 👋
Could you please provide codesandbox reproducing the issue? You can take the demo project mentioned in README

Couldn't reproduce. It works just fine for me. Closed because of inactivity.


Include browser compatibility notes in lib.d.ts comments

After experiencing a problem caused by using Element.classList in some TypeScript code that was intended to run on IE8, I'm thinking it would be nice to include in the comments for methods known browser compatibility issues.
If this were done in a 'conventional' way, then it could also be interpreted by tooling much the way that the WebEssentials extension for Visual Studio can show browser support tooltips for CSS. eg.

Seems we want something like this in lib.d.ts:
interface Element {
  @since("IE10", "Chrome8", "Firefox3.6", "DOM3")
  @deprecated("IE20", "Chrome80", "Firefox80", "DOM8") // just a joke
  @removed("IE30", "Chrome100", "Firefox100", "DOM10") // just a joke
  classList: DOMTokenList;
}

That looks interesting

We will need a proposal on how the annotations would be added, either JSDoc comments with some special tags, or using https://github.com/Microsoft/TypeScript/issues/2900 (proposed and not implemented yet).

We now copy in MDN comments, which should include the most relevant bits. @deprecated is also now available