text:
Level 3 Compliance -- missing or mis-defined elements

Level 3 errors
Missing or mis-defined fields
MapUnitPolys could not get field list. Fields not checked.
ContactsAndFaults could not get field list. Fields not checked.
CartographicLines could not get field list. Fields not checked.
MapUnitPolys could not get field list. Fields not checked.
CartographicLines could not get field list. Fields not checked.
ContactsAndFaults could not get field list. Fields not checked.
In comparing fields to GeMS -- all fields appear correct and are set up as per the GeMS Geologic Map Schema.
Why "could not get field list."?

Linda,
If you could, open your copy of GeMS_ValidateDatabase_Arc10.py and add these edits.
Near the top, in the imports section add
import traceback
next go to line 542 where
except:
is shown and change it to
except Exception:
    s = traceback.format_exc()
    arcpy.AddMessage("Error in function checkFieldDefinitions")
    arcpy.AddMessage(s)

and run the tool again. That should tell us which line exactly is throwing the error

Evan,
I see the problem.   And now I remember seeing this problem in the code.
The check fields routine does not put CSA or CSB before the fields when validating cross section FDS.
The error messages do not reflect which FDS has a problem.
I have notes from way back in July where I found the routine.
Will follow up tomorrow:
In the mean time, here is a snippet of messages that shows exactly where the issue is.
Both errors are for CrossSection and The Error should be CSB_MUP does not exist:
Messages
Executing: ValidateDatabase W:\DATABASE_MAPS\

;  ;  ;

checking CrossSectionB for other stuff
scanning CSBMapUnitPolys
Error in function checkFieldDefinitions
Traceback (most recent call last):
File "W:\DATABASE_MAPS\GeMS_testing\gemsToolsOct2020\gems-tools-arcmap-master\Scripts\GeMS_ValidateDatabase_Arc10.py", line 524, in checkFieldDefinitions
fields = arcpy.ListFields(table)
File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy_init_.py", line 1138, in ListFields
return gp.listFields(dataset, wild_card, field_type)
File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\geoprocessing_base.py", line 346, in listFields
self._gp.ListFields(*gp_fixargs(args, True)))
IOError: "MapUnitPolys" does not exist
scanning CSBContactsAndFaults
Error in function checkFieldDefinitions
Traceback (most recent call last):
File "W:\DATABASE_MAPS\GeMS_testing\gemsToolsOct2020\gems-tools-arcmap-master\Scripts\GeMS_ValidateDatabase_Arc10.py", line 524, in checkFieldDefinitions
fields = arcpy.ListFields(table)
File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy_init_.py", line 1138, in ListFields
return gp.listFields(dataset, wild_card, field_type)
File "c:\program files (x86)\arcgis\desktop10.5\arcpy\arcpy\geoprocessing_base.py", line 346, in listFields
self._gp.ListFields(*gp_fixargs(args, True)))
IOError: "ContactsAndFaults" does not exist

;  ;  ;

