text:
Fixed directory listings while using a 404.html

There was a problem before where showing the 404.html page took precedence over showing the directory listings. This problem should be fixed, as it now adds a bit of data that lets ecstatic know whether the request is from a directory listing request, and ecstatic can use that to know whether to show directory listings instead of the 404 page (the 404 originates from the lack of an index page in the directory).

@CodeRarity I pulled your commit in and made a few organizational changes. Would you mind giving current master a spin before I publish?

I'm in a hurry, so I'm just gonna reiterate on what I said in IRC for future reference. The reason I had to add the extra data to the request object is for the possible case that the user might try to directly access an index.html page in a directory that does not have an index.html page. For example, the user might try to access the /scripts/index.html path directly in their browser, and, assuming that the scripts/index.html file does not exist and that the ecstatic 404.html page is being used, instead of getting the proper 404.html page, with the latest commit they would get an error (since ecstatic will treat it like a directory listing and call next, which would normally contain the proper showDir function call). Therefore, we'll either need to keep the extra data attached to the request object, or we need another solution to the problem.

authors: CodeRarity jesusabdullah

repo: jesusabdullah/node-ecstatic


text:
The automated release is failing 🚨

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

Usage documentation
Frequently Asked Questions
Support channels

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

Cannot push to the Git repository.
semantic-release cannot push the version tag to the branch main on the remote Git repository with URL https://x-access-token:[secure]@github.com/jeswr/rdf-transform.js.
This can be caused by:

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

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

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

Usage documentation
Frequently Asked Questions
Support channels

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

Cannot push to the Git repository.
semantic-release cannot push the version tag to the branch main on the remote Git repository with URL https://x-access-token:[secure]@github.com/jeswr/rdf-transform.js.
This can be caused by:

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

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

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
Fix bug and Update Yew 0.21.0 with some improvements

Fix a article rendering bug:
Fix use_state(|| props.article.clone()) and props.article not synchronized in case of partial tab switching.
Add a debug log in file crates/conduit-wasm/src/components/article_preview.rs
    log::debug!("DEBUG: props.article: {:?}", props.article.clone());
    log::debug!("DEBUG: use_state: {:?}", article.clone());

In some cases their output is different causing the article to be displayed incorrectly

Update dependencies:
Major changes:

Yew: Replace use_effect_with_deps with use_effect_with

References:

0.20.0 Function yew::functional::use_effect_with_deps

https://docs.rs/yew/0.20.0/yew/functional/fn.use_effect_with_deps.html

0.21.0 Function yew::functional::use_effect_with

https://docs.rs/yew/0.21.0/yew/functional/fn.use_effect_with.html#

Add justfile:
Contains most of the commands found in the README.md file.
Justfile:

Manually:

Install [wasm-pack] just install-wasm-pack
Copy .env.example to .env just env
Trunk serve just trunk-serve
Trunk build just trunk-build
Test just test

Tauri:

Install [Tauri] just install-tauri
Build and develop just tauri-dev
Build and release just tauri-build

Yew-app:

Create-yew-app just create-yew-app
App-serve just app-serve

thanks

source: gharchive/pull-request

authors: aoipril jetli

repo: jetli/rust-yew-realworld-example-app


text:
[nix] Bump auto-installer to 18.1

Summary
How was it tested?

2.19 makes a bunch of changes I wanna review more carefully. https://nixos.org/manual/nix/stable/release-notes/rl-2.19

repo: jetpack-io/devbox


text:
Allow user to select charge units: Ah or C

Version: 0.8.3
Platforms: All
Batteries use Ah, not the SI unit of C.  The software should do this conversion for when you want to work in Ah.  See the forum thread.

Duplicated of #39


text:
Some placement issues with top taskbars

Hi! I found this project because someone I follow starred this.
I've been working on a similar project, yet found this. I think this could potentially be a better project than mine, so I decided to write up a couple of issues I've noticed with top taskbars to potentially help you a bit along the way.

Window thumbnails are rendered offscreen.
Taskview is rendered at the bottom of the display
Notifications and control panel are oriented from bottom-to-top when the taskbar is at the top

Some of these issues I've fixed in my own project. Following is some info that may help people potentially fixing it.
Window Thumbnail misplacement
When hovering a taskbar icon, the thumbnail is rendered above the taskbar. To fix this, I had my program poll every x milliseconds for the thumbnails window, and place it under the taskbar with the win32 call SetWindowPos. The thumbnails window's class name is TaskListThumbnailWnd. It's window title varies, but finding the window by class should work fine.
Taskview misplacement
The taskview has a similar issue to the thumbnail view, yet instead of getting rendered above the taskbar it gets rendered at the bottom of the screen (+ the taskbar height). Fixing this was done with a SetWindowPos call as well. It's window class is XamlExplorerHostIslandWindow. It's window title is empty.
Notifications and controlpanel view misplacement
I haven't found a fix for this yet. The notification view window has the same height as the display, even when the actual contents don't add up to that height. I haven't been able to calculate the actual height due to the actual window appearing to be XAML based.
The window classes for both is Windows.UI.Core.CoreWindow, with their window titles being Control Center and Notification Center respectively.
One small issue here is that these solutions require polling User32 APIs to find windows and their positions (and fix them).
In conclusion
I really want this to work, as I am extremely petty towards Microsoft's decision to lock the taskbar. Feel free to contact me if you want to discuss possible solutions :) (Discord Naamloos#2887)
By the way, my existing solution can be found here:
https://github.com/Naamloos/TopCenterStart11/blob/master/src/main.rs (it's a single source file, but it works.)

Oh! also the taskbar isn't centered. It's window class is Windows.UI.Core.CoreWindow with window title Start. Fortunately this window's size can be configured safely. I'm fairly sure it's fixed to 666x750 pixels, including the padding (I'm dead serious, I calculated it). I'm not sure whether it differs per screen resolution.

Hi there!
Thank you for your extensive reply. This sounds like a great solution for the thumbnail issue and the placement of the startmenu.
What is the issue with the Task View and notifications? I am not noticing any elements falling off sceen.
I will attempt to implement a fix for the thumbnail misplacement in the upcoming version, this is probably the most important issue with a top-aligned taskbar.

Apologies in advance for the long comment
Here's the issues I've noticed with the task view and notifications in screenshots I've made before for my own application.
First off, in this image you can see the desktop preview for the task view is rendered at the bottom of the screen.

Second issue: when there are no notificiation the notification view is rendered from top-to-bottom. e.g. the calendar spawns at the bottom of the screen despite the taskbar being at the top. I haven't found a real fix for this yet as I've said before.

Lastly, the taskbar gets rendered where it would render if the start button is left-aligned, but it should align to the center as my start button is there.

Again, feel free to check my project for some inspiration for potential fixes. Polling seems required as the windows tend to jump back to their original positions.

Thank you for your reply! I think your solution for these issues works very well. I edited the readme to mention the prioritization of this issue in the upcoming release. Polling is not the most elegant solution. However, your implementation seemed very lightweight. I will attempt to configure the polling rate as low as possible, for minimum CPU-usage, without noticing the position change.

Small suggestion, perhaps it would be an option to run these polling methods as a windows service?
https://docs.microsoft.com/en-us/dotnet/core/extensions/windows-service

For a next release I hope to give the entire app support to keep it running in the background (and hide the taskbar icon). In the registry a path can be set to launch an application. A service could be prevented this way to keep this application as portable as possible.
https://github.com/jetspiking/Taskbar11/issues/14

Due to Microsoft removing the registry tweak to place the taskbar in the top position (forced to bottom)  for version 22533 and later the development of this feature has been halted, since I would like to find an alternative for setting the taskbar to the top position. Please view issue 23 for more details. I will tag @Naamloos GitHub's repository for a temporary solution for those who want to use the top-aligned preview windows for the time left on earlier versions. This is visible in issue 9.
Issue 9
Issue 23

aw man

time to find a hack?

I really have no idea if I can find a solution for this issue. The entire app was built around registry tweaks, I also did not really consider Microsoft removing them, without providing any alternative at all.
I wonder if the taskbar position can be manipulated in the same way as how you adjusted the preview window. I should play around a bit with the API.

I'm 100% sure you can move around the Taskbar, but I can't say for sure whether full screen windows will adapt.
Actually, I might know a way..

I'll try something later tonight, or tomorrow

Considering almost everything in Windows UI is built of.. windows, I have a suspicion that the actual desktop area might also be a window. I'll see later today if I can figure out a hack that moves the taskbar without a dependence on the registry.

With "desktop area" I mean the area controlling where windows can fill.

Take a look here, i found this tool usefull
https://github.com/valinet/ExplorerPatcher

@jetspiking I released an update that fixes the registry hack being patched. (taskbar is now moved "manually").
Feel free to take a look at my code, but of course I'd personally prefer just linking back.
https://github.com/Naamloos/TopCenterStart11/releases/tag/2.0

authors: Naamloos Rush-er jetspiking


text:
Should ebsEncrypted: true set pre-configured storage classes to encrypted

Or should it be another setting - discuss.
Also determine from what version k8s this was supported.

Available from 1.5

repo: jetstack/tarmak


text:
Use centos with rhel kernel as default image

Upstream kernel is quite risky and can't be maintained in the long term.
NONE

LGTM

/lgtm

authors: MattiasGees simonswine


text:
Update the smtp_client dependency.

smtp_client was making a wrong local copy of
an internal buffer.
Diff between current version and this updated one.
https://github.com/karlseguin/smtp_client.zig/compare/964152ad4e19dc1d22f6def6f659c86df60e7832...48971bc919fe22d2bf6accb832b73ab53e534836

@karlseguin Thanks a lot.

authors: bobf karlseguin

repo: jetzig-framework/jetzig


text:
Web development - added a youtube channel link

IMPORTANT: When creating your Pull Request, please use the following format for the title: Category - Resource Name & Section
Category - Web development

Please follow these steps to create the PR title correctly:

Replace "Category" with the relevant category, such as Web Development or UI & UX Design.
Replace "Resource Name & Section" with the specific name of the resource and the relevant section where it belongs. For instance, you could use something like Web development - CSS Portal & Tools or Web development - Leetcode & Challenges.

Fixes Issue

https://www.youtube.com/watch?v=bMknfKXIFA8
Description:

Added a YouTube channel link (Web development)
Resource URL:

