Is it possible to receive the type of change when observing a value?

I'm trying to observe an array of objects and see what type of change was made.
If the array had stuff removed, I wanna call a specific function to respond to that.
If the array had stuff added, I wanna call a different function.
In mobX this was rather straight forward...observe would just return an object that could tell u a list of if things changed, added, or removed...
I was curious if you had an easy way to observe a type of change.
Edit*( Not only just observe the type of change, but maybe return the values changed?)
Like if 2 objects were pushed into the array, it return added: [object1, object 2]
I think mobx had something where it give u a list of objects that changed...
So if I added 2 objects, I'd get an array of added with both objects
If I had removed 2 objects, I'd get an array of removed of both objects)
Worst case scenerio... I maybe try to cache a second copy of the array, and compare a changed version to the old version using a function to determine the type of change...
Maybe thats the intended way to do it.
Again, this library is amazing. Thank you so much for how easy it is to use!

I missed this issue, sorry. Answer coming soon for this one and your other one.

You can check the debugger option. This lib can react to a lot of different mutations and the debugger is called with some contextual data about each mutation. I think you should try it and see if it is what you need. If not, we can continue the discussion.
Implementing something very similar to mobx's observe could be done like this:
const obj = observable({})

// this calls `console.log` with some contextual data on every change at any depth of obj (because of JSON.stringify), you can replace `console.log` with your own function to do something with the data or replace `JSON.stringify` for a more detailed observation.
observe(() => JSON.stringify(obj), { debugger: console.log })

Oki great! I got the scheduler working but now I'm onto the debugger. I see that the debugger has a "add" and a "delete" that shows me which thing got added/deleted
The issue I have now is using that info in the actual reaction.
I don't think their is anyway to feed the debugger data into the original reaction.
My goal is to combine the debugger with the scheduler
to analyize the changed array data. Scheduler works fine now with just using critical priority which is great! but i wanna be able to use the debugger data within the schedueled reaction.
Do I just cache the command I need and then use that inside the reaction function?

My current test code...
const scheduler = new Queue(priorities.CRITICAL);
        this.observeArrayTest = observe(()=>Manager.mapInstances.light.length
            , {scheduler: scheduler, debugger: console.log});

If I can get this solved this will remove my need for the hacked caching stuff I use right now for my observable.
(Which is some really awful code, I'm hoping to simplfy this process by reading the added/deleted from the debugger...instead of checking myself)

My actual code right now. Excuse how messy it is.

const scheduler = new Queue(priorities.CRITICAL);
this.observerMarque = observe(()=> this.forceObjectMapChange(), {scheduler: scheduler})

$.forceObjectMapChange = function() {

        const cache = Object.assign([],raw(this.mapStoreCache));
        const current = Manager.mapInstances.light;
        const added = [];
        const removed = [];
        for (const i in current) {
            if (!cache[i] || current[i].ID !== cache[i].ID)
                added.push(current[i]);

        }
        for (const i in cache) {
            if (!current[i] || cache[i].ID !== current[i].ID) {
                removed.push(cache[i]);
            }
        }

        added.forEach((obj) => {
            this.addObject(obj);
        });

        removed.forEach((obj) => {
            this.removeObject(obj);
        });

        this.mapStoreCache = JSON.parse(JSON.stringify(raw(Manager.mapInstances))).light

    };

Thanks for ur amazing support btw!

One other thing, I noticed some strange behavior with observable arrays (or an object) and setting a none observable to it.
I have a undo/redo store which I use to hold a stack record of changes.
I experimented setting my observable map instance array to equal a none observable version of itself from the history stack when undoing.
I'd add an object to my scene... (this pushes an observable object into the react-easy-state map instance store.
Then I'd save a snapshot (which is just a regular object version of the instance store saved in the history store stack)
Then I'd delete the object I placed in the map.
Then call undo, setting the observable instance store to the regular instance store saved in the history stack .
It'd run the observe that reads the instance store array and update the map based on add/remove (undoing the deletion of the object) (i wasn't expecting that to work but it did!)
However... the observe I set that reads the observable array changes and adds/removes instances from the map doesn't work properly anymore after that. So I thought somehow the connection was lost due to me setting the observable array to a regular array. Since now when I add stuff to the array it wouldn't observe.
However strangely if I delete stuff the observe works... and if I add more snapshots to the history... and undo with that new snapshot...
For example if I add a bunch of objects (the observe wont fire) but if I save a snapshot... add more objects (observe still doesn't fire) then redo... the observe suddenly fires
When I checked if the observable array was still a observable, it said it was....
I'm really confused at this behavior... It wont allow the observable to update when pushing to it... but it will update when removing from it... (so splicing)
I'd really love if u could help me figure this one out...
This is really odd behavior to me... even if I did a lot of things wrong... I'm not sure it should be acting this way
Ex of my history code that creates this behavior
 addSnapshot(store = this.mapInstances, config) {
            this.historyStore.stack.push(JSON.parse(JSON.stringify(store)))
            this.historyStore.index = this.historyStore.stack.length-1
        }

        get stack() {
            return this.historyStore.stack;
        }

        undo() {
            this.mapInstances.light = this.historyStore.stack[this.historyStore.index].light
        }

mapInstance is just a getter to the map stores current map data
     get mapInstances() {
            if (this.mapStore.currentMap === -1) return [];
            return this.mapStore.map[this.mapStore.currentMap]

        }

Oki I got most of what I needed working, however I was curious if their was a way to combine the debugger with the scheduler.
Only way I found out how so far was to cache the debugger data, and then access that inside the observe or queue functions. Is this the intended way?
Also it a bit strange that the first function in the observe checks if the observable should be fired, but the scheduler doesn't. However it does have function support if you use a queue.
Is the intended behavior to just have the first observable function check if the observe should even happen, then use the queue schedulers functions to fire on observe?
Or just use the first function to observe and fire reactions?
Or is either fine... its just context that matters.

I think I mislead you a bit with the debugger tip. It is really not meant to do what you are doing, it's just a utility to debug complex reaction chains. A mobx observe like functionality can be implemented fairly simple on top of observer-util. (This is why it is not part of the lib, I try to keep it low level.)
import { observe, unobserve, observable } from '@nx-js/observer-util'

// you can add a scheduler too, if you would like one
function myObserve (obj, prop, cb ) {
  let oldValue = obj[prop]
  return observe(() => {
     const newValue = obj[prop]
     cb(obj, prop, newValue, oldValue)
     oldValue = newValue
  })
}

const person = observable({
  name: 'Bob',
  age: 100
})

// this will be called when person.name changes
const reaction = myObserve(person, 'name', (obj, prop, value, oldValue) => {
  // do something based on old and new value here
})

// you can unobserve it any time
unobserve(reaction)

Arrays are a bit more complex since they have complex compound mutations. You could do domething like:
import { observe, unobserve, observable } from '@nx-js/observer-util'

// in case of arrays I definitely recommend a scheduler
// otherwise the observed function could fire a lot of times for compound mutations (like splice)
function observeArray (array) {
  let oldArray = Array.from(array)
  return observe(() => {
     // maybe create some more digestiable data from array and oldArray
     cb(array, oldArray)
     oldArray = Array.from(array)
  }, { scheduler: yourPreferredScheduler })
}

const nums = observable([1, 2, 3, 4])

// this will be called when person.name changes
const reaction = myObserve(nums, (nums, oldNums) => {
  // do something based on the old and new array
})

// you can unobserve it any time
unobserve(reaction)

If you need a more digestible diff format you could add some array diffing to the observeArray function. There plenty of packages out there for that, maybe check this one.
Does this help? Are you looking for a more complex observe functionality? Are you interested in the scheduler addition?

Thank you so much for the detailed response! I think this is what I'm aiming for!
As long as I can monitor the array changes and not have to compare entire arrays with new ones I'm happy.
Just being able to observe pushed data and sliced data is what I'm looking for in the array.
That way if I add items to the map, I can react to those added. If I removed I can also react.
How would you go about just observing if something was added or removed to the array (without needing to check an old one and compare the values?)

Oh wow I'm slow, I didn't notice you provided info for differing arrays.
Ill take a look and see what I can do... Thank you!

Awesome I got this working with fast-array-diff!
Thank you so much for your help!!


Add installers as a responsibility of SIG-build

Believe SIG/build now owns installers and SIG/release only owns process.
Signed-off-by: Pip Potter<EMAIL_ADDRESS>

Seems reasonable, though my question is whether SIG-Build also owns the installer experience.
We've mainly been working on the process to create, sign, and troubleshoot the installer, but the UI elements and workflow were not something we created.


CRT functions don't get inlined anymore

After a certain change CRT functions stopped getting inlined. What happened?
$ riscv64-unknown-elf-objdump -drl level1.elf | grep memcpy | grep jal | wc -l
136

This was not the case when I implemented this feature.

With some experimentation, basic heap allocations are now inlined again. Still missing memory- and string- operations.


Dll missing

The EPPlus.Interfaces.dll file is missing.

The README.md is already updated for the next TF3 release, but I haven't released it yet (I expect to do before the end of the year).
With the current version, you only need EPPlus.dll


Parentprofession

Add model parentprofession. Add m2m field fatherprofession and m2m field motherprofession to the person

implemented in be135ab


BugFix: resolve the problem that can't get jobEnd's metrics from SQLO…

resolve the problem that can't get jobEnd's metrics from SQLOperationListener
description:
Spark remove the listener before generating the jobEnd's data

Codecov Report

Merging #736 (5f6b3cb) into master (84c07a6) will decrease coverage by 0.03%.
The diff coverage is 62.50%.

:exclamation: Current head 5f6b3cb differs from pull request most recent head 64c6486. Consider uploading reports for the commit 64c6486 to get more accurate results

@@            Coverage Diff             @@
##           master     #736      +/-   ##
==========================================
- Coverage   80.49%   80.45%   -0.04%
==========================================
  Files         122      122
  Lines        4748     4754       +6
  Branches      576      576
==========================================
+ Hits         3822     3825       +3
- Misses        605      607       +2
- Partials      321      322       +1

Impacted Files
Coverage Δ

...uubi/engine/spark/operation/ExecuteStatement.scala
82.85% <62.50%> (-3.09%)
:arrow_down:

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 84c07a6...64c6486. Read the comment docs.

Ignore the JDK 11 flaky test.

My only concern is that, the SparkListenerSQLExecutionEnd might be dropped by Spark then we can not receive this event which can cause the memory leak.

My only concern is that, the SparkListenerSQLExecutionEnd might be dropped by Spark then we can not receive this event which can cause the memory leak.

we can remove it in cleanup then both cancel and close can ensure to clean the listener

thanks, merging to master for v1.3.0


(demo): add script to drop account database

Codecov Report

Merging #457 (896a18e) into dev (5718a0b) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##                dev     #457   +/-   ##
=========================================
  Coverage     14.95%   14.95%
  Complexity      398      398
=========================================
  Files           180      180
  Lines          8093     8093
  Branches        666      666
=========================================
  Hits           1210     1210
  Misses         6796     6796
  Partials         87       87


Add option to start minimized

Sorry about the git mess, I wanted to make a separate PR for the the null reference exception fix.

No worries. Thanks for the good work.


New emotes

I don´t know how much hassle is it, but would it be possible to add the new emotes the original mod added? Like the writing board, Russian dance, and secondary moves on certain emotes?

I did originally try in this branch https://github.com/KlutzyBubbles/lc-better-emotes/tree/moreemotes-1.3.1
However i gave it a break because there were just so many changes. Now that multiple people have suggested it i might continue BUT MoreEmotes is so close (feature wise) to this mod that there is nearly no need for this mod to exist.
For anyone that stumbles on this issue and it still isnt resolved, i am looking for help with redoing all the emotes to allow for walking while emoting but need some help. If you or anyone you know can help feel free to contact me in anyway.

For anyone that comes across this looking for updates, i have the russian dance, implemented however i am now stuck at the sign emote and might give it a crack on the weekend. After that i will need to do more fleshed out testing and then i will consider merging the changes.

I don´t know how much hassle is it, but would it be possible to add the new emotes the original mod added? Like the writing board, Russian dance, and secondary moves on certain emotes?

v1.4.0 Adds these new emotes, thunderstore should also have the update listed


volume_tags overwrite aws_ebs_volume tags

When I create a new aws_volume_attachment to attach an aws_ebs_volume at the instance, the instance  volume_tags overwrite the EBS tags.
On the second apply the aws_ebs_volume tag overwrite the incorrect tag but again on the next operation the instance  volume_tags overwrite the EBS tags.

Note, this issue is discussed in the upstream terraform-provider-aws#770. The work-around is to add volume_tags to the list of ignored changes on aws_instances resources.

v1.23.0 has been released with support for volume_tags.
Terraform 0.11 users can use it. Similar functionality for Terraform 0.12 will be released soon.


[debugging] fix protobuf import in Python 2

Issue #, if available:
Description of changes:
Merge Checklist
Put an x in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your pull request.

[ ] I have read the CONTRIBUTING doc
[ ] I used the commit message format described in CONTRIBUTING
[ ] I have added tests that prove my fix is effective or that my feature works (if appropriate)
[ ] I have updated any necessary documentation (if appropriate)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

cherry-picked the change over to #260


[Snyk] Security upgrade alpine from 3.14 to 3.15

This PR was automatically created by Snyk using the credentials of a real user.Keeping your Docker base image up-to-date means you’ll benefit from security fixes in the latest version of your chosen image.
Changes included in this PR

Dockerfile

We recommend upgrading to alpine:3.15, as this image has only 0 known vulnerabilities. To do this, merge this pull request, then verify your application still works as expected.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
🛠 Adjust project settings

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


Fix time menu click area

Resolves #4009
Class 'icon-less-space-to-left' reduced the menu opening dots area width in order to fit all the times into the widget.
This commit restores this area width and reduces its right margin to make the click area overlap the dots correctly without increasing the time block width.

Please excuse me for not responding directly to your suggestions. I had only looked at the PR and based my CR on it. That was not correct.
About the implementation: The last picture looks good. The arrangement along a grid is a good idea. However, a few points would need to be considered.

The overall width of the widget and the width of the other elements to the left of the widget must be maintained. The widget must not become larger, otherwise it will reduce the size of the other elements.

In the widget itself, the color bar above the numbers should be shortened. The length of the bar is based on a maximum value for the speaking time. This is -999:59. The minus is required as an additional value, as the time can become negative. The aim is to separate and recognize the individual logical elements more clearly. - TLDR: Please shorten the color bar so that a number in the format -999:59 is covered.

The idea with the line break sounds good. Please implement it as in the last image.

Context for the second key point: The three-dot menu appears detached from the associated element or, due to the length of the color strokes, it currently appears that this menu could also belong to another element. I hope that the above changes will be sufficient to make it easier to distinguish the elements that belong together.


2x/no factories

Working to resolve errors in #1617 merge ...

@szepeviktor I was wondering if I could get your help understanding this error we're seeing in Travis ...
PHP Fatal error:  Uncaught Error: Class 'WP_Upgrader_Skin' not found in /home/travis/build/timber/timber/tests/phpstan/wp-cli-stubs-2.2.0.php:873
Stack trace:
#0 /home/travis/build/timber/timber/vendor/composer/ClassLoader.php(444): include()
#1 /home/travis/build/timber/timber/vendor/composer/ClassLoader.php(322): Composer\Autoload\includeFile('/home/travis/bu...')
#2 [internal function]: Composer\Autoload\ClassLoader->loadClass('WP_CLI_Command')
#3 [internal function]: spl_autoload_call('WP_CLI_Command')
#4 /home/travis/build/timber/timber/lib/Integrations.php(23): class_exists('WP_CLI_Command')
#5 /home/travis/build/timber/timber/lib/Integrations.php(17): Timber\Integrations->init()
#6 /home/travis/build/timber/timber/lib/Timber.php(109): Timber\Integrations->__construct()
#7 /home/travis/build/timber/timber/lib/Timber.php(77): Timber\Timber::init()
#8 /home/travis/build/timber/timber/tests/bootstrap.php(15): Timber\Timber->__construct()
#9 /tmp/wordpress/wp-includes/class-wp-hook.php(288): _manually_load_plugin('')
#10 /tm in /home/travis/build/timber/timber/tests/phpstan/wp-cli-stubs-2.2.0.php on line 873

Does this make any sense to you? I'm not sure I understand what the WP-CLI Stubs file does. I've been pulling my hair out for the last few hours, is there a fix you can see here?

PHP Fatal error: Uncaught Error: Class 'WP_Upgrader_Skin' not found in /home/travis/build/timber/timber/tests/phpstan/wp-cli-stubs-2.2.0.php:873

@jarednova This is a symptom of WP-CLI stubs loaded before WordPress core stubs.
Investigating NOW...

Done.
It was an autoloading issue.
Please merge!

what the WP-CLI Stubs file does

Stubs are Hello World! functions without printing anything :) just there to represent the structure of code.
class Foo
{
  public function helloWorld(): void
  {
    echo "Hello World!\n";
  }
}

