[NavigatorIOS] Add ability to set custom component as title

UIKit's UINavigationItem has a UIView property 'titleView' which allows to set custom view as a navigation bar title. Would be nice to have that in react-native.
Two ways as I see it:

Child component of the NavigatorIOS:

<NavigatorIOS
  itemWrapperStyle={styles.nav}
  initialRoute={{
    component: NewsView
  }}>
{someFancyCustomTitleComponent}
</NavigatorIOS>

Parameter of the NavigatorIOS:

<NavigatorIOS
  itemWrapperStyle={styles.nav}
  initialRoute={{
    component: NewsView
  }}
  titleComponent={someFancyCustomTitleComponent}
/>

So probably child component or parameter(or other way of ding it?) should be set to the instance of RCTNavItem and then RCTWrapperViewController should set it to corresponding UINavigationItem's titleView, but I don't have any idea how to convert react component to UIView.

We don't need this internally, but we would be happy to accept a pull request for this.
What do you think about this API:
<NavigatorIOS
  itemWrapperStyle={styles.nav}
  initialRoute={{
    component: NewsView
  }}
  renderTitle={() => <MyFancyTitleComponent />}
/>

Nice, will look in this direction.

What's the advantage of making it a function here? I'd default to making it a normal element-typed prop.

how about hidden the navigation bar ?

@spicyj If not a function, then how would you change the title for each new scene? Maybe we could put a title element on the new route object, but I'd like to make the API start to resemble the Navigator API

Right, that makes sense. Having title as a property of the route or similar seems to make the most sense though, akin to UINavigationItem on iOS? I'm not familiar with the Navigator API, so I'll let you figure it out. :)

@ericvicenti Is it possible to set an image/logo instead of title in the navigation bar?

I feel like spicyj's suggestion of having a route property makes sense. I can try to explore this area if you agree @ericvicenti regarding this api.

+1 would love this feature

For Navigator, the reason we don't put the title or scene components directly on the route is because it takes extra computation and memory to load and render them before they need to be displayed.
I think it would be nice if we could start making the API for NavigatorIOS more closely resemble Navigator. However, this is a community-maintained component, so I will let you all decide on the API. We are happy to accept additional features however you'd like to implement them.

+1 this would be rad.

Was looking for a feature like OP and came across this project: https://github.com/t4t5/react-native-router
Just thought I'd share...

Thank you for reporting this issue and appreciate your patience. We've  notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.

Agreed, this would be very useful. Has anybody looked at implementing this feature?

Just started using react native and not being able to do that is a super bummer for me since my app customizes the navigation title. Is anybody implementing this feature?

I'm looking to implement this as a PR but I'm struggling to find the right code in react native that takes the component JSON sent over the bridge and transforms it into usable Obj C views (to be used in a new method inside RCTConvert) - any pointers?

In the interim I'll be developing it as such:
<NavigatorIOS
  initialRoute={{
    component: MyComponent,
    titleView: {
      class: 'MyCustomView',
      title: 'View Title',
      textSize: 15,
      someOtherSetter: true
  }}
/>

You can then do any customisations you need in native code - not ideal for per

@lprhodes Have you got any updates on this?

Any plans for this feature?  It would be so nice to have such a feature.

For anyone else who has this issue, I ended up using Navigator Experimental (plays really nice with Flux, Redux in our case) and implemented the Nav in React.

Sorry for leaving this so long - I've ended up using https://github.com/wix/react-native-navigation and https://github.com/wix/react-native-controllers.
I'm sure this is heavily debated elsewhere but for me the idea of React Native was to use native components (as per above)...not a non-native feeling replacement (Navigator Experimental)

Hi there! This issue is being closed because it has been inactive for a while.
But don't worry, it will live on with ProductPains! Check out its new home: https://productpains.com/post/react-native/navigatorios-add-ability-to-set-custom-component-as-title
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.

@facebook-github-bot label Icebox

@facebook-github-bot close

Easily achievable with https://reactnavigation.org now.


Resets xExtentDomain when Brush background is clicked.

When clicking on the background of the Brush, the extent wouldn't stay at the clicked spot once onMouseUp was fired. The xExtentDomain was not being reset with the onMouseDown event so it would move the extent back to its original position. This PR resets the xExtentDomain so that the extent stays put.

Thank you! I will try to reproduce and then merge.

Any luck reproducing?

Checking this week :)

Time goes too fast recently. Checking this week hopefully for real!

Sorry I was super busy. Does this also happen here: http://codesuki.github.io/react-d3-components/example.html ?

It doesn't appear to.
Not sure what was going on with mine then, but I have since replaced it.


elog(breaking): more C-like API

I found the original builder approach somewhat limiting and inefficient because we used to format strings before attempting to log (even if postgres did drop the log message).
Postgres elog API is somewhat complex, yet composable. When using C, APIs might also allow to report an optional soft error with errsave or ereturn. This cases didn't fit well with the existing Zig API.
The new implementation follows the C macro API more closely by using the functional options pattern. The reporting functions like ereport, ereportNoJump, errsave, ... do capture the options like errcode and errmsg in a struct. When reporting we call errstart which checks if the message is to be reported or not. Only if errstart returns true will we evaluate the options given by errstart or errmsg. This reduces CPU and memory usage especially for debugging logs.
Finally errfinish will emit the log and eventually execute a long jump or return a Zig error.
As the API now resembles the C-API more closely it is also easier to move the Postgres practices to Zig code more easiliy. The documentation in elog.h is (mostly?) true for the Zig implementation as well.
Example usage of new API
Error with long jump:
elog.ereport(src, .Error, .{
  elog.errcode(pg.ERRCODE_OUT_OF_MEMORY),
  elog.errmsg("Not enough memory", .{}),
}),

Error report emitting a Zig error (we use try because some error levels will not return an error, but void).
try elog.ereportNoJump(@src(), .Error, .{
  elog.errcode(pg.ERRCODE_S_R_E_PROHIBITED_SQL_STATEMENT_ATTEMPTED),
  elog.errmsg("password or GSSAPI delegated credentials required", .{}),
  elog.errdetail("Non-superusers must delegate GSSAPI credentials or provide a password in the user mapping.", .{}),
});

Soft error support (will do a longjump using ERROR level if escontext is no ErrorSaveContext node type):
elog.errsave(@src(), escontext, .{
  elog.errcode(pg.ERRCODE_UNDEFINED_OBJECT),
  elog.errmsg("cluster \"{s}\" does not exist", .{name}),
});

Oh, didn't check the readme. Let me have a look.
The samples are all compiled and tested via CI. I fixed all operations that failed.
We still have the pgzx.elog.Error/Log/...(...) wrapper functions to reduce some boilerplate. These didn't change, but have become a little more efficient as they use the C based API now.

we only mentioned the simple wrappers in the readme. Added a small note that we also provide the C like API.


vtgate: Fix wrong call to log.Warning() where log.Warningf() was necessary.

This change is

This is a simple change. I'll merge it right away.


firmware: get current settings from knobs on bootup

On boot, make sure all knobs are read and appropriate settings are set. For parameters involving the "shift" key, apply the current knob readings to those values as well

added a function in KelpieIO called getKnobValOnStart(index) which returns a knob Struct and then updates the state


refactor: make TProd reducible

In various places we want TProd α (i :: is) = α i × TProd α to be transparent.

!bench

Thanks! :tada:
bors merge


REFACTOR: treatment of classification codes

@MichelDaab FYI

No big changes ; just a cleaner base code with separated classification codes. I also removed the use of reset_classification in predict.py.


Issue with registering agent

When using agent getting below error

@samba1112  could you please show your configs as well as what the wazuh version?

Using this image @pyToshka

@pyToshka and may be i should give specific version below 4.2.7 or equal version instead of 4.x like this?

@samba1112  I meant show please variables. I didnt test for 4.2.7, last deployment was for version 4.3.9.

kind: DaemonSet
metadata:
  name: wazuh-agent
  namespace: wazuh
spec:
  selector:
    matchLabels:
      app: wazuh-agent
  template:
    metadata:
      labels:
        app: wazuh-agent
      name: wazuh-agent
    spec:
      hostPID: true
      hostIPC: true
      containers:
      - name: wazuh-agent
        image: kennyopennix/wazuh-agent:latest
        livenessProbe:
          httpGet:
            path: /healz
            port: 5000
          initialDelaySeconds: 20
          periodSeconds: 10
          timeoutSeconds: 10
          failureThreshold: 3
        ports:
          - name: agent-http
            containerPort: 5000
            protocol: TCP
        imagePullPolicy: Always
        securityContext:
          privileged: true
        env:
        - name: JOIN_MANAGER_MASTER_HOST
          value: "wazuh-master.local"
        - name: JOIN_MANAGER_WORKER_HOST
          value: "wazuh-manager.local"
        - name: JOIN_MANAGER_PROTOCOL
          value: "https"
        - name: FLASK_BIND
          value: "<IP_ADDRESS>"
        - name: NODE_NAME
          valueFrom:
            fieldRef:
              fieldPath: spec.nodeName
        - name: JOIN_MANAGER_USER
          valueFrom:
            secretKeyRef:
              name: wazuh-api-cred
              key: username
        - name: JOIN_MANAGER_PASSWORD
          valueFrom:
            secretKeyRef:
              name: wazuh-api-cred
              key: password
        - name: WAZUH_GROUPS
          value: default
        - name: JOIN_MANAGER_API_PORT
          value: "55000"
        - name: JOIN_MANAGER_PORT
          value: "1514"
        - name: HEALTH_CHECK_PROCESSES
          value: "ossec-execd,ossec-syscheckd,ossec-logcollector,wazuh-modulesd,ossec-authd"
        volumeMounts:
        - mountPath: /var/run
          name: var-run
        - mountPath: /host/dev
          name: dev
        - mountPath: /host/sys
          name: sys
          readOnly: true
        - mountPath: /host/proc
          name: proc
          readOnly: true
        - mountPath: /host/etc
          name: etc
          readOnly: true
        - mountPath: /var/run/docker.sock
          name: docker-socket-mount
        - mountPath: /host/var/run/docker.sock
          name: docker-socket-mount
        - mountPath: /host/boot
          name: boot
          readOnly: true
        - mountPath: /host/usr
          name: usr
          readOnly: true
        - mountPath: /host/lib/modules
          name: modules
          readOnly: true
        - mountPath: /host/var/log
          name: log
          readOnly: true
      volumes:
      - name: docker-socket-mount
        hostPath:
          path: /var/run/docker.sock
      - name: var-run
        hostPath:
          path: /var/run
      - name: dev
        hostPath:
          path: /dev
      - name: sys
        hostPath:
          path: /sys
      - name: proc
        hostPath:
          path: /proc
      - name: etc
        hostPath:
          path: /etc
      - name: boot
        hostPath:
          path: /boot
      - name: usr
        hostPath:
          path: /usr
      - name: modules
        hostPath:
          path: /lib/modules
      - name: log
        hostPath:
          path: /var/log

@pyToshka This is mountpath for wazuh manager