[https://www.youtube.com/watch?v=bMknfKXIFA8]
Checklist:
Before submitting your pull request, ensure that you have completed the following tasks:

[x] I have carefully reviewed and adhered to the contributing guidelines before creating this pull request.
[x] I followed the prescribed PR title template. (Check this if you're adding a resource)

@lr2120, please can you help me with this PR?

Hi, what kind of help do you need specifically. Would you like me to write you a description for this video. How about this?
Dive into this comprehensive React tutorial by FreeCodeCamp.org, a renowned platform offering a multitude of free resources for aspiring developers.

On Oct 12, 2023, at 8:24 PM, Joseph Martin @.***> wrote:
@jfmartinz commented on this pull request.
In Web Development/README.md https://github.com/jfmartinz/ResourceHub/pull/66#discussion_r1357594908:

@@ -348,6 +348,11 @@ to everyone - everywhere!
Hitesh Choudhari is a YouTube channel that offers various courses on programming languages. It is one of the best channel to learn web development at free of cost.

   https://www.youtube.com/watch?v=bMknfKXIFA8FreeCodeCamp

Hello @RitaDee https://github.com/RitaDee It looks good but the problem is that freeCodeCamp youtube channel exist already, change it to something else and then I will merged once youre done.
⬇ Suggested change

   https://www.youtube.com/watch?v=bMknfKXIFA8FreeCodeCamp

   https://www.youtube.com/watch?v=bMknfKXIFA8FreeCodeCamp

—
Reply to this email directly, view it on GitHub https://github.com/jfmartinz/ResourceHub/pull/66#pullrequestreview-1675460221, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACMZQUVETQOWVMDAWDG3YODX7CC5FANCNFSM6AAAAAA556DTKE.
You are receiving this because you were mentioned.

repo: jfmartinz/ResourceHub


text:
website-navbar changing issue solved

IMPORTANT: When creating your Pull Request, please use the following format for the title: Category - Resource Name & Section
Closes #672
Description:
i have chnaged mainly css of the about page
and made same as ther home page
Request :
i want to request you about one thing
i saw that css of home page is getting bad after many PRs
someone has remvoed dark mode button  and someone has removed toggle button
so please look at the file changes people are chnaging style of other things for their feature
Checklist:
Before submitting your pull request, ensure that you have completed the following tasks:

[x] I have carefully reviewed and adhered to the contributing guidelines before creating this pull request.
[x] I followed the prescribed PR title template. (Check this if you're adding a resource)

fill the bracket with x. Something like this [x]

@jfmartinz please review it and
kindly look over my request
if you want then this whole homepage Ui can be given to one person so that no conflict occure

https://github.com/jfmartinz/ResourceHub/assets/127788321/d5001c0a-9a34-4187-be99-5dd86e50d877
@jfmartinz just look at this video this is current situation of white theme
and the worst part is there is no button of chnaging dark to white or white to dark in home page
it showing to user according to browser chrome shwoing me dark mode and firefox white one
the main issue is everyone has thier own css of thier forked repo for white mode and people edit according to their view but at the end after merge overall look is getting like this
so i would request you to please look over it and assign white theme css to one person not multiple,
i  will be too happy to work on that
if you agreed then please tell me i will raise issue on this

@jfmartinz condition of dark theme is very good
but because of multiple persons working on white theme so ...

Can I see your work?  I am trying to enabled the preview in production, so I will see the output easily. Also we're trying to make some unit testing to make sure everything works even after changes of other perople.

sorry for uplaoding late but these are relevant ss for current issue

@jfmartinz please checkout the screenshots of both pages as made both identical

What did you do in this PR?

Set aside other issue, focus on the issue youre working on, then you can create another one after

@jfmartinz
navbar behaviour was chaning with pages you told me fix the navbar i have fixed in both of the pages about and home ane metioned ss beofore

Haha ,sorry. lot of issues reviewed today, most of them are duplciate, just tired maybe hahah

@jfmartinz  so what should i consider about this PR?


text:
fp/no-unused-expression with 'use strict'

Consider making allowUseStrict options true by default (or making that part of plugin:fp/recommended). 'use strict' should never be flagged as an "unused expression".

Same reasoning applies for module.exports on CJS.
Unallowed reassignment. You may want to activate the `commonjs` option for this ruleeslint(fp/no-mutation)

IMHO, this should be either baked into the plugin logic or be turned on by default.

repo: jfmengels/eslint-plugin-fp

license: mit

license_source: bigquery


text:
Add all gzip params for http context

Added all the available gzip params for the nginx.conf template and blank defaults which won't get picked up if not set therefore not written to .conf and nginx will use internal defaults. gzip_types param can be either a string or array.

+1 ... will this be merged?

Not as is... there are merge conflicts and a few updates to be made. If someone wants to create an updated PR we can look at merging that instead, if @richdel doesn't want to update this.

authors: 3flex jg-development richdel

repo: jfryman/puppet-nginx


text:
"todohighlight.keywords" is not working

The extension is only highlighting todohighlight.keywordsPattern and using the default style. here is my configuration
//Todo highlight ...
    "todohighlight.isEnable": true,
    "todohighlight.isCaseSensitive": true,
    "todohighlight.keywords": [
        "DEBUG:", // without further details, this will use the defaultStyle
        "REVIEW:", // as will this
        {
            "text": "todo:",
            "before": {
                "contentText": "⚡" // can add text before or after the highlight
            },
            "color": "red",
            "border": "1px solid red",
            "borderRadius": "2px", //NOTE: using borderRadius along with `border` or you will see nothing change
            "backgroundColor": "rgba(0,0,0,.2)"
        },
        {
            "text": "note:", // this is further refined by the regex pattern below
            "color": "#ff0000",
            "backgroundColor": "yellow",
            "overviewRulerColor": "grey",
            "before": {
                "contentText": "💡💦" // can add text before or after the highlight
            },
            "regex": {
                "pattern": "(?<=^|\\\\s)note[:]?" // in this example, highlight `NOTE:` with or without the `:` and that's not part of another word.  (I.e.: The above will highlight 'NOTE' but not the "note" in 'SIDENOTE').
                /**
                    * NOTE: remember to escapse the backslash if there's any in your regexp (using \\\\ instead of single backslash)"
                    * Positive lookbehind (`(?<=...)`) is only supported in Node.js v9 and up.
                    * If your VSCode version is built on an earlier version the example above may not work.
                    * bynoted byNOTE NOTEing NOTE:
                    **/
            },
            "isWholeLine": false
        },
        {
            "text": "topic:",
            "color": "green",
            "backgroundColor": "rgba(0,0,0,0)", // INFO: setting the last parameter to zero (alpha channel) disables the background colour
            "border": "none",
            "before": {
                "contentText": "🚀" // can add text before or after the highlight
            },
            "isWholeLine": false
        },
    ],
    "todohighlight.keywordsPattern": "todo:|fixme:|pop:|note:|topic", //highlight `TODO:`,`FIXME:` or content between parentheses
    "todohighlight.defaultStyle": {
        "color": "white",
        "backgroundColor": "#9930ff",
        "cursor": "pointer",
        "borderRadius": "3px",
        "padding":"1px",
        "isWholeLine": false,
        //other styling properties goes here ...
    },
    "todohighlight.include": [
        "**/*.js",
        "**/*.jsx",
        "**/*.ts",
        "**/*.tsx",
        "**/*.html",
        "**/*.php",
        "**/*.css",
        "**/*.scss",
        "**/*.md",
        "**/*.mmd",
        "**/*.markdown",
        "**/*.mdown",
        "**/*.txt",
        "**/*.rb",
        "**/*.go",
        "**/*.dart"
    ],
    "todohighlight.exclude": [
        "**/node_modules/**",
        "**/bower_components/**",
        "**/dist/**",
        "**/build/**",
        "**/.vscode/**",
        "**/.github/**",
        "**/_output/**",
        "**/*.min.*",
        "**/*.map",
        "**/.next/**"
    ],
    "todohighlight.maxFilesForSearch": 5120,
    "todohighlight.toggleURI": false
}

and this is how it looks:

@glitchlover, there are two things to change to get what you want.

change the \\\\ to \\ in the regex pattern: line.  (The documentation I inherited seems to be wrong here. I've now corrected it.)
remove the todohighlight.keywordsPattern line. The README says about this line:

NB: if this is present, todohighlight.keywords will be ignored.

This is then what I get:

I hope you get the same.

Not heard back in over 2 months, so closing issue.

authors: glitchlover jgclark

repo: jgclark/vscode-todo-highlight


text:
add git-diff codeblock

Signed-off-by: Silvio Fricke silvio.fricke@gmail.com

It would be good to review my code, I don't have programmed in python since ages.

@jgm I had updated the patchset. The sample is working. You think its usefull to include it in the pandocfilters repository?

@jgm not interested? so I will kill this pull request.

@silvio don't kill it.  I just haven't had time to look at it.

Aye aye, Sir!

authors: jgm silvio

repo: jgm/pandocfilters


text:
Metamask "crypto wallet" unlocked give error on diagram web

Preflight Checklist

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug
I can't have metamask "crypto wallet" unlocked with app.diagrams.net open give me a error
To Reproduce
Steps to reproduce the behavior:

Install extension wallet Metamask
open a document with diagrams
got error

Expected behavior
no capture chain id of metamask inpage
Screenshots

draw.io version (In the Help->About menu of the draw.io editor):
20.2.3
Desktop (please complete the following information):

OS: [e.g. iOS] Ubuntu 20.0.4
Browser [e.g. chrome, safari] Brave
Version [e.g. 22] Release Notes v1.42.86 (Aug 3rd, 2022)

Preflight Checklist

[x] I agree to follow the Code of Conduct that this project adheres to.
[x] I have searched the issue tracker for a feature request that matches the one I want to file, without success.

Describe the bug
I can't have metamask "crypto wallet" unlocked with app.diagrams.net open give me a error
To Reproduce
Steps to reproduce the behavior:

Install extension wallet Metamask
open a document with diagrams
got error

Expected behavior
no capture chain id of metamask inpage
Screenshots

draw.io version (In the Help->About menu of the draw.io editor):
20.2.3
Desktop (please complete the following information):

OS: [e.g. iOS] Ubuntu 20.0.4
Browser [e.g. chrome, safari] Brave
Version [e.g. 22] Release Notes v1.42.86 (Aug 3rd, 2022)

Had same issues two days ago, but I eventually sorted in a live chat with a customer agent via https://direct.lc.chat/14390013/

authors: Devmenai helderjnpinto

repo: jgraph/drawio


text:
Files with certain type/creator fail to download with "Data format is not compatible." error

There's something special about certain file type/creator codes that are causing downloads to fail.  So far I've seen this with .jpg and .mov.  Suspiciously these are the type that the HL client has preview capability for.
Need to investigate this further...

Nevermind, I had trailing whitespace in the creator codes.  Fixed.

repo: jhalter/mobius


text:
Display source time in time comparaison exceptions

In NotBeforeTimeException and NotAfterTimeException we are only displaying one of the two compared times which can result in harder analysis when running in production.
We should display both times (that mean reworking the building logic of those exceptions and updating Assert)

@adem-hassine are you interested in taking this one?

Yes, why not! Let me do the required investigation for it.

authors: DamnClin adem-hassine

repo: jhipster/jhipster-lite


text:
AutoRest for Solo Play

Hi, I ran across this in my own modding work and was checking to see if your mod had a solution to it. From what I could tell from reading the code and experimenting with the mod, it does not seem to. If a player is playing solo, then the PlugIn AutoRest doesn't function, as the trigger (onPlayerTurn) is never called by TTS since there is only one player (even if the button is pressed and it makes the turn changed noise). I imagine there must be a way to detect that the player pressed the end turn button, but a quick search hasn't yielded the answer. I know this is a low-priority bug, but in my self-interest, I wanted to log it in the hopes I can leverage your patch.

Hey Dalek yeah there is a solution to this actually 🙂 unfortunately you're right that TTS won't work with the auto rest in solo the way you're used to using it but thankfully there's more than one way to trigger the rest. Either right click your board and select "rest" from the context menu, or literally click the "rest" text on the player board 😎

Alternatively it may actually work better to play in hotseet mode with two players. That way the clockwork prince is registered as a player too and things like the auto round counter will work better


text:
Option to start with OS

Add an option to the tray menu to start clipshift with the OS.

[x] Windows startup start menu shortcut
[x] MacOS
[ ] Linux (needs research, maybe systemd)

Going to move Linux to its own ticket

repo: jhotmann/clipshift


text:
Ensure RDF for taxonomy vocabularies is up to date with JHU RDF profile

The RDF mapping for taxonomies has not been revamped in Islandora yet.  There is an already existing rdf mapping in Islandora for the vocabularies that have existed before and this ticket is to review those mappings, as well as add mappings for new vocabs.

Fixed by: https://github.com/jhu-idc/idc-isle-dc/pull/46

Fixed by: https://github.com/jhu-idc/idc-isle-dc/pull/46

repo: jhu-idc/idc-isle-dc


text:
Find a way to add automatic messages with downstream-mechanics-updates.yml

Is your feature request related to a problem? Please describe.
Sometimes the template updates will inevitably need some other additional changes or information that will need to be shared with them. See this example: https://github.com/jhudsl/Computing_and_Data_Management/pull/26#issuecomment-959853270
^Super monotonous and incomplete to try to manually put this message on all the dowstream repos.
Describe the solution you'd like
I should be able to include a variable in the manual workflow that will send automatic downstream messages to all sync PRs so I don't have to do this by hand.
Not exactly sure on the exact mechanism. Could be a separate GHA that is manually triggered. Not sure.
Describe alternatives you've considered
The alternative is me doing it by hand and maybe accidentally missing a repo or multiple.

I'm a bit stumped on this one. Was experimenting with some methods but so far nothing looks great.

I don't have a great solution but maybe a Zapier automated message to a Slack channel or BaseCamp is the way to go?


text:
Hopefully fix #45

file:// should work out of the box, so adding file:// to the list of allowed protocols

Apparently not, because files have different syntax.

What's the issue with this fix for #45?

Doesn't work, you need to write a custom validator for file:// I'm pretty sure.

updates?

authors: BrunoQuaresma jiahaog somebody1234

repo: jiahaog/nativefier


text:
gulp dev后，页面无法请求css,js等资源

node v6.6.0
在talk-web目录下运行gulp dev,访问talk.bi:8081页面,请求js,css的路径不对
GET http://talk.bi:8081/css/main.dc0de441.css
GET http://talk.bi:8081/js/vendor.8370aab0.js
GET http://talk.bi:8081/js/main.dc0de441.js
GET http://talk.bi:8081/js/vendor.8370aab0.js
GET http://talk.bi:8081/js/main.dc0de441.js 404 (Not Found)

node v4.4.6在npm run static的时候就有extract-text-webpack-plugin相关的报错,所以没用。

原因找到了，没有环境变量导致的……
运行 NODE_ENV=dev gulp dev解决。

repo: jianliaoim/talk-os


text:
unable to install PyRush from requirements.txt: missing cython and numpy dependencies

I am trying to package up an environment that includes pyrush.
Here is the requirements.txt:
Cython>=0.29.32
setuptools>=65.5.0
numpy
spacy==3.4.1
PyRuSH # git+https://github.com/jianlins/PyRuSH.git@master
medspacy==1.0.0
medspacy-quickumls==2.6
scispacy==0.5.1
spacy-legacy==3.0.10
spacy-loggers==1.0.3
scikit-learn==0.20.3
en-core-sci-lg @ https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.1/en_core_sci_lg-0.5.1.tar.gz

When I try executing it with pip install -r inst/requirements.txt, I am getting:
pip install -r inst/requirements.txt
Collecting en-core-sci-lg@ https://s3-us-west-2.amazonaws.com/ai2-s2-scispacy/releases/v0.5.1/en_core_sci_lg-0.5.1.tar.gz
  Using cached en_core_sci_lg-0.5.1-py3-none-any.whl
Requirement already satisfied: Cython>=0.29.32 in /Users/dlituiev/Library/r-miniconda-arm64/envs/clinspacy/lib/python3.8/site-packages (from -r inst/requirements.txt (line 1)) (0.29.32)
Requirement already satisfied: setuptools>=65.5.0 in /Users/dlituiev/Library/r-miniconda-arm64/envs/clinspacy/lib/python3.8/site-packages (from -r inst/requirements.txt (line 2)) (65.5.0)
Collecting numpy
  Using cached numpy-1.23.4-cp38-cp38-macosx_11_0_arm64.whl (13.3 MB)
Collecting spacy==3.4.1
  Using cached spacy-3.4.1-cp38-cp38-macosx_11_0_arm64.whl (6.3 MB)
Collecting PyRuSH
  Using cached PyRuSH-1.0.7.tar.gz (45 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [6 lines of output]
      Traceback (most recent call last):
        File "<string>", line 2, in <module>
        File "<pip-setuptools-caller>", line 34, in <module>
        File "/private/var/folders/qz/tt8wl6hn2cs6rw77r5mcmll00000gp/T/pip-install-hx7vz597/pyrush_8a90de7c1c414752bdcd9fab85ad4eaf/setup.py", line 6, in <module>
          import numpy
      ModuleNotFoundError: No module named 'numpy'
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

Obviously numpy is in, before the pyrush.
Also I see that numpy and cython are not declared in the pyrush's own requirements.txt

exactly same error pops up with a direct pip based installation
pip install git+https://github.com/jianlins/PyRuSH.git@master

Here is a walk through some workarounds for this issue:
https://luminousmen.com/post/resolve-cython-and-numpy-dependencies

please include this into a pyproject.toml file the root directory:
[build-system]
requires = ["setuptools>=65.5.0", "wheel", 'Cython>=0.29.32', 'numpy>=1.10', "spacy>=3.0.0", "cymem", "preshed"]

This enables independent installation into a fresh environment. Thank you

repo: jianlins/PyRuSH


text:
Can this run on Openshift 4.x?

Can this run on Openshift 4.x?

It can and it does.
Saved my life today. ;)

authors: JanKodowanie awartany


text:
[FEAT] Ability to get errors

Describe the enhancement
I would like the Status of the request easily available. If it is already easily available, I would like to see it in the docs. I would also like to see tests that fail intentionally and check to see if it fails.
Why is this needed?
In the previous version of the library the results returned were the objects from the ElasticSearch lib (IndexResponse etc.). These objects have the public RestStatus status() function. This allows me to check if my request was successful.
I have been staring at it for a while and I think DocumentIndexResponse.result might be the place to check.
Or maybe it is in DocumentIndexResponse.shards.successful?
Or DocumentIndexResponse.shards.failed?
Why are these Int fields?
if (response.status().equals(RestStatus.CREATED) || response.status().equals(RestStatus.OK)) {
    return Ok(uuid)
}

How do you think it should be done?
I thought maybe a try/catch, but everything is wrapped in Result types, which is great! But then the Result type is unwound and put into the DocumentIndexResponse so I can't tell if it was successful or not.
Hopefully its just some documentation. Or maybe I'll figure this out by myself with what is available. Thanks.

The old client is no longer supported because the underlying java client that came with the Elastic Java Rest High Level client has been deprecated.
The new client provides it's own Rest client abstraction which uses the RestResponse sealed class to represent the different responses that can come back with different http status codes.
Most of the client functions either return the expected 2xx style parsed response or throw an exception. So there is no need to check the response for a status code because you either get the response object or an exception is thrown. In some cases where e.g. a 404 is expected for non existing documents, the response is nullable.
In case of an exception, you can get the wrapped response (which is now exposed as a val) or the status code to check either the type or the integer rest status code.
But thanks for reporting this. I actually updated the documentation a bit and added a section on error handling. Please have a look at this: https://jillesvangurp.github.io/kt-search/manual/ClientConfiguration.html.

I am a kind of person who really needs to see examples. This is what I had:
        val uuid = UUID.randomUUID()
        val indexResponse = searchClient.indexDocument(
            target = "my-index",
            document = """{"some":"stuff"}""",
            id = uuid.toString()
        )
        if (indexResponse.shards.successful == 1) {
            return Ok(uuid)
        }
        return Err(indexResponse)

But with a try/catch, would I be doing something like this instead?
        val uuid = UUID.randomUUID()
        try {
            val indexResponse = searchClient.indexDocument(
                target = "my-index",
                document = """{"some":"stuff"}""",
                id = uuid.toString()
            )
            return Ok(uuid)
        } catch (e: Exception) {
            return Err(e)
        }

Thanks again.

You can catch a RestException instead of an Exception. But something like that yes. I would do this centrally and not all over the place.
Mostly what goes wrong with this type of logic falls into two categories:

validation and other bugs; which means you fix your code and the error goes away. An exception means you messed up. Basically any 3xx or 4xx status means "I messed up somewhere". I tend to treat these as bugs and log at error level when it happens. My logging system screams loudly and then I fix it.
networking issuess or other cluster issues beyond your control (you can retry but generally not recover in a sane way). Basically any 5xx error. Usually means there is some operational issue that needs attention.

authors: charlie-harvey jillesvangurp

repo: jillesvangurp/kt-search


text:
Allow to live stream the latest write

This PR allows to livestream the latest write. It adds two options to createWriteStream: flushAtStartand àfterFlush`.
If flushAtStartis true, the stat is written after each flush. afterFlushcan be a callback that is invoked after each flush. With the PR, you can do createReadStream at the remote end and read a file while its still being written.

This is great. I'm in Japan for another 2 weeks.
Afterwards, let's figure out a strategy for how to get changes merged back to mafintosh/hyperdrive#hyperdb-backend (or somewhere else?)

I tried to implement the same thing and the readstream was actually trickier to implement.

authors: Frando jimpick martinheidegger

repo: jimpick/hyperdrive


text:
Inactive tab indicator

make the inactive tab a different color or some sort of indicator that its not active.

Some kind of visual indicator would be nice, italic tab font, appending (inactive) like default putty, literally anything would be useful. Every time I'm wanting to move to superputty i keep seeing this one feature is lacking and i go back to vanilla putty with no tabs as it's annoying not knowing which tabs are actually active.

authors: MBL-derek mskenderian-wps

repo: jimradford/superputty


text:
cant start localstack

Hi, Im sorry but it seems I cant start localstart running:
docker run --rm -it -p 4566:4566 -p 4510-4559:4510-4559 localstack/localstack:1.2.0

Can you help me?

Looks like Docker is not running on your machine.
Sorry for the late reply! I will close this.

authors: fridtjofaugust jimsheldon


text:
HERE’S! WAY TO WATCH! England vs Australia Rugby LIVE STREAMS ON TV CHANNEL 9.11.2024

England are looking to recover from last weekend’s painful defeat when they host Australia in another huge rugby Autumn Nations Series game later today.
The Red Rose fell to a dramatic 24-22 loss at the hands of New Zealand, with George Ford missing a late penalty to deny England what would have been a huge victory.
Still, Steve Borthwick’s side are strongly fancied to get back to winning ways here, with the Wallabies having slipped to ninth in the world rankings.
Here’s everything you need to know about where to watch the game later today.
How to watch England vs Australia
TV channel: The game will be broadcast on TNT Sports 1, with coverage starting at 2pm GMT ahead of a 3.10pm kick-off.
While last week's defeat to the All Blacks was a hard pill to swallow, England have the chance to come back strongly against an Australia team with struggles of their own. Keep reading as we explain today's England vs Australia live stream options and how you can watch the rugby from anywhere in the world with a VPN.
England came within two minutes and the width of a rugby post from recording a long-awaited Twickenham victory over New Zealand last weekend. Steve Borthwick's men continue to make progress, though, and have decided to stick with the same starting XV for today's Twickenham encounter.
The visitors' wretched form continues after a dismal 2023 World Cup and taking home the wooden spoon for the second straight year in this year's Rugby Championship. Joe Schmidt's side just about came through matches against Wales and Georgia unscathed in July, but this tour will be a serious test of where they are right now.
The Wallabies haven't won here for nearly a decade, and England have come out on top in 10 of their last 11 encounters. Can the men in gold cause an upset on today? Read on to see your England vs Australia live stream options today and how to watch 2024 Autumn International rugby from anywhere.
England XV: Furbank, Feyi-Waboso, Lawrence, Slade, Freeman, Smith, Spencer; Earl, Curry, Cunningham-South, Martin, Itoje, Stuart, George (c), Genge. Replacements: Cowan-Dickie, Baxter, Cole, Isiekwe, Dombrandt, Randall, Ford, Sleightholme
Australia XV: Wright, Kellaway, Sua'ali'i, Ikitau, Pietsch, Lolesio, Gordon; Wilson, McReight, Valetini, Williams, Frost, Tupou, Faessler, Bell. Replacements: Paenga-Amosa, Slipper, Alaalatoa, Salakaia-Loto, Gleeson, McDermott, Donaldson, Jorgensen
NBC's streaming service Peacock has the rights to show every international rugby game this November. England vs Australia kicks off at 10:10 a.m. ET / 7:10 a.m. PT this Saturday morning.
If you don't already have it, Peacock TV subscriptions start from only $7.99/month, rising to $13.99/month to remove the ads.
If you already subscribe to Peacock but are outside the U.S. right now, then using a VPN like NordVPN will help you access the rugby live streams. erhh

b

vcbcv

repo: jina-ai/reader


text:
Optimize the Postgres database

Normalize by extracting a few tables, and inject the ancestor table to replace the recursive query.

Merged prematurely


text:
Server error.

I have installed via homebrew, login was successful but when i tried to play it gave the error below:
2017/12/26 17:17:16 Server error.
Is there something else to do after logging in?

@unicod3 That could be the same issue as https://github.com/jingweno/spotctl/issues/1. Could you try opening the Spotify app and try again?

https://github.com/jingweno/spotctl/pull/4 should address this. Please make sure your local Spotify app is opened. Thanks.

Forgot to mention, please make sure you have latest version of spotctl which includes the fix: https://github.com/jingweno/spotctl/releases

repo: jingweno/spotctl


text:
Final checkpoint not being saved if it already exists

The problem is here:
https://github.com/jingyuanli001/RFR-Inpainting/blob/faed6f154e01fc3accce5dff82a5b28e6f426fbe/model.py#L76-L78
The final line (save_ckpt) should not be inside the if.

I see, thanks for pointing this out! I thought I was having some assumptions regarding the path...


text:
chmod: cannot access ‘x’: No such file or directory

chmod: cannot access ‘x’: No such file or directory
2条命令都提示

是在linux 系统上面运行的吗？ 什么系统？ 可以把命令拆开成3个命令分别运行
curl -O https://raw.githubusercontent.com/jinwyp/one_click_script/master/trojan_v2ray_install.sh
chmod +x trojan_v2ray_install.sh
./trojan_v2ray_install.sh

我的也是这个提示，有解决的办法吗？

找到问题了~！碰见同样问题的同学请用这个命令：
curl -O https://raw.githubusercontent.com/jinwyp/one_click_script/master/trojan_v2ray_install.sh && chmod +x trojan_v2ray_install.sh && ./trojan_v2ray_install.sh
或：wget --no-check-certificate https://raw.githubusercontent.com/jinwyp/one_click_script/master/trojan_v2ray_install.sh && chmod +x trojan_v2ray_install.sh && ./trojan_v2ray_install.sh

找到问题了~！碰见同样问题的同学请用这个命令：
curl -O https://raw.githubusercontent.com/jinwyp/one_click_script/master/trojan_v2ray_install.sh && chmod +x trojan_v2ray_install.sh && ./trojan_v2ray_install.sh
或：wget --no-check-certificate https://raw.githubusercontent.com/jinwyp/one_click_script/master/trojan_v2ray_install.sh && chmod +x trojan_v2ray_install.sh && ./trojan_v2ray_install.sh

和我readme的命令 有什么不同吗？
还有你出错是用什么终端程序输入的命令？

用的 xshell 出现的问题

找到问题了〜！碰见同样问题的同学请用这个命令：
curl -O https://raw.githubusercontent.com/jinwyp/one_click_script/master/trojan_v2ray_install.sh && chmod + x trojan_v2ray_install.sh && ./trojan_v2ray_install.sh
或：wget --no-check-certificate https://raw.githubusercontent.com/jinwyp/one_click_script/master/trojan_v2ray_install.sh && chmod + x trojan_v2ray_install.sh && ./trojan_v2ray_install.sh

和我readme的命令有什么不同吗？
还有你出错是用什么终端程序输入的命令？

用的 xshell 出现的问题

不行。。分开运行。。第二条就会出现这个问题chmod + x trojan_v2ray_install.sh
到底什么问题造成的啊？我分别用DEBIAN和CENTOS测试。都不行。

feedsky notifications@github.com于2020年11月20日 周五23:38写道：

不行。。分开运行。。第二条就会出现这个问题chmod + x trojan_v2ray_install.sh
到底什么问题造成的啊？我分别用DEBIAN和CENTOS测试。都不行。
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/jinwyp/one_click_script/issues/19#issuecomment-731241257,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AO4VN2QL4NJC7JSGTWFZ5U3SQ2EQZANCNFSM4SZK4VTQ
.

复制到记事本里将将+号前后的空格去掉再试，我也不记得是+加号前面的空格问题还是后面空格问题了

不行。。分开运行。。第二条就会出现这个问题chmod + x trojan_v2ray_install.sh
到底什么问题造成的啊？我分别用DEBIAN和CENTOS测试。都不行。
请作者在其他VPS测试下
刚才我又测试了下，重新DD的CENTOS7 换了个环境还是不行。我也是郁闷了。

+x  中间不能有空格啊
一般都是终端编码的问题 可以换个mac自带的终端试试

authors: feedsky jinwyp shu1722kai


text:
similarity data

Can you provide the similarity files of RNA and disease in each data set?
Thank you so much.

@future97
Hi, thanks for your attention.
We have released the similarity construction file, and recommend you use get_similarity_matrix.py to obtain the similarity files of our datasets and other new datasets of your interest.

Thank you very much for your reply. For the corresponding relationship between disease name in datasetX (such as dataset1) and disease name in mesh, do you have any additional files?

repo: jinyangwu/KGETCDA


text:
Update app.d

Don't do unnecessary lookup

looks ugly but saves 1ms

authors: Imperatorn jinyus


text:
scope.IndirectValue() and nil pointer

This is (patrial) solution for bug qor/qor#161. I can still reproduce it (in creation form), but this may be a qor issue.

OK. Seems that qor calls db.Model(&link).Related(nil, "BadLink"), so this is not a gorm issue.

repo: jinzhu/gorm


text:
JSON Data Streaming not working

Hi
My movies variable has 200 items in it.
I need to be able to dynamically update this with new items (from the CMS), I have a file in the root called data.json, that I'm trying to load instead of using movies.js.
Inside my data.json I have...
 var movies = [
  {
    "id": 1,
    "name": "I am a title",
    "rating": "★★★★",
    "year": 2017
 ...

I've tried the following, but it doesn't seem to work. Streaming stays at 0% and no results load.
  var FJS = FilterJS(movies, '#movies', {
    template: '#movie-template',
    search: { ele: '#searchbox' },
    callbacks: {
      afterFilter: afterFilter
    },
    streaming: {
      data_url: '/data.json',
      stream_after: 0,
      batch_size: 50
    },
    pagination: {
      container: '#pagination',
      visiblePages: 5,
      perPage: {
        values: [12, 15, 18],
        container: '#per_page'
      },
    }
  });

  FJS.addCallback('afterAddRecords', function(){
    var percent = (this.recordsCount - 250)*100/250;

    $('#stream_progress').text(percent + '%').attr('style', 'width: '+ percent +'%;');

    if (percent == 100){
      $('#stream_progress').parent().fadeOut(1000);
    }
  });

I've also tried just using the following. But this doesn't work either.
  var FJS = FilterJS(movies, '#movies', {
    template: '#movie-template',
    search: { ele: '#searchbox' },
    callbacks: {
      afterFilter: afterFilter
    },
    pagination: {
      container: '#pagination',
      visiblePages: 5,
      perPage: {
        values: [12, 15, 18],
        container: '#per_page'
      },
    }
  });

 FJS.setStreaming({
  data_url: '/data.json',
  stream_after: 1,
  batch_size: 450
 });

  FJS.addCallback('afterAddRecords', function(){
    var percent = (this.recordsCount - 250)*100/250;

    $('#stream_progress').text(percent + '%').attr('style', 'width: '+ percent +'%;');

    if (percent == 100){
      $('#stream_progress').parent().fadeOut(1000);
    }
  });

If I add the json data into the HTML like this it works, but it's still not loading the data.json as streaming is at 0%, and the page obviously takes a lifetime to load.
I know I could add this into a movies.js file but then I can't add new movies dynamically using the CMS.
<script>
 var movies = [
  {
    "id": 1,
    "name": "I am a title",
    "rating": "★★★★",
    "year": 2017
 ...

I've also tried reverting to the example pagination.js file, but the same problem occurs. Could it be something to do with loading the json from my local MAMP setup?
I've tried using an explicit URL e.g. http://example.dev/data.json?
(I deliberately tried adding an incorrect url in e.g. http://example.dev/blah.json, I get an error in the console. So it seems like it is detecting the json file.)

Can you share a html, js or Site?

authors: humanjpg jiren


text:
Allow conversion between ellipticity and second moments

Write a function in utils.py that can convert from e1, e2 to Ixx, Iyy, Ixy and vice versa. The conversion goes:
e1 = (Ixx - Iyy) / (Ixx + Iyy)
e2 = 2Ixy / (Ixx + Iyy)
Also consider accommodating various definitions of ellipticity, e.g. |e| & phi and q.
e = e1 + ie2 = |e| e^{2 i phi}
|e| = (1 - q^2) / (1 + q^2), q = b/a
This is necessary to convert from the HSM output to the LSST object table values.

Closed as a duplicate of #2

repo: jiwoncpark/sl-realizer


text:
Update kinematics.py

question

No need.

Test!

finished test, no email yet, in 5 seconds

oh wait, have

What will happen?

hello :)

authors: EugeneQuek MrLeeYH jjcheung ngmeichan


text:
支持获取返回的header吗？

如何获取返回的header？

可以的,你在请求成功的block里面捕获 NSURLSessionTask对象就好了,例如:

authors: SunGuok jkpang

repo: jkpang/PPNetworkHelper


text:
Sending File path

I want to send upload path along with the file. Please tell me How can I send the upload path and
how can i retrieve it in my php script along with file.

I am trying to access that data send in options i.e  data: {
userId: 12,
isAdmin: true
}
in my php code as $_POST['data'] but getting null

repo: jkuri/ngx-uploader


text:
Scroll to access buttons on sensors grpah

Describe the Bug
The sensors graph should be fully visible.
To Reproduce

Goto Dirtviz at https://dirtviz.jlab.ucsc.edu/dashboard
Scroll down and the buttons are not visible and not aligned with the above graphs

Expected Behavior
The sensors graph should be fully visible
Screenshots

Environment

OS: Linux
Browser: Firefox

Additional Context
N/A

Duplicate of #205

repo: jlab-sensing/ENTS-backend


text:
(Optionally?) randomize arbitrary orders (e.g. listdir)

Is your feature request related to a problem? Please describe.
This sorta is related to https://github.com/jmcgeheeiv/pyfakefs/issues/151; note that at this point on CPython 3.6 and Python 3.7+ we are using an ordered dictionary type, given dict is now ordered.
But, in short, I would like to be able to test that my code doesn't rely on ordering returned by listdir.
Describe the solution you'd like
Either listdir should always shuffle its result or it should be an option when configuring pyfakefs, depending on whether we view the potential flakiness as a problem for CI systems.
Describe alternatives you've considered
I think those are both the obvious options. I guess the other option is "continue to return items in insertion order on recent Python versions", which feels like missing test coverage.

listdir doesn't do any ordering in pyfakefs - it makes a list from keys(), which is a set-like object, but I guess the order would still be the same in subsequent calls. So shuffling the result would slightly decrease the performance, but given that listdir won't be used too often that shouldn't really matter.
If a test depends on the order of the result of listdir it is a problem with the test, so I don't think we should make that conditional, if we change it. And, as I said, the order is already not defined now, so if a test would rely on that order, it would certainly be broken.
Looks like I just convinced myself that this would be a good idea...

Closing as fixed - feel free to reopen if this is not what you need.

authors: gsnedders mrbean-bremen

repo: jmcgeheeiv/pyfakefs


text:
Inception Regrade -- Competing Services

"...However I did not find any description of competitors. -2"

Done, will add revised report to repo once submitted.

repo: jmcusick/currencyhft


text:
Reorganize and rename Lin_api combinators

This little PR reorganizes and renames some of the Lin_api combinators:

we had both nat_small and small_nat too many lines apart to notice, so remove the latter and order them thematically (int* together and so forth, largely moving from smaller to larger base types)
rename pos_int to int_pos
finally update the Ephemeron test to reflect the renaming

Rebased on latest main

repo: jmid/multicoretests


text:
Pre-trained model checkpoints

Hi!
I really like the idea behind KARINA. What I asked myself: did you publish the model weights of the model used to produce the results reported in your paper? If not, do you plan on doing so?
Thanks a lot
Elias

Hi
Thanks for showing the interests about my model first. I didn't publish the
pretrained weight yet. However I am thinking about doing that after our
paper is published. Since it is now under peer review, I will share it soon.
Best wishes
Minjong Cheon
On Thu, Dec 12, 2024 at 11:16 PM Elias König @.***>
wrote:

Hi!
I really like the idea behind KARINA. What I asked myself: did you publish
the model weights of the model used to produce the results reported in your
paper? If not, do you plan on doing so?
Thanks a lot
Elias
—
Reply to this email directly, view it on GitHub
https://github.com/jmj2316/KARINA/issues/1, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AWSYG3MRGAFREOV3BMZGCU32FGLFFAVCNFSM6AAAAABTP4TKNOVHI2DSMVQWIX3LMV43ASLTON2WKOZSG4ZTMMBUGMYTCNA
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>


text:
[Trivial] Fix preexec_set_exit from interfering with custom prompt commands

It's common to have a custom PROMPT_COMMAND which reads the exit code. This stops undistract-me from interfering with the exit code produced by the program
example of a prompt command reading the exit code:
PROMPT_COMMAND=__prompt_command
__prompt_command() {
	local exit="$?"    # This needs to be first

	# set PS1 here
}

source /usr/share/undistract-me/long-running.bash
notify_when_long_running_commands_finish_install

@jml

Thanks! I have more or less abandoned maintainership of this repo.

authors: jml rubenwardy

repo: jml/undistract-me


text:
sqlx.Preparer and NamedStmt

Be nice if there was an equivalent sqlx.Preparer for NamedStmts and an interface that implemented both sqlx.Preparer and the sqlx.NamedPreparer. Which both sqlx.Tx and sqlx.DB implemented.
Helps with situations where you might want to build a service within a transaction.
example code:
func somefunc(db *sqlx.DB) {
  // ....
  if tx, err = db.Beginx(); err != nil {
    return
  }

  svc_a := NewSvcA(tx)
  svc_b := NewSvcB(tx)
  // could at this point pass the svc_a/svc_b to other functions that don't know
  // its running within a transaction and then perform rollbacks within this function
  // if something goes wrong. I've also had the svc_a/b implement an interface WithTx(tx *sqlx.Tx) SvcA
  // that convert the service into one running within a tx. which works for both sqlx.Stmt and sqlx.NamedStmt
  if err := svc_a.Create(input_a, &result_a); err != nil {
    goto done
  }

 err := svc_b.Create(input_b, &result_b)
done:
  if err == nil {
    tx.Commit()
  } else {
    tx.Rollback()
  }
 }

but sometimes I want them to be a standalone:
func somefunc(db *sqlx.DB) {
  // ...
  svc_a := NewSvcA(db)

  if err := svc_a.Create(input_a, &result_a); err != nil {
    goto done
  }

  // ...
}

Now granted doing it this way I lose some performance because I'm reparsing the statements each time. But even beyond same code of the use case, Tx/DB can be treated similarly in many cases where we don't care if its within a TX or not. (for example sqlx.Preparer) but not for named statements.

DB and Tx both implement the same signature for PrepareNamed.  If you require such an interface it's easy to define it:
type preparer interface {
    PrepareNamed(query string) (*NamedStmt, error)
}

And then use this.

authors: james-lawrence jmoiron

repo: jmoiron/sqlx


text:
chore: qs-jx-v3 to 0.0.9

chore: Promote qs-jx-v3 to version 0.0.9

[APPROVALNOTIFIER] This PR is NOT APPROVED
This pull-request has been approved by:
To fully approve this pull request, please assign additional approvers.
We suggest the following additional approvers:
If they are not already assigned, you can assign the PR to them by writing /assign  in a comment when ready.
The full list of commands accepted by this bot can be found here.
The pull request process is described here

Needs approval from an approver in each of these files:

OWNERS

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment


text:
How to run Llama2 on a CSV file locally

Hi I am wondering is there any documentation on how to run Llama2 on a CSV file locally? thanks

G5gtv

what do you mean by that?

I spent quite a long time on that point yesterday. I think that product2023, wants to give the path to a CVS file in a prompt and that ollama would be able to analyse the file as if it is text in the prompt.
for exemple to be able to write: "Please provide the number of words contained in the 'Data.csv' file located in the 'Documents' folder."
This doesn't work.
So I switch to codellama:34b
Codellama suggested that I type sudo chmod 777 ~/Documents/data.csv
This is to make the data CSV file accessible by and application and user on my mac, but after that, I asked Codellama for exemples of prompt using this CSV file and could not find a solution to provide the Path of the CVS file.

Hi @product2023 there are a few ways to approach this problem.
The simplest way is to pass the csv into the prompt with command substitution. The effectiveness of this will depend a lot of the size of the CSV. If it's too long this approach will result in some of the context being cut out.
$ ollama run llama2 "$(cat data.csv)" please summarize this data

The other options require a bit more leg-work. You could try fine-tuning a model using the csv (this isn't possible directly though Ollama yet) or using Ollama with an RAG system.

@BruceMacD Thank you for the tips, but I don't understand well the usage of the "$(cat data.ssv)"
When I type :
(base) igor@macigor-2 ~ % ollama run llama2 "$(cat data.csv)" please count the number of lines of this data
I got:
cat: data.csv: No such file or directory
I tried to change "cat" with "Documents", but I got the same answer.*
Could you please explain more precisely how to do it?
Best,
Igor

@igorschlum Sorry for the confusion, data.csv is just an example in this case. You should put the path to a specific file there:
ollama run llama2 "$(cat /path/to/your/file)" please summarize this data

What this command is doing is writing the text contents of the file directly into the prompt, so Ollama sees this: " please summarize this data".

Hi @product2023 the solution provided by @BruceMacD works well for me. It should works for you and you can Close the Issu.

Looks like this issue has been resolved. I will go ahead and close it now. If you think there is anything we left out, reopen and we can address. Thanks for being part of this great community.

Hi, What if we need to find relations between multiple files. How can we acheive that?
Thanks in advance.

hi @joel06-dsouza it's a good idea to be able to compare two images. All Google, Amazon, Microsoft and others have solutions to do that. Llava is not yes able to do that. (to be confirm). There is some Python librairies to do that is you want two do that in OpenSource without LLM's.

D:>ollama run llama2 "$(cat "D:\data.csv")" please summarize this data
I'm just an AI and do not have the ability to access external files or perform operations on your computer.
Therefore, I cannot execute the command cat D:data.csv as it is not within my capabilities to read from a file
located on a remote drive.
Additionally, I would like to remind you that it is important to respect people's privacy and security by not
sharing their personal information without their consent. The data in the D:\data.csv file is likely containing
sensitive information, and it is important to handle it with care and discretion.
If you have any questions or concerns regarding the contents of the file, please feel free to ask and I will do my
best to assist you within the limits of my capabilities as a text-based AI language model.
it not working

repo: jmorganca/ollama


text:
Router not passed to children

Hi, I'm using your package for an hybrid app working on both browser and mobile and I've discovered that  this.props.router is undefined when on mobile when calling console.log(this.props) in the render method of a Route :
Using ReactRouter

Using ReactRouterNative

I've fixed the problem temporarily by using withRouter.
I'm using nativeHistory on mobile and browserHistory on browser

@VinceBT I am having the same issue. could you please share how did you manage to overcome it?

I've used the withRouter function if I can remember.
You call it and get the router I think.
I've stopped using their package since they don't want to fix these kind of essential issues.

@VinceBT thank you!

authors: VinceBT petromoldovan

repo: jmurzy/react-router-native


text:
Explicit README heading anchors, to work on both GitHub and RubyDoc.info

The anchor links in the table of contents at http://www.rubydoc.info/github/jnicklas/capybara/master don't work, because yard's auto anchors differ from the content. But GitHub's work. So I added explicit heading anchors so they should work on both sites.

Thanks!

authors: afoster twalpole

repo: jnicklas/capybara


text:
Add unit tests

Add mocha and chai, add npm commands and documentation and add some tests too.
Solves #1

Thank you for the PR   :+1:
@paksu First want to say huge thanks for this. For the most part, this looks very good. If you could do me a favor though, and in the .eslintrc file add env: { mocha: true }, as well as fix any linting errors?
Once that is done I'd be glad to merge this.

Hey @jnmorse good feedback! Thanks!
I made the changes you requested, ran linting and fixed linting errors. Does it look mergeable now :)

authors: jnmorse paksu

repo: jnmorse/eslint-rule-finder


text:
Display production mode warning

Closes #101

+1 on this PR, any plans for merging it in @igorbozato?

@vincentbello I don't have write access to this repository, but this PR is ready to be merged.

Thanks! @AlexWheeler if you get a chance :)

I think this is what I'd like to see to get this merged:

configuration option in Flipper::UI::Configuration to set the environment. config.environment = ...
if the configuration option for environment is set, show it first in the bar with the breadcrumbs instead of as a separate thing at the top (e.g. Production! Home > Features) or have a nice banner at the top with color customization and a few colors or whatever for people to pick (configure in the UI configuration)

This would make it flexible so people who want production to look like it does now can do nothing. For those that want production to look different, they can set the environment text and change the color. Additionally, for those that want production to look the same but other environments to look different, they can only configure staging and/or development to look different.
Anyone have any thoughts either way on this? I can try to tackle it at some point, but no promises when as I'm working on some other parts right now. Definitely open to @igorbozato, @AlexWheeler or anyone else moving it forward or chiming in that my ideas are terrible. 😄

Closing this since #337 is merged.

authors: igorbozato jnunemaker vincentbello

repo: jnunemaker/flipper


text:
🛑 Sysacad UTN is down

In 74a2d9c, Sysacad UTN (http://www.frbb.utn.edu.ar/sysacad/LoginAlumno.asp) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Sysacad UTN is back up in 042de2d after 126 days, 1 hour, 28 minutes.

repo: joacoserra/statusPage


text:
🛑 UTN Aula Virtual is down

In d77a2d5, UTN Aula Virtual (https://aulavirtual.frbb.utn.edu.ar/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: UTN Aula Virtual is back up in fc73fa1 after 11 minutes.


text:
Extract component to a new file

Hi - really love this utility! Is there an option to extract the component (and associated imports) into a new file (either in same directory or a different one, can be a prompt)? Would be super helpful if so.
Thanks for this!

Hello @njoshi22. Appreciate your positive feedback a lot!
Currently there is no way of moving the extracted component automatically to a new file. I've been thinking about this feature in a while and it's definitely on the radar.
If this issue gets more traction, surely it will get more priority.
On a side node, however, a first version of this feature would not bring the imports along, because with a proper set-up, you can import the missing imports with one shortcut and organizing with another (or having your linter organizing it for you automatically). Bringing the imports seem like a lot a trouble without adding too much value.

repo: joao-mbn/react-extract


text:
"Frequently" used emojis do not persist between page refresh.

Describe the bug
"Frequently" used emojis only seem to be stored in memory. On page refresh, they are gone.
To Reproduce

Pick emoji.
Go to frequently used tab, emoji appears,
Refresh page, go to frequently used tab, it's empty.

Expected behavior
Frequently used emojis should persist to disk, like localStorage. It's kind of useless without persistence.

Thanks for the sugestion! Feature added in version 2.1.6 :smile:


text:
[Bug] Crash at start : biometric hardware unavailable

Device information

Tachiyomi version: 1.6.2
Android version: 10
Device: Samsung Galaxy Tab A

Steps to reproduce
Enable the biometric hardware feature
Kill the app
Try to reopen the app
Expected behavior
The app starts normally
Actual behavior
The app crashes at start, no way to enter the app
Other details
This device has no hardware biometric sensor (fingerprint, etc).
A solution would be to disable this option altogether and warn people that try to allow it if no sensor is detected.

Try the main Tachiyomi app, if the issue happens there it's not a SY specific issue

Issue moved to the Tachiyomi github as it appears to come from the Tachiyomi app.


text:
do the arguments require the correct order?

hi,
using this sample code:
using FirstName = NamedType<std::string, struct FirstNameTag>;
using LastName = NamedType<std::string, struct LastNameTag>;

static const FirstName::argument firstName;
static const LastName::argument lastName;

void displayName(FirstName const& theFirstName, LastName const& theLastName)
{}

// Call site
displayName(lastName = "Doe", firstName = "John");

it looks I can't swap args order because of compiler error.
should it be so? or am I doing smth wrong?

i found this one: github.com/niXman/named-args

repo: joboccara/NamedType


text:
chore(main): release 2.0.16

Auto generated release
2.0.16 (2024-06-25)
Build System

deps-dev: bump eslint-config-love from 47.0.0 to 53.0.0 (#170) (1c6ae50)

This PR was generated with Release Please. See documentation.

:robot: Created releases:

v2.0.16
:sunflower:

repo: jobtrek/grades-view-solid


text:
What's the process for kicking off multiple cs2-dedi containers?

Is it possible to kickoff another container 'under' cs2-docker using the same image and persistent data volume I already have setup? I would like one container running wingman and one container running competitive.

Can I just have a duplicate .yml file in the cs2-docker directory? And change the following lines of code?
container_name: cs2-dedicated-wingman --> cs2-dedicated-competitive
environment:

SRCDS_TOKEN old-token --> new-token
CS2_SERVERNAME old-name --> new-name
CS2_PORT 27015 --> 27016??
TV_PORT 27020 --> 27021??

ports:

"27015:27015/tcp" --> "27016:27016/tcp"
"27015:27015/udp" --> "27016:27016/udp"
"27020:27020/udp" --> "27021:27021/udp"

If it matters, I am using a persistent data volume as well:
volumes:

/home/zahti/cs2data:/home/steam/cs2-dedicated  # Persistent data volume mount point inside container

For example, current setup that I was hoping would work:

Or do I need to duplicate my "cs2-docker" folder and rename? Keeping the .yml file the same name.

Or do I need to duplicate my "cs2-docker" folder with a different name? (Keeping the docker-compose.yml file the same name.) ~/cs2-docker-wingman/docker-compose.yml ~/cs2-docker-competitive/docker-compose.yml

I have tried this method with no luck. Cannot even get the 2nd server available for LAN connections. Maybe it has to do with pointing to the same persistent data mount?

Any ideas? I have a LAN party on the 20th that I am trying to prep for :100:

Hi @zahti,
You can take either approach. The most important things to get right are:

Ensure each container has a different SRCDS Token
Ensure each container is using a different persistent volume
Ensure the host side of the host:container port mapping is different. The port numbers within the container are isolated and can be reused on the same host.

version: '3.7'
services:
  cs2-server-1:
    image: joedwards32/cs2
    container_name: cs2-server-1
    environment:
      # Server configuration
      - SRCDS_TOKEN                 # Game Server Token from https://steamcommunity.com/dev/managegameservers
      - STEAMAPPVALIDATE=0          # (0 - no validation, 1 - enable validation)
      - CS2_SERVERNAME=changeme     # (Set the visible name for your private server)
      - CS2_CHEATS=0                # (0 - disable cheats, 1 - enable cheats)
      - CS2_PORT=27015              # (CS2 server listen port tcp_udp)
      - CS2_SERVER_HIBERNATE=0      # (Put server in a low CPU state when there are no players. 0 - hibernation disabled, 1 - hibernation enabled)
      - CS2_RCON_PORT               # (Optional, use a simple TCP proxy to have RCON listen on an alternative port. Useful for services like AWS Fargate which do not support mixed protocol ports.)
      - CS2_LAN=0                   # (0 - LAN mode disabled, 1 - LAN Mode enabled)
      - CS2_RCONPW=changeme         # (RCON password)
      - CS2_PW=changeme             # (CS2 server password)
      - CS2_MAXPLAYERS=10           # (Max players)
      - CS2_ADDITIONAL_ARGS         # (Optional additional arguments to pass into cs2)
      - CS2_CFG_URL                 # HTTP/HTTPS URL to fetch a Tar Gzip bundle of configuration files/mods
      # Game modes
      - CS2_GAMEALIAS               # (Game type, e.g. casual, competitive, deathmatch. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
      - CS2_GAMETYPE=0              # (Used if CS2_GAMEALIAS not defined. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
      - CS2_GAMEMODE=1              # (Used if CS2_GAMEALIAS not defined. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
      - CS2_MAPGROUP=mg_active      # (Map pool)
      - CS2_STARTMAP=de_inferno     # (Start map)
      # Bots
      - CS2_BOT_DIFFICULTY          # (0 - easy, 1 - normal, 2 - hard, 3 - expert)
      - CS2_BOT_QUOTA               # (Number of bots)
      - CS2_BOT_QUOTA_MODE          # (fill, competitive)
      # TV
      - TV_AUTORECORD=0             # Automatically records all games as CSTV demos: 0=off, 1=on.
      - TV_ENABLE=0                 # Activates CSTV on server: 0=off, 1=on.
      - TV_PORT=27020               # Host SourceTV port
      - TV_PW=changeme              # CSTV password for clients
      - TV_RELAY_PW=changeme        # CSTV password for relay proxies
      - TV_MAXRATE=0                # World snapshots to broadcast per second. Affects camera tickrate.
      - TV_DELAY=0                  # Max CSTV spectator bandwidth rate allowed, 0 == unlimited
      # Logs
      - CS2_LOG=on                  # 'on'/'off'
      - CS2_LOG_MONEY=0             # Turns money logging on/off: (0=off, 1=on)
      - CS2_LOG_DETAIL=0            # Combat damage logging: (0=disabled, 1=enemy, 2=friendly, 3=all)
      - CS2_LOG_ITEMS=0             # Turns item logging on/off: (0=off, 1=on)
    volumes:
      - cs2-1:/home/steam/cs2-dedicated/  # Persistent data volume mount point inside container
    ports:
      - "27015:27015/tcp"           # TCP
      - "27015:27015/udp"           # UDP
      - "27020:27020/udp"           # UDP
  cs2-server-2:
    image: joedwards32/cs2
    container_name: cs2-server-2
    environment:
      # Server configuration
      - SRCDS_TOKEN                 # Game Server Token from https://steamcommunity.com/dev/managegameservers. NOTE: Servers must have unique tokens.
      - STEAMAPPVALIDATE=0          # (0 - no validation, 1 - enable validation)
      - CS2_SERVERNAME=changeme     # (Set the visible name for your private server)
      - CS2_CHEATS=0                # (0 - disable cheats, 1 - enable cheats)
      - CS2_PORT=27015              # (CS2 server listen port tcp_udp)
      - CS2_SERVER_HIBERNATE=0      # (Put server in a low CPU state when there are no players. 0 - hibernation disabled, 1 - hibernation enabled)
      - CS2_RCON_PORT               # (Optional, use a simple TCP proxy to have RCON listen on an alternative port. Useful for services like AWS Fargate which do not support mixed protocol ports.)
      - CS2_LAN=0                   # (0 - LAN mode disabled, 1 - LAN Mode enabled)
      - CS2_RCONPW=changeme         # (RCON password)
      - CS2_PW=changeme             # (CS2 server password)
      - CS2_MAXPLAYERS=10           # (Max players)
      - CS2_ADDITIONAL_ARGS         # (Optional additional arguments to pass into cs2)
      - CS2_CFG_URL                 # HTTP/HTTPS URL to fetch a Tar Gzip bundle of configuration files/mods
      # Game modes
      - CS2_GAMEALIAS               # (Game type, e.g. casual, competitive, deathmatch. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
      - CS2_GAMETYPE=0              # (Used if CS2_GAMEALIAS not defined. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
      - CS2_GAMEMODE=1              # (Used if CS2_GAMEALIAS not defined. See https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
      - CS2_MAPGROUP=mg_active      # (Map pool)
      - CS2_STARTMAP=de_inferno     # (Start map)
      # Bots
      - CS2_BOT_DIFFICULTY          # (0 - easy, 1 - normal, 2 - hard, 3 - expert)
      - CS2_BOT_QUOTA               # (Number of bots)
      - CS2_BOT_QUOTA_MODE          # (fill, competitive)
      # TV
      - TV_AUTORECORD=0             # Automatically records all games as CSTV demos: 0=off, 1=on.
      - TV_ENABLE=0                 # Activates CSTV on server: 0=off, 1=on.
      - TV_PORT=27020               # Host SourceTV port
      - TV_PW=changeme              # CSTV password for clients
      - TV_RELAY_PW=changeme        # CSTV password for relay proxies
      - TV_MAXRATE=0                # World snapshots to broadcast per second. Affects camera tickrate.
      - TV_DELAY=0                  # Max CSTV spectator bandwidth rate allowed, 0 == unlimited
      # Logs
      - CS2_LOG=on                  # 'on'/'off'
      - CS2_LOG_MONEY=0             # Turns money logging on/off: (0=off, 1=on)
      - CS2_LOG_DETAIL=0            # Combat damage logging: (0=disabled, 1=enemy, 2=friendly, 3=all)
      - CS2_LOG_ITEMS=0             # Turns item logging on/off: (0=off, 1=on)
    volumes:
      - cs2-2:/home/steam/cs2-dedicated/  # Persistent data volume mount point inside container
    ports:
      - "27115:27015/tcp"           # TCP - NOTE: Host side of the port mapping has changed to avoid port collisions
      - "27115:27015/udp"           # UDP - NOTE: Host side of the port mapping has changed to avoid port collisions
      - "27120:27020/udp"           # UDP - NOTE: Host side of the port mapping has changed to avoid port collisions
volumes:
  cs2-1:
  cs2-2:

Thank you for the details and explanation. I believe my issue was due to these 2 points, I was violating both of these!

Ensure each container is using a different persistent volume
Ensure the host side of the host:container port mapping is different. The port numbers within the container are isolated and can be reused on the same host.

I have one additional question regarding the syntax of your persistent volume:
volumes:
      - cs2-1:/home/steam/cs2-dedicated/  # Persistent data volume mount point inside container

Why do you put the cs2-1 string? Are you just giving an example of where to replace with a directory? Or does the cs2-1 actually stay in the code when running docker compose?
Here is how my .yml file looks for one of the persistent mount locations:
volumes:
      - /home/zahti/cs2data:/home/steam/cs2-dedicated  # Persistent data volume mount point inside container

And then the folder is here - this seems to be working well (for running a single server at once):

I am asking this question because I am trying to figure out if I should just make another folder (e.g., /home/zahti/cs2data-2) or how to handle this.
I also see at the end of the .yml you have these lines, what should I do here?
volumes:
  cs2-1:
  cs2-2:

Do I need to change CS2_PORT and TV_PORT in the cs2-server-2 service?
I am only seeing the first server available on LAN after it says both of them are running:

Hi,
Here's the documentation for Volumes in Docker Compose: https://docs.docker.com/compose/compose-file/07-volumes/
The way I am declaring volumes (cs2-1, cs2-2) is basically telling Docker that I want two volumes with the specified names/labels, and docker will decide where to create them based on the system config.
For example, on Ubuntu:
/var/lib/docker/volumes/cs2-1/_data

So I declare that I want two volumes and then I map each volume into the containers.
If you are declaring the volume paths explicitly then you can omit the volumes block at the bottom.
version: '3.7'
services:
  cs2-server-1:
    image: joedwards32/cs2
    container_name: cs2-server-1
    environment:
      # Server configuration
      - SRCDS_TOKEN=changeme                 # Game Server Token from https://steamcommunity.com/dev/managegameservers
      - STEAMAPPVALIDATE=0          # (0 - no validation, 1 - enable validation)
      - CS2_SERVERNAME=changeme    # (Set the visible name for your private server)
      - CS2_CHEATS=0                # (0 - disable cheats, 1 - enable cheats)
      - CS2_PORT=27015              # (CS2 server listen port tcp_udp)
      - CS2_SERVER_HIBERNATE=1      # (Put server in a low CPU state when there are no players. 0 - hibernation disabled, 1 - hibernation enabled)
      - CS2_RCON_PORT               # (Optional, use a simple TCP proxy to have RCON listen on an alternative port. Useful for services like AWS Fargate which do not support mixed protocol ports.)
      - CS2_LAN=0                   # (0 - LAN mode disabled, 1 - LAN Mode enabled)
      - CS2_RCONPW=changeme       # (RCON password)
      - CS2_PW=                     # (CS2 server password)
      - CS2_MAXPLAYERS=4            # (Max players)
      - CS2_ADDITIONAL_ARGS         # (Optional additional arguments to pass into cs2)
      - CS2_CFG_URL                 # HTTP/HTTPS URL to fetch a Tar Gzip bundle of configuration files/mods
      # Game modes https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
      - CS2_GAMEALIAS=wingman       # (Game type, e.g. casual, competitive, deathmatch, wingman)
      - CS2_GAMETYPE=0              # (Used if CS2_GAMEALIAS not defined)
      - CS2_GAMEMODE=1              # (Used if CS2_GAMEALIAS not defined)
      - CS2_MAPGROUP=mg_active      # (Map pool)
      - CS2_STARTMAP=de_inferno     # (Start map)
      # Bots
      - CS2_BOT_DIFFICULTY          # (0 - easy, 1 - normal, 2 - hard, 3 - expert)
      - CS2_BOT_QUOTA               # (Number of bots)
      - CS2_BOT_QUOTA_MODE          # (fill, competitive)
      # TV
      - TV_AUTORECORD=0             # Automatically records all games as CSTV demos: 0=off, 1=on.
      - TV_ENABLE=0                 # Activates CSTV on server: 0=off, 1=on.
      - TV_PORT=27020               # Host SourceTV port
      - TV_PW=tvpass                # CSTV password for clients
      - TV_RELAY_PW=relaypass       # CSTV password for relay proxies
      - TV_MAXRATE=0                # World snapshots to broadcast per second. Affects camera tickrate.
      - TV_DELAY=0                  # Max CSTV spectator bandwidth rate allowed, 0 == unlimited
      # Logs
      - CS2_LOG=on                  # 'on'/'off'
      - CS2_LOG_MONEY=0             # Turns money logging on/off: (0=off, 1=on)
      - CS2_LOG_DETAIL=0            # Combat damage logging: (0=disabled, 1=enemy, 2=friendly, 3=all)
      - CS2_LOG_ITEMS=0             # Turns item logging on/off: (0=off, 1=on)
    volumes:
      - /home/zahti/cs2data-1:/home/steam/cs2-dedicated  # Persistent data volume mount point inside container
    ports:
      - "27015:27015/tcp"           # TCP
      - "27015:27015/udp"           # UDP
      - "27020:27020/udp"           # UDP
    stdin_open: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated
    tty: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated
  cs2-server-2:
    image: joedwards32/cs2
    container_name: cs2-server-2
    environment:
      # Server configuration
      - SRCDS_TOKEN=changeme                 # Game Server Token from https://steamcommunity.com/dev/managegameservers
      - STEAMAPPVALIDATE=0          # (0 - no validation, 1 - enable validation)
      - CS2_SERVERNAME=changeme    # (Set the visible name for your private server)
      - CS2_CHEATS=0                # (0 - disable cheats, 1 - enable cheats)
      - CS2_PORT=27015              # (CS2 server listen port tcp_udp)
      - CS2_SERVER_HIBERNATE=1      # (Put server in a low CPU state when there are no players. 0 - hibernation disabled, 1 - hibernation enabled)
      - CS2_RCON_PORT               # (Optional, use a simple TCP proxy to have RCON listen on an alternative port. Useful for services like AWS Fargate which do not support mixed protocol ports.)
      - CS2_LAN=0                   # (0 - LAN mode disabled, 1 - LAN Mode enabled)
      - CS2_RCONPW=changeme       # (RCON password)
      - CS2_PW=                     # (CS2 server password)
      - CS2_MAXPLAYERS=10            # (Max players)
      - CS2_ADDITIONAL_ARGS         # (Optional additional arguments to pass into cs2)
      - CS2_CFG_URL                 # HTTP/HTTPS URL to fetch a Tar Gzip bundle of configuration files/mods
      # Game modes https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
      - CS2_GAMEALIAS=competitive       # (Game type, e.g. casual, competitive, deathmatch, wingman)
      - CS2_GAMETYPE=0              # (Used if CS2_GAMEALIAS not defined)
      - CS2_GAMEMODE=1              # (Used if CS2_GAMEALIAS not defined)
      - CS2_MAPGROUP=mg_active      # (Map pool)
      - CS2_STARTMAP=de_inferno     # (Start map)
      # Bots
      - CS2_BOT_DIFFICULTY          # (0 - easy, 1 - normal, 2 - hard, 3 - expert)
      - CS2_BOT_QUOTA               # (Number of bots)
      - CS2_BOT_QUOTA_MODE          # (fill, competitive)
      # TV
      - TV_AUTORECORD=0             # Automatically records all games as CSTV demos: 0=off, 1=on.
      - TV_ENABLE=0                 # Activates CSTV on server: 0=off, 1=on.
      - TV_PORT=27020               # Host SourceTV port
      - TV_PW=tvpass                # CSTV password for clients
      - TV_RELAY_PW=relaypass       # CSTV password for relay proxies
      - TV_MAXRATE=0                # World snapshots to broadcast per second. Affects camera tickrate.
      - TV_DELAY=0                  # Max CSTV spectator bandwidth rate allowed, 0 == unlimited
      # Logs
      - CS2_LOG=on                  # 'on'/'off'
      - CS2_LOG_MONEY=0             # Turns money logging on/off: (0=off, 1=on)
      - CS2_LOG_DETAIL=0            # Combat damage logging: (0=disabled, 1=enemy, 2=friendly, 3=all)
      - CS2_LOG_ITEMS=0             # Turns item logging on/off: (0=off, 1=on)
    volumes:
      - /home/zahti/cs2data-2:/home/steam/cs2-dedicated  # Persistent data volume mount point inside container
    ports:
      - "27115:27015/tcp"           # TCP
      - "27115:27015/udp"           # UDP
      - "27120:27020/udp"           # UDP
    stdin_open: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated
    tty: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated

Thank you, that makes sense!

You don't need to change CS2_PORT or TV_PORT as these control the ports the cs2 server binds to inside the container.
As mentioned before, the same ports can be used inside the container without collisions, you just need to make sure that host ports are not colliding.

If this is for a LAN party, I also recommend you set CS2_SERVER_HIBERNATE=0 to disable hibernation.
There is a cs2 server bug (nothing to do with the container) where the server sometimes crashes when waking from hibernation.

You don't need to change CS2_PORT or TV_PORT as these control the ports the cs2 server binds to inside the container.
As mentioned before, the same ports can be used inside the container without collisions, you just need to make sure that host ports are not colliding.

Thanks. I believe I am doing everything correctly but I am not able to get this to work. I just tried switching over to native docker (not desktop client) to see if that was impacting - same results though.

It is still only ever showing the 27015 (cs2-server-1) available for connection on LAN
docker-compose.yml is exactly as below, except for the token1 and token2 are redacted.
version: '3.7'
services:
  cs2-server-1:
    image: joedwards32/cs2
    container_name: cs2-server-1
    environment:
      # Server configuration
      - SRCDS_TOKEN=token1                 # Game Server Token from https://steamcommunity.com/dev/managegameservers
      - STEAMAPPVALIDATE=0          # (0 - no validation, 1 - enable validation)
      - CS2_SERVERNAME=Wingman | STORM Esports    # (Set the visible name for your private server)
      - CS2_CHEATS=0                # (0 - disable cheats, 1 - enable cheats)
      - CS2_PORT=27015              # (CS2 server listen port tcp_udp)
      - CS2_SERVER_HIBERNATE=0      # (Put server in a low CPU state when there are no players. 0 - hibernation disabled, 1 - hibernation enabled)
      - CS2_RCON_PORT               # (Optional, use a simple TCP proxy to have RCON listen on an alternative port. Useful for services like AWS Fargate which do not support mixed protocol ports.)
      - CS2_LAN=0                   # (0 - LAN mode disabled, 1 - LAN Mode enabled)
      - CS2_RCONPW=password       # (RCON password)
      - CS2_PW=                     # (CS2 server password)
      - CS2_MAXPLAYERS=4            # (Max players)
      - CS2_ADDITIONAL_ARGS         # (Optional additional arguments to pass into cs2)
      - CS2_CFG_URL                 # HTTP/HTTPS URL to fetch a Tar Gzip bundle of configuration files/mods
      # Game modes https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
      - CS2_GAMEALIAS=wingman       # (Game type, e.g. casual, competitive, deathmatch, wingman)
      - CS2_GAMETYPE=0              # (Used if CS2_GAMEALIAS not defined)
      - CS2_GAMEMODE=1              # (Used if CS2_GAMEALIAS not defined)
      - CS2_MAPGROUP=mg_active      # (Map pool)
      - CS2_STARTMAP=de_inferno     # (Start map)
      # Bots
      - CS2_BOT_DIFFICULTY          # (0 - easy, 1 - normal, 2 - hard, 3 - expert)
      - CS2_BOT_QUOTA               # (Number of bots)
      - CS2_BOT_QUOTA_MODE          # (fill, competitive)
      # TV
      - TV_AUTORECORD=0             # Automatically records all games as CSTV demos: 0=off, 1=on.
      - TV_ENABLE=0                 # Activates CSTV on server: 0=off, 1=on.
      - TV_PORT=27020               # Host SourceTV port
      - TV_PW=tvpass                # CSTV password for clients
      - TV_RELAY_PW=relaypass       # CSTV password for relay proxies
      - TV_MAXRATE=0                # World snapshots to broadcast per second. Affects camera tickrate.
      - TV_DELAY=0                  # Max CSTV spectator bandwidth rate allowed, 0 == unlimited
      # Logs
      - CS2_LOG=on                  # 'on'/'off'
      - CS2_LOG_MONEY=0             # Turns money logging on/off: (0=off, 1=on)
      - CS2_LOG_DETAIL=0            # Combat damage logging: (0=disabled, 1=enemy, 2=friendly, 3=all)
      - CS2_LOG_ITEMS=0             # Turns item logging on/off: (0=off, 1=on)
    volumes:
      - /home/zahti/cs2data-1:/home/steam/cs2-dedicated  # Persistent data volume mount point inside container
    ports:
      - "27015:27015/tcp"           # TCP
      - "27015:27015/udp"           # UDP
      - "27020:27020/udp"           # UDP
    stdin_open: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated
    tty: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated
  cs2-server-2:
    image: joedwards32/cs2
    container_name: cs2-server-2
    environment:
      # Server configuration
      - SRCDS_TOKEN=token2                 # Game Server Token from https://steamcommunity.com/dev/managegameservers
      - STEAMAPPVALIDATE=0          # (0 - no validation, 1 - enable validation)
      - CS2_SERVERNAME=Competitive | STORM Esports    # (Set the visible name for your private server)
      - CS2_CHEATS=0                # (0 - disable cheats, 1 - enable cheats)
      - CS2_PORT=27015              # (CS2 server listen port tcp_udp)
      - CS2_SERVER_HIBERNATE=0      # (Put server in a low CPU state when there are no players. 0 - hibernation disabled, 1 - hibernation enabled)
      - CS2_RCON_PORT               # (Optional, use a simple TCP proxy to have RCON listen on an alternative port. Useful for services like AWS Fargate which do not support mixed protocol ports.)
      - CS2_LAN=0                   # (0 - LAN mode disabled, 1 - LAN Mode enabled)
      - CS2_RCONPW=password       # (RCON password)
      - CS2_PW=                     # (CS2 server password)
      - CS2_MAXPLAYERS=10            # (Max players)
      - CS2_ADDITIONAL_ARGS         # (Optional additional arguments to pass into cs2)
      - CS2_CFG_URL                 # HTTP/HTTPS URL to fetch a Tar Gzip bundle of configuration files/mods
      # Game modes https://developer.valvesoftware.com/wiki/Counter-Strike_2/Dedicated_Servers)
      - CS2_GAMEALIAS=competitive       # (Game type, e.g. casual, competitive, deathmatch, wingman)
      - CS2_GAMETYPE=0              # (Used if CS2_GAMEALIAS not defined)
      - CS2_GAMEMODE=1              # (Used if CS2_GAMEALIAS not defined)
      - CS2_MAPGROUP=mg_active      # (Map pool)
      - CS2_STARTMAP=de_inferno     # (Start map)
      # Bots
      - CS2_BOT_DIFFICULTY          # (0 - easy, 1 - normal, 2 - hard, 3 - expert)
      - CS2_BOT_QUOTA               # (Number of bots)
      - CS2_BOT_QUOTA_MODE          # (fill, competitive)
      # TV
      - TV_AUTORECORD=0             # Automatically records all games as CSTV demos: 0=off, 1=on.
      - TV_ENABLE=0                 # Activates CSTV on server: 0=off, 1=on.
      - TV_PORT=27020               # Host SourceTV port
      - TV_PW=tvpass                # CSTV password for clients
      - TV_RELAY_PW=relaypass       # CSTV password for relay proxies
      - TV_MAXRATE=0                # World snapshots to broadcast per second. Affects camera tickrate.
      - TV_DELAY=0                  # Max CSTV spectator bandwidth rate allowed, 0 == unlimited
      # Logs
      - CS2_LOG=on                  # 'on'/'off'
      - CS2_LOG_MONEY=0             # Turns money logging on/off: (0=off, 1=on)
      - CS2_LOG_DETAIL=0            # Combat damage logging: (0=disabled, 1=enemy, 2=friendly, 3=all)
      - CS2_LOG_ITEMS=0             # Turns item logging on/off: (0=off, 1=on)
    volumes:
      - /home/zahti/cs2data-2:/home/steam/cs2-dedicated  # Persistent data volume mount point inside container
    ports:
      - "27115:27015/tcp"           # TCP
      - "27115:27015/udp"           # UDP
      - "27120:27020/udp"           # UDP
    stdin_open: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated
    tty: true # Add local console for docker attach, docker attach --sig-proxy=false cs2-dedicated

Okay now the extra weird part. Both servers actually do look like they are running:

This is expected. What you are seeing in the server logs is the inside port binding. Remember there is this mapping going on between the outside host port and the inside container port

Is there a way to get them both to show up on the LAN tab in the server browser?

I'm not sure how the LAN discovery works in CS2.
I think you will find that you can connect to both servers from the client if you issue the connect command from the CS2 developer console.
connect $ip:$port; password $password
For example
connect 10.0.0.30:27015; password changeme

I'm not sure how the LAN discovery works in CS2.
I think you will find that you can connect to both servers from the client if you issue the connect command from the CS2 developer console.
connect $ip:$port; password $password
For example
connect 10.0.0.30:27015; password changeme

Exactly! This is how I connected yesterday - thanks for the info though. I will keep playing around with it.
Note: If I have Online accesiblity enabled, I can actually see both servers independently in the Online tab of the server browser. However, the LAN tab only shows the first one (27015). Quite strange, but just wanted to mention it.
Also, I am noticing backwards functionality of the CS2_LAN variable to what I would expect. I'll double check this later with some examples and post a new issue for that if it turns out to be correct.

@joedwards32 just curious, there is no way to re-use downloaded game client between instances? So, each game instance must have own 40gb client in its own volume?

They could possibly share a volume, but I haven't ever tested that.
Something like overlayfs could potentially be used to layer a writeable layer per container on top of a base layer containing a snapshot of the game.

Is there a way to get them both to show up on the LAN tab in the server browser?

Hi, I haven't tested it myself, but back in Counter-Strike: Source, only a few ports next to 27015 get scanned automatically.
On the cs2-2 port mapping, try:
  cs2-server-2:
...
    ports:
      - "27016:27015/tcp"           # TCP - NOTE: Host side of the port mapping has changed to avoid port collisions
      - "27016:27015/udp"           # UDP - NOTE: Host side of the port mapping has changed to avoid port collisions
      - "27021:27020/udp"           # UDP - NOTE: Host side of the port mapping has changed to avoid port collisions

authors: joedwards32 subnetz yuriizinets zahti


text:
Unable to generate @JsonIgnoreProperties(ignoreUnknown = true) in POJO from json

We're using jsonchema2pojo maven plugin to generate POJOs at the build (compile) time from json-schema based files. Code has to be immune against new fields (aka properties) introduced at "the other end" by the third parties. Common solution is to use JsonIgnoreProperties annotation at the class level of POJOs. Is it possible to introduce corresponding field to json schema to be able to generate that annotation at the compile time? I tried to use  "additionalProperties": false, did not help. Thanks beforehand!

Hi.
You can either

Set this as a deserialization feature on your Jackson ObjectMapper (see FAIL_ON_UNKNOWN_PROPERTIES in the jackson-databind wiki)

or

Omit the additionalProperties rule from your schema. By default additionalProperties are allowed, and hence a map is created on your class to hold them. Values of unrecognized properties will be added there, and will not cause the deserialization to fail.

authors: bobchinski joelittlejohn


text:
Add tooltip with html title to headers on the admin conversations das…

Hi!
According to #796
This PR does the following;
Add a title HTML attribute to the two headers(replied and email) explaining what they do.

The HTML title attribute appears as a tooltip when hovering the element. Use the following titles:
REPLIED? - The developer has replied to this conversation.
EMAIL? - The developer mentioned an email address in a reply.

Also I added i18n to EN.yml under keys: email_tooltip and replied_tooltip
What are your thoughts?
Greetings!

Pull request checklist

[ ] My code contains tests covering the code I modified

[ ] I linted and tested the project with bin/check

[ ] I added significant changes and product updates to the changelog

OK, this is good to merge. Thanks for your contribution, @franlocus!
Before we wrap up:

Do you have a RailsDevs profile? If so, send me a link so I can mark you as a source contributor.
What is your PayPal/Venmo/Zelle account so I can send you the $25 bounty?

Feel free to email me the answers if you don't want to post them publicly here.

Confirmed: $25 bounty sent to @franlocus!

Received!
Thank you @joemasilotti.

authors: franlocus joemasilotti