Adding test to check config method for nested configurations

This PR solves #362 and increases the freestyle-config module coverage to 94.44% adding a test to check the config method for nested configurations.
@raulraja could you please review?
Thanks!

Codecov Report

Merging #387 into master will increase coverage by 0.44%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #387      +/-   ##
==========================================
+ Coverage   82.37%   82.81%   +0.44%
==========================================
  Files          27       27
  Lines         227      227
  Branches        4        4
==========================================
+ Hits          187      188       +1
+ Misses         40       39       -1


fix(toml): inline tables without extra spaces at the end

minimal example of the bug:
[dependencies]
serde = { version = "*", default-features = false}

without this, Invalid boolean value is shown

CI failure seems unrelated, I think github is just having a bad day

LGTM


Builder Option arguments

Why the builders have Option in some parameters? For example:
https://github.com/rust-embedded/svd/blob/6d61af9d5eee3cf4add32ebc3daccd5965efc770/src/svd/peripheral.rs#L100-L103
should be:
pub fn version(mut self, value: String) -> Self {
     self.version = Some(value);
     self
 }

I think that there is no point in calling this function with a None, since it is the default value.

I think that there is no point in calling this function with a None, since it is the default value.

That's not so!
If you discover code of parser, you'll see that parsing optional arguments return res: Result<Optional<T>>.
Now we only need do foo(res?) to pass it to builder.
With your suggestion we will need use
if let Some(r) = res? {
    foo(r)
}

for each optional argument.
And sometimes cleaning of field can be useful too.

Ok, but if you build it from scratch, it is a little bit ugly to do builder.version(Some(..))
Anyway I am closing this issue, thanks for the explanation :)


404 page doesn't direct me back to the homepage

Description
Qanet, 2.3.0-alpha12 and Devnet.
A clear description of the bug is:
The 404 page doesn't direct me back to the homepage.

Verified, Devnet 5e5313e.
The url is now directing to the home page.
screen-capture (11).webm
TC2633 - 404 page

Verified:

Devnet
0c7d01d


Editor - How do I use subObject in name

Hi,
I would like to create an input link to the model "profil.name" but in the editor it's not allowed to have a dot in field's name.
why it is so? and how can I  bypass this limitation
Thanks

Hi,
the markup of the rendered field has the attribute ng-model set to form.data[field.schema.name], so a dot in the field name will not generate (or point to) a nested object in the form data. Each field has this attribute set in its field template and thus doesn't allow anything like form.data + field.schema.name.
It's possible to assign the ng-model by the fg-field-input and have its value be generated, but I'm not quite sure at this moment if it has an impact on other areas. When I've some spare time I will dig into this.
In the meantime you can always have multiple form-gen forms in the same form. They live quite happily besides each other.


/providers read/write REST API is very asymmetric

Continuing from #9743 but I want to focus on REST API, then worry about internals.
http://manageiq.org/docs/reference/latest/api/reference/providers
The ways to write provider endpoint & auth info is very different from the ways to read them — there is almost no overlap.  Especially for multi-endpoint providers (this part BTW is not documented yet)
GET /api/providers/1?attributes=endpoints,authentications,credentials,hostname,port returns:
  ...
  "name": "63",
  "hostname": "vm-48-63.eng.lab.tlv.redhat.com",
  "port": 8443,
  "endpoints": [
    {
      "role": "default",
      "hostname": "vm-48-63.eng.lab.tlv.redhat.com",
      "port": 8443,
      ...
    },
    {
      "role": "hawkular",
      "hostname": "vm-48-63.eng.lab.tlv.redhat.com",
      "port": 443,
      ...
    }
  ],
  "authentications": [
    {
      "name": "ManageIQ::Providers::Openshift::ContainerManager 63",
      "authtype": "hawkular",
      "type": "AuthToken",
      "status": "Valid",
      ...   # excludes "auth_key", "password" for security
    },
    {
      "authtype": "bearer",
      "type": "AuthToken",
      ...
    }
  ...

POST allows several combos:

Single endpoint as top-level hostname, port, ipaddress, single credentials:

  "hostname" : "my_vcenter_50",
  "ipaddress" : "<IP_ADDRESS>",
  "credentials" :  {
    "userid" : "vcenter_admin",
    "password" : "vcenter_password"
  }
  ...

Single endpoint but compound credentials:

   ...
   "credentials" : [
     {
       "userid"    : "default_userid",
       "password"  : "default_password"
     },
     {
       "userid"    : "metrics_userid",
       "password"  : "metrics_password",
       "auth_type" : "metrics"
     }
  ]

Compound endpoints paired with auths in connection_configurations:

   ...
   connection_configurations: [
     {
       endpoint: {
         role: "default",
         hostname: "sample_containers_multi_end_point.provider.com",
         port: 18443
       },
       authentication: {
         role: "bearer",
         auth_key: "good token"
       }
     },
     {
       endpoint: {
         role: "hawkular",
         hostname: "sample_containers_multi_end_point.provider.com",
         port: 443
       },
       authentication: {
         role: "hawkular",
         auth_key: "good token"
       }
     }
   ]

Spot the Differences

You can write credentials but not read it.

If multiple, distinguished by auth_type.

You can read authentications but not write it.

Distinguished by authtype (no undescore!)

You can write {endpoint, authentication} pairs, but not read them.

You still have to supply role for each endpoint and role (not auth[_]type!) for each auth.

The default endpoint role sometimes expects different auth role eg. bearer above.
(According to default_authentication_type method.)

The pairs structure you supply is I think ignored, they'll actually be matched by role.

P.S. I think only a few of the Authentication columns can be written, many are silently ignored.  Most are not relevant to providers, but should either accept or give error.  Anyway that's easy.

Where should we go from here?
I'll add some proposals later, but would love to hear opinions.
A central question this might hinge on: Does 1:1 endpoint:auth pairing suit all providers?
cc @abellotti @durandom @yaacov @dkorn
@miq-bot add-label providers, api

cc @juliancheal
I think this is also due to how endpoints and authentications are modeled. I still dont get 100% how those interact, esp. with a default endpoint etc. I always have to dig into the code.
Maybe some refactoring at the model layer would make thing easier for the REST API
multi endpoints were introduced here https://github.com/ManageIQ/manageiq/pull/6167

@miq-bot move-issue manageiq-api


feat(node, cloudflare): fill in api surface for node:perf_hooks

added missing APIs
created a hybrid polyfill for cloudflare
updated injectable config for globalThis.performance

Reference: #

@pi0 I believe this PR is good to go. PTAL

@pi0 I'll get back to this one within a few days. I still care, just busy with other things.

No rush, thanks for the update @IgorMinar

Dear @IgorMinar i have rebased your work and moved the injections directly to cloudflare preset to move forward. please feel free to amend if any change needed.


Translate what's new for m59 into Simplified Chinese, resolve #4420

this PR also contains changes of pending PR #4331, #4384

@limhenry @kennith can either of you please help us review this?
@wayou Sorry for keeping you wait. We'll merge this as soon as you get LGTM.

@agektmr Looks good for me 😄

wait. this article is not synced with commit #4645


Tolerate execeptions for periodical scheduled tasks

:mag: Description
Issue References 🔗

As the PR https://github.com/apache/kyuubi/pull/5727 fixed a problem caused by leaking exception in a scheduled task, the exception thrown should be properly handled to prevent suspension in ScheduledExecutorService.scheduleWithFixedDelay.
Describe Your Solution 🔧
Introducing a util method scheduleTolerableRunnableWithFixedDelay for catching possible exceptions in scheduled tasks.
Types of changes :bookmark:

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

Test Plan 🧪
Behavior Without This Pull Request :coffin:
No behaviour change.
Behavior With This Pull Request :tada:
This is a fallback measure to ensure all the exceptions handled.
Currently all the occurrences are properly handled.
Related Unit Tests
Pass all the CI tests.

Checklists
📝 Author Self Checklist

[x] My code follows the style guidelines of this project
[x] I have performed a self-review
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[x] This patch was not authored or co-authored using Generative Tooling

📝 Committer Pre-Merge Checklist

[ ] Pull request title is okay.
[ ] No license issues.
[ ] Milestone correctly set?
[ ] Test coverage is ok
[ ] Assignees are selected.
[ ] Minimum number of approvals
[ ] No changes are requested

Be nice. Be informative.

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

Comparison is base (71b0376) 61.29% compared to head (87e2bf2) 61.36%.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #5730      +/-   ##
============================================
+ Coverage     61.29%   61.36%   +0.06%
  Complexity       23       23
============================================
  Files           607      607
  Lines         35836    35881      +45
  Branches       4917     4917
============================================
+ Hits          21966    22018      +52
+ Misses        11479    11470       -9
- Partials       2391     2393       +2

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

cc @turboFei @wForget

thanks, merged to master and branch-1.8


PUT /settings/update-my-portfolio

Hi,
I can update portfolio with Next.js. Can you explain me what to do here?


Spawning behavior

BetterShards should provide a config option with a list of "spawning worlds" when a player dies without a bed a spawning world will be selected at random from the list and a location within that world also selected at random the player will then be respawned at that location.
Optional features:
when configuring spawning worlds allow for bounding boxes for where people spawn inside those worlds
add a feature to weight the location selected to places nearby players.

Mostly done, replaced by https://github.com/Civcraft/BetterShards/issues/30


rootRouter.navigate() when navigating is true

currently results in noop, which means i need to set up a watch on the navigating property. perhaps consider using a promise for the navigation events that navigate would then use?

here is the solution i am using for now in case someone may be interested:
  function forceNavigate($router, $rootScope) {
    return function(route) {
      if (!$router.navigating) return $router.navigate(route);
      var stopWatching = $rootScope.$watch(
        function() { return $router.navigating; },
        function() {
          stopWatching();
          $router.navigate(route);
        });
    };
  }

  // app module .run
  function run($router, $rootScope) {
    $router.forceNavigate = forceNavigate($router, $rootScope);
  }

$router.forceNavigate(route);


HOTT-1567: Make use of redis_cache_store instead of outdated redis_st…

What?
Make use of redis_cache_store instead of outdated redis_store.
Jira link
https://transformuk.atlassian.net/browse/HOTT-1567

Can we add a why/explanation that doesn't require access to jira?


Error in docker image with the new GKE version: Kupernetes Plugin: error while loading shared libraries: libapparmor.so.1

Kupernetes Plugin: error while loading shared libraries: libapparmor.so.1
https://github.com/jenkinsci/docker-jnlp-slave/issues/40
Any suggestions on how to fix it?

@Mistobaan switch the image out for your jnlp-slave to this: https://hub.docker.com/r/dmarell/jenkins-k8s-slave/ it installs necessary libapparmour dependencies

@hugorut Thanks that helped.
one quirk step that I run into is that I did delete the previous kluster but I did not delete the VM disk image, so all the previous configuration was still there. I had to manually change the docker image to dmarell/jenkins-k8s-slave in the configuration page. Following this tutorial helped me fix the problem manually: https://cloud.google.com/solutions/configuring-jenkins-container-engine

Thanks @hugorut for providing the fix! I added it in 97d6a15f766abf3bcddb0ab08369916b0fc7dd58 and pushed a new image.

Awesome, good to hear


LogFileLocation in JSON output is invalid when job is resumed

Which version of the AzCopy was used?
10.21.2 (latest stable at the moment)
Which platform are you using? (ex: Windows, Mac, Linux)
Windows
What command did you run?
azcopy.exe jobs resume 9d77672c-a86a-9b45-7ec2-b9e4de31bbfb --output-type json --destination-sas "sv=2021-06-08&spr=https&st=2022-10-01T07%3A58%3A10Z&se=2023-12-31T16%3A58%3A10Z&si=testReadWritePolicy&sr=c&sig=REDACTED"

What problem was encountered?
I've ran an upload that failed and I wanted to resume it. It turns out that JSON message about where the logs are stored for the job communicated to me is incorrect:
{"TimeStamp":"2023-11-22T08:38:31.0451855+01:00","MessageType":"Init","MessageContent":"{\"LogFileLocation\":\"C:\\\\temp\\\\logs\\\\9d77672c-a86a-9b45-7ec2-b9e4de31bbfb.log\",\"JobID\":\"9d77672c-a86a-9b45-7ec2-b9e4de31bbfb\",\"IsCleanupJob\":false}","PromptDetails":{"PromptType":"","ResponseOptions":null,"PromptTarget":""}}

The initial message always say the location of the file is as follows: AZCOPY_LOG_LOCATION\JOB_ID.log
While in fact the logs file for the job has different guid per each run.
While it makes sense to have either approach, both of them requires some fixes:
a) if we intended to put logs for each start of the job in separate file - then the communicated LogFileLocation would have to be fixed,
b) if we intended to keep single file log for each start of the job - then we have to fix the part, that on every new resumption of the job the job_id for the logger is not passed from the original job, but new guid is generated instead.
How can we reproduce the problem in the simplest way?
Just resume any job - completed or failed.
Have you found a mitigation/solution?
Kinda of, I can run the tool specifying AZCOPY_LOG_LOCATION path per each job, so I will be sure that all files in specified location are regarding my job and then I can look at modification timestamp to see what is the latest log file - but that seems hacky and could be fixed.
I am fine with preparing the fix for both approaches - I would just need a clarity what was desired approach (a or b)

