MQTT in imperial units?

Is it possible to display the MQTT information in imperial units rather than C and km?

Currently not. I'd like to have a topic for each of the different units in the future though. For example:

teslamate/cars/$car_id/inside_temp_C and
teslamate/cars/$car_id/inside_temp_F

Currently not. I'd like to have a topic for each of the different units in the future though. For example:

teslamate/cars/$car_id/inside_temp_C and
teslamate/cars/$car_id/inside_temp_F

Thanks!  Yes, supporting imperial units natively would be great (LOL, I know US is way behind).  For now, conversion within HomeAssistant itself work fine for me.

What does MQTT stand for?

I'd like this as well. Any arithmetic operation in yaml/home-assistant is not really straightforward. Sending a unit specific topic seems cleaner solution.

I'd like this as well. I am using MQTT /w Home Assistant and a ESP32. And both placed I have to do manual conversion. The option mention above supported both would be awesome.

I know some of you have worked this out, but for others that may not have, you can use a value template in home assistant to create an additional entity with the imperial units.
Basically its reading the metric unit and doing the calculation.
You can leave the original entries there and add these as extras (one example of each below)
- platform: mqtt
  name: tesla_rated_range_miles
  state_topic: "teslamate/cars/1/rated_battery_range_km"
  value_template: "{{ (value | float * 0.621371) |round(2) }}"
  unit_of_measurement: 'mi'
  icon: mdi:map-marker-path
- platform: mqtt
  name: tesla_outside_temp_F
  state_topic: "teslamate/cars/1/outside_temp"
  value_template: "{{ (value | float * 9/5) + 32 |round(2) }}"
  unit_of_measurement: F
  icon: mdi:thermometer-lines

I have related question -- I live in UK but drive in Europe from time to time. When I'm at home the car is set to use imperial units, but when in Europe I like to switch to display km. What happens in Teslamate when it starts getting values in different units?

I have related question -- I live in UK but drive in Europe from time to time. When I'm at home the car is set to use imperial units, but when in Europe I like to switch to display km. What happens in Teslamate when it starts getting values in different units?

I was just in France the last days (no back in the UK) and the reports in Grafana are shown in miles and look fine (ie, the km traveled is shown correctly/converted to miles).

I have related question -- I live in UK but drive in Europe from time to time. When I'm at home the car is set to use imperial units, but when in Europe I like to switch to display km. What happens in Teslamate when it starts getting values in different units?

I should have just checked the TeslaMate MQTT feed -- everything is in km only. Clearly the conversion to miles is done in the UI - as is implied by there being the units settings on the settings page. And if you look at the JSON behind any of the Grafana displays you can see expressions like select convert_km(distance, '$length_unit') from drives where id = $drive_id; - so it's doing the relevant conversions as part of getting the data from the database, where it's all presumably stored as metric values.

I have related question -- I live in UK but drive in Europe from time to time. When I'm at home the car is set to use imperial units, but when in Europe I like to switch to display km. What happens in Teslamate when it starts getting values in different units?

I should have just checked the TeslaMate MQTT feed -- everything is in km only. Clearly the conversion to miles is done in the UI - as is implied by there being the units settings on the settings page. And if you look at the JSON behind any of the Grafana displays you can see expressions like select convert_km(distance, '$length_unit') from drives where id = $drive_id; - so it's doing the relevant conversions as part of getting the data from the database, where it's all presumably stored as metric values.

Tesla seems to prefer km even being a US company. And I don't blame them.


Replace build script with nix expression

Hey, as discussed in https://github.com/t184256/nix-on-droid-bootstrap/issues/10 I rewrote the generation script as nix expressions.
Ideas that came up during development:

Eval nix expressions in travis to ensure correctness
Build proot (nix build -f ./src --argstr arch aarch64 proot and nix build -f ./src --argstr arch i686 proot) in travis and push result to cachix to simplify local development as the binary could be downloaded from cachix instead of being rebuilt

I tested the new zip ball on my smartphone (aarch64) and it works fine on first sight. Couldn't test i686 build. See https://downloads.tobias-happ.de/bootstrap/ for the zip balls (i686 building will be uploaded as soon as proot is built :D).
What do you think?

OMG, this is monumental. I'll have to get home to review, build and test it, but I'm super stoked. Like, +516-436 in 19 files? I only had 2 that were less that 400 combined =D
One can run nix in travis? Do they allow such long builds?
Also, I hate to disappoint you, but I haven't figured out how to test i686 yet. Someone asked me for the build, I plumbed the support for it, but as far as I know, no one has ever tested it.

Had a bit of spare time today.. :D
Yes, it is possible. Something like this is what I meant: https://github.com/Gerschtli/nur-packages/blob/master/.travis.yml
Maybe we can automate the deployment of the zip balls via travis.
Ah okay. So let us keep it in here and if nobody complains we will leave it as it is :D

And for the build time in travis: As long as every 10 minutes something get printed to stdout or stderr, travis won't cancel the build.

As soon as this PR gets merged, you can

create a cachix account
enable this repo in travis
set the CACHIX_SIGNING_KEY env variable in travis
add a ci.nix like

with import <nixpkgs> { };

let
  src = import ./src;
in

