Intent is null in GCMBaseIntentService.onHandleIntent

Original issue 20 created by google on 2013-04-04T06:39:06.000Z:
I rarely saw this error in my app.
java.lang.NullPointerException
at com.google.android.gcm.GCMBaseIntentService.onHandleIntent(GCMBaseIntentService.java:194)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:65)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loop(Looper.java:137)
at android.os.HandlerThread.run(HandlerThread.java:60)
It seems Intent is null in onHandleIntent.
I heard intent could be null with START_STICKY but IntentService doesn't use this.
How could this happen? Any idea?

Comment #1 originally posted by google on 2013-07-08T15:23:10.000Z:
Git this bug too.
It seems (from source code) that action is null: https://code.google.com/p/gcm/source/browse/gcm-client/src/com/google/android/gcm/GCMBaseIntentService.java?r=3f8285f108caecf9ee040cdadda3a024b81f7e3e# 194
This bug seems to happen on Android 4.x.x versions
Here's some datas: http://ge.tt/3CNt5Fl?c

Comment #2 originally posted by google on 2013-08-22T07:24:10.000Z:
You might get this if you extends the GCMBaseIntentService and call super.onStartCommand(Intent, int int).


No postprocessing step

After the predictions are collected in the preds list, no postprocessing is done to transform the normalized predictions back to the original scale of the input data. The inverse_transform method in any of the dataset classes is never used. When I tried to implement it myself, the scale was incorrect. Can you update the code to correctly implement this?

Hi, you may find this issue helpful: https://github.com/thuml/Autoformer/issues/6


Querying Vogen value types throws exception

When using the new value type integration in Marten an exception is thrown when trying to query the value.
Reproduction can be seen here

@nkosi23 Marten supports using the logical Where() clause in any kind of First/Single/OrDefault operator.

The existing value type support was assuming that the value types would be struct. The record usage is breaking it for now. I can work around that I think

Okay, so this was a couple different things:

Marten was assuming that all the value types were going to be struct, so I had to make it work around that a little bit
The LINQ support had to be explicitly taught how to do ValueType == SimpleType comparisons in the SQL generation


Unrecognized resource type: application

Hi all!
I'm getting this error when I'm running
$account = $client->getAccount($wallet);  $address = $client->getAccountAddress($account,$address_id);  $transactionaddr = $client->getAddressTransactions($address);
ERROR : Unrecognized resource type: application
I have tested getApplication() and had no luck so far.
It looks like the API can't check the transactions from Coinbase mobile Apps.
Am I doing something wrong?
Thanks in advance for your help!

Thanks for bringing this bug to our attention. It should be fixed as of version 2.4.0 on Github and Packagist


Correct problems with WCF template for VS 2013

The WCF template for VS 2013 has some problems which need correcting.

The service entities project has the wrong T4 templates.  They are for Server.Net45, but they should be Shared.Net45.  Both the templates and the NuGet package need to be corrected.
The default namespace for both the client and service entities projects need to match, because the serializer in WCF needs to have a matching namespace, and we removed the DataContract attribute.
The vstemplate files need to be updated with the correct packages: Client, CodeTemplates.Shared.
The client vstemplate file need to have the HttpClient package removed.
The entities namespace in the client program.cs file needs to match the new client entities namespace.

All items have been corrected and will be included in the next VSIX release.


Merging 2.x to master

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.1 out of 5 committers have signed the CLA.:white_check_mark: tmkasun:x: harsha89:x: kasvith:x: kavishkafernando:x: malinthaprasanYou have signed the CLA already but the status is still pending? Let us recheck it.

