/index.php/api/xmlrpc: 404 Not Found

Using Magento 2.2.5 the following Code:
import magento

url = 'https://www.myWebsite.de'
apiuser = 'api'
apipass = '***'

# Create an instance of API
client = magento.API(url, apiuser, apipass)

# Get a list of product types
product_types = client.product_types.list()

print(product_types)

results in:
D:\Work\Coding\AmCa\MagentoAPI>showProducts.py
Traceback (most recent call last):
  File "D:\Work\Coding\AmCa\MagentoAPI\showProducts.py", line 11, in <module>
    product_types = client.product_types.list()
  File "C:\Program Files\Python37\lib\site-packages\magento\api.py", line 54, in <lambda>
    property(lambda self: self.get_instance_of(Klass))
  File "C:\Program Files\Python37\lib\site-packages\magento\api.py", line 239, in get_instance_of
    self.__dict__[Klass.__name__] = value.__enter__()
  File "C:\Program Files\Python37\lib\site-packages\magento\api.py", line 177, in __enter__
    self.username, self.password)
  File "C:\Program Files\Python37\lib\xmlrpc\client.py", line 1112, in __call__
    return self.__send(self.__name, args)
  File "C:\Program Files\Python37\lib\xmlrpc\client.py", line 1452, in __request
    verbose=self.__verbose
  File "C:\Program Files\Python37\lib\xmlrpc\client.py", line 1154, in request
    return self.single_request(host, handler, request_body, verbose)
  File "C:\Program Files\Python37\lib\xmlrpc\client.py", line 1187, in single_request
    dict(resp.getheaders())
xmlrpc.client.ProtocolError: <ProtocolError for www.myWebsite.de/index.php/api/xmlrpc: 404 Not Found>

I'm getting a similar error with a 302 instead of a 404:
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/venv/lib/python3.8/site-packages/magento/api.py", line 54, in <lambda>
    property(lambda self: self.get_instance_of(Klass))
  File "/venv/lib/python3.8/site-packages/magento/api.py", line 239, in get_instance_of
    self.__dict__[Klass.__name__] = value.__enter__()
  File "/venv/lib/python3.8/site-packages/magento/api.py", line 176, in __enter__
    self.session = self.client.login(
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1109, in __call__
    return self.__send(self.__name, args)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1450, in __request
    response = self.__transport.request(
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1153, in request
    return self.single_request(host, handler, request_body, verbose)
  File "/usr/lib/python3.8/xmlrpc/client.py", line 1183, in single_request
    raise ProtocolError(
xmlrpc.client.ProtocolError: <ProtocolError for myWebsite.com/index.php/api/xmlrpc: 302 Found>

Did anyone resolve this issue?

I could not. I was expecting someone could help but it seems it's not common.

I realized that the part which is missing, the xmlrpc, is related to the protocol also called XML-RPC. This is what this project uses for sending requests. Xml-rpc is no longer supported in newer Magento releases. I think this repo is outdated for those.
Correct me if I'm wrong

I found this article from January last year: https://zapier.com/help/doc/common-problems-magento
I am not sure if XML RPC is deprecated. Where did you read about that XML-RPC is not longer supported in newser Magento relases ?

You are right, it is no longer supported: https://alanstorm.com/magento-2-understanding-the-web-api-architecture
Guess we can close this one and leave.


Support Node >= 8.10 (UnhandledPromiseRejectionWarning)

https://nodejs.org/dist/latest-v8.x/docs/api/deprecations.html#deprecations_dep0018_unhandled_promise_rejections

Listening at http://localhost:3000
(node:21948) UnhandledPromiseRejectionWarning: Error: Exited with code 3
at ChildProcess.cp.once.code (/home/lisbeth/Documents/mininote/mininote-frontend/node_modules/opn/index.js:84:13)
at Object.onceWrapper (events.js:317:30)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:567:12)
(node:21948) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:21948) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I weirdly just had this error on my system, I'll post what I did, maybe it's helpful
clean ubuntu server 17.10 (VBox), HOST
$ install nvm via script
$ nvm install 9.8.0
$ npm install -g @angular/cli
$ ng serve --open
the --open is what got me this exact error.
hope it helps

@n1try Is there anyone working on this?

@ashwamegh No, I don't think so.

@n1try I will be working on this then 👍

Can't reproduce this anymore.
Recommended Node version is 10.x anyway.


Elasticache PreferredCacheClusterAZs issue

I upgraded to troposphere 1.9.4 and it broke this
PreferredCacheClusterAZs=If(
    "ConditionName", [
        GetAtt(subneta, "AvailabilityZone"),
        GetAtt(subnetb, "AvailabilityZone"),
        GetAtt(subnetc, "AvailabilityZone")
    ], [
        GetAtt(subneta, "AvailabilityZone")
    ]
),

TypeError: <class 'troposphere.elasticache.ReplicationGroup'>: CluserName.PreferredCacheClusterAZs is <class 'troposphere.If'>, expected [<type 'basestring'>]
I've been messing around with a few different formats, but how can I do a condition, and still pass it a list of basestrings?

I'm assuming you pulled master which isn't really 1.9.4. Thanks for the issue, I forgot about If being "special" in its return values.

yeah from master.  Thanks @markpeek 👍


relativeTime has no option to display time in weeks

I'm developing an application where I'd like to indicate something was %s weeks ago, this week, or in %s weeks. Looking through the docs, there doesn't appear to be an option for week-based relative time. Is this the case?

+1 I would like this option as well.

I'm going to close this since it has been over a year with no activity. We would still take a pull request.


Error while extracting cache containing executable binaries

I'm caching a directory containing executables installed with cargo install, I'm encountering an error from the cache extract job due to what seems to be a lack of permissions:
https://github.com/Ameobea/web-synth/commit/e9795f357bf03f1206517315470e77fff8af7866/checks?check_suite_id=330386351#step:7:1
Cache Size: ~17 MB (17577808 B)
/bin/tar -xz -f /home/runner/work/_temp/4130fa0a-e1b8-42ef-968f-a251c5f901e0/cache.tgz -C /home/runner/.cargo/bin
/bin/tar: .: Cannot utime: Operation not permitted
/bin/tar: .: Cannot change mode to rwxr-xr-x: Operation not permitted
/bin/tar: Exiting with failure status due to previous errors
[warning]The process '/bin/tar' failed with exit code 2

Here's the YAML for the cache task:
- name: Cache cargo binaries
  id: cache-cargo-binaries
  uses: actions/cache@v1
  with:
    path: ~/.cargo/bin
    key: ${{ runner.os }}_nightly-2019-11-25_cargo-registry_just-0.5.1_wasm-bindgen-cli-0.2.54

The weird part is that it seems to actually be successfully extracting the cache; it just reports an error and doesn't set steps.cache-cargo-binaries.outputs.cache-hit to true.  When the command to re-install the binary from scratch gets run, it reports that the binary already exists and fails:
https://github.com/Ameobea/web-synth/commit/e9795f357bf03f1206517315470e77fff8af7866/checks?check_suite_id=330386351#step:13:11
Added matchers: 'rust'. Problem matchers scan action output for known warning or error strings and report these inline.
/usr/share/rust/.cargo/bin/cargo install just --version 0.5.1
    Updating crates.io index
 Downloading crates ...
  Downloaded just v0.5.1
error: binary `just` already exists in destination
##[error]Add --force to overwrite
##[error]The process '/usr/share/rust/.cargo/bin/cargo' failed with exit code 101
##[error]Node run failed with exit code 1

Working with this more, it looks like this is happening for all caches for anything in the ~/.cargo directory: https://github.com/Ameobea/web-synth/commit/2edff3ccbb1ba8a535295e112b8c5ffbc51230bb/checks?check_suite_id=331039350#step:7:6
Is it maybe choking on the ~ param used for the home directory and failing to expand it?

Hey @Ameobea,
Thanks for reporting this issue. It looks like files not created by the current user will fail during restore. I've opened #133 to track this and combine the various reports of this issue.


Warning message "moment construction falls back to js Date" in date picker

The following deprecation warning message is reported in Chrome console when selecting a date in date picker:
Deprecation warning: moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info. Arguments: [object Object] Error        at AuraLocalizationService.$formatDate$ (..../auraFW/javascript/ZCuyRUYzK_kAf4cKCIeS2A/aura_proddebug.js:15280:15)     at clickDate (..../components/c/strike_datepicker.js:160:59)

Thanks for logging this! We will need to reformat the use of the moment constructor. Removal of this warning will be part of the next release.

Thanks for logging this! After some investigation, it seems this warning stems from the Salesforce end as the datepicker itself does not use the moment constructor directly, but instead uses the $A.localizationService object (https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_l10n.htm).
We will notify the Salesforce engineers of this warning.


Multiples improvements

Thanks for your project ! I'm using it on the GitLab of my company.
I have fixed few errors and adding the cleaning of sub images.
Example:
For repository gitlab.com/foo/bar, I can have many sub images like gitlab.com/foo/bar/baz, gitlab.com/foo/bar/baz/qux.
I have implement a very pragmatic solution but il you're interested, it will be a pleasure to contribute on your project.

Hi, I have taken the liberty to use You MR and created compilation of all MRs + few extra improvements (speed-up in case project does not contain any image/repository) in my repository (branch next). Are You fine with it?


[Enhancement] Make input lowercase before processing it

Issue
Currently when passing a string which lists tbsp as a unit of measurement (UOM) but written like Tbsp. the library does not recognise it. It's possible other UOMs are affected but I haven't tested this.
Example
Given the following input string: 1 Tbsp. drained capers, the output (incorrectly) looks like this:
  {
    "quantity": 1,
    "quantity2": null,
    "unitOfMeasureID": null,
    "unitOfMeasure": null,
    "description": "Tbsp. drained capers",
    "isGroupHeader": false
  },

Solution
When converting the input to lowercase the library correctly recognises the UOM.
Happy to take a stab at fixing this, let me know!

Thanks for the bug report! The reason this library doesn't standardize the case before processing is mainly because "T" (tablespoon) is not the same as "t" (teaspoon).
However, I'm not sure any other units have that problem. Therefore we have two ways we can handle the issue you raised: 1) keep the logic the same and add "Tbsp." to the alternates list on line 95, or 2) modify the logic to standardize on case before processing, treating "T"/"t" and any other case-sensitive units as special cases during _pre_processing.
Honestly I just made this library for a web app for my wife I never quite finished, so if you have any desire to fix the issue please feel free to submit a PR. I'll let you choose which way to solve it. Thanks again!

Ah that makes sense! I'm not from the USA so I'm not too accustomed to imperial units. It seems that adding it to alternates list for now makes the most sense. Atleast until that list gets too long and a clever solution is needed.
I'm currently also intending this for a project for my girlfriend and myself so I'll go ahead and submit a PR.
Thanks for putting this together!

Opened #7 to fix this.


Tutorial for the generation of OpenAPI and Swagger UI

Create tutorials that show how to create the OpenAPI specification and Swagger UI from REST APIs.
Currently there is a PR in devon4j that describes the generation (https://github.com/devonfw/devon4j/pull/490). It would be helpful to have some real example in a tutorial that shows that process.
One tutorial for the Smallrye OpenAPI extension and one how to do it with the Servicedocgen maven plugin.

Closed with merge of https://github.com/devonfw-tutorials/tutorials/pull/189/files


Makefile tweaks

While playing around with learning how to build Marin3r I fixed a couple of small bugs in the Makefile.

/kind bug

thanks @acnodal-tc !
/lgtm

/ok-to-test

/approve


Hoymiles PV total_production is not sending data anymore since 2 weeks

Hoymiles MQTT version: V0.6.2 (?)
Mosquitto broker Current version: 6.4.1
Zigbee2MQTT - Current version: 1.38.0-1
Python version: 3.12
Operating System: HASSIO on a NUC

Home Assistant:
Core:               2024.5.5
Supervisor:      2024.06.0
OS:                  12.3
Frontend:         20240501.1
DTU PRO info:
Hardware Ver: H09.06.11
Software Ver: V00.02.22
Description
After the issue with the mod bus i was able to set the DTU in the correct mode, but since 2 weeks i don't get any data on the "total_production", other parameters still work ( like today_production)
What I Did
I don't remember doing anything when the data stream stopped.
I do all HASSIO updates ( never the 1st update, mostly ersionx.3 or 4)
i tried to switch modes on the DTU and restart in between.
Its is running in "remote control mode" now

Yester day i noyiced one bige spike and starting today all seems to work again

No clue what happend, im not even home right now


typo: Double word "usage"

@nschonni : Thanks for your contribution! The author, @MarkusVi, has been notified to review your proposed change.

Hi @nschonni, thanks for catching this.
#sign-off


custom checkboxes

Hi I need some help with one thing.
I have styled some custom checkboxes, and the way I did it was to turn hide the input checkbox with display: none; and associate it with a label. this seemed like the way most did it.
The problem I have now is that I can't add ng-change to a label, to be able to toggle the checkboxes like it's done in the regular template, it's working with ng-click="trvw.select(node, isSelected)" to select a node but not to deselect.
Any suggestion?

Would you mind using the jsbin template in the readme to create an example of what you're trying?

I guess I didn't do it in the best way, since I didn't know how to add a label to only the input tag using custom templates I added it directly to the treeview.js
So I don't know if it's to time consuming for you to show how you would go about to add customized checkboxes instead of the defaults?
Here is a small sample of what I mean.
 template: [       '<input type="checkbox" class="styled"',         'ng-model="isSelected"',         'ng-change="trvw.select(node, isSelected)" />',         '<label class="checkbox" ng-model="isSelected" ng-click="trvw.select(node, isSelected)" > </label>'     ]
and the css
input[type=checkbox] {  display:none;   } input[type=checkbox] + label{     background: url("../img/unchecked.svg") no-repeat;     height: 10px;     width: 10px;     display:table-cell;     padding: 0 0 0 0px;     cursor: pointer; } input[type=checkbox]:checked + label{ background: url("../img/checked.svg") no-repeat; height: 10px; width: 10px; display:table-cell; padding: 0 0 0 0px; cursor: pointer; }
The checkboxes get the design I want but I'm not able to use ng-change on it as the default checkbox does because in my case I'm hiding the default checkbox and style the label as a checkbox instead.
And with ng-click I'm just able to select checkboxes not deselect..
It's also very possible my approach was completely wrong here! :)

Closing this but one of the custom template demos swaps our the usual checkboxes for ascii art ones, might be of interest: http://jsbin.com/fokunu/edit?html,js,output


[feat][elasticsearch] Add hashed id support

Motivation
ElasticSearch has a size limitation for the document id. The hard limit is 512 bytes. It is not configurable.

_id is limited to 512 bytes in size and larger values will be rejected.
https://www.elastic.co/guide/en/elasticsearch/reference/current/mapping-id-field.html

In order to by-pass this limitation without losing data integrity and uniqueness a new option is introduced to create an hash of the Pulsar record key.
Modifications

New option idHashingAlgorithm, enum NONE, SHA256, SHA512
For the hashing computation we use Guava utility class com.google.common.hash.Hashing

Note that this option will add a CPU overhead in order to compute the hashed value.
It is suggested to use this option together with canonicalKeyFields in order to guarantee the same hashed value for the same key content regardless the key fields order. (https://github.com/apache/pulsar/pull/15426)

[x] doc

@lhotari @dlg99 @eolivelli PTAL

/pulsarbot rerun-failure-checks

/pulsarbot rerun-failure-checks


⚠ Thumbnails API Endpoint has degraded performance

In fa93f03, Thumbnails API Endpoint (https://thumbnails.roblox.com/v1/assets?assetIds=82738847&format=Png&isCircular=false&size=30x30) experienced degraded performance:

HTTP code: 200
Response time: 1770 ms

Resolved: Thumbnails API Endpoint performance has improved in dbd28a0.


cachedMake issue in hydra-battles repository

Running in a nix-shell in the https://github.com/coq-community/hydra-battles master branch, cachedMake followed by makewill rebuild some but not all the vo files. This discrepancy can be observed on specific files:make theories/ordinals/Prelude/MoreLists.vowill not trigger a new build whilemake theories/ordinals/Schutte/GRelations.vo` will.
The total build time when running make after cachedMake is:
real	3m38,915s
user	3m20,276s
sys	0m17,785s

while the total build time in a clean checkout is:
real	4m5,354s
user	3m41,841s
sys	0m22,996s

So while there is a difference (because some files are not rebuilt), it isn't huge either.
Another issue when running cachedMake is that the hydra_exercises files are not found.

The trick is to run make -t just after cachedMake

OK thanks!


Fix "employee" option not found

Fixes #255
I left the shortcut as defined, but I was not able to make it work.
-em=1
--em=1
-em1
-em 1
--em 1
Whatever I tried, I had "option not found" or "The file "/var/www/html/app/config/config_***.yml" does not exist because it falls under the -e option

Moved the addOption to constructor instead of configure().
The configure() method is implemented by Commands to set name and description, without calling the parent method, like
    protected function configure(): void
    {
        $this->setName('fop:module:generate')
            ->setDescription('Scaffold new PrestaShop module')
        ;
    }

Therefore, doing the addOption within the configure method from the parent Command class means that the addOption is never done.
It worked for me because I did my own command and called the parent method like parent::configure().
Before

php bin/console fop:employee:list --employee=1

ERROR     [console] Error thrown while running command "fop:employee:list --employee=1". Message: "The "--employee" option does not exist."

I'm really sorry for the late help. I'll try to be more active on the project from now on.
You're right, we have to call parent configure() method in every command we create. By the way, I prefer to call parent method first personally, before the child statements.
Also, the id_shop and id_shop_group options seems to be planned but not fully implemented too... We could add them too!
Are you still ready to continue the pull request?

Hello ! Thanks for your reply :)

You're right, we have to call parent configure() method in every command we create. By the way, I prefer to call parent method first personally, before the child statements.

I manage to avoid modifying all the commands by adding the option into the constructor. Not great but working.
I am ready to continue on the pull request, no problem. I just have to be sure what to do :)

Hello ! Thanks for your reply :)

You're right, we have to call parent configure() method in every command we create. By the way, I prefer to call parent method first personally, before the child statements.

I manage to avoid modifying all the commands by adding the option into the constructor. Not great but working. I am ready to continue on the pull request, no problem. I just have to be sure what to do :)