yes we are using ingress so given that ingress endpoint there @pyToshka

@samba1112  i didnt test via  ingress, i use "service"
As well below my example, this example working for me.
apiVersion: apps/v1
kind: DaemonSet
metadata:
  name: wazuh-agent
  namespace: wazuh
spec:
  selector:
    matchLabels:
      app: wazuh-agent
  template:
    metadata:
      name: wazuh-agent
      creationTimestamp: null
      labels:
        app: wazuh-agent
    spec:
      volumes:
        - name: docker-socket-mount
          hostPath:
            path: /var/run/docker.sock
            type: ''
        - name: log
          hostPath:
            path: /var/log
            type: ''
      containers:
        - name: wazuh-agent
          image: ""
          ports:
            - name: agent-http
              containerPort: 5000
              protocol: TCP
          env:
            - name: JOIN_MANAGER_MASTER_HOST
              value: wazuh.wazuh.svc.cluster.local
            - name: JOIN_MANAGER_WORKER_HOST
              value: wazuh-workers.wazuh.svc.cluster.local
            - name: JOIN_MANAGER_PROTOCOL
              value: https
            - name: FLASK_BIND
              value: <IP_ADDRESS>
            - name: NODE_NAME
              valueFrom:
                fieldRef:
                  apiVersion: v1
                  fieldPath: spec.nodeName
            - name: WAZUH_GROUPS
              value: default
            - name: JOIN_MANAGER_USER
              valueFrom:
                secretKeyRef:
                  name: wazuh-api-cred
                  key: username
            - name: JOIN_MANAGER_PASSWORD
              valueFrom:
                secretKeyRef:
                  name: wazuh-api-cred
                  key: password
            - name: JOIN_MANAGER_API_PORT
              value: '55000'
            - name: JOIN_MANAGER_PORT
              value: '1514'
            - name: HEALTH_CHECK_PROCESSES
              value: >-
                ossec-execd,ossec-syscheckd,ossec-logcollector,wazuh-modulesd,ossec-authd
          resources: {}
          volumeMounts:
            - name: docker-socket-mount
              mountPath: /var/run/docker.sock
            - name: docker-socket-mount
              mountPath: /host/var/run/docker.sock
            - name: log
              readOnly: true
              mountPath: /host/var/log
          terminationMessagePolicy: File
          imagePullPolicy: Always
          securityContext:
            privileged: true
      restartPolicy: Always
      terminationGracePeriodSeconds: 30
      dnsPolicy: ClusterFirst
      hostPID: true
      hostIPC: true
      securityContext: {}
      schedulerName: default-scheduler

@pyToshka just now i tried with service getting same error

@samba1112  error from your screenshot mean, response from Wazuh restapi doesnt return token, i checked for my kubernetes and its working as expected.
Please provide more debug informations

@pyToshka while agent launced captured logs got this

and then below error after a while again

@samba1112  unfortunately i dont know what is your deployment/configurations/etc. i checked for my cluster its working as expected.
You can try to debug your setup and python code. As well check configuration of Wazuh.
I cant reproduce your issue.


[Bug]: As a client, I want to use the contact form so I can start a conversation about potential work

Describe the bug
After deploying to Vercel the contact form doesn't work. It should be refactored to account for the fact that the app is hosted on a proper server using Node as opposed to simple SSG.
To Reproduce
Steps to reproduce the behavior:

Go to monkwellington.com
Click on Contact and fill out the form
Click Send button
Component hangs and doesn't email out

Expected behavior
For step 4 above, the component should show a success message and I should see an email from the contact form
Screenshots
NA
Desktop (please complete the following information):

Browser: any
Version: 1

Additional context

Wwhen I click on send I think it sends but not sure. I have to click on cancel for it to return to menu.
Also when I click back on Contact all the previous info is still there including my name, email and message


Remove type checking in ts-node to improve dev experience

Because type checking is coupled with traspilation it takes more time to start the server and also restart. So decoupling both of them will create better dev experience.
Type checking should be moved as a separate command and it should also be checked before committing the code and in CI/CD flow.

The code will still be type-checked when it's compiled, though, right?  :)

@jerith666 Yup it will a separate npm command. I have also added description.
I am planning to use husky as pre git commit hook for type checking and lints.
Also for local development use SWAGGER_ENABLED=false (if swagger end point is not needed) as it takes a lot of time.


v3.3.0 breaks transform keyword

schema in an array and in v3.3.0 it assumes it's a string causing:
TypeError: Cannot read property 'hash' of undefined
    at Object.toEnumCase (transform.js:21)
    at g.eval (transform.js:57)
    at validate (eval at w (ajv.min.js:NaN), <anonymous>:3:15305)

v3.2.0 = https://github.com/epoberezkin/ajv-keywords/blob/v3.2.0/keywords/transform.js#L14
v3.3.0 = https://github.com/epoberezkin/ajv-keywords/blob/v3.3.0/keywords/transform.js#L33

Looks like I did it:
https://github.com/epoberezkin/ajv-keywords/commit/3c1fda424805fcbfd0067e2dd624af936cd74a4d
@willfarrell could you maybe add PR with the test case(s) that pass in 3.2 and fail in 3.3? I would fix my “improvement” over the weekend then. Thank you.


Adding projects to the Explorer view

Thank you for a great extension!
It would be really helpful to be able to add projects to the Explorer view.
Now it only shows projects where the active account has Owner, Editor, Browser or Viewer permissions on project level.
Since BigQuery also supports permissions on dataset and table level this means that a lot of projects are missing.
One way to work around this issue would be to allow the user to manually add projects, datasets of tables that should be visible in the Explorer view.
Best regards,
Stefan

Hi @stefanavesand , thank you for point this out. Let me figure out what is the best tactic to do this regarding the API's that can be leveraged to do this.

Hi @stefanavesand , the possibility of adding projects to the explorer is done in the new version 0.1.0. Also noticed that when the permissions are only given to a table, the project configuration would not be enough. So I also added the option to configure a table.
https://github.com/bstruct/vscode-bigquery/tree/0.1.0#settings
Please let me know if this documentation is not enough to understand how it works and also please let me know if you bump into another issue.


Optional pretty SQL syntax in toolbar

Description
I think this is hidden feature. Works (only) if highlightjs.php installed in vendor dir.
Light mode:

Dark mode:

Tested with myth/auth and tatter/relations.
Checklist:

[x] Securely signed commits
[x] Component(s) with PHPdocs
[ ] Unit testing, with >80% coverage
[ ] User guide updated
[ ] Conforms to style guide

There are some code style tweaks that should be fixed.
Other than that... I'm not sure if support for this specific external library should be included in the core (but this is only my opinion). I would say: "no", but maybe others have a different opinion. So... let's wait and see.

I agree that we cannot include a specific third-party class. Some ideas:

It looks like this functionality would not be hard to reproduce. We could host our own version, pared down to just what we need.

Alternatively this would make a great module, e.g. codeigniter4-toolbar-highlights. It could include the third party package and reformatted toolbar collectors just as you have here.

I can't comment more because I have problem with my English.
So simply. If you have working with composer, the toolbar works fine if you have installed hljsphp. This works only in development mode. I think this is not affected in your production. So, if the package not maintained we can change the future :).
Sadly, I can't explore more the toolbar because view parser has limitations.


Uncaught ReferenceError: ReactDOM is not defined

I am using last version of react v 0.14. I tried to use react-datepicker in my project but I got the following error when I click on date picker.
Uncaught ReferenceError: ReactDOM is not defined
Also the datepicker's style does not look proper. What could be done to solve this problem?
Thanks

Yes this is an error introduced in #198. I released a few minor versions to get this working, but it looks like we're still depending on React. things in https://github.com/Pomax/react-onclickoutside. We need to figure out what's wrong here, but I have no time left anymore for today. Would be awesome if you had some time today to look into this.

This has been fixed in the latest release.


Exception handling

Hello,
We have started recently to use this client to connect to vault,  we found that when we have network related exceptions we get only the http error code and not the full message.
Is this behavior expected due to security violation?
thanks

No real reason for not including them.  Will look into this soon and let me know if you want to work on it and PR it!

That would be great!


Add :error_tag option to Repo.fetch_by/3.

Nice 🍬

Sorry, I thought I approved back then!

Sorry, I thought I approved back then!

No worries. Do we want this? I thought you had some PR where you needed it? What happened to it?

:shrug: purchase complete

I merged the PR where I needed it and added a tech wishlist ticket for when this is released


parnurzeal/gorequest/gorequest.go:31:2: code in directory /Users/gbox/go/src/github.com/moul/http2curl expects import "moul.io/http2curl"

Is there a known solution for this?

Deletion of "// import "moul.io/http2curl/v2" from /Users/gbox/go/src/github.com/moul/http2curl/doc.go seems to fix this issue.

This is fixed today: https://github.com/moul/http2curl/commit/0e96bf8b68fb4e70039acd96dcdf07dd4e0ddb7e


Addition of dependabot.yml file

We need to add dependabot.yml file as it helps us to keep our dependencies up to date. Every day, it checks your dependency files for outdated requirements and opens individual PRs for any it finds.
@Roshaen please assign me this issue under gssoc'23.

@Roshaen please assign me this issue would love to work on it.

@DivyanshiNarang assigned it

Hello, @Roshaen please give level and gssoc23 label to this PR.


Initialize pointcloud2 buffer size variable. (Kinetic)

Initialize pointcloud2 buffer size variable.

@pjreed Do you know why this is failing to build?

@malban There's an opencv problem in marti_common. Should be fixed shortly.


Why did I lose semantic highlighting?

 Environment data

Language Server version: 2023.5.21
OS and version: linux x64
Python version (and distribution if applicable, e.g. Anaconda):
python.analysis.indexing: true
python.analysis.typeCheckingMode: off

 Code Snippet

XXX

 Repro Steps

XXX

 Expected behavior
XXX
 Actual behavior
XXX
 Logs

XXX

without any repro step or logs, there is not much we can do here.
Can you provide us some logs as described in the troubleshooting guide?

Closed. It was after the theme changing.


Errors in deleted php files are still displayed after file deleted

If you delete a php-file with Errors in it, they will be displayed at the error-window and the foldername becomes red

VSCode Version: 1.30
OS Version: Windows 10 Version 1809

Steps to Reproduce:

Create a php-file
create an error in it
delete the file

Does this issue occur when all extensions are disabled?: No
Used Extensions: PHP Extension Pack V. 1.0.2 by Felix Becker

Please file this on the PHP Intellisense extension's repo.


Generate html from Eidos and use in EidosShell

