db: add composes org id index

I noticed most queries filter records by org_id, however, there is no index on the column. With the current strategy of not deleting records from composes table, this might be a problem in the future causing too many table scans. This fixes it.
Warning: We now have three PRs with a migration, make sure we rename the numbers accordingly. Cheers. @croissanne

Just rebased, sorry. I accidentally created this index as unique, meaning a single customer account could only have a single compose :-) Fixed.


Add websocket for broadcasting InfluxDB to JS clients

Putting the code here for now. Can be made into a pull request for a service later.
#!/usr/bin/env python

import asyncio
import numpy as np
import websockets
import json

class MultiEARWebsocket():

  """
  Class MultiEARWebsocket
  Wrapper for Python websocket that broadcasts data to connect clients
  """

  HOST = ("localhost", 8765)
  TICK_RATE_SECONDS = 2

  def __init__(self):

    """
    Def MultiEARWebsocket.__init__
    Initializes the websocket server and keeps track of periodically updated clients & data
    """

    # Keep track of the connected clients
    self.clients = set()
    self.data = None

  def run(self):

    """
    Def MultiEARWebsocket.run
    Starts the main loop of the websocket server (this will run indefinitely)
    """

    asyncio.run(self.main())

  def update(self):

    """
    Def MultiEARWebsocket.update
    Update function called once in a while to draw new data from the database
    """

    self.data = list(np.random.random(10))

  async def broadcast(self):

    """
    Def MultiEARWebsocket.broadcast
    Update function called once in a while to draw new data from the database
    """

    while True:

      # Update (call to InfluxDB)
      self.update()
      serialized = json.dumps(self.data)

      # Write to all clients
      await asyncio.gather(
         *[ws.send(serialized) for ws in self.clients],
         return_exceptions=False,
      )
      # Schedule next tick
      await asyncio.sleep(self.TICK_RATE_SECONDS)

  async def handler(self, websocket, path):

    """
    Def MultiEARWebsocket.handler
    Callback fired when a client is connected: ignore incoming messages and only keep track of connected clients
    """

    self.clients.add(websocket)

    try:
      async for msg in websocket:
        pass
    except websockets.ConnectionClosedError:
      pass
    finally:
      self.clients.remove(websocket)

  async def main(self):

    """
    Def MultiEARWebsocket.main
    Main function to schedule events and create websocket listener
    """

    # Broadcasting task
    asyncio.create_task(self.broadcast())

    async with websockets.serve(self.handler, *self.HOST):
      await asyncio.Future()  # run forever

if __name__ == "__main__":

  """
  Def __main__
  Only executed when script is called directly
  """

  WebsocketServer = MultiEARWebsocket()
  WebsocketServer.run()

In JavaScript:
<script>
// Create WebSocket connection.
const socket = new WebSocket('ws://localhost:8765');

// Connection opened (sending does nothing)
socket.addEventListener('open', function (event) {
    socket.send('Ping');
});

// Listen for messages
socket.addEventListener('message', function (event) {
  console.log(event.data);
});
</script>

See #4


NAAS-160 - Provide documentation of example JPA + CRDB notary configuration

LGTM

Thank you @benpesterr3. SME approval from @relyafi probably a good idea before merging.

2 missing fullstops

Thanks @benpesterr3 fixed now :)


 I have no idea about that. I set count as 1000000, it works as normal,  so I use this config to train model and encounter the second problem.

when I run rnn_train.py (tensorflow-gpu 2.5.0), raise error like this:

Traceback (most recent call last):
  File "rnn_train.py", line 206, in <module>
    callbacks=[checkpoint_cb],
  File "/home/edev/.local/lib/python3.6/site-packages/keras/engine/training.py", line 1122, in fit
    steps_per_execution=self._steps_per_execution)
  File "/home/edev/.local/lib/python3.6/site-packages/keras/engine/data_adapter.py", line 1348, in get_data_handler
    return DataHandler(*args, **kwargs)
  File "/home/edev/.local/lib/python3.6/site-packages/keras/engine/data_adapter.py", line 1136, in __init__
    adapter_cls = select_data_adapter(x, y)
  File "/home/edev/.local/lib/python3.6/site-packages/keras/engine/data_adapter.py", line 978, in select_data_adapter
    _type_name(x), _type_name(y)))
ValueError: Failed to find data adapter that can handle input: <class '__main__.CustomDataGen'>, <class 'NoneType'>

can you please tell me your TensorFlow version?
update: I changed some code and fixed the second problem, however, only CPU can be used to train, when I use GPU, raising error:
Unknown: CUDNN_STATUS_BAD_PARAM
can you please tell  me if you can use GPU to train?

Yes  I have the same question:
x_lp[0] is Nan detected after pitch_downsample, so not filtered. total count:1
Why does Nan occur？ I have check the RNNoise with same data,it's neverhappened

my QQ: 632120162

I user tensorflow 2.3.0    Keras 2.4.3
Yes, GPU is used to train the data.
And in rnn_train.py, some numbers need to be changed based on your input data size.
traingen = CustomDataGen(35200,batch_size,0,35200window_size,window_size)
valgen = CustomDataGen(4800,batch_size,35200window_size,40000*window_size,window_size)
For "x_lp[0] is Nan detected after pitch_downsample, so not filtered. total coun", Some codes are added to check if nan is generated during pitch filter. Need furthur check if these codes are need any more or not. At present, you may ignore these messages.
For Segmentation core dump issue, maybe because memory is not enough, You may use gdb to check the rootcause.

thanks, I have solved problem in "rnn_train.py" and   Segmentation core dump with your help, and I have detected the nan problem is beacause ac[] appear 0 in _celt_autocorr().


Update firstrun.gif to demonstrate seamless posting

Right now the gif shows the high friction method of creating content.

Done


fix(dal,web): react to change sets applying to head/current change set

Fixes BUG-257

bors merge

verified this functionality works as expected


[Bug] while shutdown testnet and start testnet, the account information is missing

🐛 Bug
while shutdown testnet and start testnet, the account information is missing
but when you input 'account create', the balance is retrieved
libra% account list
No user accounts
libra% account create

Creating/retrieving next account from wallet
Created/retrieved account #0 address 463cbe95a428c717d4ac1cb6ecd7b3db9d92d72f538bf7be85c1325143259a7d
libra% account create
Creating/retrieving next account from wallet
Created/retrieved account #1 address 9d2e961954cbc7bdc24a07acc39920943c2fce283b3e6ddd0cea9c94b02e4a3d
libra% query balance 1
Balance is: 152.000000
libra% account list
User account index: 0, address: 463cbe95a428c717d4ac1cb6ecd7b3db9d92d72f538bf7be85c1325143259a7d, sequence number: 0, status: Persisted
User account index: 1, address: 9d2e961954cbc7bdc24a07acc39920943c2fce283b3e6ddd0cea9c94b02e4a3d, sequence number: 0, status: Persisted
libra% query balance 0
Balance is: 210.000000
libra%

To reproduce
** Code snippet to reproduce **
# Your code goes here
# Please make sure it does not require any external dependencies

** Stack trace/error message **
// Paste the output here

Expected Behavior

System information
Please complete the following information:

Additional context
Add any other context about the problem here.

This is working as intended. You need to use the 'account write client.mnemonic' command in order to save the updated client.mnemonic file with the number of accounts you've created.


🖊  Updated tokenInfo for sepolia with Boba Token address.

Can we add the BOBA to the token list? https://sepolia.etherscan.io/token/0x33faF65b3DfcC6A1FccaD4531D9ce518F0FDc896

@wsdt can you please review and publish latest version of @bobanetwork/register ?


ESP32

For remaping pins SDA and SCL correct file RTClib.cpp:
https://github.com/adafruit/RTClib/blob/82d00a1a15bcf738b001e42bf26a3d1f1a15be32/RTClib.cpp#L240
Use:
Wire.begin(RTC_SDA, RTC_SCL);

I have an ESP32 project and I cant seem to get my DS3231 to work....I've remapped the SDA and SCL pins as you suggest here but to no avail

Remaping can only help configuration I2C in ESP32.
Problem can be in DC3231, in wire or another.
Can you view the SDA and SLC line with an oscilloscope or logic analyzer?