Stubs
class Foo
{
  public function helloWorld(): void {}
}

@szepeviktor blast! thanks for the fix and the explanation. Seems a bad merge conflict resulted in all kinds of fun. Really appreciate you hopping in there — I'll work on cleaning the rest of this up!

Coverage decreased (-0.4%) to 93.723% when pulling<PHONE_NUMBER>b16d72f950048cb389da0dc56757fc on 2x/no-factories into 0497268cc984864f984ef6cf5cf2377c7eed852e on master.

Codecov Report

Merging #2235 into 2.x will decrease coverage by 0.87%.
The diff coverage is 93.75%.

@@             Coverage Diff              @@
##                2.x    #2235      +/-   ##
============================================
- Coverage     95.75%   94.88%   -0.88%
- Complexity     1534     1584      +50
============================================
  Files            50       50
  Lines          3910     3849      -61
============================================
- Hits           3744     3652      -92
- Misses          166      197      +31

Impacted Files
Coverage Δ
Complexity Δ

lib/User.php
93.02% <ø> (-3.02%)
38.00 <0.00> (-3.00)

lib/PostType.php
91.66% <80.00%> (+0.75%)
7.00 <0.00> (+1.00)

lib/Helper.php
98.60% <100.00%> (+11.17%)
75.00 <0.00> (-7.00)
:arrow_up:

lib/Timber.php
96.26% <100.00%> (-0.23%)
34.00 <0.00> (+2.00)
:arrow_down:

lib/Twig.php
99.49% <100.00%> (+0.57%)
87.00 <7.00> (+34.00)

lib/URLHelper.php
99.37% <100.00%> (-0.05%)
79.00 <0.00> (ø)

lib/Integrations/ACF.php
75.67% <0.00%> (-24.33%)
11.00% <0.00%> (+6.00%)
:arrow_down:

lib/Site.php
87.35% <0.00%> (-12.65%)
23.00% <0.00%> (+5.00%)
:arrow_down:

lib/Image.php
90.12% <0.00%> (-6.37%)
73.00% <0.00%> (+51.00%)
:arrow_down:

lib/MenuItem.php
88.54% <0.00%> (-5.58%)
47.00% <0.00%> (+9.00%)
:arrow_down:

... and 42 more

Continue to review full report at Codecov.

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


Command checkly groups has unformatted, unsorted output

This is a checkly groups command on our Production E2E account.

@tnolet this is due to having a lot of locations. How would you like the solution to look, locations truncated after a certain length? We are all familiar with this problem from sql outputs I believe

Is there a better text table formatter that can keep these results in columns but multi-line?

We have the "plain" output type that should work ok with things like this but we still need to find a way to fix this in "human" which is the default. Maybe truncating data?
If the check has all locations we can simply show something like "all" but of course will not be a solution for all cases

@umutuzgur @brampling @ianaya89 I would like the output to be readable. I do not have a preferred solution, but many times something like us-east-1, eu-west-1 + 9 others works.


the content of the output port "level" of the clic connected to the core

Hi sir, when I learn the clic spec, I find it is NOT described whether the priority bits in cintctl  should be included in the "level" port which will be connected to a risc-v core?
if NOT ， then the level port will only contents the level bits  of  cintctl  with prioryty bits setting to all ones,   is it right?
hope for your reply, thanks
https://github.com/riscv/riscv-fast-interrupt/blob/master/clic.adoc#323-specifying-interrupt-priority