This is a poor person's IntelliJ/sbt/eclipse extension that helps people work on rules and see the results from within the development environment with relatively quick turnaround time.  In about 15 seconds a new rule can be applied and the result viewed either as text or as html in the browser.
To use, start up the EidosShell.  It can run within an IntelliJ debug session in a Console tab right next to the debugger tab.  Use the program pretty much as normal.  Just before the text output appears, the web page eidosshell.html will be updated with what would (almost) otherwise be the webapp output.  Open a web browser on it.  If you enter other sentences, just refresh the browser.
If you change a rule, like in entities.yml, have EidosShell do a :reload.  It takes under 10 seconds for me.  (Some of the reloading has be be double checked.  It is probably outdated.)  Type the sentence again (or better, paste it, or use the history), and the new rule should be used.  Just update the browser display if you want the HTML.  (I haven't yet dealt with the case for the rule change causing the program to crash, so be nice.)  Set breakpoints in the program to see what might be going wrong internally.

This is displayed from a local file.  No web server is required, no webapp/run, no processors server, no sbt.

This is pretty cool!

Can someone with a Mac try out the webapp in as many browsers as is convenient?  It's working in Windows Chrome, Firefox, Internet Explorer, and Microsoft Edge without any error messages in the console, especially not about missing fonts, exceptions, timeouts, etc.  The display should not have changed otherwise.

This  was cancelled in favor of a different branch to avoid the cache problem.


Issue/5102 docs dot installed (#6267)

Pull request opened by the merge tool on behalf of #6267

Merged into branches iso5 in 66e4f95c99b915020472b0431448a0d14734a06d


Sat 123

This is required to parse the unit and cram test results in bamboo

I propose either deleting the bundled cram and using the one in the env, or updating the bundled cram to 0.7 .

slight preference for bundling 0.7 so that people can run tests without having to set up a virtualenv or have root

The new 0.7 is a module split into 10 files. No idea how to get a single file from that.

Oh that's unfortunate, I really liked that it used to be a single script.  Anyway, should we leave the old cram 0.6 in the source tree for people to use, or should we delete it?   I don't have a strong opinion now.

We could still do that, though it'd be a little hacky: have a script that prepends to PYTHONPATH a cram directory in third-party then exec's the third-party/cram/scripts/cram python script

that seems fine, not that hacky

r? @dalexander @nlhepler

Merged to unblock migration

r+ obviously


Update jekyll versions for docs

Describe what problem your feature request solves
The ruby gem files reference out of date versions
Describe the solution you'd like
update docs gem files for up to date versions
Additional context

Hey @jgadsden! I found that the latest version of jekyll is 4.3.3


Expire idle sessions.

Not a perfect solution, as cookies are left for a while, but better than nothing?  Also, models.Team.current() will always return the current one for the user rather than any outdated cookie value.
See issue #76.

+1 - better than nothing, and far less complicated than one of the avenues I was thinking about. If team_tid isn't used for state changing requests, then everything should be fine.
Checked that cached tid is not used for /api/teams/ (uses User.current(), and user.team). Otherwise players may have been able to see email addresses of people who joined after they left.


error when adding django-review to installed apps settings.py

Hello
I'm getting the following error when running migrate, after adding 'review' to installed apps sections in settings.py
"Migration %s dependencies reference nonexistent parent node %r" % (migration, parent)
KeyError: u"Migration review.0001_initial dependencies reference nonexistent parent node (u'contenttypes', u'0002_remove_content_type_name')"

Here is a full stack trace for the error
http://pastebin.com/raw/x000GZne
Thank you

@amlife As the errors says the following migration is needed: https://github.com/django/django/blob/master/django/contrib/contenttypes/migrations/0002_remove_content_type_name.py
Have you added 'django.contrib.contenttypes' to your INSTALLED APPS?


install

Hi Eisenwave ,
please, i need your help to build your program.
i have a big error message when i do "make" in the build folder of voxelio folder (you can see the copy of code ).
i have build succesfully the "tinyobjload" and "tayweeargs" before.
my environment is Debian 10 64bit
thanks for your help if you can.
jean
`
copy_of_error.txt
`

Same problem here, looking for help


azb spark cluster submit cannot reference files that are not in working directory

This doesn't work (absolute path):
azb spark cluster submit ... /Users/jiata/code/thunderbolt/examples/src/main/python/pi.py 100
This also doesn't work (relative path):
azb spark cluster submit ... ../another-thunderbolt/examples/src/main/python/pi.py 100
This works (we we'd expect):
azb spark cluster submit ... /examples/src/main/python/pi.py 100

I was able to submit a job successfully using an absolute path on Windows so that part of the issue may be limited to linux and osx clients.


Missing documentation on defining models

There used to be docs on defining models: https://www.ember-cli-mirage.com/versions/v0.4.x/models/
In the latest version of the website, it no longer exists.
Polymorphic relationships are never mentioned, hasMany/belongsTo are not mentioned.
The very fact that defined models are required for relationships to work is not mentioned!

 I think the hasMany/belongsTo got shoehorned into the API guides for association. Definitely need all this covered though.

🙇


Integration test for TestCorpusStructure fails locally

Describe the bug
When running mvn clean install on https://github.com/hexatomic/hexatomic/pull/117, the build fails.
To reproduce the bug
Steps to reproduce the behavior:

git checkout feature/zest-graph-view
git pull
mvn clean install
Build fails with stack trace:

Running org.corpus_tools.hexatomic.it.tests.TestGraphEditor
log4j:WARN No appenders could be found for logger (org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher).
log4j:WARN Please initialize the log4j system properly.
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

(org.corpus_tools.hexatomic:26489): Gtk-CRITICAL **: 21:07:47.690: gtk_widget_get_preferred_width_for_height: assertion 'height >= 0' failed

(org.corpus_tools.hexatomic:26489): Gtk-WARNING **: 21:07:47.690: gtk_widget_size_allocate(): attempt to allocate widget with width 12 and height -13

(org.corpus_tools.hexatomic:26489): Gtk-CRITICAL **: 21:07:47.690: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.532 s - in org.corpus_tools.hexatomic.it.tests.TestGraphEditor
testShowSaltExample  Time elapsed: 0.422 s
Running org.corpus_tools.hexatomic.it.tests.TestCorpusStructure
Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 10.294 s <<< FAILURE! - in org.corpus_tools.hexatomic.it.tests.TestCorpusStructure
testRenameDocument  Time elapsed: 5.273 s  <<< ERROR!
org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: Timed out waiting for tree item corpus_graph_1
	at org.corpus_tools.hexatomic.it.tests.TestCorpusStructure.testRenameDocument(TestCorpusStructure.java:34)
Caused by: org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: Could not find node with text corpus_graph_1
	at org.corpus_tools.hexatomic.it.tests.TestCorpusStructure.testRenameDocument(TestCorpusStructure.java:34)

testFilter  Time elapsed: 5.018 s  <<< ERROR!
org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: Could not find widget matching: (of type 'Tree')
	at org.corpus_tools.hexatomic.it.tests.TestCorpusStructure.testFilter(TestCorpusStructure.java:72)
Caused by: org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: Could not find widget matching: (of type 'Tree')
	at org.corpus_tools.hexatomic.it.tests.TestCorpusStructure.testFilter(TestCorpusStructure.java:72)

Results:

Errors:
  TestCorpusStructure.testFilter:72 » WidgetNotFound Could not find widget match...
  TestCorpusStructure.testRenameDocument:34 » WidgetNotFound Timed out waiting f...

Tests run: 3, Failures: 0, Errors: 2, Skipped: 0

Expected behavior
Integration tests pass locally.
Screenshots

Desktop (please complete the following information):

Operating System: Ubuntu 18.04
Hexatomic Version: https://github.com/hexatomic/hexatomic/pull/117
Java Version: OpenJDK 8

Weirdly, the corpus graph is called "corpusGraph1" where it shold be called "corpus_graph_1".

When running the product and clicking "Add" manually, the corpus graph is indeed called "corpus_graph_1".

Ah, the problem is that TestGraphEditor is run beforehand, and the workspace isn't cleared in between tests.

@costezki Thanks for your heads up, do you run this on the latest develop?

yes, the commit humber is 308b80f449c2955ff5e9083777a6135e9e50f39e (from 29th of May)

Thanks, we'll investigate.
Can you give us details about the Eclipse you're running, and the OS + Java details please?

Please also provide the stack trace. Do the tests run from within Eclipse?

In bash I run
mvn clean install

JVM:
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1ubuntu1-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
Maven:
Apache Maven 3.6.3
Maven home: /usr/share/maven
Java version: 1.8.0_252, vendor: Private Build, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_GB, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-33-generic", arch: "amd64", family: "unix"
stack-trace.log
Note: The process comes to a successful termination if I skip tests.

Thanks, seems as if the SWTBot tests miss some dependencies/locales. We'll look into it.

Right, I can reproduce the issue on Ubuntu with the following locale settings:
LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=

Caused by:
java.lang.ExceptionInInitializerError
	at org.corpus_tools.hexatomic.it.tests.TestCorpusStructure.createExampleStructure(TestCorpusStructure.java:90)
	at org.corpus_tools.hexatomic.it.tests.TestCorpusStructure.testRenameDocument(TestCorpusStructure.java:103)
Caused by: java.lang.IllegalArgumentException: EN_GB.keyboard not found, see http://wiki.eclipse.org/SWTBot/Keyboard_Layouts for more information.
	at org.corpus_tools.hexatomic.it.tests.TestCorpusStructure.createExampleStructure(TestCorpusStructure.java:90)
	at org.corpus_tools.hexatomic.it.tests.TestCorpusStructure.testRenameDocument(TestCorpusStructure.java:103)

@costezki Please checkout https://github.com/hexatomic/hexatomic/tree/feature/test-keyboard-layout and let me know if that fixes the issue for you. (I think you need to have the en_US.UTF-8 locale at least generated, so that it is available via locale -a).

I could not find the branch https://github.com/hexatomic/hexatomic/tree/feature/test-keyboard-layout and I assumed that it was merged into /develop.
Just ran another mvn clean install, getting this time as an outcome the following exception:

[INFO] Command line:
[/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java, -Dosgi.noShutdown=false, -Dosgi.os=linux, -Dosgi.ws=gtk, -Dosgi.arch=x86_64, -Dosgi.clean=true, -jar, /home/lps/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.5.700.v20200207-2156/org.eclipse.equinox.launcher-1.5.700.v20200207-2156.jar, -data, /home/lps/work/workspace-charm/hexatomic/tests/org.corpus_tools.hexatomic.it.tests/target/work/data, -install, /home/lps/work/workspace-charm/hexatomic/tests/org.corpus_tools.hexatomic.it.tests/target/work, -configuration, /home/lps/work/workspace-charm/hexatomic/tests/org.corpus_tools.hexatomic.it.tests/target/work/configuration, -application, org.eclipse.tycho.surefire.osgibooter.uitest, -testproperties, /home/lps/work/workspace-charm/hexatomic/tests/org.corpus_tools.hexatomic.it.tests/target/surefire.properties, -testApplication, org.eclipse.e4.ui.workbench.swt.E4Application, -product, org.corpus_tools.hexatomic.core.product, -nouithread]
Launching application org.eclipse.e4.ui.workbench.swt.E4Application...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Running org.corpus_tools.hexatomic.it.tests.TestCorpusStructure
log4j:WARN No appenders could be found for logger (org.eclipse.swtbot.swt.finder.matchers.AbstractMatcher).
log4j:WARN Please initialize the log4j system properly.
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.546 s - in org.corpus_tools.hexatomic.it.tests.TestCorpusStructure
testRenameDocument  Time elapsed: 0.248 s
testFilter  Time elapsed: 0.18 s
Running org.corpus_tools.hexatomic.it.tests.TestGraphEditor
Tests run: 3, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 11.23 s <<< FAILURE! - in org.corpus_tools.hexatomic.it.tests.TestGraphEditor
testShowSaltExample  Time elapsed: 0.583 s
testTokenizeSelectedTextualDS  Time elapsed: 5.607 s  <<< ERROR!
org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: Showing the graph editor part took too long
at org.corpus_tools.hexatomic.it.tests.TestGraphEditor.openDefaultExample(TestGraphEditor.java:112)
at org.corpus_tools.hexatomic.it.tests.TestGraphEditor.testTokenizeSelectedTextualDS(TestGraphEditor.java:221)
testAddPointingRelation  Time elapsed: 5.038 s  <<< ERROR!
org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: Could not find widget matching: (of type 'Tree')
at org.corpus_tools.hexatomic.it.tests.TestGraphEditor.openDefaultExample(TestGraphEditor.java:105)
at org.corpus_tools.hexatomic.it.tests.TestGraphEditor.testAddPointingRelation(TestGraphEditor.java:189)
Caused by: org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: Could not find widget matching: (of type 'Tree')
at org.corpus_tools.hexatomic.it.tests.TestGraphEditor.openDefaultExample(TestGraphEditor.java:105)
at org.corpus_tools.hexatomic.it.tests.TestGraphEditor.testAddPointingRelation(TestGraphEditor.java:189)
Running org.corpus_tools.hexatomic.it.tests.TestGridEditor
Tests run: 18, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 33.518 s <<< FAILURE! - in org.corpus_tools.hexatomic.it.tests.TestGridEditor
testShowSaltExample  Time elapsed: 5.025 s  <<< ERROR!
org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: Could not find widget matching: (of type 'Tree')
at org.corpus_tools.hexatomic.it.tests.TestGridEditor.openDefaultExample(TestGridEditor.java:164)
at org.corpus_tools.hexatomic.it.tests.TestGridEditor.testShowSaltExample(TestGridEditor.java:240)
Caused by: org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.: Could not find widget matching: (of type 'Tree')
at org.corpus_tools.hexatomic.it.tests.TestGridEditor.openDefaultExample(TestGridEditor.java:164)
at org.corpus_tools.hexatomic.it.tests.TestGridEditor.testShowSaltExample(TestGridEditor.java:240)
testEditCellTyping  Time elapsed: 5.027 s  <<< ERROR!
org.eclipse.swtbot.swt.finder.exceptions.WidgetNotFoundException: Could not find widget matching: (of type 'Tree')
at org.corpus_tools.hexatomic.it.tests.TestGridEditor.openDefaultExample(TestGridEditor.java:164)
at org.corpus_tools.hexatomic.it.tests.TestGridEditor.testEditCellTyping(TestGridEditor.java:437)
Caused by: org.eclipse.swtbot.swt.finder.widgets.TimeoutException: Timeout after: 5000 ms.:  SUCCESS [  1.696 s]
[INFO] org.corpus_tools.hexatomic.bundles ................. SUCCESS [  1.769 s]
[INFO] org.corpus_tools.hexatomic.core .................... SUCCESS [  4.016 s]
[INFO] org.corpus_tools.hexatomic.corpusstructureeditor ... SUCCESS [  3.103 s]
[INFO] org.corpus_tools.hexatomic.textviewer .............. SUCCESS [  2.589 s]
[INFO] org.corpus_tools.hexatomic.graph ................... SUCCESS [  5.607 s]
[INFO] org.corpus_tools.hexatomic.grid .................... SUCCESS [  3.047 s]
[INFO] org.corpus_tools.hexatomic.features ................ SUCCESS [  0.059 s]
[INFO] org.corpus_tools.hexatomic ......................... SUCCESS [  0.474 s]
[INFO] org.corpus_tools.hexatomic.releng .................. SUCCESS [  0.074 s]
[INFO] org.corpus_tools.hexatomic.update .................. SUCCESS [  1.094 s]
[INFO] org.corpus_tools.hexatomic.product ................. SUCCESS [ 13.276 s]
[INFO] org.corpus_tools.hexatomic.target .................. SUCCESS [  0.121 s]
[INFO] org.corpus_tools.hexatomic.tests ................... SUCCESS [  0.081 s]
[INFO] org.corpus_tools.hexatomic.core.tests .............. SUCCESS [  3.472 s]
[INFO] org.corpus_tools.hexatomic.graph.tests ............. SUCCESS [  2.356 s]
[INFO] org.corpus_tools.hexatomic.grid.tests .............. SUCCESS [  3.876 s]
[INFO] org.corpus_tools.hexatomic.it.tests ................ FAILURE [ 49.896 s]
[INFO] Aggregate Test Report .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:52 min
[INFO] Finished at: 2020-06-05T11:28:11+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.6.0:test (default-test) on project org.corpus_tools.hexatomic.it.tests: There are test failures.
[ERROR]
[ERROR] Please refer to /home/lps/work/workspace-charm/hexatomic/tests/org.corpus_tools.hexatomic.it.tests/target/surefire-reports for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :org.corpus_tools.hexatomic.it.tests

Thanks @costezki. Could it be that per chance you have done other work while letting the build run in the background? Clicking anything or typing anything while the UI tests run will trip the tests, we need to document this. If this is the case, could you please try and run again without doing any other work at the same time?
Thanks!

Yes, indeed the tests pass when I do no other actions on the computer. Thank you.

Perfect! Thanks for the feedback.


Is there a way to add a class to elements in the svg through after effects?

I am aware that I can add id's to layers in After effects; that works great!
It would be very useful to be able to add classes as well.
For example: I've got a big infographic animation which has several buttons that will open popups. It would be great to be able to add a general class as well as an unique id to those elements/buttons.

you can add classes as well as ids.
add an initial dot to the name of the layer and it will add a class to it.

Sorry! I tested it, but apparently I did something wrong, because now it is working.
Also adding a class and id to the same layer works perfectly. Thanks!


Craft the Cupcake website strategy and plan

chsanche created the following on Jul 19:
User Story

As a DDS website designer, I need a way to see the timeline for the Cupcake version website build so that I can complete tasks based on the timeline and reach the roadmap milestones.

Additional information

We only know we are going to develop the Cupcake version website by Q4 but we do not have a clear timeline or plan on what needs to be done, how long it might take and etc.

Acceptance criteria
[X] A draft timeline created for Cupcake Website task planning reference.
Original issue: https://github.ibm.com/webstandards/digital-design/issues/1265

On Jul 19, chsanche commented:
First work session scheduled for 07/23.

On Jul 24, chsanche commented:
Based on the conversation I had with Wonil, we will...
Step 1. Collect content from the designers
Step 2. Create IA for the cupcake website based on the content list
Step 3. Make a plan on platform and content work.

On Jul 22, chsanche commented:
@Wonil-Suh1 Created a Mural board for us to work on. I am not sure what you have in mind, and we do not have to use it if you have another work process in mind.

On Jul 25, chsanche commented:
👉  Work document for the session can be found on BOX

On Jul 25, chsanche commented:
Cupcake content collection - work session with DDS designers scheduled for Tuesday 07/30/2019.
Purpose: Collect all possible content we need to include for the Cupcake Website.

On Jul 30, chsanche commented:
Based on the discussion in today's work session, there is user research work we need to do before we can work on the list. We will refine the plan at a high level as:
Step 1. Collect user feedback on the content needs from the individual stream perspective.
Step 2. Collect content list from the stream leads.
Step 3. Create IA for the cupcake website based on the content list.
Step 4. Make a plan on platform and content work.
Step 5. Socialize the website with DGC adopters

Note:
The content audit work Liv is working on will also help stream leads with what content we are carrying over from the v19a website to the Cupcake website.

Next step: @Wonil-Suh1 will create user feedback task issues for each stream leads and link them to proper Epic.

On Jul 30, chsanche commented:
@hahnrob FYI ^^^

On Jul 31, chsanche commented:
@Wonil-Suh1 Let me know if you need help creating the task issues?

On Aug 02, chsanche commented:
#1348 #1349 #1350 created for the next step, planning completed.


Route::uses vs Route::currentRouteUses vs the phpdoc vs usage

Hello,
The less usefull stuff, but I want to show it:
When I read the phpdoc  from \Illuminate\Routing\Router, I see that
currentRouteUses should be aliased by uses method , but the code was different, so it's not an alias. But it working in the same way, so it's ok, but an update of the phpdoc cool be good.
But the main issue is about the way it works :

Route::getCurrentAction(); // that return App\Http\Controllers\Controller@action
Route::currentRouteUses('App\Http\Controllers\Controller@action'); // that will true
Route::uses('App\Http\Controllers\Controller@action'); // that will return true
Route::currentRouteUses('Controller@action'); // that will return false
Route::uses('Controller@action'); // that will return false

What people expect is this :

Route::currentRouteUses('App\Http\Controllers\Controller@action'); // that will true
Route::uses('App\Http\Controllers\Controller@action'); // that will return true
Route::currentRouteUses('Controller@action'); // that will return true
Route::uses('Controller@action'); // that will return true

Why? Because we define route with 'Controller@action' and not with 'App\Http\Controllers\Controller@action' even if in RouteServiceProvider we know that we set the namespace . So at least for the namespace of the app, uses and currentRouteUses method should work with short route definition.
We use the same shorcut for route redirection (\Illuminate\Routing\Redirector::action), so, for me, it should works the same for identifying current route.
thanks
the only related ticket I see about this issue was the ticket #10371

I'm sorry, but the current behaviour really is correct. The controller is called App\Http\Controllers\Controller not Controller.

If people are expecting Controller to work, perhapse they need to look at the code in the route service provider, and notice their is a group that prefixes the class name on registration.

Thank you for your concern though. :)

Well, ok but why in \Illuminate\Routing\Redirector::action can we ue the shortcut Controller@action in this case?

Well, ok but why in \Illuminate\Routing\Redirector::action can we ue the shortcut Controller@action in this case?

Because of that code I talked about. Let me find it so I can link you to it.

https://github.com/laravel/framework/blob/5.1/src/Illuminate/Foundation/Support/Providers/RouteServiceProvider.php#L49

That basically allow people to use that namespace, but should still remain mindful of the actual internal representation.

Yes I know it. It's what I talk when I speak about RouteServiceProvider that do this for everybody without knowing it.
but because route definition, for people who are not digging are Controller@action, because redirect and action are also with this shorcut form, perhaps we can see to add something to have something that works in the same direction.

I do agree that this is somewhat confusing. Ping @taylorotwell. What do you think we can do here?

Perhaps we can add a new method for this.

We're open to PRs.


fix manual how running WinAppDriver on remotely

the 10.X.X.10 was very confusing, it seems like a typo

@hassanuz can you have a look?


fix: upgrade to version 3.0.796

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To complete the pull request process, please assign abayer
You can assign the PR to them by writing /assign @abayer in a comment when ready.
The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jenkins-x-bot-test: The following test failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gsm
80c18f43193fb39d815500a3bbe6075e6a0b796e
link
/test gsm

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@jenkins-x-bot-test: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gsm
80c18f43193fb39d815500a3bbe6075e6a0b796e
link
/test gsm

kube
80c18f43193fb39d815500a3bbe6075e6a0b796e
link
/test kube

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.

@jenkins-x-bot-test: The following tests failed, say /retest to rerun them all:

Test name
Commit
Details
Rerun command

gsm
80c18f43193fb39d815500a3bbe6075e6a0b796e
link
/test gsm

kube
80c18f43193fb39d815500a3bbe6075e6a0b796e
link
/test kube

vault
80c18f43193fb39d815500a3bbe6075e6a0b796e
link
/test vault

Instructions for interacting with me using PR comments are available here.  If you have questions or suggestions related to my behavior, please file an issue against the jenkins-x/lighthouse repository. I understand the commands that are listed here.


apply ARIA attributes to html elements for accessibility

https://developers.google.com/web/fundamentals/accessibility/semantics-aria

Run the lighthouse tests in dev tools to check for accessibility and fix any issues


Use package description for schema.org description, leading to better social sharing

This issue was originally filed by @sethladd

Suggest we use schema.org metadata for pub packages, which enables much better social sharing.
Here's an example of the markup:
<!-- Update your html tag to include the itemscope and itemtype attributes. -->
<html itemscope itemtype="http://schema.org/Product">
<!-- Add the following tags inside head. -->
<meta itemprop="name" content="My Cool Package">
<meta itemprop="description" content="A port of Blowfish to thwart evil hackers.">
You can test the snippets here: http://www.google.com/webmasters/tools/richsnippets
Here are the docs: https://developers.google.com/+/plugins/snippet/
See screenshot for what we have now. Notice the description is the generic description for pub, and not the description for the package itself.
Hope that helps!

Attachment:
Screenshot_1_26_13_12_24_PM.png (46.04 KB)

This issue has been moved to dart-lang/pub-dartlang#315.


Stream

There were the following issues with your Pull Request

Commit: 35a85c511262414290bf7690230b7d2d012b6417

Invalid type. Valid types are feat, fix, docs, style, refactor, perf, test, chore, revert

Commit: 68ced10f296e257001f7ca95b4b4295209cbc64b

Commits must be in the following format: %{type}(%{scope}): %{description}

Commit: d91f67b372e318f6a3bceecf8ae2f7338af73cc4

Commits must be in the following format: %{type}(%{scope}): %{description}

Commit: 4f9ac84acdd10d3788956242224da4e26e39e442

Commits must be in the following format: %{type}(%{scope}): %{description}

Guidelines are available at https://github.com/fabric8io/fabric8-ui

This message was auto-generated by https://gitcop.com

Can you please rebase this, since we already have the revert in place.

There were the following issues with your Pull Request

Commit: 2504ee72aa0d8b47485279070a2a24bd5c5c00cb

Commits must be in the following format: %{type}(%{scope}): %{description}

Commit: 9eea7a4fbea9e4aaefb54170e6762c8a3ef33fca

Commits must be in the following format: %{type}(%{scope}): %{description}

Commit: c0321ace08dcb0ebc51040657385c3bfad1c1540

Commits must be in the following format: %{type}(%{scope}): %{description}

Guidelines are available at https://github.com/fabric8io/fabric8-ui

This message was auto-generated by https://gitcop.com

There were the following issues with your Pull Request

Commit: 2504ee72aa0d8b47485279070a2a24bd5c5c00cb

Commits must be in the following format: %{type}(%{scope}): %{description}

Commit: 9eea7a4fbea9e4aaefb54170e6762c8a3ef33fca

Commits must be in the following format: %{type}(%{scope}): %{description}

Commit: c0321ace08dcb0ebc51040657385c3bfad1c1540

Commits must be in the following format: %{type}(%{scope}): %{description}

Commit: 2e947ac762770b20a00f9d0f22f0c8f946b8ca7a

Commits must be in the following format: %{type}(%{scope}): %{description}

Guidelines are available at https://github.com/fabric8io/fabric8-ui

This message was auto-generated by https://gitcop.com


Trash log output: "Inserted Digits..."

Describe the bug
The library outputs a garbage logs in my console as I type:
flutter: Inserted Digits 6
flutter: Old start 14
flutter: New end 15

Package version
0.5.2+2
Flutter version
1.22.4
Also, the lib allows to enter 14 digits for US phone number, which is invalid. It should accept only 11 digits.

Hi @agordeev, thanks for pointing that out. I have removed those logs and also you could modify the allowable length by setting the maxLength property of the package.

Hi @natintosh I still have this and since version   intl_phone_number_input: ^0.5.0 I first ignored this but my project has gone big and its really obstructing other logs


Using proxy for preprod environments

@MarcinGinszt There are tasks that use Pyxis API using python scripts. If I understand this change correctly the proxy will not work for these tasks. How does that work?


Add sorted(like:keyPath:) to Array

Add sorted(like:keyPath:) to Array to sort an array like another array based on a keyPath.

Checklist

[/] I checked the Contributing Guidelines before creating this request.
[/] New extensions are written in Swift 5.0.
[/] New extensions support iOS 8.0+ / tvOS 9.0+ / macOS 10.10+ / watchOS 2.0+, or use @available if not.
[/] I have added tests for new extensions, and they passed.
[/] All extensions have a clear comments explaining their functionality, all parameters and return type in English.
[/] All extensions are declared as public.
[/] I have added a changelog entry describing my changes.

          4 Messages

:book:
Thank you for submitting a pull request to SwifterSwift. The team will review your submission as soon as possible.

:book:
iOS: Executed 619 tests, with 0 failures (0 unexpected) in 10.967 (12.245) seconds

:book:
tvOS: Executed 593 tests, with 0 failures (0 unexpected) in 5.807 (9.877) seconds

:book:
macOS: Executed 444 tests, with 0 failures (0 unexpected) in 1.084 (1.462) seconds

  Generated by :no_entry_sign: Danger

@guykogus Applying your suggestion, it would be used like a1.sorted(by: a2, keyPath: \.id, but this doesn't sound very intuitive to me either. Maybe sorted(accordingTo:keyPath:) or sorted(order:keyPath:)? Could also be desiredOrder or targetOrder...

Thanks. Can I merge?

Thanks. Can I merge?

@MaxHaertwig sure :))
Sent with GitHawk


Synthetical datasets for other languages (e.g German, Spanish, French)

Do you have plans to create synthetical datasets based on Tagged Corruption Models for other languages?
For example, for the German language. The Falco+MERLIN corpus and Gernam Errant fork  would be helpful to create a desired tag distribution.
Or for Spanish based on COWS-L2H Corpus.
It would be very useful to have similar synthetic data for several popular languages.

I agree that this would be a natural and useful extension of this work - especially for German using the German ERRANT version you are referring to. However, it doesn't match our current priorities and we are not actively working on that - maybe we find time in 2022 :)


fix #1989: add confirmation dialog for kill app and restart app

Update 1: The buttons are now "OK" and "Cancel".

+1 as long as we're consistent with 'Yes' 'No, Thanks' on other confirmation dialogs


this is a test

Description
njqnjdlbdqzjljf
Steps to reproduce

Go to '...'
Click on '...'
Scroll down to '...'
See error

Spark Component and Version
blabla
Browser
No response
Operating System

[ ] macOS
[ ] Windows
[ ] Linux

Additional Information
No response

@elisa-hery I am closing this test, I hope thats fine


ACCESS-OM2:   OverflowError: date value out of range

Here I am reposting my old issue (previously I posted on access-om2):
https://github.com/COSIMA/access-om2/issues/228
My run is at Year 2501, which does not start due to the following error:
vi /scratch/v45/hh0162/access-om2/control/1deg_jra55_iaf_omip2r1i2p2f1.e14870883
Traceback (most recent call last):
File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-20.07/bin/payu-run", line 10, in
sys.exit(runscript())
File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-20.07/lib/python3.7/site-packages/payu/subcommands/run_cmd.py", line 131, in runscript
expt.setup()
File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-20.07/lib/python3.7/site-packages/payu/experiment.py", line 422, in setup
model.setup()
File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-20.07/lib/python3.7/site-packages/payu/models/cice5.py", line 56, in setup
super(Cice5, self).setup()
File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-20.07/lib/python3.7/site-packages/payu/models/cice.py", line 217, in setup
caltype)
File "/g/data3/hh5/public/apps/miniconda3/envs/analysis3-20.07/lib/python3.7/site-packages/payu/calendar.py", line 51, in date_plus_seconds
end_date += get_leapdays(init_date, end_date)
OverflowError: date value out of range
Any idea why this happens? My latest successful output and restart files are labeled 2499 (output2499 and restart2499).

