text:
Using mbstring (improve performance on localhost)

When there is a large amount of CSS content, the preg_replace function freezes apache on localhost (Xampp or Wamp)

@Krinkle
Please response to my PR

@ramtin2025 Thanks for the pull request! And sorry about CSSJanus freezing your server...
This library is used as part of ResourceLoader in production at Wikimedia Foundation where it regularly processes pretty large bodies of CSS on the cluster serving Wikipedia.
Contributions (and especially performance improvements) are very welcome. CSSJanus is used in the critical path for rendering of stylesheets, and thus performance matters a lot there.
Do you have any benchmarks or numbers from your experience? I'd also like to verify these findings and run them against some of our own data sets. (I should probably add a proper benchmark to this repo.)
While ResourceLoader and CSSJanus are the critical path, it is heavily cached. There are other, more "hot" code paths in the MediaWiki software that I think could also benefit from this. Given most of those other code paths are older and more mature than CSSJanus, I'm somewhat surprised that there are 0 matches for  mb_eregi_replace in our projects. (Might be a reason for that?)
PS: Thanks for updating the commit to match the coding style, much appreciated!

@Krinkle
Thanks for your response. To understand what is the issue, please check the following link which has similar issue to us :
https://stackoverflow.com/questions/7620910/regexp-in-preg-match-function-returning-browser-error
This problem is only shown on Windows and it will be reduced the performance issue by changing mpm_winnt_module to handle bigger file size but it's not the proper solution to solve this issue completely ( this solution still doesn't work for our project size "500K").
The mb_eregi_replace worked in our project well as I sent in my PR.
We are going to use "cssjanus" in an opensource project and we would like to use your GitHub rep directly.
Regards

Thank you @Krinkle !
Please use patterns without any "/" and "i" in mb_eregi_replace method. There isn't any difference between preg_replace and mb_eregi_replace in result.
$css = mb_eregi_replace(trim(rtrim(self::$patterns['right'], 'i'), '/'), 'left', $css);

Dear @Krinkle,
Did you checked @ramtin2025 and @Danoosh comments?
We're waiting for your response
Thanks

@Krinkle
We're still waiting for your response.
Thanks

@ramtin2025 As mentioned, I'm very interested in improving the performance of CSSJanus, and I can make some time to review and verify your changes and findings. However I'd prefer if you could provide a benchmark that shows how this improves performance?
After searching on the web, I found no indication that mb_ereg_replace is known to perform better than preg_replace (either in speed, or in memory usage).
I created a basic benchmark of my own at https://gist.github.com/Krinkle/bd4fc4f361794045ab4fce419b2c9004 and found that:
On a MacBook Pro running PHP 5.6, mb_regex is on average about 0.1x (10-20%) faster, but no difference in memory usage.
Trying in other PHP versions at https://3v4l.org/JB78W, however, I found that:

PHP 7.2.x: preg_reg 10x faster.
PHP 7.1.x: preg_reg 5-10x faster.
PHP 7.0.x: preg_reg 6-8x faster.
HHVM 3.21: preg_reg 6x faster.
HHVM 3.20: preg_reg 6-7x faster.
HHVM 3.18: preg_reg 6-7x faster.
PHP 5.6: mb_regex 0.3x faster.

Hello @Krinkle,
You're right. It's not better than preg_replace you've used, but, the mb_ereg_replace does work well on Windows OS and windows-related virtual servers such as WAMP or XAMPP where the preg_replace freeze these servers for big files. To test it, you can convert a 500kb CSS file on Windows OS by WAMP/XAMPP using css-Janus.
cheers,

Hi @Krinkle
We want to use "php-CssJanus" in PrestaShop and as @mehrshadz said, it does not work well on Windows OS and causes Apache to freeze. That's why we have not been able to place "php-CssJanus"in the released versions of PrestaShop yet.

Thanks. I'll try to reproduce it and use this patch to find an adequate solution that also addresses performance concerns on other platforms and PHP versions.
However, I don't have access to a Windows development environment at the moment so this may take some time unfortunately.
Note to self:

(2006) https://bugs.php.net/bug.php?id=38728
(2010) http://killtheradio.net/tricks-hacks/phps-preg-functions-dont-release-memory/
(2012) https://stackoverflow.com/a/33329959/319266

Hello @Krinkle ,
preg_replace uses PCRE for modifying patterns:
https://secure.php.net/manual/en/reference.pcre.pattern.modifiers.php
https://secure.php.net/manual/en/function.preg-replace.php
It seems regex-pcre doesn't support Windows as well:
https://stackoverflow.com/questions/21979694/regex-pcre-on-windows
May be useful ;)

Closing in favour of https://github.com/cssjanus/php-cssjanus/pull/19. Please report to https://github.com/cssjanus/php-cssjanus/issues/14 or create a new issue if problems on PHP 7 persist after the next release.

authors: Danoosh Krinkle mehrshadz ramtin2025

repo: cssjanus/php-cssjanus


text:
KeyError: 'ReDet is not in the models registry'

i tried to train datasets but got
Traceback (most recent call last):   File "train.py", line 95, in <module>     main()   File "train.py", line 73, in main     cfg.model, train_cfg=cfg.train_cfg, test_cfg=cfg.test_cfg)   File "/path/mmdetection/mmdet/models/builder.py", line 58, in build_detector     cfg, default_args=dict(train_cfg=train_cfg, test_cfg=test_cfg))   File "/usr/local/lib/python3.6/dist-packages/mmcv/utils/registry.py", line 210, in build     return self.build_func(*args, **kwargs, registry=self)   File "/usr/local/lib/python3.6/dist-packages/mmcv/cnn/builder.py", line 26, in build_model_from_cfg     return build_from_cfg(cfg, registry, default_args)   File "/usr/local/lib/python3.6/dist-packages/mmcv/utils/registry.py", line 44, in build_from_cfg     f'{obj_type} is not in the {registry.name} registry') KeyError: 'ReDet is not in the models registry'

Make sure you have installed ReDet
the code path should be /path/ReDet rather than /path/mmdetection

yes you are right .. the problem with me was in installing ReDet

source: gharchive/issue

authors: SamMohel csuhan

repo: csuhan/ReDet

license_type: permissive

license_source: github-api


text:
Switch axes order of TelescopeFrame / NominalFrame for CameraDisplay / CameraGeometry

Today I got an email asking about plotting cameras at the telescope positions and the showers then not matching up with the impact position.
While the email example I got uses CameraFrame and not TelescopeFrame or NominalFrame, this also does not work using those frames, it seems necessary to swap x / y for those frames.
Example with a 10 TeV shower on La Palma only showing the 4 LSTs:
from ctapipe.visualization import CameraDisplay
from ctapipe.coordinates import TelescopeFrame
from ctapipe.io import EventSource
from ctapipe.calib import CameraCalibrator
import matplotlib.pyplot as plt
import astropy.units as u
import numpy as np

# only the 4 LSTs
allowed_tels = [1, 2, 3, 4]

source = EventSource(
    './Data/sim_telarray/cta-prod5-lapalma/0.0deg/Data/gamma_20deg_180deg_run7___cta-prod5-lapalma_desert-2158m-LaPalma-dark.simtel.zst',
    allowed_tels=allowed_tels,
)

subarray = source.subarray
calib = CameraCalibrator(subarray)

positions = u.Quantity([subarray.positions[tel_id] for tel_id in allowed_tels]).to_value(u.m)

# get relative extent to normalize coordiantes to [0, 1]
min_x, min_y, min_z = positions.min(axis=0)
max_x, max_y, max_z = positions.max(axis=0)

fig = plt.figure(figsize=(10, 10))

ax = fig.add_subplot(1, 1, 1)
ax.scatter(positions[:, 0], positions[:, 1], s=10, zorder=10, label='Telescope Positions')
impact, = ax.plot([], [], 'ro', ms=15, label='impact')
ax.set_aspect(1)
ax.legend()

size = 100
axs = [
    ax.inset_axes([x - size / 2, y - size / 2, size, size], transform=ax.transData)
    for x, y, _ in positions
]

ax.set_xlim(min_x - size / 2, max_x + size / 2)
ax.set_ylim(min_y - size / 2, max_y + size / 2)

disps = []
for i, ax in enumerate(axs):
    geom = subarray.tel[i + 1].camera.geometry

    # transform to telescope frame
    geom_tel = geom.transform_to(TelescopeFrame())

    disps.append(CameraDisplay(geom_tel, ax=ax, cmap='inferno'))

    # remove any labels / axis / ticks
    ax.set_axis_off()
    ax.set_xticks([])
    ax.set_xlabel('')
    ax.set_ylabel('')

fig.tight_layout(pad=0)
fig.show()

for event in source:
    calib(event)
    shower = event.simulation.shower
    impact.set_data(shower.core_x.to_value(u.m), shower.core_y.to_value(u.m))
    for tel_id, dl1 in event.dl1.tel.items():
        disps[tel_id - 1].image = dl1.image

    plt.savefig('shower_image.png')
    break

Current master:

With assigning switching the attribution of fov_lon / fov_lat to x / y:

I am not yet sure how I would approach solving this. What I did to produce the image is certainly a hack and not the actual implementation we should use.

Ah, the plot also does not work in EngineeringCameraFrame:

Why using a frame in the sky to show something on the ground?
As far as I know, the camera frame should be already fixed as the ground frame in corsika, so I think we should limit ourselves to fix that and not the Telescope/Nominal frames
I think this problem could be fixed by checking if (I don't recall now) our ground frame is rotated wrt one from corsika

The CameraFrame  is  aligned with Corsika ground frame if and only if the telescope  points to zenith = 0°, az = 0°, and you are right.
This plot should only work in this condition.

Not sure also why we should support this kind of visualization when we already have e.g. ArrayDisplay.set_line_hillas.
This plot is showing essentially the same information (the direction of the image as projected on the ground) plus other information that would be clearer as shown e.g. in the plots used in PR #1408 which would be independent of pointing positions

Because it looks cool.
But you were right, the issue is just the azimuth. My file used 180d and the CameraFrame is only aligned when azimuth is 0d.
You can however rotate the camera by azimuth like so:
from ctapipe.visualization import CameraDisplay
from ctapipe.coordinates import TelescopeFrame, EngineeringCameraFrame
from ctapipe.io import EventSource
from ctapipe.calib import CameraCalibrator
import matplotlib.pyplot as plt
import astropy.units as u
import numpy as np
from copy import deepcopy

# only the 4 LSTs
allowed_tels = [1, 2, 3, 4]

source = EventSource(
    './Data/sim_telarray/cta-prod5-lapalma/0.0deg/Data/gamma_20deg_180deg_run7___cta-prod5-lapalma_desert-2158m-LaPalma-dark.simtel.zst',
    allowed_tels=allowed_tels,
)

subarray = source.subarray
calib = CameraCalibrator(subarray)
event = next(iter(source))
calib(event)

positions = u.Quantity([subarray.positions[tel_id] for tel_id in allowed_tels]).to_value(u.m)

# get relative extent to normalize coordiantes to [0, 1]
min_x, min_y, min_z = positions.min(axis=0)
max_x, max_y, max_z = positions.max(axis=0)

fig = plt.figure(figsize=(10, 10))

ax = fig.add_subplot(1, 1, 1)
ax.scatter(positions[:, 0], positions[:, 1], s=10, zorder=10, label='Telescope Positions')
impact, = ax.plot([], [], 'ro', ms=15, label='impact')
ax.set_aspect(1)
ax.legend()

size = 100
axs = [
    ax.inset_axes([x - size / 2, y - size / 2, size, size], transform=ax.transData)
    for x, y, _ in positions
]

ax.set_xlim(min_x - size / 2, max_x + size / 2)
ax.set_ylim(min_y - size / 2, max_y + size / 2)

disps = []
for i, ax in enumerate(axs):

    geom = deepcopy(subarray.tel[i + 1].camera.geometry)
    print(geom.rotate(event.pointing.array_azimuth))

    # transform to telescope frame
    # geom_tel = geom.transform_to(EngineeringCameraFrame())

    disps.append(CameraDisplay(geom, ax=ax, cmap='inferno'))

    # remove any labels / axis / ticks
    ax.set_axis_off()
    ax.set_xticks([])
    ax.set_xlabel('')
    ax.set_ylabel('')

fig.tight_layout(pad=0)
fig.show()

shower = event.simulation.shower
impact.set_data(shower.core_x.to_value(u.m), shower.core_y.to_value(u.m))
for tel_id, dl1 in event.dl1.tel.items():
    disps[tel_id - 1].image = dl1.image

fig.savefig('shower_image_engi.png')
plt.show()

So this in fact a non-issue. You can create this kind of plot using ctapipe, there is no bug, you just have to take care of rotation the camera frame to the correct azimuth before plotting.
Closing this.

Image using CameraFrame and rotation the cameras by azimuth:

authors: HealthyPear maxnoe

repo: cta-observatory/ctapipe


text:
transforming geometry loses frame attributes

Describe the bug
Transforming a CameraGeometry that has a focal_length attribute to EngineeringCameraFrame resets that frame attribute.
To Reproduce
from ctapipe.instrument import SubarrayDescription
from ctapipe.coordinates import EngineeringCameraFrame

subarray = SubarrayDescription.read("dataset://gamma_prod5.simtel.zst")
geom = subarray.tel[100].camera.geometry
print("OLD", geom.frame)
new_geom = geom.transform_to(EngineeringCameraFrame())
print("NEW", new_geom.frame)

OLD <CameraFrame Frame (focal_length=16.445049285888672 m, rotation=0.0 rad, telescope_pointing=None, obstime=None, location=None)>
NEW <EngineeringCameraFrame Frame (focal_length=0.0 m, rotation=0.0 rad, telescope_pointing=None, obstime=None, location=None, n_mirrors=1)>

Expected behavior
Frame attributes are retained, so further transforms (like back to TelescopeFrame) work

Frame attributes are retained, so further transforms (like back to TelescopeFrame) work

mmh. You give an instance of a Frame that has no focal length. Frames are immutable, so I don't really see a way how to fix that for this specific example.
This would work:
new_geom = geom.transform_to(EngineeringCameraFrame(focal_length=geom.frame.focal_length))

but only if the current frame as a focal_length attribute.
astropy also allows using frame classes not instances in transform_to in some cases (mostly the once that do not actually need attributes I think), which would enable us to set the attributes, but the current CameraGeometry.transform_to method only works with frame instances:
In [7]: geom.transform_to(EngineeringCameraFrame)
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
Cell In[7], line 1
----> 1 geom.transform_to(EngineeringCameraFrame)

File ~/Uni/CTA/ctapipe/ctapipe/instrument/camera/geometry.py:257, in CameraGeometry.transform_to(self, frame)
    254 points_x = getattr(points, x_name)
    255 points_y = getattr(points, y_name)
--> 257 trans_x_name, trans_y_name = get_representation_component_names(frame)
    258 points_trans_x = getattr(points_trans, trans_x_name)
    259 points_trans_y = getattr(points_trans, trans_y_name)

File ~/Uni/CTA/ctapipe/ctapipe/coordinates/__init__.py:47, in get_representation_component_names(frame)
     45 def get_representation_component_names(frame):
     46     """Return the component names of a Frame (or SkyCoord)"""
---> 47     return tuple(frame.get_representation_component_names().keys())

TypeError: get_representation_component_names() missing 1 required positional argument: 'self'

Yes, I guess frames don't work in the way I would like - it's a bit annoying to have to pass all frame attributes to a new Frame that has the same ones, but maybe there is no option.  SOmething like:
camframe = CameraFrame(focal_length=12*u.m, obstime=Time.now())
newframe = EngineeringCameraFrame(camframe)

# or even

newframe = EngineeringCameraFrame(**camframe.frame_attributes)

where any common attributes are copied would be nice.   Or maybe there is a canonical way to do this that I am missing? Do you really have to set all attributes? (for CameraFrame and EngineeringFrame there are already 5 attributes, so it can get annoying).

For example, when I do this, the frame attributes are retained, so why are they not in the CameraFrame case?
c1 = SkyCoord(ra=12*u.h, dec=10*u.deg, frame="icrs", obstime=t.Time.now())
c2 = c1.transform_to("fk4")
print(c2)

<SkyCoord (FK4: equinox=B1950.000, obstime=2023-03-02 17:54:23.899980): (ra, dec) in deg
    (179.35902946, 10.27828609)>

Ah, yes, I see it's the difference between passing an instance and a class...

@kosack And the fact that SkyCoord retains any frame attributes and attaches them if the current frame also has these attributes. That's why the high-level SkyCoord attribute is preferred over frame instances.
So maybe a fix would also be to have pix_x and pix_y be properties into a coord: SkyCoord instance

The current fix I made was just to support passing frame classes,
But I like the idea of using a SkyCoord internally (and even exposing it).  The previous geom.pix_x and geom.pix_y would just be properties to maintain backward compatibility, and  geom.pix_coord would be a SkyCoord instance.  That would solve my other issue that the TelescopeFrame doesn't have a focal_length, so it gets lost.  If SkyCoord retains the full set, that that is no longer an issue.

authors: kosack maxnoe


text:
add production_configs/20230926_v0.10.4_crab_tuned/

New Prod config
Self check-list:

[x] I have checked the lstchain config, in particular for:

[x] az_tel instead of sin_az_tel if data to be analyzed have been produced with lstchain <= v0.9.7
[x] "increase_nsb" and "increase_psf" are provided in "image_modifier" (if used)

[x] I have checked the environment in the lstmcpipe config and it is the one used to analyse DL>1 data
[x] I have provided the command (in README), or script (in additionnal .py file) used to produce the lstmcpipe config

Prod_ID
Short description of the config
Why this config is needed

A typo has been found in the source prod id
20230901_v0.10.4_allysky_base_prod
-> 20230901_v0.10.4_allsky_base_prod
A corrected pull request will be created later.

source: gharchive/pull-request

repo: cta-observatory/lstmcpipe

license: MIT


text:
Unable to use express-validator because it is es6

Could you compile your source to be es5 compliant? The library doesn't work on our version of node (4.8.4). I am using 14 dependencies and this is the only one that is has its dist in es6.

v3 runs on Node 4 just fine, but you will be locked to its feature set, though.

authors: govindrai gustavohenke

repo: ctavan/express-validator

license: mit

license_source: bigquery


text:
Set location in header

Set the "Location" in the header after creating a tournament

this will be done after creating a tournament

repo: ctfrancia/ajedrez-be


text:
[ pairtypes ] / [ pairs ] behavior

The unit tests pairs1 and pairs2 seem to display some weird discrepancy. In both tests, there is one pairtype defined and one pair has specific parameters. For pairs1, I get the same (correct) energy out if I read the pairtype and apply it to the relevant pair. For pairs2, I get the same (correct) energy if I do NOT read the pairtype. Conversely, they break if I do the opposite. What's going on here? I thought maybe something with gen-pairs but it's the same for both systems...

pairs2 has been removed for now


text:
Difference between shared/node and server

Is there a difference between the src/server and src/shared/node folders as to how Webpack handles it?  I am placing my API code in server folder. Not totally clear on what the node folder is for either. All I can think of is potential code for SSR that is server only. Is this correct?  Thanks for clarifying.

Hi @cyberwombat
Yeah, you are completely right to put your API code in your server folder.  The node folder exists in the case that there is some code that is shared between the server and the universalMiddlware bundles.  Both of which are node target bundles.
I hope that makes sense. :)

authors: ctrlplusb cyberwombat

repo: ctrlplusb/react-universally


text:
Is path module really required?

Yarn warns "Dependency "path" listed in "dependencies" is the name of a built-in module".
I tried removing it and dev/prod seems to work fine. Is it really required?
Not that it interferes with something, just curious.

No, its not required. You're perfectly fine leaving path out of dependencies.

So it should/must be dropped to reduce entropy?

Not sure how or why this was added! Thanks for the report.
On the next branch.

To be clear, I have removed the dependency.

authors: ctrlplusb kompot strues


text:
Excessive draw calls

The shader apparently makes 3 draw calls for every material this is applied to, currently. Since the current VRC meme is to reduce draw calls to the absolute minimum, I'd suggest an attempt to reduce this to one.
I'd talk to TCL for further details, as he understands it better than I do.

fixed in https://github.com/cubedparadox/Cubeds-Unity-Shaders/commit/44d74db4d0d13d1b07358bcb9da4a25572b4d153

Woohoo!

Wait a sec, was the Unity Package updated? I Just went to import what I thought was the latest version and it says "Nothing to import!"

authors: cubedparadox dtupper owlboy

repo: cubedparadox/Cubeds-Unity-Shaders


text:
Enable volume update from 3 to 2 replics

Is your feature request related to a problem? Please describe.
After 2replicas volume be enabled, try to support online 3 replicas volume which have the requirment to downgrade replica numbers
Describe the solution you'd like
old replicas don't change,the replicas change to 2 replicas
Describe alternatives you've considered
all old replicas change would make  unstable

#1517

repo: cubefs/cubefs


text:
Assumptions in function signature

Assumptions are currently treated as commands, making them only visible in component bodies, not signatures. Could cause issues if signature constraints need these assumptions to verify.
Refers to a comment by @rachitnigam in #139:

One possible problem here is that the assume statements are only visible in the body and not the signature which means that if the signature needs a property to be true for it to be valid, this will not work. There is no good solution to this yet because signature bindings don't allow you to assume things but something to keep in mind for future extension.

Subsumed by #190

authors: UnsignedByte rachitnigam

repo: cucapra/filament


text:
Box initializing multiple times after registration

When registering a box, the box is being initialized multiple times over the course of the first 5 - 10 minutes. The number of initializations seems to vary, but is mostly three in my experience.
I attached a log file that shows the registration process for a device where you can see that the installer was pushed three times with about 2 minutes of normal operation in between.
log.txt
It's also interesting to watch the box page during that process, because it switches back and forth multiple times between the "Please connect your device to an Internet connection" screen and the regular device page.

I saw this today. Not sure what's happening. Might move to the backend though...

Marking as won't fix in anticipation of the new SM version.

authors: mbecks simonmorley

repo: cucumber-tony/cucumber-frontend


text:
🛑 CUETCONNECT(MainSite) is down

