Update 08-template-composition.md

I assume the intent of the first example was to show Left, Middle, Right. This small change fixes that.

Ah, thanks for that! Much appreciated. 😁
Thanks for trying out templ, and for taking the time to contribute!


fix: Remove warnings on installation

Fixes #6, #207
BREAKING CHANGE: Install eslint-config-airbnb (or eslint-config-airbnb-base) and @typescript-eslint/parser as dependencies. Follow the updated README.md file.

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


add uniqueidentifier type to makeDecl

Support uniqueidentifier type for bulk copy.
Changes have applied on my project and worked.
Please review it and consider merge it.

Thank you for you pull request.  Can you add a test for your change?

The initial change was to insert null into guid column. In order to bring the full guid support to bulkcopy I made another change in makeParam method and added a guid value to TestBulkcopy.


Off-by-one error in dates

I noticed that I wasn't getting results for a date when I should, and it seems like there is an off-by one error somewhere. I'll see if I can pinpoint further (I want this thing to work so I can find a campsite!), but reporting in case I don't get to it. If one asks for sites on a Friday, what you actually get is Saturday. If you ask for Thursday, then you get Friday. Here's an example showing results from the find-campsite, and from reservecalifornia at the same time, in which I in fact asked for a Thursday and got Friday's availability

Thanks for the issue! This should be fixed, but let me know if you see anything else. Also happy to receive any feedback any other improvements. The goal is to spend time camping, not using computers.


faiss T3 range search on SSNPP crash

@maumueller Alright, I tried the index strategy "OPQ32_128,IVF1048576_HNSW32,PQ32" on SSNPP and got the exception below.  Note that I'm now defaulting to CPU on build_index for this dataset since the quantizer class doesn't support range search.
I will next try to set quantizer_on_gpu_add=False and train_on_gpu=False for build_index().  The default was True for both.

