text:
Feature request : Display mouse click

Is it possible to visualize mouse clicks at the same time? It will help in record mouse click in making screen casts.

Don't forget to cover the edge case for displaying the operation keys as well, such as ctlr+scroll (zoom in ms office suite), Shift+click (osnap menu in AutoCAD).

Hi, I created a first prototype of a mouse click highlighter. Any feedback welcome.
It does not yet cover edge cases (mixing key + mouse)
https://github.com/bfritscher/carnac/releases/tag/mouse_test

@bfritscher
Currently do not have an implementation to display mouse commands on carnac, so I wanted to ask developers to add features, but thank you very much for your implementation.
Can you also implement mouse middle click and scroll wheel commands?
On Windows these commands are especially important in 3D graphics applications.

@kyjelblue
Yes, middle button can be done, how do you imagine highlighting the scrolling? Do you have an example from another app? Since mouse wheel can be repeated events and of different speed/duration.

@bfritscher
I do not know if this is a good example, but I am a user of Blender (an open source 3D app). There was an add-on named Screencast Keys Status in Blender's add-ons. It seems that development has stopped now, and the next link is a blog post that says other developers completely redesigned the structure and design based on the original. Personally I liked the design of this person quite. However, this add-on is no longer being developed as it was originally, and you know, it's only a limited implementation in Blender.
In short, the implementation of the scroll wheel command is supposed to have no relation to the speed and duration in addition to the up and down distinction and repeatability.
http://jeh3.net/screencast-keys-status-addon-rewrite

@bfritscher
Oh, and for reference, I have a handicap, so I use an HID input device, including a multi-button mouse, to define and use the OS key and modifier key inputs. But carnac does not seem to recognize such input. Can you fix this too?

Congratulation for this job!
Colored circles look great but a picture of an actual mouse to show exactly which key was pressed would probably be a better option - no guessing would be required.
Thank you.

Hi I have a new beta release with edge cases and visual symbols for mouse.
Feedback welcome.
https://github.com/bfritscher/carnac/releases/tag/v3-beta
It supports Left, Right, Middle, XButton1 and 2 + ScrollWheel.

Hello.
Thank you much, that is great news but it took me a while to figure out that I need to remove ALL the check marks from Keyboard to see the mouse picture...and that came with the price of displaying all keys pressed.
I was expecting this to be added like a supplemental feature on top of the existing one: I still generally would use to display only the modifiers keys + whatever are combined with + mouse icon.
A word on modifier key Shift: it doesn't work like Alt or Ctrl: while the latter remain on the screen and are being displayed combined with the next key pressed, like:
Ctrl + F11
Shift is being replaced by the next key so the user sees the following sequence:
Shift
F11 - this being the only thing left displayed.
I tried to attach some picture and video to make this easier but for some reason I can't so I just hope I'm explaining well enough...
Thanks a lot, keep up the great work!

...I must also say that it is a bit confusing the fact that the mouse picture appears to behave like a keyboard feature rather that a mouse one: I have 2 screens and I can see the mouse circles only when I'm clicking on one screen only - my understanding is that it's controlled from the General screen - whereas the mouse picture is displayed regardless the screen I'm clicking in.
Thank you.

Hello.
Another option for the Keyboard should be to choose the way multiple identical key strokes are being displayed: LLLLL OR Lx5.
Thank you.

@bfritscher Thank you for the beta release! (https://github.com/bfritscher/carnac/releases/tag/v3-beta) It works well. Maybe add it to the master branch and release it?

Hey I'm having an issue with the application... here is a video I made of the problems.
-Chris
https://www.youtube.com/watch?v=e1mupM75NEM

Is there a way to keep the mouse circles without the mouse icons showing up in the little shortcut section?  This would be a great feature.

Hey I'm having an issue with the application... here is a video I made of the problems.
-Chris
https://www.youtube.com/watch?v=e1mupM75NEM

You got to hit save for changes to show up.

I added some options to have more controls on what gets displayed for the mouse keys in my latest update https://github.com/bfritscher/carnac/releases

I added some options to have more controls on what gets displayed for the mouse keys in my latest update https://github.com/bfritscher/carnac/releases

OMG thank you so much.  SO great!  I have tried keycastow and Crea Lesson which have both been buggy with zbrush.  This works flawlessly so far!

I added some options to have more controls on what gets displayed for the mouse keys in my latest update https://github.com/bfritscher/carnac/releases

Great updates, I had one other question/request.  Is it possible for the logger to show more than one modifier key at once?  Sometimes I use two or more of shift/ctrl/alt, and it seems to only show one of those keys when I use them in combination.  In zbrush I often use ctrl/alt or ctrl/alt/shift.

Sometimes I use two or more of shift/ctrl/alt, and it seems to only show one of those keys when I use them in combination. In zbrush I often use ctrl/alt or ctrl/alt/shift.

You should create an issue if you can provide a repeatable sequence of keys which illustrates the bug.
Just trying different modifiers they show up

How do I uninstall carnac? How do I open the settings. I clicked the application and it just goes and I can't change any settings or turn it off.

Hello,
I'm French, sorry for my English.
First of all, thank you for your application, it is wonderful!
I had a question: is it possible for mouse clicks to be shown on click instead of released?
Indeed, if we maintain the click to move an element, the mouse only appears when released after the movement, whereas it would be more natural to see appear the mouse when clicking, followed by the movement ...
I don't know what you think of that ...
Thanks in advance !

authors: LinearGraphs bfritscher chrischrischrischrischrischris kyjelblue meepmeep007 mmmcgyver petsagouris sap7772000zilla tigerwin2015 wanglongqi

license: MS-PL


text:
Versionat de APIs

Es posa la versió 1 a l'API actual per obrir la possibilitat de futures noves versions

Combinem canvis a la master

source: gharchive/pull-request

repo: CodeBiting/onion-cargo-loading-service

license: MIT

license_type: permissive

license_source: github-api


text:
Preferences Management

How do we want to manage preferences? Let's getting a discussion going so we can arrive to the best solution for our users.
Do we want to sync via iCloud between devices?
Can project specific settings override global settings?
How do we want to display these settings?
Option A

Option B

Option C

I personally prefer option B since it is how xCode implements the preferences.

I agree with @lukepistrol. Option C would make sense for project settings. I also think iCloud storage of global settings would be nice with project settings stored in a  .codeedit. This is how Nova and VS Code both store project specific settings.

We may also want to consider adding the ability to sync installed extension between computers through iCloud. Many extensions also have global and local settings. It would be nice to save those the same way.

Good point.
Would there be any preferences that would not be retained in the cloud? Any that might be system specific?
If so, perhaps those preferences could be made available like in option B. Global and project-specific settings that are retained in iCloud could then be made available like in option C.
I really like the simple global/workspace toggle you have in the option C design.

This might also help prevent confusion between what settings are available in JSON. Option B preferences are not JSON configurable, option C preferences are also configurable using JSON.
Just a few thoughts...Not sure how others feel about it.

I'm actually happy with any option as long as it's not editing weird JSON like in VSCode 😄

I'm actually happy with any option as long as it's not editing weird JSON like in VSCode 😄

Maybe I'm weird but I'd like that option 😅

I agree 😄 I would get used to any option.

I'm actually happy with any option as long as it's not editing weird JSON like in VSCode 😄

Maybe I'm weird but I'd like that option 😅

I just don't want to rely on documentation for preferences. I also want to scroll through and see what options there are with easy on/off toggling and so on. To be fair most options in VSCode have a GUI but some specific options like coloring of the terminal don't.

Yeah, let's make it a rule that if there is a setting, it HAS to be in the GUI

Not sure if you're really after random strangers' input at this stage but if so... I wonder if you could mimic Xcode's project-level settings. I guess this is pretty similar to option C.

Behind the scenes this would essentially be a GUI for the values inside the .codeedit folder.
Perhaps any folder containing a .codeedit could be represented in the sidebar with a "project" icon; clicking on that could bring up the project-level config. Xcconfig files would be another precedent to consider.

I’d imagine there would be a .codeedit/config.json in your home directory for global settings and a .codeedit/config.json in your project directories for project specific settings.

@jeff-h that is exactly what I was going for with option C. We need to make a final plan here because PR's are submitted like in #205 and I do not want people doing work that will ultimately be thrown out. That is not fair to our awesome contributors. I know it is not exactly how Xcode does it, but does anyone have any objection to moving forward with option C?
I think option C provides for a better user experience because it allows you to navigate settings while not being interruptive to your workflow. It also allows for easy switching between project specific preferences and global application preferences. We do however need a good way to reset certain settings to default, and knowing which global app settings have changed from the default and which project specific settings have changed from the system settings. I am thinking we show this in a similar way to how we indicate change in our editor, with a blue line to the left of the settings that when clicked, you can see the difference of what is changed and what is the original. I'd love to get feedback on this.

I'd have to go a little further in depth for each preferences category, but I was thinking something like this from the above description.

I think optionB is the best. Because it looks like Xcode. And option C more like a project settings. Instead of a app settings. OptionA need users click more, when they change settings. We are a developer tools, we need avoid this.

You make a pretty compelling case and I am honestly waffling back-and-forth between the two.

As a just start app, we need choose apple's design language. Our app very looks like Xcode. The users will think that the things I know about the Xcode it also suitable for this app. This reduces the burden on users to migrate development tools. And also our developers have reference.

My opinion is both b and c 😁 This is how Xcode does it.
b) for settings that are not project-specific (eg light / dark mode)
c) for project-specific settings that are stored as json inside the .codeedit project folder and could just as easily be edited as raw json. These settings will likely go in git, be shared with a team etc
Project-level settings could perhaps inherit defaults from a hierarchy of config files (again Xcode does this) but it seems perhaps overkill here?
Incidentally, Xcode handles the display of settings overrides pretty neatly, once you understand what it's showing you. Settings which are inherited from a higher level are shown as textfield placeholders (in light grey), In my screenshot above, you can see (at the very bottom edge) the Deployment Target is inheriting the value of 12.0.

source: gharchive/issue

authors: austincondiff jasonplatts jeff-h lukepistrol underthestars-zhy

repo: CodeEditApp/CodeEdit


text:
Update README.md

please mark this pull request accepteed so i can participate in hacktabery fest

Marked as Hacktoberfest accepted. Explore other repositories to contribute :smile:

plz close this pr i am submitting other one i forget to register for fest

ok 😅😅

repo: CodeVisors/testimonials


text:
feat(Box): Temporary Box component

Overview
Temp Box component made for new curriculum cards.
Supports 3 variants and 2 hover states.   This is a hold over until https://github.com/Codecademy/client-modules/pull/953 is in alpha.
import { Box } from '@codecademy/gamut-labs';

<Box>Boxing Day</Box>

PR Checklist

[ ] Related to Abstract designs:
[ ] Related to JIRA ticket: ABC-123
[x] I have run this code to verify it works
[ ] This PR includes unit tests for the code change