I prefer to configure the command in the dedicated method if possible. I'm not against modifying all the commands, but rather the opposite: we should have called the parent method since the beginning of the project imo.
So feel free to go ahead and add the parent call in all the commands ;)

I didn't test, but lgtm.


Repurpose 40 points

The GM deemed some skills color and now I have 40 points to spare

solved by ecf7b882e9c3da45df859dedaabd32f86029979c


Give a type to simple identifiers.

Thanks. I added the suggested tests. Which of course, uncovered a bug in the TERMREF case, which is now fixed.


[QA] Allow the /goto command to have spaces between the coma and number

Explorer Alpha build versions:
All versions
Issue Description:

Currently, if we type /goto 0, 0, the command throws and error and it fixes by removing the space between the second number and the coma.
We should permit the command to work with spaces in the middle without issues.

We can apply this for all commands


How can we share variables between distinct custom backends in the ensemble-model ?

Hello. Thank you for the work on this project.
I have a problem.
I want to use yolov3 model (with pre-trained wieghts, tensorflow-backend) with ensemble-model implementing pre- and post-processes.
My ensemble model would be
preprocess (custom backend) --> yolov3 (tensorflow backend) --> postprocess (custom backend).
In the preprocess, input images are resized to the input of yolov3.
In the postprocess, outputs of yolov3 (detection boxes) are resized to the (original) input image.
How can I pass the size of input image from preprocess-backend to postprocess-backend ?

You can have an output tensor of shape [ 2 ] and type UINT32 on your preprocess-backend that communicates the size of the image and a corresponding input tensor on the postprocess-backend. In the ensemble just connect the output to the input.


Ok and Apply do the same thing

Not true, "OK" closes the window.

I have testes id OK and Apply both saves

Ok - only applies to current playback
Apply - Saves

Change to -
Apply to Save to Metadata
OK to Select for current playback
@jacquesh


Q. What are AddressAllocate/AddressFree for?

There's no word for it in the header file, the relationship between HeapAllocate and AddressAllocate is unclear.

AddressAllocate notifies the tracker of virtual address space ranges. Heaps then grab blocks from these ranges. This is required to get fragmentation views working. Without address range info, the fragmentation view is disabled (e.g. for the default Windows CRT heap).


Updated MiniDrugBank molecule sets to fix atom types

This branch was originally to address the parent hierarchy visualization issue #46
So far on that front I've found some nice options using ete2, but I don't think they are going to be super easy to generalize and have them still look good visually. For now, I have not added any of this information.
I did update the molecule files for MiniDrugBank to fix a problem I was having with atomtypes.

This fixes issue #215
The only changes are updating the ipython notebook used to filter molecules, the mol2 files, and the associated README file. @davidlmobley could you merge this?

@davidlmobley I don't want to merge my own pull request could you?

Sorry, I'd missed this request. Thanks, looks good to me.


Regression in parsing of conditional expressions

The following program:
var a;
var b = true;
var c;

class C {
  void f() {
    print(a);
    b ? c = true : g();
  }

  void g() {}
}

main() {
  new C().f();
}

Produces parse errors when analyzed with either the analyzer or the front end:
file:///.../test.dart:8:7: Error: Unexpected token '?'.
    b ? c = true : g();
      ^
file:///.../test.dart:8:5: Error: 'b' isn't a type.
    b ? c = true : g();
    ^
file:///.../test.dart:8:13: Error: Expected ';' after this.
    b ? c = true : g();
            ^^^^