I have just tested a RTClib, DC3231, with a LoadLin32 Lite clone which does not have pin 21.
To make it work for DS3231, I made the following changes in the RTClib.cpp:
////////////////////////////////////////////////////////////////////////////////
// RTC_DS3231 implementation
#if defined( ESP32 ) || defined(ARDUINO_ARCH_ESP32)
boolean RTC_DS3231::begin(int sda, int scl) {
Wire.begin(sda,scl);
return true;
}
#else
boolean RTC_DS3231::begin(void) {
Wire.begin();
return true;
}
#endif
And in the RTClib.h:
class RTC_DS3231 {
public:
#if defined( ESP32 ) || defined(ARDUINO_ARCH_ESP32)
boolean begin(int sda = 21, int scl = 22);
#else
boolean begin(void);
#endif
static void adjust(const DateTime& dt);:
And the DS3231 works with RTClib.


Running FaceNet and MTCNN model simutaneously on 2 cameras

Hello everyone!
I am trying to run the MTCNN and FaceNet model on 2 cameras simultaneously. So, I am not getting any error while doing this but the code don't give me any results.
It just loads both the models and doesn't give me any predictions. Can anyone help me with this? I have created 2 graphs using g=tf.Graph for MTCNN and FaceNet.
I think this error is coming due to multi-processing with tensorflow as it might trying to load MTCNN input to Facenet graph. *this is my assumption.
Please let me know if you have any idea about this. Thanks.

This question is better asked on StackOverflow since it is not a bug or feature request. There is also a larger community that reads questions there and provide better and faster support for such issues. Thanks!

Automatically closing due to lack of recent activity.Thanks!


Add features and prepare for the addition of Barrage, Chapter, and Equipment data functions

This PR adds filter and search functions for the ship and equipments classes and prepares for the addition of Barrage, Chapter, and Equipment data functions. These changes are tested. Actually adding Barrage, Chapter, and Equipment functions are in the works. Jest tests are also added for automating tests. Please look into commit messages for more details.

On the side note, I will merge this once the barrage, chapter and equip data functions are done

On the side note, I will merge this once the barrage, chapter and equip data functions are done

Barrage, chapter and equip data functions are soon TM
Idea: Legacy mode. Basically old Saratoga API type of function naming conventions. If you would like this please write a comment here thanks.

Barrage, chapter and equip data functions are soon TM
Idea: Legacy mode. Basically old Saratoga API type of function naming conventions. If you would like this please write a comment here thanks.

Ill also fix the non-jest vanilla JS tests soon TM

Ill also fix the non-jest vanilla JS tests soon TM

On the side note, there is no eta for barrage, chapter and equip data functions because there are no specs for it yet. If you would like to suggest specs please make changes linked doc. Thanks!

On the side note, there is no eta for barrage, chapter and equip data functions because there are no specs for it yet. If you would like to suggest specs please make changes linked doc. Thanks!

Legacy class can be removed later


[new-arch] Better reporting for Microsoft Font Validator

Our current [old-arch] output for MFV is not useful:
### Checking with Microsoft Font Validator
* INFO: Microsoft Font Validator returned an error code. Output follows :

fonts/LibreBarcode39-Regular.ttf (file 1 of 1)
Table Test: DSIG
Table Test: OS/2
Table Test: cmap
Table Test: cvt
Table Test: fpgm
Table Test: gasp
Table Test: glyf
Progress: Validating glyph with index 0 (out of 90 glyphs)
Progress: Validating glyph with index 1 (out of 90 glyphs)
Progress: Validating glyph with index 2 (out of 90 glyphs)
Progress: Validating glyph with index 3 (out of 90 glyphs
...
Complete: fonts/LibreBarcode39-Regular.ttf.report.xml
Reports are ready!

But the generated report xml file from Complete: fonts/LibreBarcode39-Regular.ttf.report.xml has the info we want! A longer document is posted at the bottom of this page.
It seems the ErrorTypes map nicely to our STATUS types. so it would be easy to just read the file and yield all <Report> elements mapped to our statuses.
To make it somewhat useful, I'd suggest to split the reporting into one tests per <TableEntry> element. Also, we should try not to discard information that we don't know how to report, i.e. throw not implemented errors for elements in the report that we don't handle yet. That way, we should be able to achieve a great reporting for this over time (probably we can take a shortcut and just implement the complete file format.)
And, important, some tests that are errors for MFV should not be fails for us. e.g. DSIG :
<Report ErrorType="E" ErrorCode="E0502" Message="The digital signature of the file did not verify" Details="UnImplemented WinVerifyTrustAPI.WinVerifyTrustWrapper/WinVerifyTrustFile" TestName="DSIG_VerifySignature" />

The digital signature of the file did not verify :laughing:

<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="fval.xsl"?>
<FontValidatorReport RunDateTime="Wednesday, July 12, 2017 12:28 PM" MachineName="ghoul">
<FontFile FileName="LibreBarcode39-Regular.ttf" FileNameAndPath="fonts/LibreBarcode39-Regular.ttf">
<Report ErrorType="I" ErrorCode="I0004" Message="The file begins with an Offset Table (file contains a single font)" />
<Font FontIndex="0">
<FontInfo FontName="Libre Barcode 39 Regular" FontVersion="Version 1.000; ttfautohint (v1.6)" FontDate="7/12/2017" />
<Report ErrorType="P" ErrorCode="P0011" Message="The numTables field is non-zero" Details="15" TestName="_OFFSET_numTables" />
<Report ErrorType="P" ErrorCode="P0010" Message="The searchRange, entrySelector, and rangeShift fields are all valid" TestName="_OFFSET_BinarySearchFields" />
<Report ErrorType="P" ErrorCode="P0032" Message="The directory entry tags are in ascending order" />
<Report ErrorType="P" ErrorCode="P0031" Message="The directory entry tag names are valid" />
<Report ErrorType="P" ErrorCode="P0030" Message="The directory entry table offsets are all multiples of 4" />
<Report ErrorType="P" ErrorCode="P0020" Message="All required tables are present" />
<Report ErrorType="W" ErrorCode="W0022" Message="Recommended table is missing" Details="kern" />
<Report ErrorType="W" ErrorCode="W0022" Message="Recommended table is missing" Details="hdmx" />
<Report ErrorType="W" ErrorCode="W0022" Message="Recommended table is missing" Details="VDMX" />
<Report ErrorType="P" ErrorCode="P0022" Message="No unnecessary tables are present" />
<Report ErrorType="P" ErrorCode="P0021" Message="Tables are in optimal order" />
<TableEntry Tag="DSIG" Offset="0x00003468" Length="0x00000028" Checksum="0x5557558b" CodeFriendlyTag="DSIG">
<Report ErrorType="P" ErrorCode="P0500" Message="All signature blocks were in format 1" TestName="DSIG_Formats" />
<Report ErrorType="P" ErrorCode="P0501" Message="All signature blocks' reserved values were 0" TestName="DSIG_Reserved" />
<Report ErrorType="E" ErrorCode="E0502" Message="The digital signature of the file did not verify" Details="UnImplemented WinVerifyTrustAPI.WinVerifyTrustWrapper/WinVerifyTrustFile" TestName="DSIG_VerifySignature" />
</TableEntry>
<TableEntry Tag="OS/2" Offset="0x00000178" Length="0x00000060" Checksum="0x52a651d8" CodeFriendlyTag="OS_2">
<Report ErrorType="E" ErrorCode="E2132" Message="The version number is invalid" Details="4" TestName="OS_2_Version" />
<Report ErrorType="E" ErrorCode="E2127" Message="The table length does not match the expected length for this version" TestName="OS_2_TableLength" />
<Report ErrorType="W" ErrorCode="W0051" Message="Cannot perform test due to other errors in this table" Details="OS/2 table appears to be corrupt.  No further tests will be performed." />
</TableEntry>
<TableEntry Tag="cmap" Offset="0x000002f8" Length="0x0000005c" Checksum="0x0219017c" CodeFriendlyTag="cmap">
<Report ErrorType="P" ErrorCode="P0312" Message="The table version number is 0" TestName="cmap_Version" />
<Report ErrorType="P" ErrorCode="P0307" Message="Each subtable offset is within the table" TestName="cmap_SubtableOffset" />
<Report ErrorType="P" ErrorCode="P0306" Message="Each subtable length is within the table" TestName="cmap_SubtableLength" />
<Report ErrorType="P" ErrorCode="P0309" Message="The subtables are in the correct order" TestName="cmap_SubtableSortOrder" />
<Report ErrorType="P" ErrorCode="P0302" Message="There are no duplicate subtables" TestName="cmap_DuplicateSubtables" />
<Report ErrorType="P" ErrorCode="P0308" Message="No overlapping subtables were found" TestName="cmap_SubtableOverlap" />
<Report ErrorType="P" ErrorCode="P0310" Message="Each subtable's format number is valid" TestName="cmap_ValidFormat" />
<Report ErrorType="P" ErrorCode="P0305" Message="The subtable internal format appears valid" Details="PlatID = 0, EncID = 3, Fmt = 4" TestName="cmap_SubtableInternalFormat" />
<Report ErrorType="P" ErrorCode="P0305" Message="The subtable internal format appears valid" Details="PlatID = 3, EncID = 1, Fmt = 4" TestName="cmap_SubtableInternalFormat" />
<Report ErrorType="W" ErrorCode="W0302" Message="The table does not contain any Apple subtables" TestName="cmap_AppleMSSupport" />
<Report ErrorType="W" ErrorCode="W0301" Message="Apple logo mapping test not performed, cmap 1,0 not present" TestName="cmap_AppleLogo" />
<Report ErrorType="W" ErrorCode="W0305" Message="Character code U+20AC, the euro character, is not mapped in cmap 3,1" TestName="cmap_EuroGlyph" />
<Report ErrorType="P" ErrorCode="P0311" Message="No characters are mapped in the Unicode Private Use area" TestName="cmap_PrivateUse" />
<Report ErrorType="P" ErrorCode="P0314" Message="All non mac subtables have a language field of zero" TestName="cmap_SubtableLanguage" />
</TableEntry>
<TableEntry Tag="cvt " Offset="0x0000115c" Length="0x00000036" Checksum="0x02ae0792" CodeFriendlyTag="cvt_">
<Report ErrorType="P" ErrorCode="P0400" Message="The length of the cvt table is an even number of bytes" TestName="cvt_length" />
</TableEntry>
<TableEntry Tag="fpgm" Offset="0x00000354" Length="0x00000d6d" Checksum="0x391a8e7c" CodeFriendlyTag="fpgm">
<Report ErrorType="I" ErrorCode="I0900" Message="Validation for the fpgm table is not directly implemented, but rasterization testing will validate any executed hinting instructions" />
</TableEntry>
<TableEntry Tag="gasp" Offset="0x00003460" Length="0x00000008" Checksum="0x00000010" CodeFriendlyTag="gasp">
<Report ErrorType="P" ErrorCode="P1003" Message="The version number is valid" Details="version = 1" TestName="gasp_Version" />
<Report ErrorType="P" ErrorCode="P1000" Message="All of the rangeGaspBehavior fields contain valid flags" TestName="gasp_rangeGaspBehavior" />
<Report ErrorType="P" ErrorCode="P1002" Message="The gaspRange array is in sorted order" TestName="gasp_SortOrder" />
<Report ErrorType="P" ErrorCode="P1001" Message="The gaspRange array has a 0xFFFF sentinel" TestName="gasp_Sentinel" />
<Report ErrorType="P" ErrorCode="P1004" Message="No adjacent ranges have identical flags" TestName="gasp_AdjRangeIdenticalFlags" />
</TableEntry>
<TableEntry Tag="glyf" Offset="0x0000124c" Length="0x00001b34" Checksum="0x736e49a4" CodeFriendlyTag="glyf">
<Report ErrorType="P" ErrorCode="P1700" Message="Correct format of loca (0 or 1)" />
<Report ErrorType="E" ErrorCode="E1110" Message="Misoriented contour" Details="Glyph index 0" />
</TableEntry>
<TableEntry Tag="head" Offset="0x000000fc" Length="0x00000036" Checksum="0x0c4e95ed" CodeFriendlyTag="head">
<Report ErrorType="P" ErrorCode="P1323" Message="Table length is 54 bytes" TestName="head_TableLength" />
<Report ErrorType="P" ErrorCode="P1324" Message="The table version number is 0x00010000" TestName="head_TableVersion" />
<Report ErrorType="P" ErrorCode="P1330" Message="fontRevision is consistent with the font's version string" Details="1.000" TestName="head_fontRevision" />
<Report ErrorType="P" ErrorCode="P1307" Message="Font checksum is correct" Details="0x7a886d1f" TestName="head_ChecksumAdjustment" />
<Report ErrorType="P" ErrorCode="P1321" Message="The magic number is 0x5f0f3cf5" TestName="head_MagicNumber" />
<Report ErrorType="P" ErrorCode="P1303" Message="Non-linear scaling flag (bit 4) is clear, and hdmx table is not present" TestName="head_FlagTests" />
<Report ErrorType="P" ErrorCode="P1304" Message="Non-linear scaling flag (bit 4) is clear, and LTSH table is not present" TestName="head_FlagTests" />
<Report ErrorType="P" ErrorCode="P1301" Message="Reserved bit 14 of the flags field is clear" TestName="head_FlagTests" />
<Report ErrorType="P" ErrorCode="P1302" Message="Reserved bit 15 of the flags field is clear" TestName="head_FlagTests" />
<Report ErrorType="W" ErrorCode="W1313" Message="The unitsPerEm value is not a power of two" Details="1000" TestName="head_UnitsPerEmValues" />
<Report ErrorType="P" ErrorCode="P1300" Message="The created time is not zero" TestName="head_Dates" />
<Report ErrorType="P" ErrorCode="P1322" Message="The modified time is not zero" TestName="head_Dates" />
<Report ErrorType="P" ErrorCode="P1327" Message="The xMin value matches the minimum glyph xMin" Details="xMin = 0" TestName="head_MinMaxValues" />
<Report ErrorType="P" ErrorCode="P1329" Message="The yMin value matches the minimum glyph yMin" Details="yMin = -400" TestName="head_MinMaxValues" />
<Report ErrorType="P" ErrorCode="P1326" Message="The xMax value matches the maximum glyph xMax" Details="xMax = 540" TestName="head_MinMaxValues" />
<Report ErrorType="P" ErrorCode="P1328" Message="The yMax value matches the maximum glyph yMax" Details="yMax = 600" TestName="head_MinMaxValues" />
<Report ErrorType="P" ErrorCode="P1316" Message="The macStyle bold bit matches the name table's font subfamily string" TestName="head_MacStyleBits" />
<Report ErrorType="P" ErrorCode="P1320" Message="The macStyle italic bit matches the name table's font subfamily string" TestName="head_MacStyleBits" />
<Report ErrorType="P" ErrorCode="P1314" Message="The macStyle bold bit matches the OS/2 fsSelection bit" TestName="head_MacStyleBits" />
<Report ErrorType="P" ErrorCode="P1318" Message="The macStyle italic bit matches the OS/2 fsSelection bit" TestName="head_MacStyleBits" />
<Report ErrorType="P" ErrorCode="P1319" Message="The macStyle italic bit matches the post table italic angle" TestName="head_MacStyleBits" />
<Report ErrorType="W" ErrorCode="W1305" Message="The lowestRecPPEM value may be unreasonably small" Details="lowestRecPPEM = 6" TestName="head_LowestRecSize" />
<Report ErrorType="P" ErrorCode="P1308" Message="The fontDirectionHint is in the range -2..2" Details="2" TestName="head_FontDirectionHint" />
<Report ErrorType="P" ErrorCode="P1312" Message="The indexToLocFormat value is 0 or 1" Details="0" TestName="head_IndexToLocFormat" />
<Report ErrorType="P" ErrorCode="P1311" Message="The indexToLocFormat value matches the loca table" Details="0" TestName="head_IndexToLocFormat" />
<Report ErrorType="P" ErrorCode="P1309" Message="The glyphDataFormat value is 0" TestName="head_GlyphDataFormat" />
</TableEntry>
<TableEntry Tag="hhea" Offset="0x00000134" Length="0x00000024" Checksum="0x047600ff" CodeFriendlyTag="hhea">
<Report ErrorType="P" ErrorCode="P1406" Message="The table version number is 0x00010000" TestName="hhea_version" />
<Report ErrorType="P" ErrorCode="P1409" Message="The Ascender value is greater than zero" TestName="hhea_AscenderPositive" />
<Report ErrorType="P" ErrorCode="P1411" Message="The Descender is less than zero" TestName="hhea_DescenderNegative" />
<Report ErrorType="P" ErrorCode="P1410" Message="Ascender is less than or equal to head.yMax" TestName="hhea_Ascender_yMax" />
<Report ErrorType="P" ErrorCode="P1412" Message="Descender is greater than or equal to head.yMin" TestName="hhea_Descender_yMin" />
<Report ErrorType="P" ErrorCode="P1413" Message="LineGap is greater than or equal to 0" TestName="hhea_LineGapPositive" />
<Report ErrorType="P" ErrorCode="P1415" Message="Ascender is same value as OS/2.usWinAscent" TestName="hhea_Ascender_usWinAscent" />
<Report ErrorType="P" ErrorCode="P1416" Message="Descender value is the same as OS/2.usWinDescent" TestName="hhea_Descender_usWinDescent" />
<Report ErrorType="P" ErrorCode="P1414" Message="The LineGap is greater to or equal the minimum recommended value" TestName="hhea_LineGap_minGap" />
<Report ErrorType="P" ErrorCode="P1400" Message="The advanceWidthMax field equals the calculated value" TestName="hhea_MinMax" />
<Report ErrorType="P" ErrorCode="P1402" Message="The minLeftSideBearing field equals the calculated value" TestName="hhea_MinMax" />
<Report ErrorType="P" ErrorCode="P1403" Message="The minRightSideBearing field equals the calculated value" TestName="hhea_MinMax" />
<Report ErrorType="P" ErrorCode="P1407" Message="The xMaxExtent field equals the calculated value" TestName="hhea_MinMax" />
<Report ErrorType="P" ErrorCode="P1405" Message="The reserved fields are all set to zero" TestName="hhea_reserved" />
<Report ErrorType="P" ErrorCode="P1401" Message="The metricDataFormat field is set to zero" TestName="hhea_metricDataFormat" />
<Report ErrorType="P" ErrorCode="P1404" Message="The numberOfHMetrics value is consistent with the length of the hmtx table" TestName="hhea_numberOfHMetrics" />
<Report ErrorType="P" ErrorCode="P1408" Message="The caretSlope angle matches the post.italicAngle" TestName="hhea_caretSlope" />
</TableEntry>
<TableEntry Tag="hmtx" Offset="0x000001d8" Length="0x00000120" Checksum="0x6d6a0032" CodeFriendlyTag="hmtx">
<Report ErrorType="P" ErrorCode="P1501" Message="The size of the table matches the calculated size" TestName="hmtx_TableSize" />
<Report ErrorType="P" ErrorCode="P1500" Message="The horizontal metrics are all within an allowable range of values" TestName="hmtx_CheckMetrics" />
</TableEntry>
<TableEntry Tag="loca" Offset="0x00001194" Length="0x000000b6" Checksum="0xb0fbaa3e" CodeFriendlyTag="loca">
<Report ErrorType="P" ErrorCode="P1700" Message="Correct format of loca (0 or 1)" />
<Report ErrorType="P" ErrorCode="P1704" Message="The number of entries is equal to (maxp.numGlyphs + 1)" />
<Report ErrorType="P" ErrorCode="P1705" Message="The entries are sorted in ascending order" />
<Report ErrorType="P" ErrorCode="P1706" Message="All entries point within range of the glyf table" />
<Report ErrorType="P" ErrorCode="P1702" Message="Loca references a glyf entry which length is not a multiple of 4" />
<Report ErrorType="P" ErrorCode="P1701" Message="Loca does not contain references to zero-length entries in glyf table" />
<Report ErrorType="P" ErrorCode="P1703" Message="All glyphs in the glyf table are referenced by the loca table" />
</TableEntry>
<TableEntry Tag="maxp" Offset="0x00000158" Length="0x00000020" Checksum="0x01650dc8" CodeFriendlyTag="maxp">
<Report ErrorType="P" ErrorCode="P1905" Message="Table version is 1.0 and a glyf table is present and no CFF table is present" TestName="maxp_TableVersion" />
<Report ErrorType="P" ErrorCode="P1902" Message="Table version is 1.0 and the table is 32 bytes long" TestName="maxp_TableLength" />
<Report ErrorType="P" ErrorCode="P1903" Message="The numGlyphs value equals the number of entries in the loca array plus one" Details="numGlyphs = 90" TestName="maxp_NumGlyphsMatchLoca" />
<Report ErrorType="W" ErrorCode="W7002" Message="maxSizeOfInstructions computation not via either approved method" Details="glyf maxSizeOfInstructions=69, prep size=152, fpgm size=3437, whereas maxp maxSizeOfInstruction is 3437" TestName="maxp_GlyphStats" />
</TableEntry>
<TableEntry Tag="name" Offset="0x00002d80" Length="0x00000328" Checksum="0x443263c8" CodeFriendlyTag="name">
<Report ErrorType="P" ErrorCode="P2001" Message="The format selector field is 0" TestName="name_FormatSelector" />
<Report ErrorType="P" ErrorCode="P2007" Message="No strings extended past the end of the table" TestName="name_StringsWithinTable" />
<Report ErrorType="P" ErrorCode="P2003" Message="The NameRecords array is in sorted order" TestName="name_NameRecordsSorted" />
<Report ErrorType="P" ErrorCode="P2006" Message="No name records are using reserved Name IDs" TestName="name_ReservedNameIDs" />
<Report ErrorType="E" ErrorCode="E2003" Message="The table doesn't contain strings for Mac platform" TestName="name_BothPlatforms" />
<Report ErrorType="P" ErrorCode="P2009" Message="The version string is in the correct format" Details="platID = 3, encID = 1, langID = 1033, "Version 1.000; ttfautohint (v1.6)"" TestName="name_VersionString" />
<Report ErrorType="P" ErrorCode="P2004" Message="All strings had valid Platform Specific Encoding IDs" TestName="name_PlatformSpecificEncoding" />
<Report ErrorType="P" ErrorCode="P2002" Message="All Microsoft unicode strings had valid Language IDs" TestName="name_MSLanguageIDs" />
<Report ErrorType="P" ErrorCode="P2008" Message="The length of every unicode string is an even # of bytes" TestName="name_unicode_length" />
<Report ErrorType="E" ErrorCode="E2008" Message="The PostScript string is not present for both required platforms" Details="Mac Postscript string is missing, but MS Postscript string is present" TestName="name_Postscript" />
<Report ErrorType="P" ErrorCode="P2010" Message="The subfamily string is consistent with the style of the font" TestName="name_Subfamily" />
<Report ErrorType="P" ErrorCode="P2015" Message="No name record specified Unicode Variation Sequences cmap subtable" Details="PlatformID=0, EncodingID=5 is for Variation Sequences (Format 14)" TestName="name_NoFormat14" />
<Report ErrorType="I" ErrorCode="I2001" Message="Preferred family" Details="platID = 3, encID = 1, langID = 1033, nameID = 16, "Libre Barcode 39"" TestName="name_PreferredFamily" />
<Report ErrorType="I" ErrorCode="I2004" Message="No string for Preferred Subfamily" TestName="name_PreferredSubfamily" />
<Report ErrorType="P" ErrorCode="P2012" Message="No inconsistencies were found for Copyright strings" TestName="name_CopyrightConsistent" />
<Report ErrorType="P" ErrorCode="P2014" Message="No inconsistencies were found for Trademark strings" TestName="name_TrademarkConsistent" />
<Report ErrorType="P" ErrorCode="P2013" Message="No inconsistencies were found for Description strings" TestName="name_DescriptionConsistent" />
</TableEntry>
<TableEntry Tag="post" Offset="0x000030a8" Length="0x000003b7" Checksum="0x34bb3b34" CodeFriendlyTag="post">
<Report ErrorType="P" ErrorCode="P2304" Message="The table length is valid" TestName="post_TableLength" />
<Report ErrorType="P" ErrorCode="P2308" Message="The version number is valid" TestName="post_Version" />
<Report ErrorType="P" ErrorCode="P2302" Message="The italicAngle value is reasonable and consistent with other tables" TestName="post_italicAngle" />
<Report ErrorType="P" ErrorCode="P2305" Message="The underlinePosition value is not less than hhea.Descender" TestName="post_underlinePosition" />
<Report ErrorType="P" ErrorCode="P2306" Message="The underlineThickness value is reasonable" TestName="post_underlineThickness" />
<Report ErrorType="P" ErrorCode="P2301" Message="The isFixedPitch field is consistent with other table(s)" Details="matches the hmtx and OS/2 tables" TestName="post_isFixedPitch" />
<Report ErrorType="P" ErrorCode="P2307" Message="The numberOfGlyphs field equals maxp.numGlyphs" TestName="post_v2_numberOfGlyphs" />
<Report ErrorType="P" ErrorCode="P2300" Message="The glyphNameIndex array contains valid indexes" TestName="post_v2_glyphNameIndex" />
<Report ErrorType="P" ErrorCode="P2303" Message="The names in the post table are consistent with the Adobe Glyph List names" TestName="post_v2_names" />
</TableEntry>
<TableEntry Tag="prep" Offset="0x000010c4" Length="0x00000098" Checksum="0x1fb38374" CodeFriendlyTag="prep">
<Report ErrorType="I" ErrorCode="I2400" Message="Validation for the prep table is not directly implemented, but rasterization testing will validate any executed hinting instructions" />
</TableEntry>
<RasterizationTest_BW>
<Report ErrorType="I" ErrorCode="I0052" Message="Rasterization not selected for validation" />
</RasterizationTest_BW>
<RasterizationTest_Grayscale>
<Report ErrorType="I" ErrorCode="I0052" Message="Rasterization not selected for validation" />
</RasterizationTest_Grayscale>
<RasterizationTest_ClearType>
<Report ErrorType="I" ErrorCode="I0052" Message="Rasterization not selected for validation" />
</RasterizationTest_ClearType>
</Font>
<Report ErrorType="I" ErrorCode="I0005" Message="Total time validating file" Details="0:00:00" />
</FontFile>
</FontValidatorReport>

The new-arch port already deals with that:
  def report_message(msg, details):
    if details:
      return "MS-FonVal: {} DETAILS: {}".format(msg, details)
    else:
      return "MS-FonVal: {}".format(msg)

  doc = defusedxml.lxml.fromstring(xml_report)
  already_reported = []
  for report in doc.iter('Report'):
    msg = report.get("Message")
    details = report.get("Details")
    if [msg, details] not in already_reported:
      # avoid cluttering the output with tons of identical reports
      already_reported.append([msg, details])

      if report.get("ErrorType") == "P":
        yield PASS, report_message(msg, details)
      elif report.get("ErrorType") == "E":
        yield FAIL, report_message(msg, details)
      elif report.get("ErrorType") == "W":
        yield WARN, report_message(msg, details)
      else:
        yield INFO, report_message(msg, details)

Awesome! I didn't notice :-) I'll look at it later.

One comment right away:
already_reported = []

should be a set, because that doesn't need a linear search, it's elements should be tuples (of strings), because they are hashable and immutable by default.
already_reported = set()
...
for ... :
  if (msg, details) not in already_reported:
    # avoid cluttering the output with tons of identical reports
    already_reported.add((msg, details))
  else:

Personally I prefer this style:
for ...:
  if (msg, details) in already_reported:
    # avoid cluttering the output with tons of identical reports
    continue;
   already_reported.add((msg, details))

You seems to be running upstream or somewhat old version. The unimplemented dsig message should not be seen since perhaps 18 months ago...

The unimplemented dsig message should not be seen since perhaps 18 months ago...

Good news! And very attentive, thanks!
I fetched it from here: git@github.com:Microsoft/Font-Validator.git seemed genuine ;-)
My version is indeed cd1ee1a575 from Tue Dec 1 11:32:38 2015.
I guess the real deal is here: https://github.com/HinTak/Font-Validator heh?

I can't speak for Microsoft :-). Only thing I can say is that more interesting things are happening in my fork. v2.1 is due in a few weeks' time.

lol @ 'genuine' and 'real deal' versions... I would love to see Hin-Tak's
fork go upstream but such is life

It looks like Aaron has 'moved on to better pasture' and upstream is a no-man's land at the moment, and/or the foreseeable future.

Besides the dsig thing, the OS/2 version support was bumped up to v5 from v3, again more than a year ago, so the entire OS/2 section above is revised and probably will pass now... another reason to switch :-) .

