text:
The automated release is failing 🚨

:rotating_light: The automated release from the main branch failed. :rotating_light:
I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the main branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here are some links that can help you:

Usage documentation
Frequently Asked Questions
Support channels

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.

Cannot push to the Git repository.
semantic-release cannot push the version tag to the branch main on the remote Git repository with URL https://[secure]@github.com/iftahnaf/pyvectorguidance.
This can be caused by:

a misconfiguration of the repositoryUrl option
the repository being unavailable
or missing push permission for the user configured via the Git credentials on your CI environment

Good luck with your project ✨
Your semantic-release bot :package::rocket:

:rotating_light: The automated release from the main branch failed. :rotating_light:
I recommend you give this issue a high priority, so other packages depending on you can benefit from your bug fixes and new features again.
You can find below the list of errors reported by semantic-release. Each one of them has to be resolved in order to automatically publish your package. I’m sure you can fix this 💪.
Errors are usually caused by a misconfiguration or an authentication problem. With each error reported below you will find explanation and guidance to help you to resolve it.
Once all the errors are resolved, semantic-release will release your package the next time you push a commit to the main branch. You can also manually restart the failed CI job that runs semantic-release.
If you are not sure how to resolve this, here are some links that can help you:

Usage documentation
Frequently Asked Questions
Support channels

If those don’t help, or if this issue is reporting something you think isn’t right, you can always ask the humans behind semantic-release.

Missing package.json file.
A package.json file at the root of your project is required to release on npm.
Please follow the npm guideline to create a valid package.json file.

Good luck with your project ✨
Your semantic-release bot :package::rocket:

repo: iftahnaf/pyvectorguidance


text:
Assignment 2

What changes are you trying to make? (e.g. Adding or removing code, refactoring existing code, adding reports)
adding code
What did you learn from the changes you have made?
how to read lines of data in a .csv, order them and find the mean, min and max of each row of data
Was there another approach you were thinking about making? If so, what approach(es) were you thinking of?
Were there any challenges? If so, what issue(s) did you face? How did you overcome it?
Paths provided initially didn't work, had to go to the parent directory
How were these changes tested?
A reference to a related issue in your repository (if applicable)
Checklist

[x] I can confirm that my changes are working as intended