file:///.../test.dart:8:18: Error: Expected an identifier, but got ':'.
    b ? c = true : g();
                 ^
file:///.../test.dart:8:18: Error: Expected ';' after this.
    b ? c = true : g();
                 ^
file:///.../test.dart:8:18: Error: Unexpected token ';'.
    b ? c = true : g();
                 ^

Bisecting pins the culprit on bc8c7cf7823a5b375b7dafdf088e06ee887824b9.  The failure still reproduces as of e98701ea33b270e3f813a12b6ab17a222ab99f1b.
@danrubel can you have a look?

Will do.
On Fri, Dec 14, 2018 at 8:04 AM Paul Berry<EMAIL_ADDRESS>wrote:

The following program:
var a;var b = true;var c;
class C {
void f() {
print(a);
b ? c = true : g();
}
void g() {}
}
main() {
new C().f();
}
Produces parse errors when analyzed with either the analyzer or the front
end:
file:///.../test.dart:8:7: Error: Unexpected token '?'.
b ? c = true : g();
^
file:///.../test.dart:8:5: Error: 'b' isn't a type.
b ? c = true : g();
^
file:///.../test.dart:8:13: Error: Expected ';' after this.
b ? c = true : g();
^^^^
file:///.../test.dart:8:18: Error: Expected an identifier, but got ':'.
b ? c = true : g();
^
file:///.../test.dart:8:18: Error: Expected ';' after this.
b ? c = true : g();
^
file:///.../test.dart:8:18: Error: Unexpected token ';'.
b ? c = true : g();
^
Bisecting pins the culprit on bc8c7cf
https://github.com/dart-lang/sdk/commit/bc8c7cf7823a5b375b7dafdf088e06ee887824b9.
The failure still reproduces as of e98701e
https://github.com/dart-lang/sdk/commit/e98701ea33b270e3f813a12b6ab17a222ab99f1b
.
@danrubel https://github.com/danrubel can you have a look?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/dart-lang/sdk/issues/35411, or mute the thread
https://github.com/notifications/unsubscribe-auth/ACwgcLqG2ZwpkrdY6l5hlEx4CghM8mHMks5u46HEgaJpZM4ZTfuq
.


[docs]: fix article "Remove a Network"

Description
Article Remove a Network needs to be updated, more details @ #855
Issue List

[ ] Guide the user to click Resource Name

Steps below needs to be fixed accordingly

1. In the list of networks, find the network you want to remove and click DETAILS

@thlmenezes can you assign this to me?


fix: correct error handling in processAsync

Summary

Fixes #4207
Test plan
Copied the changed code into the repo from https://github.com/jestjs/jest/issues/14719 and verified the error is correctly displayed.
I don't have time to write an actual unit test for this, so if that's needed to merge that contribution will have to come from somebody else 😅

Does this PR introduce a breaking change?

[ ] Yes
[x] No

Other information
Ignore whitespace when looking at the diff: https://github.com/kulshekhar/ts-jest/pull/4226/files?w=1

/cc @ahnpnl would be nice to get this out in v29.
Also, the failing test on CI fails on main for me

LGTM though not sure why e2e test failed. The e2e setup is similar to Jest e2e btw. Maybe you can take a look?

Hmm other PRs have the same issue with the tests. I will try to check

@SimenB Any update on this PR? cc. @kulshekhar as you were marked as reviewer 👌

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall first build on handle-errors-in-process-async at 96.033%

Totals

Change from base Build<PHONE_NUMBER>:
96.0%

Covered Lines:
4053

Relevant Lines:
4152

💛  - Coveralls


Attach documents e.g., referrals, progress monitoring

From https://github.com/codeforamerica/somerville-teacher-tool/issues/337.

From talking it out with @jnowell, here's the rough product direction:

The first use case is for administrators or teachers to upload a document (eg., a report or a parent letter or any other paper documents).
The idea is that these will be uploaded one at a time, and will be for a particular student.
We're not sure exactly on the user interface but will be, but will assume it's somewhere on the student profile page for now.
The user interaction shouldn't need a full page reload (eg., Ajax-style upload).

Thinking how to integrate attachments with the current student model: we want to allow multiple uploads per student correct?
I'm eyeing the carrierwave gem for handling uploads nicely.
Thoughts?

Yeah, our thinking was for it to be multiple uploads per student. The carrierwave gem was the same gem I was looking at. I had begun some work on this locally, but then life got in the way and haven't been able to commit time to it last couple of weeks. I won't be able to make it tomorrow as I'm in California for work, but will be back in Boston next week so planning to stop by to the next meeting. Feel free to take the lead on it, Jon.

Just thinking in the open for changes to the backend:

Create a db migration rails g migration CreateStudentDocuments filename:string content_type:string file_contents:binary
Also add a foreign key to the table referencing a student_id
Add a student_document.rb to app/models/ with belongs_to :student
Change student.rb in app/models/ to have has_many :student_documents

Then we should be set up to store documents and relate them to students. Front-end approach forthcoming...

@jonchar Sounds good, thanks for sharing your thoughts!

Hey Jon,
Yeah, that's pretty much exactly what I had done, and consistent with the changes I had locally. I didn't have the file_contents as an attribute of the document, but now that I think of it, it makes sense to have that.

Hey @jnowell, Great to know we were thinking the same. Next steps I'm looking at are:

Make a React component for uploading a file.
Pass the file to Rails, store it in the database.
Validate the reverse will work for retrieving uploaded documents.

Will we eventually want some sort of in-browser viewer for what gets uploaded? I'd imagine that would be more convenient than re-downloading, but maybe I'm thinking too far ahead.

@jonchar sounds awesome!  I think for the first iteration, having the user download the file is great.  Viewing the contents of particular file types (eg., PDFs or images) inline in the browser is a great idea and would be nice, but that's next-level so I'd table it until the first iteration is functional.

We have a early version of this in place where educators can attach links to external documents on the web to Insights notes.


Install jupyterlab during normal builds

In #2709 I removed jupyterlab from the build_requires.txt so that
the local versaion of jupyterlab could be used if installed. This
has caused frustration in users, so I've added the dependency back
and update the make dev-install target to not use the dependency
file at all, instead using a new make target to install the
required dependency.
Developer's Certificate of Origin 1.1
   By making a contribution to this project, I certify that:

   (a) The contribution was created in whole or in part by me and I
       have the right to submit it under the Apache License 2.0; or

   (b) The contribution is based upon previous work that, to the best
       of my knowledge, is covered under an appropriate open source
       license and I have the right under that license to submit that
       work with modifications, whether created in whole or in part
       by me, under the same open source license (unless I am
       permitted to submit under a different license), as indicated
       in the file; or

   (c) The contribution was provided directly to me by some other
       person who certified (a), (b) or (c) and I have not modified
       it.

   (d) I understand and agree that this project and the contribution
       are public and that a record of the contribution (including all
       personal information I submit with it, including my sign-off) is
       maintained indefinitely and may be redistributed consistent with
       this project or the open source license(s) involved.

A note on review, we should make sure the following cases all work as expected:

CI
Using make clean install in a old env
Using make clean install in a fresh env
Following the steps to use a local instance of jupyterlab as in the docs


Update of Anaconda deps... finally

That's right, it's the moment you've all been waiting for, finally an upgrade of the Anaconda deps xD

@Trujillm behold!

Yep For the base image, it's just conda env export -p /opt/app-root > environment.yml after installation/update of packages. That just freezes the base deps

what commands did you use for installation and update ?

For the datascience image, it was running:
conda install -c conda-forge $(cat environment.in)
conda env export -p /opt/app-root > environment.yml

The environment.in was generated by just taking the pipfile's Packages section and reformatting it (and chopping the last digit of the version, since they may not always 1:1 match wit the ones available, and debugging that kfp-tekton was an unsatisfiable package version with all the others

ack, did you update environment.yml for data-science as well.

Yep, environment.yml is updated for both, also some other good news is @trujillm will be taking over the maintenance of these in the future, as well as writing some of the automation I wasn't able to figure out

@harshad16 do you know when this will get merged?

Thank you, Sean, for fixing this for us! :rocket: I suppose that this is tied with the #195 so mentioning it here for the reference.


allow state transition from ENVELOPE_MAILBOX_OUTBOUND -> ENVELOPE_ERROR

this not being allowed was preventing non-invoking parties from receiving the envelope error notification

Codecov Report

Merging #105 (f64b3a4) into main (f39efd8) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##               main     #105   +/-   ##
=========================================
  Coverage     12.13%   12.13%
  Complexity       37       37
=========================================
  Files            66       66
  Lines          3477     3477
  Branches        368      368
=========================================
  Hits            422      422
  Misses         2994     2994
  Partials         61       61

Impacted Files
Coverage Δ

...otlin/io/provenance/engine/service/EventService.kt
50.34% <100.00%> (ø)

Continue to review full report at Codecov.

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


Build failing - style issues

Seems like build is failing because eslint complains about extra semicolons in pretty much every file. I'm all against using semicolons but apparently koa codebase uses them even though eslintrc is configured to complain about them. Would a PR making eslint pass be of help?

that's this PR that's failing: https://github.com/koajs/koa/pull/520
i haven't gone through the rules yet. help would be appreciated!

Gonna close this as duplicate of #495


doesn't transform documents that have been both created and deleted

Using crypto-pouch documents being replicated to pouch that are tagged as deleted don't get transformed: https://github.com/calvinmetcalf/crypto-pouch/issues/19#issuecomment-186440042

Ah yeah, this was something I coded up because I assumed it would fulfill the 95% use case. Maybe some people actually do want to handle _deleted documents, though (e.g. if you are manually adding _deleting: true instead of remove()ing). I'd accept a PR to add a configuration option for this, e.g.:
db.transform({
  incoming: ...,
  outgoing: ...,
  handleDeleted: true
});

Here’s one solution: https://github.com/nolanlawson/transform-pouch/pull/20 without the extra option.

Here’s the implementation of the handleDeleted option: # 21


MM-T2835 Slash command help stays visible for plugin

Summary
This PR validates that the help/suggestion list stays visible after typing a slash command and adding an extra space. During the before-hook the Agenda plugin is installed and enabled.
This test:

installs and enables the Agenda plugin
creates a user and test channel
takes the user to the test channel
asserts the help/suggestion menu is not visible
enters "/agenda " with the space in the post text-box
asserts that the suggestion menu appears and is still visible after the space character is typed
removes the plugin during the after-hook

Links
vercel
TM4J

Hello @MikeworX,
Thanks for your pull request! A Core Committer will review your pull request soon. For code contributions, you can learn more about the review process here.

/check-cla


Error in vcpkg_download_distfile.cmake renaming temp dir (may be docker-related)