@kavishkafernando Can you send these (https://github.com/wso2/product-apim/pull/5131/commits/75dcddccfc45e79fff8a096cb34c3a189875db25 , https://github.com/wso2/product-apim/pull/5131/commits/2e4c3a3eb81c4f229248d6e91a83d202e5c997ba ) changes to the master branch


Support for fractional nuclear charges

Dear Developers,
I am looking to use PySCF to perform calculations on imaginary systems of nuclei with fractional nuclear charges, along the lines of our recent pre-print at arXiv:2103.03178. Specifically, I would like to use the high-accuracy low dimensional periodic boundary condition methods available.
Looking through the manual and dipping into the code it appears that non-integer nuclear charges are not currently supported. Is this correct?
If they are not supported I am happy to implement such functionality myself and contribute the changes to the project, if desired by the maintainers. It seems to my naive assessment that basic functionality should be a simple enough case of reading inputs of fractional charges and passing them into the nuclear-electron attraction and nuclear-nuclear repulsion routines. I expect properly supporting symmetry may require more work.
If support for fractional nuclear charges is desired in the main project, is there a preferred forum for getting advice on how best to implement this in line with the current structures?
Many thanks,
James

Hmm... Starting out on exploring this it seems like the expectation for integer nuclear charges is pretty deeply baked into libcint, which is disappointing.
I guess the solution I will follow will be to hook into the python that calls the nuclear-electron integrals and call my own integral routine as well. Not a very clean solution though.

You should not need to go to the libcint level; the electron-nuclear integral with fractional charges can be obtained by scaling the integrals from integer charges. However, in a periodic system, the system will not be neutral unless you have a fractional number of electrons also. Without assumption of neutrality, the total energy will formally be infinite.

Thanks! I realised this last night as I was falling asleep that a better route would be to calculate the nuclear integrals for each atom separately, then scale them appropriately.
Thanks for the warning about the periodic systems. We have been constraining ourselves to charge neutral species to avoid the complications of unbound electrons, and things like this clearly make that constraint critical.
Looks like I have everything I need to implement it. I'll try to do so in as clean a way as possible, but I expect this may be outside the scope of what PySCF wants in the main code base.
Thanks for your comments.

Here is a relevant snippet
https://github.com/pyscf/pyscf/blob/master/pyscf/qmmm/itrf.py#L134
On Fri, Mar 26, 2021 at 08:57:01AM -0700, James Furness wrote:

Thanks! I realised this last night as I was falling asleep that a better route would be to calculate the nuclear integrals for each atom separately, then scale them appropriately.
Thanks for the warning about the periodic systems. We have been constraining ourselves to charge neutral species to avoid the complications of unbound electrons, and things like this clearly make that constraint critical.
Looks like I have everything I need to implement it. I'll try to do so in as clean a way as possible, but I expect this may be outside the scope of what PySCF wants in the main code base.
Thanks for your comments.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/pyscf/pyscf/issues/862#issuecomment-808329680

--

Box needs to be big in all dimensions.
On Tue, Mar 30, 2021 at 9:58 AM James Furness @.***>
wrote:

Thank you for the ongoing support with this.
I have successfully implemented fractional nuclear charges for molecular
systems and have confirmed that they agree with my reference to high
precision.
I am now looking at generalising to periodic calculations and I am having
trouble getting 1D DFT calculations to give sensible results even for the
simple integer H2 chain case. I expect I have a fundamental
misunderstanding somewhere, but after reading through the relevant sections
of documentation I am still confused.
I am taking a system of H-H around equilibrium (~1.4 Bohr) and expecting
that when the unit cell is made very large (20 Bohr) this will give roughly
the same energy as the isolated H-H system.
For this 1D test chain I am running
from pyscf.pbc import scf, df, gto
cell = gto.Cell()cell.exp_to_discard = 0.1cell.build(
unit='B',
a = [[20.0,0,0],[0,1,0],[0,0,1]],
@.*** 0 0 0; @.*** 1.4 0 0.0''',
basis = 'cc-pVTZ',
dimension = 1,
verbose = 4)kpts = cell.make_kpts([6,1,1])mf = scf.KUKS(cell, kpts)mf.with_df = df.MDF(cell)
print(mf.kernel())
reporting
converged SCF energy = -0.647489336562256
Running the isolated H-H (R = 1.4 Bohr) calculation
import numpy as npfrom pyscf import scf, gto
mol = gto.Mole()mol.build(
unit='B',
@.*** 0 0 0; @.*** 1.4 0 0.0''',
basis = 'cc-pVTZ',
verbose = 4)mf = scf.UKS(mol)
print(mf.kernel())
reports
converged SCF energy = -1.13685518798485 <S^2> = 4.4408921e-15 2S+1 = 1
My experiments with other codes suggest that the highly separeted 1D chain
should match the molecular calculation closely, assuming the output is
total energy per unit cell in Hartree.
I would welcome any advice on where I might be going wrong here.
Many thanks,
James
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pyscf/pyscf/issues/862#issuecomment-810423421, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAN5NRE2PNCSERYW7EHUMSDTGH7NFANCNFSM4ZZX6BNQ
.

Thanks, that makes some sense. I think I had assumed that in low dimensions the non-periodic directions would be independent of a.
However, I have been experimenting a bit and it seems I am still missing something. If I increase the size of the box and add the mesh option to meet the warnings,
WARN: mesh [83 39 39] is not enough for AFTDF.get_nuc function to get integral accuracy 1e-08. Recommended mesh is [ 84 167 167].
Then my script becomes this:
from pyscf.pbc import scf, df, gto

cell = gto.Cell()
cell.exp_to_discard = 0.1
cell.build(
    unit='B',
    a = [[20.0,0,0],[0, 40,0],[0,0,40]],
    mesh = [ 84, 167, 167],
    atom='''H@1 0 0 0; H@2 1.4 0 0.0''',
    basis = 'cc-pVTZ',
    dimension = 1,
    verbose = 4)
kpts = cell.make_kpts([6,1,1])
mf = scf.KUKS(cell, kpts)
mf.with_df = df.MDF(cell)

print(mf.kernel())

which returns
converged SCF energy = -0.756347795838647
Different than before (and with much increased computation time), but still far from the expected ~ -1.14.

Actually I had not noticed the dimension = 1 in the input. For sanity, can
you make a minimal basis (so no small exponents) and use GDF and report the
result.
On Tue, Mar 30, 2021 at 11:45 AM James Furness @.***>
wrote:

Thanks, that makes some sense. I think I had assumed that in low
dimensions the non-periodic directions would be independent of a.
However, I have been experimenting a bit and it seems I am still missing
something. If I increase the size of the box and add the mesh option to
meet the warnings,
WARN: mesh [83 39 39] is not enough for AFTDF.get_nuc function to get
integral accuracy 1e-08. Recommended mesh is [ 84 167 167].
Then my script becomes this:
from pyscf.pbc import scf, df, gto
cell = gto.Cell()cell.exp_to_discard = 0.1cell.build(
unit='B',
a = [[20.0,0,0],[0, 40,0],[0,0,40]],
mesh = [ 84, 167, 167],
@.*** 0 0 0; @.*** 1.4 0 0.0''',
basis = 'cc-pVTZ',
dimension = 1,
verbose = 4)kpts = cell.make_kpts([6,1,1])mf = scf.KUKS(cell, kpts)mf.with_df = df.MDF(cell)
print(mf.kernel())
which returns
converged SCF energy = -0.756347795838647
Different than before (and with much increased computation time), but
still far from the expected ~ -1.14.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pyscf/pyscf/issues/862#issuecomment-810492748, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAN5NRHBR6F4N2W5PAKWP4DTGIL4PANCNFSM4ZZX6BNQ
.

Odd. @fishjojo can you take a look? Also try with dimension = 3.
On Tue, Mar 30, 2021 at 2:21 PM James Furness @.***>
wrote:

Certainly. I have checked out the master branch of the main repo before
running this, but the same result is found on my local modified branch.
If I use STO-3G then the smallest exponent is 0.16885540.
A minimal example using GDF is then
from pyscf.pbc import scf, df, gto
cell = gto.Cell()cell.build(
unit='B',
a = [[20.0,0,0],[0, 20,0],[0,0,20]],
@.*** 0 0 0; @.*** 1.4 0 0.0''',
basis = 'sto-3g',
dimension = 1,
verbose = 4)
cell.build()kpts = cell.make_kpts([16,1,1])mf = scf.KUKS(cell, kpts)mf.with_df = df.GDF(cell)
foo = mf.kernel()
The simple output is
converged SCF energy = -0.774156207589776
showing the problem.
The full output is attached
minimal.txt https://github.com/pyscf/pyscf/files/6232274/minimal.txt
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/pyscf/pyscf/issues/862#issuecomment-810585785, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AAN5NRCYW3QWN6ZEXFKMZS3TGI6D7ANCNFSM4ZZX6BNQ
.

--
Sent from Gmail Mobile

dimension = 3 works as expected, I've been able to continue working on my project using this as a work around, but obviously we should understand what is going wrong with the low dimensional case.

For DFT with density fitting, you'll need to call the function as follows
mf = scf.KUKS(cell, kpts).density_fit()

This will use Becke grids for xc functional evaluation.
The way that you invoke density fitting will use the uniform grid to evaluate xc functionals. This works in 3D in your case because there are enough grid points in all three directions. But for the low dimension case, the uniform grid is much smaller. You can print out cell.mesh to check.

Thank you, this advice has been useful.
I have had to deal with other tasks for a week or so, but I am returning to this now.
While the molecular fractional charges seem to be working as intended, I'm struggling a little to generalise to periodic systems, probably due to my unfamiliarity with the methods.
I have been exploring a simple KRKS calculation with a debugger
za = 0.9
zb = 1.1
r = 6.0
cell = gto.Cell()
cell.exp_to_discard = 0.1
cell.build(
    unit='B',
    a = [[2*r,0,0],[0, 10,0],[0,0,10]],
    atom="H@1 0 0 0; H@2 {:.1f} 0 0.0".format(r),
    basis = 'cc-pVDZ',
    verbose = 4,
    nuclear_charges={'H@1':za, 'H@2':zb},
    dimension = 3)

cell.build()
kpts = cell.make_kpts([4,1,1])

mf = scf.KRHF(cell)
mf.kpts = kpts
mf = scf.addons.smearing_(mf, sigma=.1, method='fermi')

mf = mf.mix_density_fit()
ehf = mf.kernel()

Stepping through, I find that the core Hamiltonian building pyscf/pbc/scf/khf.py get_hcore() calls pyscf/pbc/df/aft.py get_nuc(), which in turn calls get_pp_loc_part1 which seems to be the function I need to modify.
Looking inside, I find it calls charges = cell.atom_charges(), which I have already modified to return the fractional charges.
charges = cell.atom_charges()
print(charges)
# prints [0.9 1.1] as expected.

charges appears to be used in some einsum calls, so there should be no problem with the change to floats.
It seems like the same change to atom_charges() covers the Ewald sum for the nuclear repulsion as well.
Naively, I thought this would be sufficient, but now I find a problem. The total energy now decreases roughly linearly with increasing number of K points, never reaching a convergence. When nuclear charges are left as 1.0 and 1.0 convergence is reached quickly. So something is wrong.
Reading a little further, I guess what I have done is modified the long range portion of the electron-nuclei Ewald sum, but not the short range.
Digging in further I find that _compensate_nuccell() prepares data for "compensated Gaussian charges", and copyies cell._atm, which contains the unmodified integer charges usually associated with the elements.
Then _int_nuc_vloc() then appends a copy of ._atm with parameters for a tight Gaussian function, copying the integer charges again.
Then  pyscf/pbc/df/incore.py aux_e2() is called which proceeds to send the data into libcint three center integral routines.
    int3c = wrap_int3c(cell, auxcell, intor, aosym, comp, kptij_lst, **kwargs)
    out = numpy.empty((nkptij,comp,nao_pair,naux), dtype=dtype)
    out = int3c(shls_slice, out)

Looking into the dimensions of out seems to imply (out = (nkpt, 1, basis functions?, 2*natom)
Naively, it seems to me that I can re-scale out to the fractional charges. I attempted to do this with,
    if cell.nuclear_charges:
        charges = cell.atom_charges()
        nc = len(charges)
        for i, c in enumerate(charges):
            scale = c/cell._atm[i,0]
            out[:, :, :, i] *= scale         # _atm entry from cell
            out[:, :, :, i + nc] *= scale    # second _atm entry from tight Gaussian

But the same problem of linearly decreasing energy with increasing number of k points still remains.
At this point I feel like I am reaching around in the dark. If anyone can suggest any aspects I might have missed, or point me in the right direction, that would be greatly appreciated.
Additionally, if there are any recommended resources for understanding the practical implementation of the nuclear attraction integrals I would welcome suggestions. I am currently working through Sun 2020 and Sun 2017 to try to develop a better understanding.
Many thanks,
James

Hey, im a undergrad student and new to PySCF and saw this issue here while i was trying to plot fractional charge behaviour for the H atom with different DFT functionals. But i really struggle to do so, can anyone here give me a hint. It seems not to easy to implement. This is my code so far. i thought the mm_charge method could deal with it but i dont really understand it.
mol = gto.M(atom='H 0 0 0', basis='ccpvdz', verbose=0)
mol.spin = 1
mol.build()
mftemp = dft.UKS(mol, xc='pbe')
energies = []
elecs = np.arange(9, 10, 0.1)
for charge in elecs:
mf = itrf.mm_charge(mftemp, [(0.6,0.6,0.6)], [elecs])
mf.kernel()
energies.append(mf.e_tot)
Thanks in advance!


Is the repo stop update ?

The Dev branch is still being updated.  The main branch should be considered stable, and will be updated once the Dev branch modifications are complete, tested, and stable.


Have a feeling that the notifications does not work sometimes

Steps to reproduce
It is not working like once rarely but rather more 9 / 10 of the time it works fine and then 1 / 10 of the time it does not work in a row.
Maybe related to the phone setup (like battery optimization etc, have Unrestricted App battery usage, no other settings seem to interfere). Concerning in-app Element settings, the bot conversation is notifying me for All messages, I enabled Settings > Notifications > Other > Messages by bot but I do not see how it could helps, as except the username, nothing can let know that it is a bot (except possibly some kind of user agent or API use), Delay between each Sync is set to 60 seconds, starting on boot. Otherwise I checked all other settings. Let us first verify having this issue (like should have received notifications on phone, hence check on a computer and confirm that have not received a notification on the phone application).
Note that checking manually the phone application solves the issue but is an unwanted manual behavior.

Where are you starting? What can you see?
What do you click?
More steps…

Outcome
What did you expect?
What happened instead?
Your phone model
No response
Operating system version
No response
Application version and app store
No response
Homeserver
No response
Will you send logs?
Yes
Are you willing to provide a PR?
Yes

Maybe related:
01-12 00:52:38.239 22109 23651 W WebSocketConnection: [unidentified:21063733] onFailure()
01-12 00:52:38.239 22109 23651 W WebSocketConnection: java.io.EOFException
01-12 00:52:38.239 22109 23651 W WebSocketConnection: 	at okio.RealBufferedSource.require(RealBufferedSource.kt:53)
01-12 00:52:38.239 22109 23651 W WebSocketConnection: 	at okio.RealBufferedSource.readByte(RealBufferedSource.kt:66)
01-12 00:52:38.239 22109 23651 W WebSocketConnection: 	at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.java:117)
01-12 00:52:38.239 22109 23651 W WebSocketConnection: 	at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:101)
01-12 00:52:38.239 22109 23651 W WebSocketConnection: 	at okhttp3.internal.ws.RealWebSocket.loopReader(RealWebSocket.java:274)
01-12 00:52:38.239 22109 23651 W WebSocketConnection: 	at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:214)
01-12 00:52:38.239 22109 23651 W WebSocketConnection: 	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:203)
01-12 00:52:38.239 22109 23651 W WebSocketConnection: 	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
01-12 00:52:38.239 22109 23651 W WebSocketConnection: 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
01-12 00:52:38.239 22109 23651 W WebSocketConnection: 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
01-12 00:52:38.239 22109 23651 W WebSocketConnection: 	at java.lang.Thread.run(Thread.java:1012)
01-12 00:52:38.239 22109 23651 W WebSocketConnection:
01-12 00:52:39.588  1679  2299 I ActivityManager: Background started FGS: Allowed [callingPackage: im.vector.app; callingUid: 10147; uidState: FGS ; intent: Intent { cmp=im.vector.app/.core.services.VectorSyncAndroidService (has extras) }; code:PROC_STATE_FGS; tempAllowListReason:<,reasonCode:SYSTEM_ALLOW_LISTED,duration:9223372036854775807,callingUid:-1>; targetSdkVersion:33; callerTargetSdkVersion:33; startForegroundCount:0; bindFromPackage:null]
01-12 00:52:39.615  1679 13366 W ActivityManager: Foreground service started from background can not have location/camera/microphone access: service im.vector.app/.core.services.VectorSyncAndroidService

Havr again notifications it seems on 1.6.10.

I just enabled back Notifivations > Other > Listening for events. Why do we have such a notification contrarily to Signal for instance?

Maybe same issue on Xiaomi Mi A3 for relative:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdAlz1ORxexpv6ef7pdcXq4FzcXT/n2boT1lEabF0324SYw
ZGoUlWtMufRy/68e3txzjhKImtLJ16LrLocqVHUlEqq8E+clImQw6FjtObbC9dZa
0kAB1GxAde6SLv3AO+0UWZmuP6+CicT2qzpaEW1PieMBxxGpRV5vOwNcuQC+Z9o4
tpnmIZFLb+/OPh2VPf+TmiN0
=VRyV
-----END PGP MESSAGE-----

Maybe we are not notified that someone share us his location, so have to send a text message to make sure.
The person that told me so is:
-----BEGIN PGP MESSAGE-----

hF4DTQa9Wom5MBgSAQdA3QTctFRkcilh9OuYAkpqQIRFqWk2c3kMRgcmJ0BS9Csw
pLPf66xox0aeHvAQJkwtubhakVRhY4v/Yb5/oZFmcdJKyUjEXfqiUmxMHm+SgFat
0kABRtGM0U/emlXyO/M24HzQ1os6PtZMLNykdpei9o1RpBOfspzQKplswx3QpN5n
s+6YWaGCOTyxOqLb2KdSbJDJ
=NeB0
-----END PGP MESSAGE-----

