TypeError: as_view() takes exactly 1 argument (3 given)

Hi,
I'm use Django 1.9 and DRF3.
I tried follow the tutorial to create my ListBulkCreateUpdateDestroyAPIView.
I had problem to register the route.
I changed to BulkModelViewSet and fix my problem.
Can you help me to user ListBulkCreateUpdateDestroyAPIView?

+1

whats the traceback?

my traceback is a Title
Traceback (most recent call last):
File "/Applications/PyCharm.app/helpers/pydev/pydevd.py", line 249, in call
self.original_func(*self.args, **self.kwargs)
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/utils/autoreload.py", line 226, in wrapper
fn(*args, **kwargs)
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/core/management/commands/runserver.py", line 116, in inner_run
self.check(display_num_errors=True)
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/core/management/base.py", line 426, in check
include_deployment_checks=include_deployment_checks,
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/core/checks/registry.py", line 75, in run_checks
new_errors = check(app_configs=app_configs)
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/core/checks/urls.py", line 10, in check_url_config
return check_resolver(resolver)
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/core/checks/urls.py", line 19, in check_resolver
for pattern in resolver.url_patterns:
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/utils/functional.py", line 33, in get
res = instance.dict[self.name] = self.func(instance)
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/core/urlresolvers.py", line 417, in url_patterns
patterns = getattr(self.urlconf_module, "urlpatterns", self.urlconf_module)
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/utils/functional.py", line 33, in get
res = instance.dict[self.name] = self.func(instance)
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/core/urlresolvers.py", line 410, in urlconf_module
return import_module(self.urlconf_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/Users/fredericomatos/projectos/smartgreen/smartgreen-panel/panel/urls.py", line 9, in
url(r'^screen/', include('screen.urls', namespace='screen'))
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/conf/urls/init.py", line 52, in include
urlconf_module = import_module(urlconf_module)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/Users/fredericomatos/projectos/smartgreen/smartgreen-panel/screen/urls.py", line 6, in
url(r'api/', include('screen.api.urls', namespace='api')),
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/conf/urls/init.py", line 52, in include
urlconf_module = import_module(urlconf_module)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/Users/fredericomatos/projectos/smartgreen/smartgreen-panel/screen/api/urls.py", line 6, in
url(r'', include('screen.api.v1.urls', namespace='default')),
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/django/conf/urls/init.py", line 52, in include
urlconf_module = import_module(urlconf_module)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
File "/Users/fredericomatos/projectos/smartgreen/smartgreen-panel/screen/api/v1/urls.py", line 16, in
url(r'', include(router.urls))
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/rest_framework/routers.py", line 79, in urls
self._urls = self.get_urls()
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/rest_framework/routers.py", line 317, in get_urls
default_urls = super(DefaultRouter, self).get_urls()
File "/Users/fredericomatos/ENVS/dash/lib/python2.7/site-packages/rest_framework/routers.py", line 256, in get_urls
view = viewset.as_view(mapping, **route.initkwargs)
TypeError: as_view() takes exactly 1 argument (3 given)

how are you using your router?

from rest_framework_bulk.routes import BulkRouter
from django.conf.urls import url, include
from screen.api.v1 import views
router = BulkRouter()
router.register(r'category', views.ScreenCategoryViewSet, 'category')
router.register(r'config', views.ScreenConfigViewSet, 'config')
router.register(r'modal', views.ModalViewSet, 'modal')
router.register(r'screen', views.ScreenViewSet, 'screen')
router.register(r'screen-modal-position', views.ScreenModalPositionViewSet, 'screen-modal-position')
router.register(r'screen-modal', views.ScreenModalViewSet, 'screen-modal')
urlpatterns = [
url(r'', include(router.urls))
]

are you trying to use ListBulkCreateUpdateDestroyAPIView with a router?

Yes, Can't I?
If I can't use sorry.

Yes you cant. You can only use ViewSets in routers which APIView is not. You can use the available mixins to add necessary functionality for viewsets.
closing


defmt-print and semihosting

Hi, I'm trying to get defmt working with qemu and the defmt-print tool, but I'm facing some issues.
In my test program I only have the lines
    defmt::error!("Hello World");
    debug::exit(debug::EXIT_SUCCESS);

In my main routine
The problem is that why I try to decode the log stream with defmt-print, I always get a "malformed frame error"
qemu-system-arm -cpu cortex-m3 -machine stm32vldiscovery -nographic -semihosting-config enable=on,target=native -kernel qemu_test | defmt-print.exe -v -e qemu_test  stdin

(HOST) malformed frame skipped
└─ defmt-print @ C:\Users\ander\.cargo\registry\src\index.crates.io-6f17d22bba15001f\defmt-print-0.3.8\src/main.rs:145

The raw output of QEMU is
$ qemu-system-arm -cpu cortex-m3 -machine stm32vldiscovery -nographic -semihosting-config enable=on,target=native -kernel target/thumbv7m-none-eabi/debug/test-qemu | xxd
00000000: 0100

If I feed the same stream to defmt-print I get the same error
$ echo -n -e "\x01\x00"| defmt-print.exe -e target/thumbv7m-none
-eabi/debug/test-qemu -v
(HOST) malformed frame skipped
└─ defmt-print @ C:\Users\ander\.cargo\registry\src\index.crates.io-6f17d22bba15001f\defmt-print-0.3.8\src/main.rs:145

Is this not supposed to work?

What if you put a really long delay loop after the print and before the semihosting-exit? I wonder if it's a buffering issue.

OK, I wrote an example, and it seems to work OK: https://github.com/ferrous-systems/rust-training/pull/228
$ cargo run
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.17s
     Running `/Users/jonathan/Documents/ferrous-systems/rust-training/example-code/qemu-thumbv7em/./qemu_run.sh target/thumbv7em-none-eabi/debug/qemu-thumbv7em`
ELF_BINARY=target/thumbv7em-none-eabi/debug/qemu-thumbv7em
Timer with period zero, disabling
Hello, world!
ERROR This is an error log
$ cat qemu_run.sh
#!/bin/bash

# This requires you to previously run `cargo install defmt-print`

ELF_BINARY=$1
echo "ELF_BINARY=$ELF_BINARY"
shift
qemu-system-arm -cpu cortex-m4 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -kernel $ELF_BINARY | defmt-print -e $ELF_BINARY $*
$ qemu-system-arm -cpu cortex-m4 -machine lm3s6965evb -nographic -semihosting-config enable=on,target=native -kernel ./target/thumbv7e
m-none-eabi/debug/qemu-thumbv7em | xxd
Timer with period zero, disabling
00000000: 0001 7e00 027e 00                        ..~..~.
$

If you can publish your example as open source, we can take a quick look at it. If it's not open-source, Ferrous Systems offer professional support.

Thanks for quick reply. My example looks more or less identical to yours, except that I used a local logger implemetation, which I must have copied of an old branch or something. Because I used your current implementation it works perfectly, sorry my bad.
I think it would make sense to publish the defmt-semihosting crate to crates-io just like the defmt-rtt. The semihosting variant is very usefull in CI for other projects as well as defmt. The reason I came across this was that I would like to try to make a QEMU example for embassy-rs.


modifications to issue622_LongGaps branch #522

Hi @jhmigueles
This PR aims to fix your issue622_LongGaps development branch for the long time gap imputation  as described in #522.
These changes should enable epoch level imputation of large time gaps for both metashort and metalong objects.

Imputation now happens inside g.getmeta with the help of g.imputeTimegaps as you nicely programmed.
I reversed all changes to g.applymetrics (by copy-pasting the code from the master branch), because I think we should not mix the metric calculation code with time gap imputation code. Instead, by now having all of it in g.getmeta makes the code more compact and easy to skip for other sensor brands without timegaps.
The matrix extension step in g.getmeta now utilises the known total size of timegaps, such that we do not risk that metashort or metalong are too small.
g.imputeTimegaps:

now takes argument epochsize instead of ws3. I prefer to avoid using ws3 as function argument name, because it is not readable. I know I once introduced this a long time ago, but let's try to avoid it. Argument epochsize is a numeric vector of length two to carry both short and long epoch size. The long epoch size is used to define a long time gap as function of long epoch size.
Now imputes all timegaps if no long timegaps are found, in your code this was not done. It only imputed timegaps if there was at least one long timegap.

read.myacc.csv now also utilised this functionality.

My evaluation so far:

All unit-tests now pass.
I processed a large ActiGraph file with long time gaps and the output looks plausible now. Also my machine did not crash :)

Not done yet:

Update NEWS.Rd

I have one more reflection on this:
Ideally we should move the time gap imputation from read.myacc.csv to g.getmeta just like we have for ActiGraph data. In that way all the time gap imputation work happens in one place. Also the read.myacc.csv function will then be simplified to just reading data which will ease maintenance. However, I cannot immediately oversee whether this poses challenges or problem?
To not overload ourselves with work, we could treat this as a separate issue to be worked on later in the year...

As we discussed, I have re-organized g.getmeta to take into account the imputation from one chunk to the next one (especially the imputation of the left over from previous chunk). I have also modified the tests and consciously made sure that the output from the test is what it should be.
Still to do:

Update NEWS.Rd
Moving imputation out of read.myacc.csv for adhoc files (the only concern I have is that resampling occurs after imputation, so we might need to also move the resampling out to g.getmeta).

The code looks good. It concerns me a little bit that we have been making a changes to unit tests and how objects data and P are dealt with. Even though I am able to follow the logic it feels that these are the kind of changes we should not be making frequently.

Moving imputation out of read.myacc.csv for adhoc files (the only concern I have is that resampling occurs after imputation, so we might need to also move the resampling out to g.getmeta).

Let's postpone that for another time, and create a new issue for it. Let's first make sure the current work gets tested by the community.

these are the kind of changes we should not be making frequently

I agree, that's why I dedicated some extra time to make sure that the output was the expected. The change in the unit tests are due to this:

In previous version, S (the left over from the previous chunk read), was determined as S = as.matrix(data[(use + 1):LD,]).
This probably was logic in the previous version, but after moving the SWMT object definition, in this version data is already shorter than P at this point. So, defining S from data and LD would make us skip a portion of the data from the chunk 2 onwards.
To make sure this was behaving as expecting, I tried with several files, and calculated the number of expected epochs in metashort and metalong considering different sampling frequencies. Then I checked that metashort and metalong had the expected dimensions.