To save space, both interrupt "level" are "priority" are combined and packed in the 8-bit "clicintctl" register. The 8-bit interrupt level is used to determine preemption. In contrast, the 8-bit interrupt priority is only used as tie-breaker when there are multiple pending interrupts with the same interrupt level. Both level and priority are used by the RISC-V core.
Although level and priority are both 8-bit unsigned values, the actual bits implemented can be fewer than 8 (and they can be determined by clicinfo.CLICINTCTLBITS and cliccfg.nlbits). If the actual bits implemented are less than 8, then they left-justified and appended with 1's for the lower unimplemented bits.
Thanks for asking and I will further clarify the spec based on the question you brought up.
From: Felix<EMAIL_ADDRESS>Sent: Thursday, August 20, 2020 10:20 AM
To: riscv/riscv-fast-interrupt
Cc: Subscribed
Subject: [riscv/riscv-fast-interrupt] the content of the output port "level" of the clic connected to the core (#93)
Hi sir, when I learn the clic spec, I find it is NOT described whether the priority bits in cintctl should be included in the "level" port which will be connected to a risc-v core?
if NOT ， then the level port will only contents the level bits of cintctl with prioryty bits setting to all ones, is it right?
hope for your reply, thanks
https://github.com/riscv/riscv-fast-interrupt/blob/master/clic.adoc#321-specifying-interrupt-privilege-mode
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
CONFIDENTIALITY NOTICE:
This e-mail (and its attachments) may contain confidential and legally privileged information or information protected from disclosure. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein is strictly prohibited. In this case, please immediately notify the sender by return e-mail, delete the message (and any accompanying documents) and destroy all printed hard copies. Thank you for your cooperation.
Copyright ANDES TECHNOLOGY CORPORATION - All Rights Reserved.

Clarified in the spec with the following commits:
ad46f39d163057daabf190193fb767716dea8326
10308986924346b17cd41042989457508f2955d1


cuda runtime error (38) : no CUDA-capable device is detected at ..\aten\src\THC\THCGeneral.cpp:50

Environment:

NNI version:1.7.1
NNI mode (local|remote|pai):local
Client OS: Windows 10
Server OS (for remote mode only):
Python version: 3.7
PyTorch/TensorFlow version: Pytorch 1.2.1
Is conda/virtualenv/venv used?: Yes
Is running in Docker?: No

Log message:

nnimanager.log:
[2020-9-22 15:10:28] INFO [ 'Datastore initialization done' ]
[2020-9-22 15:10:28] INFO [ 'RestServer start' ]
[2020-9-22 15:10:28] INFO [ 'Construct local machine training service.' ]
[2020-9-22 15:10:28] INFO [ 'RestServer base port is 8080' ]
[2020-9-22 15:10:28] INFO [ 'Rest server listening on: http://<IP_ADDRESS>:8080' ]
[2020-9-22 15:10:31] INFO [ 'NNIManager setClusterMetadata, key: trial_config, value: {"command":"python main.py","codeDir":"D:\\Desktop\\COVID-19andLSTM\\program\\COVID19-LSTM+nni\\.","gpuNum":0}' ]
[2020-9-22 15:10:31] INFO [ 'required GPU number is 0' ]
[2020-9-22 15:10:33] INFO [ 'Starting experiment: NClmy6tw' ]
[2020-9-22 15:10:33] INFO [ 'Change NNIManager status from: INITIALIZED to: RUNNING' ]
[2020-9-22 15:10:33] INFO [ 'Add event listeners' ]
[2020-9-22 15:10:33] INFO [ 'Run local machine training service.' ]
[2020-9-22 15:10:34] INFO [ 'NNIManager received command from dispatcher: ID, ' ]
[2020-9-22 15:10:34] INFO [ 'NNIManager received command from dispatcher: TR, {"parameter_id": 0, "parameter_source": "algorithm", "parameters": {"learning_rate": 0.064917987188779, "hidden_size": 256, "hidden_size_linear1": 128, "hidden_size_linear2": 128, "lstm_layers": 1, "epochs": 10, "dropout_rate": 0.23914751122609257}, "parameter_index": 0}' ]
[2020-9-22 15:10:38] INFO [ 'submitTrialJob: form: {"sequenceId":0,"hyperParameters":{"value":"{\"parameter_id\": 0, \"parameter_source\": \"algorithm\", \"parameters\": {\"learning_rate\": 0.064917987188779, \"hidden_size\": 256, \"hidden_size_linear1\": 128, \"hidden_size_linear2\": 128, \"lstm_layers\": 1, \"epochs\": 10, \"dropout_rate\": 0.23914751122609257}, \"parameter_index\": 0}","index":0}}' ]
[2020-9-22 15:10:48] INFO [ 'Trial job v2EVw status changed from WAITING to FAILED' ]
[2020-9-22 15:10:48] INFO [ 'NNIManager received command from dispatcher: TR, {"parameter_id": 1, "parameter_source": "algorithm", "parameters": {"learning_rate": 0.07791436808228155, "hidden_size": 256, "hidden_size_linear1": 1280, "hidden_size_linear2": 64, "lstm_layers": 2, "epochs": 10, "dropout_rate": 0.737187742981508}, "parameter_index": 0}' ]
[2020-9-22 15:10:53] INFO [ 'submitTrialJob: form: {"sequenceId":1,"hyperParameters":{"value":"{\"parameter_id\": 1, \"parameter_source\": \"algorithm\", \"parameters\": {\"learning_rate\": 0.07791436808228155, \"hidden_size\": 256, \"hidden_size_linear1\": 1280, \"hidden_size_linear2\": 64, \"lstm_layers\": 2, \"epochs\": 10, \"dropout_rate\": 0.737187742981508}, \"parameter_index\": 0}","index":0}}' ]
[2020-9-22 15:10:59] INFO [ 'Trial job pYa1T status changed from WAITING to FAILED' ]
[2020-9-22 15:10:59] INFO [ 'NNIManager received command from dispatcher: TR, {"parameter_id": 2, "parameter_source": "algorithm", "parameters": {"learning_rate": 0.02861150528153203, "hidden_size": 128, "hidden_size_linear1": 128, "hidden_size_linear2": 128, "lstm_layers": 2, "epochs": 10, "dropout_rate": 0.8934782480878113}, "parameter_index": 0}' ]
[2020-9-22 15:11:04] INFO [ 'submitTrialJob: form: {"sequenceId":2,"hyperParameters":{"value":"{\"parameter_id\": 2, \"parameter_source\": \"algorithm\", \"parameters\": {\"learning_rate\": 0.02861150528153203, \"hidden_size\": 128, \"hidden_size_linear1\": 128, \"hidden_size_linear2\": 128, \"lstm_layers\": 2, \"epochs\": 10, \"dropout_rate\": 0.8934782480878113}, \"parameter_index\": 0}","index":0}}' ]
[2020-9-22 15:11:09] INFO [ 'Trial job AWxL9 status changed from WAITING to FAILED' ]
[2020-9-22 15:11:09] INFO [ 'NNIManager received command from dispatcher: TR, {"parameter_id": 3, "parameter_source": "algorithm", "parameters": {"learning_rate": 0.08745856725458606, "hidden_size": 64, "hidden_size_linear1": 64, "hidden_size_linear2": 32, "lstm_layers": 1, "epochs": 10, "dropout_rate": 0.30960622874884475}, "parameter_index": 0}' ]
[2020-9-22 15:11:14] INFO [ 'submitTrialJob: form: {"sequenceId":3,"hyperParameters":{"value":"{\"parameter_id\": 3, \"parameter_source\": \"algorithm\", \"parameters\": {\"learning_rate\": 0.08745856725458606, \"hidden_size\": 64, \"hidden_size_linear1\": 64, \"hidden_size_linear2\": 32, \"lstm_layers\": 1, \"epochs\": 10, \"dropout_rate\": 0.30960622874884475}, \"parameter_index\": 0}","index":0}}' ]
[2020-9-22 15:11:19] INFO [ 'Trial job xMbXB status changed from WAITING to FAILED' ]
[2020-9-22 15:11:19] INFO [ 'NNIManager received command from dispatcher: TR, {"parameter_id": 4, "parameter_source": "algorithm", "parameters": {"learning_rate": 0.07183954594775774, "hidden_size": 128, "hidden_size_linear1": 512, "hidden_size_linear2": 64, "lstm_layers": 2, "epochs": 10, "dropout_rate": 0.6915165315313325}, "parameter_index": 0}' ]
[2020-9-22 15:11:24] INFO [ 'submitTrialJob: form: {"sequenceId":4,"hyperParameters":{"value":"{\"parameter_id\": 4, \"parameter_source\": \"algorithm\", \"parameters\": {\"learning_rate\": 0.07183954594775774, \"hidden_size\": 128, \"hidden_size_linear1\": 512, \"hidden_size_linear2\": 64, \"lstm_layers\": 2, \"epochs\": 10, \"dropout_rate\": 0.6915165315313325}, \"parameter_index\": 0}","index":0}}' ]
[2020-9-22 15:11:29] INFO [ 'Trial job sfruj status changed from WAITING to RUNNING' ]
[2020-9-22 15:11:35] INFO [ 'Trial job sfruj status changed from RUNNING to FAILED' ]
[2020-9-22 15:11:35] INFO [ 'NNIManager received command from dispatcher: TR, {"parameter_id": 5, "parameter_source": "algorithm", "parameters": {"learning_rate": 0.05729026933978657, "hidden_size": 256, "hidden_size_linear1": 1024, "hidden_size_linear2": 256, "lstm_layers": 1, "epochs": 10000, "dropout_rate": 0.8743344280752859}, "parameter_index": 0}' ]
[2020-9-22 15:11:40] INFO [ 'submitTrialJob: form: {"sequenceId":5,"hyperParameters":{"value":"{\"parameter_id\": 5, \"parameter_source\": \"algorithm\", \"parameters\": {\"learning_rate\": 0.05729026933978657, \"hidden_size\": 256, \"hidden_size_linear1\": 1024, \"hidden_size_linear2\": 256, \"lstm_layers\": 1, \"epochs\": 10000, \"dropout_rate\": 0.8743344280752859}, \"parameter_index\": 0}","index":0}}' ]
[2020-9-22 15:11:45] INFO [ 'Trial job rnNvl status changed from WAITING to RUNNING' ]
[2020-9-22 15:11:50] INFO [ 'Trial job rnNvl status changed from RUNNING to FAILED' ]
[2020-9-22 15:11:50] INFO [ 'NNIManager received command from dispatcher: TR, {"parameter_id": 6, "parameter_source": "algorithm", "parameters": {"learning_rate": 0.0753235271051405, "hidden_size": 256, "hidden_size_linear1": 1280, "hidden_size_linear2": 128, "lstm_layers": 1, "epochs": 10, "dropout_rate": 0.5414426288534424}, "parameter_index": 0}' ]
[2020-9-22 15:11:50] INFO [ 'Change NNIManager status from: RUNNING to: STOPPING' ]
[2020-9-22 15:11:50] INFO [ 'Stopping experiment, cleaning up ...' ]
[2020-9-22 15:11:53] INFO [ 'Stopping local machine training service...' ]

dispatcher.log:
[09/22/2020, 03:10:34 PM] INFO (hyperopt.utils/MainThread) Failed to load dill, try installing dill via "pip install dill" for enhanced pickling support.
[09/22/2020, 03:10:34 PM] INFO (hyperopt.fmin/MainThread) Failed to load dill, try installing dill via "pip install dill" for enhanced pickling support.
[09/22/2020, 03:10:34 PM] INFO (nni.msg_dispatcher_base/MainThread) Start dispatcher
[09/22/2020, 03:10:34 PM] INFO (hyperopt.tpe/Thread-1) tpe_transform took 0.001000 seconds
[09/22/2020, 03:10:34 PM] INFO (hyperopt.tpe/Thread-1) TPE using 0 trials
[09/22/2020, 03:10:48 PM] INFO (hyperopt.tpe/Thread-1) tpe_transform took 0.000996 seconds
[09/22/2020, 03:10:48 PM] INFO (hyperopt.tpe/Thread-1) TPE using 0 trials
[09/22/2020, 03:10:59 PM] INFO (hyperopt.tpe/Thread-1) tpe_transform took 0.002072 seconds
[09/22/2020, 03:10:59 PM] INFO (hyperopt.tpe/Thread-1) TPE using 0 trials
[09/22/2020, 03:11:09 PM] INFO (hyperopt.tpe/Thread-1) tpe_transform took 0.001995 seconds
[09/22/2020, 03:11:09 PM] INFO (hyperopt.tpe/Thread-1) TPE using 0 trials
[09/22/2020, 03:11:19 PM] INFO (hyperopt.tpe/Thread-1) tpe_transform took 0.002036 seconds
[09/22/2020, 03:11:19 PM] INFO (hyperopt.tpe/Thread-1) TPE using 0 trials
[09/22/2020, 03:11:35 PM] INFO (hyperopt.tpe/Thread-1) tpe_transform took 0.001994 seconds
[09/22/2020, 03:11:35 PM] INFO (hyperopt.tpe/Thread-1) TPE using 0 trials
[09/22/2020, 03:11:50 PM] INFO (hyperopt.tpe/Thread-1) tpe_transform took 0.001994 seconds
[09/22/2020, 03:11:50 PM] INFO (hyperopt.tpe/Thread-1) TPE using 0 trials
[09/22/2020, 03:11:50 PM] INFO (nni.msg_dispatcher_base/MainThread) Dispatcher exiting...

nnictl stdout and stderr:
cmd.exe : THCudaCheck FAIL file=..\aten\src\THC\THCGeneral.cpp line=50 error=38 : no CUDA-capable device is detected
所在位置 C:\Users\86156\nni\experiments\NClmy6tw\trials\AWxL9\run.ps1:11 字符: 1

cmd.exe /c python main.py 2>"C:\Users\86156\nni\experiments\NClmy6tw\ ...

  + CategoryInfo          : NotSpecified: (THCudaCheck FAI...ice is detected:String) [], RemoteException
  + FullyQualifiedErrorId : NativeCommandError

Traceback (most recent call last):
File "main.py", line 169, in
main(params,con)
File "main.py", line 156, in main
train(args,config,[data_gainer.train_x, data_gainer.train_y, data_gainer.valid_x, data_gainer.valid_y],data_gainer.
std,data_gainer.mean,logger)
File "D:\Desktop\COVID-19andLSTM\program\COVID19-LSTM+nni\LSTMModelPytorch.py", line 67, in train
model=Net(arg,config).to(device)
File "D:\Application\anaconda3\lib\site-packages\torch\nn\modules\module.py", line 432, in to
return self._apply(convert)
File "D:\Application\anaconda3\lib\site-packages\torch\nn\modules\module.py", line 208, in _apply
module._apply(fn)
File "D:\Application\anaconda3\lib\site-packages\torch\nn\modules\rnn.py", line 123, in _apply
ret = super(RNNBase, self)._apply(fn)
File "D:\Application\anaconda3\lib\site-packages\torch\nn\modules\module.py", line 230, in apply
param_applied = fn(param)
File "D:\Application\anaconda3\lib\site-packages\torch\nn\modules\module.py", line 430, in convert
return t.to(device, dtype if t.is_floating_point() else None, non_blocking)
File "D:\Application\anaconda3\lib\site-packages\torch\cuda_init.py", line 179, in _lazy_init
torch._C._cuda_init()
RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at ..\aten\src\THC\THCGeneral.cpp:50

What issue meet, what's expected?:
When I test the program without nni, this program doesn't report this error, But when I write this program with nni, the program report the error "RuntimeError: cuda runtime error (38) : no CUDA-capable device is detected at ..\aten\src\THC\THCGeneral.cpp:50"
How to reproduce it?:
Additional information:

Can you show the config? It seems like you set gpuNum: 0, try gpuNum: 1 or the number of GPUs you want to use.
trial:
  command: python main.py
  codeDir: .
  gpuNum: 1

@J-shang Thank you for your time, I am a novice in deep learning and learn deep learning without guidance, I hope you'll forgive me for asking such a naive question

That's alright and please feel free to contact us if you have any questions.

closing the issue as the issue has been answered. @Yggdrasilshh feel free to reopen the issue if there are still questions around the issue.


Pin GitHub Actions to commit

This is an automated PR to update actions in this repo.
To read more about why pinning actions is recommended check here.
To ensure you still get updates after pinning, this PR also enables Dependabot automated updates. To read more about this configuration check here.
If allowed, this PR will attempt to auto-merge.

closing as this is a public repo


Fonts no longer load

When I am using an adblocker that blocks requests to Google domains, the fonts no longer load, and everything is in a serif font.
It looks like this is because the fonts are being loaded from Google Fonts domains.
This didn't use to be a problem until the last week or so.
Possible solutions:

Vendor the fonts (i.e., self-host them on your domain). This means that adblockers will allow them to load, even if only the three default fonts are vendored.
Include a keyword like cursive, sans-serif or monospace in the font-family for the three default fonts. This would mean that even if external fonts are blocked, it could fall back to a system font that's close enough.

Ideally, both proposed solutions would be implemented so that even if the self-hosted fonts don't load, a reasonable fallback is available.
Browser: Firefox 128 (with uBlock origin configured to block requests to Google domains)
OS: macOS 15 (beta)

Most of the fonts are now hosted on our digital ocean CDN, there is a PR adding a fallback to our excaldraw.com domain which should solve issues to the selected code font (Comic Shanns) in the screenshot, as well as most of the other fonts (new Excalifont and old Virgil, Helvetica & Cascadia).
Could you try https://excalidraw-git-mrazator-fonts-fallbacks-excalidraw.vercel.app/?
About the Google fonts (Nunito and Lilita One), could you confirm these are still not loaded on the above domain?

Yep, everything except Nunito and Lilita One work on the linked site!

@zadeviggers hi, you're stating:

Browser: Firefox 128 (with uBlock origin configured to block requests to Google domains)

Do you also block domains from DigitalOcean such digitaloceanspaces.com?

Yep, everything except Nunito and Lilita One work on the linked site!

These two fonts are served from Google fonts, and currently there isn't a fallback for them.

Reading https://github.com/gorhill/uBlock/wiki/Per-site-switches#no-remote-fonts:

Keep in mind, though, that this rule blocks all first-party and third-party fonts. As a lighter alternative, you can also choose to allow first-party fonts and block only third-party fonts by adding the filter

Looks like uBlock by default blocks also first-party fonts, so fallbacks won't help unless users have specific filters to allow requests within the same domain.
Anyway, we've added the fallbacks for our self-hosted fonts (soon to be released), as it also solves other similar network-related issues.
For Google fonts, such as Nunito and Lilita One, we are not adding fallbacks for now. Although we will consider self-hosting them in the future.


[CERT-TEST-FAILURE] - [TC-PSCFG-##] - Test failed

Feature Area
Other
Test Case
TC-PSCFG-##
Reproduction steps

Bring up the DUT with all-clusters-app.
Pair the DUT using chip-tool through "onnetwork" transport.

Run the command : ./chip-tool powersourceconfiguration read cluster-revision 1 0
Expected Outcome:

[1686219632.657371][91228:91230] CHIP:DMG: }
[1686219632.657446][91228:91230] CHIP:TOO: Endpoint: 0 Cluster: 0x0000_002E Attribute 0x0000_FFFD DataVersion: 272662560
[1686219632.657479][91228:91230] CHIP:TOO:   ClusterRevision: 1
[1686219632.657537][91228:91230] CHIP:EM: <<< [E:46623i S:49051 M:236531121 (Ack:237124946)] (S) Msg TX to 1:0000000000000001 [6D93] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1686219632.657553][91228:91230] CHIP:IN: (S) Sending msg 236531121 on secure session with LSID: 49051
[1686219632.657595][91228:91230] CHIP:EM: Flushed pending ack for MessageCounter:237124946 on exchange 46623i