Description

📬Published Alpha Packages:@codecademy/gamut-labs@4.0.4-alpha.e10163.0

📬Published Alpha Packages:@codecademy/gamut-labs@4.0.4-alpha.f533c4.0

🚀 Styleguide deploy preview ready!https://5f63cfb23c135a4b09c060f9--gamut-preview.netlify.appDeploy Logs

authors: codecaaron codecademydev

repo: Codecademy/client-modules


text:
typescript may not mark async functions correctly so just await everything

no need to check for async

Sorry, it looks like your change actually breaks our tests.
Please look into travis CI log

the scenario test wrapper always creates callback-style asynchronous tests so the assertions needed to wait for the callback

Thanks!

authors: DavertMik RohanHart

repo: Codeception/CodeceptJS


text:
Fabric-permissions-api support?

Will be fabric-permissions-api (https://github.com/lucko/fabric-permissions-api) [luckperms] support for this and other your mods?

Yes, i'll try to add it to the next release. (I can't really tell when that'll be as my study semester has started just today)

added in v2.0.0

authors: CodedSakura Nidre

repo: CodedSakura/FabricTPA

license: ISC


text:
Fix HTML-proofer errors.

https://travis-ci.org/CodeforHawaii/codeforhawaii.github.io/builds/92349583

Who broke the build! 0_0 :D

I fixed these errors in this checkin: 021d4b8f1bd913aa3210f9b710547f9fb36e3eb6
Can you close this if it fixes your issues? (Pretty sure it does).

authors: rbvea ryankanno

license_source: bigquery


text:
Provide initial leaflet map of all museums in Saxony, Saxony-Anhalt, Thuringia

as cluster map, as initial step only nodes with tag name and tag-value tourism=museum

see https://codeforleipzig.github.io/codingdavinciost2018/


text:
Salesforce error

This came into the logs last night
Message: seneca: Action cmd:get_account,role:cd-salesforce failed: [TIMEOUT].
Details:
desc: 'cmd:get_account,role:cd-salesforce',
plugin: { name: 'cd-salesforce', tag: '-' },
time: { start: 1444343752372, end: 1444343763484 },
'orig$': { timeout: true },
'message$': '[TIMEOUT]',
message: '[TIMEOUT]',
pattern: 'cmd:get_account,role:cd-salesforce',
Stack:
at Object.handle_response (/opt/zen/cp-dojos-service/node_modules/seneca/node_modules/seneca-transport/lib/transport-utils.js:86:15)
at /opt/zen/cp-dojos-service/node_modules/seneca/node_modules/seneca-transport/transport.js:569:16
at done (/opt/zen/cp-dojos-service/node_modules/seneca/node_modules/seneca-transport/node_modules/needle/lib/needle.js:355:7)
at PassThrough. (/opt/zen/cp-dojos-service/node_modules/seneca/node_modules/seneca-transport/node_modules/needle/lib/needle.js:523:9)
at PassThrough.emit (events.js:117:20)
at _stream_readable.js:944:16
at process._tickCallback (node.js:448:13)
Instance: Seneca/0.6.4/6upvsbmhkam6/1444343654795/29455/-
ALL ERRORS FATAL: action called with argument fatal$:true (probably a plugin init error, or using a plugin seneca instance, see senecajs.org/fatal.html)
at act_done (/opt/zen/cp-dojos-service/node_modules/seneca/seneca.js:1637:29)
When: 2015-10-08T22:36:03.490Z
SENECA TERMINATED at 2015-10-08T22:36:03.494Z. See above for error report.

Salesforce integration has been stopped, closing

authors: DanielBrierton tangentfairy

repo: CoderDojo/community-platform

license: mit


text:
怎么不把依赖的AFNetworking用到最新的3.1.0呢

怎么不把依赖的AFNetworking用到最新的3.1.0呢

已更新

repo: CoderJackyHuang/HYBNetworking


text:
🛑 Date is down

In ff4c9de, Date (https://dubae.vip) was down:

HTTP code: 503
Response time: 2214 ms

Resolved: Date is back up in 36d5af6.

repo: Codifta/uptime


text:
New Landing Page Design

Closes #354

🎉🎉🎉🎉🎉🎉🎉🎉🎉🎉

authors: nilsweb shiffman

repo: CodingTrain/Rainbow-Code


text:
Qodo Merge rename

PR Type
Documentation

Description

Rebranded PR-Agent to Qodo Merge throughout the documentation
Updated all instances of 'PR-Agent Pro' to 'Qodo Merge Pro'
Changed documentation URLs from 'pr-agent-docs.codium.ai' to 'qodo-merge-docs.qodo.ai'
Updated references to the Chrome extension name
Revised content in various documentation files to reflect the new branding
Maintained functionality descriptions while updating the product name
Ensured consistency in the new branding across all affected files

Changes walkthrough 📝
Relevant filesDocumentation15 files

README.mdUpdate documentation portal URL

docs/README.md
Updated the URL for the documentation portal from 'pr-agent-docs.codium.ai' to 'qodo Merge-docs.codium.ai'

+1/-1

data_privacy.mdRename PR-Agent Pro to Qodo Merge Pro

docs/docs/chrome-extension/data_privacy.md

Changed 'PR-Agent Pro' to 'Qodo Merge Pro'

+1/-1

features.mdRebrand PR-Agent to Qodo Merge in features documentation

docs/docs/chrome-extension/features.md
Replaced all instances of 'PR-Agent' with 'Qodo Merge'  Updated references to documentation URLs

+8/-8

index.mdRebrand Chrome extension to Qodo Merge

docs/docs/chrome-extension/index.md
Updated Chrome extension name from 'PR-Agent' to 'Qodo Merge'  Changed 'PR-Agent Pro' to 'Qodo Merge Pro'  Updated documentation URLs

+4/-4

dynamic_context.mdUpdate dynamic context documentation for Qodo Merge

docs/docs/core-abilities/dynamic_context.md

Replaced 'PR-Agent' with 'Qodo Merge' throughout the document

+4/-4

impact_evaluation.mdRebrand impact evaluation documentation to Qodo Merge

docs/docs/core-abilities/impact_evaluation.md
Replaced all instances of 'PR-Agent' with 'Qodo Merge'  Updated references to documentation URLs

+13/-13

index.mdUpdate core abilities index for Qodo Merge

docs/docs/core-abilities/index.md
Changed 'PR-Agent' to 'Qodo Merge' in the introduction  Updated all documentation URLs to use 'qodo-merge-docs.qodo.ai' domain

+10/-10

metadata.mdRebrand metadata documentation to Qodo Merge

docs/docs/core-abilities/metadata.md
Replaced all instances of 'PR-Agent' with 'Qodo Merge'  Updated documentation URLs to use 'qodo-merge-docs.qodo.ai' domain

+6/-6

self_reflection.mdUpdate self-reflection documentation for Qodo Merge

docs/docs/core-abilities/self_reflection.md

Changed 'PR-Agent' to 'Qodo Merge' throughout the document

+3/-3

static_code_analysis.mdRebrand static code analysis documentation to Qodo Merge

docs/docs/core-abilities/static_code_analysis.md
Replaced 'PR-Agent' with 'Qodo Merge' in the overview section  Updated documentation URLs to use 'qodo-merge-docs.qodo.ai' domain

+6/-6

index.mdUpdate FAQ for Qodo Merge rebranding

docs/docs/faq/index.md
Updated all instances of 'PR-Agent' to 'Qodo Merge'  Changed 'PR-Agent Pro' to 'Qodo Merge Pro'  Updated documentation URLs to use 'qodo-merge-docs.qodo.ai' domain

+11/-11

index.mdRebrand fine-tuning benchmark to Qodo Merge

docs/docs/finetuning_benchmark/index.md
Changed 'PR-Agent' to 'Qodo Merge' in the title and throughout the document

+4/-4

index.mdUpdate main documentation index for Qodo Merge rebranding

docs/docs/index.md
Replaced all instances of 'PR-Agent' with 'Qodo Merge'  Updated 'PR-Agent Pro' to 'Qodo Merge Pro'  Changed documentation URLs to use 'qodo-merge-docs.qodo.ai' domain

+14/-14

azure.mdUpdate Azure DevOps installation guide for Qodo Merge

docs/docs/installation/azure.md
Changed 'PR Agent' to 'Qodo Merge' in the pipeline display name  Updated image alt text to 'Qodo Merge Pro'

+4/-4

bitbucket.mdUpdate BitBucket installation guide for Qodo Merge

docs/docs/installation/bitbucket.md
Replaced 'PR-Agent' with 'Qodo Merge' throughout the document  Updated 'PR-Agent pro' to 'Qodo Merge Pro'

+2/-2

💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

Preparing review...

Preparing review...

Persistent review updated to latest commit https://github.com/Codium-ai/pr-agent/commit/6c4aa468a9dcd7ccbc06ec805497607a51187e4d

Preparing review...

Persistent review updated to latest commit https://github.com/Codium-ai/pr-agent/commit/6c4aa468a9dcd7ccbc06ec805497607a51187e4d

Preparing review...

Persistent review updated to latest commit https://github.com/Codium-ai/pr-agent/commit/6c4aa468a9dcd7ccbc06ec805497607a51187e4d

Preparing review...

Persistent review updated to latest commit https://github.com/Codium-ai/pr-agent/commit/6c4aa468a9dcd7ccbc06ec805497607a51187e4d

Preparing review...

Persistent review updated to latest commit https://github.com/Codium-ai/pr-agent/commit/6c4aa468a9dcd7ccbc06ec805497607a51187e4d

repo: Codium-ai/pr-agent


text:
Support Gulp v4.0.0

I've really liked the CodyHouse experiments, so I'm excited to start using the framework
If you're interested, I migrated to Gulp v4 and updated other dependencies. I added a script so that you can use npm run gulp watch rather than a globally installed gulp; tested on Windows and Mac

Thanks for the commit! Merged into the master. Cheers.

authors: KyleKing claudia-romano

repo: CodyHouse/codyhouse-framework


text:
coloring issues after undoing deletion

Create a temporary file and name it e.g. test.js:
(text)

Delete text from within the brackets, and then undo. Then text is colored incorrectly.

Should be fixed in v0.0.10

authors: CoenraadS bryangingechen


text:
Don't hardcode cursor size

I suppose we could make it proportional to the editor font

After digging a little into EditView.rs, I discovered that changing the rectangle size to fit the dimensions of self.interface_font, it would match the font.

It was my intuition, however, that the interface font should just be used for menus, etc, and that the editor font should be used for the editor. This might suggest a flaw in the UI logic somewhere.
diff --git a/src/edit_view.rs b/src/edit_view.rs
index 55ced73..2788a28 100644
--- a/src/edit_view.rs
+++ b/src/edit_view.rs
@@ -718,11 +718,9 @@ impl EditView {
                     // Draw the cursor
                     cr.rectangle(
                         (f64::from(x)) - hadj.get_value(),
-                        (((self.edit_font.font_ascent + self.edit_font.font_descent) as u64) * i)
-                            as f64
-                            - vadj.get_value(),
+                        self.interface_font.font_height * i as f64 - vadj.get_value(),
                         CURSOR_WIDTH,
-                        self.edit_font.font_ascent + self.edit_font.font_descent,
+                        self.interface_font.font_height,
                     );
                     cr.fill();
                 }

This might suggest a flaw in the UI logic somewhere.

Ah, since the editor font's height is that of the entire line the cursor looks rather big. I guess it's only a coincidence that the cursor looks OK if you use the interface font to decide on how big the cursor should be, if the fonts don't have the same height this happens:

Not quite sure what's the problem with the current cursor height. It doesn't seem so big to me, it's just as big as the line.

My issue with the cursor height is that it doesn't scale with the font. It seems that both interface_font and edit_font are completely detached from whatever font_height the font is actually being set to. :confused:

Ooohhh, I guess we don't recalculate everything but the font name in EVFont and EVInterfaceFont and only do that when initializing the EditView! You could test this: Make the font larger and then open a new EditView. Is the cursor size correct now?

I tried that, didn't work.
Did some more digging around, and it seems like the edit_font is initialized as Inconsolata 16, and then the rest of the metrics are calculated from that, along with the language which is also set as an arbitrary default. https://github.com/Cogitri/gxi/blob/master/src/edit_view.rs#L145-L170
Then, in config_changed, we only calculate the font_desc property of the edit_font, (for size and font_face respectively) where in reality we should also derive the rest of the struct fields from the font description. (This should be easy enough, the edit_view contains a reference to the drawing area, which gives us access to the pango context, which allows us to derive all sorts of black magic.

Yes, as I said, we have to recalculate EVFont and EVInterfaceFont fields on config_changed

FWIW, right now the EditView hardcodes Inconsolata 16 as initial font because EditView doesn't get a Config passed to its new() function and Xi sends us config_changed with the actual font anyway. Would be cleaner to get the right font from the start though

Would be cleaner to get the right font from the start though

Agreed.

authors: Cogitri LiHRaM

repo: Cogitri/gxi


text:
Added .htaccess file to prevent directory listing

Description

Disable directory listing in report app
Motivation and Context

#152
Screenshots (if appropriate):
Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

[x] My code follows the code style of this project.
[ ] My change requires a change to the documentation.
[ ] I have updated the documentation accordingly.

I hereby agree to the terms of the AET Contributor License Agreement.

Hey, this looks like a duplicate of #376 . Which one do you wish to merge?

Yes, it's the same as #376 but this one is directly from AET repository instead of my fork. In agreement with Piotr Wolynski which asked me to push my changes from my fork to AET repo and create new PR (he mentioned that will delete #376).

So should the other one (https://github.com/Cognifide/aet/pull/376) be closed?

authors: Skejven sp2mbn wiiitek

repo: Cognifide/aet


text:
Rewrite Fragment Splitter documentation

marcinczeczko 4 days ago Member
This whole paragraph seems to me as something to rewrite - I don't understand what it tires to explain..
what do you mean by context ???
Are you trying to describe what is the fragment from Knot Context point of view or in general ?
Instead simply put explanations that data-knot-types is used for - to say which knots should process the snippet.

Outdated

authors: Skejven tomaszmichalak

repo: Cognifide/knotx


text:
rss 没有对应的 language & TOC 没有文档

嗯，就是来提个醒 🐸

老哥说句实话，RSS我没用过，直接就忘记了语言配置🐸

我猜就是。。。自己加上了。。。。 🤣

authors: ColMugX kiya-z

repo: ColMugX/hexo-theme-Nlvi


text:
Add a back button to redirect user to previous page

Is your feature request related to a problem? Please describe.
On the Project details page, add a back button similar to the FTE page back button.
Describe the solution you'd like
We need to provide a button for users to redirect to the previous page.

[ ] The back button should be able to open the same page along with the filter applied to that page. For example, if the project listing page has all projects filters applied, then the back button should redirect the user to project listing page for the all projects.
[ ] Similar is to be done for the my projects filter as well.

Reference image

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.

This works fine. Closing

repo: ColoredCow/portal


text:
Newbie in C#

Thank you so much for transcoding this project to c# for Windows. I wanted to use this project for some time on Windows, but I couldnt.
I don't have any experience in C#. Could you help me in the requirements and installation of this project on Windows 10? Any reference would be appreciated.

Thanks for Your feedback! To use the software placed here, it is desirable to have a powerful processor in the first place. To run, download the repository and unzip it. Select the implementation of the work you would like to run and move the corresponding folder to the root of the disk or to the desktop. This is necessary in order to shorten the full path to the executable file and avoid compiler errors. For example, if You want to run Waifu2x, move the StyleTransfer-Colorization-SuperResolution\Enhancing\Waifu2x folder to C:.  After that, go to the folder Waifu2x, find the folder Implemenyation and navigate to it. Run the Compile.bat file and wait a few seconds. You should see a Release folder that contains a single file-a neural network executable file. Run it and follow the instructions in the standard Windows graphical window(all implementations have a graphical interface). If You are using Windows 10, no additional actions will be necessary. Some implementations, such as the Gatis algorithm, can be very slow. I do not recommend using virtual machines, such as VirtualBox or others, as they will run programs at times slower.

Thank you so much for your fast response. I was able to make work the Python version on my Windows. I haven't tried the C# version.
Did you have in C# any advantage in performance?

C# implementations are currently inferior to Python in performance. However, at the moment, work is underway to optimize the code using SIMD-instructions. The main goal of the project is to give the user the opportunity to try neural networks "out of the box" on an ordinary computer.

authors: GlebBrykin leefeel


text:
refactor: improve amplitude building code

Closes #2
This will be improved further with #44

Ok, the PR is rebased to the master (which includes PR #58)

repo: ComPWA/tensorwaves


text:
Reset jwt status when acquire_jwt is 0

parodus connection is keep on retrying when acquire_jwt is 0 or FEATURE_DNS_QUERY is OFF with recent change in dns query logic. Reset of jwt_status is missed in these 2 cases. So added reset to fix retry issue.

Codecov Report

Merging #183 into master will increase coverage by 0.18%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master     #183      +/-   ##
==========================================
+ Coverage   83.64%   83.83%   +0.18%
==========================================
  Files          39       39
  Lines        4024     4026       +2
  Branches      336      336
==========================================
+ Hits         3366     3375       +9
+ Misses        399      392       -7
  Partials      259      259

Impacted Files
Coverage Δ

src/connection.c
73.7% <0%> (-0.65%)
:arrow_down:

tests/test_client_list.c
91.42% <0%> (+6.42%)
:arrow_up:

Continue to review full report at Codecov.

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

authors: codecov-io gbuddappagari

repo: Comcast/parodus


text:
Updating to latest uniform.

Bumping the uniform's version to v1.8.0.
uniform v1.8.0 has updates the version on joda-time, Bumping versions to avoid conflicts in the downstream projects.

LGTM :+1: seems to go through as-is with the new setting

repo: CommBank/omnia-test


text:
Upgrade to Scala 2.11 and removal of old API

Upgrade to Scala 2.11 and compile error and warning fixes
Remove old Jobs/Flow API since the tests broke as part of the upgrade. This closes #39.
Added ability to easily test Scalding typed pipes and grouped.

Looks good to me.

Nice additions. I have a few question though. About the readme, do we want to mention that we have dropped support for scalding jobs?

I don't think the readme should mention that we dropped that support. IMO the readme is there to help you use the project in its current form. Issues, PRs and commits are there to record the evolution of the project.
I changed the major version number to capture the impact of this change.

:+1:

I also added ThermometerHiveSpec to work around a the fact that both ThermometerSpec and HiveSupport now have a before method.

@stephanh Do we want a separate HiveSupport now?

@vineethvarghese I think so. It preserves backward compatibility a bit more and you can use it independently of ThermometerSpec.

@stephanh Fair enough. All that is left then is the build failure otherwise :+1:

authors: shmookey stephanh vineethvarghese

repo: CommBank/thermometer


text:
Impact hour data on the columns went FUBAR

I ran several simulations that were fine and then it kicked this out on the columns

repo: CommonsBuild/Token-Log-Hatch-Params


text:
Issue 298: Enums with identical literals not always detected

Store enumeration elements as Sequence[Tuple[StrID, Number]] so we can check conflicts in model.Model
Move conflict detection for enumeration literals into model

There are still a few checks in the parser which should be done in the model. We should open a different ticket for this, though.

Rebased to develop

repo: Componolit/RecordFlux


text:
Mount points for temporary files

Allow users to bind filesystem paths within a container to a mount point on the host, a la docker bind mounts (e.g., some clusters may offer local filesystem access on a per-node basis, so workflows with disk heavy IO can minimize load on the network file system).

f0f3d74

repo: Computational-Plant-Science/plantit-cli


text:
cleaning area and time value

originally proposed by https://github.com/harisma-git

Thanks

authors: Concentricc htmltiger


text:
LG WebOS audio output control?

I’m trying to figure out how to control the audio output on WebOS TVs (from built-in speakers to optical or ARC out).
Is there an API call to do that?

also very intrested in this !

authors: rcarmo xsasx

repo: ConnectSDK/Connect-SDK-Android-Core


text:
Remove {verify: false} from Proofs

(see also #537)
Some proofs in SimulationProof, FM-Paper and CallExample were previously working in Dafny 3.12.0 (using Z3 4.8.5) but no longer  verify under Dafny 4.0 (using Z3 4.12.1).  I'm not sure what's changed.  At the moment, to temporarily resolve the issue I have marked three proofs as {:verify false}.

Perhaps try the command /proverOpt:O:smt.qi.eager_threshold=25 (taken from Dafny #3400).  See these tracking issues on Dafny:

https://github.com/dafny-lang/dafny/issues/3558
https://github.com/dafny-lang/dafny/issues/3501

UPDATE: adding the Dafny switch /arith:2 appears to make a difference at least to CallExample.  I will return to investigate this further.

Definition of U256.Shl is:
function Shl(lhs: u256, rhs: u256) : u256
    {
        var lbv := lhs as bv256;
        // NOTE: unclear whether shifting is optimal choice here.
        var res := if rhs < 256 then (lbv << rhs) else 0;
        //
        res as u256
    }

This uses bitwise shift which is probably not ideal.

Definition if Memory.Copy is:
function Copy(mem:T, address:nat, data:seq<u8>) : (mem':T)
    // Must have sufficient memory for copy.
    requires |data| == 0 || (address + |data|) <= |mem.contents|
    // Following inductive invariant is required.
    ensures |data| == 0 || EqualsExcept(mem,mem',address,|data|)
    // Check data actually copied
    ensures |data| == 0 || data == mem'.contents[address .. address+|data|]
    // If no data is copied, nothing is changed.
    ensures |data| == 0 ==> mem == mem'
    decreases |data| {
        if |data| == 0 then mem
        else if |data| == 1 then WriteUint8(mem,address,data[0])
        else
          var pivot := |data| / 2;
          var middle := address + pivot;
          var nmem := Copy(mem,address,data[0..pivot]);
          Copy(nmem,middle,data[pivot..])
    }

This is recursive, and could be improved.

Here's my non-recursive implementation of Arrays.Copy:
function Copy<T>(src: seq<T>, dst: seq<T>, start: nat) : (result:seq<T>)
    // Must have enough space in the destination sequence.
    requires |src| == 0 || (start+|src|) <= |dst|
    {
        // Precompute end within destination
        var end := start+|src|;
        // Construct the sequence!
        seq(|dst|, i requires i >= 0 && i < |dst| => if (i >= start && i<end) then src[i-start] else dst[i])
    }

So, in theory this should perform much better ... right?

Some answers (for new implementation using Arrays.Copy):
Postconditions
Removing the postconditions on Memory.Copy reduces its resource usage to 85439.  That's probably to be expected since we are reducing what has to be done overall.  The more important question is what impact it has on the cost of other operations:

With postconditions, total resource usage is  121604751.
Without postconditions, total resource usage is 121205506.

So, the net difference in favour of being without postconditions is: 399245.  As it goes, that's not a huge number in the scheme of things.

Same thing, but results averaged over 5 randomised iterations (with Int.I256.Rem marked as verify: false because otherwise couldn't work):

Arrays.Copy bare
+Postconditions
+Opaque

Memory.Copy base
?
?
?

+Postconditions
?
?
?

+Opaque
?
?
?

Another example of an optimisation is related to the QuadraticCostIsMonotonic lemma:
lemma QuadraticCostIsMonotonic(x: nat, y: nat)
ensures x >= y ==> QuadraticCost(x) >= QuadraticCost(y)
{
    if x >= y {
        calc >= {
            G_MEMORY * x + ((x * x) / 512);
            G_MEMORY * y + ((y * y) / 512);
        }
    }
}

This costs around 65K resource usage, but is very unstable (presumably because of non-linear arithmetic?).  In contrast, this version:
lemma QuadraticCostIsMonotonic(x: nat, y: nat)
ensures x >= y ==> QuadraticCost(x) >= QuadraticCost(y)
{
    if x >= y {
        calc >= {
            G_MEMORY * x + ((x * x) / 512);
            G_MEMORY * y + ((y * y) / 512);
        }
    }
}

lemma QuadraticCostIsMonotonic2(x: nat, y: nat)
ensures x >= y ==> QuadraticCost(x) >= QuadraticCost(y)
{
    if x > y {
        QuadraticCostIsMonotonic2(x-1,y);
    }
}

Actually costs more (around 365K) but is much more stable.

Recursive QuadraticCost lemma without /arith:2:
Name                                                        Resource Usage (CoV)
================================================================================
[WF] U256.Shr                                                     3026935 (0.00)
[WF] U256.SignExtend                                              1665870 (0.03)
[WF] EvmBerlin.OpSem                                              1638293 (0.08)
[WF] Gas.GasBerlin                                                1423008 (0.13)
[WF] Bytecode.And                                                 1114062 (0.01)
[WF] Bytecode.Not                                                 1019331 (0.01)
[WF] Bytecode.Xor                                                  629998 (0.16)
[WF] Bytecode.Call                                                 511094 (0.01)
[WF] Bytecode.SelfDestruct                                         495825 (0.01)
[WF] Bytecode.Create2                                              483001 (0.01)
[WF] Bytecode.Create                                               481326 (0.01)
[WF] EvmState.Continuation.CallReturn                              444979 (0.03)
[WF] Bytecode.Or                                                   444851 (0.05)
[WF] EvmState.Continuation.CreateReturn                            437286 (0.01)
[WF] Bytecode.CallCode                                             425487 (0.00)
[WF] Bytecode.DelegateCall                                         423578 (0.00)
[WF] Bytecode.StaticCall                                           418258 (0.00)
[WF] EvmState.Call                                                 415021 (0.00)
[WF] EvmState.Continuation.CallEnter                               403647 (0.00)
[WF] Bytecode.ExtCodeSize                                          391607 (0.02)
...
================================================================================
Subtotal (mean):                                                        16293457
Total (mean):                                                           80318109

Looking at U256.SignExtend we have this:
function SignExtend(v: u256, k: nat) : u256 {
    if k >= 31 then v
    else
      // Reinterpret k as big endian
      var ith := 31 - k;
      // Extract byte containing sign bit
      var byte := NthUint8(v,ith);
      // Extract sign bit
      var signbit := ((byte as bv8) & 0x80) == 0x80;
      // Replicate sign bit.
      var signs := if signbit then seq(31-k, i => 0xff)
                   else seq(31-k, i => 0);
      // Extract unchanged bytes
      var bytes := ToBytes(v)[ith..];
      // Sanity check
      assert |signs + bytes| == 32;
      // Done
      Read(signs + bytes,0)
  }

This gives an overall cost of:
We can remove use of bitvectors by changing the assignment for signs:
var signs := if signbit then seq(31-k, i => 0xff)
                   else seq(31-k, i => 0);

and dropping signbit altogether.  This gives a costing of:
[WF] U256.SignExtend                                              2505308 (0.00)
...
================================================================================
Total (mean):                                                           77409454

repo: ConsenSys/evm-dafny


text:
5999 gas limit api

PR Description
Adds Gas Limit endpoints to validator API
Fixed Issue(s)

https://github.com/ConsenSys/teku/issues/5999
Documentation
- [ ] I thought about documentation and added the doc-change-required label to this PR if updates are required.
Changelog

[ ] I thought about adding a changelog entry, and added one if I deemed necessary.

#5999

Here it is https://github.com/ConsenSys/teku/pull/6068

There's too much in this PR, i think it should probably be broken down...

There's too much in this PR, i think it should probably be broken down...

we can split out moving the pubkey definition to a nice easy PR
can split out defining the change to the data structure without any apis, and tests for that

I think then it becomes pretty simple, but there may be other things that make sense as a small easy to review PR...

I ended up splitting it into 4 Prs:

Adding the gas limit to the runtime config: https://github.com/ConsenSys/teku/pull/6068
Adding the gas limit to the beacon proposer preparer: https://github.com/ConsenSys/teku/pull/6080
Extracting the Rest API common constants: https://github.com/ConsenSys/teku/pull/6081
The Gas Limit APIs: https://github.com/ConsenSys/teku/pull/6057

They must be reviewed in the mentioned order since each PR is rebased on the previous one

authors: mehdi-aouadi rolfyone

repo: ConsenSys/teku


text:
Helper library for signing transactions

I would like to use this library for signing Eth 1 transactions. Is there a helper library anywhere (i.e. a way to implement this in Ethers)?

We don't have any helper libraries unfortunately for using the web3signer API to sign Eth 1 transactions.

We are working on a helper class that implements the Ethers.js Signer interface. We can share it back here when it is ready. cc @sanchaymittal.

authors: jframe rhlsthrm


text:
Feat/pedersen batch verify

Description
This PR implements a BatchVerify function that can verify $n$ proofs of knowledge from keys with the same base $G_2$ point but possibly different $\sigma$ parameters using $n+1$ pairings instead of $2n$.
The existing BatchProve method which folds both commitments and proofs remains valid by the following extractor construction, but is not suitable to some applications.
Let V be able to provide convincing folded proofs of knowledge for $C_i = x_i B$ for $i\in {1,2 }, B\in G_1$ with high probability. Then, an extractor is able, by rewinding, to obtain two correct folded proofs of knowledge $\Pi, \Pi' \in G_1$ corresponding to distinct challenges $r,r'\in \mathbb F_r$ respectively. Then we have $e(C_1 + rC_2,G^\sigma)=e(\Pi,G), e(C_1+r'C_2,G^\sigma)=e(\Pi',G).$ Then we get $e\big((r-r')C_2, G^\sigma\big)=e(\Pi-\Pi',G)\Rightarrow e(C_2,G^\sigma)=e\big(\frac 1 {r-r'}(\Pi-\Pi'), G\big)$, thus obtaining a proof in the original scheme of knowledge of $C_2$. A proof of knowledge of $C_1$ can similarly can be extracted.
The new scheme requires the prover to send the $n$ individual proofs to the verifier. The verifier randomizes $r$ without sending it as a challenge to the prover. It folds the commitments into $C = C_1 + rC_2+...+r^{n-1}C_n$ and checks that $e(C, G)=e(\Pi_1,G^{\frac 1 {\sigma_1}})...e(\Pi_n, G^{\frac 1{\sigma_n}})$. Then, from $1=e(C_1^{\sigma_1}-\Pi_1,G)e^r(C_2^{\sigma_2}-\Pi_2,G)...e^{r^{n-1}}(C_n^{\sigma_n}-\Pi_n,G)$ one can deduce with high probability that $e(C_i,G^{\sigma_i})=e(\Pi_i,G)$ for $i=1..n$.
Type of change
Please delete options that are not relevant.

[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update

Interface changes

The Setup function no longer takes the bases in variadic form. This is to provide the option to the user to set the G2 point themselves instead of having it randomized.
The prove and fold functions no longer take "Fiat-Shamir options". Instead, they take in a challenge field element, implementing an interactive version of the protocol. The user is now responsible for generating a suitable challenge should they choose to apply the Fiat-Shamir transformation.
A BatchVerify function is added to verify many proofs of knowledge with the same G2 point efficiently. It may be confusing to users that BatchVerify and BatchProve do not correspond.

How has this been tested?
Please describe the tests that you ran or implemented to verify your changes. Provide instructions so we can reproduce.

[ ] TestSemiFoldProofs

Checklist:

[x] I have performed a self-review of my code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] I did not modify files generated from templates
[x] golangci-lint does not output errors locally
[x] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Perfect thank you for the modifications!

repo: Consensys/gnark-crypto


text:
bug: Using Range Checking component leads to incorrect # of inputs in Solidity verifier

Description
In a simple circuit when using the range checking component (as shown in a simple test example below), the Verifier.sol that is exported has 4 public inputs, even though the circuit only has 3 public inputs. When generating a proof and outputting the public witness to verify the proof in Solidity the public witness has only has 3 public inputs (which makes sense). What is the 4th public input that should be passed to the on-chain verifier?
Note that the generated proof still verifies in go when using groth16.Verify(proof, vk, publicWitness). If the rangecheck component is removed, then the generated Verifier.sol has the correct verifyProof function signature with 3 public inputs.
type MyCircuit struct {
	X frontend.Variable `gnark:",public"`
	Y frontend.Variable `gnark:",public"`
	Z frontend.Variable `gnark:",public"`
	A frontend.Variable `gnark:"-"`
}

func (circuit *MyCircuit) Define(api frontend.API) error {
	api.AssertIsEqual(circuit.Z, api.Add(circuit.X, circuit.Y))
	rangeChecker := rangecheck.New(api)
	rangeChecker.Check(circuit.X, 100)
	return nil
}

func TestSanity(t *testing.T) {
	circuit := MyCircuit{}

	r1cs, err := frontend.Compile(ecc.BN254.ScalarField(), r1cs.NewBuilder, &circuit)
	if err != nil {
		panic(err)
	}
	_, vk, err := groth16.Setup(r1cs)
	if err != nil {
		panic(err)
	}

	buf := new(bytes.Buffer)
	err = vk.ExportSolidity(buf)
	if err != nil {
		panic(err)
	}
	content := buf.String()

	contractFile, err := os.Create("Verifier.sol")
	if err != nil {
		panic(err)
	}
	w := bufio.NewWriter(contractFile)
	// write the new content to the writer
	_, err = w.Write([]byte(content))
	if err != nil {
		panic(err)
	}
	contractFile.Close()
}

Generated Verifier.sol function signature:
 function verifyProof(
        uint256[8] calldata proof,
        uint256[4] calldata input
    ) public view {

Hi, this is a known issue: https://github.com/Consensys/gnark/issues/524
In short, we use something called commitment API in range checking which on a high level is a way to compute an efficient in-circuit challenge. The verifier has to do a bit more work to actually verify the correctness of the challenge and we haven't implemented it yet in the Solidity Groth16 verifier. It is there though for PLONK verifier.
It is quite high on our list, we just have few other more pressing priorities right now.

@ivokub thanks for the quick response! I apologize--I didn't realize that this was already an issue. Is there a easy way to add this to the Solidity groth16 verifier? Would it be basically re-implementing the logic here in Solidity?
I believe this issue would also need to be resolved around including this information in the serialized vkey as well?
In particular, for our circuit we notice that the groth16 version has 6 million constraints, but the Plonk version has 20 million. Also the pkey size is significantly smaller with groth16 as well as proof generation time, which is why we're motivated to use groth16 if possible. (Although the constraint count grows significantly if we don't use the range-checker, which is why we want to use the range-checker + groth16).

No need to apologize -- that issue was a bit poorly worded and lacks issue description. I added it mostly for backreference :)
Yup, there is about 4x blowup from Groth16 to PLONK. But usually the deciding factor to go with PLONK is that it doesn't require circuit-specific trusted setup (can reuse existing setup for KZG SRS). For Groth16 trusted setup is needed though (but there is an MPC implementation for generating the trusted setup in distributed manner. But its a bit slow for now).
In essence, yes, you should follow the verifier logic in the native verifier. Additionally you need hash-to-field in Solidity what we have already implemented for PLONK verifier (see here).
I'm right now not 100% sure, but I think #580 may already be obsolete.
Pinging @gbotrel and @Tabaie, maybe you have anything to add? We're actually quite interested in having the commitment verification in Groth16 Solidity verifier, but probably won't be able to get to it in a few months, unfortunately.

Thanks @ivokub yes I think you covered everything.

By the way, @ivokub has there been any update on implementation of a Solidity verifier for groth16 using the logup range checking component? We profiled a groth16 circuit with and without the logup range check and found that the proving time was 5x faster using logup, so it would be great to be able to use logup +groth16 with onchain verification!

see --> https://github.com/Consensys/gnark/pull/1063

Implemented in #1063

authors: Tabaie gbotrel ivokub puma314

repo: Consensys/gnark


text:
[BUG] As a user, I want to have a consistent default sorting logic accross all the pages in the explorer

Issue
Currently we have inconsistent default sorting logic in the explorer:
Some page display Attestations from newest to oldest:

default Attestation page

Some others are displaying oldest to newest:

Schema detail page

Solution
Always sort newest Attestation first by default

Has this been released yet?
I notice their is some pages where attestations are sorted from oldest to newest:

My attestation page
Search results

Also, this might be a regression but, on those two pages, I'm not able to manually reverse the ordering anymore.
See video here: https://github.com/user-attachments/assets/ac3d5aff-4b29-4312-a827-770661f6b1e2
I let you reopen this ticket or create a new one if the issue is confirmed

authors: alainncls arthur-remy

repo: Consensys/linea-attestation-registry


text:
Incorrect error message on voluntary exit command failure

Description
It is common for the voluntary exit command to show an incorrect error message on failure when the error is related to not being able to connect to a URL.
The error message returned is the following:
Failed to connect to beacon node. Check that http://127.0.0.1:5051 is available.

Reproduce
In the following cases, the error message on failure is the same as above. This is not expected for these cases.

Fail to load validators-external-signer-public-keys from URL
Fail to load keys from URL when validators-external-signer-url is unreachable and the validators-external-signer-public-keys option has been used with external-signer.

Other scenarios would have to be fully investigated to identify the issue.
Found in testing for #8289

fairly happy with error messages now that i've proven the behaviour in testing.

authors: courtneyeh rolfyone

repo: Consensys/teku


text:
Request for details and assistance on PPO Experiments with SFT+PPO training

Hello Developers,
Firstly, I would like to thank you for the excellent work on this repository and for sharing the plots on other issues. I'm currently utilizing your library to train a model using sft+ppo, and I've successfully replicated the sft experiment as per the results shared ContextualAI/HALOs/issues/13.
However, I'm experiencing negligible improvement with the PPO part of the training. Could you provide the details of your PPO experiments? I noted in a previous comment that the preferential tuning was run significantly longer, so I adjusted the PPO epochs to 3 in my experiments. Are these adjustments in line with what was done in your experiments? Additionally, could you elaborate on how and when to decide which checkpoint to use for downstream tasks, especially for PPO, DPO, and KTO scenarios?
Link to my plots: l7b_ppo_0419

Here are the commands I used for my experiments:

SFT Training Command

python train.py loss=sft model=llama7b datasets=[shp,hh,oasst] exp_name=l7b_sft_0416 mode=train ++cache_dir=/data/models wandb.project=l7b_sft_0416

PPO Training (3 Epochs)

# Updated n_epochs in config.yaml to 3
python train.py loss=ppo model=llama7b datasets=[shp,hh,oasst] exp_name=l7b_ppo_0419 mode=train ++cache_dir=./data/models ++model.load_from=l7b_sft_0416/LATEST/policy.pt wandb.project=l7b_ppo_0419

Additional Query:

When conducting sft training, it calculates train and validation losses using train dataset splits. If I use the same dataset for ppo, how can I ensure that I am not retraining on the train split inadvertently? Furthermore, when using stratified datasets for both sft and preferential tuning, do you recommend holding out different data points for each, and is this approach considered best practice?
Based on your plots and results shared, am I correct in understanding that you had a batch size of 32 and conducted 200k steps of sft training, which equates to training on approximately 6.4 million datapoints, DPO on roughly 9.5 million datapoints (300k * 32), and KTO on about 17.6 million datapoints?

Thank you for any guidance or insights you can provide.

sorry for the late reply @roshansridhar . I don't have access to the wandb logs anymore, but my coauthor should -- @xwinxu can you paste the plots from the last llama7b+ppo run, as well as the json dump of the config?

However, I'm experiencing negligible improvement with the PPO part of the training.
your charts look pretty good to me. the policy loss is declining over time. the critic declines first but is flat afterwards -- this is expected because the value network is pretty small (2-layer MLP), so its capacity is limited, and the irreducible error will be pretty large. mean reward is going up over time as well. the only suspicious part is the exploding loss/seqratio, but you can probably fix this by using ++loss.cliprange=[value smaller than 0.5].

so I adjusted the PPO epochs to 3 in my experiments
IIRC, we did PPO for 1 epoch as well, the same as all the other alignment methods

could you elaborate on how and when to decide which checkpoint to use for downstream tasks, especially for PPO, DPO, and KTO scenarios?
sure. for KTO, we basically used the same hyperparam settings recommended in the DPO paper, so no decision needed to be made there. for PPO, hyperparams were chosen based on how whether training was stable, rewards went up over time, and the GPT-4-judged winrate against the baseline went up over time

When conducting sft training, it calculates train and validation losses using train dataset splits. If I use the same dataset for ppo, how can I ensure that I am not retraining on the train split inadvertently?
doing sft on the positive examples in a preference/feedback dataset is fairly common practice, as done in the DPO paper. this isn't something to worry about IMO, but you can always just do ppo/dpo/kto without SFT or just do SFT on a separate dataset. all you need to do is change the ++model.load_from field.

Based on your plots and results shared, am I correct in understanding that you had a batch size of 32 and conducted 200k steps of sft training,
bs=32 sounds right. @xwinxu can you double-check how many SFT steps there were for llama7b on [shp,hh,oasst]?

authors: kawine roshansridhar

repo: ContextualAI/HALOs


text:
⚠ Samsung has degraded performance

In 0571a9b, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 1985 ms

Resolved: Samsung performance has improved in f184715.

repo: CoopPlayzz/Webstatus-electronicbrands


text:
⚠ Samsung has degraded performance

In ed653c7, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2714 ms

Resolved: Samsung performance has improved in cc53286.


text:
⚠ Samsung has degraded performance

In 216679b, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2202 ms

Resolved: Samsung performance has improved in b94eecd.


text:
⚠ Fortnite has degraded performance

In 8ab8dfc, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1581 ms

Resolved: Fortnite performance has improved in 96d1261.

repo: CoopPlayzz/Webstatus-games


text:
⚠ Fortnite has degraded performance

In d178527, Fortnite (https://fortnite.com) experienced degraded performance:

HTTP code: 200
Response time: 1508 ms

Resolved: Fortnite performance has improved in 97eff9f.


text:
add minimum pandas version

switch from argmin to idxmin

thanks, this looks good.
if param not in list(self.param_guess.keys()):
just out of curiosity, why was this change necessary? it works for me with and without the list() encapsulating self.param_guess.keys().

just out of curiosity, why was this change necessary?

I believe the reason is that dict.keys() returns an iterable in python3, while it returns a list in python2.
For the in operator in an if statement this shouldn't be a problem, though, so python-modernize was probably just over-cautious.

authors: CorySimon ltalirz

repo: CorySimon/pyIAST


text:
Add a deepmass implementation using the same architecture as our denoiser

This issue is to try to reimplement DeepMass in this framework, to allow for comparison with the previously published method.
This would also allow us to compare mean posteriors with DeepMass predictions, and possibly also check @NiallJeffrey's moments networks.
TODO:

[x] : Decide if we want to keep a Wiener filter step (I'd say meh)
[x] : Add a script to train a DeepMass model (can use same UNet model as DSM)

@NiallJeffrey would you like to take this on? Otherwise we are happy to do it :-)

@NiallJeffrey , @b-remy is making very good progress on using @liuxx479 's new KappaTNG simulations, so I think we could be able to get our main results for the paper within a couple of weeks at this point.
So, we wanted to run a comparison to DeepMass, and potentially your moments networks. Would you be interested in looking into this? Or should we go ahead and make a deepmass-like model on our own?
It might be slightly still subject to change, but we have a U-Net model that we use as our score network, I think it can be used as-is for deepmass. Only question is whether we want to include the Wiener-filter step or not....

Did you make a DeepMass model of you're own? If not, I can adapt the existing one. I wanted to chat with Ben regarding Moment Networks  for mass mapping, but he's taking holiday at the moment, so I haven't been able to

In the DeepMass paper I did it in advance, but one could do it on the fly. I'll look at the new implementation

@b-remy I can't find a mask file for our new dataset, do you have an equivalent of https://github.com/CosmoStat/jax-lensing/blob/master/data/cosmos_mask_0.4arcmin.fits ?

Indeed, there was no mask up to date. There is one here now: https://github.com/CosmoStat/jax-lensing/tree/comos-data/data/COSMOS

I think this is done?

But @b-remy could you push the latest version of your code to the repo?

Hi, I just pushed the updated code for DeepMass. The U-net architecture is the same we used to train our denoiser, on which I removed the division by the noise level (which is zero here).
Training script can be found here.
and notebook result here.

authors: EiffL NiallJeffrey b-remy

repo: CosmoStat/jax-lensing


text:
Non riesco a entrare con la mia iscrizione

Subject: Non riesco a entrare con la mia iscrizione
Description:
Clicco il sito registrata e appare il problema .Non entro nel sito
Results:
Dopo essermi registrata con nome e pw appare il problema . Quindi non posso accedere
Backend version: develop-1416d148
Frontend version: develop-1416d148
User Agent: Mozilla/5.0 (iPhone; CPU iPhone OS 15_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/96.0.4664.36 Mobile/15E148 Safari/604.1
Page: https://app.couchers.org/login/
User:

Can't reproduce without more info

authors: CouchersBot aapeliv

repo: Couchers-org/couchers


text:
postgres server closed the connection unexpectedly after upgrade

After running an upgrade, I get this error message in the prod container on the first api call after recreating containers:
2021-02-15 14:30:27.211: 10: Got request: /org.couchers.auth.Auth/Login
2021-02-15 14:30:27.211: 10: Attempting login for request.user='aapeli'
2021-02-15 14:30:27.212: 10: Field matched to type username
/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/dynamic.py:44: SAWarning: On relationship Node.contained_users, 'dynamic' loaders cannot be used with many-to-one/one-to-one relationships and/or uselist=
False.  This warning will be an exception in a future release.
  util.warn(
2021-02-15 14:30:27.411: 10: (psycopg2.OperationalError) server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.

[SQL: SELECT users.id AS users_id, users.username AS users_username, users.email AS users_email, users.hashed_password AS users_hashed_password, users.phone AS users_phone, users.phone_status AS users_phone_s
tatus, ST_AsEWKB(users.geom) AS users_geom, users.geom_radius AS users_geom_radius, users.city AS users_city, users.joined AS users_joined, users.last_active AS users_last_active, users.name AS users_name, us
ers.gender AS users_gender, users.birthdate AS users_birthdate, users.full_name AS users_full_name, users.hosting_status AS users_hosting_status, users.verification AS users_verification, users.community_stan
ding AS users_community_standing, users.occupation AS users_occupation, users.about_me AS users_about_me, users.about_place AS users_about_place, users.color AS users_color, users.avatar_filename AS users_ava
tar_filename, users.languages AS users_languages, users.countries_visited AS users_countries_visited, users.countries_lived AS users_countries_lived, users.is_banned AS users_is_banned, users.max_guests AS us
ers_max_guests, users.multiple_groups AS users_multiple_groups, users.last_minute AS users_last_minute, users.accepts_pets AS users_accepts_pets, users.accepts_kids AS users_accepts_kids, users.wheelchair_acc
essible AS users_wheelchair_accessible, users.smoking_allowed AS users_smoking_allowed, users.sleeping_arrangement AS users_sleeping_arrangement, users.area AS users_area, users.house_rules AS users_house_rul
es, users.accepted_tos AS users_accepted_tos, users.new_email AS users_new_email, users.new_email_token AS users_new_email_token, users.new_email_token_created AS users_new_email_token_created, users.new_emai
l_token_expiry AS users_new_email_token_expiry
FROM users
WHERE users.username = %(username_1)s]
[parameters: {'username_1': 'aapeli'}]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
    self.dialect.do_execute(
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute
    cursor.execute(statement, parameters)
psycopg2.OperationalError: server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/app/src/couchers/interceptors.py", line 137, in sanitizing_function
    res = prev_func(req, context)
  File "/app/src/couchers/interceptors.py", line 108, in timetaking_function
    res = prev_func(request, context)
  File "/app/src/couchers/servicers/auth.py", line 268, in Login
    user = get_user_by_field(session, request.user)
  File "/app/src/couchers/db.py", line 136, in get_user_by_field
    return session.query(User).filter(User.username == field).one_or_none()
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 3459, in one_or_none
    ret = list(self)
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 3535, in __iter__
    return self._execute_and_instances(context)
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/orm/query.py", line 3560, in _execute_and_instances
    result = conn.execute(querycontext.statement, self._params)
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1011, in execute
    return meth(self, multiparams, params)
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
    return connection._execute_clauseelement(self, multiparams, params)
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1124, in _execute_clauseelement
    ret = self._execute_context(
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1316, in _execute_context
    self._handle_dbapi_exception(
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1510, in _handle_dbapi_exception
    util.raise_(
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/util/compat.py", line 182, in raise_
    raise exception
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
    self.dialect.do_execute(
  File "/usr/local/lib/python3.9/site-packages/sqlalchemy/engine/default.py", line 608, in do_execute
    cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (psycopg2.OperationalError) server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.

[SQL: SELECT users.id AS users_id, users.username AS users_username, users.email AS users_email, users.hashed_password AS users_hashed_password, users.phone AS users_phone, users.phone_status AS users_phone_s
tatus, ST_AsEWKB(users.geom) AS users_geom, users.geom_radius AS users_geom_radius, users.city AS users_city, users.joined AS users_joined, users.last_active AS users_last_active, users.name AS users_name, us
ers.gender AS users_gender, users.birthdate AS users_birthdate, users.full_name AS users_full_name, users.hosting_status AS users_hosting_status, users.verification AS users_verification, users.community_stan
ding AS users_community_standing, users.occupation AS users_occupation, users.about_me AS users_about_me, users.about_place AS users_about_place, users.color AS users_color, users.avatar_filename AS users_ava
tar_filename, users.languages AS users_languages, users.countries_visited AS users_countries_visited, users.countries_lived AS users_countries_lived, users.is_banned AS users_is_banned, users.max_guests AS us
ers_max_guests, users.multiple_groups AS users_multiple_groups, users.last_minute AS users_last_minute, users.accepts_pets AS users_accepts_pets, users.accepts_kids AS users_accepts_kids, users.wheelchair_acc
essible AS users_wheelchair_accessible, users.smoking_allowed AS users_smoking_allowed, users.sleeping_arrangement AS users_sleeping_arrangement, users.area AS users_area, users.house_rules AS users_house_rul
es, users.accepted_tos AS users_accepted_tos, users.new_email AS users_new_email, users.new_email_token AS users_new_email_token, users.new_email_token_created AS users_new_email_token_created, users.new_emai
l_token_expiry AS users_new_email_token_expiry
FROM users
WHERE users.username = %(username_1)s]
[parameters: {'username_1': 'aapeli'}]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
2021-02-15 14:30:27.421: 10: Probably an unknown error! Sanitizing...

Do you have the logs for the postgres server? Which version of postgres? We should report it.

Just to clarify, this is an upgrade of our backend, not postgres. I doubt it's a postgres bug

Is it a timing issue of docker-compose containers?

No, the containers can be up for a while, then when I try logging in, the first call fails

Then it sounds to me like postgres crashes in the middle of processing an sql statement.

To me, the backend seems to think it's got an open connection to the db, but the connection is broken and the first time it tries to send data down the pipe it notices it's gone.
I get a similar error if I connect with psql to a database, then restart the database with psql open. When I first try running a query after that, I get this:
postgres=# \dt
FATAL:  terminating connection due to administrator command
server closed the connection unexpectedly
        This probably means the server terminated abnormally
        before or while processing the request.
The connection to the server was lost. Attempting reset: Succeeded.

Thanks for verifying, good to know it is not a bug in our code :)

I reproduced it again now while upgrading after the merges. postgres itself is never restarted because nothing changes there, so docker-compose doesn't touch it.
I checked the postgres logs: nothing shows up.
I imagine this is some connectivity issue with docker.

CloudFront, our CDN is giving a bad value for last-modified:
HTTP/2 200 OK
server: nginx
date: Fri, 19 Feb 2021 23:43:47 GMT
content-type: text/html
x-amz-id-2: +9fqiR1LjiIWEh1mC58lq8pvRYwGn8/iy/ZCxG1RWMVeamF0EEfh9UoSyrdojGHi9gDqWhlnA2k=
x-amz-request-id: D2EEC2E178FA33D4
last-modified: Mon, 15 Feb 2021 16:04:10 GMT
etag: W/"ea8c96d8b81c954dca069ce87adc7976"
strict-transport-security: max-age=15552000; includeSubdomains; preload
referrer-policy: origin-when-cross-origin
x-content-type-options: nosniff
x-frame-options: DENY
x-xss-protection: 1; mode=block
x-fact: Kilroy was here.
content-encoding: gzip
X-Firefox-Spdy: h2

@aapeliv this issue is still on high priority since 15 Feb. If this is still current, probably we should do either start fixing the problem or lower the priority if we don't think it needs to be fixed ASAP.

The difficulty-weighted priority is low... It's really annoying and it is causing random exceptions whenever we upgrade. (It used to be fine because you could just go click around, but these days there's enough activity that you won't be the first to trigger the bug.)
I'm happy to lower the priority; but I'd love to have it fixed.

@aapeliv thanks for clarifying. I'd be happy to spend an afternoon trying to figure this out once I'm done with the admin stuff. Having high-prio tickets hang around for months makes my OCD go boom.

Holy cow. I'm so frustrated... 🤦♂ 🤦♂
It seems the solution is as simple as adding pool_pre_ping=True to create_engine. It's literally the first search result: https://stackoverflow.com/a/60614871. Doing a PR in a minute.

authors: aapeliv kalvdans lennartvanlaake


text:
Rating a search result blog from Karel

A blog from Karel which explain how to rate a Search Result, Customizing
Search Results Ranking and Ranking Functions

A blog from Karel which explain how to rate a Search Result, Customizing
Search Results Ranking and Ranking Functions

The change has been made, so the missing picture should be displayed

:+1: changes integrated in its own branch in current project. i'll merge
https://github.com/Coveo/coveo.github.io/tree/kmpungiarticle

authors: kmpungi pastjean


text:
Feature: PlatformIO Support

This pull requests adds:

PlatformIO project
Tests to verify the correctness of the exposure notification library
A test and a build workflow with status badges in the README.md

This pull requests removes:

Support for manual builds

Discussion:

@olafland You wrote that Zephyr 2.3 was needed. Do you remember why this was the case?
Do we want to still support manual builds?

Discussion:
@olafland You wrote that Zephyr 2.3 was needed. Do you remember why this was the case?
Do we want to still support manual builds?
Manual builds were for playing with sending two kinds of advertisements. However, I could not get it to work well, so it is probably not required anymore, nothing else requesters it (such as us needing a newer version of MbedTLS).
regarding the manual builds: I am quite flexible here, if dropping manual builds makes things easier, this is fine with me

authors: olafland prathje

repo: CovidBraceletPrj/CovidBracelet


text:
Error 401 from Android client

I finally managed to deploy the server to Azure, all set up and running. However, when the app launches, there is a HTTP 401 error popping.
The method that is being called at start up is the one for registering the device to the server. In the debugger I can see the data being sent but the server returns an error instead so the app can't pass to the next step.
I've found that the error might be that the function needs an authorization, but is set to anonymous
Below is a test made with Postman:

Can you tell which function the client first calls at start up by executing Api(context).createProfile() call?
Thanks for you time.

They seems not wanting people use their project or what??? No answer,nothing?

authors: esQmo lyra-halcyon

repo: CovidWorld/server


text:
"TypeError: 'NoneType' object is not subscriptable"

Hi. Thank you for your work! This tool can hopefully fill the void after ACLPwn. I would very much like to try the tool but currently using pathgen.py fails with "TypeError: 'NoneType' object is not subscriptable".
I am using the standard installation of Bloodhound in Kali (which also includs Neo4j 4.2.1) and they are both running during testing of your tool. AD data is imported. I have also installed all the other requirements your tool requires. When executing the command "python3 pathgen.py -du neo4j -dp [password] -ds 'BIR-ADFS-GMSA$@search.htb' -dt 'tristan.davies@search.htb' I get the below stacktrace:
Traceback (most recent call last):
File "/root/pentest/bloodyAD/pathgen.py", line 30, in
main()
File "/root/pentest/bloodyAD/pathgen.py", line 18, in main
path = db.getPrivescPath(args.dbsource, args.dbtarget)
File "/root/pentest/bloodyAD/autobloody/database.py", line 11, in getPrivescPath
relationships = session.read_transaction(self._findShortestPath, source, target)
File "/root/pentest/virtual_env_bloodyad/lib/python3.9/site-packages/neo4j/work/simple.py", line 396, in read_transaction
return self._run_transaction(READ_ACCESS, transaction_function, *args, **kwargs)
File "/root/pentest/virtual_env_bloodyad/lib/python3.9/site-packages/neo4j/work/simple.py", line 325, in _run_transaction
result = transaction_function(tx, *args, **kwargs)
File "/root/pentest/bloodyAD/autobloody/database.py", line 64, in _findShortestPath
return result.single()[0].relationships
TypeError: 'NoneType' object is not subscriptable
Is there something I do wrong or does the code need updating?

Based on the stacktrace, the issue is that Neo4j doesn't find an exploitable path between BIR-ADFS-GMSA$@search.htb and tristan.davies@search.htb. So I see two potential hypothesis:

Least likely, there is not exploitable path between those two objects. You can easily verify in bloodhound/neo4j if there is a set of edges (automatically exploitable) between those two;
More likely, you gave the sAMAccountName instead of the node name of the object. The node name (also called label in neo4j) is the name that you can find in the extra properties of the object in the bloodhound interface. For example if BIR-ADFS-GMSA$ is the SAMAccountName of a computer, the node name is most likely BIR-ADFS-GMSA.search.htb.

I have been testing this some more after your reply. I tried using the names "BIR-ADFS-GMSA", "BIR-ADFS-GMSA@search.htb" and "BIR-ADFS-GMSA.search.htb". All of them give me the same error as earlier. This is interesting since if I use the name "BIR-ADFS-GMSA" instead of "BIR-ADFS-GMSA$" when exploiting this manually using your bloodyAD.py it fails. If I use "BIR-ADFS-GMSA$" it works.

Also note that there is an exploitable path shown in Bloodhound. "BIR-ADFS-GMSA/"BIR-ADFS-GMSA$" has GenericAll rights on "tristan.davies" which is the path I can exploit manually in this example by resetting his password.

You write that some paths cannot be exploited automatically. Is this one of them?

Neo4j is case sensitive so maybe try this:
python3 pathgen.py -du neo4j -dp [password] -ds 'BIR-ADFS-GMSA@SEARCH.HTB' -dt 'TRISTAN.DAVIES@SEARCH.HTB'
When using pathgen the parameters -ds and -dt use the Neo4j label because it queries the neo4j database. When using -u in bloody.py or autobloody.py you give the account name for NTLM authentication so the SAMAccountName and in your case it seems to be BIR-ADFS-GMSA$. I understand the confusion and I should maybe put emphasis on this in the README.
No you're right, this path can be exploited automatically using changePassword but the ReadGMSAPassword is not implemented yet but it could be interesting to add it.

That was it. I used the wrong case. Yes, this is a bit confusing although I understand the reasons for it. Take the following chained command for example:
"python pathgen.py -du neo4j -dp [password] -ds 'BIR-ADFS-GMSA@SEARCH.HTB' -dt 'TRISTAN.DAVIES@SEARCH.HTB' && python autobloody.py -d search.htb -u 'BIR-ADFS-GMSA$' -p 'e1e9fd9e46d0d747e1595167eedcec0f:e1e9fd9e46d0d747e1595167eedcec0f' --host 10.10.11.129"
Some input must be in upper case, some not. Pathgen.py uses the name in Bloodhound while autobloody .py uses the SAMAccountName (which still have to be inputted in upper case for some reason).
Yes it would be great to be able to read the NT hashes of GMSA accounts. I used the tool gMSADumper (https://github.com/micahvandeusen/gMSADumper) for that.
Thanks for your help! I look forward to using your tool in the future!

[ ]

authors: CravateRouge jsdhasfedssad

repo: CravateRouge/bloodyAD


text:
CASMINST-3657 - CSI basecamp and dnsmasq gateway cleanup

Summary and Scope

Fixes CASMINST-3657

Issue Type

Bugfix Pull Request https://github.com/Cray-HPE/cray-site-init/pull/101

For early boot with the PIT, both basecamp (BSS) and DNSMasq (DHCP/DNS) used the m001/PIT as the system gateway.  While this works for MTL, NMN and HMN for initial PXE boot because the network is singular (technically the same Layer 2), there is both inconsistent handling of the gateway between HMN and other networks, and really inconsistent overrides for CMN and CAN networks.
This change allows the networkBuiilder, including the supernet hack, to create all the network data and then assigns the following consistently for BSS/cloud-init data and DNSMasq configuration:

DNS is assigned to the bootstrap_dhcp PIT address for the network.
NTP is assigned to the bootstrap_dhcp PIT address for the network.
The network gateway is assigned from the bootstrap_dhcp gateway address (which follows either the ToR gateway on the switches or the Spine gateway on the switches via the supernet hack).

For DNSMasq this results in the following changes (Surtur data):

No change for statics.conf
No change for MTL.conf, NMN.conf
No change for CAN.conf or CMN.conf
Changes in HMN.conf:

Original:
dhcp-option=interface:bond0.hmn0,option:router,10.254.1.20

New:
dhcp-option=interface:bond0.hmn0,option:router,10.254.0.1

Additional Changes:

Fixed the mis-use of a pointer to Subnets indnsmasq.go. This changed gateway values in the main network structures which erroneously changed cloud-init data generated by basecamp.go.
Removed unused networks directory which should have been removed when network yaml file generation was removed.
Cleaned up the use of strings.

Original NCN metadata from data.json:
    "14:02:ec:d9:7a:60": {
        "meta-data": {
            "local-hostname": "ncn-m002",
...snip...
            "ipam": {
                "can": {
                    "gateway": "10.103.0.129",
                    "ip": "10.103.0.141/26",
                    "parent_device": "bond0",
                    "vlanid": 6
                },
                "chn": {
                    "gateway": "10.103.0.193",
                    "ip": "10.103.0.205/26",
                    "parent_device": "bond0",
                    "vlanid": 5
                },
                "cmn": {
                    "gateway": "10.103.0.1",
                    "ip": "10.103.0.27/25",
                    "parent_device": "bond0",
                    "vlanid": 7
                },
                "hmn": {
                    "gateway": "10.254.1.22",
                    "ip": "10.254.1.20/17",
                    "parent_device": "bond0",
                    "vlanid": 4
                },
                "mtl": {
                    "gateway": "10.1.1.11",
                    "ip": "10.1.1.10/16",
                    "parent_device": "bond0",
                    "vlanid": 0
                },
                "nmn": {
                    "gateway": "10.252.0.1",
                    "ip": "10.252.1.12/17",
                    "parent_device": "bond0",
                    "vlanid": 2
                }
            }
        },

New NCN metadata from data.json (note hmn and mtl gateway changes):
    "14:02:ec:d9:7a:60": {
        "meta-data": {
...snip...
            "ipam": {
                "can": {
                    "gateway": "10.103.0.129",
                    "ip": "10.103.0.141/26",
                    "parent_device": "bond0",
                    "vlanid": 6
                },
                "chn": {
                    "gateway": "10.103.0.193",
                    "ip": "10.103.0.205/26",
                    "parent_device": "bond0",
                    "vlanid": 5
                },
                "cmn": {
                    "gateway": "10.103.0.1",
                    "ip": "10.103.0.11/25",
                    "parent_device": "bond0",
                    "vlanid": 7
                },
                "hmn": {
                    "gateway": "10.254.0.1",
                    "ip": "10.254.1.20/17",
                    "parent_device": "bond0",
                    "vlanid": 4
                },
                "mtl": {
                    "gateway": "10.1.0.1",
                    "ip": "10.1.1.10/16",
                    "parent_device": "bond0",
                    "vlanid": 0
                },
                "nmn": {
                    "gateway": "10.252.0.1",
                    "ip": "10.252.1.12/17",
                    "parent_device": "bond0",
                    "vlanid": 2
                }
            }
        },

Prerequisites

[x] I have included documentation in my PR (or it is not required)
[x] I tested this on internal system (x) (if yes, please include results or a description of the test)

Idempotency
Should improve idempotency since data is not being overwritten.
Risks and Mitigations

Should reduce risk by reducing side effects.
BSS/cloud-init data on existing systems is not remediated by this change.

I'd like to wait for review from @johren-hpe to make sure there aren't any unintended consequences.

repo: Cray-HPE/cray-site-init


text:
CASMINST-4447 - Adding Ceph upgrade restart if image pull failed

Summary and Scope
We have seen this occur once, but adding it as it is good documentation to have.
Issues and Related PRs

Resolves CASMINST-4447

Testing
Tested on:

drax

Test description:

Were the install/upgrade-based validation checks/tests run (goss tests/install-validation doc)?
Were continuous integration tests run? If not, why?
Was upgrade tested? If not, why?
Was downgrade tested? If not, why?
Were new tests (or test issues/Jiras) created for this change?

Risks and Mitigations
Pull Request Checklist

[ ] Version number(s) incremented, if applicable
[ ] Copyrights updated
[ ] License file intact
[ ] Target branch correct
[ ] CHANGELOG.md updated
[ ] Testing is appropriate and complete, if applicable
[ ] HPC Product Announcement prepared, if applicable

/backport release/1.2.5 main

repo: Cray-HPE/docs-csm


text:
🛑 sneak.page is down

In 6735fb4, sneak.page (https://sneak.page) was down:

HTTP code: 404
Response time: 131 ms

Resolved: sneak.page is back up in a2bb974 after 9 minutes.

repo: Crazy-Marvin/upptime


text:
🛑 sneak.page is down

In 507c94c, sneak.page (https://sneak.page) was down:

HTTP code: 0
Response time: 0 ms

Resolved: sneak.page is back up in 3fe6d86 after 15 minutes.


text:
[Anti-Virus] ARC-1095: Add versionId to SNS message

Ticket
https://credify.atlassian.net/browse/ARC-1095

This PR has been merged on upsidetravel/bucket-antivirus-function

repo: Credify/bucket-antivirus-function


text:
I want to search two option of a row

Something like this but it always return false
$searchItem = Cart::search(array('id' => '1', 'options' => array('state_id' => '1')));
All i want to search a row with id 1 and state_id 1

Which version of the package are you using? Because the current version uses a closure syntax for searching, and not an array.

authors: ArbindJain Crinsane

repo: Crinsane/LaravelShoppingcart


text:
🛑 CriseStudios API is down

In c771f86, CriseStudios API (https://api.crisestudios.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: CriseStudios API is back up in f09925b after 8 minutes.


text:
Build failing on my Mac

When I try to build this repository on my Mac now, I get error messages like this:
$ cargo b
   Compiling libproc v0.12.0
   Compiling wasi-cap-std-sync v13.0.0
   Compiling wasmtime-wasi v13.0.0
error: failed to run custom build command for `libproc v0.12.0`

Caused by:
  process didn't exit successfully: `/Users/Alex/Documents/GitHub/LiveSplit/asr-debugger/target/debug/build/libproc-1cc21033949d4d98/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '"mach_port_options_union_(anonymous_at_/Applications/Xcode_app/Contents/Developer/Platforms/MacOSX_platform/Developer/SDKs/MacOSX_sdk/usr/include/mach/port_h_381_2)" is not a valid Ident', /Users/Alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.67/src/fallback.rs:774:9
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...

I try to run it with the RUST_BACKTRACE=1 suggestion and get this:
$ RUST_BACKTRACE=1 cargo b
   Compiling libproc v0.12.0
error: failed to run custom build command for `libproc v0.12.0`
note: To improve backtraces for build dependencies, set the CARGO_PROFILE_DEV_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation.

Caused by:
  process didn't exit successfully: `/Users/Alex/Documents/GitHub/LiveSplit/asr-debugger/target/debug/build/libproc-1cc21033949d4d98/build-script-build` (exit status: 101)
  --- stderr
  thread 'main' panicked at '"mach_port_options_union_(anonymous_at_/Applications/Xcode_app/Contents/Developer/Platforms/MacOSX_platform/Developer/SDKs/MacOSX_sdk/usr/include/mach/port_h_381_2)" is not a valid Ident', /Users/Alex/.cargo/registry/src/index.crates.io-6f17d22bba15001f/proc-macro2-1.0.67/src/fallback.rs:774:9
  stack backtrace:
     0: rust_begin_unwind
               at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/std/src/panicking.rs:593:5
     1: core::panicking::panic_fmt
               at /rustc/8ede3aae28fe6e4d52b38157d7bfe0d3bceef225/library/core/src/panicking.rs:67:14
     2: proc_macro2::fallback::validate_ident
     3: proc_macro2::fallback::Ident::_new
     4: proc_macro2::fallback::Ident::new
     5: proc_macro2::imp::Ident::new
     6: proc_macro2::Ident::new
     7: bindgen::ir::context::BindgenContext::rust_ident_raw
     8: bindgen::ir::context::BindgenContext::rust_ident
     9: <bindgen::ir::comp::CompInfo as bindgen::codegen::CodeGenerator>::codegen
    10: <bindgen::ir::ty::Type as bindgen::codegen::CodeGenerator>::codegen
    11: <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen
    12: <bindgen::ir::comp::CompInfo as bindgen::codegen::CodeGenerator>::codegen
    13: <bindgen::ir::ty::Type as bindgen::codegen::CodeGenerator>::codegen
    14: <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen
    15: <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen::{{closure}}
    16: <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen
    17: <bindgen::ir::item::Item as bindgen::codegen::CodeGenerator>::codegen
    18: bindgen::codegen::codegen::{{closure}}
    19: bindgen::ir::context::BindgenContext::gen
    20: bindgen::codegen::codegen
    21: bindgen::Bindings::generate
    22: bindgen::Builder::generate
    23: build_script_build::main
    24: core::ops::function::FnOnce::call_once
  note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

The most similar problem I could find when searching for things in this error message was this Stack Overflow question: https://stackoverflow.com/questions/76443280/rust-bindgen-causes-a-is-not-a-valid-ident-error-on-build
One of the things that an answer on that suggests is:

update your bindgen crate to v0.62.0 or above (which is when the fix was applied)

And I see in the Cargo.lock that bindgen is on version "0.59.2". However, when I try running cargo update, it doesn't seem to want to update bindgen to anything newer than that, so is there some other version constraint?

I have made a PR to proc-maps here: https://github.com/rbspy/proc-maps/pull/24
With that PR and similar updates make sure transitive dependencies use that, this build error goes away.

Fixed by https://github.com/CryZe/asr-debugger/commit/af76dd22e0562df32986e1b42224f7d63dfae4c7

repo: CryZe/asr-debugger


text:
feat: Redesigning the tic tac toe game giving a refreshing look.

As the title suggests, this issue is regarding the styling. So get your CSS skills to work by improving the design of the overall application (or maybe a part of it)

A simple yet interesting design using Html CSS
Please assign this issue under Hacktoberfest 2023.
Thank You.

I'm really sorry but I  didn't got what you want to do?

hey @Ctoic i have just created a pull request that fixes #6 . Please review It and and also please attach Hactoberfest and Hacktoberfest-Accepted labels to the pr.

OOps really sorry I didn't add the label. Please commit some changes again I will add the labels

hey @Ctoic Thank you for merging this PR and there is no problem if you forgot to add label to this pr, please remember it in the next PR.

Okay @shivam-sharma-03, I will. am Impressed with your CSS skills.  Keep it up 👍🏼

How to add Hactoberfest and Hacktoberfest-Accepted labels to the pr ?

Should I add them to the topic section of the repo ?

steps to add label to a repository:
1.Go to the PR.
2.On the right hand side you will see the labels tab.
3.click on that and type the hactoberfest and hactoberfest-accepted label one by one.
4.If you already don't have these labels then there only you will see the option to create new labels.
5.Create and add them to the repository.
Hope this would help you with the above problem.

@Ctoic can you please mention the project that requires flask knowledge, I am confident that i can contribute to that project also.

repo: Ctoic/Calculator-using-HTML-CSS-JS


text:
TelnetRCON Keepalive Causes AMP CPU Usage Spike

Bug Report
System Information

Operating System Ubuntu 22.04 LTS
AMP version and build date v2.4.3.2, built 31/03/2023 20:24
Which AMP release stream you're using Bleeding

I confirm:

[x] that I have searched for an existing bug report for this issue.
[x] that I am using the latest available version of AMP.
[x] that my operating system is up-to-date.

Symptoms

What are you trying to do?
Use TelnetRCON with TeamSpeak 3

What are you expecting to happen?
AMP uses the command for keep alive and the Telnet connection remains stable

What is actually happening? ('Nothing' is not an acceptable answer!)
AMP sends the keep alive and then spikes the CPU to the limit. This is a constant issue that can be reproduced easily.
The last thing the AMP console shows is:
error id=256 msg=command\snot\sfound

2023-04-08 01:58:17.560596|ERROR | | |TS3ANetwork::Bind failed error: 98```

## Reproduction

Create a TeamSpeak 3 instance and set it to TelnetRCON (as I'm about to change the template for now to STDIO). Wait roughly ~10 minutes and view the CPU usage for the AMP service in htop.

What value are you using for RCONHeartbeatMinutes here?

This may be solved as of the RCON redesign.

This was not actually solved as of the redesign. Turned out to be a loop that was reading the line too eagerly from the server. There is now a short delay between each check for data that fixes this.

authors: IceOfWraith PhonicUK

repo: CubeCoders/AMP


text:
Drawing a square falsely states that Fragment and Vertex Shaders didn't compile

Messages:
Hello LWJGL3.3.1 build 7!
Error: 'shaders/default.dlsl'
Vertex shader compilation failed.

Error: 'shaders/default.dlsl'
Fragment shader compilation failed.

Process finished with exit code 0

This shows at terminal although everything works just fine

Also, modifying shader code changes the gradient as well.

Fixed this bug. I forgot to compile both shaders before checking for errors, so success variable was always 0 (Always failed)


text:
Update main.ts

(Hopefully) addresses https://github.com/nickelpro/simply-portraits/issues/8

Tested, works - thank you kindly cs96and


text:
🛑 Cust+ is down

In 8eb2168, Cust+ (https://cust.cc) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Cust+ is back up in e67c481.

repo: CustedNG/upptime


text:
Create generic version that splits setting player index and assigning objects

This object pool solves two problems:

Giving each player a unique index value within the world capacity
Assigns an object using that index

If people want to make distributable prefab systems using this pool, then the index assignment will be the same for all instances of the pool and should only happen once. The only unique part would be assigning their prefab object to the player.
This task is to separate the index assignment from assigning objects so that there can be multiple object assigners in a scene without hurting the index assigner.
Stretch:

Object assigners auto link to index assigner, allowing drag and drop prefabs.
Index assigner is auto created if one doesn't exist in the scene when an object assigner is added.

Added in v0.0.5

repo: CyanLaser/CyanPlayerObjectPool