Related to #21.

Have to run tests again to detect the setting change.

Related to Benjamin_Loison/tchap-android/issues/2.


diff.js: Support for the experimental syntax 'classProperties' isn't currently enabled

Hi.
When I want to start project I get this error and compile failed.

How to fix this problem?
I used create-react-app with react-app-rewired

Please try the example in this repo and see how it compares to your code.

Please try the example in this repo and see how it compares to your code.

I check and compare with example, also add .babelrc and plugin config but error is still. I used create-react-app for generate react app and also used react-app-rewired to override webpack config.

Unfortunately, I have not seen this error before and can't help here. Maybe someone else has suggestions. If not, stack overflow might help.

I have the exactly the same issue. I also use latest version of CRA with react-scripts 2.1.5.

me too.

After doing it properly, accidental compilation went through
Please refer to Package.json.
{
  "name": "csharper-app",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@material-ui/core": "3.9.1",
    "@material-ui/icons": "3.0.2",
    "@material-ui/styles": "^3.0.0-alpha.9",
    "keymaster": "^1.6.2",
    "monaco-editor": "^0.15.6",
    "react": "^16.8.1",
    "react-dom": "^16.8.1",
    "react-monaco-editor": "^0.22.0",
    "react-redux": "^6.0.0",
    "react-router-dom": "^4.3.1",
    "react-scripts": "2.1.3",
    "redux": "^4.0.1",
    "redux-form": "^8.1.0",
    "superagent": "^4.1.0"
  },
  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test --env=jsdom",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "@babel/core": "^7.3.3",
    "@babel/plugin-proposal-class-properties": "^7.3.3",
    "monaco-editor-webpack-plugin": "^1.7.0",
    "react-app-rewired": "^2.1.0"
  }
}

After doing it properly, accidental compilation went through.
Please refer to Package.json.
{
  "name": "example",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@material-ui/core": "3.9.1",
    "@material-ui/icons": "3.0.2",
    "@material-ui/styles": "^3.0.0-alpha.9",
    "keymaster": "^1.6.2",
    "monaco-editor": "^0.15.6",
    "react": "^16.8.1",
    "react-dom": "^16.8.1",
    "react-monaco-editor": "^0.22.0",
    "react-redux": "^6.0.0",
    "react-router-dom": "^4.3.1",
    "react-scripts": "2.1.3",
    "redux": "^4.0.1",
    "redux-form": "^8.1.0",
    "superagent": "^4.1.0"
  },
  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test --env=jsdom",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "@babel/core": "^7.3.3",
    "@babel/plugin-proposal-class-properties": "^7.3.3",
    "monaco-editor-webpack-plugin": "^1.7.0",
    "react-app-rewired": "^2.1.0"
  }
}

Hi @iRosSoftware
Fixed your problem with this config???

After doing it properly, accidental compilation went through.
Please refer to Package.json.
{
  "name": "example",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@material-ui/core": "3.9.1",
    "@material-ui/icons": "3.0.2",
    "@material-ui/styles": "^3.0.0-alpha.9",
    "keymaster": "^1.6.2",
    "monaco-editor": "^0.15.6",
    "react": "^16.8.1",
    "react-dom": "^16.8.1",
    "react-monaco-editor": "^0.22.0",
    "react-redux": "^6.0.0",
    "react-router-dom": "^4.3.1",
    "react-scripts": "2.1.3",
    "redux": "^4.0.1",
    "redux-form": "^8.1.0",
    "superagent": "^4.1.0"
  },
  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test --env=jsdom",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "@babel/core": "^7.3.3",
    "@babel/plugin-proposal-class-properties": "^7.3.3",
    "monaco-editor-webpack-plugin": "^1.7.0",
    "react-app-rewired": "^2.1.0"
  }
}

Hi @iRosSoftware
Fixed your problem with this config???

Yes, but I do not know why it went well.

I am using it with typescripts.
If you use version 0.23.0, the same problem occurs.
The module block added to 0.23.0 seems to be the problem.
https://github.com/superRaytin/react-monaco-editor/compare/v0.22.0...v0.23.0#diff-b9cfc7f2cdf78a7f4b91a753d10865a2R6

So am I, after upgrade v0.23.0, the error occurred at compile time. BTW, I use create-react-app with typescript

Thanks for looking into this. Do you think the module block is incorrect or is this an issue with the bundler?

Modifying the path of a module to bundle(lib/) works well.

But is it the right thing to so? What do the npm docs say about this?

Please check the https://webpack.js.org/guides/author-libraries/#final-steps link.
The module property should point to a script that utilizes ES2015 module syntax but no other syntax features that are supported by browsers or node. This enables webpack to parse the module syntax itself, allowing for lighter bundles via tree shaking if users are only consuming certain parts of the library.

Okay, let's change it to lib/index then.

After doing it properly, accidental compilation went through.
Please refer to Package.json.
{
  "name": "example",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@material-ui/core": "3.9.1",
    "@material-ui/icons": "3.0.2",
    "@material-ui/styles": "^3.0.0-alpha.9",
    "keymaster": "^1.6.2",
    "monaco-editor": "^0.15.6",
    "react": "^16.8.1",
    "react-dom": "^16.8.1",
    "react-monaco-editor": "^0.22.0",
    "react-redux": "^6.0.0",
    "react-router-dom": "^4.3.1",
    "react-scripts": "2.1.3",
    "redux": "^4.0.1",
    "redux-form": "^8.1.0",
    "superagent": "^4.1.0"
  },
  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test --env=jsdom",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "@babel/core": "^7.3.3",
    "@babel/plugin-proposal-class-properties": "^7.3.3",
    "monaco-editor-webpack-plugin": "^1.7.0",
    "react-app-rewired": "^2.1.0"
  }
}

Hi @iRosSoftware
Fixed your problem with this config???

Yes, but I do not know why it went well.

I test this way but error is still for me.

After doing it properly, accidental compilation went through.
Please refer to Package.json.
{
  "name": "example",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@material-ui/core": "3.9.1",
    "@material-ui/icons": "3.0.2",
    "@material-ui/styles": "^3.0.0-alpha.9",
    "keymaster": "^1.6.2",
    "monaco-editor": "^0.15.6",
    "react": "^16.8.1",
    "react-dom": "^16.8.1",
    "react-monaco-editor": "^0.22.0",
    "react-redux": "^6.0.0",
    "react-router-dom": "^4.3.1",
    "react-scripts": "2.1.3",
    "redux": "^4.0.1",
    "redux-form": "^8.1.0",
    "superagent": "^4.1.0"
  },
  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test --env=jsdom",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "@babel/core": "^7.3.3",
    "@babel/plugin-proposal-class-properties": "^7.3.3",
    "monaco-editor-webpack-plugin": "^1.7.0",
    "react-app-rewired": "^2.1.0"
  }
}

Hi @iRosSoftware
Fixed your problem with this config???

Yes, but I do not know why it went well.

I test this way but error is still for me.

Check the yarn.lock file for the following:
<EMAIL_ADDRESS>   version "0.22.0"

If the version is 0.22.0, no error will occur.

After doing it properly, accidental compilation went through.
Please refer to Package.json.
{
  "name": "example",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@material-ui/core": "3.9.1",
    "@material-ui/icons": "3.0.2",
    "@material-ui/styles": "^3.0.0-alpha.9",
    "keymaster": "^1.6.2",
    "monaco-editor": "^0.15.6",
    "react": "^16.8.1",
    "react-dom": "^16.8.1",
    "react-monaco-editor": "^0.22.0",
    "react-redux": "^6.0.0",
    "react-router-dom": "^4.3.1",
    "react-scripts": "2.1.3",
    "redux": "^4.0.1",
    "redux-form": "^8.1.0",
    "superagent": "^4.1.0"
  },
  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test --env=jsdom",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "@babel/core": "^7.3.3",
    "@babel/plugin-proposal-class-properties": "^7.3.3",
    "monaco-editor-webpack-plugin": "^1.7.0",
    "react-app-rewired": "^2.1.0"
  }
}

Hi @iRosSoftware
Fixed your problem with this config???

Yes, but I do not know why it went well.

I test this way but error is still for me.

Check the yarn.lock file for the following:
<EMAIL_ADDRESS>   version "0.22.0"

If the version is 0.22.0, no error will occur.

After doing it properly, accidental compilation went through.
Please refer to Package.json.
{
  "name": "example",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "@material-ui/core": "3.9.1",
    "@material-ui/icons": "3.0.2",
    "@material-ui/styles": "^3.0.0-alpha.9",
    "keymaster": "^1.6.2",
    "monaco-editor": "^0.15.6",
    "react": "^16.8.1",
    "react-dom": "^16.8.1",
    "react-monaco-editor": "^0.22.0",
    "react-redux": "^6.0.0",
    "react-router-dom": "^4.3.1",
    "react-scripts": "2.1.3",
    "redux": "^4.0.1",
    "redux-form": "^8.1.0",
    "superagent": "^4.1.0"
  },
  "scripts": {
    "start": "react-app-rewired start",
    "build": "react-app-rewired build",
    "test": "react-app-rewired test --env=jsdom",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ],
  "devDependencies": {
    "@babel/core": "^7.3.3",
    "@babel/plugin-proposal-class-properties": "^7.3.3",
    "monaco-editor-webpack-plugin": "^1.7.0",
    "react-app-rewired": "^2.1.0"
  }
}

Hi @iRosSoftware
Fixed your problem with this config???

Yes, but I do not know why it went well.

I test this way but error is still for me.

Check the yarn.lock file for the following:
<EMAIL_ADDRESS>   version "0.22.0"

If the version is 0.22.0, no error will occur.

Fixed in the latest release.


Update all images to modern formats

Is your improvement request related to a problem? Please describe.
The current images used are either .png or .svg but it has been recommended to change these out for .webp in certain cases.
Describe the solution you'd like
Update all images that will not be resized to .webp and all others to .svg.
Describe alternatives you've considered
The alternative would be to keep the current mix of image formats, but this is a mess.

Part of this issue will also be to specify the decode and loading attributes which indicate the priority to the user's browser.


Dartino debugging on device

First cut debugging support - not enabled by default
@devoncarew

Lgtm! Exciting to see it hooked it.

Merged https://github.com/dart-atom/dartlang/commit/6459d053b05cd2fc30078415951180a701ef9518


Improvement Range#sum performance

We can calculate the sum of Range(Int) by O(1) algorithm.
(This is the so-called finite arithmetic series.)
This implementation is a little dirty. However, this hack is indeed
only available on Int range, and this feature is hoped by many people
(See below URLs).
Warning: It has a tiny breaking change. If you want to calculate the sum
of a range that contains too small size Int to sum it up such like
1..10_000_000.sum, then its sum cause an integer overflow, and
probably its result is difference between the change.
But I think this change is no problem because such code is already buggy.
Reference URLs:

ActiveSupport's Range#sum:
http://www.rubydoc.info/docs/rails/3.1.1/Range#sum-instance_method

Scale's Range#sum:
http://www.scala-lang.org/news/2.10.4
Above link says "Range#sum is now O(1)"

Looks good :-)
Why you say the implementation is a little dirty?
I see you added sum for the step iterator but not for the item iterator. Is there a reason?

@asterite

I see you added sum for the step iterator but not for the item iterator. Is there a reason?

Do you have the use case of it?  I don't have because the man who call Range#each without block intend to use the range as an iterator, so he don't call ItemIterator#sum immediately but call some transformer methods such like map or select. But Range#step, it may be not.

@MakeNowJust Please add a spec for a case like this:
struct RangeSpecIntWrapper
  include Comparable(self)

  getter value

  def initialize(@value)
  end

  def succ
    RangeSpecIntWrapper.new(@value + 1)
  end

  def <=>(other)
    value <=> other.value
  end

  def self.zero
    RangeSpecIntWrapper.new(0)
  end

  def +(other : RangeSpecIntWrapper)
    RangeSpecIntWrapper.new(value + other.value)
  end
end

p (RangeSpecIntWrapper.new(1)..RangeSpecIntWrapper.new(3)).sum

You'll see with your changes it stops working. The problem is that you use is_a? with instance variables, and that doesn't restrict their types. Assign the instance vars to local vars first, then use is_a?.

@asterite I forgot this spec on Crystal. I fixed it.

Thanks! But the comments saying how Crystal works are not needed, that's the way the language works. Could you remove them?

Ok. remove it.

Thank you!!


Use soundfile for mp3 decoding instead of torchaudio

As suggested by @severo:

Use soundfile for mp3 decoding instead of torchaudio by @polinaeterna in https://github.com/huggingface/datasets/pull/5573

this allows to not have dependencies on pytorch to decode audio files
this was possible with soundfile 0.12 which bundles libsndfile binaries at a recent version with MP3 support

I think we do not need to do anything more to support this: it is datasets which support it, once we use > 2.11.0 version with "audio" extra:
https://github.com/huggingface/datasets-server/blob/f88afb270237ff5dd32462a461b42be5547fef9e/libs/libcommon/pyproject.toml#L10


Update Payload for Application Submission

Description of changes:

Update Payload for Application Submission as per API changes

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the namex license (Apache 2.0).

/gcbrun

Temporary Url for review: https://strr-ui-dev--pr-121-2n1sdei1.web.app


Workflow tries to map when unmapped BAM == NULL

This should be fixed as of 2022-02

Fixed in glb-2022-02 branch


Loading quantized model checkpoint error

Hi,
I am trying to reproduce the results in the paper for stable diffusion. and use the sdv1.4 ckpt and sd_w4a8_ckpt.pth for ptq using NVIDIA V100
My command is like the following:
python scripts/txt2img.py --prompt "a puppet wearing a hat"  --outdir /data --H 512 --W 512 --n_samples 1 --scale 11 --seed 100  --verbose --cond   --ddim_steps 28 --n_iter 1 --ptq --weight_bit 8 --quant_mode qdiff  --cali_ckpt /data/q-diffusion-master/sd_w4a8_ckpt.pth
And I have the following error:
Traceback (most recent call last):
File "scripts/txt2img.py", line 451, in
main()
File "scripts/txt2img.py", line 345, in main
resume_cali_model(qnn, opt.cali_ckpt, cali_data, opt.quant_act, "qdiff", cond=opt.cond)
File "/data/q-diffusion-master/qdiff/utils.py", line 67, in resume_cali_model
qnn.load_state_dict(ckpt, strict=False)
File "/data/miniconda3/lib/python3.7/site-packages/torch/nn/modules/module.py", line 1672, in load_state_dict
self.class.name, "\n\t".join(error_msgs)))
RuntimeError: Error(s) in loading state_dict for QuantModel:
size mismatch for model.output_blocks.0.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([1280, 1280, 1, 1]) from checkpoint, the shape in current model is torch.Size([1280, 2560, 1, 1]).
size mismatch for model.output_blocks.1.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([1280, 1280, 1, 1]) from checkpoint, the shape in current model is torch.Size([1280, 2560, 1, 1]).
size mismatch for model.output_blocks.2.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([1280, 1280, 1, 1]) from checkpoint, the shape in current model is torch.Size([1280, 2560, 1, 1]).
size mismatch for model.output_blocks.3.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([1280, 1280, 1, 1]) from checkpoint, the shape in current model is torch.Size([1280, 2560, 1, 1]).
size mismatch for model.output_blocks.4.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([1280, 1280, 1, 1]) from checkpoint, the shape in current model is torch.Size([1280, 2560, 1, 1]).
size mismatch for model.output_blocks.5.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([1280, 1280, 1, 1]) from checkpoint, the shape in current model is torch.Size([1280, 1920, 1, 1]).
size mismatch for model.output_blocks.6.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([640, 1280, 1, 1]) from checkpoint, the shape in current model is torch.Size([640, 1920, 1, 1]).
size mismatch for model.output_blocks.7.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([640, 640, 1, 1]) from checkpoint, the shape in current model is torch.Size([640, 1280, 1, 1]).
size mismatch for model.output_blocks.8.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([640, 640, 1, 1]) from checkpoint, the shape in current model is torch.Size([640, 960, 1, 1]).
size mismatch for model.output_blocks.9.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([320, 640, 1, 1]) from checkpoint, the shape in current model is torch.Size([320, 960, 1, 1]).
size mismatch for model.output_blocks.10.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([320, 320, 1, 1]) from checkpoint, the shape in current model is torch.Size([320, 640, 1, 1]).
size mismatch for model.output_blocks.11.0.skip_connection.weight_quantizer.alpha: copying a param with shape torch.Size([320, 320, 1, 1]) from checkpoint, the shape in current model is torch.Size([320, 640, 1, 1]).
It seems that sd_w4a8_ckpt.pth weight shape is not the same for QuantModel shape.
I use qnn.load_state_dict(ckpt, strict=False) and still have the same problem.
Can you please help to take a look?
Jason

Hi, it seems like you did not enable shortcut splitting in your script, while our provided checkpoint applies it by default (see section 3.3.2 of our paper for details). Also, the current checkpoint is for INT4 weights. Can you try running the command below to see if you can successfully load the model?
python scripts/txt2img.py --prompt "a puppet wearing a hat" --plms --cond --ptq --weight_bit 4 --quant_mode qdiff --no_grad_ckpt --split --n_samples 5 --outdir /data --cali_ckpt /data/q-diffusion-master/sd_w4a8_ckpt.pth

For more details on the provided checkpoints, please take a closer look at the arguments in README. I will get the INT8 checkpoints uploaded soon.


Current scheme of mapping unique source_id to source_name breaks when using multiple Pipelines

The problem: source-id's, as reported by the frame-meta data, are really the unique stream id within the current Pipeline.
Multiple Pipelines will reuse the same 0-based stream ids.  DSL needs to be able to map the source_id (in the metadata) back to a uniquely named source.
The solution: have each DSL Pipeline-Streammuxer add a unique Pipeline offset to the source-id's in the frame-metadata making each source_id unique.  This will be done adding a special PPH to streammuxer's src pad (ghost src pad for the PipelineMultiSourceBintr) to update every frame-meta structure if the Pipeline's id is > 0
A new constant in the DslApi.h will be used to control the offset.
#define DSL_STREAMMUX_SOURCE_ID_OFFSET_IN_BITS  16

Once implemented, the following source-ids can be determined as

0x00000000 = pipeline-id=0, stream-id=0
0x00010000 = pipeline-id=1, stream-id=0
0x00020004 = pipeline-id=2, stream-id=4

This work has been pushed to the v0.27.alpha branch


Difficulty icons above donchan, 10 right ka for ura difficulty

Are u planning to add these features?

Hello,
OpenTaiko being not intended to reproduce accurately Nijiiro ver., the first one will not be added.
For the second one, if will depend on how relevant it is for customizability


Split pane menu disappears upon resize

Split pane menu disappears after launching menu and resizing window. Issue exists in Chrome (Version 76.0.3809.132). Firefox 68 works fine.
Steps to reproduce:
npm install -g ionic
ionic start myApp sidemenu
ionic 5.2.6

Ionic:
Ionic CLI : 5.2.6
Utility:
cordova-res : not installed
native-run  : not installed
System:
NodeJS : v10.16.0
npm    : 6.9.0
OS     : Linux 4.15

Gave it a crack. The hamburger menu icon doesn't show now..

I encountered the same issue. Installed<EMAIL_ADDRESS>but it still doesn't fix it. The problem occurs only in chrome.

Thanks for the follow up. I think I've identified the problem. Can you give the following dev build a try:
npm i<EMAIL_ADDRESS>

I just installed it and it fixed the issue. Thank you!

now i noticed another strange behavior. The side menu now opens (when pressing the menu-toggle) but doesn’t close in iOS and electron.

Are you trying to close via a gesture, or just by tapping the toggle again?

npm i<EMAIL_ADDRESS>

closing via gesture doesn’t work on iOS. it doesn’t close at all in chromium (electron). it closes via gesture fine in android, chrome, and safari.

@calvinckho  Ah interesting. Does this happen on the latest stable version of Ionic, or just on this dev build?

I am going to close this issue as the original issue has been resolved, but feel free to follow up here with more info regarding the gesture issue.
This fix will be available in the next stable release of Ionic.

It’s just the dev build. I will try it will the most recent stable release.

On Sep 3, 2019, at 9:04 AM, Liam DeBeasi<EMAIL_ADDRESS>wrote:
Closed #19203 via 07140cf.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@liamdebeasi the issue persists after upgrading to the latest stable version. closing via gesture doesn’t work on iOS. it doesn’t close at all in chromium (electron). it closes via gesture fine in android, chrome, and safari.

Ah yep you know what someone reported this today: https://github.com/ionic-team/ionic/issues/19271
I found out that this bug has existed for a little while in the framework, was just easier to reproduce given some of the recent changes.


refresh

Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Additional context

refresh


Zooming issue in iOS 8 while rotating device

I found wierd bug with zooming image while rotating device (reproduced only in iOS 8):
Steps to reproduce:

Start the Demo application on iOS 8.x.x simualtor
Tap to the Library photos
Rotate device by Cmd+Left

Actual:
4. You will see how the image zooming in while it's rotating
Expected:
4. Image is not zooming (like in iOS7 simualor)
I make videos:
iOS 7 (normal behavior): http://youtu.be/fSDfvrHpDc8
iOS 8 (bugged behavior): http://youtu.be/LHSyCRoov6U

Hmm, yes, are you talking about the cropping of the photo while it is rotating? It does seem like a strange issue. Thanks for the pull request. Has it been tested with the supported iOS versions?