Actual Outcome:

[1692270814.977476][15950:15952] CHIP:DMG: 	SuppressResponse = true,
[1692270814.977515][15950:15952] CHIP:DMG: 	InteractionModelRevision = 10
[1692270814.977580][15950:15952] CHIP:DMG: }
[1692270814.977860][15950:15952] CHIP:TOO: Response Failure: IM Error 0x000005C3: General error: 0xc3 (UNSUPPORTED_CLUSTER)
[1692270814.978096][15950:15952] CHIP:EM: <<< [E:62136i S:41074 M:139058845 (Ack:67305232)] (S) Msg TX to 1:0000000000000001 [0885] --- Type 0000:10 (SecureChannel:StandaloneAck)
[1692270814.978160][15950:15952] CHIP:IN: (S) Sending msg 139058845 on secure session with LSID: 4

Verified for both endpoint 0 and 1.
Power Source Configuration Cluster has to be implemented in all-cluster app
Bug prevalence
everytime
GitHub hash of the SDK that was being used
d0da50418a7afa283b693cc4b2a6aed221040f96
Platform
raspi
Anything else?
No response

The above issue is resolved in latest Commit 55327986b373b50a5aaa030deeaf05d5eef3317e


Prepare MRTCore binaries for scanning tools.

Changed issue to be MRTCore specific once more. Preparation of other binaries in Project Reunion will be handled separately.

#522 addresses this. Closing.


Modification of Instagram Clone Login Page and Merge Instagram-Clone and Login Clone in one folder

Is your feature request related to a problem? Please describe.
The Instagram original login page is different from this clone login in this project.
Describe the solution you'd like.
I want to modify the Instagram Login Page clone and make it similar and same as official Instagram Login page.
I would also merge the Instagram Login page clone and Instagram Clone added by me in one folder to make it look well good.
We can even give dummy credentials to make the workflow mimic like butter.
Describe alternatives you've considered.
No response
Add any other context or screenshots about the feature request here.
The official Instagram Login Page :--

This project login page clone :--

assigned u @Rakesh9100

assigned u @Rakesh9100

Okay Thanks


Allow additional callsigns

Describe the feature
Some of our officers use different callsigns when they run as different divisions and with the callsign management stuff it has become quite essential for some units to reserve additional callsigns (sometimes up to two or three) so they can switch between them.
Is it possible to add an optional mechanism for this?
Additional Context
No response

So the ability for officers to save different callsigns for individual divisions?
Something like in the graph below?
  graph TD;
      OFFICER-->DefaultCallsign;
      OFFICER-->Division1-->Callsign1;
      OFFICER-->Division2-->Callsign2;
      OFFICER-->Division3-->Callsign3;

So the ability for officers to save different callsigns for individual divisions?
Something like in the graph below?

This is absolutely spot on, exactly what I mean yes. Officers in our set up often have multiple divisions with separate callsigns and with the new callsign management I need a way of managing each of their callsigns not just primary/default.

When creating an officer, they can add their own extra callsigns

oh, that was a question @jxckUK haha

No worries. Something like "advanced settings" would work?

Just had a thought, will this be manageable through the callsigns admin section? 😄

yep! First doing this on the my-officers side

How would the officer be able to set the wanted division? How should this be handled in the UI?

How would the officer be able to set the wanted division? How should this be handled in the UI?

Somehow for each division the user adds they should get an additional section to set a callsign for that division?
They'd be able to do this in the my officer section I would expect.

No, I mean, how would the callsign be changed from the default to another one saved of the officer?

No, I mean, how would the callsign be changed from the default to another one saved of the officer?

Well I personally would leverage the API if that's possible so that when they select in game a division they will switch to that callsign?
In terms of the CAD web interface I'm not sure to be honest.

An idea: If the officer has multiple callsigns, add a button at the top of the officer dashboard that says "Switch Callsigns" and it would open a Modal of all callsigns available to the officer. If they don't have any other callsigns, don't show the button at all.

Yeah, I'll probably do this. Would the callsign go back to the default one if the officer goes off-duty, or would it stay consistent between off-duties and on-duties?

Yeah, I'll probably do this. Would the callsign go back to the default one if the officer goes off-duty, or would it stay consistent between off-duties and on-duties?

Consistent would be nice!

whoops, posted a comment in the wrong issue:

Something like this could work? Some small fixes to do though!

https://user-images.githubusercontent.com/53900565/169327053-14394343-b1d1-480c-afda-7864749c5ac9.mov


Improve display