Package: xerces-c:x64-windows
Vcpkg version: 0.0.113-nohash
I don't think the issue is really in xerces-c.  It happens most frequently when running multiple "vcpkg install" commands in separate docker RUN steps.  However, I have also reproduced by hand trying to install xerces-c.
The system is a VMware virtual machine running Windows Server 2016 (MSDN licence), running VS2015 in a docker image.  The docker image is created from here and here.  Could the filesystem behaviour under docker be part of the problem?
See e.g. this build log
Building package xerces-c[core]:x64-windows...
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:74 (file):
  file RENAME failed to rename

    C:/vcpkg/downloads/temp

  to

    C:/vcpkg/downloads/temp0

  because: No such file or directory

Call Stack (most recent call first):
  scripts/cmake/vcpkg_from_github.cmake:108 (vcpkg_download_distfile)
  ports/xerces-c/portfile.cmake:19 (vcpkg_from_github)
  scripts/ports.cmake:71 (include)

I can't see any problem with the logic in the script; it's failing, but that shouldn't be possible.  It should only try to rename the directory if it exists, so this condition should not occur.

Hi @rleigh-codelibre, thanks for posting this issue. Does this issue still exist on your machine now? I can't reproduce it.

Please see this build log which I ran just now to retest.  The problem showed up almost immediately.

Aha, I've reproduced the problem here.  You can see the rename bug hits while trying to build the Boost libraries.

There's a few others having the same error #3399

This bug is reproducible in docker quite consistently (#7079 has some more details on it). May I suggest removing "needs-repro" label?
I would also like to mention that this bug is most likely different than the main topic of #3399 (as that one seems to be Windows related, not docker related).

I can also consistently get this to fail as well following a jsoncpp install. As I'm building a new docker image, we are doing a git clone from github, so the following is using HEAD from github:
Can we reopen this bug please?
....... (bunch of prior logs) ......

Total elapsed time: 30.8 s

The package jsoncpp:x86-windows-static provides CMake targets:

    find_package(jsoncpp CONFIG REQUIRED)
    target_link_libraries(main PRIVATE jsoncpp_lib_static)

Removing intermediate container fa89076592f7
 ---> 214c35bf8d36
Step 27/30 : RUN	vcpkg install openssl:x86-windows-static
 ---> Running in d7d18e7a2867
The following packages will be built and installed:
    openssl[core]:x86-windows-static
  * openssl-windows[core]:x86-windows-static
Additional packages (*) will be modified to complete this operation.
Starting package 1/2: openssl-windows:x86-windows-static
Building package openssl-windows[core]:x86-windows-static...
CMake Error at scripts/cmake/vcpkg_download_distfile.cmake:79 (file):
  file RENAME failed to rename

    C:/tools/vcpkg/downloads/temp
  to
    C:/tools/vcpkg/downloads/temp0

  because: No such file or directory

Call Stack (most recent call first):
  scripts/cmake/vcpkg_find_acquire_program.cmake:267 (vcpkg_download_distfile)
  ports/openssl-windows/portfile.cmake:13 (vcpkg_find_acquire_program)
  scripts/ports.cmake:74 (include)
Error: Building package openssl-windows:x86-windows-static failed with: BUILD_FAILED
Please ensure you're using the latest portfiles with `.\vcpkg update`, then
submit an issue at https://github.com/Microsoft/vcpkg/issues including:
  Package: openssl-windows:x86-windows-static
  Vcpkg version: 2019.07.18-nohash

Same problem. See my steps to reproduce in #7997

I wonder if vcpkg should always remove both the temp and temp0 directories during every invocation.  This would mean that when overlays are used, both will be created on the same overlay and so there will be no possibility of cross-device links when doing the rename.
Of course, it does beg the question of why cross-device links are being created in the first place.  I thought the whole point of the overlays was to abstract this away so you got a filesystem which worked as usual despite it being comprised of several layers.  Rename operations are hardly atypical, so it's interesting that vcpkg is triggering this condition where other tools are not.

@rleigh-codelibre can you confirm whether the changes in PR #8032 fix the problem?

I'll test this tomorrow.

@rleigh-codelibre  ping

Still testing this, but you can see the results so far here:

Repro of original fault

Rebuild of container with test vcpkg branch; timed-out later on, will be tested properly below:

Python build failure; maybe hitting on the same issue inside Python

HDF5 build failure; again may be hitting the same issue inside the package build

Qt5 build failure

So on a positive note, I can't reproduce the original failure with this PR.  It does successfully build a large number of packages.
On the negative side, a number of packages fail to build which would otherwise build without problems on a native Windows installation, but don't work inside Docker.  It might all be related to issues with the windows-filter storage driver.  It's not necessarily vcpkg at fault here, but it does represent a significant usability gap with native Windows containers.

Having same problem, any workaround?

I have the same trouble inside my Docker environment. The dirty fix can be like that: change file scripts/cmake/vcpkg_build_make.cmake and insert there execute_process(COMMAND sleep 5) after file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}_tmp").


Azure Storage reserved capacity is available for a single subscription or for a shared resource group?

In the Reservation scope section I can see "Azure Storage reserved capacity is available for a single subscription or for a shared resource group". But in the documentation for Reservations overall I can see "Apply reserved capacity pricing to a single subscription or across multiple subscriptions." For Azure storage reservations can it be applied to a Shared Subscription/multiple subscriptions or is it scoped at maximum to a single Subscription?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: b4da9483-7120-9e2c-9861-9dba80034b56
Version Independent ID: 61588662-b963-e5a6-f39d-235244fc46cc
Content: Optimize costs for Blob storage with reserved capacity - Azure Storage
Content Source: articles/storage/blobs/storage-blob-reserved-capacity.md
Service: storage
Sub-service: blobs
GitHub Login: @tamram
Microsoft Alias: tamram

@nasantia Thanks for the question! We are investigating and will update you shortly.

@nastassiar - Thanks for your feedback. I've updated the article to clarify that reservation instances can be shared across multiple subscriptions.
#please-close


MQTTbridge will not work: Cannot read property 'length' of undefined

Hi I am trying to set this up for the first time. This is the error message i get when i start mm:
Is anyone able to advise me please. Thanks
| [30.09.2021 17:16.03.787] [ERROR]  0|mm  | TypeError: Cannot read property 'length' of undefined 0|mm  |     at Class.connectMqtt (/home/pi/MagicMirror/modules/MMM-MQTTbridge/node_helper.js:54:36) 0|mm  |     at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-MQTTbridge/node_helper.js:67:14) 0|mm  |     at Socket.<anonymous> (/home/pi/MagicMirror/js/node_helper.js:109:11) 0|mm  |     at Socket.emit (events.js:315:20) 0|mm  |     at Socket.emitUntyped (/home/pi/MagicMirror/node_modules/socket.io/dist/typed-events.js:69:22) 0|mm  |     at /home/pi/MagicMirror/node_modules/socket.io/dist/socket.js:428:39 0|mm  |     at processTicksAndRejections (internal/process/task_queues.js:79:11)

Hi,
just took over the ownership of this module.
Is this problem still present?
If yes, can you share your config (without user and password) and the dictionaries please.

Hi, as I released a totally refactored version now and I can not reproduce the problem at any of my installations I will close the ticket now.
If you face the problem again please feel free to create a new one.


CORE-18212 - default the state manager max connections to 8

Problem:
Default SM connections is 5, default taskManager threads is 8. By default, there could be a bottleneck as threads may be waiting for db connections to be released.
Solution
Set the default max number of connections to 8 for state manager.
Ambiguous
Token selection does not use the TaskManager nor the MultiSourceEventMediator, however I think keeping the max connections consistent for all workers is a better approach.

Closing because multi source event mediator does not use more than 5 threads


don't try to remove listeners if element isn't registered

I've run into a situation where listenTo may or may not have been called on an element before, but I need to be sure there are no listeners. Is there any problem with letting removeAllListeners succeed on an uninstalled element?

Is there any problem with letting removeAllListeners succeed on an uninstalled element?

Nope. This is how I intended the function to behave, but I missed the error.


add mybatis+h2 demo

@sabersword Please sign the Contributor License Agreement!
Click here to manually synchronize the status of this Pull Request.
See the FAQ for frequently asked questions.


Instrument http4s

Closes https://github.com/ScalaConsultants/mesmer/issues/667

TODO:

[ ] Create an e2e test for http4s.
[ ] Add tests for error cases. I have investigated doing that for each metric, but ran into an annoying issue where apparently testRunner.clearAllExportedData() does not actually clear exported metrics, so having multiple tests for single metric seemed impossible to do.

TODO for future reference:

an example project could be useful that shows the metrics


Consider making Ident instantiable in const contexts

Rust is making a push to having more functions and constants available in the const context. It would be very helpful if at some point it were possible to instantiate an Ident as a constant.
Motivation

To be able to create associated constants in Parser traits.
To be able to extract idents as global constants (in cases where they are necessary)

Given that Idents are handles onto threadlocal compiler data structures, I don't consider it likely that this would work.


Restore packages if needed

This PR makes sure that OmniSharp automatically restores packages (via dnu restore or kpm restore) if needed. The flow goes like this:

OmniSharp receives a dependencies-message from DTH which flags unresolved dependencies
OmniSharp runs dnu restore or kpm restore (depending on the target runtime)
Upon completion OmniSharp sends DTH restoreComplete-messages (one per project)
DTH updates project references etc which in return makes OmniSharp update the Roslyn project
Roslyn emit a project modification event and forwards that to the editor
The editor ask request a new code check etc

What triggers DTH to send a dependencies message? How do I test this?

@nosami - the easiest is to have project.json file with a broken dependency (like below). DTH always sends this message when a project is (re)initialized and dependencies that couldn't be resolved have a special type.
{
	"dependencies": {},
	"commands": {
        "run": "run"
    },
	"frameworks": {
		"aspnet50": {},
		"aspnetcore50": {
			"dependencies": {
				"System.Consola": "4.0.0-beta-*"
			}
		}
	}
}

and all of it makes sense when you fire up the /filesChanged-route to tell OmniSharp that project.json has changed.

Yeah... I need to get that added to the editors. The code looks good. Looking forward to trying this out :+1:

I am making some more changes as dnu restore won't support recursive restore much longer. Therefore, I going back to a model where I run restore on a project by project basis (instead of looking for global.json)

OK... Just let me know when you're happy to merge it.
On Mon, Apr 13, 2015 at 6:27 PM, Johannes Rieken<EMAIL_ADDRESS>wrote:

I am making some more changes as dnu restore won't support recursive
restore much longer. Therefore, I going back to a model where I run restore
on a project by project basis (instead of looking for global.json)
—
Reply to this email directly or view it on GitHub
https://github.com/OmniSharp/omnisharp-roslyn/pull/153#issuecomment-92438150
.

yeah - made the whole things simpler. it now one method that (in a task) starts and waits for the process. also locks simpler.

Sweet! Tested it and it works great!


refactor NDTree so that easy to accept new data types for leaf methods

@deerzq @yolken @hectorgon @spencerde @christhetree

@deerzq Thanks for review, euclideanDistance moved

LGTM