Make it installable as an NPM package

Hi, really and useful library, very nice!
I would be awesome if it was installable as an NPM package.
I've prepared the package.json for you:
{
  "name": "offline-firebase",
  "version": "0.0.1",
  "homepage": "https://github.com/yeldarby/offline-firebase",
  "repository": {
    "type": "git",
    "url": "git://github.com/yeldarby/offline-firebase.git"
  },
  "author": {
    "name": "Brad Dwyer<EMAIL_ADDRESS>  },
  "description": "A Firebase wrapper that stores a cache of your data offline in localStorage when there is no Internet connection available.",
  "keywords": [
    "firebase",
    "offline-firebase",
    "offline"
  ],
  "licenses": [
    {
      "type": "MIT",
      "url": "https://github.com/yeldarby/offline-firebase/blob/master/LICENSE.txt"
    }
  ],
  "readmeFilename": "README.md",
  "bugs": {
    "url": "https://github.com/yeldarby/offline-firebase/issues"
  },
  "engines": {
    "node": ">= 0.10.0"
  },
  "files": [
    "OfflineFirebase.js",
    "firebase-debug.js",
    "LICENSE.txt"
  ]
}

Cheers!

would love to see this an an npm


Download using objectURL of a blob

The data-URL technique only works for reasonably short strings, this is a more robust implementation. Should work for transformations from URL and upload.

I have committed a fix for Dockerfile which hopefully make it work again.


CONSISTENCY: Make all secondary buttons consistent

Change the secondary button component to be consistent in hifi and styleguide

Made a new secondary button component

Finished


tailwind filter

the filtering utilities not working like blur grayscale. im new in react . Thanksss a lot

This is related to Tailwind JIT and CSS-Modules. It has some issues with transforms, and also with variants like Dark theme.
You can move out of CSS-Modules, or from Tailwind JIT.


Change github urls from GovernmentCommunicationsHeadquarters to gchq

Most of the urls automatically redirect from GovernmentCommunicationsHeadquarters, however there are some, such as the GitHub pages (javadoc) url, that doesn't.

Merged into develop.


Fix for pep8 errors

Did pep8 fixes.

Thanks @saqib1707! There are some minor fixes that need to be made (i'll follow up with a commit), but overall it's a solid contribution.

@dessant  I found this line which will add unnecessary tabs to the log output.
Apart from that, great contribution @saqib1707! thanks!

@udiboy1209 nice catch, that was not on my list.

Great!! i was working on the same issue!! #4814

I have added E741 to the ignore list, in some places the l -> z replacement made the code harder to understand, like here: https://github.com/kivy/kivy/pull/4815/files#diff-480d2648b9998d693c37b6a52732eff3R610.

E741 doesn't concern most monospace fonts because they clearly distinguish between lowercase l and uppercase I. I also felt it should be ignored :smile:

Sigh, github was not expanding the diff for textinput.py and I completely missed it.
@saqib1707, how did this end up in you pr? https://github.com/kivy/kivy/pull/4815/files#diff-f6433d5683536d9ce43c2441a159250eR149

I dont know how this happened ..But ok let me correct this..

@dessant should I create a new PR for the textinput.py file since I have pushed it to my kivy repo but it is not appearing here ?

@saqib1707, I'm not sure what do you mean by that, your only option is to create a new PR if this was already merged.

The textinput.py changes were reverted in https://github.com/kivy/kivy/commit/d7e807998ca9b50e2c4ebb972361668b4ba5e133.


The topic for sys.fn_xe_file_target_read_file  could need some love

I'm looking at https://docs.microsoft.com/en-us/sql/relational-databases/system-functions/sys-fn-xe-file-target-read-file-transact-sql?view=sql-server-ver15, and I see some room for improvement.
It's says about the parameter path that there is no default. And that is true for the file-name part, but it seems that there is a default for the directory path. If I say
FROM sys.fn_xe_file_target_read_file(N'system_health*.xel',DEFAULT, DEFAULT, DEFAULT)
it seems to find the file. So it looks as if the default folder might be the folder where the SQL Server errorlog, but this may require some investigation to certify.
It would also be good if the topic would point out that you almost always need to specify the wildcard star.
The warning on top should probably be dropped, and the text mdpath should be modified to say that this parameter only applies to SQL 2008. Oh, yes, there is already a Note to say this. But there's so many Notes in the Docs, that you tend to skip them. :-)
At a minimum the sole example in the topic could be modified to leave the second parameter NULL/DEFAULT.
But an example showing how to read the system_health session could be useful.
As could an example how to read it from Azure Blob Storage when you are on Azure SQL Database. (Assuming that you use this function for there as well, which I don't know for sure is the case.)

@sommarskog -- thank you for your thorough feedback.
@WilliamDAssafMSFT -- William, please look into this issue.

Thanks @sommarskog for contacting Microsoft with feedback about our product documentation. I agree with some of these points and have a doc update in flight. I'll contact you if we need further information, and you'll receive an email message each time we mention you in a comment.
Thanks again for this feedback, your suggestions help improve our documentation.


Using InventoryUI to connect to Inventory will report an error

Hello, after I used Inventory to create the equipment grid, I can add items normally. However, after I use InventoryUI to connect to Inventory, I get an error: Cannot call method 'instantiate' on a null value. I don't know why this is happening. I use godot. The built-in TextureButton can also display Inventory pictures normally. QAQ, I am a newbie. I have been trying for a day and still cannot solve the bug. However, after not using InventoryUI, there are no errors.

Hello, after I used Inventory to create the equipment grid, I can add items normally. However, after I use InventoryUI to connect to Inventory, I get an error: Cannot call method 'instantiate' on a null value. I don't know why this is happening. I use godot. The built-in TextureButton can also display Inventory pictures normally. QAQ, I am a newbie. I have been trying for a day and still cannot solve the bug. However, after not using InventoryUI, there are no errors.

Fixed? What was the solution?


Complex data structures

Automatic interface generation with something like c2hs would be a good long-term goal, but for now here's some examples using the relevant Foreign modules:
Rust data in Haskell: ForeignPtr
Haskell:
import Data.Int
import Foreign

data RustValue
foreign import ccall "value_create" value_create :: Int32 -> IO (Ptr RustValue)
foreign import ccall "&value_destroy" value_destroy :: FunPtr (Ptr RustValue -> IO ())
foreign import ccall "value_modify" value_modify :: Ptr RustValue -> Int32 -> IO ()

newtype Value = Value (ForeignPtr RustValue)

valueCreate :: Int32 -> IO Value
valueCreate x = do
    p <- value_create x
    Value <$> newForeignPtr value_destroy p

valueModify :: Value -> Int32 -> IO ()
valueModify (Value fp) x =
  withForeignPtr fp $ \p ->
    value_modify p x

Rust:
pub struct Value(i32);

#[no_mangle]
pub unsafe extern "C" fn value_create(x: i32) -> *mut Value {
    Box::into_raw(Box::new(Value(x)))
}

#[no_mangle]
pub unsafe extern "C" fn value_destroy(p: *mut Value) {
    let _ = Box::from_raw(p);
}

#[no_mangle]
pub unsafe extern "C" fn value_modify(p: *mut Value, x: i32) {
    (*p).0 = x;
}

Haskell data in Rust: StablePtr
Haskell:
import Data.Int
import Foreign.StablePtr
import Foreign.Ptr

newtype Value = Value { unValue :: Int32 }
foreign export ccall valueCreate :: Int32 -> IO (Ptr ())
foreign export ccall valueDestroy :: Ptr () -> IO ()
foreign export ccall valueGet :: Ptr () -> IO Int32

valueCreate :: Int32 -> IO (Ptr ())
valueCreate x = castStablePtrToPtr <$> newStablePtr (Value x)

valueDestroy :: Ptr () -> IO ()
valueDestroy p = freeStablePtr sp
  where sp :: StablePtr Value
        sp = castPtrToStablePtr p

valueGet :: Ptr () -> IO Int32
valueGet p = unValue <$> deRefStablePtr (castPtrToStablePtr p)

Rust:
enum HaskellValue {}

extern "C" {
    pub fn valueCreate(x: i32) -> *mut HaskellValue;
    pub fn valueDestroy(p: *mut HaskellValue);
    pub fn valueGet(p: *mut HaskellValue) -> i32;
}

struct Value {
    ptr: *mut HaskellValue,
}

impl Value {
    pub fn new(x: i32) -> Value {
        Value { ptr: unsafe { valueCreate(x) } }
    }

    pub fn get(&self) -> i32 {
        unsafe { valueGet(self.ptr) }
    }
}

impl Drop for Value {
    fn drop(&mut self) {
        unsafe {
            valueDestroy(self.ptr);
        }
    }
}

There's also Foreign.C.String, which works mostly like Rust's CStr and CString, and Foreign.Storable for non-pointer types and array/vector support.

I'd like to explore the possibility of structs with multiple values as well as lists with Haskell and making it easier between the two. I think getting a list into Rust and one of the Standard library objects (Vec for instance) into Haskell would be a hard task but something that would really help out a lot. These are great examples. Thanks for taking the time to put them in.

For Rust Copy structs, Foreign.Storable can copy them to and from fully native Haskell data types (example, SDL2 bindings). Storable would really benefit from automation, since it needs raw memory offsets and sizes. More complex types like Rust's HashMap can use the above ForeignPtr pattern with more accessor functions.
I think Haskell lists just need head and tail wrapped with StablePtr and/or Storable input and output, and implementing Iterator on the Rust side. Or Foreign.Marshal.Array.withArrayLen if you want the elements as a slice. For passing Vecs from Rust to Haskell, I think Haskell can take ownership of them by wrapping the Vec with a ForeignPtr wrapped with Data.Vector.Storable.Mutable.unsafeFromForeignPtr.

I'll need to dig through these docs then. This is a good starting point. Automating storable would help a lot I think. There's a lot here. Getting some basic data passed around would really boost the credibility and usability of the library.


Error with ->twitter()->getRawLinks()

ErrorException
Array to string conversion

When trying to output raw link for Twitter.

Anyone with a bit of info in this

@kevinwaxi  @james0r  Please see this. https://github.com/jorenvh/laravel-share/issues/95#issuecomment-1161312378


Version 1.1.0 of guice-extension breaks parameterized tests.

After updating Guice-Extension to the new version, the parameterized tests broke down.
@ExtendWith(GuiceExtension.class)
public class Test {
    @ParameterizedTest
    @ValueSource(strings = {"one", "two", "three"})
    void test(String count) {
        assertTrue(true);
    }
}

Error:
org.junit.jupiter.api.extension.ParameterResolutionException: Discovered multiple competing ParameterResolvers for parameter [java.lang.String arg0] in method [void com.tests.Test.test(java.lang.String)]: name.falgout.jeffrey.testing.junit.guice.GuiceExtension@19e4653c, org.junit.jupiter.params.ParameterizedTestParameterResolver@795509d9

I researched this problem and found that the reason is built-in binding for String.class.
String has empty constructor and binds in runtime by Guice to "" (empty string).
See line 206:
https://github.com/JeffreyFalgout/junit5-extensions/commit/adf2f4ece977e834ba9b4f1563ebc568784ad3a4#diff-5eef6748419687f2efdf650d6649f118
I suggest to add additional annotation with bindingModeParam(ALL,EXPLICIT_ONLY) to set binding mode and process it in supportsParameter method.
..or just make workaround with built-in binding String.class.
I would like to hear your opinion and suggestions on this issue.

Nice find. Explicit only is probably a non-starter, because a lot of people rely on implicit just-in-time bindings for their @Inject annotated classes.
Special casing String to be explicit only makes sense, though. If you want to take a crack at it, I'd be happy to take a PR. Otherwise I'll probably get around to this in the next couple of weeks


Design is not displaying on the browser

Note: for support questions, please use one of these channels: Chat: AngularClass.slack or Twitter: @AngularClass

I'm submitting a ...
[ ] bug report
[ ] feature request
[ ] question about the decisions made in the repository

Do you want to request a feature or report a bug?

What is the current behavior?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via
https://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).

What is the expected behavior?

What is the motivation / use case for changing the behavior?

Please tell us about your environment:

Angular version: 2.0.0-beta.X
Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]

Other information (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)

Design is not showing on the browser. text is displaying but design not displaying and not throwing any error.
i have tried to attached image so that u can better understand the issue what i am facing.but unable to add image.

You would have to uploaded to an external service, or place it in a repo. As you follow the guide, the starter should appear as testet.

You would have to uploaded to an external service, or place it in a repo. As you follow the guide, the starter should appear as testet.


[Addition]: 4 EDA-IoT HS in Fatullah (Bangladesh) abusing the H3Dex bug

Hotspot b58 Addresses
115D7GcPWF9Mfj63roW9tSpLM93BmJ8rK7GDrM8L5YB4Tm9grMM
112XkzY47LZ3nYeT751a96epvLdQdBKkBg8mQBxRooQTkBHWTcfz
11Vmf4sMds98CotUc6CfhzYY89oLAfso5qPWF6phG8y5Rvs61eS
112EMJzZ8C3psiz8n9iXVAK4cx9b2Y48ZchshBajjhbzpj8KAi9z
Discord Handle
Gratje#7647
Reason(s)
This set of 4 is abusing the H3Dex bug. All asserted around the same time in. with no HS around them, except other H3Dex abusers or already denylisted HS.
Only witnessing themself. Perfect TS, Clearly abusing the H3Dex targeting bug.


KeyPair should not be required for creating Ec2 Instances

Remove the @Required validator.
https://github.com/perfectsense/gyro-aws-provider/blob/a4d1fcf80dfad1137a0a36adbf4523e81ba02a57/src/main/java/gyro/aws/ec2/InstanceResource.java#L232-L235

Duplicate of #497


Color of the Pixel Accent not matching with Pixel Blade (v1.1-beta)

I installed the v1.1-beta to check the pixel accent amazing feature. Taking into account it's just a beta version it working really fine, but I have an strange phenomena....:
The color of the pixel blade is not matching with pixel accent. Basically I have the following relations:
Blade: red -> Accent: green
Blade: blue -> Accent: blue
Blade: green -> Accent: OFF
I don't think it's related with hardware because pixel accent if changing the color properly, even with different brightness level...
Thanks in advanced for your support!

Depending on the LED red and green might be swapped, but no color should
just not work.
In FXSaberOS.ino, after line 121
WS2812 accentPixels(NUM_ACCENT_PIXELS);
add
accentPixels.setColorOrderRGB();
I think this should work, but I can't test it.  If it works I will update a
new version that includes a flag "swapAccentRG" that will make it easier to
fix this in the configuration.
Jason "Kuma" Brinkerhoff
*Mad Science Workshoppe, *proprietor
http://jbkuma.com/workshoppe
On Fri, Aug 17, 2018 at 5:27 PM AirmakZ<EMAIL_ADDRESS>wrote:

I installed the v1.1-beta to check the pixel accent amazing feature.
Taking into account it's just a beta version it working really fine, but I
have an strange phenomena....:
The color of the pixel blade is not matching with pixel accent. Basically
I have the following relations:
Blade: red -> Accent: green
Blade: blue -> Accent: blue
Blade: green -> Accent: OFF
I don't think it's related with hardware because pixel accent if changing
the color properly, even with different brightness level...
Thanks in advanced for your support!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/Protonerd/FX-SaberOS/issues/76, or mute the thread
https://github.com/notifications/unsubscribe-auth/ATdCMB28KKT7KXWaTOF9-3nseZtjBJBxks5uRzU9gaJpZM4WCOHu
.

Hi jbkuma, thanks for your quick answer.
Your proposed solution is WORKING FINE !!
Just instead of line 122 I added the command inside setup, otherwise I have the compilation error:
FX-SaberOS_beta:121: error: 'accentPixels' does not name a type
void setup() {
  #ifdef PIXEL_ACCENT
    accentPixels.setColorOrderRGB();
    accentPixels.setOutput(PIXEL_ACCENT_DATA);
  #endif

I don't know how the WS2812 library works but taking into account I'm using leds from the same reel... it seems strange.... Anyway.... SOLVED.
Regarding red color issue I will try replacing the led because I unsolder it from the strip and maybe It's damaged.
Thanks again.

I added a fix to the main branch with notes on Facebook and Open Saber forum
On Fri, Aug 17, 2018, 7:00 PM AirmakZ<EMAIL_ADDRESS>wrote:

Hi jbkuma, thanks for your quick answer.
Your proposed solution is WORKING FINE !!
Just instead of line 122 I added the command inside setup, otherwise I
have the compilation error:
FX-SaberOS_beta:121: error: 'accentPixels' does not name a type
void setup() {
#ifdef PIXEL_ACCENT
accentPixels.setColorOrderRGB();
accentPixels.setOutput(PIXEL_ACCENT_DATA);
#endif
I don't know how the WS2812 library works but taking into account I'm
using leds from the same reel... it seems strange.... Anyway.... SOLVED.
Regarding red color issue I will try replacing the led because I unsolder
it from the strip and maybe It's damaged.
Thanks again.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/Protonerd/FX-SaberOS/issues/76#issuecomment-414008216,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATdCMJBds1C9o17OcNgTRMEfgJ-qdeTrks5uR0sigaJpZM4WCOHu
.

@jbkuma, one question.
Modification has been added in master branch, but seems it's not including all pixel accent features same as beta, right?
Is there a merge activity scheduled in the future?
By the way, just confirm that red color issue has been solved replacing the led 👍

Until the past couple small fixes I think the master branch matched the
beta.  Master should be considered the most up to date at the moment.
Jason "Kuma" Brinkerhoff
*Mad Science Workshoppe, *proprietor
http://jbkuma.com/workshoppe
On Sat, Aug 18, 2018 at 8:11 AM AirmakZ<EMAIL_ADDRESS>wrote:

@jbkuma https://github.com/jbkuma, one question.
Modification has been added in master branch, but seems it's not including
all pixel accent features same as beta, right?
Is there a merge activity scheduled in the future?
By the way, just confirm that red color issue has been solved replacing
the led 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/Protonerd/FX-SaberOS/issues/76#issuecomment-414053783,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ATdCMBAMvEbiEKz3FnB0wNAo2mUrP2O6ks5uSAR9gaJpZM4WCOHu
.

Understood !! 👍


[bug] crash on android 12

Phone: Redmi Note 9 pro, android 12 miui 14.0.5
Error message

java.lang.IndexOutOfBoundsException: Index -1 out of bounds for length 0
at jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at jdk.internal.util.Preconditions.checkIndex(Preconditions.java:266)
at java.util.Objects.checkIndex(Objects.java:359)
at java.util.ArrayList.remove(ArrayList.java:511)
at com.farmerbb.taskbar.ui.u1.L1(TaskbarController.java:63)
at com.farmerbb.taskb
ar.ui.u1.q1(TaskbarController.java:1)
at com.farmerbb.taskbar.ui.u1.P(Unknown Source:0)
at com.farmerbb.taskbar.ui.d1.run(Unknown Source:2)
at java.lang.Thread.run(Thread.java:1012)

I'm getting crashes on Android 13 with Pixel 4 XL as of a couple of days ago as well. Which means it's it's probably a Google update that broke it. Already uninstalled and reinstalled with no difference.
I also emailed the dev but it appears he hasn't been active for a couple of years. Once I have time in a week or two, I'll fork this project and try and fix the bug

Okay so I recreated the issue. If you pin ANY app to the drawer, close the drawer and click the arrow again to open it, it crashes and never opens again.
Workaround:

Open Taskbar settings and go into Advanced and go to bottom option and create a backup.

Go into phone settings, Apps, find Taskbar and go to Storage and clear data and cache.

Reopen Taskbar and reconfigure your settings and layout the way you want WITHOUT pinning any apps.

Toggle on Taskbar so that it is showing (probably has apps in there that you don't want there).

Start opening the apps you want to be in there from your phone, not Taskbar and you'll see those apps start to populate in Taskbar drawer.

Once all your apps are there, go into Taskbar settings again and create another backup and name it sometimes you'll remember that it is the temporary working workaround.

Then proceed with doing your normal routine. If it starts crashing again, just restore that new backup.

Yaaaay Brandon fixed the bug that was causing crashes on Android 13! Thank you. You can close this one I think

Fixed with the last build


x/telemetry: consolidate uploading and merging time horizons

Right now, we have a nightly job that produces merged reports (those available at telemetry.go.dev/data) for the last 8 days. Yet the client may upload data for the last 21 days.
This has a few problems:

21 days is too short. We typically care about "28 day users", so should probably accept uploads up to 28 days old.
We should produce merged summaries for all the uploads we get, even if they are older than 8 days.
We should reject reports on the server if they are too old, so that we don't store uploads that won't ever be merged.

We're not getting user counts from this data, so I'm not sure why we care about 28-day-users. We'd only see something that old if someone used the go command three weeks ago and then not again until today. We do want to cap how long we need to wait for a given week's official record to stabilize, and 28 days seems very long.
It seems like we should flip in the other direction and reject uploads > 8 days old, at least if "old" is defined as today minus end-of-week. (For today minus start-of-week, 8 days old would really only be a 1-day-old cutoff.)

Some responses inline below, but rejecting uploads > 8 days SGTM.

We're not getting user counts from this data, so I'm not sure why we care about 28-day-users.

We estimate the number of 28 day users by other means, and I thought it would be useful to be able to measure the experience of this population. Of course, there are various other biases that prevent us from accurately measuring the 28 day user population (for example, infrequent users are probably less likely to opt in to telemetry).

We do want to cap how long we need to wait for a given week's official record to stabilize

I don't actually have strong opinions about where we put the cutoff. 8 days sounds reasonable. Eyeballing recent data, it looks like we get >90% of reports within a week, so let's go with this. CC @fflewddur for awareness.
I did more investigation, and discovered that there are more reasons why older upload dates have relatively more "late data":

We don't enforce a date cutoff when retrying an upload. So if gopls had tried to upload 2023-12-29.json and failed, I might have retried uploading it months later.
https://go.dev/issue/63694 was not implemented until 2024-02, so before that change propagated to uploaders, we'd keep retrying reports that were invalid due to having an unrecognized program version.
Before we had push tests and autodeployment of telemetry.go.dev (https://go.dev/issue/65165), it was not uncommon for it not to have the latest upload config, and therefore users with data for the most recent program version would have their reports rejected.

These three factors contribute to having much more "late" data in Dec 2023 / Jan 2024. Looking at recent data, this is significantly less of a problem now.

Sounds good, thanks.


Compile Qsys when configuring ASE simulation.

This eliminates the last significant difference between the ASE configuration
provided in OPAE and the ASE configuration shipped with discrete cards.  It was
a source of confusion in documentation, since we generally advised the use of
afu_sim_setup, which invokes generate_ase_environment.py.  For AFUs with Qsys,
we suggested a different script.  All shipped AFUs can now use the same
afu_sim_setup for configuration.

Tests pass: http://sw-pert.altera.com/pert/pert.php?test_run_id=2351443


Slide show stops after first transition

Great component thanks!
Using it on http://hye.life and here is the source code usage:
https://github.com/fxfactorial/hye-life/blob/master/lib/hye-life.jsx#L89
And for whatever reason after the first transition the slideshow stops, no errors though. Any idea why? I said to not pause if hovered over as I thought that might be it but problem persists.

was my mistake! Sorry for noise!


 disabled menu item The function of  click() should not work in disbled li

Reproduction link
https://ng-zorro-antd-ivy-7nd3k4.stackblitz.io
Steps to reproduce
<nz-dropdown-menu #menu="nzDropdownMenu">

<li nz-menu-item nzDisabled (click)="click()">disabled menu item

click(){
console.log("AAAA")
}
What is expected?
    <li nz-menu-item nzDisabled (click)="click()">disabled menu item</li>

The function of  click() should not work in disbled li
What is actually happening?
disabled menu item
The function of  click() should not work in disbled li

Environment
Info

ng-zorro-antd
9.3.0

Browser
Chrome

any update?

Still able to reproduce that on 18.0.1. Any update?


[Bug]:    Connection. _rawSend   Added the option to send objects instead of just strings

Bug description
To use this library for browser extensions, you need   puppeteer.connect({   transport  });
In the source code, Connection. _rawSend needs to convert the object to a string.
But in the browser, chrome.  The chrome.debugger.sendCommand   is object,
On our end, we need JSON.parse(message), which wastes performance,
If  Connection. _rawSend  sends objects directly, you can save performance...
Puppeteer version
puppeteer-core/lib/cjs/puppeteer/web
Node.js version
chrome.debugger
npm version
0
What operating system are you seeing the problem on?
Windows
Relevant log output
No response

\puppeteer-core\lib\esm\puppeteer\common\Connection.js
This file
Connection._rawSend

_rawSend converts the entire payload (not just the data) into a string for WebSocket transport.


⚠ ClamAV has degraded performance

In 2e8df52, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 75 ms

Resolved: ClamAV performance has improved in 31bb761.


Support API Key authentication for Metrics API scaler

Use-Case
Support API Key authentication for Metrics API scaler
Specification

[x] Support for API key in HTTP URL
[ ] Support for API key in HTTP request header

Reference
https://github.com/kedacore/keda/issues/929

Hi @tomkerkhove, I would like to pick this issue. Based on this thread, I believe no one is doing any development on this. Just wanted to check if I can start.

Nope, that is correct. Thanks for picking this up!

Perfect. So what I get from the description is that we wanted to integrate API Key (which will be available in the metadata) to be appended to the http URL like this http://myapp/metric/endpoint?api_key=<metadata.APIKEY>. I believe this is the standard implementation practice or do we need customization in defining the query param name?

Today, they have to provide the full URL to call - https://keda.sh/docs/2.0/scalers/metrics-api/
In theory they can add the API key in there already but I'd prefer not to. What we want to achieve here is:

API key support through request header
API key support through query parameter

For both I would provide a standard header/query parameter name, but with the option to define their own in case they deviate from the mainstream. Make sense?

Got it. All clear now. I am starting with this. Thanks!

@tomkerkhove this is done. can we close this issue :)

Thanks!


⚠ Secret Website 3 has degraded performance

In 29a6511, Secret Website 3 ($SECRET_WEBSITE_3) experienced degraded performance:

HTTP code: 200
Response time: 2503 ms

Resolved: Secret Website 3 performance has improved in 4c97213.


Adding support for s390x in calculation of cpu_frequency

PR for changing the GetCycleCounterFrequency for s390x to fix test //tensorflow/core:platform_profile_utils_cpu_utils_test.
Facing issue similar to power reported here .
On s390x too cpu_frequency = -1 and hence below test fails:
[ RUN      ] CpuUtilsTest.CheckCycleCounterFrequency
2017-07-17 04:43:02.050579: F tensorflow/core/platform/profile_utils/cpu_utils_test.cc:57] Check failed: cpu_frequency > 0 (-1 vs. 0)

Extending the fix added for PPC raised via PR

Can one of the admins verify this patch?

@gunan, I saw a check for LE in the ppc commit and since s390x is big endian, thought of keeping the condition separate for s390x for avoiding any future conflicts.
Would it be better to merge both in same if condition?

I would still merge these for the sake of keeping code cleaner.
Then we can worry about the added complexity (if needed) when adding ppc LE support.

@gunan, thank you for  your feedback.
Closing this PR; opened #12201


[wip] landdetector mc: widen acceptance threshold after landing

Related to the issue here: https://github.com/PX4/Firmware/issues/7768.
Instead of widen acceptance threshold right after arming, the threshold has been widened right after landed was detected.
@sanderux, can you please retest?

Looks good, i will test this soon.
The issue that remains unresolved is the strange behavior if an initial landing detected does not persist. This worries me a little as this is a possible scenario on a vtol.
@dagar do you have any idea what could be causing the strange system behavior?

uorb topics no longer publishing
mag timeout
gps fix loss

From previous experience the LPWORK process spiked to 35% cpu related to the land detector and exhibited the same behavior.

Tested, works: https://logs.px4.io/plot_app?log=bd8740e0-f43b-418b-8f10-f27f50e9f989

@Stifael can you rebase for a new CI check?
If you are content i think we can get this in.

@Stifael why would you remove the less strict detection on arming?

@AndreasAntener, I assume you ask because you encountered a problem?
Why is it necessary to increase the threshold (= make it easier to detect landed) right after arming for vertical movement and rotation right after arming? Does your vehicle move/rotate when you arm?

The prop spin up. You even left the comment in the code:

// so that motor spool-up and other effects do not trigger false negatives.

Extreme example is our octocopter with 24in folding props. But any vehicle can be affected by this. Some of our larger VTOLs create quite some airflow under the wing while arming which moves it around quite a bit.

@AndreasAntener, I was more interested in knowing if there was a problem with this change?
I did this PR because of vtol, where the large minimum thrust caused issue. The increase in threshold after landing could have been done independent of reverting the arming, but despite the description I did not understand what

spool-up and other effect do not trigger false negatives

exactly mean. That said, I called it WIP because I did not test it myself and because I was not sure if this change will cause issues and if it does, make the threshold increase for landing independent. Therefore, I assume you encountered a problem with your vehicles?
Can you list the sequence of execution that you expect to happen with the increase in threshold right after arming?
Here is the sequence how I understand it:

we are disarmed -> always landed
we arm -> as long as vehicle is not moving the vehicle stays in landed state, where the props rotate in idle. This is because the position controller set thrust to 0 when landed.

The threshold increase after arming only effects vertical movement here and rotation here. This has nothing to do with the thrust threshold. In addition, the threshold for movement are already quite large (for vertical movement the threshold is at 0.5m/s). Consequently, as long as the vehicle does not move during arming, there should not be any change (that is at least what I concluded from the code). So please correct me if I missed something.

@AndreasAntener did you have a chance to test it with one if your vehicles? If yes and things worked well, I will do a pr that changes the description to finalize this pr.

Sorry for not getting back to you earlier.. I understand the change you did for the landing case and I'm not arguing about that.
I agree, vertical movement is unlikely to trigger, but the rotation is. I'm not saying we need support for drones with completely unstable landing gear. But the props during spin-up can easily disturb a large vehicle enough so that the rotation threshold is crossed. Once the props are idling properly, the vehicle comes to a rest. At least that is the assumption I'm going with here. It might be wrong.
What I was getting at is that functionality was removed which has been added for a reason, and we should first prove that the reason for adding it was invalid. Which is why it should be re-added IMHO. It will actually be impossible to prove that it's not needed ;)


how can i test if block in jest like this lines of code

const dataTypeName = mapDataTypes(dataType);
if (dataTypeName.length === 0) {
return;
}
yield put(sourceActions.onRdsmSourcePlantRequestStarted());
this case how can check the if block

You can check done property of the resulting object when dataTypeName is empty to check if the iterator has finished.


chore: pre-commit hooks

added pre-commit hooks for linting & conventional-commits

@aaronc spotted you folks already used conventional commits + this generally tends to be my standard workflow for go projects. It would be nice to get the CI for tagging semver and publishing tagged versions for this setup too, something i may look at proposing in a subsequent MR 🙏

something like -> https://github.com/marketplace/actions/semver-conventional-commits

Thanks for your contribution @0xste


nil pointer: index with function

Hi,
I wanted to try the new Partitioning but ended up being blocked by another issue.
I have a table that has an index that uses function:
CREATE UNIQUE INDEX "test_index" ON "test" ("id", md5("name"));

It throw this
goroutine 280 [running]:
runtime/debug.Stack()
	/Users/runner/hostedtoolcache/go/1.17.9/x64/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
	/Users/runner/hostedtoolcache/go/1.17.9/x64/src/runtime/debug/stack.go:16 +0x19
github.com/99designs/gqlgen/graphql.DefaultRecover({0xa17f800, 0xa17f700}, {0x4e7a400, 0x6109cb0})
	/Users/runner/go/pkg/mod/github.com/99designs/gqlgen@v0.15.2-0.20220119135911-986650718267/graphql/recovery.go:17 +0x71
github.com/99designs/gqlgen/graphql.(*OperationContext).Recover(0xa35ffff, {0x585aef8, 0xc000390000}, {0x4e7a400, 0x6109cb0})
	/Users/runner/go/pkg/mod/github.com/99designs/gqlgen@v0.15.2-0.20220119135911-986650718267/graphql/context_operation.go:114 +0x3e
ariga.io/atlantis/graphql/exec.(*executionContext)._AtlasSchema_diagram.func1()
	/Users/runner/work/ariga/ariga/atlantis/graphql/exec/exec_gen.go:5585 +0x6a
panic({0x4e7a400, 0x6109cb0})
	/Users/runner/hostedtoolcache/go/1.17.9/x64/src/runtime/panic.go:1038 +0x215
ariga.io/atlantis/graphql/resolver.(*atlasSchemaResolver).Diagram(0xc000126e00, {0x585aef8, 0xc000390000}, 0xc0000f9540)
	/Users/runner/work/ariga/ariga/atlantis/graphql/resolver/atlasSchema.resolvers.go:123 +0xed2
ariga.io/atlantis/graphql/exec.(*executionContext)._AtlasSchema_diagram.func2({0x585aef8, 0xc000390000})
	/Users/runner/work/ariga/ariga/atlantis/graphql/exec/exec_gen.go:5600 +0x82
github.com/99designs/gqlgen/graphql/executor.processExtensions.func4({0x585aef8, 0xc000390000}, 0xc0000f00c0)
	/Users/runner/go/pkg/mod/github.com/99designs/gqlgen@v0.15.2-0.20220119135911-986650718267/graphql/executor/extensions.go:72 +0x26
ariga.io/atlantis/graphql/exec.(*executionContext)._AtlasSchema_diagram(0xc0005879e0, {0x585aef8, 0xc0005aa840}, {0xc0001db280, {0xc000411200, 0x0, 0x0}}, 0xc0000f9540)
	/Users/runner/work/ariga/ariga/atlantis/graphql/exec/exec_gen.go:5598 +0x294
ariga.io/atlantis/graphql/exec.(*executionContext)._AtlasSchema.func8({0x585aef8, 0xc0005aa840})
	/Users/runner/work/ariga/ariga/atlantis/graphql/exec/exec_gen.go:19540 +0xa9
ariga.io/atlantis/graphql/exec.(*executionContext)._AtlasSchema.func9()
	/Users/runner/work/ariga/ariga/atlantis/graphql/exec/exec_gen.go:19545 +0x25
github.com/99designs/gqlgen/graphql.(*FieldSet).Dispatch.func1({0x0, 0xc00012d400})
	/Users/runner/go/pkg/mod/github.com/99designs/gqlgen@v0.15.2-0.20220119135911-986650718267/graphql/fieldset.go:42 +0x3c
created by github.com/99designs/gqlgen/graphql.(*FieldSet).Dispatch
	/Users/runner/go/pkg/mod/github.com/99designs/gqlgen@v0.15.2-0.20220119135911-986650718267/graphql/fieldset.go:41 +0x25d

That could probably be expressed like this but it might be complicated to validate the column name:

schema "public" {}

table "test" {
  schema = schema.public
  column "id" {
    null = false
    type = int
  }
  column "name" {
    null = true
    type = varchar(100)
  }
  index "index_with_function" {
    on {
      column = column.id
    }
    on {
      column = "md5(name)"
    }
    unique = true
  }
}

Forget to say it is happening when inspecting not applying
atlas schema inspect -d "postgres://<>@localhost:26432/postgres?search_path=public&sslmode=disable" -w

Hey @bodinsamuel,
Thanks a lot for the detailed info. A few notes:

The HCL block you provided really helps, just a quick note that per the docs on index expressions to use an index expression use:

on {
  expr = "md5(name)"
}

As we are focused on completely revamping the way the Management UI works in Atlas, we've omitted the UI from the build in v0.4.0. More news on this to follow soon

Closing this for now.


typo: PendingDepricationWarning

On line 376, PendingDepricationWarning should be PendingDeprecationWarning.

Open PR and I'll merge it.

The patch is clear, isn't it?


Update stale/add @go.trim lib/strings header comment

Will file an issue to consider how to automatically generate these comments as part of ./go modules -h <MODULE> to avoid the problem of out-of-sync header comments altogether.

Coverage remained the same at 94.603% when pulling 7633fdb2071629ac187585889d937eb8afcddf32 on strings-comments into a9e9ac2b1532bbf27ba8f96cb67770dc1f2e9967 on master.


Handling cherry picking on forked repositories

Hey @carloscastrojumo,
I am using your action in https://github.com/openhab/openhab-docs and had to adapt the workflow file a little due to a different usecase.
Our usecase is to get contributions into different release states of our doc contents, where this action can (and will) save many time.
Therefore we are dealing with contributions based on a forked repository (and base-branch) mostly, which lead to some permission issues with the example configuration.
GitHub has a special event type pull_request_target to address this problem:
https://github.blog/2020-08-03-github-actions-improvements-for-fork-and-pull-request-workflows/#improvements-for-public-repository-forks
(My Config: https://github.com/openhab/openhab-docs/blob/main/.github/workflows/cherryPickAutomation.yml#L5)
I would like to avoid the pain for other users and bring this information in place here somehow.
What would be the best way in your view?
Add another example in the readme or just a little note with a link somewhere?
Looking forward to your input. 🙂
BR
Jerome

Hello @Confectrician,
I'm very happy to see the tool being useful for other projects.
Thank you so much for sharing your solution, that will definitely save time to others users, who also have the same use case.
If you don't mind, I would say to make a PR to update the REAME with that special case.
Cheers,
Carlos


In java-library multi-module projects, tests could skip jar creation (but right now they don't)

Expected behavior
I thought that, at least in my and several other project, tests in multi project build could skip jar generation and reuse resources and classes directories.
Current behavior
In java-library operated projects, running tests task still forces a jar build.
Context
After looking into the java-library plugin documentation I thought that I could apply it to optimize my multi project build by not packing classes and resources (some of those are quite big) into a jar artifact for any other project to use, unless I am publishing them. However, after applying the plugin I've noticed that the jars are still being produced.
After learning about variants and secondary variants I've found out that even though there is a LibraryElements attribute value CLASSES_AND_RESOURCES,

JavaLibraryPlugin does not provide such a secondary variant for a runtimeElements configuration/variant (by the way, the terminology here goes a bit hazy for anyone trying to learn it),
testRuntimeClasspath is not configured to request such variant via attributes.

I guess it could make sense since via that option classes and resources directories would be on the final classpath independently, and it could cause an observable change in behavior, but one could argue the same for compileClasspath where we do of course request a pure classes variant, if possible. Also, if you'd use more than one language per Java-like module (i.e. Scala or Kotlin) you'd already get several directories on the classpath instead of one jar. For Jigsaw modules that would probably be an edge case (yet again, what does Gradle already does for modules with compileClasspath?).
Demo / Sample
To demonstrate the issue, I've created a sample project with two modules where one (:user) depends on another one (:core), but core:jar tasks is configured to always fail. Also, I've hacked together a solution that actually registers a new secondary variant. Zip is attached. You can provide -PconfigureAdditionalVariant=yes to try it out of the box: try to get :user:test to run.

It's unlikely that we are going to change this behaviour, because there are too many corner cases and in most builds the jar generation is not a performance bottleneck.


Update to Pack CLI v0.27.0

https://github.com/buildpacks/pack/releases/tag/v0.27.0
GUS-W-11335172.

CI is failing with:
[analyzer] ERROR: failed to create launch cache: initializing staging directory '/launch-cache/staging': mkdir /launch-cache/staging: permission denied

This is due to https://github.com/buildpacks/pack/pull/1417 and is fixed in lifecycle 0.14.1 (https://github.com/buildpacks/lifecycle/pull/847), which we'll pick up in https://github.com/heroku/builder/pull/269.

CI is passing now that the lifecycle update in heroku/builder/pull/269 has merged and the updated builder was published.


[desktop] Isolate task causes high CPU usage

Details
After an isolated task is started, the CPU usage increases rapidly and remains at a high level even if the task is done. Here is my test code
import 'dart:io';
import 'dart:isolate';

import 'package:flutter/material.dart';

class IsoTestPage extends StatefulWidget {
  IsoTestPage({required this.title});

  final String title;

  @override
  _IsoTestState createState() => _IsoTestState();
}

class _IsoTestState extends State<IsoTestPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: ElevatedButton(
          onPressed: () async => Isolate.spawn(_isoHttpGet, null),
          child: Text("test isolate http get"),
        ),
      ),
    );
  }
}

void _isoHttpGet(dynamic notUsed) async {
  var client = new HttpClient();
  client.findProxy = HttpClient.findProxyFromEnvironment;
  client.badCertificateCallback = (certificate, host, port) => true;

  var request = await client.getUrl(Uri.parse("https://github.com"));
  var response = await request.close();

  print(response.statusCode);
  client.close();
}

The CPU usage is normal when the isolated task is not started.

After an isolated task is started (click the button).

This problem may be related to #78517, To reduce the interference I have modified the source code of the Win32 event loop ({project-root}\windows\runner\run_loop.cpp).
void RunLoop::Run() {
  MSG msg;
  while (GetMessage(&msg, nullptr, 0, 0)) {
    TranslateMessage(&msg);
    DispatchMessage(&msg);
  }
}

Enviroment

Hi, you are doing flutter desktop, can you answer my question please?
is it possible to move a full folder from one place to another in flutter desktop?
thanks

@Jazzykhan What about listing the files and directories of the folder, copying each element to another place, deleting them?

I update Flutter to 2.2.3, refresh the project, and the problem persists.

Still caused a high CPU usage.

Hi @xinlake
Thanks for filing the issue,  Indeed the CPU usage increases rapidly even with a single click, and when clicking multiple times the whole system slows down as the CPU  usage gets really high.
We are able to reproduce the CPU usage on multiple desktop platforms
Used the following minimal code sample

minimal code sample
import 'dart:io';
import 'dart:isolate';

import 'package:flutter/material.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Material App',
      theme: ThemeData.dark(),
      home: IsoTestPage(
        title: 'Test',
      ),
    );
  }
}