For example, this is not clean:
DESCRIPTION
Register anatomical image to the template.

  To register a subject to the template, try the default command:
  sct_register_to_template -i data.nii.gz -s data_seg.nii.gz -l data_labels.nii.gz
  If this default command does not produce satisfactory results, please see:
    https://sourceforge.net/p/spinalcordtoolbox/wiki/registration_tricks/

  To register the template to a subject, you need to use "-ref subject". Example below:
  sct_register_to_template -i data.nii.gz -s data_seg.nii.gz -l data_labels.nii.gz -ref subject
    -pa
    ram step=1,type=seg,algo=centermassrot,smooth=0:step=2,type=seg,algo=columnwise,smooth=0,smoothWarpXY=2

Closing, as this issue is out of date. Over time (especially with the conversion to argparse in #1548), many script descriptions have been updated with cleaner formatting.


Is it possible to use this with cmd.exe?

I prefer to use cmd.exe interactively (I still use PowerShell for scripts), as I just find it's very nice with clink.
Is there any way I can use scoop-search with cmd?

Have you tried using it as is? I don't think scoop-search makes any assumptions about the underlying shell, its just a native binary.
Unless you are referring to the hook, which replaces scoop search (rather than using it with scoop-search). I have zero experience with cmd, so if you'd know how to hack such a hook together then I would be happy to include it. Here is how it is done for powershell (its just an ugly hack): https://github.com/shilangyu/scoop-search/blob/55a7861c4fef502daf5a0b2857872aa215cb8cc3/args.go#L25


Specific but simple transformation fails with "index out of bounds" if a plugin is defined

Describe the bug
The following Node.js code can be used to reproduce the issue<EMAIL_ADDRESS>is installed)
require('@swc/core').transformSync('fn((obj) => obj?.method());', { plugin: (module) => module });

This will throw a GenericFailure error with the message 'failed to handle: index out of bounds: the len is 3 but the index is 3'.
Input code
No response
Config
No response
Playground link
No response
Expected behavior
The code compiles to
fn(function(obj) {
    var _obj;
    return (_obj = obj) === null || _obj === void 0 ? void 0 : _obj.method();
});

which it does, if the plugin is removed.
Actual behavior
No response
Version
1.3.65
Additional context
No response

https://github.com/swc-project/swc/issues/6255


Weird pagination behaviour on aggregated columns

Hi.
I mention my workmate @JSortGarcia because he found a possible cause of this unexpected result. Following the same way to explain the problem I'll copy some code parts & screenshots.
// Controller

public function timeRegisterAnalysisAction(Request $request, TimeRegisterRepository $trr): Response
{
    $dataTable = $this->createDataTable(TimeRegisterAnalysisDataTableType::class, $trr->timeRegisterAnalysisQB());
    $dataTable->handleRequest($request);
    if ($dataTable->isExporting()) {
        return $this->file($dataTable->export());
    }

    return<EMAIL_ADDRESS>[
        'timeRegisterAnalysisTable' => $dataTable->createView(),
    ]);
}

// Repository

public function timeRegisterAnalysisQB(): QueryBuilder
{
    return $this->createQueryBuilder('tr')
        ->select('b.code')
        ->addSelect('CAST(SUM(tr.durationSeconds) AS UNSIGNED) AS sumTotalDurationSeconds')
        ->join('tr.batch', 'b')
        ->groupBy('b.code')
    ;
}

// DataTableType

public function buildDataTable(DataTableBuilderInterface $builder, array $options): void
{
    $builder
        ->addColumn(
            'code',
            TextColumnType::class,
            [
                'label' => 'code',
                'property_path' => '[code]',
                'sort' => 'code',
                'export' => true,
            ]
        )
        ->addColumn(
            'sumTotalDurationSeconds',
            TextColumnType::class,
            [
                'label' => 'sumTotalDurationSeconds',
                'property_path' => '[sumTotalDurationSeconds]',
                'sort' => 'sumTotalDurationSeconds',
                'export' => true,
            ]
        )
        ->addFilter(
            'code',
            StringFilterType::class,
            [
                'query_path' => 'b.code',
            ]
        )
        ->addFilter(
            'sumTotalDurationSeconds',
            SumTotalWorkstationSecondsFilterType::class,
            [
                'query_path' => 'tr.sumTotalDurationSeconds',
            ]
        )
        ->addExporter('csv', CsvExporterType::class)
        ->addExporter('xlsx', XlsxExporterType::class)
        ->setDefaultSortingData(SortingData::fromArray([
            'b.code' => strtolower(SortOrderEnum::ASC->value),
        ]))
        ->setDefaultPaginationData(new PaginationData(
            page: 1,
            perPage: 25,
        ))
    ;
}

If I put a dd($trr->timeRegisterAnalysisQB()->getQuery()->getResult()) into the controller, just before the DataTable creation, I'm getting this results:

These results are the expected results, and are fully according to the following Doctrine query:
SELECT b0_.code AS code_0, CAST(SUM(t1_.duration_seconds) AS UNSIGNED) AS sclr_1
FROM time_register t1_ INNER JOIN batch b0_ ON t1_.batch_id = b0_.id AND (b0_.company_id = '5')
WHERE (t1_.workstation_id IN (SELECT id FROM workstation WHERE workstation.company_id = '5'))
GROUP BY b0_.code

The problem is the datatable list view is showing a lot of results (more than the 88 expected) and is executing the follwing query:
SELECT b0_.code AS code_0, CAST(SUM(t1_.duration_seconds) AS UNSIGNED) AS sclr_1
FROM time_register t1_ INNER JOIN batch b0_ ON t1_.batch_id = b0_.id AND (b0_.company_id = '5')
WHERE (t1_.id IN (92911, 106909, 96845, 105334, 107506, 111142, 101106, 123257, 146432, 123250, 111176, 126683, 134177, 115478, 144833, 115582, 140146, 123359, 124845, 155271, 128890, 127740, 155434, 136840, 133253)) AND (t1_.workstation_id IN (SELECT id FROM workstation WHERE workstation.company_id = '5'))
GROUP BY b0_.code;

Keep in mind that SELECT id FROM workstation WHERE workstation.company_id = '5' is due to a custom Doctrine filter that we are applying.
We think that the t1_.id IN (92911, 106909, 96845, 105334, 107506, 111142, 101106, 123257, 146432, 123250, 111176, 126683, 134177, 115478, 144833, 115582, 140146, 123359, 124845, 155271, 128890, 127740, 155434, 136840, 133253) part is related with a problem with a cloned query and ONLY_FULL_GROUP_BY SQL mode

Hello!
Adding to what @davidromani  has already exposed, the query that throws error when ONLY_FULL_GROUP_BY sql mode is on, is the following:
SELECT COUNT(DISTINCT t0_.id) AS sclr_0 FROM time_register t0_ INNER JOIN batch b1_ ON t0_.batch_id = b1_.id AND (b1_.company_id = '5') WHERE (t0_.workstation_id IN (SELECT id FROM workstation WHERE workstation.company_id = '5')) GROUP BY b1_.code

And the trace that leads to this query is this:
10 	Doctrine\ORM\AbstractQuery->getScalarResult (line 120)
11 	Doctrine\ORM\Tools\Pagination\Paginator->count (line 17)
12 	Kreyu\Bundle\DataTableBundle\Bridge\Doctrine\Orm\Query\DoctrineOrmResultSetFactory->create (line 72)
13 	Kreyu\Bundle\DataTableBundle\Bridge\Doctrine\Orm\Query\DoctrineOrmProxyQuery->getResult (line 615)
14 	Kreyu\Bundle\DataTableBundle\DataTable->getResultSet (line 620)
15 	Kreyu\Bundle\DataTableBundle\DataTable->createPagination (line 610)
16 	Kreyu\Bundle\DataTableBundle\DataTable->getPagination (line 232)
17 	Kreyu\Bundle\DataTableBundle\Type\DataTableType->createPaginationView (line 111)
18 	Kreyu\Bundle\DataTableBundle\Type\DataTableType->buildView (line 91)
19 	Kreyu\Bundle\DataTableBundle\Type\ResolvedDataTableType->buildView (line 89)
20 	Kreyu\Bundle\DataTableBundle\Type\ResolvedDataTableType->buildView (line 788)
21 	Kreyu\Bundle\DataTableBundle\DataTable->createView (line 80)
22 	App\Controller\Admin\Production\TimeRegisterAdminController->timeRegisterAnalysisAction (line 181)

And the error thrown is this:
An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'infont.t0_.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

As we do not add in the queryBuilder this id field, it seems that the Paginator uses the index of the entity the query builder is related to (in this case, ìd in the entity Time Register). Also, the paginator totals seem to relate with the total number of the non aggregated registers.
I hope this may give some useful context! 😃

@Kreyu can you give it a look, please?

Hey @davidromani @JSortGarcia.
This would require creating a small app with similar entities and configuration to check it out, but I don't have enough time for this right now, and have no idea what to do based on the snippets alone.
Currently, I suspect the issue lies on the Doctrine paginator side, and I would suggest checking whether using it directly with your query builder (without data table) creates the same output. Maybe it requires setting some query hints to produce proper results.

Hey @Kreyu,
I created a small app where we can reproduce this behaviour. The repo is this.
To reproduce, you have to configure the connection to a mysql database and then run:
$ php bin/console doctrine:schema:update --force
$ php bin/console doctrine:fixtures:load
$ symfony serve

Here we have a similar case: an entity Category, with a name, and an entity Product, with a sumarizable field salesAmount. The aim of this case is to sumarize salesAmount by category (as is done in the query buider):
App\Repository\ProductRepository;
....
   public function salesAmountSumByCategoryQB(): QueryBuilder
    {
        return $this->createQueryBuilder('p')
            ->select('SUM(p.salesAmount) as salesAmountSum, c.name as categoryName')
            ->join('p.category', 'c')
            ->groupBy('c.name')
            ->orderBy('salesAmountSum', 'DESC');
    }
....

After serving the app, you can find the the route in https://localhost:8000/example_datatable.
There you can see the difference between what is show in the rendered dataTable (above) and the actual values it shoud have (below). Also, there should be only four registers renderd, but the pagination seems to reflect the total number of registers in the Product table.
Note also that in the doctrine configuration I have disabled the only_full_group_by option:
config\packages\doctrine.yaml
...
    dbal:
        options:
            1002: 'SET sql_mode=(SELECT REPLACE(@@sql_mode, "ONLY_FULL_GROUP_BY", ""))'
...

If this option is not set, then this error is thrown:
An exception occurred while executing a query: SQLSTATE[42000]: Syntax error or access violation: 1055 Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'dataTableQueryBuilder.p0_.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

I hope this helps reproducing the error, if we could give you any hand please tell us 😃

@JSortGarcia thank you for the repository, I'll let you know if I find a solution

Okay, let's start with something relatively easy - why are we grouping on c.name instead of c.id? Could there be multiple categories with the same name? Is that purposeful, or am I just missing the context?
I suggest using the following query instead - works properly, and doesn't require using ONLY_FULL_GROUP_BY at all:
return $this->getEntityManager()->createQueryBuilder()
    ->select('SUM(p.salesAmount) AS salesAmountSum', 'c.name as categoryName')
    ->from(Category::class, 'c')
    ->join('c.products', 'p')
    ->groupBy('c.id')
;

I assume that those entities are just for the example, and they correspond to the entities you're aliasing to b and tr in examples above:
// If this:
return $this->createQueryBuilder('p')
    ->select('SUM(p.salesAmount) as salesAmountSum, c.name as categoryName')
    ->join('p.category', 'c')
    ->groupBy('c.name')
    ->orderBy('salesAmountSum', 'DESC');

