about docker-compose Error volta only support x86_64 OS

Dear great author, I encountered some issues while using docker-compose to build eclipsejdtls.
I am using a Mac M2 chip, but volta only supports the x86_64 architecture.
I replaced the volta install node20 script with:
**RUN apt install -y curl \
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - &&
apt-get install -y nodejs **
I successfully built and started the container, but npm i  seems did not run successfully in the container. I can provide specific error information, and I would be very grateful if you have time to help me identify the problem

I will push an update

I will push an update

extremely grateful for your  replay.  i had tried install the eclipse language server in my pc; but there is anthor error confused me:
//here is the error detail.
`
{"jsonrpc":"2.0","id":0,"method":"initialize","params":{"processId":null,"clientInfo":{"name":"Code - OSS","version":"1.91.1"},"locale":"en","rootPath":"/Users/baoyuelong1/Downloads/byl/jdt-language-server-1.38.0-202408011337/workspace","rootUri":"file:///Users/baoyuelong1/Downloads/byl/jdt-language-server-1.38.0-202408011337/workspace","capabilities":{"workspace":{"applyEdit":true,"workspaceEdit":{"documentChanges":true,"resourceOperations":["create","rename","delete"],"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"changeAnnotationSupport":{"groupsOnLabel":true}},"configuration":true,"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":true},"symbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]},"resolveSupport":{"properties":["location.range"]}},"codeLens":{"refreshSupport":true},"executeCommand":{"dynamicRegistration":true},"didChangeConfiguration":{"dynamicRegistration":true},"foldingRange":{"refreshSupport":true},"semanticTokens":{"refreshSupport":true},"fileOperations":{"dynamicRegistration":true,"didCreate":true,"didRename":true,"didDelete":true,"willCreate":true,"willRename":true,"willDelete":true},"inlineValue":{"refreshSupport":true},"inlayHint":{"refreshSupport":true},"diagnostics":{"refreshSupport":true}},"textDocument":{"publishDiagnostics":{"relatedInformation":true,"versionSupport":false,"tagSupport":{"valueSet":[1,2]},"codeDescriptionSupport":true,"dataSupport":true},"synchronization":{"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true,"didSave":true},"completion":{"dynamicRegistration":true,"contextSupport":true,"completionItem":{"snippetSupport":true,"commitCharactersSupport":true,"documentationFormat":["markdown","plaintext"],"deprecatedSupport":true,"preselectSupport":true,"tagSupport":{"valueSet":[1]},"insertReplaceSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"insertTextModeSupport":{"valueSet":[1,2]},"labelDetailsSupport":true},"insertTextMode":2,"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"completionList":{"itemDefaults":["commitCharacters","editRange","insertTextFormat","insertTextMode","data"]}},"hover":{"dynamicRegistration":true,"contentFormat":["markdown","plaintext"]},"signatureHelp":{"dynamicRegistration":true,"signatureInformation":{"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true},"activeParameterSupport":true},"contextSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"references":{"dynamicRegistration":true},"documentHighlight":{"dynamicRegistration":true},"documentSymbol":{"dynamicRegistration":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"hierarchicalDocumentSymbolSupport":true,"tagSupport":{"valueSet":[1]},"labelSupport":true},"codeAction":{"dynamicRegistration":true,"isPreferredSupport":true,"disabledSupport":true,"dataSupport":true,"resolveSupport":{"properties":["edit"]},"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"honorsChangeAnnotations":true},"codeLens":{"dynamicRegistration":true},"formatting":{"dynamicRegistration":true},"rangeFormatting":{"dynamicRegistration":true,"rangesSupport":true},"onTypeFormatting":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"prepareSupport":true,"prepareSupportDefaultBehavior":1,"honorsChangeAnnotations":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"colorProvider":{"dynamicRegistration":true},"foldingRange":{"dynamicRegistration":true,"rangeLimit":5000,"lineFoldingOnly":true,"foldingRangeKind":{"valueSet":["comment","imports","region"]},"foldingRange":{"collapsedText":false}},"declaration":{"dynamicRegistration":true,"linkSupport":true},"selectionRange":{"dynamicRegistration":true},"callHierarchy":{"dynamicRegistration":true},"semanticTokens":{"dynamicRegistration":true,"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"],"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"formats":["relative"],"requests":{"range":true,"full":{"delta":true}},"multilineTokenSupport":false,"overlappingTokenSupport":false,"serverCancelSupport":true,"augmentsSyntaxTokens":true},"linkedEditingRange":{"dynamicRegistration":true},"typeHierarchy":{"dynamicRegistration":true},"inlineValue":{"dynamicRegistration":true},"inlayHint":{"dynamicRegistration":true,"resolveSupport":{"properties":["tooltip","textEdits","label.tooltip","label.location","label.command"]}},"diagnostic":{"dynamicRegistration":true,"relatedDocumentSupport":false}},"window":{"showMessage":{"messageActionItem":{"additionalPropertiesSupport":true}},"showDocument":{"support":true},"workDoneProgress":true},"general":{"staleRequestSupport":{"cancel":true,"retryOnContentModified":["textDocument/semanticTokens/full","textDocument/semanticTokens/range","textDocument/semanticTokens/full/delta"]},"regularExpressions":{"engine":"ECMAScript","version":"ES2020"},"markdown":{"parser":"marked","version":"1.1.0"},"positionEncodings":["utf-16"]},"notebookDocument":{"synchronization":{"dynamicRegistration":true,"executionSummarySupport":true}}},"trace":"off","workspaceFolders":[{"uri":"file:///Users/baoyuelong1/Downloads/byl/jdt-language-server-1.38.0-202408011337/workspace","name":"workspace"}]}}
Eclipse JDT LS Server received:
{
jsonrpc: '2.0',
id: 0,
method: 'initialize',
params: {
processId: null,
clientInfo: { name: 'Code - OSS', version: '1.91.1' },
locale: 'en',
rootPath: '/Users/baoyuelong1/Downloads/byl/jdt-language-server-1.38.0-202408011337/workspace',
rootUri: 'file:///Users/baoyuelong1/Downloads/byl/jdt-language-server-1.38.0-202408011337/workspace',
capabilities: {
workspace: [Object],
textDocument: [Object],
window: [Object],
general: [Object],
notebookDocument: [Object]
},
trace: 'off',
workspaceFolders: [ [Object] ]
}
}
Eclipse JDT LS Server: WARNING: Using incubator modules: jdk.incubator.vector, jdk.incubator.foreign
Eclipse JDT LS Server: 8月 09, 2024 5:05:13 下午 org.apache.aries.spifly.BaseActivator log
信息: Registered provider ch.qos.logback.classic.servlet.LogbackServletContainerInitializer of service jakarta.servlet.ServletContainerInitializer in bundle ch.qos.logback.clasc
Eclipse JDT LS Server: 8月 09, 2024 5:05:13 下午 org.apache.aries.spifly.BaseActivator log
信息: Registered provider ch.qos.logback.classic.spi.LogbackServiceProvider of service org.slf4j.spi.SLF4JServiceProvider in bundle ch.qos.logback.classic
Eclipse JDT LS Server: 8月 09, 2024 5:05:14 下午 org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer fireError
严重: Missing header Content-Length in input "HTTP/1.1 400 Bad Request
Connection: close
"
java.lang.IllegalStateException: Missing header Content-Length in input "HTTP/1.1 400 Bad Request
Connection: close
"
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:91)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Eclipse JDT LS Server: 8月 09, 2024 5:05:14 下午 org.eclipse.lsp4j.jsonrpc.RemoteEndpoint notify
警告: Failed to send notification message.
org.eclipse.lsp4j.jsonrpc.JsonRpcException: java.net.SocketException: Broken pipe
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:72)
at org.eclipse.jdt.ls.core.internal.ParentProcessWatcher.lambda$1(ParentProcessWatcher.java:144)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.notify(RemoteEndpoint.java:135)
at org.eclipse.lsp4j.jsonrpc.services.EndpointProxy.invoke(EndpointProxy.java:88)
at jdk.proxy3/jdk.proxy3.$Proxy10.logMessage(Unknown Source)
at org.eclipse.jdt.ls.core.internal.JavaClientConnection.logMessage(JavaClientConnection.java:104)
at org.eclipse.jdt.ls.core.internal.handlers.LogHandler.processLogMessage(LogHandler.java:168)
at org.eclipse.jdt.ls.core.internal.handlers.LogHandler$1.logging(LogHandler.java:93)
at org.eclipse.core.internal.runtime.RuntimeLog.logToListeners(RuntimeLog.java:163)
at org.eclipse.core.internal.runtime.PlatformLogWriter.logged(PlatformLogWriter.java:109)
at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.safeLogged(ExtendedLogReaderServiceFactory.java:108)
at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.logPrivileged(ExtendedLogReaderServiceFactory.java:259)
at org.eclipse.osgi.internal.log.ExtendedLogReaderServiceFactory.log(ExtendedLogReaderServiceFactory.java:229)
at org.eclipse.osgi.internal.log.ExtendedLogServiceFactory.log(ExtendedLogServiceFactory.java:106)
at org.eclipse.osgi.internal.log.LoggerImpl.log(LoggerImpl.java:91)
at org.eclipse.osgi.internal.log.LoggerImpl.log(LoggerImpl.java:82)
at org.eclipse.osgi.internal.log.LoggerImpl.log(LoggerImpl.java:77)
at org.eclipse.core.internal.runtime.Log.log(Log.java:82)
at org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin.log(JavaLanguageServerPlugin.java:393)
at org.eclipse.jdt.ls.core.internal.JavaLanguageServerPlugin.logInfo(JavaLanguageServerPlugin.java:409)
at org.eclipse.jdt.ls.core.internal.LanguageServerApplication.start(LanguageServerApplication.java:62)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:208)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:143)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:109)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:439)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:271)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:668)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:605)
at org.eclipse.equinox.launcher.Main.run(Main.java:1481)
at org.eclipse.equinox.launcher.Main.main(Main.java:1454)
Caused by: java.net.SocketException: Broken pipe
at java.base/sun.nio.ch.NioSocketImpl.implWrite(NioSocketImpl.java:425)
at java.base/sun.nio.ch.NioSocketImpl.write(NioSocketImpl.java:445)
at java.base/sun.nio.ch.NioSocketImpl$2.write(NioSocketImpl.java:831)
at java.base/java.net.Socket$SocketOutputStream.write(Socket.java:1035)
at java.base/java.io.OutputStream.write(OutputStream.java:127)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageConsumer.consume(StreamMessageConsumer.java:67)
... 33 more
Eclipse JDT LS Server: 8月 09, 2024 5:05:14 下午 org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer fireStreamClosed
信息: Connection reset
java.net.SocketException: Connection reset
at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:328)
at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:355)
at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:808)
at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966)
at java.base/java.net.Socket$SocketInputStream.read(Socket.java:961)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:79)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
`

⬆ that's why we use the container. Local installation usually make problems. Please use the container. Does the new setting solve your issue?

⬆ that's why we use the container. Local installation usually make problems. Please use the container. Does the new setting solve your issue?

