social.exceptions.AuthMissingParameter: Missing needed parameter state in vagrant environment

I get this exception while going to http://localhost:6543/complete/google-oauth2 which is url generated by request.route_url('social.auth', backend='google-oauth2')). I have this project set up in vagrant environment, the same project works if I set it up on my host (not in vagrant). Authentication is done the same like in example directory of python-social-auth for pyramid.
What might caused this? Maybe it has something to do with port forwarding? Does python-social-auth tries to communicate with google on some other port than project is run?

I also get this error in production for less than 1% of users logging with Google Oauth2. Here is my stack trace
Error message
social.exceptions:AuthMissingParameter: Missing needed parameter state
Stack trace
Traceback (most recent call last):
File "/app/.heroku/python/bin/gunicorn", line 11, in
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 74, in run
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/base.py", line 189, in run
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/app/base.py", line 72, in run
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/arbiter.py", line 174, in run
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/arbiter.py", line 477, in manage_workers
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/arbiter.py", line 540, in spawn_workers
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/base.py", line 124, in init_process
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 119, in run
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 66, in run_for_one
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 30, in accept
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 130, in handle
File "/app/.heroku/python/lib/python2.7/site-packages/gunicorn/workers/sync.py", line 176, in handle_request
File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-<IP_ADDRESS>/newrelic/api/web_transaction.py", line 711, in iter
File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-<IP_ADDRESS>/newrelic/api/web_transaction.py", line 1087, in call
File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-<IP_ADDRESS>/newrelic/api/web_transaction.py", line 1215, in nr_wsgi_application_wrapper
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/wsgi.py", line 189, in call
File "/app/.heroku/python/lib/python2.7/site-packages/django/core/handlers/base.py", line 132, in get_response
File "/app/.heroku/python/lib/python2.7/site-packages/newrelic-<IP_ADDRESS>/newrelic/hooks/framework_django.py", line 499, in wrapper
File "/app/.heroku/python/lib/python2.7/site-packages/django/views/decorators/cache.py", line 57, in _wrapped_view_func
File "/app/.heroku/python/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 58, in wrapped_view
File "/app/.heroku/python/lib/python2.7/site-packages/social/apps/django_app/utils.py", line 51, in wrapper
File "/app/.heroku/python/lib/python2.7/site-packages/social/apps/django_app/views.py", line 28, in complete
File "/app/.heroku/python/lib/python2.7/site-packages/social/actions.py", line 43, in do_complete
File "/app/.heroku/python/lib/python2.7/site-packages/social/backends/base.py", line 41, in complete
File "/app/.heroku/python/lib/python2.7/site-packages/social/utils.py", line 229, in wrapper
File "/app/.heroku/python/lib/python2.7/site-packages/social/backends/oauth.py", line 375, in auth_complete
File "/app/.heroku/python/lib/python2.7/site-packages/social/backends/oauth.py", line 86, in validate_state

I think the reason is that Django session is missing for that user instead of there being and expired session.

Yes you are correct. I followed this blog, http://artandlogic.com/2015/07/email-validation-with-django-and-python-social-auth/ and applied monkey-patch to fetch session data from Session Table. It works fine in most cases but fails if session_key gets deleted/changed in the database. Django updates session_key each time the session data changes. So in case any other user logs in the same browser the session_key gets changed and user can't verify with the email link. @ddehghan Did you fix this issue in better way than what's discussed in this blog ?

I really haven't tried to solve this yet. In my case I had to delete my
session table once about 1 year ago. Now when those old users come back
they cause this error. I was hoping that at some point I will migrate the
users to our new domain and will force the users to reauthenticate and that
will solve the problem.
Thanks
David
On Tue, Oct 27, 2015 at 11:28 AM, Ashish Gupta<EMAIL_ADDRESS>wrote:

Yes you are correct. I followed this blog,
http://artandlogic.com/2015/07/email-validation-with-django-and-python-social-auth/
and applied monkey-patch to fetch session data from Session Table. It works
fine in most cases but fails if session_key gets deleted/changed in the
database. Django updates session_key each time the session data changes. So
in case any other user logs in the same browser the session_key gets
changed and user can't verify with the email link. @ddehghan
https://github.com/ddehghan Did you fix this issue in better way than
what's discussed in this blog ?
—
Reply to this email directly or view it on GitHub
https://github.com/omab/python-social-auth/issues/711#issuecomment-151601791
.

I got the same issue for Slack it didn't work at all, but after commenting this lines
file: socail/backends/oauth.py
    def validate_state(self):
        """Validate state value. Raises exception on error, returns state
        value if valid."""
        if not self.STATE_PARAMETER and not self.REDIRECT_STATE:
            return None
        state = self.get_session_state()
        request_state = self.get_request_state()
       # if not request_state:
       #     raise AuthMissingParameter(self, 'state')
       # elif not state:
       #     raise AuthStateMissing(self, 'state')
       # elif not request_state == state:
       #     raise AuthStateForbidden(self)
       # else:
        return state

This worked to authenticate the user for the first time, after that it keep working even after uncommenting those lines. I'm not sure but maybe the code should be like this:
    def validate_state(self):
        """Validate state value. Raises exception on error, returns state
        value if valid."""
        if not self.STATE_PARAMETER and not self.REDIRECT_STATE:
            return None
        state = self.get_session_state()
        request_state = self.get_request_state()
        if not request_state and not state:
            raise AuthMissingParameter(self, 'state')
        elif not state:
            raise AuthStateMissing(self, 'state')
        # elif not request_state == state: # Not sure what to do here
        #    raise AuthStateForbidden(self)
        else:
            return state

has anyone found a solid way to repro this bug. I thought that it was
caused by deleting sessions manually from Django session table but then I
tried that but I couldn't get this exception to repro. I see the exception
in my logs but I have not been able to find the source of it or see the
user experience. Will the user get this error and not be able to login
ever? or it is a transient error?
On Sat, Nov 14, 2015 at 4:08 AM, Ahmed Saidi<EMAIL_ADDRESS>wrote:

I got the same issue for Slack it didn't work at all, but after
commenting this lines
file: socail/backends/oauth.py
def validate_state(self):
    """Validate state value. Raises exception on error, returns state        value if valid."""
    if not self.STATE_PARAMETER and not self.REDIRECT_STATE:
        return None
    state = self.get_session_state()
    request_state = self.get_request_state()
   # if not request_state:
   #     raise AuthMissingParameter(self, 'state')
   # elif not state:
   #     raise AuthStateMissing(self, 'state')
   # elif not request_state == state:
   #     raise AuthStateForbidden(self)
   # else:
    return state

This worked to authenticate the user for the first time, after that it
keep working even after uncommenting those lines. I'm not sure but maybe
the code should be like this:
def validate_state(self):
    """Validate state value. Raises exception on error, returns state        value if valid."""
    if not self.STATE_PARAMETER and not self.REDIRECT_STATE:
        return None
    state = self.get_session_state()
    request_state = self.get_request_state()
    if not request_state and not state:
        raise AuthMissingParameter(self, 'state')
    elif not state:
        raise AuthStateMissing(self, 'state')
    # elif not request_state == state: # Not sure what to do here
    #    raise AuthStateForbidden(self)
    else:
        return state