Re-implement Radio component using RadioGroup in Radix UI

Self Checklist

[x] I wrote a PR title in English.
[x] I added an appropriate label to the PR.
[x] I wrote a commit message in English.
[x] I wrote a commit message according to the Conventional Commits specification.
[x] I added the appropriate changeset for the changes.
[x] [Component] I wrote a unit test about the implementation.
[x] [Component] I wrote a storybook document about the implementation.
[x] [Component] I tested the implementation in various browsers.

Windows: Chrome, Edge, (Optional) Firefox
macOS: Chrome, Edge, Safari, (Optional) Firefox

[x] [New Component] I added my username to the correct directory in the CODEOWNERS file.

Related Issue
Fixes #709
Summary

RadioGroup 컴포넌트를 구현하고, Radio 컴포넌트를 재구현합니다.
Details

Radix UI의 RadioGroup.Root 컴포넌트를 사용하여 RadioGroup 컴포넌트를 구현합니다.
Radix UI의 RadioGroup.Item 컴포넌트를 사용하여 Radio 컴포넌트를 재구현합니다.

Breaking change or not (Yes/No)

Yes

Legacy Radio component is now exported with namespace LEGACY__Radio. It will be deprecated.
New Radio component must be used with the new RadioGroup component. See below.

// AS-IS
<Radio
  value={value}
  watchingValue={watchingValue}
  onClick={() => setWatchingValue(value)}
/>
// TO-BE
<RadioGroup
  value={watchingValue}
  onChangeValue={setWatchingValue}
>
  <Radio value={value} />
</RadioGroup>

References

https://www.radix-ui.com/docs/primitives/components/radio-group

채널 데스크 어플리케이션에 모달 마이그레이션 작업 완료 이후 머지할 예정입니다.


Signing containers using cosign.

Fixes: #566

This is my first time working with github actions. Any feedback is highly valuable to me.

Hi @prady0t
I think you should do the signin as part of the release workflow.
You can find the workflow at: .github/workflows/main.yaml

Ok so basically sign every image after it's build, like after this build:
https://github.com/keyval-dev/odigos/blob/b245d0ed898439c5799867ba7b45270e3bc247c5/.github/workflows/main.yml#L69C6-L69C6
Do something like:
      - name: Sign the container image
        env:
          COSIGN_EXPERIMENTAL: "true"
        run: |
          cosign sign \
          ghcr.io/keyval-dev/odigos/odiglet@${{ steps.push-step.outputs.digest }}

And so on for all image builds?

yes I think so

@edeNFed did the changes. Please have a look.

@prady0t  I think we should sign also the images uploaded to docker hub for example keyval-dev/odigos-autoscaler

Please review.
@edeNFed


cssnano removes @font-face

I can't find any trace of my @font-face declarations in the cssnano processed final stylesheet. how do I prevent this? My fonts ain't loading.
thanks and sorry for the flood of questions :)

Likelihood is that those definitions are stripped out by postcss-discard-unused, as it expects to find a matching font-family declaration to go along with the definition. You can turn this behaviour off with {discardUnused: false} (or --no-discardUnused from the CLI).

hi ben
with this configuration
            build: {
                options: {
                    map: false,
                    processors: [
                        require('cssnano')({autoprefixer: {browsers: 'last 2 version, IE 9'},minifyFontValues: {removeQuotes: false}, discardUnused: {discardUnused: false}})
                    ]
                },
                src: '_site/css/main.css'
            }

i still can't find the font face declaration.
should i do something different?
thanks and sorry for the hassle

{
  discardUnused: false
}

Not this:
{
  discardUnused: {discardUnused: false}
}


Make pointing faster

About the PR
I changed the minimum point delay to 0.2 seconds.
Why / Balance
TG (:godo:)
Technical details
Change server _pointDelay.
Requirements

[X] I have read and am following the Pull Request and Changelog Guidelines.
[X] I have added media to this PR or it does not require an ingame showcase.

Breaking changes
Your kneecaps. They will break.
Changelog

:cl: router

tweak: Players can now point 2.5x as fast (every 200ms).

Summary by CodeRabbit

New Features

Reduced cooldown for pointing actions, allowing players to point more frequently.
Introduced dynamic configuration for pointing cooldown, enabling runtime adjustments.

These enhancements improve player interaction and responsiveness during gameplay.

Why...


Webpack 5 doesn't support extended globs in the sideEffects field

Bug report
What is the current behavior?
When a package.json specifies sideEffects field with filename-matching globs that use the extended glob syntax:
"sideEffects": [
  "dist/(esm|cjs)/init.js"
]

or
"sideEffects": [
  "!(dist/api/**)"
]

then webpack doesn't match the files that should the globs: it interprets the ! and () characters as regular characters, not as a special syntax.
What is the expected behavior?
In webpack 4, the extended glob syntax used to be supported.
The change was introduced in #9141, when switching from micromatch to glob-to-regexp, a smaller but much less powerful library. The PR describes the breaking change as "probably some weird patterns are different" which I think is not a good description of removing a whole class of glob patterns.
The (esm|cjs) syntax can be replaced by {esm,cjs}, there is no replacement for ! except converting to a list of "positive" globs.
I think it's OK to say that the extended glob syntax is no longer supported and document it. But a package.json field like sideEffects that should be in theory bundler-agnostic would deserve some precise specification of what is allowed or not.
Other relevant information:
webpack version: 5.1.3

I think glob-to-regexp should supports this patterns

try "!**/dist/api/**" or "!dist/api/**"

Negative patterns are not supported. Be positive...
I feel ok that only simple patterns are supported. Supporting a too wide range of patterns was a mistake. That only lead to inconsistencies between tooling. Restricting to simple patterns is good.
But we should improve the documentation about what's supported.

Not sure if I should file a new bug for this as it is also an issue caused by glob-to-regexp.
But adding a regex to the config.devServer.watchOptions.ignored list also trips glob-to-regexp with throw new TypeError('Expected a string');.
I now see that config.devServer.watchOptions is deprecated and I should use config.watchOptions instead. It has a type of string | RegExp | string[], so the previous list of regexes does not pass the type checker any more when using this instead. I think some info on this could be to the migration documentation.

@samal-rasmussen update webpack to latest version, and this problem is different

update webpack to latest version, and this problem is different

I updated webpack to the latest this morning. That's when I got this issue.

@samal-rasmussen please do not spam in the not related issue, you still use old version, yarn upgrade --latest is not upgrade major release

The upgrade --latest command upgrades packages the same as the upgrade command, but ignores the version range specified in package.json .

https://classic.yarnpkg.com/en/docs/cli/upgrade/

@samal-rasmussen please do not spam in the not related issue, you still use old version, yarn upgrade --latest is not upgrade major releases

yarn upgrade --latest did upgrade webpack from 4 to 5.
I'd love to move this discussion to a new issue if you want. I wouldn't want to do a DenverCoder9: https://xkcd.com/979/

@samal-rasmussen no need to new issue, webpack@5 provide own types, so you don't need @types/webpack, please read how typescript work before using it

webpack@5 provide own type

The migration guide doesn't say that you need to remove @types/webpack when you upgrade in order to get the new v.5 types. If I saw the right types then I would have been able to figure out why I was getting errors with glob-to-regexp, and I wouldn't have come here.

@samal-rasmussen https://webpack.js.org/migrate/5/#changes-to-internals, feel free to send a PR with improvements


Performance Issue - Email sending stops while dynamic lists get updated

Hi - We are trying the new release and making dynamic lists with dates in the conditions. We observed that when the list population is in progress, the email sending stops.
Here is a screenshot of while the list was getting populated - the emails are not getting sent.

We noticed the event_post jobs were processing (and new users were getting added)

Here is what it looks like when the list processing had finished. Seems like all pending emails were sent.

The CPU was around 60% used in this entire duration and the Memory usage was also not 100%.  Hence I am not sure if the server resources were the bottleneck here.
Could you please share your thoughts on this? Would this work if we upgrade our instance or is there anything else that can be done?
As of now, we have 2 workers in our PV configuration.
Thank you for your help!

At its core the service is a queue, and regenerating large lists adds a lot of jobs to the queue. Everything in the service just adds jobs to the queue such as emails to send, stats to recalculate, events to process, so if your workers cant keep up, everything else will indeed be "delayed" until the workers get to them

Understood. Thank you for your reply.
Do you think there could be a possibility of adding a priority for jobs?
List generation related jobs will always have a lower priority and the
critical ones like sending email always get executed because they would
have a higher priority?
Without this, someone with a very large list will always see stoppage in
sending activity for atleast some time irrespective of the server size.
On Fri, 20 Dec, 2024, 05:10 Chris Anderson, @.***>
wrote:

At its core the service is a queue, and regenerating large lists adds a
lot of jobs to the queue. Everything in the service just adds jobs to the
queue such as emails to send, stats to recalculate, events to process, so
if your workers cant keep up, everything else will indeed be "delayed"
until the workers get to them
—
Reply to this email directly, view it on GitHub
https://github.com/parcelvoy/platform/issues/583#issuecomment-2555961172,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AZRYXF72MTAY5TPZ2IZ2SVD2GNKNLAVCNFSM6AAAAABT4ZST56VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJVHE3DCMJXGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

Hi- Thank you for the quick turnaround. Can I also suggest jobs like "sending campaigns" to be added as a higher priority? Use - case the list generation is happening at the backend. The campaign has not started sending since there are jobs pending in the list.

They are a higher priority, I only de-prioritized lost generation. Everything else has the same high priority

I think there seems to be something wrong. Our manually triggered campaign is still showing pending for over an hour while I see the queue of pending jobs. Waiting for the queue to clear.

Eg - my current time is 7.50 pm. this is what i see in the campaign status.

If your queue is never emptying, you don't have enough workers to support your use case. You'll want to spin up another one (can be in the same docker compose if you'd like) to handle additional workload. You queue should reach empty every minute ideally

Thank you for the revert. I will request that the priority implementation not be rolled back. There will always be some mission-critical events. Example:

"verify your email" during signup
"A critical error occurred in your account - please take x action.

Such things will always need to go out asap. I understand the perpetual pending jobs issue however I think in a normal implementation there will be a pending jobs queue based on the server config and # users.
Also, I have a better idea of what happened - the campaign was sent after the dynamic list was populated. I think the campaign delay was due to that.
Next steps - I will try the following:

Will increase the number of workers from 2 -> 4.
Can you please tell me where to set the REDIS_CONCURRENCY value? (Apologies for the noobish question :) I checked the docs, and also did not find this in the docker-compose or the .env file.)

Also, it would be amazing to have some sort of benchmark numbers for the ideal server config, the number of workers based on # users/contacts/emails/push someone has to send. Might be a good starting point for a lot of folks who would want to give it a spin.
Thank you for the help!


Types for vsc-change event

Thanks for offering this great package!
It would be nice if the library could expose types for the vsc-change event based on given element. Let me know if this makes sense and I could look into adding it.