Thank u @kaisalmen ,i totally agree.  When i use platform: linux/amd64 setting, the base-image (eclipse-temurin:17-jdk) cannot be pulled.  I m trying to fix the problem.  Really appreciate your help

the base-image (eclipse-temurin:17-jdk) cannot be pulled

I have an idea... it is likely required that the architecture needs to be specified there as well

Just pushed another update that should fix amd64 usage for now (arm64 is prepared, but commented).
Hint: You need to use containerd in Docker Desktop for multi-platform builds.

@claybyl volta V2 was released in the meantime. Can you try if it works when you un-comment this line

I will integrate an arm based build with GitHub Actions to see if the problem can be resolved.


Support for pnpm v9

Is there an existing issue for this?

[X] I have searched the existing issues

Describe the bug
When upgrading our service to use pnpm v9, nixpacks is still using pnpm v8
package.json
  "engines": {
    "node": "18.x"
  },
  "packageManager"<EMAIL_ADDRESS>
build logs
11:12:24 AM ╔══════════════════════════════ Nixpacks v1.21.3 ══════════════════════════════╗
11:12:24 AM ║ setup      │ nodejs_18, pnpm-8_x, openssl                                    ║
11:12:24 AM ║──────────────────────────────────────────────────────────────────────────────║
11:12:24 AM ║ install    │ pnpm dlx turbo prune --scope=tono-marketing && cd /app/out &&   ║
11:12:24 AM ║            │ pnpm install                                                    ║
11:12:24 AM ║──────────────────────────────────────────────────────────────────────────────║
11:12:24 AM ║ build      │ cd /app/out && pnpm dlx turbo run build                         ║
11:12:24 AM ║──────────────────────────────────────────────────────────────────────────────║
11:12:24 AM ║ start      │ cd /app/out && pnpm dlx turbo run start                         ║
11:12:24 AM ╚══════════════════════════════════════════════════════════════════════════════╝
11:12:24 AM

To reproduce
No response
Expected behavior
Nixpacks (corepack by proxy) respects the packageManager field
Environment
nixpacks version 1.21.3
aws codebuild

Hmm Nixpacks should definitely be using corepack to install pnpm 9. Looks like we are not for pnpm for some reason.

I believe I have the same issue, downgrading to pnpm v8.x solved it for me :(

Have the same issue here on pnpm 9. Our service is in a monorepo, and the rest of the app depends on v9, so unfortunately can't downgrade to v8. Using a nixpacks.toml file installing v9 works:
providers = ["node"]

[phases.install]
cmds = ["npm install -g corepack", "corepack enable", "corepack prepare<EMAIL_ADDRESS>--activate", "pnpm install"]

However, would appreciate support for v9 out of the box.

Thanks for the tips, it did work for me !

Apart from change in this repo it seems that https://github.com/railwayapp/nix-npm-overlay/pull/6 must be merged as well

@coffee-cup can we get some love on the above mentioned PR for nix-npm-overlay?  😄

Good stuff @coffee-cup 🚀


one question about the canonicalize_products.py

@chaoyan1037   If I understand correctly, the SMILES in train.csv before processed by the canonicalize_product.py is canonicalized by RDKit through smiles=Chem.MolToSmiles(mol, canonical=True). So, what is the purpose to permute the atommapnumber in this canonicalize_product.py and is there any reference work?

@teslacool It is a good catch. We found there was an information leak within the USPTO dataset itself. The order of the atoms within the product SMILES may indicate the reaction atoms. To be more specific, we found that for most USPTO products, the first atoms of the product SMILES are usually reaction atoms. You may look into the reaction atoms yourself.
So we use  canonicalize_products.py to rearrange the atom order to be the same as the canonical atom order, hoping to remove the potential information leak.

Ok. thanks for your answer.

We have an important update of our method. Please refer to the readme for more details.

For this leakage, does it only appear in your developed model, or it's actually a general problem for all the models using this dataset?

@YanjingLiLi I believe it's a general problem, it was mentioned by other methods later as well: https://openreview.net/pdf?id=SnONpXZ_uQ_
Methods using atom-mapping information shld be particularly careful with this.


Error occurs when only using partition columns in query

Describe the bug
When using a partitioned datasource selecting only the partitioned columns causes errors.
To Reproduce
Steps to reproduce the behavior:
Create sample parquet/csv file content doesn't matter. Copy file to two separate paths using path partitioning scheme. E.g.
"year=2021/month=09/day=09/file.parquet",
"year=2021/month=10/day=09/file.parquet",
Register listing table and execute query
select distinct year,month, day from t
Expected behavior
Should return record batch with:
+------+-------+-----+
| year | month | day||
+------+-------+-----+
| 2021 | 09    | 09  |
| 2021 | 10    | 09  |
| 2021 | 10    | 28  |
+------+-------+-----+

Additional context
This was verified to be a problem with parquet and csv formats. Unsure about avro or json.

Issue seems resolves as of 96512ac05df40deb42632992cece656842d6debb as unable to reproduce:
Created file structure as shown:
jeffrey:~/tmpdata$ pwd
/home/jeffrey/tmpdata
jeffrey:~/tmpdata$ tree *test
csvtest
└── year=2021
    ├── month=09
    │   └── day=09
    │       └── time.csv
    └── month=10
        └── day=09
            └── time.csv
parttest
└── year=2021
    ├── month=09
    │   └── day=09
    │       └── part-0.parquet
    └── month=10
        └── day=09
            └── part-0.parquet

Then selecting their partitioned columns:
DataFusion CLI v14.0.0
❯ create external table parttest stored as parquet partitioned by (year, month, day) location '/home/jeffrey/tmpdata/parttest';
0 rows in set. Query took 0.003 seconds.
❯ select distinct year, month, day from parttest;
+------+-------+-----+
| year | month | day |
+------+-------+-----+
| 2021 | 10    | 09  |
| 2021 | 09    | 09  |
+------+-------+-----+
2 rows in set. Query took 0.105 seconds.
❯ create external table csvtest stored as csv partitioned by (year, month, day) location '/home/jeffrey/tmpdata/csvtest';
0 rows in set. Query took 0.018 seconds.
❯ select distinct year, month, day from csvtest;
+------+-------+-----+
| year | month | day |
+------+-------+-----+
| 2021 | 09    | 09  |
| 2021 | 10    | 09  |
+------+-------+-----+
2 rows in set. Query took 0.008 seconds.

Can see selects fine with no errors.

@Jefffrey Yeah you're right this was fixed by #2000 and I should've closed it then. Thanks for the heads up on this one.


tensorflow: No module named '_pywrap_tensorflow_internal'

platform:Ubuntu 16.04
python:3.5.2
nuitka:<IP_ADDRESS>
I have a file te.py:
import tensorflow as tf
with tf.Session() as sess:
    print(sess.run(tf.constant('hello tensorflow')))

I run the script:
python -m nuitka --follow-imports --standalone --plugin-enable=numpy --plugin-enable=pylint-warnings  te.py

I run the file te in folder te.dist, and I get these error:
  File "/home/showtsai/te.dist/imp.py", line 296, in find_module
ImportError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/showtsai/te.dist/tensorflow/python/pywrap_tensorflow.py", line 58, in <module tensorflow.python.pywrap_tensorflow>
  File "/home/showtsai/te.dist/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module tensorflow.python.pywrap_tensorflow_internal>
  File "/home/showtsai/te.dist/tensorflow/python/pywrap_tensorflow_internal.py", line 20, in swig_import_helper
ImportError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/showtsai/te.dist/te.py", line 1, in <module>
  File "/home/showtsai/te.dist/tensorflow/__init__.py", line 22, in <module tensorflow>
  File "/home/showtsai/te.dist/tensorflow/python/__init__.py", line 49, in <module tensorflow.python>
  File "/home/showtsai/te.dist/tensorflow/python/pywrap_tensorflow.py", line 74, in <module tensorflow.python.pywrap_tensorflow>
ImportError: Traceback (most recent call last):
  File "/home/showtsai/te.dist/tensorflow/python/pywrap_tensorflow_internal.py", line 18, in swig_import_helper
  File "/home/showtsai/te.dist/imp.py", line 296, in find_module
ImportError: No module named '_pywrap_tensorflow_internal'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/showtsai/te.dist/tensorflow/python/pywrap_tensorflow.py", line 58, in <module tensorflow.python.pywrap_tensorflow>
  File "/home/showtsai/te.dist/tensorflow/python/pywrap_tensorflow_internal.py", line 28, in <module tensorflow.python.pywrap_tensorflow_internal>
  File "/home/showtsai/te.dist/tensorflow/python/pywrap_tensorflow_internal.py", line 20, in swig_import_helper
ImportError: No module named '_pywrap_tensorflow_internal'

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/install_sources#common_installation_problems

for some common reasons and solutions.  Include the entire stack trace
above this error message when asking for help.

Please refer to #364.
A solution has been developed and is waiting for confirmation on Linux platforms.

Thank you for answering.
I added TensorflowPlugin.py to plugins/standard in nuitka.
I ran the compilation with arg --plugin-enable=tensorflow and I got an error:
Nuitka:INFO:Interrupted while working on '<Node 'PYTHON_MAIN_MODULE' with {'main_added': False, 'mode': 'compiled', 'filename': 'te.py'}>'.
'tensorflow' plugin did not find path magic.

Which source code in tensorflow does function onModuleSourceCode in TensorflowPlugin.py check?
Do I need to do something with tensorflow source code?
Thanks.

Well, I have to download that package in one of my Linux installations, obviously ... (sigh).
As a background:
(At least) on Windows, that package requires the site.py module and does several patching to the path environment on start. Among other things, tensorflows tries to determine, whether it is used as a PIP-installed package (don't know why this is significant).
And because the path configuration is very different in a Nuitka dist folder, some adjustments must be made to prevent tensorflow from doing certain things.
Fat chance that this is different on non-Windows platforms ...
Btw. please try to use my little tools (nuitka-hints.py, get-hints.py, hinted-mods.py), because that will put us in the same starting position.
These tools are able to detect, which imports your script is actually executing and will dynamically generate --enable-plugin and --recurse-to parameters based on this analysis.
Eg. I noticed your command line is missing the scipy option in the numpy-plugin invocation. Those tools would be aware of any package that requires any of the standard plugins.

Just installed tf_nightly-1.14.1.dev20190517-cp36-cp36m-manylinux1_x86_64.whl on my Linux (running in a WSL on Windows), and compiled more or less the same script as you mentioned above.
The is the compile log, created with my mentioned tools:
tflow-compile-linux.txt
The created program worked write out of the box ...
In order to try this out "inofficially", you want to pick stuff from this ZIP. It contains all the tooling and the Nuitka plugin folder used.
hinting.zip

Thank you for answering!
I succeed in packing tensorflow by runnung these scripts.
python3 get-hints.py te.py
python3 nuitka-hints.py te.py

BTW, does it support gpu version of tensorflow?
Does it support other packages like matplotlib and cv2?

Glad to hear this!
In general, this type of approach is aimed to work for every package. This is (and maybe will ever be?) work in progress, because many of those monsters have specialties like hidden imports and some own data files, see below. This will regularly require changes to one or more plugins, or even creating a new one.
To see what already has been addressed, look here.
Matplotlib:
See #393. Just confirmed there is an issue with missing matplotlib data files. Will need to modify the numpy plugin for this. No big deal.
tf-gpu, cv2
Just give it a try and report any issue. With some luck, tf-gpu runs with the current tensorflow plugin.

I got errors when trying another example main2.py:
import tensorflow.contrib.slim as slim
@slim.add_arg_scope
def fun1(a=0, b=0):
    return (a+b)

with slim.arg_scope([fun1], a=10):
    x = fun1(b=30)
    print(x)

here is the log:
Traceback (most recent call last):
  File "/home/showtsai/test_tf/main2.dist/main2.py", line 1, in <module>
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/home/showtsai/test_tf/main2.dist/tensorflow/contrib/__init__.py", line 31, in <module>
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/home/showtsai/test_tf/main2.dist/tensorflow/contrib/cloud/__init__.py", line 28, in <module>
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/home/showtsai/test_tf/main2.dist/tensorflow/contrib/bigtable/__init__.py", line 29, in <module>
  File "<frozen importlib._bootstrap>", line 969, in _find_and_load
  File "<frozen importlib._bootstrap>", line 958, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 664, in _load_unlocked
  File "<frozen importlib._bootstrap>", line 634, in _load_backward_compatible
  File "/home/showtsai/test_tf/main2.dist/tensorflow/contrib/bigtable/python/ops/bigtable_api.py", line 44, in <module>
  File "/home/showtsai/test_tf/main2.dist/tensorflow/contrib/util/loader.py", line 56, in load_op_library
  File "/home/showtsai/test_tf/main2.dist/tensorflow/python/framework/load_library.py", line 61, in load_op_library
tensorflow.python.framework.errors_impl.NotFoundError: /home/showtsai/test_tf/main2.dist/tensorflow/contrib/bigtable/python/ops/_bigtable.so: cannot open shared object file: No such file or directory

Thanks for the example. Let me try to fix this. Because tensorflow is so big, we may run into this type of issue a few more times ...
Von meinem iPhone gesendet
Am 19.05.2019 um 03:21 schrieb ShowTsai <notifications<EMAIL_ADDRESS>I got errors when trying another example main2.py:
import tensorflow.contrib.slim as slim
@slim.add_arg_scope
def fun1(a=0, b=0):
return (a+b)
with slim.arg_scope([fun1], a=10):
x = fun1(b=30)
print(x)
here is the log:
Traceback (most recent call last):
File "/home/showtsai/test_tf/main2.dist/main2.py", line 1, in
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 664, in _load_unlocked
File "", line 634, in _load_backward_compatible
File "/home/showtsai/test_tf/main2.dist/tensorflow/contrib/init.py", line 31, in
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 664, in _load_unlocked
File "", line 634, in _load_backward_compatible
File "/home/showtsai/test_tf/main2.dist/tensorflow/contrib/cloud/init.py", line 28, in
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 664, in _load_unlocked
File "", line 634, in _load_backward_compatible
File "/home/showtsai/test_tf/main2.dist/tensorflow/contrib/bigtable/init.py", line 29, in
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 664, in _load_unlocked
File "", line 634, in _load_backward_compatible
File "/home/showtsai/test_tf/main2.dist/tensorflow/contrib/bigtable/python/ops/bigtable_api.py", line 44, in
File "/home/showtsai/test_tf/main2.dist/tensorflow/contrib/util/loader.py", line 56, in load_op_library
File "/home/showtsai/test_tf/main2.dist/tensorflow/python/framework/load_library.py", line 61, in load_op_library
tensorflow.python.framework.errors_impl.NotFoundError: /home/showtsai/test_tf/main2.dist/tensorflow/contrib/bigtable/python/ops/_bigtable.so: cannot open shared object file: No such file or directory
—
You are receiving this because you were assigned.
Reply to this email directly, view it on GitHubhttps://github.com/Nuitka/Nuitka/issues/388?email_source=notifications&email_token=AB7IDIS4NA2PGOUO4CKNH7DPWD5WPA5CNFSM4HNNWHN2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVW4NBQ#issuecomment-493733510, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AB7IDIVEJU2COSUXZLXZTDDPWD5WPANCNFSM4HNNWHNQ.

Hello, here's a new example with errors.
import tensorflow as tf
import tensorflow.contrib.slim as slim
from tensorflow.contrib.slim.python.slim.nets import resnet_utils

_image = tf.placeholder(tf.float32, shape=[1, None, None, 3])
print('net = resnet_utils')
net = resnet_utils.conv2d_same(_image, 64, 7, stride=2, scope='conv1')

print('net = tf.pads')
net = tf.pad(net, [[0, 0], [1, 1], [1, 1], [0, 0]])

print('net = slim.max_pool2d')
net = slim.max_pool2d(net, [3, 3], stride=2, padding='VALID', scope='pool1')

log:

https://pastebin.com/MZWEkdY4

Thanks for this new example. Ooygooy - this starts looking more complex now.

This also happens under Windows.
Incredibly, certain functions in Tensorflow expect that tensorflow source code is present during execution!
Of course, this is not the case here. I tried and manually copied the respective source folder into the dist (at several different places) without success.
The error messages (actually more warnings type) also suggest to wrap the functions:

If you are certain the code is graph-compatible, wrap the call using @tf.autograph.do_not_convert.

Maybe you know how to do that. If yes, I could then try to make this happen automatically.

Yup I found the same thing with tf.contrib... It does a ton of dynamic loading. They are also deprecating tf.contrib in tensorflow 2.0 in our codebase I ripped out every use of it which killed two birds: 1) got Nuitka to compile and run well and 2) prepared us for 2.0.

