text:
Synchronous execution under ReadAction

java.lang.Throwable: Synchronous execution under ReadAction: C:\Apps\cppcheck\cppcheck.exe -IC:/clion/mqtt/src/nodes --enable=all --suppress=noExplicitConstructor --suppress=unusedFunction --inline-suppr --language=c++ \"C:\Users\ostoeneb\AppData\Local\Temp\___endpoint.cpp\"
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:145)
	at com.intellij.execution.process.OSProcessHandler.checkEdtAndReadAction(OSProcessHandler.java:147)
	at com.intellij.execution.process.OSProcessHandler.waitFor(OSProcessHandler.java:85)
	at com.intellij.execution.process.CapturingProcessRunner.runProcess(CapturingProcessRunner.java:114)
	at com.intellij.execution.process.CapturingProcessRunner.runProcess(CapturingProcessRunner.java:73)
	at com.intellij.execution.process.CapturingProcessHandler.runProcessWithProgressIndicator(CapturingProcessHandler.java:83)
	at com.github.johnthagen.cppcheck.CppcheckInspection.executeCommandOnFile(CppcheckInspection.java:177)
	at com.github.johnthagen.cppcheck.CppcheckInspection.checkFile(CppcheckInspection.java:69)
	at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:143)
	at com.jetbrains.cidr.lang.psi.impl.OCFileImpl.accept(OCFileImpl.java:448)
	at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:77)
	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$null$8(LocalInspectionsPass.java:323)
	at com.intellij.util.AstLoadingFilter.lambda$toComputable$2(AstLoadingFilter.java:167)
	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:125)
	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:114)
	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:109)
	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitRestElementsAndCleanup$9(LocalInspectionsPass.java:322)
	at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:133)
	at com.intellij.concurrency.ApplierCompleter.tryToExecAllList(ApplierCompleter.java:231)
	at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:159)
	at com.intellij.concurrency.ApplierCompleter.tryToExecAllList(ApplierCompleter.java:231)
	at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:159)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:988)
	at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:105)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:592)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:538)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:59)
	at com.intellij.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:116)
	at com.intellij.concurrency.ApplierCompleter.lambda$compute$0(ApplierCompleter.java:96)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:167)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:160)
	at com.intellij.concurrency.ApplierCompleter.compute(ApplierCompleter.java:96)
	at java.base/java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:746)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:290)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1020)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1656)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1594)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:177)

Environment

Operating System: Windows 10
IDE Version: CLion 2019.3 EAP - happened with previous versions as well
Cppcheck plugin version: 1.2.0

Steps to reproduce the behaviour
I have no idea how to reproduce this, but it happens quite a bit while woring on a project.

@fastaturtle, any thoughts?

FYI This happens very frequently in one of my installations. In the other one I have never seen this at all. Both are running the same CLion, Cppcheck and plugin version.

Looking at the plugin there is no special handling for isOnTheFly i.e. on the fly editor highlighting. Just grazing over the interface and some other plugins in the intellij-community repo you probably need to implement it using LocalInspectionTool.buildVisitor() instead.

Just got a reply from a CLion developer about this:
The stack trace looks like it's an IntelliJ platform issue - I've seen it
somewhere else as well, will try to take a close look.

So it seems it is yet another upstream issue.

I haven't come across this issue in quite a while but it only happened in a installation I am no longer using. So I am gonna keep this open for now.

I am seeing this issue occur multiple times per day.
Briefly, I see the stack trace above, and I am using:

macOS Ventura 13.3.1(a)
CLion 2023.1.2, (installation managed by JetBrains Toolbox)
cppcheck 2.10.3 (installed via "brew" into /usr/local/bin)
cppcheck plugin for CLion version 1.6.2

Let me know if there is additional information I can provide.
Sorry, but I am exclusively a C++ developer so you probably wouldn't want any PR I could give you ;-)

Could you also please post your trace? Thanks.

BTW: in searching on terms related to this I see that nx-console-idea-plugin also had a bug with a similar stack trace along with a fix.
The Bug
The Fix
Is this what you need, or is there another "trace" you need from CLion?
java.lang.Throwable: Synchronous execution under ReadAction: /usr/local/bin/cppcheck -I/Users/jmonschke/git/splunk1/main/src/search/dispatch/sscqueryinfo --enable=warning,performance,portability,style --language=c++ --xml /private/var/folders/w5/ncq8q__95h97tc3vwl1zt1d40000gn/T/DeEBpW1J_BucketTypes.cpp, see com.intellij.execution.process.OSProcessHandler#checkEdtAndReadAction() Javadoc for resolutions
	at com.intellij.openapi.diagnostic.Logger.error(Logger.java:202)
	at com.intellij.execution.process.OSProcessHandler.checkEdtAndReadAction(OSProcessHandler.java:163)
	at com.intellij.execution.process.OSProcessHandler.waitFor(OSProcessHandler.java:94)
	at com.intellij.execution.process.CapturingProcessRunner.runProcess(CapturingProcessRunner.java:122)
	at com.intellij.execution.process.CapturingProcessRunner.runProcess(CapturingProcessRunner.java:81)
	at com.intellij.execution.process.CapturingProcessHandler.runProcessWithProgressIndicator(CapturingProcessHandler.java:72)
	at com.github.johnthagen.cppcheck.CppCheckInspectionImpl.executeCommandOnFile(CppCheckInspectionImpl.java:220)
	at com.github.johnthagen.cppcheck.CppcheckInspection.checkFile(CppcheckInspection.java:60)
	at com.intellij.codeInspection.LocalInspectionTool$1.visitFile(LocalInspectionTool.java:146)
	at com.jetbrains.cidr.lang.psi.impl.OCFileImpl.accept(OCFileImpl.java:428)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$10(InspectionRunner.java:323)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1102)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$11(InspectionRunner.java:331)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:229)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:187)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$12(InspectionRunner.java:337)
	at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:159)
	at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:151)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$13(InspectionRunner.java:300)
	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:130)
	at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:119)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$processInOrder$14(InspectionRunner.java:300)
	at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.lambda$call$0(JobLauncherImpl.java:299)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.concurrency.JobLauncherImpl$1MyProcessQueueTask.call(JobLauncherImpl.java:284)
	at com.intellij.concurrency.JobLauncherImpl.processQueue(JobLauncherImpl.java:352)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.processInOrder(InspectionRunner.java:299)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.visitElements(InspectionRunner.java:274)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.lambda$inspect$4(InspectionRunner.java:138)
	at com.intellij.codeInspection.InspectionEngine.withSession(InspectionEngine.java:227)
	at com.intellij.codeInsight.daemon.impl.InspectionRunner.inspect(InspectionRunner.java:114)
	at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:115)
	at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:97)
	at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:57)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$1(PassExecutorService.java:382)
	at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1102)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:374)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$executeProcessUnderProgress$13(CoreProgressManager.java:604)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:679)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computeUnderProgress(CoreProgressManager.java:635)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:603)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:373)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:349)
	at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:229)
	at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:187)
	at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:347)
	at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:181)
	at java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
	at java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
	at java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
	at java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
	at java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)

BTW: in searching on terms related to this I see that nx-console-idea-plugin also had a bug with a similar stack trace along with a fix.

Yeah, I was thinking that it might be "fixed" by simply making it asynchronous (actually pretty obvious as it complains about being "synchronous"). But that would "just" be getting of the error in our case and by the looks of it making the code more complex. The proper solution would probably be fixing #65. It is supposed to be "easy" but I am not going to look into that for quite a while (if ever).
Being able to debug the plugin might also help but I haven't been able to get that to work and I basically do "printf debugging". Make changes, build in IDEA, install in CLion, run it, check the notification, repeat, ... not very efficient. But without being able to reproduce it locally that would not be of much help.
It is quite baffling though that some installations have this error and some haven't. That isn't right and something is behaving differently upstream. Maybe some setting is different. I will take a look in a few days and see if I can figure something out.

@firewave I'm not sure if this is useful or not, but I found this link lately that talks about the best patterns for running external linting tools in an IntelliJ extension

https://intellij-support.jetbrains.com/hc/en-us/community/posts/11275128092690-What-is-the-suggested-pattern-for-implementing-a-plugin-that-runs-an-external-command-that-generates-inspections-

See also

https://github.com/koxudaxi/ruff-pycharm-plugin/issues/148

authors: firewave jmonschke-splunk johnthagen

repo: johnthagen/clion-cppcheck


text:
Error: Failed to load url - has no information

My original problem description is here.
What I found is that it's possible to detect the exact error using the onResourceError callback which gets fired before the onLoadFinished. So we can remember the last error and show it if onLoadFinished returns fail status.
I didn't do it myself because I feel that using such callbacks in the core might violate some rules or good practices of the project. Please, let me know what you think about the idea, so I can make a PR or just do it yourself if you feel like it.

Sounds feasible maybe. You would need to make sure you don't mix up the onLoadFinished of one page and the onResourceError of another page.
I doubt I would have time to do it myself anytime soon.
Any thoughts @johntitus?

I also have this problem, please push solution!

What problem do you have @nevmerzhitsky? This issue is a feature request, not a bug report.

@nevmerzhitsky and @flashhhh, can you try setting the horseman timeout to something big, like 30 seconds, and retrying this?

Hi, @johntitus!
Will try this a bit later. Is upgrading the package to the latest version required?
If not, I'm sure to say we always used timeouts greater then 30 seconds.
Our current working version is 3.0.1.

If you don't set the timeout in the Horseman constructor, it defaults to just 5 seconds.
It looks like that if a timeout occurs, the first thing that happens is the resource requested fails, which is the error that shows up, instead of a timeout.
I do recommend upgrading before testing, just to ensure we're all on the same page.

Rechecked. As I said, we already set a large timeout value (30 sec currently). I tested with greater values (like 60) and nothing changed.

Still persists for me even when settings timeout to 30 seconds. Has to be something with loading the page, it error's within the first couple seconds of it trying to load a page for me over https with the 30 second timeout. So the large timeout is more-so useless than anything.