class IsoTestPage extends StatefulWidget {
  IsoTestPage({required this.title});

  final String title;

  @override
  _IsoTestState createState() => _IsoTestState();
}

class _IsoTestState extends State<IsoTestPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: ElevatedButton(
          onPressed: () async => Isolate.spawn(_isoHttpGet, null),
          child: Text("test isolate http get"),
        ),
      ),
    );
  }
}

void _isoHttpGet(dynamic notUsed) async {
  var client = new HttpClient();
  client.findProxy = HttpClient.findProxyFromEnvironment;
  client.badCertificateCallback = (certificate, host, port) => true;

  var request = await client.getUrl(Uri.parse("https://github.com"));
  var response = await request.close();

  print(response.statusCode);
  client.close();
}

Windows

CPU Usage Preview

Single click

Multiple clicks

stable
master

❌
❌

Check flutter doctor -v outputs for each channel below

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.22000.51], locale en-US)
    • Flutter version 2.2.3 at C:\Users\Taha\Code\flutter_stable
    • Framework revision f4abaa0735 (5 days ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java.exe
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.3)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.10.31424.327
    • Windows 10 SDK version 10.0.19041.0

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/docs/get-started/install/windows#android-setup for detailed instructions).

[✓] VS Code (version 1.57.1)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.24.0

