text:
culture feed agenda theme facets

Hi,
In the previous version of the culture feed module, there was a "what" facet block(cnapi module).
This block allowed faceted filtering based on the theme/type of the activities on search pages.
In the current culture feed module I can't seem to find it in code or configuration.
Has this feature been removed?
If yes, Is it possible to rebuild it myself?
Frank

Hi Frank,
It has been replaced by "Culturefeed search: facet Type" block, configurable on /admin/structure/block/manage/culturefeed_search_ui/facet-eventtype/configure (it's on of the facets provided with the categories from our categorisation web service https://github.com/cultuurnet/culturefeed/wiki/Culturefeed-Search-UI-Block-Facet)
If the highest level (Doen, Kijken en luisteren, ...) is irrelevant you can choose to show only the second level.

In addition:

in case you don't see the level configuration for the eventtype facet, be sure to disable the "Compatibility markup" checkbox on ~/admin/config/culturefeed/search-ui
there's also a "Culturefeed search: facet Theme" block with a setting to make it only visible when first an eventtype has been chosen. These 2 blocks together will work more or less the same as the cnapi "What" facet block.

hi,
Thx for the feedback.
But in my local install I have the following results:
1: "Culturefeed search: facet Type" block  retruns only events and no sub items(tried all the hierarchy options).
2: "Culturefeed search: facet Theme" -> cannot find this block in the interface or the code, does this still exist?

1: What settings did you use for this block and for the CultureFeed Search UI module. Then we can try to reproduce this behavior. Normally it should work with both "Compatibility markup" enabled or disabled.
2: When you're in a dutch interface this block is translated to "Culturefeed search: facet Thema". Probably this solves this issue. It's on ~/admin/structure/block/manage/culturefeed_search_ui/facet-theme/configure
Have a look at: http://m.uitinvlaanderen.be/agenda/search
Is this the desired behavior for types and themes?

ok,
I can view the configuration for the block, but the block itself is not
visible in the block list.
When i look in the hook_block_info (search_ui) i can't find its declaration.
If i add it there manualy, I can add the block to a page, but in a broken
state.
I cloned the latest version from github btw.
On Fri, Jan 16, 2015 at 10:00 AM, lukdens notifications@github.com wrote:

1: What settings did you use for this block and for the CultureFeed Search
UI module. Then we can try to reproduce this behavior. Normally it should
work with both "Compatibility markup" enabled or disabled.
2: When you're in a dutch interface this block is translated to
"Culturefeed search: facet Thema". Probably this solves this issue. It's on
~/admin/structure/block/manage/culturefeed_search_ui/facet-theme/configure
Have a look at: http://m.uitinvlaanderen.be/agenda/search
Is this the desired behavior for types and themes?
—
Reply to this email directly or view it on GitHub
https://github.com/cultuurnet/culturefeed/issues/31#issuecomment-70225467
.

Hi Frank
I think I know what's going wrong. This blocks won't show up if there are no terms (types, themes) in your local db. To import all terms you can use command "drush csit". To import all cities, use "drush csic".
See https://github.com/cultuurnet/culturefeed/wiki/Culturefeed-Search-Drush
Hope this will do the trick :-)
Luk

Same for the eventtype block btw. So probably you were looking at the "entity type" block if you only saw "events" in it.

Ok,
Thank you for the information, the theme block became visible in the list after doing the drush terms import. Should have imported them first before looking for the filter blocks.
thx

authors: frankbaele lukdens svenhoutmeyers

repo: cultuurnet/culturefeed


text:
301 redirects loop

When in agenda/search as soon as I filter on eg. Type, the url redirects to agenda/doen.
However I the page never loads because I get stuck in an endless redirect loop (301).
When I comment out the redirect rule (see link below) everything seems to work correct.
culturefeed_agenda.module : line 964
What seems to happen is:

the $rewrite is set To true (because agenda/bezoeken != agenda/search )
the url is redirected
the $rewrite is set To true(because agenda/bezoeken != agenda/search )
url is redirected again ...
...

Don't know If it has to do with something set up in our site or that this is a general issue.

Hi @bregtemundo
This is not the default behaviour of the redirects in the culturefeed_agenda module, as you can see on http://www.culturefeed.be/agenda/bezoeken
It looks like there is a custom URL redirect or alias active on the agenda/search path in your site that is causing the loop. Maybe it's just a matter of ignoring the agenda/search path in the module that is trying to do the additional redirect.
Can you verify this first and let us know when you find something? It can be interesting to know for other developers too.

Indeed it was a conflict with another module. In my case it was the https://www.drupal.org/project/menu_trail_by_path module , and more particular it calling the drupal function :
https://api.drupal.org/api/drupal/includes!path.inc/function/drupal_get_normal_path/7 .

source: gharchive/issue

authors: bregtemundo lukdens

license_type: permissive

license_source: bigquery


text:
python MOFA taking leafcutter input create duplicate rows on the output and stop peer from working

The MOFA2 module contains a python step and a R step, where information is transfer using a hd5 file.
When the python step are done, it will save the model into the hd5 file using its own functionent.save(), where ent is a class governing the MOFA2 process.  However, this saving of hd5 file changes some of the leafcutter id. The number of unique ID are changed, as demonstrated below:
ent.save('/mnt/vast/hpc/csg/xqtl_workflow_testing/finalizing/output/peer_debug/problem_peer.PEER_MODEL.hd5')
filename = "/mnt/vast/hpc/csg/xqtl_workflow_testing/finalizing/output/peer_debug/problem_peer.PEER_MODEL.hd5"
data1 = h5py.File(filename, "r")["features"]["view0"][()]
len(set(list(ent.data_opts["features_names"][0])))
[71]:
286467
[69]:
len(set(list(data1)))
[69]:
285779

This issue prevents the R step from preceding. In the entry point of its R step, there is a QC check dedicated to this duplication of ID, therefore I suspect this issue could have happened before to others.

It is likely that the issue is similar to
https://github.com/bioFAM/MOFA2/issues/91

Indeed this issue is caused by truncation of file name.
Following are the original ID
'chr3:125766818:125848253:clu_64950_+:ENSG00000284624',
 'chr3:125766818:125848253:clu_64950_+:ENSG00000284660']

But after saving to the hd5, it became
chr3:125766818:125848253:clu_64950_+:ENSG000002846_view0

At this point, there  are two things we can do

Leveraging the fact that the order are the same. At the R step we create a custom R function that load the model, added back the right id, then go through the QC
As we know what the problem is, I can try to modify the python code of the "ent.save()" which removes the truncation limit.

solution 1 is ugly but easy. solution 2 may involved undetermined amount of obstacle

I suspect that truncation happened prior to save. Maybe you can look into the ent object and see if we can fix it there? For the time being the ugly option of 1 is acceptable because it looks 13 days ago they added that to the milestone of next release. It should be fixed very soon.

I found a third solution, that is after ent save the hd5, open it again and put in the right info.  completing it now.

Fixed in the new PR

Alright, this looks like an ugly version of solution 2 above which is fine as a temporary solution. Let's keep it for now until they fix it later with MOFA2.

repo: cumc/xqtl-pipeline

license: MIT

license_source: github-api


text:
Sums of Boolean arrays lead to compiling errors

Description
When attempting to use the median_filter function from cupyx.scipy.ndimage I kept encountering compiling errors that lead me to a part of the code that was attempting to sum a boolean array into an integer. From playing around with the sums on Boolean arrays I found that cupy ndarrays cannot sum on boolean arrays which makes sense as you are trying to cast a boolean type to an integer.  Casting the array as an integer array prior to summing seems to solve the problem but I am not sure if I am missing something additional to this.
Is there a way to perform the sums without the need to cast or is that necessary? I can open a pull request and fix the casting for the median_filter function but I am not sure if there are other functions that are attempting to sum boolean arrays into integers.
To Reproduce
import cupy
import numpy
from cupyx.scipy.ndimage import median_filter
data_cp = cupy.asarray([[True,True,True],[True,True,True],[True,True,True]])
print(data_cp.astype(numpy.int64).sum())
print(data_cp.sum())
image_cp = cupy.random.randint(0,high=10, size=(50,50))
median_filter(image_cp, size=3, mode='constant')
Installation
Conda-Forge (conda install ...)
Environment
OS                           : Windows-10-10.0.19041-SP0
Python Version               : 3.10.12
CuPy Version                 : 12.2.0
CuPy Platform                : NVIDIA CUDA
NumPy Version                : 1.23.1
SciPy Version                : 1.8.1
Cython Build Version         : 0.29.36
Cython Runtime Version       : None
CUDA Root                    : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8
nvcc PATH                    : C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\nvcc.EXE
CUDA Build Version           : 11020
CUDA Driver Version          : 12020
CUDA Runtime Version         : 11080
cuBLAS Version               : (available)
cuFFT Version                : 10900
cuRAND Version               : 10300
cuSOLVER Version             : (11, 4, 1)
cuSPARSE Version             : (available)
NVRTC Version                : (11, 8)
Thrust Version               : 101000
CUB Build Version            : 101000
Jitify Build Version         :
cuDNN Build Version          : 8800
cuDNN Version                : 8201
NCCL Build Version           : None
NCCL Runtime Version         : None
cuTENSOR Version             : 10700
cuSPARSELt Build Version     : None
Device 0 Name                : NVIDIA A100 80GB PCIe
Device 0 Compute Capability  : 80
Device 0 PCI Bus ID          : 0000:3D:00.0
Device 1 Name                : NVIDIA A100 80GB PCIe
Device 1 Compute Capability  : 80
Device 1 PCI Bus ID          : 0000:41:00.0
Device 2 Name                : NVIDIA RTX A6000
Device 2 Compute Capability  : 86
Device 2 PCI Bus ID          : 0000:1A:00.0
Device 3 Name                : NVIDIA RTX A6000
Device 3 Compute Capability  : 86
Device 3 PCI Bus ID          : 0000:1B:00.0
Device 4 Name                : NVIDIA RTX A6000
Device 4 Compute Capability  : 86
Device 4 PCI Bus ID          : 0000:1E:00.0
Device 5 Name                : NVIDIA RTX A6000
Device 5 Compute Capability  : 86
Device 5 PCI Bus ID          : 0000:3E:00.0
Additional Information
No response

The problem could not be reproduced on our end. Could you share the details of the compile error?

Running the following
import cupy
import numpy
from cupyx.scipy.ndimage import median_filter

data_cp = cupy.asarray([[True,True,True],[True,True,True],[True,True,True]])
print(data_cp.astype(numpy.int64).sum()) #this prints 9
print(data_cp.sum()) #this causes the error

gives out the following:
CompileException                          Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_22284\2751595517.py in <module>
      5 data_cp = cupy.asarray([[True,True,True],[True,True,True],[True,True,True]])
      6 print(data_cp.astype(numpy.int64).sum())
----> 7 print(data_cp.sum())
      8
      9 image_cp = cupy.random.randint(0,high=10, size=(50,50))

