text:
windows10 vc2017 problem

then have some errors，lack of ofxClipper.h and not include"gl/glu.h"
...............................................................................................................................
严重性	代码	说明	项目	文件	行	禁止显示状态
错误(活动)	E0757	重载函数 "std::chrono::duration<_Rep, _Period>::duration [其中 _Rep=long long, _Period=std::nano]" 不是类型名	laser	C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\chrono	195
错误(活动)	E0020	未定义标识符 "gluProject"	laser	C:\Users\Robin\Desktop\of_v0.10.0_vs2017_release\addons\ofxLaser\src\ofxLaserManager.cpp	711
错误	C1083	无法打开包括文件: “ofxClipper.h”: No such file or directory (编译源文件 ......\addons\ofxLaser\src\ofxLaserGraphic.cpp)	laser	c:\users\robin\desktop\of_v0.10.0_vs2017_release\addons\ofxlaser\src\ofxlasergraphic.h	12
错误	C3861	“gluProject”: 找不到标识符	laser	c:\users\robin\desktop\of_v0.10.0_vs2017_release\addons\ofxlaser\src\ofxlasermanager.cpp	711
..........................................................................................
then

and update
ofxClipper link: https://github.com/bakercp/ofxClipper
................................................................................................
严重性	代码	说明	项目	文件	行	禁止显示状态
错误	C3861	“gluProject”: 找不到标识符	laser	c:\users\robin\desktop\of_v0.10.0_vs2017_release\addons\ofxlaser\src\ofxlasermanager.cpp	711
错误	C2039	“getClippedPolyTree”: 不是“ofx::Clipper”的成员	laser	c:\users\robin\desktop\of_v0.10.0_vs2017_release\addons\ofxlaser\src\ofxlasergraphic.cpp	57
错误	C2039	“getClippedPolyTree”: 不是“ofx::Clipper”的成员	laser	c:\users\robin\desktop\of_v0.10.0_vs2017_release\addons\ofxlaser\src\ofxlasergraphic.cpp	99
错误	C2039	“getClippedPolyTree”: 不是“ofx::Clipper”的成员	laser	c:\users\robin\desktop\of_v0.10.0_vs2017_release\addons\ofxlaser\src\ofxlasergraphic.cpp	137
错误	C2039	“getClippedPolyTree”: 不是“ofx::Clipper”的成员	laser	c:\users\robin\desktop\of_v0.10.0_vs2017_release\addons\ofxlaser\src\ofxlasergraphic.cpp	359
错误	C3861	“gluProject”: 找不到标识符	laser	c:\users\robin\desktop\of_v0.10.0_vs2017_release\addons\ofxlaser\src\ofxlasergraphic.cpp	412
.................................................................................................

严重性	代码	说明	项目	文件	行	禁止显示状态
错误	C2039	“clear”: 不是“ofxSVG”的成员	laser	c:\users\robin\desktop\of_v0.10.0_vs2017_release\addons\ofxlaser\src\utils\svgloader.cpp	101

严重性	代码	说明	项目	文件	行	禁止显示状态
错误	C2039	“loadFromData”: 不是“ofxSVG”的成员	laser	c:\users\robin\desktop\of_v0.10.0_vs2017_release\addons\ofxlaser\src\utils\svgloader.cpp	104

严重性	代码	说明	项目	文件	行	禁止显示状态	详细说明
错误(活动)	E0757	重载函数 "std::chrono::duration<_Rep, _Period>::duration [其中 _Rep=long long, _Period=std::nano]" 不是类型名	laser	C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Tools\MSVC\14.16.27023\include\chrono	195		          在处理 "std::chrono::time_point" 基于模板参数 std::chrono::nanoseconds 所在行数:103，所属文件:"C:\Users\Robin\Desktop\of_v0.10.0_vs2017_release\libs\openFrameworks\utils\ofUtils.h" 的模板参数列表期间检测

Hi there, thanks for letting me know!
There were some broken dependencies that I have now included. For some reason I'm having trouble getting some of the included libs compiled in VS2017 but I'm not familiar enough with VS to troubleshoot the problem. Perhaps you could try it for me and let me know what happens?

Hi, we also tried it on Fedora30 ,commline make  it ,there have some issuses
.......................................................
/home/neo/Documents/Dev/of_v0.10.1/libs/openFrameworksCompiled/project/makefileCommon/config.addons.mk:210: *** missing separator.  Stop.
make[1]: Leaving directory '/home/neo/Documents/Dev/of_v0.10.1/apps/myApps/myHeroicSketch'
/home/neo/Documents/Dev/of_v0.10.1/libs/openFrameworksCompiled/project/makefileCommon/compile.project.mk:124: recipe for target 'Release' failed
............................................
It less libusb-1.0 ,I have downland libusb-1.0.lib from laserdock github ,but it didn't work
......................................
HOST_OS=Linux
checking pkg-config libraries:   cairo zlib gstreamer-app-1.0 gstreamer-1.0 gstreamer-video-1.0 gstreamer-base-1.0 libudev freetype2 fontconfig sndfile openal libcurl glfw3 rtaudio libpulse-simple alsa gl glu glew gtk+-3.0 libmpg123
with PKG_CONFIG_LIBDIR=
..............................................
Could you help me fix those issuses on linux ,thx
By the way,i run it on OSX ,it works nice jobs

Hi there,
Thanks! It now compiles on Windows 10 with VS2017. Unfortunately I don't have a Linux set up to test with but if you have any luck getting it to work, please make a pull request.
But as this issue is about Windows 10 / VS2017, I'll close this now.

repo: sebleedelisle/ofxLaser


text:
Error while Running Example

I've run the below command to build the wasmedge and corresponding plugins (Mac M1 Chip)-
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release -DWASMEDGE_BUILD_PLUGINS=ON \
  -DWASMEDGE_PLUGIN_OPENCVMINI=ON \
  -DWASMEDGE_PLUGIN_TENSORFLOWLITE=ON \
  -DWASMEDGE_PLUGIN_IMAGE=ON \
  -GNinja ..
ninja
ninja install # might need `sudo`

Wasmedge was built successfully and all the *.dylib for the plugin were created in /usr/local/lib/wasmedge folder. I have the  *.dylib files in ~/.wasmedge/plugins/ folder as well.

I've set the OUT_DIR to $(pwd)/src as well to create the generate.rs file.
However, while building the example project and running it on Wasmedge, I'm getting the following error

The plugin is being recognised but I'm not able to find the module to run the function.
Below is the generated.rs file-

@hydai, I've tried all possible ways. I'm not sure where I am going wrong.

Hi @Hrushi20
Please checkout to the previous commits: a3272b9f1008c80ec33b4e5582cc5de7f0f27442
We introduced some new functions 3 days ago. And the related PR is not yet merged in the upstream. https://github.com/WasmEdge/WasmEdge/pull/2705

Thanks. It worked.

source: gharchive/issue

repo: second-state/opencvmini

license_type: permissive

license_source: github-api


text:
【OSCP】拆分学习主动数据重构攻击 FSHA 算法实现，及其对应的 DP 防御方法

Type of change

[ ] Add new papers (Please tell us why you think this paper is awesome!)
[ ] Fix the category of an existing paper/papers (Please tell us the reasons)
[ ] Add a new tool/primitive/application with a new markdown page (Thank you! Also, please tell us more about this awesome thing!)

Description

Please include a summary of the change and the relevant motivation.
Fix #767

need review

remove stale tag

remove stale tag

source: gharchive/pull-request

repo: secretflow/secretflow


text:
doc:add version information for tutorials

Hi, Since the rapid development of the SecretFlow,  I think that it is important to add the check code of version of the SecretFlow.
Based the version information, when the users and the  developers read the document in https://www.secretflow.org.cn/docs/secretflow/latest/ such as https://www.secretflow.org.cn/docs/secretflow/latest/zh-Hans/tutorial/Federate_Learning_for_Image_Classification, they could get that the code run based which version of the SecretFlow.
What's more, with the version infomation, it convenient for developers to update the tutorial document when the version is out of time.
I think it is essential for the SecretFlow 1.0 is coming, at that time, all tutorial supposed to be based with the code of the SecretFlow 1.0.
A little change but more efficient.

Nice suggestion!
Please resolve the conflict.

authors: Mingbo-Lee zhouaihui


text:
Getting started with MongoDB transactions using Node.js

Topic Suggestion
Proposed title of the article
Getting started with MongoDB transactions using Node.js
Introduction
The need to maintain database integrity cannot be overemphasized. One of the ways to ensure this is by performing ACID transactions; this simply means that actions are meant to be completed as a 'whole' are either all completed or not completed at all.
While the emphasis on NoSQL databases is scalability, implementing ACID transactions in the logic layer cannot suffice in all scenarios.
Key takeaways
By the end of this tutorial, the reader will be able to understand:

What database transactions are
When to use database transactions
How to implement database/ACID transactions using MongoDB

Article quality
This will be in-depth coverage of this concept; including the history of the concept and a demonstration of how it works.
References

What are ACID Transactions?
ACID Transactions in NoSQL? RavenDB vs MongoDB

Unfortunately, we are currently shifting from Node.js articles. We seem to have enough in the pipeline?

authors: WanjaMIKE murewaashiru


text:
Building a studio landing page with Javascript and GSAP’s scrollTrigger plugin.

Article checklist
Formatting and structure checks

[x] Have you used the correct folder and file structure? - see Contribution Guidelines

[x] Is your article properly formatted in Markdown? - see Github Markdown guide