Below are sample logs that reproduce the issue:
9d77672c-a86a-9b45-7ec2-b9e4de31bbfb.log
9d77672c-a86a-9b45-7ec2-b9e4de31bbfb-scanning.log
2982caad-c2fc-f04c-512d-8a5ab5981498.log

This bug is fixed and would be release in the latest version


Windows - Failed to compile error on d3-zoom/zoom.js

I'm trying to get rawgraphs running on my local Windows machine but I'm getting an error on yarn start. I'm not a node developer so could be missing something simple in my environment.
Web browser and version
Chrome 92.0.4515.107 (Official Build) (64-bit)
Operating System
Windows 10
Steps to reproduce this
Followed install instructions at https://github.com/rawgraphs/rawgraphs-app

clone repository
yarn install
yarn start
error

Tried updating everything (nodejs, npm, yarn). No different.
Additional context
Browser gives me this:

In the console I get:
Failed to compile.

./node_modules/d3-zoom/src/zoom.js
Attempted import error: 'pointer' is not exported from 'd3-selection'.

yarn install gives me some warnings and info but doesn't say it failed:
yarn install v1.22.10
[1/4] Resolving packages...
success Already up-to-date.
Done in 0.84s.

redacted:\yarn install --force
yarn install v1.22.10
[1/4] Resolving packages...
[2/4] Fetching packages...
info<EMAIL_ADDRESS>The platform "win32" is incompatible with this module.
info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
info<EMAIL_ADDRESS>The platform "win32" is incompatible with this module.
info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
info<EMAIL_ADDRESS>The platform "win32" is incompatible with this module.
info<EMAIL_ADDRESS>is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@rdfjs-elements/sparql-editor > @rdfjs-elements/editor-base ><EMAIL_ADDRESS>has unmet peer dependency "<EMAIL_ADDRESS>|| 4.x".
warning " ><EMAIL_ADDRESS>has unmet peer dependency "@testing-library/dom@>=5".
warning " ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>- 3".
warning " ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>warning "react-scripts > @typescript-eslint/eslint-plugin ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>|| >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
warning " ><EMAIL_ADDRESS>has unmet peer dependency<EMAIL_ADDRESS>|| ^5.0.0".
[4/4] Rebuilding all packages...
success Saved lockfile.
Done in 18.27s.

I followed the install instructions at https://github.com/rawgraphs/rawgraphs-app but note that they are macOS specific.

I worked around this by doing a yarn add d3-selection then repeated for each subsequent Failed to compile module that came up after that. This leads me to believe it's more about my node environment than anything else. I'll leave this issue open incase there's something useful in it for anyone else.

Thanks @notrom . I have had to use a similar approach to add node-sass to allow deploying the code into a Docker container. I'm sure there is a neater way to do this but at least the app will run now.


Add additional sorting methods

Desired sorting methods:

[x] Name
[ ] Date

Possible additions:

[ ] File type

Could it be possible to have a 'default sorting' Asc/Desc (on Name) in the configuration of the plugin?

Hi @awrog, sorry it took me a while to get back to this. I've just added the option and pushed a new release.


Error:: Multiple directives [mwlCalendarDay, mwlCalendarDay]

pretty new to angular and front end development. I tried to decorate the day directive and I am getting this error. please help.
app.config(function($provide) {
  $provide.decorator('mwlCalendarDayDirective', function($delegate) {
    console.log($delegate);
    var directive = $delegate[0];
    directive.templateUrl = 'views/calendarDayView.html';
    return $delegate;
  });
});

here is the trace
Error:: Multiple directives [mwlCalendarDay, mwlCalendarDay] asking for template on: <mwl-calendar-day events="vm.events" current-day="vm.currentDay" on-event-click="vm.onEventClick" on-event-times-changed="vm.onEventTimesChanged" day-view-start="vm.dayViewStart" day-view-end="vm.dayViewEnd" day-view-split="vm.dayViewSplit" ng-switch-when="day">

The calendar uses the template property which takes precedence over templateUrl, so you need to delete the template property.
app.config(function($provide) {
  $provide.decorator('mwlCalendarDayDirective', function($delegate) {
    console.log($delegate);
    var directive = $delegate[0];
    delete directive.template;
    directive.templateUrl = 'views/calendarDayView.html';
    return $delegate;
  });
});

thanks @mattlewis92 , it works now.

@mattlewis92 another stupid question, how does compilation work in this project ? I copied all the templates to my views/ directory and I don't see the modifications I made in 'calendarMonthEventsList.html'. how does angular-bootstrap-calendar-tpls.min.js know to use the new templates ?

That template is a bit special, if you update to the latest version you just pass in the path as an attribute to the directive:
https://github.com/mattlewis92/angular-bootstrap-calendar#month-cell-template-url

thanks @mattlewis92  works now.


add Warema WMS Webcontrol Pro

RE-CHECK!

Automated adapter checker
ioBroker.wmswebcontrol

[ ] :heavy_exclamation_mark: [E201] Bluefox was not found in the collaborators on NPM!. Please execute in adapter directory: npm owner add bluefox iobroker.wmswebcontrol
[ ] :eyes: [W400] Cannot find "wmswebcontrol" in latest repository

Add comment "RE-CHECK!" to start check anew

RE-CHECK!

Automated adapter checker
ioBroker.wmswebcontrol

[ ] :heavy_exclamation_mark: [E201] Bluefox was not found in the collaborators on NPM!. Please execute in adapter directory: npm owner add bluefox iobroker.wmswebcontrol
[ ] :eyes: [W400] Cannot find "wmswebcontrol" in latest repository

Add comment "RE-CHECK!" to start check anew

Hi,
Review Feedback:

Please update testing lib, else all your tests will fail
Please set connecion state to false in unload :-)
Translations missing for admin in words.js? https://github.com/TA2k/ioBroker.wmswebcontrol/blob/master/admin/words.js (please also check that for ford/nissan!)

Only last needs to be checked and pot fixed, rest optional

Issues fixed

RE-CHECK!

Automated adapter checker
ioBroker.wmswebcontrol

:thumbsup: No errors found

[ ] :eyes: [W400] Cannot find "wmswebcontrol" in latest repository

Add comment "RE-CHECK!" to start check anew

Thank you, then please poke again after changes are oin npm :-)

done

@Apollon77 - here ist all done or is there another question? Should be changed to Adapter review needed...


Clarification about exactly what is backed up

Hi, just looking for a clarification about exactly what files are backed up? Working on adding this plugin right now, just waiting for a 4 hour print to finish. Additionally, what can you do with the backed up files?

This plugin literally just uploads backups from OctoPrint when they are created, so whatever options you pick during the backup process is what gets uploaded. It was made as a companion plugin to my BackupScheduler plugin, which allows for setting the backup options and having it run on a specific schedule.


 Use triton backend.
[2024-11-25 00:47:11 TP0] Init torch distributed begin.
[2024-11-25 00:47:11 TP1] MLA optimization is turned on. Use triton backend.
[2024-11-25 00:47:11 TP1] Init torch distributed begin.
[2024-11-25 00:47:16 TP0] Load weight begin. avail mem=77.17 GB
[2024-11-25 00:47:16 TP1] Load weight begin. avail mem=77.18 GB
INFO 11-25 00:47:16 config.py:107] Replacing legacy 'type' key with 'rope_type'
INFO 11-25 00:47:16 config.py:107] Replacing legacy 'type' key with 'rope_type'
[2024-11-25 00:47:16 TP0] lm_eval is not installed, GPTQ may not be usable
WARNING 11-25 00:47:16 fp8.py:47] Detected fp8 checkpoint. Please note that the format is experimental and subject to change.
[2024-11-25 00:47:16 TP1] lm_eval is not installed, GPTQ may not be usable
Cache shape torch.Size([163840, 64])
WARNING 11-25 00:47:16 fp8.py:47] Detected fp8 checkpoint. Please note that the format is experimental and subject to change.
Cache shape torch.Size([163840, 64])
INFO 11-25 00:47:17 weight_utils.py:243] Using model weights format ['*.safetensors']
Loading safetensors checkpoint shards:   0% Completed | 0/4 [00:00<?, ?it/s]
INFO 11-25 00:47:17 weight_utils.py:243] Using model weights format ['*.safetensors']
Loading safetensors checkpoint shards:  25% Completed | 1/4 [00:01<00:03,  1.19s/it]
Loading safetensors checkpoint shards:  50% Completed | 2/4 [00:02<00:02,  1.29s/it]
Loading safetensors checkpoint shards:  75% Completed | 3/4 [00:03<00:01,  1.30s/it]
Loading safetensors checkpoint shards: 100% Completed | 4/4 [00:04<00:00,  1.10it/s]
Loading safetensors checkpoint shards: 100% Completed | 4/4 [00:04<00:00,  1.04s/it]