Thank you for your feedback!
That's a great idea. Honestly, I don't know how could I implement this, so I would appreciate your help.

I've rewritten the event handling part. Most of the components use native events if possible. When a component has a custom event, the event name is unique as contains the component name. Every custom event is exported as TypeScript type. When a component is imported its events will be registered as global events, so will be offered in the IDE autocomplete.


CX Reflected_XSS_All_Clients @ src/main/java/org/t246osslab/easybuggy/troubles/EndlessWaitingServlet.java [master]

Reflected_XSS_All_Clients issue exists @ src/main/java/org/t246osslab/easybuggy/troubles/EndlessWaitingServlet.java in branch master
Method printInputStream at line 123 of src\main\java\org\t246osslab\easybuggy\troubles\EndlessWaitingServlet.java gets user input for the readLine element. This element’s value then flows through the code without being properly sanitized or validated and is eventually displayed to the user in method responseToClient at line 31 of src\main\java\org\t246osslab\easybuggy\core\servlets\AbstractServlet.java. This may enable a Cross-Site-Scripting attack.
Severity: High
CWE:79
Checkmarx
Lines: 128

Code (Line #128):
                String line = br.readLine();

Issue still exists.
SUMMARY
Issue has total 1 vulnerabilities left to be fix (Please scroll to the top for more information)

Issue still exists.
SUMMARY
Issue has total 1 vulnerabilities left to be fix (Please scroll to the top for more information)


Add feature for recording pause in Sourcereel

Description
Add feature for recording pause in Sourcereel, as requested by Prof Martin.
Type of change

[x] New feature (non-breaking change which adds functionality)

How to Test
Manually.
Checklist
Please delete options that are not relevant.

[x] I have tested this code

Pull Request Test Coverage Report for Build 6978

0 of 9 (0.0%)  changed or added relevant lines in 4 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-0.06%) to 34.145%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

src/pages/academy/sourcereel/subcomponents/SourcereelControlbar.tsx
0
1
0.0%

src/commons/sourceRecorder/SourceRecorderControlBar.tsx
0
2
0.0%

src/pages/sourcecast/Sourcecast.tsx
0
2
0.0%

src/pages/academy/sourcereel/Sourcereel.tsx
0
4
0.0%

Totals

Change from base Build 6977:
-0.06%

Covered Lines:
2341

Relevant Lines:
6373

💛  - Coveralls


about the Explore menu page bug

Gogs version (or commit ref): <IP_ADDRESS>5
Git version:
Operating system: centos 6.5 x86
Database (use [x]):

[x] MySQL
[ ] SQLite

Can you reproduce the bug at https://try.gogs.io:

[ ] Yes (provide example URL)
[x] No
[ ] Not relevant

Log gist (usually found in log/gogs.log):

Description
page bug
when i click menu Explore ,I see the page count is 8,but when i click page 6,not any content,in my Repositories have 91 project, the project include private and public,

Patch has pushed to fix this issue, please test on develop branch or https://try.gogs.io.

thinks,


Formly Conditional hiding

Description: Allows the specification of a condition to check that depends on other formly fields. Hides when condition is met.

In general looks good to me. I also wonder if this implementation can replace the previous toggleHidden annotation entirely?

We considered this not worth the cost of code bloat and increased redundancy. The potential transition was also causing some issues with the geo search hiding. Multiple hiding is more succinctly represented by the prior hide method.

Discussion 2022.05.12: @Yicong-Huang will contact @me-here and merge this PR.


Small fix to saltransform

Fix .seconds() call
Update k8s deployment configuration to use the latest version of the container

This looks good. Keep in mind that latest only updates when master updates. So this may be fine after all.


Support updating release plan when labels are changed on previously-merged PRs

Using the pull_request event to trigger the workflow when labels are added on PRs from forks runs into permissions issues when the workflow attempts to open or update the release plan PR. This is because PR workflows from forks do not get repo secrets.
The pull_request_target event allows triggering a workflow upon an event on a PR from a fork but does include the secrets. It is not safe to run code from the PR in this workflow and the workflow that runs is from the base branch. Since this workflow only pulls the primary branch, this is safe to use. See https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
This can be seen working here:
https://github.com/kategengler/test-rp-new/pull/1
Action that ran when the label was changed on the PR https://github.com/kategengler/test-rp-new/actions/runs/9684295098

I've tested this locally and I'm really happy with it 🎉  I'm setting it as a breaking change because it's a big change in behaviour, though in reality it's not depended on directly so we don't need to follow semver rules 😂
Thanks for solving this one @kategengler 🎉


Implement Configuration#getOrElse() method

Summary
getOrElse() would be usefull for when assign defaults based on presence of a property.

@ggezer do you still need this feature? If yes, can you put in more details to help community contributor to grab this ticket

Will close it for now, feel free to reopen it and contact us if this is a strong request.


explain internal _id format (e.g. author_1_0000000000000019)

I couldn’t tell from the README what the 1 means in author_1_0000000000000019? For example here: https://github.com/nolanlawson/relational-pouch#dbrelparsedociddocid
I understand the author_ prefix, and I understand the<PHONE_NUMBER>000019 part is the author’s id, just not the part in between :)
Can you explain and maybe amend the README?

@gr2m the number in the middle is the "type" of ID used.
If the id is undefined the value is 0, if the id is a number, the value is 1, if the id is a string the value is 2, and if the id is an object the value is 3.  For example:
Given an object of type author with the following ids:
var authorId = 123;
var relPouchId = db.rel.makeDocID({
  id: authorId,
  type: 'author'
});
//relPouchId = 'author_1_123'

var authorId = 'onetwothree';
var relPouchId = db.rel.makeDocID({
  id: authorId,
  type: 'author'
});
//relPouchId = 'author_2_onetwothree'

var authorId = { foo: 'bar' };
var relPouchId = db.rel.makeDocID({
  id: authorId,
  type: 'author'
});
//relPouchId = 'author_3'

The reason for these numbers is sorting/collation so that ids sort as follows:
// undefined < numbers < strings < object
The only use case I have seen for the undefined and "object" id is when you are looking for a range of docs using startkey/endkey and you use a start key with an id of undefined and an end key with an object id to get the "max value", eg as used here: https://github.com/nolanlawson/relational-pouch/blob/7f3b34f70be189cabbdf0f525b64f6be464b0921/lib/index.js#L425

This is a great explanation, thanks John! Maybe we can add this to or link this from the README?

@gr2m yeah, I think it could be added here: https://github.com/nolanlawson/relational-pouch#dbrelmakedocidparsedid
@nolanlawson Did I properly explain the reasoning for the middle part of relational-pouch ids above?

@jkleinsc Yep! :)

@gr2m If you like to write a PR for the readme I will commit it.

@broerse https://github.com/nolanlawson/relational-pouch/pull/69

Thanks!


without docker?

Hello,
is it possible to run the demo without docker?
If yes, how?

Yes, download  Composer and use the manual installation way

sorry, but its show an error while installing with composer v.2
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - begimov/thanks[v1.1.0, ..., v1.1.1] require composer-plugin-api ^1.0 -> found composer-plugin-api[2.0.0] but it does not match the constraint.
    - Root composer.json requires begimov/thanks ^1.1 -> satisfiable by begimov/thanks[v1.1.0, v1.1.1].

You are using Composer 2, which some of your plugins seem to be incompatible with. Make sure you update your plugins or report a plugin-issue to ask them to support Composer 2.


Added FifoArray abstraction.

I noticed there was a lot of code duplication to keep track of error history in ControllerState. I have 3 PRs lined up to address this. This one is the first.
Added a FIFO array abstraction.
Please note (and check) the changed offsets for the filtered errors. The old code already had moved all entries in that buffer when it calculated the new value. The new code does not so it needs different offsets.

Aligning all these similar constructs is a good idea.
Same thing here, can this complete header file be replaced with an include from the boost circular buffer?
https://www.boost.org/doc/libs/1_55_0/doc/html/circular_buffer/example.html

Aligning all these similar constructs is a good idea.
Same thing here, can this complete header file be replaced with an include from the boost circular buffer? https://www.boost.org/doc/libs/1_55_0/doc/html/circular_buffer/example.html

No, not easily. We need a fixed-size buffer (not just fixed-capacity) like std::array because of the way it is used. Wrapping the boost circular buffer in order to make it seem fixed-size would introduce more noise, I think.


fix the size of posix_spawn_file_actions_t and posix_spawnattr_t on Linux

fixes #3608

CI is failing due to https://github.com/rust-lang/libc/issues/3613

Could you rebase to pass CI?

@JohnTitor, is this libc release blocked waiting for a response here? How to unblock it?

closing in favor of #3683


Use ZooKeeper autopurge instead of Exhibitor periodic cleanup

High-level description
ZooKeeper 3.4 introduced autopurge to clean up old snapshots and transaction logs. This was one of the responsibilities handled by Exhibitor. For some time we have had ZK running autopurge every 6 hours, but also Exhibitor calling ZK purge every 5 minutes.
Exhibitor does not pass the configured JNA temporary directory through to its explicit purge, so it causes ZooKeeper to to use /tmp for executable files, even if it is mounted noexec.
This PR stops the Exhibitor purge, and changes the ZK autopurge to run every hour (the minimum).
Corresponding DC/OS tickets (required)

D2IQ-68109 COPS-6111: Regression: Exhibitor writing JNA files to /tmp again

Related tickets (optional)

D2IQ-ID JIRA title / short description.

@mesosphere-mergebot request-review @wavesoft @jkoelker


custom font awesome or styles

How can we load custom font awesome files in spa application?

An easy way is to use font awesome via CDN, such as the official font awesome cdn or bootstrap cdn.
You said you want to use custom font awesome files, which might indicate that a CDN won't work for you. In that case, check out these docs. Specifically, take a look at the Angular assets, Scripts, and Styles sections.


'int' object has no attribute 'split' Error in data pipeline function

User is facing 'int' object has no attribute 'split' error in data pipeline function while working with numeric data operators.

Changes are done by validating the object type and published to GitHub.


MPEG stream input

A user wanted to use an MPEG stream as an input.

http://streams.videolan.org/streams/ts/Darius-TS_Teletext.mpg might be a good example.

There's a Linux patch floating around to implement virtual DVB devices for Linux.
With that and #5 fixed, we would have this feature implemented for free.
Unfortunately, the patch wasn't well received upstream, and I couldn't get it working anyway. :-/


Screens & Framework needs to pass event into "key_up_func" and "key_up_funcs"

Right now, the key_down_func and key_down_funcs are passing down the ALLEGRO_EVENT for the keypress. This is a preferred pattern.
In the DragonWrath game, the fix was applied.  This same change needs to be added to to Framework.
This is the change: https://github.com/MarkOates/DragonWrath/commit/a6f6207cc67d4edc3bd13df6828fc8c64d0dda19

Done in https://github.com/allegroflare/allegro_flare/commit/3dd75a54e9ba28e71377629fe359d031457911a9