+1

+1

+1


Determine a method for tracking and prompting re-accessions from external sources

We currently organize all of the sources in the Geoportal as "Websites." Here is a lifecycle for Websites:

Someone identifies a new source - it may be a website of datasets, a digital library, and interactive application, etc.
This source is added to the geoportal as a Resource Class "website".
If applicable, the actual items in the website are harvested into the geoportal. This might happen right away or the task might get queued to happen at a later date. Items are linked to the website using the "Is Part Of" relationship.
At various intervals, we "re-accession" the website's content to stay up to date with changes, deletions, and additions.

I am interested in finding a way for GEOMG to assist with tracking list item 4. When I was using Airtable, I had a setup where I had a calculated field showing the last time items from a website had been harvested. I could sort by date and tend to the websites that had not been looked at in awhile.
Maybe there is a way of doing this with Blazer?

We have the "updated_at" data in Solr, so we can always sort by that in GEOMG. Rather lo-fi solution, but perhaps good enough for now? Unless you're envisioning an internal "todo list" of some kind.
Added "Updated At" as sorting options to geomgdev:

I have a solution for this that will work sufficiently - This query in Blazer will show the most recent Date Created per code. I can scan to the bottom to see Codes that I haven't re-accessioned in a while.


parametrization of test_deploy

Development related changes

test_deploy.py now will use new syntax and will be parameterized

Checklist:

[ ] Applied formatting - ./scripts/format.sh
[ ] No linter errors - ./scripts/lint.sh
[ ] Performed code self-review
[ ] Rebased to the last commit of the target branch (or merged it into my branch)
[ ] Documented the changes
[ ] Linked the issues which this PR resolves
[ ] Updated the tests
[ ] All tests are passing

https://github.com/Shard-Labs/starknet-devnet/pull/274 must be merged first, these 2 tasks are related


Added figma file of 'Connect to Alby button'

Description of the PR
I developed a design in figma for the connection design, which you can see in the link below. I'd want to create a pull request, and it would be much appreciated if you could walk me through the process and examine my design.
File on Figma: https://www.figma.com/proto/qdCQDS8mBHbXLF9LfTwgkY/Connect-to-ALBY?node-id=1-14&scaling=min-zoom&page-id=0%3A1&starting-point-node-id=1%3A14
Type of change
I have added a feature to the connect button to the 'connect to ALBY' where user can easily connect the ALBY just by sliding it.
Screenshots of the slider of 'connect to ALBY'
Before the slider:

After the slider:

How has this been tested?
we can use a drag/slide using figma  where you can easily 'connect to ALBY'.

I don't understand where this slider would be added. What problem does this slider solve?

I don't understand where this slider would be added. What problem does this slider solve?
Hello sir, I am totally new to this project as i am a participant of summer of bitcoin I seen a connect to alby button which looks like given below.

the above button where I found it on summer of bitcoin.

I tried making it more simple by adding sliding for user interaction.

We don't store Figma files in this repo. Please coordinate with @stackingsaunter on how to help with designs. Thanks.
I would close this PR.


Draft PR for ASR components and demo

Probably want to migrate this to architecture 4 (ie no route.tsx), but wanted to get the basics landed first.

I only glanced at this for a minute but will look more later.

OK, I think this is ready for a final look.


CIRCLECI 'false'

didnt test locally when circleci environment variable changed.

Codecov Report

Merging #73 into master will increase coverage by 0.56%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master      #73      +/-   ##
==========================================
+ Coverage    87.4%   87.97%   +0.56%
==========================================
  Files          29       29
  Lines        1580     1580
  Branches      211      211
==========================================
+ Hits         1381     1390       +9
+ Misses        176      167       -9
  Partials       23       23

Impacted Files
Coverage Δ

testci/test_keras_load_model.py
66.66% <0%> (+24.99%)
:arrow_up:

pelops/features/keras_model.py
70.58% <0%> (+17.64%)
:arrow_up:

Continue to review full report at Codecov.

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


terminal.integrated.cwd in User Settings only applies to the first Terminal when you have more than one Folder in your Workspace

Issue Type: Bug
Steps:

Set the terminal.integrated.cwd setting in User Settings.
Add a Folder to your Workspace.
Add a 2nd Folder to your Workspace.
Open a Terminal with Ctrl+`.
Open another Terminal with Ctrl+Shift+`.

2nd Terminal brings up the "Select current working directory for new terminal" picker.
Happens with extensions disabled.


d3d12: Add support for IDXGIAdapter3

Hello there, this PR adds support for IDXGIAdapter3. I need this to query info about the memory usage of my apps via IDXGIAdapter3.QueryVideoMemoryInfo.
I've tested that everything builds correctly and I've run the bindless sample with Debug Layers on and everything works correctly without any additional warnings or errors.
I've also exposed the adapter via the GraphicsContext and I release it when the GraphicsContext gets deinitialized. I'm not sure if there's another way to get the adapter from the device. If there's a way I'm okay with removing the adapter from GraphicsContext.
Cheers!

I found an error in the new functions I've exposed via the IDXGIAdapter3. I'm fixing them now, sorry.

Okay, I've fixed it now and tested it in my application. It works correctly 😊

(Values are shown in bytes)

And finally this is how I query the memory usage at the end of the frame.

I've found a GetAdapter function I could use to get the adapter and store it in my own graphics state. So if you prefer it, I can remove the adapter from GraphicsContext

Very nice, thanks! I like having an adapter in GraphicsContext.


added links to Lambda code samples

from my 'big link list'

lgtm - thanks @lynnlangit!
Assigning @ehammond for topic review.

LGTM

Anything else for me to do here?

LGTM too. Just a couple copy editing details, but I'll make them myself.

Thanks!!

Thanks @lynnlangit!


fix: ensure the add repository command populates gitKind/gitProvider

so that quickstarts/imports properly populate the git kinds in .jx/gitops/source-config.yaml

/approve

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jstrachan
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jstrachan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: jstrachan
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS [jstrachan]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


Upgrading to RSpec 3 using transpec

Why not?

does @andrewculver still maintain this project?

@yanismydj I'm still around, but you'll notice from the issues that @yas4891 is doing most of the heavy lifting in recent history. :-)

@andrewculver awesome! I will try to help out where possible, I was just worried that if I submitted any PR's they might never get accepted, etc.


[Portfolio] Make the number formatting consistent between inputs and other elements?

I don't think we should enhance the current implementation, I believe differentiating display format vs input format is clearer.

Showing available balance without comma separation would make big balances hard to read
Adding comma separation in input fields for big balances just makes it confusing and introduce a lot of unnecessary edge cases


Setting of Framerate on VideoStream does not work

Setting framerate for VideoStream doesn't work.
VideoStream(src=src, framerate=1.009).start()
Will constantly play at default 32fps when playing from a file

You need to modify the WebcamVideoStream class definition unfortunately


Allow including one config inside of another

This issue was originally created by @thosakwe here, before being automatically moved:
https://github.com/angel-dart-archive/configuration/issues/8
Example, production.yaml:
_include: "./staging.yaml"
_include:
  - "./staging.yaml"
  - "./development.yaml"

The YAML contents will be merged; this will occur before variables are expanded and placed into app.configuration.

Shipped in https://pub.dev/packages/angel_configuration/versions/2.2.0


Server crashes when server reloads/changelevel during highlights

Seems to happen if a player connect or disconnect after FT whistle and admin restart or changelevel.

Likely to be fixed in https://github.com/romdi/IOS/commit/67190c90e7e3c728c8c4ce3e5e5a1e104f0a76db
Will reopen if otherwise.


[import/first] Impossible to turn off absolute-import from dervied config

The base config we use sets
'import/first': ['error', 'absolute-first'],
However, while we want the imports to be at the top, we don't need them to be sorted beyond that. As such, we don't need 'absolute-first' set.
Before, we redefined the rule through
"import/first": ["error", ""],
However, since 2.20.1 the config only allows 'absolute-first' string in options. Since there is only one option to redefine, and severity changes don't override options, it is impossible to unset 'absolute-first' from derived config right now.
This seems like unintended behavior.
Could you perhaps add an option to explicitly turn off absolute-first?

That seems perfectly reasonable, a PR is welcome.

Alright.
Should another option be just an empty string or something like 'disable-absolute-first'? Not sure which is the preferred way.

Any news on the PR I made?


Add nullOrUuid assert

Description
This PR adds a nullOrUuid assert that allows validation of nullable UUID values.

Going through PR history, seems like #149 kind of predicted this PR, would it be worthwhile to invest in either rewriting or bringing that PR up to current standards?

Superseeded by https://github.com/uphold/validator.js-asserts/pull/149


Server can’t send chunks

Chunk packets are not sending by calling send() on Session objects.

A server written using MCProtocolLib can definitely send chunks. But you will need to implement the protocol correctly http://wiki.vg/Protocol

@0-x-2-2 Yes, I did. I implemented all required procedures and I sent chunks. I used MCProtocolLib to write a debugger client but I found there is no chunk received at all.

Chunks definitely send correctly. You'll need to provide code snippets so I can get an idea of what you're doing.

@Steveice10 Sorry I was at my phone. Here:
    public static void test_chunk() {
        try {
            Chunk[] chunks = new Chunk[16];
            for (int i = 0; i < chunks.length; i++) {
                chunks[i] = new Chunk(false);
                if (i < 4) {
                    for (int x = 0; x < 16; x++) {
                        for (int y = 0; y < 16; y++) {
                            for (int z = 0; z < 16; z++) {
                                chunks[i].getBlocks().set(x, y, z, new BlockState(1, 0));
                            }
                        }
                    }
                }
            }

            Column col = new Column(8, 8, chunks, null);
            ServerChunkDataPacket packet = new ServerChunkDataPacket(col);
            MineClashServer.getServer().getOnlinePlayer("_ZexyZek").sendPacket(packet);
        } catch (Exception e) {
            e.printStackTrace();
            MineClashServer.getServer().getLogger().error(e);
        }
    }

I used this function after this(in login handler):
java
        player.sendPacket(new ServerJoinGamePacket(0, false, GameMode.CREATIVE, 0, Difficulty.PEACEFUL, -1, WorldType.DEFAULT, false));
        player.sendPacket(new ServerPlayerHealthPacket(20f, 100, 20f));
        player.sendPacket(new ServerSpawnPositionPacket(new Position(128, MapRenderer.START_Y + 32, 128)));
        player.sendPacket(new ServerPlayerAbilitiesPacket(true, true, true, false, 0.4000000059604645f, 0.699999988079071f));
        player.sendPacket(new ServerEntityMetadataPacket(0, EntityMetadataUtil.createDefault()));

        ItemStack[] items = new ItemStack[45];
        Arrays.fill(items, new ItemStack(1));
        player.sendPacket(new ServerWindowItemsPacket(0, items));

        player.sendPacket(new ServerPlayerPositionRotationPacket(128d, MapRenderer.START_Y + 32d, 128d, 0f, 0f, 0, null));