cupy\_core\core.pyx in cupy._core.core._ndarray_base.sum()

cupy\_core\core.pyx in cupy._core.core._ndarray_base.sum()

cupy\_core\_routines_math.pyx in cupy._core._routines_math._ndarray_sum()

cupy\_core\_reduction.pyx in cupy._core._reduction._SimpleReductionKernel.__call__()

cupy\_core\_reduction.pyx in cupy._core._reduction._AbstractReductionKernel._call()

cupy\_core\_cub_reduction.pyx in cupy._core._cub_reduction._try_to_call_cub_reduction()

cupy\_core\_cub_reduction.pyx in cupy._core._cub_reduction._launch_cub()

cupy\_core\_cub_reduction.pyx in cupy._core._cub_reduction._cub_two_pass_launch()

cupy\_util.pyx in cupy._util.memoize.decorator.ret()

cupy\_core\_cub_reduction.pyx in cupy._core._cub_reduction._SimpleCubReductionKernel_get_cached_function()

cupy\_core\_cub_reduction.pyx in cupy._core._cub_reduction._create_cub_reduction_function()

cupy\_core\core.pyx in cupy._core.core.compile_with_cache()

~\anaconda3\envs\darfix10\lib\site-packages\cupy\cuda\compiler.py in _compile_module_with_cache(source, options, arch, cache_dir, extra_source, backend, enable_cooperative_groups, name_expressions, log_stream, jitify)
    494             name_expressions, log_stream, cache_in_memory)
    495     else:
--> 496         return _compile_with_cache_cuda(
    497             source, options, arch, cache_dir, extra_source, backend,
    498             enable_cooperative_groups, name_expressions, log_stream,

~\anaconda3\envs\darfix10\lib\site-packages\cupy\cuda\compiler.py in _compile_with_cache_cuda(source, options, arch, cache_dir, extra_source, backend, enable_cooperative_groups, name_expressions, log_stream, cache_in_memory, jitify)
    537     if base is None:
    538         # This is for checking NVRTC/NVCC compiler internal version
--> 539         base = _preprocess('', options, arch, backend)
    540         _empty_file_preprocess_cache[env] = base
    541

~\anaconda3\envs\darfix10\lib\site-packages\cupy\cuda\compiler.py in _preprocess(source, options, arch, backend)
    432     elif backend == 'nvcc':
    433         try:
--> 434             result = compile_using_nvcc(source, options, arch, 'preprocess.cu',
    435                                         code_type='ptx')
    436         except CompileException as e:

~\anaconda3\envs\darfix10\lib\site-packages\cupy\cuda\compiler.py in compile_using_nvcc(source, options, arch, filename, code_type, separate_compilation, log_stream)
    374                     cex.dump(sys.stderr)
    375
--> 376                 raise cex
    377         else:  # two steps: compile to object and device-link
    378             cmd_partial = cmd.copy()

CompileException: `nvcc` command returns non-zero exit status.
command: ['C:\\Program', 'Files\\NVIDIA', 'GPU', 'Computing', 'Toolkit\\CUDA\\v11.8\\bin\\nvcc.EXE',
'-gencode=arch=compute_80,code=sm_80', '--ptx', '-DFIRST_PASS=1', '--std=c++11',
'-IC:\\Users\\dfuser\\anaconda3\\envs\\darfix10\\lib\\site-packages\\cupy\\_core\\include',
'-IC:\\Users\\dfuser\\anaconda3\\envs\\darfix10\\lib\\site-packages\\cupy\\_core\\include\\cupy\\_cuda\\cuda-11',
'-IC:\\Program Files\\NVIDIA GPU Computing Toolkit\\CUDA\\v11.8\\include',
'-ftz=true', 'C:\\Users\\dfuser\\AppData\\Local\\Temp\\tmpdeen0owy\\preprocess.cu']
return-code: 1
stdout/stderr:
nvcc fatal   : Could not set up the environment for Microsoft Visual Studio using 'C:/Program Files (x86)/Microsoft Visual Studio/2022/BuildTools/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/../../../../../../../VC/Auxiliary/Build/vcvars64.bat'

The same problem arises from the
image_cp = cupy.random.randint(0,high=10, size=(50,50))
median_filter(image_cp, size=3, mode='constant')

But this one indicates the problem is arising from the _rank_filter function.
CompileException                          Traceback (most recent call last)
~\AppData\Local\Temp\ipykernel_22284\2138370602.py in <module>
      8
      9 image_cp = cupy.random.randint(0,high=10, size=(50,50))
---> 10 median_filter(image_cp, size=3, mode='constant')

~\anaconda3\envs\darfix10\lib\site-packages\cupyx\scipy\ndimage\_filters.py in median_filter(input, size, footprint, output, mode, cval, origin)
    964     .. seealso:: :func:`scipy.ndimage.median_filter`
    965     """
--> 966     return _rank_filter(input, lambda fs: fs//2,
    967                         size, footprint, output, mode, cval, origin)
    968

~\anaconda3\envs\darfix10\lib\site-packages\cupyx\scipy\ndimage\_filters.py in _rank_filter(input, get_rank, size, footprint, output, mode, cval, origin)
   1024     if footprint.size == 0:
   1025         return cupy.zeros_like(input)
-> 1026     filter_size = int(footprint.sum())
   1027     rank = get_rank(filter_size)
   1028     if rank < 0 or rank >= filter_size:

I thought it was originally a problem with installation on my end so I reinstalled Nvidia Toolkit 11.8 and cupy from conda to see if that change anything but still received the same outputs.

What happens when you run nvcc --version? It seems to be caused by Visual Studio not set up (or installed) correctly, so nvcc itself isn't working.

I thought that might be as well and went through the reinstallation of visual studios ensuring I had all the necessary C++ compilers. Running nvcc --version brings me to:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0

I also only have problems with the summing of the boolean arrays. I can run other parts of cupy with no problems so if there was a problem with the compiler it seems that more things should have been broken.

authors: ekisiel97 kmaehashi leofang

repo: cupy/cupy


text:
[backport] Code fix for {cu, roc}SOLVER

Backport of #5558 by @leofang

[automatic post] Jenkins, test this please.

source: gharchive/pull-request


text:
[backport] Skip appending --compiler-bindir if cl.exe is already on PATH

Backport of #6510 by @kmaehashi

/test mini

authors: chainer-ci kmaehashi


text:
Typo fix

I think it should be compliant, not complaint :D

/test mini

authors: betatim emcastillo


text:
After the 2nd stage monster is unlocked, if we give wrong input at the very next level the 1st stage of the monster is displayed.

Describe the bug
When the user unlocks 2nd stage of the monster and give wrong input in the very next level the 1st stage of monster is displayed. (In V31)
To Reproduce
Steps to reproduce the behavior:

Start the Apache and MySQL server and open the localhost.
In the Curious Learning content go to Feed the Monster game and click on play button.
Go to level selection screen and play the game, unlock the 2nd stage monster.
At the very next level give the wrong input.

Expected behavior
Once the 2nd stage of monster is unlocked the previous stage of the monster should not be displayed.
Screenshots

Desktop (please complete the following information):
• OS: Windows 10
• Browser: Chrome
• Version: N/A
Additional context
N/A (edited)

Does the monster remain in the first evolution stage after this happens? Or does it return to the second evolution stage on the next question?

@burrage The monster returns to the current stage when we give proper answer in the next level.


text:
Password incorrect

Hello,
today i updated on the latest version, 3.4.3, After Reboot notify.alexa were removed. I deinstalled Alexa Media Player, did a Reboot and made a new installation. Now it says "Password wrong". I changed the Password but it won't work.
Also Alexa Media doesn't send me 2-Factor-Codes for a long time. I'm using another Browser to let me send a 2-Factor-Code for Login in on Home Assistant.
But acutally it says "Password wrong"

Type in the correct password. If it's in your configuration.yaml you need to change it too. We're sending you the message from Amazon.

Type in the correct password. If it's in your configuration.yaml you need to change it too. We're sending you the message from Amazon.

authors: BeBsCh alandtse


text:
Error: Too Many Requests

I'm getting the "Too Many Requests"-error when using the following script. The idea is to first raise the volume, issue a TTS and then lower the volume again.
Error: "alexapy.errors.AlexapyTooManyRequestsError: Too Many Requests"
Hass Core version: 0.106.5
Script: https://pastebin.com/esNzvdjL
Are there any way to overcome this issue ?
Best regards
Joe

I had this as well on alexa_media_player 2.5.8 when calling more than once to Alexa in one script or automation. I rolled back to 2.5.4 and no issues running those automation now.

Please fill out the template.

Describe the bug
I'm getting the "Too Many Requests"-error when using this script https://pastebin.com/esNzvdjL. The idea is to first raise the volume, issue a TTS and then lower the volume again.
To Reproduce
Run the script above, or something similar.
Expected behavior
I expected no "Too Many Requests"-errors.
System details
Home-assistant (version): Core-edition, 0.106.5
Hassio (Yes/No): No
alexapy after an update. This looks like a HA bug). No
alexa_media (version from const.py or HA startup): 2.5.8
alexapy (version from pip show alexapy or HA startup): 1.5.2
Logs

2020-03-27 20:56:07 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall script.doorbell_alexa_say (c:6eb772ef606e429b870cc11511691246)>
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 1238, in _safe_execute
await self._execute_service(handler, service_call)
File "/usr/src/homeassistant/homeassistant/core.py", line 1253, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 207, in service_handler
await script.async_turn_on(variables=service.data, context=service.context)
File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 288, in async_turn_on
raise err
File "/usr/src/homeassistant/homeassistant/components/script/init.py", line 283, in async_turn_on
await self.script.async_run(kwargs.get(ATTR_VARIABLES), context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 247, in async_run
await self._handle_action(action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 331, in _handle_action
await self._actions[_determine_action(action)](action, variables, context)
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 413, in _async_call_service
context=context,
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 101, in async_call_from_config
domain, service_name, service_data, blocking=blocking, context=context
File "/usr/src/homeassistant/homeassistant/core.py", line 1230, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1253, in _execute_service
await handler.func(service_call)
File "/usr/src/homeassistant/homeassistant/components/notify/init.py", line 119, in async_notify_message
await notify_service.async_send_message(**kwargs)
File "/config/custom_components/alexa_media/notify.py", line 198, in async_send_message
await asyncio.gather(*tasks)
File "/config/custom_components/alexa_media/helpers.py", line 146, in wrapper
result = await func(*args, **kwargs)
File "/config/custom_components/alexa_media/media_player.py", line 1015, in async_send_announcement
message, customer_id=self._customer_id, **kwargs
File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 519, in send_announcement
skillId="amzn1.ask.1p.routines.messaging",
File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 296, in send_sequence
await self.run_behavior(node_data)
File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 247, in run_behavior
await self._post_request("/api/behaviors/preview", data=data)
File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 118, in _post_request
return await self._request("post", uri, data)
File "/usr/local/lib/python3.7/site-packages/alexapy/alexaapi.py", line 111, in _request
raise AlexapyTooManyRequestsError(response.reason)
alexapy.errors.AlexapyTooManyRequestsError: Too Many Requests

Please enable alexapy debug logs. It should be queuing the multiple requests so it only issues a single command.

How do I enable the debug logs?

The template has a link to the FAQ which says how to do it.

I can confirm tho a one second delay between commands seems to fix this. Used to work before but I am fine with that. I use it in Node Red and had the same issue.

I can also confirm that if you add a delay of 1 second between commands it solves the problem.

I had this issue too, for me it seemed to be caused by having the media_player.volume_set service right before a TTS.
This was my automation that was giving the "too many requests" error in log and failing (since v2.5.7 I believe - before that it worked fine). Once I commented out the volume_set part it continues to works fine like before.
    action:

      # - service: media_player.volume_set
      #   entity_id: media_player.echo_3g
      #   data:
      #     volume_level: '1.0'

      - service: notify.alexa_media
        data:
          data:
            type: tts
          target:
            - media_player.echo_3g
            - media_player.kitchen_echo_dot
          message: "Hallway door opened."

I had this issue too, for me it seemed to be caused by having the media_player.volume_set service right before a TTS.
This was my automation that was giving the "too many requests" error in log and failing (since v2.5.7 I believe - before that it worked fine). Once I commented out the volume_set part it continues to works fine like before.
    action:

      # - service: media_player.volume_set
      #   entity_id: media_player.echo_3g
      #   data:
      #     volume_level: '1.0'

      - service: notify.alexa_media
        data:
          data:
            type: tts
          target:
            - media_player.echo_3g
            - media_player.kitchen_echo_dot
          message: "Hallway door opened."

Same here

If you add a 1 second delay after setting the volume (between service calls) then it will work
On Thursday, April 2, 2020, 12:44:14 PM EDT, Sean Mooney notifications@github.com wrote:
I had this issue too, for me it seemed to be caused by having the media_player.volume_set service right before a TTS.
This was my automation that was giving the "too many requests" error in log and failing (since v2.5.7 I believe - before that it worked fine). Once I commented out the volume_set part it continues to works fine like before.
action:
  # - service: media_player.volume_set
  #   entity_id: media_player.echo_3g
  #   data:
  #     volume_level: '1.0'

  - service: notify.alexa_media
    data:
      data:
        type: tts
      target:
        - media_player.echo_3g
        - media_player.kitchen_echo_dot
      message: "Hallway door opened."

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

Add a one second delay between service calls and then it will work.
On Thursday, April 2, 2020, 12:52:07 PM EDT, jrnhrmn notifications@github.com wrote:
I had this issue too, for me it seemed to be caused by having the media_player.volume_set service right before a TTS.
This was my automation that was giving the "too many requests" error in log and failing (since v2.5.7 I believe - before that it worked fine). Once I commented out the volume_set part it continues to works fine like before.
action:
  # - service: media_player.volume_set
  #   entity_id: media_player.echo_3g
  #   data:
  #     volume_level: '1.0'

  - service: notify.alexa_media
    data:
      data:
        type: tts
      target:
        - media_player.echo_3g
        - media_player.kitchen_echo_dot
      message: "Hallway door opened."

Same here
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

How will the delay of 1 second look like in the automation?

- service: media_player.volume_set    data:       entity_id: media_player.dot_master      volume_level: 0.5    - delay: '00:00:02'    - service: media_player.play_media    entity_id: media_player.dot_master    data:      media_content_id: 'Sounds of nature white noise sound effects' #Gentle Birds and Forest Stream for Relaxation Meditation' #Bee-Eater: Calls in Cave      media_content_type: 'AMAZON_MUSIC'
I hope this helps.
Thanks
On Monday, April 6, 2020, 08:49:29 AM EDT, DKAutomater <notifications@github.com> wrote:

How will the delay of 1 second look like in the automation?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.

I too was received this error, I put a delay of 0.5s

Looks like it's a feature now https://github.com/custom-components/alexa_media_player/commit/1e8881cfebf561dc4954d11f9a4003977936d380

Please note the queue delay option is a different solution then adding delays to commands in scripts. You can try tweaking both.

I'll close this issue since we have multiple ways to resolve it.


text:
fix: updated gist version in podspec

Complete each step to get your pull request merged in. Learn more about the workflow this project uses.

[ ] Assign members of your team to review the pull request.
[ ] Wait for pull request status checks to complete. If there are problems, fix them until you see that all status checks are passing.
[ ] Wait until the pull request has been reviewed and approved by a teammate
[ ] After pull request is approved, and you determine it's ready add the label "Ready to merge" to the pull request. A bot will squash and merge the pull request for you after the label is added.

Pull request title looks good 👍!
If this pull request gets merged, it will cause a new release of the software. Example: If this project's latest release version is 1.0.0. If this pull request gets merged in, the next release of this project will be 1.0.1. This pull request is not a breaking change.
All merged pull requests will eventually get deployed. But some types of pull requests will trigger a deployment (such as features and bug fixes) while some pull requests will wait to get deployed until a later time.
To merge this pull request, add the label Ready to merge to this pull request and I'll merge it for you.

This project uses a special format for pull requests titles. Expand this section to learn more (expand by clicking the ᐅ symbol on the left side of this sentence)...

This project uses a special format for pull requests titles. Don't worry, it's easy!
This pull request title should be in this format:
<type>: short description of change being made

If your pull request introduces breaking changes to the code, use this format:
<type>!: short description of breaking change

where <type> is one of the following:

feat: - A feature is being added or modified by this pull request. Use this if you made any changes to any of the features of the project.

fix: - A bug is being fixed by this pull request. Use this if you made any fixes to bugs in the project.

docs: - This pull request is making documentation changes, only.

refactor: - A change was made that doesn't fix a bug or add a feature.

test: - Adds missing tests or fixes broken tests.

style: - Changes that do not effect the code (whitespace, linting, formatting, semi-colons, etc)

perf: - Changes improve performance of the code.

build: - Changes to the build system (maven, npm, gulp, etc)

ci: - Changes to the CI build system (Travis, GitHub Actions, Circle, etc)

chore: - Other changes to project that don't modify source code or test files.

revert: - Reverts a previous commit that was made.

Examples:
feat: edit profile photo
refactor!: remove deprecated v1 endpoints
build: update npm dependencies
style: run formatter

Need more examples? Want to learn more about this format? Check out the official docs.
Note: If your pull request does multiple things such as adding a feature and makes changes to the CI server and fixes some bugs then you might want to consider splitting this pull request up into multiple smaller pull requests.

:tada: This PR is included in version 1.2.4 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

authors: ami-aman ami-ci ami-oss-ci

repo: customerio/customerio-ios


text:
pretrained resnet152 h5 file

I only find load_features.ipynb for loading pre-trained features from Faster RCNN, but I cannot find preprocess files to load pre-trained features from resnet 152.
So, how can I generate h5 files of pre-trained features from resnet 152, if I want to train the model with resnet 152?
Thanks!

Hi @orchardchang ,
For Faster RCNN, we load pre-trained features from files provided from this paper https://github.com/peteanderson80/bottom-up-attention. That's why we need code to move features from tsv files to h5py file which is load_features.ipynb.
For ResNet-152, our dataloader provides 2 ways to deal with images. In the first ways, you can provide our dataloader the folder of images and set use_h5py=False (you can check it in ./dense_coattn/data/dataset.py). The second method is you can load the image into h5py first (using ./preprocess/load_img.py) and then feed the h5py file into our dataloader with use_h5py=True. The second method is faster but requires more memory than the first one but both of them works similarly.

Thanks for your kind reply!

authors: kienduynguyen orchardchang

repo: cvlab-tohoku/Dense-CoAttention-Network


text:
launch AHK help

Would be great to open the help file AutoHotkey.chm from within VSCode.

version 2.6.0 has been support, when active editor language is autohotkey, press F1 to open document.

This overrides VSCode's default keybinding Show All Commands for opening the Command Palette that I'd gotten so used to.
Can't it be changed to Shift + F1, I don't see that being use as a default keybinding, or just leave it to be accessed from the command palette with AHK: Open AutoHotkey Document?

@fade2gray

press ctrl+shift+p
type 'open keyboard shortcuts'
Add below code to keybindings.json

{
        "key": "shift+f1",
        "command": "document.open",
        "when": "editorLangId == 'ahk'"
}

authors: ElectroLund cweijan fade2gray

repo: cweijan/vscode-autohotkey


text:
in the code, when SpatialTransform_unit is applied

Hello
In every train,
such as train_lvl1, train_lvl2, train_lvl3
not even this "Large deformation Diffeomorphic Image Registration with Laplacian Pyramid Networks"
but "Conditional Deformable Image Registration with Convolutional Neural Networks" github,
transform = SpatialTransform_unit().cuda()
for param in transform.parameters():
param.requires_grad = False
param.volatile = True
is applied even though this variable transform is not applied later in every train.
SpatialTransform_unit() is contained in the each model such as Miccai2020_LDR_laplacian_unit_add_lv1, 2, 3.
I thought if you want to apply only feed-forward, then you should put this code in the model( such as Miccai2020_LDR_laplacian_unit_add_lv1,2,3) instead of put this code outside of the model.
Of course, my opinion is wrong, but it is quite hard for me to understand.
so can I ask why you applied this?
Thank you.

Hi @yoonguusong,
for param in transform.parameters():
param.requires_grad = False
param.volatile = True
The above code has no effect on the transform. In fact, transform does not have any parameters. You can simply remove it. I will clean the code later on.

Thabk you for your comment!!!

authors: cwmok yoonguusong

repo: cwmok/LapIRN


text:
疑似失效

签到任务提示不是活动消息

出现问题的原因是用户主机与超星服务通信延迟比较高。
简单粗暴的方法就是把判定的时间调大。
应该像以前，记录活动列表的数量，从而确定是不是活动消息。
目前该问题让我想到另一个问题：一个课程同一个时间收到多个签到，只会识别到最后一个签到。
（测试方法：设置多个定时签到同时发布）
我改康康

repo: cyanray/cx-auto-sign


text:
DO NOT MERGE: Test verify codeclimate fails linting errors

JUST A TEST, DO NOT MERGE

This was only test.
It worked.  CodeClimate correctly detected the intentional linting error.

repo: cyberark/secretless-broker


text:
Flags to add

[x] is_expired (inverse) https://github.com/cybercog/laravel-eloquent-flag/pull/8
[x] is_closed (inverse) https://github.com/cybercog/laravel-eloquent-flag/pull/9
[x] published_at (classic) https://github.com/cybercog/laravel-eloquent-flag/pull/17
[x] accepted_at (classic) https://github.com/cybercog/laravel-eloquent-flag/pull/18
[x] verified_at (classic) https://github.com/cybercog/laravel-eloquent-flag/pull/19
[x] closed_at (inverse)
[x] approved_at (classic) https://github.com/cybercog/laravel-eloquent-flag/pull/21
[x] is_ended (inverse)
[x] is_draft | is_drafted (inverse)
[ ] is_temp (inverse)
[ ] is_opened (classic)
[x] is_archived (inverse)
[ ] is_disabled (inverse)
[ ] is_enabled (classic)

I think is_ended, is_draft, is_drafted, is_archived, are already in package.

You are right, thank you.

authors: a-komarev jonagoldman

repo: cybercog/laravel-eloquent-flag

license: mit


text:
1.4.2 requires absolute paths support from static storage

I'm using the following static storage:
class S3PipelineStorage(PipelineMixin, S3BotoStorage):
    """S3 storage with pipeline magic"""
    pass

Which is almost the same as the one from pipeline docs  (even simpler because it doesnt use CachedFilesMixin) .
It's fine with 1.3.x but breaks with 1.4.2 because it tries to run sass compiler using absolute path from s3. S3BotoStorage doesn't support absolute paths and throws this long exception:
/home/bender/myapps/trumov/manage.py in <module>()
      8     from django.core.management import execute_from_command_line
      9
---> 10     execute_from_command_line(sys.argv)

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/django/core/management/__init__.pyc in execute_from_command_line(argv)
    383     """
    384     utility = ManagementUtility(argv)
--> 385     utility.execute()

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/django/core/management/__init__.pyc in execute(self)
    375             sys.stdout.write(self.main_help_text() + '\n')
    376         else:
--> 377             self.fetch_command(subcommand).run_from_argv(self.argv)
    378
    379

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/django/core/management/base.pyc in run_from_argv(self, argv)
    286         handle_default_options(options)
    287         try:
--> 288             self.execute(*args, **options.__dict__)
    289         except Exception as e:
    290             if options.traceback or not isinstance(e, CommandError):

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/django/core/management/base.pyc in execute(self, *args, **options)
    336                     not options.get('skip_checks')):
    337                 self.check()