IOError: [Errno 2] No such file or directory: '/root/.jasper/profile.yml'

Hello,
Whenever i try to run jasper , I get the following error  :

        JASPER - THE TALKING COMPUTER           *

(c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *

ERROR:root:Error occured!
Traceback (most recent call last):
File "/home/pi/jasper/jasper.py", line 143, in
app = Jasper()
File "/home/pi/jasper/jasper.py", line 77, in init
self.config = yaml.safe_load(f)
File "/usr/local/lib/python2.7/dist-packages/yaml/init.py", line 93, in safe_load
return load(stream, SafeLoader)
File "/usr/local/lib/python2.7/dist-packages/yaml/init.py", line 71, in load
return loader.get_single_data()
File "/usr/local/lib/python2.7/dist-packages/yaml/constructor.py", line 37, in get_single_data
node = self.get_single_node()
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 36, in get_single_node
document = self.compose_document()
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 55, in compose_document
node = self.compose_node(None, None)
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 84, in compose_node
node = self.compose_mapping_node(anchor)
File "/usr/local/lib/python2.7/dist-packages/yaml/composer.py", line 127, in compose_mapping_node
while not self.check_event(MappingEndEvent):
File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 98, in check_event
self.current_event = self.state()
File "/usr/local/lib/python2.7/dist-packages/yaml/parser.py", line 439, in parse_block_mapping_key
"expected , but found %r" % token.id, token.start_mark)
ParserError: while parsing a block mapping
in "/home/pi/.jasper/profile.yml", line 1, column 1
expected , but found ''
in "/home/pi/.jasper/profile.yml", line 19, column 2
when i run it as root i get :

        JASPER - THE TALKING COMPUTER           *

(c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *

ERROR:root:Error occured!
Traceback (most recent call last):
File "/home/pi/jasper/jasper.py", line 143, in
app = Jasper()
File "/home/pi/jasper/jasper.py", line 76, in init
with open(new_configfile, "r") as f:
IOError: [Errno 2] No such file or directory: '/root/.jasper/profile.yml'

I als ochecked and have the profile.yml file in  location : /home/pi/.jasper
profile.yml =
carrier: tmomail.net
first_name: ###########
gmail_address<EMAIL_ADDRESS>gmail_password: ##########
last_name: #######
location: ######
phone_number: '##########'
prefers_email: true
stt_engine: sphinx
pocketsphinx:
fst_model: '/home/pi/jasper/is2013-conversion/models/g014b2b.fst'
hmm_dir: '/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k'
timezone: ##########
tts_engine: espeak-tts
espeak-tts:
voice: 'default+m3'   # optional
pitch_adjustment: 40  # optional
words_per_minute: 160 # optional
prefers_email: false
timezone: ######
keys:
FB_TOKEN:#######################
Any help please ......
thank you

Mind my ignorance but can you remove any blank lines if present in profile.yaml

Hello,
I did. But still the same result.
Thanks for the support.

running jasper as root is the wrong way cause jasper will search a profile.yml within the root user profile.
please post your profile.yml within a code tag (see here: https://help.github.com/articles/github-flavored-markdown/#syntax-highlighting).

Hello ,
Sorry about that. wasnt aware of the syntax . here it is
'''
carrier: tmomail.net
first_name: ###########
gmail_address<EMAIL_ADDRESS>gmail_password: ##########
last_name: #######
location: ######
phone_number: '##########'
prefers_email: true
stt_engine: sphinx
pocketsphinx:
fst_model: '/home/pi/jasper/is2013-conversion/models/g014b2b.fst'
hmm_dir: '/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k'
timezone: ##########
tts_engine: espeak-tts
espeak-tts:
voice: 'default+m3' # optional
pitch_adjustment: 40 # optional
words_per_minute: 160 # optional
prefers_email: false
timezone: ######
keys:
FB_TOKEN:#######################
'''

Hello,
i tried it as root and without. but no difference.
I apologise ,
i tried to put it within a code tag but it didnt change. im new and not got much experience.

please checkout my link within my last comment how to post code on github otherwise we are not able to detect syntax error coming from wrong placed spaces or something else.

hello ,
Sorry about that. Here it is:
carrier: tmomail.net
first_name: #######
gmail_address: ##########
gmail_password: #############
last_name: ##########
location: ###########
phone_number: '#########'
prefers_email: true
stt_engine: sphinx
pocketsphinx:
  fst_model: '/home/pi/jasper/is2013-conversion/models/g014b2b.fst'
  hmm_dir: '/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k'
timezone: ##########
tts_engine: espeak-tts
espeak-tts:
  voice: 'default+m3'   # optional
  pitch_adjustment: 40  # optional
  words_per_minute: 160 # optional
 prefers_email: false
 timezone: #######
 keys:
FB_TOKEN:#############

Remove the spaces before the following lines.
prefers_email: false
Timezone :
Keys:
Cause these are not subkeys from espeak-tts
And ad spaces before
Fb_token
Cause this is a subkeys from "keys"

Sent from my mobile phone
On Jan 9, 2016 9:24 PM, "Raghavendra Sriram"<EMAIL_ADDRESS>wrote:

hello ,
Sorry about that. Here it is:
carrier: tmomail.net
first_name: #######
gmail_address: ##########
gmail_password: #############
last_name: ##########
location: ###########
phone_number: '#########'
prefers_email: true
stt_engine: sphinx
pocketsphinx:
fst_model: '/home/pi/jasper/is2013-conversion/models/g014b2b.fst'
hmm_dir: '/usr/local/share/pocketsphinx/model/hmm/en_US/hub4wsj_sc_8k'
timezone: ##########
tts_engine: espeak-tts
espeak-tts:
voice: 'default+m3'   # optional
pitch_adjustment: 40  # optional
words_per_minute: 160 # optional
prefers_email: false
timezone: #######
keys:
FB_TOKEN:#############
—
Reply to this email directly or view it on GitHub
https://github.com/jasperproject/jasper-client/issues/426#issuecomment-170278580
.

hello,
Thanks. I think that worked. But now i get the following error. I recorded some audio and played it back to test it worked but an incredible amount of noise ( any suggestions).
*******************************************************
*             JASPER - THE TALKING COMPUTER           *
* (c) 2015 Shubhro Saha, Charlie Marsh & Jan Holthuis *
*******************************************************
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.front
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround40
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround41
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround50
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround51
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.surround71
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.iec958
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm_dmix.c:957:(snd_pcm_dmix_open) The dmix plugin supports only playback stream
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started
Traceback (most recent call last):
  File "/home/pi/jasper/jasper.py", line 148, in <module>
    app.run()
  File "/home/pi/jasper/jasper.py", line 118, in run
    conversation.handleForever()
  File "/home/pi/jasper/client/conversation.py", line 31, in handleForever
    threshold, transcribed = self.mic.passiveListen(self.persona)
  File "/home/pi/jasper/client/mic.py", line 110, in passiveListen
    frames_per_buffer=CHUNK)
  File "/usr/lib/pymodules/python2.7/pyaudio.py", line 714, in open
    stream = Stream(self, *args, **kwargs)
  File "/usr/lib/pymodules/python2.7/pyaudio.py", line 396, in __init__
    self._stream = pa.open(**arguments)
IOError: [Errno Invalid input device (no default output device)] -9996

I forgot to mention, when i say Jasper i get a reply saying HOW CAN I BE OF SERVICE RAGHAVENDRA and it dies after that.
Thanks a lot for all the support till now.

looks like Jasper cannot access your Microphone (Invalid input device).
Jasper is saying "How can i be of Service xxx" on every start, this has nothing to do with your voice.
Please send us the output of "arecord -l"

hello,
this is the output of "arecord -l"
pi@raspberrypi ~ $ arecord -l
**** List of CAPTURE Hardware Devices ****
card 0: Device [USB PnP Sound Device], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

try "arecord -d 10 /tmp/test-mic.wav" see whats happen

This is the output :
pi@raspberrypi ~ $ arecord -d 10 /tmp/test-mic.wav
arecord: main:682: audio open error: No such file or directory

try "arecord -D hw:0,0 -d 10 /tmp/test-mic.wav" and see whats happen.
If this works your soundcard isn't configured as default. To set your soundcard as default check "/etc/modprobe.d/alsa-base.conf" and set "options snd-usb-audio index" to 0.
.....
# Keep snd-usb-audio from beeing loaded as first soundcard
options snd-usb-audio index=0
´´´

Hello I tried this , Here is the output :
pi@raspberrypi ~ $ arecord -D hw:0,0 -d 10 /tmp/test-mic.wav
Recording WAVE '/tmp/test-mic.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono
arecord: set_params:1081: Sample format non available
Available formats:
- S16_LE

the soundcard was already set to default ie options snd-usb-audio index=0

I am having similar challenges getting jasper to work with my USB microphone. However, my latest roadblock seems to be more similar to #226. I am on the latest jasper-dev branch using a C-Media Electronics, Inc. CM108 Audio Controller on a Raspberry Pi 2 Model B running Raspbian Wheezy.
@rs1990 I would recommend trying the following commands to get a test recording -
arecord -D hw:0,0 -d 10 -f S16_LE /tmp/test-mic.wav

If that command returns something like
Recording WAVE 'test-mic.wav' : Signed 16 bit Little Endian, Rate 8000 Hz, Mono
Warning: rate is not accurate (requested = 8000Hz, got = 44100Hz)
         please, try the plug plugin

Try executing -
arecord -D hw:0,0 -d 10 -r 44100 -f S16_LE /tmp/test-mic.wav

note: replace the 44100 in the command with whatever the result of got =  from the output from the previous command (in my example got = 44100Hz).

Hello,
It works!... actually both the 1st and 2nd command gave me results. Thank you so much

but i still get the same result with jasper.

What branch of jasper are you running? Did you just follow the instructions listed here? I'm going to assume that this is the case.
Also, I'm going to assume your jasper installation is located at ~/jasper for the following.
I would recommend checking out to the jasper-dev branch, and manually referencing the USB audio device in your profile.yml. So, these are the next steps would follow -
cd ~/jasper
git checkout origin/jasper-dev
cd
echo "input_device: usb-pnp-sound-device-audio" >> .jasper/profile.yml

Then try restarting the jasper client via the normal commands.


Generated apk could not open and just showing App Info screen from settings

Steps to Reproduce

Generated apk by writing "flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi" command in terminal
##Output

installed generated apk into physical android device.

when I open app, it shows app info screen from settings only.

Logs
No log generated as I was installing apk from file browser of my Nokia 8.1 device

After installing apk and when I try to open, it shows below screen instead of opening my app in my Nokia 8.1 device.

Hi @phoelapyae69
can you please provide your flutter doctor -v
and your flutter build apk --split-per-abi --verbose?
Also, to better address the issue, would be helpful
if you could post  a minimal code sample
or the steps to reproduce the problem.
Please refrain from posting pictures if not necessary.
Thank you

Thank you for the response @iapicca
Issue resolved by adding some progaurd rules.


CFFL

CFFL

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_2a9zja63aj/clone/recipe/meta.yaml:20: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_2a9zja63aj/clone/recipe/meta.yaml:36: missing_pip_check: For pypi packages, pip check should be present in the test commands
WARNING: /tmp/abs_2a9zja63aj/clone/recipe/meta.yaml:45: missing_description: The recipe is missing a description
ERROR: /tmp/abs_2a9zja63aj/clone/recipe/meta.yaml:45: http_url: http://sphinx-autoapi.readthedocs.io/en/latest/ is not https
ERROR: /tmp/abs_2a9zja63aj/clone/recipe/meta.yaml:45: http_url: http://github.com/rtfd/sphinx-autoapi is not https
Errors were found

Linter check found the following problems:
The following problems have been found:
ERROR: /tmp/abs_0ewmy6h7qx/clone/recipe/meta.yaml:20: missing_wheel: For pypi packages, wheel should be present in the host section
ERROR: /tmp/abs_0ewmy6h7qx/clone/recipe/meta.yaml:36: missing_pip_check: For pypi packages, pip check should be present in the test commands
WARNING: /tmp/abs_0ewmy6h7qx/clone/recipe/meta.yaml:45: missing_description: The recipe is missing a description
ERROR: /tmp/abs_0ewmy6h7qx/clone/recipe/meta.yaml:45: http_url: http://sphinx-autoapi.readthedocs.io/en/latest/ is not https
ERROR: /tmp/abs_0ewmy6h7qx/clone/recipe/meta.yaml:45: http_url: http://github.com/rtfd/sphinx-autoapi is not https
Errors were found


FAILED TO LOG SESSION

Describe the bug
exception when trying to close the session, during finalizeSessionLog() call.
2023-06-04 14:14:08.399077Z FAILED TO LOG SESSION
CALL: user.createUser duration: 2ms numQueries: 2 authenticatedUser: null
CALL error: null
#0      ListIterator.moveNext (dart:_internal/iterable.dart:338:7)
#1      LogManager.finalizeSessionLog (package:serverpod/src/server/log_manager.dart:399:43)
<asynchronous suspension>
#2      Session.close (package:serverpod/src/server/session.dart:140:14)
<asynchronous suspension>
#3      EndpointDispatch.handleUriCall (package:serverpod/src/server/endpoint_dispatch.dart:116:7)
<asynchronous suspension>
#4      Server._handleRequest (package:serverpod/src/server/server.dart:243:18)
<asynchronous suspension>

LOG ERRORS
Concurrent modification during iteration: Instance(length:2) of '_GrowableList'.
#0      ListIterator.moveNext (dart:_internal/iterable.dart:338:7)
#1      LogManager.finalizeSessionLog (package:serverpod/src/server/log_manager.dart:399:43)
<asynchronous suspension>
#2      Session.close (package:serverpod/src/server/session.dart:140:14)
<asynchronous suspension>
#3      EndpointDispatch.handleUriCall (package:serverpod/src/server/endpoint_dispatch.dart:116:7)
<asynchronous suspension>
#4      Server._handleRequest (package:serverpod/src/server/server.dart:243:18)
<asynchronous suspension>

Current stacktrace:
#0      LogManager.finalizeSessionLog (package:serverpod/src/server/log_manager.dart:421:38)
<asynchronous suspension>
#1      Session.close (package:serverpod/src/server/session.dart:140:14)
<asynchronous suspension>
#2      EndpointDispatch.handleUriCall (package:serverpod/src/server/endpoint_dispatch.dart:116:7)
<asynchronous suspension>
#3      Server._handleRequest (package:serverpod/src/server/server.dart:243:18)
<asynchronous suspension>

To Reproduce
Steps to reproduce the behavior:

run the project from this repo
Checkout this commit 036d271b55481b27537f4bbc288f73da42a6221c
run the server then run the app
add a text anything in the text field.
hit button send request
hit the button multiple times until exception is thrown.

Serverpod versions

_CLI Version: 1.1.1
_Library version: 1.1.1

Platform information
MacBook Air M1
Additional context
Going through docs trying to play around with Serverpod features.

Could this cause memory leaks?

We'll have a look at this to try to see what is going on.

This is also happening when using looping statements inside an endpoint
Future<QuizTest?> computeScore(Session session, QuizTest quizTest) async {
    try {
      double passingRate = quizTest.quiz!.passingRate;
      int numberOfQuestions = quizTest.quiz!.questions.length;
      double passingScore = numberOfQuestions * passingRate;
      int agentScore = 0;
      double agentRemarks = 0;
      String result = '';

      List<Question> questions = quizTest.quiz!.questions;

      for (var i = 0; i < numberOfQuestions; i++) {
        int agentAnswer = quizTest.agentAnswers![i].answerIndex!;
        int correctAnswer = questions[i].answerIndex;

        if (agentAnswer == correctAnswer) {
          agentScore += 1;
        }
      }

      if (agentScore >= passingScore) {
        result = "passed";
      } else {
        result = "failed";
      }
      agentRemarks = (agentScore / numberOfQuestions) * 100;

      quizTest.remarks = agentRemarks.toString();
      quizTest.result = result;
      quizTest.correctAnswers = agentScore;

      QuizTest? updatedTest = await QuizTest.db.updateRow(session, quizTest);
      User? user = await User.db.findById(session, quizTest.userId);
      Quiz? quiz = await Quiz.db.findById(session, quizTest.quizId);

      if (user != null) {
        User.db.attachRow.quizTests(session, user, quizTest);
      }

      if (quiz != null) {
        Quiz.db.attachRow.quizTests(session, quiz, quizTest);
      }

      return updatedTest;
    } catch (e) {
      throw Exception(e.toString());
    }
  }

Is this still an issue?
We have done multiple patches to our logging lately and this might have been resolved as a result of one of those.


Issues in Loop option

Hi, I will make it short !

Loop option doesn't run with "true" or "1" or 1.
I have tried to store options value in database and put it back to lightSlider initialized function. However, loop option doesn't understand "true" or "1" or 1, only true (boolean) is accepted.

The loop of images doesn't run circle.
My options configuration:

$("#content-slider").lightSlider({
        auto: "true",
        enableDrag: "true",
        enableTouch: "true",
        item: "2",
        keyPress: "false",
        loop: "true",
        pause: "4000",
        speed: "2000"
    })

If I set speed: "2000" and above, the loop ran to the end and jump back to the first images instead of running first image at the end of slide.

If I set  speed: "1000" and below, the loop ran as expected.

Thank you.

Same problem for me.

Dude,
Remove the quotes from the true value. That's why it's not looping; it does not understand "true".


Phonegap build using Construct 2: Whatsapp doesn't share image

Hello, I'm building my game using Construct 2. For iOS, I compile my game with Phonegap. The plugin works perfectly when I want to share my screenshot on FB or Twitter (it shares the text and the image). But when I choose Whatsapp, it only shares the text, not the image.
This is the javascript code that I execute when I want to share: "window.plugins.socialsharing.share('This is my message', '" & share_var & "')"
"share_var" is a variable that I created that uses the CanvasSnapshot on Construct 2.
Any tips?
Edit: After a lot of test, here's the code that worked for me: "window.plugins.socialsharing.share(null, null, '" & share_var & "', null)"
If I insert text (first entry), it doesn't work on Whatsapp, it takes the text only and doesn't share the image.

Hi Donrif, sorry to resurrect an old thread, but I’m hoping you can help me.
I’m building an app in Construct 3 and I’m trying to get the PhoneGap/Social function to work also, but have been running into brick walls on the Scirra Construct forums for the past month or so when asking for help to implement it.
Is there any chance you can share how you got the function to work - If at all you did get it to work?
Thanks in advance :)