another reason to switch

I already had enough! :-D Tanks a lot!

Allright, I updated the MS Fontvalidator on my machine, it's looking good. Though. I'm still getting an error for that fake dsig table that we use by default:
<Report ErrorType="E" ErrorCode="E0502" Message="The digital signature of the file did not verify" Details="Offset and length were out of bounds for the array or count is greater than the number of elements from index to the end of the source collection." TestName="DSIG_VerifySignature" />

Anyways, I love the new *html" reports, works very well here :-)

Well, that's what it says, I'd say your fake dsig table is broken... there should also be a command-line tool called DSIGInfo, which takes one or more "-v" 's and may give you more info. Anyway, the bulk of the DSIG related code is in https://github.com/HinTak/Font-Validator/blob/master/DSIGInfo/DSIGInfo.cs , and please free to play with it and see which part of your dsig table it does not like :).

The rest of the dsig code is in:
https://github.com/HinTak/Font-Validator/blob/master/OTFontFileVal/val_DSIG.cs
which wraps around the other file. Your file seems to have fallen into the block around line 119 to 123, which is the catch-all "shit happens" clause that your dsig table is doing something entirely unexpected...

Thanks a lot @HinTak ! I filed #1437 to track this.

I have tagged the 2.1 Release though I cannot gpg sign the tag or build any binaries, until further notice. Computer broke soon after I finished testing on all the fedora 26 shipped fonts.