I've been experiencing this same issue with a call to the .download() function. Even with an astronomically high timeout set at the constructor level, the .download() request will fail after 5 seconds and throw an error "Unhandled rejection Error: Failed to load url".
Is there a way to override the five second xhr timeout that is occurring under the hood?

source: gharchive/issue

authors: Its-its awlayton bllevy flashhhh johntitus kirillrogovoy nevmerzhitsky

repo: johntitus/node-horseman

license: mit

license_type: permissive

license_source: bigquery


text:
Feature Request: Station announcement block

Is your feature request related to a problem? Please describe.
In older versions of this mod, an announcement would play before the door closed, but this feature has been removed in the new version.
Describe the solution you'd like
This block is capable of broadcasting specified announcements to players within a set range in a set manner.
Examples include train approach, arrival, and door closing announcements.
The block setup page:
Platform: (select platform)
Train approach broadcast content: (text)
When this announcement will be made before the train arrives: (select the length of time 0s-5min)
Train arrival broadcast content: (text)
Whether to enable it: (check box)
Content of door closing announcement: (text)
When this announcement will be broadcast before the train departs: (select the length of time 0s-5min)
Broadcast range: (select range, e.g. 5*5)
Whether to display the broadcast content in the chat bar: (check box)
Additional Information
If voice is enabled in the settings, the block can play a voice synthesized with the specified text, just like the train announcements.
For example: "列车即将进站，请小心列车与站台之间的空隙，本次列车去往xxx及沿途各站。The train is arriving,please mind the gap between the train and the platform.This train will stop service at xxx station."
(This is the Beijing MTR broadcast, the content of the broadcast in simplified Chinese and English is almost the same as MTR)
My English is not very good, sorry.

But...Sometimes Train schedule sensor can help you a lot...(doge)

Hello! You can join our discord and you can speak Chinese there as most of our staff can speak the language. This way your issue can get solved. Thanks! https://discord.gg/V5Ff5BXG.
Please go to #bug-reports.