...
Training PQ slice 30/32
Clustering 65536 points in 4D to 256 clusters, redo 1 times, 25 iterations
Preprocessing in 0.00 s
Iteration 24 (0.36 s, search 0.32 s): objective=1.11718e+07 imbalance=1.174 nsplit=0
Training PQ slice 31/32
Clustering 65536 points in 4D to 256 clusters, redo 1 times, 25 iterations
Preprocessing in 0.00 s
Iteration 24 (0.36 s, search 0.32 s): objective=1.12101e+07 imbalance=1.185 nsplit=0
doing polysemous training for PQ
IndexIVFPQ::precompute_table: not precomputing table, it would be too big:<PHONE_NUMBER>8 bytes (max<PHONE_NUMBER>)
Total train time 14384.034 s
============== SPLIT 0/1
Process Process-1:
Traceback (most recent call last):
File "/home/george/anaconda3/envs/bigann/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/home/george/anaconda3/envs/bigann/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/home/george/Projects/BigANN/harsha/big-ann-benchmarks/benchmark/main.py", line 45, in run_worker
run_no_docker(definition, args.dataset, args.count,
File "/home/george/Projects/BigANN/harsha/big-ann-benchmarks/benchmark/runner.py", line 268, in run_no_docker
run_from_cmdline(cmd)
File "/home/george/Projects/BigANN/harsha/big-ann-benchmarks/benchmark/runner.py", line 182, in run_from_cmdline
run(definition, args.dataset, args.count, args.runs, args.rebuild)
File "/home/george/Projects/BigANN/harsha/big-ann-benchmarks/benchmark/runner.py", line 76, in run
algo.fit(dataset)
File "/home/george/Projects/BigANN/harsha/big-ann-benchmarks/benchmark/algorithms/faiss_t3.py", line 274, in fit
index = build_index(buildthreads, by_residual, maxtrain,
File "/home/george/Projects/BigANN/harsha/big-ann-benchmarks/benchmark/algorithms/faiss_t3.py", line 184, in build_index
for xblock, assign in stage2:
File "/home/george/Projects/BigANN/harsha/big-ann-benchmarks/benchmark/algorithms/faiss_t3.py", line 46, in rate_limited_iter
res = res.get()
File "/home/george/anaconda3/envs/bigann/lib/python3.8/multiprocessing/pool.py", line 771, in get
raise self._value
File "/home/george/anaconda3/envs/bigann/lib/python3.8/multiprocessing/pool.py", line 125, in worker
result = (True, func(*args, **kwds))
File "/home/george/Projects/BigANN/harsha/big-ann-benchmarks/benchmark/algorithms/faiss_t3.py", line 39, in next_or_None
return next(l)
File "/home/george/Projects/BigANN/harsha/big-ann-benchmarks/benchmark/algorithms/faiss_t3.py", line 176, in produce_batches
_, assign = quantizer_gpu.search(xblock, 1)
File "/home/george/anaconda3/envs/bigann/lib/python3.8/site-packages/faiss/init.py", line 287, in replacement_search
assert d == self.d
AssertionError

range search is not supported in the T3 code yet.

ok thanks
On Thu, Jul 29, 2021 at 12:31 AM Matthijs Douze @.***>
wrote:

range search is not supported in the T3 code yet.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/harsha-simhadri/big-ann-benchmarks/issues/13#issuecomment-888872581,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADL6CKPRM2GWNUFFRU33VTT2D7URANCNFSM5BFOSP3Q
.

Ok, it is implemented now. Please use --parallel_mode 2 to run SSNPP on GPU.

The new code is integrated into benchmark/algorithms/faiss_t3.py:
https://github.com/harsha-simhadri/big-ann-benchmarks/blob/gw/T3/benchmark/algorithms/faiss_t3.py
I tested it on ssnpp-10M.  Now doing 1B.
On Fri, Jul 30, 2021 at 8:43 AM Matthijs Douze @.***>
wrote:

Ok, it is implemented now. Please use --parallel_mode 2 to run SSNPP on
GPU.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/harsha-simhadri/big-ann-benchmarks/issues/13#issuecomment-889978981,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADL6CO7EH6OKFMY6BRBRK3T2LCC5ANCNFSM5BFOSP3Q
.


Don't close prepared statements on constraint violation (Fixes #74)

Fixes issue #74 .

Merged. Thanks!

Apologies for commenting on this years-old change, but I ran into a problem upgrading from 3.23.1 to 3.31.1 and traced it here.
In my application, I am catching the SQLiteException thrown at the end of this switch statement and looking at its resultCode field, matching it against SQLiteErrorCode.SQLITE_CONSTRAINT_PRIMARYKEY to see if it represents a primary key uniqueness violation.
However, SQLiteErrorCode.SQLITE_CONSTRAINT_PRIMARYKEY is an "extended" error code, meaning when this change truncates the value to the lower byte with & 0xFF, the information in the exception is reduced to the basic error code SQLiteErrorCode.SQLITE_CONSTRAINT, breaking my error handling.
@b3nn0 / @xerial: Can either of you comment on whether this was intentional/necessary? Since SQLiteException supports extended error codes, I would imagine it's more useful to pass the non-truncated result code to it. Basically, my question is, would it be acceptable to change:
        int statusCode = step(stmt.pointer) & 0xFF;
        switch (statusCode) {

to
        int statusCode = step(stmt.pointer);
        switch (statusCode & 0xFF) {

?

From my perspective that makes sense, yes. Don't think there is a real reason to truncate the error code for the exception - only for deciding if the statement should be closed.
If you rely on the status code, I think you should just make a pull request with your recommended change.

Thanks for your input @b3nn0.


For "Already Exists" Error, Please return a 409, Conflict, instead of a 400, Bad Request

http://www.restpatterns.org/HTTP_Status_Codes/409_-_Conflict
There are now multiple places where being able to handle a conversation already exists, would be helpful and make a little more sense in the client.
For instance, if a user tries to make a new conversation with a user, when the conversation already exists, we should return 409

Actually this is required for #56

Will fix this asap.

Ayyeee :heart:


PHP Warning:  Use of undefined constant nationalities in config file

PHP Warning:  Use of undefined constant nationalities - assumed 'nationalities' (this will throw an Error in a future version of PHP) in /var/www/html/laravel/config/voyager-deployment-orchestrator.php on line 6
always showing this warning for any artisan commands.

Hi @arshohag ,
Can you please mention versions of

Hi @arshohag ,
Can you please mention versions of PHP, Laravel, and Voyager?

PHP - ^7.3
Laravel - ^6.0
Voyager - ^1.2
If I comment out the table name in configuration file then error not appearing.

@arshohag This issue is not related to this package. My guess is, you tried to update the config file with the table name but forget to wrap with an apostrophe.

update your documentation
return [
    'tables' => [
        'users'
    ],
];

it is missing there

Did you go through the documentation? It's on the Readme


datanode

I am getting this on the log under datanode. can someone help?
2023-11-15T19:16:38.201Z WARN  [OpensearchProcessImpl] WARNING: System::setSecurityManager will be removed in a future release
2023-11-15T19:16:39.376Z WARN  [OpensearchNodeHeartbeat] Opensearch REST api of process 1058 unavailable. Cause: Connection refused
2023-11-15T19:16:39.813Z WARN  [OpensearchProcessImpl] WARNING: A terminally deprecated method in java.lang.System has been called
2023-11-15T19:16:39.813Z WARN  [OpensearchProcessImpl] WARNING: System::setSecurityManager has been called by org.opensearch.bootstrap.Security (file:/usr/share/graylog-datanode/dist/opensearch-2.10.0-linux-x64/lib/opensearch-2.10.0.jar)
2023-11-15T19:16:39.814Z WARN  [OpensearchProcessImpl] WARNING: Please consider reporting this to the maintainers of org.opensearch.bootstrap.Security
2023-11-15T19:16:39.814Z WARN  [OpensearchProcessImpl] WARNING: System::setSecurityManager will be removed in a future release
2023-11-15T19:16:39.844Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:39,840][INFO ][o.o.n.Node               ] [0eace0b2164c] version[2.10.0], pid[1058], build[tar/eee49cb340edc6c4d489bcd9324dda571fc8dc03/2023-09-20T23:54:29.889267151Z], OS[Linux/6.1.8-0-lts/amd64], JVM[Eclipse Adoptium/OpenJDK 64-Bit Server VM/17.0.8/17.0.8+7]
2023-11-15T19:16:39.846Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:39,845][INFO ][o.o.n.Node               ] [0eace0b2164c] JVM home [/usr/share/graylog-datanode/dist/opensearch-2.10.0-linux-x64/jdk], using bundled JDK/JRE [true]
2023-11-15T19:16:39.847Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:39,846][INFO ][o.o.n.Node               ] [0eace0b2164c] JVM arguments [-Xshare:auto, -Dopensearch.networkaddress.cache.ttl=60, -Dopensearch.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -XX:+ShowCodeDetailsInExceptionMessages, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dio.netty.allocator.numDirectArenas=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.locale.providers=SPI,COMPAT, -Xms1g, -Xmx1g, -XX:+UseG1GC, -XX:G1ReservePercent=25, -XX:InitiatingHeapOccupancyPercent=30, -Djava.io.tmpdir=/tmp/opensearch-2544192809827378494, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=data, -XX:ErrorFile=/tmp/hs_err_pid%p.log, -Xlog:gc*,gc+age=trace,safepoint:file=/tmp/gc.log:utctime,pid,tags:filecount=32,filesize=64m, -XX:MaxDirectMemorySize=536870912, -Dopensearch.path.home=/usr/share/graylog-datanode/dist/opensearch-2.10.0-linux-x64, -Dopensearch.path.conf=/var/lib/graylog-datanode/opensearch/config/8b2841e7-04e2-4ed2-9216-ed0e4e75f44b/opensearch, -Dopensearch.distribution.type=tar, -Dopensearch.bundled_jdk=true]
2023-11-15T19:16:41.224Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,223][INFO ][o.o.s.s.t.SSLConfig      ] [0eace0b2164c] SSL dual mode is disabled
2023-11-15T19:16:41.224Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,224][INFO ][o.o.s.OpenSearchSecurityPlugin] [0eace0b2164c] OpenSearch Config path is /var/lib/graylog-datanode/opensearch/config/8b2841e7-04e2-4ed2-9216-ed0e4e75f44b/opensearch
2023-11-15T19:16:41.486Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,485][INFO ][o.o.s.s.DefaultSecurityKeyStore] [0eace0b2164c] JVM supports TLSv1.3
2023-11-15T19:16:41.488Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,488][INFO ][o.o.s.s.DefaultSecurityKeyStore] [0eace0b2164c] Config directory is /var/lib/graylog-datanode/opensearch/config/8b2841e7-04e2-4ed2-9216-ed0e4e75f44b/opensearch/, from there the key- and truststore files are resolved relatively
2023-11-15T19:16:41.491Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,491][WARN ][o.o.s.s.SecureSSLSettings] [0eace0b2164c] Setting [plugins.security.ssl.transport.keystore_password] has a secure counterpart [plugins.security.ssl.transport.keystore_password_secure] which should be used instead - allowing for legacy SSL setups
2023-11-15T19:16:41.498Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,497][WARN ][o.o.s.s.SecureSSLSettings] [0eace0b2164c] Setting [plugins.security.ssl.transport.truststore_password] has a secure counterpart [plugins.security.ssl.transport.truststore_password_secure] which should be used instead - allowing for legacy SSL setups
2023-11-15T19:16:41.651Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,650][WARN ][o.o.s.s.u.SSLCertificateHelper] [0eace0b2164c] Certificate chain for alias datanode contains a root certificate
2023-11-15T19:16:41.846Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,846][WARN ][o.o.s.s.SecureSSLSettings] [0eace0b2164c] Setting [plugins.security.ssl.http.keystore_password] has a secure counterpart [plugins.security.ssl.http.keystore_password_secure] which should be used instead - allowing for legacy SSL setups
2023-11-15T19:16:41.848Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,847][INFO ][o.o.s.s.DefaultSecurityKeyStore] [0eace0b2164c] HTTPS client auth mode OPTIONAL
2023-11-15T19:16:41.874Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,874][WARN ][o.o.s.s.u.SSLCertificateHelper] [0eace0b2164c] Certificate chain for alias datanode contains a root certificate
2023-11-15T19:16:41.895Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,894][WARN ][o.o.s.s.SecureSSLSettings] [0eace0b2164c] Setting [plugins.security.ssl.http.truststore_password] has a secure counterpart [plugins.security.ssl.http.truststore_password_secure] which should be used instead - allowing for legacy SSL setups
2023-11-15T19:16:41.960Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,960][INFO ][o.o.s.s.DefaultSecurityKeyStore] [0eace0b2164c] TLS Transport Client Provider : JDK
2023-11-15T19:16:41.961Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,960][INFO ][o.o.s.s.DefaultSecurityKeyStore] [0eace0b2164c] TLS Transport Server Provider : JDK
2023-11-15T19:16:41.961Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,960][INFO ][o.o.s.s.DefaultSecurityKeyStore] [0eace0b2164c] TLS HTTP Provider             : JDK
2023-11-15T19:16:41.961Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,961][INFO ][o.o.s.s.DefaultSecurityKeyStore] [0eace0b2164c] Enabled TLS protocols for transport layer : [TLSv1.3, TLSv1.2]
2023-11-15T19:16:41.961Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:41,961][INFO ][o.o.s.s.DefaultSecurityKeyStore] [0eace0b2164c] Enabled TLS protocols for HTTP layer      : [TLSv1.3, TLSv1.2]
2023-11-15T19:16:42.194Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,194][INFO ][o.o.s.OpenSearchSecurityPlugin] [0eace0b2164c] Clustername: datanode-cluster
2023-11-15T19:16:42.589Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,589][INFO ][o.o.i.r.ReindexPlugin    ] [0eace0b2164c] ReindexPlugin reloadSPI called
2023-11-15T19:16:42.590Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,590][INFO ][o.o.i.r.ReindexPlugin    ] [0eace0b2164c] Unable to find any implementation for RemoteReindexExtension
2023-11-15T19:16:42.603Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,603][INFO ][o.o.j.JobSchedulerPlugin ] [0eace0b2164c] Loaded scheduler extension: opendistro_anomaly_detector, index: .opendistro-anomaly-detector-jobs
2023-11-15T19:16:42.607Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,607][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [aggs-matrix-stats]
2023-11-15T19:16:42.607Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,607][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [analysis-common]
2023-11-15T19:16:42.608Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,607][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [geo]
2023-11-15T19:16:42.608Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,607][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [ingest-common]
2023-11-15T19:16:42.608Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,608][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [ingest-geoip]
2023-11-15T19:16:42.609Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,608][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [ingest-user-agent]
2023-11-15T19:16:42.609Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,608][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [lang-expression]
2023-11-15T19:16:42.609Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,608][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [lang-mustache]
2023-11-15T19:16:42.610Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,609][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [lang-painless]
2023-11-15T19:16:42.610Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,609][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [mapper-extras]
2023-11-15T19:16:42.611Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,609][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [opensearch-dashboards]
2023-11-15T19:16:42.611Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,610][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [parent-join]
2023-11-15T19:16:42.612Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,610][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [percolator]
2023-11-15T19:16:42.612Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,610][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [rank-eval]
2023-11-15T19:16:42.614Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,610][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [reindex]
2023-11-15T19:16:42.616Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,610][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [repository-url]
2023-11-15T19:16:42.616Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,611][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [search-pipeline-common]
2023-11-15T19:16:42.617Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,611][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [systemd]
2023-11-15T19:16:42.617Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,611][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded module [transport-netty4]
2023-11-15T19:16:42.618Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,612][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded plugin [opensearch-anomaly-detection]
2023-11-15T19:16:42.618Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,612][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded plugin [opensearch-asynchronous-search]
2023-11-15T19:16:42.619Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,612][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded plugin [opensearch-cross-cluster-replication]
2023-11-15T19:16:42.619Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,613][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded plugin [opensearch-job-scheduler]
2023-11-15T19:16:42.620Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,613][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded plugin [opensearch-ml]
2023-11-15T19:16:42.620Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,613][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded plugin [opensearch-observability]
2023-11-15T19:16:42.621Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,613][INFO ][o.o.p.PluginsService     ] [0eace0b2164c] loaded plugin [opensearch-security]
2023-11-15T19:16:42.633Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,633][INFO ][o.o.s.OpenSearchSecurityPlugin] [0eace0b2164c] Disabled https compression by default to mitigate BREACH attacks. You can enable it by setting 'http.compression: true' in opensearch.yml
2023-11-15T19:16:42.637Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,637][INFO ][o.o.e.ExtensionsManager  ] [0eace0b2164c] ExtensionsManager initialized
2023-11-15T19:16:42.662Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,661][INFO ][o.o.e.NodeEnvironment    ] [0eace0b2164c] using [1] data paths, mounts [[/var/lib/graylog-datanode (/dev/sda3)]], net usable_space [16.6gb], net total_space [34.8gb], types [ext4]
2023-11-15T19:16:42.662Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,662][INFO ][o.o.e.NodeEnvironment    ] [0eace0b2164c] heap size [1gb], compressed ordinary object pointers [true]
2023-11-15T19:16:42.749Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:42,749][INFO ][o.o.n.Node               ] [0eace0b2164c] node name [0eace0b2164c], node ID [SC2tH7MHTI2OruF6dRHXZg], cluster name [datanode-cluster], roles [ingest, remote_cluster_client, data, cluster_manager]
2023-11-15T19:16:45.261Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:45,260][WARN ][o.o.s.s.SecureSSLSettings] [0eace0b2164c] Setting [plugins.security.ssl.http.truststore_password] has a secure counterpart [plugins.security.ssl.http.truststore_password_secure] which should be used instead - allowing for legacy SSL setups
2023-11-15T19:16:45.262Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:45,262][WARN ][o.o.s.s.SecureSSLSettings] [0eace0b2164c] Setting [plugins.security.ssl.transport.truststore_password] has a secure counterpart [plugins.security.ssl.transport.truststore_password_secure] which should be used instead - allowing for legacy SSL setups
2023-11-15T19:16:45.266Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:45,266][WARN ][o.o.s.s.SecureSSLSettings] [0eace0b2164c] Setting [plugins.security.ssl.http.keystore_password] has a secure counterpart [plugins.security.ssl.http.keystore_password_secure] which should be used instead - allowing for legacy SSL setups
2023-11-15T19:16:45.267Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:45,266][WARN ][o.o.s.s.SecureSSLSettings] [0eace0b2164c] Setting [plugins.security.ssl.transport.keystore_password] has a secure counterpart [plugins.security.ssl.transport.keystore_password_secure] which should be used instead - allowing for legacy SSL setups
2023-11-15T19:16:46.631Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:46,630][WARN ][o.o.s.c.Salt             ] [0eace0b2164c] If you plan to use field masking pls configure compliance salt e1ukloTsQlOgPquJ to be a random string of 16 chars length identical on all nodes
2023-11-15T19:16:46.695Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:46,694][ERROR][o.o.s.a.s.SinkProvider   ] [0eace0b2164c] Default endpoint could not be created, auditlog will not work properly.
2023-11-15T19:16:46.697Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:46,697][WARN ][o.o.s.a.r.AuditMessageRouter] [0eace0b2164c] No default storage available, audit log may not work properly. Please check configuration.
2023-11-15T19:16:46.697Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:46,697][INFO ][o.o.s.a.i.AuditLogImpl   ] [0eace0b2164c] Message routing enabled: false
2023-11-15T19:16:46.762Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:46,762][INFO ][o.o.s.f.SecurityFilter   ] [0eace0b2164c]  indices are made immutable.
2023-11-15T19:16:47.058Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:47,052][INFO ][o.o.m.b.MLCircuitBreakerService] [0eace0b2164c] Registered ML memory breaker.
2023-11-15T19:16:47.059Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:47,053][INFO ][o.o.m.b.MLCircuitBreakerService] [0eace0b2164c] Registered ML disk breaker.
2023-11-15T19:16:47.059Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:47,053][INFO ][o.o.m.b.MLCircuitBreakerService] [0eace0b2164c] Registered ML native memory breaker.
2023-11-15T19:16:47.197Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:47,197][INFO ][o.r.Reflections          ] [0eace0b2164c] Reflections took 57 ms to scan 1 urls, producing 17 keys and 43 values
2023-11-15T19:16:47.578Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:47,578][INFO ][o.o.a.b.ADCircuitBreakerService] [0eace0b2164c] Registered memory breaker.
2023-11-15T19:16:48.348Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:48,348][INFO ][o.o.t.NettyAllocator     ] [0eace0b2164c] creating NettyAllocator with the following configs: [name=unpooled, suggested_max_allocation_size=256kb, factors={opensearch.unsafe.use_unpooled_allocator=null, g1gc_enabled=true, g1gc_region_size=1mb, heap_size=1gb}]
2023-11-15T19:16:48.596Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:48,595][INFO ][o.o.d.DiscoveryModule    ] [0eace0b2164c] using discovery type [zen] and seed hosts providers [settings, file]
2023-11-15T19:16:49.079Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,078][WARN ][o.o.g.DanglingIndicesState] [0eace0b2164c] gateway.auto_import_dangling_indices is disabled, dangling indices will not be automatically detected or imported and must be managed manually
2023-11-15T19:16:49.375Z WARN  [OpensearchNodeHeartbeat] Opensearch REST api of process 1058 unavailable. Cause: Connection refused
2023-11-15T19:16:49.605Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,605][INFO ][o.o.n.Node               ] [0eace0b2164c] initialized
2023-11-15T19:16:49.606Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,605][INFO ][o.o.n.Node               ] [0eace0b2164c] starting ...
2023-11-15T19:16:49.742Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,742][INFO ][o.o.t.TransportService   ] [0eace0b2164c] publish_address {<IP_ADDRESS>:9300}, bound_addresses {<IP_ADDRESS>:9300}
2023-11-15T19:16:49.745Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,744][INFO ][o.o.t.TransportService   ] [0eace0b2164c] Remote clusters initialized successfully.
2023-11-15T19:16:49.915Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,915][INFO ][o.o.b.BootstrapChecks    ] [0eace0b2164c] bound or publishing to a non-loopback address, enforcing bootstrap checks
2023-11-15T19:16:49.927Z WARN  [OpensearchProcessImpl] ERROR: [1] bootstrap checks failed
2023-11-15T19:16:49.928Z WARN  [OpensearchProcessImpl] [1]: max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
2023-11-15T19:16:49.928Z WARN  [OpensearchProcessImpl] ERROR: OpenSearch did not exit normally - check the logs at /var/lib/graylog-datanode/opensearch/logs/8b2841e7-04e2-4ed2-9216-ed0e4e75f44b/datanode-cluster.log
2023-11-15T19:16:49.933Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,931][INFO ][o.o.n.Node               ] [0eace0b2164c] stopping ...
2023-11-15T19:16:49.935Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,934][INFO ][o.o.s.a.r.AuditMessageRouter] [0eace0b2164c] Closing AuditMessageRouter
2023-11-15T19:16:49.936Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,935][INFO ][o.o.s.a.s.SinkProvider   ] [0eace0b2164c] Closing DebugSink
2023-11-15T19:16:49.947Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,947][INFO ][o.o.n.Node               ] [0eace0b2164c] stopped
2023-11-15T19:16:49.948Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,947][INFO ][o.o.n.Node               ] [0eace0b2164c] closing ...
2023-11-15T19:16:49.963Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,963][INFO ][o.o.s.a.i.AuditLogImpl   ] [0eace0b2164c] Closing AuditLogImpl
2023-11-15T19:16:49.970Z INFO  [OpensearchProcessImpl] [2023-11-15T19:16:49,969][INFO ][o.o.n.Node               ] [0eace0b2164c] closed
2023-11-15T19:16:50.160Z WARN  [OpensearchProcessImpl] Opensearch process failed
org.apache.commons.exec.ExecuteException: Process exited with an error: 78 (Exit value: 78)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404) ~[commons-exec-1.3.jar:1.3]
at org.apache.commons.exec.DefaultExecutor.access$200(DefaultExecutor.java:48) ~[commons-exec-1.3.jar:1.3]
at org.apache.commons.exec.DefaultExecutor$1.run(DefaultExecutor.java:200) [commons-exec-1.3.jar:1.3]
at java.lang.Thread.run(Unknown Source) [?:?]
2023-11-15T19:16:50.162Z WARN  [ProcessWatchdog] Process watchdog terminated after too many restart attempts