[2024-11-25 00:47:21 TP0] Load weight end. type=DeepseekV2ForCausalLM, dtype=torch.bfloat16, avail mem=69.58 GB
[2024-11-25 00:47:21 TP1] Load weight end. type=DeepseekV2ForCausalLM, dtype=torch.bfloat16, avail mem=69.60 GB
[2024-11-25 00:47:22 TP0] Memory pool end. avail mem=7.60 GB
[2024-11-25 00:47:22 TP1] Memory pool end. avail mem=7.61 GB
[2024-11-25 00:47:22 TP0] Capture cuda graph begin. This can take up to several minutes.
[2024-11-25 00:47:22 TP1] Capture cuda graph begin. This can take up to several minutes.
[2024-11-25 00:47:27 TP1] Using default MoE config. Performance might be sub-optimal! Config file not found at /sgl-workspace/sglang/python/sglang/srt/layers/fused_moe_triton/configs/E=64,N=704,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json
[2024-11-25 00:47:27 TP0] Using default MoE config. Performance might be sub-optimal! Config file not found at /sgl-workspace/sglang/python/sglang/srt/layers/fused_moe_triton/configs/E=64,N=704,device_name=NVIDIA_H100_80GB_HBM3,dtype=fp8_w8a8.json
INFO 11-25 00:47:41 custom_all_reduce.py:233] Registering 1265 cuda graph addresses
INFO 11-25 00:47:41 custom_all_reduce.py:233] Registering 1265 cuda graph addresses
[2024-11-25 00:47:42 TP1] max_total_num_tokens=4106823, max_prefill_tokens=16384, max_running_requests=4097, context_len=163840
[2024-11-25 00:47:42 TP0] max_total_num_tokens=4106823, max_prefill_tokens=16384, max_running_requests=4097, context_len=163840
[2024-11-25 00:47:42] INFO:     Started server process [833555]
[2024-11-25 00:47:42] INFO:     Waiting for application startup.
[2024-11-25 00:47:42] INFO:     Application startup complete.
[2024-11-25 00:47:42] INFO:     Uvicorn running on http://<IP_ADDRESS>:2157 (Press CTRL+C to quit)
[2024-11-25 00:47:43] INFO:     <IP_ADDRESS>:55266 - "GET /get_model_info HTTP/1.1" 200 OK
[2024-11-25 00:47:43 TP0] Prefill batch. #new-seq: 1, #new-token: 7, #cached-token: 0, cache hit rate: 0.00%, token usage: 0.00, #running-req: 0, #queue-req: 0
[2024-11-25 00:47:50 TP0] Prefill batch. #new-seq: 1, #new-token: 1, #cached-token: 0, cache hit rate: 0.00%, token usage: 0.00, #running-req: 1, #queue-req: 0
[2024-11-25 00:47:50] INFO:     <IP_ADDRESS>:55288 - "GET /health_generate HTTP/1.1" 200 OK
[2024-11-25 00:47:50] INFO:     <IP_ADDRESS>:55278 - "POST /generate HTTP/1.1" 200 OK
[2024-11-25 00:47:50] The server is fired up and ready to roll!

Modifications

Checklist

[ ] Format your code according to the Contributor Guide.
[ ] Add unit tests as outlined in the Contributor Guide.
[ ] Update documentation as needed, including docstrings or example tutorials.

The non-streaming small batch size degradation is not caused by this PR


The test assertions depend on doc order which may be affected by merging. The fix is to trivially avoid merging for the very small index, with just two docs.

The test previously has been seen to fail with:
org.junit.ComparisonFailure: expected:<ba[z]> but was:<ba[r]>
  at __randomizedtesting.SeedInfo.seed([45D4C56DF2092811:7D67E193D5FAFCC0]:0)
  at junit@4.13.1/org.junit.Assert.assertEquals(Assert.java:117)
  at junit@4.13.1/org.junit.Assert.assertEquals(Assert.java:146)
  at org.apache.lucene.queries.function.TestSortedSetFieldSource.testSimple(TestSortedSetFieldSource.java:59)
  ...

After the change the test has not failed in several hundreds of thousands of runs.

The test assertions depend on doc order which may be affected by merging.

Hmm, I don't fully understand the test, but did the sort order truly rely on docid tie-breaking?  If so then this is the right fix.
I just want to make sure we are not hiding a bug that e.g. causes this sorter to incorrectly sort / compare documents across segments that were not in fact ties by the sort criteria.

My understanding of this part of the test is that it asserts the sort order of the multi-valued string values in the value field. The changes here do not affect this assertion, the sort order is still checked.
There are just two docs in the index. The first doc has a single value for the value field, baz. The second doc has two values for the value field, foo and bar.  The test expects to find baz and bar (since bar is less than foo), for the values field in doc1 and doc2 respectively.
The test assertions are based on doc order in the index.  Does this address your concern? Or have I missed the point?

This new failure looks like it's due to the fact that MockRandomMergePolicy now randomly reverses the doc ID order on merge?

That's it exactly. I confirmed this through local instrumentation of MockRandomMergePolicy.

Thanks for the detailed explanation @ChrisHegarty and @jpountz -- fix looks good!  Sneaky random merge policies...


Update to Swift 5

Please update the version for Swift 5.0

Any update for swift 5

You can use this fork, https://github.com/Sergozh/CRRefresh


[Docs] Update the docs of GPU EV and Feature Filter.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Avoid N+1 when calculating number of unread replies

I'm not confident in the logic here, is part of why I'm wondering about the test & the fallback.


python312Packages.types-html5lib: <IP_ADDRESS>40806 -> <IP_ADDRESS>41018

Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[ ] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

Result of nixpkgs-review pr 349845 run on x86_64-linux 1

12 packages built:

python311Packages.types-beautifulsoup4
python311Packages.types-beautifulsoup4.dist
python311Packages.types-html5lib
python311Packages.types-html5lib.dist
python311Packages.types-lxml
python311Packages.types-lxml.dist
python312Packages.types-beautifulsoup4
python312Packages.types-beautifulsoup4.dist
python312Packages.types-html5lib
python312Packages.types-html5lib.dist
python312Packages.types-lxml
python312Packages.types-lxml.dist


la: fix matrix multiplication

Fix #197
(I'm not sure that this PR is correct but it fixes the issue)

Summary by CodeRabbit

Refactor

Adjusted parameters for matrix and vector multiplication functions to enhance data processing efficiency.

@Eliyaan I think this PR is not correct. Are your matrices row major? will test it later

I just fixed it on master along some other fixes!


Remove the dependency on Symfony's ClassLoader

It solves the issue #994 and allows installing Behat inside a Symfony 4 project.

Note that I don't think SuiteWithContextsSetup works fine when using composer's autoload-dev instead of the Behat autoloading config

Hello, when will it be released? We're using dev-master in order to avoid this bug, but I would like to use a stable release of behat.
Thanks

Hi, is any chance to release in the nearest future? Some packages do not register Symfony services when Class Loader Component is present.


Bandit crashes when scanning Keystone /tests with scree formatter

The screen formatter apparently has a UnicodeDecode issue when running against the Keystone /tests directory.
To reproduce:

modify your bandit.yaml file to take out '/tests' as an excluded directory, 2) run Bandit against Keystone, 3) good times prevail

Bad import of bug from launchpad.  Closing..


EF.Functions.Like is no longer works when casted

Describe what is not working as expected.
EF.Functions.Like(*,*) is no longer working in version Version="3.0.0-preview8.19405.11" but only if the firstparameter is casted for example:
context.Set<MyEntity>().Where(e => EF.Functions.Like((string)(object)e.IntCol, "%1%"))

Further technical details
EF version:Version="3.0.0-preview8.19405.11
Database Provider: EntityFramework.SqlServer
Operating system: 10

Dammit, wrong repo.


Undocumented functions

Laravel Version: 5.8
PHP Version: 7.3
Database Driver & Version: MySQL 8.0

Hello.
In Laravel API documentation, I find this method isWritable:
https://laravel.com/api/5.8/Illuminate/Filesystem/Filesystem.html#method_isWritable
It just a wrapper over is_writable PHP function.
https://github.com/laravel/framework/blob/5.8/src/Illuminate/Filesystem/Filesystem.php#L376
My question is - this method is not documented, and cant be found in the official framework documentation on https://laravel.com/docs/5.8/, and the same situation is with other methods too.
What is the reason for this? Because the method is insignificant or just because nobody before contributes and adds it to the docs?
I ask because is a good practice to fallow and write everything with "Laravel Way", for example, Eloquent over raw queries or in Blade @for/@endfor instead of just PHP native code.
How many other things are not documented in the main Docs and people don't know and not use them, simply because almost nobody read the API docs?
I open this issue and ask because for me personally all these methods are a hidden treasure and I prefer to use them and write "Laravel Way" as much as possible.

You're always free to send in PRs to the docs for undocumented features. Thanks.

Thanks, Dries!


brfs transform in package.json causing browserify error

Caveat: I am in the process of learning and setting up my first app using npm, grunt, browserify so this could be a noob issue:
Upon installing the wellknown module from npm, and requiring into my browserify project, I get an error when running Grunt that grunt-browserify cannot find the brfs module. Since your package.json specifies the brfs transform in the browserify options, I beleive either brfs should be in dependencies (rather than devDependencies) section of your package.json, or the browserify settings/transform should be removed. As a workaround, I simply installed brfs to my project and I no longer get the error.

Fixed in cd08ac1e9e011f99d32a265f81dd9c5911e92595

:+1:


.octicon-font-legacy() {   font-family: 'Octicons Regular';   src: url("icons/octicons-2.1.2.woff") format("woff");   font-weight: normal;   font-style: normal; }   .octicon-font() {   font-family: 'Octicons Regular';   src: url("icons/octicons.woff") format("woff");   font-weight: normal;   font-style: normal; }

https://github.com/atom/atom/blob/0f2975930e506785c05068a1c57934160e094e10/static/variables/octicon-mixins.less#L36-L48

I don't know anything, because I'm a beginner, maybe I clicked wrong
Pada tanggal Rab, 1 Sep 2021 12.52 PM, Sadick @.***>
menulis:

Closed #22919 https://github.com/atom/atom/issues/22919.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/atom/atom/issues/22919#event-5236924736, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AVLXQCNFHCAZ4J7LVMMJXODT7W5QXANCNFSM5DFACD6A
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Adding Xmlns attribute in all svg Icons file and removing it when processed in Python issue #6107

Updates all svg icons with the xmlns attribute
Updates a code in wagtail/wagtail/admin/homes.py(L300) that removes the xmlns attribute when the files are processed in python.
This is a partial fix to issue Phase out icon font and use SVG everywhere #6107
The reason for applying this attribute is Phase out icon font and use SVG everywhere #6107 (comment)

Thank you @vicky1312 👍🏼
This looks like a replacement for (or a continuation of) #9374? if that is the case, can you please close that PR.
Ideally, you should make your changes on the same branch you have an open PR with as it reduces the noise and administrative burden. I do, however see that the old PR comes from your fork's main branch which means you can't keep up-to-date with the Wagtail core branch, so this is ok

Thank you @vicky1312 👍🏼 This looks like a replacement for (or a continuation of) #9374? if that is the case, can you please close that PR.
Ideally, you should make your changes on the same branch you have an open PR with as it reduces the noise and administrative burden. I do, however see that the old PR comes from your fork's main branch which means you can't keep up-to-date with the Wagtail core branch, so this is ok