Please follow the instructions in this thread (https://uoft-dsi-certificates.slack.com/archives/C07VC7M4PTL/p1733888327768759) to fix the problem and complete this assignment. Thanks!

source: gharchive/pull-request

authors: anjali-deshpande-hub igalers

repo: igalers/python

license: MIT

license_type: permissive

license_source: github-api


text:
Add CLI script and localnet deployment instructions

For ease of frontend development

I think @ravern knocked this one out when he first started in the pre-ido work.

It's not a full CLI but it works

I've just realized that this is for the IDO pool program and not the pre-ido program. 😅 Gonna add this back into the todo stack.

Haha I made teh same mistake as well.

source: gharchive/issue

authors: VegetarianOrc billythedummy ravern

repo: igneous-labs/ido-pool


text:
Scripting interface to simulation workflow

Desired behavior

Gazebo can be used as a library by other programs, like shown on the custom_server example. The Server C++ API can be used to initialize the simulation and step it using the Run function.
It would be interesting to expose that functionality through a C API so that it can be eventually wrapped by other scripting languages like Python.
We already have a C API in ign.cc which is used by the command line tool, but we don't expose that to users or keep it stable.
The new C API should be able to do things like starting a server, loading an SDF file, stepping the simulation and retrieving data (entities and components) from it.
Alternatives considered

Instead of adding a C API, we could extend the C++ API to add the desired functionality, and that can be converted to scripting languages using SWIG like we're doing on ign-math.
Implementation suggestion

Before creating the API, it would be interesting to write a concise design doc into https://github.com/ignitionrobotics/design
Additional context

The gym-ignition project is using SWIG to wrap our C++ API, with some sugar on top :candy:

I started a prototype of ign-gazebo based on the examples/standalone/custom_server.
I converted some few method to make it work:

Gazebo

server (run, has_entity and running() methods)
ServerConfig (setSdfFile() method)

Common

console -> (Setversosity static function)

You can try it with the following Python script:
from ignition_gazebo import ServerConfig, Server
from ignition_common import set_verbosity
import time

set_verbosity(4)
server_config = ServerConfig()
server_config.set_sdf_file('rolling_shapes.sdf')
server = Server(server_config)

print('Has entity ', server.has_entity('box', 0))

server.run(False, 10000, False)

while(server.is_running()):
    time.sleep(0.1)

Incremental example 1
But I was thinking about how to get some data from the simulation. I thought that I can subscribe to some ignition topic. Then I ported:

Transport

Node (subscribe() method)

Msgs

Pose_v msg

from ignition_gazebo import ServerConfig, Server
from ignition_common import set_verbosity
from ignition_transport import Node
from ignition_msgs import PoseV

import time

set_verbosity(4)
server_config = ServerConfig()
server_config.set_sdf_file('rolling_shapes.sdf')
server = Server(server_config)

print('Has entity ', server.has_entity('box', 0))

def square(msg):
    msg.show()

node = Node()
node.subscribe('/world/shapes/pose/info', square)

server.run(False, 10000, False)

while(server.is_running()):
    time.sleep(0.1)

Incremental example 2
Then I was thinking about to get values from the msgs in Python, not calling a method that prints everything. Here is where the magic start. I don't know if there is a simpler way to convert types between pybind11 and SWIG.
from ignition_gazebo import ServerConfig, Server
from ignition.math import Vector3d
from ignition_msgs import PoseV

p = PoseV()
print(p.get_size())
print(p.get_names())
print(p.get_poses())
print(p.pose())
print(p.pose().x())
p.set_pose(Vector3d(0, 1, 2))

The two key methods are:

set_pose() (Setter): This method require to convert ignition::math::vector3 Swig object in to a ignition::math::vector3 in cpp. For this I used  res1 = SWIG_ConvertPtr(h.ptr(), &argp1, SWIGTYPE_p_ignition__math__Vector3T_double_t, 0 |  0 );
pose() (Getter): This method will return a ignition::math::vector3 Swig object in Python. For this I used   PyObject * resultobj = SWIG_NewPointerObj((new ignition::math::Vector3< double >(static_cast< const ignition::math::Vector3< double >& >(result))), SWIGTYPE_p_ignition__math__Vector3T_double_t, SWIG_POINTER_OWN |  0 );

These thow functions are defined in pythonPYTHON_wrap.cxx which is automatically generated by SWIG when we create the wrapper for ign-math. I copied partially this file to make it work this example. I know this is a big hack and it's not the path to follow.
Suggestions are welcome
FYI @chapulina @azeey @scpeters

By the way this is branch https://github.com/ignitionrobotics/ign-gazebo/tree/ahcorde/pybind11

I don't know if there is a simpler way to convert types between pybind11 and SWIG.

By the way, regarding the interoperation of Python bindings created by different systems a relevant discussion in Pinocchio is https://github.com/stack-of-tasks/pinocchio/discussions/1518 . There is a PR from @jmirabel in https://github.com/stack-of-tasks/pinocchio/pull/1519 providing (as far as I understand) interoperability of pybind11 and boost-python, while in https://github.com/stack-of-tasks/pinocchio/discussions/1518#discussioncomment-1258014 @jcarpent mention something related to SWIG and boost-python interoperability, that I guess was provided by this PR : https://github.com/stack-of-tasks/eigenpy/pull/219/files .
FYI @GiulioRomualdi @S-Dafarra @prashanthr05 @diegoferigo  as I think this discussion is similar to the one in https://github.com/ami-iit/bipedal-locomotion-framework/issues/214 .

Thank you for your feedback @diegoferigo and @traversaro,
I has been prototyping more ideas here, in particular

Be able to add some callback to a system though Python
Replicated the same demo with SWIG (to compare complexity)

SWIG Example
from ignition.gazebo import Console, ServerConfig, Server, HelperFixture, World, Callback, EntityComponentManager
from ignition.math import Vector3d

import time
Console.set_verbosity(4)
helper = HelperFixture('gravity.sdf')

post_iterations = 0
iterations = 0
pre_iterations = 0

class CallPostUpdate(Callback):
    def __init__(self):
        super(CallPostUpdate, self).__init__()

    def call_update(self, _info, _ecm):
        global post_iterations
        post_iterations += 1

class CallUpdate(Callback):
    def __init__(self):
        super(CallUpdate, self).__init__()

    def call_update_no_const(self, _info, _ecm):
        global iterations
        iterations += 1

class CallPreUpdate(Callback):
    def __init__(self):
        super(CallPreUpdate, self).__init__()

    def call_update_no_const(self, _info, _ecm):
        global pre_iterations
        pre_iterations += 1

class CallConfigure(Callback):
    def __init__(self):
        super(CallConfigure, self).__init__()

    def call_configure_callback(self, _entity, _ecm):
        world = World(_entity)
        gravity = world.gravity(_ecm)
        modelEntity = world.model_by_name(_ecm, "falling")
        print("modelEntity ", modelEntity)
        # print("gravity ", gravity)

postupdate = CallPostUpdate()
update = CallUpdate()
preupdate = CallPreUpdate()
configure = CallConfigure()

helper.on_post_update(postupdate)
helper.on_update(update)
helper.on_pre_update(preupdate)
helper.on_configure(configure)

helper.finalize()

server = helper.server()

server.run(False, 1000, False)

while(server.running()):
    time.sleep(0.1)

print("iterations ", iterations)
print("post_iterations ", post_iterations)
print("pre_iterations ", pre_iterations)

Example

from ignition_gazebo import ServerConfig, Server, HelperFixture, World
from ignition_common import set_verbosity
from ignition_transport import Node
from ignition_msgs import PoseV
from ignition.math import Vector3d
import time

set_verbosity(4)

helper = HelperFixture('gravity.sdf')

post_iterations = 0
iterations = 0
pre_iterations = 0

def on_configure_cb(worldEntity, _ecm):
    print("worldEntity ", worldEntity)
    w = World(worldEntity)
    # print("Gravety ", str(w.gravity()))
    modelEntity = w.model_by_name(_ecm, "falling")
    print("modelEntity ", modelEntity)

def on_post_udpate_cb(_info, _ecm):
    global post_iterations
    post_iterations += 1
    # print(_info.sim_time)

def on_pre_udpate_cb(_info, _ecm):
    global pre_iterations
    pre_iterations += 1
    # print(_info.sim_time)

def on_udpate_cb(_info, _ecm):
    global iterations
    iterations += 1
    # print(_info.sim_time)

helper = helper.on_post_update(on_post_udpate_cb)
helper = helper.on_update(on_udpate_cb)
helper = helper.on_pre_update(on_pre_udpate_cb)
helper = helper.on_configure(on_configure_cb)

helper = helper.finalize()

server = helper.server()
server.run(False, 1000, False)

while(server.is_running()):
    time.sleep(0.1)

print("iterations ", iterations)
print("post_iterations ", post_iterations)
print("pre_iterations ", pre_iterations)

I have some blockers:

I'm able to cast inside pybind11 (c++) a SWIG object (copying some of the utils by SWIG in the pythonPYTHON_wrap.cxx), but I'm not able to do the opposite, generate a SWIG object inside the C++ code.
Something similar is happening with the SWIG prototype. SWIG is generating pythonPYTHON_wrap.cxx with all the stuff to create SWIG objects but it's not providing any header which means if we generate an different SWIG module (ign-gazebo in this case) we don't have access to create object from the ign-math SWIG module.

@ahcorde thanks for posting your branch with the experimental pybind11 Python bindings, it's been very helpful. My immediate interest is to obtain bindings to the ignition-msgs and ignition-transport libraries so I can subscribe to ignition topics in Python for further processing.
Have you looked into using https://github.com/pybind/pybind11_protobuf to manage the conversion between the Python bindings generated by protoc and the interfaces into ignition-transport etc. generated by pybind11? On the surface it looks like it might help avoid having to provide manual bindings for each message type but I have not yet managed to get an example running. Unfortunately the pybind11_protobuf project is missing CMake files so there is a bit of upfront work to get going - if you've looked at it and ruled it out for a reason that would be good to know.

Hi @srmainwaring , the scope of our current scripting efforts is limited to ign-math and ign-gazebo. The goal is to release a proof-of-concept with these libraries and expand to others from there.
Thank you for pointing us at pybind11_protobuf, I don't think it was in our radar. For ign-msgs / protobuf, we've long wanted to stop packaging the generated code and instead ship just proto files, see https://github.com/ignitionrobotics/ign-msgs/issues/113. We may need to remove all generated classes from our public APIs for that, which is something we're not sure we want to do. If that route is taken, maybe there's no need to wrap C++ into Python. But we have no plans to work on it in the near-future, so wrapping C++ may be the quickest thing to do.

@chapulina thanks for the outline. As you're not planning to work on ign-transport at present I've taken a look into what would be involved in getting ign-transport to work almost natively in Python.
I've put together a project here https://github.com/srmainwaring/python-ignition which generates bindings for the messages I'm interested in and exposes a mock-up of ign-transport which is then exposed to Python with pybind11. I think the only interface that will need a bit of thought is subscribe as it's templated and ideally I'd like the Python side callbacks to use the derived types. Aside from that it all looks feasible.
It's all built with Bazel as that is what the protobuf and pybind11 projects seem to be using. I've started to look at the ign-bazel project to see how it can be adapted as an external dependency and what's needed to get a garden version of ignition transport working.
If there's any interest or overlap with your team's work - happy to collaborate, otherwise I'll post something on community if I manage to get it all working.

That's great to hear, @srmainwaring ! We'd be willing to maintain and package the pybind11 interfaces within ign-transport and ign-msgs similarly to how we're doing for ign-math right now.
We'd need to get it to work with CMake though. Our Bazel support is experimental and meant to help downstream users who want to use it, but our official build tool is CMake.
In any case, you should advertise your work to the community, no matter where it lands :wink:

The proof-of-concept has been merged, so I'm closing this issue. If bugs come up and more features are desired, please open new tickets for them. We'd love to hear what the community thinks of the proof-of-concept before adding more features to the current implementation.

authors: ahcorde chapulina srmainwaring traversaro

repo: ignitionrobotics/ign-gazebo


text:
Backport #487 to sdf9: support L16 pixel format

Support for the L16 pixel format was added in sdf10, so this back ports it to sdf9. Use Rebase and Merge.

#487

Codecov Report

Merging #959 (225bf3d) into sdf9 (72b77c2) will decrease coverage by 0.01%.
The diff coverage is 0.00%.

:exclamation: Current head 225bf3d differs from pull request most recent head cca6286. Consider uploading reports for the commit cca6286 to get more accurate results

@@            Coverage Diff             @@
##             sdf9     #959      +/-   ##
==========================================
- Coverage   87.57%   87.55%   -0.02%
==========================================
  Files          63       63
  Lines        9901     9903       +2
==========================================
  Hits         8671     8671
- Misses       1230     1232       +2

Impacted Files
Coverage Δ

src/Camera.cc
81.16% <0.00%> (-0.44%)
: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 72b77c2...cca6286. Read the comment docs.

authors: codecov-commenter scpeters

repo: ignitionrobotics/sdformat


text:
Potential improvement to EM::Synchrony.sync's handling of EM::Deferrable called with multiple arguments

Hi!
I'm working on providing an em-synchrony friendly version of ZK::EventMachine, but have run into trouble with the way that EM::Synchrony.sync handles callbacks that have their succeed method invoked with multiple arguments. I make extensive use of this pattern throughout my code, so for me this is a pretty important thing to have working :)
Below I have an example fix for sync. I created a fork and branch of em-synchrony and made the change, but I couldn't figure out how to set up all of the required dependencies to run the specs.
I've included below a small demonstration of the problem (for me) and the proposed fix. If it's easier for you, you can also check out a gist of this code and run it that way.
The change is pretty minor, if you can instruct me on how to configure mongo and mysql, etc. so I can run the test suite, i'd be happy to. If you don't mind making the change in your environment and seeing if there are any ill effects, that'd work too.
#!/usr/bin/env ruby

require 'rubygems'
require 'eventmachine'
require 'em-synchrony'

module EventMachine
  module Synchrony
    def self.new_sync(df)
      f = Fiber.current
      xback = proc {|*args|
        if f == Fiber.current
          return *args
        else
          f.resume(*args)
        end
      }
      df.callback &xback
      df.errback &xback

      Fiber.yield
    end
  end
end

def gimme_deferreds
  a, b = EM::DefaultDeferrable.new, EM::DefaultDeferrable.new

  EM.next_tick do
    a.succeed(1, 2, [:foo, :bar])
    b.succeed(:single_arg)
  end

  return a, b
end

def current_implementation
  EM.synchrony do
    a, b = gimme_deferreds

    rval = EM::Synchrony.sync(a)
    puts "a rval: #{rval.inspect}"

    rval = EM::Synchrony.sync(b)
    puts "b rval: #{rval.inspect}"

    EM.next_tick { EM.stop_event_loop }
  end
end

def proposed_fix
  EM.synchrony do
    a, b = gimme_deferreds

    rval = EM::Synchrony.new_sync(a)
    puts "a rval: #{rval.inspect}"

    rval = EM::Synchrony.new_sync(b)
    puts "b rval: #{rval.inspect}"

    EM.next_tick { EM.stop_event_loop }
  end
end

if __FILE__ == $0
  puts <<-EOS
call signature:
a.succeed(1, 2, [:foo, :bar])
b.succeed(:single_arg)

  EOS

  puts "this is the return value of the current implementation:"
  current_implementation

  puts "\nthis is the proposed change:"
  proposed_fix
end

__END__

call signature:
a.succeed(1, 2, [:foo, :bar])
b.succeed(:single_arg)

this is the return value of the current implementation:
a rval: 1
b rval: :single_arg

this is the proposed change:
a rval: [1, 2, [:foo, :bar]]
b rval: :single_arg

Thanks!
Jonathan

Jonathan, that looks great, just merged and pushed your patch into master.
P.S. ZK-eventmachine -- awesome!

ah, excellent! thank you so much!

authors: igrigorik slyphon

repo: igrigorik/em-synchrony


text:
Naming of gem

This gem is awesome. Sorry for being super pedantic, but why not just call it http2?
It would make more sense.
require 'http2' would import a module called HTTP2.
No need to have 2.rb and http/2/*.rb.
I think it's fun that you can write require 'http/2', but it doesn't match up with the name of the module, nor is it typical.
Thoughts?

All good points. The counter is: "http/x" is the name convention in http-land.
There is no right or wrong here, and I don't think we stand to gain anything by changing names at this point.

All good points. The counter is: "http/x" is the name convention in http-land.

I don't see any gem named http-1 - where are you getting this convention from?
The name convention I suggested is derived from RubyGems recommendations: http://guides.rubygems.org/name-your-gem/

There is no right or wrong here, and I don't think we stand to gain anything by changing names at this point.

What you stand to gain is better consistency with official RubyGems naming conventions. There is value in this.

I don't see any gem named http-1 - where are you getting this convention from?

I'm not talking Ruby, rather:

https://http2.github.io/
https://en.wikipedia.org/wiki/HTTP/2
http://httpwg.org/specs/rfc7540.html

Well, I respect your choices, but I think it's wrong to ignore the RubyGems conventions.

@ioquatix what does it matter if someone already has the http2 gem name?

Well, in the past, I usually check if there is a naming conflict. In the case there is, I normally check if the project is alive or not. If it's alive, I opt for a different name, usually totally different so as to avoid any confusion.
If it's not alive, I normally try to contact the author and ask them. It depends on my goals, but I normally do something on the continuum of 1/ offer to maintain the existing code base and add the functionality I want or 2/ reuse the name but scrap the existing code (bump major version if required).
I didn't even know a gem called http2 existed, but yes, I can see how now the situation is very confusing for everyone.
The http2 gem defines a module class Http2 so only by luck (and poor naming on the part of the original code since abbreviations should be capitalised IMHO) would these two gems not completely self-destruct if used together for some reason.
It might not be obvious where this is a problem - it becomes a problem when you have these dependencies several levels deep in different branches of your dependency tree. You may not even realise there is an issue until too late. But, IMHO, people should abide by the RubyGems naming convention to avoid namespace collisions.
Just my 2c.

authors: igrigorik ioquatix nateberkopec


text:
Difference between shadow tls and simple obfs

Would you please let me know what is the difference between shadow tls and
https://github.com/shadowsocks/simple-obfs ?

There is a real tls handshake if you use shadow-tls. For the man in the middle, The handshake  itself is valid, and the certificate is trusted and valid too.

Thank you for your response.
Can you please remove this issue for the security concerns?

authors: ihciah modaresimr

repo: ihciah/shadow-tls


text:
README files

Currently in the repository, there are README.rst and readme.md. I think we should remove README.rst and change name readme.md to README.md to follow the convention.
Afterwards, we also need to change
https://github.com/ihmeuw-msca/splitting-python-package/blob/main/setup.cfg#L5-L6
to the corresponding file and format.

It looks right in the linked file, I tried to capitalize afterwards, but git doesn't seem to notice it. Let's see if it gets propagated on next push.

Thanks for working on this @AHsu98! I think the better way to work on these issues is to create a new branch (for example in this case it can be readme_files) and make the changes in the branch. Afterwards submit a PR so that the collaborator can comments and contribute. This way it will keep the changes regarding to this issue contained while main branch remains clean :)

Fixed with #13

repo: ihmeuw-msca/pyDisagg


text:
无法录制部分douyin直播流，且无法检测开播状态，因其仅支持手机端app观看。

    能通过手机浏览器直接播放流畅画质的直播流，通过手机上的X浏览器直接嗅探到stream*****_ld.flv的直播流，此【流畅】画质直播流或许能作为一个替代方案。
    更改成手机端user_agent进行直播流抓取，或许能用于临时补全 完全无法录制的空缺。
    提供一个此种情况的直播间/ijThJ2fU

v.douyin.com/ijThJ2fU

v.douyin.com/ijTkpTWH
这个也是一样，简单归纳一下，就是付费连线型的直播间无法录制，其实这种直播间如果只能抓取到流畅画质的直播流，也差不多能满足要求了，一般是听各种问题和解答。不注重画质。
因此我觉得还是有的补全录制价值。

嗯简单查看了一下确实无法正常录制连麦直播，禁止pc网页端观看，但是移动端可以获取，画质的话也是有方法获取到蓝光、超清等画质的，这两天我更新一下。

authors: bytype ihmily

repo: ihmily/DouyinLiveRecorder


text:
Bot gets stuck after some time

It works but after some time it gets stuck at "Skip waiting for stats" screen.

log.txt

thanks for the log file. i need to update the connection error-out times for slower connections.

authors: Aeikir iholston

repo: iholston/lol-bot


text:
✨ 为非SpringBoot项目提供UberJar构建支持

问题
非SpringBoot项目的jar任务通常无法构建出uberjar，对于指定mainclass和运行时classpath，都不太好简化配置。
解决方案
为iHubJava插件添加一个可选的feature，提供类似于Shadow插件的能力。
备选方案
No response

通常需要shadow插件的项目都是“可执行的”，所以最好连带添加application插件，用于简化定制
main class。

另外，请尽可能让非SpringBoot的纯标准Java的支持插件也能拥有类似boot插件的读取'.test-local'和'.java-local'属性文件及系统参数的能力。

repo: ihub-pub/plugins


text:
[Bug]: Make it run on arm architecture

i tried to install catnap on aarch64 architecture but got this
==> ERROR: catnap-git is not available for the 'aarch64' architecture.

Hey, I did Not create the AUR repo and therefore don't know how to fix this.

aarch64 is arm architecture (like raspberry pi 4 64-bit), and has nothing to do with Arch Linux.

AUR maintainer would need to publish an arm build on the AUR.
Installing catnap from the repo should work just fine on arm.

Catnap does build on ARM64 right?

It built on my debian ARM64 system. (Raspberry Pi 4 64-Bit)
So yeah should work.

I updated the AUR package so now it should build on any architecture.
@gybo03 it should work now.

nice thanks

authors: JustBuddy gybo03 iinsertNameHere yuki-was-taken

repo: iinsertNameHere/catnap


text:
标题自动编号

正在学习写博客，请问如何实现自动编号，例如 https://maxchendt.github.io/2016/09/02/instHexo/   采用 https://github.com/3meng/3meng.github.io/issues/1 的方法，在 landscape theme 下实现了。
在 next 主题中，请问 如何实现？

昨天晚上好好睡了一个晚上，早上继续看代码，虽然半懂不懂的
先google, 发现 https://stackoverflow.com/questions/6341191 提示要先导入 jquery.min.js ， 在生成的 html 代码中，找 jquery， 发现 如下行
<script type="text/javascript" src="/vendors/jquery/index.js?v=2.1.3"></script>

嗯，对比 https://developers.google.com/speed/libraries/ 感觉就是了，只是这里不是用托管在 ajax.googleapis.com  上的
grep -R --include="*.swig" 'index.js' ./themes/next

发现在 ./themes/next/layout/_scripts/vendors.swig 中，因此，在该文件的最后加入
<script type="text/javascript">
$(document).ready(function(){
  var $article = $(".post-body");
  var count = [0, 0, 0, 0, 0, 0];
  var mark = [0, 0, 0, 0, 0, 0];

  (function setMark(){
    var hTag = ["h1", "h2", "h3", "h4", "h5", "h6"];
    var index = 0;
    for (var i = 0; i < 6; ++i) {
      if ($article.children(hTag[i]).length > 0) {
        ++index;
        mark[i] = index;
      }
    }
  })();

  $article.children(":header").each(function(){
    var t = $(this);
    var pos = 0;
    switch (t[0].tagName) {
      case "H1": pos = 0; break;
      case "H2": pos = 1; break;
      case "H3": pos = 2; break;
      case "H4": pos = 3; break;
      case "H5": pos = 4; break;
      case "H6": pos = 5; break;
    }

    var len = mark[pos];
    if (len < 6) { count[len] = 0; }
    count[len - 1]++;

    var listStr = count[0] + "";
    for (var i = 1; i < len; ++i) { listStr += "." + count[i]; }
    listStr += " ";
    t.html(listStr + t.html());
  });
});
</script>

注意 var $article = $(".post-body"); 要对应next主题使用的 post-body 对象

能否问下，您最后是怎么解决代码块之后的行不自动缩进的呢？

NexT is rebased into organization repo.
If you want new feature, fix, or support, create new in NexT v6.x repo (desirable in English).
There is instructions on English or Chinese how to update from v5.1.x to v 6.x
You also may read this for details.

authors: ivan-nginx maxchendt sanyucz

repo: iissnan/hexo-theme-next

license: mit

license_source: bigquery


text:
✨ Sharing/copy schedule link to others

Able to create a link to access a read only schedule. Useful when to share schedule to other/view schedule to other devices while keeping in sync its origin.

I think this requires maintaining state. meaning we need a dedicated database to store the schedule

Agreed. We need to store the schedule somewhere.

authors: PlashSpeed-Aiman iqfareez


text:
🛑 MusicBot UITM is down

In 7b8b995, MusicBot UITM (https://MusicBot-UITM.nexter32.repl.co) was down:

HTTP code: 0
Response time: 0 ms

Resolved: MusicBot UITM is back up in f1a5528.


text:
🛑 Penyanyi VF v3 is down

In 8e9b567, Penyanyi VF v3 (https://discord-musicbot.nexter32.repl.co) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Penyanyi VF v3 is back up in fc8c71f.


text:
Fetch PR title from management tool

Allow generating PR titles from management tool ticket in addition for parsing branch name.
It could be a parameter like for creating branch e.g. gh prx TCKT-1234 --web or additional flag gh prx TCKT-1234 --issue TCKT-1234 --web
When param or flag is used PR title is getting from management tool and title is composed according to template set in config file

Hi @zaknafeyn 👋🏼
Thanks for opening this issue!
At the moment, when a variable is being configured according to a template, for example:

authors: ilaif zaknafeyn

repo: ilaif/gh-prx


text:
🛑 POSTA_ZEUS is down

In c506790, POSTA_ZEUS ($POSTA_ZEUS) was down:

HTTP code: 0
Response time: 0 ms

Resolved: POSTA_ZEUS is back up in 516594f after 7 days, 16 hours, 50 minutes.


text:
🛑 Gitlab is down

In c5baef5, Gitlab (https://git.stis.ac.id) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Gitlab is back up in 2332240 after 14 hours.

repo: im-perativa/stis-uptime


text:
gradient for pie chart

add gradient for pie chart

Please rebase your branch (it is mentioned in our contributing guideline)

authors: imaNNeo raldhafiri


text:
How we get dynamic titles on all axis with getTitle?

when we displaying a graph of variations with a dynamic y-axis, it is not possible to show.
For example, when we displaying monthly earnings of someone. Will take as he earned On January $ 500, on February $30,000, march $5000. On  January I want to scale y-axis with $100 gap. (0- $100, $100 - $200 ... ). But it comes to February I want to change the y-axis to $1000 gaps.
In here, Graph change according to the highest-earning in what month of the whole year. It is also easy to see the difference between earnings. So how we manage this kind of thing?

I have a FAB that adjusts a value used in the title determination.  onTap function makes adjustments to the var maxX inside a setState.
The getTitles looks like this:
               getTitles: (value) {                   if (value % 5 != 0) return '';                   return (maxX - value - 1).truncate().toString();                 },
And titles are returned as calculated in the return statement.

Thanks @jonny7737! You are correct.

authors: DTharaka imaNNeoFighT jonny7737


text:
Bugfix install.sh path to bashrc with spaces

Currently, if username has a space, script will fail; path to bashrc/bash_profile gets broken up
$ curl -s https://raw.githubusercontent.com/imachug/win-sudo/master/install.sh | sh
Downloading win-sudo...
mkdir: created directory '/c/Users/Michael Chan/bin'
mkdir: created directory '/c/Users/Michael Chan/bin/win-sudo'
Processing /c/Users/Michael Chan/.bashrc
sh: line 28: [: /c/Users/Michael: binary operator expected
Processing /c/Users/Michael Chan/.bash_profile
sh: line 28: [: /c/Users/Michael: binary operator expected
Win-sudo successfully installed!

Have tested fix, ensures spaces in path are handled, resulting in
mkdir: created directory '/c/Users/Michael Chan/bin'
mkdir: created directory '/c/Users/Michael Chan/bin/win-sudo'
Processing /c/Users/Michael Chan/.bashrc
Appending sudo initialization to  /c/Users/Michael Chan/.bashrc
Win-sudo successfully installed!

And sudo works!

DO NOT MERGE, from testing looks like another bug, will update

Some bugs in sudo itself, also regarding spaces
sudo netsh advfirewall firewall add rule name="lolchat" dir=out remoteip=172.65.244.155 protocol=TCP action=block
realpath: Chan/bin/win-sudo/s/sudobackend: No such file or directory
UAC elevation was canceled

After taking out dev/null redirection from powershell line and adding a debugging line(won't output anything if there is no error)
{noformat}
; ($Error[0]).InvocationInfo.Line
{noformat}
Start-Process : A positional parameter cannot be found that accepts argument 'Files/Git/'.
At line:1 char:1
+ Start-Process "C:\Program Files\Git\usr\bin\bash" "/c/Users/Michael C ...                                                                             + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Start-Process], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.StartProcessCommand

Start-Process "C:\Program Files\Git\usr\bin\bash" "/c/Users/Michael Chan/bin/win-sudo/s/sudobackend", "/tmp/.sudo.5526" -Verb RunAs -WorkingDirectory C:/Program Files/Git/ -WindowStyle Hidden; ($Error[0]).InvocationInfo.Line

From there, it hangs(hard to tell with all the changes to fds and pipes), but from what I can tell, isn't related to the changes I made nor spaces in paths.  Feel free to make edits/merge.
I'll open an issue regarding the hanging after the powershell command, if you have suggestions let me know.

Thank you.

authors: imachug michaelchanwork

repo: imachug/win-sudo


text:
Add support to compress icon files

I'm not really sure if that is reasonable somehow, but it would be nice to also minimize icon files. As far as I know they are only containers, which can contain almost everything, but I'm not sure.
Whatever they are, reducing their filesize with image in would be pretty cool.
Thanks!

This is probably nothing we're going to add for now.

Of course I accept your decision, but I'd like to know why you made this decision?
Every web project, app, page or whatever has a favicon. That is downloaded a million times and usually it's not compressed or optimized at all. Imagemin seems to be the perfect tool to do the job, as it is already in the workflow of many people to optimize all the other images in their project.

Am 20.04.2015 um 22:35 schrieb Kevin Mårtensson notifications@github.com:
This is probably nothing we're going to add for now.
—
Reply to this email directly or view it on GitHub.

Use a png one.

Which does not support different images for difference sizes.

Am 21.04.2015 um 11:45 schrieb Kevin Mårtensson notifications@github.com:
Use a png one.
—
Reply to this email directly or view it on GitHub https://github.com/imagemin/imagemin/issues/88#issuecomment-94723102.

authors: kevva tobiastom

repo: imagemin/imagemin


text:
Update dependencies to the latest version

Automated changes by create-pull-request GitHub action

:tada: This PR is included in version 1.0.3 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


text:
局域网IPv6访问问题

当局域网为IPv6环境时, 上传页面显示为ipv6地址, 无法访问.

访问V4地址就进去了，不要看页面的显示

repo: imfuxiao/Hamster


text:
When given a fixed w: input value, generate appropriate w values for known DPRs

To better hit the 1x, 2x, etc. case while still strictly adhering to generating only w-style srcset rules, imgix-rails should be smarter about how it generates srcset rules.
This will come into play for things like fixed-width avatars that only need to be resolution-switched across different DPRs.
Developers should be able to write:
<%= ix_image_tag('/avatar.jpg', { w: 40, h: 40, sizes: "40px", max_width: 120 } %>

And have imgix-rails generate the following:

See the conversation here for some context: https://imgix-community.slack.com/archives/general/p1464697975000282

This kind of flexibility would be most appreciated! Expanding on the above, would love to have full control over the array of sizes that imgix-rails generates.  Whereby, something like:
<%= ix_image_tag('/avatar.jpg', { w: ['40', '80', '160'], sizes: "(min-width: 1500px) 25vw, (min-width: 850px) 33vw, (min-width: 550px) 50vw, 100vw" } %>
Might generate:

authors: kellysutton klesht

repo: imgix/imgix-rails


text:
Inline ignore for files

Our use-case is a large lerna mono-repo with a number of packages each generating nested index files. Although ctix already provides .ctixignore, it would be extremely handy if we could indicate at the top of a file to ignore exporting it in the generated index:
/* ctix ignore */
There may be a use-case for being able to embed this at the export level (if you have files with multiple exports and some should be in the index and others shouldn't), but I think a simple one-off directive at the top of a file is probably "good enough". Curious what the feasibility of a feature like this is, and if the use-case seems broad enough to support it.

@hallister, That's good idea. However, I'm working on another project right now, os I can't update right now. If you issue a PR, I can review it. Thank you for your feedback!

@hallister Hi,
I was working on ctix 2.x. The 2.x version now allows you to set include, exclude directly without using the .ctiignore file, or use the include, exclude in the tsconfig.json file. I was also made improvements to allow you to exclude files or export statements with comments you've suggested.
Please see the documentation I was put together on inline exclude. Barring any special bugs, I will be releasing version 2.x next week. Thank you for your feedback in making ctix better.

That feature was added in version 2.0

authors: hallister imjuni

repo: imjuni/ctix


text:
react compiled with warnings: Expected a default case default-case

immer is a very good library, but when combined with the create-react-app, it warning: Expected a default case default-case, is there a good solution? Of course, if you add a blank default-case can solve this problem.
function reducer(state = {}, action) {
  return produce(state, draft => {
    switch (action.type) {
      case ACTION_A:
        break
      case ACTION_B:
        break
//    default:
    }
  })
}

Nope, (I think it is a stupid rule in the first place :). Static type
checkers can perfectly assert whether a default cause can happen or not.)
Op ma 5 feb. 2018 om 13:04 schreef fuhaiwei notifications@github.com:

immer is a very good library, but when combined with the create-react-app,
it warning: Expected a default case default-case, is there a good
solution? Of course, if you add a blank default-case can solve this problem.
function reducer(state = {}, action) {
return produce(state, draft => {
switch (action.type) {
case ACTION_A:
break
case ACTION_B:
break//    default:
}
})
}
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/mweststrate/immer/issues/91, or mute the thread
https://github.com/notifications/unsubscribe-auth/ABvGhF9M1vn8ATnfNQAK0XV43E9dArISks5tRu46gaJpZM4R5Vqm
.

For this craco (https://github.com/sharegate/craco) may be a "easy" solution. I just updated my package.json like this:
    "scripts": {
-       "start": "react-scripts start",
+       "start": "craco start",
-       "build": "react-scripts build",
+       "build": "craco build",
-       "test": "react-scripts test",
+       "test": "craco test",
-       "eject": "react-scripts eject",
+       "eject": "craco eject",

And used this craco.config.js:
module.exports = {
    eslint: {
        enable:    true,
        mode:      'extends',
        configure: {
            rules: {
                'default-case': 0
            }
        },
    },
};

This seems to work pretty well with create-react-app (https://github.com/facebook/create-react-app).

authors: blaues0cke fuhaiwei mweststrate

repo: immerjs/immer


text:
repLoad issue

Hi,
I'm able to successfully to load the 10x original filtered_contig_annotations.csv file. But I got error "Error in while (is.na(recomb_type) && i < 100 && !is.na(.name[i])) { : missing value where TRUE/FALSE needed" after I removed some cells.
Thank you!

Hi @WG20231
Thank you for opening the issue. Does this prevent you from properly analyzing, or is some data missing? Please let me know. I'm open to scheduling a short call to discuss this issue over Zoom if this accelerates things.

repo: immunomind/immunarch


text:
Can I insert hyper link to an URL?

Hi, is there a way to insert hyper link to an url?
Thanks

There is a feature request issue open for this, we don't have this yet.

i am facing last few week not able add url link using CNRichTextEditor
Please solve issue if any one know about this

repo: imnapo/react-native-cn-richtext-editor


text:
Change Beneficiary ID

Beneficiary ID confuses users. Change to Beneficiary and update hint messaging to detail that it is best practice to use a non personally identifiable ID.

 General refinement

repo: impactasaurus/app


text:
Show catalogue questionnaire license info

Once https://github.com/impactasaurus/server/issues/187 is complete, present the license on the catalogue questionnaire's general page

 Library of standard question sets


text:
Rule suggestion: sort "parent"/ relative dirs

I've looked around but not sure if there is a duplicate. What do you guys think about sorting relative dirs by level? I'm asking this because my team has a rule for it. It should be configurable with 2 directions as follows:
import a from '../../../a'
import b from '../../b'
import c from '../c'

import c from '../c'
import b from '../../b'
import a from '../../../a'

Let's make a discussion. I am willing to make it if the idea gets approved.

@ljharb I see. But in my scenario, we are using NestJS with the following structure:
src
└─ modules
      └─ users
            └─ users.service.ts
      └─ products
            └─ products.service.ts
      └─ orders
            └─ orders.service.ts
└─ shared
      └─ constants.ts
      └─ helper.ts

In users.service.ts, I have to use methods from products.service.ts, orders.service.ts and helper.ts so the import statements would be:
import A from '../products/products.service'
import B from '../../shared/helper'
import C from '../orders/orders.service'

You can see the statements aren't sorted by level while my team has such a rule. In case a repository allows its contributors to import from a parent, could we introduce an additional configurable to sort such imports?

I’m not really clear on the value of that sorting, tbh, let alone that directory structure.

Is this issue related? #1881

@lydell yeah. The same idea

authors: francisizme ljharb lydell

repo: import-js/eslint-plugin-import


text:
Cleaning up dataDir breaks backwards comparability.

Cleaning up dataDir from #571 breaks backwards comparability.
https://github.com/improbable-eng/thanos/pull/571#issuecomment-430632467
compact command failed: clean working temporary directory: remove /var/thanos/data: device or resource busy

I use data-dir the same as the mount path of volume in k8s, hence dir couldn't be deleted.
The workaround is to set data-dir as nested dir. I.e. in my case this's: /var/thanos/data/compact

Sorry, my bad... I also meet the problem when it is integrated in Kubernetes today.
So could we clean up the subpath directories such as compact and downsample instead of the temporary directory itself?

i meet this problem too, when add hostpath as volume in kubernetes

authors: dmitriy-lukyanchikov domgreen jojohappy

repo: improbable-eng/thanos


text:
Footer should fill screen, be at bottom

Fixed.

authors: dpitt rukesh-keyhole

repo: in-the-keyhole/khs-convo


text:
Refactor SettingsManager with TOML and better practices

Looks like TOML supports lossless parsing and easier updating.
We're currently doing a bit of gymnastics with YAML to make it work.
https://pypi.org/project/tomlkit/
Some general refactoring to improve performance and reduce edge-case errors is a good idea.
There are a few half baked features that might benefit from better configuration support.

/cib


text:
Fix a few static analysis warnings

This version will fail on OTP 20, though, due to the use of an old cowlib version.
Warning is call to crypto:rand_bytes/1 will fail, since it was removed in 20.0; use crypto:strong_rand_bytes/1

At the same time, if this could be published as 1.2.4, that would be 👍

@elbrujohalcon: I updated the PR as per your comments and added OTP 20.3 and 21.2 to the Travis bit.

@paulo-ferraz-oliveira You == ?THE_MAN! 🤘

@paulo-ferraz-oliveira You = ?THE_MAN! 🤘

😄 once Travis is finished, if you're OK with the PR could you merge it and tag it (also publish to hex?). Thanks.

authors: elbrujohalcon paulo-ferraz-oliveira


text:
ContextHeader component

This is a nav header for views that need an additional context that is visible regardless of scroll. If there's a way to plug this into react-navigation that would be awesome, but I'm not seeing one on a cursory glance. This might need to be implemented as a full view wrapper like <ScrollWithFooter> or something.
Props:

[ ] title: string
[ ] subtitle: string
[ ] onBack: function that gets fired when the back button is pressed

Visuals:

[ ] Back button
[ ] Start-aligned Heading1 title
[ ] Start-aligned Heading4 subtitle
[ ] Casts a shadow similar to box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
[ ] sticks to the top of the screen when used with a ScrollView

Other TODOs:

[ ] Put it in the UI library

had to dig a bit, but eventually found this in the docs. Pretty small pr to get this done

Closed via #508

authors: Chrischuck albullington kueda

repo: inaturalist/iNaturalistReactNative


text:
Blocking removes users from each other's projects

Fixes https://github.com/inaturalist/inaturalist/issues/4108
Regardless of project type,

When blocking a user:

remove blocker and blockee from one another's projects
delete any pending project invitations

Prevent either user from adding the other to their project

This does not affect the requirements of any umbrella project.

Looks good. Thanks!

authors: pleary rainhead

repo: inaturalist/inaturalist


text:
Remove predicate functions - use filter_deployments()

Once #315 is completed, we can replace the predicates with filter functions. Here below the most important steps:

[x] Remove predicate related functions
[x] Replace the use of predicate function with filter_deployments()
[x] Update function documentation
[ ] Update vignette #320
[x] Remove tests

Functions should not do any filtering at all internally, any filtering should happen before and be piped in.
So lines using predicates can just be removed.

We should make a new vignette about the filtering functions : how to read data, how to manipulate camtrapdp objects

There are still references to mica in my branch:
https://github.com/inbo/camtraptor/blob/a10adc1adc5ef8d2fc8b40b58894a8225f03de37/R/get_n_species.R#L14
Probably should remove these, I don't want to do this in the same branch

I should also scan the package of the word filter in the documentation and examples

Based on good practices, we must make these functions defunct, instead of just removing them.

Fixed by PR #331. The task of updating the vignette has been already transferred to a separate issue.

authors: PietrH damianooldoni

repo: inbo/camtraptor


text:
Error when running synthesize on blank project clone

@Speech jokey team:
I'm currently testing the new version of Speech Jokey and I keep getting an error when trying to convert the text into a *.wav file. Do you know what might be causing this?

[INFO   ] [MainScreen          ] Selected voice: Rachel
<api.elevenlabsapi.elevenlabsapi.ElevenLabsAPI object at 0x0000024102834D50>
hello guys, this is me.. Natascha. I'm testing the new version of speech jokey... It works great, although my Toby is super slow. This is ridiculous.. But the usability of the software is absolutely fine.
[DEBUG  ] [Starting new HTTPS connection (1)] api.elevenlabs.io:443
[DEBUG  ] [https          ]//api.elevenlabs.io:443 "GET /v1/voices HTTP/1.1" 200 47397
[DEBUG  ] [Starting new HTTPS connection (1)] api.elevenlabs.io:443
[DEBUG  ] [https          ]//api.elevenlabs.io:443 "POST /v1/text-to-speech/pMsXgVXv3BLzUgSXRplE?output_format=mp3_44100_128 HTTP/1.1" 200 335621
[ERROR  ] [MainScreen          ] Error during synthesis: [Errno 2] No such file or directory: 'tmp/output_file.wav'

Potential future error with OS fixed in: 7fe8c99faaa7dbc1ba8875f05d675ef5f106dc02
Described error from User fixed in: a31c7f4a80cc13c0f357adfeb7ffde9df87eac4d

If you want to bring the fixing commits over to the other branch where user is testing things, you'll need to do this:
git cherry-pick <COMMIT-HASH>
in this specific case:
git cherry-pick a31c7f4a80cc13c0f357adfeb7ffde9df87eac4d
Obviously you'll need to have pulled that commit BEFOREHAND, so if you don't have it, please do
git pull --all
or
git checkout develop_ui_fixes && git pull
and then
git checkout develop_breaks && git cherry-pick a31c7f4a80cc13c0f357adfeb7ffde9df87eac4d

Thank you! I added the commits to the branch with the cherry-pick commands

fixed by #9

authors: HackXIt IsabellaReiher deinhofer

repo: inclusion-international/speech-jokey


text:
allow setting workflowType

by default it's the simple name but in some advanced use case, ppl want to set the value differently (e.g. DSL workflow)

https://github.com/indeedeng/iwf-java-sdk/pull/70

repo: indeedeng/iwf-java-sdk


text:
Add git hooks or build step for running linters

Hey All ~ I noticed the npm run lint command probably hasn't been run in a while, I was wondering if adding pre-commit hooks or a build step to run the linters if you might get better adoption there.

This would be absolutely fantastic! Would you like me to assign this to you?

yeah you can assign it my way I should find some time this week, do you have a preferred method?  I don't see Github Actions be leveraged here yet, would you be opposed to me adding something leveraging that (like a build-lint-test step)

I have the workflow file more-or-less complete.  Would you like the PR to just contain the workflow file with the failing lint?  Or do you want me to bundle the npm run lint  run where it changes all the files as well?

I created the follow Draft PR so you can see the changeset for the workflow:
https://github.com/indeedeng/k8dash/pull/157
You can view a sample run off of my Fork of this repo on the branch 156-add-github-workflow, below is a direct link to the action running
https://github.com/goldsziggy/k8dash/runs/1212378528?check_suite_focus=true

authors: goldsziggy herbrandson


text:
template not found

i got this error:

any idea @sagikazarmark

See the usage section, point 3:
https://github.com/indigophp/sonata-admin-print-bundle#usage
Haven't found a better solution so far.

i did this:
            ->add('_action', 'actions', array(
                'actions' => array(
                    'show' => array(),
                    'edit' => array(),
                    'delete' => array(),
                    'print' => array(
                        'template' => 'SonataAdminPrintBundle::list__action_print.html.twig',
                    ),
                )
            ))

or what do you mean?

Yeah, I meant this one.
I don't know.
Here is an admin which works for me:
https://gist.github.com/sagikazarmark/3eba1c51e66d232b051b
If it doesn't help, I will try to find out what happens tommorrow.

hmm no, i got this error:
[Symfony\Component\Translation\Exception\InvalidResourceException]
  Invalid resource provided: "/Volumes/development/workspaces/tima-sonata/vendor/indigophp/sonata-admin-print-bundle/Resources/translations/SonataAdminPrin
  tBundle.de.xliff"; Errors: [ERROR 1871] Element '{urn:jms:translation}reference-file': This element is not expected. Expected is ( {urn:oasis:names:tc:xl
  iff:document:1.2}source ). (in /Volumes/development/workspaces/tima-sonata/ - line 14, column 0)

Oh shit, that's JMS translation bundle. You have to install that for now. But I already planned to kill that stuff.

check :)

this works:
        /* @var Response $response */
        $response = $this->render('SonataAdminPrintBundle::list__action_print.html.twig', [
            'action'   => 'print',
            'object'   => $object,
            'elements' => $this->admin->getShow(),
        ]);

could you please check that tomorrow, would be great :smile:

Will do.

looks like its working, but this is the result oO

I think it uses the show field data fro your admin, which is not mandatory.

i have show fields, but it looks like it uses the template which is used in the List for the Action!
"Drucken" comes from the translation file from the button action_print

Hm, looks like the template must also be configured. Here is my admin service definition:

services:
    szerviz.admin.issue:
        class: SzervizBundle\Admin\IssueAdmin
        tags:
            - { name: sonata.admin, manager_type: orm, group: "Szerviz", label: "Issue" }
        arguments:
            - ~
            - SzervizBundle\Entity\Issue
            - SzervizBundle:Issue
        calls:
            - [ setTranslationDomain, [SzervizBundle]]
            - [ setTemplate, [print, SonataAdminPrintBundle::print.html.twig]]

ok, but why do we then need the Configuration part?

I can't recall. :stuck_out_tongue:
You need to configure to templates: one for the action itself (with the print button) and the PDF template. I remember having a hard time with this, as sonata configuration can't really be extended with this.

Is this still a thing?

Is this still a thing?

I think yes, will try this when i find some time!

I have the same issue , an error message that say : Unable to find template "SonataAdminPrintBundle::list__action_print.html.twig"

authors: OskarStark midoox92 sagikazarmark

repo: indigophp/sonata-admin-print-bundle


text:
add numpy interface for arrayTrace functions

Dear Indranil Sinharoy,
first, thanks a lot for this great project! I have used the arrayTrace() functionality for my work. Recently, I have added some functions that use numpy arrays as arguments and pass them directly to the DLL. This reduces the overhead of the python wrapper considerably. Minor bugs have been fixed too. Maybe you find these additions useful.
Best regards,
Ralf Hambach.

Details:

Idea:
During profiling, most of the time used for ArrayTrace is spent in the python-wrapper, filling the RAYDATAARRAY. Instead of executing the loop in Python, I added functions, that pass numpy arrays to the DLL and perform the loop in C.

Performance:
I have tested the performance of ArrayTrace for the CookTriplet Sample file. The numpy version is considerably faster, but still a factor 5 slower than a GeometricImageSimulation in Zemax. Checking also the time that is spent in the PostArrayTraceMessage shows, that the Python overhead gets negligible (for many rays).

rays
1 Mio
10 Mio

pyzdde
6.4 s
50 s

pyzdde+numpy
1.1 s
9 s

PostArrayTraceMessage
-
~8 s

Zemax
<1 s
2 s

Notes:
So far I only tested the code on a single machine, so maybe some minor changes are necessary.

Dear Ralf Hambach,
This is too good! Thank you very much. I have quickly taken a look at your additions, and all of it look really nice. Over the next few days I will try to understand the additions/changes in more details and merge them into the main branch. (I am a little short on time at the moment as I am trying to finish my thesis).
I am very sure that so many people will really love this.
Thank you very much once again.
Best regards,
Indranil.

Dear Ralf Hambach,
I am extremely sorry that I haven't gotten around to merge your excellent pull request yet. I have been keeping really very busy. I assure you that your pull request is not out of my mind. I will get to it ASAP. I hope you will understand.
Thank you,
Best regards,
Indranil.

Thanks for your notice. There is really no problem.
All the best, Ralf.
Von: Indranil Sinharoy [mailto:notifications@github.com]
Gesendet: Samstag, 11. Juni 2016 07:35
An: indranilsinharoy/PyZDDE PyZDDE@noreply.github.com
Cc: Ralf Hambach ralf.hambach@uni-jena.de; Author author@noreply.github.com
Betreff: Re: [indranilsinharoy/PyZDDE] add numpy interface for arrayTrace functions (#64)
Dear Ralf Hambach,
I am extremely sorry that I haven't gotten around to merge your excellent pull request yet. I have been keeping really very busy. I assure you that your pull request is not out of my mind. I will get to it ASAP. I hope you will understand.
Thank you,
Best regards,
Indranil.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/indranilsinharoy/PyZDDE/pull/64#issuecomment-225338344, or mute the threadhttps://github.com/notifications/unsubscribe/AE4TQxCM29iuRtZhNmV42tfjMyzwqjZTks5qKkkHgaJpZM4IojHX.

I need to do some extra work to merge the new code (which are great, by the way) seamlessly into the existing PyZDDE code base without breaking old code. I am working on it locally, but will take some time (as I am currently very busy with my thesis). [This is mostly a reminder to myself that I have to do this work when I get some bandwidth]

Sorry for my newbie-ishness, but does this mean that if I installed PyZDDE within the last couple weeks (which I have) that arraytrace will not work? I'm guessing that this is true because my kernel freezes up when I try to call zArrayTrace.  I have to admit that I don't understand the workarounds.

@bauman3 I haven't not merged the changes from @rhambach to the main branch yet (as I explained above ... it will take a little more work). So, the problem that you seeing is certainly not due to the numpy interface.
I have observed that some times (I have faced this about 3-4 times) the array tracing module just doesn't respond (I am really not sure why this happens). But, restarting my computer resolved the problem each time. I have written about it here #63 . Please restart and try.

Dear Indranil Sinharoy,
after switching to python 3, I understood your problems with the proposed code in this pull request. I updated the code to run on my Windows machine with python 2.7, and 3.4. I also tested the DDE link with Zemax 13 and ZOS 16.5. Attached to this message, you will find the compiled code for 64bit systems, in case the compilation makes problems: pyzdde/arraytrace/x64/Release/ArrayTrace.dll (download: x64.zip).
I hope this makes it easier to incorporate the changes...
Best regards, Ralf.
PS. The conflicts arise as I also had the problem with the regexp's for float numbers being too tight in zGetPOP(). I solved this issue sligtly different by using a general regexp proposed by http://docs.python.org/2/library/re.html#simulating-scanf. In principle this might be done similarly in other file input functions, too.

Summary what works and what does not work on my machine:
Works

runs with python 2.7 and python 3.4
backward compatible:

import pyzdde.arraytrace as at still works and loads the old interface.
The new interface is only obtained by loading import pyzdde.arraytrace.numpy_interface as nt explicitly. I would not propose to make the choice automatic (if numpy is present), as the numpy interface uses slightly different parameters to use numpy arrays efficiently (e.g. pos as 3xN array instead of separate x,y,z arrays)

Does not work

Some of the unittests still fail. This is probably due to different handling of single and array raytrace by Zemax and should be handled in the pyzdde interface to avoid confunsion.

failed unittest
Zemax 13
ZOS 16.5
comment

pyZDDEunittest.py

test_zModifySettings
self.ln.zModifySettings(sfilename,'UN1_OPERAND', 'ZERN') returns -2 (incorrect version number)

arrayTraceTest.py
test_zGetTraceArrayOPD
test_zGetTraceArrayOPD
Test fails for real raytrace. The DDE arrayTrace function from Zemax does not return surface normal if OPD is requested.

arrayTraceTest.py

test_zGetTraceDirectNumpy  test_zGetTraceDirectRaystruct
ZOS 16.5 handles error and vigcodes different using either single raytrace or arraytrace.

The arraytrace (both the old interface and the numpy interface) get stuck using python 3.6 (timeout error). Deleting all cached files does not help for me.

Hi @rhambach ,
Thank you very much for all your effort. I promise to dedicate some time this weekend to try to understand and integrate your pull request. I'll most likely need your help; and I'm sorry that I wasn't able to merge your earlier pull-request. Thank you so much for your time and second pull-request.
Best regards,
Indranil.

authors: bauman3 indranilsinharoy rhambach

repo: indranilsinharoy/PyZDDE


text:
chore(master): release 0.4.2

:robot: I have created a release beep boop
0.4.2 (2023-10-10)
Features

add listConfigNodeVersions method (#276) (245b522)

This PR was generated with Release Please. See documentation.

:robot: Release is at https://github.com/indykite/indykite-sdk-node/releases/tag/v0.4.2 :sunflower:

repo: indykite/indykite-sdk-node


text:
Fi 3007 - subscription validation

Summary

Added a method to subscription_conformance_test.rb to test if the Provided URL in subscription.criteria is a valid URL and fail the test if it is not.

Testing Guidance

Run all rake tasks to confirm they work.
Run tests suite, confirmed working.

Add Requirement 73 to the verifies_requirements list for the test.

authors: karlnaden nhcady


text:
[Bug]: Setting "ef" as search parameter in a sparse vector search does not get an error

Is there an existing issue for the same bug?

[X] I have checked the existing issues.

Version or Commit ID
v0.4.0.dev2
Other environment information
No response
Actual behavior and How to reproduce it
Create Table
curl --request POST \
     --url http://localhost:23820/databases/default_db/tables/test_table1 \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data ' {
         "create_option": "error",
         "fields": [
             {
                  "name": "name",
                  "type": "varchar"
             },
             {
                  "name": "score",
                  "type": "float",
                  "default": 1.11
             },
             {
                  "name": "comment",
                  "type": "varchar",
                  "default": ""
             },
              {
                  "name": "dense",
                  "type": "vector,4,float",
                  "default": [0.0, 0.0, 0.0, 0.0]
             },
             {
                  "name": "sparse",
                  "type": "sparse,128,float,int",
                  "default": {"10":1.1, "20":2.2, "30": 3.3}
             },
               {
                  "name": "tensor",
                  "type": "tensor,4,float",
                  "default": [[0.0, 0.0, 0.0, 0.0], [0.1, 0.0, 0.0, 0.0]]
             }
        ]
    } '

Insert Data
curl --request POST \
     --url http://localhost:23820/databases/default_db/tables/test_table1/docs \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
     [
          {
               "name": "Jennifer",
               "score": 5.0,
               "comment": "You have a heart like gold.",
               "dense": [1.0, 0.0, 0.0, 0.0],
               "sparse": {"10":1.1, "20":2.2, "30": 3.3},
               "tensor": [[1.0, 0.0, 0.0, 0.0], [1.1, 0.0, 0.0, 0.0]]
          },
          {
               "name": "Neil",
               "score": 2.0,
               "comment": "You'\''re absolutely lucky.",
               "dense": [-1.0, 0.0, 0.0, 0.0],
               "sparse": {"10":1.1, "20":2.2, "30": 3.3},
               "tensor": [[0.0, 0.0, 0.0, 0.0], [1.1, 0.0, 0.0, 0.0]]
          },
           {
               "name": "Jay",
               "score": 3.0,
               "comment": "You have a heart like gold.",
               "dense": [1.0, 1.1, 1.2, 1.3],
               "sparse": {"10":1.1, "20":2.2, "30": 3.3},
               "tensor": [[0.0, 0.0, 0.0, 0.0], [0.1, 0.0, 0.0, 0.0]]
          },
          {
               "name": "Nick",
               "score": 3.0,
               "comment": "You'\''re absolutely lucky.",
               "dense": [0.0, 0.1, 0.2, 0.3],
               "sparse": {"10":2.1, "20":2.2, "30": 3.3},
               "tensor": [[1.0, 1.0, 0.0, 0.0], [1.1, 0.0, 0.0, 1.1]]
          }
     ] '

Conduct a Sparse Vector Search
curl --request GET \
     --url http://localhost:23820/databases/default_db/tables/test_table1/docs \
     --header 'accept: application/json' \
    --header 'content-type: application/json' \
    --data '
    {
        "output":
        [
            "name",
            "score",
            "_similarity"
        ],
        "search":
        [
            {
                "match_method": "sparse",
                "fields": "sparse",
                "query_vector": {"10":1.1, "20":2.2, "30": 3.3},
                "metric_type": "ip",
                "topn": 3,
                "params": {"ef": "150"}
            }
        ]
    } '

Expected behavior
An error message is returned indicating that "ef" is not the correct parameter for a sparse vector search.
Additional information
{"error_code":0,"output":[{"SIMILARITY":"18.039999","name":"Nick","score":"3"},{"SIMILARITY":"16.94","name":"Jennifer","score":"5"},{"SIMILARITY":"16.94","name":"Neil","score":"2"}]}

Fixed

authors: JinHai-CN writinwaters

repo: infiniflow/infinity


text:
Docs fix, remove option to update index schema from the console

Small docs update. It's not possible to update index schema from the console.
fyi @andyuk1986

Thank you @fax4ever

repo: infinispan/infinispan


text:
ISPN-6590 Improve custom cache store error message

https://issues.jboss.org/browse/ISPN-6590
https://issues.jboss.org/browse/ISPN-6814

Trivial :smile:

PR updated

Not sure I'd internationalize DEBUG and TRACE statements...

@tristantarrant so shall I remove second commit and move there only that one error message? I though all messages should be there as it already contained debug messages.

Yes please, this should actually go in to the contribution guide

PR updated

PR updated (using code style updated by @slaskawi so static imports are now on the top of the file)

Integrated, thanks Vojtech!

authors: danberindei tristantarrant vjuranek


text:
Allow null initial state in createReducer

Addresses issue #49
It would be nice to allow null as initialState argument to createReducer.
Rationale:

It's useful when aggresively decomposing reducers (e.g. could have a reducer that controls a nullable string state)
redux composeReducers also allows nullable state values, but disallows undefined https://github.com/reduxjs/redux/blob/9b43c56b98cc75505e161b8e26c18240fa99b184/src/combineReducers.js#L70-L78

Hey @skellock :) What do you think about this proposal?

@skellock @kevinvangelder eh?

Gonna merge this

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

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:

authors: GantMan infinitered-circleci nshoes pewniak747

repo: infinitered/reduxsauce


text:
After retention policy values-per-tag is not decrease

__System info:influxdb V1.6.4 Centos
Steps to reproduce:

Set "max-values-per-tag" to 5 ,
create database db1
alter retention policy autogen on db1 duration 1h shard duration 1h
insert m1,t1=1 v1=1
insert m1,t1=2 v1=1
insert m1,t1=3 v1=1
insert m1,t1=4 v1=1
insert m1,t1=5 v1=1
in next hour,
insert m1,t1=1 v1=1
insert m1,t1=2 v1=1
In order to keep measurement 'm1' not to be deleted after do RP.
after do retention policy
insert m1,t1=3 v1=1

__Expected behavior: can insert data success
__Actual behavior:  insert failed error is  {"error":"partial write: max-values-per-tag limit exceeded (5/5): measurement="m1" tag="t1" value="3" dropped=1"}
Maybe after RP, on DeleteShard(), only do DropSeriesGlobal() is not enough,
In DropSeriesGlobal()  it calls 'series.Measurement.DropSeries(series)'
in '(m *measurement) AddSeries(s *series)'  it call 'm.seriesByTagKeyValue[string(t.Key)] = valueMap',
but in '(m *measurement) DropSeries(series *series)' not drop the 'seriesByTagKeyValue' data.

I see on normal delete data，will call 'inmem.(*measurement).Rebuild', So maybe you also need to call 'inmem.(*measurement).Rebuild'

Encounter the same problem. Could anyone help to fix it? This issue lead to data lose.

repo: influxdata/influxdb


text:
CI:  "bzr": executable file not found in $PATH

Related PRs: #14447  #14373
https://circleci.com/gh/influxdata/influxdb/53224?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-build-link
o: labix.org/v2/mgo@v0.0.0-20140701140051-000000000287: bzr branch --use-existing-dir https://launchpad.net/mgo/v2 . in /go/pkg/mod/cache/vcs/ca61c737a32b1e09a0919e15375f9c2b6aa09860cc097f1333b3c3d29e040ea8: exec: "bzr": executable file not found in $PATH
go: finding github.com/docker/docker v0.7.3-0.20180815000130-e05b657120a6
go: finding github.com/docker/go-units v0.3.3
go: finding golang.org/x/net v0.0.0-20181023162649-9b4f9f5ad519
go: finding github.com/campoy/unique v0.0.0-20180121183637-88950e537e7e
go: finding github.com/kamilsk/retry v0.0.0-20181229152359-495c1d672c93
go: error loading module requirements
make: *** [Makefile:118: test-go] Error 1
Exited with code 2

Fixed by #14427


text:
Tags not being added to checks and notification rules correctly

from edd:

the issue is in compiling in query. We have a query fragment - "'' = "statuses" AND 'use_case' = "2""

Just check to look at the task that gets generated. From where I'm at it seems like everything is generated as I would expect
package main
// tag_rule
import "influxdata/influxdb/monitor"
import "slack"
import "influxdata/influxdb/secrets"
import "experimental"

option task = {name: "tag_rule", every: 1m}

slack_secret = secrets.get(key: "046de37577592000-token")
slack_endpoint = slack.endpoint(token: slack_secret, url: "https://slack.com/api/chat.postMessage")
notification = {
	_notification_rule_id: "0471d17f7f4d3000",
	_notification_rule_name: "tag_rule",
	_notification_endpoint_id: "046de37577592000",
	_notification_endpoint_name: "slacker",
}
statuses = monitor.from(start: -2m, fn: (r) =>
	(r.check == "yourself" and r.before == "you"))
warn = statuses
	|> filter(fn: (r) =>
		(r._level == "warn"))
all_statuses = warn
	|> filter(fn: (r) =>
		(r._time > experimental.subDuration(from: now(), d: 1m)))

all_statuses
	|> monitor.notify(data: notification, endpoint: slack_endpoint(mapFn: (r) =>
		({channel: "", text: "Notification Rule: ${ r._notification_rule_name } triggered by check: ${ r._check_name }: ${ r._message }\", color: if r._level == "crit" then "danger" else if r._level == "warn" then "warning" else "good"})))

I think this might be a flux issue because I don't directly refer to the measurement statuses and it appears that the query snippet provided does
the issue is in compiling in query. We have a query fragment - "'' = "statuses" AND 'use_case' = "2""

@russorat @e-dard is there a way to get access to the entire query that is causing the issue?

authors: desa russorat