YEAH ME TO CANT START

Hi @danielescalona @zikkuratti can you both please provide a little more context? You both successfully ran the Preflight/Configuration and OpenSearch is not coming up after pressing the resume button?
Is this both on Docker under Linux? Did you set the sysctl -w vm.max_map_count=262144 setting, which is necessary for OpenSearch (maybe this should be more prominent in our docs...)?
Do you just run the defaults? In that case, the easiest way to start over is probably a docker compose down -v and start again.

I was able to get the login and create the CA. Once I hit next to create the CA, it just hangs and that is the error I get. I will run the sysctl -w vm.max_map_count=262144 and get back to you. That thing is not on the docs. All default with the exception of the password. I am using the latest docker and alpine linux

@danielescalona you're correct, it did not end up in the docs, so here is some more info. I'll make sure that it get's fixed. I hope you get it to work now. Please make sure that you make the setting permanent, see https://opensearch.org/docs/latest/install-and-configure/install-opensearch/index/

it try to connect elastic search did you just docker compose up file inside open-core?

@zikkuratti can you please give more info? it's OpenSearch in the docker-compose.yml we're talking about. I saw that you forked/edited a docker-compose.yml that references Elasticsearch. Are we talking about the problem from the top of the page or do you have a different problem? I just tested the file from the open-core subdir and it worked fine here right out of the box.

no i cant no host on this pc , no fork i just compile your default and its stuck

then please post logs

i just need info your system start out of the box like it is?

If you want my help, please answer my questions, too. As I wrote: it starts without any modification - you have to create the .env with your credentials and set the sysctl -w vm.max_map_count=262144 prior to starting on your docker host. But that's it. If it's not working for you, please post exact details of your setup and the log output. Maybe even list the exact steps what you're doing.

Hi @danielescalona @zikkuratti can you both please provide a little more context? You both successfully ran the Preflight/Configuration and OpenSearch is not coming up after pressing the resume button?
Is this both on Docker under Linux? Did you set the sysctl -w vm.max_map_count=262144 setting, which is necessary for OpenSearch (maybe this should be more prominent in our docs...)?
Do you just run the defaults? In that case, the easiest way to start over is probably a docker compose down -v and start again.

I can run it with the sysctl modification. Thanks!

@zikkuratti were you successful by now?

I'm closing this as it seems that the problems are solved

Thank you for your help!
On Tue, Nov 21, 2023 at 8:09 AM Jan Heise @.***> wrote:

Closed #41 https://github.com/Graylog2/docker-compose/issues/41 as
completed.
—
Reply to this email directly, view it on GitHub
https://github.com/Graylog2/docker-compose/issues/41#event-11024203609,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ALEXHHIATUNYNW7NTP56LR3YFSRYXAVCNFSM6AAAAAA7M7XAYGVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRGAZDIMRQGM3DAOI
.
You are receiving this because you were mentioned.Message ID:
@.***>

--
Daniel Escalona Jr.
Network Technician
Technology Department
Jackson School District


vm-repair: Add support for encrypted VMs

Current PR will enable the repair VM creation of encrypted VMs:

Linux and Windows managed disk VMs which are encrypted using the single pass method.

Main changes are to the command
az vm repair create
with the parameter --unlock-encrypted-vm added to skip the confirmation prompt when the VM is encrypted.
Credits to @dibaskar for AZ disk encryption/decryption expertise and main implementation of this PR.

If this PR is for a new extension or change to an existing extension, use the following to try out the changes in this PR:
docker run -it microsoft/azure-cli:latest
export EXT=<NAME>
pip install --upgrade --target ~/.azure/cliextensions/$EXT "git+https://github.com/swbae31/azure-cli-extensions.git@encryptedSupport#subdirectory=src/$EXT&egg=$EXT"

vm-repair


[Bug] Ionic run android Typeerror