// Corresponds to this:
return $this->createQueryBuilder('tr')
    ->select('b.code')
    ->addSelect('CAST(SUM(tr.durationSeconds) AS UNSIGNED) AS sumTotalDurationSeconds')
    ->join('tr.batch', 'b')
    ->groupBy('b.code');

// Can you do something like this instead?
return $this->createQueryBuilder('b')
    ->addSelect('CAST(SUM(tr.durationSeconds) AS UNSIGNED) AS sumTotalDurationSeconds', 'b.code')
    ->join('b.timeRegistries', 'tr')    // Can you join "tr" from "b", like products from category?
    ->groupBy('b.id');    // I assume "b" has "id" since the paginator is using it in the DISTINCT COUNT
;


[MM-40134] Reduce appID length to 26 characters

Summary
To avoid issues like the one in https://mattermost.atlassian.net/browse/MM-34968 and to unify the length with other IDs length in the MM ecosystem this PR reduces the appID length to 26 characters.
Ticket Link
https://mattermost.atlassian.net/browse/MM-40134

Codecov Report

Merging #294 (afe8865) into master (849a6ca) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #294   +/-   ##
=======================================
  Coverage   25.96%   25.96%
=======================================
  Files          73       73
  Lines        4156     4156
=======================================
  Hits         1079     1079
  Misses       2970     2970
  Partials      107      107

Impacted Files
Coverage Δ

apps/manifest.go
94.28% <ø> (ø)

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 849a6ca...afe8865. Read the comment docs.

I am confused as to the reason for the limit. What is the benefit of limiting it at 26? Is it because we are adding the AppID to the database now as an "ID"?

That is one reason. Given that it's used in the DB, we need a limit. Alternately, we could hash the appID and use that, as the list of AppID's is known. The other reason is that the bot user name is the appID. Long user names are shown badly in the UI and hence should be short.

Closing as there is no need for a stricter limit right now.


How to add HTTP-SASL?

Sorry to be a bit active :)
I've been looking if it would be difficult to add our HTTP-SASL with current I-D proposed mechanism.  That being strictly authentication, I am wondering if it should go into the http_authenticator class.  I ran into the dc backend which is pluggable, yet conflates authentication with authorisation, so not a perfect fit.
Our project defines an ACL mechanism that I would use for authorisation, but it would not make sense to everyone to force the combination with HTTP SASL, which could be more generally useful IMHO.  I might make a separate pluggable ACL as part of a proposed HTTP SASL plugin, but that sounds like I'd be outstepping my boundaries.  One reason for this ACL mechanism is that it welcomes foreign accounts, which combines well with our proposed SASL mechanism for realm crossover named SXOVER.
What do you suggest?  Would you be open to (a branch or PR with) an extension to the http_authenticator with SASL authentication, in spite of its early stage?  Or should it be part of a dc backend?  Do you see value in splitting authentication from authorisation, at least in some dc backends, or should I create a tight bond between HTTP SASL and the ACL idea in our ARPA2 projects?
FYI, some background to our project and why this may seem like a bit much.  For us, Reservoir including wsgidav forms a good demonstration of our conceptual work on InternetWide Identity with end users back at the helm.

Sorry for being a bit inactive ;)
Your projects look really interesting, even if I did not have time to dive into deeper yet.

WSGI middleware that demonstrates how HTTP SASL can be a layer that can mount on any WSGI service;

Custom middleware can be configured, but I assume that is not enough?
I admit that I don't understand enough about the details, to offer a recommendation. Generally I am open to extending the architecture, as long as it is concise and general. I.e. optimally changes to http_authenticator and DC should make implementations of SASL or other protocols easier.
A fork with a sample implementation may be a good starting point for discussion or prototype.
Please understand that I currently don't have much resources to put into this though, and I cannot guarantee that a PR it will finally be accepted.


Sample Pushed when Streaming is closing

Dear all,
I'm writing you to ask about an issue that I have when I'm closing my stream. I'm pushing one sample with a marker stream type and when I stop the execution of my script Labrecorder saves a marker equal to 0 or another number randomly if the sent markers are more than 100. I also used and not used the command "del" to destroy the outlet object but in both cases the randomic marker is saved on Labrecorder... Can you help me? Can you give me some information about this last marker automatically generated?

Hello,
I'm having a similar issue with a stream of type "marker".  I noticed that an empty sample is posted on the stream if the StreamOutlet is destroyed while the StreamInlet exists.
I first thought this could be a way to notify that the stream is closing but I wasn't able to repro when I tried with a markers stream with 2 channels instead of 1.


OnClick function not working (Add to cart)

looked at the format of sending the data with parameters into function and fixed the issue.


Hide TextInput border or allow transparent borderColor (Android)

If TextInput borderColor is set to transparent or rgba(0, 0, 0, 0), alpha value is ignored and borderColor is still visible (black color).
This is very annoying because default behavior looks ugly in many cases and prevents customization of UI.
There is no problem in iOS, transparent color actually hides border... Only problem is Android TextInput.
new tabris.TextInput({
  top: 20, left: '20%', right: '20%',
  message: 'Test Message',
  borderColor: 'transparent'
}).appendTo(tabris.ui.contentView);

Technically it's possible and it shouldn't be hard thing to do since many apps are using transparent border to customize UI.
WhatsApp for example:

i try to do the same thing too like whatsapp.how can i achieve that

@ishigo1987 this is not 100% same but you can use it as quick example...
var navigationView = new tabris.NavigationView({
  left: 0, top: 0, right: 0, bottom: 0,
  titleTextColor: '#fff',
  toolbarColor: '#087'
}).appendTo(tabris.ui.contentView);

var newPage = new tabris.Page({
  title: 'New message',
  background: '#eed'
}).appendTo(navigationView);

var newMessage = new tabris.Composite({
  left: 10, bottom: 10, right: 70, height: 48,
  background: '#fff',
  cornerRadius: 5,
  elevation: 1
}).appendTo(newPage);

var inputText = new tabris.TextInput({
  top: 0, left: 48, right: 48,
  message: 'Type a message',
  borderColor: 'transparent'
}).appendTo(newMessage);

new tabris.ImageView({
  left: 12, top: 12, width: 24, height: 24,
  image: {src: 'http://i.imgur.com/pZA7mUN.png'}
}).appendTo(newMessage);

new tabris.ImageView({
  right: 12, top: 12, width: 24, height: 24,
  image: {src: 'http://i.imgur.com/iYUv6Lp.png'}
}).appendTo(newMessage);

var voiceRecorder = new tabris.Composite({
  bottom: 10, right: 10, height: 48, width: 48,
  background: '#087',
  cornerRadius: 24,
  elevation: 1
}).appendTo(newPage);

new tabris.ImageView({
  centerX: 0, centerY: 0, width: 24, height: 24,
  image: {src: 'http://i.imgur.com/fjKW8dg.png'}
}).appendTo(voiceRecorder);

Result:

@bev-on you are right that this behavior is counter-intuitive to the users expectation. We will look into it. As a workaround you can set the backgroundImage to null on the InputText. This will hide the underline (which is in fact the background image of the view on Android).

ok thank you @bev-on  and @mpost

@bev-on @ishigo1987 We have fixed the issue in the latest nightly build for the 2.x stream. You could rebuild your app to make use of transparency in the TextInput (and Picker) background property.

ok that's cool thank you @mpost


add certified distro: vcluster

Pre-submission checklist:
Please check each of these after submitting your pull request:

[x] Are you only including a repo_url if your project is 100% open source? If so, you need to pick the single best GitHub repository for your project, not a GitHub organization.
[x] Is your project closed source or, if it is open source, does your project have at least 300 GitHub stars?
[x] Have you picked the single best (existing) category for your project?
[x] Does it follow the other guidelines from the new entries section?
[x] Have you added your SVG to hosted_logos and referenced it there?
[x] Does your logo clearly state the name of the project/product and follow the other logo guidelines?
[x] Does your project/product name match the text on the logo?
[x] Have you verified that the Crunchbase data for your organization is correct (including headquarters and LinkedIn)?
[x] ~15 minutes after opening the pull request, the CNCF-Bot will post the URL for your staging server. Have you confirmed that it looks good to you and then added a comment to the PR saying "LGTM"?

@ErinThacker @caniszczyk - Please, let me know if there is anything else you need for this PR to be merged. I'm not sure what the process is but I saw that you already added vcluster (although with the wrong capitalization) to this google sheet that's linked from the CNCF website but the logo does not show up, yet. Thanks in advance for your help

cc: @ErinThacker on the spelling


Deprecate methods from footer.rs in favor of ParquetMetaDataReader

Which issue does this PR close?
Part of #6447
Rationale for this change
See issue
What changes are included in this PR?
Add deprecation warnings to public methods in footer.rs (parse_metadata, decode_metadata, decode_footer) and replace usages with equivalent functions from ParquetMetaDataReader.
Are there any user-facing changes?
No

Also, I know it was more work, but breaking them up into multiple PRs has made reviewing it much easier (though I admit it is still taking pretty long)

Yes, #6392 was monstrous (and reviewing this had to be tedious). I'll do what I can to lighten your load as we move forward.

Looking very nice -- thanks @etseidl


Rules around items within the Azure module

Perhaps we can identify and implement rules that would help around proper usage of the Azure Module and various Azure modes
[Fully realizing what these types of rules would be tbd!  An example could be ensuring the AzureMode is set before running certain types of Azure commands]

Thanks Andre for the suggestion. I'm pretty sure there a lot of requests for rules for different rules! We are definitely open to all requests and discussions on new rules.

Hi Andre.
Please open individual issues for each of the Azure specific rules. We will triage and tag them.
Thanks.


Infer Wikidata membership item from legislature in Wikidata

In most cases the legislature's Wikidata ID should be available in the Popolo JSON. We can use this to dynamically look up the Wikidata item that represents a membership in that legislature. This would remove the need to pass in a WIKIDATA_MEMBERSHIP_ITEM option manually.