There's actually no pending work on this issue.

Yes, the colorized console output screenshot looks like it has all the interesting information. One thing I 'll suggest is to include the info about current table (not sure according to the screenshot), and 2.1 . The main improvement for 2.1 is rather on some seriously broken fonts (see release notes at the top of the source tree) but presumably you don't have that many of those.


chore: bdd-gh-1576598523 to 0.0.1

chore: Promote bdd-gh-1576598523 to version 0.0.1

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
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

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


Issue#22 - generate-swagger destination-path parameter issue

The issue was due to the below line of code in Generator class line 53
self.file = open(destination_path, 'w')
If user does not provides the destination path parameter then it is None and line 46 and 47 set self.destination_path to current directory path if it is None. This line should be as below to fix this.
self.file = open(self.destination_path, 'w')

I am first time contributor to this project. I request maintainers to approve running workflow for my PR and allow me to do contribution to this project.

Thanks @fizaashraf37. I think you should now be maintainer of the repo. Maybe you can add this to the develop branch and add some tests

I have also added test cases. But these are failing on Git although these are running without issues locally.

I have fixed this. Had to update the reference file as previous merged PR related to nested schemas was adding examples in schemas in generated file. So reference and generated files were mismatching.


CSS to disable double-tap zoom globally (on any element)

Added css for disabling zoom problem globally

Thanks. I'm pretty busy but I will check this once I get a chance. :) I knew it would be an easy fix, but I hadn't googled the CCS fix yet cause I'm lazy. :D


ConTravel: 9. Use bus pass content rewrite needed

Bus passes are a physical plastic card that users can use on any bus in England. They show it to the driver on the way onto the bus.
This is incorrect. An ENCTS pass is a credit card sized smart card produced to the ITSO specification. This can be read electronically by modern ticket machines outside London. In London ENCTS passes are issued as Freedom passes using Oyster technology as well as conforming to the ITSO specification. Ticket machines on London buses do not recognise ITSO ENCTS cards issued outside London; these cards need to be shown to the driver.

Northumberland - we use ITSO specification as mentioned above, saying its a physical plastic card is too simplistic

We're never going to be able to cover all bus pass formats, so we should make it as general as we can. So change to:
Bus passes are a physical plastic card that users can use on any bus in England. They either have to show it to the driver or scan on a reader when they get onto the bus.


Add missing type to ptreltype

The tests in test/cuda.jl were failing for me, this seemed to fix it, without it the method is not found.

Codecov Report
All modified lines are covered by tests :white_check_mark:

Comparison is base (86bf7e0) 76.20% compared to head (6818072) 93.30%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1092       +/-   ##
===========================================
+ Coverage   76.20%   93.30%   +17.10%
===========================================
  Files          28        7       -21
  Lines        9454      239     -9215
===========================================
- Hits         7204      223     -6981
+ Misses       2250       16     -2234

see 26 files with indirect coverage changes

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


Connection closed before receiving a handshake response

It seems like the deepstream.io polymer element does not work correctly together with the deepstream js client.
Every time I initialize the connection through
<ds-connection   				url="localhost:6020"   				state="{{connectionState}}"   				ds={{ds}}>   			</ds-connection>
the console puts out these issues:

The basic connection to the deepstream server seems to work so far, but as far as I get it the websocket handshake doesn't happen. This only seems to be the case when I use the Polymer elements, the regular js client works fine. As a test I tried out the ds-tutorial-polymer, which didn't work either. I would really appreciate it if somebody could address this issue, it basically makes all the nice deepstream Polymer components useless.
Thanks in advance,
Stefan

Which deepstream server version you using?

The 1.1.1 version, but I was expecting the error to be on the client side, since the vanilla js client works fine.

Were you able to reproduce the issue with ds-tutorial polymer or is it just a bad configuration on my side?

I haven't yet tried tbh, I'll take a look as soon as i get some time later today and let you know.

The update to the latest ds version didn't fix the issue btw, is there a way to go back in time and test it with a deepstream version < 1.0?

 Sorry! :D

No worries, happy it worked out, and sorry I didn't get the time to look at it!


Rejecting promise with non-errors

I have been using Bluebird as my Promise lib, and when rejecting a promise without an error type, it issues a warning. It is explained here: http://bluebirdjs.com/docs/warning-explanations.html#warning-a-promise-was-rejected-with-a-non-error
In the documentation, it is encouraged to reject without errors. Should we reconsider this behavior for future releases?

Interesting. This is news to me. I wonder if we could stuff the validation errors json object into the message parameter? e.g.
Promise.reject(new Error({name: 'Required'}));

And then redux-form could do a:
whatever()
  .then(() => {
    // success
  }, rejectedValue => {
    const errors = rejectedValue instanceof Error ? rejectedValue.message : rejectedValue;
    // do stuff with errors
  })

Does that seem reasonable?

I think we would have to serialize the message to JSON, then deserialize. Which seems like a 'meh' solution to me. I can't think of a way off the top of my head that makes sense. So I will have to think on it a bit.

The general pattern I like would be to always resolve, then do something like this:
Promise.resolve({errors: {name: 'required'}})

Things are very explicit this way, and then redux-form could just check for properties in the errors key. Unfortunately, this is not backwards compatible in any way I imagine :disappointed:

pre-v3 expected the errors to be resolved, but people were complaining.
What a silly requirement from Bluebird. :angry: I suppose that redux-form could check for an errors key in the resolution result...

This behavior has been implemented in v6: SubmissionError.
Thank you for warning us about this use case!