Hi, i updated to lates ionic-cli and now when i try to build for android this happens:
Running command: /Users/aplicacionesosgroup/Documents/OSGroup/taoappionic2/hooks/after_prepare/010_add_platform_class.js /Users/aplicacionesosgroup/Documents/OSGroup/taoappionic2
add to body class: platform-android
ANDROID_HOME=/Users/aplicacionesosgroup/Library/Android/sdk
JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_73.jdk/Contents/Home
null
org.xwalk:xwalk_core_library:17+
:preBuild UP-TO-DATE
:preArmv7DebugBuild UP-TO-DATE
:checkArmv7DebugManifest
:preX86DebugBuild UP-TO-DATE
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugRenderscript
:CordovaLib:generateDebugResValues
:CordovaLib:generateDebugResources
:CordovaLib:packageDebugResources
:CordovaLib:compileDebugAidl
:CordovaLib:generateDebugBuildConfig
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets
:CordovaLib:processDebugManifest
:CordovaLib:processDebugResources
:CordovaLib:generateDebugSources
:CordovaLib:compileDebugJavaWithJavacCaught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug
:CordovaLib:mergeDebugJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug
:CordovaLib:bundleDebug
:prepareAndroidCordovaLibUnspecifiedDebugLibrary
:preArmv7ReleaseBuild UP-TO-DATE
:preX86ReleaseBuild UP-TO-DATE
:CordovaLib:preReleaseBuild UP-TO-DATE
:CordovaLib:compileReleaseNdk UP-TO-DATE
:CordovaLib:copyReleaseLint UP-TO-DATE
:CordovaLib:mergeReleaseProguardFiles
:CordovaLib:packageReleaseRenderscript UP-TO-DATE
:CordovaLib:checkReleaseManifest
:CordovaLib:prepareReleaseDependencies
:CordovaLib:compileReleaseRenderscript
:CordovaLib:generateReleaseResValues
:CordovaLib:generateReleaseResources
:CordovaLib:packageReleaseResources
:CordovaLib:compileReleaseAidl
:CordovaLib:generateReleaseBuildConfig
:CordovaLib:generateReleaseAssets UP-TO-DATE
:CordovaLib:mergeReleaseAssets
:CordovaLib:processReleaseManifest
:CordovaLib:processReleaseResources
:CordovaLib:generateReleaseSources
:CordovaLib:compileReleaseJavaWithJavacCaught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

:CordovaLib:processReleaseJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForRelease
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForRelease
:CordovaLib:mergeReleaseJniLibFolders
:CordovaLib:transformNative_libsWithMergeJniLibsForRelease
:CordovaLib:transformNative_libsWithSyncJniLibsForRelease
:CordovaLib:bundleRelease
:prepareComAndroidSupportSupportV42400Alpha2Library
:prepareOrgXwalkXwalk_core_library174644810Library
:prepareArmv7DebugDependencies
:compileArmv7DebugAidl
:compileArmv7DebugRenderscript
:generateArmv7DebugBuildConfig
:generateArmv7DebugAssets UP-TO-DATE
:mergeArmv7DebugAssets
:createXwalkCommandLineFileArmv7Debug
:generateArmv7DebugResValues
:generateArmv7DebugResources
:mergeArmv7DebugResources
:processArmv7DebugManifest
:processArmv7DebugResources
:generateArmv7DebugSources
:compileArmv7DebugJavaWithJavacCaught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

 FAILED
Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

BUILD FAILED

Total time: 34.584 secs
Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:640:11)
    at WriteStream.stream.write (/usr/local/lib/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
    at Socket.<anonymous> (/usr/local/lib/node_modules/ionic/lib/ionic/cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:535:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

It seems related to the latest plugin versions, if i remove the crosswalk plugin it still outputs some of this errors but build is successful in such case.

I removed all related to CrossWalk in the package.json, config.xml, plugins/android.json, plugins/ios.json and plugins/fetch.json, then re-added the Crosswalk plugin and now the errors were reduced to 1 and it now compiles ok, still waiting for the last error solution though.

Hey! Thanks for opening an issue with us! Would you mind posting the last error you are getting?

Exactly the same as the one repeated like 10 times in the first post.

I have the same issue.  Must one use different versions of Ionic2, or perhaps even Cordova?

Using apk: E:/MM2/platforms/android/build/outputs/apk/android-debug.apk
Caught exception:
 TypeError: Invalid data, chunk must be a string or buffer, not function
    at WriteStream.Socket.write (net.js:647:11)
    at WriteStream.stream.write (C:\Users\adils\AppData\Roaming\npm\node_modules\ionic\node_modules\ionic-app-lib\node_modules\cordova-lib\node_modules\npm\node_modules\ansi\lib\newlines.js:36:21)
    at Socket.<anonymous> (C:\Users\adils\AppData\Roaming\npm\node_modules\ionic\lib\ionic\cordova.js:284:22)
    at emitOne (events.js:101:20)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:172:18)
    at Socket.Readable.push (_stream_readable.js:130:10)
    at Pipe.onread (net.js:542:20)

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

My application runs well on Windows 7 which I have been working for since the last few months.
I have copied the application on a different machine having windows 10 as the operating system. When I run the application, I get the above error. Is there any thing I need to update in my configuration?

My project was made in alpha.42, i updated my config.xml and it still shows that error but at least now it builds ok and works fine in device, if it helps here i put the diff between the old and the fixed versions, also made an ionic state reset:
config.xml:
diff --git a/config.xml b/config.xml
index ...
--- a/config.xml
+++ b/config.xml
@@ -65,14 +65,19 @@
   <preference name="SplashScreenDelay" value="10000"/>
   <preference name="FadeSplashScreenDuration" value="500"/>
   <preference name="SplashMaintainAspectRatio" value="true"/>
-  <preference name="xwalkVersion" value="xwalk_core_library_beta:18+"/>
+  <preference name="xwalkVersion" value="18+"/>
   <preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect"/>
   <preference name="xwalkMode" value="embedded"/>
   <preference name="xwalkMultipleApk" value="true"/>
   <feature name="StatusBar">
     <param name="ios-package" onload="true" value="CDVStatusBar"/>
   </feature>
+  <plugin name="cordova-plugin-device" spec="~1.1.2"/>
+  <plugin name="cordova-plugin-console" spec="~1.0.3"/>
+  <plugin name="cordova-plugin-whitelist" spec="~1.2.2"/>
+  <plugin name="cordova-plugin-splashscreen" spec="~3.2.2"/>
+  <plugin name="cordova-plugin-statusbar" spec="~2.1.3"/>
+  <plugin name="ionic-plugin-keyboard" spec="~2.2.0"/>
+  <plugin name="cordova-plugin-x-toast" spec="~2.5.2"/>
   <icon src="resources/android/icon/drawable-xhdpi-icon.png"/>
-  <plugin name="cordova-plugin-x-toast" spec="~2.4.0"/>
-  <engine name="android" spec="~5.1.1"/>
 </widget>

package.json:
diff --git a/package.json b/package.json
index ...
--- a/package.json
+++ b/package.json
@@ -55,17 +55,29 @@
     "cordova-plugin-whitelist",
     "cordova-plugin-statusbar",
     "ionic-plugin-keyboard",
-    "cordova-plugin-x-toast",
     {
       "locator": "https://github.com/apache/cordova-plugin-splashscreen.git",
       "id": "cordova-plugin-splashscreen"
     },
     "cordova-plugin-crosswalk-webview",
-    "cordova-plugin-geolocation"
+    "cordova-plugin-geolocation",
+    "cordova-plugin-compat",
+    "cordova-plugin-x-toast",
+    "cordova-plugin-console"
   ],
   "cordovaPlatforms": [
     "android",
-    "ios"
+    "ios",
+    {
+      "platform": "android",
+      "version": "",
+      "locator": "android"
+    },
+    {
+      "platform": "ios",
+      "version": "",
+      "locator": "ios"
+    }
   ],

I have the similar problem, but I am NOT using crosswalk at all.
Here is my error:
Running command: $SOMEPATH/hooks/after_prepare/010_add_platform_class.js $SOMEPATH
add to body class: platform-android
Running command: $SOMEPATH/platforms/android/cordova/run
Caught exception:
TypeError: invalid data
at WriteStream.Socket.write (net.js:617:11)
at WriteStream.stream.write ($SOMEPATH/node_modules/ionic/node_modules/ionic-app-lib/node_modules/cordova-lib/node_modules/npm/node_modules/ansi/lib/newlines.js:36:21)
at Socket. ($SOMEPATH/node_modules/ionic/lib/ionic/cordova.js:284:22)
at emitOne (events.js:82:20)
at Socket.emit (events.js:169:7)
at readableAddChunk (_stream_readable.js:146:16)
at Socket.Readable.push (_stream_readable.js:110:10)
at Pipe.onread (net.js:523:20)
Mind letting us know? https://github.com/driftyco/ionic-cli/issues
Here is my config.xml:

TEST
Test
Test

Here is part of the package.json:
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard",
"cordova-plugin-geolocation",
"cordova.plugins.diagnostic"
],
"cordovaPlatforms": []
I cannot run anything in local. Surprisingly, my app can actually be compiled in phonegap cloud build. However, the phonegap build is MISSING gps permission and somehow ng2-translate is not loaded(everything works fine in web browser).
In ionic1, we have to add permission in config.xml, do we have to do the same thing in ionic2?
Finally, thanks for this framework, it rocks!

@grapemix could you update to node 5.x and see if you still have the same issue please? And thanks for the kind words!

After upgrading to node 5.x, the error from 'ionic run android' and 'cordova run android' are still the same.
Your system information:
Cordova CLI: 6.2.0
Gulp version:  CLI version 3.8.11
Gulp local:   Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.8-201606151824
Ionic CLI Version: 2.0.0-beta.25
Ionic App Lib Version: 2.0.0-beta.15
OS: Distributor ID:     Ubuntu Description:     Ubuntu 14.04.1 LTS
Node Version: v5.12.0

I have stumbled across this issue, as I hade the same exception when writing to the stream. It is for the other libraries, but may be it will be helpful also for you. The reason for the exception is actually in the message. You pass a function to the write method. It happens  for me as I have updated babel which includes core-js library, and it rewrites all built-in methods, particulary, for String. And we had extensions for strings prototype, which added colors for the console, one of the extensions was bold getter which transformed string into ascii bold. It looked like this: console.log("Hello".green.bold). But as core-js rewrites some built-ins, so the String.prototype.bold is then the function, not the overwritten getter. Now my process.stdout.write('OK'.green.bold); failed with this exception.
Hope it helps.

@jgw96 Actually, ionic run android was working when we upgraded to rc0 and rc1, but it is suddenly not working. We just gave up wrote our own script to build the package and install package to devices. So we are good. This problem is really low priority anyway.

I had the same problem and solved this by removing and adding the plugins folder:
sudo rm -rf /plugins

Maybe a little bit late, but, seems there are many ways this problem.
For me, this problem started when I changed the app name in config.xml, I had to remove iOS platform and add it again to make it work (even tho I was trying to build Android).
Perhaps this info can help to diagnose the problem.


Feature/check style refactor

Please answer these questions before submitting pull request

Why submit this pull request?

[x] Improve performance

Related issues
#4377

New feature or improvement

Checkstyle plugin checks test codes

Test cases are failing, please recheck.

Codecov Report