—
Reply to this email directly or view it on GitHub
https://github.com/omab/python-social-auth/issues/711#issuecomment-156690864
.


Expensify Card - Toggle for Expensify Card is only locked after refreshing the page

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Version Number: 9.0.35-0
Reproducible in staging?: Y
Reproducible in production?: N
Issue was found when executing this PR: https://github.com/Expensify/App/pull/49173
Email or phone of affected tester (no customers<EMAIL_ADDRESS>Issue reported by: Applause Internal Team
Action Performed:

Go to staging.new.expensify.com
Create a new workspace.
Go to workspace settings > More features.
Enable Expensify Card.
Go to Expensify Card.
Click Issue new card.
Go through bank account set up.
Issue new card to yourself.
After issuing new card, go to More features page.

Expected Result:
The toggle for Expensify Card should be immediately locked (production behavior).
Actual Result:
The toggle for Expensify Card is not immediately locked. It is only locked after refreshing the page.
Manual refresh is also required to unlock the toggle after deactivating Expensify Card.
Workaround:
Unknown
Platforms:

[x] Android: Native
[x] Android: mWeb Chrome
[x] iOS: Native
[x] iOS: mWeb Safari
[x] MacOS: Chrome / Safari
[x] MacOS: Desktop

Screenshots/Videos
https://github.com/user-attachments/assets/fcac0eb9-7b95-4ceb-a0bc-ebeea88e3b4b

View all open jobs on GitHub

cc @VickyStash seems related to https://github.com/Expensify/App/pull/49173

@dominictb @Nodebrute we cannot do that as that would reintroduce the bug we had before.
I think this is ok and we can revert to using the cardList once we merge the deploy the onyx fix https://github.com/Expensify/react-native-onyx/pull/581

This is not on hold any more.
@allgandalf @DylanDylann is this still a problem in the latest staging?

@allgandalf do you get that error on some account where this worked before or some new account you just created?

@allgandalf You can try on the new account and set up the bank account again

Let's me try

Can't reproduce. It seems this issue was fixed by https://github.com/Expensify/App/pull/49280

Perfect lets close then and see if this will come back eventually


Upgrade Metabase

do we still need this ticket?

@MarsRomer this was completed.

@MarsRomer this was completed.


Cannot disable/uninstall package

Hi,
might be not a package problem, but cannot disable or uninstall this particular package (while others can). No crash, just unable to disable/uninstall.

There was a left entry in config.cson for disabledPackages. Deleted it by hand. Package uninstalled.


CO: Incorrect Officials

District 17
Colorado web site shows Mike Foote
OpenStates data indicates Matt Jones
District 9
Colorado web site shows Paul Lundeen
OpenStates data indicates Kent Lambert
These are just the ones that users reported so I'm thinking there's potentially more, I'd double check any seats that changed hands.

District 20
CO Legislator is Incorrect
Colorado web site shows Jessie Danielson
OpenStates data indicates Cheri Jahn

District 26
Colorado website shows Senator Jeff Bridges
OpenStates data indicates Daniel Kagan
+13035878303
My state senator resigned and has been replaced. How do I get that updated?
https://rapidbot.io/contact/read/041a45a2-1f36-4b3c-976f-7253db8ee2b8

District 26
Colorado website shows Senator Jeff Bridges
OpenStates data indicates Daniel Kagan


TODO: Configurable enable/disable of last_msg_seen

If you aren't using this metric, than it is a lot of overhead per packet received and disabling it for a busy statsd process has performance gains.
https://github.com/etsy/statsd/blob/master/stats.js#L246
Would be great to add a configuration flag to enable/disable this

I don't think we are gaining that much from this. I think calculating a timestamp once per packet is probably less work than everything else we do.


add site to #BuiltWithEleventy

https://www.11ty.dev/speedlify/
https://fosstodon.org/@eleventy/109740635586754581

✅


Added command line arguments

Added command line arguments to the database dataset scraper script.

@skhushu or someone else, please review this so I can merge into master. thanks

I changed everyones role to admin so they can merge without reviews, although ill keep the policy in place. You should be able to merge next time 👍🏽


libxslt: 1.1.39 -> 1.1.41

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for libxslt is: C library and tools to do XSL transformations
meta.homepage for libxslt is: https://gitlab.gnome.org/GNOME/libxslt
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.1.40 with grep in /nix/store/8920yck82m4i0yqsxdx1010aw89znp1g-libxslt-1.1.40-bin
found 1.1.40 in filename of file in /nix/store/8920yck82m4i0yqsxdx1010aw89znp1g-libxslt-1.1.40-bin

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

54352 total rebuild path(s)

54351 package rebuild(s)

First fifty rebuilds by attrpath

ArchiSteamFarm
BeatSaberModManager
CHOWTapeModel
ChowCentaur
ChowKick
ChowPhaser
CuboCore.coreaction
CuboCore.corearchiver
CuboCore.corefm
CuboCore.coregarage
CuboCore.corehunt
CuboCore.coreimage
CuboCore.coreinfo
CuboCore.corekeyboard
CuboCore.corepad
CuboCore.corepaint
CuboCore.corepdf
CuboCore.corepins
CuboCore.corerenamer
CuboCore.coreshot
CuboCore.corestats
CuboCore.corestuff
CuboCore.coreterminal
CuboCore.coretime
CuboCore.coretoppings
CuboCore.coreuniverse
CuboCore.libcprime
CuboCore.libcsys
DisnixWebService
EmptyEpsilon
Fabric
HentaiAtHome
LAStools
LASzip
LASzip2
LPCNet
LibreArp
LibreArp-lv2
Literate
MIDIVisualizer
MMA
OSCAR
OVMF
OVMF-cloud-hypervisor
OVMFFull
QuadProgpp
R
SDL
SDL2

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/c13712f89672aab84902edf780cef6744f0c8720#libxslt

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

Pre-merge build results
NixPkgs review skipped

Maintainer pings
cc @edolstra @jtojnar for testing.

Automatic update generated by nixpkgs-update tools. This update was made based on information from passthru.updateScript.
meta.description for libxslt is: C library and tools to do XSL transformations
meta.homepage for libxslt is: https://gitlab.gnome.org/GNOME/libxslt
Updates performed

Ran passthru.UpdateScript

To inspect upstream changes
Impact
Checks done

built on NixOS
The tests defined in passthru.tests, if any, passed
found 1.1.41 with grep in /nix/store/4qs05mgl26lm2ik91mx29lrb0brr01xg-libxslt-1.1.41-bin
found 1.1.41 in filename of file in /nix/store/4qs05mgl26lm2ik91mx29lrb0brr01xg-libxslt-1.1.41-bin

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

54449 total rebuild path(s)

54448 package rebuild(s)

First fifty rebuilds by attrpath

ArchiSteamFarm
CuboCore.coreaction
CuboCore.corearchiver
CuboCore.corefm
CuboCore.coregarage
CuboCore.corehunt
CuboCore.coreimage
CuboCore.coreinfo
CuboCore.corekeyboard
CuboCore.corepad
CuboCore.corepaint
CuboCore.corepdf
CuboCore.corepins
CuboCore.corerenamer
CuboCore.coreshot
CuboCore.corestats
CuboCore.corestuff
CuboCore.coreterminal
CuboCore.coretime
CuboCore.coretoppings
CuboCore.coreuniverse
CuboCore.libcprime
CuboCore.libcsys
DisnixWebService
EmptyEpsilon
Fabric
LAStools
LPCNet
MMA
OSCAR
OVMF
OVMF-cloud-hypervisor
OVMFFull
QuadProgpp
R
SDL
SDL2
SDL2_Pango
SDL2_gfx
SDL2_image
SDL2_image_2_0
SDL2_image_2_6
SDL2_mixer
SDL2_mixer_2_0
SDL2_net
SDL2_sound
SDL2_ttf
SDL_Pango
SDL_audiolib

Instructions to test this update (click to expand)

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

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

Or:
nix build github:r-ryantm/nixpkgs/704add53d667d1a22f390c964189cd8cf503186c#libxslt

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

Pre-merge build results
NixPkgs review skipped

Maintainer pings
cc @edolstra @jtojnar for testing.


Tell PublishSymbols task about binaries as well as the PDB files

We have been advised to give not only the PDB paths, but paths to the EXE and DLL files we produce, to the PublishSymbols build task. We are assured by our engineering systems teams that enlightening the task to all of this information helps it hook things up better somewhere between our build machine and the symbol server such that debugging is more robust, especially around thrown exception stacks.
PR Checklist

[x] Closes #11737
[x] I work here.
[ ] If it fits, it sits.

Oof. Problem. Have to exclude the packages folder for binaries... Or restrict the search paths to the bin directories or artifacts directories instead of matching everything...

hold please still fixing stuff


value create is not a member of object monix.reactive.Observer

I have an error:
value create is not a member of object monix.reactive.Observer
[error]   val mountCellFocus = Observer.create[(dom.Element, String, String)] { case (elem, inputType, idTxt) =>

my imports are:
import monix.execution.Scheduler.Implicits.global
import monix.reactive.subjects.PublishSubject
import monix.reactive.{Observable, Observer}  // or if you want to use our own reactive library instead of monix: import outwatch.reactive.handler._
import outwatch.reactive.handlers.monix._     // or if you want to use our own reactive library instead of monix: import outwatch.reactive.handler._

import colibri.ext.monix._
import colibri.ext.monix.ops._

import outwatch.dsl._
import outwatch._

by the way, I am trying the lastest commit:
  "com.github.outwatch.outwatch" %%% "outwatch" % "master-SNAPSHOT",
  "com.github.outwatch.outwatch" %%% "outwatch-util" % "master-SNAPSHOT", //If you want to use utilities for Store, WebSocket or Http, add the following:

  "com.github.cornerman.colibri" %%% "colibri-monix" % "master-SNAPSHOT",
  "com.github.outwatch.outwatch" %%% "outwatch-monix" % "master-SNAPSHOT", // for handler factories

@elyphas Hey there! It is true, monix Observer does not have a create method. You can create an Observer with new Observer[A] { ... }. We could think about adding a create method on the Observer object via an implicit.
But you can also just use colibri.Observer and then just do Observer.create as you are used to. Does that work for you?

sorry, I forgot the way monix do it.
seems it is working but I have many errors because of migration but I am working on it.
Thank you

No worries, you do not have to be sorry. Let me know if the problems persist!

Ok

Ok


Having the area below a line graph be gradient layer instead of background color

Is it possible to have the area underneath a line chart to be a gradient layer as opposed to just a solid color? We were also wondering if on a line chart if we could add a drop shadow below the line.  Thanks!

@BrandonShega Set the backgroundColor to UIColor.transparentColor and opaque to false

But won't that just leave it entirely transparent rather than fading from a color to transparent?

@BrandonShega The background gradient is your job. You can even put your girlfriend's face there if you want. Put whatever you want behind the chart.

No, no, I don't mean behind the chart, I just mean the area below the actual line graph. It's hard to explain here are some images that maybe will help.
Gradient Example:

Shadow Example:

@BrandonShega You mean the fill color. That's not supported yet, but it's planned.

Ok great, thank you so much! Loving the library, I added drop shadow to the circles and lines for line graph, I'll have to make a pull request here some day.

Nice library, but really it would be cool to add fill color gradient support!

It would be awesome if this got added.

It would be awesome if this got added to the project.

Yes friends, this happened :-)

For future readers, this is the fill property on LineDataSets (sorry for bumping, this is the only result I found)
Swift
datset.fill = ChartFill.fill(withColor: color.withAlphaComponent(0.8))

Objective C
dataset.fill = [ChartFill fillWithColor:[color colorWithAlphaComponent:0.8]];

How do you create gradient? I used approach below and it's not working. It's filling the whole view with gradient and nothing show
func setGradientBackground() {
let colorTop =  UIColor(red: 255.0/255.0, green: 149.0/255.0, blue: 0.0/255.0, alpha: 1.0).cgColor
let colorBottom = UIColor(red: 255.0/255.0, green: 94.0/255.0, blue: 58.0/255.0, alpha: 1.0).cgColor
    let gradientLayer = CAGradientLayer()
    gradientLayer.colors = [ colorTop, colorBottom]
    gradientLayer.locations = [ 0.0, 1.0]
    gradientLayer.frame = lineChartView.bounds

    lineChartView.layer.addSublayer(gradientLayer)
}

is it added yet ?
need it so much :(

@timotiuserick
 //setting fill gradient color         let coloTop = UIColor(red: 255/255, green: 255/255, blue: 255/255, alpha: 0.8).cgColor         let colorBottom = UIColor(red: 255/255, green: 255/255, blue: 255/255, alpha: 0.1).cgColor         let gradientColors = [coloTop, colorBottom] as CFArray // Colors of the gradient         let colorLocations:[CGFloat] = [0.7, 0.0] // Positioning of the gradient         let gradient = CGGradient.init(colorsSpace: CGColorSpaceCreateDeviceRGB(), colors: gradientColors, locations: colorLocations) // Gradient Object         lineChartDataSet.fill = Fill.fillWithLinearGradient(gradient!, angle: 90.0) // Set the Gradient         lineChartDataSet.drawFilledEnabled = true // Draw the Gradient

@davigr wow Thank you so much!!

let gradientColors = [UIColor(red: 141, green: 133, blue: 220, alpha: 0), UIColor(red: 230, green: 155, blue: 210, alpha: 0)] as CFArray // Colors of the gradient
let colorLocations:[CGFloat] = [1.0, 0.0] // Positioning of the gradient
let gradient = CGGradient.init(colorsSpace: CGColorSpaceCreateDeviceRGB(), colors: gradientColors, locations: colorLocations)
line1.fill = Fill.fillWithLinearGradient(gradient!, angle: 90.0) // Set the Gradient
line1.drawFilledEnabled = true /
this is not working!

Hey @abhiccc5
Check it out my chart view with all configs
https://github.com/davigr/BLEDemo/blob/master/BLEDemo/Application/Details/RSSIChartView.swift
There are 2 methods that sets gradients 'getGradientFilling', 'setGradientBackground'

// Setting fill gradient color
let coloTop = UIColor(red: 141/255, green: 133/255, blue: 220/255, alpha: 0.8).cgColor
let colorBottom = UIColor(red: 230/255, green: 155/255, blue: 210/255, alpha: 0.1).cgColor
// Colors of the gradient
let gradientColors = [coloTop, colorBottom] as CFArray
// Positioning of the gradient
let colorLocations: [CGFloat] = [0.7, 0.0]
// Gradient Object
let gradient = CGGradient.init(colorsSpace: CGColorSpaceCreateDeviceRGB(), colors: gradientColors, locations: colorLocations)!
line1.fill = Fill.fillWithLinearGradient(gradient, angle: 90.0)
line1.drawFilledEnabled = true
Got it working correctly! Thanks to @davigr 👍

@BrandonShega Hey! Can you please help me in adding the drop shadow under the line and circles as shown in the pictures you shared.

Hey @Aanchal96 , use my code to set shadow under the line and circles:-
func setChart(dataPoints: [String], values: [Double]) {
mChart.noDataText = "No data available!"
for i in 0..<values.count {
print("chart point : (values[i])")
let dataEntry = ChartDataEntry(x: Double(i), y: values[i])
dataEntries.append(dataEntry)
}
let line1 = LineChartDataSet(values: dataEntries, label: "Units Consumed")
line1.colors = [NSUIColor.blue]
line1.mode = .cubicBezier
line1.cubicIntensity = 0.2
    let gradient = getGradientFilling()
    line1.fill = Fill.fillWithLinearGradient(gradient, angle: 90.0)
    line1.drawFilledEnabled = true

    let data = LineChartData()
    data.addDataSet(line1)
    mChart.data = data
    mChart.setScaleEnabled(false)
    mChart.animate(xAxisDuration: 1.5)
    mChart.drawGridBackgroundEnabled = false
    mChart.xAxis.drawAxisLineEnabled = false
    mChart.xAxis.drawGridLinesEnabled = false
    mChart.leftAxis.drawAxisLineEnabled = false
    mChart.leftAxis.drawGridLinesEnabled = false
    mChart.rightAxis.drawAxisLineEnabled = false
    mChart.rightAxis.drawGridLinesEnabled = false
    mChart.legend.enabled = false
    mChart.xAxis.enabled = false
    mChart.leftAxis.enabled = false
    mChart.rightAxis.enabled = false
    mChart.xAxis.drawLabelsEnabled = false

}

/// Creating gradient for filling space under the line chart
private func getGradientFilling() -> CGGradient {
    // Setting fill gradient color
    let coloTop = UIColor(red: 141/255, green: 133/255, blue: 220/255, alpha: 1).cgColor
    let colorBottom = UIColor(red: 230/255, green: 155/255, blue: 210/255, alpha: 1).cgColor
    // Colors of the gradient
    let gradientColors = [coloTop, colorBottom] as CFArray
    // Positioning of the gradient
    let colorLocations: [CGFloat] = [0.7, 0.0]
    // Gradient Object
    return CGGradient.init(colorsSpace: CGColorSpaceCreateDeviceRGB(), colors: gradientColors, locations: colorLocations)!
}

Hey @Aanchal96 , use this code snippet to get shadow under lines and circles in your chart.
`func setChart(dataPoints: [String], values: [Double]) {
mChart.noDataText = "No data available!"
for i in 0..<values.count {
print("chart point : (values[i])")
let dataEntry = ChartDataEntry(x: Double(i), y: values[i])
dataEntries.append(dataEntry)
}
let line1 = LineChartDataSet(values: dataEntries, label: "Units Consumed")
line1.colors = [NSUIColor.blue]
line1.mode = .cubicBezier
line1.cubicIntensity = 0.2
    let gradient = getGradientFilling()
    line1.fill = Fill.fillWithLinearGradient(gradient, angle: 90.0)
    line1.drawFilledEnabled = true

    let data = LineChartData()
    data.addDataSet(line1)
    mChart.data = data
    mChart.setScaleEnabled(false)
    mChart.animate(xAxisDuration: 1.5)
    mChart.drawGridBackgroundEnabled = false
    mChart.xAxis.drawAxisLineEnabled = false
    mChart.xAxis.drawGridLinesEnabled = false
    mChart.leftAxis.drawAxisLineEnabled = false
    mChart.leftAxis.drawGridLinesEnabled = false
    mChart.rightAxis.drawAxisLineEnabled = false
    mChart.rightAxis.drawGridLinesEnabled = false
    mChart.legend.enabled = false
    mChart.xAxis.enabled = false
    mChart.leftAxis.enabled = false
    mChart.rightAxis.enabled = false
    mChart.xAxis.drawLabelsEnabled = false

}

func myinit(){
    progressBar.transform = progressBar.transform.scaledBy(x: 1, y: 3)

    mChart.noDataText = "No data available!"
    mChart.chartDescription?.text = "Energy Consumption"
    //yyyy-mm-dd
    getChartData(acct_id: "381201000", startDate: "2018-08-08", endDate: "2018-08-10")

}

/// Creating gradient for filling space under the line chart
private func getGradientFilling() -> CGGradient {
    // Setting fill gradient color
    let coloTop = UIColor(red: 141/255, green: 133/255, blue: 220/255, alpha: 1).cgColor
    let colorBottom = UIColor(red: 230/255, green: 155/255, blue: 210/255, alpha: 1).cgColor
    // Colors of the gradient
    let gradientColors = [coloTop, colorBottom] as CFArray
    // Positioning of the gradient
    let colorLocations: [CGFloat] = [0.7, 0.0]
    // Gradient Object
    return CGGradient.init(colorsSpace: CGColorSpaceCreateDeviceRGB(), colors: gradientColors, locations: colorLocations)!
}`

Hey @Aanchal96 , use this code snippet to get shadow under the line and circles in your graph.
`func setChart(dataPoints: [String], values: [Double]) {
mChart.noDataText = "No data available!"
for i in 0..<values.count {
print("chart point : (values[i])")
let dataEntry = ChartDataEntry(x: Double(i), y: values[i])
dataEntries.append(dataEntry)
}
let line1 = LineChartDataSet(values: dataEntries, label: "Units Consumed")
line1.colors = [NSUIColor.blue]
line1.mode = .cubicBezier
line1.cubicIntensity = 0.2
    let gradient = getGradientFilling()
    line1.fill = Fill.fillWithLinearGradient(gradient, angle: 90.0)
    line1.drawFilledEnabled = true

    let data = LineChartData()
    data.addDataSet(line1)
    mChart.data = data
    mChart.setScaleEnabled(false)
    mChart.animate(xAxisDuration: 1.5)
    mChart.drawGridBackgroundEnabled = false
    mChart.xAxis.drawAxisLineEnabled = false
    mChart.xAxis.drawGridLinesEnabled = false
    mChart.leftAxis.drawAxisLineEnabled = false
    mChart.leftAxis.drawGridLinesEnabled = false
    mChart.rightAxis.drawAxisLineEnabled = false
    mChart.rightAxis.drawGridLinesEnabled = false
    mChart.legend.enabled = false
    mChart.xAxis.enabled = false
    mChart.leftAxis.enabled = false
    mChart.rightAxis.enabled = false
    mChart.xAxis.drawLabelsEnabled = false

}

/// Creating gradient for filling space under the line chart
private func getGradientFilling() -> CGGradient {
    // Setting fill gradient color
    let coloTop = UIColor(red: 141/255, green: 133/255, blue: 220/255, alpha: 1).cgColor
    let colorBottom = UIColor(red: 230/255, green: 155/255, blue: 210/255, alpha: 1).cgColor
    // Colors of the gradient
    let gradientColors = [coloTop, colorBottom] as CFArray
    // Positioning of the gradient
    let colorLocations: [CGFloat] = [0.7, 0.0]
    // Gradient Object
    return CGGradient.init(colorsSpace: CGColorSpaceCreateDeviceRGB(), colors: gradientColors, locations: colorLocations)!
}`

Hey @Aanchal96 , use this code snippet to get shadow under the line and circles in your graph.
mChart.noDataText = "No data available!"
for i in 0..<values.count {
print("chart point : (values[i])")
let dataEntry = ChartDataEntry(x: Double(i), y: values[i])
dataEntries.append(dataEntry)
}
let line1 = LineChartDataSet(values: dataEntries, label: "Units Consumed")
line1.colors = [NSUIColor.blue]
line1.mode = .cubicBezier
line1.cubicIntensity = 0.2

    let gradient = getGradientFilling()
    line1.fill = Fill.fillWithLinearGradient(gradient, angle: 90.0)
    line1.drawFilledEnabled = true

    let data = LineChartData()
    data.addDataSet(line1)
    mChart.data = data
    mChart.setScaleEnabled(false)
    mChart.animate(xAxisDuration: 1.5)
    mChart.drawGridBackgroundEnabled = false
    mChart.xAxis.drawAxisLineEnabled = false
    mChart.xAxis.drawGridLinesEnabled = false
    mChart.leftAxis.drawAxisLineEnabled = false
    mChart.leftAxis.drawGridLinesEnabled = false
    mChart.rightAxis.drawAxisLineEnabled = false
    mChart.rightAxis.drawGridLinesEnabled = false
    mChart.legend.enabled = false
    mChart.xAxis.enabled = false
    mChart.leftAxis.enabled = false
    mChart.rightAxis.enabled = false
    mChart.xAxis.drawLabelsEnabled = false

}

/// Creating gradient for filling space under the line chart
private func getGradientFilling() -> CGGradient {
    // Setting fill gradient color
    let coloTop = UIColor(red: 141/255, green: 133/255, blue: 220/255, alpha: 1).cgColor
    let colorBottom = UIColor(red: 230/255, green: 155/255, blue: 210/255, alpha: 1).cgColor
    // Colors of the gradient
    let gradientColors = [coloTop, colorBottom] as CFArray
    // Positioning of the gradient
    let colorLocations: [CGFloat] = [0.7, 0.0]
    // Gradient Object
    return CGGradient.init(colorsSpace: CGColorSpaceCreateDeviceRGB(), colors: gradientColors, locations: colorLocations)!
}```

Hey @Aanchal96 , use this code snippet to get shadow under the line and circles in your graph.

func setChart(dataPoints: [String], values: [Double]) {
mChart.noDataText = "No data available!"
for i in 0..<values.count {
print("chart point : (values[i])")
let dataEntry = ChartDataEntry(x: Double(i), y: values[i])
dataEntries.append(dataEntry)
}
let line1 = LineChartDataSet(values: dataEntries, label: "Units Consumed")
line1.colors = [NSUIColor.blue]
line1.mode = .cubicBezier
line1.cubicIntensity = 0.2

    let gradient = getGradientFilling()
    line1.fill = Fill.fillWithLinearGradient(gradient, angle: 90.0)
    line1.drawFilledEnabled = true

    let data = LineChartData()
    data.addDataSet(line1)
    mChart.data = data
    mChart.setScaleEnabled(false)
    mChart.animate(xAxisDuration: 1.5)
    mChart.drawGridBackgroundEnabled = false
    mChart.xAxis.drawAxisLineEnabled = false
    mChart.xAxis.drawGridLinesEnabled = false
    mChart.leftAxis.drawAxisLineEnabled = false
    mChart.leftAxis.drawGridLinesEnabled = false
    mChart.rightAxis.drawAxisLineEnabled = false
    mChart.rightAxis.drawGridLinesEnabled = false
    mChart.legend.enabled = false
    mChart.xAxis.enabled = false
    mChart.leftAxis.enabled = false
    mChart.rightAxis.enabled = false
    mChart.xAxis.drawLabelsEnabled = false

}

/// Creating gradient for filling space under the line chart
private func getGradientFilling() -> CGGradient {
    // Setting fill gradient color
    let coloTop = UIColor(red: 141/255, green: 133/255, blue: 220/255, alpha: 1).cgColor
    let colorBottom = UIColor(red: 230/255, green: 155/255, blue: 210/255, alpha: 1).cgColor
    // Colors of the gradient
    let gradientColors = [coloTop, colorBottom] as CFArray
    // Positioning of the gradient
    let colorLocations: [CGFloat] = [0.7, 0.0]
    // Gradient Object
    return CGGradient.init(colorsSpace: CGColorSpaceCreateDeviceRGB(), colors: gradientColors, locations: colorLocations)!
}

I have a line chart and have added a linear gradient fill below the line that goes from white to light purple using the suggested code in this post. The line chart view has a dark purple background color. It seems that my fill gradient is not opaque and instead is showing a semi-transparent over the purple background as evidenced here with the top of the line chart showing a shade of purple instead of white. Here's a photo - https://imgur.com/a/Khi3jqz
How can I make this gradient totally opaque?
Here's my code so far:
// Create Gradient for fill under the line
private func getGradientFilling() -> CGGradient {
// Setting fill gradient
let colorTop = UIColor.white.cgColor
let colorBottom = UIColor.lightPlum.cgColor
//Colors of the gradient
let gradientColors = [colorTop, colorBottom] as CFArray
// Positioning of the gradient
let colorLocations: [CGFloat] = [0.5, 0.0]
// Gradient Object
return CGGradient.init(colorsSpace: CGColorSpaceCreateDeviceRGB(), colors: gradientColors, locations: colorLocations)!
}
func setupChartView(values: [Double]) {
chartView.noDataText = "No data available"
for i in 0..<values.count {
print("chart point : (values[i])")
let dataEntry = ChartDataEntry(x: Double(i), y: values[i])
dataEntries.append(dataEntry)
}
let line1 = LineChartDataSet(values: dataEntries, label: nil)
line1.colors = [NSUIColor.white]
line1.mode = .cubicBezier
line1.drawCirclesEnabled = false
line1.drawHorizontalHighlightIndicatorEnabled = false
line1.drawVerticalHighlightIndicatorEnabled = false
line1.cubicIntensity = 0.2
line1.lineWidth = 2.0
line1.valueTextColor = UIColor.white
line1.valueFont = UIFont.systemFont(ofSize: 16.0)
let gradient = getGradientFilling()
line1.fill = Fill.fillWithLinearGradient(gradient, angle: 90.0)
line1.drawFilledEnabled = true

let data = LineChartData()
data.addDataSet(line1)
chartView.data = data
chartView.setScaleEnabled(false)
chartView.drawGridBackgroundEnabled = false
chartView.legend.enabled = false
chartView.minOffset = 0
chartView.backgroundColor = UIColor.plum
chartView.isOpaque = true

chartView.xAxis.drawAxisLineEnabled = false
chartView.xAxis.gridColor = #colorLiteral(red: 0.7215686275, green: 0.5764705882, blue: 0.7568627451, alpha: 1)
chartView.xAxis.gridLineWidth = 0.75
chartView.xAxis.drawGridLinesEnabled = true
chartView.xAxis.granularity = 1.5
chartView.xAxis.enabled = true
chartView.xAxis.drawLabelsEnabled = false

chartView.leftAxis.drawAxisLineEnabled = false
chartView.leftAxis.drawGridLinesEnabled = false
chartView.leftAxis.enabled = false

chartView.rightAxis.drawAxisLineEnabled = false
chartView.rightAxis.drawGridLinesEnabled = false
chartView.rightAxis.enabled = false

}

@abhishekgautam101 is this supposed to create a drop shadow? I copied your code but it justs created a basic gradient - not a drop shadow. Are drop shadows supported?

@danielgindi Hi daniel I need some help regarding the filling gradient color for the linecharts. I am struggling hard to how to fill gradient colors for the different data sets as shown in the below screenshot. Can you please provide me the resolution asap.

@pradweep you got any solution to your problem?


issue #92 - Add support for non-public beans and setter methods

This PR includes the changes for issue #92 and enables access to non-public classes, non-public constructors, non-public setters and non-public inherited setters

Thanks for this PR, but could you please use our code formatter which I have posted in first comment and reformat all files? It would be much easier to avoid some irrelevant changes in future like different numbers of tabs or spaces in line, imports sorting, etc.

I have committed the fix for the imports and the formatting, seems like netbeans does not like the eclipse formatter.
Concerning the extended findSetter-method. The original one used getMethods which only returns public methods, but all available from all classes extended by the class. Using getDeclared method only returns the ones directly declared by the class itself. Having a class extending another, the finder would fail, even in the case of public setters in classes along the path. That's why I navigate through the whole class hierarchy to find an appropriate setter.

Other than those minor comments its great!

The formatting issue should be fixed as of commit 04dc0f7.
Concerning the string.equals() comment, I don't get what you mean. I know StringUtils.equals() from Apache Commons lang, but that would mean an additional dependency I avoided.
Additionally, that CustomerStringProtectedBean is 	basically a copy of the already existing CustomerStringBean class I reused and just changed the access modifiers.

@fseifert  yes it would be horrendous to fetch another dependency just for that. Just copy it or make your own. But since this is for testing I suggest simply using the assertEquals methods that is also used in the other unit tests. If CustomerStringBean is just as verbose it would be awesome to get that cleaned up as well.
formatting- ah yes perhaps I was up too late reading code :)

I have added a basic String.equals() method to TestUtils class and use it in both Bean classes.

You are right, removed that piece of code

Great! many thanks for the contribution. Do let me know if there is more stuff you want to get involved in. I no longer code Java (for the last 8 years or so) so my time here is scarse. It would be great to get new energy onboard. Plenty to do.


test: Cypress - added @tag.excludeForAirgap, @tag.Templates tags

Description

Added excludeForAirgap tgs

Type of change

Chore (housekeeping or task changes that don't impact user perception)

Testing

running tbp
/ok-to-test<EMAIL_ADDRESS>
How Has This Been Tested?

[ ] Manual
[ ] Cypress

Checklist:
Dev activity

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

QA activity:

[ ] Speedbreak features have been covered
[ ] Test plan covers all impacted features and areas of interest
[ ] Test plan has been peer reviewed by project stakeholders and other QA members
[ ] Manually tested functionality on DP
[ ] We had an implementation alignment call with stakeholders post QA Round 2
[ ] Cypress test cases have been added and approved by SDET/manual QA
[ ] Added Test Plan Approved label after Cypress tests were reviewed
[ ] Added Test Plan Approved label after JUnit tests were reviewed

Summary by CodeRabbit

Test Enhancements

Improved test descriptions and added relevant tags for better categorization and filtering across various test suites.
Consolidated test logic and descriptions for clarity and coherence in test suites.

Bug Fixes

Updated test cases to reflect accurate scenarios for bugs and feature testing.
Adjusted test sequences and assertions for enhanced reliability and coverage.

Refactor

Restructured test suites for a more logical flow and clearer objectives.
Enhanced test setup steps and assertions for comprehensive validation.

Chores

Implemented a new tagging functionality for organizing test suites and cases.
Added new tags to the tagging system for improved test management.

/ok-to-test<EMAIL_ADDRESS>

/ok-to-test<EMAIL_ADDRESS>@tag.Templates"

/ok-to-test

/ok-to-test<EMAIL_ADDRESS>

TBP run with new script change,  tags is been added as a step: https://github.com/appsmithorg/appsmith/actions/runs/7329248481


[Feature] bind-address 支持绑定到多个地址

Verify steps

[X]  我已经在 Issue Tracker 中找过我要提出的请求 I have searched on the issue tracker for a related feature request.
[X]  我已经仔细看过 Documentation 并无法找到这个功能 I have read the documentation and was unable to solve the issue.

Description
希望能 bind-address: "<IP_ADDRESS>/24, <IP_ADDRESS>/24"
Possible Solution
No response

设置为 bind-address: "*" 不就好了嘛

防火墙禁止外部连接不就行了


[Gemini] Use async stream to prefetch and h2d data moving

📌 Checklist before creating the PR

[ ] I have created an issue for this PR for traceability
[ ] The title follows the standard format: [doc/gemini/tensor/...]: A concise description
[ ] I have added relevant tags if possible for us to better distinguish different PRs
[ ] I have installed pre-commit: pip install pre-commit && pre-commit install

🚨 Issue number

Link this PR to your issue with words like fixed to automatically close the linked issue upon merge
e.g. fixed #1234, closed #1234, resolved #1234

📝 What does this PR do?

Summarize your work here.
if you have any plots/diagrams/screenshots/tables, please attach them here.

💥 Checklist before requesting a review

[ ] I have linked my PR to an issue (instruction)
[ ] My issue clearly describes the problem/feature/proposal, with diagrams/charts/table/code if possible
[ ] I have performed a self-review of my code
[ ] I have added thorough tests.
[ ] I have added docstrings for all the functions/methods I implemented

⭐ Do you enjoy contributing to Colossal-AI?

[ ] 🌝 Yes, I do.
[ ] 🌚 No, I don't.

Tell us more if you don't enjoy contributing to Colossal-AI.

Sync position : line where work.wait() sync nccl stream with default stream (and nccl stream sync with prefetch stream in this pr)


Additional information about the fields in the list

Hi !
In the field listing could have complementary information that the field besides being Decimal which is also Computed.
It would make it easier to see field by field.
Improvement that is not affecting the use of the plugin.
thanks!

Example:
Decimal (Computed)

Hi. Done.

I had referred to the listing by counting all fields for the form that creates the field. As attachment.

But taking this example that has not understood how it would do to present: Some field (Integer, Computed)

Oh, my bad :)
I think it is not quite good to override the default views. But you can do it in your Redmine installation.
In app/views/custom_fields/_index.html.erb
add <%=l(:field_is_computed)%>	 after <%=l(:field_field_format)%>
add <%= l(custom_field.format.label) %>	 after <%= checked_image custom_field.is_computed? %>
It would be looks like this:

Or you can replace  <%= l(custom_field.format.label) %>	 by

  <%= l(custom_field.format.label) %>
  <% if custom_field.is_computed? %>
    (<%= l(:field_is_computed) %>)
  <% end %>

The result would be like this:

That's it. It works!!
Maintenance help
Thanks a lot!


tags not syncing

I am storing my notes as plain text files, so as to permit Spotlight integration.  That's always worked, up until a few days ago. Now, when I enter a tag via NValt, it won't appear in the "tags" column in the Finder, or in the file's "Get Info" window, or in LEAP.  Similarly, tags entered via Finder or LEAP aren't appearing in NValt.

nvALT uses OpenMeta for tagging while Spotlight/Finder use Apple Tags.  Leap is a great way to bridge de gap as it syncs the two standards.  The only info I can provide here is that for me it works as expected using Yosemite 10.10.5, Leap 3.6.2 and nvALT 2.2b(111).

Thanks for explaining that - I'd read about the two standards, but not really understood what was going on. My set up was working too, up until recently.  I am using OS X 10.11.3, but the same version of Leap and nvALT.  I've done a bit more experimenting, and think I have isolated the problem.
If I create and tag a note in nvALT, it shows up in LEAP.  Once I can see it in LEAP, I can also see it in a Finder window. So, if I understand correctly, what's happening is that LEAP is reading the openmeta tag from nvALT, then copying it to the Apple tag slot or bin or whatever the right term is.
If I create and tag a text document using TextEdit, say, in the directory that I'm using for nvALT, the file shows up but not the tag, until I go into LEAP and highlight the file - then the tag does show up.  This is what you mean by LEAP bridging the two.
The problem seems to arise when I add or modify a tag in LEAP. Tag modifications in LEAP aren't showing up in nvALT. It seems that LEAP will create tags that nvALT can see, but not modify or delete them.  Is that possible?
Just to be clear, here are the steps I'm taking:

create a text file and tag it using the Apple OS, e.g. TextEdit, in the folder nvALT is using. The file appears in nvALT, but not the tag.
highlight the file in LEAP; the tag appears in nvALT.
Delete / modify the tag in LEAP; the tag does not disappear / change in nvALT.

I wonder if you see the same behaviour, in 10.10.5.

Leap's transition feature is one way. It will detect the older OpenMeta
tags and transfer them, but doesn't sync new tags back to OpenMeta.
Switching nvALT to Finder tags was done in development, but too many
edge cases arose (the original Notational Velocity tagging system left a
lot to be desired) to make that feature a public release. Since we're
working on a full replacement, nvALT probably won't see an update to the
new tag format.
-Brett
On 10 Mar 2016, at 8:51, anddlist wrote:

Thanks for explaining that - I'd read about the two standards, but not
really understood what was going on. My set up was working too, up
until recently.  I am using OS X 10.11.3, but the same version of Leap
and nvALT.  I've done a bit more experimenting, and think I have
isolated the problem.
If I create and tag a note in nvALT, it shows up in LEAP.  Once I can
see it in LEAP, I can also see it in a Finder window. So, if I
understand correctly, what's happening is that LEAP is reading the
openmeta tag from nvALT, then copying it to the Apple tag slot or bin
or whatever the right term is.
If I create and tag a text document using TextEdit, say, in the
directory that I'm using for nvALT, the file shows up but not the tag,
until I go into LEAP and highlight the file - then the tag does show
up.  This is what you mean by LEAP bridging the two.
The problem seems to arise when I add or modify a tag in LEAP. Tag
modifications in LEAP aren't showing up in nvALT. It seems that LEAP
will create tags that nvALT can see, but not modify or delete them.
Is that possible?
Just to be clear, here are the steps I'm taking:

create a text file and tag it using the Apple OS, e.g. TextEdit, in
the folder nvALT is using. The file appears in nvALT, but not the tag.
highlight the file in LEAP; the tag appears in nvALT.
Delete / modify the tag in LEAP; the tag does not disappear /
change in nvALT.

I wonder if you see the same behaviour, in 10.10.5.

Reply to this email directly or view it on GitHub:
https://github.com/ttscoff/nv/issues/364#issuecomment-194884321

I see, thanks.  Looking forward to seeing this "full replacement".


How I can read comment

I have a yaml file like this:
# document comment

# Update doc
update_frequency_sec: 120
# Thread doc
num_threads: 1
# List of data source
data_sources:
  - news.google.com
  - finance.yahoo.com
  - www.msn.com

I did this:
fn main() {
    let file = std::fs::File::open("config.yaml").expect("File not found !");
    let scrap_file: serde_yaml::Value = serde_yaml::from_reader(file).expect("Could not read yaml");
    println!("{:?}", scrap_file);
}

I want to read the comments of the file to generate documentation. But I don't find a way how to read it.
Could you help me?

Reading of comments is not supported with serde_yaml. The underlying rust_yaml library doesn't read comments either.

You would need to use a different library to read the comments.


handling notification using global script

closes: https://github.com/EnsembleUI/ensemble/issues/1289
Getting navigateScreen payload of handleNotification from the global script whose path is specified in environment variable.

okay

@snehmehta please merge and close if you have tested the Tin changes, we need to close PRs quickly after they have been approved


Solve Pausing Desync

For New Contributors
How to contribute
Description

When a pause/unpause command happens the server and client campaign times become desynced.
Find a way to incorporate campaign time with the pause/unpause that handle desync.
Intended Design

Specifically add CampaignTime to SetTimeControlMode. Handle the differences as needed.
Location

Create a new branch based from develop
Related Issues

N/A
Requirements

N/A
Additional information

N/A
Definition of Done

[ ] Class level comments exist for all new classes.
[ ] XUnit tests exist for every method that does not require the game to be ran.

This might not be an issue if we also include positions with any party events

This shouldn't be an issue as long as we control most everything from the server


feat: tar-stream library instead of tar-js (#360)

Using the tar-stream library which creates tar as a stream.

Does this work in a browser?

No, this is just a fix for nodeJS to overcome size limitation.

You can make work tar-stream in a browser, but the NodeJs APIs (Buffer etc) need to by polyfilled. I have done it here: https://github.com/rsksmart/rif-storage-js/blob/master/src/swarm-mini/index.ts
But not sure if it is good idea. It is quite painful.

Oh right, exactly for this reason I pushed actually to implement streaming support, but it got never merged :-(
There is draft PR for that here: https://github.com/ethersphere/bee-js/pull/372

Using a polyfill for Node structures could be a solution, but I think it's more efficient to use browser streams:
https://developer.mozilla.org/en-US/docs/Web/API/Streams_API
It can work with Axios as well.

From previous experience the Streams API have several issues regarding compatibility, ease of use and maintenance. Also using tar can be considered as a workaround from the Swarm API perspective to allow working with multiple folders and files.
Personally I think it would be more interesting and future-proof to use the Swarm chunk API as an alternative with the help of external projects (bmt-js, mantaray-js) as it matches better the semantics of the problem space and thus could open up new directions, provide better control and create optimization opportunities. But that solution may be a separate library in itself and thus outside of the scope of bee-js.


Tests not working correct

The tests, showing some problems:
Running tool: /usr/local/go/bin/go test -timeout 1m30s -run ^TestCronExpression_NextTime$ **/chrono -v

=== RUN   TestCronExpression_NextTime
    **/chrono/cron_test.go:634: got: 2021-03-16 15:10:18 +0100 CET expected: 2021-03-16 15:04:17 +0000 UTC
    **/chrono/cron_test.go:634: got: 2021-03-16 15:10:21 +0100 CET expected: 2021-03-16 15:04:20 +0000 UTC
    **/chrono/cron_test.go:634: got: 2021-03-16 15:10:24 +0100 CET expected: 2021-03-16 15:04:23 +0000 UTC
    **/chrono/cron_test.go:634: got: 2021-03-16 15:10:27 +0100 CET expected: 2021-03-16 15:04:26 +0000 UTC
    **/chrono/cron_test.go:634: got: 2021-03-16 15:10:30 +0100 CET expected: 2021-03-16 15:04:29 +0000 UTC
    **/chrono/cron_test.go:634: got: 2021-03-16 15:10:33 +0100 CET expected: 2021-03-16 15:04:32 +0000 UTC
--- FAIL: TestCronExpression_NextTime (0.00s)
FAIL
FAIL	github.com/Dexus-Forks/chrono	0.005s

Thank you for reporting this, I'm gonna investigate what causes this.
Which go version do you use?

Always the latest, 1.17.*
Von meinem iPhone gesendet

Am 11.12.2021 um 17:46 schrieb Burak Köken @.***>:

Thank you for reporting this, I'm gonna investigate what causes this.
Which go version do you use?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.

I could not reproduce this behavior. However, I'm gonna add go 1.17.5 version into .travis.yaml to reproduce in the pipeline.
I'm using the go1.17.5
burakkoken@Burak-MacBook-Pro chrono % go version
go version go1.17.5 darwin/arm64

The execution result is PASS
burakkoken@Burak-MacBook-Pro chrono % go test -timeout 1m30s -run ^TestCronExpression_NextTime$
PASS
ok      github.com/procyon-projects/chrono      0.362s

As you can see, the test executions and build in the travis pipeline are completed successfully.
I have tried it on both my local and travis environment, everything works as expected.
This might be a issue with your local environment. @Dexus

Hi @Dexus, the tests are executed properly in your local environment?

Note: This issue will be closed within 7 days due to inactivity. please give needed information.


way too much otel data is getting created when querying a list of objects in gql

https://ui.honeycomb.io/sil-language-forge/environments/test/datasets/lexbox-api/result/b6AJUv63DEQ/trace/vwdV1NQigSY?fields[]=c_name&fields[]=c_service.name&fields[]=c_http.url&span=af876aeafa0a0bd3
each field of each object in a result set is getting it's own activity, on a query with 23k users thats 23k * number of fields on a user

should be fixed in 2cbe4d134b2c1a28beaa2e09f13472f14e895d1b


Bryanzab/update references

Overview/Summary
Updated "References" for each other to include the URLs that are available in the old alertdetails.md.
Created the alerts.yaml for RecoveryVaults.
This PR fixes/adds/changes/removes

Adds "References" to each alert and added URLs.

Breaking Changes
No breaking changes.
As part of this Pull Request I have

[ X] Read the Contribution Guide and ensured this PR is compliant with the guide
[ X] Checked for duplicate Pull Requests
[ ] Associated it with relevant GitHub Issues or ADO Work Items (Internal Only)
[X ] Ensured my code/branch is up-to-date with the latest changes in the main branch
[ ] Ensured PR tests are passing
[ ] Updated relevant and associated documentation (e.g. Contribution Guide, Docs etc.)

@JoeyBarnes Not sure why there's a conflict the files match.

@bzabber - Had made some changes last night that automatically seeded the alerts.yaml files with rules based on my MetricAlertRules analysis, so there was a small conflict.  I have resolve it and will merge your changes.


Nerdfont icons not showing

Describe Your Issue
A lot of the icons are not showing

Have you tried to debug or fix it?
Setting the glyphs one by one, using nerd-fonts cheatsheet solved, by my understanding was that it should come by default on Nerd-Fonts
Environment Information
This information will help us understand your configuration.

What version of ZSH are you using? Zsh 5.7.1 (x86_64-apple-darwin17.7.0)
Do you use a ZSH framework (e.g., Oh-My-ZSH, Antigen)? Prezto
How did you install P9k (cloning the repo, by tarball, a package from your OS, etc.,)? Prezto theme
What version of P9k are you using?
Which terminal emulator do you use? iTerm2

Issues with Fonts & Icons
You may delete this section if your issue is not font / icon related.

Which font do you use? I tried with a lot of Nerd-Fonts (Currently FuraCode Nerd Font
Which font configuration mode are you using? nerdfont-complete
Please share the contents of $P9k/debug/font-issues.zsh.
===== Font debugging =====
You are using iTerm2 with Font FiraMonoForPowerline-Regular 12

Your font settings seem to be all right. If you still have issues,
it is more likely to be a font issue than a Powerlevel9k related one.

If this is an icon problem, does the output of $ get_icon_names look correct?
No, lot of icons missing. Screenshot attached

Which icon on the screenshot do you consider to be not showing?

All OS icons for instance. My understanding was that it shows a text as fallback for not finding the icon.
Home and folder icons are missing as well
There are others, not on screen, but I'm not worried about then, since I'm not planning on putting them on my config

Just making a guess. You are expecting POWERLEVEL9K_ANDROID_ICON in the output of get_icon_names to show as Android logo but you are seeing And instead. Is this correct?
If so, try running POWERLEVEL9K_MODE=nerdfont-complete zsh and then typing get_icon_names. If this displays the icons you want, you need to add POWERLEVEL9K_MODE=nerdfont-complete at the top of your ~/.zshrc. Or you could switch to Powerlevel10k, which allows you to define your options anywhere in the configuration file. It's also much faster.

Running POWERLEVEL9K_MODE=nerdfont-complete zsh messed up all icons

My zshrc

Running POWERLEVEL9K_MODE=nerdfont-complete zsh messed up all icons

This means your font doesn't support these icons. If you want these icons in your prompt, you need to install a patched font from Nerd Fonts.
P.S.
Powerlevel10k is bundled with zprezto just like Powerlevel9k. You can switch by changing "powerlevel9k" in ~/.zpreztorc with "powerlevel10k". These themes are compatible, so you won't need to change any configuration. 10k is just faster. You can always switch back.

Hm, somehow I got it to work.
Apparently, it was the POWERLEVEL9K_MODE=nerdfont-complete placement.
Changing to PowerLevel10k made it work
Many thanks


Typo: Profiler zone in butteraugli wrong

https://github.com/libjxl/libjxl/blob/26ffd2c9641faabd14a739250d8028b528b48a36/lib/jxl/butteraugli/butteraugli.cc#L129-L130

thanks


Fix autoconnect issues

Fixes

infinite loading spinner on connect wallet button when wallet is locked or  connection to app is closed
network switch popup on page load when wallet is connected to different network than it was previously connected
removed autoconnect timeout - don't need it

/release-pr