add support for log colors

add support for log colors in terminal

[ ] All tests passed. If this feature is not already covered by the tests, I added new tests.
[ ] This pull request is on the dev branch.
[ ] I used gofmt for formatting the code before submitting the pull request.

I have read the CLA Document and I hereby sign the CLA

closed since opened new pr https://github.com/jfrog/jfrog-client-go/pull/239


getColumn and getExtendedSql returning blank when string is over around 120 characters

I am using build 1280 of mt4 and I ran into this wierd problem, im not sure if its just me or it will effect others but i wanted to post my (dodgy) fix if anyone else runs into it. Any time i used getColumn on a table field that was larger than around 120characters or used getExtendedSql and the query was over 120 chars long i was getting a blank return value. Im no c programer but i dug around and worked out a dodgy fix just to get me out,  I made a single line addition to StringFromUtf8Pointer in Common.mqh after the second call to MultiByteToWideChar.
string StringFromUtf8Pointer(intptr_t psz,int len)   {    if(len < 0) return NULL;    string res;    int required=MultiByteToWideChar(CP_UTF8,0,psz,len,res,0);    StringInit(res,required);    int resLength = MultiByteToWideChar(CP_UTF8,0,psz,len,res,required);    res = StringFormat("%s",res);    if(resLength != required)      {       return NULL;      }    else      {       return res;      }   }
Im no C programer and i have very little idea of what im doing so im unsure what caused this (maybe the copied string in memory doesnt quite jazz with mt4 perfectly) but my hack seems to have fixed it

OK the code formating isnt very good, basically i just added this line:
res = StringFormat("%s",res);
after the second call to MultiByteToWideChar and it fixed my issue