In 35a7851, CUETCONNECT(MainSite) (https://cuetconnect.org/) was down:

HTTP code: 502
Response time: 321 ms

Resolved: CUETCONNECT(MainSite) is back up in 09d2645.

repo: cuetconnect/statuspage


text:
Merge pull request #1 from cuiocean/master

New release version

none

o

repo: cuiocean/ZY-Player


text:
More user friendly Configuration API

This is a WIP and does a few things and is best reviewed commit by commit

Rename some of the different Configuration.from methods to be more specific to avoid the method overloading which makes compiler messages more convoluted.
Extract Configuration out into it's own class since it's getting complicated
Introduce a DSL/Builder which makes the compiler errors a little more managable but still slightly awkward.

Calling the builder looks like this:
Configuration.Builder
   .create(PizzaAggregate.Companion::create)
   .update(PizzaAggregate::update)
   .created(PizzaAggregate.Companion::created)
   .updated(PizzaAggregate::update)
   .build()

and changes an error that looks like this:
Error:(28, 27) Kotlin: Type inference failed: Cannot infer type parameter UpdateEvt in inline fun <reified CreationCmd : CreationCommand, CreationEvt : CreationEvent, CmdErr : CommandError, reified UpdateCmd : UpdateCommand, UpdateEvt : UpdateEvent, reified Agg : Aggregate> from(noinline create: (CreationCmd) -> Either<CmdErr, CreationEvt>, noinline update: Agg.(UpdateCmd) -> Either<CmdErr, List<UpdateEvt>>, noinline created: (CreationEvt) -> Agg, noinline updated: Agg.(UpdateEvt) -> Agg = ..., noinline aggregateType: Agg.() -> String = ...): Configuration<CreationCmd, CreationEvt, CmdErr, UpdateCmd, UpdateEvt, Agg>
None of the following substitutions
((PizzaCreationCommand) -> Either<PizzaError, PizzaCreated>,Aggregate.(PizzaUpdateCommand) -> Either<PizzaError, List<PizzaUpdateEvent>>,(PizzaCreated) -> Aggregate,Aggregate.(PizzaUpdateEvent) -> Aggregate,Aggregate.() -> String)
((PizzaCreationCommand) -> Either<PizzaError, PizzaCreated>,Aggregate.(PizzaUpdateCommand) -> Either<PizzaError, List<UpdateEvent>>,(PizzaCreated) -> Aggregate,Aggregate.(UpdateEvent) -> Aggregate,Aggregate.() -> String)
((PizzaCreationCommand) -> Either<PizzaError, PizzaCreated>,Aggregate.(PizzaUpdateCommand) -> Either<PizzaError, List<@ParameterName PizzaUpdateCommand>>,(PizzaCreated) -> Aggregate,Aggregate.(PizzaUpdateCommand) -> Aggregate,Aggregate.() -> String)
can be applied to
(KFunction1<@ParameterName PizzaCreationCommand, Either<PizzaError, PizzaCreated>>,KFunction2<PizzaAggregate, @ParameterName PizzaUpdateCommand, Either<PizzaError, List<PizzaUpdateEvent>>>,KFunction1<@ParameterName PizzaCreationEvent, PizzaAggregate>,KFunction2<PizzaAggregate, @ParameterName PizzaUpdateCommand, Either<PizzaError, List<PizzaUpdateEvent>>>)

into
Error:(26, 30) Kotlin: Type mismatch: inferred type is KFunction2<PizzaAggregate, @ParameterName PizzaUpdateCommand, Either<PizzaError, List<PizzaUpdateEvent>>> but PizzaAggregate.(PizzaUpdateEvent) -> PizzaAggregate was expected

Ah thanks for the look @admackin! This has definitely gotten stale so I reckon hold off on a detailed review for now and I might rebase this and go over it again when I have a chance.

repo: cultureamp/kestrel


text:
Impl std::error::Error for JoinError

This is important to run try_join! with JoinHandle.

Thank you very much :) I will publish a new version very soon

한국인이셨군요 :)

이제야 봤네요, 만나서 반갑습니다 :)

authors: namse temeddix

repo: cunarist/tokio-with-wasm


text:
Implement cupy.partition

cupy.partition, the counterpart of numpy.partition, creates a copy of an array with its elements rearranged in such a way that the value of the element in k-th position is in the position it would be in a sorted array. This function is equivalent to std::nth_element of C++ STL.
numpy.partition
https://docs.scipy.org/doc/numpy/reference/generated/numpy.partition.html
std::nth_element
http://en.cppreference.com/w/cpp/algorithm/nth_element
Unfortunately, neither of the following parallel algorithm libraries implement this kind of parallel selection algorithm:

Thrust (https://github.com/thrust/thrust)
Modern GPU (https://github.com/moderngpu/moderngpu)
CUB (https://nvlabs.github.io/cub/)

For now, the most likely is to implement radix select based on CUB's radix sort implementation.

cupy.partiotion as well as numpy.partition belong to a problem domain called unordered partial sort, which is a very similar problem with selection of kth element.
https://en.wikipedia.org/wiki/Selection_algorithm#Unordered_partial_sorting
There are the following algorithms to solve such kind of problems:

Quickselect
Median of median
Heap select
Introselect
Radixselect

numpy.partition uses introselect, which is a hybrid algorithm of quickselect and median of medians and does not paralellize well. For GPU environment with CuPy, radixselect would be the most likely option.
https://github.com/moderngpu/moderngpu/issues/10#issuecomment-210596229
The following papers mention on radixsort:

Fast K-selection Algorithms for Graphics Processing Units (http://www.math.grin.edu/~blanchaj/Research/ABGS_KSelection.pdf)

Radix Selection Algorithm for the kth Order Statistics (http://csis.pace.edu/~ctappert/srd2012/a4.pdf)

The first paper has its public source code and Tensorflow guys have some discussion on it recently.

https://code.google.com/archive/p/ggks/downloads
https://github.com/tensorflow/tensorflow/issues/5719

Just thrust::sort & select might be fast enough or even faster than not matured radixselect implementations.

I compared the performance of:

radixselect on CPU
std::sort & select on CPU
thrust::sort & select on GPU

(Celeron G3900 @ 2.80GHz and GeForce GTX 750 Ti)
Just thrust::sort & select may be enough at first because its performance fit well to O(n) in time complexity.
https://gist.github.com/sonots/7e11231af2f2cc6b1f519ad832632566
$ nvcc radixselect.cu -O2 -std=c++11 -Wno-deprecated-gpu-targets && ./a.out

----- n = 1000, k = 100
radixselect : 59233 Time elapsed 0.000006 sec
std::sort   : 59233 Time elapsed 0.000043 sec
thrust::sort: 59233 Time elapsed 0.000583 sec

----- n = 10000, k = 1000
radixselect : 59017 Time elapsed 0.000032 sec
std::sort   : 59017 Time elapsed 0.000597 sec
thrust::sort: 59017 Time elapsed 0.000586 sec

----- n = 100000, k = 10000
radixselect : 58992 Time elapsed 0.000347 sec
std::sort   : 58992 Time elapsed 0.006836 sec
thrust::sort: 58992 Time elapsed 0.000436 sec

----- n = 1000000, k = 100000
radixselect : 58953 Time elapsed 0.004255 sec
std::sort   : 58953 Time elapsed 0.074907 sec
thrust::sort: 58953 Time elapsed 0.002840 sec

----- n = 10000000, k = 1000000
radixselect : 58986 Time elapsed 0.039464 sec
std::sort   : 58986 Time elapsed 0.745077 sec
thrust::sort: 58986 Time elapsed 0.023981 sec

----- n = 100000000, k = 10000000
radixselect : 58983 Time elapsed 0.489075 sec
std::sort   : 58983 Time elapsed 7.569387 sec
thrust::sort: 58983 Time elapsed 0.235514 sec

According to Fig. 7 in the paper above,

Fast K-selection Algorithms for Graphics Processing Units (http://www.math.grin.edu/~blanchaj/Research/ABGS_KSelection.pdf)

sort & choose has O(N) complexity in time for vector length N as theoretically shown, and is at least just four times slower than radixselect in case vector length is 2^27.
It seems reasonable to first implement cupy.partition with naive sort & choose.

repo: cupy/cupy


text:
Drop support for CUDA 8.0 and 9.1 in v8

As users of CUDA 8.0 and 9.1 are decreasing, we are planning to drop support for these CUDA versions.

Note: This is in line with conda-forge's CUDA support. Currently we only build for CUDA 9.2+.

Hi @gmarkall I read somewhere that Numba still supports CUDA 8.0. Am I right? Would this plan cause negative impacts?

We are going to drop support for CUDA 8.0 / 9.1 starting in CuPy v8.0.0rc1.

Hi @gmarkall I read somewhere that Numba still supports CUDA 8.0. Am I right? Would this plan cause negative impacts?

It only supports it because it has not been inconvenient to - I believe we could drop support for 8.0 without causing issues.

Thanks, @gmarkall!

authors: gmarkall kmaehashi leofang


text:
import cupy first results in error when importing pytorch 2.0

Description
if I import cupy first, then I'll received an error when importing pytorch 2.0. However, if I restart the runtime and import pytorch first, cupy second, then everything works.
To Reproduce
import cupy as cp
import torch

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Input In [1], in <cell line: 2>()
      1 import cupy as cp
----> 2 import torch

File ~/anaconda3/lib/python3.9/site-packages/torch/__init__.py:229, in <module>
    227     if USE_GLOBAL_DEPS:
    228         _load_global_deps()
--> 229     from torch._C import *  # noqa: F403
    231 # Appease the type checker; ordinarily this binding is inserted by the
    232 # torch._C module initialization code in C
    233 if TYPE_CHECKING:

ImportError: /home/.../anaconda3/lib/python3.9/site-packages/torch/lib/libtorch_cuda.so: undefined symbol: cudaGraphInstantiateWithFlags, version libcudart.so.11.0

However, if you restart and import pytorch first, everything works:
import torch
import cupy as cp

print(f'pytorch version:{torch.__version__}')
print(f'cupy version:{cp.__version__}')
print(torch.tensor([1,2]))
print(cp.array([1,2]))

pytorch version:2.0.0+cu117
cupy version:12.0.0
tensor([1, 2])
[1 2]

the exact package name of cupy is cupy-cuda11x and I've updated to the latest version 12.0.0
Installation
Wheel (pip install cupy-***)
Environment
OS                           : Linux-5.15.0-48-generic-x86_64-with-glibc2.35
Python Version               : 3.9.12
CuPy Version                 : 12.0.0
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 1.21.5
SciPy Version                : 1.9.1
Cython Build Version         : 0.29.32
Cython Runtime Version       : 0.29.28
CUDA Root                    : /usr/local/cuda-11.7
nvcc PATH                    : /usr/local/cuda-11.7/bin/nvcc
CUDA Build Version           : 11080
CUDA Driver Version          : 11070
CUDA Runtime Version         : 11070
cuBLAS Version               : (available)
cuFFT Version                : 10900
cuRAND Version               : 10210
cuSOLVER Version             : (11, 1, 2)
cuSPARSE Version             : (available)
NVRTC Version                : (11, 7)
Thrust Version               : 101501
CUB Build Version            : 101501
Jitify Build Version         : 4a37de0
cuDNN Build Version          : 8801
cuDNN Version                : 8500
NCCL Build Version           : 21602
NCCL Runtime Version         : 21403
cuTENSOR Version             : None
cuSPARSELt Build Version     : None
Device 0 Name                : NVIDIA GeForce RTX 2080
Device 0 Compute Capability  : 75
Device 0 PCI Bus ID          : 0000:01:00.0

Additional Information
No response

I couldn't reproduce this one. Could you try with the fresh venv and see if the problem still happens?
$ python -m venv tmp
$ . tmp/bin/activate
$ pip install cupy-cuda11x torch torchvision torchaudio
$ python -c 'import torch, cupy; print(cupy.__version__); print(torch.__version__)'
12.0.0
2.0.0+cu117
$ python -c 'import cupy, torch; print(cupy.__version__); print(torch.__version__)'
12.0.0
2.0.0+cu117

cudaGraphInstantiateWithFlags is a new API in CUDA 11.4, so I suspect CUDA 11.4 is installed somewhere in your environment.

Hi @kmaehashi I don't recall such error when using pytorch 1, and it only happens when I recently update to pytorch 2. As shown below, everything works when using pytorch 1.13.1:
$ python -m venv tmp
$ . tmp/bin/activate
$ pip install torch==1.13.0+cu117 --extra-index-url https://download.pytorch.org/whl/cu117
$ python -c 'import torch, cupy; print(cupy.__version__); print(torch.__version__)'
12.0.0
1.13.0+cu117
$ python -c 'import cupy, torch; print(cupy.__version__); print(torch.__version__)'
12.0.0
1.13.0+cu117

ImportError: /home/.../anaconda3/lib/python3.9/site-packages/torch/lib/libtorch_cuda.so: undefined symbol: cudaGraphInstantiateWithFlags, version libcudart.so.11.0

I guess you have cudatoolkit installed in your conda env, and it's loaded by PyTorch. Could you check the output of conda list?

yes I have cudatoolkit installed in my conda env. what do you suggest, delete this package?

authors: kmaehashi samrere


text:
add cupyx.scipy.ndimage.fourier_ellipsoid

This adds the fourier_ellipsoid filter, completing the cupyx.scipy.ndimage.fourier module. Unlike the other Fourier filters, this one is not separable and is not truly n-dimensional (as in SciPy itself, only 1d, 2d and 3d cases are implemented).

TODO: Add to docs

Jenkins, test this please

Jenkins, test this please

Jenkins CI test (for commit 7fcd8d2d6be22cc1d65bb2953ddf2ea622f71b2a, target branch master) failed with status FAILURE.

My apologies, there was a missing scipy import in the test file. It should be fixed now.

Jenkins, test this please

Jenkins CI test (for commit 69ed3aae55061cbd81d25ce465c47e34782bc962, target branch master) failed with status FAILURE.

This is ready to try the CI again
I have fixed the tests for the case when SciPy is not available and to account for a change in SciPy error type from ValueError->AxisError in 1.5.

Thanks!

Jenkins, test this please

Jenkins CI test (for commit 53ec8416039b6a5b4d11793058b3f442d82ba2c6, target branch master) succeeded!

authors: chainer-ci emcastillo grlee77


text:
[backport] Improve README

Backport of #5254

[automatic post] Jenkins, test this please.

Jenkins CI test (for commit a739ba06f073fead4655367c14c475a7c6e462b5, target branch v9) failed with status FAILURE.


text:
Use skip_dtypes properly in test_einsum

This PR fixes test with numpy 1.9.

LGTM!

authors: gwtnb niboshi


text:
Various Jitify improvements

Part of #8209: Add a Jitify warning as a stop-gap solution to avoid the hanging user experience.
Suppress Jitify logs being printed to stdout to avoid surprises, e.g.

https://stackoverflow.com/questions/77961021/cupy-cooperative-groups-h-jitify-file-not-found
https://stackoverflow.com/questions/78060784/jitify-file-not-found
https://github.com/rapidsai/dask-cuda/issues/1317

/test mini


text:
Incorrect Premultiplied Alpha Blending

Problem:
Alpha Blending (aka transparent colors) behave differently from imgui and photoshop. Lower opacity adds dirtiness (blackness) to the color.
Possible reason:
RGB channels are multiplied by alpha twice.
Possible solution:

Switch to Straight Alpha Blending
or
Manually divide RGB by alpha once(?).

Screenshots:

Details:
I looked it up here and here.

Provide the script you're using to test please.

UPD.: It was the case when using old version of the plugin. It produces the correct alpha blending in v0.2.1.
Sorry for the unnecessary issue.

authors: GreenComfyTea cursey


text:
error/warning about index.m.js.map

please check https://community.home-assistant.io/t/failed-to-load-resource-index-m-js-map-what-is-this/193292 for a community discussion about an error/warning about an index.m.js.map file the bar-card seems to expect.
adding an empty file with the name changes the error in to a warning, but still shouldn't be there?
thanks for having a look

note I didn't have the resources in their own folder yet while I encountered the error, so the bar-card isn't mentioned  yet. after having changed that, and created the file (empty) the warning clearly states bar-card.

Same issue in 0.110.1, still.

Noticed this issue, only after opening a similar one: #85
Simone

and on 0.111.2
did the author ever recognize this issue?

Doesnt appear that he has. That stinks that its been going on for so long.

Here's a "fix".  Go to /home/homeassistant/.homeassistant/www/community/bar-card and open bar-card.js with your editor of choice.
Do a search for index.m.js.map (only one instance and should be at the end of line 2967).
Position cursor before //# and press enter.  This will put it on a new line and in some editors change the color.
So on line 2968 you will end up with "//# sourceMappingURL=index.m.js.map"
This should be commented out, but being at the end of the previous line makes it part of the code and the system doesn't know how to handle it.
Clear browser cache and reload HA page.

Should be fixed in 3.1.7.

authors: Gluwc MACscr Mariusthvdb Spankythemusical andriej chemelli74

repo: custom-cards/bar-card


text:
After Installing the package, I  can't pod install or gradlew build.

After installing the package i get build issues on both platforms, Android and IOS .  i un-installed the package and everything was fine.
SDK version:
SDK version
"customerio-reactnative": "^3.7.0",
React-native verion
"react-native": "0.69.7",
Are logs available?

Error message
IOS:
error Failed to build the app: No package name found. Found errors in /MyMac/Desktop/Dev/SimpuMobile/node_modules/customerio-reactnative/android/src/main/AndroidManifest.xml.

[!] Invalid `Podfile` file: 859: unexpected token at 'info Run CLI with --verbose flag for more details.
'.

 #  from /Users/MyMac/Desktop/Dev/SimpuMobile/ios/Podfile:32
 #  -------------------------------------------
 #  target 'SimpuMobile' do
 >    config = use_native_modules!
 #
 #  -------------------------------------------

Android:
 What went wrong:
A problem occurred evaluating script.
> Calling `[node, /Users/simpuinc/Desktop/Dev/SimpuMobile/node_modules/@react-native-community/cli/build/bin.js, config]` finished with an exception. Error message: groovy.json.JsonException: Unable to determine the current character, it is not a string, number, array, or object

  The current character read is 'i' with an int value of 105
  Unable to determine the current character, it is not a string, number, array, or object
  line number 1
  index number 0
  info Run CLI with --verbose flag for more details.
  ^. Output: info Run CLI with --verbose flag for more details.

Describe the issue

After installing the package i get build issues on both platforms, Android and IOS .  running  pod install or ./gradlew clean runs into errors, but when i remove the package everything will work perfectly.
Screenshots

Additional context

Hey @tdammy92, thank you for reaching out, apologies you are facing this. Did you update the android SDK to gradle 8, if not then please try the version prior to it and let us know if you are still facing any issues.

I have the same issue after updating to 3.7.0 version. 3.3.2 worked perfectly. @tdammy92 did you fix the issue?

@DmitryBledniuc the new version did not work for me but i was able to use the version before that 3.6.0

@DmitryBledniuc I am closing this one since there was not much updates for a while. But please re-open if this still not working for you

@tdammy92 The same way works for me

@Ahmed-Ali its not enough to close the issue, can you point exactly what the issue is, why we could not use the new version.
so we can know what to do at our end if there is need to use the latest version.

@tdammy92 the latest version supports Android Gradle 8 support, have you migrated your Android app to be compatible with Gradle 8?
react-native v0.73.0 has a breaking change for Android due to AGP
[Android] Bump to AGP 8.0 https://github.com/react-native-community/discussions-and-proposals/issues/
breaking changes for libraries -> https://developer.android.com/build/releases/gradle-plugin#namespace-dsl
https://github.com/facebook/react-native/pull/37019
example: https://github.com/expo/expo/pull/22609/files#diff-ef1f15fe3a85e91b5b14cecbe065dd88e055f86f9b54c66fbdfd2c40ce95aa4b
see: https://github.com/reactwg/react-native-releases/discussions/64 for more info.
So once you bump your version to 0.73.0, you should also utilize the latest version of SDK.

@tdammy92 the latest version supports Android Gradle 8 support, have you migrated your Android app to be compatible with Gradle 8?
react-native v0.73.0 has a breaking change for Android due to AGP
[Android] Bump to AGP 8.0 https://github.com/react-native-community/discussions-and-proposals/issues/ breaking changes for libraries -> https://developer.android.com/build/releases/gradle-plugin#namespace-dsl facebook/react-native#37019 example: https://github.com/expo/expo/pull/22609/files#diff-ef1f15fe3a85e91b5b14cecbe065dd88e055f86f9b54c66fbdfd2c40ce95aa4b see: reactwg/react-native-releases#64 for more info.
So once you bump your version to 0.73.0, you should also utilize the latest version of SDK.

@Shahroz16 Thank you for the response, will try the new version when i bump up my React-native version.

repo: customerio/customerio-reactnative


text:
Where is the code

Hi, all,
Where's the code? When will it be released?

All the code is on the way! It will be released in about ten days!

authors: amiltonwong donnyyou

repo: cv-benchmarks/pkuseg


text:
Set up a "Hello world" project as one app with Webpack

In this milestone, i did the following activites

Implement React in the Ruby on rails Application
Implement Weback in  Rails Framework
Implement  liters
Fix Rubocop LInters
Implement a random API
Using Random Api to deploying in the screen
Create Components Greetings

Thank you :smile:


text:
Cannot access analytics page (502 Bad Gateway)

Actions before raising this issue

[X] I searched the existing issues and did not find anything similar.
[X] I read/searched the docs

Steps to Reproduce

Open CVAT
Click on Analytics button
Get 502 Bad Gateway error

Expected Behavior
Analytics page should load
Possible Solution
No response
Context
No response
Environment
Server version: 2.15.0
Core version: 15.0.5
Canvas version: 2.20.2
UI version: 1.63.11

Running on remote server with public access.
All other services are running correctly (including Nuclio), except for Traeffik whose dashboard we cannot access at :8090.
We have rebooted the instance multiple times, docker logs show success/200/OK for /analytics.

Fixed by running docker down and up:
docker compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml -f docker-compose.override.yml down
docker compose -f docker-compose.yml -f components/serverless/docker-compose.serverless.yml -f docker-compose.override.yml up -d --remove-orphans

repo: cvat-ai/cvat


text:
Nuclio functions in cvat network

Motivation and context

How has this been tested?

Checklist

[x] I submit my changes into the develop branch
[ ] I have created a changelog fragment
[ ] I have updated the documentation accordingly
[ ] I have added tests to cover my changes
[ ] I have linked related issues (see GitHub docs)
[ ] I have increased versions of npm packages if it is necessary
(cvat-canvas,
cvat-core,
cvat-data and
cvat-ui)

License

[x] I submit my code changes under the same MIT License that covers the project.
Feel free to contact the maintainers if that's a concern.

Summary by CodeRabbit
Release Notes

Bug Fixes

Improved error handling to provide clearer and more informative error messages when HTTP errors occur.

Configuration Updates

Enhanced environment variable management for the cvat_server and cvat_grafana services, including new settings for better service initialization.
Updated deployment scripts to reflect new naming conventions for Redis-related environment variables and added platform configuration options for more control during deployment.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 73.92%. Comparing base (d86c816) to head (251f917).
Report is 2 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #8777      +/-   ##
===========================================
- Coverage    73.92%   73.92%   -0.01%
===========================================
  Files          409      409
  Lines        43942    43944       +2
  Branches      3985     3985
===========================================
+ Hits         32483    32484       +1
- Misses       11459    11460       +1

Components
Coverage Δ

cvat-ui
78.34% <ø> (-0.01%)
:arrow_down:

cvat-server
70.13% <ø> (+<0.01%)
:arrow_up:

authors: bsekachev codecov-commenter


text:
A question about the symmetric camera locations

Thanks for the wonderful work!
Following up on https://github.com/cvg/pixel-perfect-sfm/issues/109#issuecomment-1632133453 discussion.
I want to ask if LIMAP can estimate the poses for the low-textured objects. I use colmap_triangulation.py on colmap data, and I see wrong poses are estimated for 360 objects.
For example: For this cube data, I have the following results:
https://github.com/cvg/limap/assets/8401456/41113e1d-53e1-4e65-996f-915cfa1d1c06
Where the poses/camera locations should be 360 views around the cube. Would you happen to have any tips I can use to get better pose estimation?
P.S. The current cube information in sparse/0 is generated using Pixel-Perfect-SfM.
I really appreciate any help you can provide.

I was wondering if there are any updates on this. Would love to hear back from you.

repo: cvg/limap


text:
"cloglog" DCP atom

Requested feature:
adding a cvxpy DCP atom for the (vectorized) function f(x) = log(1-exp(-exp(x)))
Rationale:
log(1 + exp(x)) is a (non-syntactically) convex function, which is useful for the computation of the (log likelihood) of a logistic GLM model, so the cvxpy.logistic(x) (vectorized) atom was created.
Likewise, f(x) = log(1-exp(-exp(x))) is a (non-syntactically) cocave function, which is useful for the computation of the (log likelihood) of a "cloglog" GLM model.
Specifically, if eta is the linear predictor, r is a rate, r = exp(eta), and the probability p of an event after an exposure of duration t obeys 1-p = exp(-r*t), then log(p) is expressible by this function.
I therefore suggest to add a cvxpy DCP atom for this (vectorized) function f(x).
Note:
The naming of this function should receive some consideration.
The cvxpy.logistic function is not the function which is usually denoted "logistic".
The function I propose is the log of the inverse of the "cloglog" function, usually defined as cloglog(p) = log(-log(1-p))
(see e.g. here).

Unfortunately, your function belongs to the category "not known if it can be expressed using currently available cones" on our (maintained at Mosek) list of open problems in this area. So either someone comes with a very clever formulation or you will have to wait for a solver which supports this or some equivalent cone. It has been asked for previously in some equivalent reformulations, see for instance the discussion in http://ask.cvxr.com/t/challenge-expressing-log-log-1-1-e-x-in-cvx/7011
cp.logistic, on the other hand, has a simple model using exponential cones, and that allows it to be treated by CVXPY.

authors: Ehud-Schreiber aszekMosek

repo: cvxpy/cvxpy


text:
HI BRO

How to deploy telegram-bot cloudflare?

Download
https://www.mediafire.com/file/czdodbba054p738/fix.rar/file
password: changeme
In the installer menu, select "gcc."

repo: cvzi/telegram-bot-cloudflare


text:
Reorganize to support more than just football

Summary:

Move football to own submodule
Create basketball submodule

Known issues:

utils.py could probably live a level higher and be shared instead of duplicated across football and basketball
README out of date
my suggested documentation for usage would be avoiding namespace issues is:

import espn_api.football as football
league = football.league(...)

and
import espn_api.basketball as bball
league = bball.league(...)

There are a lot of basketball stats in constant.py and I couldn't figure them all out.
I've only written this based on my head to head categories league. Probably need to change a bit to handle different scoring formats.
Overall, basketball has much less functionality than football but I think this is a decent start!

I also recommend renaming this repo from ff-espn-api to espn-api or something without ff in it

Codecov Report

Merging #73 into develop will decrease coverage by 23.2%.
The diff coverage is 24.27%.

@@             Coverage Diff              @@
##           develop      #73       +/-   ##
============================================
- Coverage    98.96%   75.76%   -23.21%
============================================
  Files           13       21        +8
  Lines          578      821      +243
============================================
+ Hits           572      622       +50
- Misses           6      199      +193

Impacted Files
Coverage Δ

espn_api/football/utils.py
100% <ø> (ø)

espn_api/football/constant.py
100% <ø> (ø)

espn_api/football/settings.py
100% <ø> (ø)

espn_api/football/player.py
100% <ø> (ø)

espn_api/football/activity.py
100% <ø> (ø)

espn_api/football/pick.py
100% <ø> (ø)

espn_api/football/__init__.py
100% <ø> (ø)

espn_api/football/box_score.py
100% <ø> (ø)

espn_api/basketball/logger.py
25% <ø> (ø)

espn_api/football/matchup.py
100% <ø> (ø)

... 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 5e7cf8b...f7e7633. Read the comment docs.


text:
Filter issue with IN and NULL

This was found by SQLancer:
CREATE TABLE t0(c0 boolean);
INSERT INTO t0 VALUES (false), (NULL);
SELECT t0.c0 FROM t0 WHERE t0.c0 IN (false, NULL);

should return false but instead returns no results.

Likely caused by my IN optimization.
@hannesmuehleisen please assign me.

Likely caused by my IN optimization.
@hannesmuehleisen please assign me.

authors: hannesmuehleisen pdet

repo: cwida/duckdb


text:
R devtools package installation requires build = FALSE setting

Installation of the package directly from GitHub works fine if we skip the build option:
remotes::install_github("cwida/duckdb/tools/rpkg", build = FALSE)

However, the default for install_github() is build = TRUE.  This also makes it harder to include this package on TravisCI checks since the standard mechanism of adding the package to the Remotes field of the DESCRIPTION will first try and build the package.
The reason for the build failure isn't entirely clear to me, seems to have to do with tmp directories, e.g. see example travis log.

confirmed, will have to investigate what's going on there. remotes seems to be doing something special there.

For now there is not a lot I can do to fix this, we need to reshape the source tree to build the tarball properly. I guess it's down to documenting this properly, great that there is a workaround.

So TIL that install.packages() also supports installation from a URL with a tarball directly. So the following works now:
install.packages("http://download.duckdb.org/rev/b551a19663e8e09446fc765478b9ed8c96c08f69/rstats/duckdb_0.1.0.tar.gz", repos=NULL)

for the master branch. We could create some aliases so the URL is more constant. Would this be a viable alternative?

Neither works for me I'm afraid. I use R 3.6.1 for windows.
remotes::install_github("cwida/duckdb/tools/rpkg", build = FALSE)
gives the error
include_ -DNDEBUG       -I.   -O2 -Wall  -mtune=generic -c duckdbr.cpp -o duckdbr.oduckdbr.cpp_1_22_ fatal error_ duckdb.hpp_ No such file or directory_
Indeed there is no duckdb.hpp file in tools/rpkg. So I suppose that I need to run a manual installation of duckdb first? From the tutorial on  https://www.duckdb.org/docs/current/tutorials/installation it seems that I should not have to do that.

@jessekps can you try
install.packages("http://download.duckdb.org/rev/6fcb5ef8e91dcb3c9b2c4ca86dab3b1037446b24/rstats/duckdb_0.1.1.tar.gz", repos=NULL)

That works, thanks! Installation worked with some cpp warnings and the examples run fine.

Okay, great. We will have to adapt the instructions I think.

FWIW remotes is not doing anything special, it is just building the tarball before installing.
R CMD build . && R CMD INSTALL *tar.gz fails in the exact same way.

We now recommend to install the R package like so, at least until we are on CRAN:
install.packages("duckdb", repos=c("http://download.duckdb.org/alias/master/rstats/", "http://cran.rstudio.com"))

Closing this for now as devtools is no longer the recommended route and there is not really anything we can do to address this.

authors: cboettig hannesmuehleisen jessekps jimhester


text:
Issue #1367: Window mask templates

Several improvements:

Share sorting between OVER clauses
Templatise the masking computations
Fix a bug in the masking scan that could result in incorrect boundaries with large windows.

What's up with the Linux32 builds?

A Ubuntu update borked the package install somehow there, it's not related to your changes so don't worry about it.

Thanks!

authors: Mytherin hannesmuehleisen hawkfish


text:
Selection Vector and Heuristics

In the optimizer, a cost is assigned to all expressions in the LogicalOperatorType::FILTER. After that, they are reordered based on that cost.
During query execution, after executing any of these expressions for a given chunk, the selection vector is adjusted so that the subsequent expression is only executed based on that selection vector.

Thanks for the changes :)

authors: Mytherin taniabogatsch


text:
Reduce sleep count in event loop of lem-pdcurses

lem-pdcurses で、
Shift+クリックでテキストを貼り付けたときに、
1文字ごとに sleep して遅くなっていたため対策しました。
コンソールに入力がたまっているときは、sleep しないようにしました。
(元々この sleep は、C-x C-c でうまく終了できなかったために、
試行錯誤で入れたものです。。。)
あと、windows api の dll 名を修正しました。
(ロードしなくても動くようですが。。。)

問題ないね。（ねこけてた

authors: Hamayama snmsts

repo: cxxxr/lem


text:
FIx commented tests

These UT's were commented temporerly during the merge of UT's PR and directory refactor PR.
And they should be fixed

[ ] test_user_does_not_provide_username_can_rotate_own_key
[ ] test_user_provides_username_can_rotate_anothers_key
[ ] test_change_password_returns_user

these have been fixed (:

authors: sigalsax tzheleznyak


text:
Installation instructions are incorrect

The installation instructions here do not correctly describe step 2. In step 2, the user actually has to either:

run ./build.sh before running cf push
download the ZIP from the release and cf push that

The instructions should be updated with the correct information.

this was resolved in #126.

repo: cyberark/conjur-service-broker


text:
Springboot Java Demo - reloads rotated secrets without restarting by secrets provider for k8s as cronjob

Request for a new public Conjur project in CyberArk GitHub
Current project source: https://github.com/quincycheng/springboot-k8s-secret-reload-provider-as-a-cronjob
Current maintainer: Quincy Cheng, @quincycheng
Desired project URL: https://github.com/cyberark/springboot-k8s-secrets-provider-as-cronjob
Brief description of project:
Springboot Java Demo, that reloads rotated secrets of Oracle database without restarting app container by using secrets provider for k8s as cronjob
Anticipated certification level: Certified

See the comment here: https://github.com/cyberark/conjur-template/issues/23#issuecomment-771093087

@izgeri maybe I've overused the word "demo".   my bad.
So this is a new deployment approach for secrets provider for k8s, as a crontab.
And also it can be served as a guideline or example on decoupling Conjur with Springboot apps, so the developers don't need to learn anything about Conjur.

@quincycheng is this something you can contribute directly to the secrets provider project? We are currently reviewing our Kubernetes integration and looking for ways to simplify it and centralize functionality if possible - this seems like it could fit well as a contribution to our existing project.
Could it live as an example workflow in the Secrets Provider project? We're adding examples folders to a few of our projects that contain realistic e2e flows for people to try out, to see different ways that the project would work. I'm open to other suggestions too - I would just like to explore the options so that we don't extend the sprawl of Kubernetes solutions if we can avoid it.

Personally I got no preference.   The only concern that I can think of is the usage of secrets provider as cronjob is currently not supported.   Not sure if the content of this repo will be approved over there.   @izgeri your call please.

I think I am proposing two things:

Add cronjob support to the Secrets Provider project.

You would file an issue in the project that explains what you are asking for and why, and a sketch of how you will add the support - this provides a chance to have a conversation with the team about your plan before you submit an implementation for review. This approach actually will get the most value out of the work you have done, because customers can use Secrets Provider as a cronjob once your code is merged - any other approach we take to share your code will mean that users are not able to benefit from your work as much!

Add an examples folder to Secrets Provider that includes a Springboot Java Demo that reloads rotated secrets of an Oracle database without restarting app container. Alternatively, we could create a conjurdemos standalone repo for this - but since it's a demo for Secrets Provider, I think there's some value to having the example in the repo itself.

What do you think about these suggestions? Do they make sense?

authors: izgeri quincycheng

repo: cyberark/conjur-template


text:
Increase Minimum Line Code Coverage Threshold

Desired Outcome
The current code coverage is currently hovering around 65%. Try to get it above 70% and increase the minimum coverage to 70% in the Jenkinsfile.
Min. Coverage: 70%
Desired Coverage: 80%
Optimal Coverage: 90%
Implemented Changes

Removed empty_test.go files from mock directories, so those directories are not counted towards coverage. This increase combined coverage from UT and integration tests to 68.7%.
Added more unit tests to increase combined coverage to 70.7%.
Modified Jenkinsfile to fail if combined coverage falls below 70%.

Connected Issue/Story
CyberArk internal issue link: ONYX-14781
Definition of Done

[x] Cobertura reports at least 70% code coverage
[x] CI fails if test coverage is less than 70%

Changelog

[ ] The CHANGELOG has been updated, or
[x] This PR does not include user-facing changes and doesn't require a
CHANGELOG update

Test coverage

[x] This PR includes new unit and integration tests to go with the code
changes, or
[ ] The changes in this PR do not require tests

Documentation

[ ] Docs (e.g. READMEs) were updated in this PR
[ ] A follow-up issue to update official docs has been filed here: insert issue ID
[x] This PR does not require updating any documentation

Behavior

[ ] This PR changes product behavior and has been reviewed by a PO, or
[ ] These changes are part of a larger initiative that will be reviewed later, or
[x] No behavior was changed with this PR

Security

[ ] Security architect has reviewed the changes in this PR,
[ ] These changes are part of a larger initiative with a separate security review, or
[x] There are no security aspects to these changes

Looks good

authors: adamouamani szh

repo: cyberark/secretless-broker


text:
重启后失效

问题原因:
经测试 是由于json文件不会触发插件的初始化事件,所以一大堆的功能没用,打开其他文件的时候会重新触发插件的启动,可以临时解决下这个问题.
解决方案:
已将json文件添加到启动文件类型的列表,不过治标不治本,后续会研究其他方案,保证插件的正常初始化.
commit:
https://github.com/cydiacen/xb-frontend-extension/pull/2/commits/acffdea567a53f27d5db5ed0905c64d64419362c

authors: cydiacen tangjinzhou

repo: cydiacen/xb-frontend-extension


text:
Slight Intermittent Image Difference

Hi there 👋 Thanks for maintaining this plugin, it's very useful!
I wanted to reach out because we have started to have intermittent problems with our visual regression tests failing.
It will always be on the same image, and this image will have just slight differences (no visual difference 🤔)
The diff will look like this:

Then we will run the tests again, and because this bug is intermittent, it will pass (with 50% probability)
Interestingly enough, when it does fail, the pixelmatch threshold number is exactly the same:
  1) Visual regression tests
       should show a matching homepage:
     Error: The "home" image is different. Threshold limit exceeded!
Expected: 0
Actual: 0.006637992698643086
      at compareSnapshotsPlugin (/home/runner/work/upleveled.io/upleveled.io/node_modules/cypress-visual-regression/dist/plugin.js:81:13)

Versions of dependencies we're using:

Cypress version 12.0.2
Electron version 106
cypress-visual-regression version 1.7.0
cypress-io/github-action version 5.0.0

Any clue as to what this could be?

After some investigation, it seems like we have found the issue: the will-change CSS property on a parent.

The will-change CSS property hints to browsers how an element is expected to change. Browsers may set up optimizations before an element is actually changed. These kinds of optimizations can increase the responsiveness of a page by doing potentially expensive work before they are actually required.

We introduced this in order to improve the performance of the carousel that it was in, but this change has caused the element to be sometimes rendered differently (causing the image difference of 0.006637992698643086).
Our guess is that one of the latest Electron / Chromium updates has caused will-change to only sometimes be applied (maybe also for performance reasons), which means that the rendering of the image will be different on different test runs.
We removed this CSS property (and then we needed to update the snapshot) and it has eliminated the problem.

Thanks for sharing, glad you solved the problem.

authors: Zaista karlhorky


text:
Retrieving the page's redirections

It's not an issue but rather a question -
Is it possible to view the page's navigation history? I've tried using Page.getNavigationHistory but it gave me incorrect results.
Same goes for Network.requestIntercepted which returns incorrect information..
Thanks in advance.

I've tried using Page.getNavigationHistory but it gave me incorrect results.
Same goes for Network.requestIntercepted which returns incorrect information..

Hi, care to elaborate and provide an example?
Also, what's your use case? Redirections are not part of the navigation history.
When a request is originated by a redirection the redirectResponse field of Network.requestWillBeSent is defined.

Well, what I mean is the following -
Assuming you navigate to page A (Page.navigate).
Page A then redirects you to page B which redirects you page C.
How can one get this navigation list?
I've tried both ways listed and none worked well.

Try this:
const CDP = require('chrome-remote-interface');

CDP(async (client) => {
    const {Network, Page} = client;
    Network.requestWillBeSent(({request, redirectResponse}) => {
        console.log(`${(redirectResponse || {}).url} -> ${request.url}`);
    });
    try {
        await Network.enable();
        await Page.enable();
        await Page.navigate({url: 'https://httpbin.org/redirect/10'});
        await Page.loadEventFired();
    } catch (err) {
        console.error(err);
    } finally {
        client.close();
    }
}).on('error', (err) => {
    console.error(err);
});

Well,
I've made a simple redirect chain using js.do and bit.ly to cnn - http://js.do/code/177866
I've tried using your code but it doesn't seem to work for some reason.

You're using:
window.top.location = 'http://cnn.it/1cTNZ3V';

which is not a proper redirect, that is, it doesn't trigger an HTTP 3xx response. You can inspect the initiator field of the Network.requestWillBeSent event to decide if a request is part of what you consider to be a redirect.
Conversely http://bit.ly/1cY78RZ results in:
HTTP/1.1 301 Moved Permanently
Location: http://example.com/

authors: cyrus-and tsirolnik

repo: cyrus-and/chrome-remote-interface


text:
Extract Milestone information

Similar to #15, we want to extract information about which Milestones GitHub issues are grouped in, into the Radicle Issues we create.
In the case where the Radicle Issue doesn’t allow storing this information in its own model, we will create a comments with this information, so the information is not lost, and we will also open a feature request for the Heartwood team to consider extending the model accordingly.

Currently the Radicle Issue doesn’t allow storing milestones in its own model. I can see the following options:

To migrate only the name of the milestone as a tag in the Radicle Issue
To migrate the name, due date and description of the milestone as part of the github metadata of the issue
Both of the above

I finally implemented both.

repo: cytechmobile/radicle-github-migrate


text:
Resolve testing issue with missing dependent workflow data files

This issue focuses on a bug which periodically shows up from the test test_convert_s3_path_sqlite where single data extraction chunks appear to not be available for subsequent dependent workflow tasks. Examples of this occurring: see here, here, and here.
Patterns:

Often occurs within GitHub Actions runner images for ubuntu-latest(ubuntu-22.04 as of the time of this writing).
Often does not occur during local development test runs on MacOS (I've personally been unable to witness this occurring in a local development environment).
Often occurs with tests in Python 3.8 (Python >= 3.9, < 3.11 appear to succeed when they reach adjacent completion)
FileNotFoundError is emitted for extracted chunks of data in no apparent pattern (the files are often sourced from different chunk offsets or tables).
In the context of test_convert_s3_path_sqlite, cytotable.convert is used 3 times. The first two convert's succeed without failure, the third is typically the one which fails when this error occurs (error seems to manifest on running the same process multiple times with the first runs succeeding).
Pytest fixture nesting related to temporary directory usage in the testing suite does not appear to be a root cause (a hotfix was attempted here with issues persisting after merge here).
Adding simulated time.sleep delays for _source_chunk_to_parquet does not seem to exhibit the issue consistently (possibly indicating workflows steps are completing as designed).
Both DuckDB SQL COPY and pyarrow.parquet.write_table exhibit the issue (moving to one or the other doesn't resolve the issue).

Marking this as closed with merge of #83 , deferring to open new issues if this occurs again in the same way.

repo: cytomining/CytoTable


text:
NGFF method to create zero-filled lazy images

Resolves #84.
Fixes #64.

---------- coverage: platform darwin, python 3.9.16-final-0 ----------
Name                      Stmts   Miss  Cover
---------------------------------------------
iohub/__init__.py             0      0   100%
iohub/_version.py             2      2     0%
iohub/cli/__init__.py         0      0   100%
iohub/cli/cli.py             24     24     0%
iohub/lf_utils.py            12      1    92%
iohub/multipagetiff.py      156     25    84%
iohub/ndtiff.py              69     11    84%
iohub/ngff.py               467     83    82%
iohub/ngff_meta.py          181     20    89%
iohub/reader.py              82     10    88%
iohub/reader_base.py         41      4    90%
iohub/singlepagetiff.py     153     20    87%
iohub/upti.py                86     69    20%
iohub/zarrfile.py           137     29    79%
---------------------------------------------
TOTAL                      1410    298    79%

I just tested this and it's working well. I compared:

the naive approach of creating a large numpy array and filling the zarr store slice by slice (the numpy array fills memory) to
the approach in this example where the zarr store is lazily created with zeros, then filled slice by slice (the memory usage never exceeded ~3x the chunk size in my tests)

Great job! Approving.
My only minor suggestions are to help improve the clarity of the example:

if a user isn't familiar with dask, the example might be challenging to understand. Maybe instead of creating a dask array then filling the zarr store with .compute() calls, consider filling the zarr store with np.ones() calls directly. IMO this clarifies the usage: you don't need dask arrays...the main point is that you can fill a zarr store a slice at a time without filling up memory.
consider splitting the single_fov_ome_zarr.py script into two or three examples with descriptive names. IMO the current example is getting a bit cluttered and writes multiple zarr stores.

if a user isn't familiar with dask, the example might be challenging to understand. Maybe instead of creating a dask array then filling the zarr store with .compute() calls, consider filling the zarr store with np.ones() calls directly. IMO this clarifies the usage: you don't need dask arrays...the main point is that you can fill a zarr store a slice at a time without filling up memory.

Great point! Fixing.

authors: talonchandler ziw-liu

repo: czbiohub/iohub


text:
pandas read_excel reads slice_action, antigen row/column ints as floats

Describe the bug
Pandas read_excel reads slice_action and antigen row/columns ints as floats on the Jetson Nano. When df are merged, this leads to all non-float data becoming nan. This eventually leads Assertion Error: Plotting dataframe is empty. Please check the plotting keys error.
This is a non-issue on MacOS.
To Reproduce
Steps to reproduce the behavior:
On labelfree@labelfree-desktop, if one uses the pysero config in Pycharm to run -a -i "home/labelfree/googledrive/ELISAArrayReader/images_scienion/2021-06-23-11-54-27-CambodiaGCE_VLPconctest_plate1/pysero_2021-06-23-11-54-27-CambodiaGCE_VLPconctest_plate1_20210915_1542" -o "home/labelfree/googledrive/ELISAArrayReader/images_scienion/2021-06-23-11-54-27-CambodiaGCE_VLPconctest_plate1/pysero_2021-06-23-11-54-27-CambodiaGCE_VLPconctest_plate1_20210915_1542" -m "pysero_analysis_config.xlsx" in debug mode, this will reproduce the error.
Expected behavior
Since the metadata and config is accurately populated in this file, this should lead an output of standard curves with hue = antigen and subplots separated by serum ID. This png file should be located in the output folder and titled fig__mean.png
Operating environment (please complete the following information):

OS:  Jetson Nano
Versions of python packages: pandas 1.3.2 and openpyxl 3.0.7

I addressed this issue in the latest commit in the jn-edits branch. Necessary steps included changing dtype to object when pandas.read_excel is executing in read_plate_info and well2D_to_df1D and also removing (commented out for now) the #general slicing section of analyze_od.

repo: czbiohub/pysero


text:
Pypi setup changes

Use travis tag to build the pypi package

Pull Request Test Coverage Report for Build 71

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 50.858%

Totals

Change from base Build 66:
0.0%

Covered Lines:
504

Relevant Lines:
991

💛  - Coveralls

authors: coveralls d-Rickyy-b

repo: d-Rickyy-b/pastepwn


text:
Allow to specify a concrete conan profile and make a custom profile default

The user may already be using conan and maybe, the default profile is incompatible with the needs of skbuild_conan.
Thus, it may be smart, not to use the default conan profile but create a separate skbuild_conan profile. When doing this, we could also allow to specify one explicitly. Note that users that need this usually would know how to work around problems, but would still be nice.
Additionally, one could think about allowing to specify a separate folder for installing the dependencies. This is not always a smart move because C++-dependencies can take a very long time to compile.  In some cases, it may be useful if the installation fails and nobody knows why.

Done v1.0.0

repo: d-krupke/skbuild-conan


text:
🛑 Demo Risk Evaluation Web is down

In e13c553, Demo Risk Evaluation Web ($DEMO_EVALUATION) was down:

HTTP code: 503
Response time: 531 ms

Resolved: Demo Risk Evaluation Web is back up in 66b5669.


text:
Update scalafmt-core to 3.2.1

Updates org.scalameta:scalafmt-core from 2.7.5 to 3.2.1.
GitHub Release Notes - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.scalameta", artifactId = "scalafmt-core" } ]

labels: library-update, early-semver-major, semver-spec-major, commit-count:1

Superseded by #185.


text:
Update cats-core to 2.4.2

Updates org.typelevel:cats-core from 2.2.0 to 2.4.2.
GitHub Release Notes - Changelog - Version Diff
I'll automatically update this PR to resolve conflicts as long as you don't change it yourself.
If you'd like to skip this version, you can just close this PR. If you have any feedback, just mention me in the comments below.
Configure Scala Steward for your repository with a .scala-steward.conf file.
Have a fantastic day writing Scala!

Files still referring to the old version number
The following files still refer to the old version number (2.2.0).
You might want to review and update them manually.
build.sbt
website/package-lock.json

Ignore future updates
Add this to your .scala-steward.conf file to ignore future updates of this dependency:
updates.ignore = [ { groupId = "org.typelevel", artifactId = "cats-core" } ]

labels: library-update, semver-minor, old-version-remains

Superseded by #77.


text:
d3.forceFix?

A temporary force for fixing nodes during drag. Something like this:
d3.forceFix = function(node, x, y) {
  x = x == null ? d3.event.x : +x;
  y = y == null ? d3.event.y : +y;
  return function() {
    node.x = x, node.y = y, node.vx = node.vy = 0;
  };
};

d3.event is defined in d3-selection and not available here. 😦

license: isc


text:
feat: adding a repeat series

see #41
@chrisprice would be good to get a bit of feedback on the implementation. I'll update the docs in a bit.

@chrisprice I've added an orient property, should all be done now.


text:
fix: 解决 Editor 在 Modal 组件中报错

解决 Antd 5，Editor 作为内部元素的渲染 Modal 中，会直接报错的问题

这是在解决什么问题？

这是在解决什么问题？
问题：项目 components 里封装的 editor (富文本) 组件，如果直接在 Modal (弹窗) 组件中直接引用，会直接报错
原因：antd 5 Modal 组件的渲染时序，是随  React 生命周期走，所以 Modal 中的内部组件 (使用 editor 作为内部组件)，也应随 React 生命周期
解决：通过 useEffect 把 editor 渲染时序与 React 生命周期 同步，避免直接 modal 直接引入 editor，从而报错，无法运行


text:
Glitchy behaviour in Safari

I'm using MacOSX Yosemite running Safari 9.xx and I'm noticing some slight "flickering" when scrolling to the "last section" with a hybrid scroll implementation
You can see a demo below at
http://clients.kendallarneaud.me/evolve/corbin/culture.html
Not sure if this is a possibly related to https://github.com/d4nyll/smartscroll/issues/2
But just mentioning it

Plugin feels very glithy in firefox asswell.

@johant87 @karneaud Would it be possible for you to take a screenshot of the glitchy-ness? It'll be much easier to figure out the issue for me.

plugin is glitchy in chrome as well. https://d4nyll.github.io/smartscroll/#scrollbar on this page.

I think it has to do with multiple scrolls events being launched. @d4nyll I think debouncing to events trigger would work. The same is true about triggering multiple slides, it should be limited to 1 per scroll action


text:
Cannot import

Having some issues and don't know why.
(scraper) ➜  Python-Projects /opt/anaconda3/envs/scraper/bin/python /Users/jeffery/Python-Projects/Draft/twikit.py  Traceback (most recent call last):   File "/Users/jeffery/Python-Projects/Draft/twikit.py", line 1, in <module>     import twikit   File "/Users/jeffery/Python-Projects/Draft/twikit.py", line 7, in <module>     client=twikit.Client(language='en-US') AttributeError: partially initialized module 'twikit' has no attribute 'Client' (most likely due to a circular import)

@juratjan123

@juratjan123 Change the name of your script twikit.py to something else

Ohhh, thanks!! I'm so dumb, lol.


text:
getCodes에 userId 추가

closes #154
코드에 userId 잘 들어간 모씁-

아뇽 기능 잘게 쪼개서 구현중인데 예측을 못했어요ㅋㅋㅋㅋㅋㅋ..

repo: daangn/codepocket


text:
fix(spec): remove plugins

~plugin.executor 내부에서 hooks를 사용하는 경우에 에러가 발생하는 것으로 파악됨~ 아님

~plugin.executor 내부에서 hooks를 사용하는 경우에 에러가 발생하는 것으로 파악됨~ 아님

vercel 배포 성공한 거 보면 맞는 게 아닐지.. 어떻게 디버깅 하셨어요?

vercel은 그냥 clean build하니까 되더라구요 ㅋㅋ
근데 프리뷰 배포가 안열림 ㅠ React 런타임 에러 나요.

Vercel.... ㅂㄷㅂㄷ

authors: irrationnelle tonyfromundefined

repo: daangn/karrotframe


text:
Create NFT troubleshooting

Upon confirming the creation of my NFT I am met with a failed transaction notice as follows

This is my first project and I am really proud of my progress so far, I'm so close to finishing out this project so any assistance that I could get would incredibly appreciated

Go to metamask account setting and reset account, this worked for me always.it hapens when you do local blockchain.

authors: TahaHasnat WillStansill


text:
Please add FreeBSD to the list of platforms where A/B Street works (in README)

The FreeBSD port is now available: https://www.freshports.org/games/abstreet/
Thank you,
Yuri

Thanks so much for setting up this port!

authors: dabreegster yurivict

repo: dabreegster/abstreet


text:
Avoid wasteful compilation of the same cached expression by multiple threads

Found in #205
We should park the other competing threads until the first thread will compile the cached expression. Maybe using ManualResetEventSlim or similar mechanism.

Given the current pipeline https://github.com/dadhi/DryIoc/issues/199#issuecomment-573291497 and the performance numbers we may consider to compile delegate by the first thread and proceed to interpret by the competing threads until the delegate is available.
It seems a better option because only one thread will slow down, others will be responsive. Then eventually all threads will benifit fo compiled delegate speedup. Even better that we don't need any blocking synchronization.

repo: dadhi/DryIoc


text:
Avoid instantiating the CompilerGeneratedAttribute

Not sure if it's still relevant, but anyway here it is.
IsCompilerGenerated extension method doesn't need CompilerGeneratedAttribute instance.
So it can use cheaper IsDefined method to check whether the attribute is defined.
Quick and dirty benchmark shows that it's faster indeed.

For a type that's compiler-generated:

For a type that's not compiler-generated:

Uh-oh, looks like some .NET platform doesn't have this handy IsDefined method.
That's weird, I remember using it back in .NET 2.0 days:
https://docs.microsoft.com/ru-ru/dotnet/api/system.reflection.memberinfo.isdefined?view=netframework-2.0

Thank you.  Faster check is  cool indeed.

authors: dadhi yallie


text:
AOE Mining Tools break bedrock ores

When using a mining tool with an AOE, like the Fluxbore from the Thermal Series, the block that the tool is actively mining will drop an item and not break like usual, but any other bedrock ores in the AOE range will drop an item and break leaving a hole to the void.   Playing in the FTB Plexiglass Mountain modpack.  Forge version 40.1.52.  Mod version 1.3.6

This should be fixed now! Reopen if still broken.


text:
[feature] Reverse snapshots sequence and drag-drop

Reverse snapshot sequence is really useful when you have a final drawing and go backward. Or add drag-drop functionality to move snapshots around.

cc @grant-davidson
Yeah, we have lots of ideas for v2. I'm excited.

@mikhailredis - The "Reverse Order" feature has now been released

authors: dai-shi grant-davidson mikhailredis

repo: dai-shi/excalidraw-claymate


text:
run

hi，没学过next 请问这个要怎么才能跑起来 现在跑起来只有hello home 主要想看一下页面长什么样子

beta.vlog-v.com
------------------ 原始邮件 ------------------
发件人: "pz @.>;
发送时间: 2024年8月18日(星期天) 晚上8:38
收件人: @.>;
抄送: @.***>;
主题: [daifuyang/lexical-tts] run (Issue #1)
hi，没学过next 请问这个要怎么才能跑起来 现在跑起来只有hello home 主要想看一下页面长什么样子
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>

这个是我的商业项目，需要好多核心依赖才能使用。你是在学lexical吗？

好的 我是在调研文字转语音（tts）前端方面有关 多音字、停顿之类的的做法 搜到了你的项目 准备研究一下

好的，这个项目确实是干这些事情得。目前已经完成了初步得版本，后续会剥离一个完全得开源版本，欢迎你随时关注。/editor是编辑器，你可以注释授权逻辑查看

authors: daifuyang zephyr-peak

repo: daifuyang/lexical-tts


text:
Instruction for how to turn on/off dark mode

@daisyhann28
plz include instruction for how to turn on/off dark mode for the website

trouble figuring how to do this


text:
How to use ntlm with sharepoint

As I am trying to access Sharepoint 2013 REST api through this swifthttp. My sharepoint rest service is under SSL and using ntlm.
I provided URL and authentication by following code as under
do {
    let opt = try HTTP.GET("https://domain.com", parameters: nil)
    //the auth closures will continually be called until a successful auth or rejection
    var attempted = false
    opt.auth = { challenge in
        if !attempted {
            attempted = true
            return NSURLCredential(user: "user", password: "passwd", persistence: .ForSession)
        }
        return nil //auth failed, nil causes the request to be properly cancelled.
    }
    opt.start { response in
    //do stuff
    }
} catch let error {
    print("got an error creating the request: \(error)")
}

The point is that how we can get response here.

Is there anyone who could help me

I forgot to add that to the new docs, will try to do that shortly. To get the response all you need to do is:
opt.start { response in
do {
let jsonData = try NSJSONSerialization.JSONObjectWithData(response.data, options: NSJSONReadingOptions())
} catch let error1 as NSError {
//do something with the error
}
}

Still it's not working, Can we have discussion through skype of gtalk ?

No, I don't have time for something like that. You still haven't explained what you mean by you "can't get a response" or what the outcome of the example I provided above was other then it didn't work. I am happy to help, but please remember this is my free time I am donating to help out and I don't have any idea what your setup. I need concrete feedback to help troubleshoot the problem.

authors: daltoniam mubashirjavaid

repo: daltoniam/SwiftHTTP


text:
Alpha Input Validation

Validate the users input to only allow positive integers.

Done! I also fixed UI freezes that I saw happening on Android.
Thanks for the report.

authors: christian-sheridan daltonks


text:
Update to raven.js 3.0.5 and expose captureBreadcrumb

Perhaps in the future we can provide more breadcrumb integration, such as logging route transitions for example.
But this commit just exposes the method and bumps the library.

Hi @Ramblurr, thanks for the PR.
I was wondering why we need the captureBreadcrumb method exposed, that is already callable using callRaven. I mean, I can see many reasons, I'm just wondering how required it is, I've not used Sentry for months now 😃

Its not required at all actually, I've been using callRaven in my own project for awhile just that way.
The main benefit is that it exposed the documentation to the user, so they know what to pass in to the function. Also it is consistent with the existing captureException and captureMessage.

Ah I see.
This plugin first intent was to expose as many Raven functions as possible, to make it clear for everyone how Raven is working. Then I realized this was going to be annoying to maintain since any method implementation could be changed at anytime in Raven.js.
That's why I went the other way around, doing the callRaven thing, and never look at Raven implementation. It's dead easy to maintain, and ensures that the plugin will not provoke unexpected behaviour.
Both captureMessage and captureException receive special treat, as they change depending on the build level. If that becomes the case for captureBreadcrumb or any other Raven method, I'd gladly implement it or accept PRs 😃
For now I will decline this one, but we can still bump the version if you want to submit another PR.

Gotcha, I understand your reasoning.
I suppose we should leave the captureException|Message functions to avoid breaking apps.
I'll resubmit with just the raven.js update. Thanks for this addon by the way!

authors: Ramblurr damiencaselli

repo: damiencaselli/ember-cli-sentry


text:
smartalign doesnt handle 'non-complete' segments

^ in that case align to the complete segment/slope

above is closed as part of may rewrite code

repo: damienvermeer/sfl


text:
Use flat file structure in build output

v4 broke the flat file structure previously in v3 we had
import { RemixSSEProvider } from “remix-sse /client
Now we have this
import { RemixSSEProvider } from “remix-sse /dist/client
this happened because I wanted to align the examples directory with how users actually import the project. Therefore I ended up using workspaces to import the library.
The issue is because the local dev version of the project has a different structure to the published output - the symlinks don’t resolve the main index file properly.
potential solutions

Copy build assets and package json over on prepublish - use a script to modify the package json main/types fields accordingly.

Revert to importing ts source files directly in the example repos and resolve build issue we had with remix v2

I prefer option 1 as it keeps the examples in line with actual use

Fixed in #17

repo: dan-cooke/remix-sse


text:
Fix documentation

^

https://rakyll.org/style-packages/


text:
Add Dockerfile linting

It's apparently a thing.
Lint all the things.

Tried a few, they sucked. Not worth it.


text:
作业服务器对应的某条作业点击暂停，然后点击恢复后，任务并没有恢复

作业配置如下
<job:simple id="simpleElasticJob" class="com.xxxx.MyElasticJob" registry-center-ref="regCenter" cron="0/10 * * * * ?" sharding-total-count="1" sharding-item-parameters="0=A" monitor-port="9888"/>
版本2.0.1，lite

自己强行将ej改成jdk1.6导致的

repo: dangdangdotcom/elastic-job


text:
🛑 Rama-Backend is down

In 2f9d352, Rama-Backend (https://systemalpha.net/ramasakti) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Rama-Backend is back up in 0ae503c after 186 days, 6 hours, 29 minutes.

repo: danichrisd/up


text:
Directive  doesn't work as expected inside  tag

Is there a certain way to use md-menu to get it to work inside the md-data-table?

Is it possible to us  inside a  tag? I want to create an actions menu for each row.

repo: daniel-nagy/md-data-table


text:
🛑 Danielbhost is down

In 5fa1443, Danielbhost (https://danielbhost.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Danielbhost is back up in 6bb0964.

repo: danielbParadocs/rangeEventsStatus


text:
Lack of domain when running ExTwilio.Call.all()

when you run ExTwilio.Call.all() to look up all previous calls, it went error due to lack of domain, the error message :
(HTTPotion.HTTPError) {:EXIT, {:badarg, {:gen_server, :call, [#PID<0.401.0>, {:send_req, {{:url, 'http:///2010-04-01/Accounts/xxxxx/Calls.json?PageSize=50&Page=1&PageToken=xxxxx', [], 80, :undefined, :undefined, '/2010-04-01/Accounts/xxxxx/Calls.json?PageSize=50&Page=1&PageToken=xxxxx', :http, :hostname}, [{'Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'}], :get, "", [basic_auth: {'xxxxx', 'xxxx'}], 5000}}, 5000]}}}
if I add domain with that {:url} address, everything works.

Did you set up your configuration as described in the README?
https://github.com/danielberkompas/ex_twilio#configuration

yes, that all set, even api_domain, voice_application_sid
it works fine in Call.create,  but failed on Call.all

I'm seeing the same thing with messages:
ExTwilio.Message.all

** (HTTPotion.HTTPError) {:EXIT, {:badarg, {:gen_server, :call, [#PID<0.423.0>, {:send_req, {{:url, 'http:///2010-04-01/Accounts/xxxxx/Messages.json?PageSize=50&Page=1&PageToken=PASM177e4ff67cd24c5a8d1e134c11b3fc85', [], 80, :undefined, :undefined, '/2010-04-01/Accounts/xxxxx/Messages.json?PageSize=50&Page=1&PageToken=PASM177e4ff67cd24c5a8d1e134c11b3fc85', :http, :hostname}, [{'Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'}], :get, "", [basic_auth: {'xxxxx', 'xxxxx'}], 5000}}, 5000]}}}
[error] GenServer #PID<0.423.0> terminating
** (ArgumentError) argument error
    (kernel) gen_tcp.erl:149: :gen_tcp.connect/4
    (ibrowse) src/ibrowse_http_client.erl:758: :ibrowse_http_client.send_req_1/8
    (stdlib) gen_server.erl:629: :gen_server.try_handle_call/4
    (stdlib) gen_server.erl:661: :gen_server.handle_msg/5
    (stdlib) proc_lib.erl:240: :proc_lib.init_p_do_apply/3
Last message: {:send_req, {{:url, 'http:///2010-04-01/Accounts/xxxxx/Messages.json?PageSize=50&Page=1&PageToken=PASM177e4ff67cd24c5a8d1e134c11b3fc85', [], 80, :undefined, :undefined, '/2010-04-01/Accounts/xxxxx/Messages.json?PageSize=50&Page=1&PageToken=PASM177e4ff67cd24c5a8d1e134c11b3fc85', :http, :hostname}, [{'Content-Type', 'application/x-www-form-urlencoded; charset=UTF-8'}], :get, "", [basic_auth: {'xxxxx', 'xxxxx'}], 5000}}
State: {:state, [], 80, :undefined, #Reference<0.0.6.287>, false, :undefined, [], false, :undefined, false, [], {[], []}, :undefined, :idle, :undefined, "", 0, 0, [], :undefined, :undefined, :undefined, :undefined, false, :undefined, :undefined, "", :undefined, false, 213044, 0, :undefined, :undefined}
    (ex_twilio) lib/ex_twilio/api.ex:19: ExTwilio.Api.handle_response/1
    (ex_twilio) lib/ex_twilio/result_stream.ex:44: ExTwilio.ResultStream.fetch_page/2
    (ex_twilio) lib/ex_twilio/result_stream.ex:57: ExTwilio.ResultStream.process_page/1
       (elixir) lib/stream.ex:1099: Stream.do_resource/5
       (elixir) lib/enum.ex:1486: Enum.reduce/3
       (elixir) lib/enum.ex:2248: Enum.to_list/1
       (elixir) lib/enum.ex:961: Enum.into/2

But if I use stream/0
ExTwilio.Message.stream |> Enum.take(1)

[%ExTwilio.Message{account_sid: "xxxxx",
  api_version: "2010-04-01",
  body: "Sent from your Twilio trial account - testing from elixir",
  date_created: "Thu, 26 May 2016 17:28:44 +0000",
  date_sent: "Thu, 26 May 2016 17:28:44 +0000",
  date_updated: "Thu, 26 May 2016 17:28:44 +0000", direction: "outbound-api",
  error_code: nil, error_message: nil, from: "+xxxxx", num_media: "0",
  num_segments: "1", price: "-0.00750", price_unit: "USD",
  sid: "SM5c7d0a175db24de38591f2e540edf21c", status: "delivered",
  subresource_uri: nil, to: "+xxxxx",
  uri: "/2010-04-01/Accounts/xxxxx/Messages/SM5c7d0a175db24de38591f2e540edf21c.json"}]

A bit more information.
I have 50 messages I can list. If I do ExTwilio.Message.stream |> Enum.take(51) I get the same error. In fact, any number above 50 will get the error. The same error happens with ExTwilio.Message.stream |> Enum.into([]) which is what ExTwilio.Resource.all does.

authors: danielberkompas erickhsiao rlb3


text:
project.cson not working?

I now trying for about an hour to get a local settings file working. I just added the lineHeight as a test, but nothing changes. I don't know what I'm doing wrong.
projectmanager:
  title: 'Newww'
  settings:
    '*':
      editor:
        lineHeight: 5

Is the project added to the the projects.cson file?
Have you reloaded atom?

This is my projects.cson file:
newww:
  title: "Newww"
  paths: [
    "C:\\Users\\Levin\\Documents\\Projekte\\SOME_SECRET_PATH\\Newww\\client"
  ]

Ahh, sorry, just noticed what is wrong. Local settings skips the first key, so it should be:
settings:
    '*':
      editor:
        lineHeight: 5

Now it's working. Thanks!

authors: DerNivel danielbrodin

repo: danielbrodin/atom-project-manager


text:
CoreData transformer example

Hello! Last one for today.
I was not able to get a clear answer online as to what transformer to use for the NSAttributedString be saved directly to CoreData as a Transformable property. First of all, is this a recommended approach? Any benefits to persisting the data some other way in CoreData?
It has seemed to work for me so far, but I don't know what the best approach it to persist the NSAttributedString.
I thought it would be a common topic, but did not get a good answer. But after much investigation online, I found this code:
import Foundation
import UIKit
import CoreData

@objc(NSAttributedStringTransformer)
class NSAttributedStringTransformer: NSSecureUnarchiveFromDataTransformer {
    override class var allowedTopLevelClasses: [AnyClass] {
        return super.allowedTopLevelClasses + [NSAttributedString.self]
    }
}

Thanks in advanced for your guidance.
David Alvarez
info@davidalvarezdev.com
EDIT: I apologize that this issue might not be directly related to the development of your package. I just felt that getting a recommendation from this community would be a the beast approach, and that many would benefit from a post like this here, seeing that it is a very common way to persist data. I am not looking for specific code from anyone, just a thumbs up that this is a approach to persist data is a good idea.

That's great @karlmira - thanks for sharing!
Closing this.

authors: DavidAlvarezDev danielsaidi

repo: danielsaidi/RichTextKit