Thank you for your reply!
I've joined Discord and this is not a bug report, but I didn't find a place to submit a suggestion.
------------------ 原始邮件 ------------------
发件人:                                                                                "jonafanho/Minecraft-Transit-Railway"                                                                                @.>;
发送时间: 2022年1月21日(星期五) 上午10:41
@.>;
@.@.>;
主题: Re: [jonafanho/Minecraft-Transit-Railway] Feature Request: Station announcement block (Issue #270)
Hello! You can join our discord and you can speak Chinese there as most of our staff can speak the language. This way your issue can get solved. Thanks! https://discord.gg/V5Ff5BXG.
Please go to #bug-reports.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you authored the thread.Message ID: @.***>

As people mentioned, you can use the train schedule sensor with command blocks.

authors: BadHunyun HistoryButtsandCo10 jonafanho winup-zhou

repo: jonafanho/Minecraft-Transit-Railway


text:
Rename generics in macro outputs to reduce conflicts

Good to know:

cargo +nightly fmt formatted the comments with long lines
I've made this PR because using SerializeDisplay on a struct that was generic over S (ex struct MyStruct<S: Borrow<str>> { ... } would fail as the struct generic type would conflict with the serialize generic S

Thank you for the PR. I will add a couple of tests to ./serde_with_test/tests/derive_display_fromstr.rs before publishing a new version. It already contains a case with generics, but none with the used 1-letters here, i.e., D, E, S.
bors r+

source: gharchive/pull-request

authors: Elrendio jonasbb

license_source: github-api


text:
Add content to home page

Describe the solution you'd like
Fill up the app by adding content to the home page. Probably describe the frameworks used in the app and features availabel : Fast-API, React, Material-UI, etc.

SwaggerUI, FastAPI, Beanie
React-Router, React hooks, Material UI, Vite[st]

license: MIT


text:
How to pass data from StatelessWidget to GetxController?

I have declare this on class that extends GetxController:
  var tipo = Get.arguments;
  var idPaciente = Get.arguments;
  var beneficiario = Get.arguments;
  var ciudadesList = Get.arguments;
  var nacionalidadesList = Get.arguments;

Where this is the type on each var:
  String tipo;
  int idPaciente;
  Beneficiario beneficiario;
  var ciudadesList = <Ciudades>[].obs;
  var nacionalidadesList = <Nacionalidades>[].obs;

So in the StatelessWidget i call this class GetxController like this:
Get.to(() => DetalleBeneficiario(),
                  arguments: {'editar',
                  controller.beneficiariosList[i],
                  controller.ciudadesList[i],
                  controller.nacionalidadesList[i],
                  controller.idPaciente});

But i have this error:
════════ Exception caught by widgets library ═══════════════════════════════════
The following NoSuchMethodError was thrown building DetalleBeneficiario(dirty):
Class 'String' has no instance getter 'nombre'.
Receiver: "editar"
Tried calling: nombre

I printed this before Get.to(...) and is work just fine:
print(controller.beneficiariosList[i].apellido);
print(controller.ciudadesList[i].nombre);
print(controller.nacionalidadesList[i].descripcion);
print(controller.idPaciente);

Can help me pls?

Can you please post some reproduce code? not just partially?

Hi, sorry!
The main questions now is how to access this parameters:
String tipo;
  int idPaciente;
  Beneficiario beneficiario;
  var ciudadesList = <Ciudades>[].obs;
  var nacionalidadesList = <Nacionalidades>[].obs;

By now can only access to String type with print(Get.arguments[0]); but not custom type and List.

Try this:
Get.to(() => DetalleBeneficiario(), arguments: {
                  'tipo': 'editar',
                  'beneficiarios': controller.beneficiariosList[i],
                  'ciudades': controller.ciudadesList[i],
                  'nacionalidades': controller.nacionalidadesList[i],
                  'idPaciente': controller.idPaciente
});

final arguments = Get.Arguments;
print(arguments['action']);
print(arguments['beneficiarios'][i].apellido);
print(arguments['ciudades'][i].nombre);
...

Hey, @eduardoflorence thanks!
I have this:
      Map<String, dynamic> arguments = Get.arguments;
      this.tipo = arguments['tipo'];
      this.idPaciente = arguments['idPaciente'];
      this.beneficiario = arguments['beneficiario'];
      this.ciudadesList = arguments['ciudadesList'];
      this.nacionalidadesList.reactive.value = arguments['nacionalidadesList'];

But it fail on this.ciudadesList = arguments['ciudadesList'] output:
type 'Ciudades' is not a subtype of type 'RxList<Ciudades>'
Clarity i am noob in flutter and Getx. But when is RxString i use ".value" but what about for RxList?

this.ciudadesList.assignAll(...)
On Tue, 23 Feb 2021, 04:46 Alejandro, notifications@github.com wrote:

Hey, @eduardoflorence https://github.com/eduardoflorence thanks!
I have this:
  Map<String, dynamic> arguments = Get.arguments;
  this.tipo = arguments['tipo'];
  this.idPaciente = arguments['idPaciente'];
  this.beneficiario = arguments['beneficiario'];
  this.ciudadesList = arguments['ciudadesList'];
  this.nacionalidadesList.reactive.value = arguments['nacionalidadesList'];

But it fail on this.ciudadesList = arguments['ciudadesList'] output:
type 'Ciudades' is not a subtype of type 'RxList'
Clarity i am noob in flutter and Getx. But when is RxString i use ".value"
but what about for RxList?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jonataslaw/getx/issues/1095#issuecomment-783695843,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAOVMXCEYT363TAKH6A75ADTALGCFANCNFSM4X56ANSQ
.

hi @ghprod thank for the response, but i try this:
      this.ciudadesList.addAll(arguments['ciudadesList']);
      this.ciudadesList.add(arguments['ciudadesList']);

With not success, also i declare variable ciudadesList like this:
List<Ciudades> ciudadesList = <Ciudades>[].obs;
I recibe this error:
type 'Ciudades' is not a subtype of type 'Iterable<Ciudades>'
I don't know this is relate to Getx anymore, but you can help me one last time at least?

Can you make some reproduce code? It's so hard to help with just a piece of code.

Sorry, is my fault, i don't pass list type in arguments, instead this:
Get.to(() => DetalleBeneficiario(), arguments: {
                  'tipo': 'editar',
                  'beneficiarios': controller.beneficiariosList[i],
                  'ciudades': controller.ciudadesList[i],
                  'nacionalidades': controller.nacionalidadesList[i],
                  'idPaciente': controller.idPaciente
});

now pass like this:
Get.to(() => DetalleBeneficiario(), arguments: {
                  'tipo': 'editar',
                  'beneficiarios': controller.beneficiariosList[i],
                  'ciudades': controller.ciudadesList,
                  'nacionalidades': controller.nacionalidadesList,
                  'idPaciente': controller.idPaciente
});

Thanks to all for help me...

authors: eduardoflorence ghprod xhidnoda

repo: jonataslaw/getx


text:
Navigation fixes

rolled back participatesInRootNavigator
made GetNavigator key optional
Split dashboard and home routes (in example_nav2)
Removed 'Pages in a router outlet shouldn't participate in the root navigator' restriction
Added Navigator key to dialogs as an optional parameter

fixes https://github.com/jonataslaw/getx/issues/1642

LGTM

authors: ahmednfwela jonataslaw


text:
RadioList: pagedown/pageup support

This PR:

was part of https://github.com/jonathanslenders/python-prompt-toolkit/pull/758
contains support for the PageUp / PageDown keys on RadioList

This has been merged here: https://github.com/jonathanslenders/python-prompt-toolkit/commit/6f11f1a9b742f9c7ff3024f5692a2a91b8930be8
Thanks a lot!

repo: jonathanslenders/python-prompt-toolkit


text:
🛑 BA - Bosnia and Herzegovina is down

In 5abb3d7, BA - Bosnia and Herzegovina (https://www.skyshowtime.com/ba/help/) was down:

HTTP code: 404
Response time: 723 ms

Resolved: BA - Bosnia and Herzegovina is back up in bd6e825 after 14 minutes.

repo: jonesyriffic/gsp-sst


text:
Global implementation of SideMenu in project

New Issue Checklist

I have read the guidelines for contributing and I understand:

[x] My issue is happening in the latest version of SideMenu.
[x] My issue was not solved in the README.
[x] My issue can not be answered on stackoverflow.com.
[x] My issue is not a request for new functionality that I am unwilling to build and contribute with a pull request.
[x] My issue is reproducible in the demo project.

Issue Description

First, thank you for making this public, it is incredible.
Anyway, here we go, I initiated SideMenu via the storyboard. When I tap on the "menu" button in my view controller the menu slides in perfectly with the added modifications available through SideMenuManager. When I select an option in the menu I have it presenting modally another view controller. The issue comes from hitting the "menu" button on this new view controller--the menu is no longer presented as it was the first time (sliding in from left to right), instead it appears to just appear modally over the top of the view controller. I get the same warning you spoke to before --> (https://github.com/jonkykong/SideMenu/issues/194) ("SideMenu Warning: menuLeftNavigationController cannot be modified while it's presented."). I tried to initialize the menuLeftNavigationController in the AppDelegate as suggested but it still is "ignoring" the presentation properties. I have tried calling the menuLeftViewController from the new view controller a few different ways but still am getting the same result. Am I interpreting the error message wrong? Or, am I just an idiot missing something simple? lol! Thank you in advance for any insight here!

For simplicity, SideMenu is a singleton, meaning it is globally defined once. When you modally present a screen over SideMenu, the menu is still in the view hierarchy, even though visually it appears not to be through the animations. Therefor when you try to present the menu again from the modal screen, it can't be shown because it is already being displayed. It will only stop being displayed once you dismiss the modal screen.
From a design perspective, this is desirable since showing the same menu from a modal screen can create havoc from the user's perspective since they can get buried in a stack of modal or pushed screens without a clear idea of how to get back where they were, and it can also keep many view controllers in memory. The simple way to think of it is that the menu 'belongs' to the level of the hierarchy in which it is displayed like a TabBarController, and shouldn't be used in other levels (displaying a modal screen creates a new level).
If you must change this behavior, your options are:

Redesign SideMenu away from the singleton approach, so you can instantiate many different SideMenuManagers.
Ensure that the menu is fully dismissed before presenting your modal screen. You will have to avoid using segues in storyboard, and instead dismiss SideMenu when an item is tapped, and only once it is fully dismissed then present the desired screen from the view controller that showed SideMenu. This will have the unfortunate side effect of a slightly longer animation, since you'll need to wait for SideMenu to fully disappear before the modal screen can start appearing.

       let newViewController = storyBoard.instantiateViewController(withIdentifier: controller)

        self.dismiss(animated: true) { () -> Void in
            //Perform segue or push some view with your code
            UIApplication.shared.keyWindow?.rootViewController = newViewController
        }

       let newViewController = storyBoard.instantiateViewController(withIdentifier: controller)

        self.dismiss(animated: true) { () -> Void in
            //Perform segue or push some view with your code
            UIApplication.shared.keyWindow?.rootViewController = newViewController
        }

@j0cker MAN!!! THANK YOU SO MUCH 🙏🏼🙌

authors: j0cker jonkykong mohsinka taylorhredding

repo: jonkykong/SideMenu


text:
Feature request:  Add default Expanded/Colapsed Icon

Hi @jonmiles , first I would like your excellent work with this treeview.
Could be interesting if we can choose from the creation of the tree, the default expanded/colased icons.
$('#tree').treeview({
  data: data,         // data is not optional
  levels: 5,
  backColor: 'green'
  default-expanded-icon:glyphicon glyphicon-minus-sign
  default.-colapsed-icon: glyphicon glyphicon-plus-sign
});

Thanks for comments,
Unless I'm mistaken you can already do this with the options expandIcon and collapaseIcon, it would look something like this.
$('#tree').treeview({
  data: data,
  expandIcon: 'glyphicon glyphicon-minus-sign',
  collapseIcon: 'glyphicon glyphicon-plus-sign'
});

Feel free to re-open if I've have missed something!

sorry I didn't see before...

Hi @jonmiles sorry for my ignorance .
I'm trying to get  the node  object data from an event..
how can I get here the node object, from inside the event function ?
$('#tree').treeview({
	data: getTree(),
	expandIcon: 'glyphicon glyphicon-minus-sign',
	collapseIcon: 'glyphicon glyphicon-plus-sign',
	nodeIcon:'glyphicon glyphicon-th-list',
	onhoverColor: 'orange',
	onNodeCollapsed: function () {
		alert('collapsed');
                /*how can I get here the node collapsed object? */
	},
	 onNodeExpanded: function () {
		 alert('expanded');
                /*how can I get here the node expanded object? */
	},
	onNodeSelected: function () {
		 alert('selected');
                /*how can I get here the node selected object? */
	},
	onNodeUnselected: function () {
	          alert('unselected');
                /*how can I get here the node selected object? */
	},
	onSearchComplete: function () {
	},
	onSearchCleared: function () {
	}
});

You need to define the event handlers arguments e.g.
onNodeSelected: function(event, node) {
}

authors: jonmiles toni-moreno

repo: jonmiles/bootstrap-treeview


text:
Custom slugify

I have a cyrillic symbols in headings and markdown-toc slugifying them into sequence of -----.
There are npm module transliteration.cyr, that converts cyrillic symbols into latin, but i can not use it because there is no custom slugifying support. It would be nice, if you will add it or share another solution.

You should be able to pass a custom slugify function on the options. have you tried it?

No, cause i dont know how to do that. Remarkable does not have any certain documentation how to do that. It would be very nice if you show me any example, please.

It's on the readme
Sent from my iPhone

On Apr 30, 2015, at 4:13 PM, disharmonized notifications@github.com wrote:
No, cause i dont know how to do that. Remarkable does not have any certain documentation how to do that. It would be very nice if you show me any example, please.
—
Reply to this email directly or view it on GitHub.

sorry I was on my iphone at the time, I was wrong. Looks like I only have it documented locally. I'll add docs to the readme and link back.

Thank you, i will waiting for it!

authors: disharmonized jonschlinkert

repo: jonschlinkert/markdown-toc


text:
Uncss friendly version?

With the following classes ignored:
'.is-active','*.is-active', '.hamburger--collapse','.hamburger-*', '.hamburger-inner', '.hamburger', '.hamburger-box',
        '.hamburger--collapse-r.is-active', '.hamburger--collapse.is-active', '.hamburger--collapse-r',
        '.hamburger--collapse.is-active', '.hamburger-inner::before', '.hamburger-inner::after',

and the following markup:
<button class="hamburger hamburger--collapse" type="button" aria-label="Menu" aria-controls="navigation">

</button>

I'm unable to get any hamburger on my mobile display and even on the desktop I'm not able to retain the animations...

@HaoZeke I don’t fully understand what you’re trying to do—mind elaborating? To me, I get the impression that you’re ignoring classes that are required for the library to work...

No no, I'm trying to ignore classes required for the library to work...
Ignored means that uncss will not operate on them.. Thereby passing them to my source just as they were written.
Otherwise, regular css classes have certain attributes stripped, notably animations.

authors: HaoZeke jonsuh

repo: jonsuh/hamburgers


text:
Commands on demand not working

Hi! This is a great plugin, thank you for share!
I'm testing somethings with vim-phpqa and, so far, almost everything is OK, except commands on demand aren't working.
So, if I have a syntax/phpcs problem, the Errors window appears and show me things when a save the file. However, when I try to run :Php or :Phpcs, nothing happens!
I'm using Ubuntu 13.04 with Vim 7.4 building from source.

My bad on this: it's been so long that I think this issue is probably redundant, due to the number of changes. Hopefully the latest version won't have this problem.

authors: joonty tarciozemel

repo: joonty/vim-phpqa


text:
Style stack isn't remembered on multiple uses

If you store a style stack in a variable, e.g. const colour = tc.red.bgCyan.bold, the first call will be styled as expected, but any further calls to it will only have the first base style. I dunno if this is by design or whatever, but thought I'd report it just in case.
Reproduction
const tc = require('turbocolor');

const func = tc.red.bgCyan.bold;
const first = func('foobar');
const second  = func('foobar');

console.log(first, second);

Result

@Ovyerus Yup, this behavior is expected. Calling func will reset the stack, so the second call fails.
I would do this:
const func = s => tc.red.bgCyan.bold(s)
const first = func('foobar')
const second  = func('foobar')

console.log(first, second)

or this:
const first = tc.red.bgCyan.bold('foobar')
const second  = tc.red.bgCyan.bold('foobar')

console.log(first, second)

This behavior was introduced in https://github.com/jorgebucaran/turbocolor/commit/9b1b3c20b94b312109258f54b3d57da3323324d4.

Ah I see. Yeah I ended up using the first style with the wrapping clojure, but I wasn't sure if it was intended behaviour or not.
Thanks for the fast reply!

@Ovyerus Just to be clear, you don't need to do:
const func = s => tc.red(s)

...since red (as well as every other style/color) is a named export. Every style keeps an internal stack/array which is reset to its original value every time you use it as a function.
const  { red } = require("turbocolor")

console.log(red("foo"), red("bar")) // Okay!

Now, if you want to create a chain like that, in your original post, your two options are:
const redBgCyanBold = s => tc.red.bgCyan.bold(s)
console.log(redBgCyanBold("foo"), redBgCyanBold("bar"))

// or

console.log(tc.red.bgCyan.bold("foo"), tc.red.bgCyan.bold("bar"))

authors: Ovyerus jorgebucaran

repo: jorgebucaran/turbocolor


text:
Made travis test against all versions of rails

Right now travis will only test against the latest version of rails.
This commit sets up multiple gemfiles, each with a different version of
rails, which travis will run against the latest version of ruby.

:+1: thanks

@jorgemanrubia I've fixed the build failure in this now

authors: iainbeeston jorgemanrubia


text:
Allow multiple files as command line input to decompile multiple files at once

Ability to decompile multiple files at once from windows explorer by drag&drop or "open with" multiple selected files.

Fixed in release https://github.com/jorisdg/DEvaheb/releases/tag/v2.0-beta.2

repo: jorisdg/DEvaheb


text:
搜索引擎搜索的时候会慢半拍再出来

Describe the bug
问题描述
搜索引擎搜索的时候侧边chatGPT会慢半拍，答案再出来，而同类竞品 chatGPT-search-engine-extension 在这方面似乎没有这个问题。
同样使用OPENAI API GPT-3.5-turbo接口。
Expected behavior
期望行为
优化速度，达到与 chatGPT-search-engine-extension 同样的响应速度

不是很确定你指的是不是我开发的chatGPT-search-engine-extension
两者在这方面的工作原理完全一致, 我自己使用速度也没有问题
请问你使用的是什么搜索引擎, 你可以试试同时开启这两个扩展, 不排除是openai的服务器影响导致的偏差

不是, 这个项目是该项目的原始上游, 其中多搜索引擎的支持是我开发的, 原理层面也是一样的
我注意到你的截图里, 我的插件生成的内容更长, 这方面有一定随机性, 生成内容更长等待也会更久
我建议你同时开启两个插件, 并都开启always模式, 然后测试5到10次, 对比速度

主要是我这个支持了大量额外站点, 所以默认手动模式, 自动的可能很多站点不需要

authors: UpDownXH josStorer

repo: josStorer/chatGPTBox


text:
Ola Josago

Missing logo png's from 1989 to 2024 added.
Wonderful Database btw.
I'm a GitHub noob, so excuse me if I did it wrong...

Thanks, just now I was automating that process. What website did you get it from?

Got it from the english Wikipedia site. I converted some  from jpg to png.


text:
Setting the quality of the video playback depending on network speed

Is your feature request related to a problem? Please describe.
Hi, This library is great. Thanks!
Many parts of the world, the network speed is very slow, and there is no option to set the quality of the video played
Describe the solution you'd like
Set the quality of the video playback depending on network speed/ option to change the quality.

Hi @niftykurian , are you using tracks to switch them? You might need to provide the proper tracks in each bitrate.

I have the same issue here. it's will be helpful if we have control of quality and auto-switch when we have a slow internet connection.
this example video has multi quality: https://content.jwplatform.com/manifests/yp34SRmf.m3u8
you can see it from here: https://www.jwplayer.com/developers/stream-tester/

authors: fadizant josejuanqm niftykurian

repo: josejuanqm/VersaPlayer


text:
Status re Pulsar?

Hi there. First off, thank you for creating and maintaining this plugin! Easy, fast, reliable paragraph reflowing feels like a superpower, and something that I can't live without.
With Atom having been sunset, and Pulsar rising from those ashes, what are your thoughts on the current status of this plugin? Are you still using it and interested in maintaining it? Are you doing so in Atom, or in Pulsar, or something else?
I ask because I've recently come back to "Atom" in the form of Pulsar. It's the actively-maintained-and-developed community fork of Atom, and I have a few updates and fixes for this plugin that I'd like to share. (Mostly, fixes for flowing "docblock" style comments and an update to recognize code comments when using  tree-sitter parsers.) I'm wondering how to proceed here.

If you're no longer using/maintaining this, I am willing to take over (here or on a fork) and make the updates needed to keep it working and to get it published to the Pulsar package registry.
If you are still using/maintaining this, I'd love to talk about how I can help it continue working for Atom & Pulsar & wherever else it's in use.

Thank you again!

Hi, I'm glad to hear you've found it useful! I've moved over to VSCode so I'm unfortunately not maintaining it anymore. You are more than welcome to fork it for Pulsar if you'd like!

authors: claytonrcarter josh-berry

repo: josh-berry/magic-reflow


text:
Implemented ILogger.BeginScope

Scopes are added to the log4net ThreadContext, if the value is IEnumerable<KeyValuePair<string, object>>. This is a convention of the Serilog provider as well, see here: https://nblumhardt.com/2016/11/ilogger-beginscope/
As a bonus, it also supports IEnumerable of (string, object) tuples.

Hi, are you still maintaining this project? ;-)
Just a quick answer would be helpful, too.


text:
move credentials out of source code

I think it would be helpful to move username and password out of the source code into git ignore config files. Happy to work on this

Yeah, that would be great. Would recommend using a .env file as that seem to be best practise these days.

authors: joshfraser westonplatter

repo: joshfraser/robinhood-to-csv


text:
Wierd Spawning bug

for some reason it is spawning pigman trophies

Sounds like you had an id glitch.

authors: joshiejack mightydanp

repo: joshiejack/Mariculture


text:
Transform Changelog into a modal

Changelog is not a modal;
Adds cross icon (close icon);

From:

To:

Closing PR since it does not follow the code format guidelines

repo: joshniemela/KU-courses


text:
update dependencies

Just npm audit fix to update dependencies.

@apexad I'm assuming that after I merge this I should bump to the next eufy-robovac version that I just released?

@joshstrange yes, please bump versions of this plugin (which I think will actually be 1.0.4) and eufy-robovac too.  I can also do it once we make me a collaborator.  Up to you.

@apexad This has been merged, I bumped the eufy-robovac the newest, and published this under 1.1.0. I'm working on adding you now

@joshstrange I just wanted to check with you to confirm if it is ok to add myself as an author of this plugin and node script in package.json?  I'm planning on doing a bunch of updates and just want some credit there for it, and it will help to redirect questions to me on Reddit/Github/Discord.

What about doing the update first and then asking for credits?
btw: the fix for the current version was mine...
So I highly suggest to contribute first before "highjacking" this.
But this is just my oppinion.
I don't care. ;-)

@MonsterEnergy-wtf I apologize for accidentally deleting your comment.  Also, I greatly appreciate that you let us all know this plugin was still working.
However, there was already a built dist/index.js floating around.  It actually seems like the real issue was simply that when this project was last updated prior to my coming onto it that the /dist/ folder was not getting pushed to npm.
I've already made changes in the published v1.1.1 to correct this and already have a beta version on npm https://www.npmjs.com/package/homebridge-eufy-robovac (which I am sure @joshstrange was notified of) that I am testing with other changes (removing webpack and just using tsc (type script compiler) and also removing the IP address as a config option). Since this all looks good, as far as I can tell, I will actually be working on making the 'Find' button optional and adding a config.schema.json (for https://www.npmjs.com/package/homebridge-config-ui-x) before publishing an updated version very soon.  If @joshstrange responds prior to then, I will also make the author update which I believe will be well deserved.
So, with that in mind, I think it's fair to say I've already spent.a considerable amount of time on this project as well as it's underlying library https://github.com/joshstrange/eufy-robovac where similar changes have been made including a pushed beta.

@joshstrange @MonsterEnergy-wtf FYI, I pushed v1.2.0 of the plugin and 1.4.0 of the underlying eufy-robovac library. As I mentioned above, it does the following:

Removes the need for webpack (uses the type script compiler)
Remove option to use IP address (must use deviceId)
Added hideFindButton config option
Added config.schema.json (for use with homebridge-config-ui-x)

authors: MonsterEnergy-wtf apexad joshstrange

repo: joshstrange/homebridge-eufy-robovac


text:
Allow Cookie module to be imported from http package in python3

Cookie module no longer exists in python3 and has moved to the http package

@jvlomax Thanks for your contribution!

@jotes Do you think you could do a release to PyPI using that change?

Hey, I'll do this today.

Much appreciated!

authors: jezdez jotes jvlomax

repo: jotes/django-cookies-samesite


text:
🛑 Upfos Indonesia is down

In 7dcec63, Upfos Indonesia (https://upfos.co.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Upfos Indonesia is back up in 8d4f69f after 11 minutes.

repo: jourjet/upptime


text:
figure 5

i presented to DARPA, and they requested that the x & y labels were more clear, eg

of activity neighbors & # of personality neighbors vs # of neighbors of X & # of neighbors of Y

shape & disorder
graph & creativity

also, the want a label on the colorbar (e.g. p-value),
or maybe we change the titles to be "Multiscale P-value Map"?
this is urgent, i want to send them the slides back today.
so, if you could update and post links in issue to new figs, i'll update my slides and send them back.

ok, real data figures updated on github!
On Wed, Aug 10, 2016 at 9:23 AM, joshua vogelstein <notifications@github.com

wrote:

Assigned #82 https://github.com/jovo/MGC/issues/82 to @cshen6
https://github.com/cshen6.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jovo/MGC/issues/82#event-751305138, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ALX0y8trnwvaIkfHABmN33O85pZwfoswks5qedDYgaJpZM4JhI0W
.

thanks!
On Wed, Aug 10, 2016 at 10:46 AM, cshen6 notifications@github.com wrote:

ok, real data figures updated on github!
On Wed, Aug 10, 2016 at 9:23 AM, joshua vogelstein <
notifications@github.com

wrote:

Assigned #82 https://github.com/jovo/MGC/issues/82 to @cshen6
https://github.com/cshen6.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/jovo/MGC/issues/82#event-751305138, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/
ALX0y8trnwvaIkfHABmN33O85pZwfoswks5qedDYgaJpZM4JhI0W>
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jovo/MGC/issues/82#issuecomment-238889981, or mute
the thread
https://github.com/notifications/unsubscribe-auth/AACjcuUvWKn-wsKAsi_nbDreEuIDo06yks5qeeRTgaJpZM4JhI0W
.

--
the glass is all full:  half water, half air.
neurodata.io, jovo calendar
https://calendar.google.com/calendar/embed?src=joshuav%40gmail.com&ctz=America/New_York

repo: jovo/MGC


text:
read text before videodirective

your framework doesn't support fourth parameter

Hey @vitaliidanchul
@MerryOscar added it here https://github.com/jovotech/jovo-framework-nodejs/pull/184
See https://github.com/jovotech/jovo-framework-nodejs/blob/master/lib/platforms/alexaSkill/alexaSkill.js#L842

ok, didn't see that!) Thank you!

authors: aswetlow vitaliidanchul

repo: jovotech/jovo-framework-nodejs


text:
Vulnerable dependency -  hapijs/hoek package

Github reports that https://github.com/hapijs/hoek package we use has a vulnerability.
Known vulnerability found
CVE-2018-3728
Moderate severity
hoek node module before 5.0.3 or 4.2.1 suffers from a Modification of Assumed-Immutable Data (MAID) vulnerability via...

package-lock.json update suggested:
hoek ~> 4.2.1
Always verify the validity and compatibility of suggestions with your codebase.

We should update the package and make a new release.

Output from npm audit
audit.txt

repo: jozefizso/generator-license


text:
Feature image not in .Content

Issue description
I customized my RSS feed to include .Content instead of .Description.
I noticed when using feature images that they don't end up in the feed.
My workaround is the set the image as a Markdown image and as thumbnail.
Is this behavior intended?
Theme version
v2.6.1
Hugo version
hugo v0.115.3+extended darwin/amd64 BuildDate=unknown
Which browser rendering engines are you seeing the problem on?
No response
URL to sample repository or website
No response
Hugo output or build error messages
No response

This is something I haven't previously considered, so it's working as intended, but it could definitely be improved. I might have to look into including the featured image in the RSS feed.

I've done a bit more digging into this and if you are going to use .Content in your RSS feed then there's no way to include the feature image. This is because the .Content parameter is immutable. Perhaps the workaround for this would be to add some logic to your RSS template to include the feature image before the content if one exists.

authors: janurskremer jpanther

repo: jpanther/congo


text:
🎨 Add breadcrumb to schema data

Add breadcrumb data to meta schema data

Thanks for adding this, @HolgerHuo. I'm happy with the changes and will merge it in now.

authors: HolgerHuo jpanther


text:
work mongo.events on top of activities

base it on the nagios logic

we'll work this on elasticsearch (very likely) but not the mongo.  this is because we want to run analysis of off events

repo: jparicka/cloudly


text:
Wrong import in youtube_api.py

Need to apply the following git diff to make it work.
I don't have rights to open a PR unfortunately :/
`-from . import AutoGPTYouTube
+from . import AutoGPT_YouTube
import requests
-plugin = AutoGPTYouTube()
+plugin = AutoGPT_YouTube()`

Thanks you helped me a lot!

@antonioarbues you say that you cannot create a pull request. How do I allow anyone to create a pull request?

I guess it's in the repo setting - don't know exactly

I guess it's in the repo setting - don't know exactly

You have to fork the repo first in order to create a pull requests.
#2

authors: MCFoxyDev antonioarbues jpetzke

repo: jpetzke/AutoGPT-YouTube


text:
any way to add a tag as part of a template?

In the standard MS templates there is the ability to add Tags

Is there any equivalent in ChildTasksTemplate?

You can define the tags this way
        {
          "name": "System.Tags",
          "value": "DEV"
        }

repo: jpiquot/ChildTasksTemplate


text:
🛑 Durant Rd Pediatrics is down

In dd5cb07, Durant Rd Pediatrics (https://drpeds.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Durant Rd Pediatrics is back up in afbd617 after 2 days, 8 hours, 56 minutes.


text:
🛑 TripleR is down

In 517c067, TripleR (https://tripler.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: TripleR is back up in 537512f after 20 minutes.


text:
🛑 Patagonia EMR is down

In 05ff01a, Patagonia EMR (patagoniaemr.com) was down:

HTTP code: 502
Response time: 526 ms

Resolved: Patagonia EMR is back up in ec6691f after 12 minutes.

repo: jpleasants/upptime


text:
Navigation Pattern v1

Define a navigation pattern for the site which provides users with guidance they need to compose navigation within their own websites or applications following best practises and using Salt's navigation components (Navigation Item and Tabs).
Scope for v1:
Initial version will focus on Navigation Item component. We will at some point in the near future fold in the Tabs side of things, build up combined navigation and the hierarchy of how they should be used together - that will depend on when tabs docs are released.
We are deprioritising the examples aspect for a Horizontal nav in this release, because there is a dependancy on the AppHeader pattern which we will need first.
For v2 and v3 we can fold in the guidance for Tabs and more complex structures of horizontal navigation e.g. a mega-menu and things we have seen in MCP such as pinning / favouriting.

1st Sept - put together a first draft of navigation pattern content, ready for @bhoppers2008 to review next week

11 sept - scope refined and reflected in issue description. Focus is on navigation item component, not tabs until this documentation is finalised. examples of vertical navigation currently being collected from dxd designers and will be created for testing purposes to see if our pattern guidance and components are fit for purpose before publishing this pattern. @dplsek is helping me with creating the visual examples.

Ongoing, tidying up examples. Spacing questions to be discussed about Navigation Item. Draft is mostly complete and being peer reviewed

Have made amends to Navigation Item spacing formula, with @dplsek and @JoanaMMoreira. First draft of pattern currently undergoing content review. Have set up time with @bhoppers2008 tomorrow to finalise pattern guidance so far.

Content have come back with the first round of copy amends, currently updating the pattern to reflect suggestions. Making tweaks to the format and mocking up some vertical nav templates to include with this release. Will aim to have final version ready for Friday for a final round of content + design reviews.

Pattern ready for @bhoppers2008 review. Has been through content review and updates have been reflected in the latest version in Figma. Once signed off, we can assign to dev to get on to the site.

Ben has reviewed, waiting for a final content review @mikearildbrown.
Caught up with Mark Tate and he mentioned he will allocate someone from dev to work with to get up on to the site this week and release the navigation item spacing updates (which have been merged to a PR) at the same time.

v1 complete. ready for dev. New ticket has been created: https://github.com/jpmorganchase/salt-ds/issues/2536

authors: joshwooding shey-v

repo: jpmorganchase/salt-ds


text:
--size-modifier updates

Whilst reviewing data grid updates inconsistencies were found between the size of the cell corner flag in figma and what we have as tokens in code. Mainly… we don’t have a token to match what we have in code.
Use of different tokens was explored explored using existing tokens to size the flag but --size-icon didn’t feel semantically correct and --size-adornment gives limited affordance, especially in hd-compact and hd.
That led to considering where we are using --size-adornment.
This issue will address three actions:

Rename --size-adornment to --size-modifier.
Update --size-modifier values from 6,8,10,12 to 8,10,12,14 (to offer improved affordance and standardisation).
Update components using --size-modifier.

Specific component features affected for #3 are:

Data Grid editable cell corner flag: Size
Data Grid RAG (error, warning, success) icons: Size and position
Form Field RAG icons: Size
Tooltip 'sharktooth': Size
Overlay 'sharktooth': Size

The result of updates are documented here.
Notes:
First column of grids is hd-compact.
Left grouping is the proposal, right is whats currently available.
I’ve illustrated how these would apply to Calendar, but this will be picked up in Calendar work which is currently WIP.

If anyone knows they need this, let us know and we will reconsider it's priority.
Parking in Q3 for re-prioritisation at start of Q3

Moving to Q1 due to in-activity and unclear priority


text:
Write short Foundations roadmap for internal site

Objective: Foundations roadmap that we can use to communicate to the stakeholders.
Content:

Business Opportunity
What's changing?
Current Status
Key Activities

Galao goal: Draft is complete

EOS 14 Oct Update: Draft written
Next Steps: Review required from @pseys

Latte Goal: review required and published

Draft can be viewed here (please make edits in additional colour or by copying original frame.)

Had the Bitbucket call with @mark-tate yesterday... @amritadesmet will sync with dev on Monday to get published by EOD on internal site

Update: Created a PR in Bitbucket, needs review

Lungo Goal: page to be published by EOS

31 Oct Update: PR approved in Bitbucket, will be released soon

Has been published

authors: amritadesmet dplsek mark-tate


text:
Date picker updates from unresolved feedback on docs and tests

updates to date picker from unresolved feedback:
https://github.com/jpmorganchase/salt-ds/pull/3234
in this PR, #discussion_ :

[x] r1604668383 - justify the usage of default formatter in docs
[x] r1604694793, r1604713656, r1604715324 - add controlled tests
[x] r1604701297 - updated docs around labels
[x] r1604705847 - fix input end date selection not closing calendar

I think we want to turn off input's autocomplete


text:
Doesn't seem to work anymore

always responds with links: [] and no error

https://www.npmjs.com/package/google-it
this one seems to work, the project seems active too

repo: jprichardson/node-google


text:
主页文档web login 那里少了一个)

JIM.login({     'username' : '<login username>',     'password' : '<login password>' }).onSuccess(function(data) {      //data.code 返回码      //data.message 描述 }.onFail(function(data){ #这一行onFail前面   //同上 });

请问具体是哪里

有问题可以去 极光开发者社区反馈

authors: gogobody helperhaps

repo: jpush/jpush-docs


text:
Can't have DT and NC as mods allowed.

Match will always abort when you select DT and NC. (Some DT lobbies people want to play NC basically and no way to make it so you can have either mods allowed)

Yes you're right... I'll create a more robust mod system for version 4. Thanks for taking the time to post the issue!

authors: conquestace jramseygreen


text:
Add SkipLast method

https://docs.microsoft.com/en-us/dotnet/api/system.linq.enumerable.skiplast?view=netcore-2.1

What is this mean to do? The docs are pretty sparse here. Does it mean remove last item from array?

That is odd. SkipLast should return all but the last n items from an array. So [1, 2, 3, 4, 5].SkipLast(2) should yield [1, 2, 3].

I'll add this one.

authors: PieceMaker bencoullie jreina


text:
[wip] Limit fields

This PR adds a flag to allow users to limit the fields that come back.

I'd like to provide users with the options they have for the --fields flag since they'll vary for each command (note: this would only print out the choices under the flag usage; bash completion of possible fields values is beyond this scope). This will probably require passing the keys that each command can send back to one of the functions in util.go. As I started doing this, I came upon a question: should every command produce output? Currently, some commands like deleting or rebooting a server don't print any output. The question arose when I considered that, at the moment, all of the output flags are a bit misleading for those commands.
Two options:

Every command produces output, even if it's just a success or failure message, or
Commands are divided into those that produce output and those that don't, and the ones that don't won't include the output flags.

I'm thinking option 1 is the better choice, but I'd like to know what others think.

My opinion is to do as little as possible within the rack cli, not forcing output when not necessary. That would include deleting and rebooting servers. That's not to say those specific ones don't make sense.
If I imagine for a moment that I was bulk deleting or rebooting, the output could come out something like:
$ rack servers instance reboot cluster01 cluster02 cluster03
Rebooting cluster01... ✅
Rebooting cluster02... ✅
Rebooting cluster03... ❌

Hopefully what I just wrote isn't interpreted too seriously. We're constraining ourselves to a particular output format (with good cause), but there might be other ways to report on results.
Then again, the fields I just showed could work just fine (probably minus emoji):
$ rack servers instance reboot cluster01 cluster02 cluster03
NAME       STATUS
cluster01  REBOOTING
cluster02  REBOOTING
cluster03  FAILURE

With Emoji, for giggles:
$ rack servers instance reboot cluster01 cluster02 cluster03
NAME      STATUS
cluster01  ✅
cluster02  ✅
cluster03  ❌

I'd argue nothing should be 100% silent - users expect some feedback like "success" or "failure" - this means polling in a goroutine potentially for long running tasks but it's a much nicer ux

OK, I think this is ready for review.

Alright, checking it out now.

Cool, looking good here. :+1:

authors: jnoller jrperritt rgbkrk

repo: jrperritt/rack


text:
Retrieve binary data as an ActiveRecord::Type::Binary::Data when using prepared statements

This avoid extra unescape and is symmetrical (Data in, Data out).
Huge impact on source, so I don't like this solution.  Do not merge!
Anyone see a better way?

quite HUGE and will likely break existing AR-JDBC extensions - NOT merge material for 1-3-stable if an API change is needed it should instead happen in 1.4 (should look at options of patching AR::Type)

authors: donv kares

repo: jruby/activerecord-jdbc-adapter


text:
Add scala unit tests

Add support for unit tests
Refactor to support better testing

Codecov Report

Merging #3 into master will decrease coverage by 22.97%.
The diff coverage is 85.00%.

@@             Coverage Diff              @@
##            master       #3       +/-   ##
============================================
- Coverage   100.00%   77.02%   -22.98%
============================================
  Files           13       29       +16
  Lines          129      235      +106
  Branches         9        9
============================================
+ Hits           129      181       +52
- Misses           0       54       +54

Flag
Coverage Δ

#react
100.00% <ø> (ø)

Impacted Files
Coverage Δ

...rc/main/scala/jscbe/modules/RepositoryModule.scala
100.00% <ø> (ø)

be/src/main/scala/jscbe/routes/SampleRoute.scala
3.33% <25.00%> (ø)

be/src/main/scala/jscbe/Starter.scala
100.00% <100.00%> (ø)

...main/scala/jscbe/configuration/Configuration.scala
100.00% <100.00%> (ø)

...in/scala/jscbe/configuration/DbConfiguration.scala
100.00% <100.00%> (ø)

.../scala/jscbe/configuration/HttpConfiguration.scala
100.00% <100.00%> (ø)

...main/scala/jscbe/modules/ConfigurationModule.scala
100.00% <100.00%> (ø)

.../src/main/scala/jscbe/modules/WebRouteModule.scala
100.00% <0.00%> (ø)

... and 13 more

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 3abad97...c7a16ed. Read the comment docs.

authors: codecov-commenter jscoobyced

repo: jscoobyced/jsc-fe-be


text:
CLI:Configuration: load local jscs modules if present

Fixes #894

@markelog npm i resolve --save ?

yep

You're a beast.

:+1:

authors: markelog mrjoelkemp zxqfox

repo: jscs-dev/node-jscs


text:
Bulk API Example Request

I would appreciate if you could add an example of how to structure a bulk API insert execution that includes one job with multiple batches. My use case is to break up a large csv file and process the chunks with the bulk API. While I can create the single job with multiple batches, I can't figure out how to monitor all of the batches for completion so I can close the job.  I assume it is some type of promise based solution, but I have not implemented anything like that before. Thanks.

In JSforce, there are two different level to achieve batch execution. One is low-level which is just mapped to REST API call, and the other is relatively high-level and watching the completion of the batch activity in one async/promise call.
In low-level API, you can create bulk job and batch by Bulk#createJob() and Job#createBatch(), execute by Batch#execute(), then watch each batch completion by Batch#check() (or Batch#poll()). High-level one is useful in the case you have one batch in one job, and just call one API Bulk#load() (or some other convenient synonyms).
In your case it seems you can use low-level API to wait each batch to complete. You can use Promise lib like q or bluebird to wait whole completion of these bulk activity.

Yes, I need to create multiple batches on one Job.  I was hoping to get an example of how to monitor one job with multiple batches.  If if you don't have an example, I will try to get it working, a will provide an example.

How about this ? (I've not tried actually, though)
var fs = require('fs');
var Promise = require('promise');
var files = [ "acc01.csv", "acc02.csv", "acc03.csv" ];
var job = conn.bulk.createJob("Account", "insert");
Promise.all(
  files.map(function(file) {
     var batch = job.createBatch();
     batch.execute(fs.createReadStream(file));
     batch.poll(5*1000, 30*1000); // poll interval = 5 sec, timeout = 30 sec
     return new Promise(function(resolve, reject) {
       batch.on('response', function(res) { resolve(res); });
       batch.on('error', function(err) { reject(error); });
     });
  });
).then(function(rets) {
  console.log('batch finished');
  console.log(rets);
}, function(err) {
  console.error(err);
});

I will check that out, thank you so much!!

This is what I ended up with as my final version.  The full code set also included a filereader that reads in a large CVS file using the HTML5 FileReader, and chunks it into smaller sets of records, which get added to the filearray variable.
   var job = conn.bulk.createJob("Account", "insert");
   Promise.all(
                filearray.map(function(file) {
                    var batch = job.createBatch();
                    batch.execute(file);
                    return new Promise(function(resolve, reject) {
                        batch.on("queue", function(batchInfo) {
                            batchId = batchInfo.id;
                            var batch = job.batch(batchId);
                            batch.on('response', function(res) { resolve(res); });
                            batch.on('error', function(err) { reject(err); });
                            batch.poll(5*1000, 60*1000);
                        });
                    });
                })
            )
            .then(function(rets) {
                  var successrec=0;
                  var errorrec=0;
                  var procrec=0;
                  var errormsg='';
                  for(var i=0;i<rets.length;i++){
                    for(var ii=0;ii<rets[i].length;ii++){
                        procrec++;
                        if(rets[i][ii].success==true){
                            successrec++;
                        }else{
                            errorrec++;
                            if(errormsg.length==0){
                                errormsg=rets[i][ii].errors[0];
                            }else{
                                errormsg='\n'+rets[i][ii].errors[0];
                            }
                        }
                    }
                    document.getElementById("loadresult").innerHTML = 'Processed : '+procrec+' with '+errorrec+' errors '+errormsg;
                  }
                  cursor_clear();
                  job.close();
                }, function(err) {
                  alert(err);
                });

I tried this approach but i'm getting an error "batch not started".
Could you please explain me where i need to check whether the batch is running or not?
and how do i find the reason not for batch executing?

Did you try my version or the original version posted by stomita?  My version does account for this issue. I was getting the same "batch not started" error when didn't wait to see if the batches were "queued" before starting the polling.

Thank You:)
Here is the code.
<apex:page showHeader="false" docType="html-5.0">

I checked in back end : Apex jobs, nothing was there.
Could you please share your complete code? Is it possible to insert 10K records via this?
Im not sure if we need to make any config changes.

Your code wasn't posted in the message.  In my version, I am inserting 100,000 records in about 40 seconds.

Thank You:)
Here is the code.
<apex:page showHeader="false" docType="html-5.0">
  <script src="//cdnjs.cloudflare.com/ajax/libs/jsforce/1.3.1/jsforce.min.js"></script>

<script>
function loadfile()
{
    var filearray=[ { Name : 'ACC #1' },
                { Name : 'ACC #2'  },
                { Name : 'ACC #3'}];

    var conn = new jsforce.Connection({ accessToken: '{!$API.Session_Id}' });
    var job = conn.bulk.createJob("Account", "insert");

   Promise.all(
  filearray.map(function(file) {
     var batch = job.createBatch();
     batch.execute(file);
     console.log('Executed batch');
     batch.poll(5*1000, 30*1000); // poll interval = 5 sec, timeout = 30 sec
     return new Promise(function(resolve, reject) {
       batch.on('response', function(res) { resolve(res); });
       batch.on('error', function(err) { reject(error); });
       batch.on('Batch not started', function(){console.log('not started');});
     });
  })
)

}
  </script>
  <input type="file" id="importfile" onchange="loadfile()"/>
</apex:page>

I checked in back end : Apex jobs, nothing was there.
Could you please share your complete code? Is it possible to insert 10K records via this?
Im not sure if we need to make any config changes.

Hello,
This is fixed, i was reading your post https://github.com/jsforce/jsforce/issues/139
I just added the following code and i could see a bulk data load job created
conn = new jsforce.Connection({
accessToken: '{!$Api.Session_Id}'
,proxyUrl: '/services/proxy'
});

authors: georgenjthomas jimrae stomita

repo: jsforce/jsforce


text:
Static shapes bug in moving or rotating

Moving or rotating static shapes does not alter the original physics shape, only where the shape is drawn.  Changing position or angle needs  to recreate the physics shape at the new location.

Fixed in 1.4.4

repo: jshaffstall/PyPhysicsSandbox


text:
Choices with "selected" attribute do not trigger "addItem" event - v3.0.4

I have recently updated all the Choices instances in the platform from v2.5.1 to v3.0.4. I have noticed that in the latest versions when a choice is pre-selected with selected: true at the point of initiation, it no longer triggers the event "addItem". For me I think this is a loss of functionality as in most cases I write the callback functionalities as a result of a choice being selected in the "addItem" event.
Is there an alternative event can detect pre-selected choices that I should use instead?
`
                             let my = this;
                                  new Choices(this, {
                                      search: false,
                                      callbackOnInit: function () {
                                          let choicesArray = [];
                                          let selected = false;
                                          my.connectionTypes.forEach((type) => {
                                              // If connectionType is set as default we pre-select it
                                              selected = type.default

                                             let choice = { value: type.sso.toString(), label: my.translateItem(type.name_libelle.translations), selected: selected };
                                             choicesArray.push(choice);
                                         });

                                         this.setChoices(choicesArray, 'value', 'label', 'selected', false);

                                         // Add event listener for when a choice is selected
                                         this.passedElement.addEventListener('addItem', function(event) {
                                              // When choice is selected update is_sso value
                                              my.is_sso = event.detail.value;
                                         });
                                    }
                               });

`

@Tahira-Farid I'm a bit confused. setChoices only accepts 4 arguments. See (here)[https://github.com/jshjohnson/Choices#setchoiceschoices-value-label-replacechoices]?

Hey guys!
I have the same problem. I want to add a handler on the selected item (to remove the item) and need an event like "addItem" to be triggered by the setChoices function.
Can somebody help me?

authors: Psyphant Tahira-Farid jshjohnson

repo: jshjohnson/Choices


text:
Non-standard conversion from given value into displayed value

If a string (or a number, when it works (#6)) is given as value with not enough decimals when a said precision is needed, some integers are turned into decimals.
Example: <CurrencyInput value="6300" precision="2"/> yields a field like [63.00] instead of [6300.00].
An easy way to avoid that when receiving numbers is as follows, but string values would require manual work:
    if (typeof value == 'number') {
      value = Number(value).toLocaleString(undefined, {
            style                : 'decimal',
            minimumFractionDigits: precision,
            maximumFractionDigits: precision
      })
    }

This issue should now be fixed in the latest release (also published to npmjs.com).  Thank you for this bug report and the sample code!
I decided it would be appropriate to coerce string values (using parseFloat) into numbers then passing them through the toLocaleString function.  A number of unit tests were added for this, including the example you presented, so thank you again.

repo: jsillitoe/react-currency-input


text:
Filtring with url params

The JSON API specification states this:

Note: JSON API is agnostic about the strategies supported by a server. The filter query parameter can be used as the basis for any number of filtering strategies.

Therefore, it is possible to filter results using the URL params like shown here: http://jsonapi.org/recommendations/#filtering
In #9, association filtering is used to filter the include part of the response. Is there a way to change this default behavior to filter the returned array instead of the include's content?
I know that I can use allow_filter with a block but I can't use the name of the relationship, I need to use another name.
Are you planning to implement this behavior? What are your thoughts about such behavior and where should I look to if I want to implement this?

I know that I can use allow_filter with a block but I can't use the name of the relationship, I need to use another name.

I think the best practice here is to be more explicit with the filter name. If we're hitting /positions you aren't filtering department - you're filtering department_id or department_name, etc.
That said, I believe Graphiti (the 1.0 version of Suite that is in alpha and will be beta shortly) would support either.

The problem with allow_filter approach is that I need to repeat the same code in a lot of places. How can I DRY things up? Would we be able to migrate from current version to 1.0 version?

I'm not sure what the repeated code would be?
Will be releasing a stable beta of Graphiti today, and yes I recommend upgrading if you can.

We have a big number of resources and each resource have numerous relationships. Writing allow_filter for each relationships of each resource would be cumbersome and error prone.
The code would be roughly like this:
allow_filter :relationship do |scope, value|
  # Split value if it's and array
  scope.where([relationship_id = value])
end

I'll be glad to work on a PR (maybe in graphiti?), if this behavior is desired. Where should I look into?

I'm not sure why you couldn't do allow_filter :relationship_id?
This is a first-class pattern in Graphiti:
class PositionResource < ApplicationResource
  attribute :employee_id, :integer, only: [:filterable]
end

I'm sorry, I didn't understand the first time that this behavior was already supported by using :relationship_id without defining the allow_filter block.
Thank you very much for your help.

No worries, glad that works!

authors: A-Boudi richmolj


text:
Default behaviour with simplejson backend and float NaN/inf produces JSON non-compliant with ECMA-262

As per: https://simplejson.readthedocs.io/en/latest/
simplejson.dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, encoding='utf-8', default=None, use_decimal=True, namedtuple_as_object=True, tuple_as_array=True, bigint_as_string=False, sort_keys=False, item_sort_key=None, for_json=None, ignore_nan=False, int_as_string_bitcount=None, iterable_as_array=False, **kw)
From the docs: "If ignore_nan is true (default: False), then out of range float values (nan, inf, -inf) will be serialized as null in compliance with the ECMA-262 specification. If true, this will override allow_nan."
While the default behaviour is useful, the output is not likely to be portable. I would argue that jsonpickle should set ignore_nan=True when using the simplejson backend.

+1, this caused us many headaches in our project

I'll gladly take a patch to do it.  It should be pretty easy ~ we already have a place in the code where the defaults are provided for the various backends (and users can override them too).
In jsonpickle/backend.py ~line 30 add ignore_nan to the json_opts and it should be golden.

authors: PawelTroka davvid ed-alertedh

repo: jsonpickle/jsonpickle


text:
Css url() with relative paths are not working out of the box

In translated css, url(../img/logo.png) urls are referring one directory up, than before (because style is being executed in the context of html page, not css, which is one level up).

This is out of jss context, its up to you how you build paths. There are different possibilities.

authors: afanasy kof

repo: jsstyles/jss


text:
enable fabric8 CI / CD

generated by UpdateBot

UpdateBot commands:
updatebot f8 --pipeline Release --overwrite false jstrachan-testing/spring-boot-webmvc

repo: jstrachan-testing/spring-boot-webmvc


text:
Added changes to handle timestamp and score

Fork that adds fix for bug where timestamps and scores got link-ified as potential phone numbers

where are the tests? what problem are you solving?

It's not possible to test this feature directly through glipdown. The function that runs a final check on potential phone numbers is a dependency not directly included. The function 'is_valid_pstn()' is initially set to false and changes if a Client object exists. This means that all numbers marked by the 'potential_phone_regex' are not link-ified by glipdown on its own. Therefore no tests can be done to prove that the numbers treated as exceptions are being marked or not.

And to answer what problem is being solved: Timestamps and Scores are being marked as potential phone numbers and occasionally pass through the link-ify step when they should not. This prevents time stamps that follow a standard form and small scores (i.e in the form of XX-XX) are treated as exceptions and are prevented from being linkified.

repo: jstrinko/glipdown


text:
Tooltips should be freely positionable and stay visible until mouse leaves widget

With the current implementation tooltips flicker with shorter tooltip delay times.
Or maybe it could be implemented as something like 'hide tooltip after mouse has moved a certain distance'.
In combination with the possibility to specify the position of the tooltip this would expand the capabilities of tooltips by a lot.

I agree the current behavior is kinda janky, and a distance threshold makes sense.  Will look at this for rtk v1.4.

authors: jtackaberry sinfricia

repo: jtackaberry/rtk


text:
Albacore, Porechop and Indexing

Hi everybody,
I would like to ask about the processing of the reads and Nanopolish. Our workflow includes basecall FAST5 files using Albacore and then process Albacore's output with Porechop to trim barcodes and other sequences.
For example, if I have a run with 12 barcodes, after Albacore basecalling and Porechop filter, I get 12 FASTQ final files. Could I CAT those Porechop FASTQ files into 1 file (let's name it Porechop_CAT.fastq) and use it in the Index command?
nanopolish index -d /path/to/raw_fast5s/ -s sequencing_summary.txt Porechop_CAT.fastq
And then, if the previous is feasible, could I use the Porechop output for each barcode as the reads needed to align? An imaginary example, with BC01_Porechop.fa reads I assemble a genome (BC01_Porechop_genome.fa) with Canu.
bwa mem -x ont2d -t 8 BC01_Porechop_genome.fa BC01_Porechop.fa | samtools sort -o BC01_Porechop.sorted.bam -T BC01_Porechop.tmp -
samtools index BC01_Porechop.sorted.bam

Thank you so much for your help,
Quim

Hi @Jaoquien,
You can run nanopolish index on each barcoded file individually, passing in the complete directory of fast5s each time:
nanopolish index -d /path/to/raw_fast5s/ -s sequencing_summary.txt BC01_Porechop.fa

This should do the right thing, and let you polish the individual barcoded assemblies.
Jared

@jts Thanks!
But If I perform for example the CAT of all Albacore's FASTQs and then I make the Index, then I only need to do the index once and not with every Barcode, don't I? So my question was that if I index ALL the Albacore's FASTQs in one file, then I could work with each barcode separately without the need of indexing each time the FASTQ reads. Am I wrong?

nanopolish finds the index file based on the name of the input .fastq. So when you try to run on BC01_porechop.fa it won't be able to find the master index file you constructed. Its possible to hack around this by changing filenames but its probably not worth it - indexing the files individually is better.

@jts Perfect, thank you so much for your help!

authors: Jaoquien jts

repo: jts/nanopolish


text:
[Discussion] [Live Share] Restricting language services to local files

In preparation for Visual Studio Live Share adding support for "guests" to receive remote language services for Solidity, this PR simply updates the current DocumentSelector to be limited to file and untitled (unsaved) files. This way, when someone has the Solidity extension installed, and joins a Live Share session (where files use the vsls: scheme), their language services will be entirely derived from the remote/host side, which provides a more accurate and project-wide experience (guests in Live Share don't have local file access to the project they're collaborating with).
Note: As an example, the TypeScript/JavaScript language services that come in-box with VS Code already have this scheme restriction, and so this PR replicates that behavior.

Thanks, this is great. I have not been able to test live share as it is not out yet in the UK. Well, last time I checked.

@juanfranblanco If you e-mail me (joncart@microsoft.com) with the e-mail address you registered with, I'll send you an invite for Live Share today.

Thanks, @lostintangent, I have sent you an email.

authors: juanfranblanco lostintangent

repo: juanfranblanco/vscode-solidity


text:
Replace IPC/arrow with parquet/hyparquet ?

See if IPC serialization could be replaced with parquet, using hyparquet.

We will stick with pyarrow.feather / apache-arrow for the moment to ensure compatibility between export and import.

repo: juba/pyobsplot


text:
Missing GND data

According to some SPARQL analysis, we have over 50.000 resources linked to GND, but without the GND data for them in our graph. They can systematically be created and loaded.
The same can be done for dbpedia, wikidata, viaf and other sources.

Query of all subjects linked to GND:
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT count(distinct(?s)) WHERE {?s owl:sameAs ?o. FILTER (regex(str(?o), "d-nb\\.info")) }

repo: judaicalink/judaicalink-labs


text:
Rocket: Incorrectly derived query parameters defined as <foo..>

I'm trying to add pagination query parameters to some endpoints in my Rocket 0.5 project.
#[derive(Debug, Serialize, Deserialize, FromForm, ToSchema, IntoParams)]
#[into_params(parameter_in = Query, style = Form)]
pub struct PageParams {
    pub page: u64,
    pub per_page: u64,
}

I originally defined my endpoint like this:
#[utoipa::path(
    context_path = "/user/api_keys",
    responses(
        (status = 200, body = Paginated<Item>),
        (status = 400, body = ()),
    ),
)]
#[get("/list?<page..>")]
async fn list_items(
    page: Option<PageParams>,
) -> Result<Paginated<Item>>, Status> {

This cased the following to be emitted in the parameters field in the spec:
- name: page
  in: query
  required: false
  schema:
    allOf:
      - type: 'null'
      - $ref: '#/components/schemas/PageParams'

To attempt to work around it, I figured out how I'm actually supposed to use IntoParams.
I originally defined my endpoint like this:
#[utoipa::path(
    context_path = "/user/api_keys",
    params(
        PageParams,
    ),
    responses(
        (status = 200, body = Paginated<Item>),
        (status = 400, body = ()),
    ),
)]
#[get("/list?<page..>")]
async fn list_items(
    page: Option<PageParams>,
) -> Result<Paginated<Item>>, Status> {

This emits the parameters correctly, but it still emits the incorrect, auto derived page parameter too.
parameters:
      - name: page
        in: query
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
        style: form
      - name: per_page
        in: query
        required: true
        schema:
          type: integer
          format: int64
          minimum: 0
        style: form
      - name: page
        in: query
        required: false
        schema:
          allOf:
          - type: 'null'
          - $ref: '#/components/schemas/PageParams'

Right, I suppose this is with the latest beta since there is at least the openapi 3.1 going on. Right those IntoParams should not implement ToSchema but need to investigate why the query params are not filtered out correctly with rocket.

Ah yes, I forgot to mention that I am using 5.0.0-beta.0

Okay, sure. First you should run the code with default-features = false and use debug feature at least (for debugging the types) and then with the rocket_extras feature flag and macros feature flag. E.g. I am running with following features.
{
    "cargo": {
        "buildScripts": {
            "rebuildOnSave": false
        },
        "noDefaultFeatures": true,
        "features": [
            "debug",
            "chrono",
            "time",
            "rocket_extras",
            "uuid",
            "decimal",
            "smallvec",
            "macros",
            "repr",
            "config"
        ]
    }
}

Then the code for this lives in ext.rs and ext/rocket.rs in utoipa-gen. Good idea is to create a test to test/*rocket.rs for scenario above and then start debugging e.g. with dbg!(..) macro what happens in utoipa-gen/src/lib.rs path path attribute macro when it resolves the query parameters for rocket. This is the entry point:
https://github.com/juhaku/utoipa/blob/8d5149ff8acf8af71af30bdb5baf29291e1c8462/utoipa-gen/src/lib.rs#L1702
The interesting part should be in here that what happens here:
https://github.com/juhaku/utoipa/blob/8d5149ff8acf8af71af30bdb5baf29291e1c8462/utoipa-gen/src/lib.rs#L1757-L1770

Thanks! I'll take a look tomorrow.

I don't think this is as trivial to fix as I thought.
The parameter resolution just takes into account the function arguments. There's no way to get the contents of PageParams without accessing the ToSchema impl to get the actual fields, which AFAIK requires the parameters to be resolved at runtime.

Right, if it gets to that, then for sure that is not really possible in any realistic terms. And yes because from code like below, there is no way to distinct the page param from a struct that implements IntoParams from primitive types. Or is it? Maybe we can filter out the parameters that are not primitive types from being added as params to the path. :thinking:

#[utoipa::path(
   context_path = "/user/api_keys",
   params(
       PageParams,
   ),
   responses(
       (status = 200, body = Paginated<Item>),
       (status = 400, body = ()),
   ),
)]
#[get("/list?<page..>")]
async fn list_items(
   page: Option<PageParams>,
) -> Result<Paginated<Item>>, Status> {

There was actually bug in resolving trailing query parameters. If the page was defined without Option<PageParams> it would have worked. The following will work, but there is PR #1089 that fixes this for rocket allowing it to be wrapped with Option.
#[get("/list?<page..>")]
async fn list_items(
   page: PageParams,
)  {}

repo: juhaku/utoipa


text:
AnyValue {} for third party types

Hello again,
I need to use some types that comes from a third party library but obviously they don't implement #[derive(Component)]. I looked at the doc and tried to do something like this
#[derive(Debug, Deserialize, Component)]
pub struct SampleStruct {
    ...
    #[component(value_type = Object)]
    pub rtp_capabilities: RtpCapabilities,
    ...
}

but sadly it stills tries to create a ref to something that doesn't exist
"rtp_capabilities": {
  "$ref": "#/components/schemas/RtpCapabilities"
},

what I would like instead is a way to specify that I want any kind of Object in #[component]. Obviously it would be better to actually have the correct type, but this would at least create a correct OpenAPI file that I can use.
Or maybe I'm missing something?

Yeah, this is not supported by desing actually. There is no way currently define object type and reason for this is that it is not helpful for users to see when they browse the OpenAPI doc or Swagger UI that the endpoint will return object which could contain anything. This might be a bit furstrating but for API consumers is a lot more helpful to see the actual types instead of any. If the OpenAPI spec was to be written manually it still has the need to define all the fields of the object.
But a way to get around this is to define type as a Map e.g. HashMap<String, String> since maps are by OpenAPI spec rendered as object types.
Support for this though could be added, but defining just an object is cheating and re-creating a type which has a lot of fields feels annoying.

Yeah I know it's cheating, I'm only using the generated OpenAPI spec to generate a rust client to use internally so it's not really important to me if I have some objects that aren't defined. I suggested this as a simpler solution for the time being; correct serialization of third-party struct would be better of course.

Sure, such a case overriding the actual type as object could be reasonable. This is something that need to be addressed in the desing itself. But should not be a big addition though. I'll add note of this to the projects kanban board.

#168 duplicate touches the same matter.

authors: RemiKalbe juhaku


text:
fluid+juicefs The display directory is read-only

Discussed in https://github.com/juicedata/juicefs/discussions/3474

Originally posted by xiashengjie April 13, 2023
Use the following configuration file
dataset.yaml
apiVersion: data.fluid.io/v1alpha1
kind: Dataset
metadata:
name: jfsdemo
spec:
mounts:
- name: minio
mountPoint: "juicefs:///demo"
options:
bucket: "http://192.168.103.129:9000/fluid"
storage: "minio"
encryptOptions:
- name: metaurl
valueFrom:
secretKeyRef:
name: jfs-secret
key: metaurl
- name: access-key
valueFrom:
secretKeyRef:
name: jfs-secret
key: access-key
- name: secret-key
valueFrom:
secretKeyRef:
name: jfs-secret
key: secret-key
runtime.yaml
apiVersion: data.fluid.io/v1alpha1
kind: JuiceFSRuntime
metadata:
name: jfsdemo
spec:
replicas: 1
tieredstore:
levels:
- mediumtype: MEM
path: /dev/shm
quota: 40Gi
low: "0.1"
log
2023/04/13 04:37:56.318179 juicefs[6] : Meta address: redis://192.168.103.140:6379/1 [interface.go:402]
2023/04/13 04:37:56.332463 juicefs[6] : Ping redis: 979.547µs [redis.go:2878]
2023/04/13 04:37:56.336622 juicefs[6] : Data use minio://192.168.103.129:9000/fluid/minio/ [format.go:435]
2023/04/13 04:37:56.375521 juicefs[6] : Volume is formatted as {
"Name": "minio",
"UUID": "48b0ef8c-5040-415e-b228-96e4e9a2c708",
"Storage": "minio",
"Bucket": "http://192.168.103.129:9000/fluid",
"AccessKey": "minioadmin",
"SecretKey": "removed",
"BlockSize": 4096,
"Compression": "none",
"KeyEncrypted": true,
"TrashDays": 1,
"MetaVersion": 1
} [format.go:472]
2023/04/13 04:37:56.648638 juicefs[22] : Meta address: redis://192.168.103.140:6379/1 [interface.go:402]
2023/04/13 04:37:56.655804 juicefs[22] : Ping redis: 855.124µs [redis.go:2878]
2023/04/13 04:37:56.657691 juicefs[22] : Meta redis://192.168.103.140:6379/1 is not available: lookup subdir demo: read-only file system [interface.go:409]
How can I solve this problem?

Hi @xiashengjie , dataset default accessModes is ReadOnlyMany. You can set accessMode to ReadWriteMany referring to https://github.com/fluid-cloudnative/fluid/blob/master/docs/zh/samples/data_accessmodes.md

How can I fetch juicefs metrics when using juicefsruntime in fluid? Any examples?
@zwwhdls

authors: xiashengjie zwwhdls

repo: juicedata/juicefs