This SPARQL query provided by @tmtmtmtm is a good way of mapping between a legislature and the membership item for that legislature.
SELECT ?membership ?membershipLabel ?legislature ?legislatureLabel WHERE {
  ?membership wdt:P279* wd:Q4175034 ;
              wdt:P361 ?legislature .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

Also worth noting that the connection between Wikidata legislatures item and the membership of legislature item might not always be done in a consistent way, but this is something we should tidy up as needed.

Pull request for this is here: https://github.com/everypolitician/compare_morph_to_wikidata/pull/5, but before that gets merged I'm going to fix https://github.com/everypolitician/everypolitician-popolo/issues/110 to make the code for that a bit cleaner.

We've decided that until we have a better idea of some common patterns we don't want to be generating SPARQL queries. For the time being we're going to force the user to provide their own SPARQL query, which has been done in https://github.com/everypolitician/compare_with_wikidata/pull/9.


InstaREPL reports errors with ' syntax

Using the short form of the quote function reports errors in the InstaREPL
Example
Using the short form of quote to a list collection to be just used as data
'(1 2 3 4)
=> java.lang.ClassCastException: java.lang.Long cannot be cast to clojure.lang.IFn
Using Nightcode version 2.1.1 on Linux (.deb), Java openjdk version "1.8.0_91"

Fixed in 24991e999bbf18bcb0a1c48fe8f7e723566db0c5, thanks!

Just released 2.1.2 with the fix.

Thank you, the ' syntax is working correctly now, much appreciated.


SSL error for Acta Neerlandica

Triggered by
c = httpx.Client()
r = c.get("https://doi.org/10.36392/ACTANEERL/2020/16-17/10", follow_redirects=True)

Or by directly looking up the redirected-to URL in question:
r = c.get("https://ojs.lib.unideb.hu/actaneer/article/view/9135")

We can catch this in retrieve _fulltextsas:
try:
    r = c.get("https://ojs.lib.unideb.hu/actaneer/article/view/9135")
except httpx.ConnectError as e:
    print(e.request.url)

Hmm, but httpx.ConnectError is a subclass of httpx.HTTPError, so this error should be caught in retrieve_fulltext. This simplified code just prints the tuple for instance:
def lookup_result_on_http_error(exception: httpx.HTTPError):
    error = f"HTTP error: {exception}"
    status_code = (
        exception.response.status_code
        if isinstance(exception, httpx.HTTPStatusError)
        else None
    )
    return (exception.request.url, error, status_code)

c = httpx.Client()
try:
    r = c.get("https://doi.org/10.36392/ACTANEERL/2020/16-17/10", follow_redirects=True)
except httpx.HTTPError as e:
    print(lookup_result_on_http_error(e))

I don't fully understand how it works but it seems like we don't get to the httpx.ConnectError and immediately get the ssl.SSLCertVerificationError, so we should catch that as well.
We  have to do this in two places: retrieve_fulltext and metadata_from_url. If we want to be able to return the actual URL where this happened, we need to manually ahndle redirects in retrieve_fulltext

The difference is due to synchronous vs async. The code below also raises a ssl.SSLCertVerificationError:
async with httpx.AsyncClient() as c:
    try:
        r = await c.get("https://doi.org/10.36392/ACTANEERL/2020/16-17/10", follow_redirects=True)
    except httpx.HTTPError as exc:
        print(lookup_result_on_http_error(exc))


Bump proto

Pull Request Test Coverage Report for Build 43

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

Totals

Change from base Build 41:
0.0%

Covered Lines:
113

Relevant Lines:
139

💛  - Coveralls


[Bug 5.5] Eloquent returns all records using Model::where('any_text_field', 0)->get()

Laravel Version: 5.5.14 & 5.5.17
PHP Version: PHP 7.0.22-0ubuntu<IP_ADDRESS> (cli) ( NTS )
Database Driver & Version: MySql Server version: 5.7.19-0ubuntu<IP_ADDRESS>-log (Ubuntu)

Description:
All records are returned when calling where() on any model with any text field, with the search param of (int) 0.
This does not occur with 5.1.46 (the only other install I have to hand) where no entries are returned.
Tested in three different 5.5.* projects, with numerous models and text fields.
Identified when using unit tests when a default value of (int) 0 was used instead of an empty string, so this also occurs under sqlite.
A query like this should not normally be run in practise, but the resultant behaviour seems buggy.
Steps To Reproduce:
In any project
Using tinker
Using any model with a text field and entries in the DB
With the command in the format: \App\Models\AnyModel::where('any_text_field', 0)->get()
Eg:
\NewsLetters\Models\Template::where('name', 0)->get()
\Healthcheck\Models\Server::where('account', 0)->get()

What's the generated sql statements, and are you running mysql with strict mode? Have you checked if mysql issue any warnings with your queries?
According to the mysql's type conversion rules you're comparing your values as floating-point numbers.  All your string values doesn't start with a digit will be converted to the value of zero, and thus matching your query.

Generated queries:
5.1.46 (not strict)
467 Prepare	select * from booklend_books.club_books where Title = ?
467 Execute	select * from booklend_books.club_books where Title = '0'
5.5.14 (strict)
468 Prepare	select * from servers where account = ?
468 Execute	select * from servers where account = 0
5.5.17 (strict)
469 Prepare	select * from templates where name = ?
469 Execute	select * from templates where name = 0
5.5.17 (not strict)
470 Prepare	select * from adverts where author = ? and adverts.deleted_at is null
470 Execute	select * from adverts where author = 0 and adverts.deleted_at is null
No warnings or errors in mysql error log.
For me, I've fixed my code. I can see that the type conversion rules are being correctly followed, so maybe this was a bug in 5.1 and now it's doing what it should do.
And from experimenting, it looks as though queries of this nature on text fields always returns 0, hence the where() is satisfied:
select 0 + title from adverts limit 1
https://stackoverflow.com/questions/8005445/mysql-datatype-conversion-from-varchar-to-float
Looks like expected behaviour then.


Key "ON" interpreted as True?

Hi, I have a yaml file that use ON as key name, but it will be interpreted as True
For example:
SOME_FEATURE:
  ON: False

will be loaded as {SOME_FEATURE: {True: False}} and cause type error.
This might be a bug of ConfigNode.load_cfg method?

This is just a basic property of yaml:
import yaml
d = yaml.load("ON: foo")
print(d)

Out:
{True: 'foo'}

This is just a basic property of yaml:
import yaml
d = yaml.load("ON: foo")
print(d)

Out:
{True: 'foo'}


Can you share your experience with fast-autoaugment

Hello,
Thanks you for sharing your good work. You showed in the Appendix, Table 3 that your class-wise and sample-wise noise is unstable when the model is trained with Fast AutoAugment. In the following question under the official implementation of the fast-autoaugment, there is some complaint about the incompatibility between RayX and Slurm. Can you help share how you run the fast-auto augment for your unlearnable example? Many thanks.
https://github.com/kakaobrain/fast-autoaugment/issues/27

Hi,
It seems the issue is due to an augmentation search rather than applying the augmentation in training. I'm not aware of any fix.
For running fast auto augment on unlearnable examples, have a look at the following:
https://github.com/HanxunH/Unlearnable-Examples/blob/28e1e417259ce5baf0d3e68d3408d9f8ecc3024f/dataset.py#L17
https://github.com/HanxunH/Unlearnable-Examples/blob/28e1e417259ce5baf0d3e68d3408d9f8ecc3024f/dataset.py#L117

Many thanks for the prompt reply and useful information.


Label for Meter and Progress bar should follow the Field-Label sizing

Description
Currently the font-size in Meter / Progress bar have a font-size of 14px in Express.
It should follow the field-label sizing that is currently using the 12px for size medium for both Express and Spectrum.
Steps to reproduce
Toggle the vars source and inspect the font-size and observe the changes from 12 to 14px.
https://opensource.adobe.com/spectrum-css/meter.html#variants
https://opensource.adobe.com/spectrum-css/progressbar.html
Expected behavior
Font-size stays 12px.
Screenshots

Environment

Spectrum CSS version:  Express 1.0.2
Browser(s) and OS(s): every browser everywhere

Additional context

fixed in: https://github.com/adobe/spectrum-css/issues/1433. We just need to update CSS

Updated in the latest build: https://opensource.adobe.com/spectrum-css/?path=/story/components-progress-bar--default&globals=testingPreview:!true


Expose useStarknet from the context

Expose useStarknet from the context so there will be an API to get the configuration used for the starknet app
The cupported chains and connectors can easily be got from this
If it's approved, I can work on it. it's just a little change

That hook is supposed to be internal and subject to change. What information do you need that's not available by other hooks?

I need to get the chains and connectors configured by the user
The API is exposed by wagmi with WagmiContext and I can also use it to validate that a component is wrapped inside the StarknetProvider
even the useStarknet (it's consumed version) that gives some contexts information too is not exposed and the two APIs are exposed in wagmi which is used in designing wallet connectors

Wagmi can expose it because they have wagmi core that abstract everything away, but starknet react doesn't.
You can get configured chains with useNetwork. For connectors: all available connectors are available in useConnect. Do you need the configured connectors (e.g. connectors configured by the dapp but maybe not available).

alright then. Thanks

If you find you need user provided connectors (not just detected connectors) feel free to reopen (describing the use case) and i think we can add a hook just for that.


Making the script save files in your localized Pictures folder ...

…instead of hard-coded English "Pictures" folder

Yes! This is necessary


Update README.markdown

Quite helpful to know that you can pull only members with certain status.

Thanks. I'm on vacation. Will look at this afterward.
Thanks,
Amro
Sent from my iPhone

On Apr 6, 2016, at 6:28 AM, Petr Zaparka<EMAIL_ADDRESS>wrote:
Quite helpful to know that you can pull only members with certain status.
You can view, comment on, or merge this pull request online at:
https://github.com/amro/gibbon/pull/188
Commit Summary
Update README.markdown
File Changes
M README.markdown (6)
Patch Links:
https://github.com/amro/gibbon/pull/188.patch
https://github.com/amro/gibbon/pull/188.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub


Configure if ip is displayed v2

Make configurable to display the ip address

Thanks very much for the PR - only one minor niggle with syntax (I use the PEAR PHP standards).
Will merge once Travis is happy, code looks good though :+1:

Ok I have put an space after 'if' but there is still a problem.
Do you have an idea?

Apologies for the late reply - as per the error on Travis CI, you'll need to add a space at the end of the 'if' statement, between the closing parenthesis and the opening curly-brace.
Full syntax should be:
if ($var == "somevalue") {
    ...
}

Yeah, ok, good to know ;) Very thanks.
Ready to merge my first pull ;)

Merged, congratulations :+1:


facebook hack

how to hack facebook account, can you please teach me how to hack because my aunti account was hacked

Please and me because my sister account is hacked please

Please and me because my sister account is hacked please

HI!! I am Virtual CISO, Cyber Security, Cyber defense, Ethical Hacker, expert I am prompt engineer working to create and maintain AI-generated content in Spanish.  I do have a Msc in computer engineering I am working for severals Internationals Enterprises where I do intensive researches in Penetration Testing, Vulnerability managements, Technological Risk, Security Architecture
My WhatsApp number+8801314956025

I will advise you to contact the best hacker around he helped me recover my facebook,fast and reliable his telegram is
https://t.me/Blackhathacker110

Can you help me hack my friend Facebook account pls 🙏🏿 or maybe you can teach me how to hack

Yes you need to pay 1st
On Tue, 5 Nov 2024, 11:55 am Hussaini80, @.***> wrote:

Can you help me hack my friend Facebook account pls 🙏🏿 or maybe you can
teach me how to hack
—
Reply to this email directly, view it on GitHub
https://github.com/chinoogawa/fbht/issues/83#issuecomment-2456314140,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BJMYADX744NXWK2W3URGVMDZ7BOM3AVCNFSM6AAAAABLRQ5ZKSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDINJWGMYTIMJUGA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


AddApplicationPart with loaded Assembly throw "Cannot find compilation library location for package"

Hi, I want to add external mvc controllers and compiled views to my asp.net core mvc webapp like plugin.
This sample code (in Startup Configuration) throw "InvalidOperationException: Cannot find compilation library location for package 'WebAI'":
var dllFullPath = @"C:\_\WebAI.dll";
var assembly = AssemblyLoadContext.Default.LoadFromAssemblyPath(dllFullPath);
services.AddMvc()
    .AddApplicationPart(assembly);