Adding myself to contributor's page

Hi I have created my page and added to myself as a contributor. Please merge the pull request

LGTM


catch the rt_index being None

As defined in the method here the value returned can be None which will throw an uncaught ValueError when passed as _rt_index here: https://github.com/RECETOX/RIAssigner/blob/main/RIAssigner/data/PandasData.py#L48
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/local/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/usr/local/lib/python3.8/site-packages/RIAssigner/__main__.py", line 62, in <module>
    main(sys.argv[1:])
  File "/usr/local/lib/python3.8/site-packages/RIAssigner/__main__.py", line 48, in main
    args = parser.parse_args(argv)
  File "/usr/local/lib/python3.8/argparse.py", line 1768, in parse_args
    args, argv = self.parse_known_args(args, namespace)
  File "/usr/local/lib/python3.8/argparse.py", line 1800, in parse_known_args
    namespace, args = self._parse_known_args(args, namespace)
  File "/usr/local/lib/python3.8/argparse.py", line 2006, in _parse_known_args
    start_index = consume_optional(start_index)
  File "/usr/local/lib/python3.8/argparse.py", line 1946, in consume_optional
    take_action(action, args, option_string)
  File "/usr/local/lib/python3.8/argparse.py", line 1874, in take_action
    action(self, namespace, argument_values, option_string)
  File "/usr/local/lib/python3.8/site-packages/RIAssigner/cli/LoadDataAction.py", line 34, in __call__
    data = PandasData(filename, filetype, rt_unit)
  File "/usr/local/lib/python3.8/site-packages/RIAssigner/data/PandasData.py", line 15, in __init__
    self._read()
  File "/usr/local/lib/python3.8/site-packages/RIAssigner/data/PandasData.py", line 22, in _read
    self._init_rt_column_info()
  File "/usr/local/lib/python3.8/site-packages/RIAssigner/data/PandasData.py", line 47, in _init_rt_column_info
    self._rt_position = self._data.columns.tolist().index(self._rt_index)
ValueError: None is not in list

True - there should be a better explanation if no RT column is found.

We should allow reading data that has no retention time or retention index because we only need it for some operations.

There is a good course on exception handling: https://app.pluralsight.com/library/courses/core-python-robust-resource-error-handling/table-of-contents


feat: Support No Type

Uses string by default when a property in the schema does not include any type info.
fixes #168

Good call. Lists seem to work ok, but the object test hit this error sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) can't adapt type 'dict'

Good call. Lists seem to work ok, but the object test hit this error sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) can't adapt type 'dict'

Yeah, I think for that to work we need to make column be of type jsonb. @visch any suggestions on what schema type will allow us to do that?

Good call. Lists seem to work ok, but the object test hit this error sqlalchemy.exc.ProgrammingError: (psycopg2.ProgrammingError) can't adapt type 'dict'

Yeah, I think for that to work we need to make column be of type jsonb. @visch any suggestions on what schema type will allow us to do that?

We could just make the schema be an object but we'll have the reverse problem for strings, etc.  We need to convert the data to a string regardless of it's type (or to a jsonb object, but String probably makes the most sense here)
I see two options to move forward here (probably more are available)

Add a transform function https://github.com/MeltanoLabs/target-postgres/blob/main/target_postgres/sinks.py#L149-L150 and in the appendOnly section. Detect that this field needs to be checked by adding some metadata to the jsonschema here https://github.com/MeltanoLabs/target-postgres/pull/183/files#diff-d9dd2207eaf6595663ebc6779561ea07947567ea8ecd47c504915df8f078154eR244

Use a custom SQLAlchemy type like this https://stackoverflow.com/questions/28143557/sqlalchemy-convert-column-value-back-and-forth-between-internal-and-database-fo for our field and transform the data there.

Something like
from sqlalchemy import TypeDecorator, String
import json

class JSONEncodedDict(TypeDecorator):
    impl = String

    def process_bind_param(self, value, dialect):
        if value is not None and isinstance(value, dict):
            value = json.dumps(value)
        return value

    def process_result_value(self, value, dialect):
        if value is not None:
            value = json.loads(value)
        return value

class YourModel(Base):
    # ...
    your_column = Column(JSONEncodedDict())

@visch got it to technically work before I saw your suggestion here. the way I did it is hideous, so I was glad to see ideas for something more sensible. I'll likely redo this.

Nice @andyoneal , there is something to be said about converting the data types to work if the schema thinks the data should be a string generally.
@andyoneal I'm in the phone so it's hard for me to tell right this second but do we also have lists handled?

@visch yes, lists work too. although I am treating them the same as objects and deserializing them as json, so you end up with square brackets in the string instead of curly brackets. That's a little harder to cast from string to array in postgres.
another possibility is the way Stitch does it with their closed source target for Postgres. It seems like they're guessing the type for each record and splitting the column into correctly typed. So instead of a single string column, I've seen up to five typed variants in my data:

ColumnName__st: text
ColumnName__do: double precision
ColumnName__de: numeric
ColumnName__bo: boolean
ColumnName__bi: bigint

We could extend that to include objects and arrays, but that could get out of hand quickly (especially with flattening turned on!) and is probably more complexity than this kind of edge case is worth.
What do you think? @visch @edgarrmondragon

Went with the sql alchemy custom type approach

that's way simpler. thanks.

This LGTM. Thanks @andyoneal!


Package xcolor Error: Undefined color

With LaTeX graphics package color 2021/10/11 v1.3b and xcolor  2021/10/31 v2.13, the following example fails with "Package xcolor: Undefined color..." message. The example was extracted from CRAN R package vignettes. A number of vignettes are now failing to build with this error. The example works with graphics v1.2b.
\RequirePackage{latexbug}
\documentclass[a4paper]{article}
\usepackage{color}
\definecolor{fgcolor}{rgb}{0.345,0.345,0.345}
\usepackage{xcolor}
\begin{document}
\color{fgcolor}{bla bla}
\end{document}

A log file is attached when running on Windows, but the same problem has been seen on Linux systems as well:
test.log

Well in older systems you got a warning:
Package xcolor Warning: Incompatible color definition on input line 70.

And if you had tried to mix it with e.g. \color{fgcolor!50!red}{bla bla}  you got a low level error:
! Undefined control sequence.
\XC@declaredcolor ...claredcolor [\@@mod ]{\@@clr
                                                  }}\expandafter \endgroup \...

Basically you have to remake such definitions for xcolor.

But while it is better to redeclare colors, the actual error is imho due to a bug. It should be (in various places)
\csname\@backslashchar color@#1\endcsname

instead of
\csname\@backslashchar color @#1\endcsname

The spurious space change the command names for colors.

Thanks, changing color.sty along these lines makes the reprex work again. Did you mean changing color.sty? Could you please get this fixed as necessary there?

I already opened a pull request there https://github.com/latex3/latex2e/pull/719

Great, thanks!


Add a rawurlencode on $holder param in the getQRCodeUrl method to avo…

See: https://github.com/antonioribeiro/google2fa/commit/2bbba4335765b6e03e84df5a50bb39130428732d#commitcomment-20050937

Will be present in the next version.


DBZ-60 Added MySQL server ID and timestamp to event's source info

Added to the Debezium event message's source information the MySQL server ID for the cluster process that recorded the event and the MySQL timestamp at which the event was recorded.
The following is a sample of the new source struct in a message's envelope:
      "source" : {
        "name" : "kafka-connect",
        "server-id" : 112233,
        "ts" :<PHONE_NUMBER>000,
        "file" : "mysql-bin.000003",
        "pos" : 1081,
        "row" : 0
      },

Note that the server-id and ts fields are both new, and the name field was previously called server and contains the connector's logical name of the server; the rest of the fields in source are unchanged, as are any other part of the event structure. The schema for the source struct is now:
   {
        "type" : "struct",
        "fields" : [ {
          "type" : "string",
          "optional" : false,
          "field" : "name"
        }, {
          "type" : "int64",
          "optional" : false,
          "field" : "server-id"
        }, {
          "type" : "int64",
          "optional" : false,
          "field" : "ts"
        }, {
          "type" : "string",
          "optional" : false,
          "field" : "file"
        }, {
          "type" : "int64",
          "optional" : false,
          "field" : "pos"
        }, {
          "type" : "int32",
          "optional" : false,
          "field" : "row"
        } ],
        "optional" : false,
        "name" : "io.debezium.connector.mysql.Source",
        "field" : "source"
      }

And finally, the following shows the source struct and schema in the context of a DELETE event's message value:
{
    "schema" : {
      "type" : "struct",
      "fields" : [ {
        "type" : "struct",
        "fields" : [ {
          "type" : "int32",
          "optional" : false,
          "field" : "id"
        }, {
          "type" : "string",
          "optional" : false,
          "field" : "name"
        }, {
          "type" : "string",
          "optional" : true,
          "field" : "description"
        }, {
          "type" : "double",
          "optional" : true,
          "field" : "weight"
        } ],
        "optional" : true,
        "name" : "connector_test.products",
        "field" : "before"
      }, {
        "type" : "struct",
        "fields" : [ {
          "type" : "int32",
          "optional" : false,
          "field" : "id"
        }, {
          "type" : "string",
          "optional" : false,
          "field" : "name"
        }, {
          "type" : "string",
          "optional" : true,
          "field" : "description"
        }, {
          "type" : "double",
          "optional" : true,
          "field" : "weight"
        } ],
        "optional" : true,
        "name" : "connector_test.products",
        "field" : "after"
      }, {
        "type" : "struct",
        "fields" : [ {
          "type" : "string",
          "optional" : false,
          "field" : "name"
        }, {
          "type" : "int64",
          "optional" : false,
          "field" : "server-id"
        }, {
          "type" : "int64",
          "optional" : false,
          "field" : "ts"
        }, {
          "type" : "string",
          "optional" : false,
          "field" : "file"
        }, {
          "type" : "int64",
          "optional" : false,
          "field" : "pos"
        }, {
          "type" : "int32",
          "optional" : false,
          "field" : "row"
        } ],
        "optional" : false,
        "name" : "io.debezium.connector.mysql.Source",
        "field" : "source"
      }, {
        "type" : "string",
        "optional" : false,
        "field" : "op"
      }, {
        "type" : "int64",
        "optional" : true,
        "field" : "ts"
      } ],
      "optional" : false,
      "name" : "kafka-connect.connector_test.products",
      "version" : 1
    },
    "payload" : {
      "before" : {
        "id" : 1001,
        "name" : "roy",
        "description" : "old robot",
        "weight" : 1234.56005859375
      },
      "after" : null,
      "source" : {
        "name" : "kafka-connect",
        "server-id" : 112233,
        "ts" :<PHONE_NUMBER>000,
        "file" : "mysql-bin.000003",
        "pos" : 1081,
        "row" : 0
      },
      "op" : "d",
      "ts" :<PHONE_NUMBER>594
    }
}

LGTM one nit on some commented out test code


example: sharing state between an interrupt and the main loop

:umbrella: The latest upstream changes (presumably dd094b1) made this pull request unmergeable. Please resolve the merge conflicts.