Merging #4400 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #4400   +/-   ##
=======================================
  Coverage   25.55%   25.55%
=======================================
  Files        1209     1209
  Lines       27914    27914
  Branches     3851     3851
=======================================
  Hits         7134     7134
  Misses      20129    20129
  Partials      651      651

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 0c93804...5cba9f3. Read the comment docs.

Test case code also requires check style? :confused:

also requires check style?

Yes. All codes should be consistent.

Due to no update, add new tag and remove milestone. Seems no response from the author.

there are existing checkstyle issues for e2e and plugins module, i am working on it.

Close as too many conflicts and no update, should open another PR and rebase on the master


Replace "replaceAll()" by a call to the "replace()" method.

Replace "replaceAll()" by a call to the "replace()" method.
Thanks for your contribution.
PLEASE REMOVE
To support us in providing a nice (and fast) open-source experience:

Verify that the tests are passing
Check that the code is properly formatted (using AndroidStudio's autoformatter)
Provide write access to the branch
If the PR is not ready for review, please submit it as a draft

PLEASE REMOVE
Describe the pull request
A clear and concise description of what the pull request changes/adds.
Link to the the issue
(If available): The link to the issue that this pull request solves.
License agreement
By opening this pull request, you are providing your contribution under the Apache License 2.0 (see LICENSE.md).
Note: new dependencies/libraries
Please refrain from introducing new libraries without consulting the team.

looks good to me


help: Document updated UI for subscribing/unsubscribing from streams.

Updates description of buttons for subscribing/unsubscribing to streams via Stream settings.
Fixes #27753.
Screenshots and screen captures:

https://zulip.com/help/browse-and-subscribe-to-streams

https://zulip.com/help/unsubscribe-from-a-stream

Self-review checklist

[x] Self-reviewed the changes for clarity and maintainability

Communicate decisions, questions, and potential concerns.

[x] Automated tests verify logic where appropriate.

Individual commits are ready for review (see commit discipline).

[x] Each commit is a coherent idea.
[x] Commit message(s) explain reasoning and motivation for changes.

Completed manual review and testing of the following:

[x] Visual appearance of the changes.
[x] End-to-end functionality of buttons, interactions and flows.
[x] Corner cases, error conditions, and easily imagined bugs.

@alya This PR is ready for review.
@zulipbot add "help center review"

Let's drop the color descriptions; they were only necessary because the colors were important in the UI.

Can we add the icons in as usual?

Can we add the icons in as usual?

Done! Updated PR + screenshots.

The screenshots look good to me, thanks!

Merged, thanks @drrosa!


[GHSA-6fxm-66hq-fc96] Uncontrolled Resource Consumption in Apache Commons Compress

Updates

Affected products
References

Comments
add patch commits:
https://github.com/apache/commons-compress/commit/8f702469cbf4c451b6dea349290bc4af0f6f76c7
https://github.com/apache/commons-compress/commit/0600296ab8f8a0bbdfedd483f51b38005eb8e34e
https://github.com/apache/commons-compress/commit/fdd7459bc5470e90024dbe762249166481cce769
https://github.com/apache/commons-compress/commit/6e95697e783767f3549f00d7d2e1b002eac4a3d4

@MarkLee131 https://commons.apache.org/proper/commons-compress/security.html lists ten revisions used to fix the vulnerability.  Do you if there are corresponding commits for the other revisions?

Hi, the current commits I list can map to 1340799,
1340786,
1340757,
1332552.
To search all left commits on Github may need more time, but I can try later. :)

Hi, @JonathanLEvans . All of these 12 patch commits are already here:

Commit Link on GitHub
SVN Link

https://github.com/apache/commons-compress/commit/b06f7b41c936ef1a79589d16ea5c1d8b93f71f66
https://svn.apache.org/viewvc?view=revision&revision=1332540

https://github.com/apache/commons-compress/commit/6e95697e783767f3549f00d7d2e1b002eac4a3d4
https://svn.apache.org/viewvc?view=revision&revision=1332552

https://github.com/apache/commons-compress/commit/1ce57d976c4f25fe99edcadf079840c278f3cb84
https://svn.apache.org/viewvc?view=revision&revision=1333522

https://github.com/apache/commons-compress/commit/020c03d8ef579e80511023fb46ece30e9c3dd27d
https://svn.apache.org/viewvc?view=revision&revision=1337444

https://github.com/apache/commons-compress/commit/ea31005111f0abede7e43e4ba0012e62e0808b22
https://svn.apache.org/viewvc?view=revision&revision=1340715

https://github.com/apache/commons-compress/commit/cca0e6e5341aacddefd4c4d36cef7cbdbc2a8777
https://svn.apache.org/viewvc?view=revision&revision=1340723

https://github.com/apache/commons-compress/commit/fdd7459bc5470e90024dbe762249166481cce769
https://svn.apache.org/viewvc?view=revision&revision=1340757

https://github.com/apache/commons-compress/commit/0600296ab8f8a0bbdfedd483f51b38005eb8e34e
https://svn.apache.org/viewvc?view=revision&revision=1340786

https://github.com/apache/commons-compress/commit/2ab2fcb356753927afaa731b9d2dcc47d3083408
https://svn.apache.org/viewvc?view=revision&revision=1340787

https://github.com/apache/commons-compress/commit/6ced422bf5eca3aac05396367bafb33ec21bf74e
https://svn.apache.org/viewvc?view=revision&revision=1340790

https://github.com/apache/commons-compress/commit/654222e628097763ee6ca561ae77be5c06666173
https://svn.apache.org/viewvc?view=revision&revision=1340795

https://github.com/apache/commons-compress/commit/8f702469cbf4c451b6dea349290bc4af0f6f76c7
https://svn.apache.org/viewvc?view=revision&revision=1340799

I have committed these commits again, you can see them in the commits in this pr.


Please invite me to the GitHub Community Organization

Name
Francesca Caroline Akinyi
Discord Username (if applicable)
CodingCaro
Additional Context
I haven't met Eddie physically yet. I know him from Twitter.
I like this community because of the inclusivity, support, and how accommodating it is according to the reviews from different social circles.
I want to join to be a part of a community because I am not been part of any community so far. I'd also like to collaborate. learn from the community, and help when I can. As a newbie, I know this will play a part in my growth as a developer.

Thank you for accepting me


tags

This is a really cool idea, but some link tags on the side for things like language, topics, etc would be really helpful.

That's a good idea, we started implementing it.


Fix to clickable image example.

Closes https://github.com/mne-tools/mne-python/issues/2567

Is there a way to test this feature ?

It's just a fix to plot_clickable_image so try running that.

Pep8 error
You should add flake8 plugin to your editor

It's not a PEP8 error. File downloading timed out.

oups my bad. Read too quickly.
merging by rebase + backport


Fix readme typo

I am not 100% sure about this. but I think its a wrong package name in the text.

Thanks for catching that :)


Enable ChangeLog verification using updated docWarden

Switch to the latest version of Doc-Warden
Verify changelogs (presence and content)
Verify release note entry on manually queued builds

Closing this as changelog tooling is now in azure-sdk-tools

Closing this as changelog tooling is now in azure-sdk-tools

Do we still have the issue tracking the validation of the changelogs?

Closing this as changelog tooling is now in azure-sdk-tools

Do we still have the issue tracking the validation of the changelogs?

I created one to track that https://github.com/Azure/azure-sdk-tools/issues/421


send buffer fill attack?

If client connects for a very long time and never receives, filling up the server's send buffer could fill up the server computer's memory. I don't think calling drain() helps, because re-renders are done from many places by many tasks.

The attack seems to work. I edited the fuzzer so that it never quits by itself (by never pressing down arrow or s):
@@ -3,21 +3,10 @@ import socket
 import time

 commands = [
-    b"\x08",
-    b"\x7f",
-    b"\x1b[A",
-    b"\x1b[B",
-    b"\x1b[C",
-    b"\x1b[D",
     b"\r",
-    b"\n",
     b"w",
     b"a",
-    b"s",
     b"d",
-    b"f",
-    b"x",
-    b"hello world :)",
 ]
 conn = socket.create_connection(("localhost", 12345))
 while True:

And then watched memory usage as the fuzzer plays catris (4940 is the PID of the catris):
$ watch "ps aux | grep 'VSZ\|4940'"

Memory usage slowly grows.


Validate range inputs

Applies to date filters and number ranges (eg. objects created/modified/deleted).
Continues #69.
cc: @kepta @rasagy

I'm trying to avoid using a date picker library as far as possible.
The validation isn't perfect. It works now if you stick to the native date picker UI or arrow keys for number ranges. The user can still focus on an input and type an invalid value.

Date
From: no min value, max value - current to date or today
To: min value - current from date, max value - today

Number
From: min value - 0, max value - current to value
To: min value - current from value, no max value

A bit more feedback when user types an invalid input.

looks great.
Thanks @ajithranka


version 0.3.6 has broken environment variables for serverless-offline

For some reason, the plugin is launching all the functions, and at that moment the serverless environment variables are not populated yet.
With enough sophisticated factories, you get errors on missing environment variables that the functions need to work.
This is a very critical bug!
I suppose this may be related to lines 145-154 in index.js

@gevorggalstyan
Thanks for your reports.
I'm sorry for this enbug.
I'm starting to investigate what happened.
Please use v0.3.5 until I solve this issue.

@gevorggalstyan
I'm sorry.
I couldn't figure out what you said in the previous comment correctly.
Because my English is poor.
In my recognition, I thought that you said that environment variables was missing  on running functions.
But environment variables was set correctly in my local testing.
If you don't mind, please share your code which has this issue ?

@ar90n
You got it correctly :)
Yes, the environment variables are missing. Our project is very big to demo the bug. But I will create a smaller one and will provide you with details on how to reproduce the bug shortly.
P.S. Thank you for responsiveness.

@ar90n
Please find attached the sample service I have created.
You should be able to start it with sls offline start, but first, visit handler.js file and take a look at line 3. It is simply printing out the custom environment variable (CUSTOM_VARIABLE) that I have placed there.
As soon as you run the serverless offline you will notice that it is printing undefined in your terminal. It is the console.log line from handler.js file. If you visit http://localhost:3000/ you will see that it prints THIS_IS_THE_VALUE as it already has the environment variables loaded.
If you downgrade to version 0.3.5 you will not see the undefined after the first run, as that version was working as expected and not running all the functions on launch. That has been introduced in version 0.3.6 and I am failing to see a good reason for that.
Please LMK if I can help you with more info.
my-service.zip