Re: [dingmaotu/mql-sqlite3] getColumn and getExtendedSql returning blank when string is over around 120 characters (#4)
Hello beerb0x,
thank you for your comment and fix. I've no problem with the string lengths earlier. Is it possible that you had some special character in the field, and not the length was the problem?
Radu

Im not sure what was causing it it seems to be a very strange problem to have. It was just a basic table with text & date fields populated via a Python script

Ok I finally added my sqllite code to my system thats using the ZeroMQ library and found the actual issue. It appears the SQLITE bindings are using earlier versions of the functions from the mql4-lib library. The bug appears to have been fixed with the newer mql4-lib functions. I think the fix would be to update the sqlite bindings with the current mql4-lib project.
string StringFromUtf8Pointer(intptr_t psz,int len)   {    if(len < 0) return NULL;    string res;    int required=MultiByteToWideChar(CP_UTF8,0,psz,len,res,0); // need to include the NULL terminating character    StringInit(res,required+1);    int rlen=MultiByteToWideChar(CP_UTF8,0,psz,len,res,required);    return rlen != required ? NULL : res;   }
It appears the null terminating character is the problem and that is not included in the sqllite library

@beerb0x
If you use tripple back-ticks (```) to enclose your code markup, we can actually read it.

No probs, new to github signed up to post this heh, ive fixed the others.


'throw' is partially covered in async method.

The line 'throw' is only partially covered. The closing bracket after it is not covered. I believe this is a bug, how can I cover the throw statement more?

Hi @Pentadome,
This has been resolved.
You may find it in the latest release in dotnet-coverage.
This will also be available in the next Visual Studio release (17.10).


Travis CI breaks the build after 10 minutes without any output no terminal

Looks that after some datasets were added to Toolbox the journey test of CEAP is not able to run on Travis CI because it takes more than 10 minutes without any log.
Broken build

That's Travis expected behavior — but there's travis_wait if we really need it ; )

Thank you for explanation.
Should we use  this feature, should we improve our tests to be faster or improve the UX/loggability?

As I mentioned in #87 and #91: we need to improve our tests — the journey is not merely testing, it's literally running the app ; )


feat: Added C implementation for @stdlib/math/base/special/fibonacci-index

Resolves #1756
Description

What is the purpose of this pull request?

This pull request:
This adds the native C implementation for @stdlib/math/base/special/fibonacci-index.
double stdlib_base_fibonacci_index( const double F );
Related Issues

Does this pull request have any related issues?
No

This pull request:

resolves #1756
fixes #1756

Questions

Any questions for reviewers of this pull request?
I am not sure about the benchmark folder . Can you please guide over it.
I tried understanding the format from abs which was implemented inside @stdlib/math/base/special/abs .

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

No.
Checklist

Please ensure the following tasks are completed before submitting this pull request.

[x] Read, understood, and followed the contributing guidelines.

@stdlib-js/reviewers

@vivek-anand-singh This PR cannot be accepted as is.

This PR also includes cusome-by. Please keep your PRs to only 1 feature. Multiple features should be split across separate PRs.
You added @stdlib/math/special/fibonacci-index, and not @stdlib/math/base/special/fibonacci-index. Adding the former is not what was requested.

As #1756 has already been implemented in #2272, I will go ahead and close this PR. @vivek-anand-singh I suggest finding another issue to work on, perhaps asking on #649 where work is being tracked.

@kgryte, I deeply apologize for the mistakes in my PR.
For the first issue, I previously raised a PR on the cusome-by branch (PR #2661). When the second issue got assigned to me, I mistakenly assumed I was on the main branch and didn't switch branches. This oversight affected the PR, and I take full responsibility for it.
For the second issue, I overlooked the base folder, which I fully accept was my fault. I should have been more thorough in reviewing the project structure.
I sincerely apologize for any inconvenience caused. I genuinely want to learn from this experience and contribute positively to the organization in the future. I'm truly sorry for the oversight and would be grateful for another opportunity to make things right.


[RFC]:  add C implementation for @stdlib/math/base/special/maxabsn

Description
This RFC proposes adding C implementation for @stdlib/math/base/special/maxabsn .
Related Issues
Related issues #649.
Questions
No.
Other
No.
Checklist

[X] I have read and understood the Code of Conduct.
[X] Searched for existing issues and pull requests.
[X] The issue name begins with RFC:.

I would like to work on this.

@stdlib-bot assign

@kgryte Hi, I want to work on this task. if you allow.

This is a variadic JavaScript API, no? If so, there will be no C implementation.

As no  C implementation of @stdlib/math/base/special/maxabsn required, we can close this issue. I had confused this for some other package.


Checking is_alive status for terminal_group fails

Thanks for making your library available - saved me a few hours of work. However, models.py class BaseTGIsAliveyModel (sic!) on line 439 seems to use wrong base class to return results:
class BaseTGIsAliveyModel(BaseResponseModel):
    is_alive_status: Optional[List[StreetsItemModel]] = Field(alias="isAliveStatus")

Upon quick source code inspection and monkey-patching, I believe its is_alive_status field should be defined like this in order to return anything but Pydantic model validation errors:
    is_alive_status: Optional[List[TGIsAliveItemModel]] = Field(alias="isAliveStatus")

@em-ex  OU
I just saw it now, I'll fix it.
Thank you very much for your help :)


Include project name in default sql-dump filename

Feature request.
Developers tend to accumulate lots of DB dumps, and share them around, too.
I think it would help to include the project name, so we get dumps like acme-corporation_master-dump.sql

I'd prefer the project ID rather than the project title - see my PR #423. This means the filename is going to uniquely identify that project, and the filename will be a reasonably predictable length and format (we can make a 'slug' of the project name but it won't be unique, and it will add complexity).

Added in v2.13.0


version bump

This should resolve some of the issues with the pip install. CC @antgonza

Thanks!
On Thu, Apr 25, 2019, 2:55 PM Antonio Gonzalez<EMAIL_ADDRESS>wrote:

Merged #52 https://github.com/biocore/songbird/pull/52 into master.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/biocore/songbird/pull/52#event-2301171056, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AA75VXM7Y556V74BRABYF4LPSH5BBANCNFSM4HIPUDLQ
.


[Python] SerializeToString exception cause client Deadline Exceeded

Hi,
Today I made some change to the gRPC python example to verify the situation several days ago I met.
server side changes:
-- a/examples/python/helloworld/greeter_server.py
+++ b/examples/python/helloworld/greeter_server.py
@@ -39,7 +39,8 @@ _ONE_DAY_IN_SECONDS = 60 * 60 * 24
 class Greeter(helloworld_pb2.BetaGreeterServicer):

   def SayHello(self, request, context):
-    return helloworld_pb2.HelloReply(message='Hello, %s!' % request.name)
+    #return helloworld_pb2.HelloReply(message='Hello, %s!' % request.name)
+    return 1

client side changes:
--- a/examples/python/helloworld/greeter_client.py
+++ b/examples/python/helloworld/greeter_client.py
@@ -35,14 +35,24 @@ from grpc.beta import implementations

 import helloworld_pb2

+import time
+
 _TIMEOUT_SECONDS = 10

 def run():
-  channel = implementations.insecure_channel('localhost', 50051)
-  stub = helloworld_pb2.beta_create_Greeter_stub(channel)
-  response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'), _TIMEOUT_SECONDS)
-  print("Greeter client received: " + response.message)
+    channel = implementations.insecure_channel('localhost', 50051)
+    stub = helloworld_pb2.beta_create_Greeter_stub(channel)
+    for i in xrange(10):
+        print("loop:%d" % i)
+        t0 = time.time()
+        try:
+            response = stub.SayHello(helloworld_pb2.HelloRequest(name='you'), _TIMEOUT_SECONDS)
+            print("Greeter client received: " + response.message)
+        except Exception,e:
+            print("ex:%s" % e)
+        t1 = time.time()
+        print('cost:%f' %  (t1 - t0))

the server side output:
RROR:root:Exception during transmission!
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/grpc/framework/foundation/callable_util.py", line 69, in _call_logging_exceptions
    return _EasyOutcome(Outcome.Kind.RETURNED, behavior(*args, **kwargs), None)
  File "/usr/local/lib/python2.7/dist-packages/grpc/_links/service.py", line 473, in accept_ticket
    self._kernel.add_ticket(ticket)
  File "/usr/local/lib/python2.7/dist-packages/grpc/_links/service.py", line 345, in add_ticket
    call.write(rpc_state.response_serializer(ticket.payload), call, flags)
TypeError: unbound method SerializeToString() must be called with HelloReply instance as first argument (got int instance instead)

and the client side output:
loop:0
ex:ExpirationError(code=StatusCode.DEADLINE_EXCEEDED, details="Deadline Exceeded")
cost:10.004531
loop:1
ex:ExpirationError(code=StatusCode.DEADLINE_EXCEEDED, details="Deadline Exceeded")
cost:10.004997
loop:2
ex:NetworkError(code=StatusCode.INTERNAL, details="Received RST_STREAM err=2")
cost:10.004129
loop:3
ex:NetworkError(code=StatusCode.INTERNAL, details="Received RST_STREAM err=2")
cost:10.004836

As the output above shows, when the server returns a wrong type(int in this case), the client halt there for about the TIMEOUT(10s in this case) duration. So will you change the code to make it like that server side has an exception arises and the client returns as soon as possible? thanks:)

Closing; the work needed here is a subset of issue 2634.


Deprecate DSN-based transport configuration

I want to move all implementations to a model where the transport is explicit instead of using the less understood DSN magic. This is to standardize things across languages where sometimes the schema based model doesn't make a lot of sense.
i.e.
Raven(dsn='...', transport=ThreadedTransport)

This also means we dont have to load all these modules in-memory and it's less confusing to end-users on how to use your own.

I'm going to take care of this, starting with a refactor of how we manage DSNs.

Sounds sensible.

What about users of the SENTRY_DSN environment variable for environment-based configuration management?

@kainz you cant configure most of the clients with just the environment, and that's intended for sensitive things less so than "heres how my app works"

Work is being done in dsn-refactor branch.
I have a few goals with this branch and intend to rebase+force-push, so everyone should avoid touching it.


Improve error message for invalid aggregate queries

Is your feature request related to a problem or challenge?
This query is invalid because its order by clause has an aggregated column
select min(v2) from t1 group by v1 order by v2;

However its error message is confusing (run in datafusion-cli:)
DataFusion CLI v41.0.0
> create table t1(v1 int, v2 int);
0 row(s) fetched.
Elapsed 0.073 seconds.

> select min(v2) from t1 group by v1 order by v2;
Schema error: No field named t1.v2. Valid fields are "min(t1.v2)".

Reference for duckdb's error message which is more understandable
D select min(v2) from t1 group by v1 order by v2;
Binder Error: column "v2" must appear in the GROUP BY clause or must be part of an aggregate function.
Either add it to the GROUP BY list, or use "ANY_VALUE(v2)" if the exact value of "v2" is not important.
LINE 1: ...t min(v2) from t1 group by v1 order by v2;

Describe the solution you'd like
Use error message similar to duckdb's
Note use different aggregate function (as suggested by DuckDB's error message to use ANY_VALUE) is not supported for DataFusion (yet), we should change this part of the error message
-- Allowed
select min(v2) from t1 group by v1 order by v1;
-- Allowed
select min(v2) from t1 group by v1 order by min(v2);
-- Not supported yet by DataFusion, but widely supported by other systems
select min(v2) from t1 group by v1 order by first_value(v2);

Describe alternatives you've considered
No response
Additional context
No response

take

@2010YOUY01 Might need some help with this one. From my understanding the function is right now being called when the type coercion rule is being called during the optimize phase. Do we want to set up a check during the sql phase to make sure that the order by expression appears either as an aggregate in the select or part of the group by clause?

@2010YOUY01 Might need some help with this one. From my understanding the function is right now being called when the type coercion rule is being called during the optimize phase. Do we want to set up a check during the sql phase to make sure that the order by expression appears either as an aggregate in the select or part of the group by clause?
When I think of implementing that, it involves going to the select_to_plan function and doing the check. Would this be fine? it seems a little costly though

Thank you for the recent bug fixes.
I'm not familiar with this part of code either. My understanding of your concern is: this piece of check is during optimize phase now, but it's more reasonable to be done in sql(planning) phase?
If that's the case, the current implementation may be due to some historical reasons. I think it's better to keep all related logic in one place, so it's okay to do that during optimization, and also good to refactor everything to a more reasonable place (if this is easy to do)

Figuring out the optimization part is tricky, as the error is being called during the optimization traversal. I'll unassign myself as I want to currently learn another part of the codebase first.


🐛  Fixed api url for the ghost sdk

no issue

mirror LTS behaviour to master
if your blog or admin url is configured to http, it's still possible that e.g. nginx allows both https/http
that's why we should generate the api url without protocol in this case
so it depends how you serve your blog, example:

blog url is http://example.com
generated api url for the sdk is //example.com (dynamic protocol allowed)
you serve your blog via https://example.com, protocol is https
you serve your blog via http://example.com, protocol is http

i am  not 100% confident that this is correct, but it reflects how this has worked in LTS (so we port this over for now)

I also am not 100% about this because I can no longer remember all the different cases, but if it more accurately matches LTS I think we should ship it and see, we can always tweak it more later.

I also am not 100% about this because I can no longer remember all the different cases

I am just leaving my notes here from slack. In case we tackle this in the future.
It doesn't matter which use case i take, i always end up in the situation that without modifying my allowed origins (client trusted domains), the api url without protocol is unhelpful.
There are always two things to take care of:
A: http->https calls (or the other way around)
B: different domain calls
Both affect cors, because http protocol changes are counted as cross domain requests.
Example why i don't understand the no-protocol case:

so if my url is configured to http://example.com, but my web server allows https
no admin url is configured
Ghost generates //example.com/ghost/v0.1
Now I go to https://example.com, so Origin is https
Alright, protocol is dynamic, the frontend requests https://example.com/ghost/v0.1
Ghost won't allow https requests, because you are doing a cross domain request (protocol is counted as cross domain) and your url is configured to http
so you have to allow it explicit
maybe the cors logic in Ghost is incorrect (we have to allow both http+https by default)

So i am looking for the use case which solves a problem, but i can't find one. Maybe my head just hangs.


ROX-21512: Enable scanner v4 support in sensor for local scanning

Description
Change Sensor local scanning certificate repo so it only supports ScannerV4 certs when features.ScannerV4 is enabled.
Note: if Central returns ScannerV4 certs when the feature flag is disabled then ScannerV2 certs still persist and unknown type error is logged.
Checklist

[ ] Investigated and inspected CI test results
[ ] Unit test and regression tests added
[ ] Evaluated and added CHANGELOG entry if required
[ ] Determined and documented upgrade steps
[ ] Documented user facing changes (create PR based on openshift/openshift-docs and merge into rhacs-docs)

If any of these don't apply, please comment below.
Testing Performed
Here I tell how I validated my change
TODO(replace-me)
Use this space to explain how you validated that your change functions exactly how you expect it.
Feel free to attach JSON snippets, curl commands, screenshots, etc. Apply a simple benchmark: would the information you
provided convince any reviewer or any external reader that you did enough to validate your change.
It is acceptable to assume trust and keep this section light, e.g. as a bullet-point list.
It is acceptable to skip testing in cases when CI is sufficient, or it's a markdown or code comment change only.
It is also acceptable to skip testing for changes that are too taxing to test before merging. In such case you are
responsible for the change after it gets merged which includes reverting, fixing, etc. Make sure you validate the change
ASAP after it gets merged or explain in PR when the validation will be performed.
Explain here why you skipped testing in case you did so.
Have you created automated tests for your change? Explain here which validation activities you did manually and why so.
Reminder for reviewers
In addition to reviewing code here, reviewers must also review testing and request further testing in case the
performed one does not seem sufficient. As a reviewer, you must not approve the change until you understand the
performed testing and you are satisfied with it.

/retest

/retest


Cannot get javascript variable in by evaluate function

Hi Everyone.
I got a problem when using evaluate to get some javascipt variable in window scope.
Steps to reproduce
Tell us about your environment:

Puppeteer version: 1.11.0
Platform / OS version: OSX
URLs (if applicable):
Node.js version: 8.11.1

What steps will reproduce the problem?
Please include code that reproduces the issue.
const puppeteer = require('puppeteer');

puppeteer.launch({headless: false, devtools: true}).then(async browser => {

    const page = await browser.newPage();
    let url = 'https://www. h k     b n . n e t / p e r s o n a l / m o b i l e / e n / p h o n e / iP h o ne-8-Plus'.replace(/ /g, '');
    await page.goto(url, {'waitUntil': 'networkidle0', 'timeout': 0}).catch(e => {

        console.log(e.toString());

    });

    // await page.waitForFunction(() => 'ga' in window);

    console.log('ga variable problem', await page.evaluate(() => ga)); // Got undefined but it's should be show google analytics information
    console.log('----------------');

    await page.goto('https://akoant.com', {'waitUntil': 'networkidle0', 'timeout': 0}).catch(e => {

        console.log(e.toString());

    });

    console.log('ga variable correct', await page.evaluate(() => ga.getAll())); // work fine ....

    await browser.close();

});

What is the expected result?
I should return google analytics object like i input javascript command into developer tools.

What happens instead?
Got wrong result.

Thank you.

From page.evaluate() you can only transfer serializable values (values that can be serialized via JSON.stringify()). Functions cannot be serialized and undefined is returned instead. In your second case page.evaluate() returns serializable object and it works properly. If you try this line:
console.log('ga variable problem', await page.evaluate(() => ga.toString()));

you will see that function is defined:
ga variable problem function(a){J(1);Z.D.apply(Z,[arguments])}

From page.evaluate(), you can only transfer serializable values (values that can be serialized via JSON.stringify()). Functions cannot be serialized and undefined is returned instead. In your second case page.evaluate() returns serializable object and it works properly. If you try this line:
console.log('ga variable problem', await page.evaluate(() => ga.toString()));

you will see that the function is defined:
ga variable problem function(a){J(1);Z.D.apply(Z,[arguments])}

Thanks, It's save a lot of my time.


docs(v2): add tag filters to showcase page

Motivation
closes #4238
Have you read the Contributing Guidelines on pull requests?
Yes
Additional Information
Right now, I am trying to update the sites rendered by using
filteredUsers = users.filter((user) => user.tags.includes(selectedTags)).
But this does not seem to work as includes is only defined on arrays, and although user.tags is an array in user.js it appears to be treated as an object inside the filter function.
There are two ways to go about this:

either write a custom function for includes
or convert the object into an array as @javidrashid suggested

Let me know if any of these work or if there is another better way to go about this.

Hi @lisa761
I'm completing this PR and going to merge it tomorrow, please don't add new commits


chore: WDS colors bdNeutral and bdNeutralHover

Description
tl;dr Fixed APCA contrast checks and logic for bdNeutral, fixed bdAccent check too (see also #23218 for more stuff to fix). Adjusted gradations of hover for the color to make it visible in both modes.
Fixes #22823
Media
New on the left, current on the right (using the latest DP instead of release deploy, since it's failing at the moment of creation of this PR)
https://github.com/appsmithorg/appsmith/assets/80973/cfcb7aa7-17cd-454d-a452-779efba20158
Type of change

Bug fix (non-breaking change which fixes an issue)
New feature (non-breaking change which adds functionality)
Chore (housekeeping or task changes that don't impact user perception)

How Has This Been Tested?

Manual

Test Plan
Initial POC refinement, no testing necessary
Checklist:
Dev activity

[x] My code follows the style guidelines of this project
[x] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] PR is being merged under a feature flag

QA activity:

[ ] Test plan has been approved by relevant developers
[ ] Test plan has been peer reviewed by QA
[ ] Cypress test cases have been added and approved by either SDET or manual QA
[ ] Organized project review call with relevant stakeholders after Round 1/2 of QA
[ ] Added Test Plan Approved label after reveiwing all Cypress test

/build-wds-preview

LGTM! I'll merge this once build is finished.


Sharp toFile doesn't save files to local machine when deployed on Heroku, it does work in localhost

Hello,
I'm trying to save uploaded images on the local disk, which is a mounted disk.
During upload tests on localhost it works perfectly fine, the images are directly appearing on the local disk.
When it's deployed on Heroku, the code executes without any error message, but the images don't appear at all on the local disk.
The folder structure is already in place, so there is no need to create new folders.
What am I missing here?
"node": "14.15.5" "sharp": "^0.30.7" "Windows 10": "build 19043.1766"
// Resize images
const resizeImages = async (req, res, next) => {
// Get Property Data
const propURL = new URL(req.headers.referer)
const propertyData = propURL.searchParams
const propertyCode = propertyData.get("code")
const imgFolder = IMG-${propertyCode}
const destination = Z:\App\Library\${propertyCode}\Inventory Website\${imgFolder}
// Check for image files
if (!req.files) return next()
// Array images
req.body.images = []
await Promise.all(
req.files.map(async (file) => {
const filename = file.originalname.replace(/..+$/, "")
const newFilename = RENAME-${filename}-${Date.now()}.jpg
const targetPath = ${destination}\${newFilename}
await sharp(file.buffer).resize(2048).toFormat("webp").toFile(targetPath)
req.body.images.push(newFilename)
})
)
next()
}

The paths in this look like they are for Windows, but Heroku uses Linux and a different filesystem layout, so they are unlikely to work.
I also notice there's no error handling, which might explain why you're not seeing any errors.

The paths in this code look like they are for Windows, but Heroku uses Linux and a different filesystem layout, so they are unlikely to work.
I also notice there's no error handling, which might explain why you're not seeing any errors.

Hello, thank you for your reply.
My goal is to save the files locally on a Windows OS, while running the code on Heroku. Do I still in this case need to reformat the paths to Linux filesystem layout?

My goal is to save the files locally on a Windows OS, while running the code on Heroku.

This isn't possible, is unrelated to sharp and is way beyond anything I can help with. Good luck.


Optimize sendMsg

This PR:

Caches simpleTypeInfoForMethod
Changes the parameter sendFuncName string of sendMsg to an pseudo-enumeration
Adds tests to ensure C-to-Go, Go-to-C, and Go-to-C-to-Go handling of numeric types works properly.
Add Object.CString() string, which interprets the pointer as a C string (I use this for tests)

This is a draft, because I haven't updated the 32-bit version. Go does not support darwin/386, so if I did update the 32-bit version, I wouldn't be able to build it. I'd like to remove 32-bit support: #62.

great work, lemmi know when ready

@progrium ready


[DDW-982] Ensure uppercase stake pool tickers

This PR ensures that the stake pool tickers are always shown in uppercase letters.
Note: In order to test this I have adjusted the first two stake pool tickers in the storybook dummy dataset to lowercase so that the original problem became visible on the staking screens
Screenshots
Stake Pools Table
Before:

After:

Stake Pools List
Before:

After:

Stake Pool Tooltip
Before:

After:

Stake Pool Delegation Center
Before:

After:

Choose Stake Pool Dialog
Before:

After:

Testing Checklist
The changes in this PR have been very focussed and it's very unlikely that any logic/behavior apart from the uppercasing of ticker titles has changed.

Slack QA thread
[ ] Test that the cases listed above (screenshots) are correct
[ ] Check if any other cases have been missed

Review Checklist
Basics

[ ] PR assigned to the PR author(s)
[ ] input-output-hk/daedalus-dev and input-output-hk/daedalus-qa assigned as PR reviewers
[ ] If there are UI changes, Alexander Rukin assigned as an additional reviewer
[ ] All visual regression testing has been reviewed (assign run Chromatic label to PR to trigger the run)
[ ] PR has appropriate labels (release-vNext, feature/bug/chore, WIP)
[ ] PR link is added to a Jira ticket, ticket moved to In Review
[ ] PR is updated to the most recent version of the target branch (and there are no conflicts)
[ ] PR has a good description that summarizes all changes
[ ] PR contains screenshots (in case of UI changes)
[ ] CHANGELOG entry has been added to the top of the appropriate section (Features, Fixes, Chores) and is linked to the correct PR on GitHub
[ ] There are no missing translations (running yarn manage:translations produces no changes)
[ ] Text changes are proofread and approved (Jane Wild / Amy Reeve)
[ ] Japanese text changes are proofread and approved (Junko Oda)
[ ] Storybook works and no stories are broken (yarn storybook)
[ ] In case of dependency changes yarn.lock file is updated

Code Quality

[ ] Important parts of the code are properly commented and documented
[ ] Code is properly typed with typescript types
[ ] React components are split-up enough to avoid unnecessary re-renderings
[ ] Any code that only works in main process is neatly separated from components

Testing

[ ] New feature/change is covered by acceptance tests
[ ] New feature/change is manually tested and approved by QA team
[ ] All existing acceptance tests are still up-to-date
[ ] New feature/change is covered by Daedalus Testing scenario
[ ] All existing Daedalus Testing scenarios are still up-to-date

After Review

[ ] Update Slack QA thread by marking it with a green checkmark

@renanvalentin you can checkout my latest commit to see the solution for rendering the ticker values inside i18n strings in uppercase :D for me it's fine in both ways … it just shows how much work this is and why i used the JS method for this case


Automate DNS verification challenge

Replace TxtRenderer with a replaceable class to allow users to implement their own DNS challenge support

Adds test for DNS challenge, but avoids implementing an entire DNS server

Adds basic documentation for the bean

Fixes typo in TLS challenge docs

Add io.netty.handler.ssl.OpenSslAsyncPrivateKeyMethod to GraalVM runtime config to fix build error

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

merged in a separate PR. Thanks for the contribution


Add Grain-ExpressionEvaluator

I think this would make more sense in the applications section rather than libraries.


German National ID number (Personalausweisnummer)

Can you add DE Personalausweisnummer
regex: ^[lmnprtvwxy][0-9cfghjklmnprtvwxyz]{8}[0-9][d]?
some Refs:
http://www.pruefziffernberechnung.de/P/Personalausweis-DE.shtml
https://learn.microsoft.com/en-us/microsoft-365/compliance/sit-defn-germany-identity-card-number?view=o365-worldwide
https://www.php-einfach.de/diverses/personalausweis-ueberpruefen/
It's alpha char convert to digit (if present) and a repeating weight of 7,3,1 and the check digit is last digit, sometimes has optional 'D' in the value in the end.
First, the letters are converted into numbers. An A becomes 10, a B becomes 11, and so on.
Then each digit is multiplied by a value.
The first digit is multiplied by the value 7, the second by the value 3, and the third digit by the value 1. Then this sequence starts over.
The check digit is then the last digit of the sum over the previous multiplications.

Should now be available -> PR #45 should add it.

I can't find any site talking about the length of Personalausweisnummer as being 24.
Can you add tests for the old format.
    '2406055684',
    '2406055684d',
    '2406055684 D',
    'T220001293D',
    'T220001293',
    'L01X00T471'

https://github.com/koblas/stdnum-js/blob/1b1933e79e9d1703dad8e423b27805a1dbb385b0/src/de/pwnr.spec.ts

PR #48 should resolve all of these issues, please review and let me know.

Looks good, I have yet to find documentation on the "new" 26 length format, because the "new" and current format is the 11, in the German person I talked to. The previous one didn't have letters, as Microsoft points out.
Can you point me where you found it?

The first set of numbers is a combination of the issuing agency and a sequence number. If you review the list most of these are numeric, but it looks like most of the E-Pass (whatever that is, have alphanumeric coding)
http://www.pruefziffernberechnung.de/Begleitdokumente/BKZ.shtml

I think I see now, its found here http://www.pruefziffernberechnung.de/R/Reisepass-DE.shtml
The 11 digits + dob + some other numbers = 26 chars


Fix Elasticsearch service name for Managed clusters

This PR closes https://tigera.atlassian.net/browse/SAAS-1617.

@vberezny looks like the build failed.


Roadmap

Hi Stephen,
is there any "public" roadmap for this app? I ask this because I've fork'ed it to add some new features and it would be nice to have some sense of what might be overlapping or not.
Thanks

When I finally get TD 2.5 to a stable beta state, I plan to spend a bit of time putting together a product site for it --maybe here using github pages. I'll be putting together documentation, roadmaps, etc.
The list of new user facing features for the TD 2.5 timeframe is really short: Multiple projects, switchable HTML and Markdown text editors, individual control of notification settings, and a follow/watch ticket feature. That's about it.

Is there an option still for AD security? If not, is there a way to still
use it somehow?
On Apr 8, 2015 6:11 PM, "Stephen M. Redd"<EMAIL_ADDRESS>wrote:

When I finally get TD 2.5 to a stable beta state, I plan to spend a bit of
time putting together a product site for it --maybe here using github
pages. I'll be putting together documentation, roadmaps, etc.
The list of new user facing features for the TD 2.5 timeframe is really
short: Multiple projects, switchable HTML and Markdown text editors,
individual control of notification settings, and a follow/watch ticket
feature. That's about it.
—
Reply to this email directly or view it on GitHub
https://github.com/StephenRedd/TicketDesk/issues/42#issuecomment-91051309
.

That depends on exactly how you mean. I have no plans to ever support direct integration with on-prem AD again in the same way that TD 1 and 2 did. It is simply too brittle, too hard to configure, and a huge security liability. But read on... all is not lost.
TD 2.5 will likely go all the way to release with only local user authentication, with identity managed by the standard aspnet.identity framework. As soon as that's done, I will immediately start a short 2.6 release cycle. The only feature of 2.6 will be a new security system. I've been working on this separately for well over a year.
With the 2.6 security module, Identity will be tracked and stored locally by aspnet.identity, but you will be able to couple it with just about any of the modern authentication middlewares. For those middlewares that supply usable claims and identity data, the system will be able to link the authentication provider's claims to the local aspnet.identity store automatically.
The goal is to let the admin, with minimal effort, configure ticketdesk to use one or more of the following:

Azure AD (OpenID Connect, Graph API, WsFederation, ADAL)
ADFS (oAuth, WsFed, SAML, ADAL)
Local Users (aspnet.identity)
Common external providers (oAuth, OpenID Connect, facebook, google, etc.)

So... as long as your AD environment has ADFS, or a third party identity service (e.g. Thinktecture IdentityServer) you'll be able to use it for authentication and identity. If you have federated on-premAD with Azure AD, that will also work just fine too.
The wildcard right now is ADAL, as I've yet to dig into too deeply yet. Much of what the latest releases of ADAL do seems to overlap with the standard OWIN/Katana middlewares for WsFed, OpenID Connect and Graph API.
One scenario I am considering, but am inclined to deliberately avoid, is to let TicketDesk use old windows authentication (via IIS) for the authentication, and link it with aspnet.identity for local profile and role management. This would be almost the same flow as external login providers use. This is also the closest to the old TD 1 and 2 direct AD integration as I am considering.
The reason I'm leaning away from this is that it imposes a tight dependency on IIS and local windows environments, and is fundamentally incompatible with webapi and *js front-ends (which TD 3 is aiming for). To my knowledge, there are no windows auth owin/katana providers, and even if there were it would almost certainly not work on the next generation ASP.NET 5 and .Net Core frameworks.
So, yeah... that's why this isn't going to be done in time for TD 2.5. They keep moving my cheese every couple of months, and I'm trying to untangle the mess without coding myself into compabitlity problems with ASP.NET 5 and .Net Core... plus trying to keep it all simple enough to configure without the admin needing a degree in computer security.

Makes sense and I understand.  Just curious as our little install is
running perfectly using the AD integration.  Just trying to avoid multiple
logins for users.
Love what you have done and will download and test all your new work soon!
Thank you!
On Wed, Apr 8, 2015 at 10:35 PM, Stephen M. Redd<EMAIL_ADDRESS>wrote:

That depends on exactly how you mean. I have no plans to ever support
direct integration with on-prem AD again in the same way that TD 1 and 2
did. It is simply too brittle, too hard to configure, and a huge security
liability. But read on... all is not lost.
TD 2.5 will likely go all the way to release with only local user
authentication, with identity managed by the standard aspnet.identity
framework. As soon as that's done, I will immediately start a short 2.6
release cycle. The only feature of 2.6 will be a new security system. I've
been working on this separately for well over a year.
With the 2.6 security module, Identity will be tracked and stored locally
by aspnet.identity, but you will be able to couple it with just about any
of the modern authentication middlewares. For those middlewares that supply
usable claims and identity data, the system will be able to link the
authentication provider's claims to the local aspnet.identity store
automatically.
The goal is to let the admin, with minimal effort, configure ticketdesk to
use one or more of the following:

Azure AD (OpenID Connect, Graph API, WsFederation, ADAL)
ADFS (oAuth, WsFed, SAML, ADAL)
Local Users (aspnet.identity)
Common external providers (oAuth, OpenID Connect, facebook, google,
etc.)

So... as long as your AD environment has ADFS, or a third party identity
service (e.g. Thinktecture IdentityServer) you'll be able to use it for
authentication and identity. If you have federated on-premAD with Azure AD,
that will also work just fine too.
The wildcard right now is ADAL, as I've yet to dig into too deeply yet.
Much of what the latest releases of ADAL do seems to overlap with the
standard OWIN/Katana middlewares for WsFed, OpenID Connect and Graph API.
One scenario I am considering, but am inclined to deliberately avoid, is
to let TicketDesk use old windows authentication (via IIS) for the
authentication, and link it with aspnet.identity for local profile and role
management. This would be almost the same flow as external login providers
use. This is also the closest to the old TD 1 and 2 direct AD integration
as I am considering.
The reason I'm leaning away from this is that it imposes a tight
dependency on IIS and local windows environments, and is fundamentally
incompatible with webapi and *js front-ends (which TD 3 is aiming for). To
my knowledge, there are no windows auth owin/katana providers, and even if
there were it would almost certainly not work on the next generation
ASP.NET 5 and .Net Core frameworks.
So, yeah... that's why this isn't going to be done in time for TD 2.5.
They keep moving my cheese every couple of months, and I'm trying to
untangle the mess without coding myself into compabitlity problems with
ASP.NET 5 and .Net Core... plus trying to keep it all simple enough to
configure without the admin needing a degree in computer security.
—
Reply to this email directly or view it on GitHub
https://github.com/StephenRedd/TicketDesk/issues/42#issuecomment-91099017
.

When you speak of "Multiple projects" are you thinking in the line of tenants, where "nothing" is shared (i.e. Users, Settings) ?

Not for TD 2.5. It'll be the simplest implementation possible --a property (like category) on the ticket to associate it with a project name, and the UI will have a top level filter to scope ticketcenter and new ticket views to just the one project. I dont even plan to have user to project associations in TD 2.5 --it will be purely organizational. It will also be purely optional, and disabled by default... if you aren't using multi-projects it will be hidden from the UI entirely.
At some point between TD 2.5 and 3.0, I plan to revamp roles and permissions --the intent is to allow admins to group staff into teams, users into departments, and that sort of thing. Again, with a lot of design effort aimed at keeping the feature simple to administer, invisible to those that don't use it, and yet still enable useful scenarios for larger organizations. That groundwork is also needed before external support scenarios in TD 3 can be fully addressed. Anyway, when I get to that I'll also expand the concept of projects to be scoped to selected groups and users. Again though, not multi-tenancy in any technical sense of the term.
That's as ambitious as the open source version of TicketDesk is likely to get.
I did prototype TD with several variations of true multi-tenancy last summer. I took it from row level data isolation to schema isolation, then went all the way up to shared nothing. I have a lot of past experience with multi tenancy. The experiment proved that, even with TicketDesk's modest scope, the effort is a little more trouble than it's worth --at least for the open source version. It adds no value to sites that don't need multi-tenancy, but does add significant complexity across the whole system.
That said though, if you have a little experience with multi-tenant systems design, then TicketDesk isn't very difficult to refactor to support it, especially if you only need to design for one specific degree and type of multi-tenancy that fits your particular organization's needs.

Roadmap is published here:
https://github.com/NullDesk/TicketDesk/wiki/Development-Roadmap


Energy Dashboard

Hi,
i got a problem with the entities in the energy dashboard.

Maybe you know what the problem is. This spike is everyday at the morning.
It seems that the counter didnt reset right, but in the history is the rest at 23:59:35...

Wie sieht es denn bei dir mittlerweile aus?
HI @sebastianhi97 I also added this to the HA yesterday and of course diligently tried to configure the energy dashboard, of course it looked exactly like yours this morning. I suspect that you can't get a decent entity from the Enpal Box that you can store directly in the HA Energy Dashboard.
How are things looking for you now?

hey i tried to fix it by setting all values to 0 in the time from 23:55 to 00:05 ...in version 0.2.1 it is a prerelease

Hi gickowtf,
Thank you for a great HA plugin!
About the midnight reset issue: Have you tried changing the state class for the energy sensors (in kWh/Wh) to 'total_increasing' from 'total' (see e.g. here: https://developers.home-assistant.io/blog/2021/09/20/state_class_total/)?
I tried it locally (lines 182 & 185 in sensor.py) and it's looking fine for me.

thanks for the info i will change it right away and push it

That has fixed it for me, thank you

Yes, the Update have fixed the issue.


[CAMEL-9145] update hbase version to 1.1.1 and hadoop2 to 2.7.1

Before the upgrade I was not able to run tests properly, because of an error during setup of HadoopMinicluster. In that case all tests pass, but are not started. I have a linux environment.
After the update I was able to run tests. There are 18 positive results and 2 negative in my environment. I cannot check how many negative tests were on the previous versions, because of the error mentioned at the beginning.

This branch has conflicts that must be resolved
Also do not use tabs for xml but spaces
and why is the osgi range for this starting from 2 and not from 1 as before?
org.apache.hadoop.conf;version="[2,3)",

oh, I haven't noticed the conflict. I'll try to resolve it.
I changed the Hadoop version, because API for Hadoop2 is not compatible with Hadoop1.

I've made a merge and replaced all tabs with spaces.
I am not an expert of OSGi, so waiting for your opinion about it.

There is also a camel-hbase in the features.xml file. I wonder if that needs any adjustments? You can test it that works by running CamelHbaseTest in the tests/camel-itest-karaf directory.

The unit tests of camel-hbase fails, do they work for you?
Running org.apache.camel.component.hbase.CamelHBaseFilterTest
2015-10-19 07:54:40.106 java[26361:1903] Unable to load realm info from SCDynamicStore
Formatting using clusterid: testClusterID
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 25.732 sec <<< FAILURE! - in org.apache.camel.component.hbase.CamelHBaseFilterTest
testPutMultiRowsAndScanWithFilters(org.apache.camel.component.hbase.CamelHBaseFilterTest)  Time elapsed: 15.796 sec  <<< FAILURE!
java.lang.AssertionError: null
	at org.junit.Assert.fail(Assert.java:86)
	at org.junit.Assert.assertTrue(Assert.java:41)
	at org.junit.Assert.assertTrue(Assert.java:52)
	at org.apache.camel.component.hbase.CamelHBaseFilterTest.testPutMultiRowsAndScanWithFilters(CamelHBaseFilterTest.java:58)

Running org.apache.camel.component.hbase.HBaseConsumerTest
2015-10-19 07:55:06.414 java[26383:1903] Unable to load realm info from SCDynamicStore
Formatting using clusterid: testClusterID
2015-10-19 07:55:44,852 [ hbase://person] WARN  HBaseConsumer                  - Consumer Consumer[hbase://person] failed polling endpoint: Endpoint[hbase://person]. Will try again at next poll. Caused by: [org.apache.hadoop.hbase.TableNotFoundException - Table 'person' was not found, got: hbase:namespace.]
org.apache.hadoop.hbase.TableNotFoundException: Table 'person' was not found, got: hbase:namespace.
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegionInMeta(ConnectionManager.java:1274)
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.locateRegion(ConnectionManager.java:1155)
	at org.apache.hadoop.hbase.client.ConnectionManager$HConnectionImplementation.relocateRegion(ConnectionManager.java:1126)
	at org.apache.hadoop.hbase.client.RpcRetryingCallerWithReadReplicas.getRegionLocations(RpcRetryingCallerWithReadReplicas.java:298)
	at org.apache.hadoop.hbase.client.ScannerCallable.prepare(ScannerCallable.java:149)
	at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.prepare(ScannerCallableWithReplicas.java:381)
	at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:124)
	at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:64)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:744)
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 41.617 sec <<< FAILURE! - in org.apache.camel.component.hbase.HBaseConsumerTest
testPutMultiRowsAndConsume(org.apache.camel.component.hbase.HBaseConsumerTest)  Time elapsed: 31.779 sec  <<< FAILURE!
java.lang.AssertionError: mock://result Received message count. Expected: <3> but was: <0>
	at org.apache.camel.component.mock.MockEndpoint.fail(MockEndpoint.java:1433)
	at org.apache.camel.component.mock.MockEndpoint.assertEquals(MockEndpoint.java:1415)
	at org.apache.camel.component.mock.MockEndpoint.doAssertIsSatisfied(MockEndpoint.java:403)
	at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:382)
	at org.apache.camel.component.mock.MockEndpoint.assertIsSatisfied(MockEndpoint.java:370)
	at org.apache.camel.component.hbase.HBaseConsumerTest.testPutMultiRowsAndConsume(HBaseConsumerTest.java:46)

Running org.apache.camel.component.hbase.HBaseConvertionsTest
2015-10-19 07:55:48.599 java[26405:1903] Unable to load realm info from SCDynamicStore
Formatting using clusterid: testClusterID
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 24.806 sec - in org.apache.camel.component.hbase.HBaseConvertionsTest
Running org.apache.camel.component.hbase.HBaseProducerTest
2015-10-19 07:56:14.055 java[26424:1903] Unable to load realm info from SCDynamicStore
Formatting using clusterid: testClusterID
...

I have upgraded camel-hdfs2 to the newer hadoop2 version. There was also a change needed for osgi users.

And btw looks like there is hbase 1.1.2 out

Hi @davsclaus !
These unit-tests also doesn't work for me. In the previous version I wasn't able to run these tests and I think of I would be able to run it it would also not pass. Could you try to run tests on the old version?
I'll check karaf tests and also look at camel-hdfs2 project.
Right, HBase 1.1.2 is out, but currenly not attached to any distribution of Hadoop platform (neither Hortonworks nor Cloudera)

The tests works on the old version

do you type just mvn test in camel-hbase directory? In my case such tests pass because minicluster cannot be started.

Ah sorry yeah those tests are skipped locally, would need a hbase cluster. I guess you need to setup that manually.
Though the test should pass running locally build or skip the tests in a maven setting in the pom.xml, and have a profile for running integration tests. There is some other components doing that, such as camel-twitter that has both unit tests and integration with a profile.

Hi!
I am very curious why this test don't pass. I think there is a problem with hbase-consumer. I started to debugging it.
So far I spotted a inconsistency in documentation. There are two parameters of hbase-consumer in documentation http://camel.apache.org/hbase.html no longer available in the component: initialDelay, delay. When I tried to use it as a parameter of a hbase-consumer I had an error ("unrecognized parameter" or something).
Still debugging.

In case of HBaseConsumerTest.testPutMultiRowsAndConsume
I can see puts are done without exception (and are in a table).
There is a problem with scan parameters in HBaseConsumer. Besides, there are some good practice to include in the scan, such as cache, etc.
@davsclaus, should I create another issue and pull request or could I work on this PR?

You are welcome to what you feel the best. If an update + this change is needed together then one PR is fine. We would like to upgrade hbase so eventually we would like it all sorted.

In CamelHBaseFilterTest.createRouteBuilder I see a definition of scan operation with a param:
filters=#myFilters
There is a empty filter created, which cause the value of filter is weird: 0 elements and "MUST_PASS_ALL" rule. It is the reasons why the test fails (the fiter filters everything). I tried to replace this filter with SingleColumnValueFilter, but filters in camel-hbase are completely customized and this standard filter not fit into camel-hbase.
I'll delete this parameter. The only one filter remains is maxResults=2.
IMO filters in camel-hbase need to be rethink.

I've fixed tests (there was also a bug in HBaseConsumer).
The last, but not least is osgi. I tried to run camel-itest-karaf, but have errors for all tests :(

one of fails in camel-itest-karaf:
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 5.583 sec <<< FAILURE! - in org.apache.camel.itest.karaf.CamelAhcTest
test(org.apache.camel.itest.karaf.CamelAhcTest)  Time elapsed: 5.436 sec  <<< ERROR!
java.lang.ClassNotFoundException: org.apache.camel.spi.RouteContext not found by PAXEXAM-PROBE-787bd7bd-b995-414e-bb8c-1cc0664f233c [73]
at org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1556)
at org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:77)
at org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1993)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
at java.lang.Class.privateGetPublicMethods(Class.java:2902)
at java.lang.Class.getMethods(Class.java:1615)
at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.findAndInvoke(JUnitProbeInvoker.java:94)
at org.ops4j.pax.exam.invoker.junit.internal.JUnitProbeInvoker.call(JUnitProbeInvoker.java:73)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
at sun.rmi.transport.Transport$1.run(Transport.java:200)
at sun.rmi.transport.Transport$1.run(Transport.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$79(TCPTransport.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

Works for me with
mvn test -Dtest=CamelAhcTest
Make sure you have built all the source code, I usually do in the morning
mvn clean install -Dtest=false

thanks for commands.
I cannot install camel project :( I have a problem with GAE module:
Failed to execute goal on project camel-gae: Could not resolve dependencies for project org.apache.camel:camel-gae:bundle:2.17-SNAPSHOT: The following artifacts could not be resolved: com.google.gdata:gdata-contacts-3.0:jar:1.41.5, com.google.gdata:gdata-calendar-2.0:jar:1.41.5, com.google.gdata:gdata-client-1.0:jar:1.41.5, com.google.gdata:gdata-core-1.0:jar:1.41.5: Could not find artifact com.google.gdata:gdata-contacts-3.0:jar:1.41.5 in central (https://repo.maven.apache.org/maven2)
I used also conjars repo, the same problem.

I just updated camel-gae to use dependencies that are downloadable from mvn central. Can you try to pull latest code from master and see if you can build Camel ?

@davsclaus , thanks. Now camel-gae is ok, but have the same problem in camel-example-gauth. Could you repair it too?
Failed to execute goal on project camel-example-gauth: Could not resolve dependencies for project org.apache.camel:camel-example-gauth:war:2.17-SNAPSHOT: The following artifacts could not be resolved: com.google.gdata:gdata-calendar-2.0:jar:1.41.5, com.google.gdata:gdata-client-1.0:jar:1.41.5, com.google.gdata:gdata-core-1.0:jar:1.41.5: Failure to find com.google.gdata:gdata-calendar-2.0:jar:1.41.5 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

ok can you try again

its osgi pulling in old JARs that are not in central. I really wonder why spring is removed from central? Anyway the example has been fixed to not do osgi as that was a bad example anyway.
So please try again

Thank you, it works now.
I run test for camel-hbase: mvn clean test -Dtest=CamelHBaseTest
Tests pass with the proposed version [2,3), as well as [1,2). As I wrote before, I recommend to use [2,3), because of Hadoop API change.
@davsclaus, I think it's ready to merge.

The test org.apache.camel.component.hbase.HBaseProducerTest seems to hang, when i run mvn clean install in the camel-hbase directory.

Ah it passed but took a fair long time, about 5 minutes

It's because all test cases starts a new Hadoop mini cluster.
23 paź 2015 07:27 "Claus Ibsen"<EMAIL_ADDRESS>napisał(a):

Ah it passed but took a fair long time, about 5 minutes
—
Reply to this email directly or view it on GitHub
https://github.com/apache/camel/pull/634#issuecomment-150476267.

Just pushed the stuff. Thanks. Can you close this PR

Thank you too!


docs(auth): add docs for Sign In with Apple

Description
This PR adds to the docs to explain how to implement Sign In with Apple on different platforms.
Related Issues
This should resolve #3610.
The example for iOS/macOS is not working currently because of #3674.
Checklist
Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

[x] I read the Contributor Guide and followed the process outlined there for submitting PRs.
[x] If the pull request affects only one plugin, the PR title starts with the name of the plugin in brackets (e.g. [cloud_firestore])
[x] My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
[x] All existing and new tests are passing.
[x] I updated/added relevant documentation (doc comments with ///).
[x] The analyzer (flutter analyze) does not report any problems on my PR.
[x] I read and followed the Flutter Style Guide.
[x] I updated pubspec.yaml with an appropriate new version according to the pub versioning philosophy.
[x] I updated CHANGELOG.md to add a description of the change.
[x] I signed the CLA.
[x] I am willing to follow-up on review comments in a timely manner.

Breaking Change
Does your PR require plugin users to manually update their apps to accommodate your change?

[ ] Yes, this is a breaking change (please indicate a breaking change in CHANGELOG.md and increment major revision).
[x] No, this is not a breaking change.

@blaugold thanks for this, would you mind syncing with master and resolving the conflicts?

@Salakar I resolved the conflicts.


update ref to RATS architecture

update ref to RATS architecture, it's been published as RFC9334

Thanks @thomas-fossati !

Thank you for the nice and clear document.


chore: Framework-ify SubconsciousCore

...into common components for extending with private features, and debrand existing iOS/macOS targets.
Changes

Created a SubconsciousCore shared framework, containing core models, components and services needed for both public and private components. iOS and Mac targets depend on this framework.

All swift files have been added to this core, with the exception of SubconsciousApp.swift as the "public entry point". In time, core may contain protocols, where individual targets bring their own implementation. More maintenance will be needed to align with this structure e.g. Config is a structure in the core framework, but values are provided by target-level.
Some classes that will have different implementations (e.g. Config) should be overridable by target

Renamed current Subconscious targets to Unconscious/com.subconscious.Unconscious.
Added public visibility to top-level SubconsciousCore items to be accessible outside of the framework

Futures
This is more of a proposal than a change request. Structuring internals into a shareable framework allows us to extend with private functionality in one of two ways:

Adding a new target to the existing project that pulls in a private framework. Ease of a single workspace, but difficulties arise when wanting private framework to also use the shared framework.
Creating a new SubconsciousPrivate workspace that pulls in SubconsciousCore, layering on its own implementations (e.g. of top level views, configurations, and protocol implementations). A bit duplicated effort in build configurations, but maybe for the best.

There's not a lot yet to add to a private framework, but we can start developing patterns to support this (e.g. separation of definitions from implementations) as we implement these features.

While learning about frameworks, I discovered there is also the concept of a "workspace" which can hold an app and multiple frameworks. I've drafted a PR with a workspace and an empty SubconsciousCore framework https://github.com/subconsciousnetwork/subconscious/pull/887
@jsantell do you know anything about the pros/cons of this approach vs the approach in this PR?

@jsantell When I check out this branch, I am missing a few files. Did something not get checked in? Or perhaps is there a step I need to take in Xcode?

These maybe need to be built -- products are generated build artifacts -- I'll take a look!

While learning about frameworks, I discovered there is also the concept of a "workspace" which can hold an app and multiple frameworks. I've drafted a PR with a workspace and an empty SubconsciousCore framework #887
@jsantell do you know anything about the pros/cons of this approach vs the approach in this PR?

I think we already are using a workspace, and IIRC is an evolution of a project, that can contain multiple projects. All projects (and workspaces) can contain multiple apps and frameworks (both targets). What verbiage!
That is to say, unless we're importing another project (or maybe workspace), e.g. proprietary components, there's not much difference between project/workspace, and is orthogonal to frameworkifying the underlying components. The benefits of bundling Subconscious as a framework mean it's a single artifact that can be consumed by multiple targets and schemes e.g. across tests, "unconscious",  branded app, desktop/Mac versions (multiplied by dev/prod schemes), rather than having individual source files be members of each scheme leading to duplicates and missing sources (both discovered during this frameworkifying process), as well as potentially being an opaque dependency for e.g. proprietary components


Minor: Background around pop-up does not adjust to iOS system theme (dark/light mode)

For any feature request you can open a new discussion here:
https://github.com/Clooos/Bubble-Card/discussions/categories/feature-requests
For any question you can open a new discussion here:
https://github.com/Clooos/Bubble-Card/discussions/categories/q-a
Describe the bug
When iOS changes from dark to light (or from light to dark) mode, the dashboard requires a refresh. Otherwise the background remains in old mode. See Screenshots.
To Reproduce
Steps to reproduce the behavior:

iOS is in dark mode
Open a pop-up
See the background around the pop-up is dark
iOS changes to light mode
The background around the pop-up is still dark
Refresh the dashboard
The background around the pop-up is light now

Expected behavior
The background around a pop-up should adjust to the system mode
Screenshots
Before refresh (wrong)

After refresh (right)

YAML
If applicable, add any relevant YAML code.
Your code here

Informations (please complete the following information):

OS: iOS 17.5.1
Browser/App: HA Companion app 2024.6
Bubble Card version: 2.1.0-beta 1
Home Assistant version: 2024.6.4

Additional context
Add any other context about the problem here.
Thank you! 🍻

Hi again, this is a really old issue that I'm aware of, I will need to work on it indeed 😅

No worries, I think it is not super urgent 😇😁

Hi, this is issue is now finally fixed!
https://github.com/Clooos/Bubble-Card/releases/tag/v2.2.3


Update README.md

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=ru
Description of changes:

"An unexpected error has occurred, could you please contact admins. Your RequestID: 0891d11b-949b-4b9e-896d-3f350a5c5be6"


Consume method returns an uncheked null ConsumerResult

Description
Consume(CancellationToken cancellationToken) method can return a unchecked null ConsumeResult, throwing a NullReferenceException when the Consumer set up takes more than 100 ms
How to reproduce
Create a new Consumer, no matter what IDeserializers are used, and consume a topic where the set up takes more that 100 ms
How to fix
Checks if result is null in Confluent.Kafka.Consumer<TKey, TValue> class (Note the ? before result)
 557       public ConsumeResult<TKey, TValue> Consume(CancellationToken cancellationToken = default(CancellationToken))
...
563                if (result?.Message == null) { continue; }
To avoid an unchecked null return :
369        internal ConsumeResult<TKey, TValue> Consume(int millisecondsTimeout)
370        {
371            var msgPtr = kafkaHandle.ConsumerPoll((IntPtr)millisecondsTimeout);
372            if (msgPtr == IntPtr.Zero)
373            {
374                return null;
375            }

The previous version returns a non null ConsumeResult, then it was right to check the Message property:
return new ConsumeResult<TKey, TValue>
                {
                    TopicPartitionOffset = new TopicPartitionOffset(null, Partition.Any, Offset.Invalid),
                    Message = null
                };

Checklist

[x] Confluent.Kafka nuget version: 1.0.0-experimental-11

thanks for the report @vicentegarciadiez - you're not the first to notice :-). will be fixed shortly.

should be resolved in -12.


Multi output policies

Example: in pysc2, some actions require positional arguments, such as move commands.
This might be too environment specific, but is there a want to allow this?

@araffin
I understood it that way, yes. I.e. Support for spaces.Tuple/spaces.Dict but for actions rather than observations, as discussed in #133 .
The major modification is same for both: Currently everything is more or less bundled up into arrays, which  makes overall processing of things quite a bit tidier. A support for tuple/dict spaces would require storing variable length arrays/tuples somewhere along the line  as well as creating dynamic number of placeholders and whatnot.
However, if the next backend is going to be non-graph one (i.e. TF2 eager mode and/or PyTorch), this should be easier to do with those frameworks. I hate to move more and more stuff to "next-backend" project, but this sounds much more reasonable enhancement alongside new backend, rather than implementing it in current graph-version and then translating it to the new backend.

No specific timeline other than "soon". The first step would be to support TF2.0 via the backwards-compatible API in 1.14 (see #366), but that would be mostly renaming function calls.


Custom anchor id not get extracted into toc in .mdx file

Reproduction
import { compile } from './index.js';

const { toc } = await compile({
  value: `# Title

## Foo {#my-anchor}

## Bar {Math.PI}
`,
  filepath: 'README.mdx',
  development: true,
  root: '/root',
});
console.log(toc);

Expected toc should be:
[
  { text: 'Foo', id: 'my-anchor', depth: 2 },
  { text: 'Bar ', id: 'bar-', depth: 2 }
]

But got:
[
  { text: 'Foo', id: 'foo-', depth: 2 },
  { text: 'Bar ', id: 'bar-', depth: 2 }
]

More information
Did a little dig into it, and found it caused by the parse options passed to markdown-rs here:
https://github.com/web-infra-dev/mdx-rs/blob/5b52c038a2265f22a5a80258ddf49d2a5497a803/crates/mdx_rs/src/lib.rs#L62-L78
Specifically it is the option mdx_expression_text inside Constructs::mdx(). The parser would parse #my-anchor as an javascript expression when this option is turned on.
Maybe we can give mdx_expression_parse a custom function to handle this kind of special cases, but I haven't find a clean fix yet.

Maybe we can escape heading id in processor, like https://github.com/web-infra-dev/rspress/pull/413.


cmd/repository: Fix man pages and help

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?
[ ] Have you written new tests for your changes? Here's an example.

[x] Have you successfully run brew tests with your changes locally?

The brew --repository --help and man brew output say it can be called with a formula as an argument. The correct argument it user/repo.

Thanks for the fix! Please run brew man and commit the results.

Thanks so much for your first contribution!  You rock, @hjmallon!
No problem but just for future reference we don't get notified on force-pushes so give us a wee mention so we can merge. Thanks again!


game version 1.19.4 support？

why this update is support 1.19.3
isn't support 1.19.4?

The update is for 1.19.4?

why this update is support 1.19.3
isn't support 1.19.4?

@8MiYile If you are referring to the beta, it is for 1.19.4, not 1.19.3


Dead link validation Redis key size optimisation

Problem

Dead link validation uses the following template for Redis keys: valid:{result.url}. The URLs for works can be very long, especially from providers like Wikimedia and Rawpixel (both of which are quite common). Even the shorter common URLs like Flickr can be easily optimised.
These keys could be optimised to save an estimated 1 to 1.5 GB in our production Redis.
Description

Change dead link validation keys to use the UUID of the work with the hyphens stripped. This would reduce the relatively small Flickr keys to 90 B rather than 120 B. It would reduce Wikimedia keys from 300 B to 90 B.
Cumulatively this would bring a massive reduction in key size.
Caveat: We need to avoid the performance penalty that would come from switching the key format without saving existing validation data. There are two approaches to this. One is faster but more complicated and the other is much slower but far simpler.
Fast version: Switching the key format will come with a potentially significant search penalty due to reprocessing links for which we already have validation information. If possible, we need to port existing keys to the new format. URL is not indexed in the API database, so we need to query Elasticsearch using url.keyword to get the identifier. This requires iterating through Redis keys which must be done using SCAN to prevent performance issues. Key TTL should be copied to the new key using the TTL command to retrieve it. This operation needs to be throttled to avoid performance impact to production Redis and Elasticsearch. A new key prefix needs to be used to prevent reprocessing of already converted keys and prevent the SCAN from going forever. This also allows the check_dead_links function to temporarily check both prefixes and key formats during the transition and to start saving new validation data under the new format without suffering a penalty during the transition and without adding new data that the key re-write process would need to manage.
Slow version: Configure check_dead_links to read cached validation from both key formats but only save to the new one. 120 days after that change is deployed, all keys in the previous format will have expired. At that point we can remove any logic that queries from them. This avoids the complications of the fast version but takes 120 days.
My vote is for the slow version for two reasons:

The performance management/throttling needs of the fast version are unclear to me and I don't know how to estimate how "fast" processing 26 million keys in this way would actually be.
Our Redis memory usage will go up as a result of #1969. The fast version is only worth it if we can reduce data usage quickly enough so that we can downgrade our Redis instance and save money before #1969 is implemented. After that IP is implemented, we will almost certainly need to upgrade our Redis instance size again.

@krysal @zackkrida does the slow approach make sense (am I missing any pitfalls) and do you agree it is the preferred approach?

I think the slow version sounds perfectly acceptable, and not even that slow relative to this project. 👍


Migration of balance from Trinity to Firefly will not be performed (Leader Nano S)

Issue description
After creating a new adress in the Miota App (Ledger),  I opened the Iota Legacy App (Ledger) for searching the balance on the Trinity Wallet. Firefly find also my balance (so far so good) After that I started the migration....but the migration will not be performed.
Wallet version
1.2.0
Which version of wallet are you using?
1.2.0

wallet version (version number, commit, or branch):

1.2.0
What is your operating system?
Win 10
Is it a repeatable issue?
Y
Steps To reproduce the issue
Explain how the maintainer can reproduce the issue.

Expected behaviour
Describe what you expect to happen.
Actual behaviour
Describe what actually happens.
Errors
Paste any errors that you see from the Error Log in the Firefly menu or share screenshots of the issue.

my problem is also similar to this , but at the end there is an error that something went wrong
error log : Sun, 08 Aug 2021 14:30:53 GMT
LegacyClientError: https://nodes.iota.org/: status code 400

https://en.ryte.com/wiki/Status_Code_400
try clear dns cache @Mersi42

Error code 400 ist mostly time related.
try this.
https://www.groovypost.com/howto/synchronize-clock-windows-10-with-internet-atomic-time/

thanks , I restore my wallet @Mke91

Could somebody help me with this?  I'm really struggling to find ANY help, whatsoever, on transferring my IOTA from the Trinity wallet to the Firefly wallet.  It's set up on my Ledger Nano device, but that is not doing me any good as I cannot send from Trinity to Firely.  It just doesn't allow it to send when I click the send button after putting in my Firefly wallet address.  So, to make a long story short, the seed is on my Ledger device (so it doesn't exist on Trinity settings) and when I put in my Firefly wallet address I'm just flat unable to send it.  I click send but nothing happens.  Therefor my IOTA is just sitting in a discontinued Trinity wallet.  Please help!  I just want to put them on my Ledger device.  Thank you in advance!

Yes, all settled. Thank you.
Sent from ProtonMail for iOS
On Fri, Aug 20, 2021 at 20:38, MiKeF05 @.***> wrote:

@.***(https://github.com/Javahake) Have you successfully migrated your tokens?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.

@MiKeF05 meanwhile yes..I repeated the migration to firefly several times, and at some point it had worked.
But I don‘t know what was the reason why the migration procedure was successful only after several attempts.
Has anybody an idea?

The problem is mainly due to connection issues to the ledger. Do you use a Nano S or Nano X? So I guess this issue can be closed.

@MiKeF05 I use a Nano S …
yeah … I also think I can close the issue.
Thx at all

Close it.
Sent from ProtonMail for iOS
On Sun, Aug 22, 2021 at 10:37, Javahake @.***> wrote:

@.***(https://github.com/MiKeF05) I use a Nano S …
yeah … I also think I can close the issue.
Thx at all
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.


Doesn't work with ng-required="false" and cc-number attribute

In my particular case, I need to use ng-required on the input to determine if it should be validated or not. When ng-required="false", the this directive still wants tries to validate the input.

Sorry but I'm not going to parse the value of ngRequire and not validate if it's false. If you can explain your use case in a little more detail I'm happy to help you with a more direct solution.

It seems that your module should support the native validation capabilities in Angular. Its odd that if the code is specifically saying, "Don't validate this input" via ng-required="false", that the module is validating anyway.
In my scenario, we only need to validate the credit card field when entering a new card. When editing an existing card, we only send the last 4 digits of the card to the client. Pretty standard.
The same form is used for both creating and editing card data (name, address, number, cvv, etc). When editing an existing card, the number input is not shown and a span is visible with the 'xxxx-xxxx-xxxx-1234' style for the number. This is the situation where your module should respect ng-required="false" because the input is in the form, but is not being used for this interaction. However, your module is still trying to validate a control when its being instructed not to.


chore: bump forma-36-react-components to 3.63.5

3.63.5 has the new dropdown positioning.
Resolves #188
Resolves #415

Superseded by #466


Top menu not collapsible in Ipad.

When I view the sample page with expandable and collapsible main menu in iPad it cant collapse. But it does work in iPhone.

Same here!
In fact it works perfectly on twitter.github.com/bootstrap website but it doesn't on usage expamples (http://twitter.github.com/bootstrap/examples.html).
When you first hit the expand button, it works well, but then if you do this again it do not collapse. In fact it will collapse then immediatly expand without any apparent reason.
Again it seems to work perfectly on twitter homepage. I didn't check on my iPhone but I trust @dhydrated on his observation.
Any idea on how to fix this?

@mindctrl thanks for the fix. It works perfectly with meta viewport tag added in head section
<meta name="viewport" content="width=device-width, initial-scale=1.0">

Tested on iPad_1 using iOS 5.0.1


how to get text feature encoded by PromptSRC text encoder?

Hello, thanks for your amazing open-source work.
I'm using your code to finetune CLIP. After that, I want to get text feature output by the model directly. I'm confused about the code in TextEncoder, but tried following code. It seems that the input text does not affect the result. Please help me. Thanks.
class promptSRC_custom_clip:
    def __init__(self) -> None:
        sys.path.insert(0, '/home/aistar/PromptSRC')
        global args
        from train import get_trainer
        self.trainer = get_trainer()
        self.trainer.load_model(args.finetune_clip_pretrained_dataset, epoch=50)
        self.trainer.model.cuda()
    def encode_image(self, image):
        custom_feat = self.trainer.model.image_encoder(image.type(self.trainer.model.dtype).cuda())
        return custom_feat
    def encode_text(self, text):
        custom_feat = self.trainer.model.text_encoder(self.trainer.model.prompt_learner(), text.type(self.trainer.model.dtype).cuda())
        return custom_feat
    def cuda(self):
        self.trainer.model.cuda()
    def eval(self):
        pass

model = promptSRC_custom_clip()
model.cuda()
model.eval()

for one_prompt in prompt_list:
    text = torch.cat([clip.tokenize(one_prompt)])
    cal_similarity(text, model)

def cal_similarity(text, model):
    custom_feat = model.encode_text(text.cuda())
    custom_feat = torch.nn.functional.normalize(custom_feat, dim=-1)
    # [1000, 768] -> [1, 768]
    custom_feat = custom_feat[-1].unsqueeze(0)
    custom_feat = custom_feat.unsqueeze(0)

During the training process, the input file consists of label and text description. How is this done? Have some functions in dataloader been changed?

Hi @Hstwhale,
Thank you for showing interest in PromptSRC!
Regarding your query, kindly note that you will need to load the trained weights in the above-shown code. Right now, it seems that you are not loading the weights. Also, make sure that you are running the model in eval mode so that the model produces the text features trained with PromptSRC.
Lastly, you can check this issue from our MaPLe repo, on how to instantiate a trained model.
Let me know if that is helpful.
Kind regards!

Hi @Hstwhale,
Thank you for showing interest in PromptSRC!
Regarding your query, kindly note that you will need to load the trained weights in the above-shown code. Right now, it seems that you are not loading the weights. Also, make sure that you are running the model in eval mode so that the model produces the text features trained with PromptSRC.
Lastly, you can check this issue from our MaPLe repo, on how to instantiate a trained model.
Let me know if that is helpful. Kind regards!

Thanks for your reply!
I think I have loaded the weight, in the codeself.trainer.load_model(args.finetune_clip_pretrained_dataset, epoch=50). And the args.finetune_clip_pretrained_dataset I set to      finetune_clip_pretrained_dataset: Union[str, Path] = \         "/home/aistar/data/promptSRC/output/imagenet_hospital/PromptSRC/vit_l14_c2_ep50_batch4_4+4ctx_few_shot_4shots/seed1".
And the code runs successfully. So I think the trained model has been loaded.
My problem is that if I have a text "word1 word2 word3 ...". How can I get the encoded text feature like "a photo of a apple" in promptSRC framework. I can't handle the code in file promptsrc.py. Can you give me some suggesstion?
Kind regards!

https://github.com/muzairkhattak/PromptSRC/blob/bb95c77b634d63488f2cad81ff4a72d53bdd06d5/trainers/promptsrc.py#L112
In the above line of code, the tokenized_prompts is of dimension (n_cls, n_tkn), but I don't understand why the following code calculates the largest token in a token sequence containing n_tkn tokens. What's the meaning of that?
https://github.com/muzairkhattak/PromptSRC/blob/bb95c77b634d63488f2cad81ff4a72d53bdd06d5/trainers/promptsrc.py#L67

Hi @lin-whale,
Could you tell us if your issue is resolved? I am closing the issue for now.
Feel free to reopen it, or ask any questions incase there are any queries.
Thank you and kind regards!


Error with pip install imposm.parser, header files not found

I am using python 2.7 and I am trying to pip install imposm.parser.
The first thing I did was to install protobuf with pip install protobuf. That installed version 2.6.1 in C:\Python27\Lib\site-packages\google. Then I went here to  download protoc-2.6.1-build2-windows-x86_32.exe which I renamed to protoc.exe and placed in C:\Python27\Lib\site-packages\google folder.
I then installed Microsoft Visual C++ 9.0 from here
Finally, I executed pip install imposm.parser and this is the error I get:

running build_ext
building 'imposm.parser.pbf.OSMPBF' extension
creating build\temp.win-amd64-2.7
creating build\temp.win-amd64-2.7\Release
creating build\temp.win-amd64-2.7\Release\imposm
creating build\temp.win-amd64-2.7\Release\imposm\parser
creating build\temp.win-amd64-2.7\Release\imposm\parser\pbf
C:\Users\Shiro\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe /c /nologo /Ox /MD /W3 /GS- /DNDEBUG -C:\Python27\include -IC:\Python27\PC /Tpimposm/parser/pbf/osm.cc Fobuild\temp.win-amd64-2.7\Release\imposm/parser/pbf/osm.obj
  osm.cc
C:\Users\Shiro\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Include\xlocale(342) : warning C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
c:\users\shiro\appdata\local\temp\pip-build-jel4jl\imposm.parser\imposm\parser\pbf\osm.pb.h(9) : fatal error C1083: Cannot open include file: 'google/protobuf/stubs/common.h': No such file or directory
error: command '"C:\Users\Shiro\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\cl.exe"' failed with exit status 2

Edit: The header header file saying that is missing is from protobuf which I just installed with pip install protobuf. The file missing is right here in the github google/protobuf/stubs/common.h shouldn't it exist on my system since I installed with pip ? I don't understand...

I have the same issue.

pip install protobuf
installed VCforPython27
downloaded the latest code from github and ran setup.py install

and i see the same error, "missing common.h"
@shiro900, were you ever successful in setting this up? I am doing on a windows 7 64-bit machine with 32-bit Python 2.7.10

@shiro900
I also got the problem. were you ever successful in setting this up?
Or do you have any other method to solve this problem?

Same problem here, anyone found a solution yet?

For Ubuntu 16.04 I had to install google protobuf from source, instructions to be found here:
https://github.com/google/protobuf/blob/master/src/README.md
For OS X it will suffice if you install protobuf via brew install protobuf

Thanks @TimMcCauley, that worked a treat for me.

@TimMcCauley Thanks Tim for your comment. I had the same issue as @shiro900 , and your linked helped configuring on mac. However, on windows, I still face the same problem.
Basically, I work from cygwin terminal on Windows 7, and I miss the last command ldconfig.
Do you have any advice to solve this issue?

@TimMcCauley I googled it already, apparently Idconfig is only for mac.
Also, the documentation says it is only for mac os or linux:
https://imposm.org/docs/imposm/latest/#
so I am not sure if it could be configured for windows.


Compile/Run Pkg/Demo with Questa 10.6d

Initial attempts to compile and run of the sk_pkg and sk_translator_demo with Questa 10.6d show changes need to be made (i.e. there are compile errors). Will create branch/pull request to suggest those changes.

Closing issue after pull-request changes were integrated.


Task completed in percentage

Hi,
How can we show task completed in percentage like below image

.gantt-task-progress {
    height: 100%
}

With progress plugin enabled, of course

thank u for u r response. Actually i want to resize the progress based on my resize event on the progress not for a task.


Can't search whitespace followed by word using getSearchCursor()

searchq = new RegExp("^\\s*myword ")
editor.getSearchCursor(searchq)
The following code snippet should work to search whitespace at start of line followed by "myword" string.
But it returns following error on console: https://hastebin.com/exoninaheg.pas

If I run this at http://codemirror.net/demo/search.html it seems to work fine. Are you using the current CodeMirror version? If so, can you figure out what's different about your setup?

Search works fine when using search dialog functionality. But it doesn't works when i use above RegExp and pass it to getSearchCursor() . Other RegExp except above one works fine too.

I meant I ran the code on the console, and it worked fine

Sir,
my string is :        to myword
string before to can vary.
Regular expression:  searchq = new RegExp("^\\s*to myword")
call:  cursor = getSearchCursor(searchq)
Any clue where i am going wrong ?

Yes, you showed me the code before. I ran that exact code, it did not crash, so I'm asking you to figure out what you're doing differently in your setup

    searchQuery = new RegExp("^\\s*to setup")
    cursor = @_editor.getSearchCursor(searchQuery)
    if !cursor.findNext()
      cursor = @_editor.getSearchCursor(searchQuery)
    @_editor.setSelection(cursor.from(), cursor.to())

@marijnh any issue with above code ?

It'll call from() on a cursor that hasn't searched yet if the first search fails, which isn't supported (not sure why you'd create an identical cursor when the first doesn't work)


Checkbox's 'checked' no longer mutable?

After upgrading to the recent beta, the checkbox no longer seems to activate its checked variable properly.  The variable assigned to 'checked' seems somehow no longer mutable.
{{ui-checkbox checked=checkTest label="test" onChange=(action 'toggleCheck')}}
{{checkTest}} <---- always a static value, even when the checkbox is triggered (and is visually toggled from true/false).

If:
export default Ember.Controller.extend({checkTest: true}
Then the checkbox will be rendered properly, as true, but will still not update when a user checks the checkbox.

Are you updating checkTest to false in the toggleCheck action?

No.  In previous versions, and with ember checkboxes, having the property bound to the 'checked' property would bind both ways.  An update to the 'checked' property would update the bound value as well.  That no longer appears to be the case.

That makes sense, I'll need to think about it. The assumption on the DDAU branch was your data coming down into the component was the source of truth and the state on the component. The actions up sent notification that something happened to respond outside the component.
If checked stays true, then I we have to look at having an internal state that is now different from the initial render / variables passed in. That also means we don't trigger an attrsUpdated event within Ember to correctly handle the new state within the component.
There are two situations that conflict.
One is someone clicks the checkbox, but for whatever reason, you don't want to mark the checked state as true, so you can choose to ignore it in your onChange action. So the checkbox doesn't change. This was the approach taken today, data always represents the state.
The other is what you're describing. Where you passed in an initial value, but want it to change even if the initial value doesn't update.
I don't know if there is a clean way to have both approaches. I still feel like the first approach is correct and you should be updating the data to match the state you want. Otherwise you have a checkbox that acts independently of the data.

I think you're right, there are two issues that cannot be reconciled if the value is not bound in both directions:
If you do wish to intercept the action prior to making the change, that becomes difficult if the value is directly bound, like you state.
However, the data does not seem to be the source of truth right now the way the checkbox is wired. There is now the situation where the user is shown a non-truthful state of the variable.  That seems seems dangerous.  Currently it's possible for the value to be 'true', but the user sees false. Because they can change the component's state, without changing the bound variable's state.
Is there a way to force an error if the onChange is not used?  Or to monitor internally the state of isChecked, and to ensure that it matches its bound value?
I wouldn't see much of a problem if during the check event it went back to ask for the true state from the bound variable - and in the case above the checkbox would just do nothing when clicked, as the underlying value wasn't set up to change.

I think I understand what you're saying. Let me reiterate to be sure, then we can add a test for it.

The checkbox starts off as true
The user clicks the checkbox
The onChange action is fired, but the checked value is ignored, and the checkbox should still be true
Semantic-UI checkbox though shows it as being uncheck at the moment. The checked of true isn't representing the display value

This correct?

Exactly.  Where the initial state can be either true or false.
So when an onChange doesn't call for the checkbox's state:
Solution 1: checkbox's visual state should not change because there was no change to the truthful data.
Solution 2: checkbox should itself affect the truthful data to mirror the user's action.  (old way, and how HTML5, and ember-chekboxs currently work)
Current state: checkbox (visual state) toggles as user indicated, but if no change is properly hooked up, the visual state can become detached from the truthful data.

Code wise, I think there are two ways to properly handle refusing a click on checkbox, without getting into the ember run queue to do a check later in time. (Using the run queue feels more like a hack to check back to see if values changed when they didn't).
Option 1 (easiest, but could lead to possible issues):
Since we are using composable actions instead of just action events, we could look for a return value of false to indicate that you want to cancel the current onChange event.
actions: {
    checkboxChanged(checked) {
       if (someCondititionNotTrue) {
         return false; // revert change
      }
     // otherwise updated binded value and things work as normal
    }

This isn't implemented today, it would need to be added. The reason I say it could lead to some possible issues is because of the old ember action events bubbling and returning false to stop bubbling. Not a huge risk, but I figure i'll get bug tickets for it.
Option 2 (more specific):
Using the last parameter that is appended into all semantic ui callbacks. It is the actual component that did the callback. You could in the code itself specify you don't want to check it.
actions: {
    checkboxChanged(checked, checkboxComponent) {
       if (someCondititionNotTrue) {
         return checkboxComponent.execute('set unchecked');
      }
     // otherwise updated binded value and things work as normal
    }

I'll need wait for more feedback from others upgrading to get a feel for which option is the best way to go when you want to do something thats not the expected result.
The other goal of 2.0 release was exposing more internals of semantic-ui when you wanted to do something advanced. That way your codebase has total control over what happens and less logic is trying to be wrapped into the semantic-ui-ember modules.
I'll add a test for option 2, that setting unchecked in the onChange action event unchecks. For now I'd recommend ensuring everything is properly data bound and updated on the change events. If you need to do something more advanced, you can use the 2nd parameter and manually execute the operation you need.

Same issue with the {{ui-radio}} component.  checked=variable does nothing, and in fact onChange is not necessary in my application, so I all I want is a mutable value.

@cwilli34 on 2.0 release nothing is mutated. You must use onChange to update your value.

@cwilli34 on 2.0 release nothing is mutated. You must use onChange to update your value.

Is there a way to update a variable in the template with onChange without calling an action?  An example maybe?
I ended up just using current=myVariable to make this work.  Is that the correct way?

Yes, its in the documentation
{{ui-radio name="fruit" label="Once a day" value="once-a-day" onChange=(action (mut fruit))}}

@jfarlow anything else on this issue? Does option 2 or another way work for you?

I'm not particular of which option would be best.  Option 2 would work.  I just think the current situation is not ideal.  I don't mind having to use onChange, however I think the user's screen should always reflect the current state of the variable.

I agree, but can't think of a better way to handle it. The problem is two fold.

We have a state that is managed externally of ember, and when its changing its notifying you that something changed and you'll need to respond to it.

Because of embers lifecycle hooks, we also don't get any events that something changed. In order for Ember to maintain performance, Ember isn't going to re-touch the checkbox component unless data binded to that component updates. Because of this round robin DDAU workflow, we have to assume that unless data changed to update the workflow the result is what you wanted. If we started to schedule things after render, we are breaking ember performance enhancements.

I did think of some alternatives, you could disable or set the checkbox to read-only if you want to ensure it wouldn't change. You also don't get events on click.
In the end, if you want events but also want to reset the checkbox's state, you'll have to handle it specifically. Its working around the known limitation of ember with an external plugin. You have to know that if you want something done outside of the normal workflow, you'll have to perform some extra work.
If you think of any other ideas let me know and we can explore them

Yes, its in the documentation

{{ui-radio name="fruit" label="Once a day" value="once-a-day" onChange=(action (mut fruit))}}

Yes, that didn't work for me.  That was why I was wondering.  It didn't change the value at all.  Like I said, current=myVariable is all that would work.


refactor: Add replaceParams method to Breadcrumb class with support f…

…or numeric and special word text parameters

Pull Request Test Coverage Report for Build<PHONE_NUMBER>
Details

-11 of 11 (0.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-7.0%) to 32.143%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/Breadcrumb.php
0
11
0.0%

Files with Coverage Reduction
New Missed Lines
%

src/Breadcrumb.php
1
26.09%

Totals

Change from base Build<PHONE_NUMBER>:
-7.0%

Covered Lines:
18

Relevant Lines:
56

💛  - Coveralls


Allow for metadata file to be added to directory structure

In many cases, it is useful for operators to maintain a metadata file that is ignored by tooling. One use case for this sort of file is to maintain the most up-to-date bundle version. Currently, any file or directory additions that do not meet the bundle version format are rejected. For the hive-operator, this results in us needing to traverse through all version subdirectories in order to identify the highest version bundle.
It would be helpful to allow for an exception to this rule, perhaps by allowing for hidden files (.metadata.yaml) or a metadata directory outside of the version directories.

@2uasimojo