One question...

Is it possible disable drag to right side when there is no slides to show on left side and vice-versa?

tks.

Hi @jeffsmor,
Thank you for your question. Please create a new discussion for questions and not a bug report like this.
I think what you want to achieve is covered in this issue here.
Best,
David

Hello @jeffsmor,
Let me know if you intend to respond to my comment. If I don’t get any response in 7 days I will delete this issue.
Best,
David

Hi @davidjerleke
I achieved what I expected by following this #42
Thanks.

Thanks @jeffsmor. Cheers.

Duplicate of #42


Add support for JSON formatting of infoset

Add support for JSON formatting of infoset

Create new argument infosetFormat
Update scala code to support infosetFormat:

Parse in value from extension.
Based on parse value decide what InfosetFormatter to use.

Update extension code to support infosetFormat:

Add it is a launch arg inside of the launch.json.
Set default value as "xml".
Add selection box for infosetFormat on the Launch Wizard.
Send value over the debugger on launch
Update infoset view to select file type based on infosetFormat so they look correct.
Update LaunchArgs interface to include infosetFormat.
Update unit tests to use value and check that it is set properly

Update yarn watch to generate src/version.ts before running actual watch command.

Closes #343
NOTE: 1.2.0 was released but holding off on merging this until the update for the daffodil website is merged and I send the release announcement out.

1.2.0 was released just need to update the page a bit before sending out the announcement so I am going merge this now.


Use dedicated Azure subscription

Request Azure funds for open-source projects through new program:
https://cloudblogs.microsoft.com/opensource/2021/09/28/announcing-azure-credits-for-open-source-projects/

Requested!

Azure funds for open-source is only applicable for OSS projects that are CNCF Sandbox or not part of CNCF. For Incubation/Graduation CNCF cloud credits is required for which Azure has no support.
The Azure Container Apps team, however, is more than happy to sponsor an Azure subscription which has been set up and will be activated soon! 🎉🎉🎉

The subscription should become active on May 1st.

Great news! Thank @tomkerkhove and all related Azure Teams!

Thanks for pushing the topic! ❤

Subscription afbc9e97-8dea-44a4-ad1c-ac577f221821 is live and maintainers were invited!


Don't always arm the profiling timer.

It causes a noticeable performance hit and can sometimes confuse GDB.
Tested with and without CPUPROFILE_PER_THREAD_TIMERS=1, and on a
linuxthreads system (CPUPROFILE_PER_THREAD_TIMERS=1 isn't supported
there) (I couldn't get all the tests to run there before, but
profile_handler_unittest and profiler_unittest.sh passed).
Originally written by<EMAIL_ADDRESS>I mostly had to deal with
integrating with CPUPROFILE_PER_THREAD_TIMERS.
Fixes gperftools/gperftools#409

Thanks a lot. Looks good. Applied.


sct_register_graymatter should be removed from example batch_processing script

Description
In the example batch_processing.sh script, we have an optional step that describes how to improve the registration by accounting for the gray matter shape:
https://github.com/neuropoly/spinalcordtoolbox/blob/0b7be07b7e64a57a303824e85930fbceb8b890f0/batch_processing.sh#L117
However, sct_register_graymatter is now deprecated (it was removed in v3.2.2), so we need to update this part of the script.

duplicate of https://github.com/neuropoly/spinalcordtoolbox/issues/1821


Fix Tile.tileset to return just the containing tileset instead of all…

Fixes #4095, but I'm not sure if it's the right way to do it.

I've fixed some linting errors, but otherwise, this seems fine to me.


HelloWorld

[x] Have you followed the contributing guidelines?
[x] Have you explained what your changes do, and why they add value to the Guides?

Please note: we will close your PR without comment if you do not check the boxes above and provide ALL requested information.

se y de tu lado lado amor como que me hice
El mié., sept. 8, 2021 6:18 AM, Mike McQuaid @.***>
escribió:

Closed #2532 https://github.com/github/opensource.guide/pull/2532.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/github/opensource.guide/pull/2532#event-5271630910,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATXEHUVDOFPW5EVJAX6WHFLUA5BBNANCNFSM5DS4JU5Q
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.


Some problem about calculate MAP

Hi, it seems not precise how you calculate the MAP. I check your function "mean_average_precision". When the relevant_num ==0, this query will be ignored when calculating the mean. That eliminates some extreme bad case (no similar images is retrieved) and the MAP will be a little higher.

I'm sorry for this bug. I have fixed it. But it doesn't have obvious impact on our result since it's unlikely for our method to find 0 relevant code in the database similar to a query.

Hi, I have one more thing to discuss with you. The relevant_num for calculating average precision in your code is how many similar images in the query result. But from my understanding,   the relevan_num is the number that how many similar images should be in the query result (retrieval all similar images). Take the imageNet experiment as an example, the relevant_num should be fixed to 1000.

Hi, I have one more thing to discuss with you. The relevant_num for calculating average precision in your code is how many similar images in the query result. But from my understanding, the relevan_num is the number that how many similar images should be in the query result (retrieval all similar images). Take the imageNet experiment as an example, the relevant_num should be fixed to 1000

In our code, the relevant_num is how many similar images within the closest 1000 images to the query image. MAP 1000 means that we retrieve the closest 1000 images and calculate the MAP.

Think about this: If only the top 2 retrieval images are similar, the relevant_number= 2, then the average precision equals to 100%.  But there are more than 1000 similar images in your database. The AP should calculate as 2/1000 = 0.2%.  check this discussion

AP is a ranking metric. If the top 2 retrievals in the ranked list are relevant (and only the top 2), AP is 100%. You're talking about Recall, which in this case is indeed 0.2%.

@kunhe. Actually, I'm not pretty sure about this. Have you check the above discussion? I think when we calculate the MAP, the recall should guarantee to equal to 100%.

@akturtle If you want 100% recall, you should go down the ranked list until all relevant items are found, say at position K. Sure, you can compute MAP on the sublist from 1 to K, knowing that recall is 100%. But here MAP is computed by fixing K=1000, and 100% recall may or may not happen at that point.


Convenience macros for hashtable operations

Right now, there's a bit of syntactic overhead when creating a hashtable for records:
  (scm:define main
    (scm:let*
      ([r0 (scm:letrec* (($record (scm:make-hashtable scm:string-hash scm:string=?))) (scm:hashtable-set! $record "fooBarBaz" 5) $record)]
       [s1 (recordUpdate r0)]
       [_2 (Test.Assert.assert (scm:fx=? (recordAccess r0) 5))])
        (scm:lambda ()
          (scm:let ([_ (_2)])
            ((Test.Assert.assert (scm:fx=? (recordAccess s1) 10))))))))

We could define a macro in the runtime module that allows us to do:
(rt:record
  ["fooBarBaz" 5]
  ..)

Likewise, record updates could also be prettier:
(rt:record-update $record
  ["fooBarBaz" 10]
  ..)

Thoughts?

SRFI 125 (https://srfi.schemers.org/srfi-125/srfi-125.html) defines a convenience constructor called hash-table with the following form:
 (hash-table comparator [ key value ] ...)

I reckon if we go through with #131 we wouldn't really need to define our own macro in our runtime.


Prevent errors from external resources not being ready

Pull Request
Bug Fixes

Fixes an issue where the registry has not been fully updated when doing multiple subsequent DevCon.exe operations, so it throws errors.

@PlagueHO

This change is

Getting a weird Markdown formatting error for the Changelog but not sure how to fix it since I don't see how it's violated.

Hi @thisjustin816 - Just ignore the markdown issues that Codacy reports - they're actually not blocking and and I don't think they actually issues. I should probably just disable Codacy...
I'll review tonight after work.


Uncaught TypeError: Cannot read property '123' of undefined

[Enter steps to reproduce below:]

...
...

Atom Version: 0.166.0
System: Mac OS X 10.10.1
Thrown From: js-refactor package, v0.3.0
Stack Trace
Uncaught TypeError: Cannot read property '123' of undefined
At /Users/radicsla/.atom/packages/js-refactor/lib/ripper.coffee:49

TypeError: Cannot read property '123' of undefined
  at Ripper.module.exports.Ripper.find (/Users/radicsla/.atom/packages/js-refactor/lib/ripper.coffee:49:21)
  at Watcher.module.exports.Watcher.rename (/Users/radicsla/.atom/packages/refactor/lib/watcher.coffee:150:22)
  at Main.module.exports.Main.onRename (/Users/radicsla/.atom/packages/refactor/lib/refactor.coffee:57:30)
  at atom-workspace.<anonymous> (/Users/radicsla/.atom/packages/refactor/lib/refactor.coffee:1:1)
  at atom-workspace.handler (/Applications/Atom.app/Contents/Resources/app/src/space-pen-extensions.js:115:32)
  at atom-workspace.jQuery.event.dispatch (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4681:9)
  at atom-workspace.elemData.handle (/Applications/Atom.app/Contents/Resources/app/node_modules/space-pen/vendor/jquery.js:4359:46)
  at CommandRegistry.module.exports.CommandRegistry.handleCommandEvent (/Applications/Atom.app/Contents/Resources/app/src/command-registry.js:243:29)
  at /Applications/Atom.app/Contents/Resources/app/src/command-registry.js:3:61
  at KeymapManager.module.exports.KeymapManager.dispatchCommandEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:549:16)
  at KeymapManager.module.exports.KeymapManager.handleKeyboardEvent (/Applications/Atom.app/Contents/Resources/app/node_modules/atom-keymap/lib/keymap-manager.js:391:22)
  at HTMLDocument.module.exports.WindowEventHandler.onKeydown (/Applications/Atom.app/Contents/Resources/app/src/window-event-handler.js:167:20)

Commands
     -0:25.5 core:confirm (atom-text-editor.editor.mini)
     -0:00.0 refactor:rename (atom-text-editor.editor.is-focused)

Config
{
  "core": {
    "disabledPackages": [
      "jsformat"
    ],
    "projectHome": "/Users/radicsla/workspace"
  }
}

Installed Packages
# User
atom-jshint, v1.5.0
docblockr, v0.5.8
highlight-selected, v0.7.0
js-refactor, v0.3.0
project-colorize, v0.1.0
project-manager, v1.14.1
refactor, v0.4.1

# Dev
No dev packages

/cc @atom/core

Got the same with
Cannot read property '1106' of undefined

and also identical to issue #12

(They all appear in ripper.coffee:49:21)


Status "yellow"

When I scale up to 2 client and 3 master pods then do a curl on the cluster I get status "yellow"
curl http://ip_address:9200/_cluster/health?pretty
{
"cluster_name" : "myesdb",
"status" : "yellow",
"timed_out" : false,
"number_of_nodes" : 6,
"number_of_data_nodes" : 1,
"active_primary_shards" : 5,
"active_shards" : 5,
"relocating_shards" : 0,
"initializing_shards" : 0,
"unassigned_shards" : 5,
"delayed_unassigned_shards" : 0,
"number_of_pending_tasks" : 0,
"number_of_in_flight_fetch" : 0
}
Any idea what is going wrong?
Thanks

Could this also be why my data isn't persistent even though I use a persistent disk for my data cluster?

OK.  I scaled up my data nodes to "2" each having a different persistent disk.  My data nodes have persistent disks, but my client and master nodes do not.  If all the nodes are killed, but my disks aren't, will I still lose all my indexes on reboot?