[x] Have you used our preferred heading structure? - H3 (###) and up

[x] Does your article follow any of the suggested structure formats? - see example formats

[x] Is your article over 750 words? - Tool: Wordcounter.net

[x] Is the article you are submitting an in-depth and unique article? Does it go beyond what is in the official docs and what is covered in other blog sites. See these articles as examples.

[x] Does your article provide enough value and detail about your topic? - Articles should be clear, accurate, and fully explained.

[x] Can your article be understood by beginners? - Assume the audience is smart but has no prior exposure to the common terminology in your article.

[x] Have you included a hero image that is 600x400 pixels, under 300KB in size, and have the copyright to use it? - Tools: Pixlr Image Editor for resizing and Unsplash for Creative Commons images

Grammar & plagiarism checks

[x] Have you spellchecked and grammar checked your article? - Tools: Write&Improve - ProWritingAid - Grammarly
[x] Please place your article through a 3rd party plagiarism checker. We suggest using Quetext, this tool is free and has a daily limit. We typically accept articles with 10% or less.
[x] Have you checked your article for readability? - Tool: Hemmingway
[x] Have you added sources for quotes and images that aren't yours?

Technical checks

[x] Are your code snippets properly formatted for syntax highlighting - see Syntax guide
[x] Have you checked your code runs correctly and you've highlighted all necessary dependencies for installation?
[x] Are the software programs and packages you're highlighting in your article up to date, using current versions and not deprecated?

Topic suggestion this closes

Remove the backticks and add the issue number below to link and close your Topic Suggestion (issue) when your article has been published (PR has been merged). See this video for more details.

This closes #6880

Finally, delete the article checklist notes in blockquotes and submit your PR. We look forward to reviewing your article.

Plagiarism check done ✅

Review ongoing ...

jumping on this one

authors: Kayere WanjaMIKE deverten hectorkambow


text:
AudioLoadResultHandler trackLoaded never get called

I have my own Discord Bot included Lavaplayer and my Bot worked without problems. Today i tryed to add that i can choose between 5 titles but now the Function trackLoaded never get called anymore (i didnt modifyed anything there, only in playlistLoaded)
trackLoaded doesnt output anything in System.out.println
Please help!
Full Code in File
cmdMusic.zip

You had not added anything to the implementation noMatches or loadFailed, one of which was likely called. In the unlikely scenario that you can confirm that none of those get called either, make a thread dump shortly after the load attempt is made and create a new issue with that included.

authors: Foakx sedmelluq

repo: sedmelluq/lavaplayer

license_source: bigquery


text:
Exception rules are not serialised / deserialised from hash or yaml

require 'ice_cube'
require 'time'

schedule = IceCube::Schedule.new(Time.parse('09:30'), end_time: Time.parse('16:30'))

schedule.add_recurrence_rule(IceCube::Rule.weekly.day(4))
schedule.add_exception_rule(IceCube::Rule.daily.month_of_year(12))

puts 'Next 15 occurences: '
puts schedule.first(15)

hash = schedule.to_hash

schedule2 = IceCube::Schedule.from_hash hash

puts 'When de-serialised from hash: '
puts schedule2.first(15)
puts 'Hash: ' + hash.inspect

yaml = schedule.to_yaml

schedule3 = IceCube::Schedule.from_yaml yaml

puts 'When de-serialised from yaml: '
puts schedule3.first(15)
puts 'Yaml: ' + yaml.inspect

Next 15 occurences:
2016-09-15 09:30:00 +0100 - 2016-09-15 16:30:00 +0100
2016-09-22 09:30:00 +0100 - 2016-09-22 16:30:00 +0100
2016-09-29 09:30:00 +0100 - 2016-09-29 16:30:00 +0100
2016-10-06 09:30:00 +0100 - 2016-10-06 16:30:00 +0100
2016-10-13 09:30:00 +0100 - 2016-10-13 16:30:00 +0100
2016-10-20 09:30:00 +0100 - 2016-10-20 16:30:00 +0100
2016-10-27 09:30:00 +0100 - 2016-10-27 16:30:00 +0100
2016-11-03 09:30:00 +0000 - 2016-11-03 16:30:00 +0000
2016-11-10 09:30:00 +0000 - 2016-11-10 16:30:00 +0000
2016-11-17 09:30:00 +0000 - 2016-11-17 16:30:00 +0000
2016-11-24 09:30:00 +0000 - 2016-11-24 16:30:00 +0000
2017-01-05 09:30:00 +0000 - 2017-01-05 16:30:00 +0000
2017-01-12 09:30:00 +0000 - 2017-01-12 16:30:00 +0000
2017-01-19 09:30:00 +0000 - 2017-01-19 16:30:00 +0000
2017-01-26 09:30:00 +0000 - 2017-01-26 16:30:00 +0000
When de-serialised from hash:
2016-09-15 09:30:00 +0100 - 2016-09-15 16:30:00 +0100
2016-09-22 09:30:00 +0100 - 2016-09-22 16:30:00 +0100
2016-09-29 09:30:00 +0100 - 2016-09-29 16:30:00 +0100
2016-10-06 09:30:00 +0100 - 2016-10-06 16:30:00 +0100
2016-10-13 09:30:00 +0100 - 2016-10-13 16:30:00 +0100
2016-10-20 09:30:00 +0100 - 2016-10-20 16:30:00 +0100
2016-10-27 09:30:00 +0100 - 2016-10-27 16:30:00 +0100
2016-11-03 09:30:00 +0000 - 2016-11-03 16:30:00 +0000
2016-11-10 09:30:00 +0000 - 2016-11-10 16:30:00 +0000
2016-11-17 09:30:00 +0000 - 2016-11-17 16:30:00 +0000
2016-11-24 09:30:00 +0000 - 2016-11-24 16:30:00 +0000
2016-12-01 09:30:00 +0000 - 2016-12-01 16:30:00 +0000
2016-12-08 09:30:00 +0000 - 2016-12-08 16:30:00 +0000
2016-12-15 09:30:00 +0000 - 2016-12-15 16:30:00 +0000
2016-12-22 09:30:00 +0000 - 2016-12-22 16:30:00 +0000
Hash: {:start_time=>2016-09-13 09:30:00 +0100, :end_time=>2016-09-13 16:30:00 +0100, :rrules=>[{:validations=>{:day=>[4]}, :rule_type=>"IceCube::WeeklyRule", :interval=>1, :week_start=>0}], :rtimes=>[], :extimes=>[]}
When de-serialised from yaml:
2016-09-15 09:30:00 +0100 - 2016-09-15 16:30:00 +0100
2016-09-22 09:30:00 +0100 - 2016-09-22 16:30:00 +0100
2016-09-29 09:30:00 +0100 - 2016-09-29 16:30:00 +0100
2016-10-06 09:30:00 +0100 - 2016-10-06 16:30:00 +0100
2016-10-13 09:30:00 +0100 - 2016-10-13 16:30:00 +0100
2016-10-20 09:30:00 +0100 - 2016-10-20 16:30:00 +0100
2016-10-27 09:30:00 +0100 - 2016-10-27 16:30:00 +0100
2016-11-03 09:30:00 +0000 - 2016-11-03 16:30:00 +0000
2016-11-10 09:30:00 +0000 - 2016-11-10 16:30:00 +0000
2016-11-17 09:30:00 +0000 - 2016-11-17 16:30:00 +0000
2016-11-24 09:30:00 +0000 - 2016-11-24 16:30:00 +0000
2016-12-01 09:30:00 +0000 - 2016-12-01 16:30:00 +0000
2016-12-08 09:30:00 +0000 - 2016-12-08 16:30:00 +0000
2016-12-15 09:30:00 +0000 - 2016-12-15 16:30:00 +0000
2016-12-22 09:30:00 +0000 - 2016-12-22 16:30:00 +0000
Yaml: "---\n:start_time: 2016-09-13 09:30:00.000000000 +01:00\n:end_time: 2016-09-13 16:30:00.000000000 +01:00\n:rrules:\n- :validations:\n    :day:\n    - 4\n  :rule_type: IceCube::WeeklyRule\n  :interval: 1\n  :week_start: 0\n:rtimes: []\n:extimes: []\n"

After looking at your code...
Replacing "add_exception_rule" line with:
schedule.add_exception_time(Time.parse('2016-12-01 09:30:00 +0000'))
...will demonstrate that the times work.
So this is presumably the way exceptions are supposed to be done. However, if exception rules are supposed to be deprecated, /they should be marked as such in the Schedule class./

Exception rules are not included when serializing. Mainly this is to limit the effect if it gets stored and reloaded elsewhere then that could be very surprising. This would need to be checked reliably before we can feel confident about allowing these to be serialized again. See #127.

authors: CJBrew avit

license: mit


text:
【bug】自动布局按钮，title文件

如图

呢issue可能同 https://github.com/seeksdream/relation-graph/issues/355 重複

此问题在relation-graph-react@2.2.5中已修复

authors: cuilingh00 nanarino seeksdream

repo: seeksdream/relation-graph

license: MIT


text:
[Atatus] Updated script to cdn hosted.

Updated atatus script to cdn hosted version. Can you please merge it?

Lgtm

@f2prateek Thanks


text:
Sending data to a custom endpoint

From what I understand this is how the data collection works:
Analytics.js --> segment --> endpoint from a list of options set by segment.
My company is developing its own data analyzing tool to use in our application. Is there anyway to have my data collection this way?
Analytics.js --> my own endpoint
I was told by segment to use webhooks but it still relays the data to segment. In our mobile versions of the application it was apparently really straightforward to just relay from the analytics plugin to our endpoint.
Can I do this? If yes, how?

Have you looked at analytics.on method? Or if you build your own analytics.js using https://github.com/segmentio/analytics.js-core you might be able to have your own integration subscribe to events: https://www.npmjs.com/package/@segment/integration-sdk
I've not attempted the custom build approach so I may be completely off base.

Mark. I want to know this too.

@YLemelin09 @4074 I second @kenhowardpdx response to the question. You can hook into on method and implement your own logic there. Documentation is here: https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/#emitter


text:
Adding Kameleoon (Actions) Destination documentation

Proposed changes
I created the doc file for the new Kameleoon (Actions) Destination. This integration is currently in private beta.
Merge timing
ASAP once approved
(We are currently testing the integration with one customer, and we are looking forward to being listed in the Catalog, switch from private beta to beta.)

@tcgilbert do you have the destination id for this?

authors: stayseesong yhassan-kam

repo: segmentio/segment-docs


text:
popupの作成

issue #11

@kip-i
一応確認しといて、気に入らんかったら直していいよ


text:
propagate child error

for command substitution

no longer need

repo: sekiguchi-nagisa/ydsh


text:
Double instantiation causes extraneous change event

In my code I accidentally called select2() twice on the same select tag.
The result was that we got extra change events. Took me quite a while to figure out the cause of this issue and why change events were issued even when no visible user changes were done in the select box.
My request: Can the creation/instantiation part of select2 safeguard against possible multiple instances on the same select element?
Ideally, there would be an optional debug message. Undecided however: Should options be updated if they differ between different calls? Probably not, if multiple assignments are deemed an error.

Select2 should destroy itself if it's intialized twice, and that should kill any extra events being triggered or handled by the original instantiation. So, we're going to need some more information in order to figure out what the issue is.

Can you expand upon the issue you are facing by adding a few more pieces of information to your bug report?

What steps can be used to reproduce the issue?
What is the bug and what is the expected outcome?
What browser(s) and Operating System have you tested with?
Does the bug happen consistently across all tested browsers?
What version of jQuery are you using? And what version of Select2?
Are you using Select2 with other plugins?

The contributing guide contains a useful section with a few questions which can help us track down the bug and speed up the process of finding a fix for it.  The creation of an isolated test case would also be useful.

After your explanation and inquiry and my further further investigation I close this report for now, as I realize it's hard to guard select2 from what was happening in all browsers tested with (Chrome, FF), using the latest libraries of select2, jquery and jquery-ui and browsers) Also making an easy test case seems not to be possible because in my case select2 is embedded within a jQuery-ui widget
To make it short, async calls, a triggered change event, there is the possibility that the browsers got the change event at the wrong moment.
So I trust your explanation that select2 destroys itself properly for the time being. Sorry for taking up zour valuable time

authors: herbalite kevin-brown


text:
parse negative numbers as negative nodes wrapping positive numbers

This will make it harder to check if something is a number and get its value but we can plaster over that with isNumber and getValue helpers.
The reason for making this change is that it will make writing rules in https://github.com/semantic-math/math-rules easier because we won't have to check two different cases for
-#a * -#b => #a * #b

Closed by https://github.com/semantic-math/math-parser/commit/075f3a6d55ae81d8f1e8309f2f9a8c6f2f0bc087.

repo: semantic-math/math-parser


text:
Update Buddy CI environment variables in README

This PR updates the Buddy CI documentation to reflect the current support for environment variables in Pull Request builds. Buddy now provides the necessary environment variables to determine the source and target branches, enabling accurate detection of branch and prBranch properties by env-ci.
Changes:

Updated the supported CI table for Buddy.
Revised the explanatory text to reflect the availability of BUDDY_EXECUTION_PULL_REQUEST_HEAD_BRANCH and BUDDY_EXECUTION_PULL_REQUEST_BASE_BRANCH.

References:

Buddy Documentation

Revert package-lock.json , update README.md and update buddy.js

Hi @travi
I've resolved the issues mentioned in the review comments. Can you please take another look and let me know if there's anything else needed to get this PR merged?
Thank you!

thanks for the updates @czuli. this is looking good. we'll need to also update the tests that correspond to your code changes. you can reference the existing tests for that file and others to get an idea of how we verify these behaviors. as you can see, the ci workflow currently fails without those updates. could you look into updating those tests as part of this change?
keep in mind that you can run npm t locally to run all of the verification that runs in the ci workflow before pushing changes to the branch here on github.

authors: czuli travi

repo: semantic-release/env-ci


text:
Generalize the properties :numerator, :denominator, :multiplier, and :multiplicand. Fixes #160.

Release notes gist x.x.x
-----

### Major Updates
- Removed domain and range for `gist:hasNumerator`, `gist:hasDenominator`, `gist:hasMultiplier`, and `gist:hasMultiplicand`. Issue [#160](https://github.com/semanticarts/gist/issues/160).

Unfortunately, this is a major change, as we define it.

That may be true, technically. In practice, it is hard to imagine that the changed inference behavior would adversely affect anyone - so we may wish to reconsider what constitutes a major change.

@uschold Good point. Let's bring it up at the next meeting.

authors: dylan-sa rjyounes uscholdm

repo: semanticarts/gist


text:
Update journald-upload-receiver.yaml

Not quite sure what "List of fields where the values from removed field should be replaced with maskValuesString" means.  If a field is (completely) removed, how could its value be replaced with something?

@otisg  About removing fields and anonymizing data:
Let's assume follwing message where the sensitive credit card number appears twice:
{
   message: "Credit Card No 12345",
   credit_card: "12345"
}

A simple removal of credit_card field would result in:
{
   message: "Credit Card No 12345",
}

using
maskValuesInFields
  - message

the result is
{
   message: "Credit Card No ANONYMIZED-DATA",
}

The value 12345  from the field credit_card was replaced in the message filed, so no sensitive data will be transmitted.

authors: megastef otisg

repo: sematext/logagent-js


text:
Removed duplicate content from ReadMe.

Description of the change: Removed duplicate content from ReadMe.

@ksigler7

 Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.

hi @vigzmv - thanks so much for these updates! We are not currently accepting major changes to our readme because we are in the process of rewriting it based on feedback we have gotten from our contributors during Hacktoberfest. We really appreciate the work you put in, though, so please check back to our open issues often, as we are constantly adding new ones!

authors: SendGridDX ksigler7 vigzmv

repo: sendgrid/docs


text:
Fixing anchor links and formatting

Description of the change:
Reason for the change:
Link to original source:

Closes #

Hello @Whatthefoxsays,Thanks again for the PR! We appreciate your contribution and look forward to                                              continued collaboration. Thanks!                                             Team SendGrid DX

authors: Whatthefoxsays thinkingserious


text:
Update how-to-send-email-with-marketing-campaigns.md

Description of the change: Small enhancements to clarity of the verbiage.
Reason for the change:
Link to original source:

Closes #

Hello @sendgrid-ryan,Thanks again for the PR! It's HACKTOBERFEST! We want to show our appreciation by sending                                              you some special Hacktoberfest swag. If you have not already, could you please fill out                                              this form so we can send it to you? Thanks!                                             Team SendGrid DX

authors: sendgrid-ryan thinkingserious


text:
Allows users to submit rfc822 formatted email addresses

Issue Summary
Similar to: https://github.com/sendgrid/sendgrid-python/pull/348
Where the user can submit email addresses as:
example@example.com
or
example example <example@example.com>

It looks like this may be handled already by split-name-email which is consumed by EmailAddress:fromData.
Is there somewhere else this is not handled correctly?

Nope, I just missed it. Thank you! @brandon93s

repo: sendgrid/sendgrid-nodejs


text:
去除权限控制

按照官网的流程去除权限控制：
https://pro.loacg.com/docs/remove-authority-management
点击表格的权限按钮时，会报错。如下图

如果我保留main.js中的：
import './permission' // permission control
就不会报错
不过这样好像又走回了权限判断了~~~

v-action 去掉

authors: jy-pwn sendya

repo: sendya/ant-design-pro-vue


text:
avoid ad hoc mini language

let's just use normal JSON to represent out entity definitions:
https://github.com/senecajs/seneca-github-provider/blob/main/src/cmd-handlers.ts#L18
https://github.com/senecajs/seneca-github-provider/blob/main/src/entities.ts#L15
perhaps:
includes: [ { field:string, rename?:string }, ...]

also perhaps includes should be modify as we may wish to expand this future

Hey Richard. I linked a PR related to this issue.

authors: guhmerces rjrodger

repo: senecajs/seneca-github-provider


text:
check-rabbitmq-queue-drain-time.rb fails "no implicit conversion of nil into String"

I got this error:
Check failed to run: no implicit conversion of nil into String, ["/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-rabbitmq-1.2.0/bin/check-rabbitmq-queue-drain-time.rb:96:in `initialize'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-rabbitmq-1.2.0/bin/check-rabbitmq-queue-drain-time.rb:96:in `new'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-rabbitmq-1.2.0/bin/check-rabbitmq-queue-drain-time.rb:96:in `block in acquire_rabbitmq_queues'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-rabbitmq-1.2.0/bin/check-rabbitmq-queue-drain-time.rb:96:in `select'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-rabbitmq-1.2.0/bin/check-rabbitmq-queue-drain-time.rb:96:in `acquire_rabbitmq_queues'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugins-rabbitmq-1.2.0/bin/check-rabbitmq-queue-drain-time.rb:109:in `run'", "/opt/sensu/embedded/lib/ruby/gems/2.3.0/gems/sensu-plugin-1.2.0/lib/sensu-plugin/cli.rb:56:in `block in <class:CLI>'"]

I'm experiencing the same issue as well.

looks like this has been merged is there a reason this is still open?

No reason. Forgot this was open. Thanks!

authors: envintus majormoses runningman84

repo: sensu-plugins/sensu-plugins-rabbitmq


text:
AIX Client with RabbitMQ SSL fails

When starting the sensu-client on an AIX 7.1 server, and using RabbitMQ as the transport over SSL, the connection fails.
Expected Behavior

Sensu agent should start up fully and successfully establish a connection to RabbitMQ

Current Behavior

Sensu agent starts
Sensu agent attempts to communicate with RabbitMQ over SSL
Agent generates the error below, and immediately exits

/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5/lib/em/pure_ruby.rb:330:in `initialize': SSL_CTX_use_PrivateKey: key values mismatch (OpenSSL::SSL::SSLError)
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5/lib/em/pure_ruby.rb:330:in `new'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5/lib/em/pure_ruby.rb:330:in `start_tls'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5/lib/em/connection.rb:459:in `start_tls'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/amqp-1.6.0/lib/amqp/session.rb:1180:in `upgrade_to_tls_if_necessary'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/amqp-1.6.0/lib/amqp/session.rb:583:in `post_init'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5/lib/em/connection.rb:58:in `block in new'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5/lib/em/connection.rb:49:in `instance_eval'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5/lib/em/connection.rb:49:in `new'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5/lib/eventmachine.rb:683:in `bind_connect'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/eventmachine-1.2.5/lib/eventmachine.rb:653:in `connect'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/amqp-1.6.0/lib/amqp/session.rb:457:in `connect'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/amqp-1.6.0/lib/amqp.rb:242:in `connect'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-transport-7.0.2/lib/sensu/transport/rabbitmq.rb:214:in `setup_connection'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-transport-7.0.2/lib/sensu/transport/rabbitmq.rb:254:in `block in connect_with_eligible_options'
        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-transport-7.0.2/lib/sensu/transport/rabbitmq.rb:197:in `block in next_connection_options'

Steps to Reproduce (for bugs)

Install Sensu agent
Configure to point at RabbitMQ. I even found that it'd generate the same error if you point it at a random HTTPS webserver, since it seems to be the SSL negotiation that's actually failing.
If using RabbitMQ, I have mine to not require client certs, and not bother to verify clients.
Start Sensu agent

Context
Completely unable to use Sensu agents on AIX unless we turn off SSL for RabbitMQ (which isn't ideal). However turning off SSL on RabbitMQ does allow the client to work.
I used openssl the packaged openssl binary to verify that communication with the MQ server was fine, and it was:
# pwd
/opt/sensu/embedded/bin
# ./openssl s_client -connect sensu.test:5671 -CAfile /etc/sensu/ssl/cert.pem

CONNECTED(00000003)
depth=2 CN = SERVERCN
verify return:1
depth=1 DC = uk, DC = co, CN = SERVERCN
verify return:1
depth=0 C = GB, O = Z, OU = MYCOMPANY, CN = sensu.test
verify return:1
---
Certificate chain
 0 s:/C=GB/ST=X/L=Y/O=Z/OU=W/CN=sensu.test
   i:/DC=uk/DC=co/DC=W/DC=ad/CN=SERVERCN
 1 s:/DC=uk/DC=co/DC=W/DC=ad/CN=SERVERCN
   i:/CN=SERVERCN
 2 s:/CN=SERVERCN
   i:/CN=SERVERCN
---
Server certificate
...
...
---
No client certificate CA names sent
Peer signing digest: SHA512
Server Temp Key: ECDH, P-256, 256 bits
---
SSL handshake has read 5474 bytes and written 488 bytes
---
New, TLSv1/SSLv3, Cipher is ECDHE-RSA-AES256-SHA384
Server public key is 2048 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
No ALPN negotiated
SSL-Session:
    Protocol  : TLSv1.2
    Cipher    : ECDHE-RSA-AES256-SHA384
    Session-ID: 465A9504AADB060E2B7A313E3B82ED1CF7CC259D34F830450D81A2392B6AFAF1
    Session-ID-ctx:
    Master-Key: 41472708C009556CD81DE4437F6A8E4C3A620823DD4017A2A6659DC28BE318CB1DDC57D6DD90E5D292C1F47D10F10764
    Key-Arg   : None
    PSK identity: None
    PSK identity hint: None
    SRP username: None
    Start Time: 1522149512
    Timeout   : 300 (sec)
    Verify return code: 0 (ok)

Your Environment

Using sensu-1.2.0-1 client

Running on AIX 7.1

RabbitMQ config:

[
  {rabbit, [
     {ssl_listeners, [5671]},
     {ssl_options, [{cacertfile,"/etc/rabbitmq/ssl/ca_cert.pem"},
                    {certfile,"/etc/rabbitmq/ssl/cert.pem"},
                    {keyfile,"/etc/rabbitmq/ssl/key.pem"}]}
   ]}
]

Client config

{
  "rabbitmq": {
    "host": "sensu.test",
    "port": 5671,
    "user": "sensu",
    "password": "MYPASSWORD",
    "vhost": "/sensu",
    "ssl": {
      "cert_chain_file": "/etc/sensu/ssl/cert.pem"
    }
  }
}

If both are using port 5671 I'm not sure why the RHEL servers would be working without the private key. Our documentation shows that the private_key_file field is required https://docs.sensu.io/sensu-core/1.2/reference/rabbitmq/#ssl-attributes.

Fair enough. It is strange, but I can deal with that if it means it'll all work 😄 Thanks for your help

No problem, glad I could assist you!

authors: adammcdonagh amdprophet

repo: sensu/sensu


text:
Need testing framework for verifying strategy output

We need a framework for easily testing newly added strategies.

This is resolved by Will Atherton's work on the SpecFlow tests.

repo: sentryone/unittestgenerator


text:
Added permissions-sync tag to nginx tasks.

Added permissions sync tag to nginx tasks.
@amitbose327

LGTM

repo: seomoz/roger-mesos


text:
Check the result of SSL certificate verification

It is unsafe to use a certificate without checking if it is valid.

plan to switch the openssl to mbedtls

authors: sepfy szsam

repo: sepfy/pear


text:
CLOUD-932 always work with latest rc tag when scope is rc

@akanto please take a look
Instead of the latest RC tag, the latest pre release tag was used in most cases. But dev tags are also pre-release tags, and that caused some complications if dev tags appeared on the rc branch when rc patches were merged back to master.
The 1.1.0-rc.1 tag should be removed from the remote repo before merging this PR, because it will cause failures when the real 1.1.0-rc.1 should be released later

Jenkins build finished, all tests passed.
Refer to this link for build results: http://ci.sequenceiq.com/job/cloudbreak-pull-request/1645/

authors: jenkins-sequenceiq martonsereg

repo: sequenceiq/cloudbreak


text:
Remove builder API in favor of json! macro

This was never a user-friendly API. Let's recommend #207 instead.

test.rs.in used to contain:
mod test_json;
mod test_json_builder;

I got rid of test_json_builder.rs so I just renamed test_json.rs to test.rs.in. I don't know why the diff is weird. The only actual diff to that file is:
@@ -11,7 +11,6 @@ use serde::ser;
 use serde::bytes::{ByteBuf, Bytes};

 use serde_json::{
-    self,
     StreamDeserializer,
     Value,
     Map,

fine with me, I never saw any need to use it ^^

authors: dtolnay oli-obk

repo: serde-rs/json


text:
dev-dependencies are not allowed to be optional

Because dev-dependencies are not allowed to be optional (cc @ehuss), I have to make serde_test an unconditional dev-dependency, which means that it will always be part of the dependency graph of my crate when building it, and because serde_test requires std, this means that building my crate ends up always linking against the standard library.
My crate is a #[no_std] crate, so I cannot accept that, therefore, I cannot use serde_test for testing.
The only workaround I can think of, is to make serde_test an optional dependency of serde, and for serde to re-export it when this optional dependency is enabled. This way, I can optionally depend on serde, without any features, and I can add a cargo feature to my crate that is enabled only for testing, and that enabled the serde_test feature of serde. This would allow me to pull in serde_test optionally only when testing, allowing my application to only link against the standard library there, and not unconditionally (as it would be caused by an unconditional dev-dependency to serde_test).

I suppose that, alternatively, I can add serde_test as an optional, non-dev dependency. Hmm. Don't know what will work best.

Currently serde_test is designed to depend on serde so serde can't also depend on serde_test. I would recommend giving your crate an optional ordinary dependency on serde_test and following up with Cargo to improve the flexibility on their end.

Ran into this same issue, and wanted to add here that using -Z features=dev_dep on nightly was sufficient to resolve this problem.

authors: Anders429 dtolnay gnzlbg

repo: serde-rs/serde


text:
Memory leak using API

Hi, so I've been using this API for 3 months but always have a problem with memory usage (I'm using CPU computation not GPU) so API service will die if memory don't have enough free space. Each time I call API, memory always rise higher even afer I add some del command and TF clear session memory still not be freed and rose higher. Is there any other way to free memory usage or memory allocations ?
Thank you

you can try to run this service via gunicorn server. flask api is not recommended for prod purposes.
still, deepface models are memory consuming ones. you will have those problems if you are not increasing the memory.

authors: serengil yulizar

repo: serengil/deepface


text:
Deepface.analyze doesn't process frame

Hi, I'm on a project where I have to analyze a person's emotion. I've build dev environment using docker according to this document(https://docs.opencv.org/4.x/d2/de6/tutorial_py_setup_in_ubuntu.html)
Here's my code(slightly edited for disclosure)
video = cv2.VideoCapture('somevideo.mp4')
while video.isOpened():
            ret, frame = video.read()
            if ret is True:
                emotion = json.loads(DeepFace.analyze(frame, actions=["emotion"], enforce_detection=False))[0]["dominant_emotion"]
                ~~~~do something ~~~~
            else:
                break

When I run this code, I got this error below.
Traceback (most recent call last):
  File "attach_label_to_video.py", line 124, in <module>
    AttachText(path="assets/samp002.mp4").main()
  File "attach_label_to_video.py", line 29, in main
    self.process_video()
  File "attach_label_to_video.py", line 57, in process_video
    self.required_operations(frame)
  File "attach_label_to_video.py", line 100, in required_operations
    display_text = self.get_dominant_emotion(frame)
  File "attach_label_to_video.py", line 79, in get_dominant_emotion
    return json.loads(DeepFace.analyze(frame, actions=["emotion"]))[0][
  File "/usr/local/lib/python3.6/site-packages/deepface/DeepFace.py", line 277, in analyze
    emotion_predictions = models['emotion'].predict(img_gray, verbose=0)[0,:]
  File "/usr/local/lib/python3.6/site-packages/keras/engine/training.py", line 1751, in predict
    tmp_batch_outputs = self.predict_function(iterator)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py", line 885, in __call__
    result = self._call(*args, **kwds)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py", line 933, in _call
    self._initialize(args, kwds, add_initializers_to=initializers)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py", line 760, in _initialize
    *args, **kwds))
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 3066, in _get_concrete_function_internal_garbage_collected
    graph_function, _ = self._maybe_define_function(args, kwargs)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 3463, in _maybe_define_function
    graph_function = self._create_graph_function(args, kwargs)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/function.py", line 3308, in _create_graph_function
    capture_by_value=self._capture_by_value),
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/func_graph.py", line 1007, in func_graph_from_py_func
    func_outputs = python_func(*func_args, **func_kwargs)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/eager/def_function.py", line 668, in wrapped_fn
    out = weak_wrapped_fn().__wrapped__(*args, **kwds)
  File "/usr/local/lib/python3.6/site-packages/tensorflow/python/framework/func_graph.py", line 994, in wrapper
    raise e.ag_error_metadata.to_exception(e)
ValueError: in user code:

    /usr/local/lib/python3.6/site-packages/keras/engine/training.py:1586 predict_function  *
        return step_function(self, iterator)
    /usr/local/lib/python3.6/site-packages/keras/engine/training.py:1576 step_function  **
        outputs = model.distribute_strategy.run(run_step, args=(data,))
    /usr/local/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:1286 run
        return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs)
    /usr/local/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:2849 call_for_each_replica
        return self._call_for_each_replica(fn, args, kwargs)
    /usr/local/lib/python3.6/site-packages/tensorflow/python/distribute/distribute_lib.py:3632 _call_for_each_replica
        return fn(*args, **kwargs)
    /usr/local/lib/python3.6/site-packages/keras/engine/training.py:1569 run_step  **
        outputs = model.predict_step(data)
    /usr/local/lib/python3.6/site-packages/keras/engine/training.py:1537 predict_step
        return self(x, training=False)
    /usr/local/lib/python3.6/site-packages/keras/engine/base_layer.py:1020 __call__
        input_spec.assert_input_compatibility(self.input_spec, inputs, self.name)
    /usr/local/lib/python3.6/site-packages/keras/engine/input_spec.py:234 assert_input_compatibility
        str(tuple(shape)))

    ValueError: Input 0 of layer sequential is incompatible with the layer: : expected min_ndim=4, found ndim=3. Full shape received: (None, 48, 48)

I'd be very happy if you tell me what is going on here.

I tried reshaping dimension by the code below
frame = np.expand_dims(frame, 0)

but it raised another error
Traceback (most recent call last):
  File "attach_label_to_video.py", line 125, in <module>
    AttachText(path="assets/samp002.mp4").main()
  File "attach_label_to_video.py", line 29, in main
    self.process_video()
  File "attach_label_to_video.py", line 57, in process_video
    self.required_operations(frame)
  File "attach_label_to_video.py", line 101, in required_operations
    display_text = self.get_dominant_emotion(frame)
  File "attach_label_to_video.py", line 81, in get_dominant_emotion
    DeepFace.analyze(frame, actions=["emotion"], enforce_detection=False)
  File "/usr/local/lib/python3.6/site-packages/deepface/DeepFace.py", line 261, in analyze
    img_objs = functions.extract_faces(img=img_path, target_size=(224, 224), detector_backend=detector_backend, grayscale = False, enforce_detection=enforce_detection, align=align)
  File "/usr/local/lib/python3.6/site-packages/deepface/commons/functions.py", line 116, in extract_faces
    current_img = cv2.resize(current_img, dsize)
cv2.error: OpenCV(4.7.0) /tmp/pip-install-k6hq3vdj/opencv-python_f8b90b56b1884ebfae3eb4b6fc2093cb/opencv/modules/imgproc/src/resize.cpp:4065: error: (-215:Assertion failed) inv_scale_x > 0 in function 'resize'

It was the Python version that was not going well with this library. I upgraded python to newer version and then the error was fixed. Thank you.
Closing this issue


text:
Two-fold Performance Enhancement by Optimizing Face Extraction Function When align_first == True

Removing the recursive algorithm doubles our performance gains. Also, by recalculating the facial area without reliance on the detect_faces function, we avoid using it twice, resulting in further efficiency.

Linting failed - https://github.com/serengil/retinaface/actions/runs/7857063255/job/21440536002?pr=80

LGTM, thank you for your contribution

repo: serengil/retinaface


text:
How to programmatically Invoke a Command with Custom Context

I’m trying to figure out how to invoke a command programmatically. Is there a relatively simple way to do this currently, or would I need to create a workaround?
Use Case Example:
Let’s say I have a command that allows users to create buttons. When a user clicks a button, it should invoke a specified command. I’d like to be able to pass in the relevant context programmatically (e.g., the channel, user, etc.) so the command can execute with that context.
Is there a built-in way to do this, or should I consider hacking something together?

Lets not open multiple issues for one thing please.

repo: serenity-rs/poise


text:
PostgreSql Auto-Complete

Hi,
There is a problem with auto-complete of table names containing upper case letters in the name.
Writing select * from t44b30d98 works well, but
select * from "T44B30D98" cant find anything.

Probably duplicate of #1232

Hi,
its not duplicate, I have tried your version 4.0 with repaired #1232 which works just fine, but auto-complete not

Well, then I just can't reproduce that. Auto-complete works with any case:

Please provide more details.

Hi,
I have created table "TESTUSER" which works well.
If I create table
create table t9e7d504c as (select * from "TESTUSER")
then autocomplete works just fine:

the same name, but with uppercase
T9E7D504C

another example
autocomplete with T03

After adding the table I have refreshed list of tables in navigator.
To make sure I have disconnected, but same behavior.
All of these examples tested in Open database object work well, thanks for repair.

Yep, it is a bug in completion proposals filtering (and it is not PostgreSQL-specific).
Thanks for details.

repo: serge-rider/dbeaver


text:
No Run Button

I use a lot of VM's and the Ctrl Key is not always easy to use for Execute SQL Statement=Ctrl+Enter and yes I know I can get to it from the SQL Editor menu but that's slower.

You can change the key binding for SQL Execution:
Window -> Preferences -> General ->Keys

Nice. I still like a Run button though my Eclipse J2EE has one, Visual Studio has one, IBM Integration Bus has one, etc.
But having had a look again this morning  I am prepared to concede there may be a screen real estate issue in the DBeaver perspective.

actually there is a run button in the SQL Editor Window

authors: Sargul timjohnarm


text:
Improving CONTRIBUTING.md?

So this project has 3,685 stars, and https://github.com/emmetio/emmet has 2,465 stars - it seems that this is the most popular emmet plugin. Do you think there's room for a high-level architectural overview on how the components fits together and suggestions on how to hack on it?

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

I'm not really using Sublime these days...

repo: sergeche/emmet-sublime


text:
How to display failure

Hey,
I want to display the AuthenticationError that is thrown in the login function on the sign in page. Any suggestions on how I could do that or is this even possible?
Thanks

All the strategies catch the errors your throw and wrap it in a Response.
If you defined a failureRedirect, the response would be a redirect and the error will be in the session.
If you didn't defined a failureRedirect, the response will be a 401 with the error as part of the body. This one could be accessed in a CatchBoundary component.
And you can wrap the authenticator.authenticate call in a try/catch and manually check the response and handle the error.

All the strategies catch the errors your throw and wrap it in a Response.
If you defined a failureRedirect, the response would be a redirect and the error will be in the session.
If you didn't defined a failureRedirect, the response will be a 401 with the error as part of the body. This one could be accessed in a CatchBoundary component.
And you can wrap the authenticator.authenticate call in a try/catch and manually check the response and handle the error.

I don't get why but when I try using a try/catch block theres always an error thrown even when the credentials are correct. But when I remove the block it works how it is supposed to. Here's the action function I currently have:
export const action: ActionFunction = async ({ request }) => {
    try {
        await authenticator.authenticate('local', request, {
            successRedirect: '/'
        })
    } catch (e) {
        if (e instanceof Response) {
            const data = await e.json()
            return { error: data.message }
        }
        throw e
    }

    return {}
}

This works when the credentials are incorrect, but when they are correct, it throws:
FetchError: invalid json response body at  reason: Unexpected end of JSON input

That’s because the library made use of Remix ability to throw responses including redirects

Sound's interesting, do you have any suggestion on how I could fix it?
Thanks

Sound's interesting, do you have any suggestion on how I could fix it? Thanks

Okay, I got it working like this:
export const action: ActionFunction = async ({ request }) => {
	try {
		await authenticator.authenticate('local', request, {
			successRedirect: '/'
		})
	} catch (e) {
		console.log(e)
		if (e instanceof Response && e.status === 401) {
			const data = await e.json()

			return {
				error: data.message || 'Unauthorized'
			}
		}
		throw e
	}

	return {}
}

authors: JSLNO sergiodxa

repo: sergiodxa/remix-auth


text:
Operation name not being logged

Hi,
I am trying to use Serilog to centralize logging exceptions and for Application Insights I would like to use this project.
Although the exception does get logged in Application Insights it lacks the parent operation name
I attach here a project that demostrates the issue using both Microsoft.ApplicationInsights.AspNetCore  and Serilog.Sinks.ApplicationInsights
When using  Microsoft.ApplicationInsights.AspNetCore I correctly get the parent operation:

When using Serilog.Sinks.ApplicationInsights I only get the exception, but no parent operation:

To test, just replace in both application insights your instrumitation key / connection string, and then run the appropiate configuration

Thanks!
InsightsLoggingAlternatives.zip

So analyzing the network call, I realized that ai.operation.name is not being sent to AI
when using Microsoft.ApplicationInsights.AspNetCore the following is being posted:
    "ai.application.ver": "1.0.0.0",
    "ai.cloud.roleInstance": "PC-MVD",
    "ai.operation.id": "540951cacb4095d87f89e8c00e62e3f1",
    "ai.operation.parentId": "ce1f02a301d748f7",
    "ai.operation.name": "GET Demo/TestExceptionLogging",
    "ai.location.ip": "::1",
    "ai.internal.sdkVersion": "il:2.22.0-997",
    "ai.internal.nodeName": "PC-MVD"

when using Serilog.Sinks.ApplicationInsights the following is being posted (which misses among other things the operation name):
   "ai.cloud.roleInstance": "PC-MVD",
    "ai.operation.id": "540951cacb4095d87f89e8c00e62e3f1",
    "ai.operation.parentId": "ce1f02a301d748f7",
    "ai.internal.sdkVersion": "dotnetc:2.22.0-997"

Hi, this issue is causing the azure function console to not display any logs beside executing / executed one

I've found a workaround until this issue is officially fixed
I've created a custom Trace converter that is adding the operation_Namevalue. Also note the true values when calling the base.FowardPropertiesToTelemetryProperties. The most important is the value of includeLogLevel without it "LogLevel" do not display in the azure invocation screen

public class MyTelemetryTraceConverter : TraceTelemetryConverter
{
    public override void ForwardPropertiesToTelemetryProperties(LogEvent logEvent, ISupportProperties telemetryProperties, IFormatProvider formatProvider)
    {
        base.ForwardPropertiesToTelemetryProperties(logEvent, telemetryProperties, formatProvider, true, true, true);
        if (telemetryProperties is ITelemetry telemetry
            && string.IsNullOrWhiteSpace(telemetry.Context.Operation.Name)
            && logEvent.Properties.TryGetValue("AzureFunctions_FunctionName", out LogEventPropertyValue value))
        {
            telemetry.Context.Operation.Name = value.ToString().Trim('"');
        }
    }
}

authors: FrancisPayeurOrckestra claudiopi


text:
Issue using AzureTableStorage and ASP.NET Core 1.0

Hi,
When I try to use ASP.NET Core 1.0 and Serilog to log to table storage I get the following message
Could not load file or assembly 'Serilog.FullNetFx, Version=1.4.0.0, Culture=neutral, PublicKeyToken=24c2f752a8e58a10' or one of its dependencies. The system cannot find the file specified."
my project.json looks like this
"Serilog": "2.0.0-beta-456",
"Serilog.Framework.Logging": "1.0.0-rc1-final-10083",
"Serilog.Sinks.AzureTableStorage": "1.5.11"

and it crashes on this line
        Log.Logger = new LoggerConfiguration()
            .WriteTo.Trace()
            .WriteTo.AzureTableStorage(storage)
            .CreateLogger();

Have I misconfigured something or is it not compatible with RC1 yet?
Thanks

Hi - I'd guess the AzureTableStorage sink isn't compatible with Core yet; currently working on a backlog of Core work, may be a little while. For now, embedding the sink code directly in your project is probably the quickest way to get unblocked. HTH!

Thanks, We're probably just going to buy Seq instead ;-)

@MrKevHunter perfect :-) .. All the best!

Hi, we are having the same issue on:

configs.Add(new KeyValuePair<string, string>("using:_CommandLineSettingsSerilogFullNetFx", "Serilog.FullNetFx"));

            Log.Logger = new LoggerConfiguration()
                .ReadFrom.KeyValuePairs(configs)
                .CreateLogger();

we are using ASP.NET 5, but not Core (dnx46). shouldn't this just work?
"Serilog.Extensions.Logging": "1.0.0-rc1-final-10092",     "Serilog": "2.0.0-beta-465"
thanks

@Huck very few sinks apart from the basics (Console, RollingFile/File, Seq) have been ported to work with Serilog 2, which has breaking changes intended to fit the new platform better.
In your scenario (dnx46) you should be able to use Serilog 1.5 and the other sinks to get the behaviour you need. Serilog 2.0 beta is only required if you want more .NET Core compatibility.
Hope this helps, let me know if you hit any issues.

good to know, thanks

authors: Huck MrKevHunter nblumhardt

repo: serilog/serilog-sinks-azuretablestorage


text:
limit on users speed

Hi
Is there any way i can limit every connection on speed ? or every user ? or whole packages have max speed limitation ?

Hi. No, it's currently not possible. It can be implemented, but nobody
asked for it so far.
You can try to play with linux iptables and  tc. But it's quite complex.
вс, 15 мар. 2020 г., 11:32 alireza notifications@github.com:

Hi
Is there any way i can limit every connection on speed ? or every user ?
or whole packages have max speed limitation ?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/seriyps/mtproto_proxy/issues/53, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AADHA7QDTTCWNJ7NHNBJEJ3RHSVCHANCNFSM4LKZI2OQ
.

I'm waiting for that eagerly...

Hi @alirezaimi . Unfortunately I'm currently don't have much time to work on it, sorry.

authors: alirezaimi seriyps


text:
cppflow2: Fix compilation with Visual Studio, add How To Run section of README

This unneeded include doesn't compile in Visual Studio. The shared_ptr is part of the  header already.

I changed the CMakeLists as it was expecting to have the libtensorflow folder in the cppflow directory, but it is better to expect it in the home directory, as in cppflow 1 and as you wrote in README.md
Thanks for your help!

authors: CarlPoirier serizba

repo: serizba/cppflow


text:
Move topic-folders to the top

i.e. "exercise groups" before "articles" etc on topic overviews

is this still relevant?

yes

As discussed with simon and others, we won't include this until it's asked for again by users (or maybe until we have something like A/B testing). Closed for now.

authors: Knorrke arekkas inyono


text:
Add more translations

Now, as the multi-language functionality is implemented, more translations can be created. If you are interesting in creating translation for any language, refer to the CONTRIBUTING.md file in the repo's root.

Hi @mathieupotier, if you are interested in adding a translation for sensor names etc., feel free to create a translation file according to the guide.

I'll do some tonight 😉

https://github.com/sermatec-opensource/sermatec-inverter/pull/63
Adding new language could be easily don,e with google translate on first batch, and we just have to fine tune later ^_^
But it's surprisingly accurate on many lines ... 😉

Good job, I'll have a look!

authors: andreondra mathieupotier

repo: sermatec-opensource/sermatec-inverter


text:
🛑 sgmgrpc.serverssh.us is down

In e3ca6b6, sgmgrpc.serverssh.us (http://sgmgrpc.serverssh.us/) was down:

HTTP code: 521
Response time: 1154 ms

Resolved: sgmgrpc.serverssh.us is back up in a1b91e8.

repo: serversshnet/server-status


text:
🛑 sgx1.serverssh.net is down

In 81af1a6, sgx1.serverssh.net (sgx1.serverssh.net) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sgx1.serverssh.net is back up in b675a19 after 19 minutes.


text:
🛑 ge.ipservers.xyz is down

In caceb4a, ge.ipservers.xyz (ge.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: ge.ipservers.xyz is back up in de7e3d8.

repo: serversshnet/uptime


text:
🛑 sgtro.ipservers.xyz is down

In 7b4ba05, sgtro.ipservers.xyz (sgtro.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sgtro.ipservers.xyz is back up in e242b61.


text:
🛑 id2tro.ipservers.xyz is down

In 2de97a4, id2tro.ipservers.xyz (id2tro.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id2tro.ipservers.xyz is back up in b871459.


text:
🛑 id2go.ipservers.xyz is down

In 1d512e5, id2go.ipservers.xyz (id2go.ipservers.xyz) was down:

HTTP code: 0
Response time: 0 ms

Resolved: id2go.ipservers.xyz is back up in 8050258 after 43 minutes.


text:
🛑 Bath Repairs is down

In 89b13fc, Bath Repairs (https://bath-repairs.co.uk) was down:

HTTP code: 500
Response time: 3125 ms

Resolved: Bath Repairs is back up in 6e2c216.

repo: servicesite/upptime


text:
🛑 Typeform (Cookers) is down

In 1c84329, Typeform (Cookers) (https://servicesite.typeform.com/to/wnhhHH) was down:

HTTP code: 503
Response time: 195 ms

Resolved: Typeform (Cookers) is back up in dd754be after 9 minutes.


text:
🛑 Colchester Repairs is down

In b0d7d48, Colchester Repairs (https://colchester-repairs.co.uk) was down:

HTTP code: 500
Response time: 3154 ms

Resolved: Colchester Repairs is back up in 7a3459c.


text:
Add some bindings to the private CGSRegion APIs.

These enable us to tell the window server about the opaque regions of
the window so that it can perform occlusion culling.
See https://github.com/NUIKit/CGSInternal/blob/master/CGSRegion.h
r? @metajack

This change is

This looks fine, but had a question on the return value. r=me if that doesn't matter.
Previously, pcwalton (Patrick Walton) wrote…
> #### Add some bindings to the private \`CGSRegion\` APIs\.
>
> These enable us to tell the window server about the opaque regions of
>
> the window so that it can perform occlusion culling.
>
>
>
> See https://github.com/NUIKit/CGSInternal/blob/master/CGSRegion.h
>
>
>
> r? @metajack
>
>
>

Reviewed 2 of 2 files at r1.
Review status: all files reviewed at latest revision, 2 unresolved discussions.

src/private.rs, line 34 [r1] (raw file):

        unsafe {
            let mut region = ptr::null_mut();
            ffi::CGSNewRegionWithRect(rect, &mut region);

Is checking the status unimportant?

src/private.rs, line 45 [r1] (raw file):

    use geometry::CGRect;

    enum CGSRegionObject {}

It doesn't much matter, but why an empty enum instead of an empty struct?

Comments from Reviewable

Review status: all files reviewed at latest revision, 2 unresolved discussions.

src/private.rs, line 45 [r1] (raw file):
Previously, metajack (Jack Moffitt) wrote…
> It doesn't much matter, but why an empty enum instead of an empty struct?

So that you can't create a value of `CGSRegionObject` (without unsafe code and a lot of magic).

Comments from Reviewable

Review status: all files reviewed at latest revision, 2 unresolved discussions.

src/private.rs, line 45 [r1] (raw file):
Previously, pcwalton (Patrick Walton) wrote…
> So that you can't create a value of `CGSRegionObject` (without unsafe code and a lot of magic).

That would make a nice comment.

Comments from Reviewable

Updated. r? @metajack

Add the comment, squash, and r=me.
Previously, pcwalton (Patrick Walton) wrote…
> Updated. r? @metajack

Reviewed 1 of 1 files at r2.
Review status: all files reviewed at latest revision, 2 unresolved discussions.

Comments from Reviewable

@bors-servo: r=metajack

:pushpin: Commit 3c37274 has been approved by metajack

:hourglass: Testing commit 3c37274 with merge 8be09b1...

:sunny: Test successful - travis

authors: bors-servo metajack pcwalton

repo: servo/core-graphics-rs


text:
Compile error on nightly: invalid monomorphization, simd_shuffle index must be a SIMD vector

I get this compile error on nightly-2024-09-17:
error[E0511]: invalid monomorphization of `simd_shuffle` intrinsic: simd_shuffle index must be a SIMD vector of `u32`, got `[u32; 4]`
   --> /Users/niklas/.cargo/registry/src/index.crates.io-6f17d22bba15001f/pathfinder_simd-0.5.4/src/arm/mod.rs:163:24
    |
163 |         unsafe { F32x4(simd_shuffle4!(self.0, other.0, [0, 1, 2, 3])) }
    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: this error originates in the macro `simd_shuffle4` (in Nightly builds, run with -Z macro-backtrace for more info)

This is caused by https://github.com/rust-lang/rust/issues/128738 / https://github.com/rust-lang/rust/pull/130268

I have the same issue with both stable rust (1.81) and nightly 1.83 😕 I am unable to compile the Zed editor due to this issue.

authors: mischnic theoparis

repo: servo/pathfinder


text:
"cargo test" failing because of docblocks?

Hello,
As part of using rust-bindgen to build libcouchbase bindings, I'm running cargo test to run the automatically created sanity tests.
As it turns out the function tests are fine, but somehow the rust doc tests get tripped up by some docs in the c code (I think?).
~/code/rust/couchbase-rs/couchbase-sys$ cargo test
       Fresh rustc-serialize v0.3.22
       Fresh num-traits v0.1.36
       Fresh serde v0.8.21
       Fresh cfg-if v0.1.0
       Fresh winapi v0.2.8
       Fresh utf8-ranges v0.1.3
       Fresh dtoa v0.2.2
       Fresh lazy_static v0.2.2
       Fresh syntex_pos v0.50.0
       Fresh itoa v0.1.1
       Fresh nom v1.2.4
       Fresh bitflags v0.7.0
       Fresh glob v0.2.11
       Fresh phf_shared v0.7.20
       Fresh regex-syntax v0.3.9
       Fresh unicode-xid v0.0.3
       Fresh libc v0.2.18
       Fresh serde_json v0.8.4
       Fresh cexpr v0.2.0
       Fresh log v0.3.6
       Fresh phf v0.7.20
       Fresh pkg-config v0.3.8
       Fresh winapi-build v0.1.1
       Fresh memchr v0.1.11
       Fresh rand v0.3.15
       Fresh aho-corasick v0.5.3
       Fresh phf_generator v0.7.20
       Fresh phf_codegen v0.7.20
       Fresh kernel32-sys v0.2.2
       Fresh term v0.4.4
       Fresh thread-id v2.0.0
       Fresh syntex_errors v0.50.0
       Fresh thread_local v0.2.7
       Fresh syntex_syntax v0.50.0
       Fresh regex v0.1.80
       Fresh syntex v0.50.0
       Fresh aster v0.34.0
       Fresh quasi v0.26.0
       Fresh env_logger v0.3.5
       Fresh quasi_codegen v0.26.0
       Fresh target_build_utils v0.1.2
       Fresh libloading v0.3.1
       Fresh clang-sys v0.12.0
       Fresh libbindgen v0.1.5
   Compiling couchbase-sys v0.1.0 (file:///Users/daschl/code/rust/couchbase-rs/couchbase-sys)
     Running `rustc --crate-name couchbase_sys src/lib.rs -g --test -C metadata=85396d413f7666df -C extra-filename=-85396d413f7666df --out-dir /Users/daschl/code/rust/couchbase-rs/target/debug/deps --emit=dep-info,link -L dependency=/Users/daschl/code/rust/couchbase-rs/target/debug/deps -L native=/usr/local/Cellar/libcouchbase/2.6.4/lib -l couchbase`
    Finished debug [unoptimized + debuginfo] target(s) in 3.71 secs
     Running `/Users/daschl/code/rust/couchbase-rs/target/debug/deps/couchbase_sys-85396d413f7666df`

running 182 tests
test bindgen_test_layout___darwin_pthread_handler_rec ... ok
test bindgen_test_layout___sFILE ... ok
test bindgen_test_layout___sbuf ... ok
test bindgen_test_layout__bindgen_ty_1 ... ok
test bindgen_test_layout__bindgen_ty_14 ... ok
test bindgen_test_layout__bindgen_ty_15 ... ok
test bindgen_test_layout__bindgen_ty_18 ... ok
test bindgen_test_layout__bindgen_ty_19 ... ok
test bindgen_test_layout__bindgen_ty_21 ... ok
test bindgen_test_layout__bindgen_ty_23 ... ok
test bindgen_test_layout__bindgen_ty_24 ... ok
test bindgen_test_layout__bindgen_ty_26 ... ok
test bindgen_test_layout__bindgen_ty_27 ... ok
test bindgen_test_layout__bindgen_ty_28 ... ok
test bindgen_test_layout__bindgen_ty_29 ... ok
test bindgen_test_layout__bindgen_ty_30 ... ok
test bindgen_test_layout__bindgen_ty_31 ... ok
test bindgen_test_layout__bindgen_ty_33 ... ok
test bindgen_test_layout__bindgen_ty_34 ... ok
test bindgen_test_layout__bindgen_ty_35 ... ok
test bindgen_test_layout__bindgen_ty_36 ... ok
test bindgen_test_layout__bindgen_ty_37 ... ok
test bindgen_test_layout__bindgen_ty_38 ... ok
test bindgen_test_layout__bindgen_ty_39 ... ok
test bindgen_test_layout__bindgen_ty_4 ... ok
test bindgen_test_layout__bindgen_ty_41 ... ok
test bindgen_test_layout__bindgen_ty_44 ... ok
test bindgen_test_layout__bindgen_ty_45 ... ok
test bindgen_test_layout__bindgen_ty_51 ... ok
test bindgen_test_layout__bindgen_ty_52 ... ok
test bindgen_test_layout__bindgen_ty_53 ... ok
test bindgen_test_layout__bindgen_ty_54 ... ok
test bindgen_test_layout__bindgen_ty_67 ... ok
test bindgen_test_layout__bindgen_ty_68 ... ok
test bindgen_test_layout__bindgen_ty_69 ... ok
test bindgen_test_layout__bindgen_ty_69__bindgen_ty_1 ... ok
test bindgen_test_layout__bindgen_ty_7 ... ok
test bindgen_test_layout__bindgen_ty_70 ... ok
test bindgen_test_layout__bindgen_ty_71 ... ok
test bindgen_test_layout__bindgen_ty_72 ... ok
test bindgen_test_layout__bindgen_ty_73 ... ok
test bindgen_test_layout__bindgen_ty_74 ... ok
test bindgen_test_layout__bindgen_ty_74__bindgen_ty_1 ... ok
test bindgen_test_layout__bindgen_ty_75 ... ok
test bindgen_test_layout__bindgen_ty_76 ... ok
test bindgen_test_layout__bindgen_ty_77 ... ok
test bindgen_test_layout__bindgen_ty_77__bindgen_ty_1 ... ok
test bindgen_test_layout__bindgen_ty_78 ... ok
test bindgen_test_layout__bindgen_ty_79 ... ok
test bindgen_test_layout__bindgen_ty_8 ... ok
test bindgen_test_layout__bindgen_ty_80 ... ok
test bindgen_test_layout__bindgen_ty_80__bindgen_ty_1 ... ok
test bindgen_test_layout__bindgen_ty_82 ... ok
test bindgen_test_layout__bindgen_ty_83 ... ok
test bindgen_test_layout__bindgen_ty_84 ... ok
test bindgen_test_layout__bindgen_ty_85 ... ok
test bindgen_test_layout__bindgen_ty_85__bindgen_ty_1 ... ok
test bindgen_test_layout__bindgen_ty_86 ... ok
test bindgen_test_layout__bindgen_ty_87 ... ok
test bindgen_test_layout__bindgen_ty_88 ... ok
test bindgen_test_layout__bindgen_ty_88__bindgen_ty_1 ... ok
test bindgen_test_layout__bindgen_ty_89 ... ok
test bindgen_test_layout__bindgen_ty_9 ... ok
test bindgen_test_layout__bindgen_ty_90 ... ok
test bindgen_test_layout__bindgen_ty_90__bindgen_ty_1 ... ok
test bindgen_test_layout__bindgen_ty_91 ... ok
test bindgen_test_layout__bindgen_ty_92 ... ok
test bindgen_test_layout__bindgen_ty_93 ... ok
test bindgen_test_layout__bindgen_ty_94 ... ok
test bindgen_test_layout__bindgen_ty_95 ... ok
test bindgen_test_layout__bindgen_ty_96 ... ok
test bindgen_test_layout__bindgen_ty_97 ... ok
test bindgen_test_layout__bindgen_ty_98 ... ok
test bindgen_test_layout__bindgen_ty_99 ... ok
test bindgen_test_layout__bindgen_ty_99__bindgen_ty_1 ... ok
test bindgen_test_layout__opaque_pthread_attr_t ... ok
test bindgen_test_layout__opaque_pthread_cond_t ... ok
test bindgen_test_layout__opaque_pthread_condattr_t ... ok
test bindgen_test_layout__opaque_pthread_mutex_t ... ok
test bindgen_test_layout__opaque_pthread_mutexattr_t ... ok
test bindgen_test_layout__opaque_pthread_once_t ... ok
test bindgen_test_layout__opaque_pthread_rwlock_t ... ok
test bindgen_test_layout__opaque_pthread_rwlockattr_t ... ok
test bindgen_test_layout__opaque_pthread_t ... ok
test bindgen_test_layout_fd_set ... ok
test bindgen_test_layout_lcb_CMDBASE ... ok
test bindgen_test_layout_lcb_CONTIGBUF ... ok
test bindgen_test_layout_lcb_FRAGBUF ... ok
test bindgen_test_layout_lcb_KEYBUF ... ok
test bindgen_test_layout_lcb_MULTICMD_CTX_st ... ok
test bindgen_test_layout_lcb_MUTATION_TOKEN ... ok
test bindgen_test_layout_lcb_VALBUF ... ok
test bindgen_test_layout_lcb_VALBUF__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_arithmetic_cmd_st ... ok
test bindgen_test_layout_lcb_arithmetic_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_bsdprocs_st ... ok
test bindgen_test_layout_lcb_buf_info ... ok
test bindgen_test_layout_lcb_cached_config_st ... ok
test bindgen_test_layout_lcb_cntl_iops_info_st ... ok
test bindgen_test_layout_lcb_cntl_iops_info_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_cntl_iops_info_st__bindgen_ty_1__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_cntl_rdballocfactory ... ok
test bindgen_test_layout_lcb_cntl_server_st ... ok
test bindgen_test_layout_lcb_cntl_server_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_1__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2 ... ok
test bindgen_test_layout_lcb_cntl_server_st__bindgen_ty_1__bindgen_ty_2__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_cntl_vbinfo_st ... ok
test bindgen_test_layout_lcb_cntl_vbinfo_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_cntl_vbinfo_st__bindgen_ty_1__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_create_io_ops_st ... ok
test bindgen_test_layout_lcb_create_io_ops_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_create_st ... ok
test bindgen_test_layout_lcb_create_st0 ... ok
test bindgen_test_layout_lcb_create_st1 ... ok
test bindgen_test_layout_lcb_create_st2 ... ok
test bindgen_test_layout_lcb_create_st3 ... ok
test bindgen_test_layout_lcb_create_st_lcb_CRST_u ... ok
test bindgen_test_layout_lcb_durability_cmd_st ... ok
test bindgen_test_layout_lcb_durability_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_durability_opts_st ... ok
test bindgen_test_layout_lcb_durability_opts_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_durability_resp_st ... ok
test bindgen_test_layout_lcb_durability_resp_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_evprocs_st ... ok
test bindgen_test_layout_lcb_flush_cmd_st ... ok
test bindgen_test_layout_lcb_flush_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_flush_cmd_st__bindgen_ty_1__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_flush_resp_st ... ok
test bindgen_test_layout_lcb_flush_resp_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_flush_resp_st__bindgen_ty_1__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_get_cmd_st ... ok
test bindgen_test_layout_lcb_get_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_get_replica_cmd_st ... ok
test bindgen_test_layout_lcb_get_replica_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_http_cmd_st ... ok
test bindgen_test_layout_lcb_http_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_io_opt_st ... ok
test bindgen_test_layout_lcb_io_opt_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_io_opt_st__bindgen_ty_1__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_io_writebuf_st ... ok
test bindgen_test_layout_lcb_iops2_st ... ok
test bindgen_test_layout_lcb_iops3_st ... ok
test bindgen_test_layout_lcb_iops_completion_st ... ok
test bindgen_test_layout_lcb_iops_evented_st ... ok
test bindgen_test_layout_lcb_iovec_st ... ok
test bindgen_test_layout_lcb_logprocs_st ... ok
test bindgen_test_layout_lcb_logprocs_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_logprocs_st__bindgen_ty_1__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_loopprocs_st ... ok
test bindgen_test_layout_lcb_memcached_st ... ok
test bindgen_test_layout_lcb_nameinfo_st ... ok
test bindgen_test_layout_lcb_nameinfo_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_nameinfo_st__bindgen_ty_2 ... ok
test bindgen_test_layout_lcb_observe_cmd_st ... ok
test bindgen_test_layout_lcb_observe_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_remove_cmd_st ... ok
test bindgen_test_layout_lcb_remove_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_server_stat_resp_st ... ok
test bindgen_test_layout_lcb_server_stat_resp_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_server_stats_cmd_st ... ok
test bindgen_test_layout_lcb_server_stats_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_server_version_cmd_st ... ok
test bindgen_test_layout_lcb_server_version_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_server_version_cmd_st__bindgen_ty_1__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_server_version_resp_st ... ok
test bindgen_test_layout_lcb_server_version_resp_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_server_version_resp_st__bindgen_ty_1__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_sockdata_st ... ok
test bindgen_test_layout_lcb_store_cmd_st ... ok
test bindgen_test_layout_lcb_store_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_timerprocs_st ... ok
test bindgen_test_layout_lcb_unlock_cmd_st ... ok
test bindgen_test_layout_lcb_unlock_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_verbosity_cmd_st ... ok
test bindgen_test_layout_lcb_verbosity_cmd_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_verbosity_resp_st ... ok
test bindgen_test_layout_lcb_verbosity_resp_st__bindgen_ty_1 ... ok
test bindgen_test_layout_lcb_verbosity_resp_st__bindgen_ty_1__bindgen_ty_1 ... ok
test bindgen_test_layout_timespec ... ok
test bindgen_test_layout_tm ... ok

test result: ok. 182 passed; 0 failed; 0 ignored; 0 measured

   Doc-tests couchbase-sys
     Running `rustdoc --test /Users/daschl/code/rust/couchbase-rs/couchbase-sys/src/lib.rs --crate-name couchbase_sys -L dependency=/Users/daschl/code/rust/couchbase-rs/target/debug/deps -L native=/usr/local/Cellar/libcouchbase/2.6.4/lib --extern couchbase_sys=/Users/daschl/code/rust/couchbase-rs/target/debug/deps/libcouchbase_sys-7eb681bf3d39aa71.rlib`

running 2 tests
test lcb_cntl_0 ... FAILED
test lcb_get3_0 ... FAILED

failures:

---- lcb_cntl_0 stdout ----
	error: incorrect close delimiter: `}`
 --> <anon>:6:1
  |
6 | }
  | ^
  |
note: unclosed delimiter
 --> <anon>:3:56
  |
3 |  will still compile with an older libcouchbase version (though
  |                                                        ^

error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `the`
 --> <anon>:2:8
  |
2 |  Using the actual value may be useful in ensuring your application
  |        ^^^

error[E0425]: unresolved name `Using`
 --> <anon>:2:2
  |
2 |  Using the actual value may be useful in ensuring your application
  |  ^^^^^ unresolved name

error: aborting due to previous error(s)

thread 'lcb_cntl_0' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/librustc/session/mod.rs:201
note: Run with `RUST_BACKTRACE=1` for a backtrace.

---- lcb_get3_0 stdout ----
	error: expected one of `!`, `)`, `,`, `.`, `::`, `?`, `{`, or an operator, found `->`
 --> <anon>:2:9
  |
2 | if (resp->rc != LCB_SUCCESS) {
  |         ^^

error: aborting due to previous error(s)

thread 'lcb_get3_0' panicked at 'Box<Any>', /Users/rustbuild/src/rust-buildbot/slave/nightly-dist-rustc-mac/build/src/librustc/session/mod.rs:201

failures:
    lcb_cntl_0
    lcb_get3_0

test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured

error: test failed

So my question is: do those doc tests even make sense? If so, I'm happy to help getting it to work, if not maybe there is an option to add no_run to those to avoid the test suite failing?
Thanks!

So as you said, these doc tests doesn't make any sense, given they're C code... Is there any kind of compiler annotation that we could use to tell rustc "don't run doctests in this module"?
Easiest short-term solution is adding an option to avoid generating comments, but that's... not ideal.
I can imagine how could we process comments so no_run is added, but that solution would be a bit more flaky I think :/.

I don't think there is something we can put in rust code directly which would ignore the doc tests of a module (would be ideal), for now I think turning off doctests for the -sys crate works good enough:
[lib]
doctest = false

But of course this also rules out any doctests which one could add on top of the auto-generated ones, so I think a "code fix" is needed at some point.

I'm going to try to patch rustdoc upstream to support:
#[doc(test(ignore))]
On testable items. This will solve the issue nicely I think.
On Wed, Jan 04, 2017 at 04:00:35AM -0800, Michael Nitschinger wrote:

I don't think there is something we can put in rust code directly which would ignore the doc tests of a module (would be ideal), for now I think turning off doctests for the -sys crate works good enough:
[lib]
doctest = false

But of course this also rules out any doctests which one could add on top of the auto-generated ones, so I think a "code fix" is needed at some point.
--
You are receiving this because you commented.
Reply to this email directly or view it on GitHub:
https://github.com/servo/rust-bindgen/issues/378#issuecomment-270355809

That would be great - how would that work in this autogenerated context? Would libbindgen add those options or would it be possible to do that on the module where we "inject" the code?

You could either:
#[doc(test(ignore))]
mod bindings {
    include!("/path/to/autogenerated/bindings.rs")
}

or use the --raw-line API to add it to the top level:
$ bindgen --raw-line "#![doc(test(ignore))]"

or
builder.raw_line("#![doc(test(ignore))]");

Sounds great 👍 looking forward to it!

https://github.com/rust-lang/rust/issues/38825

Let's track this in #426 instead, which seems a bit more general. Thanks for the report!

authors: daschl emilio

repo: servo/rust-bindgen


text:
Enable choosing build machine for force builds

This makes it easier to test if changes to a specific build machine are
working properly, e.g. the current impetus of seeing if Android-related
changes on servo-linux-cross3 are working.
Docs: https://docs.buildbot.net/0.8.12/manual/cfg-schedulers.html#buildslavechoiceparameter
Fixes: #658.

This change is

The only thing I was concerned about was the correct import paths, but I checked in a REPL and I think those should be OK. r? @edunham

@bors-servo r+
Looks good to me. I'll keep an eye on the builds after we roll this out -- if the first one refuses to start, we back this out and try again.

:pushpin: Commit cf844f4 has been approved by edunham

:hourglass: Testing commit cf844f4a3fa55034deb718b81d5ce54856973a81 with merge 93e9108f33c9f2554916fe55d515ec4f4ccbbd2c...

:sunny: Test successful - status-travis
Approved by: edunham
Pushing 93e9108f33c9f2554916fe55d515ec4f4ccbbd2c to master...

I've just rolled this out and confirmed that the web UI now allows choosing a particular build machine when running a force build.

authors: aneeshusa bors-servo edunham

repo: servo/saltfs


text:
stub lazy execution

There certainly may be a better approach to what i'm doing, but here what I've got.
I'm working on a jenkins wrapper cookbook.  In one portion, I go through a list of plug-ins to be installed and use the lwrp from the jenkins cookbook to do so:
node['jenkins']['plug_ins'].each do |p, v|
  jenkins_plugin p do
     Chef::Log.info("installing #{p} plugin")
     version v
     retries 1
     action :install
  end
end

These plugins must be installed and active for laters config changes to work, so jenkins needs to be restarted.  I could add a notify restart service['jenkins'] and set to :immediate, of course, but that means jenkins would get restarted with each and every plug-in, which could be dozens, especially on initial install.
So, I use a global variable as a flag, a ruby block to update that flag if (and only if) any of the plug-ins are installed, then test for that flag and do an immediate service restart:
$updt = false

ruby_block 'plug-in updt' do
  block { $updt = true }
  action :nothing
end

node['jenkins']['plug_ins'].each do |p, v|
  jenkins_plugin p do
     Chef::Log.info("installing #{p} plugin")
     version v[0]
     retries 1
     action :install
     notifies :run, 'ruby_block[plug-in updt]', :immediately if v[2]
  end
end

ruby_block 'immed restart' do
  block { puts 'restarting Jenkins....'}
  notifies :restart, 'service[jenkins]', :immediately
  notifies :run, 'ruby_block[sleeping]', :immediately
  only_if lazy { $updt }.to_s
end

the only_if for the restart ruby_block needs to be lazy because, the ruby_block to update $updt only fires after the notification during execution.
This all seems to work just fine on my nodes and test kitchen.  The problem is when I run rspec tests.  heres my spec:
  it 'installs plugins' do
    chef_run.node['jenkins']['plug_ins'].each do |p, v|
      expect(chef_run).to install_jenkins_plugin(p).with(version: v)
      pl = chef_run.jenkins_plugin(p)
      expect(pl).to notify('ruby_block[plug-in updt]').to(:run).immediately
    end
  end

When run, I get this error:
      ChefSpec::Error::CommandNotStubbed:
        Executing a real command is disabled. Unregistered command:

            command("#<Chef::DelayedEvaluator:0x007f810c7095d8@/var/folders/rg/14ns3__11vx1ghc_g747k3t40000gp/T/chefspec20161130-9692-1uxyflqfile_cache_path/cookbooks/new-jenkins/recipes/master.rb:75>")

        You can stub this command with:

            stub_command("#<Chef::DelayedEvaluator:0x007f810c7095d8@/var/folders/rg/14ns3__11vx1ghc_g747k3t40000gp/T/chefspec20161130-9692-1uxyflqfile_cache_path/cookbooks/new-jenkins/recipes/master.rb:75>").and_return(...)

I know how a normal command stub works, but I don't know how to stub a command that is going to change like this.  I've tried variations of:
stub_command("#<Chef::DelayedEvaluator:*@/var/folders/rg/*/chefspec*/cookbooks/new-jenkins/recipes/master.rb:75>").and_return(true)

and
allow(Chef::DelayedEvaluator).to receive(:run).with('*/var/folders/rg/*/chefspec*/cookbooks/new-jenkins/recipes/master.rb:75').and_return(true)

with no luck.
Any suggestions?

You shouldn't need to lazy the only_if:
flag = false

ruby_block "test" do
  block do
    flag = true
  end
end

log "flag is true" do
  level :warn
  only_if { flag }
end

at compile time that passes a block into only_if.  the ruby_block then executes and sets the flag to true, then the only_if is evaluated and is true:
% chef-client -z -r 'test::default'
[2017-04-18T07:30:59-07:00] WARN: No config file found or specified on command line, using command line options.
Starting Chef Client, version 13.0.118
resolving cookbooks for run list: ["test::default"]
Synchronizing Cookbooks:
  - test (0.0.1)
  - other_cookbook (0.0.1)
Installing Cookbook Gems:
Compiling Cookbooks...
Converging 2 resources
Recipe: test::default
  * ruby_block[test] action run
    - execute the ruby block test
  * log[flag is true] action write[2017-04-18T07:31:07-07:00] WARN: flag is true
[2017-04-18T07:31:07-07:00] WARN: flag is true

Running handlers:
Running handlers complete
Chef Client finished, 2/2 resources updated in 08 seconds

(and conveniently i seem to have a simple repro case of the double-logging bug in chef 13.0.x there as well...)

That makes sense.  I ended up completely re-working this for an unrelated reason, I hadn't closed THIS because it still seemed like a legit question.
Thanks for the clarification.

we probably do have other bugs around legitimately using lazy and trying to use chefspec, but the best solution is to not lazy as much, its got all kinds of issues that i don't know how to generically fix and winds up in endless whack-a-mole land.

authors: chazzly lamont-granquist

repo: sethvargo/chefspec


text:
Converting Lealla to Huggingface's sentence transformer

Hello setu -
Thanks for your work on this repository. I've tried following your directions but I have been stuck on poetry let alone actually getting a model, LEALLA, from Thub to Huggingface hub. Could you please use your script to convert this model to a sentence transformer in huggingface?
This lightweight LABSE is critical to a project I'm working on. Also, is there an alternative to using poetry? It's disappointingly cumbersome to get it working on Windows.
Thanks!

Hey @temiwale88, thanks for opening this issue and providing this feedback.
I can take a look at this new model over the weekend to see what it'll take.
If you just want to install it, this package is published on PyPI, so you could just pip install it instead of building with poetry from the repo.

Hello @setu4993 . To confirm:

I can try to use this package for the new models?
How do I run it in place of poetry run commands or are the commands the same after pip install?

Thank you! I get the following error when I try it with PyPi.

Also @setu4993, if you're able to get your script to work for LEALLA-Large and make it part of the sentence-transformer family in hugging-face, could you kindly use the same script for -small and -base? See here for their TfHub links.
I can confidently say that I've invested hours, and lack of sleep, into trying to follow your wonderful work on my Windows machine both through poetry and PyPi as stated. All efforts have failed (and I think you can't install the jaxlib dependency on a Windows machine anyway). Sigh. Thank you!

@temiwale88 :
Ah, I realized from your screenshot that I actually haven't published the latest versions of this package to PyPI. Once installed from there, you could just drop the poetry run piece from all of the commands and execute them directly in venv it was installed in convert_labse ....
Regardless of this aspect, though, it wouldn't work directly and would require because there's a slight difference in layer names and model architecture for the LEALLA models.
I spent some time on this today, and think they're migrate-able. I'm close and should be able to spend some more time on it over the weekend and see how far I get.
I'll post back here in a couple days with an update one way or the other.

@setu4993 I am immensely grateful that you'll try to do this for the models. Thank you! Idea for you: could you write a generalizable package that converts TfHub models to Huggingface's hub? I think it could be a high impact package (or even YouTube tutorial on how we can do it ourselves). I recognized that this capability is lacking during my search for this current project I'm working on. It might be useful for others and me in the future. Anyways, this is my focus now. Thank you!

Hey @temiwale88, quick update: I managed to export all of the LEALLA models into the HF format and they're being uploaded to the HF hub right now (slow upload speeds today, so will likely be a couple hours before all's done).

LEALLA-small
LEALLA-base
LEALLA-large

Full disclosure: I haven't had a chance to write tests and validate the output embeddings produced to compare with the TF Hub versions yet. I might have some bandwidth to do that over the next few days and update the docs after that.

Idea for you: could you write a generalizable package that converts TfHub models to Huggingface's hub?  I think it could be a high impact package (or even YouTube tutorial on how we can do it ourselves).

I'm not qualified to do that, honestly :). There's a few tricky parts about model conversions:

Model architecture: That is pretty nice about this class of models since they're all BERT-based and so it's a pretty standard architecture. I started pursuing this for the Universal Sentence Encoder models a couple years ago (see: https://github.com/setu4993/convert-use-tf-pt) but this was notoriously hard to get around.
Size and dimensions of layers: When we have the code for this, it's easy to migrate, but doing this straight from the model is tricky.
Name mapping: This is the trickiest and most fallible part with transferring these models since each layer has to be ~manually mapped. Everyone training their models names these ever so slightly differently that an automatic map is next to impossible.

Anyway, hope this helps. I'll leave this issue open until I've had a chance to add the tests and update the docs in this repo.

@setu4993 . You have blessed me immensely! I can pull each of these in with AutoTokenizer and AutoModel. I can't use sentence_transformer class. But that's fine for now. In my little test (semantic similarity between an English and Yoruba sentence), LEALLA-small and -base relatively work well, comparably with LABSE. However, -large is markedly off which is weird. But -small will do! Thank you! And let me know if there are any other updates. Also, you can include the TfHub and research article in your Huggingface hub for each model.

So when I try to get the similarity between the two sentences below I get different results between using TfHub and the one you uploaded to Huggingface:

versus

The so called "italian_sentence" is actually Urdu (I'm just lazy to change the name) and it has nothing to do with the English word "Tokenization". Thus the TfHub version is correct. I tried several sentences but the results are inconsistent. I wonder if it's the pooling layer?

P.s. Do you have a Buy me a coffee or Venmo? My wife agrees that we should say 'thank you!' tangibly.

Glad the models load well for you, @temiwale88! I don't use sentence-transformers myself and it has been a couple years since I looked at its source to know if / how it'd work with it.

TfHub version is correct. I tried several sentences but the results are inconsistent. I wonder if it's the pooling layer?

I did suspect that yesterday (thus the ^ warning) and found an issue with the token_type_embeddings which took a while to debug and looking through the TF graph (fix in fc0bfcf), which I have now fixed and am uploading the new versions of the models right now (slow uploads, again, but I can see that small is uploaded and the other 2 are in progress). Try getting the new models from the HF hub and they should have this fixed.
Also, to get equivalent embeddings to the TF Hub ones, we need to apply L2-norm to the pooler output. I haven't tested the below exactly, but it should work (might require minor tweaks).
import torch
import torch.nn.functional as F
from transformers import BertModel, BertTokenizerFast

tokenizer = BertTokenizerFast.from_pretrained("setu4993/LEALLA-small")
model = BertModel.from_pretrained("setu4993/LEALLA-small")
model = model.eval()

english_sentences = [...]
italian_sentences = [...]

english_inputs = tokenizer(english_sentences, return_tensors="pt", padding=True)
italian_inputs = tokenizer(italian_sentences, return_tensors="pt", padding=True)

with torch.no_grad():
    english_outputs = model(**english_inputs)
    italian_outputs = model(**italian_inputs)

def similarity(embeddings_1, embeddings_2):
    normalized_embeddings_1 = F.normalize(embeddings_1, p=2)
    normalized_embeddings_2 = F.normalize(embeddings_2, p=2)
    return torch.matmul(
        normalized_embeddings_1, normalized_embeddings_2.transpose(0, 1)
    )

print(similarity(english_embeddings, italian_embeddings))

I have validated in a notebook that the embeddings produced with the updated models are within a tiny tolerance window of the TF hub ones, so the similarity should be very close to what's expected from TF hub.

Also, you can include the TfHub and research article in your Huggingface hub for each model.

That is indeed the plan for once I get around to writing the docs (after the tests). I have a busy couple weeks upcoming so it's possible I don't get around to it during that time. But the above code snippet should suffice to get you over the hump in the meanwhile :).
I'll post back here once that's done.

P.s. Do you have a Buy me a coffee or Venmo? My wife agrees that we should say 'thank you!' tangibly.

That's very generous of you 🙂. Please just take an evening to celebrate with your wife and family instead!

I can tell you more of my project if we ever get to connect.

My email is on my profile page if you ever want to reach out.

@setu4993 . Muchas gracias my bro! Thanks for blessing us/me with these models. I pray others find it and download it from Huggingface hub.

I've finally got a chance to add tests and update the model cards. I released them all on HF hub and here, and tagged the latest release v3.0.0.
Going to close this since this is now complete.
Hope you find LEALLA useful for your project!

Thank you @setu4993 . I'm using the previous release and it's all good! Thank you again!

Thank you @setu4993 . I'm using the previous release and it's all good! Do I need this updated version? Thank you again!

There's no model / tokenizer changes so the versions should be identical and shouldn't require updating :).


text:
[功能需求]屏幕高度适配的问题

** 需求 **
尽可能描述清楚点
在小屏幕上（笔记本）会因为高度出现滚动条，导致看到上面就看不到下面，很影响体验

每次操作还要滚动下屏幕
我是macbook m1 pro

好 下个版本解决

新版本已解决

authors: cikichen setube

repo: setube/vue-XiuXianGame


text:
1.60会出现重复刷新和无限刷新

感谢您提交 Issue，请在提交前仔细阅读以下信息。
请在阅读完毕后，删除这些文字，并写下对该 Issue 的描述。
若您能熟练使用现代标准汉语，请务必使用该语言描述 Issue。
Issue 的内容仅可为

Bug 反馈
功能申请

若您希望得到使用指导（譬如如何删除快速搜索），请至 G+ 社区 发贴。若有其他问题，可在应用内找到开发者的邮箱地址，使用电子邮件与开发者交流。
若内容为 Bug 反馈，请先查看 release 页面，以帮助确认该 bug 是否存在于最新版中；同时应详细描述 bug 内容与重现方法，必要时可附加截图，但请确定截图符合风序良俗。
功能申请包括添加新功能与改进现有功能。
一个 Issue 只包含一个 Bug 反馈或者功能申请。若有多个需求，请提交多个 Issue。
尽量不提交重复的 Issue，可先进行搜索。对于重复的 Issue，开发者可能会直接关闭并添加 Duplicate 标签。
Thank you for taking the time to submit an issue. Before you proceed, please consider the following.
An issue can only be about:

Bug Report
Feature Request

If you need application instructions, please post your question in G+ community. If you have other questions, please get the developer's email address in the application, and send him/her an email.
One issue one bug report or feature request.

收藏夹和相似画廊在底端刷新会无限刷新（读条），搜索封面每次进去时会多刷新一次，再次进去会显示需要等一下

6350fc1ece18a31bb925891859bc7eef1c687d42


text:
Set Up Routing for Core Pages

Blocked till we get the design and/or requirements
Context
The app will have multiple pages, we need to set up the routing, including dynamic routing for specific entities.
Definition of Done

The pages are functional
Dynamic routing is configured
Navigation works correctly
Fallback pages for invalid routes are implemented

Engineering Details
Use the Next.js 13 App Router system and organize pages within the app directory.

I think we can actually begin working on this asap. The current Figma should have the first couple of pages laid out, so I think if you update this issue to specify exactly which pages we need and link to the figma, then you can mark this as ready to implement. I also think it's appropriate to add some testing criteria (i.e. for each page x, y, and z, a user should be able to see a "dummy" placeholder page that says the name of the page).

repo: sfbrigade/datasci-earthquake


text:
Error after entering API Key and API Secret Key

Hi everyone,
I installed the cli client and created a twitter app. I enabled read, write, and direct message permissions for the twitter app. When I try to authorize it, I get the following error message. I've provided the output below, with the keys redacted.
Is there anything I can do to get around this?
application with Twitter. Just follow the steps below:
  1. Sign in to the Twitter Application Management site and click
     "Create New App".
  2. Complete the required fields and submit the form.
     Note: Your application must have a unique name.
  3. Go to the Permissions tab of your application, and change the
     Access setting to "Read, Write and Access direct messages".
  4. Go to the Keys and Access Tokens tab to view the consumer key
     and secret which you'll need to copy and paste below when
     prompted.

Press [Enter] to open the Twitter Developer site.

Enter your API key: [redacted]
Enter your API secret: [redacted]
/home/alecto/.local/share/gem/ruby/3.0.0/gems/t-3.1.0/lib/t/cli.rb:82:in `authorize': uninitialized constant Twitter::REST::Client::BASE_URL (NameError)
	from /home/alecto/.local/share/gem/ruby/3.0.0/gems/thor-1.1.0/lib/thor/command.rb:27:in `run'
	from /home/alecto/.local/share/gem/ruby/3.0.0/gems/thor-1.1.0/lib/thor/invocation.rb:127:in `invoke_command'
	from /home/alecto/.local/share/gem/ruby/3.0.0/gems/thor-1.1.0/lib/thor.rb:392:in `dispatch'
	from /home/alecto/.local/share/gem/ruby/3.0.0/gems/thor-1.1.0/lib/thor/base.rb:485:in `start'
	from /home/alecto/.local/share/gem/ruby/3.0.0/gems/t-3.1.0/bin/t:20:in `<top (required)>'
	from /home/alecto/.local/share/gem/ruby/3.0.0/bin/t:23:in `load'
	from /home/alecto/.local/share/gem/ruby/3.0.0/bin/t:23:in `<main>'

I think this is the same issue as #402.

This solution works perfectly.

authors: AntZoo codeinred shuuji3

repo: sferik/t


text:
🛑 Rentas is down

In 410da73, Rentas (rentas.catamarcaciudad.gob.ar) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Rentas is back up in 7ac8e60.

repo: sfvc/upptime