For await syntax

Given that the for await syntax is a thing now, I think it would be very useful if the .each() method returned an async iterator instead of using a classical callback.

Not sure how it would work - the reason for the existing implementation is because sqlite3 has two separate callbacks - one for when a row is fetched and another for when the entire operation is done, giving back the number of rows returned.
Altering each to return an iterator is tricky as a result, and also breaks the existing API.
I would be open to a new API method (like asyncEach) that returns an iterator if you want to try your hand at it.

This is difficult because the row callback for each is synchronous, but for await would require an aync callback (even if you don't actually use any async methods in the for body).
To achieve this result you'd have to keep each row in a queue and wait for the row callback to finish before emitting the next result.
Something like this should do it:
function resultQueue(){
  let returnValue;
  const q = [];
  return {
    getNext(){
      if(q.length){
        return q.shift();
      }
      return new Promise(resolve => {
        returnValue = v => {
          returnValue = null;
          resolve(v);
        };
      });
    },

    setNext(v){
      if(returnValue) {
        returnValue(v);
      } else {
        q.push(v);
      }
    }
  }
}

async function* asyncEach(statement) {
  const { getNext, setNext } = resultQueue();
  db.each(statement, setNext).then(() => setNext(null));
  let row;
  // Assuming there are no falsy values passed to `setNext` until the final callback
  // i.e. null return value indicates no more records
  while(row = await getNext()) {
    yield row;
  }
}

(async function(){
  for await(const row of asyncEach('SELECT * FROM table;')) {
    await doSomethingWithRow(row);
  }
}());

@AlttiRi yeah, it would definitely need a queue - for each row, add to the queue, then on yield, pop off. Don't think you need to wrap promises around the row results either.
One thing I'm concerned about is memory usage if a queue is kept - there could be a situation where the queue piles up faster than the underlying code that processes the row, but we could mention that in the readme on the downsides of using this approach vs the current one

Here is the most correct realization (I assume, I did not test it a lot):
function getRows(db, sql) {
    const queue = new Queue();

    let finished = false;
    let readyResolve;
    let readyPromise = new Promise(res => {
        readyResolve = res;
    });

    db.each(sql, (err, row) => {
        queue.push(row);
        readyResolve();
    }).then(rowCount => {
        finished = true;
        readyResolve();
    });

    return (async function * generator() {
        while (true) {
            await readyPromise;
            const row = queue.shift();
            if (!queue.length && !finished) {
                readyPromise = new Promise(res => {
                    readyResolve = res;
                });
            }
            if (!row) {
                break;
            }
            yield row;
        }
    })();
}

As you can see it uses Queue.
For the case when you consume rows within one task (a task with chained micro-tasks) it's not so important, and it possible to use just Array ([]). (In this case my first variant of getRows works correctly).
for await (const row of getRows(db, sql2)) {
    console.log(row);
    await Promise.resolve();
}

But if you handle the rows in different tasks:
for await (const row of getRows(db, sql2)) {
    console.log(row);
    await new Promise(resolve => setImmediate(resolve));
}

It requires to store the rows in an array. Pushing and shifting values to the array works significantly slow for "ArrayList" (Array), so it requires to use "LinkedList" (see my Queue).
My implementation:
class Queue {
    push(value) {
        if (!this._last) {
            if (!this._first) {
                this._first = {
                    value,
                    next: null
                }
            } else {
                const newLast = {
                    value,
                    next: null
                }
                this._first.next = newLast;
                this._last = newLast;
            }
        } else {
            const newLast = {
                value,
                next: null
            }
            this._last.next = newLast;
            this._last = newLast;
        }
    }
    shift() {
        const first = this._first?.value;
        this._first = this._first?.next;
        return first;
    }
}

The bench code:
const sql = `SELECT * FROM urls`;
let loopTime1 = 0, loopTime2= 0;
for (let i = 0; i < 5; i++) {
    let total = 0;
    let now = new Date();
    for await (const row of getRows(db, sql)) {
        total += 1;
        //await new Promise(resolve => setImmediate(resolve));
    }
    const time = new Date() - now;
    loopTime1 += time;
    console.log(total);
    console.log("time 1", time);
}
for (let i = 0; i < 5; i++) {
    let total = 0;
    let now = new Date();
    await db.each(sql, (err, row) => {
        total += 1;
    });
    const time = new Date() - now;
    loopTime2 += time;
    console.log(total);
    console.log("time 2", time);
}
console.log(loopTime1);
console.log(loopTime2);
console.log(Math.abs(100 - (loopTime1 / loopTime2 * 100)).toFixed(2), "%");

The performance is ~ 15 % slower than the callback approach.

Also you can uncomment await new Promise(resolve => setImmediate(resolve));. And compare the performance with Queue and Array. With Queue it slower by 50 %, with Array by 850 %.

Here is the most correct realization (I assume, I did not test it a lot. Just a quick implementation.):
function getRows(db, sql) {
    const queue = new Queue();

    let finished = false;
    let readyResolve;
    let readyPromise = new Promise(res => {
        readyResolve = res;
    });

    db.each(sql, (err, row) => {
        queue.push(row);
        readyResolve();
    }).then(rowCount => {
        finished = true;
        readyResolve();
    });

    return (async function * generator() {
        while (true) {
            await readyPromise;
            const row = queue.shift();
            if (!queue.length && !finished) {
                readyPromise = new Promise(res => {
                    readyResolve = res;
                });
            }
            if (!row) {
                break;
            }
            yield row;
        }
    })();
}

As you can see it uses Queue.
For the case when you consume rows within one task (a task with chained micro-tasks) it's not so important, and it possible to use just Array ([]). (In this case my first variant of getRows works correctly).
for await (const row of getRows(db, sql)) {
    console.log(row);
    await Promise.resolve();
}

But if you handle the rows in different tasks:
for await (const row of getRows(db, sql)) {
    console.log(row);
    await new Promise(resolve => setImmediate(resolve));
}

It requires to store the rows in an array. Pushing and shifting values to the array works significantly slower for "ArrayList" (Array), so it requires to use "LinkedList" (see my Queue).
My implementation:
class Queue {
    length = 0;
    push(value) {
        const newLast = {
            value,
            next: null
        };
        if (!this._last) {
            if (!this._first) {
                this._first = newLast;
            } else {
                this._first.next = newLast;
                this._last = newLast;
            }
        } else {
            this._last.next = newLast;
            this._last = newLast;
        }
        this.length++;
    }
    shift() {
        const first = this._first?.value;
        this._first = this._first?.next;
        this.length--;
        return first;
    }
}

The bench code:
const sql = `SELECT * FROM urls`; // 100k+ rows
let loopTime1 = 0, loopTime2 = 0;
for (let i = 0; i < 5; i++) {
    const now = new Date();
    let total = 0;
    for await (const row of getRows(db, sql)) {
        total += 1;
        //await new Promise(resolve => setImmediate(resolve));
    }
    const time = new Date() - now;
    loopTime1 += time;
    console.log(total);
    console.log("time 1", time);
}
for (let i = 0; i < 5; i++) {
    const now = new Date();
    let total = 0;
    await db.each(sql, (err, row) => {
        total += 1;
    });
    const time = new Date() - now;
    loopTime2 += time;
    console.log(total);
    console.log("time 2", time);
}
console.log(loopTime1);
console.log(loopTime2);
console.log(Math.abs(100 - (loopTime1 / loopTime2 * 100)).toFixed(2), "%");

The performance is ~15 % slower than the callback approach.
Also you can uncomment await new Promise(resolve => setImmediate(resolve));. And compare the performance with Queue and Array. With Queue it slower by 50 %, with Array — by 850 %.

@AlttiRi The code looks good. I had to play around with it myself to understand what it's doing as I never write generators. I'm still trying to figure out if the queue should be pluggable, as in the end-user specifies what kind of queue they want to use for this as different queues may have different performance characteristics.
I'll try to bake this in for next weekend as I need to spend time writing tests / testing it out. Thanks!

Why is there not a completed callback?  An async queue is easy to do myself but I need to know when to end.


Longest increasing Subsequence in python

Hi Tushar,
Please find the pull request for Longest Increasing Subsequence Problem in Python.  I have tried to stay close to Java version and when possible tried to use Python idioms.
Thanks,
Senthil

Thank you for your effort. I wished everyone sent me pull request like this.


Add inverse_sigmoid_decay and piecewise_function

Add inverse sigmoid decay and piecewise (constant) function, e.g. for varying objective weights during training.
I put them in neuralmonkey.functions but maybe they should rather be in (a submodule of) neuralmonkey.learning_utils?
Example use:
[global_step]
class=config.utils.variable
name="global_step"

[decoder2_weight]
class=functions.inverse_sigmoid_decay
param=<global_step>
rate=300
max_value=1.0e-2

[trainer]
class=trainers.cross_entropy_trainer.CrossEntropyTrainer
decoders=(<decoder1>,<decoder2>)
decoder_weights=(1.,<decoder2_weight>)
global_step=<global_step>

I'd maybe put this module inside the nn sub-package.. And later on, think about renaming the nn package

@jindrahelcl On tf.case potřebuje, aby ty funkce vracely tensory. Ale jinde ta konverze potřeba nebyla.


Feature/nestjs 4.1

Coverage decreased (-1.5%) to 94.03% when pulling 6137c5cbe1a42ce116323391e2ff567eaed84d43 on feature/nestjs-4.1 into 564c2ae98af9d73d530c148ed1998293bc06f7d2 on develop.

Coverage decreased (-1.5%) to 93.985% when pulling 6a4eb4b29a0f458f852b5d8fccb6037fe90771f5 on feature/nestjs-4.1 into 564c2ae98af9d73d530c148ed1998293bc06f7d2 on develop.


2D spectra outside the left div block

will be closed by https://github.com/cheminfo/nmrium/pull/1245


Added algorithms for calculating powers.

The methods called pow are handy, because the Java built-in Math-class only offers power-functions for floating-point values.
The modExp method is interesting, it calculates powers in constant time.

Hey do edit the ReadMe of the repository (the contents and docs section), with Exponent class methods and usage.
Great, contributor BTW :)


crc checksum for header (key + value sizes)

If data will be corrupted, then key+value size could be decoded into large value: unneccessary allocations and unneccessary disk read will follow.
It is better to add checsum for key+value size header to early detect such corruption.

It is better to add checsum for key+value size header to early detect such corruption.

Read/write performance and space amplification will take a hit - adding another checksum will increase the single key-value pair overhead.

If data will be corrupted, then key+value size could be decoded into large value: unneccessary allocations and unneccessary disk read will follow.

I'm not too worried about unnecessary reads and allocations - it may happen only on data corruption. The worst case scenario is Pogred allocates 4GB of memory and then discards the corrupted record - it won't prevent recovery.
I'm leaving the issue open, but I have no plans fixing it in the near future.