Hi @gevorggalstyan
Thanks for your explicit description and good example.
I think I solved this issue at v0.3.8.
Please try it !!

Indeed! You have it fixed. I really appreciate the quick turnaround.


HAI-2378 Attachments and additional info section

Description

Attachment form section
Attachment summary form section
Attachment application view section

Jira Issue: https://helsinkisolutionoffice.atlassian.net/browse/HAI-2378
Type of change

[ ] Bug fix
[x] New feature
[ ] Other

Instructions for testing
Create or open kaivuilmoitus. See that adding/removing/opening attachments works as described in Jira (description in parent issue and in Figma). Also, check the summary section of the application form and application view.
Checklist:

[x] I have written new tests (if applicable)
[x] I have ran the tests myself (if applicable)
[ ] I have made necessary changes to the documentation, link to confluence
or other location:

Other relevant info
Please describe here if there is e.g. some requirements for this change or
other info that the tester/user needs to know.

When there are no all types of attachments the summary layout breaks a bit:

When there are no all types of attachments the summary layout breaks a bit:

When there are no all types of attachments the summary layout breaks a bit:

Thank you for noticing this! I fixed this by putting <SectionItemContent> outside of the if-clause so that it will always be displayed.


New version: Mozilla.Firefox.DeveloperEdition.uz version 132.0 (132.0b4)

Created by 🥟 Dumplings.
Microsoft Reviewers: Open in CodeFlow

Verify by proxy: https://github.com/microsoft/winget-pkgs/pull/179431#issuecomment-2400690391


Add two bit strings, Bit Manipulation , Python

💥 Proposal
(The program shall return the addition of the two-bit strings )
Have you read the Contributing Guidelines on Pull Requests?
(Yes)

/assign

gssoc'21


padding on hashtag page mobile

Location
/hashtag on mobile
Expected behavior
More space between balance and hashtag title
Actual behavior

Steps to reproduce the problem
on mobile go to hashtagpage

Please clean up this issue and define which epic it belongs to or what the right label is.


feat: assignment restriction

Fixes #1892
Describe the changes you have made in this PR -

added new column feature_restrictions in assignment table of type jsonb with default {}
added restrictedFeature.js that will be used to display the checkbox in the assignment form.
added a hidden field which appends the selected elements into form submission.
added feature_restrictions in params.permit
if the project has a restriction of 'add collaborators' or 'copy/paste' the link will have display:none
if the project has a restriction of 'Verilog' or 'Combinational analysis tool' the link will have display:none in the simulator navbar.

Screenshots of the changes (If any) -
https://user-images.githubusercontent.com/76901313/148646002-6d18b9d9-96e7-407a-927a-b7c84e3e6e88.mp4
Note: Please check Allow edits from maintainers. if you would like us to assist in the PR.

@tachyons @gr455 @nitin10s @satu0king Kindly review sir.

Coverage decreased (-0.03%) to 82.194% when pulling 2422c4a82acbaee4dca4169e8966508150585746 on vedant-jain03:assignment_restriction into cb04cf372946f3232d941bb540f4e9846e2dd9f8 on CircuitVerse:master.

@tachyons Kindly review

@tachyons Sir any feedback for this PR.


Project Status

Hi, is this project still being mantained ? If so, as I will need to use it, I would like to help to make documentations and to contribute with pull requests

hey, not maintained much, no, I could add a couple of contributors but no clue if I can do that on npm as well


Enhancement: Improving the "Customize Gameplay" option

I'm sure it's already planned to improve this feature but,
the most obvious thing would be to add a button that resets the layout to default (along with pressing Esc to cancel and having Enter be confirm)
What would be really nice is a way to zoom the camera in and out, similar to how this feature would bug out and zoom the camera out by default before.
Possibly being able to resize elements such as notes along with the judgment bar? using arrow keys alongside mouse to move elements? these 2 are probably unnecessary but would be nice.

#284 also falls under this issue: make it so the health bar can be customized in this too

#581: Fix the bounds where you can click to move stuff around so that it's not possible to put something in a position where you can't get it back


Tenant Security

Improving data security data isolation strategy

Hi 👋🏼
I would be interested in improving the data isolation for tenants.


Claim in refresh token grant - JWT token drops claims on refresh grant type

The JWT token comes with user attributes within first ~10mins. But after a wait of such amount, the claims disappear from the response.

The issue is, user claims are cached against the access token in AuthorizationGrantCache. During refresh token flow, when we insert a new token, and if the token cleanup feature is enabled, then the previous access token will be moved to IDN_OAUTH2_ACCESS_TOKEN_AUDIT table from IDN_OAUTH2_ACCESS_TOKEN. After the cache time out period, we will try to get the cancheEntry from SessionStore. To get session store, we need tokenId. Since the old access token is not existing in the  IDN_OAUTH2_ACCESS_TOKEN, getTokenIdByAccessToken(..)  in AccessTokenDAOImp class method returns an empty tokenId. So the cacheEntry becomes as null.
Since the cacheEntry is null, the userattributes mapped for the old access token is not picked up and for the new access token, the user attributes are not mapped.
As a workaround, if we disable the token cleanup feature from identity.xml, we can get the user attributes in id_token even after some long time.

This issue is being closed due to extended inactivity. Please feel free to reopen it if further attention is needed. Thank you for helping us keep the issue list relevant and focused!


Cleaning resources

Adding something like destroy.sh would be cool.
kubectl delete secret openvpn-pki
kubectl delete configmap openvpn-settings openvpn-ccd openvpn-portmapping openvpn-crl
kubectl delete deployment openvpn
kubectl delete service openvpn-ingress

This will be solved by moving to helm.


Show task name from tasks.pbtxt instead of hard-coded string

Closes #302

@jwookiehong is working on a draft


workflows/tests: fix template-injection warning

Fixes https://github.com/Homebrew/homebrew-portable-ruby/security/code-scanning/1
This may not warn anymore on the latest version of zizmor, but I would
like to be able to run zizmor with --pedantic, and that will produce
a warning here.
It's simple enough to avoid, so let's just do that.

Thanks @carlocab!


Update dev to 1.4

Tested locally, works as usual.

Tried testing it, but the koillection container keeps restarting with the following error:
CRITICAL  [console] Error thrown while running command "'doctrine:migration:migrate' --no-interaction --allow-no-migration --env=prod". Message: "An exception occurred in the driver: SQLSTATE[08006] [7] could not translate host name "postgresql" to address: Temporary failure in name resolution" ["exception" => Doctrine\DBAL\Exception\ConnectionException { …},"command" => "'doctrine:migration:migrate' --no-interaction --allow-no-migration --env=prod","message" => "An exception occurred in the driver: SQLSTATE[08006] [7] could not translate host name "postgresql" to address: Temporary failure in name resolution"]
Tried fixes:

rerunning the container (docker compose down and then up again) - nothing changed
docker system prune -a --volumes and redownloading everything again - nothing changed
rebooting the computer - nothing changed
running shell in the koillection container (docker exec -it koillection /bin/bash) - automatically closed after a short while since the container keeps restarting, nothing changed

Any ideas?

Tried testing it, but the koillection container keeps restarting with the following error:
CRITICAL [console] Error thrown while running command "'doctrine:migration:migrate' --no-interaction --allow-no-migration --env=prod". Message: "An exception occurred in the driver: SQLSTATE[08006] [7] could not translate host name "postgresql" to address: Temporary failure in name resolution" ["exception" => Doctrine\DBAL\Exception\ConnectionException { …},"command" => "'doctrine:migration:migrate' --no-interaction --allow-no-migration --env=prod","message" => "An exception occurred in the driver: SQLSTATE[08006] [7] could not translate host name "postgresql" to address: Temporary failure in name resolution"]
Tried fixes:

rerunning the container (docker compose down and then up again) - nothing changed
docker system prune -a --volumes and redownloading everything again - nothing changed
rebooting the computer - nothing changed
running shell in the koillection container (docker exec -it koillection /bin/bash) - automatically closed after a short while since the container keeps restarting, nothing changed

Any ideas?

Probably something is wrong with your configuration in docker-compose file. It seems that you are using postgres instead or mysql (or maybe both of them?). Please make sure that you have docker-compose file edited correctly, especially pay attention to these options:
            - DB_DRIVER=pdo_mysql
            - DB_NAME=koillection
            - DB_HOST=mysql
            - DB_PORT=3306
            - DB_USER=root
            - DB_PASSWORD=password

As we use mysql, you can delete postgres section and also remove it from depends_on.
Let us know if this these changes resolved the issue and we can merge this PR then.


OIDC Callback handling throws error if token is too big

Describe the bug
I have two instances of DataHub, prod and staging, which are configured identically.
The OIDC callback was throwing an error only for the prod one, with
ERROR auth.sso.oidc.OidcCallbackLogic - Unable to renew the session. The session store may not support this feature

Nothing relevant in the debug logs.
The user would see an error page. However, if you manually returned to the DataHub home page, you would be signed in. So the OIDC flow was working, and it seemed this error was being thrown after-the fact.
In investigating this, it turned out that the OIDC client for the prod instance was configured to include more claims than the staging one. Once these extra claims were disabled, the errors went away. So it seems like the error occurs when the token is past a certain size.
To Reproduce
Steps to reproduce the behavior:

Create an OIDC client with some provider, configured to include only the minimal claims
Spin up a DataHub instance configured to use this OIDC client
Validate that the OIDC auth flow works.
Now return to your OIDC provider and add, say, 10 extra claims
Try logging in again
In my case, it fails here.

Expected behavior
It shouldn't fail if there are some extra claims
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):

OS: macOS Monterey v12.2.1
Browser: Chrome
Version: Version 105.0.5195.125 (Official Build) (arm64)

https://github.com/datahub-project/datahub/pull/5114

#5114

Looks like a fix went in v0.8.43, but I’m still getting this in v0.8.44

Deployed v0.8.45, this issue is still present with azure activte directory OIDC.
Workaround:

do not request the profile scope as this will increast the session cookie,
reconfigure oidc to use a claim which in openid or email scopes, in this case I used the email claim

Environment set:
AUTH_OIDC_SCOPE=openid email
AUTH_OIDC_USER_NAME_CLAIM=email