That path doesn't exist:
$ ls -l /scratch/v45/hh0162/access-om2/control/1deg_jra55_iaf_omip2r1i2p2f1.e14870883
ls: cannot access '/scratch/v45/hh0162/access-om2/control/1deg_jra55_iaf_omip2r1i2p2f1.e14870883': No such file or directory

Can you check that and get back to me with the path to the control directory and error file.

@hakaseh I can't look at this unless you provide the information I've asked for above.

@aidanheerdegen sorry for the late reply. I just re-ran the model and reproduced the issue:
/scratch/v45/hh0162/access-om2/control/1deg_jra55_iaf_omip2/r1i2p2f1.e23212195
thanks for looking into this. i'd love to continue the run beyond 2500 years, so it would be great if this gets fixed.

thanks @aidanheerdegen for https://github.com/payu-org/payu/pull/304#issuecomment-852661754
how can i update payu? i don't know where it is located.

There is an issue with updating the conda environment. I'll let you know when that is fixed.

payu/1.0.21 is now installed in conda/analysis3-unstable (conda/analysis3-21.04)
You can check you've got the correct conda environment loaded with the latest version with the conda list command:
$ conda list payu
# packages in environment at /g/data3/hh5/public/apps/miniconda3/envs/analysis3-21.04:
#
# Name                    Version                   Build  Channel
payu                      1.0.21                     py_0    coecms