Add additional information to /node/allPeers and /node/connectedPeers

First we should check if both of these endpoints (/node/allPeers, /node/connectedPeers) are needed. Are they doing the exact same thing? If yes remove one of them.
Secondly, exposing additional information about peers would be very useful. This is the current schema:
{
 "result": {
   "peers": [
     {
       "address": "string",
       "lastSeen": 0,
       "name": "string",
       "connectionType": "string"
     }
   ]
 },
 "error": {
   "code": "string",
   "description": "string",
   "detail": "string"
 }
}

And here is an example of information exposed from the mainchain getpeerinfo RPC:
  {
   "id": 30608,
   "addr": "remoteIP:remotePORT",
   "addrlocal": "localIP:localPORT",
   "services": "0000000000000001",
   "tls_established": true,
   "tls_verified": true,
   "lastsend":<PHONE_NUMBER>,
   "lastrecv":<PHONE_NUMBER>,
   "bytessent": 2734975,
   "bytesrecv": 298873,
   "conntime":<PHONE_NUMBER>,
   "timeoffset": 0,
   "pingtime": 0.026836,
   "version": 170002,
   "subver": "/zen:2.0.23/",
   "inbound": true,
   "startingheight": 980646,
   "banscore": 0,
   "synced_headers": 980664,
   "synced_blocks": 980664,
   "inflight": [
   ],
   "whitelisted": false
 },

Extending the SC schema with this additional information would be of particular interest:

local and remote address
local and remote port (helps in detecting the connection on the OS level and with e.g. tcpdump)
lastsend/lastrecv timestamps
bytessent/bytesrecv or if not available the number of exchanged in/out messages
conntime
pingtime (if ping/pong are implemented)
information about client/protocol version
startingheight and synced_blocks

First we should check if both of these endpoints (/node/allPeers, /node/connectedPeers) are needed. Are they doing the exact same thing? If yes remove one of them.

The endpoints are showing different things:

allPeers -> are all the peers that the node knows about and considers as good peers;
connectedPeers -> are all the peers the node is actively exchanging data with.

So there can be a scenario when the node wants to connect to a peer (visible in allPeers) but this one won't accept the connection, so it's not listed by the connectedPeers endpoint.

Secondly, exposing additional information about peers would be very useful.

With some little tweaks we can add:

local and remote address;
local and remote port;
information about client/protocol version.

All other data will require more work to be included: do we need all the items in the bullet points to be included in the response?


是否考虑借鉴一下sqltoy-orm的sql写法？

https://github.com/sagframe/sagacity-sqltoy

Hello @chenrenfei ,
As I don't understand Chinese, I am just guessing, but if you want to iterate a list, you need to use <foreach> in MyBatis.
Many people have proposed the same or similar idea, but we do not plan to support it.
And please stop using images for posting text information!
Thank you.


api method taking struct from wrong package

I have this code which works perfectly:
package api
import (
	"github.com/GoogleCloudPlatform/go-endpoints/endpoints"
	"github.com/robert-king/studentcoursereview/backends/gopackages/course"
	"log"
)
type Course2 struct {
    DomainName string `json:"domainName" endpoints:"req,desc=name of domain or university"`
    CourseGroup string `json:"courseGroup" endpoints:"req,desc=name of course group e.g. biosci"`
    CourseName string `json:"courseName" endpoints:"req,desc=name of course e.g. biosci101"`
    CourseTitle string `json:"courseTitle" endpoints:"req,desc=course title or empty string"`
}

func (sa *ScrApi) CreateCourse(c endpoints.Context, course_ *Course2) (error) {
    return course.CreateCourse(c,course_.DomainName, course_.CourseGroup, course_.CourseName, course_.CourseTitle)
}

...

register("CreateCourse", "createCourse", "POST", "createCourse", "createCourse")

I have another package called course. Inside course I have a different struct called Course.
If I rename "Course2" to be "Course". Then in the api explorer & client will for some reason expect the Course struct from the course package rather than the Course struct from the api package which breaks everything. Furthermore renaming "Course" to "Course3" in the course package, and renaming "Course2" to Course" in the api package fixed things - so basically the struct name in a different package can break the api.
Cheers.

Hi,
What is register exactly? if you use RegisterService it should work because you pass a value of whatever type you want to register, rather than by using name.
I guess this is obsolete? Sorry for taking so long to reply.


[develop] Mac Builder Boost Fix

Change Description

Added fixes for the following CICD issues:

Removed leftover SKIP_MOJAVE flag and replaced with flag used in build and test steps: SKIP_MACOS_10_14.
Fixed issue where Mac pinned builders were not source installing Boost 1.70.
** All pinned Mac builders now install Boost 1.70 from source.
** All unpinned Mac builders now install Boost via Brew.

See:
https://buildkite.com/EOSIO/eosio/builds/17140 | Pinned
https://buildkite.com/EOSIO/eosio-build-unpinned/builds/515 | Unpinned
Consensus Changes

[ ] Consensus Changes

API Changes

[ ] API Changes

Documentation Additions

[ ] Documentation Additions

CMake Warning at /usr/local/lib/cmake/boost_date_time-1.71.0/libboost_date_time-variant-static.cmake:59 (message):
--
  | Target Boost::date_time already has an imported location
  | '/usr/local/lib/libboost_date_time-mt.a', which will be overwritten with
  | '/usr/local/lib/libboost_date_time.a'

I get the impression the build directory may already exist with the contents of an old build when the build script is run?

It's interesting because that output doesn't exist for the master or 1.8.x unpinned Mac builds, which use the same builder image since the dependencies are the same:
1.8.x | https://buildkite.com/EOSIO/eosio-build-unpinned/builds/516#288ef056-9721-470c-b159-c1b3e6624b8a/269-290
master | https://buildkite.com/EOSIO/eosio-build-unpinned/builds/512#d6b8fc97-a901-475a-adeb-105b9e8ec4f0/265-286

Manual inspection of the Mac builder image shows that no eos directory exists prior to the clone performed by Buildkite.


Couldn't open ./geo_em.d02.nc for input