"unassigned_shards" : 5,

This is why it's yellow. Not sure about the configuration, but you need to make sure you provide enough nodes to satisfy your sharding needs.

If all the nodes are killed, but my disks aren't, will I still lose all my indexes on reboot?

If new data nodes are provisioned with said disks, and since it's just Lucene stuff, it should be OK.
One note I want to make sure you're following:

Attention: As of the moment, Kubernetes pod descriptors use an emptyDir for storing data in each data node container. This is meant to be for the sake of simplicity and should be adapted according to your storage needs.

Use this repo as an enabler to your Elasticsearch cluster on top of Kubernetes but do not assume this is ready for production. One will always need to set-up the Elasticserch configuration and persistent volumes per the desired scenario. I tried to be as agnostic as possible for the sake of simplicity.


Maybe there is a bug?

drops_ dose not be reset after Forward and Backward, it still keeps the value of last Forward.
I suggest to reset  drops_ at the beginning of Forward.
this is my implementation of FractalNet with global and local drop in caffe:https://github.com/KangGrandesty/fractalnet.
It may be useful for you.

@KangGrandesty  Hi,I read your code, its cool but i have one question.
In fractal_join_layer.cpp, I dont understand why "Dtype mult = Dtype(bottom_size)/Dtype(total_undrop_)"
I think Dtype mult = Dtype(1)/Dtype(total_undrop_), that makes the  top is element wise mean of the bottom

@zhanglonghao1992 I just set it like the dropout layer. if half of neurons are dropout randomly,  the rest will be scale to sure the output has a closer expected value with non-dropout. Then, I change it to element-wise mean and modify the code.


context: add Query helper

Codecov Report

Merging #44 (7cd95d8) into main (e419916) will decrease coverage by 0.49%.
The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main      #44      +/-   ##
==========================================
- Coverage   87.56%   87.07%   -0.50%
==========================================
  Files          17       17
  Lines        1078     1099      +21
==========================================
+ Hits          944      957      +13
- Misses         93      101       +8
  Partials       41       41


Create mcc.is-cool.dev.json

Requirements

[x] You have completed your website.
[x] The website is reachable.
[x] The CNAME record doesn't contain https:// or /.
[x] There is sufficient information at the owner field.
[x] There is no NS Records (Enforced as of Sepetember 4th, 2024)

Description
a website for my little python project
Link to Website
mcc-loader.github.io

I have read the CLA Document and I hereby sign the CLA


Don't reset the storage when the manifest file cannot be read because of iOS data protection

Summary:
This is to distinguish "manifest file does not exist or is corrupted" and "have no access to the manifest file yet" cases.
Starting with an empty dictionary is a reasonable fallback in case the manifest does not exist or cannot be parsed because of being corrupted or incompatible. However doing so might lead to unnecessary data loss when the app simply has no access to its documents yet due to iOS data protection (if enabled and when the app launches while the device is locked due to e.g. geofencing, silent notification, external accessory, etc).
Test Plan:
Enable data protection in your RN iOS app, then trigger a geofencing event or a silent push notification to launch the app while the phone is locked and files are not readable. If the app tries to access async storage in this case, then it'll end up erasing it without this fix.

@aleh  Thanks for working on that. I'll have a look as soon as I can.
cc @tido64


CustomPomParser produces unparseable ivy descriptor

Edit: the issue lies differently than where I initially thought, so I explanded below to explain.
CustomPomParser adds this tag named sbtTransformHash in the <info> of ivy descriptors that are imported from a POM.
This seems to work fine when the imported ivy is in the ivy cache, but if I:

ivy.install it to some ivy repository, say "local"
do a resolver.getDependency on the module and force ivy to ignore the cache by setting changing=true, where resolver is the local ivy resolver

I get a parse error (the module in this case is scala-swing;2.10.3):
[debug] downloading N:\externals\org.scala-lang\scala-swing\2.10.3\ivys\ivy.xml ...
[debug]         ext-copies: downloading N:\externals\org.scala-lang\scala-swing\2.10.3\ivys\ivy.xml
[debug]         ext-copies: downloading N:\externals\org.scala-lang\scala-swing\2.10.3\ivys\ivy.xml.sha1
[debug] sha1 OK for N:\externals\org.scala-lang\scala-swing\2.10.3\ivys\ivy.xml
[debug]         [SUCCESSFUL ] org.scala-lang#scala-swing;2.10.3!ivy.xml(ivy.original) (32ms)