--> 338             output = self.handle(*args, **options)
    339             if output:
    340                 if self.output_transaction:

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/django/core/management/base.pyc in handle(self, *args, **options)
    531         if args:
    532             raise CommandError("Command doesn't accept any arguments")
--> 533         return self.handle_noargs(**options)
    534
    535     def handle_noargs(self, **options):

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.pyc in handle_noargs(self, **options)
    166             raise CommandError("Collecting static files cancelled.")
    167
--> 168         collected = self.collect()
    169         modified_count = len(collected['modified'])
    170         unmodified_count = len(collected['unmodified'])

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/django/contrib/staticfiles/management/commands/collectstatic.pyc in collect(self)
    112             processor = self.storage.post_process(found_files,
    113                                                   dry_run=self.dry_run)
--> 114             for original_path, processed_path, processed in processor:
    115                 if isinstance(processed, Exception):
    116                     self.stderr.write("Post-processing '%s' failed!" % original_path)
/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/pipeline/storage.pyc in post_process(self, paths, dry_run, **options)
     28         from pipeline.packager import Packager
     29         packager = Packager(storage=self)
---> 30         for package_name in packager.packages['css']:
     31             package = packager.package_for('css', package_name)
     32             output_file = package.output_filename

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/pipeline/packager.pyc in pack_stylesheets(self, package, **kwargs)
     94         return self.pack(package, self.compressor.compress_css, css_compressed,
     95                          output_filename=package.output_filename,
---> 96                          variant=package.variant, **kwargs)
     97
     98     def compile(self, paths, force=False):

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/pipeline/packager.pyc in pack(self, package, compress, signal, **kwargs)
    103         if self.verbose:
    104             print("Saving: %s" % output_filename)
--> 105         paths = self.compile(package.paths, force=True)
    106         content = compress(paths, **kwargs)
    107         self.save_file(output_filename, content)

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/pipeline/packager.pyc in compile(self, paths, force)
     97
     98     def compile(self, paths, force=False):
---> 99         return self.compiler.compile(paths, force=force)
    100
    101     def pack(self, package, compress, signal, **kwargs):

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/pipeline/compilers/__init__.pyc in compile(self, paths, force)
     54         else:
     55             with futures.ThreadPoolExecutor(max_workers=multiprocessing.cpu_count()) as executor:
---> 56                 return list(executor.map(_compile, paths))
     57
     58     def output_path(self, path, extension):

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/concurrent/futures/_base.pyc in map(self, fn, *iterables, **kwargs)
    578             for future in fs:
    579                 if timeout is None:
--> 580                     yield future.result()
    581                 else:
    582                     yield future.result(end_time - time.time())

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/concurrent/futures/_base.pyc in result(self, timeout)
    398                 raise CancelledError()
    399             elif self._state == FINISHED:
--> 400                 return self.__get_result()
    401
    402             self._condition.wait(timeout)

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/concurrent/futures/_base.pyc in __get_result(self)
    357     def __get_result(self):
    358         if self._exception:
--> 359             reraise(self._exception, self._traceback)
    360         else:
    361             return self._result

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/concurrent/futures/_compat.pyc in reraise(exc, traceback)
    105     def reraise(exc, traceback):
    106         locals_ = {'exc_type': type(exc), 'exc_value': exc, 'traceback': traceback}
--> 107         exec('raise exc_type, exc_value, traceback', {}, locals_)
/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/concurrent/futures/thread.pyc in run(self)
     59
     60         try:
---> 61             result = self.fn(*self.args, **self.kwargs)
     62         except BaseException:
     63             e, tb = sys.exc_info()[1:]

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/pipeline/compilers/__init__.pyc in _compile(input_path)
     34                 if compiler.match_file(input_path):
     35                     output_path = self.output_path(input_path, compiler.output_extension)
---> 36                     infile = self.storage.path(input_path)
     37                     outfile = self.output_path(infile, compiler.output_extension)
     38                     outdated = compiler.is_outdated(input_path, output_path)