The metgrid.exe provide me the following error message:
ERROR: Couldn't open ./geo_em.d02.nc for input
Note: The following floating-point exceptions are signalling: IEE_OVERFLOW_FLAG IEE_UNDERFLOW_FLAG IEE_DENORMAL
With w2w tool and EU_LCZ_map_epsg4326.tif (from https://figshare.com/articles/dataset/European_LCZ_map/13322450), I got the 3 output files from w2w.py
I have copy and paste the geo_em.d02_LCZ_params.nc and rename it to the standard name geo_em.d02.nc.
I don't understand where is the mistake, I tried to use the new geogrid output from w2w for only d02 domain and for d01 and d02 domains but the error message is always the same. I use WPS <IP_ADDRESS> version.
Thank you in advance for your precious time.

Are you sure geo_em.d02.nc is in the folder that metgrid.exe expects it to be?

This issue might be similar to one: #2. The problem there was that WRF is not compiled with the netcdf/hdf5 libraries that are used to create the LCZ-based geo_em files. You could check this by testing:

> ncdump geo_em.d02.nc on the lcz-based geo_em file.
See here.
If that is the problem, you should probably first recompile netcdf4 (enabling hdf5), and then re-compile WRF.
Please let us know how this works for you ...


Changed readable LOINC-code based lab names to really ugly "readable"???? names

Some of the "formulatic" names from LOINC were too long for the FHIR publisher, for example:
GlomerularFiltrationRate173sqMPredictedArVRatPtSerPlasQnCreatinineBasedFormulaMDRDLabObs
ErythrocytesNucleated100LeukocytesRatioPtBldQnAutomatedCountLabObs
These had to be shortened... So there no predictable rules for shortening.

I didn't realize the publisher had that limitation.  What kind of error does it cause?  Does it say what the limit is?

@markkramerus - The name might be ugly overall, but just from scrolling down and glancing at the first two concatenated words in the first 50 Entry names, I can quickly and clinically identify what analyte/component we're talking about.  I wouldn't have had any idea from the LOINC numbers without either being a terminologist intimate with the LOINC numbers, or having to go one level deeper to read each description.  Neither are optimal, but this one is the slightly better of the two.


Release 1.7.1 ???

PLz, use the group to communicate not issues.
We are planning to make a new release after FOSS4G, so it's beg of Sept.

I do not think this is not a communication thing anymore but an issue, that there is no release after all. There are so many usefull pull requests from your users.
Will there be a next release?

Any comments here? Does this project need a maintainer?


Block viewer: Reduce vertical whitespacing

Signed-off-by: Daksh Sagar<EMAIL_ADDRESS>
Related to #3112

[ ] I added CHANGELOG entry for this change.
[ ] Change is not relevant to the end user.

Changes
Edit blocks.moudle.css to reduce vertical whitespace.

Verification
Verified it in the browser.

I think you need to re-bundle the assets so they can actually be built into the binary, no?

Yes absolutely, doing that. Thanks for pointing it out!

Can you add a screenshot here as well? Will make it easier to review quickly.

Reduced margin b/w the rows, removed the padding and reduced the height of the blocks


Got error when use VirtualList inside f7-page with :content=false

FW 5.0.5
VUE last
when use example from site inside f-page with :conent=false attribute got stack trace placed below. IF remove attribute content=false, all works as expected
stack trace:
vue.esm.js:1896 TypeError: Cannot read property 'offsetHeight' of undefined
at VirtualList.setListSize (virtual-list-class.js:196)
at VirtualList.init (virtual-list-class.js:663)
at new VirtualList (virtual-list-class.js:187)
at Object.create (constructor-methods.js:23)
at eval (list.js:199)
at Object.ready (f7.js:37)
at VueComponent.f7ready [as $f7ready] (framework7-vue.esm.bundle.js:209)
at VueComponent.mounted (list.js:184)
at invokeWithErrorHandling (vue.esm.js:1862)
at callHook (vue.esm.js:4216)

Because VL requires scrollable element. Check VL documentation


Standardise files with files in sous-chefs/repo-management

Signed-off-by: Dan Webb<EMAIL_ADDRESS>

Released as: 3.2.2


[Source Request]

Source website

Name: Nekonime
Link: https://nekonime.net/
Language(s): Indonesian

Other details
Streaming Anime Sub Indonesia

Duplicate of #154


source id is not optional, should be listed as required attribute

[Enter feedback here]
(using "azure-cli": "2.31.0")
contrary to the docs, --source-resource-id appears to be a required parameter for az eventgrid event-subscription show (and possibly for the other operations too)?
Leaving it off results in an unhandled error:
az eventgrid event-subscription show --name $subname
// ->
The command failed with an unexpected error. Here is the traceback:
No value for given attribute
Traceback (most recent call last):
  File "/opt/az/lib/python3.6/site-packages/knack/cli.py", line 231, in invoke
    cmd_result = self.invocation.execute(args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 658, in execute
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 721, in _run_jobs_serially
    results.append(self._run_job(expanded_arg, cmd_copy))
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 692, in _run_job
    result = cmd_copy(params)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/__init__.py", line 328, in __call__
    return self.handler(*args, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 363, in handler
    show_exception_handler(ex)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/arm.py", line 429, in show_exception_handler
    raise ex
  File "/opt/az/lib/python3.6/site-packages/azure/cli/core/commands/command_operation.py", line 361, in handler
    return op(**command_args)
  File "/opt/az/lib/python3.6/site-packages/azure/cli/command_modules/eventgrid/custom.py", line 873, in cli_eventgrid_event_subscription_get
    retrieved_event_subscription = client.get(source_resource_id, event_subscription_name)
  File "/opt/az/lib/python3.6/site-packages/azure/mgmt/eventgrid/operations/_event_subscriptions_operations.py", line 88, in get
    'scope': self._serialize.url("scope", scope, 'str', skip_quote=True),
  File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 650, in url
    output = self.serialize_data(data, data_type, **kwargs)
  File "/opt/az/lib/python3.6/site-packages/msrest/serialization.py", line 758, in serialize_data
    raise ValueError("No value for given attribute")
ValueError: No value for given attribute

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

ID: 63e73e1b-aad9-0ce8-be1f-a9b9d02ca6d4
Version Independent ID: 73525c5f-94f3-1c07-e3b6-3a022aab2a10
Content: az eventgrid event-subscription
Content Source: latest/docs-ref-autogen/eventgrid/event-subscription.yml
Service: event-grid
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

route to service team


The copied image is has incorrect colors on Windows

When an image is copied, than pasted using a different software, it seems that the color channels are mixed up relative to the original.
I believe this only affects AMD CPUs as they might have a different endianness from Intel ones.

Note to self: I could probably use u32::from_be or u32::from_le at https://github.com/ArturKovacs/arboard/blob/a23435b9bba292f9c86e900b187a5f65b2517088/src/windows_clipboard.rs#L113-L116


change batch_size

Dear author:
DiffAttack is such a novel and meaningful work for the community! Thanks to your contribution!
      I would like to consult you that whether I can change the batch_size when using the code, like change the batch_size to 32 in order to generate 32 images at one time.

     And, which line of code in diff_attack_latent.py should I modify?

Hi @MDD-0928 ,
The most straightforward way to implement batch parallelism is by using multiprocessing to handle the image batches. You can modify the lines below https://github.com/WindVChen/DiffAttack/blob/d66b1e79f1cd706b8deeedbe83e07925b7216e53/main.py#L162 to split the processed images across different processes. This should be fairly simple and won't require changes to the core code in diff_attack_latent.py.
Also, please make sure you have enough computing resources, as processing a single image currently requires about 16GB of memory.
Hope this helps!

Thanks for your reply!!!
I would like to know why you define the "prmopt" by
prompt = [imagenet_label.refined_Label[label.item()] + " " + target_prompt] * 2
why the prompt needs to " *2 "
and why does the text_encoder first get prompt[0] as input in line 294 and secondly get prmopt as input in line 341

Hi @MDD-0928 ,
Sorry for the delayed reply.
The first prompt[0] is used to obtain the optimized uncond_embeddings for an empty prompt (i.e., ""), so we only need one latent for the calculation, corresponding to a single prompt text [text].
On the other hand, the second prompt, which contains two identical texts [text, text], is used for calculating the structure loss (refer to Section 3.4 of our paper). In this case, we require two latents: one is the original latent, and the other is the optimized latent. That's why we use a prompt with two text embeddings instead of prompt[0].
Hope this clears things up!


Consider pre-composing postsynaptic density of dendrite

See the inferred types here:

in http://noctua.berkeleybop.org/editor/graph/gomodel:593423e000000473
When GPAD is exported we get additional inferences to 'neuron part'. This is correct. However, it may be cleaner if there is a precomposed term (this would already be classified as 'neuron part' in the release version of the ontology, so we would not get the additional 'helpful' inferences).
From discussion with @RLovering at Noctua workshop

http://noctua.berkeleybop.org/editor/graph/gomodel:593423e000000473?barista_token=ywkfhlfkobzi1yzwoqaw#

In the future, I hope that this becomes a part of the normal workflow. That is, models will direct the addition of instantiated terms in the ontology and will initially serve as a template for new terms and eventual new term templates. This is an efficient mechanism for ontology development because evidence and provenance for the existence of a term is automatically captured from the original annotations.

Hello,
Thank you for giving me the opportunity to learn about neurons ! This is not an area I know much about so I have a few naive questions.
My understanding is that the dendrite is the part of the neuron that receives the signal; so the post-synaptic density must anyway be located at the dendrite; is this right ?
In this case I could just create the missing parent ('part of' some dendrite). Does this sound right ?
Thanks, Pascale

My understanding is that the dendrite is the part of the neuron that receives the signal; so the post-synaptic density must anyway be located at the dendrite; is this right ?

Except when it's not.  Axo-axonic and Axo-somatic synapses also exist. Axo-axonic are common in arthropods, but are also found in vertebrates.  Not sure whether these have clear PSDs though.

Hi @dosumis
If we are not sure whether the Axo-axonic and Axo-somatic synapses have PSD, I propose to rename the existing term 'postsynaptic density of dendrite' and we'll wait to need to other terms before creating them.
OK?
Thanks, Pascale

Sorry - should have kept track of this fix.  If the aim is to avoid the annoying neuron-part inference, then we just need a part relationship to neuron - then we don't have to worry about whether PSDs exist in axo-axonic and axo-somatic synapses, or what do in cases where neuron projection identify is unclear.
I'll change the name back, adding neuronal postsynaptic density as an exact synonym and adding subClassOf part_of some neuron.
Note - we need to distinguish this from 'muscle cell postsynaptic density', but this term itself is a bit dubious. In almost all cases the term PSD is used to refer to the structure in neurons; IIRC the use for muscle is in a few Drosophila papers and is not really standard.  For this reason, keeping the name post synaptic density for the 'neuronal' variety makes sense I think. We might even want to change 'muscle cell postsynaptic density' into 'muscle cell postsynaptic specialization.


[opencv] Hidden dependency on FLANN

From https://github.com/Microsoft/vcpkg/pull/1205#issuecomment-308566621

the opencv_flann module is mandatory to build some other opencv modules and it cannot be replaced with the external FLANN package. Disabling the opencv_flann module will disable most of opencv modules


A wild bug appeared!

why when skip the song it take time to play next song?

no? it depends on either your connection or your lavalink server. It's still fast on my side
https://user-images.githubusercontent.com/60313514/133346135-e2cda513-0f53-4edf-b597-8611ec1b76d1.mp4

closing due to inactivity


Add support for custom tokenization in ktrain ner models

Add support for custom tokenization in predict function of ktrain ner models. tokenization performed by  predict function uses all special character which breaks entities like date-time , mobile-number with extension, emailId into multiple parts which is not desirable.

I am also facing the same issue. Can i create a pull request to resolve this?

https://github.com/amaiya/ktrain/blob/53d79d9504ef2da9e8bb96a46e2fa67c607641f9/ktrain/text/textutils.py#L306
This is the function creating issue I think. It tokenize the word based on space and special characters which is a bad idea if we have date, email id as classes in classifier. During training process, It allow sentence to have own tokenization. but in predict function it tokenize word based on set of characters. it will be better if we can configure those characters based on our need. thank you so much. I hope you will close the issue asap.

OK - we can add a parameter to NERPredictor.predict method to accept a custom tokenization callable in which case it will be used instead of the default tokenization.
@loge1998  Yes.  If you want to create a pull request for this, I'll merge.

If thats the case, we also have to add parameter to preproc.preprocess function

#223 created a PR for this issue. Please check and merge it

Thanks @loge1998 .  This feature is now available in v0.19.3.


Update the example to use a Telemetry Provider

update packages
converted class components to functions
fixed test
Purpose

Change the usage of the app insights telemetry to use a provider pattern rather than that of the higher-order-component (HOC)
Does this introduce a breaking change?

[ ] Yes
[x] No

Pull Request Type
What kind of change does this Pull Request introduce?

[ ] Bugfix
[x] Feature
[ ] Code style update (formatting, local variables)
[x] Refactoring (no functional changes, no api changes)
[ ] Documentation content changes
[ ] Other... Please describe:

How to Test

Get the code

git clone [repo-address]
cd [repo-name]
git checkout [branch-name]
npm install

Test the code

In the terminal, npm test
In your browser, npm start
What to Check
Verify that the following are valid

the test passes
the repo still has the same behavior when run in the browser (functionality & tracking)

 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.:x: gregjoeval sign nowYou have signed the CLA already but the status is still pending? Let us recheck it.


Inclusion of safe array sum avoiding "unsupported operand types"

Inclusion of safe array sum avoiding "unsupported operand types"

What version of PHP are you running?

Does https://github.com/guzzle/guzzle/pull/2910 fix the issue?

PHP 7.4.9

It may still not fix, I believe that by casting to array we are preventing it and making sure it won't cause the problem...

Can you please test that change. I am not merging code that casts things that are already arrays.

Does #2910 fix the issue?
It may still not fix, I believe that by casting to array we are preventing it and making sure it won't cause the problem...

Você pode testar essa mudança. Não estou mesclando código que converte coisas que já são matrizes.

If they were already matrices I wouldn't break my application, but you have the power if you don't want to develop defensively, that's ok :D

There's a difference between defensive and impossible.

Existe uma diferença entre defensivo e impossível.

It's not impossible

And that's because of this->config being null, and not any of the changes you made. Please confirm #2910 fixes your issue.

E isso por this->configser nulo, e não por nenhuma das alterações que você fez. Confirme se o # 2910 corrige o seu problema.

This is the danger of using arrays for everything, I believe this casting would not affect the application at all, whether in performance or anything else, but that's ok

Please try the fix. This conversation is not helpful.


Errors are not quoted properly in XML log

Traceback (most recent call last):
  File "vistrails/gui/collection/workspace.py", line 924, in item_selected
    open_vistrail(locator, **args)
  File "vistrails/gui/vistrails_window.py", line 1764, in open_vistrail_without_prompt
    view = self.open_vistrail(locator, version, is_abstraction)
  File "vistrails/gui/vistrails_window.py", line 1653, in open_vistrail
    is_abstraction):
  File "vistrails/core/application.py", line 408, in open_vistrail
    *loaded_objs[1:])
  File "vistrails/gui/application.py", line 307, in add_vistrail
    return self.builderWindow.add_vistrail(*objs)
  File "vistrails/gui/vistrails_window.py", line 1613, in add_vistrail
    view = self.create_view(*objs)
  File "vistrails/gui/vistrails_window.py", line 947, in create_view
    thumbnail_files, mashups)
  File "vistrails/gui/vistrail_view.py", line 123, in __init__
    self.set_controller(self.controller)
  File "vistrails/gui/vistrail_view.py", line 202, in set_controller
    view.set_controller(controller)
  File "vistrails/gui/collection/vis_log.py", line 460, in set_controller
    for e in self.controller.read_log().workflow_execs:
  File "vistrails/core/vistrail/controller.py", line 3817, in read_log
    return self.vistrail.get_persisted_log()
  File "vistrails/core/vistrail/vistrail.py", line 1034, in get_persisted_log
    log = open_log_from_xml(self.db_log_filename, True)
  File "vistrails/db/services/io.py", line 1196, in open_log_from_xml
    parser.feed(f.read())