writing database inventory
DONE
Completed script ValidateDatabase...
Succeeded at Tue Oct 13 17:01:51 2020 (Elapsed Time: 19 minutes 32 seconds)
From: Evan Thoms notifications@github.com
Sent: Tuesday, October 13, 2020 3:03 PM
To: usgs/gems-tools-arcmap gems-tools-arcmap@noreply.github.com
Cc: Tedrow, Linda (ltedrow@uidaho.edu) ltedrow@uidaho.edu; Author author@noreply.github.com
Subject: Re: [usgs/gems-tools-arcmap] Level 3 Compliance -- missing or mis-defined elements (#50)
Linda,
If you could, open your copy of GeMS_ValidateDatabase_Arc10.py and add these edits.
Near the top, in the imports section add
import traceback
next go to line 542 where
except:
is shown and change it to
except Exception:
s = traceback.format_exc()

arcpy.AddMessage("Error in function checkFieldDefinitions")

arcpy.AddMessage(s)

and run the tool again. That should tell us which line exactly is throwing the error
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/usgs/gems-tools-arcmap/issues/50*issuecomment-708033886__;Iw!!JYXjzlvb!1HS3aTGDYj0mFvUYutKUUngeY__uDO3qj4gXMuwVx8U9-B7ZgccNlw-OV8_icwZa$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AKYEVB2YA6KCVX3ICJEJ5WTSKTFBFANCNFSM4SNLTFKA__;!!JYXjzlvb!1HS3aTGDYj0mFvUYutKUUngeY__uDO3qj4gXMuwVx8U9-B7ZgccNlw-OV8UmrQVS$.

Excellent, Linda! Thank you for tracking that down. This will help. I will try to get to it soon.

Linda,
Download the repo, or just Validate Geodatabase.py, and try again. I think I have it fixed. I found the same error you did when validating a gdb with cross sections, but got it to run with no errors after making the changes that are in this new version.

Evan,
That is great news.
I will give this a shot tomorrow morning.
Thank you very much,
Linda
Linda Tedrow
Idaho Geological Survey
University of Idaho
3rd Floor Morrill Hall
875 Perimeter Drive, MS 3014
Moscow, Id   83844-3014
(208) 885-1579
From: Evan Thoms notifications@github.com
Sent: Wednesday, October 14, 2020 1:46 PM
To: usgs/gems-tools-arcmap gems-tools-arcmap@noreply.github.com
Cc: Tedrow, Linda (ltedrow@uidaho.edu) ltedrow@uidaho.edu; Author author@noreply.github.com
Subject: Re: [usgs/gems-tools-arcmap] Level 3 Compliance -- missing or mis-defined elements (#50)
Linda,
Download the repo, or just Validate Geodatabase.py, and try again. I think I have it fixed. I found the same error you did when validating a gdb with cross sections, but got it to run with no errors after making the changes that are in this new version.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/usgs/gems-tools-arcmap/issues/50*issuecomment-708650440__;Iw!!JYXjzlvb!z3Uthu4Yu80ri6lEMN30YSY8fxdEl2vorXTbF11EKkG1n_hkSzBUZAJ25ACL16Pt$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AKYEVB2FCQBVIABMBUMB2CTSKYEYHANCNFSM4SNLTFKA__;!!JYXjzlvb!z3Uthu4Yu80ri6lEMN30YSY8fxdEl2vorXTbF11EKkG1n_hkSzBUZAJ25PvrEXdW$.

Evan,
Same results
Still came up with
Traceback (most recent call last):
File "W:\Re_tool_stuff\GEMS_dev\gems-tools-arcmap-master\Scripts\GeMS_ValidateDatabase_Arc10.py", line 1112, in
for row in cursor:
RuntimeError: An invalid SQL statement was used. [SELECT MapUnit FROM DescriptionOfMapUnits ORDER BY HierarchyKey]
Changed as before & fixed.
And again
Missing or mis-defined fields
MapUnitPolys could not get field list. Fields not checked.
ContactsAndFaults could not get field list. Fields not checked.
CartographicLines could not get field list. Fields not checked.
MapUnitPolys could not get field list. Fields not checked.
CartographicLines could not get field list. Fields not checked.
ContactsAndFaults could not get field list. Fields not checked.
Is there a way to include from which feature dataset the fields are checked?
Because, in this particular database I have included “extra” fds that would not have any of the above fields.
In the meantime, I will try on another database that does not yet have the extra.
Thank you for your help here.
Linda
From: Evan Thoms notifications@github.com
Sent: Wednesday, October 14, 2020 1:46 PM
To: usgs/gems-tools-arcmap gems-tools-arcmap@noreply.github.com
Cc: Tedrow, Linda (ltedrow@uidaho.edu) ltedrow@uidaho.edu; Author author@noreply.github.com
Subject: Re: [usgs/gems-tools-arcmap] Level 3 Compliance -- missing or mis-defined elements (#50)
Linda,
Download the repo, or just Validate Geodatabase.py, and try again. I think I have it fixed. I found the same error you did when validating a gdb with cross sections, but got it to run with no errors after making the changes that are in this new version.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/usgs/gems-tools-arcmap/issues/50*issuecomment-708650440__;Iw!!JYXjzlvb!z3Uthu4Yu80ri6lEMN30YSY8fxdEl2vorXTbF11EKkG1n_hkSzBUZAJ25ACL16Pt$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AKYEVB2FCQBVIABMBUMB2CTSKYEYHANCNFSM4SNLTFKA__;!!JYXjzlvb!z3Uthu4Yu80ri6lEMN30YSY8fxdEl2vorXTbF11EKkG1n_hkSzBUZAJ25PvrEXdW$.

Hi Linda,
Could you confirm you have the most recent version of the script? Line 1112 in my version (and what you will see at https://github.com/usgs/gems-tools-arcmap/blob/master/Scripts/GeMS_ValidateDatabase_Arc10.py) is blank and I think the line throwing your error is down at 1126.
And just to be clear, the edits I made are only an attempt to fix the issue of the fields in cross section feature classes getting properly inventoried. I don't yet have a guess about what is going on with the sql statement in the search cursor.

You are right
Line 112 is blank
1126 is for row in cursor:
1125 has the SearchCursor.
From: Evan Thoms notifications@github.com
Sent: Thursday, October 15, 2020 11:40 AM
To: usgs/gems-tools-arcmap gems-tools-arcmap@noreply.github.com
Cc: Tedrow, Linda (ltedrow@uidaho.edu) ltedrow@uidaho.edu; Author author@noreply.github.com
Subject: Re: [usgs/gems-tools-arcmap] Level 3 Compliance -- missing or mis-defined elements (#50)
Hi Linda,
Could you confirm you have the most recent version of the script? Line 1112 in my version (and what you will see at https://github.com/usgs/gems-tools-arcmap/blob/master/Scripts/GeMS_ValidateDatabase_Arc10.pyhttps://urldefense.com/v3/__https:/github.com/usgs/gems-tools-arcmap/blob/master/Scripts/GeMS_ValidateDatabase_Arc10.py__;!!JYXjzlvb!09xP9ih_buk5vfSYQl0BKSUvmKtsGkwfC5vGOjI6_SLrYHmg2lX6PBlKlThnm_dO$) is blank and I think the line throwing your error is down at 1126.
And just to be clear, the edits I made are only an attempt to fix the issue of the fields in cross section feature classes getting properly inventoried. I don't yet have a guess about what is going on with the sql statement in the search cursor.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/usgs/gems-tools-arcmap/issues/50*issuecomment-709517867__;Iw!!JYXjzlvb!09xP9ih_buk5vfSYQl0BKSUvmKtsGkwfC5vGOjI6_SLrYHmg2lX6PBlKlYzDQ7Wq$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AKYEVB3DJF7ZKSZ3BX7WBL3SK46XXANCNFSM4SNLTFKA__;!!JYXjzlvb!09xP9ih_buk5vfSYQl0BKSUvmKtsGkwfC5vGOjI6_SLrYHmg2lX6PBlKlTxlVQl4$.

Evan,
We are moving along here.
Missing or mis-defined fields
CSBMapUnitPolys, field MapUnitPolys_ID is missing
CSBContactsAndFaults, field ContactsAndFaults_ID is missing
CSBCartographicLines, field CartographicLines_ID is missing
CSBCartographicLines, field DataSourceID is missing
CSAMapUnitPolys, field MapUnitPolys_ID is missing
CSACartographicLines, field CartographicLines_ID is missing
CSACartographicLines, field DataSourceID is missing
CSAContactsAndFaults, field ContactsAndFaults_ID is missing
CSBMapUnitPolys does have CSBMapUnitPolys_ID
CSBContactsAndFaults does have CSBContactsAndFaults_ID
CSACartographicLines & CSB CartographicLines do not have DataSourceID
All others (**_ID)  have the mentioned fields with CSX in front.
Linda
From: Evan Thoms notifications@github.com
Sent: Thursday, October 15, 2020 11:40 AM
To: usgs/gems-tools-arcmap gems-tools-arcmap@noreply.github.com
Cc: Tedrow, Linda (ltedrow@uidaho.edu) ltedrow@uidaho.edu; Author author@noreply.github.com
Subject: Re: [usgs/gems-tools-arcmap] Level 3 Compliance -- missing or mis-defined elements (#50)
Hi Linda,
Could you confirm you have the most recent version of the script? Line 1112 in my version (and what you will see at https://github.com/usgs/gems-tools-arcmap/blob/master/Scripts/GeMS_ValidateDatabase_Arc10.pyhttps://urldefense.com/v3/__https:/github.com/usgs/gems-tools-arcmap/blob/master/Scripts/GeMS_ValidateDatabase_Arc10.py__;!!JYXjzlvb!09xP9ih_buk5vfSYQl0BKSUvmKtsGkwfC5vGOjI6_SLrYHmg2lX6PBlKlThnm_dO$) is blank and I think the line throwing your error is down at 1126.
And just to be clear, the edits I made are only an attempt to fix the issue of the fields in cross section feature classes getting properly inventoried. I don't yet have a guess about what is going on with the sql statement in the search cursor.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/usgs/gems-tools-arcmap/issues/50*issuecomment-709517867__;Iw!!JYXjzlvb!09xP9ih_buk5vfSYQl0BKSUvmKtsGkwfC5vGOjI6_SLrYHmg2lX6PBlKlYzDQ7Wq$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AKYEVB3DJF7ZKSZ3BX7WBL3SK46XXANCNFSM4SNLTFKA__;!!JYXjzlvb!09xP9ih_buk5vfSYQl0BKSUvmKtsGkwfC5vGOjI6_SLrYHmg2lX6PBlKlTxlVQl4$.

Thank you, Linda. That makes sense. I think I can't get to this for a few days at this point, but I will let you know.

Evan,
No problem on the few days.
However, of note, to get last error message set I had to remove my location maps that do not have all the GeMS required fields, symbol, type, nor the typical layers.

A state outline and polygon of map area
Adjacent quad boundaries & polygon of map area

I am wondering if these can be ignored by validation ?
Look forward to seeing how you recode this.
Thanks again,
Linda
Linda Tedrow
Idaho Geological Survey
University of Idaho
From: Evan Thoms notifications@github.com
Sent: Thursday, October 15, 2020 12:51 PM
To: usgs/gems-tools-arcmap gems-tools-arcmap@noreply.github.com
Cc: Tedrow, Linda (ltedrow@uidaho.edu) ltedrow@uidaho.edu; Author author@noreply.github.com
Subject: Re: [usgs/gems-tools-arcmap] Level 3 Compliance -- missing or mis-defined elements (#50)
Thank you, Linda. That makes sense. I think I can't get to this for a few days at this point, but I will let you know.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/usgs/gems-tools-arcmap/issues/50*issuecomment-709554189__;Iw!!JYXjzlvb!zvu_cYWordDD2XM324W8oITyMINQb_TJAfj-6dMcqlGFBi2V9yRMqd8_EbRjnCes$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AKYEVB7ZGUXIXMEMIHJQB6DSK5HAZANCNFSM4SNLTFKA__;!!JYXjzlvb!zvu_cYWordDD2XM324W8oITyMINQb_TJAfj-6dMcqlGFBi2V9yRMqd8_EaRf-62j$.

That's too bad, any extra tables or fields ought to simply get inventoried and listed as extra, but they shouldn't throw any errors or break compliance.

That is what I thought, Maybe after we fix this first problem I will add back in and then see.
From: Evan Thoms notifications@github.com
Sent: Thursday, October 15, 2020 1:09 PM
To: usgs/gems-tools-arcmap gems-tools-arcmap@noreply.github.com
Cc: Tedrow, Linda (ltedrow@uidaho.edu) ltedrow@uidaho.edu; Author author@noreply.github.com
Subject: Re: [usgs/gems-tools-arcmap] Level 3 Compliance -- missing or mis-defined elements (#50)
That's too bad, any extra tables or fields ought to simply get inventoried and listed as extra, but they shouldn't throw any errors or break compliance.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/usgs/gems-tools-arcmap/issues/50*issuecomment-709563092__;Iw!!JYXjzlvb!yQcsWSXOc6RPQYoXg2zrZfVfCa8g6v6TC_tlDIYtB4GDkooFygMS9edd7NBVseU8$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AKYEVB35XO5C2TEA2VMJ7UTSK5JFDANCNFSM4SNLTFKA__;!!JYXjzlvb!yQcsWSXOc6RPQYoXg2zrZfVfCa8g6v6TC_tlDIYtB4GDkooFygMS9edd7BUhKyOu$.

Ok, Linda. Could you download the toolbox or just the tool script and try again?
I think I have the discovery of _ID fields working correctly in cross section feature classes.

Evan,
Yes, I downloaded last night and the validation of components in the crosssections worked well.
It found a field I had missed in the cross section cartographic lines.
I fixed this and re-ran – and confirmed that the database including crosssections were in GeMS format.
Thank you.
Linda
From: Evan Thoms notifications@github.com
Sent: Monday, November 9, 2020 6:12 PM
To: usgs/gems-tools-arcmap gems-tools-arcmap@noreply.github.com
Cc: Tedrow, Linda (ltedrow@uidaho.edu) ltedrow@uidaho.edu; Author author@noreply.github.com
Subject: Re: [usgs/gems-tools-arcmap] Level 3 Compliance -- missing or mis-defined elements (#50)
Ok, Linda. Could you download the toolbox or just the tool script and try again?
I think I have the discovery of _ID fields working correctly in cross section feature classes.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://urldefense.com/v3/__https:/github.com/usgs/gems-tools-arcmap/issues/50*issuecomment-724403734__;Iw!!JYXjzlvb!324eI9CrIuLxrbZqnmGr0XDQj0mWNMIctUHSqtbnXr_AnLrT2gg4Ontj3AOJNueY$, or unsubscribehttps://urldefense.com/v3/__https:/github.com/notifications/unsubscribe-auth/AKYEVBZAD2V5NZGTKK524SLSPCOPDANCNFSM4SNLTFKA__;!!JYXjzlvb!324eI9CrIuLxrbZqnmGr0XDQj0mWNMIctUHSqtbnXr_AnLrT2gg4Ontj3DR4JT0r$.

Great.
I will close this issue then

authors: LindaTedrow ethoms-usgs

repo: usgs/gems-tools-arcmap


text:
Bootstrap CloudFormation Enhancements

This PR adds:

the ability to specify multiple IAM policies
context-appropriate path for the IAM role
default changed to ReadOnlyAccess

Signed-off-by: Jarod Neuner janeuner@gmail.com

Also added logic to suppress AWS credentials calls when secrets are not configured on the repo (ie, for this template).

@kajalnp The Test AWS Credentials was originally for debugging, but I left it in because it effectively logs the identity used to execute the workflow.

source: gharchive/pull-request

repo: ustcode/wf-terraform

license: MIT

license_type: permissive

license_source: github-api


text:
Spanish translation = es

{
  "duel": {
    "title": "Nuevo desafío de duelo",
    "challenge": "{invited}, **{initier}** te desafió a un duelo!",
    "action": "Reacciona a este mensaje para aceptar o rechazar el duelo.",
    "expire": "**{invited}** no se puso a la altura del desafío.",
    "reject": "**{invited}** ha rechazado el duelo.",
    "unknown-user": "No pudiste desafiar a **{username}**. Por favor mencione otro usuario."
  },
  "game": {
    "title": ":game_die: {player1} **VS** {player2}",
    "action": "{player}, seleccione su movimiento:",
    "load": "Las reacciones se están cargando, espere ...",
    "end": "Nadie ganó el juego, ¡es un empate! ¿Intentemoslo de nuevo?",
    "win": "{player} ha ganado el juego! :tada:",
    "expire": "El juego ha **caducado**... quizás debido a la inactividad de un usuario.",
    "waiting-ai": "La IA está jugando, por favor espere...",
    "ai": "La IA"
  }
}

Added! Thank you for the contribution :rocket:

Thanks to you

source: gharchive/issue

authors: ChrisTVH utarwyn

repo: utarwyn/discord-tictactoe

license_source: bigquery


text:
Change Audio Volume from Guest OS

It would be great if the guest audio volume could be changed. Currently, when changing audio volume (device Intel HDA) the resulting audio from the guest stays the same and these messages are logged in the console:
qemu-system: warning: GLib-GObject: g_object_set_is_valid_property: object class 'GstAutoAudioSink' has no property named 'volume'

Another approach would be to sync the guest volume with the host device's audio volume.

I believe I found the line of code in a GStreamer class that causes this message to be logged.
It seems like a change to the QEMU-GStreamer audio backend would be needed to make it work.
Funnily enough there supposedly is a “volume” property on some kinds of audio streams - maybe in this case the kind of (automatic) audio stream used by QEMU doesn’t support volume changes.

repo: utmapp/UTM


text:
Add option for Points @1x (pt) resolution

For those who design at 1x and want their units in pts.
New resolution:
Points @1x (pt)

Reference - I design most everything at 1x resolution. Currently I have to use the 'Standard @1x (px)' design resolution. When handing mocks to devs, I want my 1x resolution artboards to use points for measuring.

add "Points @1x (pt)"

authors: tylerhowarth utom

repo: utom/sketch-measure

license: mit


text:
Should be possible to use crypto.randomBytes's async API

Running my program with --trace-sync-io, I see:
WARNING: Detected use of sync API
at _rng (/home/blong/trello-idea-powerup/node_modules/node-uuid/uuid.js:60:53)
at v4 (/home/blong/trello-idea-powerup/node_modules/node-uuid/uuid.js:224:55)
// etc.

The problem is that you're using crypto.randomBytes synchronously, and don't seem to provide a way to pass a callback and use the async API.

The call to crypto.randomBytes(16) takes ~.0025 msecs (on my Mac Pro).  Not worth the effort or code complexity, IMHO.

@brendanlong Coming back to this... can you elaborate on why this is an issue in practical terms ("i.e.  does fixing add benefit beyond getting rid of the --trace-sync-io warning?")
I assume the randomBytes API offers an async option for a reason, but the only one that makes sense (to me) is the case where you're generating very large quantities of #'s and don't want to block the current thread.  But since RNG is an almost purely computational problem (i.e. there's little/no underlying async I/O that mandates a non-blocking api) and node-uuid is generating small quantities of data, I'm struggling to see why this is an issue.
I would love to be educated on why I'm wrong.  I don't see a whole lot on the web about this.

FWIW, sync .vs. async perf of randomBytes: https://github.com/mozilla/fxa-auth-server/issues/173

@broofa same test on my PC, which is considerably more powerful than the virtual machines production software runs on:
mihai / /tmp/random-bytes
--€ cat asyncRandomBytes.js
crypto = require("crypto");
for (var i = 0; i < 200000; i++) {
  crypto.randomBytes(256, function(err) {});
}
mihai / /tmp/random-bytes
--€ time node asyncRandomBytes.js

real	0m0.690s
user	0m2.796s
sys	0m0.260s
mihai / /tmp/random-bytes
--€ cat syncRandomBytes.js
crypto = require("crypto");
for (var i = 0; i < 200000; i++) {
  crypto.randomBytes(256);
}
mihai / /tmp/random-bytes
--€ time node syncRandomBytes.js

real	0m1.852s
user	0m1.836s
sys	0m0.012s

I would be surprised to find any companies running their servers on macbook pros. The same argument "meh, it's fast enough on my pc" can be used for fs.readFileSync because many macbook pros have SSDs, right?

The same argument "meh, it's fast enough on my pc" can be used for fs.readFileSync because many macbook pros have SSDs, right?

No.  You're talking about the difference between providing a method designed to do arbitrarily large (and time-consuming) operations .vs.  a library that uses a an async method in a well-constrained fashion.  readFileSync can be used to read arbitrarily large files.  In contrast, node-uuid can't be used to generate arbitrarily large UUIDs.  I defy you to paint a scenario where a call to uuid.v4() takes more than 1 millisecond.  Hell, it's hard to imagine it taking even 0.1 msecs, frankly.

There is no reason to make this library async. We could support passing in a random byte generator but if your system is blocked by generating 16 bytes, there are likely other higher value things to address.

I've runned some testes about sync/async, and the conclusion is that the async had a better performance.
User case: NodeJS Express running on Cluster mode with 4 workers ( Windows - Core I7 7500U)
Load Test using K6 with 100 Concurrent Virtual Users getting uui.v4() from a route for 30 seconds
Async code:
  public async getId(req: Request, res: Response, next: NextFunction) {
    const uuidPromise = (u) => new Promise((resolve, reject) => {
      crypto.randomBytes(16, (err, random) => {
        if (err) {
          return reject(err);
        }
        resolve(u({ random }));
      });
    });

    //async
    const id = await uuidPromise(uuid);
    res.send(id);
}

Sync code:
  public async getId(req: Request, res: Response, next: NextFunction) {
    const id = uuid.v4();
    res.send(id);
}

Sync Results:

Async Results:

Conclusions:
I know the network traffic matters, but I'm using executing the tests on same machine (localhost), I've runned some tests and the results have the same mean.
Using sync api has lower iterations, meaning less requests per second, less network throughput.
Using async api has much more iterations and requests per second, about 37% more requests than sync api.
I know this test is simple, we need more complex tests, but if we have a route that has to generate an uuid for every request, it does matter.
Thanks

@gustavomassa  I just ran my own async tests using the benchmark module.  The results (see below) make it difficult to accept your findings.
Here are my issues:

My test shows both sync and async forms of uuid run 100-1000x faster (on 2017 MBP)  than your test.  Even ignoring that sync performance is faster, how do you explain a single incantation of either of these producing a 37% difference in HTTP performance?
Have you verified that sync vs. async HTTP request processing isn't triggering substantially different code paths w/in Express and Cluster?  E.g. How do your test cases perform if you just return sync/async 'hello world' string literals instead of doing uuid()?

Express and Cluster are adding a lot of overhead that I'm forced to assume is obscuring any real performance difference uuid might be introducing.   Without an SSCCE with which to reproduce your findings, and given my test below, I'm afraid you haven't done much to persuade me this is a real issue here.

uuid_bench.js:
const uuid = require('uuid/v4');
const Benchmark = require('benchmark');
const crypto = require('crypto');

const suite = new Benchmark.Suite();

function asyncUuid() {
}

suite
  .add('Sync uuidv4', uuid)
  .add('Async uuidv4',
    function(deferred) {
      crypto.randomBytes(16, (err, random) => {
        if (err) throw err;
        uuid({random});
        deferred.resolve()
      })
    },
    {defer: true}
  )
  .on('cycle', event => console.log(String(event.target)), {defer: true
  })
  .on('complete', event =>
    console.log('Fastest is ' + suite.filter('fastest').map('name'))
  )
  .run();

Running the test:
$ npm i uuid benchmark
$ node uuid_bench.js
Sync uuidv4 x 327,839 ops/sec ±1.70% (84 runs sampled)
Async uuidv4 x 50,822 ops/sec ±4.09% (75 runs sampled)
Fastest is Sync uuidv4

@gustavomassa:

we need to test real world scenarios

Of course.  The problem is that your real-world scenario is not accessible to me, so I have no way of verifying/debugging the problem.  And you're complaining about code that is empirically (according to my tests) only responsible for < 0.1% of the response time.
Providing HTTP test data that measures 100's of requests/second as evidence of a problem with code that runs 100K's ops/second is like handing me a subway map of New York and expecting me to use it to locate the beer aisle at your local corner market.  😕

I think I understand what is happening

Hand waving about how node is optimized to be an I/O event loop doesn't help.  I'll simply counter by pointing out that (at least in principle) PRNGs like randomBytes() are not I/O bound - they're CPU bound - so releasing control back to the event loop doesn't actually accomplish anything other than to add event-loop + Promise overhead.
BTW, I'm not saying this can't be an issue with uuid() - I admit I don't fully understand the internals of OpenSSL's ssleay_rand_bytes() code, upon which randomBytes() is based I believe, so there may be I/O-related blocking in there - but I have yet to see evidence of this, and until that's presented I'm not inclined to address this issue.
Speaking of which, I revamped my test case, above, to run with Cluster (code here).  On my 4-core CPU, the per-core performance drops by 50%.  I'm not sure why - I assume there's some common resource contention of some sort - but the overall perf is 2X so take that for whatever it's worth.  Still... definitely not something I'm concerned about, and orders of magnitude away from whatever your issue is.  Here's the output:
Master 54281 is running
Worker 54282 started
Worker 54284 started
Worker 54285 started
Worker 54287 started
Sync uuidv4 x 179,131 ops/sec ±2.05% (82 runs sampled)
Sync uuidv4 x 179,845 ops/sec ±2.62% (79 runs sampled)
Sync uuidv4 x 178,607 ops/sec ±3.41% (80 runs sampled)
Sync uuidv4 x 178,554 ops/sec ±2.31% (85 runs sampled)
Async uuidv4 x 31,443 ops/sec ±4.72% (70 runs sampled)
Fastest is Sync uuidv4
Async uuidv4 x 29,978 ops/sec ±5.47% (67 runs sampled)
Fastest is Sync uuidv4
Async uuidv4 x 29,621 ops/sec ±4.89% (73 runs sampled)
Fastest is Sync uuidv4
Async uuidv4 x 29,151 ops/sec ±5.94% (64 runs sampled)
Fastest is Sync uuidv4

If you want this taken seriously, you need to provide a test-case that isolates the problem.  I'd suggest the following:

Start by wiring your getId() methods with hrtime) so you get an accurate measure of the per-invocation time spent in uuid creation code.  If uuid() is the issue, based on your test data there should be a ~25 msec difference between the two forms (favoring async).    If it's not the issue,  it'll be more like ~0.01 msecs... i.e. this should give us a pretty definitive answer one way or another as to whether uuid() is really at fault here.
If it really is a uuid problem, use the uuid_bench.js code I posted here as a starting point and build up to an SSCCE that reproduces the behavior, then post that code in a new issue and we can go from there.

I know I'm not making this easy for you, but I hope you appreciate my reasoning.  Cheers.

Hi, I would to reopen this issue. Offical Node guidelines say not to use randomBytes() in it's synchronous way, as it will block the event loop.
https://nodejs.org/en/docs/guides/dont-block-the-event-loop/

For the sake of completeness, we note that when you call one of these APIs from a callback on the Event Loop, the Event Loop pays some minor setup costs as it enters the Node.js C++ bindings for that API and submits a task to the Worker Pool. These costs are negligible compared to the overall cost of the task, which is why the Event Loop is offloading it.

If you execute them on the Event Loop, they will take far longer to complete than a typical JavaScript instruction, blocking the Event Loop.

@forgotPassword The reason event loop blocking is a concern with randomBytes() is because the size parameter is unbounded.  For example (on my laptop):
randomBytes(16) x 449,511 ops/sec ±1.03% (85 runs sampled)
randomBytes(1e5) x 4,164 ops/sec ±0.76% (94 runs sampled)
randomBytes(1e8) x 4.78 ops/sec ±4.84% (17 runs sampled)

If you're generating 1,000,000 random values at a time then, yes, blocking is a real concern.  uuid doesn't do that, though.  It only ever requests 16 values at a time, where performance is on par or better than many other [synchronous] actions in Node.  E.g...
randomBytes(16) x 449,472 ops/sec ±1.06% (87 runs sampled)
new URL('https://nodejs.org/api/url.html?foo=bar') x 503,342 ops/sec ±0.44% (96 runs sampled)
path.resolve('foo/../bar') x 90,384 ops/sec ±0.61% (89 runs sampled)

@broofa Thanks for the reply. I ran the following bench (Windows):
sync.js

var crypto = require('crypto');

var start = new Date();

var array = ['a'],
    crypto_ops = 0,
    js_ops = 0;

var js_loop = function(){
    if(new Date() - start >= 1000){
        console.log('js_ops', js_ops, 'crypto_ops', crypto_ops);
        process.exit(0);
    };

    crypto.randomBytes(16);
    crypto_ops++;

    array.push('b');
    array.shift();
    js_ops++;

    setImmediate(js_loop);
};

js_loop();

// js_ops 227190 crypto_ops 227190
// js_ops 213712 crypto_ops 213712
// js_ops 229695 crypto_ops 229695
// js_ops 229949 crypto_ops 229949
// js_ops 233426 crypto_ops 233426
// js_ops 225040 crypto_ops 225040
// js_ops 221169 crypto_ops 221169
// js_ops 218889 crypto_ops 218889
// js_ops 224063 crypto_ops 224063
// js_ops 223751 crypto_ops 223751

async.js

var crypto = require('crypto');

var start = new Date();

var array = ['a'],
    crypto_ops = 0,
    js_ops = 0;

var crypto_loop = function(err, buf){
    crypto_ops++;
    crypto.randomBytes(16, crypto_loop);
};

var js_loop = function(){
    if(new Date() - start >= 1000){
        console.log('js_ops', js_ops, 'crypto_ops', crypto_ops);
        process.exit(0);
    };

    array.push('b');
    array.shift();
    js_ops++;

    setImmediate(js_loop);
};

crypto_loop();
js_loop();

// js_ops 290741 crypto_ops 93123
// js_ops 284035 crypto_ops 94771
// js_ops 294128 crypto_ops 96012
// js_ops 283591 crypto_ops 93884
// js_ops 299953 crypto_ops 95861
// js_ops 298372 crypto_ops 99015
// js_ops 288589 crypto_ops 96583
// js_ops 286039 crypto_ops 94128
// js_ops 299735 crypto_ops 95843
// js_ops 279200 crypto_ops 90195

Well, it seems with async we gain 20% js_ops, but lose 60% crypto_ops. So overall using the sync version is better. In extreme cases where you don't need high throughput of randomBytes() and want to maximize event loop performance, can consider the async version.
Also no idea what V8 does behind the scenes with those loops. I tried running several crypto_loop, while it increased crypto_ops it reduced js_ops.

👋 Hi, stumbled across this issue today, read through the comments and wanted to mention that I think the case for using the async version of randomBytes is to avoid blocking the event loop because the operation may block waiting for entropy, which will almost never happen outside of a virtualized or containerized environment.
But, it is not a hypothetical problem for workloads running in virtualized or containerized environments. A quick search for random entropy block virtualized containerized will turn up plenty of material on the subject.
Personally, I've seen this problem manifest a few times in automated test suites that run in a containerized environment running on a virtualized environment - tests would time out waiting on randomBytes.
Anyway, I haven't noticed this issue with this library specifically (great library by the way!), and as was mentioned, it is possible to BYO random bytes, which can be procured asynchronously, so there doesn't seem to be change required. I just wanted to try to add some context regarding why using the async version would be preferential for some use cases. ✌

@janaz man, appreciate your comment here, and the topic discussed! I've recently set up the server generating uuid on each request and it was awfully slow. After using async version you published i reduced time of response from 1.5s on 99th percentile to 600ms. Thank you!!!

authors: brendanlong broofa defunctzombie forgotPassword gustavomassa jstewmon malyusha randunel

repo: uuidjs/uuid


text:
chmod: passing multiple modes with leading hyphens.

GNU chmod has some... ehh... interesting behaviour when it comes to leading hyphens in the mode:
chmod -w -w f

changes the permissions of f (and not of a file called -w). uutils simply throws an error because it does not expect the flag -w.
On the other hand,
chmod a-w a-w f

does try to change the permissions of a-w and f.
However, this behaviour changes when the -w is passed after --, because
chmod -- -w -w f

tries to modify both -w and f. This case is currently handled correctly in uutils, but I still included it here, because it is likely to break for some naive solutions to this issue.
All this is tested in the chmod/usage.sh tests from GNU. The cases tested there are listed below, where the provided arguments are on the left, followed by a colon and the files that it will try to chmod:
--         :
-- --      :
-- -- -- f : -- f
-- -- -w f : -w f
-- -- f    : f
-- -w      :
-- -w -- f : -- f
-- -w -w f : -w f
-- -w f    : f
-- f       :
-w         :
-w --      :
-w -- -- f : -- f
-w -- -w f : -w f
-w -- f    : f
-w -w      :
-w -w -- f : f
-w -w -w f : f
-w -w f    : f
-w f       : f
f          :
f --       :
f -w       : f
f f        :
u+gr f     :
ug,+x f    :

Simple testcase:
touch f
chmod -w -w -- f
./target/debug/coreutils chmod -w -w -- f

authors: sylvestre tertsdiepraam

repo: uutils/coreutils


text:
Adds ability to hide the filters so that the search table has more space to render.

CAB-3824.

I have some picky requests:

Could you increase the color contrast for the button please. Make it a little darker - to at least #949494 per https://webaim.org/resources/contrastchecker/

The keyboard tabbing order is a little odd. It looks like it is on the same row as the table header, so I expected to be able to Shift-tab to it from ID column, but it's actually between the Facets and Page Navigator instead. Maybe move the button up to be on the same level as Page Nav?

I removed the opacity style. The button now has the same fill color as the upload document icon.
In order for the button to be between the table and the page navigator I will have to move the button from search-page.component to search-results.component.

Added ability to keep the state of the filter panel visibility per session.
Added ability to auto-collapse the facets area and remove the toggle button for a profile that has no facets.

authors: farmas huiaic

repo: uw-it-edm/content-services-ui


text:
Cross check time conversion with GipsyX

Overview
Currently, gnatss have implemented an astropy Time object that has an epoch of
"2000-01-01 12:00:00" with the scale of tt, which is Terrestrial Time
as defined in wikipedia.
The input dataset is unclear of what time scale they're using, it's originally assumed
that these dataset uses utc timescale, but it's unclear, so we need to validate this against the
GipsyX software since the data were exported from there.
See gist here for the notebook of what the software would output for the conversions: https://gist.github.com/lsetiawan/e62cbe42c0b488b998f1c2343dc842de

@johnbdesanto please see the notebook above for the expected conversion values and cross check against GipsyX. Let me know if you have any questions.

Hi Don, I got the following:
(base) [jdesanto@ernie ~]$ sec2date 712215480
2022-07-27 17:38:00
(base) [jdesanto@ernie ~]$ sec2date 712215495
2022-07-27 17:38:15
(base) [jdesanto@ernie ~]$ sec2date 712215510
2022-07-27 17:38:30
(base) [jdesanto@ernie ~]$ sec2date 712215525
2022-07-27 17:38:45
(base) [jdesanto@ernie ~]$ date2sec 2022-07-27 17:38:00
712215480.0
(base) [jdesanto@ernie ~]$ date2sec 2022-07-27 17:38:15
712215495.0
(base) [jdesanto@ernie ~]$ date2sec 2022-07-27 17:38:30
712215510.0
(base) [jdesanto@ernie ~]$ date2sec 2022-07-27 17:38:45
712215525.0
(base) [jdesanto@ernie ~]$ sec2date 0
2000-01-01 12:00:00
It looks like everything that you posted in the notebook matches what we were using before.

Okay. Then I think it's safe to say that GipsyX is using Terrestrial Time Scale for this conversion. So we'll assume that for the input data. Do you agree?

There's really only one definition of J2000 and GipsyX is using this.
From wikipedia:

J2000: One commonly used ECI frame is defined with the Earth's Mean Equator and Mean Equinox (MEME) at 12:00 Terrestrial Time on 1 January 2000. It can be referred to as J2K, J2000 or EME2000. The x-axis is aligned with the mean vernal equinox. The z-axis is aligned with the Earth's rotation axis (or equivalently, the celestial North Pole) as it was at that time. The y-axis is rotated by 90° East about the celestial equator.[5]

authors: johnbdesanto lsetiawan

repo: uw-ssec/offshore-geodesy


text:
ci: add noxfile to use nox for ease of development

Overview
This PR adds the use of nox for ease of development by creating a noxfile.py configuration.

You will run nox command periodically and it will in turn run the below sessions to do the necessary tasks?

Yepp with this noxfile, you can run pipx run nox it will install the dependencies and run both pre-commit and test since that's listed as the two sessions.


text:
Feature Request:  config option datesEnabled

Would be great if I could have a property datesEnabled that would behave the opposite of datesDisabled!
It is not feasible to disable every date going infinitely into the future.  I may only have a two week-long period in which there are just 4-5 enabled dates.
Thanks.

I'm going to close this because I think with the combination of all the other config settings I can get what I want.

uh, how? its possible you need thousands of disabled elements!

repo: uxsolutions/bootstrap-datepicker


text:
🛑 Third Party IMG is down

In 4b4af06, Third Party IMG ($THIRD_PARTY_IMG) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Third Party IMG is back up in 0f2cb02 after 11 minutes.


text:
🛑 Third Party IMG is down

In 34c8de2, Third Party IMG ($THIRD_PARTY_IMG) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Third Party IMG is back up in 6ad41e9.


text:
Pip unable to install pyvalid==0.9.1 or pyvalid==0.9.2

`seva@spin:~$ /tmp/venv/bin/pip install pyvalid==0.9.2
Collecting pyvalid==0.9.2
Downloading https://files.pythonhosted.org/packages/f9/37/5a6aafd4cf2d6db43cbf6f79f211d69b48107e2045cdeca906f2eacac5a6/pyvalid-0.9.2.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-FtnEbh/pyvalid/setup.py", line 81, in
main()
File "/tmp/pip-install-FtnEbh/pyvalid/setup.py", line 12, in main
with open('requirements.txt') as fd:
IOError: [Errno 2] No such file or directory: 'requirements.txt'
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-FtnEbh/pyvalid/
seva@spin:~$ /tmp/venv/bin/pip install pyvalid==0.9.1
Collecting pyvalid==0.9.1
Downloading https://files.pythonhosted.org/packages/04/e8/ee039c1b990b6ca2c8af439e05e1bba681eeaf360a1a14e3565fd4914f46/pyvalid-0.9.1.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/tmp/pip-install-tAmnTm/pyvalid/setup.py", line 81, in
main()
File "/tmp/pip-install-tAmnTm/pyvalid/setup.py", line 12, in main
with open('requirements.txt') as fd:
IOError: [Errno 2] No such file or directory: 'requirements.txt'
----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-tAmnTm/pyvalid/
`

Looks like this is broken by Moved requirements to separated file

I have a fix for this, I'll submit a PR shortly.

repo: uzumaxy/pyvalid


text:
Временной промежуток: полгода (в аналитике: "Время" и "Загруженность") (улучшение)

Неделя, Месяц, Год
после месяца идет год .. на 11 месяцев больше .. много .. лучше разделить .. добавить полгода ..

Данный временной промежуток добавлен


text:
请支持一下windows phone 10!

作为windows phone最后的作品lumia 950微软停止继续提供支持了，请在其生命的最后一段，让v2ray也能够在它上面运行，让这台手机能够为像我一样的人继续提供服务把v2ray用来提供二次生命给这台设备毕竟看视频不错的就是在墙内要是能出去我也能自己写软件来让它做看视频以外更多的事情

有950怎么不刷个win10 arm64版，现在基本完美了，只有摄像头还不能用，最近识别sim卡了，已经可以打电话，很快就可以流量上网。完整版win10可以做更多事了。

有950怎么不刷个win10 arm64版，现在基本完美了，只有摄像头还不能用，最近识别sim卡了，已经可以打电话，很快就可以流量上网。完整版win10可以做更多事了。

正解！现在微软正在开发的 WCOS Windows Core Operating System 已经在适配 arm64 了，而且有 X86 模拟器可以运行大部分 win32 应用。足够让 v2ray 流畅使用了。

貌似要越狱才能搞这搞那
那还不如用Win10
最多看看将来Golang的编译器能不能出Win-arm二进制文件
毕竟为了一个DIE OS浪费精力并不值得

authors: Leo-Mu Xyncgas daiaji nftbty


text:
1603 - Design Parking System

Description of the Problem
Design a parking system for a parking lot. The parking lot has three kinds of parking spaces: big, medium, and small, with a fixed number of slots for each size.
Implement the ParkingSystem class:
ParkingSystem(int big, int medium, int small) Initializes object of the ParkingSystem class. The number of slots for each parking space are given as part of the constructor.
bool addCar(int carType) Checks whether there is a parking space of carType for the car that wants to get into the parking lot. carType can be of three kinds: big, medium, or small, which are represented by 1, 2, and 3 respectively. A car can only park in a parking space of its carType. If there is no space available, return false, else park the car in that size space and return true.
Code
class ParkingSystem:
    def __init__(self, int big, int medium, int small)

    def addCar(self, int carType) -> bool

Example 1:
Input
["ParkingSystem", "addCar", "addCar", "addCar", "addCar"]
[[1, 1, 0], [1], [2], [3], [1]]
Output
[null, true, true, false, false]
Link To The LeetCode Problem
LeetCode

Please assign this issue to me

repo: vJechsmayr/PythonAlgorithms


text:
0819 - Most Common Word

Description of the Problem
Given a paragraph and a list of banned words, return the most frequent word that is not in the list of banned words.  It is guaranteed there is at least one word that isn't banned, and that the answer is unique.
Words in the list of banned words are given in lowercase, and free of punctuation.  Words in the paragraph are not case sensitive.  The answer is in lowercase.
Example:
Input:
paragraph = "Bob hit a ball, the hit BALL flew far after it was hit."
banned = ["hit"]
Output: "ball"

Explanation:
"hit" occurs 3 times, but it is a banned word.
"ball" occurs twice (and no other word does), so it is the most frequent non-banned word in the paragraph.
Note that words in the paragraph are not case sensitive,
that punctuation is ignored (even if adjacent to words, such as "ball,"),
and that "hit" isn't the answer even though it occurs more because it is banned.

Note:
1 <= paragraph.length <= 1000.
0 <= banned.length <= 100.
1 <= banned[i].length <= 10.
The answer is unique, and written in lowercase (even if its occurrences in paragraph may have uppercase symbols, and even if it is a proper noun.)
paragraph only consists of letters, spaces, or the punctuation symbols !?',;.
There are no hyphens or hyphenated words.
Words only consist of letters, never apostrophes or other punctuation symbols.

Code
class Solution(object):
    def mostCommonWord(self, paragraph, banned):
        """
        :type paragraph: str
        :type banned: List[str]
        :rtype: str
        """

Link To The LeetCode Problem
LeetCode
May I have this issue assigned to me please?

May I have the above issue assigned to me please?

Please assign this to me. I will do it!

@anqkhieu Waiting for your PR 😸

authors: anqkhieu flick-23 vJechsmayr


text:
added 1460_Make_Two_Arrays_Equal_by_Reversing_Sub_Arrays

IMPORTANT: Please do not create a Pull Request without an issue.
All Submissions:

[x] I have read the CONTRIBUTING document.
[x] My code is written in Python3 and is ending with .py
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] I have checked that my submission does pass the test on LeetCode.com
[x] Does your filename follow the naming Conventions?
[x] Have you linked your PR to an Issue?

Closing issues
Put closes #XXXX in your comment to auto-close the issue that your PR fixes (if such).

closes #422


text:
PiT 23.3: JS error when running Hilla master-detail

Description of the bug
Any view having master-detail fails with hilla 1.3.0.alpha3
Error: The following properties on element master-detail-typescript-view will not trigger updates as expected because they are set using class fields: gridSize. Native class fields and some compiled output will overwrite accessors used for detecting changes. See https://lit.dev/msg/class-field-shadowing for more information.
    at MasterDetailTypescriptView.performUpdate (...)
    at MasterDetailTypescriptView.scheduleUpdate (...)
    at MasterDetailTypescriptView.__enqueueUpdate (...)

Minimal reproducible example

Download a hilla start project having master detail and bump version to 1.3.0.alpha3, and run in dev-mode

curl -s -f 'https://start.vaadin.com/dl?&preset=latest-typescript&projectName=latest-typescript' -o latest-typescript.zip
unzip latest-typescript.zip
cd latest-typescript
mvn -B -q versions:set-property -Dproperty=hilla.version -DnewVersion=1.3.0.alpha3
mvn

Open the browser and go to a master-detail view
There is an error in console

Expected behavior
Master Detail is displayed
Actual behavior
Blank Screen
Versions:
- Vaadin / Hilla version: 23.3.0.alpha3 / 1.3.0.alpha3

The skeleton starter tsconfig.json has not been updated

Removing the tsconfig.json does not help, and the error visiting master detail is the same regarding gridSize
element master-detail-typescript-view will not trigger updates as expected because they are set using class fields: gridSize.
Native class fields and some compiled output will overwrite accessors used for detecting changes.
See https://lit.dev/msg/class-field-shadowing for more information.

wait it works, it seems something else in our PiT scripts, sorry for the noise

authors: Artur- manolo

repo: vaadin/hilla


text:
white-space: normal break row responsive in vaadin-grid

Description
Adding white-space: normal to set the text break down if grid getting smaller size (as you can see in video, a blank space under 'a very very very...'
But after return back full size (original size) of grid, but it leave grid cell a blank space. It will be back to normal if I select that row, but back to stranger behaviour.
Expected outcome
Grid cell should be responsive.
Actual outcome

Give a blank space
Will bring to front if selecting it when resize grid to smaller width
Will bring to back if not selecting it when resize grid to smaller width

Live Demo
https://imgur.com/a/ianGMuc
Steps to reproduce

Add CSS property 'white-space: normal' to column which you want it break words when grid get smaller size.
Try to resize the grid

Browsers Affected

[x] Chrome
[ ] Firefox
[ ] Safari
[ ] Edge
[ ] IE 11
[ ] iOS Safari
[ ] Android Chrome

Hi @qvanphong,
I think this is actually a vaadin-app-layout issue. It should internally use iron-resizable-behaviour and notify its children of the layout resize when the side menu is expanded/collapsed.
You can workaround this by manually calling grid.notifyResize() after the parent layout has changed.

Thanks John, I will give a try and post the result here

repo: vaadin/vaadin-app-layout


text:
Coverall Errors: wrong filepath setup?

From #1483, the result all appears incorrectly and are marked with either "Source not available" or "incorrect hash"

@PPsyrius, I can see source now. Try to sign in on coveralls.io with your GitHub account.

Oh, that explains it

repo: vacanza/python-holidays


text:
Unhandled JS Exception: Syntax Error

Couldn't make it work on React Native.

{
  "presets": [
    "es2015",
    "react-native",
    "react-native-stage-0/decorator-support"
  ],
  "plugins": [
    "transform-es2015-parameters",
    ["extensible-destructuring", {"mode": "optout", "impl": "safe"}]
  ]
}

@brunolemos I think this is a dupe: https://github.com/vacuumlabs/babel-plugin-extensible-destructuring/issues/14. Can you try again on latest version of RN?

@cooperka
The same error.

dependencies

  "dependencies": {
    "extensible-runtime": "^4.0.1",
    "immutable": "^3.8.1",
    "react": "16.0.0-alpha.6",
    "react-native": "0.43.3"
  },
  "devDependencies": {
    "babel-jest": "19.0.0",
    "babel-plugin-extensible-destructuring": "^4.0.1",
    "babel-preset-react-native": "1.9.1",
    "jest": "19.0.2",
    "react-test-renderer": "16.0.0-alpha.6"
  },

.babelrc

{
  "presets": [
    "react-native-stage-0/decorator-support"
  ],
  "plugins" : [
    ["extensible-destructuring", { "mode": "optout", "impl": "immutable" }]
  ]
}
or
{
  "presets": [
    "react-native"
  ],
  "plugins" : [
    ["extensible-destructuring", { "mode": "optout", "impl": "immutable" }]
  ]
}

Thanks for the info @lucasleelz. I think this may be fixed by an upcoming PR. Feel free to check out the code and try it yourself: https://github.com/vacuumlabs/babel-plugin-extensible-destructuring/pull/20

Hi @cooperka
To resolve try the following:

Clear watchman watches: watchman watch-del-all.
Delete the node_modules folder: rm -rf node_modules && npm install.
Reset packager cache: rm -fr $TMPDIR/react-* or npm start -- --reset-cache.

I started getting this error again as of RN v0.43; I made a PR to improve debug messages: https://github.com/facebook/react-native/pull/13561. You can manually copy the changes there into your node_modules/react-native (at least until the PR is published in the next version) to get a better idea of what's going wrong.
For me, module.exports is being transformed strangely and the error reason is Unexpected keyword 'var'. This occurs in several places, not just for moment-timezone:
Working bundled code using mode optin:
__d(/* moment-timezone/data/packed/latest.json */function(global, require, module, exports) {module.exports = module.exports = {
	"version": "2017b",
...

Failing bundled code using mode optout:
__d(/* moment-timezone/data/packed/latest.json */function(global, require, module, exports) {module.exports = var __extensible_get__ = require("extensible-runtime").immutable;

module.exports = {
	"version": "2017b",
...

well, it seems that during the babelification (or, during the bundling) the var __extensible_get__ = require("extensible-runtime").immutable; gets placed on a really bad place - I don't understand why this is so.
Normally, I'd expect that babel will ignore files from node_modules. Even if babel was transpiling them, I would expect the result being OK file with just one extra (unneeded) require statement at the beginning.
Possible fix might be not to add the require statement if it is not necessary. This should exclude transpiling node_modules (they are already babelified). Also, it would a nice property to have - no need to require extensible_get if you are not using it.

@cooperka Again the problem is wrong
-[RCTJSStackFrame objectForKeyedSubscript:]: unrecognized selector sent to instance 0x618000043ff0

Removed
  "plugins" : [
    ["extensible-destructuring", { "mode": "optout", "impl": "safe" }]
  ]

But,  don't destructuring assignment with immutable.js
How to solve it?

+1

Same error, I want to use immutable.js in my RN project .
RN version:0.38.0
I use mode optout, impl immutable in .babelrc , then I start the RN project,

Then I download the bundle file, and rename to  index.android.bundle?platform=android.js, and run node index.android.bundle?platform=android.js

@tomaskulich
I only know a little about babel plugin, I use babel-plugin-extensible-destructuring  in many production projects and these projects are all raect web projects, I really thank you for you work. Today it my first time try to use this plugin in RN project, does this plugin doesn't work in RN project?

authors: brunolemos cooperka kimown lucasleelz tomaskulich vincentjames501


text:
Fix encoding ItemStack in TrackedData

When encoding ItemStacks in TrackedData the ItemStack itself is not optional as it was previously implemented. For further context, when encoding an ItemStack it will only encode as one byte if the ItemStack is empty.
Objective

Fixes #537

Solution

Remove the optional wrapping around the ItemStack value when encoding it in the TrackedData.

Must have been a leftover from #500

Makes sense, I was wondering how that got there.

repo: valence-rs/valence


text:
Menu not disappearing when creating custom layout

To begin with: Thanks for the great work!
I am currently creating a custom layout for "The Dark Eye" RPG. While doing so I ran into the issue of never disappearing menus. Whenever I add an object to the layout the submenu stays on screen. Only fix seems to be restarting Obsidian.
Confirmed the bug in new vault in version 1.1.9 with only TTRPG Statsblock installed via community addons.

Update: This issue seems only to exist for wide screen resolutions. I tried the same on my second screen (2560x1440) without any trouble. On the primary screen (3440x1440) the menus stay visible.
Very strange behavior... still nice to have this workaround using the smaller display for editing the layout.

Update: Unfortunately I need to correct myself. Same issue reappeared on the 2560x1440 Screen. This was on Windows 11. Moved to a Linux Mint machine, fresh install of Obsidian via Flatpack, same behavior on full HD display. So seems to be more general type of display bug.

Is this still an issue?

Closing as one month has passed without reply. If assistance is still needed, a new issue can be created referencing this one.


text:
Java: add JSON.ARRTRIM command

Issue link
This Pull Request is linked to issue (URL): https://github.com/valkey-io/valkey-glide/issues/2430
Checklist
Before submitting the PR make sure the following are checked:

[x] This Pull Request is related to one issue.
[x] Commit message has a detailed description of what changed and why.
[x] Tests are added or updated.
[x] CHANGELOG.md and documentation files are updated.
[x] Destination branch is correct - main or release
[x] Commits will be squashed upon merging.

CI is red

CI is red

authors: Yury-Fridlyand yipin-chen

repo: valkey-io/valkey-glide


text:
EFI from version 1.4.0 does not boot on X280

Hi, I downloaded your EFI, changed MLB, ROM, SystemProductName, SystemSerialNumber and SystemUUID and the system reboots after about 2s after the loading bar is visible
Everything worked on commit #89b992d (usb mapping) and below
(I have MacOS 14.3.1 and I don't use Heliport)

I have the same issue on a T480 fresh install

same here

same here

i used this EFI , to sucessfull update from monterrey to ventura, but can't upgrade from ventura to sonoma/sequoia, anyone there manage to upgrade or install to one of these?

I installed 1.2.2 efi for ventura, then updated all kexts and opencore and updated to sequoia from app store (remember to turn off securebootmodel and enable verbose) and everything works perfectly fine 😎 the only downside is that it takes more time, but nothing is difficult if you want

I installed 1.2.2 efi for ventura, then updated all kexts and opencore and updated to sequoia from app store (remember to turn off securebootmodel and enable verbose) and everything works perfectly fine 😎 the only downside is that it takes more time, but nothing is difficult if you want

i followed what you said(update opencore/kexts/enable verbose), and succesfully updated to sequoia, bluetooth is working, wifi not working but there is heliport to solve that issue

authors: jamesjames lrbateman2611 raedkit rotkiW285 tobiizx waldir-xam wallydevgg


text:
feat: add dapp rankings card

Description
This PR:

add most popular dapps to redux
add redux migrations
add dapp ranking card that dispatches an analytics action
add unit tests

This PR doesn't include the bottom sheet.
Test plan
I also checked the layout on the other variants. This card isn't on the legacy variant because that one has the featured dapp card.

Related issues

Fixes RET-698

Backwards compatibility

Awesome 📈 👍 Do we need to put this behind a feature flag?

i have this behind an experiment :)

repo: valora-inc/wallet


text:
Multiline attribute is broken when using stripspace

template
{% stripspace %}
{% func Page() %}
<form
  method="post"
>
  <input
    type="text"
    />
</form>
{% endfunc %}
{% endstripspace %}

output
<formmethod="post"><inputtype="text"/></form>

expected output
<form method="post"><input type="text"/></form>

{%stripspace%} strips all the whitespace between lines. Try using{%collapsespace%} instead, which collapses whitespace between lines into a single space. Another solution is to insert explicit {%space%}, which is never removed.

Oh, I see. I miss understood.

authors: arch-mage valyala

repo: valyala/quicktemplate


text:
Connection reset RW432MP panel

Describe the bug
The HomeAssistant addon is unable to connect to my RW432MP panel (connection is being reset)
Configuration

Environment: HA Addon
Version: v0.5.0-beta.2
Mode: direct
Risco Panel model: RW432MP (I think that's Lightsys+)
Risco Panel firmware version: Unknown

Logs
Debug logs:
Loading config from: /config/risco-mqtt.json
1/25/2024, 12:42:17 PM [debug] User config:
{
  "log": "debug",
  "panel": {
    "panelIp": “RISCO_IP”,
    "panelPort": 1000,
    "panelPassword": “RISCO_PIN,
    "watchDogInterval": 10000,
    "commandsLog": true
  },
  "panel_name": "alarm",
  "mqtt": {
    "url": "mqtt://HA_IP:1883",
    "username": "MQTT_USER",
    "password": "MQTT_PASS"
  },
  "zones": {}
}
1/25/2024, 12:42:18 PM [debug] Merged config:
{
  "log": "debug",
  "logColorize": false,
  "ha_discovery_prefix_topic": "homeassistant",
  "panel_name": "alarm",
  "panel_node_id": "alarm",
  "panel": {
    "panelIp": "RISCO_IP",
    "panelPort": 1000,
    "panelPassword": "RISCO_PW",
    "watchDogInterval": 10000,
    "commandsLog": true
  },
  "zones": {
    "default": {
      "off_delay": 0,
      "device_class": "motion",
      "name_prefix": ""
    }
  },
  "mqtt": {
    "url": "mqtt://HA_IP:1883",
    "username": "MQTT_USER",
    "password": "MQTT_PASS",
    "reconnectPeriod": 5000,
    "clientId": null,
    "will": {
      "topic": null,
      "payload": "offline",
      "qos": 1,
      "retain": true,
      "properties": {
        "willDelayInterval": 30
      }
    }
  }
}
1/25/2024, 12:42:18 PM [info] Logging commands to risco-commands-2024-01-25T11:42:18.033Z.csv
1/25/2024, 12:42:18 PM [debug] Local GMT Timezone is : +01:00
1/25/2024, 12:42:18 PM [info] autoConnect enabled, starting communication
1/25/2024, 12:42:18 PM [verbose] Start Connection to Panel
1/25/2024, 12:42:18 PM [debug] Pseudo Buffer Created for Panel Id(1)
1/25/2024, 12:42:18 PM [debug] TCP Socket created
1/25/2024, 12:42:18 PM [info] Connecting to mqtt server: mqtt://HA_IP:1883
1/25/2024, 12:42:18 PM [error] Socket Error : Error: connect ECONNRESET RISCO_IP:1000
1/25/2024, 12:42:18 PM [info] TCP Socket Disconnected
1/25/2024, 12:42:18 PM [info] Automatic reconnection will be attempted in 10000 ms
1/25/2024, 12:42:18 PM [debug] Socket Disconnected.
1/25/2024, 12:42:18 PM [error] Socket Closed.
1/25/2024, 12:42:18 PM [info] Connected on mqtt server: mqtt://HA_IP:1883
1/25/2024, 12:42:18 PM [info] Panel is not connected, waiting
1/25/2024, 12:42:28 PM [verbose] Start Connection to Panel
1/25/2024, 12:42:28 PM [debug] A TCP Socket already exists, clearing its listeners before creating a new one
1/25/2024, 12:42:28 PM [debug] Pseudo Buffer Created for Panel Id(1)
1/25/2024, 12:42:28 PM [debug] TCP Socket created
1/25/2024, 12:42:28 PM [verbose] Socket Connected, log in to panel
1/25/2024, 12:42:28 PM [verbose] Authenticating to the panel
1/25/2024, 12:42:28 PM [verbose] Command[1] Sending Command: RMT=RISCO_PW
1/25/2024, 12:42:28 PM [debug] Command[1] Writing command buffer to socket: [INT_ARRAY]
1/25/2024, 12:42:28 PM [debug] Command[1] Data Sent : RMT=RISCO_PW
1/25/2024, 12:42:28 PM [error] Socket Error : Error: write ECONNRESET
1/25/2024, 12:42:28 PM [info] TCP Socket Disconnected
1/25/2024, 12:42:28 PM [info] Automatic reconnection will be attempted in 10000 ms
1/25/2024, 12:42:28 PM [debug] Socket Disconnected.
1/25/2024, 12:42:28 PM [error] Command[1] error: Error: write ECONNRESET
1/25/2024, 12:42:28 PM [error] Socket Closed.
1/25/2024, 12:42:28 PM [debug] Command[1] command response : undefined
1/25/2024, 12:42:28 PM [error] Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":1,"attempts":1,"crcOk":false,"commandStr":"RMT=RISCO_PW","sentBuffer":{"type":"Buffer","data":[INT_ARRAY]}}

where INT_ARRAY is an arbitrary-looking array of integers (removed because unsure if it's sensitive data).
Command log:
Unable to find the command log file.

Additional context
No additional context

And maybe, if you are not using the proxy mode, consider using the official
home assistant integration with local mode :
https://www.home-assistant.io/integrations/risco/
Johann
Le jeu. 25 janv. 2024 à 14:09, Mark Roberts @.***> a
écrit :

This version of the library doesn’t support Lightsys+. Try @markxroberts
https://github.com/markxroberts library (sorry - self promotion).
—
Reply to this email directly, view it on GitHub
https://github.com/vanackej/risco-mqtt-local/issues/61#issuecomment-1910190839,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAECPHMG2ZAWJCDB7EYJM33YQJKPFAVCNFSM6AAAAABCKMG6IKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJQGE4TAOBTHE
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

In that case I am unsure what is causing the error. Have you ever seen this before? Is it possible the pin changed out of itself? 🤷🏼♂

Really no idea, sorry.
The best would be to checkout and run the library locally with a debugger
attached, set breakpoints and see what happens, but it requires advanced
developer skills (I don't know if you are a developer or not...).
Le jeu. 25 janv. 2024 à 15:47, Maarten Weyns @.***> a
écrit :

In that case I am unsure what is causing the error. Have you ever seen
this before? Is it possible the pin changed out of itself? 🤷🏼♂
—
Reply to this email directly, view it on GitHub
https://github.com/vanackej/risco-mqtt-local/issues/61#issuecomment-1910358651,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAECPHMDMJ4C4GDUOYKDE6TYQJWBJAVCNFSM6AAAAABCKMG6IKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJQGM2TQNRVGE
.
You are receiving this because you commented.Message ID:
@.***>

Hello @vanackej , @maartenweyns  :
For the 432mp lightsys+ , I add some code on the risco-lan-bridge :
https://github.com/needles77/risco-lan-bridge .
I will continue to work on it next week.
Bye

If you have working code to fix this issue I’m happy to try to include in my fork of the library if you open a pull request.

sorry @markxroberts  I hadn't read your comment.
I just tried your risco-mqtt-local fork with my lightsys+ (WIFI), and it works well (thank you for this). I have the same error as @maartenweyns on first login, but works the second time.
When I worked and try to debug de risco-lan-bridge last years with home bridge, I had some error with CRC and the delay of reconnection. I fixed this with :

this.ReconnectDelay = (Options.ReconnectDelay || 30000); // Needles 77 : 10s --> 30s LightSys + refused connection with 10 s
this.BadCRCLimit = 0; // @Needles77 : If CRC present from starting, somes accessoires can be not work

Now, I will try your fork for the next days, and I'll keep you informed.
I used the native risco integration in HA, it work but sometimes (1 time for 24/48h) the connection crashes and I need to restart integration.
Bye

I've published a new version with both of these configurable.

Good to see some developments in this issue! I have tried the new version @markxroberts released, with the adapted configuration from @needles77. It however did not resolve the issue I am having. I took a gander at the traffic between my host and the alarm panel in Wireshark and I do indeed see that the alarm panel replies with the reset bit set after the RMT command. No idea why that is happening
I attached the new logs below (they look slightly different this time):
11:40:21 AM [debug] Local GMT Timezone is : +00:00
11:40:21 AM [info] autoConnect enabled, starting communication
11:40:21 AM [verbose] Start Connection to Panel
11:40:21 AM [debug] Pseudo Buffer Created for Panel Id(1)
11:40:21 AM [debug] TCP Socket created
11:40:21 AM [info] [RML] Connecting to mqtt server: mqtt://10.0.1.10:1883
11:40:21 AM [verbose] Socket Connected, log in to panel
11:40:21 AM [verbose] Authenticating to the panel
11:40:21 AM [verbose] Command[1] Sending Command: RMT=xxxx
11:40:21 AM [debug] Command[1] Writing command buffer to socket: [xxxx]
11:40:21 AM [debug] Command[1] Data Sent : RMT=xxxx
11:40:21 AM [error] Socket Closed.
11:40:21 AM [info] TCP Socket Disconnected
11:40:21 AM [info] Automatic reconnection will be attempted in 30000 ms
11:40:21 AM [debug] Socket Disconnected.
11:40:21 AM [info] [RML] Connected on mqtt server: mqtt://10.0.1.10:1883
11:40:21 AM [info] [RML] Panel is not connected, waiting
11:40:26 AM [warn] Command[1] 'RMT=xxxx' Timeout
11:40:26 AM [debug] Command[1] command response : undefined
11:40:26 AM [error] Risco command error: TIMEOUT. Command: {"panelId":1,"commandId":1,"attempts":1,"crcOk":false,"commandStr":"RMT=xxxx","sentBuffer":{"type":"Buffer","data":[xxxx]}}

I am seeing the same behavior with that configuration

authors: maartenweyns markxroberts needles77 vanackej

repo: vanackej/risco-mqtt-local


text:
Auto claim bird hunt not work?

Auto claim bird hunt not work?

its still working maybe you dont have enough worms to start hunt

bot run hunt bat not claim after finish

wait until next check

authors: devillom vanhbakaa


text:
Name or service not knownname

my ~/.ssh/config looks like this:

Host *
ForwardAgent yes
ServerAliveInterval 120
IdentityFile /path/to/default/default/ssh/key
...
Host gate
User tim
Hostname 1.2.3.4
Port 22
LocalForward 1234 192.168.1.1:1234

after running sshto and selecting host gate I got error: Name or service not knownname gate
my default shell is zsh. But I run /bin/bash before starting sshto. I use Linux Mint 21.2

I'm not familiar with zsh but sshto has this shebang: #!/usr/bin/env bash so it should work as bash unleas you've started it in some fancy way. Are you trying to connect to this host? It's basically ssh gate is this working in your shell? Paths problem?

no, I don't  use any "fancy way" to run your script. just 'sshto'
'ssh gate' works like a charm.
As I know, you are russian speaking man, so lets continue in russian.

https://habr.com/ru/articles/661687/

@vaniacer
I'm not criticizing your script, but I'm curious if you've ever checked sshto.sh with shellcheck?
When I pasted your sshto script into shellcheck.net it output about 15 pages of info, suggestions, warnings and errors.
Then I told shellcheck to ignore all the info and suggestions by adding the following under the shebang:
#!/usr/bin/env bash
# shellcheck disable=SC2034,SC2317,SC2007,SC2086,SC2059,SC2004,SC2029,SC2031,SC2030,SC2028,SC2012,SC2015

That left just 3 errors and 28 warnings. 2 of the warnings relate to $hostname

https://habr.com/ru/articles/661687/ Is it your article?

It's got Ivan's name at the top of the article: vaniacer 19 апр 2022 в 19:26

https://habr.com/ru/articles/661687/ Is it your article?

Yep

@vaniacer I'm not criticizing your script, but I'm curious if you've ever checked sshto.sh with shellcheck?
When I pasted your sshto script into shellcheck.net it output about 15 pages of info, suggestions, warnings and errors.
Then I told shellcheck to ignore all the info and suggestions by adding the following under the shebang:
#!/usr/bin/env bash
# shellcheck disable=SC2034,SC2317,SC2007,SC2086,SC2059,SC2004,SC2029,SC2031,SC2030,SC2028,SC2012,SC2015

That left just 3 errors and 28 warnings. 2 of the warnings relate to $hostname

I wonder how many errors/warnings will be in piu-piu )
I don't use shellcheck on my own scripts, coz there are a lot of tests, tries, rewrites ... during script creation process.
But yeah it's a nice tool.

I wonder how many errors/warnings will be in piu-piu )

shellcheck.net refused to process it because it's too large. It does the same with one of my scripts that was 2000 lines.

repo: vaniacer/sshto


text:
🛑 Metro is down

In e05726e, Metro (https://metro.zakaz.ua) was down:

HTTP code: 403
Response time: 27 ms

Resolved: Metro is back up in 1641c60 after 966 days, 8 hours, 34 minutes.

repo: vanyakosmos/zakaz-uptime


text:
🛑 Tavria V is down

In f46bc37, Tavria V (https://tavriav.zakaz.ua) was down:

HTTP code: 503
Response time: 300 ms

Resolved: Tavria V is back up in d4e4ab4 after 19 minutes.


text:
Add percent encoding to url path with .urlPathAllowed characters

When parsing an URI from a string, it's decoded and it's percent encoding is lost, causing some urls to fail (when using %20 to replace an space, for example).
I modified a line to add percent encoding to the path when it's being built.
In the strange case that addingPercentEncoding returns nil, the path is used without modification, like it was being used before this commit.

Codecov Report

Merging #123 into master will decrease coverage by 0.02%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #123      +/-   ##
==========================================
- Coverage   71.34%   71.31%   -0.03%
==========================================
  Files         111      111
  Lines        4135     4135
==========================================
- Hits         2950     2949       -1
- Misses       1185     1186       +1

Impacted Files
Coverage Δ

Sources/HTTP/Models/Request/Request.swift
87.93% <0%> (-1.73%)
:arrow_down:

Continue to review full report at Codecov.

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

authors: EmilioPelaez codecov-io

repo: vapor/engine


text:
Update to match FluentKit's declared version minimums

This should help fix building in Xcode.

Codecov Report

Merging #239 (74785bd) into main (2579aa9) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #239   +/-   ##
=======================================
  Coverage   30.34%   30.34%
=======================================
  Files          10       10
  Lines         748      748
=======================================
  Hits          227      227
  Misses        521      521

These changes are now available in 2.9.1

authors: VaporBot codecov-commenter gwynne

repo: vapor/postgres-kit


text:
Update index.html

Issue reference:
Fixes #<ISSUE_NUMBER>
Proposed changes:
Type of change:
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] Other (please specify)
[ ] This change requires a documentation update

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
[ ] My changes generate no new warnings

Additional info (if any):

@Omkar071011 The index.html file is generated automatically, so there is no need to change that.


text:
Compound Interest Calci

Description 📜
The basic idea of this calculator is to provide the amount and Compound Interest by providing principal amount, rate of interest, time taken using HTML , CSS , Javascript.

Checklist ✅

[x] I follow Contributing Guidelines & Code of conduct of this project.
[x] I have performed a self-review of my own code or work.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] My changes generates no new warnings.
[x] I'm GSSOC'22 contributor

Screenshots / Gif (Optional) 📸

@Chayan-11 I have made the changes

@Chayan-11 I have made the changes

it is not propagated here!!

@vasu-1 I have made it now can u check it.

The changes aren't integrated here yet. Please recheck and add your files.

Also, Please read the instructions carefully as mentioned above

@vasu-1 @Chayan-11  I have added all the files can u check it

@vasu-1 @Chayan-11 is the code good to go.

@Chayan-11 @vasu-1 I have made the changes it's ready to get merged.

Sorry for this inconvenience but we can't merge it as there was already another pr (link) created before your pr's creation for compound interest. And it's got merged today.
suggestion :) you can edit the layout of the existing calculator and make it even more cool.
Happy Contributing !


text:
Faster step-level signature check

Currently SoS checks step signature via checking signature for each substep. In order to bypass computation of a step, all substeps have to be checked. It becomes slightly inconvenient (though still acceptable) when a step involves, say, ~10K substeps.
I have a workflow that works perfectly until the last step. But every step before the last has ~10K substeps. I was too lazy to use a small example to debug my last step, so I kept modifying it, rerunning, waiting for SoS to bypass other steps checking one substep at a time, then finally goes into my last step throwing a new error that I did not fix completely. Then the whole process happens again.
I'm wondering if there are better ways to check steps when SoS is 100% sure that nothing in the step was changed, thus safely bypassing substep checks?

Something like a step signature with Step input and output?

and parameters, action scripts, etc, everything. I think it is good enough if a step is skipped because absolutely nothing in it was changed. Otherwise we proceed into the existing substep signature checking procedure for a finer examination.

Yes we need to make sure that paramaters are the same in cases of
[10]
parameter: a = int
...

Step level signature check would only help if the step level input and output files is less the sum of substep input and output files. In the "normal" case of separated _output, I doubt step level signature would help. Overlapping _output only happens for dynamic output, which is a special case that we have largely decided to leave alone.

Also, now that signature checks are parallelized, having a single step level signature with all output files can be slower than checking substep signatures separately. Also, if this is no clear relationship between step and substep signatures, signature mismatch at the step level means that sos would have to validate substep signature again to find the mismatch substeps.

authors: BoPeng gaow

repo: vatlab/SoS


text:
Text editor cant read Georgian font

is there any way to make the Smithbox read Georgian font? it's just writing "????????" instead of "მონაცემი", I have tried to add non-English font from the setting but it did not work. all these "?" are Georgian letters, I have written them by unpacking the MenuText file in msg and writing them.

This is a limitation of ImGui I believe, adding support for more complex alphabets isn't trivial and it isn't a priority I'm afraid.

Ok, no problem thanks for your work 😉

repo: vawser/Smithbox


text:
Switch from rust-mmap to memmap-rs

Closes #6

DISCLAIMER: I don't have access to wayland, and I have not done any tests whatsover to determine if this works

Okay, looks clean. I took 2 minutes to test it, seems to work fine. Thanks !

Thanks! I know you're busy, but when you get a chance, can you publish a new version?

authors: frewsxcv vberger

repo: vberger/wayland-kbd


text:
Упрощение разработки своих парсеров и их тестов за счет быстрого создания мока ответа

Я как разработчик различных SDK хочу иметь возможность писать свои парсеры результата, например
Функция КакМнеИзвестныйФормат(Ответ) Экспорт

КонецФункции

Когда я пишу Юнит-тесты на свои парсеры я хочу иметь возможность использовать заготовленные Мок ответов.
Для того чтобы проще готовить Мок ответов я хочу чтобы была функция-конструктор структуры ПодготовленныйОтвет.
Для этого необходимо вынести из метода ОтправитьЗапрос структуру ПодготовленныйОтвет в отдельный метод, который назвать, например, НовыйПодгтовленныйОтвет.
	ПодготовленныйОтвет = Новый Структура;
	ПодготовленныйОтвет.Вставить("ВремяВыполнения", ТекущаяУниверсальнаяДатаВМиллисекундах() - Начало);
	ПодготовленныйОтвет.Вставить("Cookies", ИзвлечьCookies(Ответ.Заголовки, ПодготовленныйЗапрос.URL));
	ПодготовленныйОтвет.Вставить("Заголовки", Ответ.Заголовки);
	ПодготовленныйОтвет.Вставить("ЭтоПостоянныйРедирект", ЭтоПостоянныйРедирект(Ответ.КодСостояния, Ответ.Заголовки));
	ПодготовленныйОтвет.Вставить("ЭтоРедирект", ЭтоРедирект(Ответ.КодСостояния, Ответ.Заголовки));
	ПодготовленныйОтвет.Вставить("Кодировка", КодировкаИзЗаголовка(ЗаголовокContentType));
	ПодготовленныйОтвет.Вставить("Тело", Ответ.ПолучитьТелоКакДвоичныеДанные());
	ПодготовленныйОтвет.Вставить("КодСостояния", Ответ.КодСостояния);
	ПодготовленныйОтвет.Вставить("URL", ПодготовленныйЗапрос.URL);

@zeegin PR ждать? :)

Да, уже почти готово

Два новых поля в ответ будут добавлены:
Метод - Строка, метод запроса, например GET
Ошибки - Массив из Строка - Накопительный массив с ошибками который собирает ошибки по всем циклам запросов при периодических опросах с таймаутом. Используется в #84 для автоформирования текста подробного исключения.

authors: vbondarevsky zeegin

repo: vbondarevsky/Connector


text:
invalid frame body header

connect activemq has error.
in decode.go line 76
the peekFrameBodyType() 's payload is

iveMQ	�
MaxFrameSize�������	CacheSize
CacheEnabledSizePrefixDisabled MaxInactivityDurationInitalDelay'TcpNoDelayEnabled

verification condition failed
payload[0] is 105
not 0
i don't know how to pass verification

If you'd like assistance I'll need to know what you're trying to do, what you tried, and what happened.
I'm closing this issue as it lacks useful information.

Hi Vcabbage, I'm also facing with this problem. When I connect to an ActiveMQ server, like this snippet:
tlsConfig := &tls.Config{ 		RootCAs: caCertPool, 		Certificates:       []tls.Certificate{clientCert}, 		InsecureSkipVerify: false, 	} 	client, errMQ := amqp.Dial(url, 		amqp.ConnSASLPlain(user, password), 		amqp.ConnTLSConfig(tlsConfig), 		amqp.ConnTLS(true), 		amqp.ConnServerHostname("kservproxyae.intranet-kbank.com"), 		) 	if errMQ != nil { 		golog.Error(errMQ) 		e = &mc 		return 	}
and it throws an exception: invalid frame body header. I've taken a look in source code of this library and saw the exception from "the peekFrameBodyType()". same as DingK-R mentioned above.
please give me a suggestion.

authors: DingK-R quangtd95 vcabbage

repo: vcabbage/amqp


text:
🛑 Criptodolar & Covid API is down

In f6a56a6, Criptodolar & Covid API (https://exchange.vcoud.com/) was down:

HTTP code: 502
Response time: 46 ms

Resolved: Criptodolar & Covid API is back up in 6c76f31 after 11 minutes.

repo: vcoud/upptime


text:
Readme.md 语法错误

语法错误！

will 后面接动词原型

Fixed

authors: camscofie vczh

repo: vczh/herodb


text:
Unify the constructor

The constructor should receive only one parameter, the configuration array which should include the URL as well.

Fixed in 1.0.0


text:
Not clear the app restore keys after the cross-signing

It looks like users continue to go to settings and restore the key backup manually after logging in on a new device.
We could replace the "connect to backup" banner by a "Restoring keys..." banner.

The coming new UX with the recovery key should avoid that. Plus, we are probably going to remove the setting

repo: vector-im/riot-ios


text:
v4.2.0

Changes:

Add dynamic data loading: data url and format now accept signal values.
Add title align property. (vega/vega#1362)
Update nest and stratify transforms to handle empty data.
Update sequence transform to accept as parameter.
Update dataflow request changeset to remove existing data.
Update dataflow request to return a Promise that resolves to a status code: 0 for success, -1 for load fail, -2 for parse fail.
Fix gradient labels when two or fewer are produced. (vega/vega#1364)
Fix View autosize logic for dynamic data loading.
Fix AxisTicks to omit extra tick for empty data.
Fix unterminated rule chain with null else value. (vega/vega#1366)
Fix dataflow operator pulse assignment bug.
Fix dataflow run to return the dataflow instance.
Fix dataflow runAsync and request to handle chained load requests.

https://github.com/vega/vega-parser/blob/master/schema/data.js has not been updated yet with signal support for url and format, right?

Ugh, you're right. Thank you!

Thanks. I updated the typings in https://github.com/vega/vega-typings/commit/68717073892a982f680d389e9b966c1442542ae1.

authors: domoritz jheer

repo: vega/vega-lib


text:
Go 1.17 and windows-arm64

Closes #344.
Changes:

upgraded Go from 1.16 to 1.17,
enabled building artefact for windows-arm64 (support added in 1.17: https://golang.org/doc/go1.17#windows),
updated go.mod with go mod tidy -compat=1.17 command, change in 1.17 described here: https://golang.org/doc/go1.17#graph-pruning

Can you update the Binaries table in  the README ?

authors: ValentinTrinque fkondej

repo: vegaprotocol/vegawallet


text:
Special Char

Hi, I receive problem with alphaNumeric type. Germany chars, detect like special chars.

Can you try with alphaValidator?

It's address field, must contain characters and numbers. I will try with regular expressions, to take it possible.

Can you just give a try to alpha and see if the special char is allowed there?

repo: vekexasia/android-edittext-validator


text:
Introduce Unit tests for MKey PSA refval-id and UUID

Introduce Unit tests for MKey PSA refval-id and UUID
Currently Marshal/UnMarshal, JSON/CBOR Negative tests and also specific Positive unit tests are missing from the CoRIM Repository!
This issue tracks the lack of tests!

@yogeshbdeshpande @thomas-fossati  Hi there! I noticed that the current test file for UUID covers basic scenarios for UUID and TaggedUUID, but it could benefit from additional coverage. For example, we could add tests for invalid inputs, RFC4122 compliance checks, and round-trip serialization with both valid and invalid data. This would help ensure that the code is more robust and error-resistant. Would it be okay if I work on adding these improvements and open a pull request?

repo: veraison/corim


text:
Text-Only Button Text Not Centered Vertically

I'm curious about the 2px top-margin applied to button labels? It's causing the text to be off-center vertically...

If I remove the 2px, everything looks great...

Closing due to age (also seems no longer to be an issue)

authors: engram-design jacobgraf

repo: verbb/buttonbox


text:
Track line number additionally to file name for inclusion reason

Would it be possible for nft to track the line number that caused it to include something in the tree vs. just the file/parent? Then it would be trivial to look at the correct code to figure out what lead to an inclusion in the archive.
(Extracted from https://github.com/vercel/nft/issues/203#issuecomment-842629092)

Sounds like a nice debugging feature. Do you want to submit a PR to add it? 🙂

Right now no capacity (surprise...), but if I have a future reason to actually jump into the codebase to understand it I will certainly remember this enhancement request here and take a shot. Anyone else of course feel free to do so in the meantime.

authors: janpio styfle

repo: vercel/nft


text:
Can't use 'null' as 'url' for axios

Bug report
Description / Observed Behavior
When trying to use the doco's suggestion of passing null as the URL (https://swr.vercel.app/docs/conditional-fetching), Axios throws an exception:
stack: 'TypeError: Cannot read properties of null (reading 'indexOf')
    at buildURL (webpack-internal:///./node_modules/axios/lib/helpers/buildURL.js:61:29)
    at dispatchXhrRequest (webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:46:47)
    at new Promise (<anonymous>)
    at xhrAdapter (webpack-internal:///./node_modules/axios/lib/adapters/xhr.js:16:10)
    at dispatchRequest (webpack-internal:///./node_modules/axios/lib/core/dispatchRequest.js:58:10)
    at Axios.request (webpack-int…ebpack-internal:///./node_modules/swr/dist/index.mjs:40:53)
    at eval (webpack-internal:///./node_modules/swr/dist/index.mjs:33:71)
    at new Promise (<anonymous>)
    at __awaiter (webpack-internal:///./node_modules/swr/dist/index.mjs:29:12)
    at eval (webpack-internal:///./node_modules/swr/dist/index.mjs:709:108)
    at Array.onRevalidate (webpack-internal:///./node_modules/swr/dist/index.mjs:937:21)
    at revalidateAllKeys (webpack-internal:///./node_modules/swr/dist/index.mjs:395:33)'

If you provide the third type to useSWR to see the typings, you just get red lines because url cannot be null to axios.get:
type AxiosGet = Parameters<typeof axios.get>
const {data, error} = useSWR<any, any, AxiosGet>(
    [this.url(requestPath, params), {
        params: params,
    }],
    axios.get
)
private url = (
    requestPath: string | null | undefined = null
) => {
    if (requestPath === null) return null
}

No overload matches this call.
  Overload 1 of 8, '(key: [url: string, config?: AxiosRequestConfig<unknown> | undefined], fetcher: ((url: string, config?: AxiosRequestConfig<unknown> | undefined) => any) | null): SWRResponse<...>', gave the following error.
    Type 'string | null' is not assignable to type 'string'.
      Type 'null' is not assignable to type 'string'.
  Overload 2 of 8, '(key: [url: string, config?: AxiosRequestConfig<unknown> | undefined], config: Partial<PublicConfiguration<any, any, (url: string, config?: AxiosRequestConfig<unknown> | undefined) => any>> | undefined): SWRResponse<...>', gave the following error.
    Type 'string | null' is not assignable to type 'string'.
      Type 'null' is not assignable to type 'string'

Therefore any dynamic error handler using useEffect will throw this to the UI.
Expected Behavior
useSWR should handle undefined the same as null and not make the request, however using undefined seems to request the root URL of the site so it returns HTML data if you return an empty string instead of null
Repro Steps / Code Example
See above
Additional Context
SWR version. 1.3.0
Add any other context about the problem here.

As a workaround, I send the "" string as URL to axios anyway and allow the request to continue...
Then I just check if the path was actually "" and return null data...
    const url = this.url(requestPath, params)
    const { data, error } = useSWR<any, any, AxiosGet>(
        [url, {
            params: params,
        }],
        axios.get
    )
    // Workaround for not being able to use null url with axios and useSWR
    if (requestPath === null) return resolve({
        data: null,
        lastModified: new Date()
    })

Seems you're always passing an array key to useSWR which will get , have you tried to use requestPath ? url(...) : null as key?

I tried multiple variations based on what you said below. When using Parameters it is of type [url: string, options: {}] so the key becomes this.
Using an array is supposed to be supported: https://swr.vercel.app/docs/arguments
            const { data, error } = useSWR<any, any, AxiosGet>(
                requestPath ? [url(requestPath, params), {
                    params: params,
                }] : null,
                axios.get
            )
            const { data, error } = useSWR<any, any, AxiosGet>(
                [requestPath ? url(requestPath, params), {
                    params: params,
                } : null],
                axios.get
            )
            const { data, error } = useSWR<any, any, AxiosGet>(
                [requestPath ? url(requestPath, params) : null, {
                    params: params,
                }],
                axios.get
            )

I wonder if it would be possible to have a separate key to the url, so they key could be set null while the url remains a real url? 🤷

Ok this works... Maybe something for the doco if people want the typings to not use Parameters<typeof axios.get> and instead use Parameters<typeof axios.request> ?
type AxiosRequest = Parameters<typeof axios.request>
const url = this.url(requestPath, params)
const { data, error } = useSWR<any, any, AxiosRequest>(
    [{
        url: url ? url : undefined,
        params: params,
    }],
    axios.request
    )

This can be closed then I guess

It seems I spoke too soon, axios.request also throws an error when using undefined. It would be nice to have control over when axios is called. But this just makes its way up to my error handler:
TypeError: Cannot read properties of undefined (reading 'protocol')
    at isURLSameOrigin (isURLSameOrigin.js?8795:57:1)
    at dispatchXhrRequest (xhr.js?1a5c:147:1)
    at new Promise (<anonymous>)
    at xhrAdapter (xhr.js?1a5c:16:1)
    at dispatchRequest (dispatchRequest.js?4dc9:58:1)
    at Axios.request (Axios.js?29fb:109:1)
    at wrap (bind.js?4bea:9:1)
    at eval (index.mjs?d1eb:757:1)
    at step (index.mjs?d1eb:50:1)
    at Object.eval [as next] (index.mjs?d1eb:31:46)
    at eval (index.mjs?d1eb:24:1)
    at new Promise (<anonymous>)
    at __awaiter (index.mjs?d1eb:20:1)
    at eval (index.mjs?d1eb:700:62)
    at eval (index.mjs?d1eb:960:1)
    at commitHookEffectListMount (react-dom.development.js?ac89:23150:1)
    at commitLayoutEffectOnFiber (react-dom.development.js?ac89:23268:1)
    at commitLayoutMountEffects_complete (react-dom.development.js?ac89:24688:1)
    at commitLayoutEffects_begin (react-dom.development.js?ac89:24674:1)
    at commitLayoutEffects (react-dom.development.js?ac89:24612:1)
    at commitRootImpl (react-dom.development.js?ac89:26823:1)
    at commitRoot (react-dom.development.js?ac89:26682:1)
    at finishConcurrentRender (react-dom.development.js?ac89:25981:1)
    at performConcurrentWorkOnRoot (react-dom.development.js?ac89:25809:1)
    at workLoop (scheduler.development.js?bcd2:266:1)
    at flushWork (scheduler.development.js?bcd2:239:1)
    at MessagePort.performWorkUntilDeadline (scheduler.development.js?bcd2:533:1)

To workaround it, I check for an error returned by useSWR and if the url was undefined... if I don't, it makes its way to my error handler:
[...]
if (error) {
    if (
        url !== undefined
        && error.status
        && error.request.status !== 404
    ) return reject(error)

I would suggest you write your own fetcher, instead of directly calling axios. This way you'll intercept the call and can safely return anything you want before calling axios. Every project I worked on needed a different fecher.
Here's one of them, adapted to your use case. It accepts either null, a single URL (a string), or pair containing the URL and options for the axios request. I haven't tested it, but it should work just fine.
const fetcher = (args: null | string | [string | null, AxiosRequestConfig]) => {
  const [url, cfg] = Array.isArray(args) ? args : [args];
  if (!url) return Promise.resolve(undefined);
  return axios.request<unknown>({ ...cfg, url }).then((res) => res.data);
}

I'd also recommend you use the SWRConfig context component to share this fetcher to the entire tree, so your useSWR calls can look cleaner:
useSWR('/some/url');
useSWR(['/other/url', { params: { code } }]);

authors: NotoriousPyro fabiob huozhi

repo: vercel/swr


text:
fix: remove unnecessary async

Removed unnecessary async.

Thanks!


text:
command not found: raw error

Discussed in https://github.com/vercel/turbo/discussions/7060

Originally posted by gimdongwon January 21, 2024
I met this error. plz help me from this error
I input this command
turbo gen workspace --copy

TURBO-2130

@gimdongwon could you please run this again with verbose logging enabled?
turbo gen workspace --copy -vvv

And share the results here. Thanks!

Thx you for answer! @tknickman
I entered the command as your instructions.

Thanks! Can you try this command as well and report back if this worked?
npx @turbo/gen@latest raw workspace --json "{}"

@tknickman
oh! it's working good. But i want to copy gen workspace copy. this command help just create new packages not copy.
Why does this happen?

Hmm, this looks like an issue with the handoff from turbo to our gen package, in the meantime you can get around this by using npx @turbo/gen directly (check it out with npx @turbo/gen --help). It sounds like you want: npx @turbo/gen workspace --copy [source]

authors: anthonyshew gimdongwon tknickman

repo: vercel/turbo


text:
npx create-turbo@latest not work

What version of Turborepo are you using?
latest
What package manager are you using / does the bug impact?
Yarn v1
What operating system are you using?
Mac
Describe the Bug
npx create-turbo@latest

TURBOREPO

Welcome to Turborepo! Let's get you set up with a new codebase.

? Where would you like to create your turborepo? test
? Which package manager do you want to use? pnpm
Aborting installation.
Unexpected error. Please report it as a bug:
TypeError: import_fs.default.cpSync is not a function
at run (/Users/rocsun/.npm-cache/_npx/e8c68b66aeb1424f/node_modules/create-turbo/dist/index.js:338:21)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
Expected Behavior
ok
To Reproduce
Describe the Bug

This looks like a node version issue. Currently, create-turbo requires Node 16. We should be able to support node 14 though as well.

Use node@16. Closing for now, though we will go back and enable v14 support.

authors: gsoltis moonlitusun nathanhammond

repo: vercel/turborepo


text:
Configure Dependabot

This PR configures Dependabot to monitor dependencies across all of our own packages. It does not attempt to set up Dependabot for our examples or our create-turbo templates. (I want to address that update separately.)
Note: Dependabot does not officially support pnpm (dependabot/dependabot-core#1736) and is not workspaces-friendly (dependabot/dependabot-core#4993). All Dependabot PRs for the npm ecosystem will require checking out, regenerating the lockfile, and pushing back to the branch.
I've configured checks to be monthly which seems like a decent cadence to monitor things (and cluster everything to a few hours required to shepherd everything through).

I'm sorry if this might be bringing a new question/problem to the table. However, I would like to suggest an alternative to Dependabot for monitoring dependencies, which is Renovate. It supports pnpm, Go Modules, and also pnpm-workspace.
Hopefully, with Renovate, the process of bumping and monitoring dependencies can be performed fully by the bot.

@samnap11 Thanks for the pointer! Integrating Renovate is definitely something we could consider in the future. For now this is an intentionally targeted change which addresses our existing integration with Dependabot.

As an FYI: I had a similar experience but noticed some of the PR's were correct. The PR's that were correct didn't have the
in /<sub-dir> text.
ie:
chore(deps): bump commander from 9.2.0 to 9.3.0 in /my/sub-project

but PR's with just text like
chore(deps): bump commander from 9.2.0 to 9.3.0

updated all instances of commander in the project.json and the pacakge-lock.json at the root of the project
so maybe define the directory as / and don't define the individual subdirectories.

authors: JoA-MoS nathanhammond samnap11