@mattbonnell can I check if you have set PAC4J_SESSIONSTORE_PROVIDER as "PlayCacheSessionStore"? Is it still not working for you?
(from not a datahub dev)

@mattbonnell can I check if you have set PAC4J_SESSIONSTORE_PROVIDER as "PlayCacheSessionStore"? Is it still not working for you?
(from not a datahub dev)

Sorry, missed this. I’ve worked around it in a similar way to @berndlunghamer

This should be addressed in this PR: https://github.com/datahub-project/datahub/pull/6260 which is released as of v0.9.1!
We have removed the profile from the session cookie so this should not happen...

Closing the ticket for now.

Moin !
I just updated from 10.2 to 12.1 and faced this issue.
@berndlunghamer 's solution was not sufficient but @mattbonnell 's woked like a charm ✅


Your a element should be a dead link with a href attribute set to #

Challenge Turn an Image into a Link has an issue.
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36.
Please describe how to reproduce this issue, and include links to screenshots if possible.
 It's href not herf. Also, you need quotes around the #.

@pepelbc
Thanks for reporting this. But your code is incorrect.
GitHub Issues are for reporting bugs on the website only.
Please use the Help chat room for getting challenge related help.
Happy Coding.


make it possible to show banner on iOS versions > 6

I want to show a different app in the banner depending on the country the user is in. Since it is not possible for me to do this in the backend I have to change the meta tags with JavaScript.
This makes it impossible to use the native iOS banner but since your component ignores newer iOS versions I get no banner at all.
It would be nice if we had an option to allow the banner on newer iOS versions for use cases like mine.

Merged your PR #12. Thanks a lot!


Fix issue with data source and report not linking

This fix allows the report to be associated with the uploaded data source when matched on the name.

Thank you for your PR! We will review your changes later today

https://github.com/tobania/VSTS.Extension.SqlReportingServices/commit/470441a3727117daeb76b6356973ecc625993a66


Got "Query is invalid. SyntaxError" when build json examples.

Describe the bug

What did you do?
Build json examples: https://github.com/quickwit-oss/tantivy/blob/main/examples/json_field.rs
What happened?
Got Error: InvalidArgument("Query is invalid. SyntaxError")
What was expected?
Parse the query correctly and get result.

Which version of tantivy are you using?
If "master",  ideally give the specific sha1 revision.
tantivy v0.17.0
To Reproduce