[✓] Connected device (3 available)
    • Windows (desktop) • windows • windows-x64    • Microsoft Windows [Version 10.0.22000.51]
    • Chrome (web)      • chrome  • web-javascript • Google Chrome 91.0.4472.124
    • Edge (web)        • edge    • web-javascript • Microsoft Edge 91.0.864.64

! Doctor found issues in 1 category.

[✓] Flutter (Channel master, 2.4.0-1.0.pre.84, on Microsoft Windows [Version 10.0.22000.51], locale en-US)
    • Flutter version 2.4.0-1.0.pre.84 at C:\Users\Taha\Code\flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 691fa19dd7 (2 hours ago), 2021-07-06 02:06:04 -0400
    • Engine revision c1ce39ecb7
    • Dart version 2.14.0 (build 2.14.0-281.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at C:\Users\Taha\Code\SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = C:\Users\Taha\Code\SDK
    • Java binary at: C:\Users\Taha\Code\android-studio\jre\bin\java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[✓] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.3)
    • Visual Studio at C:\Program Files (x86)\Microsoft Visual Studio\2019\Community
    • Visual Studio Community 2019 version 16.10.31424.327
    • Windows 10 SDK version 10.0.19041.0

[✓] Android Studio (version 4.2.0)
    • Android Studio at C:\Users\Taha\Code\android-studio
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)