I have tested with your configuration, but let me know if that doesn't work for you @hakaseh

@aidanheerdegen i am happy to confirm that my test run was successful with the payu update. thank you!


[ORM] currency field that is set to zero evaluates to TRUE

currency field that is set to zero evaluates to TRUE.  This is confusing to say the least - as it goes against all the basics in PHP.   To replicate

set up dataobject

class MyProduct extends DataObject {
    private static $db = array(
        "MyPrice" => "Currency",
        "MyDouble" => "Double"
    );
}

setup test

    function test(){
        $MyProduct = MyProduct::get()->last();
        $MyProduct->MyDouble = 0;
        $MyProduct->MyPrice = 0;
        $MyProduct->write();
        if($MyProduct->MyDouble) {
            db::alteration_message("MyDouble with new DataObject: ERROR", "deleted");
        }
        else {
            db::alteration_message("MyDouble with new DataObject: OK", "created");
        }
        $MyProduct = MyProduct::get()->last();
        if($MyProduct->MyDouble) {
            db::alteration_message("MyDouble with saved DataObject: ERROR", "deleted");
        }
        else {
            db::alteration_message("MyDouble with saved DataObject: OK", "created");
        }
        $MyProduct->MyDouble = 0;
        $MyProduct->MyPrice = 0;
        $MyProduct->write();
        if($MyProduct->MyPrice) {
            db::alteration_message("MyCurrency with new DataObject: ERROR", "deleted");
        }
        else {
            db::alteration_message("MyCurrency with new DataObject: OK", "created");
        }
        $MyProduct = MyProduct::get()->last();
        if($MyProduct->MyPrice) {
            db::alteration_message("MyCurrency with saved DataObject: ERROR", "deleted");
        }
        else {
            db::alteration_message("MyCurrency with saved DataObject: OK", "created");
        }
    }