@zeiler - can you share your solution?
Or the recipe to achieve the solution?
We may then publish something like: "... tensorflow version x.x.x or supported by Nuitka standalone under the following conditions ...".

All I did was "I ripped out every use of it" in our codebase. So I completely avoided using tf.contrib.  There was error after error trying to use it so I gave up and refactored our code.
You can use the parge of slim that we were using like arg_scope for example by copying some of the files out and just fixing the imports up and continuing to copy tf.contrib files until there are no imports of tf.contrib. it's not a solution for nuitka, it's more to get nuitka to not have to deal with tf.contrib which is going away anyways.

Ah, ok I see.
If I am getting you right, then the whole approach works via modifying the package itself - apart from also massaging the app code.
Well, I am not sure what the best way is to proceed for Nuitka. I feel it cannot be anything like "... if you rewrite your code and also massively modify the tf package, then it will work". And I hear you say, that you agree with this.
On the one hand, a clean compile and an executable code is possible (specifically by using this hinting approach), and on the other hand the package contains parts which require Python source code be present to be parsed by the package during execution time.
Actually I would not mind respecting this and include those required sources. My problem is that I have not enough tensorflow knowledge to identify all those sources and I do not know, whether their presence in the app's dist folder would be sufficient.
The hint in the error messages, suggesting to use tf.autograph.do_not_convert, does not work because tf.autograph has no such attribute. Maybe you have an advice here.
If this could be resolved, I am fairly certain I could find a way to automatically adjust the app's source accordingly during compilation, via the tensorflow plugin.

hmm interesting. I haven't used tf.autograph but from here https://www.tensorflow.org/guide/autograph it also seems to be using tf.contrib. In the init.py's throughout tf.contrib there are lots of lazy loading and weird module imports that didn't seem conventional.
This autograph stuff seems like functionality that tensorflow 2.0 is designed from ground up to be good at. They are doing that likely without autograph module because they are completely removing tf.contrib in 2.0. it's already in alpha and releasing this year so we might just have to not worry about tf.contrib soon.

So,there's no probable solution so far, right?

The behaviour of tf 2.0.0-alpha seems fairly different. I have installed tf 2.0 alpha, but nor yet tried to run your script with it, @ShowTsai. It has to be converted to that version 2.0 first ...
But I'll try that today.
As I wrote some posts ago: everything depends on whether I am able to find a "dynamic patch" of the source that does this do_not_convert thing.

just tried to use tf_upgrade_v2 for the upgrade to version 2: it does not work!
So, @ShowTsai, it would be great if you could find a simple example that can be used under v2 would be great!

Closing for lack of feedback


Crash when username detection is line-number

The title should say it all. I (un)commented the relevant fields but it always crashes, unfortunately I don't know how to use the regex method so I would really appreciate if you could look into it. Thanks.

Thank you for your report! I discovered the cause of this issue and I am working on a fix, which I will publish soon.
For now, you can work around the issue by placing your username on line number 4 or higher, and modifying the cofiguration file correspondingly by setting line-number to the value you've chosen.

I have created a new build that fixes this issue. Could you download it and check if it resolves the problem you're having?
You can download it here: https://ci.appveyor.com/api/buildjobs/l0roxjivd4jc76t0/artifacts/pass-winmenu%2Fbin%2FRelease%2Fpass-winmenu.exe
It can be used as a drop-in replacement for the pass-winmenu.exe you are using currently.

Thank you very much for the update! Unfortunately it crashes at startup, this is the log.
[12:44:14.643] [DBG] ------------------------------
[12:44:14.646] [DBG] Starting pass-winmenu v1.10.1-18-gc4b6366
[12:44:14.646] [DBG] ------------------------------
[12:44:14.650] [DBG] Enabled security protocols: Tls, Tls11, Tls12, Tls13
[12:44:14.905] [ERR] Could not start pass-winmenu: An exception occurred.
[12:44:14.912] ArgumentException (Nome di directory  non valido.) in :0:0
[12:44:14.912]   -> in System.IO.FileSystemWatcher..ctor -- :0:0
[12:44:14.912]   -> in PassWinmenu.Configuration.ConfigManager.EnableAutoReloading -- :0:0
[12:44:14.912]   -> in PassWinmenu.Program.LoadConfigFile -- :0:0
[12:44:14.912]   -> in PassWinmenu.Program.Initialise -- :0:0
[12:44:14.912]   -> in PassWinmenu.Program.Start -- :0:0

"Nome di directory  non valido" should mean something like invalid directory name.

Sorry for leaving you waiting for so long, I didn't get around to it right away, and forgot about it afterwards.
Nonetheless, I have fixed the second issue in a new build, which you can download here: https://ci.appveyor.com/api/buildjobs/6oqbj5sory9tlxtk/artifacts/pass-winmenu%2Fbin%2FRelease%2Fpass-winmenu.exe
Let me know if this fixes your issue; I'll create a new release soon whcih will include the fix for this and a few other issues.

Fixed in v1.11. Should you still encounter any issues, please let me know!