cElementTree.ParseError: not well-formed (invalid token): line 254, column 81

Looking at the XML file, there are \x01 bytes in there. They should be escaped in XML.

Can't reproduce right now


No tooltip text for edit icon

There is no tooltip text for edit icon in message view like there are for other icons.

@zulipbot claim

@AasthaGupta This is a duplicate of #7745, and there is already a PR open for that issue to close it. You should probably close your PR as well.


Boolification

https://github.com/satoshinm/NetCraft/issues/109

Completed adding bools everywhere, or at least anywhere I could find int being used as a boolean. This is not without a downside: other forks of Craft may be difficult to merge back in, incorporating their changes. Can't go back easily.
But it does make the code significantly clearer, especially as parameters are passed in (is 0 meant to be an ordinal number, or false? no longer need to guess. same with 1 vs true), and in function return values (bool will always be one of two values, such as in bool hit_test_face, it returns true if the hit test was successful, not the block type hit, unlike int hit_test!)


Use a mask for verifying Attributes

Previously Attributes was an equality verifier, meaning all the
bits had to match. Now Attributes is provided a mask to limit
which bits will be compared.  This is meant to support a QE(quoting
enclave) report body and its use of a mask for Attributes

Motivation

Current dependencies on/for this PR:

main

PR #108

PR #109

PR #110   👈

This comment was auto-generated by Graphite.

@nick-mobilecoin started a stack merge that includes this pull request via Graphite.

@nick-mobilecoin merged this pull request with Graphite.


Add URL host to the transport web worker logs

Right now we only log the endpoint once it has been successfully fetched:
INFO[0000] {w:4, worker:web, d:77.5965ms, m:web request completed: /fdsnws/event/1/query}