This returns the following

I’ve encountered this before in templates too:
<% if $Price %>
    {$Price}
<% end_if %>

Will return 0.00

We should override exists method in DBCurrency, so that at least in templates the bool-ness of the value can be corrected.

It's a bit tricky... a price of $0.00 is still valid (free!) so I kind of think currency fields should allow null values in the database, and a template if test should only fail on a null value. For me the same idea applies to numeric fields - a user entering 0 in a field has a different meaning to me than a user leaving a field blank. That's a can of worms... but to open it for just a moment:
<% if $Price %> tests that a value exists, even if it is set to 0 (is not null)
<% if $Price > 0 %> tests that a value exists and is positive

I agree with jonom here - no price is different from 0 price.

exists() isn't a check for "if it's valid", it's a check for if it has a non-empty value. It doesn't make any sense to treat $0.00 as "exists", when we treat "0" as "not exists" for other numeric fields.
Changing to use null as a "is empty flag" would need to be treated consistently across the ORM though... do you now want to treat empty strings (non null) as "exists()"? It doesn't make much sense to me sorry.

I agree with jonom here - no price is different from 0 price.

I disagree. ;) Free things have no price.

Fair enough. I don't want these worms to wriggle too far so let me just pick them up and... there. They're back in the can.

I knew those worms would get loose again!

It is hard to grasp small, slippery things that wriggle...;P

I think if I got to this point, I'd start splitting my costing across multiple fields, perhaps with currency, value, and an enum for an explicit state.
I agree that in db terminology, null closer approximates "not assigned" than "empty value", however it's not a concept that the ORM respects in any way.

Hey @tractorcow...If you got to what point ?
No matter what happens at the db or ORM levels (ie: meanings of null, not assigned, or empty value...), a numerical variable that can take the value zero, such as tempInCelsius, should definitely return true for exists() when the variable actually is zero. Anything else just doesn't make sense for a method called exists(). Strings are a strange case though, as you mentioned. Hmm...

Hey @tractorcow...If you got to what point ?

Of wanting to distinguish between "no" value, and an explicit non-empty zero value.

Solution: keep exists() as a non-falsey check, and add isNull() to DB field to check for nullability?

Yeah, I was thinking of isSet() or isAssigned()...
Maybe define an isNull() and its negation isSet() to avoid using the negation operator ! too often ?

I think there's __isset magic method, so that isset($val) works.

The pontificating about "is zero a value" is kind of beside the point - we have a situation where Ints treat 0 as empty and Decimal/Currency treats it as not empty. This is a bug, plain and simple
This test illustrates the problem, executed on 4.3.
    public function testZeroIsFalse()
    {
        $obj = new DataObjectTest\FieldTypes();
        $obj->MyInt = 0;
        $obj->MyDecimal = 0.00;
        $obj->MyCurrency = 0.00;
        $obj->write();

        $this->assertFalse((bool)$obj->MyInt);
        $this->assertFalse((bool)$obj->MyDecimal);
        $this->assertFalse((bool)$obj->MyCurrency);

        $obj2 = DataObjectTest\FieldTypes::get()->byId($obj->ID);
        $this->assertFalse((bool)$obj2->MyInt); // return false as hoped
        $this->assertFalse((bool)$obj2->MyDecimal); // returns true, bug
        $this->assertFalse((bool)$obj2->MyCurrency); // returned true, bug
    }

This would be another bug fixed by #7039.

The nullable-numeric ticket is here #8135

Reopening this - it turns out that #8448 only fixed float values, not decimal.

Fixed in 4.4


Will you update lib to the latest version?

Updated and released a new version.

Why did this get reopened?


Update zh_cn.json

Basically complete.
This is a translation referring to existed file. Tested with a resource pack.

Wait a minute, I'll submit a Chinese translation PR too. In addition to submitting the language files, the Pachouli guide book will also be submitted, because the Pachouli guide book hasn't been translated for a long time.

Closing in favor of #821


Re-iterate

Hello there,

I have a problem where I need to iterate through the JSON multiple times. If I start the second iteration attempt I get the following error:

Fatal error:  Uncaught JsonMachine\Exception\SyntaxErrorException: Cannot iterate empty JSON '' At position 0. in /var/www/vendor/halaxa/json-machine/src/Parser.php:368
| Stack trace:
  | #0 /var/www/vendor/halaxa/json-machine/src/Parser.php(245): JsonMachine\Parser->error('Cannot iterate ...', NULL)
  | #1 /var/www/src/Workorder.php(101): JsonMachine\Parser->getIterator()
  | #2 /var/www/src/Workorder.php(87): App\Workorder->count(Object(JsonMachine\Items))
  | #3 /var/www/src/Workflow.php(20): App\Workorder->push()
  | #4 /var/www/public/index.php(11): App\Workflow->execute()
  | #5 {main}
  | thrown in /var/www/vendor/halaxa/json-machine/src/Parser.php on line 368

Is there a way to remove items?

That's correct. The stream has been read to the end and there's nothing left to read. Rewind the stream yourself and create a new instance of Items.

My Problem is that I encapsulate the Creation of Items, such that I don't have access to the JSON anymore, how Do I rewind the Items without re-creating an Instance.
My code:
private function returnJsonItem(\Psr\Http\Message\ResponseInterface $response): \JsonMachine\Items
    {
        $phpStream = \GuzzleHttp\Psr7\StreamWrapper::getResource($response->getBody());
        return \JsonMachine\Items::fromStream($phpStream);
    }

What about $response->getBody()->seek(0) from outside the function? Not nice, but you can reorganize your code to make it clearer ;)

What I do in such a situation is to not walk the JSON as part of a bigger process, but start from the JSON and dispatch async jobs that will handle the creation of items. And I do this with for example chunks of 50 items.
That looks like this (in a Laravel project, inside a Job class):
    /**
     * Stream the data from the JSON file, and chunk them.
     */
    public function handle()
    {
        $stream = JsonMachine::fromFile($this->filePath, '', new ExtJsonDecoder());
        $chunks = collect();

        // Iterate over the JSON stream.
        foreach($stream as $item) {
            $chunks->push($item);

            // Dispatch chunks by $this->chunkSize and reset the Collection.
            if ($chunks->count() == $this->chunkSize) {
                $this->addToBatch($chunks);
                $chunks = collect();
            }
        }

        // Dispatch remaining chunks.
        if ($chunks->isNotEmpty()) {
            $this->addToBatch($chunks);
        }
    }

    /**
     * Push chunks of entries to the current batch of jobs.
     */
    protected function addToBatch(Collection $chunks): void
    {
        $this->batch()->add([
            new HandleChunks($chunks),
        ]);
    }


Failed to build a project including zstd-rs crate

I have tried to build a project with yew and zstd-rs. Build failed errors always happen like below.
Build
$ cargo web build

Output
   Compiling arrayvec v0.4.10
   Compiling cfg-if v0.1.7
   Compiling libc v0.2.51
   Compiling nodrop v0.1.13
   Compiling lazy_static v1.3.0
   Compiling memoffset v0.2.1
   Compiling scopeguard v0.3.3
   Compiling byteorder v1.3.1
   Compiling rayon-core v1.4.1
   Compiling rayon v1.0.3
   Compiling serde v1.0.89
   Compiling proc-macro2 v0.4.27
   Compiling unicode-xid v0.1.0
   Compiling either v1.5.2
   Compiling num-traits v0.2.6
   Compiling ryu v0.2.7
   Compiling syn v0.15.30
   Compiling semver-parser v0.7.0
   Compiling autocfg v0.1.2
   Compiling glob v0.2.11
   Compiling stdweb-internal-runtime v0.1.3
   Compiling failure_derive v0.1.5
   Compiling itoa v0.4.3
   Compiling sha1 v0.6.0
   Compiling rustc-demangle v0.1.13
   Compiling linked-hash-map v0.5.2
   Compiling iovec v0.1.2
   Compiling base-x v0.2.4
   Compiling discard v1.0.4
   Compiling half v1.3.0
   Compiling fnv v1.0.6
   Compiling dtoa v0.4.3
   Compiling anymap v0.12.1
   Compiling slab v0.4.2
   Compiling crossbeam-utils v0.2.2
   Compiling backtrace v0.3.14
   Compiling semver v0.9.0
   Compiling log v0.4.6
   Compiling yaml-rust v0.4.3
   Compiling base64 v0.10.1
   Compiling num_cpus v1.10.0
   Compiling rustc_version v0.2.3
   Compiling bytes v0.4.12
   Compiling crossbeam-epoch v0.3.1
   Compiling quote v0.6.11
   Compiling num-traits v0.1.43
   Compiling rmp v0.8.7
   Compiling stdweb v0.4.15
   Compiling crossbeam-deque v0.2.0
   Compiling http v0.1.16
   Compiling cc v1.0.34
   Compiling serde_json v1.0.39
   Compiling serde_cbor v0.9.0
   Compiling bincode v1.0.1
   Compiling serde_yaml v0.8.8
   Compiling toml v0.4.10
   Compiling rmp-serde v0.13.7
   Compiling blob v0.2.1
   Compiling zstd-sys v1.4.8+zstd.1.3.8