Hello, this is a replacement for the previous PR. I has to create a new branch because I was having issues committing my code and there were lots of conflicts. I will have to close the previous PR

@vicky1312 congratulations on a first merged pull request! I have credited you as Abayomi Victory in our contributors’ list as per Slack, please let me know if you’d prefer something else.

I believe with this merged #7511 could be closed too (unless my tired brain is missing the obvious)

Good point @zerolab! I think there’s a tiny bit more to do, will update that issue.

@vicky1312 congratulations on a first merged pull request! I have credited you as Abayomi Victory in our contributors’ list as per Slack, please let me know if you’d prefer something else.

Abayomi Victory is fine thank you!


Storage Explorer window doesn't auto open after selecting 'Open Storage Account in Storage Explorer' on Mac

Repro Steps:

Make sure Storage Explorer has installed.
Right click one storage account and select 'Open Storage Account in Storage Explorer'.
Check whether the Storage Explorer window auto opens or not.

Expect:
Storage Explorer window auto opens.
Actual:
Storage Explorer window doesn't auto open.

Verified on the latest Azure Storage and the released Storage Explorer 1.0.0. Storage Explorer window doesn't open.

Sorry for delay.
Yes, this issue is consistent for all storage accounts. The opened Storage Explorer instance doesn't auto pop up after selecting open in Storage Explorer. And if we manually navigate to the opened Storage Explorer instance, the item is selected in Storage Explorer actually.

So Storage Explorer opens correctly, but it doesn't come up in front of vscode?


monosynaptic connections wrongly identified

Hi Peter,
For some reason the MonoSyn routine doesn't identify inhibitory cells, even in cases where the inhibition is very clear (see attached image)
On the other hand, the algorithm occasionally identifies cells that are classified as interneurons as 'excitatory', which could be due to some rebound effects (see second image).
Any idea how to fix these issues? should these CCGs be deselected?
Another issue is, when I try to save a classification as a new file I get the following error:
Reference to non-existent field 'spikeSortingID'.
Error in CellExplorer/saveDialog (line 6819)
if length(unique(cell_metrics.spikeSortingID)) > 1
Error using uiwait (line 81)
Error while evaluating Menu Callback.
at what point is this field  'spikeSortingID' generated? does it depend on what program I used for the sorting? (it happens both with sessions that were manually curated with phy and klusters)
thanks in advance,
Noam

Hi Noam. The inhibitory connections are not saved in the current state. I believe it was a decision by Sam to take that out. I will be happy to implement it back into the pipeline.
You have to manually deselect the false detected connections. A better solution is to increase the significance level, which I believe is set too low right now.
Regarding your saving error: replace the if line with below
REPLACE THE LINE:
if length(unique(cell_metrics.spikeSortingID)) > 1
WITH:
if UI.BatchMode
I will update the main branch later today with a fix, plus a bunch of new plotting options.
I will let you know once I have a solution for inhibitory connections.
Do the title and buttons always get misplaced for you in the MonoSyn interface as shown in your screenshot? I have not seen this happen in windows or mac OSX...

Hi Peter,
ok, thanks.
The graphics and buttons are indeed a little distorted, also in the CellExplorer GUI.
I'm using remote desktop (Xfce session) on a linux machine.
-Noam

Hi Noam. I updated the main branch.
I have not added inhibitory connections nor your UI displacements. Could you send me a screenshot of the Cell Explorer?

Hi Peter,
I realized that the distorted graphics were because of the remote desktop I was using which doesn't fully support OpenGL.
using a VNC client it looks normal (see attached images)
thanks,
Noam

OK. there is still some misplacement of some of the panels, but it looks much better now.

Hi Noam
I updated the Cell Explorer pipeline such that it will find inhibitory connections. The detection threshold is too low at this point and does require extensive manual curation (it is the same algorithm used for excitatory connections). I also updated and tuned gui_monosyn.m and the Cell Explorer to be able to handle inhibitory connections. If you experience issues, please let me know.
Inhibitory connections are not detected by default by the pipeline (because they are unreliable and rare in CA1), so to do so, change the calc_CellMetrics input parameter includeInhibitoryConnections to true.
If you run the pipeline on a session with an existing mono_res file that file will not be overwritten. So to test this on an existing session, rename the mono_res file and rerun the algorithm to have it detect the inhibitory connections.
E.g. from the basepath of a session type:
calc_CellMetrics('includeInhibitoryConnections',true)
Let me know how it goes.

Peter

Btw, the monosynaptic algorithm does falsely detects rebound inhibition as a direct inhibitory connection, I will see if I can find a solution for this.

Hi  Noam
I updated the repository with some minor improvements to the monoSyn interface. You can now distinguish direct inhibitory connections from rebound inhibition and more easily determine the direction of the connection.

Hi Peter,
thanks, I'll test it in the next few days and give you an update.
-Noam

From: Peter C. Petersen<EMAIL_ADDRESS>Sent: Tuesday, March 17, 2020 00:05
To: petersenpeter/Cell-Explorer
Cc: Nitzan, Noam; Author
Subject: [ext] Re: [petersenpeter/Cell-Explorer] monosynaptic connections wrongly identified (#3)
Hi Noam
I updated the repository with some minor improvements to the monoSyn interface. You can now distinguish direct inhibitory connections from rebound inhibition and more easily determine the direction of the connection.
[monosyn]https://user-images.githubusercontent.com/14089401/76806905-0c3a9d00-67b9-11ea-9d04-80f1d4604e82.png
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/petersenpeter/Cell-Explorer/issues/3#issuecomment-599797069, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGLVAMYVAXQTFXZEFBFD34DRH2WFPANCNFSM4LE56RGQ.

Hi Peter,
I tested the inhibitory connection detection and it's works pretty well. As you said, it requires a lot of manual curation, though.
One problem I noticed it that if you want to manually adjust an inhibitory connection via the CellExplorer GUI, once selecting 'inhibitory connections' in the top, it jumps to a different reference cell than the one selected.
btw - having the channel map next to the waveforms is super helpful!
Thanks,
Noam

Thanks Noam. I will change the behavior when switching between E and I connections.
The high false-positive rate is due to the statistical test is not optimal for I connections.  I can decrease the significance level for the inhibitory connections, but the current algorithm does not handle strong E connections very well when detecting I connections.

Btw, there are a lot of new interaction modes. Press H in the monoSyn GUI to learn more.

I updated the repo with a fix for the switching between E and I connections.

Noam. I will close the issue, you are welcome to reopen it if you are still experiencing issues.


[New Task] Implement GPQA dataset

https://arxiv.org/abs/2311.12022
https://github.com/idavidrein/gpqa/
repository contains a number of prompts.
Note that care should be taken to prevent the dataset from being easily accessible in an LM corpus / should potentially not be uploaded to HF datasets uncompressed, to prevent more contamination than necessary.

I believe @uanu2002 may be working on this!


ssh: add top-level DialContext

Add a top-level convenience function DialContext, mirroring func Dial.
func DialContext(ctx context.Context, network, addr string, config
*ClientConfig) (*Client, error)
DialContext func accepts a context.Context as its first argument, which
controls the dial and handshake phases of the connection. Closing the Context
after the connection is established has no effect on the resulting Client.
Fixes golang/go#64686.

Nice

Ok

Bg

Good

I would appreciate any movement on this PR.
scp client would benefit from it

@dennypenta We use Gerrit for code review.  The place to comment is https://go.dev/cl/550096.  Thanks.


Some bug in ray_tracing.py

https://github.com/taconite/arah-release/blob/ef407178b00c28382457419b12e53155a839dc10/im2mesh/metaavatar_render/renderer/ray_tracing.py#L249-L260
Hi, as the above line illustrates, the L-252, valuable  'eval' is not defined in this function scope, hence ~diverge_mask if eval else torch.ones_like(diverge_mask)  is always true(it means ~diverge_mask either train or eval phase).
I do not know is a bug of the code, or you make it True always.

Thanks for the notice! Indeed the eval input to sphere_tracing was accidentally removed from my pre-release version during code cleaning. I will push a fix about this along with other minor updates this week.
Overall, the reason for setting diverge_mask to ones during training is that in rare cases, some diverged rays (based on SMPL skinning) could be recovered by search_iso_surface_depth. At this point it seems that such these rare rays does not affect the final result in any significant way.

Can this code be used in A-100/ 3090? As I see the issue that  broyden cannot be used in RTX-3090(IMAvatar and SNARF); I do not know whether your code can work on these devices.

I did not test my code on these devices but most likely it will have the same issue. Or maybe it was a driver-related issue and update to latest drive could fix it.

Thanks for your detailed explanation.
I am also confused about differentiable root-finding.
I saw SNARF/IMAvatar computes correction terms for implicit differentiation during training as:
        xc_opt = xc_opt.detach()

        # reshape to [B,?,D] for network query
        n_batch, n_point, n_init, n_dim = xc_init.shape
        xc_opt = xc_opt.reshape((n_batch, n_point * n_init, n_dim))

        xd_opt = self.forward_skinning(xc_opt, cond, tfs)

        grad_inv = self.gradient(xc_opt, cond, tfs).inverse()

        correction = xd_opt - xd_opt.detach()
        correction = einsum("bnij,bnj->bni", -grad_inv.detach(), correction)

        # trick for implicit diff with autodiff:
        # xc = xc_opt + 0 and xc' = correction'
        xc = xc_opt + correction

However, I do not find the correction term in your code to make root-finding differentiable. Do you make root-finding differentiable ?

The correction term is added here

Thanks!!!


DEVPROD-7444 Add task scheduling warnings

DEVPROD-7444
🔵Spruce
Description
Followup from linked Evergreen PR. If > 1000 tasks are about to be scheduled by an operation, display a banner warning suggesting to confirm if the operation is necessary for testing, along with a link to our docs.
The new resolver from the linked Evergreen PR is needed to estimate the number of tasks that generator tasks are going to create, so that their load can be accounted for in the warning banner.
Screenshots
Ignore the numbers. This will only actually show if N > 1000. Screenshots are from when I hardcoded the limit down to just 1.

Testing
Tested configure patch, restart version, and schedule tasks locally on versions with generator tasks that had estimated_num_generated_tasks set on their documents and confirmed that the number displayed in the warning was accurate.
Evergreen PR
https://github.com/evergreen-ci/evergreen/pull/8169

Attempted to document better, use the new strong type, and make it generally more readable


Clean up compiler output

Given a typescript canister written in azle,
When running npx azle my_canister,
Then the terminal should output the following:
Building canister my_canister

[1/5] 🧰 Installing rust dependencies. This might take some time...
[2/5] 🦀 Generating rust project...
[3/5] 🔨 Compiling typescript to javascript...
[4/5] 🚧 Compiling rust code...
[5/5] 📝 Generating candid file...

🎉 Created canister my_canister

And no other output should appear in the terminal.
And when running npx azle -v my_canister or npx azle --verbose my_canister
Then all the current output should be piped to the screen in addition to the above.

Getting close... :)