cargo new tantivy-examples
cd tantivy-examples
add tantivy = "0.17" to cargo.toml
replace main.rs with https://github.com/quickwit-oss/tantivy/blob/main/examples/json_field.rs
cargo run
Got Error: InvalidArgument("Query is invalid.
Some bugs are not deterministic. Can you describe with precision in which context it happened?
If this is possible, can you share your code?

Tested with master branch: Compiling tantivy v0.17.0 (https://github.com/quickwit-oss/tantivy#ae83fc82) has no issue.

Confirmed.

I hadn't seen the bug, but it should be fixed on main following https://github.com/quickwit-oss/tantivy/pull/1373

Awesome thank you @saroh

@fulmicoton This can be closed, it works on master (I can build and run that example without an assertion / error.)


Couldn't find any package by glob 'linux-headers-4.19.76-linuxkit'

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.19.76-linuxkit
Install libs failed
root@5ee403160bfa:/opt/crust/crust-node-0.7.0# apt-get install linux-headers-4.19.76-linuxkit
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-4.19.76-linuxkit
E: Couldn't find any package by glob 'linux-headers-4.19.76-linuxkit'

sudo ./install.sh --registry cn

sudo ./install.sh --registry cn

@zhangtianai This issue should already be solved right?

@zhangtianai This issue should already be solved right?

how？

how？

Follow the steps you provided ， not be able to run

Follow the steps you provided ， not be able to run

linux-headers is not a problem caused by us. It's a linux system issue. This link https://www.tecmint.com/install-kernel-headers-in-ubuntu-and-debian/ might help.

linux-headers is not a problem caused by us. It's a linux system issue. This link https://www.tecmint.com/install-kernel-headers-in-ubuntu-and-debian/ might help.


update rocMLIR SHA to pull in bug fix for invalid block size on Navi3x

I can't pull in this PR as is because rocMLIR branched. You need to grab the commit off of their rocm-rel-6.2 branch

This can go in now


Create browser plugins context

This would contain a hash of all plugins, together with boolean values for plugins specified by a user via a filter function

This borderlines on fingerprinting technology which we know is inconsistent at best and does not sit well with the current trend towards protecting a users privacy.
If a user wishes to do this, I would advise they create the loagic themselves and attach as a global context rather than the tracker having this concept built in.


Update Scylla Java driver to <IP_ADDRESS>.

Fixes: https://github.com/scylladb/scylla-tools-java/issues/393

Shall I merge it myself?

Shall I merge it myself? (Not sure if the process has changed since we separated the submodules)

I don't think the separation is complete. scylla.git still has scylla-tools-java.git as a sumbodule.


x/build/cmd/gomote: ssh to linux-ppc64 buildlets uses wrong username

Created a linux-pp64-buildlet gomote, pushed my ROOT, and tried to build. Build failed with:
go install _/tmp/workdir-host-linux-ppc64-osu/go/src/cmd/dist: open cmd/dist/dist: permission denied
Investigating, the owner of WORDIR/go was root, not debian which is who gomote ssh apparently logs you in as.

/cc @bradfitz

An easy fix is to adjust the SSHUsername field from "debian" to "root", but the bigger problem is these machines are ancient (Debian jessie) and don't use Docker to give users a fresh environment per build, so giving "root" to everybody means they can mess up machines.
I'll do the quick fix for now, but we should update these to from jessie to buster (via stretch) and use x/build/cmd/rundockerbuildlet on them.
/cc @toothrot

Deployed.

And verified it works.
I'll close this for now and open a new bug about rundockerbuildlet.

@bradfitz do I need to change the username for the POWER9 builder too?

Looks like it. The buildlet on the power9 one is running as root.

OK, I'll submit a CL.


blend=False doesn't return two clips as the documentation states

R1 and R2 don't return two clips with blend=False and the old APIv3 plugin outputs this:
setVideoInfo: Video filter TextFile has more than one output node but only the first one will be returned

Code:
clips = core.sub.TextFile(src, sub, fontdir='fonts', blend=False)

Seems like the docs are just outdated.


[bug] existingSecret keys inconsistency

Describe the bug
The README file states that the existingSecret must contain the keys described "below", which are in camel case. However, the chart extract secret values with snake case keys.
Version of Helm and Kubernetes:
Helm Version:
$ helm version
version.BuildInfo{Version:"v3.9.0", GitCommit:"7ceeda6c585217a19a1131663d8cd1f7d641b2a7", GitTreeState:"clean", GoVersion:"go1.18.2"}

Kubernetes Version:
$ kubectl version
Client Version: v1.24.0
Kustomize Version: v4.5.4
Server Version: v1.21.12-eks-a64ea69

Which version of the chart: 7.4.2
What happened: Got an error with secret value fetching, since my keys were in camel case and the chart expects snake case
What you expected to happen: I don't think the choice of case matters, as long as it is consistent. If camel case is used under the secrets property, camel case should be expected in the existingSecret as well.
How to reproduce it (as minimally and precisely as possible): Deploy the chart with a existingSecret that has the same keys under the secret property.
Anything else we need to know: Not really, thanks for the chart and making our lives easier. This is nitpicking, and from the container logs the solution was obvious!

@masgustavos hello! Thanks for reporting, could you take a look at #34 ?


Close gallery with ESC

I would add the possibility to close the gallery pressing ESC.

fixed now with v1.4.0


revendor resinit

r? @strib
This should fix https://keybase.atlassian.net/browse/CORE-5761. The CircleCI build might break because it tries to merge vendored files from client, and client is trying to land its own versions of these changes (https://github.com/keybase/client/pull/7970), but I need to confirm that.

I'm almost certain that the build failure here is spurious:
/tmp/go-android/src/github.com/keybase/vendor/github.com/keybase/go-framed-msgpack-rpc/rpc/resinit/resinit_android.go:13: resInit redeclared in this block
	previous declaration at /tmp/go-android/src/github.com/keybase/vendor/github.com/keybase/go-framed-msgpack-rpc/rpc/resinit/resinit_other.go:8

The vendored file resinit_android.go doesn't exist in my branch, and this error only happens because we're merging in the master (not yet revendored) branch from client. If I land this and https://github.com/keybase/client/pull/7970 at the same time, we should be fine.

Local build passes when I run LOCAL_KBFS=1 yarn run rn-gobuild-android.


[master] Special treatment for "C" package.

Fixes #41 (at least for me).
import "C" is not a real package. So godef cannot correctly parse any package that says import "C". This adds a special treatment for this package and circumvents this problem.

It works for me, thx

It has no effect in go1.7 linux/amd64.

@applee How does it look on your side? It's a hard-coded workaround for "C". It cannot jump to definition on "C" but at least parses for other definitions.

@hotpxl I use the package github.com/google/gopacket/pcap, and it can not jump to definition for all functions in the package, btw I'm using vscode with godef.

This fixed it for me as well. Can this be merged?

I had the same issue with github.com/aarzilli/golua. This PR fixes it. (On 1.7 as well, btw.)

At least for me, this patch doesn't work anymore with vendor directories.
 D:\go\bin\godef.exe -debug -f main.go net.LookupIP
2017/01/23 21:33:57 exprType tuple:false pkg: *ast.SelectorExpr net.LookupIP [
2017/01/23 21:33:57 exprType tuple:false pkg: *ast.Ident net [
2017/01/23 21:33:57 exprType tuple:false pkg: *ast.ImportSpec "net" [
2017/01/23 21:33:57 ] -> 0x0, Type{package "" *ast.ImportSpec "net"}
2017/01/23 21:33:57 ] -> 0xc04219ee60, Type{package "" *ast.ImportSpec "net"}
2017/01/23 21:33:57 member Type{package "" *ast.ImportSpec "net"} 'LookupIP' {
2017/01/23 21:33:57     C:\go\src\net\interface_bsd.go:12:2: cannot find identifier for package "golang_org/x/net/route": no buildable Go source files in C:\go\src\vendor\golang_org\x\net\route
2017/01/23 21:33:57 } -> <nil>
2017/01/23 21:33:57 ] -> 0x0, Type{bad "" <nil> }
parseLocalPackage error: no more package files found
2017/01/23 21:33:57 exprType tuple:false pkg: *ast.SelectorExpr net.LookupIP [
2017/01/23 21:33:57 exprType tuple:false pkg: *ast.Ident net [
2017/01/23 21:33:57 exprType tuple:false pkg: *ast.ImportSpec "net" [
2017/01/23 21:33:57 ] -> 0x0, Type{package "" *ast.ImportSpec "net"}
2017/01/23 21:33:57 ] -> 0xc04219ee60, Type{package "" *ast.ImportSpec "net"}
2017/01/23 21:33:57 member Type{package "" *ast.ImportSpec "net"} 'LookupIP' {
2017/01/23 21:33:57     C:\go\src\net\interface_bsd.go:12:2: cannot find identifier for package "golang_org/x/net/route": no buildable Go source files in C:\go\src\vendor\golang_org\x\net\route
2017/01/23 21:33:57 } -> <nil>
2017/01/23 21:33:57 ] -> 0x0, Type{bad "" <nil> }
godef: no declaration found for net.LookupIP

Since the go subtree is a copy of that part of the Go distribution, it seemed to me that overriding the pathToName function would be nicer than hacking the code to override the result, but unfortunately types.DefaultImporter has a hard-coded reference to DefaultImportPathToName, and it proved too hard to extract a copy of DefaultImporter without dragging half the rest of the library with it.

It hits another problem with me https://github.com/rogpeppe/godef/issues/51#issuecomment-288635441

I am encountering this problem, too.
My OS System is Mint Qiana, which based on Ubuntu 14.04
Distributor ID: LinuxMint
Description:    Linux Mint 17 Qiana
Release:        17
Codename:       qiana

Go version is 1.8 ( also wrong in 1.7, too).
With godef --debug -f main.go net.LookIP , the debug log shows:
2017/03/23 15:03:13 exprType tuple:false pkg: *ast.SelectorExpr net.LookIP [
2017/03/23 15:03:13 exprType tuple:false pkg: *ast.Ident net [
2017/03/23 15:03:13 exprType tuple:false pkg: *ast.ImportSpec "net" [
2017/03/23 15:03:13 ] -> 0x0, Type{package "" *ast.ImportSpec "net"}
2017/03/23 15:03:13 ] -> 0xc42013de00, Type{package "" *ast.ImportSpec "net"}
2017/03/23 15:03:13 member Type{package "" *ast.ImportSpec "net"} 'LookIP' {
2017/03/23 15:03:13     /home/shahuwang/go/src/net/cgo_openbsd.go:12:8: cannot find identifier for package "C": cannot find package "C" in any of:
        /home/shahuwang/go/src/vendor/C (vendor tree)
        /home/shahuwang/go/src/C (from $GOROOT)
        /home/shahuwang/github/src/C (from $GOPATH)
2017/03/23 15:03:13 } -> <nil>
2017/03/23 15:03:13 ] -> 0x0, Type{bad "" <nil> }
2017/03/23 15:03:13 exprType tuple:false pkg: *ast.SelectorExpr net.LookIP [
2017/03/23 15:03:13 exprType tuple:false pkg: *ast.Ident net [
2017/03/23 15:03:13 exprType tuple:false pkg: *ast.ImportSpec "net" [
2017/03/23 15:03:13 ] -> 0x0, Type{package "" *ast.ImportSpec "net"}
2017/03/23 15:03:13 ] -> 0xc42013de00, Type{package "" *ast.ImportSpec "net"}
2017/03/23 15:03:13 member Type{package "" *ast.ImportSpec "net"} 'LookIP' {
2017/03/23 15:03:13     /home/shahuwang/go/src/net/cgo_openbsd.go:12:8: cannot find identifier for package "C": cannot find package "C" in any of:
        /home/shahuwang/go/src/vendor/C (vendor tree)
        /home/shahuwang/go/src/C (from $GOROOT)
        /home/shahuwang/github/src/C (from $GOPATH)
2017/03/23 15:03:13 } -> <nil>
2017/03/23 15:03:13 ] -> 0x0, Type{bad "" <nil> }
godef: no declaration found for net.LookIP

#44 fixes the "C" import problem, but hit another problem:
2017/03/23 15:10:59 exprType tuple:false pkg: *ast.SelectorExpr net.LookIP [
2017/03/23 15:10:59 exprType tuple:false pkg: *ast.Ident net [
2017/03/23 15:10:59 exprType tuple:false pkg: *ast.ImportSpec "net" [
2017/03/23 15:10:59 ] -> 0x0, Type{package "" *ast.ImportSpec "net"}
2017/03/23 15:10:59 ] -> 0xc42012fe00, Type{package "" *ast.ImportSpec "net"}
2017/03/23 15:10:59 member Type{package "" *ast.ImportSpec "net"} 'LookIP' {
2017/03/23 15:10:59     /home/shahuwang/go/src/net/interface_bsd.go:12:2: cannot find identifier for package "golang_org/x/net/route": no buildable Go source files in /home/shahuwang/go/src/vendor/golang_org/x/net/route
2017/03/23 15:10:59 } -> <nil>
2017/03/23 15:10:59 ] -> 0x0, Type{bad "" <nil> }
2017/03/23 15:10:59 exprType tuple:false pkg: *ast.SelectorExpr net.LookIP [
2017/03/23 15:10:59 exprType tuple:false pkg: *ast.Ident net [
2017/03/23 15:10:59 exprType tuple:false pkg: *ast.ImportSpec "net" [
2017/03/23 15:10:59 ] -> 0x0, Type{package "" *ast.ImportSpec "net"}
2017/03/23 15:10:59 ] -> 0xc42012fe00, Type{package "" *ast.ImportSpec "net"}
2017/03/23 15:10:59 member Type{package "" *ast.ImportSpec "net"} 'LookIP' {
2017/03/23 15:10:59     /home/shahuwang/go/src/net/interface_bsd.go:12:2: cannot find identifier for package "golang_org/x/net/route": no buildable Go source files in /home/shahuwang/go/src/vendor/golang_org/x/net/route
2017/03/23 15:10:59 } -> <nil>
2017/03/23 15:10:59 ] -> 0x0, Type{bad "" <nil> }
godef: no declaration found for net.LookIP

@jwendel @shahuwang you might like to try #61 as an alternative solution

Now I believe this is obsoleted by #62


Converting '*' to splat results in: Error: undefined macro method 'MacroId#map'

Bug Report
Hello! This code results in expected behavior, but now a warning is issued due to the splat:
macro test(*fields)
  puts {{
    *fields.map do |field|
      "#{field}".id
    end
    }}
  {% debug %}
end

hello = "world"
test(hello)

Attempting to fix it via:
macro test(*fields)
  puts {{
    fields.splat.map do |field|
      "#{field}".id
    end
    }}
  {% debug %}
end

hello = "world"
test(hello)

results in the error Error: undefined macro method 'MacroId#map' .
Any suggestions on how to remove the warning but maintain the same behavior? Going directly to fields.map causes the results to turn into a tuple wrapped in {...} :/
> crystal --version
Crystal 1.11.2 [fda656c71] (2024-01-18)

LLVM: 15.0.7
Default target: x86_64-unknown-linux-gnu

Thank you for any guidance you can provide!

Yea, you can literally just do puts {{ fields.splat }} and call it a day :P

or join if you still need a custom transformation

Thank you kindly everyone! In my real code, I have something non-trivial inside the map method itself, so it can't be reduced. Good to know the splat method goes at the end of the method call instead, the precedence order was what confused me :)
Thanks!


[Feature] Allow running the node storage validator ad-hoc

While the primary goal of the storage validator is detecting storage-related bugs, users might want to use it in order to possibly avoid having to sync all their blocks again or to perform detailed analysis (e.g. related to transactions).
We can introduce a new command line argument that allows the users to run the storage validator themselves.

Done in https://github.com/AleoHQ/snarkOS/pull/888.


.select() conflicts with copying data to clipboard

I want to copy the content of an input field (with: data-role="input") to the clipboard. Simply using something like this:
$(this).focus();
$(this).select();
document.execCommand('copy');

However, the .select() command generates a empty dropdown selectbox.
I assume this is because the select function overrides the original function.
But maybe I'm just doing something wrong...
Metro 4 - v4.4.3. Built at: 27/12/2020 15:34:21
m4q - v1.0.10. Built at 08/12/2020 00:01:48

The original function for selecting text in input is
HTMLElement.select()

You are use $(element).select()

Thanks!


GetObject with range cause SignatureDoesNotMatch

With the following code, getObjectOutcome reports SignatureDoesNotMatch.  If the WithRange is comment out, everything is fine.
        Aws::StringStream range;
        range << "bytes=" << off << "-" << off + len - 1;
        GetObjectRequest getObjectRequest;
        getObjectRequest
                .WithRange(range.str())    // range is "0-5242879". Good if comment out this line.
                .WithBucket(bucketName)
                .WithKey(oid);             // the size of the object is 12M
        GetObjectOutcome getObjectOutcome = client->GetObject(getObjectRequest);

The corresponding logs are attached.
aws_sdk_2016-12-06-15-without-range.log.txt
aws_sdk_2016-12-06-15-with-range.log.txt

The problem is due to setting Schem as HTTP by mistake.  The interesting point is it worked well without "range:bytes=....".

Does anyone know why this can't with HTTP and how to work around it? I'm trying to do a threaded multi-part download through an HTTP proxy using GetObjectRequest::SetRange() but I can't download the first ~36 megabytes from the S3 key because of the signature error.

As I tried, you can only use HTTPS.

I've confirmed that HTTPS does make the error go away, but the odd thing with that is that I don't see the failed signature check with HTTP if I'm in a setup where I don't need my proxy. I have yet to test this with the latest build so I don't know if how the new proxyScheme field will affect this, but this still seems like a bug so I'm tempted to open up a fresh issue for it.


style(allways black/gray font color on native select option): on nati…

…ve select option elements, the
affects: @fremtind/jkl-datepicker-react, @fremtind/jkl-select
ISSUES CLOSED: #1752
📥 Proposed changes
Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
☑ Submission checklist

[ ] I have read the CONTRIBUTING doc
[ ] yarn build works locally with my changes
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] I have added necessary documentation (if appropriate)

💬 Further comments
If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did, what alternatives you considered, etc...

@all-contributors please add @larsare for code

@all-contributors please add @larsare for code


add skeleton loading to Selected validators  page

like what I have done for loading pending rewards, but in two rows for each validator possibly