lib.genAttrs
  [ "aarch64" "i686" ]
  (arch: (src { inherit arch; }) // { recurseForDerivations = true; })

add a .travis.yml like

language: nix

sudo: false

env:
  global:
    - CACHIX_CACHE=t184256

install:
  - nix-env -iA cachix -f https://cachix.org/api/v1/install
  - cachix use "${CACHIX_CACHE}"

script:
  - nix-build ci.nix

after_success:
  - nix-build ci.nix | cachix push "${CACHIX_CACHE}"

add cachix information (name and trusted public key) in README so that anyone can add your binary cache and be able to download the built binaries of this repo.

I would do it by myself but only you as owner can do that. If you have problems/questions, don't hesitate to contact me :)

I've tested it some more and found no regressions. I'm very grateful for your hard work!

The job exceeded the maximum time limit for jobs, and has been terminated.

https://travis-ci.org/t184256/nix-on-droid-bootstrap/builds/587866544
Any suggestions?

Ah damn it. My information was wrong, maximum timeout is 50 min: https://docs.travis-ci.com/user/customizing-the-build#build-timeouts :(

No worries.
Could we, maybe, push the dependencies to cachix manually on nixpkgs re-pinning, point Travis to it and only make it actually build talloc/proot/zipball?

Yes of course, just follow the steps in travis.yml to manually push to cachix.

I'm confused.
I've attempted that.

However, this list does not include /nix/store/cfpnxbgnx44mngp6rmx1060m7d8axjs0-llvm-7.0.1.drv, and Travis still timed out on building llvm. I've pushed llvm builds there explicitly, nothing changed.
I've used a second Nix machine, did cachix enable nix-on-droid and attempted a build. It did download a lot of stuff from cachix, but still attempted to build LLVM locally. I have no idea why.

I'm confused.
I've attempted that.

However, this list does not include /nix/store/cfpnxbgnx44mngp6rmx1060m7d8axjs0-llvm-7.0.1.drv or /nix/store/gh4zm972yfrss5238xxz2ciyjha4qs9w-llvm-7.0.1.drv, and Travis still timed out on building llvm. I've pushed llvm builds there explicitly, nothing changed.
I've used a second Nix machine, did cachix enable nix-on-droid and attempted a build. It did download a lot of stuff from cachix, but still attempted to build LLVM locally. Some of the other stuff it wants to build isn't even present on the first system. I have no idea why.


Can we map two fields into one field?

This is something we need to deal with:
public class A {
   public string FileDate {get;set;}
   public string FileTime {get;set;}
}
public class B {
   public DateTime? FileDateTime {get;set;}
}

Onty thru TypeConverter


how to do when using UITabBarController

I'm using UITabBarController，each tabbar item is UINavigationController，so I have 4 tabbar items and 4 UINavigationControllers, how can i setNavigationController?

If I'm understanding you correctly, Routable doesn't have an opinion how to do orchestrate multiple navigation controllers, it depends on your app.
for example, you can create a separate Routable instance for each navigation controller. You could have some kind of block that configures all of them with the same routes, i.e.:
NSMutableArray *routers = [NSMutableArray new];
for (UINavigationController *navVc in @[nav1, nav2, nav3]) {
  UPRouter *router = [Routable newRouter];
  [router map: ...];

  [routers addObject: router];
}

Or you could create one router, and only use map: toCallback:, and that your callback you handle things like opening a certain tab, using a certain navigation controller, etc.
Let me know if that doesn't help

Hi,   I applied your idea like:
[[Routable sharedRouter] map:@"routeToItemList2"    toController:[ItemListPresenter class]];
[[Routable sharedRouter] map:@"itemList2" toCallback:^(NSDictionary *params) {
self.selectedIndex = 1;
[[Routable sharedRouter] setNavigationController:navigationControllerⅡ];
[[Routable sharedRouter] open:@"routeToItemList2"];
}];
but it is not convenient.
There is a more perfect method?

Maybe we need a method like :
map: toController: Callback:

Simply call this delegate method can make it.
-(void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController {
UINavigationController *navigationConrollerModel = tabBarController.childViewControllers[tabBarController.selectedIndex];
[[Routable sharedRouter] setNavigationController:navigationConrollerModel];
}


update gisce/react-formiga-components to v1.3.0

Automated changes by create-pull-request GitHub action

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


Consider adding storybook

It would be nice to have storybook added to the boilerplate so to check components as being developed. I particularly don't use github pages but I think it only allows for a single repo to be deployed, so anyone with multiple projects would have trouble dealing with it.

That would be a bigger change. Now it's on Catalog. I can accept a PR for this, though.

Sorry, what is Catalog? something like Storybook?

Yeah, Catalog is roughly like Storybook. Just not as popular. Both have their sides.

I think I'll skip this one. Replacing Catalog with Storybook would be fairly simple but probably not worth the effort. Catalog is good enough.


fixing regex of pid/procid field for conformance to RFC5424 spec

Per RFC5424, the field for PROCID is either a NILVALUE (-) or ASCII field from 1 to 128 characters.
https://tools.ietf.org/html/rfc5424#section-6
Valid RFC5424 formatted log using alphanumeric PROCID value of 'proc1':
<16>1 2013-02-28T12:00:00.003Z <IP_ADDRESS> fluentd proc1 ID24224 [exampleSDID@20224 iut="3" eventSource="Application" eventID="11211"] Hi, from Fluentd!
The regex in this PR commit will properly match the example above.
Also changed the match field name from pid to procid in the REGEX to line up with RFC5424.

Don't change capture name because it breaks existing users, e.g. schema mismatch.

Good point.  I will resubmit PR to include just the pattern match change and leave the match name 'pid' unchanged.

Replaced by #2051


Does this work?

I'm just getting a blank version of the related model back (i.e. an instance, but with no attributes)

Can you share you migration and model file?

Tested. It works.


v1.0.1

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Hi! This is the friendly automated conda-forge-linting service.
I just wanted to let you know that I linted all conda-recipes in your PR (recipe) and found it was in an excellent condition.

@conda-forge-admin please pre-render

@conda-grayskull show requirements

Working on your request...

================ HOST ================
Requirements for host

Current Deps
Grayskull found

python >=3.6
python >=3.6
:heavy_check_mark:

pip
pip
:heavy_check_mark:

setuptools >=41.2
setuptools >=41.2
:heavy_check_mark:

setuptools_scm

:x:

setuptools-scm
:heavy_plus_sign:

================ RUN ================
Requirements for run

Current Deps
Grayskull found

click
click
:heavy_check_mark:

click-default-group
click-default-group
:heavy_check_mark:

ensureconda >=1.3
ensureconda >=1.3
:heavy_check_mark:

jinja2
jinja2
:heavy_check_mark:

pydantic >=1.8.1
pydantic >=1.8.1
:heavy_check_mark:

python >=3.6
python >=3.6
:heavy_check_mark:

pyyaml >=5.1
pyyaml >=5.1
:heavy_check_mark:

requests >=2
requests >=2
:heavy_check_mark:

setuptools

:x:

toml
toml
:heavy_check_mark:

typing-extensions
typing-extensions
:heavy_check_mark:

poetry
:heavy_plus_sign:

ruamel.yaml
:heavy_plus_sign:

Poetry is optional but I believe we should ship with it for pip support. If we import pkg_resources we do need to add setuptools explicitly. Not sure about ruamel.yaml though.

it seems ruamel was added recently I think, poetry is listed as required dependencies
https://github.com/conda-incubator/conda-lock/blob/71ff1a9ac1228efbc79c02f8205995babc72a190/setup.cfg#L44


Knowledge: IBM Granite Knowledge

Provides knowledge about about the IBM Granite Model

@jjasghar This PR was likely opened from them completing this InstructLab UI tutorial:
https://developer.ibm.com/tutorials/awb-contributing-llm-granite-instructlab-ui/

Thank you for this submission. It's great to see you learning from @ahmed-azraq's blog post! Unfortunately, we can't accept it because it seems we have had multiple submissions on the exact same topic of IBM Granite.
Now that you know how to submit new knowledge,if you find some time to make another submission, we'd love to see if it improves the model and, ideally, merge it into our public taxonomy!
Again, thank you for this, and looking forward to you helping out the InstructLab community.


Vacuum type

Can i use a vacuum type and traits for it?

No, not a the moment.
I have looked at it in the past, but too many of the traits require a lot of per user customisation (e.g. naming rooms/zones, defining runcycle types) and there isn't an easy way to present this to the user in the current device management scheme


feature extraction

I want to use your method as extracted feature too！  could you help me?  Modify the model to look like swin transformer or like MMAction2 backbone and cls head？

Either is OK! It just depends on you. You may need to change the keys of state_dict if you modify the model.
You can follow https://github.com/OpenGVLab/UniFormerV2/issues/7. Just do it. Don't hesitate to ask me if you meet any problem.

As there is no more activity, I am closing the issue, don't hesitate to reopen it if necessary.


Relative $refs aren't relative to the file in which they are declared.

Description
Relative $ref declarations don't resolve relative to their containing file.
For example
main.yaml
  - models
    - model1.yaml
  - common
    - shared.yaml

Assume a reference in model1.yaml like $ref: '../common/shared.yaml#/definitions/MyObj'
This will fail via an Unable to load RELATIVE ref: ... error (via the codegen).
The ResolverCache resolves these references relative to a parentDirectory file that is final:
https://github.com/swagger-api/swagger-parser/blob/64a5ea7402183fc4cd8a1b58602045952311e0da/modules/swagger-parser/src/main/java/io/swagger/parser/ResolverCache.java#L113
Wouldn't the parentDirectory need to be variable - i.e., be set to the directory containing the file where the $ref is declared?

Hi @kevinpeterson @sotty   please let us know if this is still an issue. Thanks!

I ran into the same problem and the 3.0.0-rc0 version works.

I used 1.0.35-SNAPSHOT and that seemed to take care of the problem. Thanks!

I could use 1.0.34 to parse a graph of mutually referencing models
successfully
Kevin took it one step further with the code generation, but had to use
1.0.35-SNAPSHOT
We did not have the time to isolate which commit(s) did fix the problem
Thanks for your assistance!
On Mon, Apr 16, 2018 at 2:43 PM, Kevin Peterson<EMAIL_ADDRESS>wrote:

I used 1.0.35-SNAPSHOT and that seemed to take care of the problem. Thanks!
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/swagger-api/swagger-parser/issues/671#issuecomment-381725153,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAf0OnIb-WPxegf3xoLcrrk7yp2VdgXBks5tpPRFgaJpZM4TFt5S
.

I'm experiencing this same issue with version 2.3.1, but neitherupgrading the swagger parser to 1.0.34 nor 1.0.35-SNAPSHOT fixes it for me


Export is unstable

Hi, this tool is great! But i got a bug report because its unstable and therefore not usable for production use case. Because if we have non-existing files, the whole export script stops:
requests.exceptions.HTTPError: 404 Client Error: Not Found for url:
i think we need some skip option + report generation about the export process

.org'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings
  warnings.warn(
2024-10-29 15:24:59 [ERROR] Bookstack request failed with status code: 404 on url: https://docs.redacted.org/uploads/images/gallery/2024-10/redacted-netcup1.png
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "/opt/bookstack-venv/lib/python3.12/site-packages/bookstack_file_exporter/__main__.py", line 16, in <module>
    main()
  File "/opt/bookstack-venv/lib/python3.12/site-packages/bookstack_file_exporter/__main__.py", line 12, in main
    run.exporter(args)
  File "/opt/bookstack-venv/lib/python3.12/site-packages/bookstack_file_exporter/run.py", line 45, in exporter
    archive.get_bookstack_exports(page_nodes)
  File "/opt/bookstack-venv/lib/python3.12/site-packages/bookstack_file_exporter/archiver/archiver.py", line 43, in get_bookstack_exports
    self._page_archiver.archive_pages(page_nodes)
  File "/opt/bookstack-venv/lib/python3.12/site-packages/bookstack_file_exporter/archiver/page_archiver.py", line 83, in archive_pages
    self.archive_page_assets("images", page.parent.file_path,
  File "/opt/bookstack-venv/lib/python3.12/site-packages/bookstack_file_exporter/archiver/page_archiver.py", line 132, in archive_page_assets
    asset_data = self.asset_archiver.get_asset_bytes(asset_type, asset_node.url)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/bookstack-venv/lib/python3.12/site-packages/bookstack_file_exporter/archiver/asset_archiver.py", line 152, in get_asset_bytes
    asset_response: Response = common_util.http_get_request(
                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/bookstack-venv/lib/python3.12/site-packages/bookstack_file_exporter/common/util.py", line 37, in http_get_request
    raise e
  File "/opt/bookstack-venv/lib/python3.12/site-packages/bookstack_file_exporter/common/util.py", line 31, in http_get_request
    response.raise_for_status()
  File "/opt/bookstack-venv/lib/python3.12/site-packages/requests/models.py", line 1024, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: https://docs.redacted.org/uploads/images/gallery/2024-10/redacted-netcup1.png

The script does not end with log.info("Completed run")

hey @vmario89 thanks for opening the issue!
From what limited insight I have of your set up, it appears that in one of your page's contents, there is a reference to an image that no longer exists. I assume if you viewed that page the image wouldn't appear and the link wouldn't work (404).
You could fix this by fixing or removing that stale/bad link in the page contents. But I believe you are asking for a feature to be able to skip an image/attachment that errors and log that information. That makes sense especially if the user doesn't have write access to fix/modify the page.
I'll take a look at implementing this in a few days when I get some free time off work. Thanks!

Hi, thanks for your response! yes that was my request. Its okay when an image is missing, but the export should not stop for that completely
i already checked it out, but i cannot find the issue btw. The user i used to export is the admin will all permissions and the file is existing also. I have no idea where the error comes from

That's interesting, so if you copy the link that has a 404 error, you see the image properly come up in your browser if you paste it there? That doesn't seem right but interested to see what happens when you do that.
I guess it could be possible that image link in the Image API is wrong but the page has the correct one? Although doesn't sound likely. Anyways I am working on this when I have some time and should be pushing a new version soon

For now, I pushed an image that contains the changes to skip an image or attachment if the API call fails. Could you give it a try using docker if possible? Try using the tag; main to test the latest changes, example:
# --user flag to override the uid/gid for created files.

Fow now, since this is a minor change at surface level, I went ahead and pushed this new change. It is available in new version: v1.3.0 and also latest tag (if using docker).
If the issue persists and you are still unable to skip images or attachments that have failed API calls, please feel free to re-open or open a new issue. Thank you again for taking the time to open this issue.
If you ever have time to answer the questions I asked earlier, feel free to drop them in here too. Thanks!

Hi @pchang388  many thanks for your investigations! i installd the recent version and now it works strongly like a horse :)


Is fly.io still free?

https://github.com/255kb/stack-on-a-budget/blob/master/pages/app-hosting.md#fly

I can't find the pricing for Fly Machines, https://fly.io/docs/machines/

Indeed, it seems the free hobby plan was discontinued. I think we could remove fly.io


Loadcell to be global, but assign Pins later on.

Is there a way to construct the HX711_ADC object without assingning pins right away? For my program it is needed to ask for the pins of the HX711 in a dialog and then construct the HX711. All while Loadcell beeing a global object. Like this:

`HX711_ADC Loadcell();
void setup(){
dialog();    //user sets pin1 and pin2 through serial dialog
HX711_ADC Loadcell(pin1, pin2);
}`

Thanks for anyone who can help!

you could create a pointer and asign int later on.
HX711_ADC *loadCell = nullptr; ... loadCell = new HX711_ADC(pin1, pin2)

I tried it but it throws an error:

request for member 'begin' in 'LoadCell', which is of pointer type 'HX711_ADC*' (maybe you meant to use '->' ?)

Code to recreate:

byte pin1 = 0;
byte pin2 = 0;

HX711_ADC *loadCell = nullptr;

void setup() {
  Serial.begin(57600);
  setPins();
  loadCell = new HX711_ADC(pin1, pin2);
  loadCell.begin();
}

void loop() {
  // other stuff for loop
}
void setPins(){
  /*
   *  Here would be a function that let the user input what is pin1 and pin2.
   */
  pin1 = 4;     //just for Example
  pin2 = 5;     //just for Example
}```

This is not urgent at all I'm just curious how I can do it .

The error mesage even show the solution :) If you use a pointer, you have to use -> instedt of . to access the object, therefore you need to change loadCell.begin(); to loadCell->begin();. you have to do this everyehwere you use the object.

Thank you so much. I never worked with pointers before, but will sure do now.


Adding clarity on potential  impact for restricting "Read other users" to $false

[Enter feedback here]
this doc mention possibility to prevents all non admin from reading user information , in the "Restrict member users' default permissions" section.  it especially mention "This flag does not prevent reading user information in other Microsoft services like Exchange Online" but as far as I know setting "allowedToReadOtherUsers" to false will prevent user lookup in Teams and SPO. We should add a warning for customer using Office 365.
this article probably require same warning as well https://docs.microsoft.com/en-us/graph/api/resources/defaultuserrolepermissions?view=graph-rest-1.0

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

ID: 510faed7-b79d-b8ec-f32f-e64d8773a30c
Version Independent ID: 522e7e2e-ea93-5249-5e6f-5c984f1b6277
Content: Default user permissions - Azure Active Directory - Microsoft Entra
Content Source: articles/active-directory/fundamentals/users-default-permissions.md
Service: active-directory
Sub-service: fundamentals
GitHub Login: @barclayn
Microsoft Alias: barclayn

@FranckhDev
Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

@FranckhDev thank you for your feedback. #please-close


Modification to touch and wheel events and loop

Changed numbering so that z-index always declines from center.
Modified touch events to improve responsiveness on mobile platforms.

Excellent, works well for me on iOS and Android–thank you so much for taking care of this, I've been meaning to get to it for ages. Really big improvement in swipe behavior. 🎉
Fixes #113


Cannot get initial image from IP camera device

I am trying out your api to create a sample app(WebcamPanel in JFrame) which connects to IP camera when clicked on start button and captures the screen shot and saves locally when clicked on capture button.
Using xml file for ip camera setup [dlink - dcs 5220]
I get following exception when i click start button in WebcamPanel.
Exception in thread "Thread-3" com.github.sarxos.webcam.WebcamException: Cannot get initial image from IP camera device DlinkIP Camera
	at com.github.sarxos.webcam.ds.ipcam.IpCamDevice.getResolutions(IpCamDevice.java:282)
	at com.github.sarxos.webcam.ds.ipcam.IpCamDevice.getResolution(IpCamDevice.java:295)
	at com.github.sarxos.webcam.ds.cgt.WebcamOpenTask.handle(WebcamOpenTask.java:32)
	at com.github.sarxos.webcam.WebcamTask.process(WebcamTask.java:40)
	at com.github.sarxos.webcam.ds.cgt.WebcamOpenTask.open(WebcamOpenTask.java:20)
	at com.github.sarxos.webcam.Webcam.open(Webcam.java:272)
	at com.github.sarxos.webcam.Webcam.open(Webcam.java:231)
	at com.github.sarxos.webcam.WebcamPanel.start(WebcamPanel.java:798)
	at CapCam2$3.run(CapCam2.java:116)

Am I missing something? Kindly help.
import com.github.sarxos.webcam.Webcam;
import com.github.sarxos.webcam.WebcamPanel;
import com.github.sarxos.webcam.WebcamResolution;
import com.github.sarxos.webcam.ds.ipcam.IpCamDriver;
import com.github.sarxos.webcam.ds.ipcam.IpCamStorage;
import java.awt.Dimension;
import java.awt.FlowLayout;
import java.io.File;
import javax.imageio.ImageIO;
import javax.swing.JOptionPane;
/**
 *
 * @author T08
 */
public class CapCam2 extends javax.swing.JFrame {

    static {
		Webcam.setDriver(new IpCamDriver(new IpCamStorage("src/movable.xml")));
	}

    private Dimension ds    = new Dimension(320,240);
//    private Dimension cs    = WebcamResolution.VGA.getSize();
    private Webcam webcam   = null;

    private WebcamPanel wpanel = null;
    /**
     * Creates new form CamCap
     */
    public CapCam2() {
        initComponents();

        for (Webcam cam : Webcam.getWebcams()) {
            webcam = cam;
            webcam.setCustomViewSizes(new Dimension[]{ds});
            wpanel= new WebcamPanel(webcam,ds,false);
        }
        wpanel.setFillArea(true);
        panelCam.setLayout(new FlowLayout());
        panelCam.add(wpanel);

    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        btStart = new javax.swing.JButton();
        btCapture = new javax.swing.JButton();
        panelCam = new javax.swing.JPanel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        btStart.setText("Start");
        btStart.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btStartActionPerformed(evt);
            }
        });

        btCapture.setText("Capture");
        btCapture.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                btCaptureActionPerformed(evt);
            }
        });

        panelCam.setBackground(new java.awt.Color(0, 0, 0));

        javax.swing.GroupLayout panelCamLayout = new javax.swing.GroupLayout(panelCam);
        panelCam.setLayout(panelCamLayout);
        panelCamLayout.setHorizontalGroup(
            panelCamLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 450, Short.MAX_VALUE)
        );
        panelCamLayout.setVerticalGroup(
            panelCamLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 360, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(btStart, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(btCapture, javax.swing.GroupLayout.DEFAULT_SIZE, 87, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(panelCam, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(0, 0, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(btStart)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(btCapture))
                    .addComponent(panelCam, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(0, 167, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>

    private void btStartActionPerformed(java.awt.event.ActionEvent evt) {
        Thread t = new Thread(){
            public void run(){
              wpanel.start();
            }
        };
        t.setDaemon(true);
        t.start();
    }

    private void btCaptureActionPerformed(java.awt.event.ActionEvent evt) {
        try{

            File file;
            file = new File(String.format("capture-%d.jpg",System.currentTimeMillis()));
            ImageIO.write(webcam.getImage(), "JPG", file);
            JOptionPane.showMessageDialog(this, "Msg :\n"+file.getAbsolutePath(), "CamCap", 1);

        }catch(Exception e){
            JOptionPane.showMessageDialog(this, "Image loading failed\n"+e.getMessage(),"CamCap",0);
        }
    }

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(CapCam2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(CapCam2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(CapCam2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(CapCam2.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new CapCam2().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify
    private javax.swing.JButton btCapture;
    private javax.swing.JButton btStart;
    private javax.swing.JPanel panelCam;
    // End of variables declaration
}

<?xml version="1.0" encoding="UTF-8" ?>
<storage>
	<ipcam name="Dlink IP Camera" url="http://<IP_ADDRESS>" mode="pull">
		<auth user="admin" password="ns1788" />
	</ipcam>
</storage>

<ipcam name="Dlink IP Camera" url="http://<IP_ADDRESS>" mode="pull">
	<auth user="admin" password="ns1788" />
</ipcam>

@viv816, the URL is incorrect - it should point the image URL and not the camera panel. For example, in case of DCS-2121 this would be:
http://[server.ip]/cgi-bin/viewer/video.jpg?streamid=0:

You have to find out correct image URL in your camera model (DSC-5220).
Just FYI, I see you are using JPEG and PULL, but MJPEG and PUSH mode gives faster FPS (please note that image URLs for MJPEG and JPEG are different).

Hello,
Thank you very much for the quick response. I was able to make it work after following your feedback.
However, I would like to know if there is any way the API can be integrated in a web application (not using java swing approach)   ?
 On Saturday, February 14, 2015 9:09 PM, Bartosz Firyn<EMAIL_ADDRESS>wrote:

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

You can use native HTML5 to access webcam (you do not need Webcam Capture API for that). For more details on how to access webcam from JavaScript please see https://github.com/jhuckaby/webcamjs. I found it working well on both my Windows and Linux computer.
You could also use applet, but I strongly suggest to avoid this approach because applets are dying technology and Oracle do nothing to change it. Moreover, dealing with permissions in applets is a pain in the butt. You can read issues other people had with applets when they tried to access webcam and you understand. Moreover, with applet approach you will have to pay for the code signing certificate from some certificate authority (like Verisign etc). This is circa $150-200.

@viv816, in regards to IP camera, you could setup everything on server (wire cameras with XML) and expose them as MJPEG with WebcamStreamer, or even better, send new images via WebSocket to your web page (someone from Webcam Capture API community reported such usage in his project). I think WebSocket communication is better than exposing everything via WebcamStreamer.

@viv816, here you can find very basic example demonstrating of how to transport images feed from server to fronted via WebSockets.
https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-websockets

Thanks a lot.
I tried the websockets example along with front end.
I will have to modify it to suit my objective.
Thanks again.

 On Monday, February 16, 2015 2:17 AM, Bartosz Firyn<EMAIL_ADDRESS>wrote:

@viv816, here you can find very basic example demonstrating of how to transport images feed from server to fronted via WebSockets. https://github.com/sarxos/webcam-capture/tree/master/webcam-capture-examples/webcam-capture-websockets—
Reply to this email directly or view it on GitHub.

Hi. The websockets example works fine with dlink-5220 model and also the Dasding cameras you mentioned. However, when I test it for fos cam IP cameras (e.g. model F19821W v2) with the xml configuration given below, it gives the same error "Cannot get initial image from IP camera device"
I tried the jpeg and mjpeg configurations separately. I followed the image url for fos cam ip camera from this link http://www.ispyconnect.com/man.aspx?n=Foscam. Am I missing something?

Hi @viv816,
My first guess is an incorrect XML. The ampersand sign & in XML is reserved for entities markup, so when you want to have it in the XML attribute, you should write it as entity, that is & instead of just a normal &. Therefore, due to above, your XML should look like this one:
<?xml version="1.0" encoding="UTF-8" ?>
<storage>
    <ipcam name="fos cam jpeg" url="http://x.y.com:82/cgi-bin/CGIProxy.fcgi?cmd=snapPicture2&usr=[USERNAME]&pwd=[PASSWORD]" mode="pull"/>
    <ipcam name="fos cam mjpeg" url="http://x.y.com:82/videostream.cgi?usr=[USERNAME]&pwd=[PASSWORD]" mode="push"/>
</storage>

Just a note. I verified the above, and changing & to & is fixing PULL mode, however I'm getting 404 on videostream.cgi in PUSH. Is it really available on FI9821W, or maybe I'm testing wrong device (I used live demo from Foscam)?
This is for PULL:

And I'm getting this 404 for MJPEG URL for PUSH mode, in both:

http://<IP_ADDRESS>:9822/videostream.cgi?usr=user&pwd=foscam and
http://<IP_ADDRESS>:9822/cgi-bin/videostream.cgi?usr=user&pwd=foscam

Please verify if the above URL is correct.


Add CMO extension intrinsics

Add CMO extension intrinsics description.

I follow the documentation to set the __riscv_cbo_prefetchi parameter type, but I get such an error that is invalid argument to built-in function. So, I think the authour need to redefine the parameter type.

I follow the documentation to set the __riscv_cbo_prefetchi parameter type, but I get such an error that is invalid argument to built-in function. So, I think the authour need to redefine the parameter type.

The rw and locality argument to __builtin_prefetch must be compile time constants. You'll need to use a macro instead of a function.

So, we have the situation that the intrinsics landed in GCC about two months ago (d2c8548e0ce51dac6bc51d37236c50f98fca82f0). But we still have valid comments here, which we should take care of.
The good thing is that the recent PR update brought this PR almost into sync with the GCC implementation.
Before going deeper into the details, I'd like to mention that GCC has a generic builtin for prefetching, which also supports locality information in the form of a compile-time constant in the range of zero to three (see https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html). A mapping from these arch-independent locality levels to NTL instructions was done in summer 2024 (bf26413fc4081dfd18b915580b35bdb71481327e): 0 -> ntl.all, 1 -> ntl.pall, 2 -> ntl.p1.
The current GCC implementation of __riscv_cmo_prefetch() just invokes the arch-independet __builtin_prefetch() with the same arguments. This means that GCC does currently not support ntl.s1. Further, GCC does not support emitting a prefetch instruction without a preceding NTL instruction if Zihintntl is enabled. In case Zihintntl is not enabled, the locality information is ignored.
I don't think a 1:1 mapping from GCC arch-independent locality encodings to __riscv_cmo_prefetch() is necessary. Instead, I propose the following encoding:
#define __riscv_ntl_undefined 0
#define __riscv_ntl_p1 1
#define __riscv_ntl_pall 2
#define __riscv_ntl_s1 3
#define __riscv_ntl_all 4

Other compile-time constants for the locality parameter of __riscv_cmo_prefetch() should trigger a compile-time error. The behavior of __riscv_cmo_prefetch() could be the same regardless of whether Zihintntl is enabled or not. I.e., if the locality parameter is not zero, we can always emit the hint instruction.
Let me know what you think.

I wrote this proposal with the intention of addressing: https://github.com/riscv-non-isa/riscv-c-api-doc/issues/88，

see https://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html)

I noticed that GCC has __builtin_prefetch, so __riscv_cmo_prefetch may not be necessary.

#define __riscv_ntl_undefined 0
#define __riscv_ntl_p1 1
#define __riscv_ntl_pall 2
#define __riscv_ntl_s1 3
#define __riscv_ntl_all 4

The following are included in https://github.com/riscv-non-isa/riscv-c-api-doc/blob/fbf5f4ef57c0a239af30f457683830e56cd23b33/src/c-api.adoc?plain=1#L488
So, I would remove prefetch in this PR and only include __riscv_cmo_prefetchi, __riscv_cmo_clean, __riscv_cmo_inval, __riscv_cmo_flush, and __riscv_cmo_zero in riscv_cmo.h


sidebar: added support for html content

Hi, I've added the possibility to enter html content in the custom sidebar.

Not sure if this is needed. You can already add HTML using text. It accepts Markdown which also should accept HTML since Kramdown processes both.
Does this not work?
sidebar:
  - title: "Title"
    image: http://placehold.it/350x250
    image_alt: "image"
    text: "Here's some HTM."

I see. I had problems adding a form (paypal button) using sidebar.text, that's why I made this change.
Probably it was just a multiline formatting issue. I just tried again with sidebar.text putting everything in a single line and it worked fine.
So, it looks like there's no need for sidebar.html.

If you use literal line scalar in YAML (e.g. |)  multiline HTML should work just fine. I tested this with no issues.
sidebar:
  - title: "Another Title"
    text: |

          Sample cell 1
          Sample cell 2

Is there a way to include an HTML piece from the _includes folder using the sidebar?

@RichStone If you need that sort of flexibility you'll need to hack the theme. I'm pretty sure there is no way to pull in a Jekyll include via YAML Front Matter... at least not without some added logic to the theme.


Need to add link(s) to the github dispatchframework org

This repo and the docs should have a link to https://github.com/dispatchframework where the base images and other repos are located.

Fixed in #505


image-sets: run delete images in one transaction with image-set.

Description
FIXES: THEEDGE-3414
The unit tests are already included for deleting image set
Type of change
What is it?

[X] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Documentation update
[ ] Tests update
[ ] Refactor

Codecov Report
Patch coverage: 27.27% and project coverage change: +0.01 :tada:

Comparison is base (703567d) 60.38% compared to head (663e989) 60.39%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2077      +/-   ##
==========================================
+ Coverage   60.38%   60.39%   +0.01%
==========================================
  Files          74       74
  Lines       11005    11005
==========================================
+ Hits         6645     6647       +2
+ Misses       3805     3803       -2
  Partials      555      555

Impacted Files
Coverage Δ

pkg/services/imagesets.go
53.75% <27.27%> (+0.60%)
:arrow_up:

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

/retest


[Bug]: Input widget evaluation error on using totalRecordCount from Table

Is there an existing issue for this?

[X] I have searched the existing issues

Current Behavior
When accessing table count using totalRecordCount on an input widget, there's an evaluation error even when input type is set to "Text" or "Number" until the JS is edited (as seen in the video)

Steps To Reproduce

Drag and drop input widget on the canvas along with a table widget bound to data
use tableName.totalRecordCount and observe the error displayed
Change input type to Number and observe the error persist.
Edit the JS code as seen in the video, like removing and reentering mustache braces and the error clears

Environment
Release
Version
Cloud

Not reproducible in the updated input widget launched recently. Closing this.


Allow iframe url override

Adds the iframeUrlOverride to the React component so users can specify their own chat window iframe url if they choose to.

cc @fabiosantoscode
if you wanna try testing this out, install this version of the component:
"@papercups-io/chat-widget": "^1.0.25-beta.1"

and try passing in a custom iframeUrlOverride :)

I can't try that out atm but on Monday I should have the time.

(merging for now, but keeping version in beta until further testing)


KICS CircleCI Orb missing "scan" command

Expected Behavior
KICS CircleCI orb should be working
Actual Behavior
KICS CircleCI orb is not ready for KICS > 1.3.0
Steps to Reproduce the Problem

Use KICS circleCI orb in a pipeline
Check for missing "scan" command error

This is the problematic line https://github.com/Checkmarx/kics-orb/blob/master/src/commands/scan.yml#L93

This is done!


Is the intended?

I am on Fabric 1.19

Thats a warning item if a loop is detected, you can't take these items out, it's visual only.

Ok, but wheres the loop? if there is only 2 connectors and 2 proxys, thats what i ment, sorry for not saying it at first.


Are forks in package.json still needed?

Hi there, I am trying to package Zulip server in NixOS.
I see there are two forks in package.json for source-maps and postcss-media-minimax.
Are those still needed because upstream do not have the changes? Is there anything tracking merging the required changes in upstream?
I ask because it makes it quite hard to package, plus, it is complicated to reason on supply chain security with this kind of things.
Thank you a lot!

Yes, we are tracking these.

https://github.com/mozilla/source-map/issues/370
https://github.com/postcss/postcss-media-minmax/pull/28

We are interested in adopting Nix, so we’re willing to consider changes that make it easier—but we do make use of the ability to occasionally fork dependencies from Git and need to preserve it.


Updated CLI & added a executeCommand Method

Updated Triumph-CLI to work with Snapshot 2.0.0
also added the possiblity to use Triumph-cmds-cli with external libs like JLine

Like I mentioned CLI will be removed


Check for lines of text before getting first line in check_spellwarn_comment

First off, let me just say this is a great plugin. Exactly what I needed.
The reson for this pull request is to fix an error I was having when loading certain buffers, where it would call the check_spellwarn_comment function (in spelling.lua file), passing a buffer without any text.
This caused vim.api.nvim_buf_get_lines to return an empty array, but since the code assumes it will have something, and thus tries to get the first element, the variable "cur"  ends up as "nil"
When the "string.find" function gets called, it throws an error stating that the first argument cannot be nil.
This pull request just checks for a value in the first element, and if it is "nil", it places an empty string instead.

LGTM, thanks for the catch!


Filter path by empty label field (FilterContext)

Example program:
package main

import (
	"fmt"

	"github.com/cayleygraph/cayley"
	"github.com/cayleygraph/quad"
)

func main() {
	store, err := cayley.NewMemoryGraph()
	if err != nil {
		panic(err)
	}

	store.AddQuad(quad.MakeIRI("node1", "predicate", "node2", ""))
	store.AddQuad(quad.MakeIRI("node1", "predicate", "node3", "myvalue"))
	store.AddQuad(quad.MakeIRI("node1", "predicate", "node4", "othervalue"))

	// Expected output, <node2>
	p := cayley.
		StartPath(store, quad.IRI("node1")).
		// TODO: limit to just node2 (empty label field)
		// LabelContext(""). - doesn't work, lists none
		// LabelContext(quad.IRI("")). - doesn't work, lists none
		// LabelContext(quad.Raw("")). - doesn't work, lists node3 and node4 (???)
		// LabelContext(nil). - doesn't work, lists node3 and node4 (??)
		Out(quad.IRI("predicate"))
	it := p.Iterate(nil)
	err = it.EachValue(nil, func(value quad.Value) error {
		nativeValue := quad.NativeOf(value) // this converts RDF values to normal Go types
		fmt.Println(nativeValue)
		return nil
	})
	if err != nil {
		fmt.Println(err.Error())
	}
}

None of these successfully limit to just the quad with the empty Label:
		// LabelContext(""). - doesn't work, lists none
		// LabelContext(quad.IRI("")). - doesn't work, lists none
		// LabelContext(quad.Raw("")). - doesn't work, lists node3 and node4 (???)
		// LabelContext(nil). - doesn't work, lists node3 and node4 (??)

How can I do that?
Additionally, I don't understand why empty string "" and nil both return the values that have populated Label fields but not the one that has an empty Label field. Shouldn't it be the other way around?

Hmm, this one is tricky, since we never defined what will happen with empty values.
Definitely, the returns don't make any sense from user's point of view. I think LabelContext is trying to be nil-safe and ignores the empty argument in the last two cases.
I think we should enforce the following behavior:

LabelContext("") - list none (it searches for a typed empty string)
LabelContext(quad.IRI("")) - list none (it searches for an empty IRI)
LabelContext(quad.Raw("")) - list node2 (same as nil)
LabelContext(nil) - list node2 (what you would expect)

The problem is that we need to check the code to make sure it doesn't expect something like this to work:
var label quad.Value
if something {
   label = quad.IRI("x")
}
// expects that if label is nil, the filter will be skipped
p = p.LabelContext(label)


Update the Modify tab for Dark Theme

Currently the table that is used to understand more about a symbol that is selected does not support dark theme.

That table uses a 3rd controls (Exceed WPF Toolkit) that doesn't support themes in the free version so we would need to remove this/use something else.

Note: this is a repeat of #163

PR #207 has fixed this issue


Plan new features two sprints ahead (try out)

SDs would want to have a look on the new features in advance for a better planning and avoiding incompabilities

the majority of the items were created in the last sprint, there are currently 15 issues in the backlog. It was a practice in the last sprints before creating the ticket, therefore closing it


Allow costum value parsing

This PR is related to #58. we too need the input value for our datepicker to sometimes be something else then a date. But I understand that using the Date constructor internally is unreliable. With this PR I simply introduce an API for the user to plug in a custom parser for the date string. This way anyone can decide by him/herself how to process the dates for a particular picker.
to solve @maladon's issue, he now could do:
{{bootstrap-datepicker value=expiresAt customParser=(action myParser)}}

and inside his code:
actions: {
  myParser(value) {
    return new Date(value);
  }
}

The responsibility for how to parse is now in user land. If you want to, you could do fancy stuff with moment.js or other libraries not available from inside bootstrap-datepicker

This would we be sweet since I've been doing this with an observer
onDatePickerValueChanged: Ember.observer('datePickerValue', function() {
})

which isn't the cleanest.

@soulim any thoughts on this? should i rebase or you wanna discuss/close this PR?

I'm sorry for delay @lazybensch. Your idea and PR looks great! :+1: Could you please rebase the branch? I'll be happy to merge it as soon as you finish with rebase.
Thank you! :heart:

no worries @soulim. rebased the branch. CI is broken (on master though).
looks mergable to me.

Thank a lot! Don't worry about CI. It has nothing to your PR.

Wish you a wonderful day! :smile:

@lazybensch @soulim: The test ''resets date when input is cleared'' introduced by this PR hasn't ever passed. At least if I git checkout 1e5df180bb1323bd7bf73c7f440760921b3fe708, update ember to 1.13.13 and run tests against it fails.


Allow template-sets to be installed

As an architect, I want to define the set of template-sets to be initially installed on each developers machine so that my team can start working right ahead without needing to cope with cobigen initialization routines first manually.
Acceptance Criteria

[ ] I am able to configure in the cobigen configuration template-sets to be preinstalled by the configuration key template-sets.installed
[ ] I am able to specify comma separated maven coordinates (e.g. groupId:artifactId:version) of my template-sets to be installed
[ ] core should install configured template-sets on startup if not yet installed or adapted
[ ] All configuration is documented in the wiki and finally also occurs on the website

Hey team! Please add your planning poker estimate with ZenHub @GuentherJulian @LarsReinken @mdukhan


[WFLY-20008] Remove all non-breaking uses of ModuleIdentifier in Pojo Subsystem

Issue: https://issues.redhat.com/browse/WFLY-20008
[WFLY-20008] Remove all non-breaking uses of ModuleIdentifier in Pojo Subsystem

I put the hold label on this pending resolution of https://wildfly.zulipchat.com/#narrow/channel/174184-wildfly-developers/topic/ModuleIdentifier.20deprecation/near/484590414

I added the core-upgrade-needed label because this needs to use something like https://github.com/wildfly/wildfly-core/pull/6270 to handle module name strings passed in from outside.

@soul2zimate The https://github.com/wildfly/wildfly-core/pull/6270 API is now available.

/retest
Hi @bstansberry , The change here doesn't need the wildfly-core API.

@soul2zimate @ropalka
See KernelDeploymentXmlDescriptorParser L354
    private ModuleConfig parseModuleConfig(final XMLExtendedStreamReader reader) throws XMLStreamException {
        final ModuleConfig moduleConfig = new ModuleConfig();
        final int count = reader.getAttributeCount();
        final Set<Attribute> required = EnumSet.of(Attribute.NAME);
        for (int i = 0; i < count; i++) {
            final Attribute attribute = Attribute.of(reader.getAttributeLocalName(i));
            required.remove(attribute);
            final String attributeValue = reader.getAttributeValue(i);

            switch (attribute) {
                case NAME:
                    moduleConfig.setModuleName(attributeValue);

That 'attributeValue' is what gets passed through to ConfigVisitor.loadModule via ModuleConfig.visit.
I think canonicalizing it in the KernelDeploymentXmlDescriptorParser code is fine. I have a vague general preference for doing it as close to the user input as possible so it doesn't end up getting done repeatedly or for strings that come from our own presumably 'safe' static module names.


Documentation: sandbox buyer/seller account

http://django-oscar-paypal.readthedocs.org/en/latest/express.html#getting-started

You need to create a PayPal sandbox account which is different from your normal paypal account then use this account to create two ‘test’ users: a buyer and a seller. Once the seller is created, you will have access to a username, password and ‘signature’ which are used to authenticate API requests.
Add the following settings using the details from your sandbox buyer account:

...shouldn't that last line say "from your sandbox seller account" ?

Also, when I login to PayPal developer site to set up sandbox accounts I see this:

does this project use the REST API or the Classic API?  Docs should say
I'm assuming I have to create an app before I can see API credentials for my sandbox accounts

okay looking through the source it is Classic API

You're correct. And a PR to update the docs is much welcome :)

Fixed by #215, thanks for @daniel-butler .


Pending acquire queue has reached its maximum size of 1000

Hi,
with a high number of subsequent calls i get the following error:
springframework.web.reactive.function.client.WebClientRequestException: Pending acquire queue has reached its maximum size of 1000; nested exception is reactor.netty.internal.shaded.reactor.pool.PoolAcquirePendingLimitException: Pending acquire queue has reached its maximum size of 1000

How can I fix this?
There is a way to auto buffer a high number of calls to reduce backpressure?
Thanks

Are these issues related?
https://github.com/Playtika/feign-reactive/issues/457

fixed


Switching cubes does not show hierarchical view If the toolbar button to reveal hierarchies is toggled.

Fixed https://github.com/rpbouman/xavier/commit/3927f879d276f22e7f10a23dbe522533422110df


Ionic relaxation dataset

Hello, I wanted to ask if the ionic relaxation dataset is going to be made available for the community to test out anytime soon. If I understand the claims made in the publication correctly, the ionic relaxation data is sufficient to train a machine-learned potential that generalizes to all sorts of out-of-distribution configurations. The community currently spends a lot of effort (and queue time on clusters) running AIMD simulations to generate training data, so it would be extremely beneficial to have this dataset available in order to run larger/longer simulations for predictions of material properties.

bump to check whether this (and the other open issues) should expect to get a response anytime soon

Just wondering if the authors have responded to this issue. I'm also interested in the ionic relaxation dataset.


GSD Request

--- GSD JSON ---
{
  "vendor_name": "Linux",
  "product_name": "Kernel",
  "product_version": "versions from v5.15 to before v5.15.12",
  "vulnerability_type": "unspecified",
  "affected_component": "unspecified",
  "attack_vector": "unspecified",
  "impact": "unspecified",
  "credit": "",
  "references": [
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c8607e4a086fae05efe5bffb47c5199c65e7216e",
    "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=e4e4e7cb229821cd215031abc47efdab5486a67c"
  ],
  "extended_references": [
    {
      "type": "commit",
      "value": "c8607e4a086fae05efe5bffb47c5199c65e7216e",
      "note": "introduced"
    },
    {
      "type": "commit",
      "value": "e4e4e7cb229821cd215031abc47efdab5486a67c",
      "note": "fixed"
    }
  ],
  "reporter": "joshbressers",
  "reporter_id": 1692786,
  "notes": "",
  "description": "KVM: VMX: Always clear vmx->fail on emulation_required\n\nThis is an automated ID intended to aid in discovery of potential security vulnerabilities. The actual impact and attack plausibility have not yet been proven.\nThis ID is fixed in Linux Kernel version v5.15.12 by commit e4e4e7cb229821cd215031abc47efdab5486a67c, it was introduced in version v5.15 by commit c8607e4a086fae05efe5bffb47c5199c65e7216e. For more details please see the references link."
}
--- GSD JSON ---

This issue has been assigned GSD-2021-1002835


Open Graph image doesn't work

Describe the bug
While sharing the link there is no meta image
To Reproduce
Steps to reproduce the behavior:
1.Paste site link on social media like facebook
2.Wait for site meta title and description to load
3. Meta image doesn't load
Expected behavior
There should be a meta image while sharing the link
Screenshots
Image is not loading, only the title and description

Than you so much. We'll fix it.


Upgrade Ruby

Upgrading to the latest Ruby with all those juicy, juicy security updates!!
Note: I expect this first build on Circle to fail because I'm asking for 2.5.1-node, which I don't believe exists, but I wanted to check. I'll fall back to 2.5-node and try that next.

With 56c658d I've switched to our own Artsy Ruby image. This will allow us to upgrade Ruby at our discretion instead of relying on Circle upgrading their Ruby images.


YARN-11747. Skip the empty requests with specified scheduling key in RegularContainerAllocator

Description of PR
For multl node placement, it's better to fast skip empty request with specified scheduling key to avoid entering the multi node candidates loop to improve performance
How was this patch tested?
For code changes:

[ ] Does the title or this PR starts with the corresponding JIRA issue id (e.g. 'HADOOP-17799. Your PR title ...')?
[ ] Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

Could you help review this? @TaoYang526 @slfan1989

:broken_heart: -1 overall

Vote
Subsystem
Runtime
Logfile
Comment

+0 :ok:
reexec
11m 55s

Docker mode activated.

_ Prechecks _

+1 :green_heart:
dupname
0m  0s

No case conflicting files found.

+0 :ok:
codespell
0m  0s

codespell was not available.

+0 :ok:
detsecrets
0m  0s

detect-secrets was not available.

+1 :green_heart:
@author
0m  0s

The patch does not contain any @author tags.

-1 :x:
test4tests
0m  0s

The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ trunk Compile Tests _

+1 :green_heart:
mvninstall
34m 18s

trunk passed

+1 :green_heart:
compile
0m 59s

trunk passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
compile
0m 52s

trunk passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
checkstyle
0m 52s

trunk passed

+1 :green_heart:
mvnsite
0m 56s

trunk passed

+1 :green_heart:
javadoc
0m 56s

trunk passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 47s

trunk passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
spotbugs
1m 54s

trunk passed

+1 :green_heart:
shadedclient
33m 21s

branch has no errors when building and testing our client artifacts.

_ Patch Compile Tests _

+1 :green_heart:
mvninstall
0m 45s

the patch passed

+1 :green_heart:
compile
0m 51s

the patch passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javac
0m 51s

the patch passed

+1 :green_heart:
compile
0m 43s

the patch passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
javac
0m 43s

the patch passed

+1 :green_heart:
blanks
0m  1s

The patch has no blanks issues.

+1 :green_heart:
checkstyle
0m 42s

the patch passed

+1 :green_heart:
mvnsite
0m 47s

the patch passed

+1 :green_heart:
javadoc
0m 42s

the patch passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04

+1 :green_heart:
javadoc
0m 42s

the patch passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

+1 :green_heart:
spotbugs
1m 50s

the patch passed

+1 :green_heart:
shadedclient
33m 25s

patch has no errors when building and testing our client artifacts.

_ Other Tests _

+1 :green_heart:
unit
104m 18s

hadoop-yarn-server-resourcemanager in the patch passed.

+1 :green_heart:
asflicense
0m 47s

The patch does not generate ASF License warnings.

232m 12s

Subsystem
Report/Notes

Docker
ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7246/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hadoop/pull/7246

Optional Tests
dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets

uname
Linux 350a024e96a4 5.15.0-126-generic #136-Ubuntu SMP Wed Nov 6 10:38:22 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

Build tool
maven

Personality
dev-support/bin/hadoop.sh

git revision
trunk / 991100b9af69adef6520085df398245b7480ab9e

Default Java
Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

Multi-JDK versions
/usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga

Test Results
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7246/1/testReport/

Max. process+thread count
993 (vs. ulimit of 5500)

modules
C: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager U: hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager

Console output
https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7246/1/console

versions
git=2.25.1 maven=3.6.3 spotbugs=4.2.2

Powered by
Apache Yetus 0.14.0 https://yetus.apache.org

This message was automatically generated.

@zuston Thanks for the contribution!


fix: handle floating point in hrtime

Purpose (TL;DR) - mandatory
Fixes #207
/cc @novemberborn

:+1: I think this is fine. If someone ever gets a problem with round-off errors ... we'll tackle it then.

Out as 2.7.5

Thanks for all those changes @SimenB  :)


Why not add localization resources into podspec?

This is a good library, but why not add localization resources into podspec?

@pgbo It has been discussed in #64 and this feature will be included in the coming release. Stay tuned.


fix(ct): Resolve block.number bug on Arbitrum

Purpose
Fixes CHU-558

I'll approve this in the interest of time, but IMO it's unnecessary to pass the block number into Solidity just to pass it back into TypeScript. I think it'd be cleaner to just pass it as an input parameter to decodeDeploymentInfo

If it matters, the Foundry DeploymentInfo and the TypeScript DeploymentInfo types will diverge when we implement linked libraries, so it's not necessary to maintain parity between these types

I'll approve this in the interest of time, but IMO it's unnecessary to pass the block number into Solidity just to pass it back into TypeScript. I think it'd be cleaner to just pass it as an input parameter to decodeDeploymentInfo

addressed


chore(git): ignore yarn using whitelist

Use content as given by https://www.gitignore.io/api/yarn.
Just an idea, you could use https://www.gitignore.io/ to generate the full file as well. I use the following query for example: https://www.toptal.com/developers/gitignore/api/node,linux,macos,nuxtjs,windows
Feel free to close this PR if you'd like to keep everything as is or change the whole file. Whatever fits :wink:

I see. It seems that the github/gitignore template does not support Nuxt 3 yet while gitignore.io does (I'm looking for .output for example).


chore(master): release 1.14.0

:robot: I have created a release beep boop
1.14.0 (2023-05-17)
Features

use reusable workflows (e8b155a)

Bug Fixes

add path (cd827ec)
missing 20 version of node (dac34d8)
missing 20 version of node (2663637)
set curl to version 8.x (5d5ea99)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/wayofdev/docker-node/releases/tag/v1.14.0 :sunflower:


fix: try stabilizing test

Codecov Report

:exclamation: No coverage uploaded for pull request base (lit-migration@f6885e6). Click here to learn what that means.
The diff coverage is n/a.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
@@               Coverage Diff                @@
##             lit-migration    #2134   +/-   ##
================================================
  Coverage                 ?   95.62%
================================================
  Files                    ?      228
  Lines                    ?    36371
  Branches                 ?     2091
================================================
  Hits                     ?    34781
  Misses                   ?     1551
  Partials                 ?       39

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Can't restore the file backup by orientdb

OrientDB Version: Enterprise-2.2.26
Java Version: 1.8
OS: CentOS
Expected behavior
Can restore the backup file by orientdb mannually.
Actual behavior
[jizhang.dai@iZbp11qmscpoodmtbwzbgsZ bin]$ sh console.sh
OrientDB console v.2.2.26 (build ae9fcb9c075e1d74560a336a96b57d3661234c7b) https://www.orientdb.com
Type 'help' to display all the supported commands.
Installing extensions for GREMLIN language v.2.6.0
orientdb> create database plocal:/home/jizhang.dai/orientdb/orientdb-enterprise-2.2.26/databases/sns
Creating database [plocal:/home/jizhang.dai/orientdb/orientdb-enterprise-2.2.26/databases/sns] using the storage type [plocal]...
Database created successfully.
Current database is: plocal:/home/jizhang.dai/orientdb/orientdb-enterprise-2.2.26/databases/sns
orientdb {db=sns}> connect plocal:/home/jizhang.dai/orientdb/orientdb-enterprise-2.2.26/databases/sns admin admin
Disconnecting from the database [sns]...OK
Connecting to database [plocal:/home/jizhang.dai/orientdb/orientdb-enterprise-2.2.26/databases/sns] with user 'admin'...OK
orientdb {db=sns}>  restore database /home/jizhang.dai/orientdb/backup/sns-1505697105369/sns_2017-09-18-10-00-00_0_full.ibu
Restoring database 'database /home/jizhang.dai/orientdb/backup/sns-1505697105369/sns_2017-09-18-10-00-00_0_full.ibu' from full backup...
Database restored in 0.14 seconds
Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/home/jizhang.dai/orientdb/orientdb-enterprise-2.2.26/databases/sns' with mode=rw
DB name="sns"
Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage 'sns' because it does not exist in path: /home/jizhang.dai/orientdb/orientdb-enterprise-2.2.26/databases/sns
DB name="sns"
orientdb {db=sns}>
Steps to reproduce

@KishoDai could you send me sns_2017-09-18-10-00-00_0_full.ibu file so I will repeat your steps?

Hi @laa
The file is very large about 10GB. How to send you?

Hi @laa
I tried it in my Local and encounted the same error. So you can test it in your local.

@KishoDai what do you mean when writing that I can try on my Local?

@laa
You just backup up your database from your local by orientdb backup management and generated *.ibu file. Then restore the file in console

@KishoDai sorry but I can not reproduce this exception, could you send me full stack trace exception from the console logs, so I will see root cause?

@KishoDai how did you make a backup ?

Hi @laa
In orientdb studio-> backup management->

Hi @laa
The above is all the losgs.

@KishoDai ok I found reason anyway, for the backups created with the studio you should use the following command CREATE DATABASE ./sns  --restore=<path to backup file> . Backup which you generated is for enterprise database only and you should use a different command.

Hi @laa
Do it as what you said. But it just create database not restore it.
orientdb> CREATE DATABASE plocal:/home/kisho.dai/mnt/orientdb/orientdb-enterprise-2.2.26/databases/sns --restore=/home/kisho.dai/mnt/orientdb/orientdb-enterprise-2.2.26/backup/databases/sns/sns-1506348915203
Creating database [plocal:/home/kisho.dai/mnt/orientdb/orientdb-enterprise-2.2.26/databases/sns] using the storage type [plocal]...
Database created successfully.
Current database is: plocal:/home/kisho.dai/mnt/orientdb/orientdb-enterprise-2.2.26/databases/sns

@KishoDai I do not see any problems, do you have any additional observations?

Hi @laa
Thank you. Now it OK.
The commad is "create database remote:localhost/sns admin admin plocal graph -restore=/mnt/orientdb-enterprise-2.2.26/backup/databases/tmp"


fixed a typo and add an entry to .gitignore

There is a minor typo that I fixed. btw. I also added .idea/ folder (used for IDE) to the .gitignore.

Ups, phonetics gets me all the time. Thanks for contributing!
I am closing this PR due to style, which is totally my fault for not including a CONTRIBUTING file. Until now, the few contributors had been very diligent about style on a loose "when in Rome, do as the Romans do" basis. I am talking about semantic commit messages and the blank lines.
I will add a CONTRIBUTING.md and ping you in the coming days if you want to resubmit this PR.
Cheers and sorry for my pedantry!

Perfectly understood.  The diff repos are having different rules to follow.  I will follow the "semantic commit messages" link and remove extra lines before sending MR again. Thanks.


add Python format/lint rules, editor config

Change-Id: I55e149f3ae0c7f9d7b4247b32a3845e3fc31bb1a

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 67.72%. Comparing base (87091ac) to head (4742c96).

Additional details and impacted files
@@                            Coverage Diff                             @@
##           I7b3876ac796cef3d5e42af3053885645247aff9f      #54   +/-   ##
==========================================================================
  Coverage                                      67.72%   67.72%
==========================================================================
  Files                                             21       21
  Lines                                            251      251
  Branches                                           5        5
==========================================================================
  Hits                                             170      170
  Misses                                            81       81

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Fix Lint Usability Warnings

Fixes https://github.com/vultisig/vultisig-android/issues/813

Replaced all instances of three consecutive dots with the ellipsis character.
Replaced all instances of the straight apostrophe (') with the typographic apostrophe (’, ’).
Moved all WebP files to the no-dpi drawable directory.
Added the tools:ignore="MonochromeLauncherIcon" tag to our launcher icon's XML definition.
Updated the ic_launcher_round drawable.

do not use nodpi folder, it's not for that. use drawable/

Should I suppress theses warnings?

do not use nodpi folder, it's not for that. use drawable/

Should I suppress theses warnings?

To resolve the warning, I discovered that it is recommended to place webp files in the nodpi folder.
@yvebe


Turn N Degrees needs cleanup and checked

Needs used parameter passed in.  Methods need to go into drivetrain.  separate TurnSDBDegrees needs to be made.

needs someone to do this right away.


automatically periodically hook

currently i use https://ifttt.com/ to hook every hour. if backstroke could do it automatically it would be great

@dsslimshaddy I don't see this as something that I'd implement in the near term. If either you or anyone else wants to try this out, start with this branch and I'd be glad to look at pull requests.

Fixed by https://github.com/backstrokeapp/server/issues/66


Customisation Sync

Just upgraded to 0.23.0 - I have multiple devices all syncing through self-hosted CouchDB.
When A sync occurs initially, it says the values are different and we must make them the same. Er - how? That's a fascinating observation.
On the desktop client, this seems to appear sometimes with a table of which settings to use but on mobile (and sometimes on desktop) it says just that without any clue as to how to achieve this.
I am guessing it has to do with the Customisation sync which is incredibly unintuitive - it lisst a whole lood of settings with a choice of hyphen or another devices name against each (sometimes). And has buttons like "Select all Shiny" - what on earth does that mean? I am guessing that this is all about selecting a master device for each time of setting and other devices will be synced with that but, good grief, some explanation would be good!
You know what would be ideal (this is especially difficult when I have to get others, like my wife, to use this and it requires a lot of technical attention which I am barely able to understand):
When I set up a vault with shlc installed, I can simply say "every other copy of this remote is synced with everything in the following way in with these settings. Then, as long as shlc is installed on the other device and thE remote is connected to, everything works as it should without anyone having to think about it again.
In the meantime, some better use of terminology and explanation within the app would be good.
BTW - I love this plugin and it makes Obsidian usable - for me and my family but there is still a way to go to make it "just work"

The Customization Sync is unusable. Yes you are right, "Select all Shiny" sounds like it selects all the Shiny settings. But sometimes it doesn't so you cannot entirely trust it. You see I am just guessing it, because there are NO DOCUMENTATIONS. Dev has to come up with better terminologies and descriptions.
There are terminologies that will confuse you "Hidden File Sync", "Plugin Sync", "Custom Sync". "Merge", "Fetch", "Overwrite", "Replicate".
Do not make that mistake of allowing Customization sync to family members. Just don't. I tried it and its nightmare. I have wasted 100s of hours trying to make it work but failed. Customization sync is in its shitty stage as its in beta. Even if you succeed it to make it work. Then, one wrong update and will corrupt everything. Have seen this issue in many updates.
of what I understand, Customization Sync should automatically update devices, users shouldn't have to manually "Select all Shiny" whatever that does. 🤣
tbh, its a nightmare project to follow, avoid Customization Sync its a shitty feature

Well I currently have the message about things being to be aligned. This aren't watching between my wife's device and mine and that's the only clue.
I have said this before - features in some open source products seem to think that you are a developer in the software and understand all the nuances is the technology to give maximum control. That HAS to be accompanied by an ability to use the sideways on a guided and simple manner.
If I can have two clients that are not syncing through Couchdb,  it should be possible to have a permanent meeting saying "this client won't sync at the moment because of X - do you want to fix this?"

It helps to articulate things in a user scenario story-based manner. I'll start:
"I want to share and sync an obsidian vault with non-technical members of my family in semi-real time on multiple devices."
"I want the configuration of this to be done on one master device so that all other devices and users inherit that and it is, in principle, zero maintenance on the other devices"
"I want it to warn if there is a problem in a user-recognisable way, and provide directed and simple ways to fix the issue that a non-technical user can understand and action"


Using --network container:name with uidmap fails with OCI runtime error

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When using custom uidmap, it seems like a container cannot join another container's network namespace.
Steps to reproduce the issue:

Create a vpn container

$ podman run -it --rm  --uidmap 1000:0:1 --uidmap 0:1:999 --uidmap 1001:1001:64535 --name vpn  registry.fedoraproject.org/fedora:30
[root@c838c24509d7 /]#

In another terminal, join the container

$ podman --log-level debug run -it --rm  --uidmap 1000:0:1 --uidmap 0:1:999 --uidmap 1001:1001:64535 --network container:vpn --name client registry.fedoraproject.org/fedora:30
INFO[0000] running as rootless
DEBU[0000] Initializing boltdb state at /var/home/tristanc/.local/share/containers/storage/libpod/bolt_state.db
DEBU[0000] Using graph driver overlay
DEBU[0000] Using graph root /var/home/tristanc/.local/share/containers/storage
DEBU[0000] Using run root /tmp/1000
DEBU[0000] Using static dir /var/home/tristanc/.local/share/containers/storage/libpod
DEBU[0000] Using tmp dir /run/user/1000/libpod/tmp
DEBU[0000] Using volume path /var/home/tristanc/.local/share/containers/storage/volumes
DEBU[0000] Set libpod namespace to ""
DEBU[0000] [graphdriver] trying provided driver "overlay"
DEBU[0000] overlay: mount_program=/bin/fuse-overlayfs
DEBU[0000] backingFs=extfs, projectQuotaSupported=false, useNativeDiff=false, usingMetacopy=false
DEBU[0000] Initializing event backend journald
DEBU[0000] parsed reference into "[overlay@/var/home/tristanc/.local/share/containers/storage+/tmp/1000:overlay.mount_program=/bin/fuse-overlayfs]registry.fedoraproject.org/fedora:30"
DEBU[0000] parsed reference into "[overlay@/var/home/tristanc/.local/share/containers/storage+/tmp/1000:overlay.mount_program=/bin/fuse-overlayfs]@6a76f80daa46e8dd7d45b2a6f76d652aa886538af06c1baf492f85a930fff72a"
DEBU[0000] exporting opaque data as blob "sha256:6a76f80daa46e8dd7d45b2a6f76d652aa886538af06c1baf492f85a930fff72a"
DEBU[0000] parsed reference into "[overlay@/var/home/tristanc/.local/share/containers/storage+/tmp/1000:overlay.mount_program=/bin/fuse-overlayfs]@6a76f80daa46e8dd7d45b2a6f76d652aa886538af06c1baf492f85a930fff72a"
DEBU[0000] exporting opaque data as blob "sha256:6a76f80daa46e8dd7d45b2a6f76d652aa886538af06c1baf492f85a930fff72a"
DEBU[0000] parsed reference into "[overlay@/var/home/tristanc/.local/share/containers/storage+/tmp/1000:overlay.mount_program=/bin/fuse-overlayfs]@6a76f80daa46e8dd7d45b2a6f76d652aa886538af06c1baf492f85a930fff72a"
DEBU[0000] Got mounts: []
DEBU[0000] Got volumes: []
DEBU[0000] Using container netmode
DEBU[0000] setting container name client
DEBU[0000] created OCI spec and options for new container
DEBU[0000] Allocated lock 17 for container b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92
DEBU[0000] parsed reference into "[overlay@/var/home/tristanc/.local/share/containers/storage+/tmp/1000:overlay.mount_program=/bin/fuse-overlayfs]@6a76f80daa46e8dd7d45b2a6f76d652aa886538af06c1baf492f85a930fff72a"
DEBU[0000] exporting opaque data as blob "sha256:6a76f80daa46e8dd7d45b2a6f76d652aa886538af06c1baf492f85a930fff72a"
DEBU[0000] created container "b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92"
DEBU[0000] container "b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92" has work directory "/var/home/tristanc/.local/share/containers/storage/overlay-containers/b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92/userdata"
DEBU[0000] container "b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92" has run directory "/tmp/1000/overlay-containers/b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92/userdata"
DEBU[0000] New container created "b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92"
DEBU[0000] container "b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92" has CgroupParent "/libpod_parent/libpod-b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92"
DEBU[0000] Handling terminal attach
DEBU[0000] overlay: mount_data=lowerdir=/var/home/tristanc/.local/share/containers/storage/overlay/l/RGDWGGWY5TFNBWAFABQJNIAVAR,upperdir=/var/home/tristanc/.local/share/containers/storage/overlay/537f29569aa1d4e21838c2bc30da0945dfa5f35680af705a5afa85171a137664/diff,workdir=/var/home/tristanc/.local/share/containers/storage/overlay/537f29569aa1d4e21838c2bc30da0945dfa5f35680af705a5afa85171a137664/work,context="system_u:object_r:container_file_t:s0:c0,c897"
DEBU[0000] mounted container "b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92" at "/var/home/tristanc/.local/share/containers/storage/overlay/537f29569aa1d4e21838c2bc30da0945dfa5f35680af705a5afa85171a137664/merged"
DEBU[0000] Created root filesystem for container b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92 at /var/home/tristanc/.local/share/containers/storage/overlay/537f29569aa1d4e21838c2bc30da0945dfa5f35680af705a5afa85171a137664/merged
DEBU[0000] /etc/system-fips does not exist on host, not mounting FIPS mode secret
DEBU[0000] Created OCI spec for container b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92 at /var/home/tristanc/.local/share/containers/storage/overlay-containers/b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92/userdata/config.json
DEBU[0000] /usr/libexec/podman/conmon messages will be logged to syslog
DEBU[0000] running conmon: /usr/libexec/podman/conmon    args="[-c b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92 -u b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92 -n client -r /usr/bin/runc -b /var/home/tristanc/.local/share/containers/storage/overlay-containers/b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92/userdata -p /tmp/1000/overlay-containers/b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92/userdata/pidfile --exit-dir /run/user/1000/libpod/tmp/exits --conmon-pidfile /tmp/1000/overlay-containers/b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92/userdata/conmon.pid --exit-command /usr/bin/podman --exit-command-arg --root --exit-command-arg /var/home/tristanc/.local/share/containers/storage --exit-command-arg --runroot --exit-command-arg /tmp/1000 --exit-command-arg --log-level --exit-command-arg debug --exit-command-arg --cgroup-manager --exit-command-arg cgroupfs --exit-command-arg --tmpdir --exit-command-arg /run/user/1000/libpod/tmp --exit-command-arg --runtime --exit-command-arg runc --exit-command-arg --storage-driver --exit-command-arg overlay --exit-command-arg --storage-opt --exit-command-arg overlay.mount_program=/bin/fuse-overlayfs --exit-command-arg container --exit-command-arg cleanup --exit-command-arg --rm --exit-command-arg b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92 --socket-dir-path /run/user/1000/libpod/tmp/socket -t -l k8s-file:/var/home/tristanc/.local/share/containers/storage/overlay-containers/b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92/userdata/ctr.log --log-level debug --syslog]"
WARN[0000] Failed to add conmon to cgroupfs sandbox cgroup: error creating cgroup for cpu: mkdir /sys/fs/cgroup/cpu/libpod_parent: permission denied
DEBU[0000] Received container pid: -1
DEBU[0000] Cleaning up container b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92
DEBU[0000] unmounted container "b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92"
DEBU[0000] Cleaning up container b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92
DEBU[0000] Container b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92 storage is already unmounted, skipping...
DEBU[0000] Container b1ec52c8841078aa9c1fce78f1b200a2da195ce587467ef1ca0ad6cccbbd2e92 storage is already unmounted, skipping...
ERRO[0000] time="2019-07-23T10:59:00-04:00" level=warning msg="exit status 1"
time="2019-07-23T10:59:00-04:00" level=error msg="container_linux.go:346: starting container process caused \"process_linux.go:446: container init caused \\\"rootfs_linux.go:58: mounting \\\\\\\"sysfs\\\\\\\" to rootfs \\\\\\\"/var/home/tristanc/.local/share/containers/storage/overlay/537f29569aa1d4e21838c2bc30da0945dfa5f35680af705a5afa85171a137664/merged\\\\\\\" at \\\\\\\"/sys\\\\\\\" caused \\\\\\\"operation not permitted\\\\\\\"\\\"\"\n"
container_linux.go:346: starting container process caused "process_linux.go:446: container init caused \"rootfs_linux.go:58: mounting \\\"sysfs\\\" to rootfs \\\"/var/home/tristanc/.local/share/containers/storage/overlay/537f29569aa1d4e21838c2bc30da0945dfa5f35680af705a5afa85171a137664/merged\\\" at \\\"/sys\\\" caused \\\"operation not permitted\\\"\""
: OCI runtime error

Describe the results you received:
When using uidmap, the second container fails to start.
Describe the results you expected:
The second container should start with the first container network namespace.
Additional information you deem important (e.g. issue happens only occasionally):
Output of podman version:
Version:            1.4.5-dev
RemoteAPI Version:  1
Go Version:         go1.12.7
OS/Arch:            linux/amd64

Output of podman info --debug:
debug:
  compiler: gc
  git commit: ""
  go version: go1.12.7
  podman version: 1.4.5-dev
host:
  BuildahVersion: 1.9.0
  Conmon:
    package: podman-1.4.4-4.fc30.x86_64
    path: /usr/libexec/podman/conmon
    version: 'conmon version 1.0.0-dev, commit: 164df8af4e62dc759c312eab4b97ea9fb6b5f1fc'
  Distribution:
    distribution: fedora
    version: "30"
  MemFree: 543649792
  MemTotal:<PHONE_NUMBER>
  OCIRuntime:
    package: runc-1.0.0-93.dev.gitb9b6cc6.fc30.x86_64
    path: /usr/bin/runc
    version: |-
      runc version 1.0.0-rc8+dev
      commit: e3b4c1108f7d1bf0d09ab612ea09927d9b59b4e3
      spec: 1.0.1-dev
  SwapFree: 0
  SwapTotal: 0
  arch: amd64
  cpus: 4
  hostname: localhost.localdomain
  kernel: 5.2.1
  os: linux
  rootless: true
  uptime: 50h 45m 26.84s (Approximately 2.08 days)
registries:
  blocked: null
  insecure: null
  search:
  - docker.io
  - registry.fedoraproject.org
  - quay.io
  - registry.access.redhat.com
  - registry.centos.org
store:
  ConfigFile: /home/tristanc/.config/containers/storage.conf
  ContainerStore:
    number: 16
  GraphDriverName: overlay
  GraphOptions:
  - overlay.mount_program=/bin/fuse-overlayfs
  GraphRoot: /var/home/tristanc/.local/share/containers/storage
  GraphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "false"
    Supports d_type: "true"
    Using metacopy: "false"
  ImageStore:
    number: 89
  RunRoot: /tmp/1000
  VolumePath: /var/home/tristanc/.local/share/containers/storage/volumes

Additional environment details (AWS, VirtualBox, physical, etc.):
The host system is based on silverblue and the podman version from f30 also has the same issue.

@giuseppe PTAL

so the issue is that there are two user namespaces, one for each container.  The first container also creates a network namespace that is owned by its user namespace.  The second container creates a new user namespace and then tries to join the existing network namespace, but now the kernel won't allow it as the owner userns is different.  The OCI runtime could probably try to handle this case by joining the network namespace before creating a user namespace.
You'll need to ensure the two containers run in the same user namespace.  I thought we already had --userns=container:CONTAINER to address this use case.  I've opened a PR to add it: https://github.com/containers/libpod/pull/3639
With the new option, you can do something like:
podman run -it --rm  --userns=container:vpn --network container:vpn --name client registry.fedoraproject.org/fedora:30

And that should work fine.
It seems there is an issue in runc when joining an existing user namespace, you also need to join the IPC namespace --ipc=container:vpn.

That would works for me, thanks for the prompt feedback.


MPI deadlocking in the moment app (wave_prop)

(Apparently @JunoRavin discovered this problem last summer, but it appears to be much more prevalent than previously believed.)
Running the CUDA build of the moment app with MPI enabled can easily lead to deadlock scenarios. Here is a very minimal example in which a deadlock occurs: a 1D Sod shock tube problem with monotonicity-preserving reconstruction. If run with 2 cuts of the domain, split across 2 MPI ranks, it deadlocks after 10 time-steps:
make cuda-build/regression/rt_euler_sodshock_mp
mpirun -np 2 ./cuda-build/regression/rt_euler_sodshock_mp -M -c 2

Alternatively, it deadlocks after 1 time-step with 4 cuts of the domain, when split across 4 MPI ranks.
Indeed, many of the regression tests involving monotonicity-preserving reconstruction deadlock in precisely this way: the Burgers shock tube (with MP reconstruction) locks with 4 cuts after 100 time-steps; and the 2D Euler Riemann problem (with MP reconstruction) locks after 99 time-steps, irrespective of whether one chooses 2x2 cuts split across 4 MPI ranks, or 4x4 cuts split across 16 MPI ranks.
However, it is not only monotonicity-preserving reconstruction that causes this problem. The 10-moment LHDI test with ordinary Roe fluxes also deadlocks, if run with a 4x4 cut of the domain split across 16 MPI ranks:

These deadlocks appear to be related to time-steps on which there exists a fallback from Roe to Lax fluxes, and are suggestive of something quite fundamental being wrong with the internal logic in wave_prop.c.

More info: the parallel sims fail when decomp is not evenly divisible. This seems to fail in MPI_Allreduce.

Some notes on this: I believe I know why this is happening. Basically, say you have an uneven decomp. Wave_prop works by looping over each cell. Then the problem with wave_prop is that it is doing an all-reduce per loop. So if you have say 2, 2, 3 cells on rank 0, 1 and 2 respectively, the final all-reduce will wait for something from the other two and hence crash.
The solution is to move the all-reduce out of the loop. Not sure why it was in loop in the first place, but it is likely because of the complicated logic for positivity fixes. Will need to investigate further.


cant connect using asus router

i just buy new asus router with openvpn capable but vpn file from pivpn not coonecting. same file work with iphone and mac and GL.INET routers.
any one was able to using in asus router?

@toshibochan I do not know much about configuring those routers as clients ... but from what I know you need to create 3 different certificate and key files from the generated .ovpn and apply the configs manually on the router.
Can you please be more detailed? provide more logging and all needed info?

As of https://github.com/Angristan/OpenVPN-install/issues/162, currently there are issues with most openvpn installer scripts and asus routers. The only one working is the Nyr's one, but personally I wouldn't use it.
We still need to investigate what is causing this.


⚠ Bofrost.at has degraded performance

In a84db73, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 2312 ms

Resolved: Bofrost.at performance has improved in 0e29062 after 23 minutes.


Fix/circleci

This PR introduces Windows and MacOS tests, includes conda and refactored some of the linux test steps.

Fixed issues with Mac, all the tests pass. As for Windows, I think the tests have encountered a bug with dataset copying that is exclusive to windows. I'll investigate and I'll write more about it.

It seems like there is an issue with dataset copying on Windows. This inline python code would print [0 1 2 3 4] on Linux/Mac and [0 0 0 0 0] on Windows:
python -c "import hub; from hub.cli.auth import login_fn; import numpy as np; login_fn('testingacc', os.getenv('ACTIVELOOP_HUB_PASSWORD')); ds = hub.Dataset('./dataset_copying', shape=(5,), schema={'num': 'uint8'}); ds['num'] = np.arange(5); ds2 = ds.copy('testingacc/dataset_copying'); print(ds2['num'].compute())"

windows complex test fails?

@McCrearyD this PR introduces Windows Complex Test :) as explained above, it fails due to the same reason as #702

ok


Clean install not working

What did you expect to happen?
Trying to do a fresh install on a new machine. I have all the prerequisites met. I cloned the repo as mentioned in the README. Tried to run ~/.emacs.d/bin/doom install
What actually happened?
Running ~/.emacs.d/bin/doom install prints the following and then nothing happens afterwards
Recursive load: "/opt/emacs-27.1/share/emacs/27.1/lisp/jka-compr.el.gz", "/opt/emacs-27.1/share/emacs/27.1/lisp/jka-compr.el.gz", "/opt/emacs-27.1/share/emacs/27.1/lisp/jka-compr.el.gz", "/opt/emacs-27.1/share/emacs/27.1/lisp/jka-compr.el.gz", "/opt/emacs-27.1/share/emacs/27.1/lisp/jka-compr.el.gz", "/opt/emacs-27.1/share/emacs/27.1/lisp/obsolete/cl.el.gz", "~/.emacs.d/bin/doom"

I don't remember this being the behavior when I installed it previously. When I open emacs, I'm greeted by the standard emacs, not doom-emacs.
System information:

Trying to run `~/.emacs.d/bin/doom info` yields the same results as above. System info using `lsb_release -l` is
```
LSB Version:    :core-4.1-amd64:core-4.1-noarch
Distributor ID: CentOS
Description:    CentOS Linux release 7.8.2003 (Core)
Release:        7.8.2003
Codename:       Core
```

Have you tried purging and re-installing Emacs?


Client's request embedding for transaction request consumption

Issue/Task Number: T71
Overview
This PR allows client to specify which extra association data to embed with the response.
Changes

Update all serializers to serialize %Ecto.Association.NotLoaded{} to nil
Add @embeddable and @always_embed to TransactionRequestConsumptionController
Embed the specified associations before sending the response
To keep things modular and avoid unintended higher-privilege embeds, I'll use embed for client's request to embed data, and preload for internal use inside the project's code.

Implementation Details
There were 3 options explored to handle when an association is not embedded:
# 1: Send nil
%{
  "success" => true,
  "version" => "1",
  "data" => %{
    "parent"  => "data"
    "user_id" => "a43c801f-cc67-4047-bfb3-5cee967551de",
    "user"    => nil
  }
}

# 2: Send "not_loaded"
%{
  "success" => true,
  "version" => "1",
  "data" => %{
    "parent"  => "data"
    "user_id" => "a43c801f-cc67-4047-bfb3-5cee967551de",
    "user"    => "not_loaded"
  }
}

# 3: Remove key completely
%{
  "success" => true,
  "version" => "1",
  "data" => %{
    "parent"  => "data"
    "user_id" => "a43c801f-cc67-4047-bfb3-5cee967551de",
  }
}

We decided to go for 1 because:

nil is easy and performant for the client to handle, unlike option 2 that the client needs to check for a specific string.
The returned field keys are always consistent, unlike option 3.
The trade-off is that the client needs to distinguish between a nil that's caused by the association not embedded, or the object does not have an association, but this should be relatively straightforward since for all embeds, there will also be an embed_id in the response.

Usage
Make a valid call to /transaction_request.consume and/or /me.consume_transaction_request
Impact
Usual deployment. No extra steps required.

The implementation for response_preload/2 should be extracted into a reusable module, but I took too much time trying to do that (tried defmacro along with @embeddable and @always_embed, they weren't nice to me 😭).
So I'll do this as a separate task in the future.

If anyone is thinking I'm working late on a Friday night... nope. Went away for dinner and just came back to submit this.