Internal error when requesting route with url-part == defaults

http://flask.pocoo.org/docs/0.12/api/#url-route-registrations
Getting a 5xx-error when requesting a route with defaults parameter
Code Example
view = Blueprint("a", __name__, url_prefix="/a")

@view.route("/b", defaults={"consumer_id": "test"}, methods=["POST"])
@view.route("/b/<consumer_id>", methods=["POST"])
def check_consumers(consumer_id):
    return "consumer_id: {}".format(consumer_id)

Expected Behavior
Send any other parameter - OK
curl -X POST '<IP_ADDRESS>:5500/a/b/anything'

consumer_id: anything

Send parameter == default one
curl -X POST '<IP_ADDRESS>:5500/a/b/test'

consumer_id: test

Actual Behavior
Send parameter == defaults and get an internal error
curl -X POST '<IP_ADDRESS>:5500/a/b/test' -vvv

* Hostname was NOT found in DNS cache
*   Trying <IP_ADDRESS>...
* Connected to <IP_ADDRESS> (<IP_ADDRESS>) port 5500 (#0)
> POST /a/b/test HTTP/1.1
> User-Agent: curl/7.35.0
> Host: <IP_ADDRESS>:5500
> Accept: */*
>
* Empty reply from server
* Connection #0 to host <IP_ADDRESS> left intact
curl: (52) Empty reply from server

Traceback:
Note: this exception is only raised in debug mode
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1612, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1590, in dispatch_request
    self.raise_routing_exception(req)
  File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1576, in raise_routing_exception
    raise FormDataRoutingRedirect(request)
FormDataRoutingRedirect: A request was sent to this URL (http://<IP_ADDRESS>:5500/a/b/test) but a redirect was issued automatically by the routing system to "http://<IP_ADDRESS>:5500/a/b".  Make sure to directly send your POST-request to this URL since we can't make browsers or HTTP clients redirect with form data reliably or without user interaction.

Environment

Python version: 2.7.6
Flask version: 0.12.2
Werkzeug version: 0.14.1

You can also set redirect_defaults to false

`defaults`
    An optional dict with defaults for other rules with the same endpoint.
    This is a bit tricky but useful if you want to have unique URLs::

        url_map = Map([
            Rule('/all/', defaults={'page': 1}, endpoint='all_entries'),
            Rule('/all/page/<int:page>', endpoint='all_entries')
        ])

    If a user now visits ``http://example.com/all/page/1`` he will be
    redirected to ``http://example.com/all/``.  If `redirect_defaults` is
    disabled on the `Map` instance this will only affect the URL
    generation.


Critical fixes to the location importer

LIIKUNTA-578

Unified search sources branch is deployed to platta: https://kuva-unified-search-sources-pr133.api.dev.hel.ninja :rocket::rocket::rocket:

Unified search graphql branch is deployed to platta: https://kuva-unified-search-pr133.api.dev.hel.ninja :rocket::rocket::rocket:


Fix QuTiP dependencies on dev-qarray

Suggest reviewing commit by commit. For now, no conversion from qutip DIA to dynamiqs DIA, but it's rather easy to do if we check isinstance(some_qobj._data, qutip.core.data.Dia) and then run some_qobj._data.to_scipy() and extract the diagonals and offsets from this. I was simply not sure whether we wanted to do that or not.
Related to DYN-191

Replaced by https://github.com/dynamiqs/dynamiqs/pull/733.


Debug config works / Release config does not

i have this config
// android/app/build.graddle

apply plugin: "com.android.application"

project.ext.envConfigFiles = [
    debug: ".env.dev",
    release: ".env.prod",
]

apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"

with .env.dev and .env.prod files in the project root
if i run react-native run-android the everything works fine
but if i run react-native run-android --variant=release i get no values from the end file even if i see this output at build time
info Installing the app...

> Configure project :app
Reading env from: .env.prod

> Task :app:generateReleaseBuildConfig
Reading env from: .env.prod

> Task :app:bundleReleaseJsAndAssets
warning: the transform cache was reset.
                 Welcome to React Native!
                Learn once, write anywhere

i don't know what's wrong. any thots?

i found the fix in this comment


netplugin's daemon should take it's config as an argument

Right now the netplugin's configuration (statedriver, network driver configurations etc) are statically defined in netd.go. Need to be able to take the configuration as an argument, to be able to support more variety of drivers.

fixed as part of #61


[Duplicate] Use Publish/Subscribe Patten over zmq

Sorry, I had created duplicate issue by accident (with mobile)...
I will update this issue if there is new issue that need to be created.

Don't worry, just close this one. ;)


Bugfix/gql

There is a bug in the gql api calls that we are trying to fix!
This PR was branched off move-off-crm
@oudeismetis @lakardion  I set this to do not merge to draw attention before merging, I had manually set this to run against gql  in the file react_template, I think we should keep it to react, so before merging we should change it back!

LGTM -- It's working in the review app at this point.
I will give a shot to moving the link to the proxy instead. Probably will break the review app with it until I get it right

For some reason Proxying does not set the right request headers:
<Proxied request local>
POST /graphql HTTP/1.1
Host: localhost:8089
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/110.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://localhost:8089/log-in
content-type: application/json
x-csrftoken:
Content-Length: 283
Origin: http://localhost:8089
Connection: keep-alive
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin

Comparing to a successful request on the review app
<Successful request from review app>
POST /graphql HTTP/1.1
Accept-Encoding: gzip, deflate, br
Accept-Language: en-US,en;q=0.9
Connection: keep-alive
Content-Length: 283
Cookie: csrftoken=ZUnvTGmpMuTJq03MjtWRgy6TH5PmULb0GNaLlNsnJU4oFXReXnTocnZuxjM0GXuK
DNT: 1
Host: tn-spa-bootstrapper-pr-157.herokuapp.com
Origin: https://tn-spa-bootstrapper-pr-157.herokuapp.com
Referer: https://tn-spa-bootstrapper-pr-157.herokuapp.com/log-in
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/<IP_ADDRESS> Safari/537.36
accept: */*
content-type: application/json
sec-ch-ua: "Not A(Brand";v="24", "Chromium";v="110"
sec-ch-ua-mobile: ?0
sec-ch-ua-platform: "macOS"
x-csrftoken: ZUnvTGmpMuTJq03MjtWRgy6TH5PmULb0GNaLlNsnJU4oFXReXnTocnZuxjM0GXuK

Seems like the cookie is not being sent (and there's no csrftoken on our side either)

Sorry @lakardion I didn't see you working in this PR.
I just fixed it up based on the recent merge. I don't think anything got lost in translation (kinda hard to see). But if we did lose something I have a backup copy of the original branch locally.

Sorry @lakardion I didn't see you working in this PR. I just fixed it up based on the recent merge. I don't think anything got lost in translation (kinda hard to see). But if we did lose something I have a backup copy of the original branch locally. @oudeismetis

No worries, I only branched locally but got the mentioned CORS errors so did not commit it since this was working in the review app.

Looks like we got the same Cypress error here that the main branch has. So I guess something changed before we merged?? Tests were passing on the PR so I'm a little confused.
In the meantime I'm going to quickly test graphql again.

looks like you broke the vue side of things. Thats whats happening.
And since this PR doesn't have an obvious react side change it's defaulting to Vue.
I don't have time right now to work on this but I should have time later today.

I think I can make an improvement to the vue_or_react.sh script.
Right now it's looking at file extensions to determine what has been touched more.
Simpler/better would be to look at the file paths. That way changes to things like README files would still count as vue or react change.

@lakardion Is the issue you described above still relevant to this PR? The other criteria for the PR are met.

@lakardion Is the issue you described above still relevant to this PR? The other criteria for the PR are met. @oudeismetis

I think it is relevant. From local I cannot hit the review api, getting CORS errors, just tried again, both with 8080 and 8089 as ports.

Tbh I never ran a TN backend so that's where my concern came from.
But yeah your point is totally right. Anyway I always found practical to hook up someone else's review app to test their things without needing to check out and run their branch

The goal (of course) is that it should take no time at all to spin up and tare down a locally running instance for any project. (especially if you are hopping between projects)
I would test both versions at some point if you can (docker and non-docker) to see what issues you run into.
I think there are still one or two bugs/hiccups people have run into (python virtual environment for one).

Does the behavior here now do what you need?

The goal (of course) is that it should take no time at all to spin up and tare down a locally running instance for any project. (especially if you are hopping between projects)
I would test both versions at some point if you can (docker and non-docker) to see what issues you run into.
I think there are still one or two bugs/hiccups people have run into (python virtual environment for one).

Sure I will give this a shot. William just shared a doc you guys have for the usual setup so I'll follow that one

I'd try following the docs right here in the bootstrapper. After you generate a project locally the README files in the root as well as the client and server directories should be all one needs to properly get things running with or without docker.

Okay I was not able to run the client docker.
Seems like esbuild installs differently based on the OS, since I'm in mac and docker is running linux my node_modules are not working
https://github.com/vitejs/vite/issues/2671
Tried a couple of things but could not get it to work
Aside from that running the client outside of docker seemed to get to the api fine.


Achievement diary -some requirements missing

Easy Achievement Diary for Ardougne - "Go out fishing on the Fishing Trawler" - doesn't display the 15 fishing requirement next to it.
Also, for Falador easy diary, you are required to fix a broken strut in the motherlode mine - does this require 30 mining to enter mlm or can you enter at any level?
Fremenik easy diary - "Enter the troll stronghold" - should display requires death plateau and started troll stronghold
Kandarin Easy diary - kill 1 of each elemental in the workshop - requires starting elemental workshop

Also found:
Kandarin Hard -  Kill a shadow hound in the Shadow Dungeon - requires starting Desert Treasure and 53 thieving


Send api_key in header

Hi, guys!
I think it would be really convenient to send api_key in some kind of header and not only in query parameter. Is it possible as documentation does not mention such possibility?

Currently it is not, although we could add support for the Authorization HTTP header.
Is there a technical reason you'd like to do this?

Today I've been investigating large production issue and it turned out I've made mistake in adding api_key to other query parameters in one of the calls. As a result api_key was not detected by opendota and it led to rate limiting and feature degradation in our application. I thought that header will make it more foolproof. And the other concern is accidently sending sensitive information to http endpoint instead of https.


Is it possible to connect with other dash component?

Question
Very nice package!
I am wondering is it possible to use vizro with other components of dash?
For example, the components in dash_bio. https://dash.plotly.com/dash-bio/nglmoleculeviewer
Code/Examples
No response
Which package?
vizro
Code of Conduct

[X] I agree to follow the Code of Conduct.

Hi @yaoyi92 and thanks for the great question!
Vizro is built on top of Dash which makes it really flexible. In case you want to add a custom component to the Vizro dashboard, this (link to Vizro docs) is probably the best documentation starting point. As dash_bio creates a standalone chart (and not the native Plotly chart), it means that the best way to wrap the dash_bio chart into the Vizro dashboard is to utilise the custom figures feature.
Here's an example on how to add a dash_bio.NglMoleculeViewer into Vizro dashboard. (example similar to this one -> https://dash.plotly.com/dash-bio/nglmoleculeviewer#nglmoleculeviewer).
There are a few useful Vizro documentation links shared in the code below. You can find them in the comments that start with "# TODO - Docs: ".
"""Dev app to try things out."""
import dash_bio as dashbio
import dash_bio.utils.ngl_parser as ngl_parser
import pandas as pd

import plotly.io as pio

import vizro.models as vm
import vizro.plotly.express as px
from vizro import Vizro
from vizro.models.types import capture

data_path = "https://raw.githubusercontent.com/plotly/datasets/master/Dash_Bio/Molecular/"

# TODO - Docs: custom figures -> https://vizro.readthedocs.io/en/stable/pages/user-guides/custom-figures/
# TODO - Docs: Additional example on how to customise custom figure argument (pdb_id) with Vizro Parameter
# -> https://vizro.readthedocs.io/en/stable/pages/user-guides/custom-figures/#dynamic-number-of-cards
@capture("figure")
def custom_bio_molecule_figure(data_frame, pdb_id):
    data_list = [ngl_parser.get_data(data_path=data_path, pdb_id=pdb_id, color='red', reset_view=True, local=False)]

    return dashbio.NglMoleculeViewer(
        id="ngl_molecule_viewer_id",
        data=data_list,
        molStyles={
            "representations": ["cartoon", "axes+box"],
            "chosenAtomsColor": "white",
            "chosenAtomsRadius": 1,
            "molSpacingXaxis": 100,
        },
    )

page = vm.Page(
    title="Action with clickData as input",
    components=[
        # Here we send the empty pd.DataFrame() object to figure "data_frame", because the dashbio.NglMoleculeViewer "data" argument is not in the plotly standard format.
        vm.Figure(id="my_bio_figure", figure=custom_bio_molecule_figure(data_frame=pd.DataFrame(), pdb_id="1BNA")),
    ],
    controls=[
        # TODO - Docs: Vizro parameters -> https://vizro.readthedocs.io/en/stable/pages/user-guides/parameters/#dynamic-data-parameters
        vm.Parameter(
            targets=["my_bio_figure.pdb_id"],
            selector=vm.Dropdown(options=["1BNA", "MPRO", "PLPR", "5L73", "NSP2"], value="1BNA", multi=False),
        ),
    ]
)

dashboard = vm.Dashboard(pages=[page], theme="vizro_light")

if __name__ == "__main__":
    Vizro().build(dashboard).run()

P.S. The dashbio.NglMoleculeViewer component is not a native Plotly chart, which means its background color cannot be changed directly via global plotly.io (pio) templates. However, you can synchronise the background color of the NglMoleculeViewer with the Vizro application's background (including theme switching) by adding custom CSS.
For the example above, your custom CSS file might include the following styles:
#ngl_molecule_viewer_id > canvas {
    /* rgba(0, 0, 0, 0) makes the background colour transparent */
    background-color: rgba(0, 0, 0, 0) !important;
}


Slow compilation when node_modules is present

Hi, even when I move my tsconfig.json into the child directory out of reach of node_modules the compilation is still 10-15 times slower when node_modules directory is present. My current directory structure is following:
appRoot
|- tsconfig.json
node_modules

my tsconfig.json is following:
...
  "filesGlob": [
    "!node_modules",
    "**/*.ts",
    "**/*.tsx"
  ],
  "exclude": [
    "node_modules"
  ],
...

Any idea on how can I resolve long compilation times? It is not a stressing issue.

Is there really that nothing can be done? I just move the nodes modules directory outside of the project and compilation is 10times faster. All the ignore flags seem not to work. Is there any way I could ignore it?

I had the same problem before. Try on Preferences->Core settings-> Ignore files, add node_modules.
That was the only workaround I found.

I have (or had) the same problem on a Angular2 Web-Application I am currently working on.
I could work with Atom Typescript for quite a while, without any (or only very few and rare) problems. But suddenly the "pending request" used to constantly grow, whenever i open a file and start coding. Also saving a file, while continuing to code wasn't possible.
I can't remember, when the problem first occured. It might be an update of Angular2 or another npm package, which added more files, it might be a change in the files (tsconfig or something like that) I made or even an update of Atom Typescript.
However today it seems to work a lot better (faster) then yesterday. The things i changed are the following:

Update from Angular2 Beta 14 to Beta 16 and update of Zone.JS from 0.6.6 to 0.6.12
Changed the filesGlob-pattern from "!./node_modules//*.ts" to "!.//node_modules/**"
Added the exclude property with the value "["./**/node_modules"]"

I am not sure if any of this things reduced the lag or if it is just random. At least i can work with it today, without having to wait a few minutes after every "ctrl+s"...


Port the dialogue plugin to Kotlin

Tracker issue for checklist item in #338

This involves fixing some known bugs that exist in the ruby version (#133, possibly #383). The statement dialogue interface ids currently used are also a bit suspect.


[fix][broker] Fix skip message API when hole messages exists

Fixes #20262

Motivation
When there are hole messages, there is a bug in the API of skipping the message, please refer to the issue for the specific reason
Modifications
Remove recyclePositionRangeConverter,  revert to normal loop.
Verifying this change

[ ] Make sure that the change passes the CI checks.

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

[ ] Dependencies (add or upgrade a dependency)
[ ] The public API
[ ] The schema
[ ] The default values of configurations
[ ] The threading model
[ ] The binary protocol
[ ] The REST endpoints
[ ] The admin CLI options
[ ] The metrics
[ ] Anything that affects deployment

Documentation

[ ] doc
[ ] doc-required
[x] doc-not-needed
[ ] doc-complete

Matching PR in forked repository
PR in forked repository: (https://github.com/crossoverJie/pulsar/pull/8)

@poorbarcode @Technoboy- Please help take a look, thanks. 😸

Codecov Report

Merging #20326 (2004bf8) into master (5d5ec94) will decrease coverage by 0.55%.
The diff coverage is n/a.

@@             Coverage Diff              @@
##             master   #20326      +/-   ##
============================================
- Coverage     37.92%   37.37%   -0.55%
- Complexity    12694    13057     +363
============================================
  Files          1691     1690       -1
  Lines        129047   133933    +4886
  Branches      14070    15267    +1197
============================================
+ Hits          48942    50062    +1120
- Misses        73777    77343    +3566
- Partials       6328     6528     +200

Flag
Coverage Δ

inttests
24.13% <ø> (-0.05%)
:arrow_down:

systests
24.90% <ø> (-0.29%)
:arrow_down:

unittests
32.92% <ø> (-0.54%)
:arrow_down:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files
Coverage Δ

...che/bookkeeper/mledger/impl/ManagedCursorImpl.java
48.87% <ø> (-0.28%)
:arrow_down:

... and 152 files with indirect coverage changes

As discussed on the mailing list https://lists.apache.org/thread/w4jzk27qhtosgsz7l9bmhf1t7o9mxjhp, there is no plan to release 2.9.6, so I am going to remove the release/2.9.6 label


Client crash on teleporting to another dimension

If I try to TP to another dimension (the Nether, the End etc.) using console commands in radio's range, client crashes, but not every time.
OpenFM version: <IP_ADDRESS>
Forge: <IP_ADDRESS>8 (Client)
Server: KCauldron-1.7.10-1492.152
Crash log: https://gist.github.com/Fingercomp/3c04e8fa137e37573757

What is the URL the radio is streaming?

I always use the same forge version for client and server. I have had very odd things happen due to this.

I've been teleporting between the nether/end/overworld for the last 10 minutes and have yet to experience a crash in my dev environment.

What are you using to Tp? Essentials? other? MultiWorld? Multiverse? plugin? mod?

/cofhcore tpx

I meant he's using cauldron and it might be some plugin that is just goofing up.
:-)

CoFH tpx, MultiWorld /goto, Essentials /warp, Vanilla /tp. Also crashed in single-player world.
URLs: http://listen.radionomy.com/DeepHouse, http://streaming.radionomy.com/Dance90 etc

I still can't reproduce this, nor can I understand HOW that code is being called, those are MP3 streams, going through the MP3 decoder, somehow calling the OGG .stop() method and hitting MP3's stop event.

Please try build 22 as soon as it's approved on curse.

Any change @Fingercomp ?

Client doesn't crash now, thanks.

So strange... still trying to figure out how you got into the OGG player from the MP3 player... o_O  Glad it's fixed

After server reboot, client crashes every time on TP. =
Crash: http://puu.sh/lpkEx/48d4c987e0.png
OpenFM: <IP_ADDRESS>

I can't reproduce this on plain forge.  My only guess is Cauldron is doing something funky.

Start removing mods and see which one has the compatibility issue.
Also does it crash when you remove OpenFM?
Remove OpenFM first and see if your still getting the crash.

Make sure the configs are the same from the server to the client, also remove client fixer while doing this


thisoldhouse.com has changed their video urls (again)

This is related to closed issue #10837
Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.11.22. If it's not read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2016.11.22

Before submitting an issue make sure you have:

[x] At least skimmed through README and most notably FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[ ] Question
[ ] Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue

If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
Add -v flag to your command line you run youtube-dl with, copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):
J:\Media\Videos>youtube-dl.exe https://www.thisoldhouse.com/tv-episode/ask-toh-s
helf-rough-electric -v
[debug] System config: []
[debug] User config: []
[debug] Command-line args: ['https://www.thisoldhouse.com/tv-episode/ask-toh-she
lf-rough-electric', '-v']
[debug] Encodings: locale cp1252, fs mbcs, out cp1252, pref cp1252
[debug] youtube-dl version 2016.11.22
[debug] Python version 3.4.4 - Windows-7-6.1.7601-SP1
[debug] exe versions: ffmpeg N-82151-g1e660fe, ffprobe N-82151-g1e660fe
[debug] Proxy map: {}
WARNING: Falling back on generic information extractor.
ERROR: Unsupported URL: https://www.thisoldhouse.com/tv-episode/ask-toh-shelf-ro
ugh-electric
Traceback (most recent call last):
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp0yt5fyka\bu
ild\youtube_dl\YoutubeDL.py", line 694, in extract_info
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp0yt5fyka\bu
ild\youtube_dl\extractor\common.py", line 357, in extract
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmp0yt5fyka\bu
ild\youtube_dl\extractor\generic.py", line 2443, in _real_extract
youtube_dl.utils.UnsupportedError: Unsupported URL: https://www.thisoldhouse.com
/tv-episode/ask-toh-shelf-rough-electric...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Single video: https://www.thisoldhouse.com/tv-episode/ask-toh-shelf-rough-electric

Description of your issue, suggested solution and other information
This is an easy one. The extractor for AskThisOldHouse.com works fine for most urls except one which for some reason is the only one that deviates from the pattern of the other urls. What is needed is a small change in youtube-dl/youtube_dl/extractor/thisoldhouse.py at line #8.
from
_VALID_URL = r'https?://(?:www\.)?thisoldhouse\.com/(?:watch|how-to)/(?P<id>[^/?#]+)'
to
  _VALID_URL = r'https?://(?:www\.)?thisoldhouse\.com/(?:watch|how-to|tv-episode)/(?P<id>[^/?#]+)'

Thanks for the report and the fix. It will be included in the next version.


TTL performance

Hi, this is not really an issue but something I need to document.
After re-writing my Java code to take advantage of TTL, I'm now being asked to explain how it works. I understand that the process starts from the time the transaction is closed, but need to know if there are any limitations when dealing with millions of vertices and edges all created within a short period of time.
I've been struggling with Gremlin scripts in an attempt to measure the performance of TTL in Titan/Cassandra but they're proving difficult and unreliable. Can someone please shed some light on how the internals work and if there's a reliable way of performing such measurements.
Thanks.

Please ask questions on the mailing list, not the bug tracker:
<EMAIL_ADDRESS>


Add 3.1.12 FR patch release to main

API change check
API changes are not detected in this pull request.


356 console errors

Coverage remained the same at 80.53% when pulling 2714ecd1f68872ca70c602e09c557de905e3a506 on ivarni:356-console-errors into 0893816db4935ec05eb5efeeeb7024dc2a5a3754 on SpareBank1:develop.

Coveralls har fortsatt tatt ferie ser det ut som, so this merge is above my paygrade


clarify installation process for non-user installs.

A more extensive rewrite of the installation instructions
to build on your work about setting environment variables.

thanks, I'll get this merged in the main repo pr


Pod install Alamofire linker error

Created a new project, and using pod install Alamofire; then just run get apple mach-o linker error. Please check the screen capture below, thanks

Can you please provide full details including: versions of Xcode, Alamofire, Swift, CocoaPods, OS, etc?

Xcode version: Version 8.3.3 (8E3004b)
Alamofire: pod 'Alamofire', '~> 4.4'
Swift: 3
CocoaPods: 1.2.1
Mac mini (Late 2014)
macOS Sierra version 10.12.5
Thanks for your reply, i tried at home with the same project, and  it works fine. so i am not sure what cause the problem.

What platform are you trying to build against (iOS, macOS, tvOS, watchOS)?

the iOS for iPad

I installed it on my macBook PRO and i try to build iOS program for iPhone over swift.
Thanks

11:01, vincentSuwenliang<EMAIL_ADDRESS>작성:

the iOS for iPad
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub https://github.com/Alamofire/Alamofire/issues/2171#issuecomment-310550043, or mute the thread https://github.com/notifications/unsubscribe-auth/AKrSePHLEmQMUBurTmYEVctnQ-zpP05Jks5sGxxegaJpZM4OAyTj.

What version of iOS is the iPad running and which model of iPad is it?

The more info you can provide us the better. Also, would it be possible for you to submit a sample project? Might help us narrow down the problem.

This is a duplicate of #2164, please move any addition input to that issue.


GuiButtons in GuiGroupbox are not clickeable

Hi! Im trying to do a HUD for my game using raygui, but when I try to click the GuiButtons it doesnt detect the event. They render correctly but seems imposible to make it work. I used the same buttons in another screens but the buttons work correctly there. Someone can help me?

Image of the actual Game.
The code of that window is:
case GAME:
         BeginMode2D(game->board->camera);
             DrawTexture(game->board->mapBackground, 0, 0, WHITE);
             DrawTexture(game->board->map, 0, 0, WHITE);
             MovementInBoard(game);

             int initXHUD = (int)((game->board->camera.target.x)-960);
             int initYHUD = (int)((game->board->camera.target.y)+270);
             DrawRectangle(initXHUD,initYHUD,game->screenWidth,game->screenHeight/4,DARKGRAY);

             GuiGroupBox((Rectangle){ initXHUD + 25, initYHUD + 30, 125, 150 }, "OPTIONS");
             if (GuiButton((Rectangle){ initXHUD + 30, initYHUD + 40, 115, 30 }, "Tirar Dado")) {
                    fprintf(stdout,"Hola");
              }
              if (GuiButton((Rectangle){ initXHUD + 30, initYHUD + 75, 115, 30 }, "Suggest")) {
                    fprintf(stdout,"Hola");
               }
              if (GuiButton((Rectangle){ initXHUD + 30, initYHUD + 110, 115, 30 }, "Notebook")) {
                    fprintf(stdout,"Hola");
               }
           EndMode2D();
           break;

The unique thing that is diferent from the other screens is the use of BeginMode2D. I dont know if that is something worth to say.  Also I tried some other elements like GuiDropdownBox and didnt work neither.

It seems that the Camera2D transformations applied by BeginMode2D() do not apply to GUI elements input, only applied to drawing, so GUI elements are drawn in a different position than the one checked.
To solve that you should use raylib functions: SetMouseScale() and SetMouseOffset() to apply the same transformation to mouse input than the one applied by Camera2D.

It seems that the Camera2D transformations applied by BeginMode2D() do not apply to GUI elements input, only applied to drawing, so GUI elements are drawn in a different position than the one checked.
To solve that you should use raylib functions: SetMouseScale() and SetMouseOffset() to apply the same transformation to mouse input than the one applied by Camera2D.

If people like me see this in the future, Ray should probably put a fix in for it, but here's what ray basically means.
This code works specifically for C# but should be really easy to translate to anything else.
Raylib.SetMouseOffset((int)camera.target.X, (int)camera.target.Y);
Raylib.SetMouseScale(camera.zoom,camera.zoom);


[HW] Alan Kwok Homework

Name: Alan Kwok
Email<EMAIL_ADDRESS>Linkedin Profile: https://www.linkedin.com/in/alan-k-0593a0109/
Attach the homework screenshots below for both step II and step III:

Hey Alan Kwok, great job! Congrats! Here is your badge! https://api.badgr.io/public/assertions/C6hB4l07QvmuAms2ryf1FA


yaws_api:url_encode/1 Exception: function_clause

Could yaws_api:url_encode/1 be made to support binary? I often get a crash like this:
ERROR erlang code threw an uncaught exception:
 File: appmod:0
Class: error
Exception: function_clause
Req: {http_request,'GET',{abs_path,"/"},{1,1}}
Stack: [{yaws_api,url_encode,

There are other issues with that function. For example it converts URL to binary according to file:native_name_encoding() which is only correct when serving files from the system. But request can also be handled by an appmod i.e. it has nothing to do with file path. It all accidentally works out because the emulator defaults to utf8.

The call to file:native_name_encoding/0 is an attempt to guess the native encoding of the system. Yes, it's flawed, since the +pc startup option to the erl emulator can change things. Perhaps using io_lib:printable_list/1 to decide about the URL argument would be better, but I'd never claim to be an expert in these matters.
As for supporting binary, sure, I'll try to add that over the next few days.

Please give this branch a try when you get a chance, feedback welcomed.

Seems to be working well. Thanks.

@vinoski I just discovered a bug from this commit. 404 is returned for any request path that has unicode chars in it. For example place a file 你好.txt in a directory that is served by yaws and try to view it.
The requested URL /%E4%BD%A0%E5%A5%BD.txt was not found on this server.

Could you open a new issue for that? It's easier to track that way. Thanks.


GSD: bypass of DRM to make product work

https://www.google.com/search?q=canon+drm+bypass
https://www.vice.com/en/article/88g835/canon-tells-customers-to-break-its-printer-cartridge-drm-due-to-chip-shortage

Added to CWE backlog


Duplicate error messages with Visual Studio 2015 and TS2.0

VS2015 with TS2.0 shows duplicate error messages when typescript is installed in global by npm (npm i -g typescript@beta). These duplicate errors are shown after type checks for unopened files.
TypeScript Version:  2.0

Can you share more details on how to reproduce this?

How to:

Add invalid code such as var a; in TypeScript project.
Unload the project.
Run $ npm i -g<EMAIL_ADDRESS>Reload the project.
Wait a few minutes (don't open any files).
Duplicate errors are shown in the error list automatically.

Severity	Code	Description	Project	File	Line	Suppression State
Error	TS6133	'a' is declared but never used.	localsocket
Error	TS7005	Variable 'a' implicitly has an 'any' type.	localsocket
Error	TS6133	'a' is declared but never used.	localsocket
Error	TS7005	Variable 'a' implicitly has an 'any' type.	localsocket

Can you repro?

Changed "reload project" to "restart vs".

i see it now. thanks.

I can repro this without installing TypeScript from npm, or reloading the project... however this seems to be an issue with some VS infrastructure, and not TypeScript specific. Looking for the right team to take a look here.

Assuming this has been fixed by now...


Main page issue

SWS extensions does not include ReaPack. You made a mistake)
ReaPack official site

Thanks! Just fixed the Readme


Implement a Season model and associated functions

Create a season.cairo PoC model to manage in-game seasons, enabling time-limited content.
You can think about these fields, feel free to change, delete or modify them according with our current backend structure:

season_id: Unique ID
name: Season name
start_date / end_date: Start and end timestamps
is_active

Dynamic arrays (using Alexandria library): https://github.com/keep-starknet-strange/alexandria

active_players: List of players IDs

Feel free to implement the following core functions:
create_season, update_season, get_season, is_season_active, get_active_seasons.
You are encouraged to add any additional functions or operations you believe are necessary to improve the model's functionality or better integrate it into the game.
Thanks for your time, please send a comment with your approach/solution, be creative and use a technical explanation and avoid ChatGPT or AI comments.

Could I grab this task?

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged:
software engineering background, backend & smart contract dev with contribution to similar tasks(https://app.onlydust.com/u/Josh-121) looking to make first contribution on this project
How I plan on tackling this issue
I have have a good understanding of this task and can create model,
work on feedback & recommendation ensuring contact. Can deliver within a day upon assignment

I am a C# developer with over 3 years experience providing solutions. i believe i can provide solution to this issue. can i take it on?

Let me try this one!

May I pick this up?

I am applying to this issue via OnlyDust platform.
My background and how it can be leveraged:
software engineering background, backend & smart contract dev with contribution to similar tasks(https://app.onlydust.com/u/Josh-121) looking to make first contribution on this project
How I plan on tackling this issue I have have a good understanding of this task and can create model, work on feedback & recommendation ensuring contact. Can deliver within a day upon assignment

Hi @Bosun-Josh121, if you need help or guidance just let me know. You can review the project's structure and other models/functions to have a better idea 🫡


rocksdb: 8.3.2 -> 8.9.1

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/facebook/rocksdb/releases.
meta.description for rocksdb is: A library that provides an embeddable, persistent key-value store for fast storage
meta.homepage for rocksdb is: https://rocksdb.org
meta.changelog for rocksdb is: https://github.com/facebook/rocksdb/raw/v8.5.3/HISTORY.md
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 8.5.3 with grep in /nix/store/5kjahlfmmjfx6lav4c6653m0lp8n3wkv-rocksdb-8.5.3
found 8.5.3 in filename of file in /nix/store/5kjahlfmmjfx6lav4c6653m0lp8n3wkv-rocksdb-8.5.3

Rebuild report (if merged into master) (click to expand)

15 total rebuild path(s)

15 package rebuild(s)

First fifty rebuilds by attrpath
chickenPackages_5.chickenEggs.rocksdb
haskellPackages.haskoin-node
haskellPackages.rocksdb-haskell
haskellPackages.rocksdb-haskell-jprupp
haskellPackages.rocksdb-query
matrix-conduit
nim2Packages.rocksdb
nim2Packages.spry
nimPackages.rocksdb
nimPackages.spry
polkadot
rocksdb
solana-cli
sortmerna
surrealdb

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/5kjahlfmmjfx6lav4c6653m0lp8n3wkv-rocksdb-8.5.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A rocksdb https://github.com/r-ryantm/nixpkgs/archive/1096d4f14be0dabb13fdee689fcf2d6b6a00e6c5.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/1096d4f14be0dabb13fdee689fcf2d6b6a00e6c5#rocksdb

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/5kjahlfmmjfx6lav4c6653m0lp8n3wkv-rocksdb-8.5.3
ls -la /nix/store/5kjahlfmmjfx6lav4c6653m0lp8n3wkv-rocksdb-8.5.3/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages failed to build:

matrix-conduit
nim2Packages.spry
surrealdb

8 packages built:

chickenPackages_5.chickenEggs.rocksdb
nim2Packages.rocksdb
nimPackages.rocksdb
nimPackages.spry
polkadot
rocksdb
solana-cli
sortmerna

Maintainer pings
cc @adevress @magenbluten for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/facebook/rocksdb/releases.
meta.description for rocksdb is: A library that provides an embeddable, persistent key-value store for fast storage
meta.homepage for rocksdb is: https://rocksdb.org
meta.changelog for rocksdb is: https://github.com/facebook/rocksdb/raw/v8.5.4/HISTORY.md
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 8.5.4 with grep in /nix/store/9adgvrlag7nikp89924bq5cmpvmn275q-rocksdb-8.5.4
found 8.5.4 in filename of file in /nix/store/9adgvrlag7nikp89924bq5cmpvmn275q-rocksdb-8.5.4

Rebuild report (if merged into master) (click to expand)

15 total rebuild path(s)

15 package rebuild(s)

First fifty rebuilds by attrpath
chickenPackages_5.chickenEggs.rocksdb
haskellPackages.haskoin-node
haskellPackages.rocksdb-haskell
haskellPackages.rocksdb-haskell-jprupp
haskellPackages.rocksdb-query
matrix-conduit
nim2Packages.rocksdb
nim2Packages.spry
nimPackages.rocksdb
nimPackages.spry
polkadot
rocksdb
solana-cli
sortmerna
surrealdb

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/9adgvrlag7nikp89924bq5cmpvmn275q-rocksdb-8.5.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A rocksdb https://github.com/r-ryantm/nixpkgs/archive/2284282f9dca070ada6c5779aef5d09366d6fc12.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/2284282f9dca070ada6c5779aef5d09366d6fc12#rocksdb

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/9adgvrlag7nikp89924bq5cmpvmn275q-rocksdb-8.5.4
ls -la /nix/store/9adgvrlag7nikp89924bq5cmpvmn275q-rocksdb-8.5.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages failed to build:

matrix-conduit
nim2Packages.spry
surrealdb

8 packages built:

chickenPackages_5.chickenEggs.rocksdb
nim2Packages.rocksdb
nimPackages.rocksdb
nimPackages.spry
polkadot
rocksdb
solana-cli
sortmerna

Maintainer pings
cc @adevress @magenbluten for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/facebook/rocksdb/releases.
meta.description for rocksdb is: A library that provides an embeddable, persistent key-value store for fast storage
meta.homepage for rocksdb is: https://rocksdb.org
meta.changelog for rocksdb is: https://github.com/facebook/rocksdb/raw/v8.6.7/HISTORY.md
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
found 8.6.7 with grep in /nix/store/px58iq7fhp60f9x160qcyrj1zrg6wpmj-rocksdb-8.6.7
found 8.6.7 in filename of file in /nix/store/px58iq7fhp60f9x160qcyrj1zrg6wpmj-rocksdb-8.6.7

Rebuild report (if merged into master) (click to expand)

15 total rebuild path(s)

15 package rebuild(s)

First fifty rebuilds by attrpath
chickenPackages_5.chickenEggs.rocksdb
haskellPackages.haskoin-node
haskellPackages.rocksdb-haskell
haskellPackages.rocksdb-haskell-jprupp
haskellPackages.rocksdb-query
matrix-conduit
nim2Packages.rocksdb
nim2Packages.spry
nimPackages.rocksdb
nimPackages.spry
polkadot
rocksdb
solana-cli
sortmerna
surrealdb

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/px58iq7fhp60f9x160qcyrj1zrg6wpmj-rocksdb-8.6.7 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A rocksdb https://github.com/r-ryantm/nixpkgs/archive/7e231518f23316d59ab546007dc864e6b1eee567.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/7e231518f23316d59ab546007dc864e6b1eee567#rocksdb

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/px58iq7fhp60f9x160qcyrj1zrg6wpmj-rocksdb-8.6.7
ls -la /nix/store/px58iq7fhp60f9x160qcyrj1zrg6wpmj-rocksdb-8.6.7/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @adevress @magenbluten for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/facebook/rocksdb/releases.
meta.description for rocksdb is: A library that provides an embeddable, persistent key-value store for fast storage
meta.homepage for rocksdb is: https://rocksdb.org
meta.changelog for rocksdb is: https://github.com/facebook/rocksdb/raw/v8.9.1/HISTORY.md
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 8.9.1 with grep in /nix/store/cy301xchkflrh0bq0nn0iy5k53v1n8df-rocksdb-8.9.1
found 8.9.1 in filename of file in /nix/store/cy301xchkflrh0bq0nn0iy5k53v1n8df-rocksdb-8.9.1

Rebuild report (if merged into master) (click to expand)

11 total rebuild path(s)

11 package rebuild(s)

First fifty rebuilds by attrpath
chickenPackages_5.chickenEggs.rocksdb
haskellPackages.haskoin-node
haskellPackages.rocksdb-haskell
haskellPackages.rocksdb-haskell-jprupp
haskellPackages.rocksdb-query
matrix-conduit
polkadot
rocksdb
solana-cli
sortmerna
surrealdb

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/cy301xchkflrh0bq0nn0iy5k53v1n8df-rocksdb-8.9.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A rocksdb https://github.com/r-ryantm/nixpkgs/archive/d35e670e253c3fe28c47dab1e998a6ab6c6da67c.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/d35e670e253c3fe28c47dab1e998a6ab6c6da67c#rocksdb

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/cy301xchkflrh0bq0nn0iy5k53v1n8df-rocksdb-8.9.1
ls -la /nix/store/cy301xchkflrh0bq0nn0iy5k53v1n8df-rocksdb-8.9.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages failed to build:

matrix-conduit
solana-cli
surrealdb

4 packages built:

chickenPackages_5.chickenEggs.rocksdb
polkadot
rocksdb
sortmerna

Maintainer pings
cc @adevress @magenbluten for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/facebook/rocksdb/releases.
meta.description for rocksdb is: A library that provides an embeddable, persistent key-value store for fast storage
meta.homepage for rocksdb is: https://rocksdb.org
meta.changelog for rocksdb is: https://github.com/facebook/rocksdb/raw/v8.10.0/HISTORY.md
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 8.10.0 with grep in /nix/store/088w296jqdpbvnr61fzgnkinzrf9i06b-rocksdb-8.10.0
found 8.10.0 in filename of file in /nix/store/088w296jqdpbvnr61fzgnkinzrf9i06b-rocksdb-8.10.0

Rebuild report (if merged into master) (click to expand)

12 total rebuild path(s)

12 package rebuild(s)

First fifty rebuilds by attrpath
chickenPackages_5.chickenEggs.rocksdb
haskellPackages.rocksdb-haskell
haskellPackages.rocksdb-haskell-jprupp
haskellPackages.rocksdb-query
matrix-conduit
polkadot
rocksdb
solana-cli
solana-validator
sortmerna
stalwart-mail
surrealdb

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/088w296jqdpbvnr61fzgnkinzrf9i06b-rocksdb-8.10.0 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A rocksdb https://github.com/r-ryantm/nixpkgs/archive/1777f6c1d20c5d3466260a9a4faa99a3db447f87.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/1777f6c1d20c5d3466260a9a4faa99a3db447f87#rocksdb

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/088w296jqdpbvnr61fzgnkinzrf9i06b-rocksdb-8.10.0
ls -la /nix/store/088w296jqdpbvnr61fzgnkinzrf9i06b-rocksdb-8.10.0/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @adevress @magenbluten for testing.

@wegank you put this in draft because of potential breakage ?
(just wondering, because I would like to make the update, currently running a nixpkgs-review to just make sure what breaks exactly).

Alright, the rust rocksdb crate is at 0.21.0 which handles rocksdb 8.1 , so basically this update fails everything.
Until there is a new rust crate release and the upstream projects update, we basically can't merge this PR.

@ofborg build matrix-conduit

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

4 packages failed to build:

matrix-conduit
sortmerna
stalwart-mail
surrealdb

12 packages built:

chickenPackages_5.chickenEggs.rocksdb
haskellPackages.rocksdb-haskell
haskellPackages.rocksdb-haskell-jprupp
haskellPackages.rocksdb-haskell-jprupp.doc
haskellPackages.rocksdb-haskell.doc
haskellPackages.rocksdb-query
haskellPackages.rocksdb-query.doc
polkadot
rocksdb
rocksdb.tools
solana-cli
solana-validator

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/facebook/rocksdb/releases.
meta.description for rocksdb is: A library that provides an embeddable, persistent key-value store for fast storage
meta.homepage for rocksdb is: https://rocksdb.org
meta.changelog for rocksdb is: https://github.com/facebook/rocksdb/raw/v8.10.2/HISTORY.md
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 8.10.2 with grep in /nix/store/lyiaac5h43n5a4w9s3r9y4c4s1gjkvmw-rocksdb-8.10.2
found 8.10.2 in filename of file in /nix/store/lyiaac5h43n5a4w9s3r9y4c4s1gjkvmw-rocksdb-8.10.2

Rebuild report (if merged into master) (click to expand)

12 total rebuild path(s)

12 package rebuild(s)

First fifty rebuilds by attrpath
chickenPackages_5.chickenEggs.rocksdb
haskellPackages.rocksdb-haskell
haskellPackages.rocksdb-haskell-jprupp
haskellPackages.rocksdb-query
matrix-conduit
polkadot
rocksdb
solana-cli
solana-validator
sortmerna
stalwart-mail
surrealdb

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/lyiaac5h43n5a4w9s3r9y4c4s1gjkvmw-rocksdb-8.10.2 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A rocksdb https://github.com/r-ryantm/nixpkgs/archive/ec2c779356a8e8aa6c8b280809521a8679700914.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/ec2c779356a8e8aa6c8b280809521a8679700914#rocksdb

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/lyiaac5h43n5a4w9s3r9y4c4s1gjkvmw-rocksdb-8.10.2
ls -la /nix/store/lyiaac5h43n5a4w9s3r9y4c4s1gjkvmw-rocksdb-8.10.2/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @adevress @magenbluten for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/facebook/rocksdb/releases.
meta.description for rocksdb is: A library that provides an embeddable, persistent key-value store for fast storage
meta.homepage for rocksdb is: https://rocksdb.org
meta.changelog for rocksdb is: https://github.com/facebook/rocksdb/raw/v8.11.3/HISTORY.md
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 8.11.3 with grep in /nix/store/wl18n9aak34s0mz2v40fkai2ynn5zpv6-rocksdb-8.11.3
found 8.11.3 in filename of file in /nix/store/wl18n9aak34s0mz2v40fkai2ynn5zpv6-rocksdb-8.11.3

Rebuild report (if merged into master) (click to expand)

12 total rebuild path(s)

12 package rebuild(s)

First fifty rebuilds by attrpath
chickenPackages_5.chickenEggs.rocksdb
haskellPackages.rocksdb-haskell
haskellPackages.rocksdb-haskell-jprupp
haskellPackages.rocksdb-query
matrix-conduit
polkadot
rocksdb
solana-cli
solana-validator
sortmerna
stalwart-mail
surrealdb

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/wl18n9aak34s0mz2v40fkai2ynn5zpv6-rocksdb-8.11.3 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A rocksdb https://github.com/r-ryantm/nixpkgs/archive/02b58608a1b9cd39244fa6f62560e387199dfdf7.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/02b58608a1b9cd39244fa6f62560e387199dfdf7#rocksdb

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/wl18n9aak34s0mz2v40fkai2ynn5zpv6-rocksdb-8.11.3
ls -la /nix/store/wl18n9aak34s0mz2v40fkai2ynn5zpv6-rocksdb-8.11.3/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
nixpkgs-review took longer than 45m and timed out

Maintainer pings
cc @adevress @magenbluten for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/facebook/rocksdb/releases.
meta.description for rocksdb is: A library that provides an embeddable, persistent key-value store for fast storage
meta.homepage for rocksdb is: https://rocksdb.org
meta.changelog for rocksdb is: https://github.com/facebook/rocksdb/raw/v8.11.4/HISTORY.md
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 8.11.4 with grep in /nix/store/rqqkabynf3z6lmncla0hyvcix6r36759-rocksdb-8.11.4
found 8.11.4 in filename of file in /nix/store/rqqkabynf3z6lmncla0hyvcix6r36759-rocksdb-8.11.4

Rebuild report (if merged into master) (click to expand)

12 total rebuild path(s)

12 package rebuild(s)

First fifty rebuilds by attrpath
chickenPackages_5.chickenEggs.rocksdb
haskellPackages.rocksdb-haskell
haskellPackages.rocksdb-haskell-jprupp
haskellPackages.rocksdb-query
matrix-conduit
polkadot
rocksdb
solana-cli
solana-validator
sortmerna
stalwart-mail
surrealdb

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/rqqkabynf3z6lmncla0hyvcix6r36759-rocksdb-8.11.4 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A rocksdb https://github.com/r-ryantm/nixpkgs/archive/910656bfc910fa9b8ba3fa7e233f012872d2ad43.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/910656bfc910fa9b8ba3fa7e233f012872d2ad43#rocksdb

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/rqqkabynf3z6lmncla0hyvcix6r36759-rocksdb-8.11.4
ls -la /nix/store/rqqkabynf3z6lmncla0hyvcix6r36759-rocksdb-8.11.4/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

3 packages failed to build:

matrix-conduit
stalwart-mail
surrealdb

7 packages built:

chickenPackages_5.chickenEggs.rocksdb
polkadot
rocksdb
rocksdb.tools
solana-cli
solana-validator
sortmerna

Maintainer pings
cc @adevress @magenbluten for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://github.com/facebook/rocksdb/releases.
meta.description for rocksdb is: A library that provides an embeddable, persistent key-value store for fast storage
meta.homepage for rocksdb is: https://rocksdb.org
meta.changelog for rocksdb is: https://github.com/facebook/rocksdb/raw/v9.1.1/HISTORY.md
Updates performed

Version update

To inspect upstream changes

Release on GitHub

Compare changes on GitHub

Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 9.1.1 with grep in /nix/store/6arp2xnam6mmgr26w13z8fdfpa6mcc5b-rocksdb-9.1.1
found 9.1.1 in filename of file in /nix/store/6arp2xnam6mmgr26w13z8fdfpa6mcc5b-rocksdb-9.1.1

Rebuild report (if merged into master) (click to expand)

13 total rebuild path(s)

13 package rebuild(s)

First fifty rebuilds by attrpath

chickenPackages_5.chickenEggs.rocksdb
haskellPackages.rocksdb-haskell
haskellPackages.rocksdb-haskell-jprupp
haskellPackages.rocksdb-query
matrix-conduit
polkadot
rocksdb
solana-cli
solana-validator
sortmerna
stalwart-mail
surrealdb

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/6arp2xnam6mmgr26w13z8fdfpa6mcc5b-rocksdb-9.1.1 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A rocksdb https://github.com/r-ryantm/nixpkgs/archive/8738a5db9b65029039f66275ecf8d69bd896bb0a.tar.gz

Or:
nix build github:r-ryantm/nixpkgs/8738a5db9b65029039f66275ecf8d69bd896bb0a#rocksdb

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/6arp2xnam6mmgr26w13z8fdfpa6mcc5b-rocksdb-9.1.1
ls -la /nix/store/6arp2xnam6mmgr26w13z8fdfpa6mcc5b-rocksdb-9.1.1/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review --extra-nixpkgs-config '{ allowInsecurePredicate = x: true; }' run on x86_64-linux 1

3 packages failed to build:

matrix-conduit
stalwart-mail
surrealdb

7 packages built:

chickenPackages_5.chickenEggs.rocksdb
polkadot
rocksdb
rocksdb.tools
solana-cli
solana-validator
sortmerna

Maintainer pings
cc @adevress @magenbluten for testing.

Done in #305974


MPU Fault when running central coded bluetooth and ENC28J60 dhcpv4_client

Describe the bug
I am building the coded bluetooth gateway using nrf52840 and ENC28J60. Integrated between two examples:

https://github.com/nrfconnect/sdk-nrf/tree/master/samples/bluetooth/central_hr_coded
https://github.com/zephyrproject-rtos/zephyr/tree/master/samples/net/dhcpv4_client

I created two task:
void ethernet_task(void) {
  struct net_if *iface;

  printf("Run dhcpv4 client");

  net_mgmt_init_event_callback(&mgmt_cb, net_handler,
				NET_EVENT_IPV4_ADDR_ADD);
  net_mgmt_add_event_callback(&mgmt_cb);

  iface = net_if_get_default();

  net_dhcpv4_start(iface);

  /* Wait for a lease. */
  k_sem_take(&got_address, K_FOREVER);

  printk("Got IP Address");

  while(1) {
    //printk("ethernet task polling");
    k_msleep(1000);
  }
}

void ble_task(void) {
  int err;

  err = bt_enable(NULL);
  if (err) {
    printk("Bluetooth init failed (err %d)\n", err);
    return;
  }

  printk("Bluetooth initialized\n");

  bt_conn_cb_register(&conn_callbacks);

  scan_init();

  err = bt_scan_start(BT_SCAN_TYPE_SCAN_ACTIVE);
  if (err) {
    printk("Scanning failed to start (err %d)\n", err);
    return;
  }

  printk("Scanning successfully started\n");

  while(1) {
    //printk("ble task polling");
    k_msleep(1500);
  }

}

There is no main function. I start two tasks using:
K_THREAD_DEFINE(ethernet_task_id, 1024, ethernet_task, NULL, NULL, NULL,
		3, 0, 0);
K_THREAD_DEFINE(ble_task_id, 1024, ble_task, NULL, NULL, NULL,
		3, 0, 0);

If I just run one task (comment one K_THREAD_DEFINE to prevent it from running), the running task can work perfectly. But if I let two tasks to run simultaneously , the MPU fault occur and CPU reset.
Expected behavior
There is no MPU fault.
Impact
Critical impact on the application when MPU fault occur and CPU reset. The application cannot work.
Logs and console output
[00:00:00.542,663]  os: ***** MPU FAULT *****
[00:00:00.542,694]  os:   Data Access Violation
[00:00:00.542,694]  os:   MMFAR Address: 0x30a03
[00:00:00.542,694]  os: r0/a1:  0x40003000  r1/a2:  0x20007174  r2/a3:  0x00030a03
[00:00:00.542,694]  os: r3/a4:  0x00000000 r12/ip:  0x20000618 r14/lr:  0x0002ac21
[00:00:00.542,724]  os:  xpsr:  0x81003813
[00:00:00.542,724]  os: Faulting instruction address (r15/pc): 0x00034688
[00:00:00.542,724]  os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
[00:00:00.542,724]  os: Fault during interrupt handling

[00:00:00.542,755]  os: Current thread: 0x20005718 (idle 00)
Environment (please complete the following information):

OS: Windows
Zephyr SDK v2.4.99-nsc1
nRF Connect SDK v1.5.0
Commit SHA or Version used

Additional context
Does anyone meet this problem?

Have you checked where the app is crashing, try for example something like this to get some more info
arm-zephyr-eabi/bin/arm-zephyr-eabi-addr2line -e build/zephyr/zephyr.elf -a 0x00034688

the addr2line program can be found in Zephyr SDK.

net_mgmt_init_event_callback(&mgmt_cb, net_handler,
NET_EVENT_IPV4_ADDR_ADD);

There is also NET_EVENT_IPV4_DHCP_BOUND event that can be also used. The ADDR_ADD event is ok too but if you are using DHCPv4, then the IPV4_DHCP_BOUND event is probably more suitable one to use.

@jukkar thanks for your help.
I checked with addr2line, the crash position is /nRFConnectSDK/v1.5.0/modules/hal/nordic/nrfx/drivers/src/nrfx_spi.c:254

It happens on the SPI transfer byte process. I increased thread stack size but the problem still occur.
When I run only ethernet task, there is NO problem. The problem only happen when run two tasks simultaneously.
Do you know any method to find out more information about this problem to solve it?
Thanks.

This seems to be a downstream (nRFConnectSDK) issue, perhaps you could ask info from Nordic forum. @carlescufi does this sound right?

This is an nRF Connect SDK issue.  Please ask the question in the Nordic Devzone instead. Thanks!


add remove utm once used

#42  👈
main

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @leonchike and the rest of your teammates on  Graphite


Behaviour for nested values for csvencoder

branched from #29 , added failing test.
This assumes the behaviour of nested values are flattened to json.
For consideration.

@oltarasenko in your opinion, is this a worthwhile improvement? If not, this pr can be closed

@Ziinc isn't it related to #29? I thought looking on it after merging the 29th..

Ah ok

noncritical


Node anchoring

Issue description:
It would we nice to have a way to specify the base anchoring of elements, in each axis. In the linked minimal project, eight sprites should be positioned on each eight directions of another one. However, it's currently impossible to position them automatically in such way that even if we change the assets, the positioning will still be correct (ie you always have to hardcode the position according to the assets dimensions).
What I have:

What I'd like to have (of course, the assets here are very simple, in my actual project each direction has a different texture):

Steps to reproduce:
Here's what I tried:

A TextureFrame inside a Container doesn't work, because there's no way to set one of the two related margins to auto like it would be possible in css. In css, if you the left margin to auto and the right margin to 0, the engine will understand that the element should be anchored to the right side of its referential, and take as much size as it needs, but no more.
Using Sprites set up with a 90° rotation followed by a negative scale work for the corners, but not for the North-North / East-East / South-South and West-West directions, because this technics require the sprite to tick off the "Centered" property for one of the axis to work - and unfortunately, the other axis requires this property to be ticked on to work.

Link to minimal example project:
DEMO.zip

There is actually a anchoring system in godot.
And I think it is powerful enough. If you already know it and it doesn't fixeds your issue, than I didn't understand your problem. If not I can tell you how I would deal with it.
You have four anchor settings, One for each side. And accordingly four margin settings. The anchor settings can be set to Begin,End,Center,Ratio. They describe how the four sides are placed. So if you set the left anchor to End menas that the position of the left edge of the object is placed relative to the End (right side) of the parent object. If you set it to Begin that the left side is placed relative to the Beginning (Left side) of the parent object.
Right than describes how the right side is placed and top and bottom for the last two sides. With the margin settings you than can setup the values (how far from which side it is placed).
So this is how I would solve your issue:
For the box on the right center:
Anchor:
Left: End
Right: End
top: center
Bottom: Center
Than place the sprite int the viewport as you need it to..
The values than will look like that if you have a 20*20 px image
Margin:
Left 20
Right: 0
Top 10
Bottom 10
Just to make this post complete I shortly describe the other anchor systems
Center: Margin describes the distance to the center point of the parent object
Ratio: margin is a value from 0 to 1 and describes the relative position. (0.5 menas exactly at the center, 0.7 mens slightly on the right....)
Hope this solves your issue ... But nontheless this is a great and very powerful feature which should solve every problem with anchoring and positioning (especially in combination with simple scripts ;) )

Thanks for the explanation, it's quite helpful :)
However, it doesn't solve the main issue I have with anchoring: as you said, the values "will look like that if you have a 20x20px image". But what if my image is 50x50? Or if I decide that actually, I like rectangles better and switch to 20x50? Or if I want a texture switch on mouse over (so at runtime), and that this texture has a totally different size than the normal one? In all of these cases, the margins will not work as expected, and the user will have to compute new ones.
In css (the pseudo-language used to describe how should a web page be rendered), there's a very similar feature, that also works with margins. The key difference is that the engine allows a special value on top of a numerical one: auto. When auto is selected, the engine is let to decide the actual size of the margin, based on the parent container, the child size, and the opposite margin value. So for example, in my case, the North-East and East-East element would have the following properties:
// North-East
left: auto;
right: 0;
top: 0;
bottom: auto;

// East-East
left: auto;
right: 0;
top: auto;
bottom: auto;

The whole css feature is actually much more complex, and not needed here. But the auto property seems like something that could prove a useful addition to the anchoring mechanisms already there.

Probably containers would do the trick here.

no, this is the same issue as described #2965
I think arcanis was bit confusing in explaining it, but the real issue is that nodes always grow to the right and bottom, regardless of anchoring, (and always shrink the opposite of that). Always torwards the origin point, where as it would be expected for them to grow relatively to the anchoring point.
The images above describe it really well, if you have a node position and anchored at the bottom-right corner, if for whatever reason the node changes size (either texture change, or resizing of its children), its expands always to the bottom and right, opposed to what its expect, that is, for it to remain anchored in relation to the bottom-right corner.
issue #5775 is yet another user who seems to want same thing.

This was finally implemented by allowing controls to specify grow directions, so closing this.

This was finally implemented by allowing controls to specify grow directions, so closing this.

Where was this implemented ? Which setting is this ? Are you sure ?


Cannot drag monaco editor snippets from toolbox in mobile

Describe the bug
snippets cannot be dragged out of toolbox on mobile; interaction only occurs on press
To Reproduce
Steps to reproduce the behavior:

go to monaco editor on mobile device (android, ios)
open toolbox
try to drag snippet from toolbox
See error

Expected behavior
snippet should be draggable like it is on desktop
Screenshots

Smartphone (please complete the following information):

Device: android and ios (simulator / emulator / hardware)

Marking as P2 since monaco doesn't support mobile

Fixed with new toolbox.


Adding support for ServerIP context

This PR is adding support for ServerIP context which can be used to get the local server IP. This is useful for example to print out the server IP in a template (e.g. Server IP: {{.ServerIP}}) when testing several instances of Caddy behind a load balancer.

 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.

Thank you, @jtyr! Really appreciate you first contribution. :smile: Could you add a test for this function? ... not sure how you'd hard-code it, you might have to do a kind of round-about test that makes sure that a loopback address is not returned... or something like that.

Unfortunately I'm quite new to Go programming (this PR is my first code!) so I'm afraid that I don't know how to write and run Go tests. Any hints would be appreciated.

I tried to implement the test:
https://github.com/jtyr/caddy/commit/8fd2867124de82c976d627c74ebe8920f51ac814
It probably doesn't work as I don't know how to test it.

You can run tests by calling
 go test -v github.com/mholt/caddy/caddyhttp/httpserver

that should run all the tests on all the sub dir from httpserver.

^ Yes, or just cd into that folder and run go test. Let us know how that goes. :)

I don't know how to create the net.Addr data structure. I was trying to use net.ParseCIDR("<IP_ADDRESS>/32") to get the net.IPNet but I don't know how to cast it to net.Addr :o(

@jtyr I don't think you have to create one. Just see if the output of the function is within the requirements: not empty, not 127.* ... that'd probably do for starters.

But I have to somehow simulate the addrs from addrs, err := net.InterfaceAddrs(). And that's an array of net.Addr. So how to create it?

You don't have to simulate it, you just have to check the return value of the function.

But the ServerIP function is reading my local IP. In order to test the function I have to be able to simulate the output of net.InterfaceAddrs in order to compare the value the function returns with the expected value. For that I wanted to extend the Context type and update it from the test function (see the linked commit above).

To do that approach, define an unexported variable outside of the function in context.go:
var networkInterfacesFn = net.InterfaceAddrs

Then call networkInterfacesFn() inside your ServerIP function. The test can then replace the networkInterfacesFn variable with something custom just for the test, to return contrived, consistent values.
Since net.Addr is an interface, your test function can define any unexported type that implements its two methods and use that. Just define a struct with 2 string values and have those two methods return the values.

I really appreciate your help. Unfortunately I know too little about Go which doesn't allow me to implement the proper test. Instead, I will try to implement the simple test which will test for empty string and string starting with 127..

I have added the simple test. It seems to run just fine:
=== RUN   TestServerIP
--- PASS: TestServerIP (0.00s)

Btw. I tried to implement the test with the simulated net.Addr but I wasn't able to assert it to net.IPNet type. Any idea what I'm doing wrong?
https://play.golang.org/p/_OIrBZIPX9

@jtyr The value there isn't a *net.IPNet type, so the assertion fails. You don't need a type assertion. Good start -- I made a few revisions/simplifications; give this a try: https://play.golang.org/p/ci2ChGZTfI

I see. As per your example, the myAddr should be net.IPNet compatible to make the code working:
https://play.golang.org/p/2lVFRItpca

I don't understand why the addrs (from addrs, err := net.InterfaceAddrs()) is of type []net.Addr (which is an array of net.Addr, right?) but the addrs[0] is of type *net.IPNet. Is there any explanation for that?

The net.newAddr() should return Addr but the return has as its argument an address to the net.NetIP instead. How's that possible?

@jtyr net.IPNet implements the net.Addr interface. It's usually good practice to return a concrete type rather than an interface, where possible. Concrete types are easily, implicitly used as interfaces as long as they implement it. See this: https://tour.golang.org/methods/10

I see! I was looking into the net.IPNet struct only and did not see that there are actually IPNet methods (functions with the IPNet receiver) which are the same like in the net.Addr interface (Network and String). It's quite difficult to get my head around the OOP in Go without classical classes and explicit inheritance.

@mholt I got it working! ;o) I'm just not sure if it's the best way to set the mockInterfaces function through the context. Is there a better way?

@mholt I have implemented all your comments. Please feel free to review it.

Thanks @jtyr! Does this function respect the bind directive? In other words, if the server listener is bound specifically to a certain interface, does this function return that? For reference, the ListenHost is set on the SiteConfig. I'm not sure if that would matter here, but I wonder if it would be confusing for somebody who binds to some IP address to have another one shown when invoking .ServerIP in templates. Does that make sense?

Yes, It makes sense. I will have a look into it.

@mholt Please could you give me a hint how to access the cfg.TLS.ListenHost value?

@jtyr You want the ListenHost on the SiteConfig struct in siteconfig.go, not the TLS config. ;)

I was thinking to add something like this at the beginning of the  ServerIP method:
// WHERE TO GET THE c *caddy.Controller???
cfg := config := httpserver.GetConfig(c)
bindIP := net.ParseIP(cfg.ListenHost)
if bindIP == nil {
    return ""
}

// Check if the bind configuration is a specific non-loopback IP
if cfg.ListenHost != "<IP_ADDRESS>" && cfg.ListenHost != "::" && !bindIP.IsLoopback() {
    return cfg.ListenHost
}

But I don't know where to get the c *caddy.Controller ;o(

Oh... yeah, I don't either... ha.
I kinda just want to get this merged in. We'll see if anyone complains about this and handle it then. Can you just put a "TODO" comment in the code, reminding that the bind directive will need to be honored in the function? Then I can merge this.

I have added the TODO note. Please feel free to merge it.

Thanks for your effort and patience! :+1:


OMF

How do I install it with oh-my-fish?

@ALipAkrohk Can't guarantee it will work as expected with OMF. I recommend using https://github.com/jorgebucaran/fisher instead.


Strange Behavior of Grading Primary Transform's Contrast Pivot

What is the expected behavior for Grading Primary Transform's contrast pivot?
I am trying to write some looks with process_space being a custom Log encoding, I want the contrast to have 0.18 middle grey as anchor point that doesn't move when the contrast change. Therefore I wrote something like:
  - !<Look>
    name: Extremely Low Contrast
    process_space: AgX Log
    description: A Very Very Low Contrast Look
    transform: !<GroupTransform>
        children:
          - !<GradingPrimaryTransform>
            style: log
            contrast: {rgb: [0.2, 0.2, 0.2], master: 1}
            pivot: {contrast: 0.18}

I have the style set to log since the process_space is a custom log space. I have pivot set to 0.18 hoping it will not move the 0.18 middle grey when changing contrast.
As I have read here: https://opencolorio.readthedocs.io/en/latest/api/transforms.html

Regardless of whether linear/video/log-style is being used, the pivot is always expressed in linear. In other words, a pivot of 0.18 is always mid-gray.

But when I actually load the config up and use it:

If you change the pivot to 0.2121:
    transform: !<GroupTransform>
        children:
          - !<GradingPrimaryTransform>
            style: log
            contrast: {rgb: [0.2, 0.2, 0.2], master: 1}
            pivot: {contrast: 0.2121}

And now:

Why? Why having a pivot of 0.2121 would make 0.18 unchanged? Why can't I just write 0.18 and have 0.18 unchanged? Is this a bug?
Here is the debug config:
config.ocio.txt
Remove the .txt at the end of the file name, did this because GitHub doesn't support uploading .ocio files.

@doug-walker Sorry for random @ing, it has been two days without any response, and I just looked around and I believe you are one of the devs, if I am not mistaken. I am trying to see if this is a bug, if not, I would like to know why this is the behavior and how I can get it to work as expected. If this is a bug, I hope it can be fixed soon.

This is not a bug.  You seem to have quoted the documentation for a completely different transform (ExposureContrast).  The numbers you report are not what GradingPrimary produces with those inputs, so there must be some other processing happening.  If you want a (Log) input value of 0.18 to be unchanged by the Contrast parameter in GradingPrimary in Log mode, the pivot value to use is (0.18 - 0.5) / 0.5 = -0.64.  But since you have some additional processing happening, I'm not sure what value you would need to use for your setup.

Thanks for the formula, I think I understand now. The custom log encoding I use maps 0.18 to 0.60606, and following that formula you gave with 0.60606 in place the result is 0.21212, it makes sense now.


Extract amp styles

Addresses  #42
Extracted AMP styles to a separate scss file to allow easier updating and use of scss variables.

@kelyvin this feels a little bit hacky creating an hbs from an scss file but I think it's the only way of being able to use variables in the amp styles.

Hi @andrewlock,
Hmmm, I totally see what you mean by it being "hacky". I understand why you did it though. Let me muse on it over the weekend and see if I can think of an alternative solution. Stay tuned...
Thanks!

Due to my own negligence and people disliking amp, I am closing this.


Can't override init.vim with -u option on mac osx

Describe the bug
I am building neovide with:
cargo build --release
cargo bundle --release

This produces a .app folder at /target/release/bundle/osx/Neovide.app
I'd like to then execute Neovide.app and override the default init.vim being used, but can't seem to figure out how to do this
To Reproduce
Things I've tried:
This works and correctly opens neovide with the given file:
open -n -a [path to Neovide.app] --args [path to file]
However this does not open neovide at all:
open -n -a [path to Neovide.app] --args [path to file] -u [path to init.vim]
Same with this:
open -n -a [path to Neovide.app] --args [path to file] -- -u [path to init.vim]
Expected behavior
It should be possible to override the default init.vim on mac osx
Desktop (please complete the following information):

OS: macOS Big Sur 11.4
Neovide Version: current master HEAD (0d8311f)
Neovim Version: 0.5.0

Please run neovide --log and paste the contents of the .log file here:
Tried adding --log to the arguments to Neovide.app but did not see any log produces
Additional context
Add any other context about the problem here.

You might be able to launch the neovide executable itself (show app contents, it should be inside neovide somewhere)

Ok I tried executing that directly instead.  I can execute Neovide.app/Contents/MacOS/neovide --help and I see:
Neovide 0.7.0
keith<EMAIL_ADDRESS>A simple GUI for Neovim.

USAGE:
    neovide [FLAGS] [OPTIONS] [files]... [-- <neovim_args>...]

I can also execute Neovide.app/Contents/MacOS/neovide --log and I do get the log output to the current directory.
However, I am still unable to pass any neovim arguments.  Any time I add -- as suggested above, it just fails to open and also does not produce a log file.  For example: Neovide.app/Contents/MacOS/neovide --log -- -c "echom 5"

Ok so I just tried this again with the latest version and it seems to be working now


Corrected the readme file

Due to previous re-structuring of the game assets, the main logo of the main that was supposed to be displayed on the front page was showing up as a broken link. This PR fixes that, and renames README.markdown to README.md to maintain consistency with Terasology.

Hooray Jenkins reported success with all tests good!

Okay, so after merging this I encountered one additional whoops since the imgSrcs bit is one of the old paths, adjusted that to the right path real quick in a separate commit :-)
However, that exposed one more quirk - the logo is white, on a transparent background. On GitHub, which has a white background by default .... :D
We might want to pick a different logo file, hehe


Cloned Certificate Mismatch

Hey there, recently tested the script in a lab between two unpatched Windows 10 boxes. Here's the setup:
Seth Server at <IP_ADDRESS>
RDP Server at <IP_ADDRESS>
Connecting Victim at <IP_ADDRESS>
Without Seth running, the certificate warning should look as follows:

However, when I run Seth by:
root@kali:~/Seth# ./seth.sh eth0 <IP_ADDRESS> <IP_ADDRESS> <IP_ADDRESS>
Then connect from the victim machine again, I see the following certificate error presented by Seth's fake cert:

Is there something that I'm missing in running this script, or something that's changed in Windows 10?

You're not missing anything. If you (or rather the victim) would use the host name instead of the IP address to connect, you wouldn't notice a difference.
I realize that Windows does not warn about the name mismatch if you connect to the genuine host even if you use the IP address to connect. Not sure why, as the certificates are for sure identical (up to the public key). I'll have to investigate. It would be nice to have it behave exactly the same even when IP addresses are used.

Ah, I see now. A strange quirk but good to know; thanks!


Get wrong value when put a big integer number

Describe your problem
When I put a big int number into vineyard, but get just 1 when the value is great than 2**63.

1. Get Right  Value
value = 2**63-1
oid = client.put(value)

result = client.get(oid)
print(f'{value=}, {result=}, {value == int(result)}')

output:
value=9223372036854775807, result=9223372036854775807, True
2. Get Wrong Value When Big Integer
value = 2**63
oid = client.put(value)

result = client.get(oid)
print(f'{value=}, {result=}, {value == int(result)}')

output
value=9223372036854775808, result=1, False
3. Use float cast , get right value
value = 2**126
oid = client.put(float(value))

result = client.get(oid)
print(f'{value=}, {int(result)=}, {value == int(result)}')

output
value=85070591730234615865843651857942052864, int(result)=85070591730234615865843651857942052864, True
4. Use float cast , get wrong value, big float
value = 2**126+1
oid = client.put(float(value))

result = client.get(oid)
print(f'{value=}, {int(result)=}, {value == int(result)}')

output:
value=85070591730234615865843651857942052865, int(result)=85070591730234615865843651857942052864, False

If is is a bug report, to help us reproducing this bug, please provide information below:

Your Operation System version (uname -a):  Linux  6.8.0-45-generic #45-Ubuntu SMP PREEMPT_DYNAMIC Fri Aug fd 11     Dumping 301618 Realtime Data.     │ 30 12:02:04 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux

The version of vineyard you use (vineyard.__version__): '0.24.2'

Versions of crucial packages, such as gcc, numpy, pandas, etc.:

Full stack of the error (if there are a crash):

Minimized code to reproduce the error:

If it is a feature request, please provides a clear and concise description of what you want to happen:
What is the problem:
The behaviour that you expect to work:
Additional context
Add any other context about the problem here.

@wangsq  Thanks for reporting this issue, we'll check it as soon as possible.

@wangsq, this issue may be caused by data type conversion between Python and C++. In Python,  when passed the 2**63 to a template function in C++, it may be incorrectly interpreted as a Boolean value by the compiler and converted to 1 as you seen.
Could you please tell me what scenario you need to put a large interger number? Is it possible to use the string to workaround?

@wangsq, this issue may be caused by data type conversion between Python and C++. In Python, when pass the 2**63 to a template function in C++, it may be incorrectly interpreted as a Boolean value by the compiler and converted to 1 as you seen.
Could you please tell me what scenario you need to put a large interger number? Is it possible to use the string to workaround?

I want to store Memory Address as integer in v6d.  It is always like a big int.
Now I put the value by casting to numpy unsigned integer . It works.
Thanks.


AOI issue - NetworkClient.DestroyObject vs NetworkIdentity.OnDestroy

We have a custom AOI implementation so it might not be a problem by default if handled appropriately there, but we have an issue where client net ids are removed from NetworkClient.spawned AFTER moving out and back into AOI very quickly. This is happening because you're using GameObject.Destroy here:
https://github.com/MirrorNetworking/Mirror/blob/ac87583df885335b147a8c5defbc077fcac0010e/Assets/Mirror/Core/NetworkClient.cs#L1739
but you added a fix re scene loading to NetworkIdentity.OnDestroy here:
https://github.com/MirrorNetworking/Mirror/blob/ac87583df885335b147a8c5defbc077fcac0010e/Assets/Mirror/Core/NetworkIdentity.cs#L677
If you're very quick you can have the OnDestroy land after respawning the object and you end up with an orphaned clone.
Fix for us seems to be just using DestroyImmediate but I'm not sure if this has any implications for features we're not using.
NOTE - apologies we're not on latest so you may have fixed this by other means, I'll test on latest shortly.
All the best

Just to make sure I understood this correctly, your AOI can spawn/despawn objects rapidly, and sometimes that causes those objects to be left behind on the client?
Could you check instead of the plain spawned.Remove in NetworkIdentity, adding a check beforehand fixes this?
Something like:
                // make sure to only remove if we are the NI in spawned for netId
                if (NetworkClient.spawned.TryGetValue(netId, out NetworkIdentity id) && id == this)
                {
                    // if an identity is still in .spawned, remove it too.
                    // fixes: https://github.com/MirrorNetworking/Mirror/issues/3324
                    NetworkClient.spawned.Remove(netId);
                }

also, any chance that we can reproduce this with one of the mirror demos?

took another look at this. it makes sense, this is what most likely happens:
server frame 1:
  prefab with netId=42 is in world
  walks out of range    -> destroymsg(42)
  walks back into range -> spawnmsg(42)

client frame 1:
  prefab(42) is in world
  on_destroymsg(42) -> NetworkClient.DestroyObject(42)
    GameObject.Destroy(42) // happens next frame
  on_spawnmsg(42) -> NetworkClient.SpawnPrefab(42)
    Instantiate(42)        // instant
    ApplySpawnPayload(42)
      identity.netId=42;
      spawned[42] = identity; // !

client frame 2:
  Unity destroys GameObject(42) after .Destroy call from previous frame
    NetworkIdentity.OnDestroy:
      spawned.Remove(42) // even though it already spawned again in the meantime

fixed. thanks for report @joshbayley , this was an interesting one!


How to implement GRADCAM for object detection model

Hey author,
Can you explain how  can we implement GRADCAM for object detection result model?

It gives the following error:
att_shot = gc(data_test.valid_ds[0][0], index=10)

ERROR:
TypeError                                 Traceback (most recent call last)
[<ipython-input-77-0a01d7c8cfc1>](https://localhost:8080/#) in <module>
      1 #All inputs for model and index of chosen class
      2 #If index is None -> will be provided attention to the most chosen class
----> 3 att_shot = gc(data_test.valid_ds[0][0], index=10)

7 frames
[/content/pytorchGradCAM/gradCAM.py](https://localhost:8080/#) in __call__(self, index, *input)
     29         self.output_gradients : List[torch.Tensor] = []
     30
---> 31         output = self.model(*input)
     32
     33         if index == None:

[/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py](https://localhost:8080/#) in _call_impl(self, *input, **kwargs)
   1108         if not (self._backward_hooks or self._forward_hooks or self._forward_pre_hooks or _global_backward_hooks
   1109                 or _global_forward_hooks or _global_forward_pre_hooks):
-> 1110             return forward_call(*input, **kwargs)
   1111         # Do not call functions when jit is used
   1112         full_backward_hooks, non_full_backward_hooks = [], []

[/usr/local/lib/python3.7/dist-packages/object_detection_fastai/models/RetinaNet.py](https://localhost:8080/#) in forward(self, x)
     70


Fixed: ExecuteStreamCommand when expressions in command arguments are…

… used, contents are not splitted by command separator
To reproduce the problem:

Create DataFlow
Add GenerateFlowFile processor, File Size: 10kB
Connect GenerateFlowFile -> success -> UpdateAttribute processor
In UpdateAttribute: create attribute optionalArgs with contents: "-c 5"
Connect UpdateAttribute -> success -> ExecuteStreamCommand
Configure ExecuteStreamCommand to execute Command Path: "ping", Command Arguments: "${optionalArgs} google.com", Argument Delimiter: " " (spacebar), Ignore STDIN: true, auto terminate: original
Connect ExecuteStreamCommand -> output stream - > LogAttribute to see some output. LogAttribute auto terminate: success, Log Level: error, Log Payload: true.
Run the flow.

Expected output:

ExecuteStreamCommand issues command ping with args: "-c", "5", "google.com"

Actual output:

ExecuteStreamCommand puts the "-c 5" into single arg for ProcessBuilder
This behavior is no problem for ping utility, but there are tools (like snmpwalk in my case), which are dumb enough not to parse command line arguments properly, when they are sent inproperly by ProcessBuilder.

Hello.  Thank you for contributing.  We will need to make sure there is an active JIRA for this PR and that the JIRA number is referenced in the commit message.  Take a look here to help us with bringing the contrib in.  https://cwiki.apache.org/confluence/display/NIFI/Contributor+Guide  Also you can see on this page an automated Travis-CI build contrib check that occurs.  It shows the build failed on all systems.  It appears to be due to a line length violation.  You can see that by looking here and scrolling down the page https://s3.amazonaws.com/archive.travis-ci.org/jobs/107227866/log.txt  It says '[WARNING] src/main/java/org/apache/nifi/processors/standard/ExecuteStreamCommand.java[305] (sizes) LineLength: Line is longer than 200 characters (found 212).'
Can you address the JIRA creation, commit message and the line length and push again so it will try the build again.
Thanks
Joe

Thank you for pointing the right direction.
Here is JIRA https://issues.apache.org/jira/browse/NIFI-1514 issue, new PR: https://github.com/apache/nifi/pull/223
You may close this PR as unmerged.

Thanks.  Can you please close #205 in Github.  Will take a look at #223 soon.


Registry export does not work

On the Roku Reigstry panel, I can see registry content.
When I click Export, the save dialog shows up, but the file is not saved.

@triwav can you take a look at this one?

@iBicha thanks for reporting this. This is due to vscode not detecting the action as user initiated. I've updated the code in this PR #440 to address this. Once this is merged in this should hopefully be fixed for you. Even better if you want to try out the vsix that would be even better

This was fixed.


Can the dcgm exporter be run in two containers on a physical machine together with other programs that call the dcgm api?

On a GPU physical machine, there are two containers: dcgm-exporter and the dcgm api program. When running the latter, I received the following error:
"error":"failed to watch field: Error watching fields: The third-party Profiling module returned an unrecoverable error"

Is there a way for both to coexist?

This configuration is documented here: https://docs.nvidia.com/datacenter/cloud-native/gpu-telemetry/latest/dcgm-exporter.html#connecting-to-a-dcgm-standalone-container.  It is possible by having the dcgm-exporter container connect to the DCGM nv-hostengine/API container.

In addition, would you like to ask whether configuring this parameter on a100 will affect dcgm collection? @glowkey
# /etc/modprobe.d/ncu.conf
options nvidia NVreg_RestrictProfilingToAdminUsers=0

@xcode03,
That parameter controls whether collecting DCP metrics (1001-1014) on GV100/GA100 GPUs would require root permissions. DCP metrics on architectures before GH100 are using the profiling capabilities.
If you set NVreg_RestrictProfilingToAdminUsers=0, nv-hostengine does not need root privileges to collect DCP metrics.