:umbrella: The latest upstream changes (presumably ccba1d3) made this pull request unmergeable. Please resolve the merge conflicts.

Superseded by the Real Time for The Masses (RTFM) framework.


Wasm interface/environment naming

eth_interface.md lists the exported method to the Wasm interface. These methods will be effectively available in the languages used to write contracts, such as C, C++ and anything else having an llvm backend.
These methods are made available via import statements (e.g. (import $codeSize "ethereum" "codeSize" (result i64)))
Every import statement has the following properties:

local identifier (in the scope of the wasm code)
environment
method name
(return value)

Currently the environment in ewasm is set to ethereum.
There is an easy way to compiler C or C++ code online: http://mbebenita.github.io/WasmExplorer/
This llvm compiler has env hardcoded as environment and the method names are mangled according to C/C++ rules.
--
For C input, it is the raw method name:
extern unsigned long long codeSize();

int main() {
  codeSize();
}

becomes in C99 mode:
(module
  (memory 1)
  (export "memory" memory)
  (type $FUNCSIG$j (func (result i64)))
  (import $codeSize "env" "codeSize" (result i64))
  (export "main" $main)
  (func $main (result i32)
    (call_import $codeSize)
    (return
      (i32.const 0)
    )
  )
)

while in C++14 mode:
(module
  (memory 1)
  (export "memory" memory)
  (type $FUNCSIG$j (func (result i64)))
  (import $_Z8codeSizev "env" "_Z8codeSizev" (result i64))
  (export "main" $main)
  (func $main (result i32)
    (call_import $_Z8codeSizev)
    (return
      (i32.const 0)
    )
  )
)

Similarly, C++ namespaces are part of the name mangling:
namespace ethereum {
  extern unsigned long long codeSize();
}

int main() {
  ethereum::codeSize();
}

becomes
(module
  (memory 1)
  (export "memory" memory)
  (type $FUNCSIG$j (func (result i64)))
  (import $_ZN8ethereum8codeSizeEv "env" "_ZN8ethereum8codeSizeEv" (result i64))
  (export "main" $main)
  (func $main (result i32)
    (call_import $_ZN8ethereum8codeSizeEv)
    (return
      (i32.const 0)
    )
  )
)

--
I'm not sure the environment field will be accessible from C/C++, but it could easily become an attribute: __attribute(environment("ethereum"))__
Unless that happens and considering the complexity it might cause for other languages, perhaps the best choice is to stick to the standard environment and include ethereum in the method names:

ethereum_codeSize
ethereum_caller
and so on

In C/C++ this means importing them with the C name convention:
extern "C" {
  unsigned long long ethereum_codeSize();
}

Currently, the default environment for C is env and for Rust is spectest.

We have decided to rely on the namespaces WebAssembly offers.
There's a tool (https://github.com/ewasm/ewasm-cleanup) which translates compiler output not supporting namespaces, e.g. env:ethereum_getCallDataSize ⇒ ethereum:getCallDataSize.


Fix the timezone issue from 1.0.7

Hi!
Thank you for this awesome module.
I'm using it everyday with the timezone set (Europe/Paris), and today, all of my crons have 1 hour late.
I did some tests to see if the timezone is still working:
var cronJob = require('cron').CronJob;
new cronJob({
	cronTime: '*/5 * 14 * * *', // every 5 seconds at 14h (it is 14h in France actually)
	timeZone: 'Europe/Paris',
	onTick: function () {
		console.log(new Date);
	},
	start: true
});

-> No console.log displayed.
I tried on my computer (french date) with and without the timeZone set, and that how I found what line to change in the code based on the moment Timezone documentation.
I'm using my fork actually on my project, but I would like to use your as soon as possible.
If you're ok to merge, can you please bump the version?
Thank you @ncb000gt :)

:+1:

Please, pull ASAP - it is urgent issue.

I think it would also be nice to put back the tests for this functionality to prevent any regressions....25f57855071419751ba97d1599435732b99ebf61

Reverted the test removal and merged this. Thanks and sorry about this!
Also, published a new version 1.0.9.

:+1:


95 Improves report print styling

-adds styling improvements to buttons, inputs, and overall report format

Some parts are still being squeezed when the browser viewport is narrow.  See the attached PDF report.
hpwh-report_2023-07-07_1.pdf


importer: add Runkeeper importer

I have a lot of data in https://runkeeper.com
Write an importer.
/cc @radkat @mpl

if @radkat isn't already working on it, I think it's free for grabs, yes.


fix broken link of "Test suite" in README

Hello, I noticed broken link of Test suite in README because of this commit.
So, I fixed it.
Before

After

Thank you!


error converting image

if i try to convert an image that contains spaces in its name, vscode will throw an error

Hi, I'm currently on vacation and will look into this as soon as I'm back. If you're familiar with Typescript or just curious, you could as well try to fix this for yourself.


objid_t: location cache should be keyed by objid_t

Original author: Ramprasad Venkataraman
Original issue: https://charm.cs.illinois.edu/redmine/issues/175

A LocMgr keyed by objid_t seems amenable to most situations when an inversion function is known / can be generated. When the user specifies the conversion function, we may require an additional inversion function too. However, we still haven't explored the implications of our distributed lookup model. The design discussions for that effort might veto this task.

Original date: 2013-10-07 19:05:52

This won't be ready for 6.6, so push it back.


Heatmap: clear all filters not possible anymore

Context
We are currently upgrading an application from v11.9.0 to v11.10.0 and we are using the FacetHeatmapComponent.
Description
In previous versions, we had the possibility to clear the filters of a specific facet by using its name, using the Query method removeSelect.
In the newest version, it seems that the filter syntax only uses the fields to distinguish between filters and the use of the facet name to clear filters is not longer feasible.
This change makes us unable to clear filters from the Facet Heatmap like we would be able to do on any other facets.
It also makes us unable to fetch the specific Heatmap filters and differentiate them from other facets.
Do you have an idea how we could implement it in the newest version?
Previous implementation
this.clearFilters.action = () => {
      const fieldsX: string[] = this.fieldsX || [this.fieldXPref];
      const fieldsY: string[] = this.fieldsY || [this.fieldYPref];

      for (const x of fieldsX) {
        for (const y of fieldsY)
          this.searchService.query.removeSelect(`${this._name} - ${this.intl.formatMessage(this.appService.getPluralLabel(x))}/${this.intl.formatMessage(this.appService.getPluralLabel(y))}`, true);
      }
      this.searchService.search();
    };

Sorry, it was actually a non-issue. It is possible to do what I wanted by modifying the display of the filtered item to include the name of the Heatmap in it and then use the code below.
this.clearFilters = new Action({
            text:"Clear Filters",
            action: () => {
                if (!this.searchService.query.filters) return;
                for (const filter of this.getHeatmapFilters(this.searchService.query.filters)) this.searchService.query.removeSameFilters(filter);
                this.searchService.search();
            }
        })

private getHeatmapFilters(filters: Filter) {
        const heatmapFilters: Filter[] = [];
        if (isExprFilter(filters) && !filters.display) {
            for (const filter of filters.filters) {
                const heatmapFilter = this.getHeatmapFilters(filter);
                heatmapFilters.push(...heatmapFilter);
            }
        }
        else if (isExprFilter(filters) && filters.display?.startsWith(this._name)) heatmapFilters.push(filters);
        return heatmapFilters;
    }


Can't capture long exposure at full resolution w/rPI camera module v2

With the latest PiCamera and camera firmware the shutter speed is capped by the fps parameter one sets when creating the PiCamera object. While I can successfully create a PiCamera object at low fps when doing half-resolution captures, e.g.
PiCamera( resolution = '1640x1232' ,framerate=Fraction(0,1) )
the same doesn't work at full resolution, in fact, at full resolution ( resolution = '3280x2464' ) I don't seem to be able to use any framerate other than the default one (30fps)

Look at issue
You need to increase gpu_mem in /boot/config.txt

Were you also getting an "out of resources" error on this? If so, I should add some more bits to the Hardware limits section which the FAQ links to. Otherwise, this might warrant expanding that FAQ's description a bit.

It worked indeed with 256mb of GPU memory! Note that I could capture full-res 30fps no problem w/128, it's just slow speeds that were affected. But still, it does work, I'll close this. Might I suggest for the future maybe printing a suggestion "try to increase gpu memory" when the exception is raised?

Unfortunately that particular error code crops up in plenty of places where just raising the GPU memory won't make any difference (e.g. multiple processes accessing the camera). However, I will remove the "other than memory" bit from the error message because that's mis-leading. Sounds like I need to expand the notes in the Hardware limits section too...


Update ReturnStatus at Next()

Fix for #507

This is nice.
That's odd that Go1.9 is failing. Maybe we shouldn't test this until Go1.10?


[Feature] Tags inside of strings

I know, I know, my latest issue stated that this only needed to be implemented when most of the other work was done. I just needed to do this as I was full of ideas on how this was going to work. I have redone the whole system like 3 times and finally stumbled onto this final version.
This PR adds tags. These small utilities can be used inside strings to affect small parts of a string.
Current features:

Register custom tags with the main registration and add as many customizability as you'd like. The parsing works pretty similarly to the normal syntax parsing. Tags have an init() method with key and parameters and later on they have a getValue() method to actually retrieve the value.
Some examples of tags:

<reset>: Just a key, no parameters. This tag has actually no purpose but serves to block other tags.
<case=upper>: A key ('case') and one parameter ('upper'). Note that you can have as many parameters as you'd like. Multiple parameters are split with a comma (no spaces behind the comma or they will be interpreted as a part of the parameter). You can use a backslash to escape a comma.

Because of all the functionality, we can add colour codes later on and HEX colours inside the key as such: <#ffffff> (only a key, but we can still parse it!)
Single character tags are supported as long as the init() method handles it! (like &r for a reset)
Note that single character tags do not support parameters.

Tags can be expanded widely and we can now offer tools to easily manage parts of strings, without having to split them each time.
The TagCase class is mostly there as an example. I can remove it/extend it further to support more cases.
Hope you like it! Note that this is still in its early stages and many changes are probably needed.

Overall, some mistakes, and some things I don't understand, mainly the following:

What is "occasional" stuff for?

Forgot to explain that. Sometimes, you want to use colors for example (in System.out.println() for example). But sometimes, these colors are not supported (for example in normal strings). Tags with occasional enabled will not be parsed and will just be skipped UNLESS a developer specifically uses TagManager.occasionally() to apply them. I just realized that you would want different levels of occasional instead of just one, so I'll work on that to support that.

In the case of Minecraft, there were some tags that could stack onto one another, like bold + red. Is such a thing still possible here?

That's actually a valid point and no: they don't. I could make a system that skips over tags that support each other.


teams: create the stdenv team

Things done
Re: #347955
Please add a review to suggest who to add into the stdenv team. Once this PR is done, a team on GitHub will be created and the members listed in this PR will be added.

Built on platform(s)

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

For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)

[ ] sandbox = relaxed
[ ] sandbox = true