[TW#24587] Problem in Access point mode with Android 7.0 and 7.1

Hey,
When I try to connect to the Acces point with Android 7.0 or 7.1.2, I don`t get an IP. It worked with Iphone, Android 5.3, 6.1 and 8.0.
IDF version commit e7faa1d (https://github.com/espressif/esp-idf/commit/e7faa1d851556bcfa05cf512175fe3e10463484b)
Kr.
Floris

@FlorisColpaert  I have tested as following:

Switch to the IDF version: https://github.com/espressif/esp-idf/commit/e7faa1d851556bcfa05cf512175fe3e10463484b

Set ESP32 as AP

HUAWEI nova (Android 7.0 ) connects to AP

OPPO A83 (Android 7.1.1 ) connects to AP

both of them can get an IP, either the AP is encrypted or not.
Can you provide the exact type of your test equipment?

@FlorisColpaert please use the latest IDF to test, commit 020ade652d9b6b0b87b0bebe176a150cc4407749


Requiring jQuery at the global level for usage with Semantic UI modules

Hello,
I'm working on an isomorphic React app, in which I would like to require jQuery modules from Semantic UI. Each module adds itself to jQuery by accessing the global variable. I have spent hours scouring pretty much every corner of Github and Stackoverflow (and other random websites) looking for solutions, but so far, not a single one has worked.
Methods I have tried:

ProvidePlugin for $, jQuery, and window.jQuery - if I understand correctly, this provides new instances of jQuery each call so the window does not reflect any changes to the object made in required files
expose loader (https://github.com/webpack/expose-loader) - crashes dev server upon usage
imports loader (http://reactkungfu.com/2015/10/integrating-jquery-chosen-with-webpack-using-imports-loader/) - does absolutely nothing
various other combinations of requiring jQuery at different locations in my stack

I'm clearly missing something here. Can someone point me to a (working) tutorial or explain the process by which I could get this working? I've spent so many hours on it now that I gave up and included both libraries manually...which completely defeats the purpose of converting to webpack anyway.
Thanks.
My webpack.config.js (for development)
var webpack = require('webpack');
var path = require('path');

var webpackConfig = {
    resolve: {
        extensions: ['', '.js', '.jsx', '.less', '.css'],
        resolve: {
            alias: {
                jquery: "jquery/src/jquery"
            }
        }
    },
    entry: [
        'webpack-dev-server/client?http://localhost:3000',
        'webpack/hot/only-dev-server',
        './client.js'
    ],
    output: {
        path: path.resolve('./dist'),
        publicPath: '/public/',
        filename: 'dev.js'
    },
    module: {
        loaders: [
            {
                test: /\.(js|jsx)$/,
                exclude: /node_modules/,
                loaders: [
                    require.resolve('react-hot-loader'),
                    require.resolve('babel-loader'),
                ]
            },
            {
                test: /\.css$/,
                loader: "style-loader!css-loader"
            },
            {
                test: /\.less$/,
                loader: "style!css!less"
            },
            {
                test: /\.json$/,
                loader: 'json-loader'
            }
        ]
    },
    node: {
        setImmediate: false
    },
    plugins: [
        new webpack.HotModuleReplacementPlugin(),
        new webpack.NoErrorsPlugin(),
        new webpack.DefinePlugin({
            'process.env': {
                NODE_ENV: JSON.stringify(process.env.NODE_ENV),
                BROWSER: JSON.stringify(true)
            }
        })
        // ,
        // new webpack.ProvidePlugin({
        //     $: "jquery",
        //     jQuery: "jquery"
        // }),
    ],
    devtool: 'eval'
};

module.exports = webpackConfig;

window.$ = window.jQuery = require("jquery");
This always worked for me… Just do this in your entry and you should be golden.

@IngwiePhoenix That was the first thing I tried and it does not work.

Wow. You tried litterally everything that there is, then. How are your components trying to use jQuery? I mean, jQuery plugins themselves only need it to either be globally available or injected via imports-loader. But you spoke of some UI components. Maybe you can see how they try to utilize jQuery?

I've checked them. They assume "jQuery" is defined as a global variable.
I was just now able to get the whole compiled library to work when importing it in my client.js file, after the window.jQuery definition. So that'll do for now I suppose...Optimally, I would like to expose window.jQuery to all my component files and require individual semantic components based on what was needed per component, instead of the whole library.

Have you already read this comment: https://github.com/Semantic-Org/Semantic-UI/issues/517#issuecomment-31698192
The examples helped me alot.

Could make it work, but without explicit jQuery import/quire. It is global. Tried 1.000 variations and its the cleanest.
ProvidePlugin. mapped global variables to jquery2 node lib.
plugins: [
  new webpack.ProvidePlugin({
    $: 'jquery2',
    jQuery: 'jquery2'
  })
]

module.loaders:
module: {
  loaders: [
    {
      test: /\.css$/,
      include: /semantic/,
      loaders: ['style-loader', 'css-loader']
    },
    {
      test: /\.js$/,
      include: /semantic/,
      loaders: ['imports-loader?this=>window']
    },
    {
      test: /\.(png|jpg|jpeg|svg|woff|woff2|ttf|eot)$/i,
      loaders: ['file-loader']
    }
  ]
},

anyone ever got a solution for this?

I have been trying to get this working like crazy for bootstrap. What was weird is even the simplest example didn't want to work ...
var webpack = require('webpack');

module.exports = {
	entry: [
	'./utils',
	'./app'
	],
	output: {
		filename: 'bundle.js'
	},
	plugins: [new webpack.ProvidePlugin({ $: "jquery" })],
	module: {
		preLoaders: [{
			test: /\.js$/,
			exclude: /node_modules/,
			loader: 'jshint-loader'
		}],
		loaders: [{
			test: /\.es6$/,
			exclude: /node_modules/,
			loader: 'babel-loader'
		}]
	},
	resolve: {
		extensions: ['', '.js', '.es6']
	}
}

All I wanted to do was console log the jquery variable $. I think the problem is ProvidePlugin is broken in v2.1.0-beta.25. After downgrading to "webpack": "^1.13.2" it started to print out the variable again. I am guessing there has been a breaking change? It seems the functionality doesn't work at all anymore.
I guess if you stumble on this it could be a similar problem.

I went thru the exactly game thing and got mine to work with exposed.  dont
have the code in front of me but will send it to you tomorrow.  remind me.
thanks
On Sun, Oct 9, 2016 at 10:49 PM, Ryan-Neal Mes<EMAIL_ADDRESS>wrote:

I have been trying to get this working like crazy for bootstrap. What was
weird is even the simplest example didn't want to work ...
var webpack = require('webpack');
module.exports = {
entry: [
'./utils',
'./app'
],
output: {
filename: 'bundle.js'
},
plugins: [new webpack.ProvidePlugin({ $: "jquery" })],
module: {
preLoaders: [{
test: /.js$/,
exclude: /node_modules/,
loader: 'jshint-loader'
}],
loaders: [{
test: /.es6$/,
exclude: /node_modules/,
loader: 'babel-loader'
}]
},
resolve: {
extensions: ['', '.js', '.es6']
}
}
All I wanted to do was console log the jquery variable $. I think the
problem is ProvidePlugin is broken in v2.1.0-beta.25. After downgrading
to "webpack": "^1.13.2" it started to print out the variable again. I am
guessing there has been a breaking change? It seems the functionality
doesn't work at all anymore.
I guess if you stumble on this it could be a similar problem.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/webpack/webpack/issues/2180#issuecomment-252541278,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABmlB72b0Tg3Zw8H8rWaDWZHTcL08yfPks5qydIFgaJpZM4HvoC_
.

see the last loader, that does the trick, make jquery,$ available at the global level.  I am using  "webpack": "1.13.2",
"webpack-dev-server": "^1.16.1"
var webpack = require('webpack');
var HtmlWebPackPlugin = require('html-webpack-plugin');
var path = require('path');

module.exports = {
    entry:'./src/main.ts',

    output:{
        path:'./dist',
        filename:'app.bundle.js'
    },
    module:{
        loaders:[{test:/\.ts$/, loader:'ts-loader'},
        { test: /\.css$/, loaders: ['to-string-loader', 'css-loader'] },
        { test: /\.html$/, loader: 'raw-loader' },
        { test: require.resolve('jquery'), loader: 'expose?jQuery!expose?$' }
      ]
    /*   loaders: [
      // .ts files for TypeScript
      { test: /\.ts$/, loaders: ['awesome-typescript-loader', 'angular2-template-loader'] },
      { test: /\.css$/, loaders: ['to-string-loader', 'css-loader'] },
      { test: /\.html$/, loader: 'raw-loader' }
    ]*/
    },
    resolve:{
        root: [ path.join(__dirname, 'src') ], //add this for dev server
        extensions:['','.js','.ts']
    },
    plugins:[

        //inject all the files above into this file
        new HtmlWebPackPlugin({
            template: './src/index.html'
        }),
        new webpack.ProvidePlugin({
            jQuery: 'jquery',
                $: 'jquery',
                jquery: 'jquery'
        })

    ]

}

Thanks @chungtinhlakho, if you checkout my comment I mentioned that I did get it to work with the version you are using, but I can't get it to work with version v2.1.0-beta.25 :/ That is what I am trying to do.

@chungtinhlakho your solution works perfectly

Below works with v1.13.2
module: {
 loaders: [
  { test: require.resolve("jquery"), loader: "expose?$!expose?jQuery" },
 ]
}

Have you tried using externals in lieu of the expose loader?
// webpack config (I use this idea with webpack 2.1.0-beta25
module.exports = {
  ...
   externals: ['window']
}

// entry-point.js
import jQuery from 'jquery'

window.jQuery = jQuery
console.log(window.jQuery);

Closing as solutions were presented.

@chungtinhlakho why do you use both webpack.ProvidePlugin and expose as far as I understand these are two use cases, check the answer #23 in this thread http://stackoverflow.com/questions/29080148/expose-jquery-to-real-window-object-with-webpack
Also this fix didn't work for me, I tried with webpack 1.13.2 & 1.14 nothing works, I use React Starter Kit.
Any ideas?

@chungtinhlakho why do you use both webpack.ProvidePlugin and expose as far as I understand these are two use cases, check the answer #23 in this thread http://stackoverflow.com/questions/29080148/expose-jquery-to-real-window-object-with-webpack
Also this fix didn't work for me, I tried with webpack 1.13.2 & 1.14 nothing works, I use React Starter Kit.
Any ideas?

Why is this so difficult?

window.$ = window.jQuery = require("jquery");
This always worked for me… Just do this in your entry and you should be golden.

@IngwiePhoenix Bless your heart.


Add a finalizer before detaching a node and don't error if a node has been deleted

If another controller managed nodes and deletes a node from the cluster during a cycle when this causes Cyclops fail the CNR. There are two improvements made here to mitigate this:

Add a finalizer before detaching the node so that the node should not be deleted by another controller
Add error checks so that if a node is already deleted from the cluster then cyclops can continue and terminate it

We should have an issue describing the problem and have it fixed by this PR

code lgtm.
though, looks like we only remove finalizer on healing state. Are you able to confirm that all transitions to both successful and failed, go through healing to get the finalizer removed? From the state diagram, looks like successful doesn't go to healing.
Would it make more sense to remove the finalizer from within the CNS? right before we do the delete call?

You're right, I missed that. I'll update the CNS to remove the finalizer from there as well.


Cookie based login

I heard that Scratchconnect now has cookie based login. So should I implement this?

Yes please.

Current workaround:
import { ScratchSession } from "meowclient";
const session = new ScratchSession();
session.username = "me";
session.token = "abc";
session.csrfToken = "abc";
session.cookieSet = "scratchcsrftoken=" + session.csrfToken + ";scratchlanguage=en;scratchsessionsid=" + session.token + ";";
const sessionFetch = await fetch("https://scratch.mit.edu/session", {
      method: "GET",
      headers: {
        Cookie: this.cookieSet,
        "User-Agent": UserAgent,
        Referer: "https://scratch.mit.edu/",
        Host: "scratch.mit.edu",
        "Cache-Control": "max-age=0, no-cache",
        "X-Requested-With": "XMLHttpRequest",
        Pragma: "no-cache",
        Accept: "*/*",
        "Accept-Encoding": "gzip, deflate, br"
      }
    });
    session.sessionJSON = await sessionFetch.json();


csharp: Added support using NetCoreDBG

This PR adds the support for NetCoreDBG which will enable us to debug C# code in sublime with this plugin.

Looks good to me. Sorry it took me awhile to get to this.

No problem. Thank you :)


feat(typings): improve ymaps.control namespace

Codecov Report

Merging #167 (21fed93) into master (029dae9) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master     #167   +/-   ##
=======================================
  Coverage   99.51%   99.51%
=======================================
  Files          13       13
  Lines         616      616
  Branches       89       89
=======================================
  Hits          613      613
  Misses          3        3

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 029dae9...21fed93. Read the comment docs.


Report class definitions without layers

It would be great if deptrac could report when it finds class definitions (not references) in the scanned code that do not belong to any layer.
Right now there are two possibilities for uncovered classes:

They are not part of the scanned code. That usually means they are part of a 3rd-party library.
They are part of the scanned code, but are not assigned any layer.

It would be helpful, if those two could be treated differently. It might not be best practice, but there are reasons to just ignore the usage of 3rd-party libraries.
However, any class that is defined in the scanned code, that is not part of a layer is probably an error in the configuration.
Right now there is no way to find out about the second case.

I think it would be useful if there were a difference between uncovered dependencies and uncovered class definitions.
It would be nice is if there was an option, not to report uncovered dependencies but uncovered definitions: If deptrac scans a file and finds a class definition that can not be assigned to a layer, report it.
We had the problem in our project that a layer was incorrectly configured which meant a lot of classes weren't actually part of a layer, we just didn't realize it. (We didn't know about the debug options, or maybe they didn't exist yet)
Looking at uncovered dependencies isn't really an option for us, we don't actually scan the vendor directory, so we have thousands of uncovered dependencies.


Clearify prerequisited for the installation and consequences of warnings.

I tried to install MNE Python following the install instructions (conda env create -f environment.yml) on a new computer. It gave me a couple warnings:

Downloading https://files.pythonhosted.org/packages/36/8f/ab9555a37ab7c30560928c2eb0a9715f4492a11536f057aada019a319661/mayavi-4.6.1.tar.bz2 ...   Complete output from command python setup.py egg_info:   Traceback (most recent call last):     File "C:\Users\tom\Anaconda3\envs\mne\lib\site-packages\setuptools\msvc.py", line 490, in _find_latest_available_vc_ver       return self.find_available_vc_vers()[-1] ... distutils.errors.DistutilsPlatformError: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools
This warning is particularly unfortunate, as the provided link to build tools is dead. I think we should add a functioning link and clearify, what part of MNE does not work without Mayavi. Installing the Build Tools for Visual Studio 2017 fixed this.
twisted 18.7.0 requires PyHamcrest>=1.9.0, which is not installed.
I guess this is just missing in the environment.yml.
mkl-random 1.0.1 requires cython, which is not installed.  mkl-fft 1.0.4 requires cython, which is not installed.
Despite those warnings, a large part of MNE still works. I think someone who can oversee the consequences of those packages not being installed could add a few sentences to the install guide, giving recommendations when to make sure they are installed and when not to bother.

This warning is particularly unfortunate, as the provided link to build tools is dead. I think we should add a functioning link and clearify, what part of MNE does not work without Mayavi. Installing the Build Tools for Visual Studio 2017 fixed this.

A compiler is only used for a single extension which is optional for Mayavi on latest master. In the meantime, doing this should work:
pip install https://api.github.com/repos/enthough/mayavi/zipball/master

We should probably update our environment.yml to use master or a pinned version until a 4.6.2 or later comes out.
The mkl warnings are probably not a big deal.
I have never seen the PyHamcrest problem but this sounds like a packaging problem with twisted.

(and yes updating the docs to say that the Cython warning and possibly the PyHamcrest warning is not critical is probably worthwhile)

Hi @larsoner , I'm getting a 404 today (not a firewall issue).

There was a typo in the URL butb nowadays you should just be able to use the latest release version of Mayavi rather than git master

Closing as I think the instructions now mention warnings


finish sdk refactor

Summary
Summary about this PR

Closes #issue

@yubing744 Please review it. It's basically finished

Notice: Git status is dirty
  xargs: warning: options --max-args and --replace/-I/-i are mutually exclusive, ignoring previous --max-args value
  Notice:   File: frameworks/rooch-framework/doc/auth_payload.md
  Notice:   File: frameworks/rooch-framework/doc/bitcoin_validator.md
  Notice:   File: sdk/typescript/rooch-sdk/src/client/types/generated.ts
  Notice:   File: sdk/typescript/rooch-sdk/src/client/types/params.ts

This PR https://github.com/rooch-network/rooch/pull/2016/checks E2E test failed, but Pipeline did not fail

The unit test coverage is too low, it is recommended to be greater than 90%


Disable fee boxes

Fees are fixed so boxes can be disabled to avoid confusion (even if fee does not change).
May also need to discuss a '?' tool tip advising that fees are always fixed

Fee can currently be adjusted and gets rejected


Remove the need for cache.Parent

Setting as draft to avoid unwanted merge during code freeze

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

Snapshot stored with reference name:
refs/pull/14888/merge
Test environment:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14888/merge/index.html
To test a playground add it to the URL, for example:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14888/merge/index.html#WGZLGJ#4600
Links to test babylon tools with this snapshot:
https://playground.babylonjs.com/?snapshot=refs/pull/14888/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/14888/merge
https://gui.babylonjs.com/?snapshot=refs/pull/14888/merge
https://nme.babylonjs.com/?snapshot=refs/pull/14888/merge
To test the snapshot in the playground with a playground ID add it after the snapshot query string:
https://playground.babylonjs.com/?snapshot=refs/pull/14888/merge#BCU1XR#0

WebGL2 visualization test reporter:
https://babylonsnapshots.z22.web.core.windows.net/refs/pull/14888/merge/testResults/webgl2playwright/index.html

Unit test fail - Mesh Baking › bakeCurrentTransformIntoVertices › should set children transforms from their parent

Unit test fail - Mesh Baking › bakeCurrentTransformIntoVertices › should set children transforms from their parent

It was a wrong test all along :) Happy to have catched that issue


[Docs] Types for useFetch docs are outdated

Describe the feature
In https://nuxt.com/docs/api/composables/use-fetch#usefetch, there are some types statically written in markdown, which are outdated (if you compare them to the types in nuxt 3.3.1). e.g. the header property accepts different values now.
I could add a PR to fix these static types, or maybe it would be better to not include them into the docs hand-written, and refer to the file in the git? Or maybe it's possible to include the file dynamically from git?
Additional information

[X] Would you be willing to help implement this feature?
[ ] Could this feature be implemented as a module?

Final checks

[X] Read the contribution guide.
[X] Check existing discussions and issues.

Maybe also other type docs are related to this, just found that by accident

I think that's a good idea. Maybe we could use something like https://shikijs.github.io/twoslash/ to pull type information directly from source.

With twoslash support for Shikiji this should be even better to realize 👍🏻


Improved Color Blind Support

Adding support for built-in improved color-blind support.
So far, it's available as unique background patterns for certain colors. This UI was inspired by how Trello handles color blind mode for their coloured tags:
https://wearecolorblind.com/examples/trello-colorblind-friendly-mode/
Getting this values is quite simple!
import { getBackgroundColor } from '@wp-g2/styles';

getBackgroundColor('red')
// .css-213klj1

The mode can be enabled and toggled via the <ThemeProvider />
import { ThemeProvider } from '@wp-g2/styles';

<ThemeProvider
    isDark={isDark}
    isHighContrast={isHighContrast}
    isColorBlind={isColorBlind}
/>

cc'ing @diegohaz 😉

⚠ A New Component Approaches ⚠
<Alert />
Using the new native color-blind support!

Working out a readable automated backgroundColor for the color palette to work for light/dark mode x color blind mode:

The browsers on the right have color blind simulation turned on.

Just pushed some pretty substantial updates!
Improved color rendering has been implemented into <Tag /> and <Lozenge /> components:

Color Values
The system contains a handful of support colors (color palette):
export const SUPPORTED_COLORS = [
	'blue',
	'red',
	'purple',
	'green',
	'yellow',
	'orange',
	'darkGray',
	'lightGray',
];

Each of these colours have a 100...900 grade (light to dark) with 100% alpha.
Then, using the base grade (500), we generate an alpha set: rgba10...rgba90.
During the alpha set generation, there's logic to determine readability based on light vs dark mode, and darkens/lightens the alpha colors accordingly.
All of these values get outputted as CSS values.
(Phew...)
Finally, at the component layer, these values can be implemented by using getBackgroundColor or getBackgroundColorText mixins.
Something like this:
const cx = [
    styles.base,
    styles.getBackground({ color, isBold }),
    styles.getBackgroundText({ color, isBold }),
];

This allows for easy to use background/text color referencing, with seamless zero-config dark/light, color blind and contrast (pre configured) considerations out-of-the-box!

Closing this up! Built-in color blind support for backgrounds has been streamlined - thanks to the new collection of presets within the Style System.


Docker support

Integrate docker to make it easier to setup the dev environment

Please see commits:
https://github.com/CTrando/UCSD-Planner-Helper/commit/a3af86f8a8c30403da74011ee431cc0e69ed4e9b
https://github.com/CTrando/UCSD-Planner-Helper/commit/54156fbcf2a39a5c2654ff9274d03b9528ef0a35
I somewhat messed up; I thought the backend/frontend folder structure wasn't merged to master, so I did my initial docker stuff in scratch/issue23, which somewhat polluted the branch. However, I merged all of my changes into scratch/issue27 and can confirm that they are working. See the first commit for details on how the Docker containers are set up. The new environment can be completely set up with two commands:
docker-compose build
docker-compose run

Bon appetite.
@CTrando @snowme34

@dmhacker @CTrando
For our docker-install.sh, I think we should not run this at the end of script
docker-compose up

After all, it's just a script for installment, right?

@CTrando
This issue is really old and has been resolved a long time ago. Can we close this issue & branch?


RuntimeError: tensor should be 2 dimensional

Hi everyone,
Im getting this error and I don't know how to solve it:
"animate.py", line 33, in normalize_kp
jacobian_diff = torch.matmul(kp_driving['jacobian'], torch.inverse(kp_driving_initial['jacobian']))
RuntimeError: tensor should be 2 dimensional
Any help please?

Torch version should be greater than 1.0.0


hand icon (to indicate link) doesn't appear when hovering over the "provide feedback" survey link

this is a problem because users might not know to click there

completed.  Added "cursor: pointer;" style to these links.  not sure why is was being overridden.


Trailer Uniqueness

Mike;
FYI The new object/method for trailers is just fine at the wrapper level but be aware that Travis's "id" is NOT unique (have not checked "key"). On re-scraping trailers (for 14 hours) I hit a few id duplicates. Just so you know.
Joe

You should post some of these observations to the Google+ group.
In my experience, not everything Travis does is intentional :).

... but I find it disturbing to have an "Id" that is not an "Identifier".

You mean the Video objects?
E.g., /movie/47964/videos
{
	"id" : 47964,
	"results" : [{
			"id" : "533ec6a7c3a368544800556f",
			"iso_639_1" : "en",
			"key" : "7EgVRvG2mM0",
			"name" : "A Good Day To Die Hard Official Trailer",
			"site" : "YouTube",
			"size" : 720,
			"type" : "Trailer"
		}
	]
}

@joebob49 could it be that the trailers you find to be duplicates, actually are the same trailers?
I'm thinking that two episodes or two movies could be referencing the same trailer.


AVRCPAgent crash on El Capitan

I have tried several times to get this to run now that I've upgraded to 10.11 and simply cannot get it to work. I have run these commands repeatedly just in case there something left behind somewhere:
sudo ./install.sh uninstall old
sudo ./install.sh uninstall
sudo rm -r build
sudo ./install.sh install

After I connect my BT headphones and try pressing the play/pause button I get the following in my system log:
10/19/15 11:11:54.010 AM com.apple.xpc.launchd[1]: (com.bths.AVRCPAgent[91875]) Service exited due to signal: Abort trap: 6
10/19/15 11:11:54.019 AM com.apple.xpc.launchd[1]: (com.apple.ReportCrash.Root[92017]) Endpoint has been activated through legacy launch(3) APIs. Please switch to XPC or bootstrap_check_in(): com.apple.ReportCrash.DirectoryService
10/19/15 11:11:54.740 AM ReportCrash[92017]: Saved crash report for AVRCPAgent[91875] version 1.0 (1) to /Library/Logs/DiagnosticReports/AVRCPAgent_2015-10-19-111154_Shadow.crash

I am at my wits end on getting this to work again. Attached you will find the log mentioned above. You can find the above-mentioned crash report in this gist.

Run the uninstall again with sudo because you ran install with sudo
sudo ./install.sh uninstall
Then run install without sudo because it needs to execute some things as you.
./install.sh install
It may still ask for your password because it runs sudo commands inside of it. It's probably not a correct way to make an install script, but that's the way we have it.
Let me know how that goes.

Well...I actually did try that before but ran into an issue where it didn't actually install. Relevant build/install output when I run ./install.sh install as my user (after having run sudo ./install.sh uninstall):
.
.
.
** BUILD SUCCEEDED **

cp: ./AVRCPAgent/PlugIns/BTHSControl.bundle/Contents/Info.plist: Permission denied
cp: ./AVRCPAgent/PlugIns/BTHSControl.bundle/Contents/MacOS/BTHSControl: Permission denied
cp: ./AVRCPAgent/PlugIns/BTHSControl.bundle/Contents/Resources/en.lproj/InfoPlist.strings: Permission denied

I'm assuming at this point it's supposed to be copying everything to /Library/Services/. After those failed cp lines it doesn't actually have anything set up in /Library/Services/ like it does when run as root.

FYI, I solved my problems by deleting and cloning the repo again. I guess the permission issues were with those files it tried to copy rather than with anything on the system.


Implement decomposition for BitonicSort

Decomposition for sorting lists whose size is a power of 2.
Described briefly in https://www.nature.com/articles/s41534-018-0071-5, circuit based on wiki.

@tanujkhattar @fdmalone ptal


fix(api) : replace IpldCodec with u64

TODO

I'd say this should be a feat PR, since it changes the signature in one of our exposed traits.


CMake error when using MinGW of Qt Windows build

When using the MinGW compiler provided by the Qt binary release 5.7 I get the error:
Führe "E:\CMake\bin\cmake.exe E:/Projekte/fairytale "-GCodeBlocks - MinGW Makefiles"" in E:\Projekte\fairytale\build aus.
CMake Error at E:/CMake/share/cmake-3.3/Modules/CMakeMinGWFindMake.cmake:22 (message):
  sh.exe was found in your PATH, here:

  E:/cygwin/bin/sh.exe

Using the following CMake instructions:
cmake_minimum_required(VERSION 3.0.0)

include("cmake/HunterGate.cmake")

HunterGate(
    URL "https://github.com/ruslo/hunter/archive/v0.7.0.tar.gz"
    SHA1 "e730118c7ec65126398f8d4f09daf9366791ede0"
)

Without them everything works just fine. My CMAKE_CXX_COMPILER is set to "C:/Qt/Tools/mingw530_32/bin/g++.exe", CMAKE_MAKE_PROGRAM to "C:/Qt/Tools/mingw530_32/bin/mingw32-make.exe" and my CMAKE_GENERATOR to "MinGW Makefiles". Besides that CMAKE_SH is empty on purpose but it does not help.
The single line:
include("cmake/HunterGate.cmake")
does not cause any problems. I need the Codeblocks MinGW generator to parse the paths etc correctly and the Qt MinGW compiler for the paths as well. Otherwise the combination of generator and compiler wont work due to path parsing issues.
I am using this HunterGate.cmake file:
https://github.com/hunter-packages/gate/blob/624a9de6eae06db47919b75b083bc12dbee48354/cmake/HunterGate.cmake

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/39926465-cmake-error-when-using-mingw-of-qt-windows-build?utm_campaign=plugin&utm_content=tracker%2F1032790&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F1032790&utm_medium=issues&utm_source=github).

This is not a Hunter issue, this is a general CMake limitation. You can try this example:
cmake_minimum_required(VERSION 3.0)
project(Foo)

should fail with the same error.
The fix is to remove path with sh.exe from current PATH:

https://github.com/ruslo/hunter/blob/d988ee959ff3c5fbec5ab8fc351b056272b7e8fb/appveyor.yml#L92

Closing inactive discussion.


Add compliance notices for hosts issuing virtual cards through Stripe

On 26th June we received a notice from Stripe's compliance contractor (Perform line) regarding our non-compliance with one of Stripe's terms, namely:

Rule: Issuing - General Disclosure - Celtic — issued by Celtic Bank (triggered by: credit card)

The notice was sent to Open Collective Foundation specifically but the compliance requirement exists for any host (and, possibly, Open Collective as a platform) when issuing virtual cards using Stripe.
Given that we issue a number of virtual cards every month and that the total volume of expenses registered on a monthly basis is in excess of 100k I believe this represents a risk that we should remove entirely as soon as possible.
More information about Stripe's compliance team can be found at stripe.com/docs/treasury/compliance

list areas where we would need notices
review eng requirements/approach (i.e. how to apply correct notices)

This week

[ ] Add compliance notices to virtual card components

@BenJam to check against compliance notices from Stripe.


feat: replace react-codemirror2 with @uiw/react-codemirror to allow codemirror 6

React-codemirror 2 has been deprecated for ~2 years and is no longer receiving updates, and seems to have been the cause of https://contentful.atlassian.net/browse/TOL-253. In addition because Codemirror 5 is not compatible with React versions >16, it was causing dependency compatibility issues with the default React settings with create-contentful-app, forcing users wishing to use the JSON Editor in their apps to either downgrade manually to an earlier version of React or to use the --legacy-peer-deps flag with NPM which is unreliable.
The props are obviously different for Codemirror 6, so I did my best to replicate the look and functionality of the old JSON editor in the new version.

Looks great. I wonder if this should cut a major release though? what do you think contentful/team-tolkien ?

I think yes, to be on the safe side since we upgraded to codemirror v6  and now we are using @uiw/react-codemirror
but it depends on the change logs of codemirror, maybe we should check that?

Looks great. I wonder if this should cut a major release though? what do you think contentful/team-tolkien ?

I think yes, to be on the safe side since we upgraded to codemirror v6 and now we are using @uiw/react-codemirror
but it depends on the change logs of codemirror, maybe we should check that?

The migration guide https://codemirror.net/docs/migration/ is quite.. extensive, and apparently the entire architecture is significantly different. I lean towards doing a major release personally


chore(linting): Establish ESLint support

This declares ESLint rules in reference to oscal-react-library, including TypeScript.
Additional support to be added:

[ ] Lint all files
[ ] Include linting workflow check

Closes #164

including TypeScript

If we do this, I'd like to see us add a tsconfig.json file, add typescript as a devDependency, and then make sure we're following the Cypress guidance on how to use TS correctly.
This is all very doable and I am here to support if you have questions!


[Firefox + Profile] AdvanceCustomBrowserCmdLine

Firefox with specific profile
Using AdvanceCustomBrowserCmdLine with the following command line is not working as expected.
"liveServer.settings.AdvanceCustomBrowserCmdLine": "firefox --profile /home/username/.mozilla/firefox/0j4uw587.liveserver_vscode --url http://localhost:5500"

I also tried with escaped string quotes:
"liveServer.settings.AdvanceCustomBrowserCmdLine": "firefox --profile \"/home/username/.mozilla/firefox/0j4uw587.liveserver_vscode\" --url http://localhost:5500"

[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Other:

Current behavior
It keeps opening firefox with the default profile and ignoring the command line.
I can assume it ignoring the command line because it keeps trying to open on <IP_ADDRESS>:5500 instead of localhost:5500 as I write in the settings.

Expected behavior
Run the firefox with the profile I wanted to and do the rest command's arguments.

Environment
Browser:

- [ ] Chrome (desktop)
- [X] Firefox version 68.5.0esr-1
- [ ] Safari (desktop)
- [ ] IE
- [ ] Edge

For Tooling issues:

- Live Server: 5.6.1
- Platform: Linux 4.19.98-1
- Visual Studio Code: 1.42.1 (x86_64)

Others
The command has been tested before on Terminal (Bash).

So I find out the bug.
Unfortunately, the package opn is no longer maintained by its maintainer. On the other hand, it has been deprecated.
Everything starts from appModel.ts#L240. It would break down the command-line into:
[
  'firefox',
  '--profile /home/username/.mozilla/firefox/0j4uw587.liveserver_vscode',
  '--url http://localhost:5500'
]

This makes the opn could not recognize the rest of parameters.
Workaround
DISCLAIMER: I'm writing this workaround in NodeJS and uses the latest open package.
Change the split with white-spaces only.
commandLine.split(" ").forEach((cmd, _) => {
    params.push(cmd.trim())
})

Then, params would produce:
[
  'firefox',
  '--profile',
  '/home/username/.mozilla/firefox/0j4uw587.liveserver_vscode',
  '--url',
  'http://localhost:5500'
]

Finally, you can use opn or open with this params.

Hello folks! I had the same problem, only in my case I am using:
Lubuntu 19.10
Firefox Developer Edition 78.0b3 (64-bits)
VSCode 1.45.1
Live Server 5.6.1
HERE IS ANOTHER WORKAROUND

Rename the profile you want to use with Liver Server to -> dev-edition-default
*you can do this throught bash typing the command -> firefox-developer -profilemanager

Add these to your settings file:

"liveServer.settings.AdvanceCustomBrowserCmdLine": "firefox-developer --P dev-edition-default --new-tab http://localhost:5500",
"liveServer.settings.NoBrowser": false,

After that you might have to restart the browser if you get the "another instance of firefox is already running" problem when you try to launch Live Server.

And that's pretty much it !!!
These links helped me out:
Profile Manager: http://kb.mozillazine.org/Profile_Manager
Command Line Arguments: http://kb.mozillazine.org/Command_line_arguments


KeyboardInterrupt not captured

KeyboardInterrupt exception when the user force quits the interpreter is not captured which causes a slew of python messages to be displayed. Obviously should fix!!! Thought this was common knowledge.

nolang.py - line 49
if __name__ == "__main__":
      try:
            main()
      except KeyboardInterrupt:
            pass

Would this work?

Or line 24
def interactive():
    while True:
        try:
            line = input('>>> ')
            exec_source(line, sys.stdin.name)
        except KeyboardInterrupt:
            break


How to use an external js with Polymer

Hi,
I'm a beginner with Polymer,
I try to add an external library (Stimulsoft - Reports.JS) to my Polymer project.
But when I add the following code in my component :
<script src="./scripts/stimulsoft.reports.js"></script>
I got a DOM Exception from Polymer like this :

I do not understand the source of the problem. Is it possible to use an external js with Polymer ?

Could you post your full component? Seems like a bad positioning of the script tag. Also: it is better to include this script tag in a single .html file and then import this .html file using the HTML import. That way the import gets deduplicated, preventing you from loading the script twice

Here is my component (1 html file) :
`

And here is the script I try to add (I do not know if it could help) :
stimulsoft.reports.zip

I've already had problems with stimulsoft reports in polymer. I've switched to use them in an iframe

Finally, after many search I found that it was the web component paper-time-picker use in the bundle project which throw this DOMException when I try to import stimulsoft.reports.js file. But it is possible to use Reports.JS despite this DOMException.


websocket error

When connect to the game server in IE10 or IE11, often seen "websocket parser error no handler for opcode 10" console log. but Chrome and firefox is well.
i set connector option like below.
{
connector : pomelo.connectors.sioconnector,
transports : [ 'websocket', 'htmlfile', 'xhr-polling', 'jsonp-polling', flashsocket' ]
heartbeats : true, closeTImeOut : 120, heartbeatTimeout : 120, heartbeatInterval : 50
}
pomelo version 1.1.1
how can resolve it? help me.

according to https://tools.ietf.org/html/rfc6455#section-5.1, opcode 10 means pong frame, IE 10 or 11 does not support pong frame?


Prevent encryption operations to use swap files

I believe many of the encryption operations that are being done in memory could reach the disk if any wallet/node uses any encryption function whilst having a full memory. This would result in passphrases and private keys reaching swap files on disk, making it possible to access them.
Some of the affected functions include: generateNew , xPrvChangePass in Wallet.hs and encryptedKey,encryptedCreate,encryptedCreateDirectWithTweak,encryptedChangePass,encryptedSign in Encrypted.hs
In summary ensuring that encryption functions are done in memory will avoid the posibility of passphrases/keys being leaked into the disk and therefore susceptible to be stolen.  A possible solution would be using mlock in unix and VirtualLock in Win32, which locks some memory space and ensures that some operations will always be executed in memory.

What you're asking to do here is not currently doable with the haskell memory model (as used), and 'raw-memory-dump' is actually not part of the threat model (since the passphrases are in clear pretty much all over memory). The only non invasive way right now to solve this problem is to use hardware key; all the counter measure above would just be snake oil without a complete re-architecturing of the secret managements.

We will review with the product managers if we want to address this, and if so with what priority.
This will be more relevant with KES since although we may start with the encrypted KES_0 and passphrase, we will need to keep in memory (at different times) KES_1..KES_n, and not leak these to disk, so an ability to use mlock'ed memory for the private keys could be important.

This repository doesn't implement KES, and is not tracking meta tasks either. so I fail to see the point to track this here, considering this is about redefining the threat model of the application.


Signal.update() to include all fields

Signal.update() includes anomalies, summaries and wikipedia-pageviews if present.
I changed signal.anomaly_signal()  a bit to make it work and added a signal.copy() to all signal classes.

@complementizer thank you for this
i will take a pass now and directly push to this PR if that's ok?
then we can sync next week

@chrishokamp yep sure


C API?

Any chance of getting one for this library? I'm using another language and can only interface with C.

I'd be happy with an alternate C api. I don't have the time to do this myself but the code here is written in a way that lends itself to a port. It could be straight-forward of a task. If anyone coming along and reading here, contributing a C api could be a great way to contribute to the library! I'd be happy to take a look at and merge a pull request for this.

Oh wow thanks for the fast response. I'll take a look and see if I can port it myself, then.

Cool! I would suggest looking mostly at q3scene.h and q3body.h, and then perhaps wrapping whatever you like in a C api, perhaps in a header (like q3_c.h or something). The math is already in C format. The only other file I could imagine someone would want exposed is q3Box.h, but scene and body are the main two. I think that's all anyone would need to know to as far as the API goes :)

Good to know!
Another question: Is it trivial to implement variable timestep? It seems like I just have to pass in a dt in q3Scene::Step() and set it here: https://github.com/RandyGaul/qu3e/blob/a7c7199d3a0c4ebbe4cc966b8fc9dfa708b8925c/src/scene/q3Scene.cpp#L89
Would this work as expected? Or would there be side effects?

You can add in variable timestep if you like. The only downside is the lack of floating point determinism (which may or may not matter depending on what you're doing).


Pairing returns one when one of the points is zero

Pairing returns one when one of the points is zero
Description
When one element is zero, the pairing returns one
Type of change
Please delete options that are not relevant.

[x] Bug fix

Codecov Report

Merging #316 (a876c20) into main (09cd588) will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##             main     #316   +/-   ##
=======================================
  Coverage   96.28%   96.29%
=======================================
  Files          92       92
  Lines       11588    11600   +12
=======================================
+ Hits        11158    11170   +12
  Misses        430      430

Impacted Files
Coverage Δ

...urve/short_weierstrass/curves/bls12_381/pairing.rs
94.62% <100.00%> (+0.37%)
:arrow_up:

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


Revert "Add timeout logic to local block reading/writing"

This reverts commit 250bb35556dd0e347d372ca583ef70097d24e01e.
The previous change creating a thread pool executor for each block reader/writer, needs to be rewritten & add tests

alluxio-bot, merge this please

alluxio-bot, cherry-pick this to branch-2.8 please


TEP-0127: Larger Results via Sidecar Logs [Feedback Requested]

In TEP-0127, we proposed  Larger Results via Sidecar Logs. This feature was added in release v0.43 as an alpha feature that's guarded behind the results-from feature flag. For further details, see the documentation.
This is an issue to gather feedback from users who have tried out the the feature, so that we can figure out a way forward.

The larger results via sidecar logs is a huge improvement to address 4K termination message size limitation. I am evaluating using this feature in our service. This feature does not help accomplish artifacts use case but it is a step forward while working with a reasonable size of task results.
This is a live list of to-dos for making sure this feature can be promoted to beta:

[ ] Fix formatting issues in docs and add a complete set of instructions on how to enable larger results using sidecar logs. The additional-configs has the set of instructions, either we move them under docs/tasks.md or provide a reference to additional-configs from docs/tasks.md.
[ ] Add multiple tasks producing multiple task results in an example pipeline.
[ ] Add an example pipeline which has a task producing large results + onError is set to continue. This test is necessary to check the sidecar sidecar-tekton-log-results supports non-zero exit code of any container.
[ ] Add e2e test to validate the task results are produced with a failed task.
[ ] Add an example pipeline to produce task results of all supported types including array and object.

@pritidesai thank you for the feedback, will prioritize making the improvements that you've suggested

@JeromeJu @pritidesai mentioned that larger results tests are gated by both the alpha flag as well as a dedicated feature flag. Can we use just one of them or is this intentional?

It is no longer gated behind the alpha feature flag https://github.com/tektoncd/pipeline/pull/6939

https://github.com/tektoncd/pipeline/pull/8041 adds the tests


parsing background images on windows fails

function parseBackgrounds(backgroundImage) fails to parse the block and definition if the file url contains ( or ).
Given the following url string
url('file:///c:/Program Files(x86)/myApplication/images/ico_graph_off.png')
parseBackgrounds yeilds
block = url('file:///c:/Program Files(x86)/myApplication/images/ico_graph_off.png')
definition ='file:///c:/Program Files(x86)/myApplication/images/ico_graph_off.png'
This fails to load the image because the single quotes have not been removed.
Given the following url string
url(file:///c:/Temp(x86/myApplication/images/ico_graph_off.png)
parseBackgrounds yeilds
block = url(file:///c:/Temp(x86/myApplication/images/ico_graph_off.png)
definition = file:///c:/Temp(x86/myApplication/images/ico_graph_off.png)
This fails to load the image because of the closing parenthese isn't removed.

html2canvas should be used with http:// protocol preferably. Example is Apache ou Nginx.


Include rpi-eeprom repo as a git submodule

Avoid duplicated binaries - it also makes it easier for users to select a different EEPROM binary i.e. they just pick a different submodule version
Preliminary work for moving the rpi-bootloader-key-convert and rpi-otp-private-key into rpi-eeprom so that we can create an raspberrypi-secure-boot buildroot package.

@XECDesign @peterharperuk

Seems to work but will wait until after bumping the rpi-eeprom default release next week before merging.

@peterharperuk @pelwell @tdewey-rpi
Reworked this change now that Pi5 has been released in order to stop duplicating the rpi-eeprom tools. Currently, the EEPROM binary is still duplicated but that can be tidied up in a later commit.

Looks ok


DialTLS with tls minVersion but the protocol still is TLSv1.0

GO 1.12 and GO 1.11 both the same
`caCertPool := x509.NewCertPool()
caCertPool.AppendCertsFromPEM(caCert)
tlsConfig := &tls.Config{
	Certificates: []tls.Certificate{cert}, // from tls.LoadX509KeyPair
	RootCAs:      caCertPool,
	MinVersion:   tls.VersionTLS11,
	MaxVersion:   tls.VersionTLS12,
	// ...other options are just the same as yours
}

conn, err := amqp.DialTLS(connStr, tlsConfig)
if err != nil {
	log.Fatal("DialTls", err.Error())
	return nil, err
}`

You are welcome to investigate why the settings might not get applied and submit a PR. It's worth mentioning that TLS version negotiation involves two peers and we have no information about what Erlang version is used and what TLS versions are enabled in the configuration.


Reduce string concatenation

Since variables w1...w6 and c1...c6 are just running over the list seg, we can remove unnecessarily repeated string concatenation.

LGTM. thank you. ci is failing with different reason so I'll merge it


Remove unecessary scripts

Branched off from #79.
Deletes smoke_test_crawler.py and csv_prefix_crawler.py (and the associated method used only in that script, url_to_prefix_params).  Also provides minimal documentation updates.

great
On Mon, Jun 19, 2017 at 9:39 PM, Harrison<EMAIL_ADDRESS>wrote:

@HarrisonGregg approved this pull request.
Looks good.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
https://github.com/opensyllabus/osp-scraper/pull/123#pullrequestreview-45014767,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAe2AD3NzhnZpcsr8ZVv65eSITKranAMks5sFyLNgaJpZM4N-3zj
.


Story title is cropped...

... For long story names

Done in https://github.com/pokatomnik/MrakopediaReader2/issues/17


pre-commit: add shed, flynt, prettier, additional rules

Fixes #816
This adds flynt, shed and prettier to the pre-commit configuration, based on the discussion in #816. It also adds a few additional pre-commit hooks. The source is from these files recommended by @pokey:

Also, we may want to steal the setup from a personal project that I have. I based it off the Cursorless version, which went through fairly strenuous review, but had some fairly Cursorless-specific stuff in it. Here's the two files I think we could just steal verbatim:
https://github.com/pokey/blind_files/blob/develop/.pre-commit-config.yaml
https://github.com/pokey/blind_files/blob/develop/.editorconfig

Additionally, shed and flynt have been used in axkit and cursorless-talon without much issue for a while.
For demonstration of what this would look like, see https://github.com/knausj85/knausj_talon/pull/865.
Note that because this PR doesn't include the actually formatting changes (to avoid merge conflicts if any changes land before we can land this), pre-commit gives it a failing status, but you can see the green status on #865. I'd be fine just including all the changes in this PR if that is simpler for people.

We are going to merge this manually because the "merge PR" option is disabled we want the commits to be distinct.


Style staking flow finish screen

use as base brach https://github.com/iotaledger/iota/pull/3785
Style staking flow review screen, use wallet as reference
Depends on https://github.com/iotaledger/iota/issues/3647

Im very sorry but this issue is not really needed 💔


virtmanager: 2.2.0 -> 2.2.1

Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/virt-manager/versions.
meta.description for virtmanager is: '"Desktop user interface for managing virtual machines"'.
meta.homepage for virtmanager is: '"http://virt-manager.org"

Checks done (click to expand)

built on NixOS
The tests defined in passthru.tests, if any, passed
/bin/sh passed the binary check.
1 of 1 passed binary check by having a zero exit code.
0 of 1 passed binary check by having the new version present in output.
found 2.2.1 with grep in /nix/store/7cwr69grqyingkygp4i2qbhdc9560fj2-virt-manager-2.2.1
directory tree listing: https://gist.github.com/c5e972859ad0955cc320d54da53ce68a
du listing: https://gist.github.com/c72a4a688b1f7f236acf5ce09cdbe170

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

3 total rebuild path(s)
1 package rebuild(s)
1 x86_64-linux rebuild(s)
1 i686-linux rebuild(s)
0 x86_64-darwin rebuild(s)
1 aarch64-linux rebuild(s)
First fifty rebuilds by attrpath
virtmanager

Instructions to test this update (click to expand)

Either download from Cachix:
nix-store -r /nix/store/7cwr69grqyingkygp4i2qbhdc9560fj2-virt-manager-2.2.1 \
  --option binary-caches 'https://cache.nixos.org/ https://r-ryantm.cachix.org/' \
  --option trusted-public-keys '
  r-ryantm.cachix.org-1:gkUbLkouDAyvBdpBX0JOdIiD2/DP1ldF3Z3Y6Gqcc4c=
  cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
  '

(r-ryantm's Cachix cache is only trusted for this store-path realization.)
Or, build yourself:
nix-build -A virtmanager https://github.com/r-ryantm/nixpkgs/archive/076c10183622115c38936382f41a9d2ec865e71f.tar.gz

After you've downloaded or built it, look at the files and if there are any, run the binaries:
ls -la /nix/store/7cwr69grqyingkygp4i2qbhdc9560fj2-virt-manager-2.2.1
ls -la /nix/store/7cwr69grqyingkygp4i2qbhdc9560fj2-virt-manager-2.2.1/bin

cc @qknight @offlinehacker @fpletz for testing.

We still need to manually test if everything works as it should


[1.20.1][NeoForge/Forge] CIT broken

Describe the bug
although there's CIT Resewn mod, but seems none of the CIT texture from any CIT RP are acturally loaded
To Reproduce
Steps to reproduce the behavior:

Add any RP with CIT
CIT Textures won't work

Setup (please complete the following information):

OS: [Win11]
Modpack Version: [1.9.5+neo.1.20.1]

Additional context
If you can't reproduce then maybe I break something, apologize if it's invalid

Thanks for letting me know😅! I'm pretty sure, CIT worked before on (Neo)Forge. This will be fixed by Sinytra Connector team. See https://github.com/Sinytra/Connector/issues/820. The mod will be temporarily, removed.

CIT Resewn will be temporarily replaced with ForgeCIT, in 1.9.7 to fix this issue!


DAWN-516 ⁃ Operator new

Operator new is currently not implemented for contracts, as far as I know. I tried to use operator and I've got this error when trying to publish a contract:
144300ms            main.cpp:1195                 main                 ] Failed with error: Assert Exception (10)
status_code == 200: Error code 500
: {"code":500,"message":"Internal Service Error","details":"10 assert_exception: Assert Exception\n!\"unresolvable\": env._Znwj\n

The reason why it is needed is because, as far as I know, it's the only way to initialize dynamically allocated object in C++. I'm not aware of any other way to call a constructor on dynamically allocated memory. I thought about doing something like:
some_class* a = (some_class*)malloc(sizeof(some_class));
a = some_class(...);

But it is not safe, since assignment operator is called on a which usually assumes that the object is already constructed.
Placement new would be useful as well. Actually, I think placement new should be implemented first, because once you can call a constructor on some memory location, implementing simple new should be straightforward, I imagine.

operator new now provided by llvm libc++.


[Bug report] [UI]The next page button is insensitive.

Describe what's wrong

Error message and/or stacktrace
NA
How to reproduce
create more data for list
Additional context
No response

Dup of #1537


Align the labels on the left side

Prerequisites

[ ] I have read the documentation;
[ ] In the case of a bug report, I understand that providing a SSCCE example is tremendously useful to the maintainers.

Description
I have found the react-jsonschema-form very useful for my project. But i want to move the labels on the left side instead of above the fields .Can anyone help me??

Try using the bootstrap form-inline class as in this example.


[IOS] We recently collated the crash information received from users and confirmed that the following four kinds of crashes were encountered using flutter version 3.7.9.

Hello:
We recently collated the crash information received from users and confirmed that there are four kinds of crashes were encountered using flutter version 3.7.9. We do not know the exact actions to reproduce the issue, only have the stack information at the time of crash. Here are the phone model and system version of one of the crashes:
Currently we do not intend to upgrade the latest version of flutter, please confirm if there is a way to avoid the crash in flutter version 3.7.9.
Date/Time:       2023-06-23 13:21:41 +0000
OS Version:      iPhone OS 15.1.1 (19B81)
Report Version:  104
Exception Type:  SIGABRT
Exception Codes: #0 at 0x1b7df6964
Crashed Thread:  24
Thread 24 Crashed:
0   libsystem_kernel.dylib              0x00000001b7df6964 __pthread_kill + 8
1   libsystem_c.dylib                   0x000000018bc8ef50 abort + 164
2   Flutter                             0x0000000111c85ab4 _ZN3fml10LogMessageD1Ev + 0
3   Flutter                             0x0000000111c85c20 _ZN3fml11FileMapping14CreateReadOnlyERKNS_12UniqueObjectIiNS_8internal7os_unix14UniqueFDTraitsEEERKNSt21_LIBCPP_ABI_NAMESPACE12basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEE + 0
4   Flutter                             0x0000000111c89db0 _ZN3fml8internal18ThreadLocalPointer4swapEPv + 184
5   Flutter                             0x0000000111c87158 _ZN3fml15MessageLoopImpl10FlushTasksENS_9FlushTypeE + 1716
6   Flutter                             0x0000000111c89e80 _ZN3fml17MessageLoopDarwin11OnTimerFireEP16__CFRunLoopTimerPS0_ + 32
7   CoreFoundation                      0x0000000180e66268 <redacted> + 32
8   CoreFoundation                      0x0000000180deac40 <redacted> + 1076
9   CoreFoundation                      0x0000000180de543c <redacted> + 328
10  CoreFoundation                      0x0000000180dc3c58 <redacted> + 1944
11  CoreFoundation                      0x0000000180dd73b8 CFRunLoopRunSpecific + 600
12  Flutter                             0x0000000111c89f6c _ZN3fml17MessageLoopDarwin3RunEv + 88
13  Flutter                             0x0000000111c89a5c _ZNSt21_LIBCPP_ABI_NAMESPACE14__thread_proxyB6v15000INS_5tupleIJNS_10unique_ptrINS_15__thread_structENS_14default_deleteIS3_EEEEZN3fml6ThreadC1ERKNS_8functionIFvRKNS8_12ThreadConfigEEEESC_E3$_0EEEEEPvSJ_ + 208
14  libsystem_pthread.dylib             0x00000001f19da9a4 _pthread_start + 148
15  libsystem_pthread.dylib             0x00000001f19d9ea0 thread_start + 8

6497a22e3fd542d5bd24e124-1687659054419573000_type[1]_709310938.txt

@kutian
Please add stacktraces from closed issues in this issue for better tracking.


Review comments H1L021 PR # 46 - Trusted Logon Process

PR Comment: #46 @H1L021
What are your thoughts on adding event 4611 to the data source / component: Logon Session / Logon Session Metadata? I understand this event is not related to the creation of a logon session, but it describes the registration of a trusted logon process that will handle the logon process. Also, since the the event provides context of the user that registered the trusted logon process, what are your thoughts on adding another yaml file with the relation: user --> registered --> logon process? This new relationship would be also mapped to the Logon Session / Logon Session Metadata

Hi @Cyb3rPandaH
Thanks for your time,
I actually thought of that but the documentation of the event threw me off here

At the technical level, the event does not come from the registration of a trusted logon process, but from a confirmation that the process is a trusted logon process. If it is a trusted logon process, the event generates.

So the relationship   user --> registered --> logon process is not technically accurate, however, we can go with it at the moment from an attribution perspective.

@Cyb3rPandaH I didn't see initially that EID 4611 is part of Logon Session Metadata yaml file. Sorry my bad. You can delete the trusted logon process

Hey @H1L021 ,
I agree on that, using event 4611 with user context makes more sense when attributing the registration of the trusted logon process. I think we can add the relationship and add a note for this event with reference to the documentation.
In addition, instead of using logon process as target, we could use the entity name process. The logon context for this relationship would come from the ATT&CK mapping. Any comment?
Event 4611 will be also as part of the Logon Session Metadata yaml file since more than one relationship could be described from an event.