Just did a review with the team. The following need to be addressed:

If there are too many args just return usage, don't make assumption.
If missing canister name, then print JSON as well.
Make missing fields actually link to dfx.json
Initial build can take a few minutes
Measure the time of each step


Add systemd service file for pimd

Requesting addition of systemd service file and environments file.
Environments:
cat > /etc/sysconfig/pimd << EOF
# pimd PIM-SM Daemon Environment File
EOF

Service file:
cat > /usr/lib/systemd/system/pimd.service << EOF
[Unit]
Description=pimd PIM-SM Daemon
After=syslog.target network.target
ConditionPathExists=/etc/pimd.conf

[Service]
Type=simple
EnvironmentFile=-/etc/sysconfig/pimd
ExecStart=/usr/local/sbin/pimd -c /etc/pimd.conf -digmp_proto,pim_jp,kernel,pim_register
ExecStop=/usr/local/sbin/pimd -q

[Install]
WantedBy=network.target
EOF

Any thoughts?

[root@ip-192-168-16-66 ~]# systemctl status pimd
pimd.service - pimd PIM-SM Daemon
   Loaded: loaded (/usr/lib/systemd/system/pimd.service; enabled)
   Active: active (running) since Mon 2015-05-18 19:20:58 UTC; 1s ago
  Process: 3091 ExecStop=/usr/local/sbin/pimd -q (code=exited, status=0/SUCCESS)
 Main PID: 3099 (pimd)
   CGroup: /system.slice/pimd.service
           └─3099 /usr/local/sbin/pimd -c /etc/pimd.conf -digmp_proto pim_jp kernel pim_register

May 18 19:20:58 ip-192-168-16-66 pimd[3099]: 19:20:58.210 RECV    32 bytes IGMP v2 Member Report     from <IP_ADDRESS>   to <IP_ADDRESS>
May 18 19:20:58 ip-192-168-16-66 pimd[3099]: 19:20:58.210 Not creating routing entry for LAN scoped group <IP_ADDRESS>
May 18 19:20:58 ip-192-168-16-66 pimd[3099]: 19:20:58.210 RECV    32 bytes IGMP v2 Member Report     from <IP_ADDRESS>   to <IP_ADDRESS>
May 18 19:20:58 ip-192-168-16-66 pimd[3099]: 19:20:58.210 Not creating routing entry for LAN scoped group <IP_ADDRESS>
May 18 19:20:58 ip-192-168-16-66 pimd[3099]: 19:20:58.210 RECV    32 bytes IGMP v2 Member Report     from <IP_ADDRESS>     to <IP_ADDRESS>
May 18 19:20:58 ip-192-168-16-66 pimd[3099]: 19:20:58.210 Not creating routing entry for LAN scoped group <IP_ADDRESS>
May 18 19:20:58 ip-192-168-16-66 pimd[3099]: 19:20:58.210 RECV    32 bytes IGMP v2 Member Report     from <IP_ADDRESS>     to <IP_ADDRESS>
May 18 19:20:58 ip-192-168-16-66 pimd[3099]: 19:20:58.210 Not creating routing entry for LAN scoped group <IP_ADDRESS>
May 18 19:20:58 ip-192-168-16-66 pimd[3099]: 19:20:58.210 RECV    32 bytes IGMP v2 Member Report     from <IP_ADDRESS>     to <IP_ADDRESS>
May 18 19:20:58 ip-192-168-16-66 pimd[3099]: 19:20:58.210 Not creating routing entry for LAN scoped group <IP_ADDRESS>
[root@ip-192-168-16-66 ~]#

I currently have no plans of my own to support systemd, but if you send
a patch or GitHub pull request I can merge it.  Take a look at Debian,
the pimd packare there should get systemd support eventually, if it does
not already support it.

@troglobit, will take a look at it. Thank you.

The ExecStart line should use -f and the ExecStop line should be deleted IMO.

Admittedly I'm no expert on systemd, but isn't the ExecStop command called to stop a service?  In that case pimd -q is the way to do it, unless systemd knows the pid and can stop it by itself of course.

Unfortunately nobody at debian converted init script to systemd and that's why pimd is no longer available on Debian 8. I installed it manually, then added the following unit.
[Unit]
Description=pimd PIM-SM Daemon
After=syslog.target network.target
ConditionPathExists=/etc/pimd.conf
Documentation=man:pimd

[Service]
Type=forking
EnvironmentFile=-/etc/default/pimd
ExecStart=/usr/local/sbin/pimd -c /etc/pimd.conf
ExecStop=/usr/local/sbin/pimd -q

[Install]
WantedBy=multi-user.target

I would also like to contact debian pimd mentainer for this issue, anyone knows how?

I haven't heard back from @bobek in a while now. Been meaning to get back in touch with him, but I suspect we will have to build our own packages for Debian/Ubuntu for the time being.
Thank you @malakudi for the unit sample!  If I get some time over I'll try to read up on the requirements for debian/packaging of systemd files and add it, unless someone else beats me to it and submits a pull request.

ExecStop is for services that fork or otherwise need help shutting down.
pimd should work fine as a "simple" (non-forking) service, and systemd can
them send it SIGTERM all by itself, as long as it's started with -f.
On Sep 10, 2015 2:48 PM, "Joachim Nilsson"<EMAIL_ADDRESS>wrote:

Admittedly I'm no expert on systemd, but isn't the ExecStop command
called to stop a service? In that case pimd -q is the way to do it,
unless systemd knows the pid and can stop it by itself of course.
—
Reply to this email directly or view it on GitHub
https://github.com/troglobit/pimd/issues/41#issuecomment-139388464.

@amluto Good, sounds just like Finit, thanks! :)

I prefer running without "-f" as I consider this a "debug" option. But yes, if you can change Type=simple and ExecStart=/usr/local/sbin/pimd -f -c /etc/pimd.conf , then ExecStop is not needed.
If packaged for debian8 inclusion, it should be ExecStart=/usr/sbin/pimd -c /etc/pimd.conf (removing local)

@malakudi Why do you consider it a debug option?  Many other initd implementations than systemd use this feature of running a process in the foreground.

Just personal habbit I guess ... I prefer running detached - I guess I am still thinking with the sysvinit way :-)

@malakudi Ah, OK! :smiley:
Just curious, always good to know how people reason.  I was considering updating the documentation at the same time as adding the systemd unit file, so this point might be worth stressing. Thanks!


libTwilioVoiceModule.a not existing

I really like your repo. I need to customize twilio voice call interface but others all use standard callkit.
But when I follow manual link steps and try to build, it's failed with Build Failed message.
But no specific issue's showing.
And when I try to navigate libTwilioVoiceModule.a, it's not existing.
Could you check and recommit code soon, please?
Regards,

I think you are using react native version over 0.60.0.
If you are using react native version > 0.60.0, you should install repo by using cocoapods.
cd ios && pod install
Then plz try again.

I'm using 0.55.4.
And when I try to pod install, it's saying TwilioVoice dependency version is not existing.

Add these packages in podfile and try pod install again.
pod 'TwilioVoice'
pod 'react-native-twilio-voice-module', :path => '../node_modules/react-native-twilio-voice-module'

No way to do via manual linking? Why .a file is not existing now?

Could you build .a file and send it to me?


update conda and try new conda-lock format

Let's see if we can use conda-lock's new format.
Not in the mood to debug this now. Let's just use the old format.

What is the command to go straight from environment.yml to conda-linux-64.lock?

conda-lock --conda=mamba -k explicit --filename-template "conda-{platform}.lock" -p linux-6 should do it but I usually downgrade conda-lock=0.13 to ensure I get the "right" old answer.


ci: make sure the ci detects testground failure

Changes the CI action so it detects errors,
Related issue: https://github.com/testground/testground/issues/1329
Example runs:
with this PR, the error is captured by the action as expected:
https://github.com/laurentsenta/sdk-rust/actions/runs/2301527886
with this PR AND the unwrap patch, the job succeeds as expected:
https://github.com/laurentsenta/sdk-rust/actions/runs/2301540056
Tasks:

[x] update the CI to make sure it detects errors,
[x] extract the code into a shared & reusable action

@mxinden
I was planning on turning this code into a reusable workflow so that the script is invisible to you (we'd just call a script that does the shell gymnastic in the background, later we'll fix the API and update the action), would that work for you?
The rationale for not changing the testground CLI yet is that I'd like to make the existing code work for us before making new testground releases and since this approach has been used for a while, I hope it'll be enough.

To rephrase the above, how about doing https://github.com/testground/testground/issues/1329 instead of the suggested bash code here?

The rationale for not changing the testground CLI yet is that I'd like to make the existing code work for us before making new testground releases and since this approach has been used for a while, I hope it'll be enough.

In the end this is up to you, thus I am not going to push for either here. Though still, here are my 2 Cents for Bash then Go vs. Go right away:

Every line of bash is one line of bash too much. In my opinion it is very hard to maintain bash code and very easy to shoot oneself in the foot.
While very important, this effort is not time critical. In other words, I don't  think it matters whether (a) we have a working version with bash and later without or (b) a bit delayed a working version without bash right away.
Given that we plan to go without bash long term, why not deduplicate work and do it in Go right away?
Priorities change, especially at Protocol Labs. While I hope for the amount of resources spend on Testground to increase, there can always be a sudden change in direction. In case Testground ever gets de-prioritized it would be a bummer to be left with a lot of Bash scripts.

This is not directed at your Bash skills in particular, but Bash in general. (I actually trust your Bash code a lot more than I would ever trust my own.)

Thanks for tackling https://github.com/testground/testground/pull/1345. Let me know once this is ready for another review @laurentsenta.

