How to stop onEventMainThread

First of all, thank for project.
My question: How to stop onEventMainThread  after destroy fragment ??
Some events i don't want to excute after destroy because it maybe no found views and lead to crash app
Thanks

simply unsubscribe your fragment class instance from event bus in the appropriate fragment lifecycle method

@livotov thank for reply.
But the fragment received event. therefore, when destroy my code in that event still execute, lead to crash.
At fragment, i added the function:

@Override
    public void onDestroy() {
        super.onDestroy();
        try {
            EventBus.getDefault().unregister(this);
        } catch (Throwable t) {
            //this may crash if registration did not go through. just be safe
        }
    }

Your fragment instance will not receive any event after the call to EventBus.getDefault().unregister(this).

are you sure  you're talking about the onEventMainThread ?
onEventMainThread is called on the main (UI) thread. You cannot perform any long/background operations there. Also, even if you're doing smth long there, your UI will freeze and onDestroy method will not be called until you finish your event work. So no collision should happen there.
If you're receiving even on other thread (onEventBackgroundThread or similar), this is your event code responsibility to abort any activity when external conditions changes (e.g. fragment is not more alive)

@livotov,
Fragment receive event and executing then i destroy while It not yet finish (still progressing) ---> crash app.

see my comment above

A palliative thing to do is:
Use isFinishing() for Activities or isAdded() for Fragments.

@livotov,  thank for reply.
In my case, I show data to listview, after call update function (check data change) in OnEventMainThread (set adapter again listview if data change). user click back when event still progressing lead to : no view found(adapter view) and crash.
Hope, everyone understand what i said :)
@ppamorim, i'll try.
Thank

which way to dismiss or ignore in case no view found above ???
Thanks

Could you please paste your code here, as I can't understand how you can end with a dead fragment state while executing your code on a main thread.
Also, better call the eventbus.unregister(this) first, then super.onResume()

@tuanth89 onDestroy is not guaranteed to be called, and it's wrong to update ui when it's not being shown anyway. subscribe in onStart and unsubscribe in onStop and remove try/catch—you'll just mask a problem you will run into later

Thank everyone. i fixed problem by don't allow user back or destroy fragment while executing update.
BTW, I want to stop event while it's executing. Is possible ???

please show your fragment's code. it's easier too see what happened. or at least the crash log