error: failed to run custom build command for `zstd-sys v1.4.8+zstd.1.3.8`
process didn't exit successfully: `/Users/watanabe/work/yew_test/target/release/build/zstd-sys-dea0885a011d62fe/build-script-build` (exit code: 101)
--- stdout
NUM_JOBS = Some("8")
TARGET = Some("wasm32-unknown-unknown")
HOST = Some("x86_64-apple-darwin")
CC_wasm32-unknown-unknown = None
CC_wasm32_unknown_unknown = None
TARGET_CC = None
CC = None
CFLAGS_wasm32-unknown-unknown = None
CFLAGS_wasm32_unknown_unknown = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
DEBUG = Some("false")
running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/Users/watanabe/work/yew_test/target/wasm32-unknown-unknown/release/build/zstd-sys-9b3a1af77e0cfe5a/out/zstd/lib/common/debug.o" "-c" "zstd/lib/common/debug.c"
running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/Users/watanabe/work/yew_test/target/wasm32-unknown-unknown/release/build/zstd-sys-9b3a1af77e0cfe5a/out/zstd/lib/compress/zstd_opt.o" "-c" "zstd/lib/compress/zstd_opt.c"
running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/Users/watanabe/work/yew_test/target/wasm32-unknown-unknown/release/build/zstd-sys-9b3a1af77e0cfe5a/out/zstd/lib/compress/zstd_double_fast.o" "-c" "zstd/lib/compress/zstd_double_fast.c"
running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/Users/watanabe/work/yew_test/target/wasm32-unknown-unknown/release/build/zstd-sys-9b3a1af77e0cfe5a/out/zstd/lib/common/pool.o" "-c" "zstd/lib/common/pool.c"
running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/Users/watanabe/work/yew_test/target/wasm32-unknown-unknown/release/build/zstd-sys-9b3a1af77e0cfe5a/out/zstd/lib/compress/zstd_lazy.o" "-c" "zstd/lib/compress/zstd_lazy.c"
running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/Users/watanabe/work/yew_test/target/wasm32-unknown-unknown/release/build/zstd-sys-9b3a1af77e0cfe5a/out/zstd/lib/compress/fse_compress.o" "-c" "zstd/lib/compress/fse_compress.c"
running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/Users/watanabe/work/yew_test/target/wasm32-unknown-unknown/release/build/zstd-sys-9b3a1af77e0cfe5a/out/zstd/lib/compress/hist.o" "-c" "zstd/lib/compress/hist.c"
running: "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/Users/watanabe/work/yew_test/target/wasm32-unknown-unknown/release/build/zstd-sys-9b3a1af77e0cfe5a/out/zstd/lib/compress/huf_compress.o" "-c" "zstd/lib/compress/huf_compress.c"
cargo:warning=error: unable to create target: 'No available targets are compatible with this triple.'
cargo:warning=1 error generated.
cargo:warning=zstd/lib/compress/fse_compress.c:38:10: fatal error: 'stdlib.h' file not found
cargo:warning=#include <stdlib.h>     /* malloc, free, qsort */
cargo:warning=         ^~~~~~~~~~
cargo:warning=In file included from zstd/lib/common/pool.c:15:
cargo:warning=In file included from zstd/lib/common/zstd_internal.h:23:
cargo:warning=zstd/lib/common/mem.h:22:10: fatal error: 'string.h' file not found
cargo:warning=#include <string.h>     /* memcpy */
cargo:warning=         ^~~~~~~~~~
cargo:warning=In file included from zstd/lib/compress/hist.c:37:
cargo:warning=zstd/lib/common/mem.h:22:10: fatal error: 'string.h' file not found
cargo:warning=#include <string.h>     /* memcpy */
cargo:warning=         ^~~~~~~~~~
cargo:warning=In file included from zstd/lib/compress/zstd_lazy.c:11:
cargo:warning=In file included from zstd/lib/compress/zstd_compress_internal.h:21:
cargo:warning=In file included from zstd/lib/common/zstd_internal.h:23:
cargo:warning=zstd/lib/common/mem.h:22:10: fatal error: 'string.h' file not found
cargo:warning=#include <string.h>     /* memcpy */
cargo:warning=         ^~~~~~~~~~
cargo:warning=In file included from zstd/lib/compress/zstd_opt.c:11:
cargo:warning=In file included from zstd/lib/compress/zstd_compress_internal.h:21:
cargo:warning=In file included from zstd/lib/common/zstd_internal.h:23:
cargo:warning=zstd/lib/common/mem.h:22:10: fatal error: 'string.h' file not found
cargo:warning=In file included from zstd/lib/compress/zstd_double_fast.c:11:
cargo:warning=In file included from zstd/lib/compress/zstd_compress_internal.h:21:
cargo:warning=In file included from zstd/lib/common/zstd_internal.h:23:
cargo:warning=zstd/lib/common/mem.h:22:10: fatal error: 'string.h' file not found
cargo:warning=#include <string.h>     /* memcpy */
cargo:warning=         ^~~~~~~~~~
cargo:warning=#include <string.h>     /* memcpy */
cargo:warning=         ^~~~~~~~~~
exit code: 1
cargo:warning=zstd/lib/compress/huf_compress.c:46:10: fatal error: 'string.h' file not found
cargo:warning=#include <string.h>     /* memcpy, memset */
cargo:warning=         ^~~~~~~~~~
cargo:warning=1 error generated.
exit code: 1
cargo:warning=1 error generated.
cargo:warning=1 error generated.
exit code: 1
exit code: 1
cargo:warning=1 error generated.
cargo:warning=1 error generated.
exit code: 1
exit code: 1
cargo:warning=1 error generated.
cargo:warning=1 error generated.
exit code: 1
exit code: 1

--- stderr
thread 'main' panicked at '

Internal error occurred: Command "clang" "-O3" "-ffunction-sections" "-fdata-sections" "-fPIC" "--target=wasm32-unknown-unknown" "-I" "zstd/lib/" "-I" "zstd/lib/common" "-I" "zstd/lib/legacy" "-fvisibility=hidden" "-DZSTD_LIB_DEPRECATED=0" "-DZSTDLIB_VISIBILITY=" "-DZDICTLIB_VISIBILITY=" "-DZSTDERRORLIB_VISIBILITY=" "-DZSTD_LEGACY_SUPPORT=1" "-o" "/Users/watanabe/work/yew_test/target/wasm32-unknown-unknown/release/build/zstd-sys-9b3a1af77e0cfe5a/out/zstd/lib/common/debug.o" "-c" "zstd/lib/common/debug.c" with args "clang" did not execute successfully (status code exit code: 1).

', /Users/watanabe/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.34/src/lib.rs:2368:5
note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.

warning: build failed, waiting for other jobs to finish...
error: build failed
error: build failed

And, openssl-sys also causes build errors. These both zstd-rs and openssl-sys creates are rust bindings from C. Any limitation around here?

Unfortunately I don't think there is anything you can do here. In theory it should be possible to somehow use Emscripten to generate the relevant object files for zstd-rs and openssl-sys, and then link that together with the Rust code, but I don't know if anyone has even attempted something like that.
Your best bet would be to just find a pure Rust implementation of the dependencies you need.


[FEATURE] Moore Voting Algorithm

Detailed description
Detailed description:
Problem Statement:
The Moore Voting Algorithm is an efficient way to find the majority element in an array. A majority element is defined as an element that appears more than n/2 times in the array, where n is the length of the array. The algorithm works in two phases:
Candidate Selection: Traverse the array and choose a candidate for the majority element by maintaining a count. When the count reaches zero, a new candidate is selected.
Verification: Verify that the candidate is indeed the majority element by counting its occurrences in a second pass through the array.
The algorithm has a time complexity of O(n) and a space complexity of O(1).
Context
This algorithm is important in scenarios where the majority element needs to be identified efficiently, such as in voting systems or stream processing applications. The typical brute-force or sorting approaches have higher time complexities, whereas Moore Voting Algorithm is optimal for this type of problem.
This change benefits users who are working on algorithms that involve large datasets, providing them with a more efficient solution for finding a dominant or majority element in a list or array.
Possible implementation
Possible implementation:
The Moore Voting Algorithm can be implemented with the following steps:

Initialize a variable candidate to store the current candidate and a variable count to track the candidate’s occurrences.

Traverse the array, adjusting the candidate and count.

Verify by making a second pass through the array to check if the selected candidate appears more than n / 2 times.

Test Case Example:
Input:
[3, 3, 4, 2, 4, 4, 2, 4, 4]
Expected Output:
Majority Element: 4
Additional information
No response

feel free to raise a pr and link it here

sure

@realstealthninja I have implemented the algorithm and have raised a PR .
Review:
PR -> #2847.
Looking forward to your feedback. Thank you for the opportunity to contribute!

assign this to me

/assign


Need a new release for the client

0.32.x version of label_studio_sdk does not seem to have all the latest apis that are available in the document, please release the latest version of the sdk.

The latest releases are now autogenerated from API schemas and synchronized with Label Studio API
Please try updating with
pip install -U label-studio-sdk>=1


Delay msg

What is the purpose of the change
test
Brief changelog
test
Verifying this change
test
Follow this checklist to help us incorporate your contribution quickly and easily. Notice, it would be helpful if you could finish the following 5 checklist(the last one is not necessary)before request the community to review your PR.