/home/bender/.virtualenvs/trumov/lib/python2.7/site-packages/django/core/files/storage.pyc in path(self, name)
     85         accessed using open() should *not* implement this method.
     86         """
---> 87         raise NotImplementedError("This backend doesn't support absolute paths.")
     88
     89     # The following methods form the public API for storage systems, but with

NotImplementedError: This backend doesn't support absolute paths

@bender314 @ciokan I think I've got a fix for this (see #409). It seems to be working well for us. If you could try it out yourself, that would be helpful.

@brad for me, this fix only delays the error; after copying all the static files to S3, the local .scss file gets compiled into a .css file in the same directory on the local filesystem, instead of compiling the .scss file in S3 to a new .css file in S3.  Then, during the concatenate_and_rewrite step, the .css file is not found on S3 and I hit an exception thrown by the storage backend storages/backends/s3boto.py):
OSError: File does not exist: admin/OpenLayers/theme/default/style.css

Strange, we are not experiencing that, though we are using Less, not Sass

Experiencing the exact same problem using mixins mentioned in docs...
class S3PipelineStorage(PipelineMixin, CachedFilesMixin, S3BotoStorage):
    pass

After debugging, the real problem is that the configured compiler(s) gets called with infile/outfile params as storage related paths, looked up using storage.path() here
So, when not using local file storage, like S3, the paths used by the compiler, i.e. LessCompiler, the paths are storage specific and can't be found by the local less compiler cli command.
Changing path lookup with finders.find() instead of storage.path() like in #409 does not solve the problem later in the chain as @hwkns points out. It only solves the paths for the local cli command.
For other chained mixins, like CachedFilesMixin, to not break and work as expected, the compiled outfile has to be able to be found by the storage.
As far as I can see this can be solved in two ways.
1.
Making it possible configure a Package storage other than self when instantiating here
and then pass along the same storage with the paths here.
Then the compiler should be able to use local paths for the cli command, and later mixins will respect and use related/passed storage for that outfile when reading content.
2.
Create a new CompilerBase.compile() method that instead determines the infile/outfile paths and not in the Compiler.compile._compile. This allows you to override that method in a custom compiler implementation and use finders.find() to get the paths right for the cli compiler.
But, by using this approach, later mixins wont find the compiled file using the storage and you have to save the compiled outfile output using self.storage (S3) last in your compler.compile_file. Maybe implement a compiler.post_process could be a nice solution to handle the storage.save part.

+1 for same error

Fixed in #409.

@cyberdelia did you read the comments here from myself and @lundberg ?

@hwkns I've made a pull request that implements some of my idéas in commented solution 2. Could you try it and see if it solves even your problem?
@cyberdelia I'm still using your partial fix from #409 to not change current master behaviour.

We move fast and this was holding us back, so we use Gulp for static assets now instead of django-pipeline.  If I can find the time, I will roll back to an old commit and try to test this out, but it looks good to me @lundberg.

Yeah this issue is killing us. Thinking about switching off django-pipeline and over to grunt or gulp as well.
I can't believe there aren't any tests for this as I know quite a few people using S3 with their django static assets.

Everything works fine again with pipeline 1.5 (tested with django 1.8). Closing.

authors: adambratt bender314 brad cyberdelia devangmundhra hwkns lundberg

repo: cyberdelia/django-pipeline


text:
Update README.md

I want to update documents one by one.
Signed-off-by: Masayuki Ishii masa213f@gmail.com

There is no uniformity in whether the word "meows" is enclosed in backquotes or not, but this is a minor detail.
Other than that, nothing much to say.

@kmdkuk
I'm enclosing the first meows to emphasize because it is the first definition of the software name.
I don't think I need to emphasize the other parts.

repo: cybozu-go/meows


text:
Profile/optimize traffic page

https://github.com/cyoung/stratux/blob/master/web/plates/js/traffic.js
Locks up on some devices with a large traffic target list.

Is there any further info on reproducing this issue? It may be something that I want to tackle if I can reproduce it somewhat consistently.

@JCBird1012 - it seems to mostly show up on older Android devices. Issue reported on:
LG G6. Android 7.0. Chrome.
Samsung Galaxy Tab A.  Android 7.1.1. Chrome.
You can probably get the code to lock up on any platform if you un-comment this and re-compile:
https://github.com/cyoung/stratux/blob/7340719ae3ebd4c3dd6c8991137bc4bb2f3b1c72/main/gen_gdl90.go#L769-L783
Increase numTargets until it crashes or locks.

Seems like i have the same issue, will report soonest

Traffic Page locks consistently on all platforms, chrome(ium), IE on W7, Firefox, Vivaldi. Happens when target list gets large (and scrolls to next page i think) Interestingly, if you deactivate the wifi on the client side the page  refreshes correctly just before the disconnect! It's making my HW unusable so id appreciate some work here.

I am seeing the traffic page lock up quite frequently.  It does not recover for me after the amount of traffic decreases.  I cannot go to any other pages on the Stratux interface.
Some screenshots showing the amount of traffic.  This was at FL430 just south of Chicago.
iPad IOS 12.3.2

authors: JCBird1012 OEZWONKP crhiles cyoung

repo: cyoung/stratux


text:
Cuba out of memory

Hello there,
first of all thanks for this amazing work, i worked so hard to install it because i'm not familiar to python ( still a good way to learn ! ). i believe the app is near to be fonctionnal.. but still have some error at the end.. i will put some screens if someone can help me out.
Basnet when i load it :

Server when i load it :

app when i load it:

then i try to use the app , and an error occurs
the app seems to be ok :

but...
basnet :

and server :

i dunno where i can change Cuba memory allowed or something like that.. if you guys have any ideas :), sorry for so many screens but i think it's more clear with it.

I have the same problem server error.
"cannot identify image file %r" % (filename if filename else fp)
PIL.UnidentifiedImageError: cannot identify image file 'cut_mask.png'

make sure you run basnet-http and server in localhost or using docker, but i dont know how to use docker, i use localhost for both
when i run the app
first app will send to server and send to basnet and send back to server and send back to phone
i think like that

#24
hope this will help you
scroll down

I didn't solve my problem with CUDA , so i uninstalled torch for cuda, and installed Torch without Cuda

authors: CalyphoZz Faqihyugos ondosansinaga

repo: cyrildiagne/ar-cutpaste


text:
[BUG] empty quotes seems to exclude verything

Hello @cyrinux
think there is a problem with this: https://github.com/cyrinux/hyprland-autoname-workspaces/issues/19#issuecomment-1460471282
after the Steam update (class changed from Steam to steamwebhelper) can't make the rule work.
with the class name Steam it worked... using "" to exclude empty titles.
extract from config file:
[icons]
"DEFAULT" = "?"
"Steam" = ""
"steamwebhelper" = ""

[exclude]
"Steam" = ""
"steamwebhelper" = ""

running autoname:
❯ hyprland-autoname-workspaces --verbose
- window: class 'kitty', title 'Rammstein - Zeit', got this icon ''
- window: class 'kitty', title '~', got this icon ''
- window: class 'kitty', title 'Rammstein - Zeit', got this icon ''
- window: class 'kitty', title 'hyprland-autoname-workspaces --verbose', got this icon ''
- window: class 'kitty', title 'Rammstein - Zeit', got this icon ''
- window: class 'kitty', title 'hyprland-autoname-workspaces --verbose', got this icon ''
- window: class 'kitty', title 'Rammstein - Zeit', got this icon ''
- window: class 'kitty', title 'hyprland-autoname-workspaces --verbose', got this icon ''
- window: class 'steamwebhelper' with title 'Sign in to Steam' is exclude
- window: class 'kitty', title 'Rammstein - Zeit', got this icon ''
- window: class 'kitty', title 'hyprland-autoname-workspaces --verbose', got this icon ''
- window: class 'steamwebhelper' with title 'Sign in to Steam' is exclude
- window: class 'kitty', title 'Rammstein - Zeit', got this icon ''
- window: class 'kitty', title 'hyprland-autoname-workspaces --verbose', got this icon ''
- window: class 'steamwebhelper' with title 'Sign in to Steam' is exclude
- window: class 'steamwebhelper' with title 'Steam' is exclude
- window: class 'kitty', title 'Rammstein - Zeit', got this icon ''
- window: class 'kitty', title 'hyprland-autoname-workspaces --verbose', got this icon ''
- window: class 'steamwebhelper' with title 'Sign in to Steam' is exclude
- window: class 'steamwebhelper' with title 'Steam' is exclude
- window: class 'kitty', title 'Rammstein - Zeit', got this icon ''
- window: class 'kitty', title 'hyprland-autoname-workspaces --verbose', got this icon ''
- window: class 'steamwebhelper' with title 'Steam' is exclude
- window: class 'kitty', title 'Rammstein - Zeit', got this icon ''
- window: class 'kitty', title 'hyprland-autoname-workspaces --verbose', got this icon ''
- window: class 'steamwebhelper' with title 'Steam' is exclude
- window: class 'steamwebhelper' with title 'Friends List' is exclude
- window: class 'kitty', title 'Rammstein - Zeit', got this icon ''
- window: class 'kitty', title 'hyprland-autoname-workspaces --verbose', got this icon ''
- window: class 'steamwebhelper' with title 'Steam' is exclude
- window: class 'steamwebhelper' with title 'Friends List' is exclude

Linux Distro (please complete the following information):
arch
**Program version?
hyprland-autoname-workspaces 0.4.2

Hi @pbosab
Can you try this please?

[exclude]
"Steam" = ""
"steamwebhelper" = "^$"

Hi @pbosab
Can you try this please?

[exclude]
"Steam" = ""
"steamwebhelper" = "^$"

Check again the Readme with the update hint, in case you miss something. If you use "" it will match ALL and not empty. Empty is "^$" since regex.
Is it better or we really have a bug?

omg it works, i feel so stupid. buuuut: why then "Steam" = "" worked before the update?!?!

Don't worry happy to read it is OK now. The regex migration cause this for you as an early adopter.

authors: cyrinux pbosab

repo: cyrinux/hyprland-autoname-workspaces

license: ISC


text:
parser fails to parse starred expression with language_level=3

(env) vagrant@h2o:~/h2oai$ cython -3 test.pyx

Error compiling Cython file:
------------------------------------------------------------
...
def results_check(*args):
    "%s %s" % ('2', *args)
                   ^
------------------------------------------------------------

test.pyx:2:20: starred expression is not allowed here
(env) vagrant@h2o:~/h2oai$ python3 test.pyx
(env) vagrant@h2o:~/h2oai$ cython -2 test.pyx
(env) vagrant@h2o:~/h2oai$ python2 test.pyx
  File "test.pyx", line 2
    "%s %s" % ('2', *args)
                    ^
SyntaxError: invalid syntax

I failed to post a cython version "Cython version 0.28.3"

Interesting. I can confirm that it generates the correct code with language level 2, but fails with language level 3. My guess was that this is due to the string formatting optimisation into f-strings, which was added in 0.28 and only applies to unicode strings (not Py2 byte strings). The expression then becomes f"{'2'} {*args}", and that does not work. Looks like we have to explicitly exclude star-expressions.

Thanks for the report and the short reproducer.

Thank you for confirmation and fast response.

authors: jahodfra scoder

repo: cython/cython


text:
[ENH] Allow compile-time conditionals

Is your feature request related to a problem? Please describe.
Pure python version of
IF "there is a chance":
    from __future__ import braces
ELIF 6 + 9 + 6 * 9 != 69:
    wocky_slush = "yummy"
ELSE:
    print("delicious spam")

Describe the solution you'd like
Suggestions:
1) cython.X
if cython.conmpile_time(condition):
    ...
elif cython.conmpile_time(condition):
    ...
else:
    ...

2) with
with cython.conmpile_time:
    if condition:
        ...
    ...  # regular conditional syntax

3) with + cython.X
Thought it looks quite ugly
with cython.IF(condition):
    ...
with cython.ELIF(condition):
    ...
with cython.ELSE:
    ...

4) comment
if condition:  # cython: compiled
    ...
elif condition:
    ...
else:
    ...

I never considered this a good feature to have. Many people misunderstand what it's good for, the syntax is everything but beautiful, and there are fairly few use cases, really. We should try to hard to get along without it.

the syntax is everything but beautiful

probably, except for the comment. but the comment is not really Cython style I guess

The trouble is you can't actually do a whole lot with these - you can get whether its Windows/Mac/Linux, and the Python version, but that's basically the only thing that you can make decisions on with DEF and IF. You can't use them to access C defines for example.
And they break the general rule that the .c file you generate should not depend on the system you run it on (because it's quite frequent to distribute Cython-generated .c files with pip).
Pretty much the only useful thing is to DEF a static array length, and that's rarely necessary.

the use cases that come to mind for this look a lot like the use cases for tempita

As well as being very limited and somewhat ugly, these'd be hard to emulate in pure Python. E.g. imagine
a = "global value"
def foo():
  IF condition:
    a = "local value"
  print(a)

I agree that most usecase for these constructs would be better handled by code generation or a template engine (or just normal Python branching).

I agree that most usecase for these constructs would be better handled by code generation or a template engine (or just normal Python branching).

well, most of the time I think pure python mode is used as a fallback when a compiled version is not available

a = "global value"
def foo():
  IF condition:
    a = "local value"
  print(a)

Does it change if you use cython or pure python? These are just conditions that are simply executed at compile time, they should work exactly as well during interpretation, the interpreter will just waste time calculating them.

I agree that most usecase for these constructs would be better handled by code generation or a template engine (or just normal Python branching).

well, most of the time I think pure python mode is used as a fallback when a compiled version is not available

"Pure Python mode" should be the normal way to use Cython for many, if not most, people in the future. You should only resort to Cython specific constructs for use use cases where there's no other way. And whether there's no other way may also change in the future.

a = "global value"
def foo():
  IF condition:
    a = "local value"
  print(a)

Does it change if you use cython or pure python?

Yes. Cython evaluates the condition before looking at the declarations. If condition is true, a will become a local variable through the assignment. Otherwise, it will be the global variable. If the condition is evaluated at runtime (and, thus, in Python), it would always be the local variable.

In lack of a real use case, and noting that most people agree that there are better solutions for this, I'll close this ticket as "won't fix".
Please direct future discussions of this topic to the cython-users mailing list first, where we can try to find alternatives for specific needs.

I created https://github.com/cython/cython/issues/4310 to discuss whether this feature can be deprecated and removed completely.

A use case that can be accomplished with tempita but can be made more pythonic is something like
cdef myfunc(foo, bar, bint condition):
    [...]

myfunc1 = cython.cpartial(myfunc, condition=True)
myfunc2 = cython.cpartial(myfunc, condition=False)

Purely speculative: cpartial might be implemented by shimming an inline into myfunc and then defining
cdef myfunc1(foo, bar):
     return myfunc(foo, bar, True)

and then the compiler might do the rest?

authors: 0dminnimda da-woods jbrockmendel robertwb scoder


text:
Convert FILE* in C to io.FileIO object

Hallo all,
how can I convert a FILE* pointer of the language C into an io.FileIO object of the language Python using Cython?
Kind regards
Jurgen

The bug tracker is not the right place to ask support questions. Please ask on the cython-users mailing list.

authors: jurgen-lentz scoder


text:
[BUG] multiple compiler_directives in setup.py get ignored

Describe the bug
Using diff on the generated html-file I see that setting one compiler_directives does change the generated code but setting multiple directives does not. I am following the guidelines from https://github.com/cython/cython/blob/master/docs/src/userguide/source_files_and_compilation.rst#in-filesetuppy
set directives using setup.py.
Code to reproduce the behaviour:
The code generated with one compiler_directives differs from code generated without compiler_directives being set
setup(
name="My hello app",
ext_modules=cythonize('hello.pyx', compiler_directives={'boundscheck': False}),
)
This code does produce the same code as when run without compiler_directives being set.
setup(
name="My hello app",
ext_modules=cythonize('hello.pyx', compiler_directives={'boundscheck': False, 'wraparound': False, initializedcheck': False, profile': True}),
)
Expected behaviour
Multiple directives get parsed
Environment
OS: [e.g. Linux, Windows, macOS]
Python version [e.g. 3.10.2]
Cython version [e.g. 3.0.0a11]
Additional context
No response

Your code may not include anytihng those directives target
Also I may not be correct on this one, but if you didn't change the hello.pyx than build should not be triggered
You may want to set the force=True, to get full recompilation each time

Not sure why as I did not change anything but the last execution of the build process did as expected.


text:
PHP 8.1 with AVIF Support in GD extension

The GD extension in PHP 8.1 and later supports the AVIF image format, making it possible to convert images from and to AVIF.
For this to work the GD extension must be compiled with AVIF support.
It depends on libavif package, which may not be available in default repositories of older operating system versions.
https://php.watch/versions/8.1/gd-avif#compile
Could you kindly compile PHP 8.1 with AVIF support ?

@robots4life Good news. Project docker-php-extension-installer since today release 1.2.65 add support to enable AVIF for GD on PHP 8.1
And I've already mentioned it, my alternative which is almost compatible to https://github.com/devilbox/docker-php-fpm  (see my current ROADMAP to learn more about compatibility between two solutions) used the docker-php-extension-installerproject to add extension in mods image

@llaville Good work and thank you for the update on this.
For local development this is good, going live, many hosts have not implemented this and imo this will still take a while. For working with JPEG files and converting them to AVIF I can observe a trend where some basic PHP hosts have Node on the console, with this I pass the files to the Node process, convert them there with Sharp and pass them back to the location where PHP can serve them. This works locally and live for the hosts in question.
However, it would also be cool to know if the docker-php-extension-installer project can/could be used to enable AVIF for GD on PHP 8.1 in Devilbox.

However, it would also be cool to know if the docker-php-extension-installer project can/could be used to enable AVIF for GD on PHP 8.1 in Devilbox.

/cc @cytopia

Added

authors: cytopia llaville robots4life

repo: cytopia/devilbox


text:
Multiple groups of nodes are distributed

Hey,
I have multiple groups of nodes which are not linked together. The algorithm distributes them on my whole viewport leaving a lot of empty space between each group. Is it possible to condense groups together so they use minimal amount of space required?

In fact, we are currently working on a utility for this in a separate repo, and hope to apply it to all algorithms produced by our lab. We'll let you know when it's ready!

Sure thanks. I've just played with gravityRange and putting it to something smaller like 1.3 gives me pretty nice graph. Thanks!

Yes, increasing gravity should work to a certain extent. Tighter drawing can be obtained by some extra work as I said though. We'll keep you posted.

authors: MistyKuu ugurdogrusoz


text:
issue 105

overloaded SDL2 Renderer copy method so that rotation/reflection are supported with SDL_RenderCopyEx

Thanks for reporting the issue!

repo: d-gamedev-team/gfm

license: unlicense


text:
Handle Non-Bidders Appropriately

As an instructor, I want the bidding algorithm to handle non-bidders appropriately so that all students are assigned topics fairly.
Tasks

[ ] Adjust the bidding algorithm to exclude non-bidders.
[ ] Implement logic to assign leftover topics to non-bidders.
[ ] Update ReviewBidsController and helpers accordingly.
[ ] Write tests to ensure non-bidders are handled correctly.

Acceptance Criteria

[ ] The bidding algorithm must identify and exclude participants who have not placed any bids.
[ ] Non-bidders should not influence the allocation of topics to bidders.
[ ] any unassigned or leftover topics should be automatically allocated to non-bidders after the bidding process.
[ ] The assignment should ensure that each non-bidder receives one topic, preventing multiple non-bidders from being assigned the same topic unless intentionally designed.
[ ] Modify the ReviewBidsController to integrate the updated bidding algorithm for non-bidders.
[ ] Ensure all helper functions support the exclusion of non-bidders and the assignment of leftover topics.
[ ] Maintain clear separation between bidder and non-bidder logic within the controller and helpers.
[ ] Implement a fair distribution mechanism for assigning leftover topics to non-bidders, such as random assignment or based on predefined criteria (e.g., alphabetical order).
[ ] Ensure that no participant, bidder or non-bidder, is assigned more than one topic unless the system allows multiple topic assignments.
[ ] Verify that the bidding algorithm correctly identifies and excludes non-bidders.
[ ] Ensure that only bidders' preferences influence the initial topic assignments.
[ ] Confirm that excluded non-bidders do not appear in bidder-related processes or views.
[ ] Validate that leftover topics are assigned to non-bidders once the bidding process is complete.
[ ] Check that each non-bidder receives one unique topic.
[ ] The number of leftover topics is less than, equal to, or greater than the number of non-bidders.
[ ] All topics are bid on, leaving no leftovers for non-bidders.
[ ] No non-bidders are present.
[ ] Ensure that the ReviewBidsController correctly integrates the new logic for handling non-bidders.
[ ] Test the controller's response when processing assignments involving both bidders and non-bidders.
[ ] Verify that helper functions perform as expected, supporting both bidder exclusion and topic assignment.
[ ] Ensure that appropriate error messages are displayed if there are more non-bidders than leftover topics.
[ ] Ensure that appropriate error messages are displayed if there are no leftover topics to assign to non-bidders.
[ ] Ensure that appropriate error messages are displayed if any unexpected issues arise during the assignment process.

@gavint7 there isn't an updated URL. We just have to mock bidding_data to test.


text:
Make "log" optional dependency

PR for https://github.com/d2718/dumb-cgi/issues/1

Awesome, thanks for going to the trouble here.


text:
add nd.sum function to the squared_loss function

This pull request is to fix a code bug of the 'squared_loss' fuction.

不过，这里即便不用sum，后面求导时也会自动求和

@chenchen2004025
非常感谢你对《动手学深度学习》一书的贡献。等初纸质书出版时，出版社将为贡献者制作并赠送本书的专享版。我们也希望在本书致谢
https://zh.d2l.ai/chapter_preface/preface.html#致谢
中列出你的姓名（出版社希望明天之前将这部分内容定稿。）能将你的姓名、Github ID 和邮寄地址发送至 gluonbook [AT] gmail [dot] com吗？谢谢。


text:
document d3-time#66 (consistent intervals with interval.every)

Ref. https://github.com/d3/d3-time/pull/66

That PR hasn’t landed yet, so this should be a draft.

authors: Fil mbostock

license: isc


text:
SSR 환경에서 새로고침시 액티비티 상태 유지

안녕하세요! 스택 라이브러리 사용중에 질문이 있어서 이슈 남기게 되었습니다!
현재 프로젝트에서는 next 14.1.0, react ^18를 사용중이며, history-sync-plugin으로 히스토리 동기화하고 있습니다.
SSR 환경에서도 새로고침하더라도 기존에 쌓인 액티비티들을 그대로 들고 있도록 구현하고 싶어서 #403 이슈의 1번 방법을 사용하려고 합니다. 혹시 1번 방법에서 history context란 어떤 것이며 어떻게 교체해야하는지 알 수 있을까요?!

안녕하세요 @8dong 님! 기존에 쌓인 액티비티를 유지하려면, 플러그인의 overrideInitialEvents API를 활용하실 수 있습니다.
https://github.com/daangn/stackflow/blob/main/core/src/interfaces/StackflowPlugin.ts#L107-L110

해당 요구사항은 저희가 당장 지원해드리기가 어렵습니다. 만약 원하신다면 @stackflow/plugin-history-sync를 코드 내부로 복사해가셔서, 이를 수정하시는식으로 접근하시는 것을 추천드립니다. 감사합니다.

repo: daangn/stackflow


text:
feat: Implement OpenID autodiscovery for JWT authenticator

Related issue(s)

closes #619
Checklist

[x] I agree to follow this project's Code of Conduct.
[x] I have read, and I am following this repository's Contributing Guidelines.
[x] I have read the Security Policy.
[x] I have referenced an issue describing the bug/feature request.
[x] I have added tests that prove the correctness of my implementation.
[x] I have updated the documentation.

Description

As discussed in discord, adds a second field oidc_discovery_endpoint which is mutually exclusive with jwks_endpoint and, if set, downloads the JWKS url from an OpenID Connect discovery document.
Changelist
N/A

Unfortunatelly, it took much longer then anticipated. One of the reasons - I'm still COVID positive.
First of all - great job! Thank you for that!
During the review, I encountered some challenges/issues which I would like to discuss with you in Discord:

you forgot to copy the setting about oidc discovery usage on creation of the actual mechanism instance for the rule. So I assume, you have not yet tested it in a real integration setup. That's peanuts though. ;)
the way you made use of assertions allowed remote code (the information in the discovery document) overriding the provided configuration. IMHO, situations like this should be avoided, even we're actually talking about the source of truth here. Much better would be to let the user decide, whether it wants rely on the issuer info provided in the discovery/metadata document, or have more control about that.
Since the usage of the discovery/metadata document heavily relies on http caching enabled to reduce traffic, he default setting should be "enabled".
Given the way, how the PR is currently implemented, I fear, it will be challenging to add support for #614 in the future. There is a need for some type of abstraction.
Even many people talk about OIDC discovery service as specified by the corresponding spec, there is also the RFC8414 - OAuth 2.0 Authorization Server Metadata, which actually supersedes the OIDC discovery. To be more precise, with that RFC in place, the OIDC discovery becomes kind of a profile of that RFC. Since the current implementation does not make use of any OIDC specifics (from the "OIDC discovery profile"), I personally would vote to rename oidc_discovery  property to metadata_endpoint. That way we can avoid confusion when people use a pure OAuth2 service.
According to both, the RFC and the OIDC discovery spec, the client making use of the discovery/metadata functionality must ensure, the "issuer" value returned must be identical to the authorization  server's issuer identifier value into which the well-known URI string was inserted to create the URL used to retrieve the metadata.  Otherwise the response must not be used. This check has not been implemented so far. I wonder, whether there are some limitations e.g. with KeyCloack or you just forgot that.
Even the JWT authenticator as well as the OAuth2 Introspection authenticator can now make use of the new JWT, respectively Token objects to render issuer specific URL paths, I wonder if the implemented approach is not too much. I mean, beyond the value of the iss claim nothing else could be used in a meaningful way.
Related to the previous bullet point, I wonder, whether we should support url templating if the endpoint information comes from the metadata/discovery endpoint. I personally vote for "no" as it would open potential security wholes.

To overcome some of the above said challenges, I allowed myself to do some refactoring. You can find that code in the https://github.com/dadrus/heimdall/tree/feature/oidc_autodiscovery branch. I wanted to talk about all that before pushing it to your PR.

Joint Review Results:

Has been indeed forgotten
The approach suggested by myself will be implemented
Caching will be enabled by default if not explicitly disabled. Related to that there is
open question: What to do, when the server does not set cache header. Suggestion is to use 5min as http cache ttl in such cases. Many server do however disable cache via cache-control header explicitly, which is actually weird, as the content of the discovery/metadata document is static and will rarely change
Has been overlooked and will be implemented
A strategy pattern based approach is considered to be a pretty good abstraction option to reduce code complexity and allow extensions in the future. The code will be updated accordingly
open question: Renaming from oidc_discover to metadata_endpoint might be misleading, as people may be not used to it. Maybe something more specific, like authorization_server_metadata_endpoint would be better.
The issuer check required by the spec has not been implemented by intention, as internal and external urls might differ. That would break functionality. We could add it, with an option for opt-in.
open question: What is the est way to address that?
Instead of making the entire Token/JWT available to the endpoint rendering context, we should rather limit the available property to the actual issuer only. It is pretty easy to see, whether the configuration uses templates and do the required token parsing/issuer extracting then.
Definitely no. Endpoints resolved via metadata/discovery endpoint, should not allow templating

I updated the title to wip again as there are still some opens to be discussed and implemented if there will be deviations from suggestions. Some tests are also still missing and I have not yet touched the documentation (waiting for the discussion of the opens)

To have a better focused discussion, here only the opens using the same numbers as above (everything else is added/updated by the recent commits):

(3) Caching will be enabled by default if not explicitly disabled. Related to that there is
open question: What to do, when the server does not set cache header. Suggestion is to use 5min as http cache ttl in such cases. Many server do however disable cache via cache-control header explicitly, which is actually weird, as the content of the discovery/metadata document is static and will rarely change
The updates I introduced today come with a breaking change in this regard:
the previous boolean property enable_http_caching on the endpoint level has been replaced by an object http_cache supporting

enabled - which can be used to enable or disable the http cache
default_ttl - which allows setting http cache ttl if the server does not set any cache related header

The defaults are context dependent. E.g. for the new metadata_endpoint, these would be true and 5m given the above suggestion. In general, http caching is however disabled. Another place, where http caching plays a role is in the http endpoint provider to load rule sets from remote locations. Here the default would be the enabled cache, but no default ttl if server does not set any cache related header. These two are also the primary discussion topics of this open.

(6) open question: Renaming from oidc_discover to metadata_endpoint might be misleading, as people may be not used to it. Maybe something more specific, like authorization_server_metadata_endpoint would be better.
As of now the new endpoints are named metadata_endpoint for both the jwt, as well as the oauth2 introspection authenticators.

(8) The issuer check required by the spec has not been implemented by intention, as internal and external urls might differ. That would break functionality. We could add it, with an option for opt-in.
open question: What is the est way to address that?
As of now this is solved by the introduction of the new disable_issuer_identifier_verification property, on the config level of the two afore said authenticators. Setting it to true will disable the verification mandated by the RFC and also the OIDC discovery spec.

(9) Instead of making the entire Token/JWT available to the endpoint rendering context, we should rather limit the available property to the actual issuer only. It is pretty easy to see, whether the configuration uses templates and do the required token parsing/issuer extracting then.
open question: Does somebody see any limitations with that approach (by providing only the TokenIssuer to the template)?
At least, this is now implemented

As long as there is no feedback to the opens from https://github.com/dadrus/heimdall/pull/1043#issuecomment-1863733763, the PR is feature complete.
I personally would however like to change the default HTTP cache ttl for the metadata_endpoint to 30m

repo: dadrus/heimdall


text:
[OTHER] Count Cyclomatic Complexity Manually for a Third Time

What would you like to share?
We need to count the CC again for the first 5 functions since we got inconsistent results.
Additional information
No response

Completed on branch 7


text:
Can I make it not cycle?

I want to make the SliderLayout as a line instead of a circle. Is there any way to make it not cycle?

Yeah, it support line, check the wiki
https://github.com/daimajia/AndroidImageSlider/wiki/Custom-Indicators

I mean cycle... not 'auto cycle'. Are you sure assigning 'mAutoCycle' to false can make it do nothing after I slide screen to left at the last image?

Why not just use ViewPager ? http://developer.android.com/training/animation/screen-slide.html

authors: AngryYogurt daimajia

repo: daimajia/AndroidImageSlider


text:
my app stop when reach to this yoyo code

When the application executes the code, the app stops and throws this error.
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/daimajia/easing/Skill;
at com.daimajia.androidanimations.library.specials.in.DropOutAnimator.prepare(DropOutAnimator.java:15)
        at com.daimajia.androidanimations.library.BaseViewAnimator.setTarget(BaseViewAnimator.java:54)
        at com.daimajia.androidanimations.library.YoYo.play(YoYo.java:254)
        at com.daimajia.androidanimations.library.YoYo.access$1500(YoYo.java:38)
        at com.daimajia.androidanimations.library.YoYo$AnimationComposer.playOn(YoYo.java:215)
        at home.lernesto.budgetquick.StartActivity.onResume(StartActivity.java:48)
        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1361)
        at android.app.Activity.performResume(Activity.java:7344)
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3763)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3828)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3036)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6938)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.daimajia.easing.Skill" on path: DexPathList[[zip file "/data/app/home.lernesto.budgetquick-L0NXYaChdp1szfwFsYZ6YQ==/base.apk"],nativeLibraryDirectories=[/data/app/home.lernesto.budgetquick-L0NXYaChdp1szfwFsYZ6YQ==/lib/arm64, /system/lib64, /system/vendor/lib64]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:93)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
        at com.daimajia.androidanimations.library.specials.in.DropOutAnimator.prepare(DropOutAnimator.java:15)
        at com.daimajia.androidanimations.library.BaseViewAnimator.setTarget(BaseViewAnimator.java:54)
        at com.daimajia.androidanimations.library.YoYo.play(YoYo.java:254)
        at com.daimajia.androidanimations.library.YoYo.access$1500(YoYo.java:38)
        at com.daimajia.androidanimations.library.YoYo$AnimationComposer.playOn(YoYo.java:215)
        at home.lernesto.budgetquick.StartActivity.onResume(StartActivity.java:48)
        at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1361)
        at android.app.Activity.performResume(Activity.java:7344)
        at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3763)
        at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3828)
        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3036)
        at android.app.ActivityThread.-wrap11(Unknown Source:0)
        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)
        at android.os.Handler.dispatchMessage(Handler.java:105)
        at android.os.Looper.loop(Looper.java:164)
        at android.app.ActivityThread.main(ActivityThread.java:6938)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)

An here my code.
public class StartActivity extends AppCompatActivity {
//    Constant
private static final int TIME_LIFE_ACTIVITY = 2500;
private static final int TIME_ANIMATION= 2000;
//    Visual Variables
private View imgvAppName;
@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
    setContentView(R.layout.activity_start);

//        To link file XML
imgvAppName = findViewById(R.id.imgv_app_name);
    TimerTask task = new TimerTask() {
        @Override
        public void run() {
            startActivity(new Intent(StartActivity.this, MainActivity.class));
            finish();
        }
    };

    Timer timer = new Timer();
    timer.schedule(task, TIME_LIFE_ACTIVITY);
}

@Override
protected void onResume() {
    super.onResume();
    YoYo.with(Techniques.DropOut).duration(TIME_ANIMATION).playOn(imgvAppName);
}

Try:
YoYo.with(Techniques.DropOut).duration(TIME_ANIMATION).repeat(1).playOn(imgvAppName);

@prateekro For me it's happening when calling:
YoYo.with(Techniques.TakingOff)
  .duration(2000)
  .repeatMode(ValueAnimator.RESTART)
  .repeat(ValueAnimator.INFINITE)
  .playOn(myView)

The stacktrace:
2021-02-10 16:37:27.592 32077-32077/com.example.app.debug E/AndroidRuntime: FATAL EXCEPTION: main
    Process: com.example.app.debug, PID: 32077
    java.lang.NoClassDefFoundError: Failed resolution of: Lcom/daimajia/easing/Skill;
        at com.daimajia.androidanimations.library.specials.out.TakingOffAnimator.prepare(TakingOffAnimator.java:13)
        at com.daimajia.androidanimations.library.BaseViewAnimator.setTarget(BaseViewAnimator.java:54)
        at com.daimajia.androidanimations.library.YoYo.play(YoYo.java:254)
        at com.daimajia.androidanimations.library.YoYo.access$1500(YoYo.java:38)
        at com.daimajia.androidanimations.library.YoYo$AnimationComposer.playOn(YoYo.java:215)
        at com.example.app.base.util.view.AnimUtilKt.rippleLoop(AnimUtil.kt:25)
        at com.example.app.task.create.ui.lifecycle.MyActivity.animateLocationEmphasis(TinyHelperLookupActivity.kt:129)
        at com.example.app.task.create.ui.lifecycle.MyActivity.onMapReady(TinyHelperLookupActivity.kt:124)
        at com.google.android.gms.maps.zzac.zza(Unknown Source:2)
        at com.google.android.gms.maps.internal.zzaq.dispatchTransaction(Unknown Source:12)
        at com.google.android.gms.internal.maps.zzb.onTransact(Unknown Source:12)
        at android.os.Binder.transact(Binder.java:1022)
        at ds.aZ(:com.google.android.gms.dynamite_mapsdynamite@205016084@20.50.16 (120700-0):2)
        at com.google.maps.api.android.lib6.impl.bj.run(:com.google.android.gms.dynamite_mapsdynamite@205016084@20.50.16 (120700-0):1)
        at android.os.Handler.handleCallback(Handler.java:907)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loop(Looper.java:216)
        at android.app.ActivityThread.main(ActivityThread.java:7464)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:549)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:955)
     Caused by: java.lang.ClassNotFoundException: Didn't find class "com.daimajia.easing.Skill" on path: DexPathList[[zip file "/data/app/~~-KJ-HcacOl32zDAYD50WsA==/com.example.app.debug-ZFTvo55eAoOJ9I2nbEu1fg==/base.apk"],nativeLibraryDirectories=[/data/app/~~-KJ-HcacOl32zDAYD50WsA==/com.example.app.debug-ZFTvo55eAoOJ9I2nbEu1fg==/lib/x86, /system/lib, /system_ext/lib, /product/lib]]
        at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:202)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:379)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:312)

And when I go to the TakingOffAnimator class, it is showing in the easing package imports:
com.daimajia.easing.Glider
com.daimajia.easing.Skill
Am I missing some dependency that should have been there?

@nokyslash Adding dependency for Easing library fixed it for me
implementation com.daimajia.easing:library:2.4@aar

As @premacck says, you need import easing function library.

authors: daimajia nokyslash prateekro premacck

repo: daimajia/AndroidViewAnimations


text:
Mac/Vivaldi: jump is using 25% CPU time, fans are running noisy

When switching to the Jump tab on Mac OS with Vivaldi,
CPU load start to reach 20% and more and fans start to be quite noisy. Switching to another tab will reduce CPU and fan noise.

Thanks for reporting, I have not noticed this before but to be honest I've not been looking for it. Just tested in Firefox on Linux and I can see something similar. I'll do some profiling as soon as I can and see if I can fix it.

I've been testing on both Firefox and Chrome in Linux and think I've narrowed this down to the animated loading SVG I've used for the icons, for me I'm seeing Jump's tab drop from ~9% CPU to almost nothing by removing the CSS that adds this image behind each icon. I imagine the CPU usage would scale with the number of sites that are on screen at the same time.

Ok this should be fixed with the above commit. I'll package this and a few other things in a new release soon 😀

This should hopefully be fixed with the v1.3.2 release so closing the issue. Thanks again, let me know how you get on :)

authors: JarlMorgennebel daledavies

repo: daledavies/jump


text:
process buffered messages non-recursively

I had a Starscream crash because Starscream read a full buffer (BUFFER_MAX = 4096 bytes), and the buffer was full of 17 byte messages (meaning, 240 full messages plus most of the next message). The mutual recursion between processRawMessage and processExtra caused a stack overflow. (The default stack size for a background queue is 512 KB and, at least in a Debug build, the processRawMessage method uses a lot of stack space.)
This patch changes the buffer handling to be non-recursive.
The old processRawMessage method is now processOneRawMessage.  It returns the “extra” contents of the buffer instead of calling processExtra recursively.
The old processExtra method is now the processRawMessagesInBuffer method. It contains a loop that calls processOneRawMessage repeatedly until there's no more data in the buffer.
All calls to the old processRawMessage method (outside of processRawMessagesInBuffer) now call processRawMessagesInBuffer.

As always, thank you for the excellent write up.

authors: daltoniam mayoff

repo: daltoniam/Starscream


text:
Warning and Error are the same color.

I'm on vscode.
This is a really big problem.

@daltonmenezes

repo: daltonmenezes/aura-theme


text:
Be runtime configurable

Be able to configure the site mappings dynamically without rebuilding the owin pipeline or restarting the host.

Did you get this working? I am trying to make a multi-tenant app that requires configuring subdomains differently per tenant dynamically and this would be perfect for it.

I didn't and I don't think I will. I think a better approach is to use wrapper middleware, such as this, to reconfigure this middleware.
I'm using this wrapper MW to reconfigure ThinkTecture's Identity Server to support runtime re-config of ws-fed middleware. See https://github.com/IdentityServer/IdentityServer3/issues/1439#issuecomment-127511093

authors: damianh lehne

repo: damianh/SiteMappingMiddleware


text:
Dark accent color with light coloured text

Is there any way I can have a dark accent color with light coloured text? Currently if I choose black, the filename text is invisible.
For now I just disable the Style Settings plugin, and it does what I want (but I lose the ability to customise).
Thanks :)

Hi @Chriswaterguy,
With the release of v2.0.0, you can now change the colour of the text that appears over accented UI elements (Go to Style Settings -> Prism Theme -> Appearance -> Accent, Color Schemes and Style -> Light/Dark Theme -> Accent Text Color Preset).  The Custom Accent Colours have also been tweaked so that you have more control over the 3 shades. Change the Accent Color Preset to Custom and you will find the new adjustment options slightly lower in Custom Accent Color Tuning.
Make sure to reset your Style Settings and restart Obsidian for the theme to work correctly after updating.
Here are the release notes for the v2.0.0 update: https://github.com/damiankorcz/Prism-Theme/releases/tag/2.0.0

authors: Chriswaterguy damiankorcz

repo: damiankorcz/Prism-Theme


text:
路由模式

您好。看到您项目非常兴奋，做的很清爽，请问可以在后端限制只能特定ip或者域名走节点，其他直连吗？这样就只不需要导入http节点了，感谢您

可以加规则 晚上回去加
您好。看到您项目非常兴奋，做的很清爽，请问可以在后端限制只能特定ip或者域名走节点，其他直连吗？这样就只不需要导入http节点了，感谢您
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: @.***>


text:
请求支持新的学校

http://222.207.13.101/bbxyjw/cas/login.action
蚌埠学院
可以有偿并提供测试用账号
微信：istrih

爬虫的视频教程出一下吗

authors: KRzzzzzhq isTrih

repo: danbaixi/UAAS-API


text:
Crate does not compile on MacOS

I specify procinfo in my dev-dependencies because I have a Linux specific memory leak test, see https://github.com/klausi/rustnish/blob/goal-07/tests/memory_leaks.rs
On MacOS I simply skip that test. When compiling my project for cargo test the build fails because procinfo does not compile on MacOS.
Can we make procinfo compile on MacOS although we know it does not work there?

OK, nevermind, I just found out about conditional compilation, so I can include this crate and my test only on Linux.
Cargo.toml:
# Memory Leak tests require procinfo, which only works on Linux.
[target.'cfg(target_os="linux")'.dev-dependencies]
procinfo = ">=0.4.2"

Test file:
// This test uses procinfo, so can only be run on Linux.
#![cfg(target_os = "linux")]

Yeah, I think that's the right way to approach it.  Would probably be good to add a README note about this.

This might be the wrong place to ask, but I couldn't find a better issue, and I'm not sure it merits its own.
Is there a recommended pattern for using this Crate within an application that's expected to need to at least build cross-platform? My situation is that production is Linux and development is Mac OS. I'd like to use procinfo on Linux for various measurements. I don't care about those measurements in development, but I'd still like the program to compile (including my program's glue that starts a monitoring thread, calls into procinfo, etc.).
I imagine that enough well-targeted cfgs will do the trick, but I was wondering if one of you might have a better idea or established pattern. Thanks!

authors: brandur danburkert klausi

repo: danburkert/procinfo-rs


text:
The animation effect is not effective after the element is disabled

The animation effect is not effective after the element is disabled(css   disabled:"").（IE 11/edge）

Sorry, but can you please explain it better? I couldn't understand the problem. If you can, please post a reduced case on codepen or similar service.

Closing it as it's stale. Feel free to reopen it if you've got any news about the issue.

authors: eltonmesquita zetawoo


text:
readme  error

https://github.com/danfeiX/scene-graph-TF-release/tree/master/data_tools
data/vg/mini_VG-SGG-dicts.h5, this should be json file not h5.

fixed. thanks!

repo: danfeiX/scene-graph-TF-release


text:
S3 Upload does not work

In my next.js.config I have
module.exports = withSASS({
    ...
    assetPrefix: 'https://s3.amazonaws.com/staging.app.de',
    ...
});

But on deployment, the bucket cannot be created:
Serverless Nextjs: Found bucket "staging.app.de" in assetPrefix! Will provision!
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service app.zip file to S3 (921.87 KB)...
Serverless Nextjs: Uploading static assets to staging.app.de ...

  Serverless Error ---------------------------------------

  Access Denied

  Get Support --------------------------------------------
     Docs:          docs.serverless.com
     Bugs:          github.com/serverless/serverless/issues
     Issues:        forum.serverless.com

  Your Environment Information -----------------------------
     OS:                     darwin
     Node Version:           8.10.0
     Serverless Version:     1.38.0

I tried some combinations: Without preexisting bucket, after creating it manually and after setting it to public. Any ideas?
EDIT:
My serverless.yml has the following plugins:
plugins:
  - serverless-dynamodb-local
  - serverless-domain-manager
  - serverless-apigw-binary
  - serverless-apigwy-binary
  - serverless-nextjs-plugin

Can you confirm if your AWS profile or API user has upload permissions to S3? More specifically s3:PutObject permissions.

Yes, s3:* on * resources

Serverless Nextjs: Uploading static assets to staging.app.de ...
Serverless: [AWS s3 403 0.22s 0 retries] putObject({ Body: <Buffer 28 77 69 6e 64 6f 77 5b 22 77 65 62 70 61 63 6b 4a 73 6f 6e 70 22 5d 20 3d 20 77 69 6e 64 6f 77 5b 22 77 65 62 70 61 63 6b 4a 73 6f 6e 70 22 5d 20 7c ... >,
  ACL: 'public-read',
  Bucket: 'staging.app.de',
  Key: '_next/static/chunks/0.js',
  ContentType: 'application/javascript' })

  Serverless Error ---------------------------------------

Strange, really seems to be a permission thing.

I also don't understand why the README says I should not create the bucket and if I delete it, I get this:
Serverless Nextjs: Uploading static assets to staging.app.de ...
Serverless: [AWS s3 404 0.14s 0 retries] putObject({ Body: <Buffer 7b 22 76 65 72 73 69 6f 6e 22 3a 33 2c 22 66 69 6c 65 22 3a 22 73 74 61 74 69 63 2f 63 68 75 6e 6b 73 2f 30 2e 6a 73 22 2c 22 73 6f 75 72 63 65 73 22 ... >,
  ACL: 'public-read',
  Bucket: 'staging.app.de',
  Key: '_next/static/chunks/0.js.map',
  ContentType: 'application/json' })

  Serverless Error ---------------------------------------

  The specified bucket does not exist

  Stack Trace --------------------------------------------

ServerlessError: The specified bucket does not exist
    at promise.catch.err (/Users/sja/dev/projekte/app/src/node_modules/serverless/lib/plugins/aws/provider/awsProvider.js:295:11)
    at <anonymous>
    at process._tickDomainCallback (internal/process/next_tick.js:228:7)

Ok, the bucket will be created if I change your index.js#109 (uploadStaticAssets()) with removing the negation. This will skip generating the upload promises. So it's sth like a race condition. Then the bucket is created.
When I then change that back I can deploy and your code uploads the assets.

The bucket is optional, only tries provisioning one if you pass a bucket
URL in the assetPrefix. I’ll try replicating this issue tonight.
On Thu, 7 Mar 2019 at 13:53, Sebastian Janzen notifications@github.com
wrote:

Ok, the bucket will be created if I change your index.js#109 (
uploadStaticAssets()) with removing the negation. This will skip
generating the upload promises. So it's sth like a race condition. Then the
bucket is created.
When I then change that back I can deploy and your code uploads the assets.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/danielcondemarin/serverless-nextjs-plugin/issues/4#issuecomment-470533195,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABEgiqJkv8DgLO7wijt7_tM5doqyrhPyks5vURnLgaJpZM4bjI-1
.

I also don't understand why the README says I should not create the bucket and if I delete it, I get this:
The bucket is only created on the first initial creation of the stack. It has the same limitation that the ServerlessDeploymentBucket has.
That is because when the stack is updated your Lambdas are deployed as part of the update ... at that point your API GW and Lambdas already serve traffic but the upload of the assets hasn't finished.
Just make sure you don't delete the bucket after is created. If you must, delete the stack and recreate it.

@sja I couldn't reproduce the permission issue that you reported. Did you get to the bottom of it?

No, I just did what I described with forcing your code to first execute the CloudFormation to add the bucket and then uploading. I think the Access Denies is related to the non-existing bucket.

In that case will be closing this, like I said in my previous comment the bucket is only created the first time serverless provisions the stack. Is not re-created on stack updates, therefore you shouldn't delete the bucket after stack creation.

authors: danielcondemarin sja