Two immediately noticable problems:

You should be passing true to Chunk's constructor for the skylight parameter.
You should be passing a biome data array to Column.

Other than that, are you certain your sendPacket method is functioning properly, and also that your chunk sending code is actually getting called?

@Steveice10 Hello, thanks for your quick reply. After few code-inspections, I found that I must pass biome data to Column's constructor or I will cause a hidden NullPointerException with absolutely no error messages.

Where does this NullPointerException originate from?

The client does need the biome data when you first send it each column of chunks.

@Steveice10 Yes, but the server doesn't send the packet at all if no biome data present. There won't be packets received by clients, not even read on wire,

That should not be the case, which is why I asked about the NullPointerException you mentioned.

Nevermind then... Maybe there's something I couldn't notice. xD
Thanks so much for your help!!


Use github actions

This looks like it's working, but I figured another set of eyes would be helpful @msridhar

This looks like it's working, but I figured another set of eyes would be helpful @msridhar


chef-percona trying to install 5.6 when 5.5 is defined

On the first run, 5.5 is installed as defined by the attribute default["percona"]["version"] = "5.5". On every chef-client run afterwards it tries to upgrade it to 5.6: (sorry for the open text markdown isn't working for some reason)
Running handlers:
[2015-07-27T19:08:57+00:00] ERROR: Running exception handlers
Chef::Handler::SlackReporting
Running handlers complete
[2015-07-27T19:08:57+00:00] ERROR: Exception handlers complete
[2015-07-27T19:08:57+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
Chef Client failed. 26 resources updated in 15.738233345 seconds
[2015-07-27T19:08:58+00:00] ERROR: mysql2_chef_gem[default](tfly-onsale-management-service-db::install line 28) had an error: Mixlib::ShellOut::ShellCommandFailed: package[percona-server-client-5.6](percona::client line 9) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '100'
---- Begin output of apt-get -q -y install percona-server-client-5.6=5.6.25-73.1-1.precise ----
STDOUT: Reading package lists...
Building dependency tree...
Reading state information...
The following packages were automatically installed and are no longer required:
libaio1 libmysqlclient18 libdbd-mysql-perl percona-server-common-5.5
libperconaserverclient18
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
percona-server-client-5.5 percona-server-server-5.5
The following NEW packages will be installed:
percona-server-client-5.6
0 upgraded, 1 newly installed, 2 to remove and 106 not upgraded.
Need to get 0 B/10.1 MB of archives.
After this operation, 75.7 MB disk space will be freed.
(Reading database ... 72136 files and directories currently installed.)
Removing percona-server-server-5.5 ...
Removing percona-server-client-5.5 ...
Processing triggers for man-db ...
STDERR: * Stopping MySQL (Percona Server) mysqld
...fail!
invoke-rc.d: initscript mysql, action "stop" failed.
dpkg: error processing percona-server-server-5.5 (--remove):
subprocess installed pre-removal script returned error exit status 1

Stopping MySQL (Percona Server) mysqld
...fail!
invoke-rc.d: initscript mysql, action "stop" failed.

Percona Server is distributed with several useful UDF (User Defined Function) from Percona Toolkit.

Run the following commands to create these functions:
mysql -e "CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'"
mysql -e "CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'"
mysql -e "CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'"

See http://www.percona.com/doc/percona-server/5.5/management/udf_percona_toolkit.html for more details

Starting MySQL (Percona Server) database server mysqld
...done.
dpkg: percona-server-client-5.5: dependency problems, but removing anyway as you requested:
percona-server-server-5.5 depends on percona-server-client-5.5 (>= 1:5.5.44-rel37.3-1.precise).
Errors were encountered while processing:
percona-server-server-5.5
E: Sub-process /usr/bin/dpkg returned an error code (1)
---- End output of apt-get -q -y install percona-server-client-5.6=5.6.25-73.1-1.precise ----
Ran apt-get -q -y install percona-server-client-5.6=5.6.25-73.1-1.precise returned 100
[2015-07-27T19:08:58+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

This is on Ubuntu 12.04 on AWS. It ran perfectly fine every time in Kitchen, so I don't understand this behavior.

any idea?

I want to comment that this issue was from a previous company I no longer work for, so I would mostly be unable to verify any fixes since it took so long to investigate.

I can confirm that this issue is still present.
Recipe: percona::package_repo
* yum_repository[percona] action create
* template[/etc/yum.repos.d/percona.repo] action create
- create new file /etc/yum.repos.d/percona.repo
- update content in file /etc/yum.repos.d/percona.repo from none to 0aae73
--- /etc/yum.repos.d/percona.repo	2016-11-01 00:43:50.615518696 +0000
+++ /etc/yum.repos.d/.chef-percona20161101-128-19i035g.repo	2016-11-01 00:43:50.615518696 +0000
@@ -1 +1,11 @@
+# This file was generated by Chef
+# Do NOT modify this file by hand.
+
+[percona]
+name=Percona Packages
+baseurl=http://repo.percona.com/centos/6/os/x86_64/
+enabled=1
+gpgcheck=1
+gpgkey=http://www.percona.com/downloads/RPM-GPG-KEY-percona
+sslverify=true
- change mode from '' to '0644'
* execute[yum clean metadata percona] action run
- execute yum clean metadata --disablerepo=* --enablerepo=percona
* execute[yum-makecache-percona] action run
- execute yum -q -y makecache --disablerepo=* --enablerepo=percona
* ruby_block[yum-cache-reload-percona] action create
- execute the ruby block yum-cache-reload-percona
* execute[yum clean metadata percona] action nothing (skipped due to action :nothing)
* execute[yum-makecache-percona] action nothing (skipped due to action :nothing)
* ruby_block[yum-cache-reload-percona] action nothing (skipped due to action :nothing)
   Recipe: percona::server
     * yum_package[mysql-libs] action remove (up to date)
   Recipe: percona::client
     * yum_package[Percona-Server-devel-56] action install
       - install version 5.6.33-rel79.0.el6 of package Percona-Server-devel-56
     * yum_package[Percona-Server-client-56] action install
       - install version 5.6.33-rel79.0.el6 of package Percona-Server-client-56
   Recipe: percona::server
     * yum_package[Percona-Server-server-55] action install

       ================================================================================
       Error executing action `install` on resource 'yum_package[Percona-Server-server-55]'
       ================================================================================

       Chef::Exceptions::Exec
       ----------------------
       yum -d0 -e0 -y install Percona-Server-server-55-5.5.52-rel38.3.el6 returned 1:
       STDOUT:  You could try using --skip-broken to work around the problem
        You could try running: rpm -Va --nofiles --nodigest

       STDERR: Error: Percona-Server-client-56 conflicts with Percona-Server-client-55-5.5.52-rel38.3.el6.x86_64

       Cookbook Trace:
       ---------------
       /tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:78:in `run_action'
       /tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block (2 levels) in converge'
       /tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `each'
       /tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:106:in `block in converge'
       /tmp/kitchen/cache/cookbooks/compat_resource/files/lib/chef_compat/monkeypatches/chef/runner.rb:105:in `converge'

       Resource Declaration:
       ---------------------
       # In /tmp/kitchen/cache/cookbooks/percona/recipes/server.rb

        32:   package node["percona"]["server"]["package"] do
        33:     action node["percona"]["server"]["package_action"].to_sym
        34:   end
        35: end

       Compiled Resource:
       ------------------
       # Declared in /tmp/kitchen/cache/cookbooks/percona/recipes/server.rb:32:in `from_file'

       yum_package("Percona-Server-server-55") do
         package_name "Percona-Server-server-55"
         action [:install]
         retries 0
         retry_delay 2
         default_guard_interpreter :default
         declared_type :package
         cookbook_name "percona"
         recipe_name "server"
         flush_cache {:before=>false, :after=>false}
       end

       Platform:
       ---------
       x86_64-linux

   Recipe: ppi_rhel::apache
     * httpd_service_rhel_sysvinit[apache] action restart
       * service[httpd-apache] action restart
         - restart service service[httpd-apache]

   Running handlers:
   [2016-11-01T00:44:26+00:00] ERROR: Running exception handlers
   Running handlers complete
   [2016-11-01T00:44:26+00:00] ERROR: Exception handlers complete
   Chef Client failed. 73 resources updated in 48 seconds
   [2016-11-01T00:44:26+00:00] FATAL: Stacktrace dumped to /tmp/kitchen/cache/chef-stacktrace.out
   [2016-11-01T00:44:26+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
   [2016-11-01T00:44:26+00:00] ERROR: yum_package[Percona-Server-server-55] (percona::server line 32) had an error: Chef::Exceptions::Exec: yum -d0 -e0 -y install Percona-Server-server-55-5.5.52-rel38.3.el6 returned 1:
   STDOUT:  You could try using --skip-broken to work around the problem
    You could try running: rpm -Va --nofiles --nodigest

   STDERR: Error: Percona-Server-client-56 conflicts with Percona-Server-client-55-5.5.52-rel38.3.el6.x86_64

   [2016-11-01T00:44:26+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

------Exception-------
Class: Kitchen::ActionFailed
Message: 1 actions failed.
Converge failed on instance .  Please see .kitchen/logs/default-centos-6.log for more details
Please see .kitchen/logs/kitchen.log for more details
Also try running kitchen diagnose --all for configuration

i'm happy to confirm any fixes put in place

i did a little bit of digging here and i think the issue lies in accessing node["percona"]["version"] inside of attributes/client.rb
it looks like the node values used in here are only aware of values specified inside the cookbook and cannot be overridden by the calling cookbook. it'll probably be best to move the following
case node["platform_family"]
when "debian"
  abi_version = case version
                when "5.5" then "18"
                when "5.6" then "18.1"
                else ""
                end

  if Array(node["percona"]["server"]["role"]).include?("cluster")
    default["percona"]["client"]["packages"] = %W[
      libperconaserverclient#{abi_version}-dev percona-xtradb-cluster-client-#{version}
    ]
  else
    default["percona"]["client"]["packages"] = %W[
      libperconaserverclient#{abi_version}-dev percona-server-client-#{version}
    ]
  end
when "rhel"
  if Array(node["percona"]["server"]["role"]).include?("cluster")
    default["percona"]["client"]["packages"] = %W[
      Percona-XtraDB-Cluster-devel-#{version} Percona-XtraDB-Cluster-client-#{version}
    ]
  else
    default["percona"]["client"]["packages"] = %W[
      Percona-Server-devel-#{version} Percona-Server-client-#{version}
    ]
  end
end

into a recipe. i'm going to try my hand at this but i'm still pretty new to chef so no promises i'll be able to get this quickly.

I've got a fix on my repo but it looks like i'm not authorized to submit a pull request here. can someone add me?
my commit:
https://github.com/jamesooo/chef-percona/commit/898d178c9bfcb5e3c70de8f7359f5dc5f150f4eb

I also have a problem of this being in the attributes file, not about the version but about the Cluster/Standalone version of the client. will this be merged?

Not sure if it'll get merged in. I've been waiting for this to be accepted for a while. Looks like the tests also need to be updated. I think this repo might not be getting worked on. Feel free to clone my fork and work from that tho.

there is an issue about transferring the repo to other maintainers... #362

Closing due to inactivity.
If this is still an issue please reopen or open another issue. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help!
Thanks,
Sous-Chefs


Asset API refresh

C# manages asset references inherently through constructors/destructors and manages memory, but C needs to handle this a little more explicitly in some cases. So to go with _release functions, there should also be an addref, reference, or add_reference function for each asset type.
Asset API should also have some functions for listing assets, and pulling up some basic information about them! For example, it would be great to print a list of all live assets, and how many references each one has. This could include some memory usage estimates, and aid in debugging asset lifetime.

Would also be great to have asset reload from file/memory functions. Something that would re-load the whole model file information, but preserve asset references.


Hierarchy builder: adjust example file paths for smoke test kit

This PR adjusts the smoke test kit to the modified example paths for hierarchy builder.

Closed in favor of @gares PR.


Add VLAN support

This PR adds basic VLAN support.
There are probably some things missing since I am not yet that familiar with the codebase. I hope that you can point me in the right direction.
If you add the VLAN config option to the loopback example it works and you can see the tags in the output as well as in the recorded pcap file.

Ok, so first thing is to figure out how to integrate VLAN into existing tests for coverage.

Since src/wire/vlan/mod.rs is not that big, could you move that file to src/wire/vlan.rs? Could you also add some documentation in that file where we can find information about the frame formats? I'm not so familiar with VLAN. Thank you!

@thvdveld I implemented your remarks a while back but forgot to write a new comment here.
What do you think about the current state of this PR? Thanks!

This is a large and complex PR and I won't be reviewing it as-is; splitting it into multiple parts, starting with the wire bits, may help.


Reduce number of created temp dirs for profiles (closes #2735)

FPR

\cc @miherlosev @kirovboris
I've tested in on Windows 10, Ubuntu 16.04 VM, macOS 10.13 VM.
Additional detached process for killing browsers and cleaning temp dirs works even for https://github.com/DevExpress/testcafe/issues/2013
You can grab a debug build here for testing: https://github.com/AndreyBelym/testcafe/releases/tag/build-gh-2735


Experimental libnetwork: docker service info should show the IP list associated with the service

We need a way to relate a docker libnetwork service with the list of IP addresses that it is associated with. Currently, docker inspect <container_id/name> doesn't show us the libnetwork service info.
I really needed to put this in, so I've put in a fix for this and it would be great if someone could review this patch and provide their comments - I'll make the necessary changes and resubmit if required.
Will submit a pull request in a short while.

Hi!
Please read this important information about creating issues.
If you are reporting a new issue, make sure that we do not have any duplicates already open. You can ensure this by searching the issue list for this repository. If there is a duplicate, please close your issue and add a comment to the existing issue instead.
If you suspect your issue is a bug, please edit your issue description to include the BUG REPORT INFORMATION shown below. If you fail to provide this information within 7 days, we cannot debug your issue and will close it. We will, however, reopen it if you later provide the information.
This is an automated, informational response.
Thank you.
For more information about reporting issues, see https://github.com/docker/docker/blob/master/CONTRIBUTING.md#reporting-other-issues

BUG REPORT INFORMATION
Use the commands below to provide key information from your environment:
docker version:
docker info:
uname -a:
Provide additional environment details (AWS, VirtualBox, physical, etc.):
List the steps to reproduce the issue:
1.
2.
3.
Describe the results you received:
Describe the results you expected:
Provide additional info you think is important:
----------END REPORT ---------
#ENEEDMOREINFO

CC: @mavenugo

Submitted pull request at https://github.com/docker/libnetwork/pull/404 (let me know if the resource isn't found :p )

Cc: @mrjana @mavenugo

It would be great if someone reviewed this - tracking iface/network/service/IPs is required and not having this info presented in the API response would make it hard to correlate docker container interfaces with their respective services/networks.

Multihost networking has exited experimental mode with considerably changes to the model. Specifically the service entity described by this issue no longer exists nor is accessible via CLI or rest API.
Therefore I am suggesting to close this issue as obsolete.

Agreed. Documentation for the new networking can be found here; https://docs.docker.com/engine/userguide/networking/dockernetworks/
Additional improvements and features are coming in docker 1.10


Update LICENSE.

@jonsterling Should we just copy-and-paste all the people in the contributor list? This can also be
Copyright (c) 2015-2016 Jonathan Sterling, Danny Gratzer
Copyright (c) 2017 Jonathan Sterling, Danny Gratzer, Kuen-Bang Hou (Favonia)

though I remember GitHub license detection is not happy about this.

As a note on licenses, Apache 2.0 is good for stopping others from using patterns to troll others, and MIT is good at being very permissive. I guess you have thought about these before.

@favonia btw, I also added you to the website: http://www.redprl.org. did I put your name in correctly?
It's hard to keep all these contributor lists in sync...

@jonsterling Yes, thanks.


reduce pv coordinates to make more realastic

Pull Request
Description
Please delete the italicised instruction text!
Please include a summary of the change and which issue is fixed.
Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Please also list any relevant details for your test configuration

[ ] No
[ ] Yes

Checklist:

[ ] My code follows OCF's coding style guidelines
[ ] I have performed a self-review of my own code
[ ] I have made corresponding changes to the documentation
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have checked my code and corrected any misspellings

Codecov Report

Merging #538 (d870802) into main (e2f91b1) will increase coverage by 3.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #538      +/-   ##
==========================================
+ Coverage   87.99%   91.09%   +3.10%
==========================================
  Files          42       42
  Lines        2674     2674
==========================================
+ Hits         2353     2436      +83
+ Misses        321      238      -83

Impacted Files
Coverage Δ

nowcasting_dataset/manager.py
80.00% <ø> (ø)

...owcasting_dataset/data_sources/fake/coordinates.py
90.32% <100.00%> (ø)

nowcasting_dataset/filesystem/utils.py
94.87% <0.00%> (+5.12%)
:arrow_up:

nowcasting_dataset/data_sources/gsp/eso.py
71.08% <0.00%> (+12.04%)
:arrow_up:

nowcasting_dataset/data_sources/data_source.py
90.90% <0.00%> (+16.96%)
:arrow_up:

nowcasting_dataset/data_sources/gsp/pvlive.py
100.00% <0.00%> (+75.92%)
:arrow_up:

Continue to review full report at Codecov.

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


feat: use signalfd on Linux

The implementation is simpler with signal fd. However, it sets the signal mask for only the current thread. On other platforms, it sets the handler for all processes. It is a potential inconsistency. What do you think? @George-Miao

@George-Miao what do you think about this PR?


Vuex records mutations despite recording being disabled

Version
5.1.0
Browser and OS info
Chrome 74 / Windows 10
Steps to reproduce

turn off vuex/mutation recording
- close dev tools
reload page
- open dev tools
do something in the vue app

What is expected?
No mutations are being recorded.
What is actually happening?
Recording is still disabled (grey circle), but mutations are being recorded and state snapshots are made.

Turning it on and off again works (yes, really). No mutations are being recorded afterwards.
The issue is exacerbated by the fact that with recording happening our application instantly crashes due to out of memory exception, since the initial mutations when lots of data is being fetched and the UI is constructed, combined with the whole (huge) state being snapshotted every time, are enough to nuke the page. Fortunately i can work around it at the moment by refreshing the page on a different route with less stuff going on, open devtools, turn on and off mutation recording, and then go to the actual route i am working on. Still very annoying.

To provide some additional info, after scanning the sources i checked the corresponding local storage key when inspecting the dev tools via
localStorage.getItem('shared-data:recordVuex')
and got
"false"
both before reloading the page (when mutations were correctly paused) and after (when it displayed as paused, but did actually record).
When cycling the setting in the devtools, on enable the localStorage value correctly changed to "true" and on disabled it changed back to "false".
So it seems the persistence mechanism works just fine, but the initialization of the devtools does not correctly pull the persisted value into the application state.

Made a recording of a quick reproduction of the issue with a fresh @vue/cli scaffolded project (default settings plus vuex) using a simple increment mutation driving a state-based counter.
https://gfycat.com/madhollowhawk
I reload the page using ctrl-r in the beginning (can be seen when the devtools flash and recording log resets), afterwards mutations are still recording despite the recording button being disabled. Enable/Disable cycle fixes the issue.


Add changelog v0.30.0

This PR corresponds to v0.30.0 changelogs

Thank you @gmourier @guimachiavelli and @dichotommy for your time on it 🙏

@gmourier @guimachiavelli if you have the time for a last final review, otherwise it's ok 😇

Thanks for the good catch @maryamsulemani97 ❤

@curquiza
Should we mention that the canceledBy and error fields are part of all task objects now?

Yes you are right @maryamsulemani97, I'll add it

Thanks @mmachatschek 🙏

I finally merge this PR! thanks everyone who worked on this!


USR1 signal handler

Adding handlers for USR1 signal to the preforked worker strategy.
Also, changing some logs levels from debug to info.
For review: @riteshnoronha @alanbrent @Ceraunograph @obrie @StabbyCutyou

@goose42 and myself verified that USR1 is being handled correctly.
lgtm


how can I stop processing in simple-web-server side when ajax request abort in frontend

I guess JS's abort only stops listening for ajax's request events. If you are doing heavy processing on the server, and would like to stop this processing, you need to implement a way to stop this yourself.

OK,got it ,thanks. So do you think it is a good way to send a flag to server side and let the server side to terminate the corresponding thread?

This would depend on your application. Closing this issue now since it is related to your application and not the Simple-Web-Server library. Hope you find a good solution though.


dignified-release is broken

https://github.com/diasdavid/js-libp2p-websockets/pull/8#issuecomment-209718902
@dignifiedquire

If you override gulp tasks, you need to call gulp for all other things as well, not use the binaries, that should fix this

sweeet, all works now :)


chore(release): version bump to 0.0.6

What did I change?

Version bump to 0.0.6
Update changelog

Why did I change it?

Last release workflow failed because of version conflict.

@goenning Here's the PR as discussed. You last push was to version 0.1.0. I bumped it to 0.0.6 - what do you prefer?

Still not working.. @AntoineKM any idea what's wrong or some pointers on what I could try?
Here's the error https://github.com/goenning/google-indexing-script/actions/runs/9109233595

Hey @goenning it fail because the version was changed manually, you should add the changes with npm run changeset and check if the changeset is valid with the changeset-bot

I will fix it in a PR

@urbanisierung should be good now, thanks again @AntoineKM

Supernice, thank you both!


GraphQL API v2: Expense amount is not using Amount type

As a key pattern in GraphQL API v2, we want all amounts to be expressed using the dedicated Amount type.
Expense is currently using the older pattern (amount as GraphQLInt), separated currency.
We should also fix ExpenseItemCreateInput and use AmountInput instead
As this is a breaking change, we need to have a proper release strategy.

@znarf Something to be used like this?
expense(id: 4242) {
  amountInExpenseCurrency: amount(currencySource: EXPENSE) {
    valueInCents
    currency
  }
  amountInAccountCurrency: amount(currencySource: ACCOUNT) {
    valueInCents
    currency
  }
  amountInHostCurrency: amount(currencySource: HOST) {
    valueInCents
    currency
  }
}

Yes, that's one way. Or people could eventually ask a conversion in a specific currency. We could have both.
amountInExpenseCurrency: amount(currency: $currency) {
    valueInCents
    currency
  }

variables: { currency: expense.currency }

Yes, that's one way. Or people could eventually ask a conversion in a specific currency. We could have both.
amountInExpenseCurrency: amount(currency: $currency) {
    valueInCents
    currency
  }

variables: { currency: expense.currency }

Yep, having both is interesting. The tricky part about specifying the exact currency is that you don't necessarily know the collective/host currencies before the initial load.

I'm going with the amountV2 + currencySource proposal:

Great. What's the default if currencySource is not passed?

It defaults to currencySource: EXPENSE.

So, we name it amountV2 and we move it to amount as soon as possible (I think some external people are relying on it already, so we should try to communicate that breaking change in a proper way)

Yep. Until GraphQL introduces something like Unions, we're stuck with this 3 steps process:

Introduce new *V2 field, incentive everyone to use it by deprecating the old one
Remove old field
Re-introduce old field with new type and incentive everyone to move to it
Remove *V2

It's great if we have a way to directly message users, so we could add something in the logs to see who's using them. An update on https://opencollective.com/engineering/updates would also be helpful. In all cases, we'll have to move slowly.

I'm actually tempted to move with another proposal that I feel is more aligned with the latest multi-currency expenses changes by adding a new amounts field looking like this:
expense = {
  amounts: {
    inExpenseCurrency: {
      amount: { valueInCents: 100, currency: 'USD' },
    },
    inAccountCurrency: {
      amount: { valueInCents: 110, currency: 'EUR' },
      fxRate: {
        source: 'WISE',
        value: 1.1,
        isApproximate: false, // Whether this is a rough estimate or the exact amount (i.e. from the quote)
        fromCurrency: 'USD',
        toCurrency: 'EUR',
        date: '2022-02-09T00:00:00,
      }
    },
    inHostCurrency: {
      amount: { valueInCents: 110, currency: 'NZD' },
      fxRate: {
        source: 'OPENCOLLECTIVE',
        value: 1.1,
        isApproximate: true, // Whether this is a rough estimate or the exact amount (i.e. from the quote)
        fromCurrency: 'USD',
        toCurrency: 'NZD',
        date: '2022-02-09T00:00:00,
      }
    },
  }
}

This will also unblock https://github.com/opencollective/opencollective/issues/5300 by providing more info on the FX rate source. Some usage examples:
expense.amounts.inExpenseCurrency.amount.value; // Expense amount in expense currency
expense.amounts.inCollectiveCurrency.amount.value; // Expense amount in collective currency
expense.amounts.inCollectiveCurrency.fxRate.value; // Expense to collective currency FX rate

Happy to hear feedback about this approach.

Alternative way to solve the need: keep the original plan with amountV2, and update accountCurrencyFxRate to return an object like defined above. We would also need to introduce a new hostCurrencyFxRate.
expense = {
  accountCurrencyFxRate: {
        source: 'WISE',
        value: 1.1,
        isApproximate: false, // Whether this is a rough estimate or the exact amount (i.e. from the quote)
        fromCurrency: 'USD',
        toCurrency: 'EUR',
        date: '2022-02-09T00:00:00,
  }
}

@znarf Good idea, then the long-term vistion would be something like:
expense {
  amountInAccountCurrency: amount(currencySource: ACCOUNT) {
    valueInCents
    currency
    fxRate {
      value
      fromCurrency
      source
      date
    }
  }
}

@znarf Implemented the aforementioned design in https://github.com/opencollective/opencollective-api/pull/7254


< not converted to markdown

When converting to markdown, < is converted as <

Do you mean that < is converted to &lt? If so, that is working as intended. There is an option to render HTML tags (see https://github.com/evbacher/gd2md-html/wiki#options) that will leave them alone.

Yes, I will correct the question . and try it.

This is going to sound funny but < is converted to < and > stays > in converting to markdown. I'm def. going to use the render HTML tags (because that's what I need), but I want to let you know in case it's a place for improvement.

There is actually no need to convert the > sign, as long as the opening tag < is converted to <. This keeps the Markdown source as simple as possible.
If you really do want to render the HTML tags, then you can choose that option.


bug: incorrect value after toggle

General information

Library version: 2.0.0
Browser and OS: Chrome,Firefox,Safari (latest) on MacOS 10.14.5

Issue description
Bug can look at https://braintree.github.io/restricted-input/
Steps

I enter the value<PHONE_NUMBER>111111) in field Card Number (toggle-able)
I press the button toggle twice
and get the formatted value one less character 4111 1111 1111 111

This is expected, as the pattern it toggles to has 15 characters instead of 16 characters. When the input starts at 16 characters and then is restricted to 15 characters, it makes sense that the final character would be cut off when toggled back.
This particular example is emulating a toggle between a non-American Express card (which usually has 16 digits) and an American Express card (which only has 15 digits).

Your truth, but I noticed another mistake while trying to understand the reasons for this behavior. this can be seen on my demo page There you may notice that I obviously change the value of the element
function setUnionpay() {
  element.value = data.unionpay.value;
  formattedCreditCardInput.setPattern(creditCardGapsPattern(data.unionpay.gaps, data.unionpay.lengths));
}

function setAmex() {
  element.value = data.amex.value;
  formattedCreditCardInput.setPattern(creditCardGapsPattern(data.amex.gaps, data.amex.lengths));
}

then the unformat method does not take into account the characters used in the pattern.
I created a PR where there is a playback test

@crookedneighbor tagging you just in case you don’t see this, otherwise.


enable additional configuration parameters missing from Gradle plugin

These changes allow configuration of those extra server parameters that the Maven version of the plugin allows.

Thanks!


Type errors not shown when using cabal

Under certain circumstances that I have not yet been able to determine completely, ghcide seems to accept erroneous files without complaining when using a cabal cradle. (I cannot reproduce this with either direct or stack cradles.)
This seems to happen with both ghcide-0.0.3 from Hackage and the current master, built using ghc-8.6.5.
To reproduce

Create a new directory ghcide-test.

Create a file cabal.project:
packages: .

Create a file ghcide-test.cabal:
name: ghcide-test
version: 0.1
build-type: Simple
cabal-version: >= 1.2

library
  default-language: Haskell2010
  hs-source-dirs: .
  build-depends:
    base
  exposed-modules:
    Foo

Create a file Foo.hs:
module Foo where

x :: Int
x = "foo"

y :: Int
y = _

Run ghcide.

This is the output I'm getting:
Starting ghcide (GHC v8.6)
/home/andres/repos/ghcide-test
[1/6] Finding hie-bios cradle
Cradle {cradleRootDir = "/home/andres/repos/ghcide-test", cradleOptsProg = CradleAction: cabal}

[2/6] Converting Cradle to GHC session

[3/6] Initialising IDE session

[4/6] Finding interesting files
Found 1 files

[5/6] Setting interesting files
[DEBUG] Set files of interest to: [NormalizedFilePath "./Foo.hs"]
[DEBUG] Starting shakeRun (aborting the previous one took 0.00s)

[6/6] Loading interesting files
[DEBUG] Finishing shakeRun (took 0.00s, exception: thread killed)
[DEBUG] Starting shakeRun (aborting the previous one took 0.00s)
[DEBUG] Finishing shakeRun (took 0.16s, completed)
Files that worked: 1
Files that failed: 0
Done

I would expect ghcide to report the errors. In the editor, no errors in Foo.hs are shown either.

Things seem to become better once I enable more warnings in ghc-options such as -Wall, -Wdeferred-type-errors and/or -Wtyped-holes.
I have the feeling that the output is somewhat non-deterministic even in such cases though, with not always the same errors being shown and occasionally the file still being accepted without errors being reported (but rarely). Could there be a race condition involved?

I think the problem is that in typecheckModule, ghcide sets a number of flags that turn various things into warnings, but does not ensure that these warnings are actually triggered.
For me, changing the definition of demoteTEsToWarns in Development.IDE.Core.Compile from
  demoteTEsToWarns :: DynFlags -> DynFlags
  demoteTEsToWarns = (`gopt_set` Opt_DeferTypeErrors)
                   . (`gopt_set` Opt_DeferTypedHoles)
                   . (`gopt_set` Opt_DeferOutOfScopeVariables)

to
  demoteTEsToWarns :: DynFlags -> DynFlags
  demoteTEsToWarns = (`wopt_set` Opt_WarnDeferredTypeErrors)
                   . (`wopt_set` Opt_WarnTypedHoles)
                   . (`wopt_set` Opt_WarnDeferredOutOfScopeVariables)
                   . (`gopt_set` Opt_DeferTypeErrors)
                   . (`gopt_set` Opt_DeferTypedHoles)
                   . (`gopt_set` Opt_DeferOutOfScopeVariables)

fixes the problem for me.
All three are needed and seem to be unset using a plain cabal cradle, whereas they do seem to be set by default using a direct cradle with no arguments. I'm not sure whether this means there's something strange with hie-bios.

After talking to @mpickering, it looks like cabal-install adds -w (disable all warnings) when being invoked with -v0, which is what hie-bios currently does. So my situation will be fixed via changes to hie-bios, and no action is urgently needed here.
There's still a more fundamental question whether ghcide should ensure these warnings are enabled when it starts deferring errors to warnings. It is very confusing to suddenly end up in a situation where certain errors are not reported at all.
I'm therefore going to leave this open, but feel free to close if you think the current behaviour of ghcide is ok.

Thanks for tracking this down @kosmikus! I raised a PR based on it as https://github.com/digital-asset/ghcide/pull/172. I'd say hie-bios is definitely in error here, as it shouldn't cause non-user flags to appear, but ghcide shouldn't make things worse when it turns on warnings implicitly.

Thanks for tracking this down. Closing since we merged @ndmitchell’s PR that enables these warnings.


add post win team fight

disable the midas bit, enable friendly fire, dont spawn notplayers, have the fight players message, and just midas the last person into gold


Start markdown

This is an <h1> header, which is the largest
This is an <h2> header
This is an <h6> header, which is the smallest
hellow word

[x] List syntax is required
[x] This item is complete
[ ] This item is not complete
[ ] Turn on GitHub Pages
[ ] Outline my portfolio
[ ] Introduce myself to the world

hi