[✓] VS Code (version 1.57.1)
    • VS Code at C:\Users\Taha\AppData\Local\Programs\Microsoft VS Code
    • Flutter extension version 3.24.0

[✓] Connected device (4 available)
    • Windows (desktop)       • windows • windows-x64     • Microsoft Windows [Version 10.0.22000.51]
    • Windows (UWP) (desktop) • winuwp  • windows-uwp-x64 •
    • Chrome (web)            • chrome  • web-javascript  • Google Chrome 91.0.4472.124
    • Edge (web)              • edge    • web-javascript  • Microsoft Edge 91.0.864.64

• No issues found!

✅ : No Issue ❌: Issue reproduced
macOS (intel)

CPU Usage Preview

Single click

Multiple clicks

stable
master

❌
❌

Check flutter doctor -v outputs for each channel below

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on macOS 12.0 21A5268h darwin-x64, locale
    en-GB)
    • Flutter version 2.2.3 at /Users/tahatesser/Code/flutter_stable
    • Framework revision f4abaa0735 (5 days ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tahatesser/Code/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/SDK
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.57.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 12.0 21A5268h darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 91.0.4472.114

• No issues found!

[✓] Flutter (Channel master, 2.4.0-1.0.pre.84, on macOS 12.0 21A5268h
    darwin-x64, locale en-GB)
    • Flutter version 2.4.0-1.0.pre.84 at /Users/tahatesser/Code/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 691fa19dd7 (2 hours ago), 2021-07-06 02:06:04 -0400
    • Engine revision c1ce39ecb7
    • Dart version 2.14.0 (build 2.14.0-281.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /Users/tahatesser/Code/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /Users/tahatesser/Code/SDK
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 12.5.1, Build version 12E507
    • CocoaPods version 1.10.1

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6916264)

[✓] VS Code (version 1.57.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.24.0

[✓] Connected device (2 available)
    • macOS (desktop) • macos  • darwin-x64     • macOS 12.0 21A5268h darwin-x64
    • Chrome (web)    • chrome • web-javascript • Google Chrome 91.0.4472.114

• No issues found!

✅ : No Issue ❌: Issue reproduced
macOS (M1)

CPU Usage Preview

Multiple clicks

Reproduced on Flutter master 2.4
Linux

CPU Usage Preview

Single click

Multiple clicks

stable
master

❌
❌

Check flutter doctor -v outputs for each channel below

flutter doctor -v
[✓] Flutter (Channel stable, 2.2.3, on Linux, locale en_US.UTF-8)
    • Flutter version 2.2.3 at /home/taha/Code/flutter_stable
    • Framework revision f4abaa0735 (5 days ago), 2021-07-01 12:46:11 -0700
    • Engine revision 241c87ad80
    • Dart version 2.13.4

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/taha/Code/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /home/taha/Code/SDK
    • Java binary at: /home/taha/Code/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 12.0.0-1ubuntu1
    • cmake version 3.18.4
    • ninja version 1.8.2
    • pkg-config version 0.29.2

[✓] Android Studio (version 4.2)
    • Android Studio at /home/taha/Code/android-studio
    • Flutter plugin version 58.0.1
    • Dart plugin version 202.8531
    • Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)

[✓] VS Code (version 1.57.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.24.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Linux
    • Chrome (web)    • chrome • web-javascript • Google Chrome 91.0.4472.114

• No issues found!

[✓] Flutter (Channel master, 2.4.0-1.0.pre.84, on Pop!_OS 21.04
    5.11.0-7620-generic, locale en_US.UTF-8)
    • Flutter version 2.4.0-1.0.pre.84 at /home/taha/Code/flutter_master
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 691fa19dd7 (2 hours ago), 2021-07-06 02:06:04 -0400
    • Engine revision c1ce39ecb7
    • Dart version 2.14.0 (build 2.14.0-281.0.dev)

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    • Android SDK at /home/taha/Code/SDK
    • Platform android-30, build-tools 30.0.3
    • ANDROID_HOME = /home/taha/Code/SDK
    • Java binary at: /home/taha/Code/android-studio/jre/bin/java
    • Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)
    • All Android licenses accepted.

[✓] Chrome - develop for the web
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop
    • Ubuntu clang version 12.0.0-1ubuntu1
    • cmake version 3.18.4
    • ninja version 1.8.2
    • pkg-config version 0.29.2

[✓] Android Studio (version 4.2)
    • Android Studio at /home/taha/Code/android-studio
    • Flutter plugin version 58.0.1
    • Dart plugin version 202.8531
    • Java version OpenJDK Runtime Environment (build 11.0.8+0-b944-P17168821)

[✓] VS Code (version 1.57.1)
    • VS Code at /usr/share/code
    • Flutter extension version 3.24.0

[✓] Connected device (2 available)
    • Linux (desktop) • linux  • linux-x64      • Pop!_OS 21.04
      5.11.0-7620-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 91.0.4472.114

• No issues found!

✅ : No Issue ❌: Issue reproduced
When running the same code on the web, CPU usage spikes aren't observed, even with multiple clicks

@TahaTesser
Thank you for making this problem clear

// Isolate will not be actively released
Isolate lsolate = await Isolate.spawn(_isoHttpGet, null);
lsolate.kill();

A quick way to create isolate is compute()
import 'package:flutter/foundation.dart';
compute(_isoHttpGet, null);

The isolate that has not been released is recorded here

@knopp ring any bells?

The flutter event loop has nothing to do with isolates, which have their own dart loop. So it's probably completely unrelated to https://github.com/flutter/flutter/issues/78517 (also if it happens to other platforms).  Seems that it is reproducible though? I'll take a look, possibly today.

This seems to be a problem between HTTP client, streams and IOService dispatch. For example if the response is drained before closing the client, CPU load is fine (response.drain();). Also if the client is closed with force=true, it will terminate the stream and the isolate will quit without issues, again, no CPU load.
So the bottom line is, you either need to actually read the response, or close the client with force=true. Otherwise you get 100% CPU load on the isolate. I'm not sure if this is intentional behavior, it is possible that it just slipped under the radar, since most of the time when you get HTTP response you want to read it too.

It seems that it was my mistake, there is no basis to show that it causes by isolate, this problem will occur even if I don’t use isolate.
I have tested it again without isolate, as @knopp said, the CPU load will be fine if the response is read before closing the client. But, if close the client only with client.close(force: true); (without response.drain();) the CPU load is still high.

client.close(force: true); fixes the CPU load for me (both in original and in new isolate), but it might be OS specific. (tested on macOS)

On the Mac M1, the MacOS desktop app runs ok with normal CPU.
But on Windows 10, the app runs with VERY HIGH CPU load.
I can't find the source of the issue.
Anyone facing this as well.
I am on
Flutter 2.2.3 • channel stable • https://github.com/flutter/flutter.git
Framework • revision f4abaa0735 (8 weeks ago) • 2021-07-01 12:46:11 -0700
Engine • revision 241c87ad80
Tools • Dart 2.13.4

flutter doctor:
[√] Flutter (Channel stable, 2.2.3, on Microsoft Windows [Version 10.0.19043.1165], locale en-SG)
[√] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[√] Chrome - develop for the web
[√] Visual Studio - develop for Windows (Visual Studio Community 2019 16.10.1)
[√] Android Studio (version 4.1.0)
[√] VS Code (version 1.59.1)
[√] Connected device (3 available)

Anyone facing this as well.

Yes, with just the starter template app, Windows 10 CPU load isn't good on 2.2.3. Performance on Beta channel (2.5.0) is great.

I refreshed the test project and did a simple test, found that the CPU load problem can be solved by respond.drain(); or HttpClient.close(force: true). It is code mistake, or you may improve the HttpClient API or documents ^^.
  var client = new HttpClient()
    ..findProxy = HttpClient.findProxyFromEnvironment
    ..badCertificateCallback = (certificate, host, port) => true;

  var request = await client.getUrl(Uri.parse("https://github.com"));
  var respond = await request.close();
  respond.drain(); // add this

  client.close(force: true); // or add this

I think is issue can be closed ^^.

Indeed. If there are other CPU issues please open separate issue. This is caused by network socket not being read from which shouldn't under normal use of HttpClient()/


No clear way to close navigation using VoiceOver on iPhone

Bug Report
Description
When using VoiceOver on iPhone, there is no clear way how one would close the side navigation when navigating to a page.
Steps to Reproduce

Go to terra-ui.com
Select Components
Select Abstract modal
User is unable to close navigation

Additional Context / Screenshots

Expected Behavior
User has clear way to deactivate / close the navigation on mobile device.
Possible Solution

Environment

Component Name and Version:
Browser Name and Version:
Node/npm Version: [e.g. Node 8/npm 5]
Webpack Version:
Operating System and version (desktop or mobile):

Resolved, had to double click on Abstract modal nav item while its selected.


Offpunk: 1.4 -> 1.5

Description of changes
From the author:
1.5 is a minor release. No major changes.

- Removed optional dependency to ripgrep. "grep --color=auto" is good
   enough.
- "open url" to open current URL in a browser with xdg-open
- "redirect" now replaces "set redirects" to improve discoverability
- "redirect" now allows urls to be blocked. By default, facebook.com and google-analytics.com
are blocked
- Fixed a bug when trying to download base64 image

With 1.5, I want to thank packagers working hard to make offpunk
available to others. Your work is very important to me.

=> gemini://rawtext.club/~ploum/2022-08-04-offpunk15.gmi

Things done

Built on platform(s)

[x] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[x] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[x] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
22.11 Release Notes (or backporting 22.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[x] Fits CONTRIBUTING.md.

Result of nixpkgs-review pr 185128 run on x86_64-linux 1


Allow custom GUID

Right now the GUID is just an automatically generated hash of each item's title or description, over which the user's feed configuration has no control. It would be great if the guid could be treated as yet another selector that the user could configure, so that custom behaviors could be defined. For example, keeping the GUID the same if the title changes just slightly, or forcing an update if a selector other than the title or description change(for example, the "link" selector).
Thanks a lot for developing this package!

Hey,
I favor the idea of a customizable selection of the item's GUID value.
OTOH, I feel the auto-generated GUID of title+description works quite well for most of my use cases. It should remain the default behavior.
Making a guid selector accept an array of selectors to use (analog to the categories) would be most flexible. Example in YAML:
channel:
  # ...
selectors:
  # ...
  guid:
    - link
  link:
    selector: 'a'
    # ...

What do you think of this approach?

Hi @gildesmarais, your approach looks great to me. I agree that the customizable GUID should be the exception and used only by setting an explicit override in the feed configuration. Thanks for the quick reply! :)

Done. Feel free to check it out by using the gem code via git.


mysql database not connected my telegram bot

Required Information

Operating system:
PHP version:
PHP Telegram Bot version:
Using MySQL database: yes / no
MySQL version:
Update Method: Webhook / getUpdates
Self-signed certificate: yes / no
RAW update (if available):

Expected behaviour

Actual behaviour

Steps to reproduce

Extra details

@anandlakhera Please edit your issue and fill in the required details and explain what isn't working.
Have you read and followed the readme file?
Feel free to reopen if you still have a problem after following the readme.


docs: Add AuthMethod to support-schduler API document

Add AuthMethod to support-schduler API document
Closes #4479

If your build fails  due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/edgex-go/blob/main/.github/Contributing.md
PR Checklist
Please check if your PR fulfills the following requirements:

[X] I am not introducing a breaking change (if you are, flag in conventional commit message with BREAKING CHANGE: describing the break)
[X] I am not introducing a new dependency (add notes below if you are)
[ ] I have added unit tests for the new feature or bug fix (if not, why?) Only API document change
[ ] I have fully tested (add details below) this the new feature or bug fix (if not, why?) Only API document change
[ ] I have opened a PR for the related docs change (if not, why?) This is the API document change

Testing Instructions

New Dependency Instructions (If applicable)

Codecov Report

Merging #4489 (9c0101f) into main (d92bec7) will not change coverage.
The diff coverage is n/a.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@           Coverage Diff           @@
##             main    #4489   +/-   ##
=======================================
  Coverage   41.57%   41.57%
=======================================
  Files         106      106
  Lines        9749     9749
=======================================
  Hits         4053     4053
  Misses       5350     5350
  Partials      346      346

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.


Bootstrap issue with testnet

When i try to bootstrap on testnet, it creates 2 copy of blockchain.

blocks (this folder should not)
cfund (this folder should not)
chainstate (this folder should not)
testnet3 (normal)

you can test with this url https://navcommunity.net/bootstrap/testnet.tar

fixed in https://github.com/NAVCoin/navcoin-core/commit/119aaca35e4927832cf715d6cbf14b5c75a89e2d


Update protein-protein interaction data

Current PPIs are out of date.  Will require some backend work based on data sources and the way we are storing the data.  Chunhong is looking into this.  She has discovered that there are nearly double the current amount now in the source databases.

I already imported Chunhong's new data and indexed on solr. However, PPI interface still need old api, which we have only one instance that serves production servers. I will setup another instance and plug it to new dataset, so that we can test over UI.

The PPI data was updated. However, during the testing session we found that the interactors were not correctly mapped to the corresponding PATRIC ids. This results in the PPI graph not being shown on the PATRIC website.
We suspect that ids are not mapped because the PPI data generation scripts probably uses old data API or the database to get mappings between uniprot ids and PATRIC ids. Need to update the scripts to get the correct mappings.
Decided to move it to September release.
-Maulik

#522


Update badges

[X] Update links and badges in README to match the style of ipyelk.
[x] Verify working after conda-forge is added

Since working on README: if there's any way you can resample the main screencast to not die on pypi.io that'd be swell... unfortunately, I don't know what the size limit is.

Looks like it's 5mb

Since working on README: if there's any way you can resample the main screencast to not die on pypi.io that'd be swell... unfortunately, I don't know what the size limit is.

Yeah I'll try and get to that soon.

Updated screencast (new size is ~6MB). Still not showing up on PyPI. Not sure if I need to trigger something, or will happen on next release?

Also can now add:
conda install -c conda-forge ipyradiant

23058c4


Columns are not scrollable

Description
As a Retro user I want that the individual columns are horizontally scrollable instead of the whole page, so that the whole page is not moving around while I scroll.
Acceptance Criteria

Individual columns are horizontally scrollable
The whole page is not scrollable anymore
All columns together grow to the right and therefore are scrollable on the X-Axis

A working example from our used library can be found here:
https://react-beautiful-dnd.netlify.app/?path=/story/board--scrollable-columns

A working example from our used library can be found here: https://react-beautiful-dnd.netlify.app/?path=/story/board--scrollable-columns

They simply set a fixed height on the div. so this is the same as you did with the vh. :(

Yes for the height i will need a different solution, but they have nested scrolling without warnings from the library


Common clinical issues

Both manuals need to include guidance for therapists on common clinical issues in the treatment of OCD and BDD. This should include listing common problems that arise in treating these conditions, and suggesting approaches that the therapist can use to address these clinical issues. The reviewers suggest that this section needs to be written by expert/s with the appropriate clinical training and experience in treating OCD or BDD.

Completed in latest commit, will need some fine-tuning but all examples are now in place.


Mod Engine 2 bat just stopped working

I played with my friends Seamless Coop + ascended and quit the game, after restart it stopped working. When i use cmd to start mod engine it works fine, but not with the bat file, also created a new one, redownloaded everything still only works with cmd.

got a fix for it, i needed to edit the properties of the modengine launcher executable to run as admin, after that it worked again...


Introduce multi-arch builds with support for ARM

About this change - What it does
With this commit we start building multi-arch container images to enable running containers on ARM systems.

Closes #521.
Why this way

I did experimentation/debugging in this repository: https://github.com/aiven-anton/test-build-arm, see results of build 12 and 13.
Using the Docker actions makes for very low amount of boilerplate code for building containers.

Sadly our container builds from GitHub Actions are triggered only on main branch.

Perhaps I should start in this end, building an image for PRs and adding some very basic smoke test. That would probably make it easier to gain confidence for a PR like this one later on. Very good idea that you tried this out on a fork! 🙏
The failure is a bit odd though, the $(git describe --always) from the "Gather context" step was taken as-is from the current "Build and push container image" step, and checkout hasn't changed so I think if git history/tags is too shallow now, it must have been before too. I think what's triggering this is the explicit passing of KARAPACE_VERSION, which means Karapace is no longer attempting to gather the version from git itself. Inspecting the line where it used to, it's clear that's a different invocation than in "Gather context": it has --tags.
I'll put this PR in draft for now, and will try to come back to it once we have smoke tests 🙂

@tvainika I managed to get the build working on my fork now, I did these things:

Make sure there are actually tags in the repository (did not get cloned by default).
Set fetch-depth: 0 as you suggested.
Add --tags to git describe invocation.

Passing build: https://github.com/aiven-anton/karapace/actions/runs/4872183301/jobs/8690049653


Cannot make ! It is a problem of Cython?

Hi there,
I tried to run the following command:
cd $FRCN_ROOT/lib
make
but it cannot run.
It is an issue of Cython? or something others?

So when you run make nothing happend? Or do you have an error?n

I just wonder what should be installed first to run 'make' command. Is that Cython?

Yes, you have to install Cython in order to make the project

I installed that with the following version:

Cython -V
Cython version 0.23.4

But nothing happens when I typed the 'make' command.

What operating system are you running?

Windows 10 Home

Well there's your problem. (Just tell us your error next time, makes things a loooot easier) http://stackoverflow.com/questions/2532234/how-to-run-a-makefile-in-windows here they explain something about running Makefiles under windows. My suggestion is to just use something like Docker to run this network under Linux, making these kind of things work on windows is not fun. (Although windows 10 has a bash terminal you can try, but that is still in development and last time I checked it couldn't access your gpu)

Thanks very much for the solution!
I will try that!

I tried that but got the following errors:
$ make
python setup.py build_ext --inplace
running build_ext
Traceback (most recent call last):
File "setup.py", line 154, in
cmdclass={'build_ext': custom_build_ext},
File "C:\Users\to\Anaconda3\lib\distutils\core.py", line 148, in setup
dist.run_commands()
File "C:\Users\to\Anaconda3\lib\distutils\dist.py", line 955, in run_commands
self.run_command(cmd)
File "C:\Users\to\Anaconda3\lib\distutils\dist.py", line 974, in run_command
cmd_obj.run()
File "C:\Users\to\Anaconda3\lib\site-packages\Cython\Distutils\build_ext.py", line 164, in run
_build_ext.build_ext.run(self)
File "C:\Users\to\Anaconda3\lib\distutils\command\build_ext.py", line 338, in run
self.build_extensions()
File "setup.py", line 105, in build_extensions
customize_compiler_for_nvcc(self.compiler)
File "setup.py", line 77, in customize_compiler_for_nvcc
default_compiler_so = self.compiler_so
AttributeError: 'MSVCCompiler' object has no attribute 'compiler_so'
make: *** [Makefile:2: all] error 1
$ python -V
Python 3.5.1 :: Anaconda 4.0.0 (64-bit)
Is that a python version error? or something else?

I do not have a GPU on my computer so it cannot run CUDA code.
Is that a problem?

For the cpu you should be able to run the code, clearly it will be slower than on gpu.
For the error I think that it's a problem of MSVCCompiler. Try to google it

Trying to make this stuff under windows is just a really bad idea. Especially without an Nvidia gpu (you will definetly be unable to train this, but if you only want to run it, a CPU will work).
For starters you will need python 2.7, other than that, I can't help you with compiling this under windows, other than again recommending using virtual box or docker to run this under linux.

OK.
Thanks very much for the answers.

@shuuchen have you resolved the question,I have the same question,thanks?

@HaoWangDL
I gave up Windows and move to Linux. The problem didn't happen any more.

@shuuchen  thank you ! I'm doing the same.

@shuuchen  hi,have you meet the question  no module named fast_rcnn on linux?it confused me 2 days.thanks

@HaoWangDL that's the problem of relative path.


APIGOV-22764 fetch latest sequence ID from harvester before discovery cache starts

Created a new component for syncing the cache and starting the stream/poll client.
Fetch latest sequence ID before the client starts, and before the cache is initialized.
Updated stream and poll client to take a list of option funcs to reduce the number of defined params

@sbolosan I was trying to reduce how often the func signature changes. They keep on growing.


Add capability to have custom generators

Rationale
https://github.com/LambdaFactory/Fornax/issues/3 states the need to generate RSS feeds for Fornax sites. I can think about also adding atom feeds, sitemaps and other files that basically have a custom format and need information from the site model as well as the available posts.
Maintaining all these different generators within the main project could induce a lot of friction. Having the possibility to ad-hoc generate files based on the specific site configuration (as well as needs of the site creator) seems to be a good idea.
Implementation
I built a working version with https://github.com/LambdaFactory/Fornax/pull/34. It works the same way the HTML version of posts are generated only that it would execute at the end of the site generation process and produce a single file per generator.
I specified the folder in which generators live as _generators in the root directory. A custom generator only has to be called cenerate and be of the type CustomGenerator<'a> where 'a is the SiteModel.
The simplest possible custom generator could look like this
#load "../siteModel.fsx"

open SiteModel

let generate : CustomGenerator<SiteModel> =
    fun siteModel posts ->
        "Hello world", "/path/hello.txt"

The type CustomGenerator<'a> boils down to these types in the Fornax model

type FileContent = string
type VirtualFilePath = string
type CustomGeneratorResult = FileContent * VirtualFilePath

type CustomGenerator<'a> = 'a -> Post list -> CustomGeneratorResult

This would mean you only have to produce some string content (in any way you wish) and provide a path (like /feed/feed.xml) and you're good.
What do you all think about this? Would be glad to have your feedback on this to make this work 😊

@WalternativE I think this is great and have been thinking about doing something similar.
One thought I had was I wondered if we should make posts just another implementation of a custom generator.  Right now posts are "special" in that they get passed into every generator.  But what if you had other types of content across the site that you wanted to have access to?
What I was thinking is rather than Post list getting passed into every function, all the contents of the site could be available in each generator.  A sample implementation of that might look like this:
open System.Collections.Generic
open System.ComponentModel.Design

type SiteContents () =
    let container = new ServiceContainer()

    member __.Add(value:'a) =
        let key = typeof<List<'a>>
        match container.GetService(key) with
        | :? List<'a> as result ->
            result.Add(value)
        | _ ->
            container.AddService(key, List<'a>([|value|]))

    member __.GetValues<'a> () : seq<'a> =
        let key = typeof<List<'a>>
        let result = container.GetService(key)
        result :?> IEnumerable<'a>

    member this.TryGetValues<'a> () =
        let key = typeof<List<'a>>
        if container.GetService(key) |> isNull then
            None
        else this.GetValues<'a>() |> Some

type Post = { A : int}
type OtherContent = { B : string}

[<EntryPoint>]
let main argv =
    // This is what would get passed into every function.
    // Assume it's been filled with content in advance, same
    // as the Post list is today.
    let siteContents = SiteContents()
    let post = { A = 1 }
    let post2 = { A = 2 }
    let otherContent = { B = "Test" }

    // You can see it's easy to fill with arbitrary stuff.
    siteContents.Add(post)
    siteContents.Add(post2)
    siteContents.Add(otherContent)

    // If you wanted a particular kind of content, here's
    // how you could get it in a typesafe way.
    let posts = siteContents.GetValues<Post>()
    let otherContents = siteContents.GetValues<OtherContent>()

    for i in posts do
        printfn "Post: %A" i
    for i in otherContents do
        printfn "Other Content %A" i
    0 // return an integer exit code

On the other hand, maybe this is just over-engineering things, since 95% of people just want a site that has some kind of main page, and a directory /posts/ that has their blog posts in it.  But if you wanted to have a page that could display things from other pages, not just posts, here would be a way to do it.

And instead of these being a folder called _generators, everything could just be based around convention.  posts.fsx would look in the posts folder and apply to anything in there, xyxContents.fsx would look in xyzContents folder, etc.  If there's no matching folder, assume no contents and just execute the .fsx.
Obviously there's some edge cases not handled, I'm just spitballing here, but I feel like there's some potential.

One thought I had wondered was if we should make posts just another implementation of a custom generator.

If we'll go with this proposal in general I think then this is what we should do - wouldn't make sense to keep posts as something special. This would move project in direction of general static site generator rather than something obviously focused on just blogging.

Hi @NatElkins and @Krzysztof-Cieslak! Really liking the ideas. Especially the convention based generation of content. I'll have to think a bit about this and try some things out. As I've been ill for a week I'll have to do all the work which I haven't done previously first so this might take some days 🙇♂

OK, I'm totally convinced we should do this, including moving built-in post support to the custom generator. @WalternativE you have any time to take another shot at this or should I just use your PR and continue from it?

I actually wonder if we should move even further - one set of scripts called loaders that will populate data in the proposed SiteContents state, and the other set called generators that will get SiteContents state and generate stuff.

Or maybe rather generators should provide to functions - one for loading data that will be executed at the beginning and other for generating content that will be executed after every generator loaded content

So the one thing I can't figure out is defining when the given generator is run. Let's assume we go with loaders and generators design. All loaders are run at the fornax startup to fill the content. Then we have 2 generators - one for generating posts, and one for RSS. The generator for posts needs to run multiple times - once per every *.md file (or Post object in collection?). The RSS generator needs run once - it's not connected to any file on the hard drive but just takes context and generate some content.
So we need to have some way of saying "this generator should run for every Post" or "this generator should run for every XML file we've loaded" or "this generator should only run once"

I've started implementation on https://github.com/LambdaFactory/Fornax/tree/new_design. The easiest way to understand what's going on from the design point of view is by looking at the samples folder.
Currently, I've managed to get to work concept of loaders - scripts that will be executed before the generation to populate SiteContents (as defined by Nat above).
Next step is working on generators (and figuring out a good way of configuring them)

@Krzysztof-Cieslak Any chance you can open a draft PR?  I find it easier to follow along that way.

https://github.com/LambdaFactory/Fornax/pull/40

Apologies for being so unresponsive. Still swamped with worked from a couple of sources. This might hold on for a while until things settle again. Thanks for your work on the redesign 🙇♂

Implemented in #40. Thanks for this discussion, it gave me lot of good (i hope) ideas.


Extension is not loading the user profile

The extension is stuck, the user can't insert any template.

Does refresh fix it?

Let me double check that.

Yes, let's not fix for now.