Hey there, no problem bro, as soon as i go home, i will check with you.
Le mar. 26 déc. 2017 à 18:35, Bootfit<EMAIL_ADDRESS>a écrit :

Hi Donrif, sorry to resurrect an old thread, but I’m hoping you can help
me.
I’m building an app in Construct 3 and I’m trying to get the
PhoneGap/Social function to work also, but have been running into brick
walls on the Scirra Construct forums for the past month or so when asking
for help to implement it.
Is there any chance you can share how you got the function to work - If at
all you did get it to work?
Thanks in advance :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/707#issuecomment-353999091,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AWV5Euf7OvBNvIrSqfzgFAZDAQ-WhLmmks5tETxXgaJpZM4KwmKH
.

Here is how I implemented the plugin. For sharing your app, you basically
add this code: "window.plugins.socialsharing.share('YOUR_MESSAGE', null,
null, 'A_LINK_TO_YOUR_APP_OR_ANYTHING')"
It works perfectly.
I also made the image sharing work with this plugin. I implemented it in my
app in a snapshot sharing method:

This works perfectly with Twitter, Whatsapp and others, except Facebook. In
Facebook, the text added is not shared with the image.
I hope I helped you.

On Tue, Dec 26, 2017 at 6:35 PM, Bootfit<EMAIL_ADDRESS>wrote:

Hi Donrif, sorry to resurrect an old thread, but I’m hoping you can help
me.
I’m building an app in Construct 3 and I’m trying to get the
PhoneGap/Social function to work also, but have been running into brick
walls on the Scirra Construct forums for the past month or so when asking
for help to implement it.
Is there any chance you can share how you got the function to work - If at
all you did get it to work?
Thanks in advance :)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/707#issuecomment-353999091,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AWV5Euf7OvBNvIrSqfzgFAZDAQ-WhLmmks5tETxXgaJpZM4KwmKH
.

Oh mate - I cannot thank you enough.
I've been tearing my hair out for weeks wondering how to implement this.
A 1000 times thank you.
Merry Christmas!!
Merry. Merry. Christmas!!!
Owe you big time!

God bless brother, glad I helped! ;)
On Tue, Dec 26, 2017 at 11:15 PM, Bootfit<EMAIL_ADDRESS>wrote:

Oh mate - I cannot thank you enough.
I've been tearing my hair out for weeks wondering how to implement this.
A 1000 times thank you.
Merry Christmas!!
Merry. Merry. Christmas!!!
Owe you big time!
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin/issues/707#issuecomment-354023715,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AWV5Eqb-oRCOADHtdDOIy9pjaGZE3v4Mks5tEX34gaJpZM4KwmKH
.


Some items just display a black box

This started happening after the most recent patch. I've seen this happen with a few currency items like transmutes and blacksmiths and a lot of the essences.
The screenshot below has an example of a dusk blade.

Here's another example. There's a missing Cobalt Jewel, Viridian Jewel, and a Mage's Vestment.

Same problem here. Reverted back to 4.0

Same issue/explanation as in https://github.com/NeverSinkGaming/NeverSink-Filter/issues/7
Closed, please use the link above for discussion. The changes are by no means related to the 4.0/4.01 version differences by the way.