We want to also add the host before the request is made. It should look something like this:
INFO[0000] {w:4, worker:web,  m:web request host: https://earthquake.usgs.gov }

Hello @prestonvasquez , I can work on this.
From what I understood we need to make changes to the tools.LogFormatter and introduce host.

@PankhudiB I was thinking of embedding it the message, but I like your suggestion better!

@prestonvasquez please close the issue since it is done


Beta-7 different outputs on GPU and CPU regression

OS: Windows
DL4J: deeplearning4j 1.0.0-beta7
CUDA: 10.2
cuDNN: 7.6
Issue: The results of regression (eg. BostonHousePricePrediction.java) running on GPU are not same as results running on CPU. Attached are the screenshot of the results.
Original Issue from: https://github.com/CertifaiAI/TrainingLabs/issues/124
CPU:
Using CPU as backend:

Result running on CPU backend:

GPU:
Using GPU as backend:

Result running on GPU backend:

Closing as duplicate in favor of: https://github.com/eclipse/deeplearning4j/issues/9142 for a workaround please pre save the data on cpu and avoid shuffle operations on gpu. This will be added as a known issue so people know what the work around is.

#9472


[FEATURE] Reduce IAM permissions for CreateParallelCluster lambda

Is your feature request related to a problem? Please describe.
The attached policy grants all permissions.
This needs to be reduced the the minimum set required to create, update, and manage the clusters.

Resolved in release v2.1.0.


chore(NODE-6578): add misc tooling to ZSTD repo

Description
What is changing?
This PR contains a smattering of tooling we'll need for the SSDLC release flow (coming in the next PR):

A release please config and manifest has been added.
A new build action has been added, that builds the bindings and uploads the to GHA artifact storage (for use in the release action later, coming in a follow-up PR)
CodeQL has been enabled and configured for both C++ and JS.
A new SBOM file has been generated, which includes the correct version of zstd as our only bundled dependency.
The zstd C library version now is specified in the package.json and the install scripts reads the package file to install the correct version of zstd.

Is there new documentation needed for these changes?
What is the motivation for this change?

Double check the following

[ ] Ran npm run format:js && npm run format:rs script
[ ] Self-review completed using the steps outlined here
[ ] PR title follows the correct format: type(NODE-xxxx)[!]: description

Example: feat(NODE-1234)!: rewriting everything in coffeescript

[ ] Changes are covered by tests
[ ] New TODOs have a related JIRA ticket

Warning: 0:0 warning File ignored by default.  I'm seeing github post a warning on the .release-please-manifest.json file

We don't lint json files in our other repos.  I set this up when I set up eslint and mocha - you pointed out they were malformed and we decided to lint them.


Reference web console in docs instead of dashboard

Description
This PR replaces the references to the inmanta dashboard with references to the web-console. The following pages were not updated:

The dashboard documentation: These pages have a deprecation note now.
The quickstart: It's currently not possible to execute the quickstart via the web-console since it doesn't have a support to trigger a compile. I will create a ticket for this and mention that the core documentation should be updated as soon as this is supported.

closes #3648
Self Check:

[x] Attached issue to pull request
[x] Changelog entry
[ ] Type annotations are present
[ ] Code is clear and sufficiently documented
[ ] No (preventable) type errors (check using make mypy or make mypy-diff)
[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[x] Correct, in line with design
[x] End user documentation is included or an issue is created for end-user documentation~~

Reviewer Checklist:

[ ] Sufficient test cases (reproduces the bug/tests the requested feature)
[ ] Code is clear and sufficiently documented
[ ] Correct, in line with design

Processing this pull request

Merged into branches master in 6b6537d45c28e82dadd0a701718f42b6d1df9158


nginx: RBAC for leader election

With the new leader election the role also needs create and update access to configmaps in the nginx-ingress namespace.
(Related to #747)

I wouldn't expect it to have access to all configmaps, just the one used for leader election

@liggitt oh, I didn't know that was possible:
resourceNames: ["ingress-controller-leader-nginx"]

@abh @liggitt Maybe you want to have a look at the PR.


Interface improvements

resolves #123

notes

there is still something broken with the hide page button.  tried to merge properly and fix, think i am passing all the right attributes but there is a server side error happening.
renaming from pages to bookmarks has happened only on the frontend and in the frontend code, hasn't happened on the backend.


Update grunt-nodemon, livereload only when server has restarted.

When a change is detected on server JS and HTML files, grunt-watch livereload the site but nodemon also restart the server and cause white screen on web browser.
The grunt-nodemon readme contains an exemple to create a ".rebooted" file that change when the server has restarted. Then livereload will be executed by watching only the ".rebooted" file.

This PR should be against 0.4.

You mean on the 0.4.0 branch of Mean. Why ?

Create a PR against the 0.4.0 branch, because we are releasing 0.4.0 soon.


Migrating to user-id's instead of usernames

As announced months before, Twitch now identifies users by a unique ID instead of their name.
Today, Twitch decided to make a breaking change before v3 API is EOL by allowing full username changes. https://blog.twitch.tv/the-hype-is-real-name-changes-are-here-c629c4697154?sf58352669=1#.7fb8dssk7
So to truly identify users you must now use the unique ID instead of the name, but tmi.js offers no possibility for that.
Apparently, user-id is missing for a lot of IRC messages, but maybe it should be pre-maturely implemented for every event(?)
https://discuss.dev.twitch.tv/t/username-changes-identifying-users/9373/20

tmi.js if giving you as much data as it receives. You have to supplement the rest.

Well, e.g. as you can see the subanniversary event has a user-id emitted by IRC
https://github.com/tmijs/tmi.js/blob/e680e2b32f38f8c58469c182d6667a83a9d8f988/test/events.js#L189
There is no way to get that tough from the resub event
https://docs.tmijs.org/v1.1.2/Events.html#subscription

My ideal of this situation is that we change it so that every event emits an object instead. Then you just destruct for what you need:
client.on('subanniversary', ({ channel, message, userstate, months }) => {

});

Then it doesn't matter what our order of arguments are.

Sounds perfect to me. Futureproof and simple to adjust to


feat(composer): require PHP 5.3.29 (PHP 5.3.x EOL version) minimum

With PHP 5.3.x EOL as of 8/14/2014 it is time to remove support for PHP 5.3.x versions prior to the last version.
https://secure.php.net/releases/5_3_29.php

given that composer defines the platform php version to 5.3.9 (its min version), it means it will never use 1.6.1+ versions and so won't have bugfixes.
So I suggest reverting the requirement change (there is nothing actually incompatible with older PHP versions in the library AFAICT)

Hey folks,
PHP 5.3 is long gone and anything less than 5.3.30 isn't recommended for anyone.
Considering that you, the users, are consuming this package on older platforms, I recommend simply skipping the platform requirements during install:
http://stackoverflow.com/questions/26165101/skip-composer-php-requirement

@bighappyface I'm talking about the building of the Composer dependencies themselves, which target the older version.
and the composer requirement is not about a recommended version. It is about a required version. Most projects I maintained are compatible with 5.3+ or 5.4+, but the recommended version is still to use the latest (I would recommend 5.6 or 7 for now, at the latest patch version of course).

@stof Checkout https://github.com/justinrainbow/json-schema/pull/231
We are good to go.


Plugin architecture for the transform panel, add babel live coding support

Creating a new pull request because I changed branches on my fork.
See #29

Finally got around doing this...

holy shit!

Let me know if it doesn't work :P


Add TabBarController

Add TabBarController
Add TabBarItems - Home, Social, Settings
Create MainViewController - gray background
Create SocialViewController - teal background
Create SettingsViewController - cyan background

We can point this to develop branch instead :). main branch typically symbolizes the code that is currently in production. We can merge into main earlier but maybe we do that after certain milestones or after manually testing a couple features that we've added

Closing to make changes to spacing, etc.


Sorting order of issues in SCM commit box is off

Steps to Reproduce:

configure this settings

"githubIssues.queries": [
    {
        "label": "My Issues",
        "query": "assignee:bpasero sort:updated-desc is:open"
    }
]

open a multi root workspace with vscode and vscode-docs
make a change to a file in vscode repo and press Ctrl+Space in commit box
compare sorting order in suggest widget compared to sorting order in GH issues list

For example, "No editor symbols when open files" is the last entry in suggest but the third entry on GH.


Scorecards collector/certifier

Have a scorecards collector/certifier that based on a list of repos or git commit IDs will obtain score cards information and emit scorecard documents.

Be configured with a list of repos/commit IDs to collect from
Either on a poll or watch basis, collect information from git repos
Emit scorecard information

This issue is to create a an implementation of the Certifier interface, which will find artifacts within the graph, run scorecards on their repos/hash targets and produce the emit the scorecards data for ingestion.
This is similar to the OSV certifier, with the difference that:

Instead of querying for packages, we are instead querying for artifact nodes which name property starts with "git+". This will  be part of the QueryComponents interface. This will involve sub-steps including

Changing the QueryComponents interface to be able to return assembler.ArtifactNode as well
Implement a Components interface similar to the one for root packages, but instead returns the artifact nodes which represent source repos (heuristically by name starting with "git+")

Instead of querying OSV for details of the vulnerabilities, invoke the scorecards binary to get the scorecards output in JSON, and construct the document for scorecards (example), and emit it to the doc channel as implementation of the Certify function
Create a guacone command called scorecards which will be almost an exact copy of the one for OSV certifier, which can be used for testing purposes.

The out come is that let's say the graph has 3 artifact nodes
Artifact{ name:"git+github.com/guacsec/guac", digest: "sha1:fe83870c942cbe905c948bae46344f5d15b0622f"}
Artifact{ name:"git+github.com/guacsec/guac", digest: "sha1:7985af2e2375fee1f5d9cb28dff97ce8a1e146a5"}
Artifact{ name:"git+github.com/kubernetes/kubernetes", digest: "sha1:afe936fee5229cfd3d9831f439e8feab98a3fcad"}

It should end up running scorecards on the 3 targets
scorecard --repo=github.com/guacsec/guac --commit=fe83870c942cbe905c948bae46344f5d15b0622f
...

And then emit the scorecards JSON documents to the doc channel (and it will be ingested in GUAC)
The PRs should pretty much follow closely something like #245 with the changes as mentioned above.

@nathannaveen Thanks for all your PRs and helping out the project! Would this issue be of interest to you? If so, i can spend some time to flesh out some details around a design.

@nathannaveen Thanks for all your PRs and helping out the project! Would this issue be of interest to you? If so, i can spend some time to flesh out some details around a design.

Yes, that would be interesting. I'm new to this project, so I might need some guidance. Thanks!

hi @nathannaveen ! I've added more details on the issue. Let me know if you have more questions or if anything else i can do to clarify what the issue is asking for!

Hi @lumjjb, thanks for the details! I have a few clarifications.

When you say:

"Changing the QueryComponents interface to be able to return assembler.ArtifactNode as well"

Do you mean to include another function in QueryComponents that returns a assembler.ArtifactNode? Would it be like GetAssembler(ctx context.Context, compChan chan<- *processor.Document) error?
Including this additional function to QueryComponents will create breaking changes in root_package.go and certify_test.go.
When you say:

"Implement a Components interface similar to the one for root packages, but instead returns the artifact nodes which represent source repos (heuristically by name starting with "git+")"

Do you mean to create something like:
func NewScorecardQuery(repo string) certifier.QueryComponents {
	return &packageQuery{
		client: repo,
	}
}

Do we want to get scorecard using a library, or a binary? As far as I can see the library isn't supported, https://github.com/guacsec/guac/pull/127#issuecomment-1270885495. If we are using binary where do we store the scorecard binary?
Scorecard also has a REST API and a BigQuery data set, have we considered using these as well? Is there a reason not to, if so, why?
Looks like there is work being done to query the BigQuery data set https://github.com/guacsec/guac/issues/214 we could potentially use some of that work to query scorecard data.

What does the certifier file do (https://github.com/guacsec/guac/blob/main/cmd/guacone/cmd/certifier.go)? I don't see the certifier file using OSV.

One of the things that can be done is to change to use an interface{} instead:
type Certifier interface {
	// CertifyComponent takes the type Component and recursively scans each dependency
	// aggregating the results for the top/root level artifact. As attestation documents are generated
	// they are push to the docChannel to be ingested
	CertifyComponent(ctx context.Context, rootComponent interface{}, docChannel chan<- *processor.Document) error
}

type QueryComponents interface {
	// GetComponents runs as a goroutine to get the components that will be certified by the Certifier interface
	GetComponents(ctx context.Context, compChan chan<- interface{}) error
}

and use type assertion on osv.go
// CertifyComponent takes in the root component from the gauc database and does a recursive scan
// to generate vulnerability attestations
func (o *osvCertifier) CertifyComponent(ctx context.Context, rootComponent interface{}, docChannel chan<- *processor.Document) error {
	o.rootComponents = rootComponent.(*certifier.Component)
	_, err := o.certifyHelper(ctx, o.rootComponents, docChannel)
	if err != nil {
		return err
	}
	return nil
}

This will make it generic and can be used for anything.

When you say:
"Implement a Components interface similar to the one for root packages, but instead returns the artifact nodes which represent source repos (heuristically by name starting with "git+")"
Do you mean to create something like:
func NewScorecardQuery(repo string) certifier.QueryComponents {
	return &packageQuery{
		client: repo,
	}
}

Yes that is correct.

Thanks for your suggesions!
Scorecard also needs a github API token which can be passed to NewScorecardQuery().

Created a PR to make the certifier generic so it will make it easier for you to integrate scorecard.

pr #340 merged. Should make it easier to integrate the scorecard collector :)

@pxp928 Thanks!
@lumjjb Could you please answer these questions because I am blocked?

Do we want to get scorecard using a library, or a binary? As far as I can see the library isn't supported, https://github.com/guacsec/guac/pull/127#issuecomment-1270885495. If we are using binary where do we store the scorecard binary?
Scorecard also has a REST API and a BigQuery data set, have we considered using these as well? Is there a reason not to, if so, why?

Looks like there is work being done to query the BigQuery data set https://github.com/guacsec/guac/issues/214 we could potentially use some of that work to query scorecard data.

Do we want to get scorecard using a library, or a binary? As far as I can see the library isn't supported, https://github.com/guacsec/guac/pull/127#issuecomment-1270885495. If we are using binary where do we store the scorecard binary?
Scorecard also has a REST API and a BigQuery data set, have we considered using these as well? Is there a reason not to, if so, why?

@naveensrinivasan any thoughts on the best way to implement this for GUAC?

Hi @naveensrinivasan sorry for the delayed response!

Scorecard also has a REST API and a BigQuery data set, have we considered using these as well? Is there a reason not to, if so, why?

The big query data set unfortunately is not complete, and so for the releases we looked at - for example, kubernetes the commits of the releases do not have a row in the dataset. In GUAC's case it needs the precision of the particular commit.
You're right... having it use the binary may be a bit tricky... For now, perhaps let's use the library, and I will follow up with scorecard folks to see if they will be able to keep supporting it going forward.

@lumjjb Thank you, I have started working on it!


Bump hashbrown version

There has a been a new minor version of hashbrown up for some time now.
This commit bumps the dependency version in the cargo.toml to keep the
dependency version up to date.

Coverage remained the same at 89.132% when pulling<PHONE_NUMBER>05f1c1426324c1d5e6052c33f9e48d on mtreinish:bump-hashbrown into 7d889f9a9e172214f0e5380acbe467cccd7a6b7b on Qiskit:master.


Upgrade bundled SIMDe to 0.7.6

Thank you a lot for this. Sorry but I'm not a SIMDe expert, so I'm just checking from time to time and allow the builds to run

Thank you a lot for this. Sorry but I'm not a SIMDe expert, so I'm just checking from time to time and allow the builds to run

No worries! I'll experiment on my fork a bit longer before I push here again

@redtide This should pass now, sorry for the noise! https://github.com/mr-c/sfizz/actions/runs/4918541525/jobs/8785010604

Thank you for the noise!


Machine Code getting change

Hi,
Sometime i have seen that machine code is getting change on the machine. There was no hardware changes done on the machine.
Sometime it get change after restart and sometime it get changes after using function more than twice.
I have found no solution on it as referring the code found that it generate the machine code based on hardware CPU and board id's. but without changing any of it the machine code gets changed.
What i need to check so that it don't get changed?
Thanks & Regards,
Manthan Patel

Hey!
Thanks for letting me know.
Could you please try using Helpers.GetMachineCodePI() method in https://www.nuget.org/packages/Cryptolens.Licensing/. It's in SKM.V3.Methods namespace.
That method uses the result from cmd.exe /C wmic csproduct get uuid instead, which I think should work better.
/Artem

The "Machine Code" used here enumerates the network interfaces prior to generating the machine code and does that without any filtering, same goes for the disk drives, it will also enumerate USB devices. If any of those things change, then your machine code will change. While it may do part of its work, it is rather weak because if you install VMWare for example, a new network interface will be enumerated and the machine code will change rendering the license invalid.


[FLINK-14031][examples][table]Added the blink planner dependency and …

What is the purpose of the change
Added the blink planner dependency and examples which use blink planner to flink-examples-table.
Brief change log

Add the blink planner dependency.
Add examples which use blink planner.

Verifying this change
Manually verified. Ran examples on idea and a local cluster.
Does this pull request potentially affect one of the following parts:

Dependencies (does it add or upgrade a dependency): (yes)
The public API, i.e., is any changed class annotated with @Public(Evolving): (no)
The serializers: (no)
The runtime per-record code paths (performance sensitive): (no)
Anything that affects deployment or recovery: JobManager (and its components), Checkpointing, Yarn/Mesos, ZooKeeper: (no)
The S3 file system connector: (no)

Documentation

Does this pull request introduce a new feature? (no)
If yes, how is the feature documented? (not applicable)

@KurtYoung good idea, I'll update the code,  thank you!

Could you open this pull request against master branch? I don't think this PR should open against 1.9 branch.

Could you open this pull request against master branch? I don't think this PR should open against 1.9 branch.

Because my branch was checked out from 1.9 branch and has so many conflicts with master branch, I think I should close this PR,  check out a new branch from master and open a new PR.

Could you open this pull request against master branch? I don't think this PR should open against 1.9 branch.

Because my branch was checked out from 1.9 branch and has so many conflicts with master branch, I think I should close this PR, check out a new branch from master and open a new PR.

Yes, this is the right way to go.


Add learn-chef for Windows to top-cookbooks test

Add a Windows learn-chef test to the top cookbooks.
@chef/client-core @sersut @jkeiser @tyler-ball

:+1:

:+1:

:+1:


feat: expand mode and the prompt container

To resolve https://github.com/GPTGenius/chatgpt-vercel/issues/49 and https://github.com/GPTGenius/chatgpt-vercel/issues/67

add expand mode for input textarea to enhance the input efficiency
change the prompt dropdown container so that it won't be overflow

Thanks for your Awesome work!


Error after Comfy Update

When loading the graph, the following node types were not found:
Pic2Story Nodes that have failed to load will show as red on the graph.

please update ，using new workflow.

Thank you for the info! I could have thought of that myself, just get the nodes again. But sometimes you're at a loss. Thank you again :-)

Works perfectly


Remove packages, package_dir once setuptools>=61

Starting with setuptools 61.0.0, it will auto-detect packages using the standard src-tree structure. However, ArcGIS Pro 3.0 still includes 58.0.4. Once the default Pro install has a compatible version of setuptools, I vote we drop the packages and package_dir keywords from setupy.py.

With the new pro version out we should see if they bumped it.


GH-15052: [C++][Parquet] Fixing DELTA_BINARY_PACKED when reading only 1

This patch trying to fix https://github.com/apache/arrow/issues/15052 . The problem is mentioned here: https://github.com/apache/arrow/issues/15052#issuecomment-1367486164
When read 1 value, DeltaBitPackDecoder will not call InitBlock, causing it always read last_value_.
Seems the problem is introduced in https://github.com/apache/arrow/pull/10627 and https://github.com/amol-/arrow/commit/d982bedcf5e03d44c01949b192da54a8c1e525d8
I will add some test tonight

Closes: #15052

@tachyonwill I think this patch might fix DELTA_BINARY_PACKED issue, mind take a look?

Retrigger CI because I think the fail is not caused by me, but still it looks like a bug: https://github.com/apache/arrow/actions/runs/3808810467/jobs/6479699758
By the way, is there any method that I can retrigger the CI?

@pitrou Mind take a look here?

@pitrou Mind take a look here?

In a few days certainly :-)

By the way, is there any method that I can retrigger the CI?

Once your first PR is merged CI will start automatically.

oops, I got a
=================================== FAILURES ===================================
______________________ [doctest] pyarrow._fs.PyFileSystem ______________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> gfs = github.GithubFileSystem('apache', 'arrow', sha='ec51aec4d15035f4d9d6a1c4346d0a2b9a37fb75')
UNEXPECTED EXCEPTION: HTTPError('403 Client Error: rate limit exceeded for url: https://api.github.com/repos/apache/arrow/git/trees/ec51aec4d15035f4d9d6a1c4346d0a2b9a37fb75')
Traceback (most recent call last):
  File "/opt/conda/envs/arrow/lib/python3.9/doctest.py", line 1334, in __run
    exec(compile(example.source, filename, "single",
  File "<doctest pyarrow._fs.PyFileSystem[1]>", line 1, in <module>
  File "/opt/conda/envs/arrow/lib/python3.9/site-packages/fsspec/spec.py", line 76, in __call__
    obj = super().__call__(*args, **kwargs)
  File "/opt/conda/envs/arrow/lib/python3.9/site-packages/fsspec/implementations/github.py", line 56, in __init__
    self.ls("")
  File "/opt/conda/envs/arrow/lib/python3.9/site-packages/fsspec/implementations/github.py", line 158, in ls
    r.raise_for_status()
  File "/opt/conda/envs/arrow/lib/python3.9/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 403 Client Error: rate limit exceeded for url: https://api.github.com/repos/apache/arrow/git/trees/ec51aec4d15035f4d9d6a1c4346d0a2b9a37fb75
/opt/conda/envs/arrow/lib/python3.9/site-packages/pyarrow/_fs.cpython-39-x86_64-linux-gnu.so:None: UnexpectedException
=============================== warnings summary ===============================
opt/conda/envs/arrow/lib/python3.9/site-packages/pytest_cython/plugin.py:57
  /opt/conda/envs/arrow/lib/python3.9/site-packages/pytest_cython/plugin.py:57: PytestRemovedIn8Warning: The (fspath: py.path.local) argument to DoctestModule is deprecated. Please use the (path: pathlib.Path) argument instead.
  See https://docs.pytest.org/en/latest/deprecations.html#fspath-argument-for-node-constructors-replaced-with-pathlib-path
    return DoctestModule.from_parent(parent, fspath=path)

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================== short test summary info ============================
SKIPPED [2] opt/conda/envs/arrow/lib/python3.9/site-packages/_pytest/doctest.py:455: all tests skipped by +SKIP option
============= 1 failed, 223 passed, 2 skipped, 1 warning in 8.70s ==============

Seems that maybe we should rerun it?

oops, I got a
[...]
Seems that maybe we should rerun it?

No worries, this is unrelated to his PR.

Well, it would actually be simpler without adding a separate test method... and it would exercise the code more thoroughly as well.

So how can I organize that code? I didn't make it clear. Is it like:
case 1
template <typename Type>
class TestEncodingBase : public ::testing::Test {
 public:
...
 private:
   std::vector<int> small_read_batch_size_;
};

and
TYPED_TEST(TestDeltaBitPackEncoding, SmallBatchRoundTrip) {
  // .. set draws_ 1, 3
  ASSERT_NO_FATAL_FAILURE(this->Execute(1, 1));
  ASSERT_NO_FATAL_FAILURE(this->Execute(1, 2));
  ASSERT_NO_FATAL_FAILURE(this->Execute(2, 2));
  ASSERT_NO_FATAL_FAILURE(this->ExecuteSteps(10, 10));
  ASSERT_NO_FATAL_FAILURE(this->ExecuteSteps(10, 10));
  ASSERT_NO_FATAL_FAILURE(this->ExecuteSteps(1, 10));
}

Or
case 2
template <typename Type>
class TestDeltaBitPackEncoding : public TestEncodingBase<Type> {
 public:
  using c_type = typename Type::c_type;
  static constexpr int TYPE = Type::type_num;
  static constexpr size_t ROUND_TRIP_TIMES = 3;

  void InitReadBatchSizedData(...);
};

Can you help me make it clear? @pitrou

You could have something like:
  const std::vector<int> kBatchSizes = {...};

  void CheckRoundtrip() override {
    auto encoder =
        MakeTypedEncoder<Type>(Encoding::DELTA_BINARY_PACKED, false, descr_.get());
    auto decoder = MakeTypedDecoder<Type>(Encoding::DELTA_BINARY_PACKED, descr_.get());
    for (size_t i = 0; i < ROUND_TRIP_TIMES; ++i) {
      for (const auto batch_size : kBatchSizes} {
        ...

Seems that would causing our testing run a long time, should I make kBatchSizes configurable, and just using another Execute? Like:
template <typename Type>
class TestDeltaBitPackEncoding : public TestEncodingBase<Type> {
 public:
  using c_type = typename Type::c_type;
  static constexpr int TYPE = Type::type_num;
  static constexpr size_t ROUND_TRIP_TIMES = 3;

  void InitReadBatchSizedData(...);
};

  void CheckRoundtrip() override {
    ...
    auto read_batch_sizes = extra_read_batch_sizes;
    read_batch_sizes.push_back(num_values_);
    for (size_t i = 0; i < ROUND_TRIP_TIMES; ++i) {
      for (int read_batch_size: read_batch_sizes) {
        encoder->Put(draws_, num_values_);
        encode_buffer_ = encoder->FlushValues();

        decoder->SetData(num_values_, encode_buffer_->data(),
                         static_cast<int>(encode_buffer_->size()));

        int values_decoded_sum = 0;
        while (values_decoded_sum < num_values_) {
          int values_decoded =
              decoder->Decode(decode_buf_ + values_decoded_sum, read_batch_size);
          values_decoded_sum += values_decoded;
        }
        ASSERT_EQ(num_values_, values_decoded_sum);
        ASSERT_NO_FATAL_FAILURE(VerifyResults<c_type>(decode_buf_, draws_, num_values_));
      }
    }
  }

and
void ExecuteSteps(int nvalues, int repeats, std::vector<int> extra_read_batch_size) {
  this->InitReadBatchSizedData(nvalues, repeats, extra_read_batch_size);
  this->CheckRoundtrip();
}

I'm arguing this, because when I set const std::vector<int> EXTRA_READ_BATCH_SIZES = {1, 10}; and make CheckRoundTrip run it every time, the testing will spend 5 minutes in debug mode, which makes me mad :( ExecuteSteps will only finished in one second

@pitrou comment fixed and merged your patch which could make test faster. Mind take a look?


Improve behavior of Codeium Auth

Summary
Addresses #148 - Codeium Auth will now prompt the user to ask if they want to run curl with the "--ssl-no-revoke" option if a revocation error is detected during authorization and they are using a windows system.
Testing Method and Results
Deleted the config.json file (which contained the stored api key to force a re-auth) and retried authentication on my system. It produced the expected prompt upon the curl ssl error and then successfully authenticated after responding to the prompt with a "y"

This generally looks good to me (nice work!). Do you also need to modify the curl request where we download the language server?: https://github.com/Exafunction/codeium.vim/blob/1715a11fe4882205119810371bb57b5e48509486/autoload/codeium/server.vim#L72

I did not have to modify the other curl requests and everything seems to be working fine, just that one.

Sounds good.


Independent define VTOL takeoff alt and next waypoint alt

Hi
There is an issue with the current takeoff and transition planning for VTOLs in px4. takeoff alt and next waypoint alt have the same value. during the transition, altitude will increase but when transition completed altitude must be decreased to reach the setpoint alt.
it is dangerous and is not good behavior. we must define the alt of the next waypoint independently and a little more.

I think this is specific to your setup having too much lift during the front transition. Can you confirm that this isn't the case?

I think this is specific to your setup having too much lift during the front transition. Can you confirm that this isn't the case?

This problem may occur for any quad plane VTOL drone.

Hi
There is an issue with the current takeoff and transition planning for VTOLs in px4. takeoff alt and next waypoint alt have the same value. during the transition, altitude will increase but when transition completed altitude must be decreased to reach the setpoint alt.
it is dangerous and is not good behavior. we must be able to define the altitude of the next waypoint independently and a little more.

We are facing this behavior during the flight test. Is it possible to let the UAV continue to the next waypoint without altitude correction "if current altitude > transition altitude" after the transition is completed, if not try to increase altitude before going to the next waypoint?

@moreba1 There really shouldn't be that much altitude gain during the transition. If you could provide a log file I can check for the reason of the climb, and maybe help with the tuning.
Nevertheless, I agree that we could change things on the PX4 side (in combination with QGC if required) to improve the UX. E.g. we could neglect the location specified with the VTOL takeoff waypoint, and instead make it accepted once the transition is completed. The vehicle will then directly fly to the first actual waypoint instead of having to fly to the VTOL transition waypoint in fixed-wing first.
Other ideas?

I agree that we could change things on the PX4 side

Thank you. changing code is better than tuning because maybe every platform needs especial tuning for this issue.


 For more details could refer to this link .

refer to issue #7128 in dapr/dapr


Post specifically for people to suggest communities in comments?

Dropping this, I feel like this way of getting communities is ineffective. If someone really needs a specific community in there they can DM one of us on lemmy, comment on the eventual introduction post, suggest it on github, or show up on matrix.


security Issue with bl

Hi, the new version npm tell me there is a security issue :
                   === npm audit security report ===

                             Manual Review
         Some vulnerabilities require your attention to resolve

      Visit https://go.npm.me/audit-guide for additional guidance

Moderate        Memory Exposure
Package         bl
Patched in      >=0.9.5 <1.0.0 || >=1.0.1
Dependency of   level-sublevel
Path            level-sublevel > levelup > bl
More info       https://nodesecurity.io/advisories/596
[!] 1 vulnerability found - Packages audited: 498 (0 dev, 0 optional)
Severity: 1 Moderate

it depends on some stuff in an old version of level, which pulls in bl at an old version. I don't think it would actually be possible to exploit this vulnerability via level-sublevel, and doing the work to update (with tests passing) just to make a warning disappear isn't worth it (since I'm not writing new code that uses level-sublevel anymore) but if you care to make a PR I'd be happy to merge.

@dominictarr Just out of curiosity, what are you using these days for the same functionality without level-sublevel as a dependency? :)

Answering my own question from the previous comment: https://github.com/flumedb/
(See https://github.com/Level/community/issues/14#issuecomment-349120491)

tl;dr is that flume is more flexible with respect to the index designs that can be used, and (also very important) it has much better support for upgrading indexes. For example, if you changed the encoding used in a index, you just bump the index version, and it automatically regenerates the index at startup.

@dominictarr  thanks for the writeup!
but we also got hit by this on vulnerability scans

as I said, I'd be happy to merge a PR that fixes this, but fixing this myself isn't worth my time just to remove a false positive from some security scan thing.


🐞 [BUG] - Working of The Footer Subscribe button

Description
When button is Clicked it should either send some error  or the Success warning but it just shows a loading circle that might me the case that the button logic is not there
Current behaviour
Doesn't return anything other than Loading circle
Expected behaviour
Should Return some Error or Success Warning and should be working
Reproduction steps
1. Go to 'Footer of the Website'
2. Click on 'Subscribe button'
4. See the Loading Circle

Screenshots
Video :
Screencast from 2023-12-13 08-01-54.webm
Logs
No response
Browsers
Chrome
OS
Linux
Are you contributing for a program ?
Other
Code of Conduct

[X] I have read and agree to the Contributing Guidelines of this project.

oh yes! please test it thoroughly by entering email too! and then wrong email

@anmode Like I have Added the Email Authentication Param now they are working fine but when hitting the desired route to back end I think there is some issue because  it is Returning with status code 500. Should I check over there too Or do i just Pull a PR

you can just pull a pR! I'll check it with backend once


Expose AMQP 1.0 via sdkv1

fixes: https://github.com/cloudevents/sdk-go/issues/243
Signed-off-by: Scott Nichols<EMAIL_ADDRESS>

/lgtm


Multi tenant dead letter queue

Implementation of multi tenant dead letter queue. Solves #94

First off, thanks for the effort here, @schananas! Shaping up nicely as it is and you've found some clear solutions to not impose constraints on the user with new APIs, but still provide a multi-tenant experience for the DLQ.
However, I've got quite a number of comments here. Largely JavaDoc, but also a couple conceptual pointers. Let's discuss and/or resolve them before we head on into merging this nice addition.

Hi @smcvb , all issues have been addressed

@schananas, it looks like the JDK8, JDK11, and JDK17 build failed for this PR. Would you mind checking if it breaks main and if it does, fix the predicaments?


Can not move the app window to my second display

Can not move the app window to my second display
i record a gif

Thank you for your report. Till now osu-kps is not designed for multi-monitors because I have only one screen. This issue can be suppressed as a temporary fix by commenting the line in main.cpp below.
https://github.com/UnnamedOrange/osu-kps/blob/b893d1fb75f001ac6bb5951182590dc0096a1e0e/osu-kps/main.cpp#L57

Try out beta-2022.407.


Projectiles from 224 to 360 degrees now look up

Bug fix to the projectiles.c file. The previous logic missed a scenario where projectiles greater than 224 degrees fell into the (angle > 96) condition.

Please check if the PR fulfills these requirements

[x] The commit message follows our guidelines
[ ] Tests for the changes have been added (for bug fixes / features)
[ ] Docs have been added / updated (for bug fixes / features)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Tweak the projectile logic when setting the correct frame based on angle.

What is the current behavior? (You can also link to an open issue here)
Projectiles between 224 and 360 degrees point down.

What is the new behavior (if this is a feature change)?
Projectiles between 224 and 360 degrees point up.

Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
No

Other information:

Ah of course, good spot! Thanks for fixing this


Add Tekton orchestrator

Describe changes
This PR adds an alpha-version of a potential Tekton orchestrator in ZenML.
Missing:

Docs
Example
Tests

Pre-requisites
Please ensure you have done the following:

[x] I have read the CONTRIBUTING.md document.
[ ] If my change requires a change to docs, I have updated the documentation accordingly.
[ ] If I have added an integration, I have updated the integrations table and the corresponding website section.
[ ] I have added tests to cover my changes.

Types of changes

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Other (add details above)

Added the example and docs

@strickvl if you give an approval we can merge!


Scale property not tweening when animation mixing

Hello,
I am implementing a Controller to progressively switch between two animations over a period of time. The two animations are mixing really well for almost all properties (opacity, color, X and Y position), but the scale of the elements jumps directly as I toggle from one item to another.
Here is the code for the controller:
import FlareComponent from 'flare-react';

class FlareController extends FlareComponent.Controller {
  constructor(animations, totalSwitchingTime) {
    super();
    this._totalSwitchingTime = totalSwitchingTime;
    this._animations = animations;
    this._totalAnimationTime = 0;
    this._currentAnimation = null;
    this._pastAnimation = null;
    this._currentSwitchingTime = 0;
  }

  initialize(artboard) {
    const animations = this._animations;
    Object.keys(animations).forEach((key) => {
      this[`_${key}`] = artboard.getAnimation(animations[key].name);
    })
  }

  advance(artboard, elapsed) {
    // advance animations
    this._totalAnimationTime += elapsed; // Time elapsed since component load
    // If no current animation is loaded:
    if (!this._currentAnimation) {
      this._currentAnimation = this._animation1;
    }

    // The mixing value is 1 (show all of the animation without tweening)
    let newMix = 1;

    // If there is a past animation (we are currently switching from one to another)
    if (this._pastAnimation) {
      let animationStage = this._totalAnimationTime % this._pastAnimation.duration; // Where we currently are in the animation
      newMix = this._currentSwitchingTime / this._totalSwitchingTime; //Mix value for new animation is amount of time spent switching so far over total switch time
      const pastMix = 1 - newMix; // Mix value for leaving animation
      this._pastAnimation.apply(animationStage, artboard, pastMix);

      //Add elapsed to the amount of time spent switching so far
      this._currentSwitchingTime += elapsed;

      // If we're almost done switching, remove switching state
      if (pastMix < 0.1) {
        this._pastAnimation = null;
      }
    }

    // Apply mix to current (or incoming) animation
    this._currentAnimation.apply(this._totalAnimationTime % this._currentAnimation.duration, artboard, newMix);
    return true;
  }

  switchToNextAnimation(newAnimation) {
    this._pastAnimation = this._currentAnimation;
    this._currentAnimation = this[`_${newAnimation}`]
    this._currentSwitchingTime = 0;
  }
};

export default FlareController;

And here is the react component implementation:
const ANIMATIONS = {
  animation1: {
    name: "1",
  },
  animation2: {
    name: "2",
  },
};

const MAX_SWITCHING_TIME = 5;
class FlareTest extends Component {
  constructor(props) {
    super(props);
    this._animation = React.createRef();
    this.flareController = new FlareController(ANIMATIONS, MAX_SWITCHING_TIME);
    this.state = {
      paused: false,
    }
  }

  switchAnimation(newAnimation) {
    this.flareController.switchToNextAnimation(newAnimation);
  }

  togglePause() {
    this.setState((prevState) => { return { paused: !prevState.paused } });
  }

  render() {
    return (
      <section>
        <button onClick={() => this.switchAnimation('animation1')}>1</button>
        <button onClick={() => this.switchAnimation('animation2')}>2</button>
        <button onClick={() => this.togglePause()}>{this.state.paused ? 'Start' : 'Pause'}</button>
        <FlareComponent
          ref={this._animation}
          controller={this.flareController}
          width={200}
          height={200}
          file={animationtest}
          transparent
          animateToPosition
          isPaused={this.state.paused}
        />
      </section>
    )
  }
}

export default FlareTest;

I am using this test file: https://www.2dimensions.com/a/justinegagnepain/files/flare/flare-test
As I tween between the two animations (called '1' and '2'), the red and green dots progressively darken in fill color, the white rectangle changes opacity, and the circles do a circle motion to switch between vertical movement and horizontal movement. However, the scale jumps from one to another.
Thank you for your help!

Thanks for the helpful write-up, I think we solved this one over email correct? Where Flare wasn't interpolating the scale values properly. Please let me know if this is still causing problems!

Yes! Thanks for your help, it's all resolved!


generating .aig file

Could you please provide instructions of generating .aig files for larger problem sizes ?
Currently, ../abc/i10.aig is available.
Thanks

If you want to write your own .aig file, you may refer to the aig format spec.
Or, if you just want to have more AIG networks to play around with our tool, you may check out the EPFL benchmarks.

If you want to write your own .aig file, you may refer to the aig format spec.
Or, if you just want to have more AIG networks to play around with our tool, you may check out the EPFL benchmarks.


Issue with jQuery plugins

Laravel Mix Version: 1.4.2
Node Version: 6.11.2
NPM Version: 3.10.10
OS: Windows 7

Description:
There is a problem with connecting and using jQuery plugins (Owl Carousel 2). The plugin is installed by npm, it gives an error when used

I tried to solve it using the code below, but the problem is still here.
mix.autoload({
        jquery: ['$', 'window.jQuery']
    })
    .js('resources/assets/js/app.js', 'public/js')
    .version()
    .sourceMaps();

My package.json file

In plugin's github says

but if i do this in my app.js I have an error

Steps To Reproduce:
Install clean laravel 5.5 project, execute composer install && npm install, make npm install --save owl.carousel. In your welcome.blade.php and app.js create a basic example from basic demo. Make npm run watch or npm run dev or just fork it.

I'm curious as to why you are doing your third import like that.
Couldn't you just do import "owl.carousel" ?

Of course, I can do so import 'owl.carousel'.

And here is the result.

@alexelev You probably need to play around with something like this
window.owlCarousel = require('owl.carousel')

I have this problem too, how can add our external js files (jquery plugins and ...) in the vue project?
Should it be add in main.html? or another way ( bootstrap.js => how? ) , can anyone help?


feat: 🎸 allow rest api to use host.docker.internal on linux

Description
on linux the domain needs to be explicitly enabled
Breaking Changes
JIRA Link
Needed for DA-376
Checklist

[ ] Updated the Readme.md (if required) ?

We use this in SubQuery docker compose already

:tada: This PR is included in version 5.4.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release
v5.4.0
v5.4.0

Your semantic-release bot :package::rocket:


Update UploadFile.svelte

• Removed the border radius from the images parent div to the image itself
• Removed the full width from the image and set a max height for desktop and mobile to reduce the need to scroll ( longer service requests will still need scrolling)
• Added flexbox to center the image in its parent div

The other files will be
ServiceRequestDetailsForm.svelte
ReviewServiceRequest.svelte


Allow custom HTTP headers on registration and login

Is your feature request related to a problem? Please describe.
We currently run federated servers for a very vulnerable audience.
We want to be a good citizen in the fediverse, so we want to stop spammers from using our
systems.
The currently available solutions have the following problems for us:

We don't want to sell our audience to Google via Recaptcha.
They're not English speakers, might not even understand latin scripture, therefore will have problems filling that captcha anyway.
We don't want to make them give us any identifying things like phone numbers or mail addresses to keep them safe.

Describe the solution you'd like
In order to sort out spam bots on our servers, we like our client apps to send an API key
on registration via HTTP headers.
We're not interested in supporting other clients than our own, but we want to stay federated.
I'll send a PR with the code changes we need to make this happen.
Describe alternatives you've considered
We'd really hate to maintain patches on our own.
Other workarounds would need to make use of reflection (aka Objective-C-KVO) and a bunch of code duplication.
Another idea would be to add proprietary steps to the registration process. However, it seems, as pluggable, as the API design looks, Synapse isn't actually that pluggable in that regard.
Considering the imminent threat with spam bots, HTTP headers seem like a way quicker and more viable solution.

Hi @tladesignz, sorry about the delay, just looking into your issues now. Does the following setting fix this issue for you? https://github.com/matrix-org/matrix-ios-sdk/blob/d1b13303e281b9b7c59dff1205e7f13be53e776a/MatrixSDK/MXSDKOptions.h#L149

Thank you @pixlwave! I'll investigate this week and let you know!

@pixlwave, sorry for the delay.
Ok. That's quite interesting.
It seems to work.
However, I have no clue, why.
This option is only used in 2 places:
https://github.com/matrix-org/matrix-ios-sdk/blob/develop/MatrixSDK/Utils/MXHTTPClient.m#L663-L683
https://github.com/matrix-org/matrix-ios-sdk/blob/develop/MatrixSDK/Utils/Media/MXMediaLoader.m#L116-L151
[MXHTTPClient setRequestParametersInJSON:] seems not to get used anywhere.
How do these headers end up in every request?
And what's the analogon in the Android SDK2?

@tladesignz In the HTTP client it's set via the property in the init here: https://github.com/matrix-org/matrix-ios-sdk/blob/b094389f528604b54865f7e42c56f4d34eb81291/MatrixSDK/Utils/MXHTTPClient.m#L127

@tladesignz In the HTTP client it's set via the property in the init here:
https://github.com/matrix-org/matrix-ios-sdk/blob/b094389f528604b54865f7e42c56f4d34eb81291/MatrixSDK/Utils/MXHTTPClient.m#L127

Aaaah. Excellently hidden! 😜 Thank you very much! Ok, so I'll close this issue and PR. It's obviously unnecessary.

Re on Android, I've been told

Not exactly in API. But you can add an interceptor (like the access token interceptor).

I hope this makes sense (I'm 100% uninformed on Kotlin 😅)

Oooh-ohh. I was afraid, that's going to be it. I already researched this once:
https://gitlab.com/keanuapp/keanuapp-ios/-/issues/236#note_645003296
I guess, I'll have to have a talk with your Android colleagues.
Thank you very much for your support, @pixlwave!

https://github.com/vector-im/element-android/issues/4724


AttributeError: 'NoneType' object has no attribute 'encode'

Hey,
Thanks for your utility!
I faced off some problem.
Next page to fetch from the API? Yes.
gdata-backup//a/domain.com/wiki/testovaa-stranica/fdg/dsfh/1.html (Entity - announcementspage)
gdata-backup//a/domain.com/wiki/testovaa-stranica/fdg/dsfh/__meta/1.txt (Meta - announcementspage)
gdata-backup//feeds/content/domain.com/wiki/1298546007443993809/1121744646650675806.txt (Entity - listitem)
gdata-backup//feeds/content/domain.com/wiki/1298546007443993809/__meta/1121744646650675806.txt (Meta - listitem)
gdata-backup//feeds/content/domain.com/wiki/8021790685155168024/1448610017716212498.txt (Entity - listitem)
gdata-backup//feeds/content/domain.com/wiki/8021790685155168024/__meta/1448610017716212498.txt (Meta - listitem)
gdata-backup//feeds/content/domain.com/wiki/8021790685155168024/1894479626184834421.txt (Entity - listitem)
gdata-backup//feeds/content/domain.com/wiki/8021790685155168024/__meta/1894479626184834421.txt (Meta - listitem)
Traceback (most recent call last):
File "/home/user/backup/google-sites-backup//backup.py", line 688, in
main()
File "/home/user/backup/google-sites-backup//backup.py", line 685, in main
backup.Run()
File "/home/user/backup/google-sites-backup//backup.py", line 677, in Run
id_to_pub_href = self.ProcessFeedEntries(destdir) # HTTP transfers
File "/home/user/backup/google-sites-backup//backup.py", line 556, in ProcessFeedEntries
self.DumpWebAttachment(entry, out)
File "/home/user/backup/google-sites-backup//backup.py", line 374, in DumpWebAttachment
entry.summary.text.encode('utf-8'), entry.content.src.encode('utf-8')
AttributeError: 'NoneType' object has no attribute 'encode'
Could you please help me with that?

Hi Aleks,
Can you provide the debug files which are located in the "__debug" root folder? Please archive them using ZIP, GZIP, etc. and attach them here.
If the website is a private one, you can send them directly to my email, which you can find at http://blog.famzah.net/about/
If none of these options work, I'll modify the backup script to dump the entry where the failure occurs. I should probably do this anyway, but having your debug data locally will speed up the debugging process.

It's a private site. I sent debug info by email.

I believe this should have been fixed now. Please test again and report the outcome. Thanks.

"Moving list entries into their parent pages...
All done."
Thank you!


update the repo name in the package.json for proper link on npm

I noticed that the link from npm's site to this git repo was wrong, thus getting a 404 for the repo,
https://www.npmjs.com/package/keycloak-auth-utils

@lholmquist thank you, landed


Other filters?

Very interesting project, thank you. But can we do a filter to make nose smaller?

Of course, specially designed face and nose landmark models can be used for this purpose.

Thanks. Using mediapipe we can get nose landmarks and mesh. But what to do with it to make it look smaller?

You will move and relocate this landmarks for it. It will not looked professiona but it's a start

Well, it's not just to change the coordinates of landmakrs. It's moving the nose texture along with it. How to do that? Do you have any examples?

I haven't worked on this kind of project and so I don't have an example. Maybe I will do a project in the future, but now I have two different project ideas in my mind. I want to share them before the end of the month.


Add LICENSE symlinks

Without this, cargo publish will upload a tarball that has no LICENSE file. This in turn makes the get_rust_pkg.py script in Android error out when trying to import the crate to AOSP.
The symlinks is all that is needed: Cargo will automatically pack up the content (not the symlink) when publishing.

I tested this with
cargo publish --dry-run -p googletest

and then inspected target/package/googletest-0.8.0.


Search Albums by year

Allow a year range to be specified
All albums matching will be returned

Fixed with 8ac0ef0
Note this capability is handled by jquery in the frontend


Attachments

Is it possible to use Nunit method AddTestAttachment to have attachements in allure report?

@callmenoob
Do you still have questions?

no thanks


I don't know how to solve the problem

Hello,very like your template.
But I want to change the title,I don't know where is the modification,I hope you can help me,Thank you very much!!!

@isRaining Open _config.yml file present in the root directory and inside it you will find
title: Gravity
email<EMAIL_ADDRESS>description: The Liberal Jekyll Theme
baseurl: "" # the subpath of your site, e.g. /blog
url: "http://yourdomain.com" # the base hostname & protocol for your site
twitter_username: hemang_kumar
github_username:  hemangsk

# Build settings
markdown: kramdown

You can change the corresponding values to your desired values. Please feel free to get in touch in case you get stuck anywhere 😄
Happy Coding!


Radium 0.18.2 introduces babel-register error

I can't pretend to understand why, but my latest npm install updated Radium to 0.18.2, which led to this error:
TypeError: Super expression must either be null or a function, not undefined
    at _inherits (/var/app/current/node_modules/radium/lib/components/style.js:25:113)
    at /var/app/current/node_modules/radium/lib/components/style.js:28:3
    at Object.<anonymous> (/var/app/current/node_modules/radium/lib/components/style.js:92:2)
    at Module._compile (module.js:570:32)
    at Module._extensions..js (module.js:579:10)
    at Object.require.extensions.(anonymous function) [as .js] (/var/app/current/node_modules/babel-register/lib/node.js:154:7)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)

Maybe someone smarter than me can make sense of that.

Which version of React are you using?
I don't have a deep understanding of recent changes and such, but that translates to:
// lib
var Style = (_temp = _class = function (_PureComponent) {
  _inherits(Style, _PureComponent);

// src
import React, {PropTypes, PureComponent} from 'react';

class Style extends PureComponent {

And it looks like maybe React.PureComponent was added in 15.3? (https://60devs.com/pure-component-in-react.html)

Ah, thank you. Indeed, I am using React Version 15.2.1. I guess I've grown used to ignoring some of those peer compatibility warnings from npm. I will close this issue.


Make in-app notifications audible

It would be nice to add sound when in-app notifications come for a stream with audibleNotifications set as true, user @-mention or any private message.

@Sam1301 are you working on this?

Nope, you can work on it :) Also since now we use zulipbot to assign ourself issues you can see if an issue is being worked on by viewing its assignments or the in progress label :)

@zulipbot claim-issue

@harshitagupta30 have you claimed this issue? I can see that nobody is assigned yet. Maybe try again to claim the task.

Can I claim this issue and work on it?

@Subhankar29 sure! :+1:

@zulipbot claim-issue

@zulipbot close-issue

Hello @Subhankar29, @meghalagrawal, you claimed this issue to work on it, but this issue and any referenced pull requests haven't been updated for a week. Are you still working on this issue?
If so, please update this issue by leaving a comment on this issue to let me know that you're still working on it. Otherwise, I'll automatically remove you from this issue in 3 days.
If you've decided to work on something else, simply comment @zulipbot abandon so that someone else can claim it and continue from where you left off.
Thank you for your valuable contributions to Zulip!