[ ] Tested, as applicable:

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

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

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module

[x] Fits CONTRIBUTING.md.

Add a :+1: reaction to pull requests you find important.

@NixOS/stdenv team has been created. Can @Lassulus please repeat this with the stdenv team so CI may pass?


Collective usage of Selenide-Appium adapter and Selenide dependency in one project

Hi @asolntsev,
Could you please advice whether or not it is possible to use 'Selenide-Appium' and 'Selenide for web' dependencies in one project together?
In my case we have the following:
Given:

multi-module Gradle project

core module
has dependency Selenide

module with ui tests
uses selenide from core

module with ui + mobile tests
uses selenide from core + has Selenide-Appium dependency

Issue: An attempt to run a web test in a child module (where Selenide-Appium is available) results in our particular case in the following error when we try to click a button on web using JavaScript ($(locator).click(usingJavaScript()):
java.lang.ClassCastException: class com.codeborne.selenide.ClickOptions cannot be cast to class com.codeborne.selenide.appium.AppiumClickOptions (com.codeborne.selenide.ClickOptions and com.codeborne.selenide.appium.AppiumClickOptions are in unnamed module of loader 'app')

	at com.codeborne.selenide.appium.commands.AppiumClick.execute(AppiumClick.java:39)
	at com.codeborne.selenide.appium.commands.AppiumClick.execute(AppiumClick.java:28)
	at com.codeborne.selenide.commands.Commands.execute(Commands.java:158)
	at com.codeborne.selenide.impl.SelenideElementProxy.dispatchAndRetry(SelenideElementProxy.java:130)
	at com.codeborne.selenide.impl.SelenideElementProxy.invoke(SelenideElementProxy.java:82)
	at jdk.proxy2/jdk.proxy2.$Proxy44.click(Unknown Source)

As we can see when we reach during test runtime a method 'getCommand' in com.codeborne.selenide.commands.Commands class, variable private final Map<String, Command<?>> commands = new ConcurrentHashMap<>(128) has commands not from 'Selenide for web' but from 'Selenide-Appium' dependency ('Click()' is replaced by 'AppiumClick()' for example).
Environment:
JDK 8
Gradle 7.4.1
Selenide 6.10.1
Selenide-Appium 2.4.0

@IlyaUk Yes, the idea is that you can use selenide-appium for testing both mobile and web in the same project. You don't even need to split your project to submodules.
In this case, ClassCastException is a fresh bug in selenide-appium. Will fix it asap. Thank you for reporting.

Thanks a lot for the reply and clarifications.


Require for GWAS(genome wide association studies)

Thank you for the amazing work! Can Evo be used to predict variant sites of rice genes? Similar to performing whole-genome association analysis tasks? Are there any tutorials available for reference?

Evo is only trained on prokaryotic genomes so is probably not suited for analyze plant genomes


Grafana Flame Graph for profiling data

Hi @PeterPaul-Perfana ,
Thanks for this awesome jfr exporter, do you consider using Grafana Flame Graph for visualization? i.e, https://grafana.com/docs/grafana/latest/panels-visualizations/visualizations/flame-graph/
Thanks,
Roy

Hi Roy, glad you like the jfr-exporter! For cpu flamegraphs you can use Grafana Labs pyroscope. The agent jars can work side by side.
It is an interesting idea to also get flamegraphs for other types of events, such as monitor lock times, but currently we have no plans to add it to the exporter.
Our main goal is to get quick insights into the jfr events (of multiple jvms) in a dashboard.


add back Venice tests

I think this was resolved with https://github.com/VeniceX/Venice/commit/a3794f9d159a982d991e389145568fe8f6bfac17


Multi-root: Drag&drop in file explorer not working [regression?]

It did work with files & folders in the Insiders build if I remember correctly. But not with the current: Version 1.15.0-insider (1.15.0-insider), 74f5073c54f1139d2fb0eccb251cae5ed6e8215b on OS X 10.11.6
There's no message shown in the developer tools console.
cc #28344

https://github.com/Microsoft/vscode/issues/30462


Missing composer.lock file and phpstan-src

Hey, I'm trying to set up my local environment. I'm facing a couple of issues and would like some advice in how to proceed.

Missing composer.lock file results in mismatching package dependency versions
phpstan/phpstan-src is required for LSP help and type checking too.

I assume you have phpstan-src globally available somehow. I'm not too familiar with how composer and the LSPs resolve libraries outside this project.

Found the solution (and explanation) here https://github.com/phpstan/phpstan/issues/2972


Synchronizing between remote and local computer

Hi,
Nice job! I like this software.
Thanks.
I have noticed the following problem on my VM Ubuntu 22.04 (master) and my computer LinuxMint 20.1.
I did as explained on your main page, part Then to install hishtory on your other computers... .
From my Ubuntu (master), launch the following command:
$ hishtory query
It takes ages (more than 10 minutes) to give the result.
Would it comes from the DB size?
mint201:~/.hishtory$ tree -ash
.
├── [1.5K]  config.sh
├── [1.1K]  config.zsh
├── [ 47M]  hishtory
├── [1024K]  hishtory-2023-05-18T12-17-59.197.log
├── [1024K]  hishtory-2023-05-18T12-18-09.465.log
├── [1023K]  hishtory-2023-05-18T12-18-16.886.log
├── [1023K]  hishtory-2023-05-18T12-18-25.078.log
├── [1024K]  hishtory-2023-05-18T12-24-21.748.log
├── [1024K]  hishtory-2023-05-18T12-24-37.146.log
├── [1024K]  hishtory-2023-05-18T12-24-53.182.log
├── [1024K]  hishtory-2023-05-18T12-25-01.161.log
├── [1024K]  hishtory-2023-05-18T12-25-25.930.log
├── [1024K]  hishtory-2023-05-18T12-25-37.246.log
├── [ 514]  .hishtory.config
├── [8.3M]  .hishtory.db
├── [ 32K]  .hishtory.db-shm
├── [8.7M]  .hishtory.db-wal
└── [736K]  hishtory.log

and sometimes the following error appears:
2023/05/18 14:40:01 hishtory v0.207 fatal error at github.com/ddworken/hishtory/client/cmd/query.go:87: DB error: database is locked (5) (SQLITE_BUSY)
Why the DB is locked?
Thanks,
Jean-Claude

If you run hishtory update, you'll get the latest version of hishtory which has both better performance (all queries now run async to minimize latency) and better handling of DB locking errors (which are caused by poor DB performance). If you're still running into either of these issues, please reopen this and let me know!


Suggestion: Enable for server-side only

Great and simple mod idea.  Thanks!
Can you please enable this for server-side only, so it doesn't need to be installed on clients?  This allows it to be dropped in to servers without changing the mod packs.  You just need to add acceptableRemoteVersions to the @Mod annotation.
@Mod(modid = AlwaysDropLootMod.MOD_ID, useMetadata = true, acceptableRemoteVersions = "*")
public class AlwaysDropLootMod {

Ah, nice catch. Will take care of that shortly.

Fixed in<PHONE_NUMBER>22a970ee39ef8dfeceab046863bff1

Released in version 1.0.1


Call iterm2_prompt_end so that ⌘-k does not clear the first line in the prompt

Add iterm2_prompt_end which ensures that the prompt is properly drawn with ⌘-k is used in iterm2.

Thanks for contributing!

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


WIP: Add docs for Greencheck API

This PR introduces API documentation pages to the website. This will include new sections on the homepage, as well as in the menu.
The first API documented will be v2 and v3 of the Greencheck API.

After discussion today, it was decided that a change of priority for API documentation was appropriate. This PR will now:

Introduce API documentation entry points to the website (homepage & nav)
Document v3 of the Greencheck API for checking a single domain
Document the IP to CO2 Intensity API

Version 2 of the Greencheck API will not be documented, since we would like to move developers towards using v3. Functionality is identical to v3, and so if we need to document this later we can do so easily.
Greencheck batch URL checking will be documented at a later date.

This one's ready for review.

@tortila I've made a the changes you suggested. Could you please double check to make sure that everything we need is there. If all good, I'll merge this branch on Thursday.


ceph-salt config does not support modifying config options from outside the configuration group

It would be nice if it would be possible to modify configuration options from within the "root" of the configuration tree, including full tab support up to and including the actual config option (see #284 for a related issue).
For example, it would be nice if the following would not fail:
/> set /cephadm_bootstrap/dashboard/username ceph-admin
Command not found set

You are using incorrect syntax, config path should be the first thing:
/> set /cephadm_bootstrap/dashboard/username ceph-admin
Command not found set

/> /cephadm_bootstrap/dashboard/username set ceph-admin
Value set.

This works indeed - thanks. However, this feels somewhat unintuitive, but I understand it needs to be fixed in the configshell Python module itself.


Upgrade dependencies to support esm output

Properly set __esModule property in compiled scripts to improve support for bundlers such as Webpack and JSPM.

Thanks, your CLA has been submitted.

This is likely stale.


Update README

Include info on what features have been implemented so far and give an indication of upcoming features.

Complete.


Result open and intermediately close on change .select2-drop{ top:.. } value

Hello,
I am changing how select2 is displayed in mobile, i want to use all the screen for the select when it is open in order to show more items:

The problem appear when i override this property in CSS media query:
    .select2-drop {
        top: 10px !important;
    }

In Chome there isn't problem but in Opera and Firefox (mobile and desktop last versions) on click the select the result appears and is close alone intermediately, or it is displayed meanwhile you have the click pressed and it get close when you release the click.
Any idea of why it happen?
Thanks

Hi there,
I was wondering what the status on this issue is. I'm running into the same issue on desktop. Mouse down and mouse up causes the dropdown to appear and then capture a selection, which immediately closes the drop down.


Remove jQuery

Closes https://github.com/pallets/werkzeug/issues/1807

What's wrong with const? Unless we reassign I think const makes perfect sense.

I agree, use const if the value is not expected to change.

Ready for maintainer review.

tbtools.py still includes a <script> tag for jquery.js.

I would reformat it with prettier. Here's a decent config (but can be changed of course in case you prefer double quotes to be consistent with the Python style):
printWidth: 100
tabWidth: 2
useTabs: false
semi: true
singleQuote: true
quoteProps: 'consistent'
trailingComma: 'es5'
bracketSpacing: false
jsxBracketSameLine: false
arrowParens: 'avoid'
endOfLine: 'lf'

I'd also suggest running eslint with the recommended preset on the file and fix stuff it finds (many things may be autofixable).

There's a small bug with the up arrow keyboard shortcut not returning the typing cursor to the start of the word. Working on it now.

Couldn't push to this branch, so squashed and rebased in #1857.


Replace vizabi csv files with ws server generated ones

@Gapminder/vizabi-collaborators please do not merge until generated csv reader is fully working

i took some of these files manually to my separate branch. no merge needed


fix: Google Sheet Bulk Insert, overwrites existing rows

Google Sheet Bulk Insert overwrites existing rows

This PR fixes the issue when bulk inset of data overwrites existing rows

Fixes #5076
Type of change

Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Manually and verifies against test google sheet
No new test case added
Tested that existing tests are passed.

Checklist:

[X] My code follows the style guidelines of this project
[X] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[X] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[X] New and existing unit tests pass locally with my changes

/ok-to-test sha=49664dd

/ok-to-test sha=49664dd

/ok-to-test sha=49664dd


[Icon] loading icon <...> timed out after 500ms

Reproduction:
npx nuxi@latest init -t ui
Description:
I'm encountering a timeout issue. I’ve tried setting serverBundle to 'remote', 'local', and false, as well as using different package managers like pnpm and npm, but the issue persists. Not only locally installed collections effected by this, the internally used heroicons collection by nuxt/ui also throws timeout. Icons are being displayed on browser. Same log visible on browser as well, shared as screenshots.
Logs:
{"message":"[warn] [Icon] loading icon game-icons:wolf-howl timed out after 500ms\n","timestamp":"2024-10-07T10:22:24.175Z","type":"err","process_id":12,"app_name":"<...>"}
{"message":"[warn] [Icon] loading icon ph:magnifying-glass-duotone timed out after 500ms\n","timestamp":"2024-10-07T10:22:24.176Z","type":"err","process_id":12,"app_name":"<...>"}
{"message":"[warn] [Icon] loading icon ph:user-duotone timed out after 500ms\n","timestamp":"2024-10-07T10:22:24.176Z","type":"err","process_id":12,"app_name":"<...>"}

duplicate of #271

Thankyou So VERY MUCH !
Holly f.. those warning were annoying in terminal.


Use generic class to allow Credentials

This change is

Codecov Report

Merging #137 into master will not change coverage.
The diff coverage is 0%.

@@            Coverage Diff            @@
##             master     #137   +/-   ##
=========================================
  Coverage     25.44%   25.44%
  Complexity      203      203
=========================================
  Files            45       45
  Lines          1851     1851
  Branches        169      169
=========================================
  Hits            471      471
  Misses         1325     1325
  Partials         55       55

Impacted Files
Coverage Δ
Complexity Δ

...github/kostyasha/yad/DockerSimpleBuildWrapper.java
1.63% <0%> (ø)
0 <0> (ø)
:x:

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 d251353...9adf5d9. Read the comment docs.


openmpt123: 0.5.8 -> 0.5.9

Automatic update generated by nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/openmpt123/versions.
meta.description for openmpt123 is: "A cross-platform command-line based module file player"
meta.homepage for openmpt123 is: "https://lib.openmpt.org/libopenmpt/"
meta.changelog for openmpt123 is: ""
Updates performed

Version update

To inspect upstream changes
Impact

Checks done (click to expand)

built on NixOS

The tests defined in passthru.tests, if any, passed

/nix/store/s6fa1c70mdfqxlqzffxdmp95q22mgb37-openmpt123-0.5.9/bin/openmpt123 passed the binary check.

1 of 1 passed binary check by having a zero exit code.

1 of 1 passed binary check by having the new version present in output.

found 0.5.9 with grep in /nix/store/s6fa1c70mdfqxlqzffxdmp95q22mgb37-openmpt123-0.5.9

found 0.5.9 in filename of file in /nix/store/s6fa1c70mdfqxlqzffxdmp95q22mgb37-openmpt123-0.5.9

directory tree listing: https://gist.github.com/b094014b8bb8f7648824a27faae11b57

du listing: https://gist.github.com/96245b4585ec2a959b0e8721e744659b

Rebuild report (if merged into master) (click to expand)

12 total rebuild path(s)

4 package rebuild(s)

4 x86_64-linux rebuild(s)
4 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
4 aarch64-linux rebuild(s)

First fifty rebuilds by attrpath
audacious
audaciousQt5
gjay
openmpt123

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/s6fa1c70mdfqxlqzffxdmp95q22mgb37-openmpt123-0.5.9 \
  --option binary-caches 'https://cache.nixos.org/ https://nix-community.cachix.org/' \
  --option trusted-public-keys '
  nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(The Cachix cache is only trusted for this store-path realization.)
For the Cachix download to work, your user must be in the trusted-users list or you can use sudo since root is effectively trusted.
Or, build yourself:
nix-build -A openmpt123 https://github.com/r-ryantm/nixpkgs/archive/e65fe545ef0d4d12425f64c23abb4c11a8b3a0f4.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/s6fa1c70mdfqxlqzffxdmp95q22mgb37-openmpt123-0.5.9
ls -la /nix/store/s6fa1c70mdfqxlqzffxdmp95q22mgb37-openmpt123-0.5.9/bin

Pre-merge build results
We have automatically built all packages that will get rebuilt due to
this change.
This gives evidence on whether the upgrade will break dependent packages.
Note sometimes packages show up as failed to build independent of the
change, simply because they are already broken on the target branch.
Result of nixpkgs-review run on x86_64-linux 1

3 packages built:

audacious
gjay
openmpt123

Maintainer pings

Result of nixpkgs-review pr 124100 at e65fe545 run on aarch64-linux 1

3 packages built successfully:

audacious (audaciousQt5)
gjay
openmpt123

Updated in dfc39e61f4223a8be7161b7c94b10a47810e9879


docs: improve documentation

Some small improvements to documentation. More to come -- want to build better examples first.

BTW, the tests fail on lack of Icon for the test DB -- do you know how long it can take to see the change on a database? I added an Icon and it's not visible in the results...Perhaps PEBKAC, it's late here.

Ok I'll tweak that.
Any advice on getting the database icon test to work?

Test seem to fail because of the doctests. Gonna need to either ignore them or use something like https://docs.rs/tokio-test/0.3.0/tokio_test/fn.block_on.html to make it work with async.

BTW, the tests fail on lack of Icon for the test DB -- do you know how long it can take to see the change on a database? I added an Icon and it's not visible in the results...Perhaps PEBKAC, it's late here.

Changes should propagate instantly. Do you have your own test DB duplicated, or are you using the one from .example.env? I can also give you access to the example one so you can make changes there. It might be easier. Just comment on the page, and I will add you.
I'm not sure if I'm understanding your problem correctly.

Good stuff. The docs definitely need improvements. Also, a quick start in the README would be awesome, I think. And the current example is absolutely garbage…

BTW do you mean change the example I added or somewhere else? I don't think there's an example in the README

BTW do you mean change the example I added or somewhere else? I don't think there's an example in the README

No, your example is great. I mean the examples/todo directory. It doesn't even actually use the library. xD
I already removed the link from the README when adjusting it after the fork. I also have a PR lined up to delete it because this example is actually the reason why we need Tokio as a dependency and not just as a dev-dependency, thus being the only reason why the crate is not WASM-compatible.


[FEATURE] Add 2048 game

Description
I would like to add 2048 game to the website.
Screenshots
No response
Additional information
No response

@panwar8279 please assign me this issue under gssoc'23

Hi @PVBharadwaj ,  I have assigned this task to you. Kindly complete your work within a week. Male sure you will make your game in react because it's react based repository. Good luck!

@panwar8279  thank you for assigning me this issue.
I have raised the PR #818 regarding this issue. Please review and merge it under GSSoC'23


refactor: Add lightningcss mode for turbopack-css

Description
To make WIPs small, I'm putting ligtningcss as a mode.
x-ref: https://vercel.slack.com/archives/C03EWR7LGEN/p1700025496732229?thread_ts=1700019629.866549&cid=C03EWR7LGEN
Testing Instructions
Closes PACK-1965

Main:
running 1 test
Input: /Users/kdy1/projects/nextpack/turbo/crates/turbopack-tests/tests/snapshot/css/absolute-uri-import
[crates/turbopack-css/src/references/mod.rs:129] &src = "https://example.com/stylesheet1.css"
[crates/turbopack-css/src/references/mod.rs:129] &src = "https://example.com/withquote\".css"
[crates/turbopack-css/src/references/mod.rs:129] &src = "./other.css"
[crates/turbopack-css/src/references/mod.rs:129] &src = "./withduplicateurl.css"
[crates/turbopack-css/src/references/mod.rs:129] &src = "https://example.com/stylesheet2.css"
[crates/turbopack-css/src/references/mod.rs:129] &src = "https://example.com/stylesheet1.css"
test test_tests__snapshot__css__absolute_uri_import ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 43 filtered out; finished in 0.04s

        PASS [   0.058s] turbopack-tests::snapshot test_tests__snapshot__css__absolute_uri_import
       START             turbopack-tests::snapshot test_tests__snapshot__css__css

running 1 test
Input: /Users/kdy1/projects/nextpack/turbo/crates/turbopack-tests/tests/snapshot/css/css
[crates/turbopack-css/src/references/mod.rs:129] &src = "./imported.css"
[crates/turbopack-css/src/references/mod.rs:129] &src = "../input/imported.css"
[crates/turbopack-css/src/references/mod.rs:129] &src = "./imported.css"
test test_tests__snapshot__css__css ... ok


Allow screen tap to close menu

Close #53

I just realized that I broke something. Please hold it while I fix it. 😕

Here I should have fixed it :-)

Hi @HugoHeneault !
Thanks for contributing !

Allow screen tap to close menu ,what if i don't want it how do i set it not to open?


Interactive mode - MP all analog light sensors reading issue

Unable to read Makeplayground's analog light sensors value to display.
Only display 0.0 as a value.

Fixed in 393a051745a82ae4f942c971830353fd3f34a291


Debugger - load the breakpoints from the previous session

It would be great to load the breakpoints from the previous debugging session.

Should the breakpoints be sandboxed per application?

@vchimev found out that this wasn't working in 1.5. The reason for this is that PR https://github.com/NativeScript/ios-runtime/pull/374 didn't update the NativeScript Inspector binary that is in our repo.
@NativeScript/nativescript-for-ios Maybe the time for https://github.com/NativeScript/ios-runtime/issues/368 has come.

This should be fixed in the master branch.


Missing properties on Custom Type queries

I have a relatively new project (using V3.1.2) which started with a single custom type (blog_post). This type contained various data types (on the main document and as slices) such as rich text, titles and images. When I query this particular type I get all the expected properties from it e.g html property on rich text and properties such as fluid, fixed & localFile on images.
I have recently added two new custom types (blog_list & homepage). As usual, I set them up in Prismic, copied the schema over to my project and ran my queries. When I query either of these, I no longer get properties such as html on rich text only spans, text & type and for images I only get url & dimensions and not fluid, fixed & localFile.
I'm at a bit of a loss on this one. I've checked the schema JSON and all looks correct against the blog_post (the one that works as expected), checked the out JSON output from Prismic's endpoint which looks fine as well.
Any help or advice would be greatly appreciate, unsure if I'm missing something obvious!

My bad! The step I missed was declaring the new custom type's schemas in the gatsby-config under schemas! 🤦 Apologises!


adj_jac_apply is in the wrong folder

Description
adj_jac_apply.hpp is in rev/mat/fun
It should be in rev/mat/functor because it takes in functor arguments.
Current Math Version
v2.18.0

Closed via #1016