@mxinden Should be the final form, with the --wait I removed the scripts (we don't have long poll yet, I hope that will be enough since the jobs are rather short and running locally).
I'm investigating the example failing with:
Jun 21 09:13:22.809601	INFO	run finished with outcome = failure (single:0/1)	{"run_id": "caoolqvs6j5ud4h9elsg", "plan": "sdk-rust", "case": "example", "runner": "local:docker", "instances": 1}

@mxinden yes, we're good to go,
btw, I never addressed your comment about bash directly; it triggered a few discussions outside Github. We decided to follow your feedback and implement features "the right way" immediately, even if it takes more time to provide them. Sorry for the lack of direct response and thanks for sharing your notes!

Thanks @laurentsenta for the help here. Great to have your support.


cmake: Fix missing dependency

KOBJ_OTYPE should depend on any changes to the tool that generates it,
gen_kobject_list.py.
Signed-off-by: Phil Erwin<EMAIL_ADDRESS>

Curious if you happened to see a bug/issue here.  If so, do you mind opening and issue for this.  Thinking this might be a fix we want to backport to the LTS release.

Steps to reproduce:

Build.
Modify gen_kobject_list.py
Invoke ninja
Rightfully expect to see a rebuild, but instead see ninja reporting "nothing to do".

IMHO this is minor and non-contraversial, so it does not need an issue.
This could be backported, but it is not very critical, so it could be skipped as well.

This could be backported, but it is not very critical, so it could be skipped as well.

will tag it backport and see what others thing.


Icon: add microsoft icon

This change: (check at least one)

[x] Adds a new feature
[ ] Fixes a bug
[ ] Improves maintainability
[ ] Improves documentation
[ ] Is a release activity

Is this a breaking change? (check one)

[ ] Yes
[x] No

Is the: (complete all)

[x] Title of this pull request clear, concise, and indicative of the issue number it addresses, if any?
[x] Test suite(s) passing?
[x] Code coverage maximal?
[x] Changeset added?
[ ] Component status page up to date?

What does this change address?
Add Microsoft icon.
How does this change work?
Added the icon to the assets and icons.json file.
Additional context
N/A

@shoupeva-ithaka you do not have permission. That is intentional. The Pharos maintainers maintain this repository.


chore(deps): upgrade dependencies

Upgrades project dependencies. See details in workflow run.

Automatically created by projen via the "upgrade-main" workflow

Codecov Report

Merging #531 (5d65882) into main (5fa16aa) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #531   +/-   ##
=======================================
  Coverage   95.69%   95.69%
=======================================
  Files           1        1
  Lines         395      395
  Branches       53       53
=======================================
  Hits          378      378
  Misses         17       17

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


SOLR-16668: Default to Java SSL for Http2SolrClient

https://issues.apache.org/jira/browse/SOLR-16668
Also added a bit of cleanup in the code.

I think that the warnings will be removed when https://github.com/apache/solr/pull/1367 is merged as well, since it changes the default of the trustAll parameter. So we can check after merging this PR and before merging https://github.com/apache/solr/pull/1367


support elasticsearch2.0 & support plugin

elasticsearch 2.0 has already released， do you have plan to update to elasticsearch 2.0.
how to add plugin in the embed es node， could you make an easy-to-use interface for adding plugin and maybe plugin config files

Hey @penfree

Elasticsearch does an awesome job being backwards compatible on indexes built with older versions. We'll typically upgrade our ES cluster first, make sure we're happy with it, and then loop back to upgrade the version we use in elasticsearch-lambda for rebuilding in hadoop to match. I haven't tried restoring 1.x generated snapshots into a 2.0 cluster specifically yet, but there's a good chance it'll just work. I do intend on creating a 2.0 branch in a couple months if someone doesn't beat me to it.

Elasticsearch in this project has been configured to load in plugins found on the classpath. I'm using the elasticsearch-phone plugin with elasticsearch-lambda and including it in the pom as a dependency is all that was required.


Making use of defined method to get domain name

Reviewed. Can merge.

Please add a unit/integration test for the fix.

This is a one line improvement made to make use of already defined method than duplicating code. Won't be possible to write unit/integration test.

https://wso2.org/jira/browse/CARBON-15628


Fix link for Style/TrailingCommaInArguments

The link previously linked to the docs for Style/TrailingCommaInLiteral. which is close, but not quite right. This PR changes the link to be the correct link.

👍


[BUG] roblox auto crashing with bloxstrap

Acknowledgement of preliminary instructions

[X] I have read the preliminary instructions, and I am certain that my problem has not already been addressed.

What problem did you encounter?
yeah so today i tried to launch roblox and instantly it crashed and i got this error

i uninstalled my custom font i installed new graphic card drivers and still nothing
uninstalled bloxstrap and now its launching and everything
anybody knows the issue with this?

uninstalled bloxstrap and now its launching and everything

If you reinstall Bloxstrap, do you get the same error?


Abnormal behavior after enabling external theme

After ce821c7, when external theme enabled (place fbitheme on SD card root), FBI starts to behave weirdly. (Throws out of resource error when opening Title List, custom textures are only partially loaded, and most importantly, I got a hard crash when I tried to exit FBI with Home button)

What exactly do you have included in the external theme? (Just copying a few PNGs from the actual resources and putting them on the SD card doesn't seem to be helping to reproduce it)

Never mind, should be fixed now. (https://github.com/Steveice10/FBI/commit/2d8a117ed2b664266745f7d992c9af290b57d31b)


Uncaught TypeError: this._unregisterEvents is not a function

Getting this error while using InfoBox.
Basically as soon as InfoBox is initialised and map receives new props, this error occurs.
Exception was thrown by user callback. TypeError: this._unregisterEvents is not a function
    at InfoBoxCreator.unregister (eval at <anonymous> (http://localhost:8888/build/app.js:5972:2), <anonymous>:20:12)
    at InfoBoxCreator.value (eval at <anonymous> (http://localhost:8888/build/app.js:5972:2), <anonymous>:48:20)
    at CallbackQueue.assign.notifyAll (eval at <anonymous> (http://localhost:8888/build/app.js:1238:2), <anonymous>:68:22)
    at ReactReconcileTransaction.ON_DOM_READY_QUEUEING.close (eval at <anonymous> (http://localhost:8888/build/app.js:1760:2), <anonymous>:81:26)
    at ReactReconcileTransaction.Mixin.closeAll (eval at <anonymous> (http://localhost:8888/build/app.js:1250:2), <anonymous>:207:25)
    at ReactReconcileTransaction.Mixin.perform (eval at <anonymous> (http://localhost:8888/build/app.js:1250:2), <anonymous>:148:16)
    at ReactUpdatesFlushTransaction.Mixin.perform (eval at <anonymous> (http://localhost:8888/build/app.js:1250:2), <anonymous>:134:20)
    at ReactUpdatesFlushTransaction.assign.perform (eval at <anonymous> (http://localhost:8888/build/app.js:1232:2), <anonymous>:95:38)
    at Object.flushBatchedUpdates (eval at <anonymous> (http://localhost:8888/build/app.js:1232:2), <anonymous>:175:19)
    at Object.ReactPerf.measure.wrapper [as flushBatchedUpdates] (eval at <anonymous> (http://localhost:8888/build/app.js:1196:2), <anonymous>:70:21)
    at ReactDefaultBatchingStrategyTransaction.Mixin.closeAll (eval at <anonymous> (http://localhost:8888/build/app.js:1250:2), <anonymous>:207:25)
    at ReactDefaultBatchingStrategyTransaction.Mixin.perform (eval at <anonymous> (http://localhost:8888/build/app.js:1250:2), <anonymous>:148:16)
    at Object.ReactDefaultBatchingStrategy.batchedUpdates (eval at <anonymous> (http://localhost:8888/build/app.js:1652:2), <anonymous>:66:19)
    at Object.enqueueUpdate (eval at <anonymous> (http://localhost:8888/build/app.js:1232:2), <anonymous>:215:22)
    at enqueueUpdate (eval at <anonymous> (http://localhost:8888/build/app.js:1220:2), <anonymous>:30:18)
    at Object.ReactUpdateQueue.enqueueSetState (eval at <anonymous> (http://localhost:8888/build/app.js:1220:2), <anonymous>:208:5)

Why was this closed? Also see this sometimes.

I'm getting the same error message. Any ideas what could be causing it?

Me too. I have the same question. How to solve this problem?

I was getting it quite often while using Webpack with hot module reload when new props were received.
But don't remember exactly in details. Probably better to open new issue.

Worth to reopen.

+1 Had the same issue with Polygon and Polyline.
Disabling HMR and react-hot-loader didn't solve the issue.

+1

+1

+1

Should be fixed in v4.8.2


Add-FontsToNavContainer causes file not found exception

Add-FontsToNavContainer causes a file not found exception due to wrong parameter to -ArgumentList in Invoke-ScriptInNavContainer.
It should be $WindowsFontPath (the remote path) not $fullName (which is local).

Right you are - will be fixed in the next version.


BreakTimer

Project description
A nice program that will run and tell you when you need to take a break
Metadata

homepage URL: https://breaktimer.app/
source URL: https://github.com/tom-james-watson/breaktimer-app
license: gpl3
platforms: Linux, Windows, Mac

Running an electron app (and therefore a chrome instance) to get a reminder seems like overkill. You can achieve something similar by using ktimer (assuming you're using KDE) for a fraction of the memory.
Quick guide: https://blog.realhe.ro/improvised-pomodoro-technique-timer-on-kde-based-linux/

ktimer

the ui looks very complicated
here are some simple timers we have already packaged
gnome-solanum
pomotroid
i don't think we need another timer app


Add configurable error pages

It would be nice to allow the user to specify the content for the following pages

upstream 404
upstream 500
upstream unavailable error
default page when no matching hostname is configured

default page when no matching hostname is configured

+1 to this, will be a great enhancement.

I would like the option to have the default page when no hostname is specified return just a 404 error message. Or just make it so that if anything is hit that is not a valid hostname proxy, it returns a 404 including if the default page is hit from the client using IP of the server in the URL

+1

It would be nice to allow the user to specify the content for the following pages

upstream 404
upstream 500
upstream unavailable error
default page when no matching hostname is configured

This feature is really needful!

It would be nice to allow the user to specify the content for the following pages

upstream 404
upstream 500
upstream unavailable error
default page when no matching hostname is configured

This feature is really needful!

@tophee Is the redirection to a public site still the best solution?

@tophee Is the redirection to a public site still the best solution?

@jc21 any updates or plans on this feature enhancement?

+1
Sorry if this is a dumb question, but what is currently the best work around for not exposing that page saying "Congratulations! You've successfully started the Nginx Proxy Manager"? My quick solution was to create a redirect host for my bare IP and redirect to some public website. So Whoever visits my IP will just be bounced back into the internet... :-)

Hello, I also see that Congratulations page on my external IP. Can You tell how to make that redirection?
Regards.

+1
Sorry if this is a dumb question, but what is currently the best work around for not exposing that page saying "Congratulations! You've successfully started the Nginx Proxy Manager"? My quick solution was to create a redirect host for my bare IP and redirect to some public website. So Whoever visits my IP will just be bounced back into the internet... :-)

Hello, I also see that Congratulations page on my external IP. Can You tell how to make that redirection? Regards.

You should go to settings page in web UI and change Default site settings from Congratulations page to 404 page or Custom HTML or configure a redirection.

Hi, thanks for Your answer. I miss that settings tab. I thougt I have to make someting in command line :D
Thanks.

Any updates? I really need this.

+1
Sorry if this is a dumb question, but what is currently the best work around for not exposing that page saying "Congratulations! You've successfully started the Nginx Proxy Manager"? My quick solution was to create a redirect host for my bare IP and redirect to some public website. So Whoever visits my IP will just be bounced back into the internet... :-)

Hello, I also see that Congratulations page on my external IP. Can You tell how to make that redirection? Regards.

You should go to settings page in web UI and change Default site settings from Congratulations page to 404 page or Custom HTML or configure a redirection.

Your talking about setting ( default setup page ); the guys asking for error page, and not default page... how to change the error pages, 502 bad gateway template or pages ?

Its good idea to add way to setup custom html error pages for HTTP error codes, for example I want to replace this
 with my own.

still waiting

same here, waiting.

Hi everyone,
I agree that this should be implemented in the UI but until then, I wanted to explain how I managed to do it so that you can too.

Create a directory named error_pages under your /data/nginx/ directory. Prepare your custom error pages and put them in there. These files will be persistent as I suppose that you mount /data directory to your host machine.
After restarting your container; visit the dashboard, edit a proxy host, go to Advanced tab and paste the following with respect to the name of your error page file:
# Error page for 50x
error_page 500 502 503 504  /error-cloud.html;
proxy_intercept_errors on;
location /error-cloud.html {
internal;
root /data/nginx/error_pages;
}

In this case, my error page filename is error-cloud.html where HTTP code is one of 500, 502, 503 or 504.

Using HttpErrorPages with the solution of @kylethedeveloper:
location / {
    # ... all other configuration
    error_page 400 /error_pages/HTTP400.html;
    error_page 401 /error_pages/HTTP402.html;
    error_page 402 /error_pages/HTTP402.html;
    error_page 403 /error_pages/HTTP403.html;
    error_page 404 /error_pages/HTTP404.html;
    error_page 500 /error_pages/HTTP500.html;
    error_page 501 /error_pages/HTTP501.html;
    error_page 502 /error_pages/HTTP502.html;
    error_page 503 /error_pages/HTTP503.html;
    proxy_intercept_errors on;
}

location /error_pages/ {
    alias /data/nginx/error_pages/;
    internal;
}

This maybe can be the default inside NPM + HttpErrorPages

You can add a file server_proxy.conf in your /data/nginx/custom with your content example to set the custom error page globaly :
error_page 400 /error_pages/HTTP400.html;
error_page 401 /error_pages/HTTP402.html;
error_page 402 /error_pages/HTTP402.html;
error_page 403 /error_pages/HTTP403.html;
error_page 404 /error_pages/HTTP404.html;
error_page 500 /error_pages/HTTP500.html;
error_page 501 /error_pages/HTTP501.html;
error_page 502 /error_pages/HTTP502.html;
error_page 503 /error_pages/HTTP503.html;
proxy_intercept_errors on;

location /error_pages/ {
    alias /data/nginx/error_pages/;
    internal;
}

Or comment proxy_intercept_errors on; and just add this directive in the proxy host advanced configuration.

I've added server_proxy.conf to  /data/nginx/error_pages/ (- /data/nginx/error_pages/server_proxy.conf) and the html pages but it isn't working! Do I still need to add the above to the advanced tab?
How do I set this globaly in NPM?

Hi everyone, I agree that this should be implemented in the UI but until then, I wanted to explain how I managed to do it so that you can too.
Create a directory named error_pages under your /data/nginx/ directory. Prepare your custom error pages and put them in there. These files will be persistent as I suppose that you mount /data directory to your host machine.
After restarting your container; visit the dashboard, edit a proxy host, go to Advanced tab and paste the following with respect to the name of your error page file:
# Error page for 50x
error_page 500 502 503 504  /error-cloud.html;
proxy_intercept_errors on;
location /error-cloud.html {
internal;
root /data/nginx/error_pages;
}

In this case, my error page filename is error-cloud.html where HTTP code is one of 500, 502, 503 or 504.
You can prepare different error pages for different hosts and also different error pages for different response codes. Hope this is helpful.

How do you prepare different error codes for the same proxy host? e.g. If you want to have an 403 and 502 error page.
And also when I add an image to my custom 502 html error page the image doesn’t show but I use the same html code for the 404 custom page and then the image shows…very weird behavior.

Is it still planned to integrate this in the future?

Is it still planned to integrate this in the future?

I've added server_proxy.conf to  /data/nginx/error_pages/ (- /data/nginx/error_pages/server_proxy.conf) and the html pages but it isn't working! Do I still need to add the above to the advanced tab?
How do I set this globaly in NPM?

Also, for anyone having the same issue as @BobWs, the server_proxy.conf has to be created in /data/nginx/custom, not any other directory, such as /data/nginx/error_pages. Only then, it is being recognized by NPM.
When I did this, I ran into another error:
nginx: [emerg] "proxy_intercept_errors" directive is duplicate in /data/nginx/custom/server_proxy.conf:10

It seems that this directive has been set somewhere else, and nginx does not accept duplicates. I could fix this by commenting out the ´proxy_intercept_errors on;´and now it is working beautifully.
Hope this helps someone.

error_page 400 /error_pages/HTTP400.html;
error_page 401 /error_pages/HTTP402.html;
error_page 402 /error_pages/HTTP402.html;
error_page 403 /error_pages/HTTP403.html;
error_page 404 /error_pages/HTTP404.html;
error_page 500 /error_pages/HTTP500.html;
error_page 501 /error_pages/HTTP501.html;
error_page 502 /error_pages/HTTP502.html;
error_page 503 /error_pages/HTTP503.html;
proxy_intercept_errors on;
location /error_pages/ {
alias /data/nginx/error_pages/;
internal;
}

I'm using this approach to handle errors and it works. Although I'd like to only show these error pages when the content-type is not an application/json because today API errors also end up returning HTML. Has anyone else encountered this and found a solution? Thank you in advance

I'm using this approach to handle errors and it works.

I was using the same approach for a general error_page handling for all my proxy hosts, but that resulted in conflict with some of my docker apps for which I was using NPM. For example Mattermost and Vaultwarden 2FA didn't work anymore when I set the error_page in the general approach, as soon as I removed this then Mattermost and Vaultwarden 2FA started working again.
So now I'm using the error_page on individual base only for the apps that need a error_page to inform users.

I followed this tutorial exactly to create a custom html 403 page but even with the help of chat gpt i cant make it work . I am trying to test via proxy sites

i am using docker to keep up and running npm using the following compose
version: '3'
services:
  nginx-proxy-manager:
    container_name: nginx-proxy-manager
    image: 'jc21/nginx-proxy-manager:latest'
    restart: always
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
      - '2121:2121'
      - '2222:2222'
    environment:
      - DB_MYSQL_HOST=nginx-proxy-manager-db
      - DB_MYSQL_PORT=3306
      - DB_MYSQL_USER=npm
      - DB_MYSQL_PASSWORD=xxxxxxxxxxxxx
      - DB_MYSQL_NAME=npm
    volumes:
      - /mnt/containers/nginx-proxy-manager/container-data/data:/data:Z
      - /mnt/containers/nginx-proxy-manager/container-data/letsencrypt:/etc/letsencrypt:Z
      - /mnt/containers/nginx-proxy-manager/container-data/geoip_allow_ro.conf:/etc/nginx/conf.d/geoip_allow_ro.conf:Z
    networks:
      - nginx-proxy-manager-nw
      - reverseproxy-nw

  nginx-proxy-manager-db:
    container_name: nginx-proxy-manager-db
    image: 'jc21/mariadb-aria:latest'
    restart: always
    environment:
      - MYSQL_DATABASE=npm
      - MYSQL_USER=npm
      - MYSQL_PASSWORD=yyyyyyyyyyyyyyy
      - MYSQL_ROOT_PASSWORD=zzzzzzzzzzzzzzz
    volumes:
      - /mnt/containers/nginx-proxy-manager/container-data/mysql:/var/lib/mysql:Z
    networks:
      - nginx-proxy-manager-nw

networks:
  nginx-proxy-manager-nw:
  reverseproxy-nw:
    external: true

I created the server_proxy.conf /mnt/containers/nginx-proxy-manager/container-data/data/nginx/custom/ with the following lines
error_page 403 /error_pages/HTTP403.html;
location /error_pages/ {
    alias /data/nginx/error_pages/;
    internal;
}

In the /mnt/containers/nginx-proxy-manager/container-data/data/nginx/error_pages/ i created the HTTP403.html file
and in the Custom Nginx Configuration tab i have

proxy_hide_header Upgrade;
proxy_hide_header X-Powered-By;
proxy_pass_header Set-Cookie;

add_header Content-Security-Policy "upgrade-insecure-requests";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Cache-Control "no-transform, no-cache, no-store, must-revalidate" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
add_header Referrer-Policy no-referrer always;
add_header X-Robots-Tag none;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

proxy_request_buffering off;

proxy_buffering off;

rewrite ^/seafhttp(.*)$ $1 break;

client_max_body_size 128M;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;

proxy_connect_timeout 36000s;
proxy_send_timeout 36000s;
proxy_read_timeout 36000s;

allow <IP_ADDRESS>/16;
allow <IP_ADDRESS>/24;

include /etc/nginx/conf.d/geoip_allow_ro.conf;

deny all;

I dont know whats missing, when i try to remote accees it to get the 403 error page , i just receive the classic drop

You need to add proxy_intercept_errors on; on server proxy.conf or advanced settings where you want that page works.

I followed this tutorial exactly to create a custom html 403 page but even with the help of chat gpt i cant make it work . I am trying to test via proxy sites

i am using docker to keep up and running npm using the following compose
version: '3'
services:
  nginx-proxy-manager:
    container_name: nginx-proxy-manager
    image: 'jc21/nginx-proxy-manager:latest'
    restart: always
    ports:
      - '80:80'
      - '81:81'
      - '443:443'
      - '2121:2121'
      - '2222:2222'
    environment:
      - DB_MYSQL_HOST=nginx-proxy-manager-db
      - DB_MYSQL_PORT=3306
      - DB_MYSQL_USER=npm
      - DB_MYSQL_PASSWORD=xxxxxxxxxxxxx
      - DB_MYSQL_NAME=npm
    volumes:
      - /mnt/containers/nginx-proxy-manager/container-data/data:/data:Z
      - /mnt/containers/nginx-proxy-manager/container-data/letsencrypt:/etc/letsencrypt:Z
      - /mnt/containers/nginx-proxy-manager/container-data/geoip_allow_ro.conf:/etc/nginx/conf.d/geoip_allow_ro.conf:Z
    networks:
      - nginx-proxy-manager-nw
      - reverseproxy-nw

  nginx-proxy-manager-db:
    container_name: nginx-proxy-manager-db
    image: 'jc21/mariadb-aria:latest'
    restart: always
    environment:
      - MYSQL_DATABASE=npm
      - MYSQL_USER=npm
      - MYSQL_PASSWORD=yyyyyyyyyyyyyyy
      - MYSQL_ROOT_PASSWORD=zzzzzzzzzzzzzzz
    volumes:
      - /mnt/containers/nginx-proxy-manager/container-data/mysql:/var/lib/mysql:Z
    networks:
      - nginx-proxy-manager-nw

networks:
  nginx-proxy-manager-nw:
  reverseproxy-nw:
    external: true

I created the server_proxy.conf /mnt/containers/nginx-proxy-manager/container-data/data/nginx/custom/ with the following lines
error_page 403 /error_pages/HTTP403.html;
location /error_pages/ {
    alias /data/nginx/error_pages/;
    internal;
}

In the /mnt/containers/nginx-proxy-manager/container-data/data/nginx/error_pages/ i created the HTTP403.html file
and in the Custom Nginx Configuration tab i have

proxy_hide_header Upgrade;
proxy_hide_header X-Powered-By;
proxy_pass_header Set-Cookie;

add_header Content-Security-Policy "upgrade-insecure-requests";
add_header X-Frame-Options "SAMEORIGIN";
add_header X-XSS-Protection "1; mode=block" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Cache-Control "no-transform, no-cache, no-store, must-revalidate" always;
add_header Pragma "no-cache" always;
add_header Expires "0" always;
add_header Referrer-Policy no-referrer always;
add_header X-Robots-Tag none;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains" always;

proxy_request_buffering off;

proxy_buffering off;

rewrite ^/seafhttp(.*)$ $1 break;

client_max_body_size 128M;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;

proxy_connect_timeout 36000s;
proxy_send_timeout 36000s;
proxy_read_timeout 36000s;

allow <IP_ADDRESS>/16;
allow <IP_ADDRESS>/24;

include /etc/nginx/conf.d/geoip_allow_ro.conf;

deny all;

I dont know whats missing, when i try to remote accees it to get the 403 error page , i just receive the classic drop

You need to add proxy_intercept_errors on; on server proxy.conf or advanced settings where you want that page works.

Tried in both locations : /mnt/containers/nginx-proxy-manager/container-data/data/nginx/custom/server_proxy.conf or Custom Nginx Configuration with a simplified idea of
proxy_intercept_errors on;
deny all;
Still receving 403 Forbidden, what i can test more ?

Still receving 403 Forbidden, what i can test more ?

@Alex-Goaga
I can't think of what the error could be. I would recommend you try:

Remove some of the custom configuration they have for that proxy (obviously leaving proxy_intercept_errors enabled;). In this way, check if there is any conflict between configurations.
Check the logs of proxy. the location inside the container are /data/logs/proxy-host-<ID>_access.log and /data/logs/proxy-host-<ID>_error.log. You can find the ID, inside the files that are in /data/nginx/proxy_host. This directory contains the final configuration files for each proxy that are generated from the administrator UI.

@Alex-Goaga
Have you check the permissions of the error_pages you created if they are set right?


Secure DNS presets

dnscrypt would be good to be preset.
I am not sure how this overlaps / replaces the need of a hardened systemd-resolved config here.
Keep in mind that DNSSec and custom DNS in general break Captive portals, which are shitty, but needed in pretty much every public wifi. Some method of swapping configs or even something in networkmanager may be a solution, but I haven't found that yet
https://discussion.fedoraproject.org/t/turn-on-of-systemd-resolved-override-conf-files-different-security-levels/
Some ideas by a kind AI:
#!/bin/bash

# Function to create Network Profile
create_network_profile() {
    sudo nmcli connection add type ethernet con-name $1 ifname $2
    sudo nmcli connection modify $1 ipv4.method auto
    sudo nmcli connection modify $1 ipv6.method auto
}

# Function to configure DNS settings for InsecureProfile
configure_insecure_profile() {
    sudo nmcli connection modify InsecureProfile ipv4.dns-priority -42
    sudo nmcli connection modify InsecureProfile ipv6.dns-priority -42
    sudo nmcli connection modify InsecureProfile ipv4.dns-search ''
    sudo nmcli connection modify InsecureProfile ipv6.dns-search ''
}

# Function to configure DNS settings for SecureProfile
configure_secure_profile() {
    sudo nmcli connection modify SecureProfile ipv4.dns '<IP_ADDRESS>,<IP_ADDRESS>'
    sudo nmcli connection modify SecureProfile ipv6.dns '2001:4860:4860::8888,2001:4860:4860::8844'
    sudo nmcli connection modify SecureProfile ipv4.dns-search $1
    sudo nmcli connection modify SecureProfile ipv6.dns-search $1
}

# Function to activate a Network Profile
activate_profile() {
    sudo nmcli connection up $1
}

# Function to configure systemd-resolved for DNSSec and DOT
configure_systemd_resolved() {
    sudo sed -i 's/#DNSSEC=no/DNSSEC=yes/' /etc/systemd/resolved.conf
    sudo sed -i 's/#DNSOverTLS=no/DNSOverTLS=yes/' /etc/systemd/resolved.conf
}

# Main Script

# Replace with actual interface name and search domain
interface_name="<your_interface_name>"
search_domain="<your_search_domain>"

# Create Network Profiles
create_network_profile InsecureProfile $interface_name
create_network_profile SecureProfile $interface_name

# Configure DNS settings
configure_insecure_profile
configure_secure_profile $search_domain

# Activate Profiles based on security requirements
activate_profile InsecureProfile
# activate_profile SecureProfile

# Configure systemd-resolved
configure_systemd_resolved

# Restart services
sudo systemctl restart NetworkManager
sudo systemctl restart systemd-resolved

https://www.privacy-handbuch.de/handbuch_93d.htm
https://unix.stackexchange.com/questions/444659/how-to-let-resolveconf-update-dns-configuration-when-using-networkmanager
a GUI way woud be easy by creating custom .desktop entries for enabling and disabling. Something more elegant like an app would also be nice, but this should be implemented in the Desktops anyways. I just dont really see Gnome doing that, as its pretty technical, KDE could be imaginable.
It would already be enough to launch a browser instance with "insecure DNS mode". After logging into the captive portal you can use any DNS you want.

This is a privacy feature and not a security feature and is therefore not in scope for this project.


Update 22.1.md

The solution of exercise question 22.1-2 , the 7th row has misplaced edge connection. According to binary heap from 1 to 7, 7 is right-side child of 3.

thank you!


Add to bower

Hello!
Just wondering if you would be able to publish this repository through bower. Or maybe you have a good reason why you haven't done that already. Any thoughts?
Thanks

I'm definitely open to doing it, but it's not currently set up to be super usable - it would need to include the images in the bower package and I don't know how to do that. It's something I'd like to do if I have the time to figure it out (npm too)

Ah cool. Nothing urgent. So, great to know that it's on the roadmap.

it would need to include the images in the bower package and I don't know how to do that.

Since Bower works through git, I'd expect that if the images are in the git repo then they should be installed when a user Bower installs. So it should just be a matter of adding a Bower.json to this repo and running bower register emoji-data git@github.com:iamcal/emoji-data.git from the command line.

this is now done. unlike the npm package, it contains both the spritesheets and the individual images


fix: enforce replace backslash with forward slash

Issue:
URLs get malformed when running os.path.join on windows.

Fetching all variables https://bucketing-api.devcycle.com/v1\variables
Fetching single variable with key https://bucketing-api.devcycle.com/v1\variables\xxxxxx

Solution
Ensure we replace backslashes with forward slashes when building self._url

@chris-hoefgen Not sure what your take is about adding [windows-latest/windows-2022] to actions tests
https://github.com/DevCycleHQ/python-server-sdk/blob/88fc8f03d650e4239fac728b67f20c26d15608f9/.github/workflows/unit_test.yml#L8

I looked into this some more and I believe the issue requires a wider fix which I am implementing here: https://github.com/DevCycleHQ/python-server-sdk/pull/58
The use of the join() function from os.path is ultimately incorrect. I have replaced all instances of it with a new function that properly assembles the API URLs along with unit tests. In addition, we are working to integrate your suggestion of running the tests using a windows runtime and have found a couple other minor issues.

We have implemented a fix and released v3.3.6 of the SDK. We are also going to work on getting proper CONTRIBUTING.md guides added to our SDK repos to better support future contributions.
Thank you again for bringing this to our attention!

Thank you @chris-hoefgen for the feedback and quick turn around on fixing this.


stats release assert in thrift proxy

We start hitting a release assert and crash, which indicates unwanted behavior.
https://github.com/envoyproxy/envoy/blob/66b3c5e8512e66398bb82fc4117bcfe1fb2a98f6/source/common/stats/symbol_table.cc#L497
This occurs after we have a stats change https://github.com/envoyproxy/envoy/pull/31816
We already havecluster.{CLUSTER}.thrift.upstream_resp_exception_local.
In that PR, we're adding more stats with the prefix like cluster.{CLUSTER}.thrift.upstream_resp_exception_local.timeout. Unsure how it impacts the stats name set and decoder map.
One more hint is it seems to happen only in the draining stage, where some ThreadLocalObject are released and trigger this stats increment.
I attached bt here stats_abort_bt.log

cc @zuercher

@JuniorHsu are you working on a fix?

The fix for this is usually ensuring that the Stats::Scope in which the offending stat was allocated outlives any possible uses of it. The fact that scopes are now held as shared_ptr may help manage this.

The fix for this is usually ensuring that the Stats::Scope in which the offending stat was allocated outlives any possible uses of it. The fact that scopes are now held as shared_ptr may help manage this.

currently it's held by reference yeah
https://github.com/envoyproxy/envoy/blob/main/source/extensions/filters/network/thrift_proxy/router/config.cc#L32

Anything is plausible but it would greatly complicate many call sites. I think we should just fix the bug and add testing to make sure this case gets covered.
This function isn't returning a stat, it's turning a numeric symbol (a StatName is really an encoded array of small integers which map to string tokens) into a string. It's typically used when extracting the stat name as a string. In this case it looks like a new stat is being constructed (or re-constructed) as part of a teardown process, where some of the support infrastructure is in a state of destruction. That's from a quick read of the stack trace and knowing nothing of Thrifty.
This class of problems where we get that assert usually happens due to order-of-declaration issues. We have to make sure the SymbolTable outlives the Store, the Store outlives the Scopes, etc.

Looks like the fix is to make the stats user own (like shadow) a shared pointer of RouterStat which includes stat name sets tho it doesn't own symbol_table and scope?

the refs to these stats all need to outlive the stats system. I'm a little worried that just throwing shared_ptr at this  won't be sufficient; I don't want folks to go down a rabbit hole.
Can we avoid reporting these stats during shutdown?

Avoid reporting if Upstream::ClusterManager::isShutdown() returns true?
https://github.com/envoyproxy/envoy/blob/main/envoy/upstream/cluster_manager.h#L324
Network filter could check this I think.
Not super familiar if this signal is early enough to prevent crash.

That sounds racy. What if the shutdown occurs right after your call to isShutdown and before you access stats?
I'm not remembering what causes this shutdown flow to work really well but I'm sure it's not that test. I feel like this ultimately is going to be solved by looking at your various support structures and making sure their order of declaration matches the lifetime needs.

I feel like this ultimately is going to be solved by looking at your various support structures and making sure their order of declaration matches the lifetime needs.

I have a hunch that we should go back to let stats owner own a shared_ptr of stats since common practice of filters is filter owns filter_config which owns the stats name sets. Otherwise I'm not super sure what could a network filter own.
Or should we own our scope by createScope like https://github.com/envoyproxy/envoy/pull/30931 as shadow request could have as long as the lifecycle of thread local storage?

agreed: I think source/extensions/geoip_providers/maxmind/geoip_provider.h is a good model; seems like it was a similar symptom.


Poetry does not gracefully shutdown on CTRL+C

Poetry:

venv:

This does:
poetry run uvicorn lnbits.__main__:app


Multi mode does not appear to work

When I use single mode, the text fits perfectly in a single line. However, when I change the mode to "multi", it no longer seems to resize the text.
Below is an example of my code:

    return(

                <Textfit mode="multi">
                    The quick brown fox jumps over the lazy dog.  The quick brown fox jumps over the lazy dog.  The quick brown fox jumps over the lazy dog.
                </Textfit>

    )

A screenshot of what I am seeing:

Is this a problem with the module, or am I doing something wrong?

I'm also having the same exact issue

Try putting the height style directly on the Textfit component. That has worked for me.

<TextFit style={{maxHeight: ...}} /> worked for me!