java.text.ParseException: [xml parsing: ivy-2.10.3.xml.original:16:21: cvc-complex-type.2.4.a: Invalid content was found starting with element 'sbtTransformHash'. One of '{WC[##other:""]}' is expected. in file:/C:/Users/dsandul/.ivy2/cache/org.scala-lang/scala-swing/ivy-2.10.3.xml.original
[error] , unknown tag sbtTransformHash in file:/C:/Users/dsandul/.ivy2/cache/org.scala-lang/scala-swing/ivy-2.10.3.xml.original
        at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.checkErrors(AbstractModuleDescriptorParser.java:89)
        at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser$AbstractParser.getModuleDescriptor(AbstractModuleDescriptorParser.java:344)
        at org.apache.ivy.plugins.parser.xml.XmlModuleDescriptorParser.parseDescriptor(XmlModuleDescriptorParser.java:118)
        at org.apache.ivy.plugins.parser.AbstractModuleDescriptorParser.parseDescriptor(AbstractModuleDescriptorParser.java:48)
        at org.apache.ivy.core.cache.DefaultRepositoryCacheManager$MyModuleDescriptorProvider.provideModule(DefaultRepositoryCacheManager.java:714)
        at org.apache.ivy.core.cache.ModuleDescriptorMemoryCache.getStale(ModuleDescriptorMemoryCache.java:68)
        at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.getStaledMd(DefaultRepositoryCacheManager.java:731)
        at org.apache.ivy.core.cache.DefaultRepositoryCacheManager.cacheModuleDescriptor(DefaultRepositoryCacheManager.java:1193)
        at sbt.IvySbt$$anon$2.cacheModuleDescriptor(Ivy.scala:364)
        at org.apache.ivy.plugins.resolver.BasicResolver.parse(BasicResolver.java:536)
        at org.apache.ivy.plugins.resolver.BasicResolver.getDependency(BasicResolver.java:271)
        at sbt.ConvertResolver$$anon$3.sbt$ConvertResolver$DescriptorRequired$$super$getDependency(ConvertResolver.scala:64)
        at sbt.ConvertResolver$DescriptorRequired$class.getDependency(ConvertResolver.scala:96)
        at sbt.ConvertResolver$$anon$3.getDependency(ConvertResolver.scala:64)
...

The ivy file contains the tag
<sbtTransformHash>7174be3135c2a95a21c158fb6beb5a9621b5b898</sbtTransformHash>

in its <info>.
This is happening despite the fact that I'm doing this within a correct Ivy context, like so:
val resolv = taskKey[Unit]("Resolve scala-swing")

resolv := {
  ivyModule.value.withModule(streams.value.log) { (ivy, md, default) =>
    import org.apache.ivy.core.module.id._
    import org.apache.ivy.core.module.descriptor._
    import org.apache.ivy.core.resolve._
    val myResolver = ivy.getSettings.getResolver("local")
    val mrid = new ModuleRevisionId(new ModuleId("org.scala-lang", "scala-swing"), "2.10.3")
    val data = new ResolveData(ivy.getResolveEngine, new ResolveOptions)
    myResolver.getDependency(new DefaultDependencyDescriptor(mrid, true, true), data)
  }
}

I'm using sbt 0.13.2-M3.

this is still definitely an issue ...
my .sbt contains:
libraryDependencies += "org.apache.hadoop" % "hadoop-mapreduce-client-core" % "2.2.0"
clean install of sbt 0.13.7
the cache's ...\org.apache.hadoop\hadoop-mapreduce-client-core\ivy-2.2.0.xml contains: <e:sbtTransformHash>5719f575b89bf472b6c7168932ed8b3752733254</e:sbtTransformHash>
without a corresponding "xmlns:e" declaration
which is causing:
[error] (*:update) sbt.ResolveException: unresolved dependency: org.apache.hadoop#hadoop-mapreduce-client-core;2.2.0: java.text.ParseException: [[Fatal Error] ivy-2.2.0.xml.original:65:23: The prefix "e" for element "e:sbtTransformHash" is not bound. in file:/c:/Temp/.ivy-cache/org.apache.hadoop/hadoop-mapreduce-client-core/ivy-2.2.0.xml.original
this only happens when the artifact must be resolved from a local filesystem. (many corporation prevent direct access to the maven2 public repository)

I also get this error on the hadoop-mapreduce-client artifacts.  <e:sbtTransformHash> with no declared extras namespace.

I've been poking at this quite a bit tonight, and I can't make sense of what I'm seeing.
The converted file has e:sbtTransformHash but not the namespace, even though in addExtra it looks like it's impossible to add one without the other.  If I comment out dmd.addExtraInfo(TransformedHashKey, TransformHash), then the converted file gains the namespace.
I tried adding a System.err.println(dmd) in addExtra.  When addExtraInfo is commented out, the println triggers for the module I'm scrutinizing.  When it's not commented out, it's as if addExtra's never called.
Here's a minimal project that fails for me.  Root fails to resolve, because it doesn't have the Cloudera resolver.  However, it should be able to pull the artifact from cache.  That fails because ivy fails to parse the artifact's xml file.
import sbt._
import Keys._

object TestBuild extends Build {
  lazy val Deps = Project("Deps", file("deps")).settings(
    libraryDependencies += "org.apache.hadoop" % "hadoop-mapreduce-client-jobclient" % "2.5.0-cdh5.3.0",
    resolvers += "Cloudera" at "https://repository.cloudera.com/artifactory/cloudera-repos/"
  )

  lazy val root = Project("root", file(".")).dependsOn(Deps)
}

Another update.  hadoop-mapreduce-client-jobclient has the parent pom hadoop-mapreduce-client.  When that pom is processed, the CustomPomParser adds the sbtTransformHash and namespace to it.  Then the ivy2 PomModuleDescriptorParser adds the parent pom's extra info to the -jobclient pom.  That's where it gets the sbtTransformHash.  Finally, when the -jobclient gets transformed, the transformedByThisVersion check sees the inherited tag and skips addExtra.  That leaves the sbtTransformHash but doesn't add the necessary namespace.

thank you Chase that explains why this particular artifact was having issues where as a simpler artifact such as commons-lang3 does not


qdrant[patch]: Make path optional in from_existing_collection()

Description
The path param is used to specify the local persistence directory, which isn't required if using Qdrant server.
This is a breaking but necessary change.

This was always supposed to be optional.
This bug got carried over from the community implementation. Just that we caught it early in the partner package.

Hi @efriis. Just bumping this PR.

Hello!Do we have any update in this pr? I am currently using this function and i manualy removed path parameter in order for this to work.

@mariosajdini, we're waiting on a release.
In the meantime, you can pass None as the value to path. It'll work fine too.


docs: Add Svelte

As a dev, I would expect to find the svelte version as well on the installation page. 👍
Even if not officially, at least mentioned with an icon would be great !
https://www.shadcn-svelte.com/

This issue has been automatically closed because it received no activity for a while. If you think it was closed by accident, please leave a comment. Thank you.


Wrong Node version in dev container

VS Code Version: 1.81.0
OS Version: RHEL 8

Steps to Reproduce:

git clone vscode
Open in dev container
yarn

Result is:
$ yarn
yarn install v1.22.19
$ node build/npm/preinstall.js
*** Please use node.js versions >=18.15.x and <19.

error Command failed with exit code 1.

This seems to be identical to #128408 - maybe the same thing happened again?
The node version that gets installed in the container is
$ node --version
v16.20.1

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.81.1. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!

The issue is .devcontainer/Dockerfile pulls FROM mcr.microsoft.com/devcontainers/typescript-node:16-bullseye. The 16 is the Node version. If I change it to FROM mcr.microsoft.com/devcontainers/typescript-node:20-bookworm then it works properly (although it gives a warning *** Warning: Versions of node.js >= 19 have not been tested.; maybe 18 is the best bet for now).

Yeah 20 doesn't work because:
error<EMAIL_ADDRESS>The engine "node" is incompatible with this module. Expected version "^14 || ^16 || ^17 || ^18". Got "20.5.0"

18-bullseye has worked the best so far but it still failed to run yarn install. Separate issue I guess. Maybe there should be a CI test for the dev container?


Kafka Connect source connector's tasks going up and down

Occasionally with Kafka Connect, I see my IBMMQ SourceConnector's task go up and down, that is, the REST interface sometimes reports one task that is RUNNING and sometimes reports no tasks (the connector remains RUNNING this whole time). During these times, the task seems to be working when it's running. Then, if I delete and re-create the connector, the problem seems to go away. I suspect something is wrong--that tasks shouldn't churn like this, right?
I use KAFKA- 2.2.0 and SCALA - 2.12. Does it have to do anything with Kafka version?

Hello @harishanandan124,
I apologize for the extended delay in addressing this issue. Upon reviewing the codebase, I couldn't find any identical problems during my testing. However, it's important to note that the codebase has undergone several changes over the years. Thus, I kindly request you to verify if the issue still persists.


the '￥' symbol error in string

Issue Type: Bug
for example:
return ￥${this.minPrice}元起送;
return 还差￥${diff}元起送;
the ‘￥’ symbol appear differently in editor
VS Code version: Code 1.21.1 (79b44aa704ce542d8ca4a3cc44cfca566e7720f1, 2018-03-14T14:46:47.128Z)
OS version: Windows_NT x64 10.0.16299

System Info

Item
Value

CPUs
Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz (4 x 3192)

Memory (System)
15.95GB (11.34GB free)

Process Argv
D:\InstallFiles\Microsoft VS Code\Code.exe

Screen Reader
no

VM
0%

Extensions (4)

Extension
Author (truncated)
Version

vetur
oct
0.11.7

view-in-browser
qin
0.0.5

vscode-icons
rob
7.21.0

language-stylus
sys
1.9.1

(1 theme extensions excluded)

Reproduces only with extensions

You mention that this problem only occurs with extensions enabled. Please disable all extensions (CTRL+SHIFT+P --> 'Disable all installed extensions') and restart VS Code.
Then check if the problem still persists. If not, try to find which one causes the trouble by enabling one extension after the other.
If the problem is not caused by an extension, please provide us with a reproducible list of steps that cause this behavior.


Use pass manager for dynamo lowering

Rewrite arbitrary function calls as passes using the fx PassManager
Add model level test for dynamo

DO NOT MERGE till verifying this has no regressions for torch benchmarks.

DO NOT MERGE till verifying this has no regressions for torch benchmarks.

No regressions, good to merge


easily inject  user-provided configuration data, and assign a meaningful name

Example: alertmananager.configmap.data or similar

The goal of this issue was covered by https://github.com/bitnami/kube-prod-runtime/pull/415.
Closing.


[refactor](exception safe) Refactor delete handler and block column predicates to make sure exception safe

Proposed changes
Issue Number: close #xxx

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

run buildall

run buildall

run beut

run buildall


Video player does not work on iPad

Getting reports that our video player just shows a black screen on ipad

It appears that both the native and videojs controls are hidden. I think we should show one or the other. I believe the video is not playing when you try to autoplay a non-muted video in iOS, so if the controls were there, the user could manually start the video.
If we want to show native controls, we need to add
html5: {     nativeControlsForTouch: true, },
here: https://github.com/lbryio/lbry-desktop/blob/master/ui/component/viewers/videoViewer/internal/videojs.jsx#L79.
If we want to show the videojs controls, we need to unhide them here: https://github.com/lbryio/lbry-desktop/blob/master/ui/scss/component/_file-render.scss#L292
@seanyesmunt What do you think?

That sounds good. I don't see the video-js controls on my iPhone, maybe iPad doesn't show it's own native controls unless that flag is passed in?


test feature

@larspederamlie @lpamlie , can you please delete this issue?
I was testing some things, but now I cannot move it from your repo. Thx


[CARBONDATA-4266][Doc][summer-2021] Add TOC and format how-to-contribute-to-apache-carbondata.md

Why is this PR needed?
The old how-to-contribute-to-apache-carbondata.md has terrible layout and unbearable tile heading mistakes.
Add TOC and format how-to-contribute-to-apache-carbondata.md
What changes were proposed in this PR?

Format the whole document and fix the heading level mistake.
Add a TOC at the beginning of this doc.

Does this PR introduce any user interface change?

No

Is any new testcase added?

No

JIRA Issue: https://issues.apache.org/jira/browse/CARBONDATA-4266

Can one of the admins verify this patch?

I should commit different updates separately. So I will close this and open another one.


Allow a custom quality value when using NeuQuant

When generating a lot of gifs its crucial to be able to generate them faster but with lower quality.
Maybe we should do let nq = color_quant::NeuQuant::new(31 - quality, 256, pixels);
So that quality becomes a value in the range [0, 30] that INCREASES the quality?

Would it make sense to keep the old interface as calling the new one with the default value that it currently supplies? I have no knowledge about the specifics of NeuQuant though.

I need this for a project I am working on, so my plan was to make this breaking change and then release image-gif 0.11
I dont think we should be worried about breaking the api before a 1.0.0 release.
And I think its nicer to just have one function.
If you think the API would be better with double the functions, then we can do that instead.
Can't say I have any particular experience with NeuQuant myself, I'm just reading the docs for the new method here https://docs.rs/color_quant/1.0.1/color_quant/struct.NeuQuant.html#method.new

Major version bump also means that an update is required to every dependent crate. Those don't technically require a major version bump if their own stable interface is not affected but what's the chance of that? Consider that rustc treats traits from different majors versions of the same crate as incompatble etc.
Yeah, several projects have been quite liberal with major versions but it seems not very costly to prevent it in this case. Should the constructor methods get out of hand we can always deprecate and remove them in the future.

"Should the constructor methods get out of hand we can always deprecate and remove them in the future."
But then we will end up with a function named: from_rgba_quality when a better api would just name it from_rgba.

I had the impression that the opposite was the case. Since it took so long for the extra parameter to be necessary the default seems sensible and usable (and from_rgba sounds like a decently commonly used method). Less parameters are obviously less complex and since none of us both, who have already looked at the implementation, know exactly what the paramter is tuning I doubt it would give an ergonomic expression if it were the default.
Should that turn out to be wrong, what I'm saying is that deprecating and reworking the 'simply named' interface is as much a breaking change as changing the parameters is now. But I'd delay that since I don't see the quality parameter control being a major motiviation for most usages. Furthermore, the choice of how to rework then need not be committed to now. For example a builder style for default parameter could be a viable alternative to complicated functions names? Or maybe the method should really be on the instance of NeuQuant. Note that NeuQuant::new is a considerable portion of the runtime cost and hence that way might provide valuable runtime gains for batch processing of images.

Hey, those are some good points, I have changed it to a separate function.
I've also changed the variable name from quality to speed. The reasons being:

People will reach for this function when they want its too slow and they want to speed it up.
Its more intuitive, as the number going up means more speed.


Update text-moderation-api.md

Added a link to the Text - Detect Language API reference page as this helped me understand how you can first pass in a string to obtain the language and then pass this into the screen text API, ensuring you are screening text against the correct language.

@relugas : Thanks for your contribution to the Azure documentation! The author, @sanjeev3, has been notified to review your proposed change.

#sign-off


[Refactor] remove frequent new object just for comparison

be friendly to java GC

Why I'm doing:
What I'm doing:
Fixes #issue
What type of PR is this:

[ ] BugFix
[ ] Feature
[ ] Enhancement
[X] Refactor
[ ] UT
[ ] Doc
[ ] Tool

Does this PR entail a change in behavior?

[ ] Yes, this PR will result in a change in behavior.
[X] No, this PR will not result in a change in behavior.

If yes, please specify the type of change:

[ ] Interface/UI changes: syntax, type conversion, expression evaluation, display information
[ ] Parameter changes: default values, similar parameters but with different default values
[ ] Policy changes: use new policy to replace old one, functionality automatically enabled
[ ] Feature removed
[ ] Miscellaneous: upgrade & downgrade compatibility, etc.

Checklist:

[ ] I have added test cases for my bug fix or my new feature
[ ] This pr needs user documentation (for new or modified features or behaviors)

[ ] I have added documentation for my new feature or new function

[ ] This is a backport pr

Bugfix cherry-pick branch check:

[X] I have checked the version labels which the pr will be auto-backported to the target branch

[X] 3.3
[X] 3.2
[ ] 3.1
[ ] 3.0
[ ] 2.5

@mergifyio backport branch-3.3 branch-3.2


Game crash on Start-up

Describe the Bug
Was trying to make a fabric modpack based around create. I was unable to launch it, so i removed mods until it was just the essentials. when i removed create it suddenly worked, so i made a new profile and added create. this is the result.
Reproduction Steps

Download mod
Run mod
Crash
...

Expected Result
Not crashing
Screenshots and Videos
No response
Crash Report or Log
https://gist.github.com/Brightmoon-prime/2ce44b17552682395cab8e188e5441cd
Operating System
Windows 11
Mod Version
0.5.1c
Minecraft Version
1.18.2
Other Mods
None, i was using a blank profile
Additional Context
The error message:
The game crashed whilst rendering overlay
Error: java.lang.NullPointerException: Cannot invoke "net.minecraft.class_5944.method_34583(String, Object)" because "$$13" is null

please downgrade fabric api to 0.76

ffs
Thank you

This issue also occurs on 1.19.2.
Downgrading fabric api is not a long term solution as other mods are already becoming incompatible with version 0.7.6.

Most likely due to the changes in https://github.com/FabricMC/fabric/pull/3413 which landed in FAPI 0.77.0 for 1.19.2 and 1.18.2.

I think we can follow https://github.com/Fabricators-of-Create/Porting-Lib/issues/68


go() query string repetition bug

I'm having an issue:

Give an expressive description of what is went wrong

Before I realized I can just call FlowRouter.setQueryParam(), I was running code that repeatedly (in my case, each time I would click a button), results in the query string param 'test' being repeated on the URL:

const route = FlowRouter.current()
const qs = {...route.queryParams} // clone
qs.test = 1
FlowRouter.go(
    route.path,
    {...route.params},	// clone
    qs
)

Shouldn't this be like calling setQueryParam()? Instead it results in the current path etc but adds ?test=1?test=1?test=1... to the URL. I would expect /path?test=1

Version of flow-router-extra you're experiencing this issue

3.7.5

Version of Meteor you're experiencing this issue

2.0

Browser name and its version (Chrome, Firefox, Safari, etc.)?

Chrome Version 96.0.4664.110 (Official Build) (64-bit)

Platform name and its version (Win, Mac, Linux)?
Windows 10 20H2

Hello @zeearth thank you for reporting.
This case is part of the tests.
Can you post values of console.log({id: this._id._str, action: mode}) looking ant the generated path mode is null or empty string?

Hello @dr-dimitru
I saw your test, but my parameters are optionnal. I'm thinking problems come from the split on the '?'  router.js:226  I think the split is done for separate uri and query string.
this._id._str is a common mongodb id string "629f87f44ec0e563c4d5c458" mode is a string view or edit.

@zeearth seems like I finally caught this one, try running on updated v3.8.1. lmk

Good for us @dr-dimitru.
Thanks for the quick buck fix and for all you work.


Shorten names of fields in plots tsv files

This is another breaking change, so it would be good to merge it along with #443, although it doesn't need to block if it's not quick to get merged.
This shortens repetitive plots fields. For example, instead of results/plots/metrics/train/epoch/acc.tsv: train/epoch/acc, it becomes results/plots/metrics/train/epoch/acc.tsv: acc.

Merging to 2.0 branch to be safe.


Improve compiler text nodes handing

If inside element only one node and this node is text node - produce modifier opcode for this element to put textContent into it

implemented here https://github.com/lifeart/glimmer-next/pull/7


Bug

Date: 2020-05-20 19:53:12
ID: 1
Error occured in: Global
Count: 1
Message: ..\AddOns\GSE\API\Translator.lua line 40:
script ran too long
Debug:
[string "=[C]"]: (for generator)()
[string "@GSE\API\Translator.lua"]:40: TranslateSequence()
[string "@GSE\API\Storage.lua"]:661: OOCUpdateSequence()
[string "@GSE\API\Events.lua"]:406: ?()
[string "@Decursive\Libs\AceTimer-3.0\AceTimer-3.0.lua"]:55:
...\AddOns\Decursive\Libs\AceTimer-3.0\AceTimer-3.0.lua:50
Locals:
AddOns:
Swatter, v8.2.6511 (SwimmingSeadragon)
AskMrRobot, v86

Hi Dezoran,
Can you give me some context on what was occurring?  This is a generic error that can occur for any mod if WoW was running slow.  It reports the mod that executed the last line of mod code so I don't have anything from this trace to work with.

That line was also processing your PreMacro if that gives you anything to work with


Assets folder is accessible through url

I want to forbid the assets folder access on being typed in the url directly. It shows up a directory structure right now. How can it be achieved?

You could probably do this with middleware
// Server and LiveReload
gulp.task('connect', function() {
    connect.server({
        middleware: function(connect, o) {
            function hideAssets() { .... }
            return [hideAssets];
        }
    })
});

You'll have to investigate connect documentation to see how to get the middleware to do this but I believe its possible.


feat: Add Google Speech to Text API Document Loader

Add Document Loader for Google Speech to Text

Similar Structure to [Assembly AI Document Loader]

@baskaryan, @eyurtsev, @hwchase17


Not working on iPad Pro

I have a TouchableOpacity inside my Drawer content, when I tap on it using an iPhone everything works fine, but when I'm on iPad, the drawer closes when I tap on it.
Setting tapToClose={false} breaks the drawer completely and I can not even close it.
Here is my code:
               <Drawer ref={(ref) => this._drawer = ref}
                        tapToClose={false}
                        style={styles.drawer}
                        openDrawerOffset={0.2 * deviceResolution.width}
                        initializeOpen={false}
                        tweenHandler={Drawer.tweenPresets.parallax}
                        content={<SideBar
                                    signOut={this.props.signOut}
                                    userData={this.props.userData}
                                    closeDrawer={this.closeDrawer}
                                    pagesContent={this.state.pagesContent}
                                    removePage={this.removePage}
                                    updatePage={this.updatePage.bind(this)}
                                    addPage={this.addPage.bind(this)}
                                    goToPage={this.goToPage.bind(this)}
                                />}>

Does anybody has an idea what might be the problem?

Found out the problem. Instead of giving the openDrawerOffset an Int, it works when I pass it an percentage:
openDrawerOffset={0.2}
Still not sure why it broke the drawer only for iPad.


🐛 Bug Report: Failed to sign-in, unable to resolve user identity

📜 Description
I have followed the new backend migration guide to set up github auth for the newly created scaffolded backstage app. But I keep on getting this error when I try to authenticate using github.
👍 Expected behavior
Should allow to logon to the backstage homepage
👎 Actual Behavior with Screenshots

👟 Reproduction steps
created backstage app using npx @backstage/create-app@latest
Then:
yarn --cwd packages/backend add @backstage/plugin-auth-backend-module-github-provider
backend.add(import('@backstage/plugin-auth-backend'));
backend.add(import('@backstage/plugin-auth-backend-module-github-provider'));
After that added these to the app.config.yaml file
auth:
environment: development
providers:
github:
development:
clientId: ${AUTH_GITHUB_CLIENT_ID}
clientSecret: ${AUTH_GITHUB_CLIENT_SECRET}
## uncomment if using GitHub Enterprise
# enterpriseInstanceUrl: ${AUTH_GITHUB_ENTERPRISE_INSTANCE_URL}
signIn:
resolvers:
# Matches the GitHub username with the Backstage user entity name.
# See https://backstage.io/docs/auth/github/provider#resolvers for more resolvers.
- resolver: usernameMatchingUserEntityName
Finally added the UI component in the App.tsx file
components: {
SignInPage: props => (
<SignInPage
{...props}
auto
provider={{
id: 'github-auth-provider',
title: 'GitHub',
message: 'Sign in using GitHub',
apiRef: githubAuthApiRef,
}}
/>
),
},
📃 Provide the context for the Bug.

[X] I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

[X] I have read the Code of Conduct

Are you willing to submit PR?
None

unable to resolve user identity generally means that the OAuth flow has completed successfully but Backstage is not able to resolve the returned values back to a valid user entity in the catalog. This is normally achieved by either setting up the Github Org provider (to ingest all of your users and groups from Github into Backstage), or using a static catalog file to create the user/s.
If you are just getting set up, going down the static route will be the easiest to get your user up and running while you set everything else up. It may also be a good idea to re-enable the Guest provider so that you can log in and check the status of your user entity in the catalog.

Ok great thank u! it works after adding it to the static file.

Going to close this as fixed, please reach out if there's anything else.

unable to resolve user identity generally means that the OAuth flow has completed successfully but Backstage is not able to resolve the returned values back to a valid user entity in the catalog. This is normally achieved by either setting up the Github Org provider (to ingest all of your users and groups from Github into Backstage), or using a static catalog file to create the user/s.
If you are just getting set up, going down the static route will be the easiest to get your user up and running while you set everything else up. It may also be a good idea to re-enable the Guest provider so that you can log in and check the status of your user entity in the catalog.

HOW CAN I DO THAT?

@marcelmedeiros1 you need to navigate to the org.yaml file in the examples folder and your github username in the metadata.name field.

Thank you, now it works! But.. backstage could put it into the documentation.

@marcelmedeiros1 - can you please share exactly what you did here?

it worked. I'll share snippets of what I did
file -- examples/org.yaml
apiVersion: backstage.io/v1alpha1 kind: User metadata:   name: <github-username> spec:   memberOf: [guests]
also worthwhile to understand Backstage Catalog -
and descriptor formats -


Mismatched placeholder/used post title font-weight

Haven't been able to track down what's doing this. But both should be bold
Empty title:

Populated title:

Placeholders need to use ::placeholder instead of :placeholder as they are a pseudo element rather than a pseudo class/content. I'll push a quick fix.


[Bug]: Default User Role shows up in groups and roles tab and not on Roles Page

Is there an existing issue for this?

[X] I have searched the existing issues

Description
We are seeing Default User Role under Roles section of groups & roles tab, however this Role doesn't show in Roles page. If not required we should remove it from the groups and roles tab also.

Steps To Reproduce

Login as super admin
Go to roles page
Go to Groups&Roles tab
Under Roles section, observe "Default User Role" is also shown

Public Sample App
No response
Issue video log
No response
Version
http://<IP_ADDRESS>/

Need information about what needs to be done here.
Whether it should be removed from there or should it be shown everywhere
@trishaanand

This issue has been fixed : https://github.com/appsmithorg/appsmith-ee/pull/835


Nick: Watch packagingever.com

Nick requests the watch of the watch_keyword packagingever\.com. See the MS search here and the Stack Exchange search in text, in URLs, and in code.

packagingever\.com has been seen in 1 true positive, 0 false positives, and 0 NAAs.

Approved by tripleee in Charcoal HQ


Light2D in ParallaxBackground

I set up Light2D in ParallaxBackground.

when playing, light is off before scrolling to the first place in editor.

Here is sample project.
https://drive.google.com/file/d/0ByuhCIzeus36andGX3NhT205eFE/view?usp=sharing

It seems that the particle system is duplicated by the mirroring of ParallaxLayer, but the Light2D isn't.

This is unfortunately not a bug but a design limitaton of what can be done with a 2D lighting system, I can't really see any way to fix this without incurring into performance penalties. Parallax mirroring only mirrors stuff being drawn, but not lights :(
If the light is outside the parallax layer, it should work fine with it.
I suggest these specific situations, use a sprite in additive blend mode to emulate the effect of a light, this should help you achieve the same effect

Oh, another way to fix it is manually duplicating the light on that layer to where it mirrors


Double check express forms default to collecting data in the core

we added a feature for the army and GDPR where forms don't have to store data in the dashboard.
recently playing with a trial, it became clear that was set to off in the contact form in our seed content.
that's not good.
thx

This looks to be a bug that was active in the core for awhile where the sample content form wasn't configured to store its data:
https://github.com/concrete5/concrete5/pull/7987
The bug is fixed now with new installs but simplesites are all upgrades so they may act differently.


ImportError: cannot import name 'container_abcs' from 'torch._six'

Do I need a specific, older version of one of the packages?

I think we don't need a specific version of smp if we work on google cloud VM.
Also, we can comment this line "import segmentation_models_pytorch as smp", since I rewrote the segmentation model and smp was not used any more.


error in install

Describe the bug
The installation does not proceed after the step 7. It shows HTTP 500 error with the following error logged in php_error.log
https://prnt.sc/20x3mvc
PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function PH7\Database::isMySQL(), 0 passed
I am using ubuntu 20.04 with php7.4.3 and MySQL 8.0.27
Any thoughts?

Thank you so much for reporting this error @rkhyd. This error has now been patched here https://github.com/pH7Software/pH7-Social-Dating-CMS/commit/d088bfe62758c85e8f83586da9c49574165ab05e


Fixing modules and view engine

A few improvements to the codebase, fixed an issue with JWT decoding.

Just checked out this branch and can't get the app to load. Was it working for you? I'm seeing

Just checked out this branch and can't get the app to load. Was it working for you? I'm seeing

That happens if you've uninstalled the app from Jira when the app is not running. The JiraTenant wont be removed from the DB file and then next time when you run it it will still be taking the previous secretKey.
Remove the .db file and reinstalling will fix this.


TLS Renewal Failure - Wildcard Subdomain

Errors when renewing certificate
Largely the error seems to be "invalid domain".
{"level":"error","ts":1733194133.9224126,"logger":"tls.renew","msg":"will retry","error":"[*.team.bytezone.dev] Renew: [*.team.bytezone.dev] solving challenges: presenting for challenge: adding temporary record for zone \"team.bytezone.dev.\": Invalid http response status, {\"status\":\"ERROR\",\"message\":\"Invalid domain.\"} (order=https://acme-staging-v02.api.letsencrypt.org/acme/order/169223233/20992301304) (ca=https://acme-staging-v02.api.letsencrypt.org/directory)","attempt":21,"retrying_in":7200,"elapsed":28826.637287958,"max_duration":2592000}

Caddyfile
Configured with api_key and api_secret_key, provided by environment values.
*.team.bytezone.dev {
        tls {
                dns porkbun {
                        api_key {$PORKBUN_API_KEY}
                        api_secret_key {$PORKBUN_API_SECRET_KEY}
                }
        }

        // ... snip ... a bunch of handle blocks
}

Version and Build Info
Caddy Version: v2.8.4 h1:q3pe0wpBj1OcHFZ3n/1nl4V4bxBrYoSoab7rL9BMYNk=
Build Info:
$ caddy build-info | grep dns
dep     github.com/caddy-dns/porkbun    v0.2.1  h1:/+5TYIbEo/2MI2Vq16HIpBEMA2dGclPpq8oEXjoK5Nw=
dep     github.com/libdns/libdns        v0.2.2  h1:O6ws7bAfRPaBsgAYt8MDe2HcNBGC29hkZ9MX2eUSX3s=
dep     github.com/libdns/porkbun       v0.2.0  h1:oa2F0doE93RiJkauVVbM+P2AZ7jovDSiH6u3aaQezvQ=
dep     github.com/mholt/caddy-dynamicdns       v0.0.0-20241025234131-7c818ab3fc34      h1:y6kb4RLCopL/onHljtBi+5wHJinh+RMp4HBNFLmlvaE=
dep     github.com/miekg/dns    v1.1.59 h1:C9EXc/UToRwKLhK5wKU/I4QVsBUc8kE6MkHBkeypWZs=

Dockerfile
This dockerfile is used as part of a light docker-compose environment.
ARG VERSION=2
FROM caddy:${VERSION}-builder-alpine AS builder

RUN xcaddy build \
    --with github.com/caddy-dns/porkbun \
    --with github.com/mholt/caddy-dynamicdns

FROM caddy:${VERSION}-alpine AS runtime

COPY --from=builder /usr/bin/caddy /usr/bin/caddy

Other Info
What else is needed to help resolve this issue?

Seems something in my local DNS setup got in the way. Fixed by adding a resolvers directive to my tls configuration.


morph relations with formated keys don't work

Hi Tim
I use the great morph feature and an error pops up, that a relation can't be fetched:
Error: The target polymorphic model was not found

So I debugged into the code (which is btw really good to read) and found the problem.
At lib/eager.js:47 you fetch the relation table with snake-case notation. But I changed the attribute names to be camel cased in the code but snake-cased in the db (with forma/parse-feature). I just worked around this by excluding the _type-Attribute from the format.
There seems to be no easy solution for me except parsing and reformatting the model when fetching the groups. This might be a pretty worse solution.
If you have a better one, I might create a pull request to solve this.
Best regards
Stephan

+1

The project leadership of Bookshelf recently changed. In an effort to advance the project we close all issues older than one year.
If you think this issue needs to be re-evaluated please post a comment on why this is still important and we will re-open it.
We also started an open discussion about the future of Bookshelf.js here https://github.com/bookshelf/bookshelf/issues/1600. Feel free to drop by and give us your opinion.
Let's make Bookshelf great again


cmd/go: test coverage computed differently if count=1 is used

Go version
go version go1.22.1 linux/amd64
Output of go env in your module/workspace:
GO111MODULE=''
GOARCH='amd64'
GOBIN=''
GOCACHE='/root/.cache/go-build'
GOENV='/root/.config/go/env'
GOEXE=''
GOEXPERIMENT=''
GOFLAGS=''
GOHOSTARCH='amd64'
GOHOSTOS='linux'
GOINSECURE=''
GOMODCACHE='/go/pkg/mod'
GONOPROXY=''
GONOSUMDB=''
GOOS='linux'
GOPATH='/go'
GOPRIVATE=''
GOPROXY='https://proxy.golang.org,direct'
GOROOT='/usr/local/go'
GOSUMDB='sum.golang.org'
GOTMPDIR=''
GOTOOLCHAIN='local'
GOTOOLDIR='/usr/local/go/pkg/tool/linux_amd64'
GOVCS=''
GOVERSION='go1.22.1'
GCCGO='gccgo'
GOAMD64='v1'
AR='ar'
CC='gcc'
CXX='g++'
CGO_ENABLED='0'
GOMOD='/code/go.mod'
GOWORK=''
CGO_CFLAGS='-O2 -g'
CGO_CPPFLAGS=''
CGO_CXXFLAGS='-O2 -g'
CGO_FFLAGS='-O2 -g'
CGO_LDFLAGS='-O2 -g'
PKG_CONFIG='pkg-config'
GOGCCFLAGS='-fPIC -m64 -fno-caret-diagnostics -Qunused-arguments -Wl,--no-gc-sections -fmessage-length=0 -ffile-prefix-map=/tmp/go-build3544536393=/tmp/go-build -gno-record-gcc-switches'

What did you do?
On this example repository I ran:
go test -covermode=atomic -cover -count 1 -coverpkg=./... ./...

and:
go test -covermode=atomic -cover -coverpkg=./... ./...

What did you see happen?
I expected in both cases all coverage numbers to be the same.
(I have the problem with coverage numbers themselves, but I will report that separately.)
What did you expect to see?
Different numbers:
$ go test -covermode=atomic -cover -count 1 -coverpkg=./... ./...
ok  	github.com/mitar/accurate-test-coverage	0.002s	coverage: 0.0% of statements in ./... [no tests to run]
ok  	github.com/mitar/accurate-test-coverage/otherpkg	0.002s	coverage: 75.0% of statements in ./...
ok  	github.com/mitar/accurate-test-coverage/pkg	0.003s	coverage: 25.0% of statements in ./...

$ go test -covermode=atomic -cover -coverpkg=./... ./...
ok  	github.com/mitar/accurate-test-coverage	(cached)	coverage: 0.0% of statements in ./... [no tests to run]
ok  	github.com/mitar/accurate-test-coverage/otherpkg	(cached)	coverage: 100.0% of statements in ./...
ok  	github.com/mitar/accurate-test-coverage/pkg	(cached)	coverage: 33.3% of statements in ./...

(attn @thanm)

I can't reproduce your result for 100% and 33% ?
It consistently reports 75% and 25%

Interesting. I did try before inside Docker container to make sure it is reproducible, but I was also playing a lot with contents of files. I think something got wrong with the cache. If I try now inside clean container with clean checkout without any prior cache, it works as expected.
This is now full reproduction:
$ docker run --rm -t -i golang:1.22.1-alpine3.18 sh
/go # apk add git
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
(1/8) Installing brotli-libs (1.0.9-r14)
(2/8) Installing libunistring (1.1-r1)
(3/8) Installing libidn2 (2.3.4-r1)
(4/8) Installing nghttp2-libs (1.57.0-r0)
(5/8) Installing libcurl (8.5.0-r0)
(6/8) Installing libexpat (2.6.2-r0)
(7/8) Installing pcre2 (10.42-r1)
(8/8) Installing git (2.40.1-r0)
Executing busybox-1.36.1-r5.trigger
OK: 18 MiB in 24 packages
/go # cd /
/ # git clone https://github.com/mitar/accurate-test-coverage
Cloning into 'accurate-test-coverage'...
remote: Enumerating objects: 35, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 35 (delta 0), reused 6 (delta 0), pack-reused 28
Receiving objects: 100% (35/35), done.
Resolving deltas: 100% (4/4), done.
/ # cd accurate-test-coverage/
/accurate-test-coverage # ls -al
total 40
drwxr-xr-x    5 root     root          4096 Mar 24 14:37 .
drwxr-xr-x    1 root     root          4096 Mar 24 14:37 ..
drwxr-xr-x    8 root     root          4096 Mar 24 14:37 .git
-rw-r--r--    1 root     root            12 Mar 24 14:37 .gitignore
-rw-r--r--    1 root     root            24 Mar 24 14:37 README.md
-rw-r--r--    1 root     root            58 Mar 24 14:37 go.mod
-rw-r--r--    1 root     root            71 Mar 24 14:37 main.go
-rw-r--r--    1 root     root            13 Mar 24 14:37 main_test.go
drwxr-xr-x    2 root     root          4096 Mar 24 14:37 otherpkg
drwxr-xr-x    2 root     root          4096 Mar 24 14:37 pkg
/accurate-test-coverage # rm main.go
/accurate-test-coverage # go test -covermode=atomic -cover -count 1 -coverpkg=./... ./...
ok  	github.com/mitar/accurate-test-coverage	0.003s	coverage: 0.0% of statements in ./... [no tests to run]
ok  	github.com/mitar/accurate-test-coverage/otherpkg	0.002s	coverage: 100.0% of statements in ./...
ok  	github.com/mitar/accurate-test-coverage/pkg	0.002s	coverage: 33.3% of statements in ./...
/accurate-test-coverage # git chekout .
git: 'chekout' is not a git command. See 'git --help'.

The most similar command is
	checkout
/accurate-test-coverage # git checkout .
Updated 1 path from the index
/accurate-test-coverage # go test -covermode=atomic -cover -count 1 -coverpkg=./... ./...
ok  	github.com/mitar/accurate-test-coverage	0.003s	coverage: 0.0% of statements in ./... [no tests to run]
ok  	github.com/mitar/accurate-test-coverage/otherpkg	0.004s	coverage: 75.0% of statements in ./...
ok  	github.com/mitar/accurate-test-coverage/pkg	0.004s	coverage: 25.0% of statements in ./...
/accurate-test-coverage #
^[[Amitar@gagea:~/Temp/accurate-test-coverage$ docker run --rm -t -i golang:1.22.1-alpine3.18 sh
/go # apk add git
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.18/community/x86_64/APKINDEX.tar.gz
(1/8) Installing brotli-libs (1.0.9-r14)
(2/8) Installing libunistring (1.1-r1)
(3/8) Installing libidn2 (2.3.4-r1)
(4/8) Installing nghttp2-libs (1.57.0-r0)
(5/8) Installing libcurl (8.5.0-r0)
(6/8) Installing libexpat (2.6.2-r0)
(7/8) Installing pcre2 (10.42-r1)
(8/8) Installing git (2.40.1-r0)
Executing busybox-1.36.1-r5.trigger
OK: 18 MiB in 24 packages
/go # cd /
/ # git clone https://github.com/mitar/accurate-test-coverage
Cloning into 'accurate-test-coverage'...
remote: Enumerating objects: 35, done.
remote: Counting objects: 100% (7/7), done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 35 (delta 0), reused 6 (delta 0), pack-reused 28
Receiving objects: 100% (35/35), done.
Resolving deltas: 100% (4/4), done.
/ # cd accurate-test-coverage/
/accurate-test-coverage # rm main.go
/accurate-test-coverage # go test -covermode=atomic -cover -coverpkg=./... ./...
ok  	github.com/mitar/accurate-test-coverage	0.002s	coverage: 0.0% of statements in ./... [no tests to run]
ok  	github.com/mitar/accurate-test-coverage/otherpkg	0.002s	coverage: 100.0% of statements in ./...
ok  	github.com/mitar/accurate-test-coverage/pkg	0.002s	coverage: 33.3% of statements in ./...
/accurate-test-coverage # git checkout .
Updated 1 path from the index
/accurate-test-coverage # go test -covermode=atomic -cover -coverpkg=./... ./...
ok  	github.com/mitar/accurate-test-coverage	0.003s	coverage: 0.0% of statements in ./... [no tests to run]
ok  	github.com/mitar/accurate-test-coverage/otherpkg	(cached)	coverage: 100.0% of statements in ./...
ok  	github.com/mitar/accurate-test-coverage/pkg	(cached)	coverage: 33.3% of statements in ./...
/accurate-test-coverage # go test -covermode=atomic -cover -count 1 -coverpkg=./... ./...
ok  	github.com/mitar/accurate-test-coverage	0.003s	coverage: 0.0% of statements in ./... [no tests to run]
ok  	github.com/mitar/accurate-test-coverage/otherpkg	0.003s	coverage: 75.0% of statements in ./...
ok  	github.com/mitar/accurate-test-coverage/pkg	0.003s	coverage: 25.0% of statements in ./...

I think -coverpkg should force all tests to re-run. Or cache should depend on -coverpkg.


Entities using sea_orm cannot be parsed

👀

Well, would be great to make a minimal reproducible sample :)


Endless loop for large persistence lengths

Expected behavior
Using the build files as input, Polyply allows the user to specify a desired persistence length for generated molecules. When large persistence lengths (lp > end-to-end distance) are passed by the user, a rod-like molecule should be produced or if not possible an error should be thrown.
Actual behavior
Currently, if the user defined persistence length is larger then the specified molecules end-to-end distance, the code can't produce molecule coordinates. What happens is that the code enters an endless loop until the the user terminates the process manually.
Code to reproduce the behavior
The command line inputs are
polyply gen_params -lib martini3 -o PEO10.itp -name PEO -seq PEO:10
polyply gen_coords -p PEO10.top -o PEO10.gro -name PEO -dens 1000 -b build_file

Here gen_coords asks as input the PEO.top topology file for our polymer:
#include "martini_v3.0.0.itp"
#include "PEO10.itp"
[ system ]
; name
Melt of PEO 10

[ molecules ]
; name  number
PEO 10

And finally the build_file that specifies the large persistence length required to reproduce the behavior
[ molecule ]
PEO 0 1
[ persistence_length ]
WCM 10 0 9

@jan-stevens your code should issue a Warning with the settings that you post above. That warning tells you that under these settings your longest end-to-end distance is shorter than your box vector. This means that the longest end-to-end distance has to align along the diagonal of the box. I think that's why this is not converging. So I don't see that as a problem really.

Scratch the last part. I don't find an issue here if the box is large enough (i.e. the box needs to be sufficiently much larger than the largest end-to-end distance.)

solved in #204


panic: order of local synced ssts is not preserved in the global inserted sst

Describe the bug
In my environment, the computer nodes run for 15min and then all crashed due to same reason:
thread 'risingwave-main' panicked at 'order of local synced ssts is not preserved in the global inserted sst. local ssts: [2478, 2663], global: [2649, 2492, 2654, 2621, 2663, 2478]', src/storage/src/hummock/local_version.rs:481:25
stack backtrace:
   0: rust_begin_unwind
             at /rustc/9067d5277d10f0f32a49ec9c125a33828e26a32b/library/std/src/panicking.rs:584:5
   1: core::panicking::panic_fmt
             at /rustc/9067d5277d10f0f32a49ec9c125a33828e26a32b/library/core/src/panicking.rs:142:14
   2: risingwave_storage::hummock::local_version::LocalVersion::apply_version_delta_local_related
             at ./src/storage/src/hummock/local_version.rs:481:25
   3: risingwave_storage::hummock::local_version::LocalVersion::set_pinned_version
             at ./src/storage/src/hummock/local_version.rs:256:45
   4: risingwave_storage::hummock::local_version_manager::LocalVersionManager::try_update_pinned_version
             at ./src/storage/src/hummock/local_version_manager.rs:317:30
   5: <risingwave_compute::compute_observer::observer_manager::ComputeObserverNode as risingwave_common_service::observer_manager::ObserverNodeImpl>::handle_notification
             at ./src/compute/src/compute_observer/observer_manager.rs:57:17
   6: risingwave_common_service::observer_manager::ObserverManager<T>::start::{{closure}}::{{closure}}
             at ./src/common/common_service/src/observer_manager.rs:99:25

Full logs: risingwave-log.tgz
To Reproduce

Modify risedev.yml and add this profile:

  full-3cn:
    - use: minio
    - use: etcd
    - use: meta-node
    - use: compute-node
      port: 5687
      exporter-port: 1222
    - use: compute-node
      port: 5688
      exporter-port: 1223
    - use: compute-node
      port: 5689
      exporter-port: 1224
    - use: frontend
    - use: compactor
    - use: prometheus
    - use: grafana
    - use: zookeeper
      persist-data: true
    - use: kafka
      persist-data: true

Start the cluster with ./risedev d full-3cn
Create sources:

CREATE SOURCE person (
    "id" BIGINT,
    "name" VARCHAR,
    "email_address" VARCHAR,
    "credit_card" VARCHAR,
    "city" VARCHAR,
    "state" VARCHAR,
    "date_time" TIMESTAMP,
    "extra" VARCHAR
) with (
    connector = 'nexmark',
    nexmark.table.type = 'Person',
    nexmark.split.num = '8',
    nexmark.min.event.gap.in.ns = '0'
) ROW FORMAT JSON;

CREATE SOURCE auction (
    "id" BIGINT,
    "item_name" VARCHAR,
    "description" VARCHAR,
    "initial_bid" BIGINT,
    "reserve" BIGINT,
    "date_time" TIMESTAMP,
    "expires" TIMESTAMP,
    "seller" BIGINT,
    "category" BIGINT,
    "extra" VARCHAR
) with (
    connector = 'nexmark',
    nexmark.table.type = 'Auction',
    nexmark.split.num = '8',
    nexmark.min.event.gap.in.ns = '0'
) ROW FORMAT JSON;

CREATE SOURCE bid (
    "auction" BIGINT,
    "bidder" BIGINT,
    "price" BIGINT,
    "channel" VARCHAR,
    "url" VARCHAR,
    "date_time" TIMESTAMP,
    "extra" VARCHAR
) with (
    connector = 'nexmark',
    nexmark.table.type = 'Bid',
    nexmark.split.num = '8',
    nexmark.min.event.gap.in.ns = '0'
) ROW FORMAT JSON;

Create MView:

CREATE MATERIALIZED VIEW nexmark_q7
AS
SELECT
    B.auction,
    B.price,
    B.bidder,
    B.date_time
from
    bid B
    JOIN (
        SELECT
            MAX(price) AS maxprice,
            window_end as date_time
        FROM
            TUMBLE(bid, date_time, INTERVAL '10' SECOND)
        GROUP BY
            window_end
    ) B1 ON B.price = B1.maxprice
WHERE
    B.date_time BETWEEN B1.date_time - INTERVAL '10' SECOND
    AND B1.date_time;

Expected behavior
Don't crash
Additional context
Full logs: risingwave-log.tgz

@wenym1 Please take a look, and feel free to reassign to others

Well... It can be also be reproduced on 1-node deployment

I think #5065 fixes the order issue but forgets to modify the assertion check in local L0 index support. cc @xxhZs


Crash AFTER trying to retrieve contents of directory from FTP

Hi, I'm trying to list down the contents of directory from a ftp server.
iOS: 11.2
XCode: 9.2, Swift 4
Here is the crash error :
*** -[FilesProvider.FileProviderStreamTask respondsToSelector:]: message sent to deallocated instance 0x1c01c4ec0
Below is the code :
        let credential = URLCredential(user: hostList![row].username!, password: hostList![row].password!, persistence: .permanent)

        let ftpFileProvider = FTPFileProvider(baseURL: URL(string: hostList![row].serverUrl!)!, passive: true, credential: credential, cache: nil)

        ftpFileProvider?.contentsOfDirectory(path: "", completionHandler: { (contents, error) in
            print(error)

            for file in contents {
                print("Name: \(file.name)")
                print("Size: \(file.size)")
                print("Creation Date: \(file.creationDate)")
                print("Modification Date: \(file.modifiedDate)")
            }
        })

Im having a similar crash. Using the example code for retrieving directory contents. I am retaining the FTPFileProvider. The crash happens immediately AFTER the completion block returns. The contents are retrieved properly then the app crashes with  EXC_BAD_ACCESS (code=EXC_I386_GPFLT)

Heres a zombie trace for the error

@buba447 Please pull latest commit and check again


Document creinstall -Q flag

This PR adds brief documentation to the README for the zinit creinstall command's -Q flag, which silences all output.
See #326 and commit 639e3e53ad39ad589882ed97409bccc9c44790cf.

Thanks


The array data used for insertRow is reverted

The array data used for insertRow is reverted.
myAppendGrid.insertRow([
    { foo: "Should be row 2", bar: "But it is in row 3" },
    { foo: "Should be row 3", bar: "But it is in row 2" }
], 1);

Here is the codepen for demonstrate this issue.

Fixed in 2.0.6


Fix rest-building in ValueTupleBuilder

Currently whenever you have more than 7 variables in CodeGenerator.AsyncLambda, it'll throw an IndexOutOfRangeException. This Pull Request fixes this exception.
There were 2 bugs in the Build method of ValueTupleBuilder whenever it's building the "Rest" field:

It'll rebuild the current ValueTupleBuilder instead of the "Rest"-ValueTupleBuilder.
It'll slice 8 items from the output instead of 7 items (which is the limit for the generic ValueTuple).

I didn't make any unit tests for this bug. If you want I can make these.

@GerardSmit , thanks for your patch! I would appreciate if you will add separate unit test to this file.

@sakno I've added the unit test. Can you review the code if it's correct?
Before the patch:

After the patch:

LGTM
@GerardSmit is this PR critical for you? I'll merge it today but release via NuGet will be done not earlier than Sunday.

@sakno I've added my fork of dotNext as a submodule in the repository where I needed this bugfix, so for the time being I can work with that. I'll watch the releases in GitHub so I get notified when the new release comes out, then I'll switch back to NuGet.

@GerardSmit , new release DotNext.Metaprogramming 2.4.1 is now available on NuGet.


Move functional tests to keep with best practices

Related Issue:
https://github.com/hautelook/AliceBundle/issues/127
Summary
Renamed SymfonyApp to Functional to keep with best practices

Cheers


Traceback error

Traceback (most recent call last):
File "/home/USERNAME/.local/lib/python3.5/site-packages/telethon/update_state.py", line 119, in _worker_loop
handler(update)
File "./telegramircd.py", line 2011, in on_telegram_update
getattr(TelegramUpdate, name)(self, update)
File "./telegramircd.py", line 1666, in UpdateNewChannelMessage
server.on_telegram_update_message(update, update.message)
File "./telegramircd.py", line 2056, in on_telegram_update_message
text = '[{}] {}'.format(type(msg.media).name, msg.media.to_dict())
TypeError: 'str' object is not callable

Yes in an old commit .name was used, which should be .__name__.

Sorry it had another issue.... I should not have used type ... It is now fixed


Need a flagged and seen property.

Feature request or bug
This is a promising project but a few more methods would be very welcome.
I was using Afterlogic webmail which has a nice lot of functions including flagged  and IsSeen.
https://afterlogic.com/docs/webmail-lite/integration-and-development/web-api/receiving-mail
https://afterlogic.com/docs/webmail-lite/integration-and-development/web-api

I will look futher into this and see it it can be added!

I have added this compatibility with my latest commits. Check the getHeaderInfo function

Thanks but it seems to be causing an error:
Parse error: syntax error, unexpected 'funtion' (T_STRING), expecting variable (T_VARIABLE) in C:\xampp\htdocs\php-imap-client-master\ImapClient\IncomingMessage.php on line 323

I have ficrd this issue

Assuming my code is correct I'm still getting Uncaught  error 'Imap' not found
<?php
require_once "ImapClient/ImapClientException.php";
require_once "ImapClient/ImapConnect.php";
require_once "ImapClient/ImapClient.php";
require_once "ImapClient/IncomingMessage.php";
require_once "ImapClient/TypeAttachments.php";
require_once "ImapClient/TypeBody.php";

$mailbox = 'mail.e17pumphouse.org.uk';
$username =<EMAIL_ADDRESS>$password = 'password';
$encryption =  null; // or ImapClient::ENCRYPT_SSL or ImapClient::ENCRYPT_TLS or null

try{

$imap = new Imap($mailbox, $username, $password, $encryption);
# ... and further code ...

}catch (ImapClientException $error){
    echo $error->getInfo();
};

ImapClient is the correct class name. Will update docs

Finally got through 🥇 . But
$folders = $imap->getFolders();
var_dump($folders);
# and
foreach($folders as $folder) {
    echo $folder;
}

returns a "Array to string conversion"  error.

implode() works...

Hmm... We may need to call implode internally

Yeah.. A json output would also be useful.

AH! I forgot to convert the array to json! Will do!

    /**      * Returns all available folders      *      * @param string $separator. Default is '.'      * @param int $type. Has three meanings 0,1,2.      * If 0 return nested array, if 1 return an array of strings, if 2 return raw imap_list()      * @return array with folder names      */     public function getFolders($separator = null, $type = 0)

Why don't the docs mention this?

That will be added. Thank you for pointing that out. We are currently ironing out our docs,

Fixing with my doc updates.


Invalid JSON in Logs

Please tell us about your environment:
Winston 3.3.3
Windows 10 x64
ES 6/7

winston version?

[ ] winston@2
[x] winston@3

_node -v outputs:_v14.17.0
Operating System? (Windows, macOS, or Linux)
Language? (all | TypeScript X.X | ES6/7 | ES5 | Dart)

What is the problem?
My logs do not appear to be valid JSON even though I have that set up that way.
What do you expect to happen instead?
My logs to be valid JSON.
Other information
This is what my prod-logger.js looks like:
import winston from 'winston';
import 'winston-daily-rotate-file';
const { format, createLogger, transports } = winston;
const { combine, errors, json, printf, timestamp } = format;

export const buildProdLogger = () => {
	const logFormat = printf(({ level, message, timestamp, stack }) => {
		return `${timestamp} ${level}: ${stack || message}`;
	});

	return createLogger({
		format: combine(
			timestamp({ format: 'YYYY-MM-DD HH:mm:ss' }),
			errors({ stack: true }),
			json()
			//logFormat
		),
		// defaultMeta: { service: 'user-service' },
		transports: [
			new transports.DailyRotateFile({
				filename: 'node-server-%DATE%.log',
				dirname: 'src/node-server/logs/',
				//dirname: 'logs/',
				level: 'info',
				datePattern: 'YYYY-MM-DD',
				maxSize: '40m',
				maxFiles: '60d',
				json: true,
			}),

And my logs look like this:
{"filename":"node-server/routes.js","fullName":"Jim Bob","level":"info","lineNum":"735","message":"User 123 is archiving multiple labels.  There are 12 labels in the DB and 0 labels in the 4x6 folder and 0 labels in the pocket folder.","route":"/archiveAllLabels","timestamp":"2021-11-05 11:30:45"}
{"filename":"node-server/routes.js","fullName":"Jim Bob","level":"info","lineNum":"89","message":"User 123 is archiving a single label with archiveFileData of: dir: src/node-server/labels, activeFilename: 260-1597.pdf, type: 4x6, itemID: 260-1597, sp: undefined","route":"/archiveAllLabels","timestamp":"2021-11-05 11:30:45"}
{"filename":"node-server/routes.js","fullName":"Jim Bob","level":"info","lineNum":"89","message":"User 123 is archiving a single label with archiveFileData of: dir: src/node-server/labels, activeFilename: 260-1601.pdf, type: 4x6, itemID: 260-1601, sp: undefined","route":"/archiveAllLabels","timestamp":"2021-11-05 11:30:45"}

So after a lot of debugging and figuring out JSON, I learned that valid JSON needs to have brackets [ ] around the data if it is an array and a comma after each entry so a comma after each right curly brace } except for the last one.  Those do not exist in that file.  So when I am trying to read the file back in to create my log viewer, it is saying invalid JSON.  Am I doing something wrong or is it just not configured to do that?

My solution was to have a line-by-line interpreter that could take multiple JSON objects in the same file.
My understanding is that it's done this way because if a program e.g. exits unexpectedly, there would be no going back into the log file to remove the last trailing comma and add a close square bracket, and you'd wind up with an incomplete array.
I agree that having multiple complete JSON objects per file is not always the easiest to work with, though.

Hey, did you find a way to add comma?

It's not just adding a comma - the closing square bracket would also be needed to make valid JSON, and there's no guarantee of a graceful exit providing the opportunity to do that.


ValueError: array must not contain infs or NaNs

I meet another problem, when I run another array.
For this step, I do not know the reason.

I also check my array. I did not find any nan or inf

Could you help me? Thank you!

Hi,
Can you check the gc_bias estimation to see if there are any NAN values?

@houruiyan
Was the issue solved?

I forget it. Sorry. It seems that I did not fix it. But my supervisor tell me that we do not need to do it. So I give up.


v2.1.4

Codecov Report

Merging #135 (1bb2fe2) into master (d69dc0f) will decrease coverage by 1.48%.
The diff coverage is 75.00%.

@@            Coverage Diff             @@
##           master     #135      +/-   ##
==========================================
- Coverage   94.35%   92.87%   -1.49%
==========================================
  Files           8        8
  Lines        1471     1473       +2
  Branches      253      254       +1
==========================================
- Hits         1388     1368      -20
- Misses         44       66      +22
  Partials       39       39

Impacted Files
Coverage Δ

src/snps/ensembl.py
31.70% <0.00%> (-39.03%)
:arrow_down:

src/snps/snps.py
94.62% <100.00%> (-0.91%)
:arrow_down:

src/snps/resources.py
94.69% <0.00%> (-0.38%)
:arrow_down:

Continue to review full report at Codecov.

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


A bug in Function IsHalfSubnormal

https://github.com/KhronosGroup/OpenCL-CTS/blob/81cffe91326fef77d819de51ac37bde5795723cd/test_conformance/half/cl_utils.h#L117
If reference result is sub normal, the CTS case will test if the output is flushed to zero with the code below:
if( IsHalfSubnormal(u2[j]) && ( (u1[j] == 0) || (u1[j] == 0x8000) ) )     continue;
u2 is initialized as 0x0400U when it is a denormalized number. The related code in function float2half_rte is as below:
// half denormal
if( x < MAKE_HEX_FLOAT(0x1.0p-14f, 0x1L, -14) ) {     x *= MAKE_HEX_FLOAT(0x1.0p24f, 0x1L, 24);     return (cl_ushort)((int) x | sign); }
However, the function IsHalfSubnormal uses 0x03ffU instead of 0x0400U.
static inline int IsHalfSubnormal( uint16_t x ) {     return ((x&0x7fffU)-1U) < 0x03ffU;  }
In my option, the 0x03ffU should be 0x0400U.

What does the MAKE_HEX_FLOAT code have to do with the issue? It looks like the code shown comes from float2half_rtz, not float2half_rte.
The IsHalfSubnormal routine threshold looks correct to me, set to 0x03ffU to account for the subtraction by 1U. An input of 0x0400 (smallest normal) will become 0x03ff after subtraction, which is not strictly less than 0x03ffU, so it returns 0. Anything smaller nonzero value is a subnormal. Zero is excluded because the subtraction rolls over to 0xffffU. Can you provide an example of an input that returns an incorrect result?

First, sorry for my 2 mistakes.

I pasted the wrong code. I should have pasted the code from float2half_rte.
It is a problem in the cl12_trunk. But I added the code link that links to the code in the master.

Please let me re-describe the problem.
Let's see float2half_rte(, which is in test_conformance/half/Test_vStoreHalf.c).
https://github.com/KhronosGroup/OpenCL-CTS/blob/2c0abd3f75d34be97682cd410a1171b87efe964c/test_conformance/half/Test_vStoreHalf.c#L61
cl_ushort float2half_rte( float f )
{
......
// half denormal
if( x < MAKE_HEX_FLOAT(0x1.0p-14f, 0x1L, -14) )
{
u.f = x * MAKE_HEX_FLOAT(0x1.0p-125f, 0x1L, -125);
return sign | u.u;
}
......
}
When the input value is 0x1.ffcp-15, which is less than 0x1.0p-14f, float2half_rte() will go into the half denormal branch and return 0x0400 after rounding.
Then, the u2 in the code below(, test_conformance/half/Test_vStoreHalf.c: line 958,) is 0x0400, which is the smallest normal.
if( IsHalfSubnormal(u2[j]) && ( (u1[j] == 0) || (u1[j] == 0x8000) ) )  continue;
https://github.com/KhronosGroup/OpenCL-CTS/blob/2c0abd3f75d34be97682cd410a1171b87efe964c/test_conformance/half/Test_vStoreHalf.c#L958
And if the hardware does not support denorm, the hardware can directly flush the input value 0x1.ffcp-15 to 0, which is described in Specification:
"Denormalized numbers for the half data type which may be generated when converting a float to a half using variants of the vstore_half function or when converting from a half to a float using variants of the vload_half function can be flushed to zero."
So, when input value is 0x1.ffcp-15, u1 is 0.
In summary, when input is 0x1.ffcp-15 and the hardware does not support denorm, u1 is 0 and u2 is 0x0400.
Then it is impossible to go into the branch "continue".
There are 2 options to deal with this problem:
Option 1: The function IsHalfSubnormal should use 0x0400U instead of 0x03ffU:
https://github.com/KhronosGroup/OpenCL-CTS/blob/2c0abd3f75d34be97682cd410a1171b87efe964c/test_conformance/half/cl_utils.h#L137
Option 2: u2 is the smallest normal after rounding. It should not be the input parameter of IsHalfSubnormal. The input parameter of IsHalfSubnormal should be the number before rounding.

OK got it.  I disagree with Option 1 because IsHalfSubnormal is correct as written for the half input it's given--if we want to account for rounding from floats, that needs to be a new function that takes a float input.
I think Option 2 looks like the right fix (using the original float input with a new function to detect denormals before rounding). This problem is in both cl12_trunk and master. cl12_trunk also is missing the gIsEmbedded check, so it incorrectly allows flushing on any half conversion.


add goto tests

For #5125

[x] Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR).
[x] Title summarizes what is changing.
[ ] Has a news entry file (remember to thank yourself!).
[ ] Appropriate comments and documentation strings in the code.
[ ] Has sufficient logging.
[ ] Has telemetry for enhancements.
[x] Unit tests & system/integration tests are added/updated.
[ ] Test plan is updated as appropriate.
[ ] package-lock.json has been regenerated by running npm install (if dependencies have changed).

Codecov Report

Merging #5923 (90f70df) into main (c89cb94) will decrease coverage by 0%.
The diff coverage is n/a.

:exclamation: Current head 90f70df differs from pull request most recent head dbf0921. Consider uploading reports for the commit dbf0921 to get more accurate results

@@          Coverage Diff          @@
##            main   #5923   +/-   ##
=====================================
- Coverage     71%     71%   -1%
=====================================
  Files        404     404
  Lines      27086   27086
  Branches    3957    3957
=====================================
- Hits       19491   19478   -13
- Misses      5962    5973   +11
- Partials    1633    1635    +2

Impacted Files
Coverage Δ

src/client/datascience/kernel-launcher/types.ts
48% <0%> (-8%)
:arrow_down:

src/client/common/errors/index.ts
69% <0%> (-4%)
:arrow_down:

...lient/datascience/kernel-launcher/kernelProcess.ts
72% <0%> (-3%)
:arrow_down:

...client/datascience/kernel-launcher/kernelDaemon.ts
53% <0%> (-2%)
:arrow_down:

src/client/datascience/baseJupyterSession.ts
69% <0%> (-1%)
:arrow_down:

.../datascience/notebook/notebookControllerManager.ts
85% <0%> (-1%)
:arrow_down:


Markers plugin: support vertical orientation

Hi, i'm testing the wavesurfer library with a vertical display. However when a add markers using the makers plugin, they appears at the wrong place, like that, it was at horizontal display. I look at the documentation and didn't find a support for markers at vertical display.
The Makers plugin has support for vertical display?

The Makers plugin has support for vertical display?

No, not yet.

I am also interested (and somewhat dependent) on this feature.


Create code file for TechnoLux AC

These are codes for the TechnoLux KFR-25GW/F, an obscure uzbek AC I somehow ended up with.

What needs to be done in order for it to be merged?


Player exits crouching when opening Inventory or interaction GUI

Cogito and Godot Engine Version:
Godot version: 4.2.2
Cogito version: beta 202409.03
Description:
Interacting with a keypad while crouching locks you into the keypad UI (you can still exit it by pressing Esc)
Reproduction steps:

Go into a crouch
Interact with the archive keypad (it looks like you are immediately forced out of your crouch)
Attempt to exit the keypad with the interact button

Expected behavior:
The interact button works the same while not crouching, as a toggle that can enter and exit the keypad UI

Thanks for flagging this. Looking into this a bit more, it seems this has nothing to do with the interaction.
If you are crouched when interacting -> opening a gui like the keypad, the player character stands up and thus the interactable object is no longer being hit by the interaction_raycast due to the position change.
The interaction is not there anymore because the interaction raycast isn't hitting the object anymore.
That being said, I'd expect the behavior to be that the player character simply stays crouched when opening a GUI (like the keypad, readable etc.), so I'm looking into fixing that as part of the cogito_player.gd script.
So far it seems more complicated that I thought, unfortunately.

I'll probably have to undo some of the changes I applied to cogito_player.gd cause it seems like I've introduced some issues with the sprinting. Player doesn't stop sprinting when the sprint button is being let go, making it feel like they're floating a bit.

Renaming this issue to better describe whats going on.

Figured the cause and and a quick fix for this:
Cause is this line (554) not being able to run head.position.y = lerp(head.position.y, CROUCHING_DEPTH, delta * LERP_SPEED)
So because movement is being paused, its causing that line to no longer apply, which is why the player is slowly moving back up.
It's nothing to do with the standing up code which is why it was hard to track down, its just the crouch code not being run.
For a quick fix can remove !is_movement_paused from this line (542): if crouched_jump or (not jumped_from_slide and is_on_floor() and try_crouch and !is_movement_paused or crouch_raycast.is_colliding()):
But not sure what other issues that might cause since the player code is a bit complicated. May want to refactor the player into a state machine at some point, especially since there's even more behaviours to add in future.

@niefia thanks so much for finding this. Yeah, like you said, I knew there had to be just a single line or two that caused this, but wasn't able to find it. Thanks so much for finding the needle in the haystack.

But not sure what other issues that might cause since the player code is a bit complicated. May want to refactor the player into a state machine at some point, especially since there's even more behaviours to add in future.

Agree, this would definitely be something to do at some point.

Closing issue.


This replaces savebuff module.

By default, ZNC destroys channel buffers when users part channels even with KeepBuffer set to yes.
The current savebuff module is good only at saving channel buffers encrypted to stop users from reviewing it. This new savebuff module saves channel buffers and restores them when you join those channels again. This module also comes with ""useful"" commands and functions.
Using the curent savebuff is like burying a lot of money and forgetting where you hid it.
There are 4 main reasons that the current savebuff is inconvenient :

It's inconvenient to view the buffer with other programs than savebuff.
The current savebuff lacks "help" command, so most users don't know how to review the buffer.
The buffer is replayed only with "#ifdef LEGACY_SAVEBUFF" which also enables logging of massive JOIN/PART messages. The new savebuff module doesn't log JOIN/PART messages.
encryption makes buffers unuseable when you change password.
Even emails are saved unencrypted in file systems, so I removed encryption.
Those who want safety may better use file system encryption or fortify their security.

This is not backwards compatible, and it sounds like you should use the log module if you want logs which are in plaintext.

kyle, the current savebuff module is nearly unuseable, anyway.
Even I kept trying to make good use of the current savebuff module and failed.
This isn't just a loggin tool but also has a role in replaying buffers.

I'm going to designate a new name for this module.


Add 'Event configuration' section to conda env

Add 'Event configuration' subsection in section '5.1 Running submissions in a conda environment' of workers.rst file

Thx 🙏 @frcaud


Documentation for HashJoin

Since this is gonna be experimental I'll only mention it as a note and later on, we can write a section in the guide where we describe our current nested loop architecture.

Closing for now, if the feature is in a good condition we could come back to add something in the docs.


syntax error when try to encrypt the jquery.linkify.min.js using Obfuscator

Hello,
Can you please check the syntax errors when you try to encrypt the linkify file using obfuscator .
Thank you,
Rana .

Couldn't reproduce this with the .min.js file, but I think this might be your problem:
If you're concatenating linkify to another JS file, make sure there's a line break at the end of the last line if the last line is a comment.
I got a syntax error when concatenating jquery.min.js and linkify.min.js because jquery.min.js ended with this line
//# sourceMappingURL=jquery.min.map

which effectively "commented out" the beginning of the /* comment in linkify.
So the solution here would be to either remove the source mapping comment or add a \n line break to the end.

Great to see how authors of open source software go well beyond supporting their plugin. Thanks @nfrasser
+1

Hello,
i'm trying to encrypt the file using http://javascriptobfuscator.com/ and error appear on syntax line no 74

Thanks

The line that JavaScript obfuscator seems to be having trouble with is this one:
            for (var option in options) "undefined" == typeof options[option] && delete options[option];

(Which is actually "prettified" output from UglifyJs). Nothing syntactically incorrect here, so it's likely a problem with javascriptobfuscator rather than Linkify.
Tried out this one http://www.jsobfuscate.com/index.php and it seems to do the trick. Hope that helps.

@Polfo :+1: !!

ok, thanks a lot


Problem with MP3 output, multiple conversations ?

Hello guys,
I'm having problems using the androidthings example from Google, when I set output to MP3, most of the responses are working well and as expected but sometimes for example when I say "Say something short", "Say something long" the Assistant API is acting strange, I'm getting way too many responses and "conversations?"
The log says that it's finishing conversation many times, I got this event fired many times...
2019-05-22 17:28:19.323 17562-17709/com.example.androidthings.assistant
D/AudioTrack: stop() called with 280 frames delivered
2019-05-22 17:28:19.323 17562-17709/com.example.androidthings.assistant
I/AudioTrack: Skip ramp
2019-05-22 17:28:19.333 17562-17562/com.example.androidthings.assistant
I/AssistantActivity: assistant conversation finished
2019-05-22 17:28:19.335 17562-17709/com.example.androidthings.assistant
D/EmbeddedAssistant: Received response: #

See the attached log: Embedded assistant log
Is is the API bug?
Or something's wrong with the configuration ?
I'm using the latest code from here: androidthings-googleassistant
The problem does not exist when the output encoding is set to LINEAR16.
EDIT:
I believe that this part causes problems:
if (value.getAudioOut() != null) {
   if (mAudioOutSize <= value.getAudioOut().getSerializedSize()){
   mAudioOutSize = value.getAudioOut().getSerializedSize();
   }
   else {
   mAudioOutSize = 0;
   onCompleted();
   }
}

This was some nasty way on determining the end of the assistant response, works well for PCM because chunks were always the same size and the last was smaller, but for the MP3 the chunk sizes aren't equal, they look random.
Any better way to determine the end of audio response ?

The current implementation works with the default output as configured in the sample. I don't know with regards to mp3.

The current implementation works with the default output as configured in the sample. I don't know with regards to mp3.

That's right. It's not a bug of the implementation. Please move it to questions as it is a question regarding the modification of this implementation.
Regards,
Kamil


Fix pot internal state in start-cleanup

This introduces a distinct state called "doa" (dead on arrival), which is also an allowed prerequisite
for going to state stopping.

Tested locally:
# grep ip= /opt/pot/jails/cloneme/conf/pot.conf
ip=lo0|garbage
# pot start cloneme
###>  No ipv4 address found for cloneme
error: Invalid value for '--host <host>': invalid IP address syntax
###>  cloneme failed to start
# cat /tmp/pot_status_cloneme
pot.status=stopped

And of course:
# grep ip= /opt/pot/jails/cloneme/conf/pot.conf
ip=lo0|<IP_ADDRESS>
# pot start cloneme
===>  Starting the pot cloneme
ip6addrctl: socket(UDP): Protocol not supported
# cat /tmp/pot_status_cloneme
pot.status=started

A different approach could be to remove the status file, in case of failure.
But it can add additional complexity and corner cases