[x] Make sure there is a Github issue filed for the change (usually before you start working on it). Trivial changes like typos do not require a Github issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue.
[x] Format the pull request title like [ISSUE #123] Fix UnknownException when host config not exist. Each commit in the pull request should have a meaningful subject line and body.
[x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why.
[x] Write necessary unit-test(over 80% coverage) to verify your logic correction, more mock a little better when cross module dependency exist. If the new feature or significant change is committed, please remember to add integration-test in test module.
[x] Run mvn -B clean apache-rat:check findbugs:findbugs checkstyle:checkstyle to make sure basic checks pass. Run mvn clean install -DskipITs to make sure unit-test pass. Run mvn clean test-compile failsafe:integration-test  to make sure integration-test pass.
[ ] If this contribution is large, please file an Apache Individual Contributor License Agreement.

Coverage decreased (-0.09%) to 51.209% when pulling 2abda6d204068517b42a8cd4f0f01c7139511ebd on delay_msg into 9f95a972e10e0681bc3f2d00e9957aa212e897b5 on master.

Codecov Report

Merging #2410 (2abda6d) into master (9f95a97) will decrease coverage by 0.20%.
The diff coverage is 30.48%.

@@             Coverage Diff              @@
##             master    #2410      +/-   ##
============================================
- Coverage     45.69%   45.49%   -0.21%
+ Complexity     4270     4257      -13
============================================
  Files           546      546
  Lines         35860    35885      +25
  Branches       4763     4764       +1
============================================
- Hits          16387    16325      -62
- Misses        17429    17505      +76
- Partials       2044     2055      +11

Impacted Files
Coverage Δ
Complexity Δ

.../java/org/apache/rocketmq/acl/common/AclUtils.java
83.12% <ø> (ø)
66.00 <0.00> (ø)

...ava/org/apache/rocketmq/acl/common/Permission.java
90.32% <ø> (-0.31%)
19.00 <0.00> (-1.00)

...ketmq/client/consumer/DefaultLitePullConsumer.java
73.33% <0.00%> (-3.42%)
53.00 <0.00> (ø)

...mq/client/impl/producer/DefaultMQProducerImpl.java
36.21% <0.00%> (ø)
69.00 <0.00> (ø)

...pache/rocketmq/client/latency/MQFaultStrategy.java
17.39% <0.00%> (+0.37%)
4.00 <0.00> (ø)

...g/apache/rocketmq/client/impl/MQClientAPIImpl.java
12.63% <8.82%> (ø)
25.00 <0.00> (ø)

...org/apache/rocketmq/broker/out/BrokerOuterAPI.java
46.47% <14.28%> (ø)
12.00 <3.00> (ø)

...ache/rocketmq/store/config/MessageStoreConfig.java
59.57% <42.85%> (-0.43%)
79.00 <2.00> (+2.00)
:arrow_down:

...e/rocketmq/client/exception/MQBrokerException.java
38.46% <57.14%> (-28.21%)
2.00 <2.00> (+1.00)
:arrow_down:

...cketmq/acl/plain/RemoteAddressStrategyFactory.java
89.76% <71.42%> (-1.44%)
14.00 <0.00> (ø)

... and 20 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f95a97...2abda6d. Read the comment docs.


Test the oceanhackweek image

@salvis2 the image is in the docker hub! Are we ok to test it here?

Yeah! I can change config in the morning, but feel free to do it yourself if you like!
If you want to do it yourself, you can change the lines in config/staging.yaml and config/prod.yaml. Only push to the staging branch to start, confirm that the new image works on the staging hub at https://staging.ocean.hackweek.io, then make a PR to prod to deploy the change there too.


Scan old contacts xpub

In case of change contact the app should still hold and scan the old contacts xpub

steps to test
user A to add a trusted contact or keeper and ask the friend to accept the request.
Remove the TC or keeper from User A.
Ask the TC or keeper to send a TXn via FF list to user A. The funds should show up under UserA's wallet, even if the contact/keeper was removed.

-Unable to test this on app version 1.3.1(163)
-I can't get rid of timer.

It seems the recipient is not able to send to the contact if the other person removed the contact.


pactions report error when argument has no action and target

Error message are:
error: error: Execution was interrupted, reason: Attempted to dereference an invalid ObjC Object or send it an unrecognized selector.
The process has been returned to the state before expression evaluation.
error: error: use of undeclared identifier 'None'
Traceback (most recent call last):
File "/usr/local/Cellar/chisel/1.5.0/libexec/fblldb.py", line 83, in runCommand
command.run(args, options)
File "/usr/local/Cellar/chisel/1.5.0/libexec/commands/FBPrintCommands.py", line 449, in run
targetCount = fb.evaluateIntegerExpression('[{targets} count]'.format(targets=targets))
File "/usr/local/Cellar/chisel/1.5.0/libexec/fblldbbase.py", line 76, in evaluateIntegerExpression
output = evaluateExpression('(int)(' + expression + ')', printErrors).replace(''', '')
AttributeError: 'NoneType' object has no attribute 'replace'

Thanks!

I just tried, but couldn't reproduce the problem. For a UIButton with no actions, it doesn't print out anything. I should change this to print "no actions".

Execution was interrupted, reason: Attempted to dereference an invalid ObjC Object or send it an unrecognized selector.

This raises a question: what is the class of the argument you passed to pactions?

Oh, it's my fault, I pass a instance of UIImageView class. 囧
It's very nice for you adding some message show on the debug console, thank you very much.


Don't suggest things when the entered identifier is in scope

this is a partial fix for #2214
When we detect that the identifier itself is in scope, then we don't suggest stuff since there are good chances that something else went wrong.
In this case we don't suggest anything since quickfix tooling interfers with autocomplete.

@vasily-kirichenko interestingly this is something that only happens in editor. The compiler in our test framework only emits the "Missing qualification after '.'" error.

The idea is the following: if our finds the exact identifier in scope that
the name resolver rejects then something is very fucky and we just don't
suggest anything. It clearly is not a typo but an issue with something
else.
The additional test that I fixed here is a similar issue.
Am 10.01.2017 20:00 schrieb "Kevin Ransom (msft)"<EMAIL_ADDRESS>
:

@KevinRansom approved this pull request.
The code looks fine apart from user-entered, I'm not sure I feel great
about that functionality.
In src/fsharp/ErrorResolutionHints.fs
https://github.com/Microsoft/visualfsharp/pull/2218#pullrequestreview-15986961
:

@@ -23,9 +23,11 @@ let IsInEditDistanceProximity userEntered suggestion =
/// Filters predictions based on edit distance to the given unknown identifier.
let FilterPredictions (userEntered:string) (suggestionF:ErrorLogger.Suggestions) =
let uppercaseText = userEntered.ToUpperInvariant()

suggestionF()

let allSuggestions = suggestionF()

if allSuggestions.Contains userEntered then [] else // some other parsing error occurred

Shouldn't the IDE take care of this? It seems like it's more of an
rendering thing than something that makes sense here ? It seems weird to me
that the compiler looks for a suggestion with the text user entered in
order to determine whether to filter it.
Perhaps I am missing something though
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/visualfsharp/pull/2218#pullrequestreview-15986961,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNJzsJgyQys4etMWx0U1lney5ZWrAks5rQ9VVgaJpZM4LfRZ1
.

What I find a bit yuky was not really added by this PR, I just wondered why the compiler knows about “user entered” in error recovery.  That seems like an IDE specific element … and should be dealt with by the IDE.
Kevin
From: Steffen Forkmann<EMAIL_ADDRESS>Sent: Tuesday, January 10, 2017 11:18 AM
To: Microsoft/visualfsharp<EMAIL_ADDRESS>Cc: Kevin Ransom<EMAIL_ADDRESS>Mention<EMAIL_ADDRESS>Subject: Re: [Microsoft/visualfsharp] Don't suggest things when the entered identifier is in scope (#2218)
The idea is the following: if our finds the exact identifier in scope that
the name resolver rejects then something is very fucky and we just don't
suggest anything. It clearly is not a typo but an issue with something
else.
The additional test that I fixed here is a similar issue.
Am 10.01.2017 20:00 schrieb "Kevin Ransom (msft)"<EMAIL_ADDRESS><EMAIL_ADDRESS>>:

@KevinRansom approved this pull request.
The code looks fine apart from user-entered, I'm not sure I feel great
about that functionality.
In src/fsharp/ErrorResolutionHints.fs
https://github.com/Microsoft/visualfsharp/pull/2218#pullrequestreview-15986961
:

@@ -23,9 +23,11 @@ let IsInEditDistanceProximity userEntered suggestion =
/// Filters predictions based on edit distance to the given unknown identifier.
let FilterPredictions (userEntered:string) (suggestionF:ErrorLogger.Suggestions) =
let uppercaseText = userEntered.ToUpperInvariant()

suggestionF()

let allSuggestions = suggestionF()

if allSuggestions.Contains userEntered then [] else // some other parsing error occurred

Shouldn't the IDE take care of this? It seems like it's more of an
rendering thing than something that makes sense here ? It seems weird to me
that the compiler looks for a suggestion with the text user entered in
order to determine whether to filter it.
Perhaps I am missing something though
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/Microsoft/visualfsharp/pull/2218#pullrequestreview-15986961,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AADgNJzsJgyQys4etMWx0U1lney5ZWrAks5rQ9VVgaJpZM4LfRZ1
.

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHubhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FMicrosoft%2Fvisualfsharp%2Fpull%2F2218%23issuecomment-271670220&data=02|01|Kevin.Ransom%40microsoft.com|78c519b177d84a64f4a808d4398d71cb|72f988bf86f141af91ab2d7cd011db47|1|0|636196727042482800&sdata=%2FukddCUYJEqpX8f7Wn8uALXw%2Bl4EaRwlnEUss55BYdY%3D&reserved=0, or mute the threadhttps://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAE76FqYBlxyCm5GnWB2BkznAfHTAF4phks5rQ9l8gaJpZM4LfRZ1&data=02|01|Kevin.Ransom%40microsoft.com|78c519b177d84a64f4a808d4398d71cb|72f988bf86f141af91ab2d7cd011db47|1|0|636196727042482800&sdata=DvnUXWZWMfE8nmRVU0C6esVtz55C90Y1ca5LFzrwXZ4%3D&reserved=0.

Yeah I took that terminology from elm, but I think idText is better in context of F#. I changed that back.
Also I rebased on master and merge conflict is resolved

@kevinransom better?

@forki,
I like idText better, except It's not really clear to me what what it refers to ... perhaps a comment similar to your description above ... obviously without the curse word, because we would just have to change that to get through our internal scanning processes.
Kevin

That's not a curse word. It's a meme. See http://m.quickmeme.com/img/aa/aadcd968fbae17016d14456cdad396dabc7fa92909fbd87033640b226a20a760.jpg

Policheck is very literal.  It hasn't been introduced to meme's yet.

fixed the namespaces. this is now ready

also fixes #2217


Explicitly define group names in tests.

@johngian r?

This is rather interesting. The tests were failing because at some point the groups naming schema was reaching number 100. So there were two groups with names group 99 and group 100. The paginator displays the items per page sorted by naming and because group 100 < group 99 the tests were failing.

r+


add profile page of myself

Description
It added my profile
Issues Resolved
N/A
Check List

[x] Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the BSD-3-Clause License.

I added myself as a new author

Hi @SpecialAir123 , I am seeing an empty file. Did you make sure to add any unstaged changes before committing?
You can check if you have unstaged changes using git status
If there is any change to check in then use git add <filename> followed by committing and pushing the change.

I have committed a new version with my file

@SpecialAir123 All the commits need a signoff - follow the instructions in https://github.com/opensearch-project/project-website/pull/2157/checks?check_run_id=17157105376 to fix.

@SpecialAir123 All the commits need a signoff - follow the instructions in https://github.com/opensearch-project/project-website/pull/2157/checks?check_run_id=17157105376 to fix.

I have done that.

@SpecialAir123 All the commits need a signoff - follow the instructions in https://github.com/opensearch-project/project-website/pull/2157/checks?check_run_id=17157105376 to fix.

I got this error when doing the rebase
"could not apply 24711d43... add new osci author d-wwwang"

@SpecialAir123 All the commits need a signoff - follow the instructions in https://github.com/opensearch-project/project-website/pull/2157/checks?check_run_id=17157105376 to fix.

I got this error when doing the rebase "could not apply 24711d4... add new osci author d-wwwang"

OK, probably the easiest fix here is a soft reset which will squash all you commits into one (which you will sign):
git reset --soft HEAD~9 &&
git commit

@SpecialAir123 All the commits need a signoff - follow the instructions in https://github.com/opensearch-project/project-website/pull/2157/checks?check_run_id=17157105376 to fix.

I got this error when doing the rebase "could not apply 24711d4... add new osci author d-wwwang"

OK, probably the easiest fix here is a soft reset which will squash all you commits into one (which you will sign):
git reset --soft HEAD~9 &&
git commit

I dont know why I got so many commits

@SpecialAir123 All the commits need a signoff - follow the instructions in https://github.com/opensearch-project/project-website/pull/2157/checks?check_run_id=17157105376 to fix.

I got this error when doing the rebase "could not apply 24711d4... add new osci author d-wwwang"

OK, probably the easiest fix here is a soft reset which will squash all you commits into one (which you will sign):
git reset --soft HEAD~9 &&
git commit

I am so sorry but I really dont know what happened.