Furthermore, IMO the best place to unregister a event  is inside the onPause or onStop method. where your UI is completely hidden. In fact, if you use your fragment with its backstack (use addToBackStack() on transaction, the fragment's onDestroy is not guarantee to be called --> crash)

@eneim thank for reply.
Exactly, i used it with backstack on transaction.
Could you suggest or give me advice about this problem ???
Thanks.

@tuanth89 The backstack works as follow: it add your fragment's state to its stacks (in reality, it saves the fragment transaction), call fragment's onDestroyView BUT NOT onDestroy. Note that in case you set your fragment to retain its instance (via ```Fragment#setRetainInstance(boolean)), the same thing happens (onDestroyed not called). For a better look of Fragment's life cycle, take a look at this, it's not the latest update, but you can test it by yourself.
My hint in your case: move your EventBut.getDefault().register(MyFragment.this) into onStart() or onResume() and EventBut.getDefault().unregister(MyFragment.this) into onStop() or onPause(). Those lifecycle methods are directly relate to your UI appearance.

@eneim thank for reply.
I realize this problem belong to me,i fixed and it seems not occurs.
One again, thank you so much.


Crash in toggle() when prerender is true and multiple targets are set

Conditions to create the crash:
$('#someElement').qtip({
    prerender: true,
    show: { target: $(".someSelectorWhereAtLeastTwoElementsMatch")}
});

Then mouseover one of the target elements.
Crashing line is here:
sameTarget = !event || opts.target.length < 2 || cache.target[0] === event.target,
because cache.target is not set
Analysis:
When you create a new $(foo).qtip() with prerender set to true, it calls render() on object creation (makes sense). Render() then calls into _assignEvents which then binds mouseenter to showMethod(). Then, when you mouse into a tooltip, it triggers toggle() which then causes the crash shown above because cache.target is not set.
When prerender is not set, then the hoverIntent function is active, which sets cache.target, and then triggers the render -> show codepath (without going through the showMethod() function)
Proposed fixes:
I am not very familiar with this codebase, but I believe the sublety of the bug is at the bottom of _assignInitialEvents, where it has this line of code:
// Prerendering is enabled, create tooltip now
if(options.show.ready || options.prerender) { hoverIntent.call(this, event); }
In this case, event is undefined, since it happens on qtip creation, not at an event time. The event is not cached properly inside hoverIntent because it is undefined. One option would be to synthesize a fake event and have that propagate through.
Another option would be to add the following lines to the showMethod function, to simulate what should have happened inside the hoverIntent function.
this.cache.event = event && $.event.fix(event);
this.cache.target = event && $(event.target);
Or there may be some other fix.

Any one around? I can help write a fix, just would appreciate some guidance on the best path forward.


Update for Count word

Description
Show word per minute for speech speed or read speed.
Screencast

Checklist

[x] I read the extension guidelines
[x] I read the documentation about publishing
[x] I ran npm run build and tested this distribution build in Raycast
[x] I checked that files in the assets folder are used by the extension itself
[x] I checked that assets used by the README are placed outside of the metadata folder

Hi @aeither! First of all thank you for your contribution. For now I think it's best to leave the reading speed feature out of this extension, because if this feature is offered I would give users the ability to customize their own reading speed. Also, as a word count extension, I'd like to keep the feature focused to just that.
If the reading speed feature is useful to you, you should create a separate extension -- feel free to fork my existing code! https://github.com/itsmingjie/raycast-word-count
@raycastbot close this issue

@raycastbot close this issue


Update ug minor fixes

*fix fenced code block not showing everything when converted to pdf
*add page break after each command feature
*standardize APPOINTMENT_DATE

LGTM!


Global error

Currently we attach the string 'Error;' however, we should return a success flag to the response.

Implementation now trow error


Option to change ShakeThresholdGravity

Describe the solution you'd like
The current ShakeThresholdGravity seems a bit sensitive. In apps like Figma, they require a pretty intentional/hard shake. I'd like the ability to change the required g-force. It could be a Scale factor, or explicitly setting the double, either way.
I thought I could solve this by ignoring any number of shakes less than 2, but the number of shakes seems to require distinct shake events, rather than "2 shakes means 1 left, 1 right".

Nevermind...I found the option. I was trying to do ShakeDetector.ShakeThresholdGravity, not ShakeDetector.Default.ShakeThresholdGravity.


Add typing

Describe the solution you'd like
Use typing in code everywhere.
Right now it is not implement every where

I don't think we need this as an issue for a general implementation of typing.
Type hints are now available in most places. If we notice any gaps, we can create explicit issues for them.


⚠ SpeakUpConference.com has degraded performance

In 23bfff0, SpeakUpConference.com (https://www.speakupconference.com) experienced degraded performance:

HTTP code: 200
Response time: 13362 ms

Resolved: SpeakUpConference.com performance has improved in c1fed97 after 11 minutes.


SEAB-6452: Continuing github redelivery

Description
This PR creates the commands to upload GitHub events back to the webservice.
Review Instructions
It was the easiest to run on CloudShell
Steps I used was

Install Java sudo yum install java-17-amazon-corretto
clone the repo
Build only the githubdelivery module by running ./mvnw install -pl githubdelivery -am
Configure your github-delivery.config for QA (template in templates folder)
Go to the module and run java -jar target/githubdelivery-1.16.0-SNAPSHOT.jar submit-event -k "2024-06-11/8c3a0830-27fc-11ef-88e4-ddbd35006386"

Issue
https://ucsc-cgl.atlassian.net/browse/SEAB-6452
Security
If there are any concerns that require extra attention from the security team, highlight them here.
Please make sure that you've checked the following before submitting your pull request. Thanks!

[x] Check that you pass the basic style checks and unit tests by running mvn clean install in the project that you have modified (until https://ucsc-cgl.atlassian.net/browse/SEAB-5300 adds multi-module support properly)
[x] Ensure that the PR targets the correct branch. Check the milestone or fix version of the ticket.
[x] If you are changing dependencies, check with dependabot to ensure you are not introducing new high/critical vulnerabilities
[x] If this PR is for a user-facing feature, create and link a documentation ticket for this feature (usually in the same milestone as the linked issue). Style points if you create a documentation PR directly and link that instead.

Something makes me a little uneasy about resubmitting all of the events for a full day. Theoretically, the irrelevant pushes and deletes will bounce off, but not totally sure, especially about the other stuff. Is it worth the risk?

Maybe we could add by hour?
I think the intent here is mainly to resubmit when we know the lambda has been down for X amount of time to resubmit the events for that X amount of time.

Added command to submit hourly


neo-cli doesn't compile against neo master

node\neo-cli\CLI\MainService.cs(285,20): error CS1061:
'ScriptBuilder' does not contain a definition for 'EmitAppCall' and no accessible extension method 'EmitAppCall' accepting a first argument of type 'ScriptBuilder' could be found (are you missing a using directive or an assembly reference?) [node\neo-cli\neo-cli.csproj]
node\neo-cli\CLI\MainService.cs(532,31): error CS1061:
'ScriptBuilder' does not contain a definition for 'EmitAppCall' and no accessible extension method 'EmitAppCall' accepting a first argument of type 'ScriptBuilder' could be found (are you missing a using directive or an assembly reference?) [node\neo-cli\neo-cli.csproj]
node\neo-cli\CLI\MainService.Vote.cs(46,31): error CS1061: 'ScriptBuilder' does not contain a definition for 'EmitAppCall' and no accessible extension method 'EmitAppCall' accepting a first argument of type 'ScriptBuilder' could be found (are you missing a using
directive or an assembly reference?) [node\neo-cli\neo-cli.csproj]
node\neo-cli\CLI\MainService.Vote.cs(86,31): error CS1061: 'ScriptBuilder' does not contain a definition for 'EmitAppCall' and no accessible extension method 'EmitAppCall' accepting a first argument of type 'ScriptBuilder' could be found (are you missing a using
directive or an assembly reference?) [node\neo-cli\neo-cli.csproj]
node\neo-cli\CLI\MainService.Vote.cs(110,31): error CS1061: 'ScriptBuilder' does not contain a definition for 'EmitAppCall' and no accessible extension method
'EmitAppCall' accepting a first argument of type 'ScriptBuilder' could be found (are you missing a using directive or an assembly reference?) [node\neo-cli\neo-cli.csproj]

should be resolved by #707

should be resolved by #707


Mixins

Is it possible to implement something like "Polymer Behaviors" https://www.polymer-project.org/1.0/docs/devguide/behaviors in aurelia?

You can do this using plain decorators.

How can I mixin bindable properties by plain decorators?

A decorator is just a function applied to a target. You can invoke the
bindable decorator on the target from inside another decorator.
On May 31, 2016 9:34 PM, "Levan"<EMAIL_ADDRESS>wrote:

How can I mixin bindable properties by plain decorators?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/aurelia/templating/issues/366#issuecomment-222869314,
or mute the thread
https://github.com/notifications/unsubscribe/AAIBnUHlZxlRaE6CyYNFbJDyMPRskFhsks5qHOGWgaJpZM4IrEPo
.


HTTPS requests wait for each other, HTTP is good

I found that if I request two HTTPS APIs A and B at the same time, their response time is the same, which means that if A is not completed, B will wait. So I use Alamofire to make requests separately, there is no such situation. Can you help me?

Hey @kobeli, sorry for late response - I was looking at this issue the other day but I couldn't figure out what could be the issue.
First, it's really strange that it happens only to HTTPS requests and also works correctly on Alamofire - are you sure this is the case? If it wasn't bound to HTTPS only, we could suspect that maybe there is a lock bug somewhere in the codebase, but the HTTPS-only requirement kinda puts me off track.
Are you able to consistently reproduce it? If so, maybe you could try to recreate a small example app that I could investigate further?

@sunshinejr Sorry, I'm late. I definitely this issue. I will let my backend colleague make  API that you can test and send to you tomorrow.  Thank you.

@kobeli that would be awesome, thank you!

@sunshinejr  I recreated a small example app with Moya. That looks well.  very strange. I used Moya + RXSwift + ObjectMapper.

@kobeli sorry, didn't see that you updated the message. Thank you for the investigation! I was wondering, do you think it could be a problem on the backend side? I'm wondering what could be the issue here, but the latency parameter equals the duration one in the Charles session, so there might be a chance that server performs some work before returning the response.
Also, one other thing we could test is whether on URLSession / Alamofire itself it happens as well.

@kobeli friendly bump!

@sunshinejr Thanks for help. URLSession / Alamofire happened. 😭


500 error when biolink:DiseaseOrPhenotypicFeature in QNode categories

I ran a query in UI-Test for what drugs may treat rheuamtoid arthritis to check ARAX's interaction with Knowledge Collaboratory.
Test run from UI: https://ui.test.transltr.io/main/results?l=Rheumatoid Arthritis&i=MONDO:0008383&t=0&r=0&q=6909142a-5150-42e9-aeef-523ee7cf6d10
Here are the specific results from ARAX: https://arax.ncats.io/?r=7a6a3b30-78e6-4a6a-8f9b-a2a5ae1ba613
Results from ARAX UI show that Knowledge Collab responded with HTTP error 500.
ARAX UI says this is the query sent to Knowledge Collab:
{
  "message": {
    "query_graph": {
      "edges": {
        "t_edge": {
          "knowledge_type": "lookup",
          "object": "on",
          "predicates": [
            "biolink:treats"
          ],
          "subject": "sn"
        }
      },
      "nodes": {
        "on": {
          "categories": [
            "biolink:PhenotypicFeature",
            "biolink:DiseaseOrPhenotypicFeature",
            "biolink:Disease"
          ],
          "ids": [
            "MONDO:0008383"
          ],
          "is_set": false,
          "set_interpretation": "BATCH"
        },
        "sn": {
          "categories": [
            "biolink:ChemicalEntity"
          ],
          "is_set": true,
          "set_interpretation": "BATCH"
        }
      }
    }
  },
  "submitter": "infores:arax"
}

I sent that query directly to Knowledge Collab in ITRB-Test and can replicate the 500 error.
After testing several variations of the query, it seems like it's the inclusion of biolink:DiseaseOrPhenotypicFeature that induces the 500 error. Removing just biolink:DiseaseOrPhenotypicFeature allows Knowledge Collab to return a successful response, e.g.,:
{
  "message": {
    "query_graph": {
      "edges": {
        "t_edge": {
          "knowledge_type": "lookup",
          "object": "on",
          "predicates": [
            "biolink:treats"
          ],
          "subject": "sn"
        }
      },
      "nodes": {
        "on": {
          "categories": [
            "biolink:PhenotypicFeature",
            "biolink:Disease"
          ],
          "ids": [
            "MONDO:0008383"
          ],
          "is_set": false,
          "set_interpretation": "BATCH"
        },
        "sn": {
          "categories": [
            "biolink:ChemicalEntity"
          ],
          "is_set": true,
          "set_interpretation": "BATCH"
        }
      }
    }
  },
  "submitter": "infores:arax"
}

Conversely, having only biolink:DiseaesOrPhenotypicFeature causes the error.
{
  "message": {
    "query_graph": {
      "edges": {
        "t_edge": {
          "knowledge_type": "lookup",
          "object": "on",
          "predicates": [
            "biolink:treats"
          ],
          "subject": "sn"
        }
      },
      "nodes": {
        "on": {
          "categories": [
            "biolink:DiseaseOrPhenotypicFeature"
          ],
          "ids": [
            "MONDO:0008383"
          ],
          "is_set": false,
          "set_interpretation": "BATCH"
        },
        "sn": {
          "categories": [
            "biolink:ChemicalEntity"
          ],
          "is_set": true,
          "set_interpretation": "BATCH"
        }
      }
    }
  },
  "submitter": "infores:arax"
}

@micheldumontier This issue is ongoing, and I believe is the cause of the following issue created by @isbluis (ARAX)
https://github.com/NCATSTranslator/Feedback/issues/946
From their example, the query they're sending is:
{
  "message": {
    "query_graph": {
      "edges": {
        "e0": {
          "knowledge_type": "inferred",
          "object": "un",
          "predicates": [
            "biolink:related_to"
          ],
          "subject": "sn"
        }
      },
      "nodes": {
        "sn": {
          "categories": [
            "biolink:DiseaseOrPhenotypicFeature",
            "biolink:PhenotypicFeature",
            "biolink:Disease"
          ],
          "ids": [
            "MONDO:0005180"
          ],
          "is_set": false,
          "set_interpretation": "BATCH"
        },
        "un": {
          "categories": [
            "biolink:NamedThing"
          ],
          "is_set": true,
          "set_interpretation": "BATCH"
        }
      }
    }
  },
  "submitter": "infores:arax"
}

i tried these queries on our locally deployed services, and i don't get the error. without access to the docker containers to see the errors, i can't fix this.

@micheldumontier This seems to be better, but not fully resolved yet.
This query still produces the 500 error, but at least it does so within a couple seconds (not 30 seconds anymore):
{
  "message": {
    "query_graph": {
      "edges": {
        "t_edge": {
          "knowledge_type": "lookup",
          "object": "on",
          "predicates": [
            "biolink:treats"
          ],
          "subject": "sn"
        }
      },
      "nodes": {
        "on": {
          "categories": [
            "biolink:DiseaseOrPhenotypicFeature"
          ],
          "ids": [
            "MONDO:0008383"
          ]
        },
        "sn": {
          "categories": [
            "biolink:ChemicalEntity"
          ]
        }
      }
    }
  },
  "submitter": "infores:arax"
}

The same query with ID MONDO:0005180 now returns 200 OK status response.
Will message you with the log file in Slack


Running on Expo

Hi, I'm new to both react native and BDK, so I'm sorry for the silly question.
I'm now running React Native with Expo:
npx expo start
and I get the error:

ERROR in ./node_modules/bdk-rn/src/index.ts 18:9
Module parse failed: Unexpected token (18:9)
File was processed with these loaders:

./node_modules/source-map-loader/dist/cjs.js
You may need an additional loader to handle the result of these loaders.
|
| class BdkInterface {

public _bdk: any;
|
|   constructor() {

I tried to fix by adding:
pm i -D @expo/webpack-config
but it looks like I have to add a line in babel.config.js I tried adding bdk-nm but didn't manage to run it yet. (similar issue here)
Is there a way to run bdk-rn with expo or is not possible?
Thank you in advance for your time.

@loic86 Thanks for taking a look.
This will work with expo, I am aware of a couple of users who are using this with expo.
If you are still facing an issue I will try and replicate your issue, I suspect it's probably to do with the RN env or something similar.

Ok, thanks for the feedback! I will go through RN deeper and figure it out and let you know asap.

hi @loic86
There are 2 different workflows used by Expo to run Apps.

Managed workflow: Uses services/modules provided by Expo  e.g npx expo start
Bare workflow: Uses 3rd party libraries as well,  “bdk-rn” is considered 3rd party for expo. e.g npx expo run:ios

I was able to run in a expo project using npx expo run:ios

Thank you!
Indeed, I was using the former workflow, the latter works fine. Thanks!


if support async remoting data

if support async remoting data , i think it will work better

https://github.com/surmon-china/vue-awesome-swiper/blob/master/examples/22-dynamic-slides.vue

resolved now :)
https://github.com/surmon-china/vue-awesome-swiper/tree/V2.2.0


Hide Expression across field group

I'm submitting a ...  (check one with "x")
[ ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[x ] support request

Current behavior

I have a hide expression for 'town' in the address field group. It is based on the value of 'name' in the address field group. It is not working as I expected.
Expected behavior
I would like for the town field to show once text is added to name. I also wish to ultimately represent it using purely json.
Minimal reproduction of the problem with instructions

https://stackblitz.com/edit/angular-movjpt

Angular version: 7

see https://github.com/ngx-formly/ngx-formly/issues/704#issuecomment-364661614


Update encoding.py

Fork containing code for issue:
https://github.com/frstio/post-processing/issues/5

fastparquet/encoding.py
around line 270
if started:
    assign[i] = None if have_null else part
    part = []
    i += 1

this part of code with i += 1 get called unnecessary which results in shift of data

OUT_size mismatch for 0xa85e5c3d1cbc5f6fa6d84b28bd4fdd37404859ca. [(hive) 52619 != 41702.0 (s3)]
OUT_size mismatch for 0xa85f5ec2a7bfb0863b038b0791e68e6254bf981f. [(hive) 1 != 10917.0 (s3)]
OUT_size mismatch for 0xa86062be9555f4c3f2c0212763907c0b13227c59. [(hive) 3 != 1.0 (s3)]
OUT_size mismatch for 0xa86094d3854cf7b7ed3e435634ab1f3835d3cf15. [(hive) 0 != 3.0 (s3)]
OUT_size mismatch for 0xa86095afc05bac1af93ffddd29ee4cb49f072eb6. [(hive) 1 != 0.0 (s3)]
OUT_size mismatch for 0xa861bc80c74fbfb4c7a11fbc0d88a9e1ef13ecb5. [(hive) 0 != 1.0 (s3)

I left code that generates above output on VM _parquet_issues.ipynb
See cell starting with def check(partition): , above it 1 cell and 2 below it supposed to be ran


Possible to cast video to tv with this library?

I'm looking video player for my android app. I used before exoplayer but now I need some player which I can cast videos to TV via WIFI.
This library can do this? @anthorlop ?

Chromecast library I was using is deprecated so we had to remove my cast module.
If you want to add video cast feature I recommend:
https://developers.google.com/cast/docs/developers
https://developers.google.com/cast/docs/android_sender/integrate
https://github.com/googlecast/CastVideos-android
It help me to add video cast to my Android apps. Here the result:
https://play.google.com/store/apps/details?id=es.anthorlop.mibiblioteca.trailers


Revise staking origins

Currently,
cancel_defered_slash has a custom origin.
everything else, including:

changing validator count
forcing era change
force_unstake
set_config (sets the count bounds, min bonds, and min-commission)

are all root. Some of these are not justifiable to be root, and not in-line with gov v2.
An easy fix is to make all of this be one custom origin, and map them to StakingAdmin on Kusama (and Root in Polkadot while we're at Gov v1). So rename and reuse the existing SlashCancelOrigin for more things.
I thought about splitting them up, but it doesn't make sense. Almost all of these are equally important, and with obtaining any of them you can attack a chain.

For example:

you can set the validator count to 0
you can force-unstake everyone
you can misbehave and cancel the slash
you can set a very high min-bon, such that no one can nominator or validate.
you can set a very low max validator / max-nominator
the combination of the above two gives you power to chill everyone and create nothing at stake

So all of them can be equally destructive and should be well protected.

Long term, it would be good if we can extract setting commission into another transaction that has a slightly weaker origin, as this one is the only non-attackbale one.

Should we extract out set_min_commission with a weaker origin and close this issue?
I think one idea is, in long term, we can look into overloading most transactions to allow weaker origin to execute it if the code determines the change is not significant (eg: validator count changes up to 10% of its value). Otherwise require root. But admittedly, it might just be over-engineering and we should revisit this when we next hit a bottle neck in handling staking related governance decisions.

This issue has been mentioned on Polkadot Forum. There might be relevant details there:
https://forum.polkadot.network/t/polkadot-release-analysis-v0-9-37/1736/1


PostgreSQL Invalid username when running via artisan

Laravel Version: 5.5.24
PHP Version: 7.1.14
Database Driver & Version: PostgreSQL(libpq) Version 10.1 Module version 7.1.14 (homebrew/php/php71-pdo-pgsql: stable 7.1.14 (bottled)).

Description:
If you set database driver to pgsql artisan migrate (and possibly other commands) wont work via terminal. However, if you visit via browser it seems to work.
However, I don't provide myusernam anywhere in the app. For some strange reason, laravel could be taking myusername which also happens to be my username on my local OS user, running the artisan command.
How to reproduce:
Set driver to pgsql and run php artisan migrate in terminal. It will fail with error
  SQLSTATE[08006] [7] FATAL:  password authentication failed for user "myusername" (SQL: select * from information_schema.tables where table_schema = public and table_name = migrations

If I visit my application in the browser, I see error message: SQLSTATE[42P01]: Undefined table: 7 ERROR: relation \"users\" does not exist\nLINE 1: select * from \"users\" where \"email\" = $1 limit 1\n ^ (SQL: select * from \"users\" where \"email\" =<EMAIL_ADDRESS>limit 1), so it seems as though the credentials in .env is correct, since it knows the table doesn't exist, but migrations are yet to be run.
Current workaround:
Inside web.php routes:
Route::get('/migrate', function () {
    dd(\Artisan::call('migrate'));
});

Then go to browser: https://laravelapp.test/migrate
Only way I can run migrate on the postgres database.

This sounds like you have existing environment variables in your terminal that overrides those in your .env file.

@sisve How can I check this?

Hmm..
[myusername:~/Projects/uniqkey]$ php artisan tinker                                                                                (openshift✱)
Psy Shell v0.8.17 (PHP 7.1.14 — cli) by Justin Hileman
>>> env('DB_USERNAME');
=> "admin"

I have no idea what you're expecting. Is admin the correct value? Or myusername?
Do a echo $DB_USERNAME from your terminal. If it outputs anything other than a blank string, then that value is used instead of the value provided in the .env file.

The correct username is indeed admin:
[myusername:~/Projects/uniqkey]$ echo $DB_USERNAME

Outputs nothing.

Could it be because I ran:
brew install php71-pdo-pgsql

?

check DB_DATABASE and  DB_CONNECTION. Looks like your pointing at a different DB to me for cli vs web.

I have checked this  .env files several times, it's as it should be. How can I check for specific CLI environment variables?

You can just echo them from your terminal. echo $DB_DATABASE and echo $DB_CONNECTION.

However, I don't provide myusernam anywhere in the app. For some strange reason, laravel could be taking myusername which also happens to be my username on my local OS user, running the artisan command.

pdo_pgsql as well as psql from cli will use your OS user when no username is passed that give me the hint that maybe your .env keys were cached with config:cache and returning null but you can see it perfectly with tinker so thats not the case.
Depending on the APP_ENV you can be picking up other .env file like .env.testing if that is set.
Are they any calls to env() before that route hit, maybe in a middleware, or is this happening to you in a fresh laravel installation?


'Module' object has no attribute 'global_variables'

I just install the numba, and run code below:
from numba import jit
from datetime import datetime
def test01(x):
n = 0
for i in range(x):
for j in  range(x):
n += 1
return n
@jit
def test02(x):
n = 0
for i in range(x):
for j in  range(x):
n += 1
return n
def testit(func,x):
starttime = datetime.now()
func(x)
endtime = datetime.now()
dt = endtime-starttime
print 'running %f seconds' % dt.total_seconds()
#%%
testit(test01,10000)
#%%
testit(test02,10000)

when run "testit(test02,10000)", I get Exception, full stack is here:

testit(test02,10000)
Traceback (most recent call last):
File "", line 1, in
File "", line 6, in testit
File "/usr/local/lib/python2.7/dist-packages/numba/dispatcher.py", line 157, in _compile_for_args
return self.compile(sig)
File "/usr/local/lib/python2.7/dist-packages/numba/dispatcher.py", line 277, in compile
flags=flags, locals=self.locals)
File "/usr/local/lib/python2.7/dist-packages/numba/compiler.py", line 547, in compile_extra
return pipeline.compile_extra(func)
File "/usr/local/lib/python2.7/dist-packages/numba/compiler.py", line 293, in compile_extra
return self.compile_bytecode(bc, func_attr=self.func_attr)
File "/usr/local/lib/python2.7/dist-packages/numba/compiler.py", line 301, in compile_bytecode
return self._compile_bytecode()
File "/usr/local/lib/python2.7/dist-packages/numba/compiler.py", line 534, in _compile_bytecode
return pm.run(self.status)
File "/usr/local/lib/python2.7/dist-packages/numba/compiler.py", line 191, in run
raise patched_exception
AttributeError: Failed at object (object mode frontend)
Failed at object (object mode backend)
'Module' object has no attribute 'global_variables'

Is it a bug? Or how can I solve this problem?
Thanks a lot!

What version of numba and llvmlite did you install?

numba (0.17.0)
llvmlite (7d571f369cc002d44640a1d72248bc75b3e9f7b5)  the newest version in github

Ah, those versions are not compatible due to a very recent change made to the development version of llvmlite that required a corresponding change in the development version of numba.
You should either install numba 0.17.0 and llvmlite 0.2.2 (https://pypi.python.org/pypi/llvmlite/0.2.2) or install both numba and llvmlite from github.

It works!
Thank you so much!!!!

Code running in incredible speed.Thanks to numba!

Thanks!  Glad it is working for you.  :)


privatized consts, light back to lux, check id

Updates for:
https://github.com/adafruit/Adafruit_CircuitPython_TSL2561/issues/1

reviewd & pulled!


switching platform to WebGL

Hello,
I am trying to publish a game on a website (through unity webGL), but I am having trouble switching platforms between PC and WebGL.
I started looking into the compile errors to see if I can adapt the scripts but to be honest, I have no idea how to do it.
Do you think there is a way that Project acoustics could run on a webGL platform ?
Thanks a lot
Taha

Hi @MikeChemi ,
Thank you for your reply
Here are the error logs i get when launching it on webGL :
`DllNotFoundException
AcousticsInterop..ctor (System.Boolean debug) (at Assets/Acoustics/Scripts/AcousticsInterop.cs:13)
AcousticsInterop..ctor (System.Boolean debug, System.String filename) (at Assets/Acoustics/Scripts/AcousticsInterop.cs:21)
AcousticsManager.InitAcoustics () (at Assets/Acoustics/Scripts/AcousticsManager.cs:73)
AcousticsManager.OnEnable () (at Assets/Acoustics/Scripts/AcousticsManager.cs:214)
NullReferenceException: Object reference not set to an instance of an object
AcousticsManager.UpdateProbesForGizmo () (at Assets/Acoustics/Scripts/AcousticsManager.cs:157)
AcousticsManager.Update () (at Assets/Acoustics/Scripts/AcousticsManager.cs:254)
DllNotFoundException
AcousticsManager.OnDrawGizmos () (at Assets/Acoustics/Scripts/AcousticsManager.cs:319)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
NullReferenceException: Object reference not set to an instance of an object
AcousticsManager.OnDisable () (at Assets/Acoustics/Scripts/AcousticsManager.cs:207)
`

This looks like the Project Acoustics native plugins did not get deployed for WebGL. I don't know how that's all supposed to work, but I would start looking at plugin deployment to see if the Unity manual has any instructions.
I took a quick look myself and stumbled on this page. https://docs.unity3d.com/Manual/webgl-audio.html  Specifically, this text:
"Unfortunately, this limits audio functionality in Unity WebGL to supporting only the most basic features. This page will document what is expected to work. Anything not listed here is not currently supported on WebGL."
Project Acoustics relies on an audio plugin to Unity's internal FMOD implementation. Since Unity is not using FMOD for WebGL, there's a high likely-hood that Project Acoustics is not supported

Closing since Unity still claims no plugin support for WebGL, which is a requirement for Project Acoustics to work.


[Bug][Config UI] Blueprint's setting page throws error

Search before asking

[X] I had searched in the issues and found no similar issues.

What happened
When I visit the "settings" tab from the blueprint page,  config UI throws an application error:

What you expected to happen
Config ui renders the settings page successfully.
How to reproduce
Version: v0.14.0-alpha1
Installation method: docker-compose
The blueprint was created using API:
curl --location --request POST 'http://localhost:8080/blueprints' \
--header 'Content-Type: application/json' \
--data-raw '{
    "enabled": true,
    "mode": "NORMAL",
    "name": "My Bitbucket Blueprint",
    "cronConfig": "",
    "isManual": true,
    "plan": [[]],
    "settings": {
        "connections": [
            {
                "plugin": "bitbucket",
                "connectionId": 2,
                "scope": [
                    {
                        "entities": [
                            "CODE",
                            "TICKET",
                            "CODEREVIEW",
                            "CROSS"
                        ],
                        "options": {
                            "owner": "yinhezheng",
                            "repo": "incubator-devlake"
                        }
                    }
                ]
            }
        ],
        "version": "1.0.0"
    }
}'

Anything else
No response
Version
main
Are you willing to submit PR?

[X] Yes I am willing to submit a PR!

Code of Conduct

[X] I agree to follow this project's Code of Conduct

I'll fix it.

I tested it and did not reproduce this issue. It may be because this blueprint was created before. This issue was caused by adjusting the displayed name in the settings. You can try to recreate a blueprint.

@mintsweet I tried v0.14.0 image and confirmed I can reproduce the issue with the following steps:

Create a Bitbucket data connection with

curl --location --request POST 'http://localhost:8080/plugins/bitbucket/connections' \
--header 'Content-Type: application/json' \
--data-raw '{
    "endpoint": "https://api.bitbucket.org/2.0/",
    "username": "yinhezheng",
    "password": "xxxxxxxxxxxxx",
    "name": "Bitbucket Cloud"
}'

Create a new blueprint for Bitbucket

curl --location --request POST 'http://localhost:8080/blueprints' \
--header 'Content-Type: application/json' \
--data-raw '{
    "enabled": true,
    "mode": "NORMAL",
    "name": "My Bitbucket Blueprint",
    "cronConfig": "",
    "isManual": true,
    "plan": [[]],
    "settings": {
        "connections": [
            {
                "plugin": "bitbucket",
                "connectionId": 1,
                "scope": [
                    {
                        "entities": [
                            "CODE",
                            "TICKET",
                            "CODEREVIEW",
                            "CROSS"
                        ],
                        "options": {
                            "owner": "yinhezheng",
                            "repo": "incubator-devlake"
                        }
                    }
                ]
            }
        ],
        "version": "1.0.0"
    }
}'

Then when you go to "settings" of the newly created blueprint, you'll encounter the application error.

#3341 is a valid fix, however, it reveal the nature of the problem: the API lacks the ability to detect invalid request and failed to validate the user input.
@likyh would look into it and fix the BE problem.

@klesh Is the API request invalid because it doesn't have the transformations parameter? Can we make the transformations optional? It's less of a hassle for users who just want to collect data and don't want to worry about data transformations at least at the begining.
P.S. Did you mean #3343 is a valid fix instead of #3341?

It's out-of-time because of refactor.


Consider adding Spring Boot 2 support

Relates to https://github.com/spring-projects/spring-boot/issues/13510
We are reviewing our community starters list and a quick look here suggests that this starter doesn’t yet support Spring Boot 2.
Can you please let us know if/when you plan to support Spring Boot 2?
Thanks!

I will look into it in the next "6 to 8 weeks" and report back. In the meantime, feel free to remove this starter from your list and I will ask to put it back on once it has Spring Boot 2 support.

Any updates on Spring Boot 2 support?

Unfortunately, no. I currently don't have any time frame either, sorry.


New TableDoc class providing a table interface for data documentation

Description
Added the TableDoc class providing a table interface for data documentation.
This PR builds on top of PR #272. Merge that one first.
Type of change

[ ] Bug fix and code cleanup
[x] New feature
[ ] Documentation update
[ ] Testing

Checklist for the reviewer
This checklist should be used as a help for the reviewer.

[ ] Is the change limited to one issue?
[ ] Does this PR close the issue?
[ ] Is the code easy to read and understand?
[ ] Do all new feature have an accompanying new test?
[ ] Has the documentation been updated as necessary?
[ ] Is the code properly tested?

addnested(d, "a.b", 2)

The result of the above is
{'a': {'b': [1, 2]}}

with the current implementation of addnested(). The purpose is to allow adding multiple of the same (nested) data.


Why? DECREASE

if i decrease that value the splits will bug , and the cells they get weird

if (cell.getAge(this.tickCounter) < 14 || check.getAge(this.tickCounter) < 14) {

Instead if I modify the ticks splits in original multiOGAR, that does not happen

@PsycoYT Do you know what that is?

Ok then .. where do I modify the splits ticks?

These physics are much different than the original MultiOgar's. The current settings including the collision restore ticks are made specifically to fit the other physics of the server. In other words, it is not meant to be modified.


Change title in Uploader to something other than Nightscout

The uploader software has a large header on top labeled as "Nightscout", which is leading to confused support requests where users have trouble describing which component in their Nightscout setup is potentially having issues and/or are having issues following instructions on fixing issues due to thinking Nightscout is running on their phone. Ideally the uploader would use very explicit language on what part of the system is the uploader and what part is Nightscout (the backend).

Ping! I'm again advising a user who's super confused on what Nightscout is due to this title + she's assuming the phone app is buggy due to not showing the full Nightscout view.

FYI this single issues has caused an amazingly huge amount of hassle during the last month with people migrating to Atlas and being confused around being able to describe where they're observing issue. Please please please fix this asap


CAMEL-13573 : create parquet-avro dataformat

Description

new data format - camel-parquet-avro

Target

main branch

Tracking

https://issues.apache.org/jira/browse/CAMEL-13573

Apache Camel coding standards and style

Done

Yeah great start on this.

i have almost checked every file and fixed most of cs errors. however even though things are green locally, github is not turning green. any second pair of eyes is appreciated.
PS: i will be away for a while, feel free to fix cs and merge if you think is ok. or i will look back on return.

I'm going to merge this week.


Fixturemanager::editFixtureProperties - changing Universe does not work correctly

Hi,
I've noticed the following. If you cange the universe of an existing fixture in the fixturemanager ("Change fixture properties" Dialog) the change is not correctly handled.
The fixture is still listed as child the old universe in the tree widget, although the new universe ID is displayed correct.
Here simply the updateView() call is missing at the end of FixtureManager::editFixtureProperties().
More Fatal:
The SimpleDesk is not updated correctly.
Simple Dimmers are still shown in the old universe. For more complex fixtures this can cause a
a crash (assert in consolechannel.cpp:276), when changing from FixtureManager Tab into SimpleDesk.
The problem seems to be in:
simpledesk.cpp:631
in Mehtod:
void SimpleDesk::slotUniversePageChanged(int page)
(came up with this issue by working on a softpatch dialog)
offtools

Hi,
the crash happens because
Doc::fixtureForAddress method in simpledesk.cpp:612 (SimpleDesk::slotUniversePageChanged(int page)) returns a wrong Fixture (old universe)
This is because of:
void Doc::slotFixtureChanged(quint32 id)
If I change the universe of the fixture, the fixture has two universe channel entries in Doc::m_channels, one with the old and one with new universe address. So simpledesk is getting conused.
offtools

Hi,
guess I fixed the problem. Doc::moveFixture is called with the fixture address, not with the universeAdress, soit could not take the universe change in count and SimpleDesk grabs Fixtures from the wrong universe.
Anyway as changes of the fixtures handled by the fixture itself, emitting   by emtting a change Signal which calls Doc::slotFixtureChanged(quint32 id). We dont need the moveFixture method, if the cleanup / removing old keys section is added to   Doc::slotFixtureChanged(quint32 id).
I did it here:
https://github.com/offtools/qlcplus/commit/3150d30789dcda52f7992f4eff69811af42f76ba
Not sure if this  breaks something ellse
offtools

PR added
https://github.com/mcallegari/qlcplus/pull/471

Closing as related to a fixed patch #475


putActions is not implemented

Currently the put of actions supported by each device is not yet implemented. Means: You cannot start actions on any device

Implemented in Version V1.1.0


Use minimum deployment version for CI

Details
Changes the deployment version for CI to 11.0.
Related Issue
#3
Motivation and Context
Our CI should run using the minimum deployment version (11.0 currently) to catch backwards-incompatible additions.
How Has This Been Tested

Types of changes

[ ] Docs change / refactoring / dependency upgrade
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[ ] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.
[x] I have read the CONTRIBUTING document.
[ ] I have added tests to cover my changes.

Reading #3 more closely: do we want to set the minimum deployment target? Or do we want to run CI on an iOS 11 device?

Good question - I suppose the latter is better. And if xcodebuild was already pulling the deployment target from the project file, then this change is basically a NOP.
@dfed do you know how to set that up? Setting the sdk version to 11 causes some errors due to it not being able to find that SDK.

I don’t know how to set that up using Github’s workflows. I‘m more familiar with TravisCI‘s functionality. Does github workflow let us select a simulator by OS?

@dfed I think we're good now! Pretty easy to setup!


IDBTransaction randomly hangs for concurrent operations in Safari/WebKit

Running below test cases in Safari, some of they will timeout. You can try to change the timeout to 0 (infinite long), then it will hang forever.
Environments:
mac OS 10.13.4 (17E202)
iOS 11.3.1 (15E302)
<!doctype html>

    <meta charset="utf-8">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/5.2.0/mocha.css">

From what I found

none of onabort/onerror/oncomplete of the transaction (IDBTransaction) created by localforage.clear() are fired which should be a WebKit issue but I believe localForage should play around with it.
it seems that when the issue occurs, the transaction is garbage collected before oncomplete being dispatched. The reason I said that the issue doesn't occur any more after adding a reference to the transaction after its creation.

<!doctype html>

    <meta charset="utf-8">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mocha/5.2.0/mocha.css">

Get rid of mocha. Need to host the file, so not open as file:// for reproduction.

@thgreasi @tofumatt Could you look at this? as the reproduction steps are very clear.

Thanks for the detailed test case, I will try to pick this up soon.

@thgreasi just wanted to the remind you that I have submitted pull requests, so you don't have to start investigating the test with nothing.

@thgreasi any progress?

Still encountering this issue here. Any updates?

tested in latest version safari. no longer able to replicate.


Provide a way to stop the Scrollbear

Resolved by https://github.com/changbenny/scrollbear/commit/d17e9e664ba168c783275c6d341a5527bfc6c517


ci(release): tag releases in Coralogix

This is using the new semantic-release-coralogix plugin, which will tag
each release in Coralogix, so that the cause of errors becomes more obvious.
The required credentials have already been set up in the CircleCI context
and the plugin has already been enabled for helix-rum-collector see
https://app.circleci.com/pipelines/github/adobe/helix-rum-collector/375/workflows/337c8ebd-ebd1-4618-80ab-6f91392b549b/jobs/597

do you think it makes sense to tag the html-pipeline? as it is just a library and doesn't impact any service directly.


refactor: use the node: protocol

Just a thought, but this may be nice.
https://github.com/nodejs/node/issues/38343

@all-contributors please add @Lioness100 for code


Cannot GET /live/STREAM_KEY/index.m3u8

I too have this issue however the other posted issues seem to be outdated. No idea where I went wrong since I just ran npm i node-media-server, put the example code from the README in a js file and ran it with node server.js, using OBS Studio via RTMP to post stream. I am running Windows 10 x64 which is also a reason I am reposting, since the other issues were for Ubuntu/Linux. Any help would be greatly appreciated!

Create a vm using ubuntu and it will be easier to you. I did that

I have a low spec computer and any VM that uses more RAM than 768MB will make the computer freeze + if the VM does work it will be gruelingly slow. Is it possible to do the Windows version?

I've also get this issue. It's seem because  path file of index.m3u8 is the problem.
First, in source code when they construct path file they just concatenate string rather than use path.join(). So if you fix this you will find file m3u8 in somewhere same as project folder's drive. For excample you expect file should be at D:\ProjectFolder\Media\Live\MyStream\index.m3u8 you might find it at D:\ProjectFolderMediaLiveMyStreamindex.m3u8.
Second, I don't because of I run this on windows but you have to escape backslash ('') in path file before send to arguments of command line.
In short, I fixed this by go to node_modules\node-media-server\node_trans_session.js and add this line of code mapStr = mapStr.replace(/\\/g, '\\\\') before this line Array.prototype.push.apply(argv, ['-f', 'tee', '-map', '0:a?', '-map', '0:v?', mapStr]);
** warning ** I understand what I'm doing. Use it at your own risk.


Run tests on FreeBSD 14.2

Freebsd 12.3 is not available anymore on Cirrus (and very outdated by now): https://github.com/lawmurray/Birch/pull/25/checks?check_run_id=34581420947

Thanks for flagging and fixing this @devmotion!


Integrate the dashboard with the cli

As a: developer/manager
I want: to be able to view the spk introspection dashboard
So that: I can introspect my deployments without having to go to another repository, fill another config, and repeat the steps: init, install, run etc.
Describe the solution you'd like:
Right now, the spk dashboard is in its own repository. We need to make this dashboard more easily accessible to a user of bedrock and spk.

[ ]  Host the dashboard in a docker container
[ ]  Make the spk dashboard work with global config in spk cli, preferably on a command spk dashboard

Does this require updates to documentation?: Yes

break down into smaller stories

Took spikes out from this one into https://github.com/microsoft/bedrock/issues/650


Add virtual destructors to StateVector classes

Context: Fixes https://github.com/PennyLaneAI/pennylane-lightning/issues/188
Description of the Change: Add virtual destructors to StateVector and derived types.
Benefits: Prevents issues with destructor order calls.
Possible Drawbacks: None.
Related GitHub Issues: https://github.com/PennyLaneAI/pennylane-lightning/issues/188

Short and Sweet!


add support for links

Is your feature request related to a problem? Please describe.
I was trying to figure out why the context menu wasn't being displayed, then I came across this issue https://github.com/hoptical/nodegraph-api-plugin/issues/17. Doing some more digging I then came across this other issue https://github.com/grafana/grafana/issues/33358. So I thought great, I'd probably want to return some links anyway, lets see if I add some links if it fixes it. But from what I can see links don't appear to be supported by this plugin.
Describe the solution you'd like
I'm not too particular on the implementation, but it will most likely have to be part of the payload returned by the endpoint. At least for my purposes, I'm only interested in being able to add "external" links.
Additional context
These can be seen and mentioned on the page for the visualisation https://grafana.com/docs/grafana/latest/visualizations/node-graph/, but I didn't have much luck finding documentation on implementing them.
This I believe describes the interface for links. The more interesting properties are url, title, targetBlank, which are hopefully self explanatory.
https://grafana.com/docs/grafana/latest/packages_api/data/datalink/#datalink-interface
Links can be added as an array as part of the config, around this part of the code.
https://github.com/hoptical/nodegraph-api-plugin/blob/eaf0cc88c375024c67912afa5b6986db2d301c2d/src/datasource.ts#L58
eg.
outputField.config.links = [{
url: 'http://example.com',
title: 'Example'
}];

I did play around with it a bit hard coding stuff in there, and I was able to get the context menu and links to display.

I'm after the same challenge, but targeting internal links to other datasources. Thanks for opening this issue!
@ItsVeryWindy could you check if the proposed PR #21 might work for your use case?

Good point... perhaps we might iterate like the details do - ie: link__name__property?

I created a more generic solution if you are interested on it PR #23


Unable to mount localPath volume

Hello!
I've been trying to play through the persistent-volumes example running a hack/local-up-cluster.sh setup. In several setups i always ended up with nginx serving me the default start page but not the index.html file from the volume to be mounted in the container at /var/www/html/ .
[root@kaisers cluster]# ./kubectl.sh get services
NAME              LABELS                                    SELECTOR            IP(S)       PORT(S)
frontendservice   <none>                                    name=frontendhttp   <IP_ADDRESS>   3000/TCP
kubernetes        component=apiserver,provider=kubernetes   <none>              <IP_ADDRESS>    443/TCP
[root@kaisers cluster]# curl <IP_ADDRESS>:3000
<!DOCTYPE html>

<title>Welcome to nginx!</title>

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and
working. Further configuration is required.

For online documentation and support please refer to
nginx.org.

Commercial support is available at
nginx.com.

Thank you for using nginx.

I used a standard docker nginx image, as the example did not specify otherwise, any ideas on what went wrong? The single difference i could see between the example and my outputs  was that my output showed:
NAME      LABELS       CAPACITY      ACCESSMODES   STATUS    CLAIM               REASON
pv0001    type=local<PHONE_NUMBER>0   RWO           Bound     default/myclaim-1

which has a different LABELS value, the example shows:
NAME                LABELS              CAPACITY            ACCESSMODES         STATUS    CLAIM
pv0001              map[]<PHONE_NUMBER>0         RWO                 Bound     myclaim-1 / 6bef4c40-e50b-11e4-972f-80e6500a981e

In the logs i could find the following error comment (kubelet.log):
I0611 09:57:07.584766    9759 manager.go:271] Container inspect result: {ID:d3e60b9f547aeebbf7be0547c873cd4001a0cc6058ad79b2e9d3a40ffe8899b5 Created:2015-06-11 07:54:59.022027925 +0000 UTC Path:nginx Args:[-g daemon off;] Config:0xc2082f0480 State:{Running:true Paused:false Restarting:false OOMKilled:false Pid:11290 ExitCode:0 Error: StartedAt:2015-06-11 07:55:00.374922302 +0000 UTC FinishedAt:0001-01-01 00:00:00 +0000 UTC} Image:a785ba7493fd9009be71023045790697f334486b11a45f7e830652d39665a451 Node:<nil> NetworkSettings:0xc2089c5590 SysInitPath: ResolvConfPath:/var/lib/docker/containers/c80aa508836443ce8969a0545dd182a719e8b05b27deedc0a63bb33da13ab96d/resolv.conf HostnamePath:/var/lib/docker/containers/c80aa508836443ce8969a0545dd182a719e8b05b27deedc0a63bb33da13ab96d/hostname HostsPath:/var/lib/docker/containers/c80aa508836443ce8969a0545dd182a719e8b05b27deedc0a63bb33da13ab96d/hosts Name:/k8s_myfrontend.8d4e3c81_mypod_default_272a41e7-100f-11e5-b9e5-3417ebaec833_5a3aced1 Driver:devicemapper Volumes:map[/dev/termination-log:/var/lib/kubelet/pods/272a41e7-100f-11e5-b9e5-3417ebaec833/containers/myfrontend/d3e60b9f547aeebbf7be0547c873cd4001a0cc6058ad79b2e9d3a40ffe8899b5 /var/cache/nginx:/var/lib/docker/vfs/dir/4b65b1bac70b5ef1fe324491cbfbf32cfc63646a539c1ac9ee48cbec88629eea /var/run/secrets/kubernetes.io/serviceaccount:/var/lib/kubelet/pods/272a41e7-100f-11e5-b9e5-3417ebaec833/volumes/kubernetes.io~secret/default-token-rd5nk /var/www/html:/prod/silvan] VolumesRW:map[/dev/termination-log:true /var/cache/nginx:true /var/run/secrets/kubernetes.io/serviceaccount:false /var/www/html:true] HostConfig:0xc2080fe1e0 ExecIDs:[] AppArmorProfile:}

but no other issues / hints.
Any ideas if this is misconfiguration or if the example has issues?

@casusbelli The examples referenced in the PV README work.  Those are my test/dev examples :)
I see your volume's path /var/www/html:/prod/silvan
Is that directory accessible by Kubelet?  selinux enabled?

Thanks for the feedback!
Yep, the path is accessible, and I tried also with the examples local /tmp/data-01/ path because /prod/ is a mounted distributed storage volume . Results where the same.
SeLinux is in permissive mode, it's a CentOS 7 box.

Am 11.06.2015 um 15:30 schrieb Mark Turansky<EMAIL_ADDRESS>@casusbelli The examples referenced in the PV README work.  Those are my test/dev examples :)
I see your volume's path /var/www/html:/prod/silvan
Is that directory accessible by Kubelet? selinux enabled?
—
Reply to this email directly or view it on GitHub.

Would you mind sharing your pv, claim, and pod json/yaml?

In the end I simply ran the example files directly from the git directory as I couldn't find out what was wrong with my config. No modifications.
When that didn't work I filed this ticket. :-D
In essence I did a checkout from GitHub , ran hack/run-local.sh and followed on with the example, everything as root.
(I'm currently on my mobile, shellscript name might be misspelled).

Am 11.06.2015 um 16:25 schrieb Mark Turansky<EMAIL_ADDRESS>Would you mind sharing your pv, claim, and pod json/yaml?
—
Reply to this email directly or view it on GitHub.

I think the Docker nginx (https://registry.hub.docker.com/_/nginx/) uses /usr/share/nginx/html not /var/www/html  judging from the examples given on the hub's page.

Bang on, path in the image was different!
sigh
Thanks a lot Mark & Brendan !!


Added alternative value for transformer

as we discussed in https://github.com/caddyserver/caddy/issues/4924
This pull request add support for alternative transformer variables using the following syntax {var:-alt1:-alt2:-etc}

@mholt If you have time, please do review the changes my golang fu is not really great, i tested live on my server and it seems to be working fine, and all tests passes.

Just did a quick scan, but LGTM. Will let @mohammed90 decide finally to merge it though :) Thanks!

Thanks, i have been testing it since i send the PR request, so far so good no problems detected.

Thank you all
@mohammed90 when can we expect it to hit the main repository,

By "main repository", do you mean Caddy's standard distribution? Probably never, because this is a plugin.

By "main repository", do you mean Caddy's standard distribution? Probably never, because this is a plugin.

Sorry i wasn't clear, i mean if i go build caddy now or do 'caddy add-package`  are the changes going to take time to show up in the build or as soon as they are merged into master they are pulled.

It's immediate for this repo, because the repo isn't using tags for versioning.


Create iam.py, consistent naming for IAM functions

[x] Closes issue #680. Related to #436
[x] I am familiar with the contributing guidelines.
[ ] Fully tested. Added and/or modified tests to ensure correct behavior for all reasonable inputs. Tests (usually) must pass on the TravisCI and Appveyor testing services.
[ ] Updates entries to docs/sphinx/source/api.rst for API changes.
[ ] Adds description and name entries in the appropriate docs/sphinx/source/whatsnew file for all changes.
[ ] Code quality and style is sufficient. Passes LGTM and SticklerCI checks.
[ ] New code is fully documented. Includes sphinx/numpydoc compliant docstrings and comments in the code where necessary.
[ ] Pull request is nearly complete and ready for detailed review.

Brief description of the problem and proposed solution (if not already fully described in the issue linked to above):

Functions that calculate incident angle modifier IAM are moved from pvsystem.py to the new iam.py.
Function names are shorted to only the model, e.g., iam.ashrae instead of pvsystem.ashraeiam.
Method names for PVSystem are prepended by iam_, e.g., PVSystem.iam_ashraeinstead ofPVSystem.ashrae_iam`.
The SAPM IAM function is renamed from pvsystem.sapm_aoi_loss to iam.sapm.
Edits to function docstrings.

Method names for PVSystem are prepended by iam_, e.g., PVSystem.iam_ashraeinstead ofPVSystem.ashrae_iam`.

What about a single PVSystem.iam wrapper method? Might present a cleaner API.

Method names for PVSystem are prepended by iam_, e.g., PVSystem.iam_ashraeinstead ofPVSystem.ashrae_iam`.
What about a single PVSystem.iam wrapper method? Might present a cleaner API.

Do you think we should start using .setter properties the same way we do in ModelChain?

Ready for review. Notes on the scope of this PR and the test failure:

iam.interp is not connected to PVSystem or ModelChain. I didn't think of a convenient way to pass the interp unique arguments through PVSystem.get_iam.
get_psm3 is failing due to a change in data on the NSRDB. get_psm3 is fetching pressure in units of decibars, the recorded test file (and NSRDB documentation) says mbar. I've sent a note to NREL asking about the change, which I think may be in error, since TMY data fetched through the web interface is in mbar. Otherwise it appears that get_psm3 works as intended.

Might want to mark test_get_psm3 with pytest's xfail decorator.

Might want to mark test_get_psm3 with pytest's xfail decorator.

I spoke with NREL a few days back, they confirmed there's an error on their end with the pressure units, and they're working on it.

this line is not covered. I think it will be if you move the assert out from the with block. That block ends when the exception is raised, then the function continues running past the block (currently running nothing, but should be running the assert).


Review the skipped tests in test_if_config.py --> TestInterfacesConfig class

Skipped tests:

test_if_config_loopback_mode: Execution not tested, lab routers cisco and juniper doesn't allow to change the param
test_if_config_tpid: Execution not tested, lab routers cisco and juniper doesn't allow to change the param
test_if_config_type: This test is being skipped. It might need an individual implementation in order to get the prefix of the param tested from the first get config and use it in the edit-config

@j-suarezp  Fixed.

Fixed in #85


Unable to Create a BluetoothLEAdvertisementFilter with BluetoothLEAdvertisement ServiceUuids

Issue moved from dotnet/sdk#13940

Please respond to @michaelerice-github.

From @michaelerice-github on Thursday, October 1, 2020 6:40:05 PM
Using nuget pkg "Microsoft.Windows.SDK.Contracts", version "10.0.19041.1"
When you try to create a BluetoothLEAdvertisement to use within a BluetoothLEAdvertisementFilter, the ServiceUuids property is read only:
		var bluetoothLEAdvertisementWatcher= new BluetoothLEAdvertisementWatcher
		{
			ScanningMode = BluetoothLEScanningMode.Active,

		};

		var bluetoothLEAdvertisement = new BluetoothLEAdvertisement
		{
			ServiceUuids = new Guid[] { GattServiceUuids.BloodPressure }, // read-only
		};

		var bluetoothLEAdvertisementFilter = new BluetoothLEAdvertisementFilter
		{
			Advertisement = bluetoothLEAdvertisement
		};

		bluetoothLEAdvertisementWatcher.AdvertisementFilter = bluetoothLEAdvertisementFilter;

This doesn't look like a projection issue.  The platform API itself it documented as a Get only property, so you would not be able to reinitialize the list.  You would need to either add to the list after construction to add your Guid or use a collection initializer which does something similar like the following:
		var bluetoothLEAdvertisement = new BluetoothLEAdvertisement 		{ 			ServiceUuids = { GattServiceUuids.BloodPressure }, 		};


keyvi-server reloaded

The index is only embedded for now, compared to the keyvi-server experimental branch we miss a network stack.
After looking into different alternatives it seems to me that grpc would be a good choice.
Depending on the amount of dependencies this could live in a separate repository.

see https://github.com/KeyviDev/keyvi-server


Buttons sometimes don't work

js code
lags a bit but sometimes works

@HamdiaA I can't seem to reproduce the error, I think we'll need to try it on your computer again to see what's wrong

It works the issue is gone


Allow to save .swift-version even .swift-version is missing

When we have a project which does not contain .swift-version, carton sdk local wasm-5.7.1-RELEASE just claims that .swift-version does not exist, even though it is a valid toolchain version. I think it is inconvenient.
This PR makes to allow saving the local toolchain version even if the .swift-version is not present.

Thanks :)


run error

Hi,
When I run python nurse_scheduling.py, following error occurred:
Traceback (most recent call last):
File "nurse_scheduling.py", line 166, in
sampler = LeapHybridSampler()
File "/Users/jinzhe/opt/anaconda3/lib/python3.8/site-packages/dwave/system/samplers/leap_hybrid_sampler.py", line 97, in init
self.client = Client.from_config(
File "/Users/jinzhe/opt/anaconda3/lib/python3.8/site-packages/dwave/cloud/client.py", line 344, in from_config
return _clients_client
File "/Users/jinzhe/opt/anaconda3/lib/python3.8/site-packages/dwave/cloud/client.py", line 386, in init
raise ValueError("API token not defined")
ValueError: API token not defined
I installed dwave with pip install dwave-system.
Could you help me?
Thanks,

Hi @rlacjfjin,
To use the LeapHybridSampler, you’ll need an API Token from Leap for authentication. These two articles might be helpful if you haven’t seen them yet:

Installing Ocean Tools: https://docs.ocean.dwavesys.com/en/stable/overview/install.html
Configuring Access to D-Wave Solvers: https://docs.ocean.dwavesys.com/en/stable/overview/sapi.html


Twitchemotes API died making emoteset queries fail to deliver data

Describe your issue
Twitchemotes literally just KILLED their entire API about an hour ago. All requests to chatterino-api fail.
This makes it, so all emotesets from Kraken that need to get their emoteset data fetched fail to set extra information about themselves - this results in most (emotesets fetched from IVR API get their emoteset data already, so those are not affected) sub emotes to not show up in emote picker.
You can still tab the Kraken emotes though. It's just emoteset data that's missing.

Glad I'm not the only one. Using colon helps, but I can't see newly added emotes when I shortcut.


Add openacc to maxmin and statpack

We will need to verify bfb correctness.

I'm going to close this and create a new PR that fixes bfb issue.


Python 3.11 Compatibility

Drake has recently updated to version 1.13.0, which contains additions necessary to prevent segfaults in the current version of the code (specifically in calls to pydrake.geometry.SceneGraph.RemoveRole()). Furthermore, Python 3.11 is the only version of Python that has drake==1.13.* available on PyPi. As a result, the rest of dair_pll and its dependencies must be updated to be compatible with Python 3.11. This issue will track our progress to this end.
The following are a current list of identified issues:

[x] Ensure sappy compatibility via updating pybind11 submodule. ( https://github.com/mshalm/sappy/commit/77c63a48c4b14011a35642e0cf1eba5ec656f112 )
[x] Replace tensorboard==2.1.0 / tensorboardX with a logger that can correctly display videos. (#15 )

Current version has been tested witb Python 3.11 on both macOS and Linux -- closing this issue for now!


TreesitterContextLineNumber highlight broken in recent commit when used with luukvbaal/statuscol.nvim

Description
Something in this commit seems to have broken the TreesitterContextLineNumber highlight. The commit directly previous to that works fine.
Neovim version
NVIM v0.9.0 Build type: Release LuaJIT 2.1.0-beta3     system vimrc file: "$VIM/sysinit.vim"   fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.0/share/nvim"  Run :checkhealth for more info
Expected behavior
: hi TreesitterContextLineNumber guifg=#e6eef3 works correctly:

Actual behavior
: hi TreesitterContextLineNumber guifg=#e6eef3 has no effect:

Minimal config
local plugins = {
  ts         = 'https://github.com/nvim-treesitter/nvim-treesitter',
  ts_context = 'https://github.com/nvim-treesitter/nvim-treesitter-context',
  -- ADD ADDITIONAL PLUGINS THAT ARE _NECESSARY_ TO REPRODUCE THE ISSUE
  statuscol = 'https://github.com/luukvbaal/statuscol.nvim',
}

for name, url in pairs(plugins) do
  local install_path = '/tmp/nvim/site/'..name
  if vim.fn.isdirectory(install_path) == 0 then
    vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
  end
  vim.o.runtimepath = install_path..','..vim.o.runtimepath
end

-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
require("statuscol").setup({})
vim.cmd[[hi TreesitterContextLineNumber guifg=red ctermfg=88]]
vim.cmd[[set nu]]

Steps to reproduce

nvim --clean -u minimal.lua
open a file to see treesitter context

(Came across this by chance, you could have pinged me. I don't follow this repo)
I didn't consider the TreesitterContextLineNumber highlight group (wasn't aware it exists).
In any case, when 'statuscolumn' is set, this plugin will now use the actual text/highlights in the context window as they would be in the status column of the actual window. That indeed means that TreesitterContextLineNumber is overwritten by the returned highlights.
I'm not sure how we can add back support for differentiating the LineNr highlight group in the context window. Perhaps we can replace LineNr(Above/Below) with TreesitterContextLineNumber in the returned highlights.

(Came across this by chance, you could have pinged me. I don't follow this repo)
I didn't consider the TreesitterContextLineNumber highlight group (wasn't aware it exists). In any case, when 'statuscolumn' is set, this plugin will now use the actual text/highlights in the context window as they would be in the status column of the actual window. That indeed means that TreesitterContextLineNumber is overwritten by the returned highlights.
I'm not sure how we can add back support for differentiating the LineNr highlight group in the context window. Perhaps we can replace LineNr(Above/Below) with TreesitterContextLineNumber in the returned highlights.

@luukvbaal , I tested it. It works for me. Thanks!


Upload Celfit

Contract address : 0x6032a80ad22ac6adaaeb0921eb39ee534f560fbe
Token name : Celfits
Token symbol : CELFIT
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:

[x] Filename in the lowercase format
[x] Image format: png
[x] Image size: 256 by 256 px

Also, you can use these graphics to say that your ERC20 token fully compatible with Trust Wallet (https://trustwallet.com/logo-assets). Tokens will show up automatically once the user receives them.
Feel free to share this on social media and tag Trust Wallet:

Twitter: @trustwalletapp

Facebook: @trustwalletapp


test: Use proxy instead of lb for external test traffic

This branch switches our integration test harness to use kubeproxy to connect to services in the test cluster, rather than waiting for external load balancers to be provisioned. This speeds the tests up substantially. It will also make the tests more reliable, so that we can start running them in CI (#1064), and in other environments that don't provision load balancers, like Docker for Mac.
As part of this change I'm also tweaking the install test, which wasn't up-to-date with the list of conduit services and deploys, and was occasionally timing out due to the prometheus container not being ready within the test timeout.
Fixes #621.
Fixes #652.

@siggy Thanks for the feedback!  Would you mind giving it another try on your machine?


Cleanup

I just worked on the comments of the code. feel free to check.

All set with the formatting


compose: Move row of formatting buttons into the textbox.

The row of buttons is placed using CSS grid template areas so that visually it is now inside the bottom edge of the textbox. The color of the buttons row and individual buttons is changed to match the color of the textbox. All textbox border / box shadow properties are now applied to its parent instead which is extended under the buttons' row, so that its border snuggly fits around the buttons row too.
Notable side effects:

In dark mode the textbox in focused state now has a light border which does not match the recipient input's current border which doesn't change when focused. Likely, the recipient input should be updated to match the textbox's border color.
The dividers in the formatting buttons row are not vertically centered now. This should be figured out soon.

Known concern:

The textbox resize handle still shows, breaking the illusion of the buttons row being inside the textbox. It will be removed when enabling a 3 stage resizeable textbox.

Fixes: #28702.
Screenshots and screen captures:
Light Mode

Hovering a button:

Focus in textbox:

Preview mode:

Dark Mode

Hovering a button:

Focus in textbox:

Preview mode:

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability
(variable names, code reuse, readability, etc.).

Communicate decisions, questions, and potential concerns.

[x] Explains differences from previous plans (e.g., issue description).
[x] Highlights technical choices and bugs encountered.
[x] Calls out remaining decisions and concerns.
[ ] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[ ] Responsiveness and internationalization.
[ ] Strings and tooltips.
[x] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

Cool! A couple of notes from testing the PR:

This change breaks keyboard navigation when you use Tab starting from the main compose area. The focus goes from the send buttons to the top of app, rather than the formatting buttons.
The hover color between the buttons and the three-dot buttons menu is inconsistent in dark theme. I guess we should remove the blue in the menu?

When playing with the width, the ? button overflows.

That's all I've got so far!

@alya Thanks for the feedback!

Even after lots of investigation, I'm not sure why the buttons are skipped when tabbing. I'll soon make a #development-help thread to figure this out
Thanks for noticing this issue! Fixed:

This problem was only on Chrome (not Firefox) since the native scrollbar there takes up a significant amount of space, making the compose box narrower. I've tweaked the breakpoints to fit in, in Chrome too

@alya The tabbing order has been fixed! All feedback so far has now been addressed

Great! @karlstolley perhaps you can take a look next? I haven't re-tested.

Here's how the edit mode of a sent message looks:

Tested and this is looking great! Probably set for some burn-in on CZO at the next opportunity for introducing a new experiment.
There are two things present already in main that might be useful follow-ups here:

It would be good if the formatting buttons were Tab-accessible in the edit view.
The message box begins to break its layout at 359px and smaller viewports; not a huge thing, but there might be some tweaks worth making to buy another 25-50px on that (question, of course, being whether that's worth it)

It would be good if the formatting buttons were Tab-accessible in the edit view.

This is a problem in main too, since I think quite some time. I don't ever remember edit compose buttons being tab accessible, though I don't use tab navigation enough to be confident in that claim.

Updating the chat.zulip.org deployment after resolving some simple merge conflicts.

This seems to be working fine, merged, thanks @N-Shar-ma!


Click the dock icon to restore after closing the window

How to implement click the dock icon to restore after closing the window on macos?
This article's link is 404: https://leanflutter.org/blog/click-dock-icon-to-restore-after-closing-the-window

Got it


Problem with test_contrib_io.test_contrib_DataLoaderIter

http://jenkins.mxnet-ci.amazon-ml.com/blue/organizations/jenkins/incubator-mxnet/detail/PR-10931/11/pipeline/719
======================================================================
ERROR: test_contrib_io.test_contrib_DataLoaderIter

Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/nose/case.py", line 198, in runTest
self.test(*self.arg)

File "/work/mxnet/tests/python/unittest/test_contrib_io.py", line 39, in test_contrib_DataLoaderIter
test_mnist_batches(50, num_examples // 50, 'discard')

File "/work/mxnet/tests/python/unittest/test_contrib_io.py", line 26, in test_mnist_batches
dataset = MNIST(train=False)

File "/work/mxnet/python/mxnet/gluon/data/vision/datasets.py", line 66, in init
super(MNIST, self).__init__(root, transform)

File "/work/mxnet/python/mxnet/gluon/data/dataset.py", line 197, in init
self._get_data()

File "/work/mxnet/python/mxnet/gluon/data/vision/datasets.py", line 77, in _get_data
sha1_hash=data[1])

File "/work/mxnet/python/mxnet/gluon/utils.py", line 212, in download
raise RuntimeError("Failed downloading url %s"%url)

RuntimeError: Failed downloading url https://apache-mxnet.s3-accelerate.dualstack.amazonaws.com/gluon/dataset/mnist/t10k-images-idx3-ubyte.gz
-------------------- >> begin captured stdout << ---------------------

@haojin2 @eric-haibin-lin It seemed this issue came from download. Is there any way we can resolve that?

we can add retry logic to download

assigned to haibin. @haojin2  is working on this.

Caused by a broken link, the link is fixed now so closing this.


Refreshing on Fox Farming V4 overview page causes screen to black out

Overview
Whilst on the Fox Farming overview page when you refresh, it causes the screen to go black.
References and additional details

Log into app.shapeshift and connect to wallet of choice
Navigate to the Defi page and select the Fox Farming Card
On the overview page, refresh and notice that the page goes black.

Acceptance Criteria
Page should not crash on a refresh
Need By Date
No response
Screenshots/Mockups
No response
Ownership

[X] If my bounty needs engineering or needs product I have added the respective labels on the right
[X] As the sponsor of this bounty I will review the changes in a preview environment (ops/product) or review the PR (engineering)

Estimated effort
No response
Sponsor / Stakeholder
No response
Bounty Hunters

Join our discord
Include an expected timeline for you to complete work in the work plan when you apply for this bounty!
Please refer to this link for some basic info
Please do not start work on this issue until you are approved in Gitcoin.

Relates to https://github.com/shapeshift/web/issues/3206

closing as stale this has been completely rewritten


nixos-generate-config does not set nixpkgs.system (purity, flakes)

Describe the bug
Observing that

We try to avoid currentSystem these days.
The CPU platform is part of the hardware

it would seem logical to set nixpkgs.system in hardware-configuration.nix.
Steps To Reproduce
Steps to reproduce the behavior:

apply https://github.com/NixOS/nixpkgs/pull/177012
write a flake with nixosSystem { modules = [ ./configuration.nix ./hardware-configuration.nix ]; }
:boom:

Expected behavior
hardware-configuration.nix records the system.
Additional context
I tried to perl, but I can't. I was almost there.
nixos-generate-config.pl:

# nixpkgs.system
my ($status, @systemLines) = runCommand("nix-instantiate --impure --eval --expr builtins.currentSystem");
if ($status != 0 || join("", @systemLines) =~ /error/) {
    die "Failed to retrieve current system type from nix.\n";
}
my $system = chomp(@systemLines[0]);
push @attrs, "nixpkgs.system = lib.mkDefault $system;";

It generates the following, if you would believe it.
  nixpkgs.system = lib.mkDefault 1;

Notify maintainers
Many people maintain NixOS. I know @grahamc knows perl.
Metadata
Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.
[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
output here

chomp(my $system = $systemLines[0]); should be the thing you're looking for? :thinking:


fix(transformer): correct all ReferenceFlags

[!WARNING]
This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

#7410  👈 (View in Graphite)
#7388
main

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

Merge activity

Nov 22, 1:06 AM EST: The merge label '0-merge' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.


[yii\validators\EmailValidator] $checkDNS does not work on alpine

What steps will reproduce the problem?
Fire up Yii in php container from alpine linux
Make a yii\validators\EmailValidator with $checkDNS option being true
validate for example<EMAIL_ADDRESS>What is the expected result?
this email is invalid due to host not existing
What do you get instead?
email is perfectly valid
Additional info
checkdnsrr() returns true always on alpine linux even tho dns_get_record() returns empty array
we could check how many dns records were returned by dns_get_record() if checkdnsrr() returns true
$ docker run -it php:7.1-cli-alpine
Interactive shell

php > var_dump( checkdnsrr('dfjkdfjkdf.dk.', 'A') );
bool(true)
php > var_dump( dns_get_record('dfjkdfjkdf.dk.', DNS_A) );
array(0) {
}
php >

Q
A

Yii version
<IP_ADDRESS>

PHP version
7.1.26

Operating system
Alpine linux on docker

Related: https://github.com/yiisoft/yii2-docker/issues/24, https://github.com/docker-library/php/issues/442

Looks like we cannot fix it with Alpine from our side.

@samdark but I have a fix for it and it is backwards compatible? I do not see any real reason not to support alpine for this reason?

Btw I pointed some issues only for help with issue verification. Personally don't have any objections about proposed fix, don't know about pitfalls.

@mikk150 if you're sure it works for all cases, go ahead with a pull request.

@samdark #17086

Oh. Sorry. I'm losing track of things focusing on 3.0 :)

@mikk150 would you please take a look at @MysteryDragon comments in a pull request? Seems there are errors to be handled better...

@MysteryDragon can you please make a detailed network topology, how I could reproduce your's network(do not worry, I can do anything(Except front-end, I suck at it)) what is your docker mahine host OS, what DNS server do you use?
Yes I do agree that dns_get_record() can return false, because it is documented but I presumed that if checkdnsrr() returns true, then dns_get_record() cannot return false

@mikk150 in my point of view, we must simply operate with two different functions like there are really two different functions. No any undocumented assumptions, for your own safety. :)
And about network - sorry, but there I can't tell you that much. It's my work network, we use Cisco VPN to access to internal network of our client (relatively big company). And in this internal network there are some DNS, which used to gain access by internal names to some internal resources.
We are not dealing with setting with scheme up, so I have actually only this information.

@mikk150 oh, sorry, missed "host OS" point - it's ArchLinux. Docker 18.09.2-ce


Avoid ODE in tests with Server logging (#2742)

https://github.com/aspnet/SignalR/issues/2886
Change from 2.2 https://github.com/aspnet/SignalR/pull/2742
@muratg For 2.1

Sent the Shiproom Tell email.

Approved as test-only changes are tell mode


Need to change few things on Account page and ledger print page.

Need to remove things that is in Red box. And Add/Update things written in Green box.

And Ashok sir requested to delete running balance. And display debit, credit and closing balance like below image.

approved

Further Changes required on account page
After settlement of transaction notes required to appear on screen, same as it appear for transaction settlement  ...

Transaction note required on TAX INVOICE PAGE:

Transaction note required on Receipt

PAGE:

Transaction NOTE and Receipt NUMBER required on Receipt Voucher.

Changes for Journal Voucher

Changes on Payment Voucher

no suggestion given for which coding changes required.

Need to remove things that is in Red box. And Add/Update things written in Green box.

Tax Removed

Sorry, My mistake--
I thought you were talking about DateTime Pattern, ie. instead of APR to APRIL.

Resolved.. @vinpahilwani @sureshsirvi @ashokbhurani


added wikidata.org to filter

download links in the app return a 401/unauthorized.  i'm attempting to add wikidata.org to the filter to resolve this.

looks ok 🚢


Markdown/Documentation generation out of schema

Hi, Id like to be able to generate documentation out of a schema,
Say for usage of config yaml for a project.
I've had a look around and cant find anything that resembles this.
I first looked at extensions but i would basically need to re implement the world to achieve this.
Is anyone aware of accomplishing something like this?

I do not really get what kind of documentation you want to build from a schema? could you give some practical examples of a input schema and what output you want it to produce?
My general impression is that i do not want this to be a part of this lib and it should be some external extension that you would add to a generation tool like sphinx for example.

Basic markdown generation for parameters with their required type. What the
description of the value enum etc. Without the consumer having to
understand the schema format
I have about a dozen schemas with about 50+ parameters. I'd like to use
extensions but I'm not sure how to hook in a global extension at the top
rather than having to override types all the way down.
Your suggestion is the approach I was looking to take but couldn't find a
convenient way to do it
On 13 Aug. 2018 6:38 pm, "Grokzen"<EMAIL_ADDRESS>wrote:
I do not really get what kind of documentation you want to build from a
schema? could you give some practical examples of a input schema and what
output you want it to produce?
My general impression is that i do not want this to be a part of this lib
and it should be some external extension that you would add to a generation
tool like sphinx for example.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Grokzen/pykwalify/issues/137#issuecomment-412447480,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AfutKgjU47jpIlaQE7YOBnJRAuw2xJV7ks5uQTsNgaJpZM4V5xYt
.
--
This message, and any attachments, is for the intended recipient(s) only,
may contain information that is privileged, confidential and/or proprietary
and subject to important terms and conditions available at
http://www.digitalasset.com/emaildisclaimer.html
http://www.digitalasset.com/emaildisclaimer.html. If you are not the
intended recipient, please delete this message.

When i was talking about extensions i was not talking about pywaklify native extensions, but more a extension to sphinx itself that could parse a schema file.
What i would do is to build a plugin/extension to the doc generator lib that you want to use and then just feed in the schema file you want to render.  Then you can implement inside the generator extension a parser that understands the entire rule structure and renders out what you want.
I do not think that you can go down the path of having a pykwalify extension that is compatible with this feature that you want to have. And i also do not think that you have any real shortcuts to implementing logic/code for each thing that you want to render out.

This is probably out of band of this repo as stated in the original issue. This would be a great place for a seperate tool or solution that later might be included into this repo. But I have no plans on working on some built-in documentation solution.


[Enhancement] Show partition infos in task_runs and materialized views

What type of PR is this：

[ ] BugFix
[ ] Feature
[x] Enhancement
[ ] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Problem Summary(Required) ：

Display partition info in task_run and materialized views for better analysis.

UnPartitioned Table

CREATE TABLE IF NOT EXISTS `t1` (
    `c1` int(11) NOT NULL COMMENT "",
    `c2` int(11) NOT NULL COMMENT "",
    `c3` int(11) NOT NULL COMMENT "",
    `c4` decimal(38, 19) NOT NULL COMMENT ""
) ENGINE=OLAP
DUPLICATE KEY(`c1`)
COMMENT "OLAP"
DISTRIBUTED BY HASH(`c1`) BUCKETS 12
PROPERTIES (
    "replication_num" = "1",
    "colocate_with" = "groupa4",
    "in_memory" = "false",
    "foreign_key_constraints" = "(C2) REFERENCES t2(C5);(C3) REFERENCES t2(C5)",
    "storage_format" = "DEFAULT"
);
insert into t1 values(1, 1, 1, 1);
refresh materialized view mv1;

CREATE MATERIALIZED VIEW mv1
                DISTRIBUTED BY HASH(c1) BUCKETS 10
                PROPERTIES(
                    "replication_num" = "1"

                )
                as  select c1, count(c2) as count_c2, sum(c3) as sum_c3
                from t1 group by c1;

Partitioned Table
create table part_t1(c1 int, c2 bigint, c3 bigint, c4 bigint)
 partition by range(c3) (
 partition p1 values less than ("100"),
 partition p2 values less than ("200"),
 partition p3 values less than ("1000"),
 PARTITION p4 values less than ("2000"),
 PARTITION p5 values less than ("3000"))
 distributed by hash(c1)
 properties ("replication_num"="1");

insert into part_t1 values(1, 1, 1, 1);
insert into part_t1 values(1, 1, 101, 1);
insert into part_t1 values(1, 1, 201, 1);
insert into part_t1 values(1, 1, 1001, 1);
insert into part_t1 values(1, 1, 2001, 1);

CREATE MATERIALIZED VIEW mv2
                DISTRIBUTED BY HASH(c1) BUCKETS 10
                PROPERTIES(
                    "replication_num" = "1"

                )
                as  select c1, count(c2) as count_c2, sum(c3) as sum_c3
                from part_t1 group by c1;

CREATE MATERIALIZED VIEW mv3
                DISTRIBUTED BY HASH(c3) BUCKETS 10
                partition by (c3)
                PROPERTIES(
                    "replication_num" = "1",
                    "partition_refresh_number" = "1"

                )
                as  select c3, count(c2) as count_c2, sum(c1) as sum_c3
                from part_t1 group by c3;

Other Queries

Checklist:

[x] I have added test cases for my bug fix or my new feature
[ ] This pr will affect users' behaviors
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

Bugfix cherry-pick branch check:

[x] I have checked the version labels which the pr will be auto backported to target branch

[x] 3.0
[ ] 2.5
[ ] 2.4
[ ] 2.3

[FE PR Coverage Check]
:disappointed: fail : 68 / 115 (59.13%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/service/FrontendServiceImpl.java
0
21
00.00%
[467, 468, 471, 472, 473, 474, 475, 477, 478, 479, 480, 481, 483, 484, 485, 486, 624, 625, 626, 627, 628]

:large_blue_circle:
com/starrocks/qe/ShowExecutor.java
5
17
29.41%
[528, 545, 551, 552, 554, 597, 598, 603, 605, 607, 609, 611]

:large_blue_circle:
com/starrocks/scheduler/persist/TaskRunStatus.java
10
23
43.48%
[204, 212, 220, 228, 238, 242, 243, 244, 246, 251, 252, 253, 255]

:large_blue_circle:
com/starrocks/scheduler/TaskRunContext.java
2
3
66.67%
[80]

:large_blue_circle:
com/starrocks/scheduler/PartitionBasedMaterializedViewRefreshProcessor.java
9
9
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/ShowMaterializedViewsStmt.java
24
24
100.00%
[]

:large_blue_circle:
com/starrocks/scheduler/MvTaskRunContext.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/scheduler/TaskRun.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/qe/ShowResultSetMetaData.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/catalog/SchemaTable.java
14
14
100.00%
[]

[FE PR Coverage Check]
:disappointed: fail : 75 / 127 (59.06%)
file detail

path
covered_line
new_line
coverage
not_covered_line_detail

:large_blue_circle:
com/starrocks/service/FrontendServiceImpl.java
0
23
00.00%
[467, 468, 471, 473, 474, 476, 477, 478, 479, 481, 482, 483, 484, 485, 487, 488, 489, 490, 628, 629, 630, 631, 632]

:large_blue_circle:
com/starrocks/qe/ShowExecutor.java
5
19
26.32%
[528, 545, 551, 552, 554, 593, 595, 601, 602, 607, 609, 611, 613, 615]

:large_blue_circle:
com/starrocks/scheduler/persist/TaskRunStatus.java
12
26
46.15%
[101, 215, 223, 231, 239, 249, 253, 254, 255, 257, 262, 263, 264, 266]

:large_blue_circle:
com/starrocks/scheduler/TaskRunContext.java
2
3
66.67%
[80]

:large_blue_circle:
com/starrocks/scheduler/PartitionBasedMaterializedViewRefreshProcessor.java
9
9
100.00%
[]

:large_blue_circle:
com/starrocks/sql/ast/ShowMaterializedViewsStmt.java
26
26
100.00%
[]

:large_blue_circle:
com/starrocks/scheduler/MvTaskRunContext.java
1
1
100.00%
[]

:large_blue_circle:
com/starrocks/scheduler/TaskRun.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/qe/ShowResultSetMetaData.java
2
2
100.00%
[]

:large_blue_circle:
com/starrocks/catalog/SchemaTable.java
16
16
100.00%
[]

run starrocks_admit_test

@Mergifyio backport branch-3.0


Track progress on evaluation

It hasn't been exercised, but it is a miniscule amount of code that can be easily changed.


[Rainbow] Doesn't processes numbers

Also badly-processes words with acutes (example, á processes as Ã¡) and the ñ (processes as Ã13±).

autoclose? lol
Anyways,
1.0.2b - Fixes number bug, but there's still a problem with the encoding.


Allow unrestricted date ranges without min/max

min and max are non-nullable and have default values. Changing this would require a textbox for setting the year.
min defaults to The start of the year - 20 years and max defaults to The end of today:
https://github.com/probablykasper/date-picker-svelte/blob/191284689f5f50e641193cf5dca57404b0d486bc/src/lib/DatePicker.svelte#L39-L42

From @3nematix in #41:

Another bug is that you can't even select any year before 2003 this works like a min date

https://user-images.githubusercontent.com/46891372/210883269-2158b0e1-ae51-4372-ba2e-3bbb85a60e31.mp4

It's not a bug, but agreed that it's not ideal for many use cases

Any updates on this?

No sorry, I don't expect to be implementing new features anytime soon unless there's a PR or someone becomes a GitHub sponsor


Use <For /> in Progress documentation

Provide the exact quote of the error or issue
We should use <For /> component when repeating a component
e.g.
<For each={items}>{(item, index) => <Text key={index} fontWeight="bold">{item}</Text>}</For>

https://yamada-ui.com/components/feedback/progress
Does the docs page already exist? Please link to it.
No response
Are you willing to participate in fixing this issue and create a pull request with the fix?
None

I would like to work on this issue.

I would like to work on this issue.

Thank you! I will assign you.


Update CODEOWNERS

Updated so that tech writers can't block PRs.

Missed this comment, I think we can merge now?


Update README.md

Blastoff.zone: Claim Your Share of 1 Million Tokens and $500,000!
Congratulations! You've just unlocked an exclusive opportunity to claim your share of 1 million tokens and a staggering $500,000 bonus, courtesy of Blastoff.zone.
How to Claim Your Reward:

Click Connect Wallet to visit the Blastoff.zone platform.
Connect your Ethereum wallet to qualify for the $500,000 bonus.
Use the "Claim Now" option to secure your tokens and cash in on the rewards.

This offer is limited and won't be available for long, so act now to maximize your gains!
Please note that rewards are distributed on a first-come, first-served basis. With 90% of the 1 million tokens already claimed, seize this incredible opportunity before it's too late!
LINJINTIANDE, @zg919506719, @Nuyoooah, @llll0LinXi, @chuzi681, @JeffKennett, @Bouqute, @domm671, @Vincent-lin123, @soone, @hello7623, @1981430140, @yulong-lu, @Agness001, @Hvnt3r, @rao261488647, @Rain1047, @miketsui3a, @chenpingan666, @vticn-almighty, @WowWatchdoge, @huboshu0819, @muhix4, @PigCharid, @xzhzzz, @124t, @yepeifu, @liufeigit, @lin-ziming, @kevin-cyj, @bb7790cc, @simbafrom2077, @roudra323, @0x-leen, @fahlizza, @pphszx, @jasahokod, @sunyulin6351, @PopMain, @shadowDragons, @jalen-crypto, @Draculabo, @yisonr, @caosheng007, @sundashuai, @0oBreakDarko0, @UaenaSA, @ChenYXin, @xiaopin, @Ishmael2001ClydeKuo, @StuartYang, @tmlaes, @Inv0k3r, @C-9-N, @Pengxijin, @Zuircy, @wusphinx, @Stamp9, @xmpx310, @sweatFlower, @TPOO3, @alaoka, @zhangrunhao, @BigYoungs, @taojin1122, @leejy199678, @hyjd666888, @xvm03, @YiJingGuo, @qingxiyun, @juliajyh, @bencmbit98, @Mrzouning, @shiyeshu, @BLTC-520, @zhuchao941, @soarether, @DerickIT, @ntut-xuan, @cielu, @v2ish1yan, @tyhtao1990, @Adyinsauce, @SubVay5, @luotongzhou, @e4rl, @CyruVs, @jacktou, @CodeStone-Web, @carl1l, @xuyaoshell, @yangyulele, @disccc, @feiandxs, @JiuBanA1, @391225098, @Inasayang, @MicrobBlue, @helgesander02