Following the workaround at https://github.com/dotnet/core-setup/issues/2981#issuecomment-322572374 I got the same exception:
var dllFullPath = @"C:\_\WebAI.dll";
var assembly = AssemblyLoadContext.Default.LoadFromAssemblyPath(dllFullPath);
services.AddMvc()
    .ConfigureApplicationPartManager(manager =>
    {
        var oldMetadataReferenceFeatureProvider = manager.FeatureProviders.First(f => f is MetadataReferenceFeatureProvider);
        manager.FeatureProviders.Remove(oldMetadataReferenceFeatureProvider);
        manager.FeatureProviders.Add(new ReferencesMetadataReferenceFeatureProvider());
    })
    .AddApplicationPart(assembly);

Thank you!

Might be a dup of https://github.com/aspnet/Mvc/issues/6934. Notes from previous investigation - https://github.com/aspnet/Mvc/issues/6934#issuecomment-336544322.

Closing this as there was no any additional feedback in this area. Assuming that this was either a user problem, or indeed a dup of the referenced issue.


Exceptions raised when using tailable cursors

Suppose accoll is a capped collection with one document in the test db on localhost. (If there are no documents the server never opens the cursor anyway.) The following ghci session demonstrates the problem:
Prelude> :set prompt "> "
> :set -XOverloadedStrings
> :m + Database.MongoDB
> pipe <- runIOE . connect $ host "<IP_ADDRESS>"
> let query = (select [] "accoll") { options = [TailableCursor] }
> cursor <- access pipe master "test" (find query) >>= either (fail . show) return
> access pipe master "test" $ next cursor
Right (Just [ _id: 4ee551a4f19ceeeb26a9addd])
> access pipe master "test" $ next cursor
*** Exception: server returned empty batch but says more results on server

If an element is inserted and then the next call made again, the same exception is raised. The last call should return Right Nothing, and then Right (Just [ ... ]) after an insertion.
This can be worked around by using nextBatch instead of next, but it takes two calls to get the documents back after an insert. Using rest or nextN has the same result as using next.

The exception is explicitly raised by Database.MongoDB.Query.next when it gets an empty batch with a nonzero cursor ID from the server. Since this is the exact behavior of tailable cursors, it should just return Nothing and get the next batch as usual, instead of raising the exception.
This fix would create another problem. (This is the problem noted above regarding nextBatch, actually.) next prefetches a promise of the next batch from the server each time it's called (assuming there cursor ID is nonzero). So if we call next until we get Nothing, then insert a document into the capped collection, and call next again, we would get Nothing again. It takes an additional call to next to get the new document(s), because of the prefetched (empty) promise.

Here's a straightforward fix to that last issue: when next encounters an empty prefetched batch with a nonzero cursor ID, it fetches a fresh batch from the server and executes normally on that. This means that next is twice as slow on these calls, but they should be rare, anyway.
I opened a (pull request)[https://github.com/TonyGen/mongoDB-haskell/pull/11] with this change. Thoughts?

I'd forgotten to make the same change for nextBatch, so I closed pull request #11 and opened #12 with that update.


WFCORE-6259 Refactor SubsystemResourceDescriptionResolver implementation from wildfly-clustering-common to wildfly-controller

https://issues.redhat.com/browse/WFCORE-6259

Would you mind adding the Jira number to each commit message?, we don't need to wait for a full CI, since it already passed.

Would you mind adding the Jira number to each commit message?, we don't need to wait for a full CI, since it already passed.

Done.


🔀 :: (#213) 변수명 통일

close #213

Codecov Report

Merging #214 (312bf7d) into main (120ded1) will not change coverage.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##               main     #214   +/-   ##
=========================================
  Coverage     19.37%   19.37%
  Complexity      186      186
=========================================
  Files           155      155
  Lines          1966     1966
  Branches         18       18
=========================================
  Hits            381      381
  Misses         1584     1584
  Partials          1        1

Impacted Files
Coverage Δ

...tion/payload/request/CreateRecruitmentRequest.java
0.00% <0.00%> (ø)

...on/payload/response/RecruitmentDetailResponse.java
0.00% <0.00%> (ø)

.../SimilarRecruitmentInfoListForStudentResponse.java
0.00% <0.00%> (ø)

...domain/recruitment/service/RecruitmentService.java
0.69% <0.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 120ded1...312bf7d. Read the comment docs.


Slack Alert Formatting

Updated slack.json to allow defining a Sensu server url (to be used for linking checks and clients to that Sensu server). Also updated slack.rb to read the new variable for linking, include context for the notification and format it to make it readable.
The Slack notification message for a Sensu alert would look something like this:

+1 looks good!


Make "nitropy nk3 update" Qubes Friendly

Hi
USB in Qubes works the way that all usb devices are attached to a special Qubes (sys-usb) an from there can be attached to the different working Qubes.
This does not work if the nk3 (and probably all nk's ) is booted into the bootloader mode. Qubes thinks the devices is removed, reattaching it, does not work (see attach log file). So the only way it works is when nitropy is installed in sys-usb, which is a lengthy process see here for Details
nitropy.log
Suggestions:

Detect Qubes  and prompt the user on Fail that this is just working in sys-usb. This can be done via the Kernel Name:
[user@work ~]$ uname -r 5.15.64-1.fc32.qubes.x86_64 [user@work ~]$

Provide a nitropy.rpm and nitropy.deb so that it can be installed into Qubes templates, so it does not need to be reinstalled all the time since sys-usb is stateless by default for security reasons  (Disposable in Qubes language)

maybe investigate what is the problem with the reattachment in bootloader mode, but this could be also a general qubes USB issue

The aligned solution is to introduce another UpdateUI hook/callback that will ask the user for confirmation after reboot into bootloader, so that the user has enough time to reconnect the Nitrokey 3 into the UpdatingQube.
the timeout/callback should roughly be placed here: https://github.com/Nitrokey/pynitrokey/blob/master/pynitrokey/nk3/updates.py#L340


Do not reach into absl::strings_internal namespace

Envoy currently utilizes absl::strings_internal::memcasecmp() from the Abseil project. This is contrary to the Abseil Compatibility Guidelines.

Do not depend upon internal details. This should go without saying: if something is in a namespace or filename/path that includes the word “internal”, you are not allowed to depend upon it. It’s an implementation detail. You cannot friend it, you cannot include it, you cannot mention it or refer to it in any way.

Please remove all references to this API, and refrain from referencing any other symbols within the family of absl::*_internal:: namespaces. This will help Abseil to move their project forward in such a way that yours is not broken by future updates.
Link to absl::strings_internal:: usage

Hey @mattklein123, I can work on this.

@athampy. Cool, have at it.


Failed rendering of chart with NOTES.txt shows wrong error

If my templating fails with a chart that has NOTES.txt, here is the error:
 FAIL  test service defaults	tests/defaults_test.yaml
	- requires a commitSha

		- asserts[0] `failedTemplate` fail
			Error: Invalid rendering: ($CONTENTS_OF_NOTES_FILE)

If I remove NOTES.txt, here is the error:
 FAIL  test service defaults	tests/defaults_test.yaml
	- requires a commitSha

		- asserts[0] `failedTemplate` fail
			Error: rendered manifest is empty

Some better messaging around here is necessary, as I was digging around in my notes file trying to figure out what was causing the failure, but it was not the notes file at all.

Hello @jcogilvie,
Thanks for the feedback.
Handling errors is still hard, as the assertion is trying to validate the failed templates.
I will start adding more debug statements in the plugin so it is better to analyze the rootcause using the --debug option.
With the debug information I hope to improve the error handling in the future.
Greetings,
@quintush


how to change language in the website ?

Cant see anything for a user to select which language they want.

Refer to the docs at https://sourcethemes.com/academic/docs/language/ . Please use the support forums for further support. These issues are for submitting feature requests and bug reports.


[Button] Update styles

Description

Update Button styles to match new spec, mostly affects padding & application of color
Remove no-longer-needed Button styles (yay)
Update mineralTheme with new color applications
Add 'jumbo' size to Button
Update Icon sizes to match what is used in new Button spec
Update Button examples
Update snapshots
Add pxToEm helper to component-utils and apply to styleVariables

Closes #195; closes #179
Motivation and context

Better Button! Seriously, just look ⬇ .
Screenshots or videos, if appropriate

How to test

cd mineral-ui/packages/button && npm start
See the new styles, use Dev Tools to confirm they match spec

Types of changes

Breaking change (fix or feature that would cause existing functionality to change)

The theme changed. Button also no longer has some previously-available theme variables.
Checklist

[x] Renders and functions properly in all supported browsers
[x] Automated tests written and passing
[x] Accessibility and inclusivity considered
[x] Rendering performance (initial load time & 60fps) and perceived performance considered
[x] Documentation created or updated

How does this PR make you feel?

I'll split the work out into relevant commits per-package later. I also haven't updated any snapshots yet.

Huge improvement in design aesthetic

Somewhat hard to grok generated values in devTools, e.g. padding: 0 0.2857142857142857em

Orange warning color is fugly and too close to red.  I strongly prefer the previous baby puke color.
Seriously though, I doubt that a vision impaired person could differentiate between the danger and warning colors, which IMHO makes this an a11y issue.  Perhaps not a blocker, but should be discussed with design and/or investigated using a11y tooling.

Button focus styles don’t appear to work in Safari, but they didn’t work before either.

Re: Safari — This works on my machine (Mac OS 10.12.6; Safari 10.1.2), so unsure what to do, if anything.

Re: Safari - It is a setting in Safari


Update vendored dependencies (some are >2 years old)

Might be time to upgrade them, e.g. logrus supports some new patterns so we can pass a logger between functions and eventually (hopefully) write tests.
What are you using for managing dependencies? Would you consider swapping to dep?

I reckon we might stay with govendor as we use it across all our projects. The plan is to swap to go modules once 1.11 has had some time to settle in. I'll drop a PR with an update to vendors.

Closing in favor of https://github.com/buildkite/lifecycled/pull/29


add deep learning training and evaluation tool

@galaxybot test this

@galaxybot test this

@galaxybot test this

@galaxybot test this

@galaxybot test this

@galaxybot test this

'Build finished. No test results found.' Finished: SUCCESS
I have no idea what should have been tested in the test.

@qiagu don't worry about it, that is a test of installation

@galaxybot deploy this

Thanks @martenson and @natefoo !


Support for cloning configurations from a git commit hash

I am wondering if Payu supports cloning a specific configuration directly from a git commit hash rather than from a branch? This feature would be helpful for reproducing experiments from precise commits in the repo's history.

I don't believe it does, but it was something we identified as a missing capability when writing the payu training material.
@jo-basevi will look into it, and it shouldn't be too difficult to implement.


Fix: Imu frame needs to be rotated

Solved Problem
When I tested the gimbal device I notice the angular velocity was moving with wrong angular velocity.
Test coverage
Tested with QGC
Context
The original PR with results and description:

[x] https://github.com/PX4/PX4-Autopilot/pull/23382
[x] https://github.com/PX4/PX4-gazebo-models/pull/70

Below is the result of the gimbal in motion and corresponding angular velocities in the gimbal device attitude status.
07112024pr-gz-gimbal-sim.webm

Nice catch!


Add support for update/delete operations on issue comments

Kohsuke Kawaguchi » github-api #357 SUCCESS
This pull request looks good
(what's this?)