text:
exposed some data

Version
v1.4.2
Reproduction link
http://no-link
Steps to reproduce
I think I found an unsafe factor when I typed '$nuxt' into the console that exposed some data, like the store, all the router and configurations, or whether it could be encapsulated like the vueJs
What is expected ?
No relevant data is displayed
What is actually happening?
when I typed '$nuxt' into the console that exposed some data
Additional comments?
I don't know if this is a loophole. Forgive my poor English,

This bug report is available on Nuxt community (#c7701)

Related: https://github.com/nuxt/nuxt.js/issues/3132#issuecomment-377366437

This reference (to the root instance) is needed to emit the triggerScroll event which is important for the scrollBehavior of the app.
If someone finds a better way to provide such an interface while not leaking that much data, we'd surely accept a PR for it.
But as everyone can simply set breakpoints in the browser and inspect variables, code ("obfuscated") and state, this shouldn't be a severe issue.

I dont think its issue.  Everything that is on client can be debugged, there no real way to protect what u pass to client

Exactly. It is the programmer's responsibility to not leak anything clientside. Any secrets should be handled serverside and returned clientside without leaking those secrets.
Nothing is stopping a visitor on your site to just run breakpoints on variables and exposing those secrets otherwise 🙂.

To be fair, normally I am the one who says 'obscurity is not security' but this time I disagree with the above opinions that we shouldnt hide it because there are other ways to get the data. The fact that there are other ways doesnt mean we should make it easy for wrong-doers.
And yes, to obscure certainly doesnt mean its secure but obscuring is still a completely valid technique to at least lower the attack surface.
We could go in to lengthy discussions about this, but that would take much more of everyone's time then just fixing this issue. We can use the amazing power of javascript scopes to only expose the nuxt features on the window object we really need :grinning:
// App.js
      window.nuxtTriggerScroll = () => {
        this.$nextTick(() => {
          this.$emit('triggerScroll')
        })
      }
      window.nuxtListenScroll = (fn) => {
        this.$once('triggerScroll', fn)
      }

Removing window.$nuxt does break the e2e browser tests as those require the window.$nuxt object. So probably it would be best to either still add window.$nuxt but only in development mode or the e2e browser tests need to be rewritten.

So basically obscuring will protect sites that have exposed something they shouldnt from script kiddies?

Well its not black or white of course but in general I would say yes.
In this case there is also the difference between getting the static data and providing a functioning low-level API. Actually, I think I could even make a strong case for this issue to be a major security issue. Luckily nowadays browsers provide a lot of protection against cross-frame scripting attacks, but lets say you have a webshop written in Nuxt with an advertisement component through an iframe. If a user visting that webshop uses an old browser that lacks csf protection an attacker has access to the full $nuxt Vue-component and its children and can overwrite a lot of properties/methods or inject new VueRouter routes etc. Of course, there are also otherways maybe to do this but $nuxt should be protected as much as possible from direct access.
Only expose features to the global scope if you really need to, otherwise keep them in a local scope.
I mean, I guess there is a reason Vue DevTools only work in development mode and not in production ;)

Offtopic: Its annoying I cant hide my commit mistakes anymore, it took me 3 tries to get $nuxt in the commit message ;)

authors: aldarund fengjiel manniL pimlie tolgap


text:
Translations not working when using nuxt-i18n with nested routes

Version
v2.1.0
Reproduction link
https://github.com/begueradj/nuxti18n-with-nested-routes
Steps to reproduce
Clone my repo and folow the easy steps described in README file:
https://github.com/begueradj/nuxti18n-with-nested-routes/blob/master/README.md
What is expected ?
I expect the translations to work on every path:

http://localhost:3000/
http://localhost:3000/1
http://localhost:3000/1/city/
http://localhost:3000/1/city/7

What is actually happening?
Translations work only on the last route:

http://localhost:3000/1/city/
http://localhost:3000/1/city/7

They do not work on parent routes:

http://localhost:3000/
http://localhost:3000/1

Additional comments?
When I do not use nested routes, translations work fine with nuxt-i18n

This bug report is available on Nuxt community (#c7944)

Here are the routes (defined in /pages folder):

.
├── index
│   ├── _choice
│   │   ├── city
│   │   │   └── _zipCode.vue
│   │   ├── city.vue
│   │   └── city.vue~
│   └── _choice.vue
├── index.vue
└── index.vue~

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
install nuxt_webpack@2.10.2 tip Cannot convert undefined or null to object

I npm install auto upgrade to nuxt_webpack@2.10.2,and I  npm run dev than tip error Cannot convert undefined or null to object,does any one meat this error?

This question is available on Nuxt community (#c9971)

你解决了吗兄戴？

有解决么?


text:
Icons not rendering on production build when mounting

Environment
Nuxt project info:

Operating System: Linux
Node Version:     v20.15.1
Nuxt Version:     3.13.2
CLI Version:      3.13.2
Nitro Version:    2.9.7
Package Manager:  bun@1.1.8
Builder:          -
User Config:      experimental, runtimeConfig, build, devtools, nitro, routeRules, plugins, modules, eslint, pinia, site, delayHydration, i18n, icon, app, content, svgo, sitemap, googleFonts, image, mdc, htmlValidator, compatibilityDate
Runtime Modules:  @nuxt/ui@2.18.4, @nuxt/image@1.8.0, @nuxt/content@2.13.2, @nuxt/eslint@0.5.7, @nuxtjs/google-fonts@3.2.0, @nuxtjs/fontaine@0.4.3, @nuxtjs/i18n@8.5.5, @nuxtjs/mdc@0.8.3, @nuxtjs/sitemap@6.1.0, @nuxtjs/html-validator@1.8.2, nuxt-delay-hydration@1.3.8, nuxt-svgo@4.0.6, @vueuse/nuxt@11.1.0, @vueuse/motion/nuxt@2.2.5, @pinia/nuxt@0.5.4, @nuxthq/studio@2.0.3, @nuxt/icon@1.5.1, @formkit/auto-animate/nuxt@0.8.2
Build Modules:    -

Reproduction
Github to reproduction: https://github.com/hoachnt/hoachnt-web
Describe the bug
I don't know what problem is. I try to fix this bug 2 months and think that problem is in nuxt. And yep I saw in the official website of nuxt has same problem
Additional context
No response
Logs
No response

Hello :wave: can you provide a minimal reproduction please  ?

Hello 👋 can you provide a minimal reproduction please ?

Reproduction link

Hello 👋 can you provide a minimal reproduction please ?

Reproduction link. But u need to build project and run preview to see sometimes icons are just not rendring. I can't provide u a minimal reproduction, cause it works in minimal project reproduction

let's track in https://github.com/nuxt/icon/issues/259

let's track in nuxt/icon#259

Oh yeah, Thanks

authors: danielroe hoachnt huang-julien

repo: nuxt/nuxt


text:
default/global slugify options

Hi this works great in nuxt3 - quick q, is it possible to set global options? I'm using $slugify(data.name, { lower: true, strict: true }) but I'd prefer to make that the global default. I tried adding a slugify options object to the config but no joy. cheers!

Now you can do it from the module settings. Anyway, I need to do more research on developing modules for Nuxt 3 because I still don't know how to migrate to Nuxt Kit.

thank you so much! that works great and is much cleaner :)

FYI I just updated nuxt from 3.0.0-rc.4 to 3.0.0-rc.6 and it now issues a warning
[warn] [nuxt] You are using a plugin with legacy Nuxt 2 format (context, inject) which is likely to be broken. In the future they will be ignored: (_, inject) => {

        inject('slugify', (string, options) => {
                return __vite_ssr_import_1__.default(
                        string,
                        {
                                ...JSON.parse('{"lower":true,"strict":true}'),
                                ...options,
                        }
                )
        })
}

@blackspike I made a new module from scratch to learn and practice with Nuxt Kit. Try uninstalling this module and installing the new one: nuxt-slugify. If you have any problem just let me know 👌

Oh great! Hmm it installs and works fine, except it's not always respecting my global lowercase settings ?

Ok, I will try to fix that problem in a moment.  Thanks for your feedback!

@blackspike Hmm, I'm trying that but it works fine for me. Can you show me how you are using the $slugify function?

oh! my bad, I was just getting you code and I realised the heading that was correct was h3.meta__title {{ $slugify(data.name) }} and the dropdown that was incorrect was span.results__name {{ slugify(item.name) }} – I'd missed the $ on the incorrect one, and while it was slugged, it wasn't lowercase, mystery solved! Many thanks :)

Oh, anyway did an update fixing an issue with typescript and also added a composable useSlugify to use in the script.

nice! how do you use useSlugify?

Check the Readme in the new module repository

oh yeah. That works great, I've updated my project to useSlugify throughout. Thanks a million !

Cool! Thanks a lot for your feedback too. If you have any suggestion for a module just let me know :)

Me again! Just installed it ("nuxt-slugify": "^1.1.0",) on my other laptop and it's throwing this error
I've cleared the npm cache, deleted and re-installed etc. Any ideas?
Uncaught SyntaxError: import not found: default in http://localhost:3000/_nuxt/node_modules/nuxt-slugify/dist/runtime/plugin.mjs
And in that file
import { defineNuxtPlugin, useRuntimeConfig } from "/_nuxt/@id/virtual:nuxt:/Users/xxx/.nuxt/imports.mjs";
import slugify from "/_nuxt/node_modules/slugify/slugify.js?v=373d7f60";
export default defineNuxtPlugin(() => {
  const {
    slugify: { extend, defaults }
  } = useRuntimeConfig();
  if (Object.keys(extend).length) {
    slugify.extend(extend);
  }
  return {
    provide: {
      slugify: (string, options) => {
        if (typeof options === "string") {
          options = {
            replacement: options
          };
        }
        return slugify(string, { ...defaults, ...options });
      }
    }
  };
});

authors: blackspike imlautaro

repo: nuxtclub/slugify


text:
Add primary & gray colors to generated tailwind config with rgb functions

Is your feature request related to a problem? Please describe.
Not a problem but more of a suggestion. I think adding the primary & gray colors to the default twConfig would help. I see where the --color-primary-[NUMBER] is added to the css :root via the colors plugin. adding this to the tailwind config with the rgb color function would be nice(https://tailwindcss.com/docs/customizing-colors#using-css-variables). That way we can do stuff like text-color-primary-500 in our markup.
Describe the solution you'd like
Here is what I am doing currently. I add this to the theme.extend.colors object
//...
        "color-primary-50": "rgb(var(--color-primary-50) / <alpha-value>)",
        "color-primary-100": "rgb(var(--color-primary-100) / <alpha-value>)",
        "color-primary-200": "rgb(var(--color-primary-200) / <alpha-value>)",
        "color-primary-300": "rgb(var(--color-primary-300) / <alpha-value>)",
        "color-primary-400": "rgb(var(--color-primary-400) / <alpha-value>)",
        "color-primary-500": "rgb(var(--color-primary-500) / <alpha-value>)",
        "color-primary-600": "rgb(var(--color-primary-600) / <alpha-value>)",
        "color-primary-700": "rgb(var(--color-primary-700) / <alpha-value>)",
        "color-primary-800": "rgb(var(--color-primary-800) / <alpha-value>)",
        "color-primary-900": "rgb(var(--color-primary-900) / <alpha-value>)",
        "color-primary-950": "rgb(var(--color-primary-950) / <alpha-value>)",

        'color-gray-50': 'rgb(var(--color-gray-50) / <alpha-value>)',
        'color-gray-100': 'rgb(var(--color-gray-100) / <alpha-value>)',
        'color-gray-200': 'rgb(var(--color-gray-200) / <alpha-value>)',
        'color-gray-300': 'rgb(var(--color-gray-300) / <alpha-value>)',
        'color-gray-400': 'rgb(var(--color-gray-400) / <alpha-value>)',
        'color-gray-500': 'rgb(var(--color-gray-500) / <alpha-value>)',
        'color-gray-600': 'rgb(var(--color-gray-600) / <alpha-value>)',
        'color-gray-700': 'rgb(var(--color-gray-700) / <alpha-value>)',
        'color-gray-800': 'rgb(var(--color-gray-800) / <alpha-value>)',
        'color-gray-900': 'rgb(var(--color-gray-900) / <alpha-value>)',
        'color-gray-950': 'rgb(var(--color-gray-950) / <alpha-value>)',
//...

Describe alternatives you've considered
N/A
Additional context
N/A

@BayBreezy Have you looked at the module code? https://github.com/nuxtlabs/ui/blob/dev/src/module.ts#L81

😱 I didn't see it. Thanks. Gonna check it out.

authors: BayBreezy benjamincanac

repo: nuxtlabs/ui


text:
🛑 NVIDIA AI Enterprise Hub is down

In 0ac1f5d, NVIDIA AI Enterprise Hub (https://nvaie.lab.novaglobal.com.sg) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NVIDIA AI Enterprise Hub is back up in 12cb612.

repo: nvgsg/lab-upptime


text:
🛑 Kubeflow ML Platform is down

In c20a2f2, Kubeflow ML Platform (https://kubeflow.lab.novaglobal.com.sg) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Kubeflow ML Platform is back up in 0874366.


text:
🛑 NVIDIA AI Enterprise Hub is down

In 6ab9d97, NVIDIA AI Enterprise Hub (https://nvaie.lab.novaglobal.com.sg) was down:

HTTP code: 0
Response time: 0 ms

Resolved: NVIDIA AI Enterprise Hub is back up in 01debbe.


text:
🛑 PufferAI HPC Portal is down

In c5cc79f, PufferAI HPC Portal (https://hpc.lab.novaglobal.com.sg) was down:

HTTP code: 0
Response time: 0 ms

Resolved: PufferAI HPC Portal is back up in e8f00ac.


text:
Detect version from path

The Field System Makefile post version 9.13.0 detect the version number based on the path. This needs to be supported for this library.

Fixed in 67c2648

repo: nvi-inc/fsgo


text:
pip.log.logger is gone

The following code does not work anymore with current pip, but I am not sure about how to fix
it.
See https://github.com/pypa/pip/commit/767d11e where it has been removed.
diff --git i/piptools/scripts/compile.py w/piptools/scripts/compile.py
index 2903535..5c56dec 100755
--- i/piptools/scripts/compile.py
+++ w/piptools/scripts/compile.py
@@ -37,8 +37,8 @@ def setup_logging(verbose):
     logger.addHandler(handler)
     logger.setLevel(level)

-    from pip.log import logger as pip_logger
-    pip_logger.consumers.append((pip_logger.VERBOSE_DEBUG, lambda msg: logger.debug('PIP said: ' + msg)))
+    # from pip.log import logger as pip_logger
+    # pip_logger.consumers.append((pip_logger.VERBOSE_DEBUG, lambda msg: logger.debug('PIP said: ' + msg)))

Fixed via https://github.com/nvie/pip-tools/pull/126.

repo: nvie/pip-tools


text:
Windows 11: telescope-fzf-native.nvim build failed

Describe the bug
On Windows 11 after cloning this repo to ~\AppData\Local\nvim and starting from a Developer Powershell VS2022 (to have access to CL.exe, etc.), I get the following error message during initial installation:
Failed (1)
○ telescope-fzf-native.nvim
Der Befehl "make" ist entweder falsch geschrieben oder
konnte nicht gefunden werden.
Telescope then wont work. make.exe is not available in Windows Developer Powershell 2022. What are my options here?
To Reproduce
Steps to reproduce the behavior:

Install nvim
Open terminal with "Developer Powershell for VS2022" (VS 2022 must be installed)
Navigate to ~\AppData\Local
Optionally, clean any previous installation: rm -r -fo nvim ; rm -r -fo nvim-data
git clone https://github.com/nvim-lua/kickstart.nvim.git nvim
Start nvim

Desktop (please complete the following information):

OS: Windows 11 22H2 (Build 22621.1413)
Terminal: Windows Terminal using Developer Powershell for VS2022

** Neovim Version **
:version
NVIM v0.9.0-dev-1175+g89a525de9
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe /MD /Zi /O2 /Ob1  -W3 -wd4311 -wd4146 -DUNIT_TESTING -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_WIN32_WINNT=0x0602 -DMSWIN -DINCLUDE_GENERATED_DECLARATIONS -ID:/a/neovim/neovim/.deps/usr/include/luajit-2.1 -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/build/src/nvim/auto -ID:/a/neovim/neovim/build/include -ID:/a/neovim/neovim/build/cmake.config -ID:/a/neovim/neovim/src -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include
      System-vimrc-Datei: "$VIM\sysinit.vim"
 Voreinstellung für $VIM: "C:/Program Files (x86)/nvim/share/nvim"

Run :checkhealth for more info

Sorry, my bad. I just saw the note on the bottom of README.MD regarding telescope-fzf-native.nvim on windows. Closing this.


text:
How to close neo-tree after selecting a file?

Hello,
When selecting a file I want to close neo-tree automatically.
Is there a way, option?
Thanks.

How was this solved? 🤔

How this was solved?

authors: druidamix rtalexk


text:
[refactor]: Move to downloader

Instead of doing manual reqwest calls we may want to use an abstracted library like downloader, which give progress callbacks and handy utilities.

our CLI is decent enough as is, this should be considered way past 1.0 (maybe even 2.0 :p)

repo: nvim-neorocks/rocks


text:
fix(platform): remove Ord instance of PlatformIdentifier

It really shouldn't have an Ord instance.
I'm not sure about how we sort platforms by specificity (see the comment I added).

🤔 We should probably group and filter the platforms that can be sorted...

Is there a very concrete problem that could occur here? As long as there isn't I believe we'll be fine (famous last words). Or, in other words, as long as the more specific matches appear before the less specific matches, we don't really care about what order the rest will be in, right?

Is there a very concrete problem that could occur here? As long as there isn't I believe we'll be fine (famous last words). Or, in other words, as long as the more specific matches appear before the less specific matches, we don't really care about what order the rest will be in, right?

The problem is that we don't have control over the order in which the rockspec specifies the platform overrides.
If it has non-orderable platforms between the orderable ones, we can't sort them properly.

Perhaps we really should then partition the vector into specialized platforms and the regular platforms and just chain them together after the fact (such that the specialized platforms are guaranteed to be at the front). I'm pretty sure itertools has some crazy function to do all of that in one go 😂

It ended up being a lot simpler :smile:

source: gharchive/pull-request

authors: mrcjkb vhyrro


text:
Is it possible to use touchscreen to scroll?

I want to use it on my linux tablet. But I found, it seems doesn't scroll? Is it my system setting problem, or there is no such a function?

Some people use it on touch devices, but I have no single one to check how it works. Just give it a try.

authors: lVentus nwg-piotr

repo: nwg-piotr/nwg-drawer


text:
「评论」产品供应

页面：https://nwuzmedoutlook.github.io/ty/00/

ff

db

repo: nwuzmedoutlook/newdac-comments


text:
hyperpay:compileDebugKotlin

Hello Hello,
Once I pub get the package I got this error:
hyperpay:compileDebugKotlin FAILED
Any idea why?

SOLVED:
In the android project  go to File->Project Structure->select Dependency -> select hyperpay -> press + icon -> select Module Dependency -> select oppwa.mobile

repo: nyartech/hyperpay


text:
Feature request: Compability with IntelliJ 2023.1

Hi Evgeniy,
Iam using your plugin for IntelliJ and it is really helpful :-)
Sadly it is not compatible with the intelliJ version 2023.1 anymore.
Would you be willing to add the compability for it?
Current behavior
The plugin is compatible with the IntelliJ versions 2021.3 up to 2022.3.3.
Feature Request
The plugin is compatible with the IntelliJ versions 2023.1.X

Having the same issue, any news on this?
Or did you find another solution @philippmaurer?

authors: Terrijoo philippmaurer


text:
Create a styling Milestone

There are no exercises for it ATM so this seems like more work

@kirjs  what needs to be covered in this styling milestone? inline, external, host, deep? I can take a crack at this.

authors: barlanj kirjs

repo: nycJSorg/angular-presentation

license_source: bigquery


text:
fixed highlight to highlight parameter instead!

Quick Fix relate to issue #400

pls resolve conflicts

authors: RingoKam kirjs


text:
account for border-width in medium toolbar

Before:

After:

:+1:

It's visually awkward to put the down arrow between two buttons. I'd suggest moving it to the second permanently.

@cruzanmo Also, do you want a "A1" svg for the button with a font that matches the others?

authors: amycheng cruzanmo gloddy

repo: nymag/clay-kiln

license: mit


text:
Migrate from Drone Cloud to Actions

Migrating from Drone Cloud to Actions.
DOCKERHUB credentials are associated with nytoss account.
SLACK_WEBHOOK_URL is currently configured to post messages on #dv-notifications channel.

We should remove the .drone.yml as part of the PR, otherwise both Actions and Drone will try and build/push the image when this is merged.

@tonglil @montmanu can you please check this pull request and let us know in case any changes are required?
Thanks,
Prathamesh

@montmanu can you please check again when you get a chance?

@dgrizzanti @grantmiillernyt as discussed added a login skip step for the pull request event.

authors: dgrizzanti prathameshnyt

repo: nytimes/drone-gae


text:
Dockerize project

Setup the Docker on project for minimizing requirements.

#25


text:
Fix bug with VM run once.

When run VM with Run Once and three bootable devices, legacy detail page will fail.
It fail because from Engine app got three devices instead of two. This is because when user start VM with Run Once, user can choose bootable devices and if user choose all three, it cause fail in VM Portal.
Fixes: https://github.com/oVirt/ovirt-web-ui/issues/788

Hello contributor, thanks for submitting a PR for this project!
I am the bot who triggers "standard-CI" builds for this project.
As a security measure, I will not run automated tests on PRs that are not from white-listed contributors.
In order to allow automated tests to run, please ask one of the project maintainers to review the code and then do one of the following:

Type ci test please on this PR to trigger automated tests for it.
Type ci add to whitelist on this PR to trigger automated tests for it and also add you to the contributor white-list so that your future PRs will be tested automatically.
If you are planning to contribute to more than one project, maybe it's better to ask them to add you to the project organization, so you'll be able to run tests for all the organization's projects.

@bond95 from the fix and the PR message, it's not clear to me why it failed. Can you add a little detail to the message?

@bond95 why does 3 fail it but 2 does not? (what's magic about the number 3?)

ci add to whitelist

@gregsheremeta 3? I see only 2 checks.

@gregsheremeta 3? I see only 2 checks.

What I meant was, you wrote "user can choose bootable devices and if user choose all three, it cause fail in VM Portal." -- but I did not understand why three makes it fail.
(The answer is because 2 are hardcoded in the UI.)

authors: bond95 gregsheremeta ovirt-infra

repo: oVirt/ovirt-web-ui


text:
Custom intervals do not work

Describe the bug
When trying to set any interval that isn't the default ones it fails with error "invalid interval"
Reproduction steps

Set an interval that isn't one of the default ones
Get error

Expected behavior
Custom intervals should work and not error
Additional context
I've tried all kinds of cronstrue intervals and none of them will stick

You need to give a cron expression. For example 0 4 * * *.

Ah, I assumed it would be able to parse it from human readable to cron expression.

It will translate to human-readable format but not the other way :)

authors: oae vodkapmp

repo: oae/kaizoku


text:
Question - Possible to change number of columns / rows

Hey, I realize this is out of scope of a chessboard, but I wanted to ask you how easy do you think it would be to modify the code to allow for more columns and rows?
I want to take a chessboard, generate a random map of green and blue tiles, and use it for a tabletop / mini simulator.
I am going to try to integrate this with slack.
Again, I know this is out of scope of your project, but just figured i'd ask you before I forked.

I don't know what you mean by "tabletop / mini simulator"
Creating a random board of NxN squares shouldn't be too difficult with a little HTML + CSS + JS knowledge. I'm not even sure I would fork chessboard.js for that purpose.

Casablanca chess has 10x10 board and two more pieces
El 17/12/2015 19:47, "Chris Oakman" notifications@github.com escribió:

Closed #114 https://github.com/oakmac/chessboardjs/issues/114.
—
Reply to this email directly or view it on GitHub
https://github.com/oakmac/chessboardjs/issues/114#event-495028055.

authors: bokybanton jdell64 oakmac

repo: oakmac/chessboardjs


text:
feat: added help centre banner to new units page

Description

Help centre banner was accidentally written over by unit modal work on the curriculum units page

How to test

Go to https://deploy-preview-1962--oak-web-application.netlify.thenational.academy
Click on _______
You should see _______

Screenshots
How it used to look (delete if n/a):
{screenshots}
How it should now look:
{screenshots}
Checklist

[ ] Added or updated tests where appropriate
[ ] Manually tested across browsers / devices
[ ] Considered impact on accessibility
[ ] Design sign-off
[ ] Approved by product owner

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

authors: oak-machine-user sonalisin

repo: oaknational/Oak-Web-Application


text:
fix: do not define components inline

Description

Fixes a sonar complaint about defining components inline

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

authors: oak-machine-user stefl

repo: oaknational/oak-ai-lesson-assistant


text:
New changelog page

Today, I made a new changelog page that looks so nice than just the .md file:

I think it would be nice to setup Github pages and host the changelog page, but do we need this? (this issue is just a suggestion)
The JSON file is needed for that to work, but it shouldn't be hard work.
Example of the JSON file:
{
  "groups": [
    {
      "display_name": "ezpp!",
      "name": "ezpp",
      "featured": true,
      "color": "#2ea",
      "entries": [
        {
          "version": "v1.10.2",
          "date": "2021-03-23T21:10:39Z",
          "entries": [
            {
              "category": "User Interface",
              "message": "Fix a bug which caused all the text to disappear in some cases (ezpp#92)",
              "author": "oamaok"
            }
          ]
        }
      ]
    },
    {
      "display_name": "libezpp",
      "name": "libezpp",
      "featured": false,
      "color": "#86e",
      "entries": [
        {
          "version": "1.0.0",
          "date": "2021-03-26T20:37:45Z",
          "entries": [
            {
              "category": "Misc",
              "message": "Initial release to reserve the name in the npm registry. Includes a basic beatmap parser.",
              "author": "oamaok"
            },
            {
              "category": "Misc",
              "message": "Initial commit, add API draft",
              "author": "oamaok"
            },
            {
              "category": "Misc",
              "message": "Add initial version of beatmap parser (libezpp#3)",
              "author": "oamaok"
            },
            {
              "category": "Misc",
              "message": "Initial release (libezpp#4)",
              "author": "oamaok"
            }
          ]
        }
      ]
    }
  ]
}

edit(2021/03/29): Updated image and json

Looks nice! I'm pretty sure the generation of the changelog could be automated, just based on the pull request titles and authors from git history. We wouldn't also need to host it on github pages necessarily, as you can include static websites inside the extension. This would increase the package size of the extension, which I would like to keep relatively small.
I'll come back to this later.

Example page: https://next.acrylicstyle.xyz/ezpp.html
and JSON: https://next.acrylicstyle.xyz/api/ezpp-changelog.json

I implemented the automated changelog generation with GitHub App (bot), with some commands: https://github.com/acrylic-style/ezpp-bot

authors: acrylic-style oamaok

repo: oamaok/ezpp


text:
Support HDR Texture Loader

Is your feature request related to a problem? Please describe.
HDR Texture Loader needed in IBL
Describe the solution you'd like

add AssetType.HDR in ResourceManager

engine.resourceManager
    .load<TextureCubeMap>({
       url: "https://gw.alipayobjects.com/os/bmw-prod/59b28d9f-7589-4d47-86b0-52c50b973b10.bin", // footPrint_2K
       type: AssetType.HDR
    }).then(cubeMap => {...})

Supported in https://github.com/oasis-engine/engine-baker

repo: oasis-engine/engine


text:
Improved JSON handling

Removed python-version-specific code, since it didn't do anything.  Allow the "json=" kwarg to _HTTPConnection.post(), for a simpler way of posting JSON which leverages the requests library's builtin capabilities.  Fixes #46 .

Codecov Report

Merging #47 into master will increase coverage by 0.05%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #47      +/-   ##
==========================================
+ Coverage   95.59%   95.65%   +0.05%
==========================================
  Files           2        2
  Lines         704      713       +9
==========================================
+ Hits          673      682       +9
  Misses         31       31

Impacted Files
Coverage Δ

taxii2client/test/test_client.py
100% <100%> (ø)
:arrow_up:

taxii2client/__init__.py
91.71% <100%> (+0.02%)
:arrow_up:

Continue to review full report at Codecov.

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

Thank you, @chisholm! I'm okay leaving the option to use json= in _HTTPConnection.post() since the docstring states that it must be given JSON-serializable objects. We should generally prefer using data= though.

authors: chisholm clenk codecov-io

repo: oasis-open/cti-taxii-client


text:
e2e regression tests: HTTP caching proxy, new cases

This PR expands our e2e testing capabilities; the motivation is the upcoming support for partial verifications in Sourcify.
The changes are:

A new caching HTTP proxy is introduced, based on our existing KVStore. It allows e2e tests to cache HTTP responses (e.g. from sourcify) on an initial run, and then replay them deterministically on every subsequent run.

Small refactor: KVStore and the new proxy are moved to a dedicated package.

The evmverifier analyzer is now included in e2e tests, using the new proxy.

The PR also includes two new db__* test cases that aim to capture the "derived" columns of txs and events, notably the ABI-parsing results.
Despite that, there are no diffs between before and after evmverifier. Our current e2e block range does not engage with any contracts that are fully verified :grimacing:
This will hopefully change when #627 lands and re-introduces a Damask range, and will certainly change when we support partially-verified contracts (though minimally; there's only 1 partially verified contract that this e2e block range interacts with.

The item analyzer sleep logic has changed a little. The old stop_on_empty_queue has been replaced with a duration-based flag ("exit only if the queue has been empty for N seconds"). This is helpful for item analyzers that interact with each other.

accessing this cache over HTTP, can you talk about this
in existing code that does similar, there's a Go interface and a caching implementation of that

can we switch to a mockable http client later

Yeah I'm totally OK with that. Right now the http proxy is only being used for sourcify, and it's a low enough number of requests that we could mock them more explicitly. FWIW, the caching proxy achieves pretty much the same effect, with the debugging downside that it's a lot harder to see the cached/mocked responses.

what's the item analyzer exit delay for? is there a new test that relies on it?
new config api can't say to do what we did before, you instead have to set a very small delay

what's the item analyzer exit delay for? is there a new test that relies on it?

Yeah the e2e. We ideally would want to run in 3 stages ...
https://github.com/oasisprotocol/nexus/pull/633#discussion_r1498319871
evm_abi_emerald:               { stop_if_queue_empty_for: 10s } # Give evm_contract_verifier time to fetch ABIs first. The 10s has been enough in practice, but might need to be tuned in the future, especially if the caching proxy has an empty cache.

new config api can't say to do what we did before, you instead have to set a very small delay

True. I worried about it a little at first, but then decided it's just an aesthetic problem, not a functional one. And it only applies to testing. So screw it.

After rebasing on top of #627 and debugging, I realized that our internal Damask Emerald node is currently having issues. I therefore disabled the Emerald part of the new Damask e2e test. This version of this PR still makes e2e tests usefully more comprehensive to help with merging #634.

authors: mitjat pro-wh

repo: oasisprotocol/nexus


text:
Update documentation related to runtime parameters

There have been some runtime parameter changes in master (e.g. #3689) which require documentation updates as the examples are no longer up to date.

This was done as part of #3903.

repo: oasisprotocol/oasis-core


text:
Faraday::RackBuilder::StackLocked: can't modify middleware stack after making a request

I'm using oauth2 in a sidekiq worker. Faraday 0.9.0, oauth2 from master.
The first time it runs I get this error:
Faraday::RackBuilder::StackLocked
20:50:58 workers.1 | 2014-05-07T18:50:58Z 60220 TID-ouufoa6is WARN: can't modify middleware stack after making a request
20:50:58 workers.1 | 2014-05-07T18:50:58Z 60220 TID-ouufoa6is WARN: /Users/kain/.rvm/gems/ruby-2.1.1/gems/faraday-0.9.0/lib/faraday/rack_builder.rb:199:in `raise_if_locked'
20:50:58 workers.1 | /Users/kain/.rvm/gems/ruby-2.1.1/gems/faraday-0.9.0/lib/faraday/rack_builder.rb:86:in `use'
20:50:58 workers.1 | /Users/kain/.rvm/gems/ruby-2.1.1/gems/faraday-0.9.0/lib/faraday/rack_builder.rb:203:in `use_symbol'
20:50:58 workers.1 | /Users/kain/.rvm/gems/ruby-2.1.1/gems/faraday-0.9.0/lib/faraday/rack_builder.rb:96:in `response'
20:50:58 workers.1 | /Users/kain/.rvm/gems/ruby-2.1.1/bundler/gems/oauth2-cd8a62e69cab/lib/oauth2/client.rb:89:in `request'
20:50:58 workers.1 | /Users/kain/.rvm/gems/ruby-2.1.1/bundler/gems/oauth2-cd8a62e69cab/lib/oauth2/access_token.rb:107:in `request'
20:50:58 workers.1 | /Users/kain/.rvm/gems/ruby-2.1.1/bundler/gems/oauth2-cd8a62e69cab/lib/oauth2/access_token.rb:114:in `get'

Similar problem, it was OAUTH_DEBUG=true
see https://github.com/intridea/oauth2/issues/189

I'm in version 1.4.1 and faraday 0.12.2 and still seeing this error.
2019-03-07 19:50:10 +0000: Rack app error handling request { GET  }
#<Faraday::RackBuilder::StackLocked: can't modify middleware stack after making a request>

Is there something we could do debug this further?

@lastgabs It would probably be a good idea to move to a newer release of faraday.  The gem says it is compatible with older versions of faraday, but that's only because we don't know that it is broken with them.  Old versions of faraday may well be broken!

I have the same issue with oauth2 1.4.1 and faraday 0.15.4 (as far as I can see that's the latest version). How could I help with investigating the issue?

Can you give a stack trace, or repro inside the spec suite on a fork, or try to give steps to repro in a fully-aspirated example app?

Here's my stack trace:
Puma caught this error: can't modify middleware stack after making a request (Faraday::RackBuilder::StackLocked)
/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.12.2/lib/faraday/rack_builder.rb:202:in `raise_if_locked'
/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.12.2/lib/faraday/rack_builder.rb:86:in `use'
/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.12.2/lib/faraday/rack_builder.rb:226:in `use_symbol'
/app/vendor/bundle/ruby/2.5.0/gems/faraday-0.12.2/lib/faraday/rack_builder.rb:97:in `response'
/app/vendor/bundle/ruby/2.5.0/gems/oauth2-1.4.0/lib/oauth2/client.rb:95:in `request'
/app/vendor/bundle/ruby/2.5.0/gems/oauth2-1.4.0/lib/oauth2/access_token.rb:107:in `request'
/app/vendor/bundle/ruby/2.5.0/gems/oauth2-1.4.0/lib/oauth2/access_token.rb:114:in `get'
/app/sd.rb:111:in `email_from_auth_code'
/app/sd.rb:72:in `authenticated_email'
/app/sd.rb:218:in `sd_callback'
/app/vendor/bundle/ruby/2.5.0/bundler/gems/lita-81121a81ead8/lib/lita/callback.rb:31:in `public_send'
/app/vendor/bundle/ruby/2.5.0/bundler/gems/lita-81121a81ead8/lib/lita/callback.rb:31:in `call'
/app/vendor/bundle/ruby/2.5.0/bundler/gems/lita-81121a81ead8/lib/lita/http_callback.rb:26:in `call'
/app/vendor/bundle/ruby/2.5.0/gems/http_router-0.11.2/lib/http_router.rb:193:in `process_destination_path'
(eval):89:in `call'
/app/vendor/bundle/ruby/2.5.0/gems/http_router-0.11.2/lib/http_router.rb:288:in `raw_call'
/app/vendor/bundle/ruby/2.5.0/bundler/gems/lita-81121a81ead8/lib/lita/rack_app.rb:46:in `call'
/app/http_logger.rb:15:in `call'
/app/vendor/bundle/ruby/2.5.0/gems/buffered-logger-2.0.0/lib/buffered_logger/middleware.rb:8:in `block in call'
/app/vendor/bundle/ruby/2.5.0/gems/buffered-logger-2.0.0/lib/buffered_logger.rb:30:in `start'
/app/vendor/bundle/ruby/2.5.0/gems/buffered-logger-2.0.0/lib/buffered_logger/middleware.rb:8:in `call'
/app/vendor/bundle/ruby/2.5.0/gems/bugsnag-6.6.4/lib/bugsnag/integrations/rack.rb:46:in `call'
/app/vendor/bundle/ruby/2.5.0/gems/puma-3.12.0/lib/puma/server.rb:658:in `handle_request'
/app/vendor/bundle/ruby/2.5.0/gems/puma-3.12.0/lib/puma/server.rb:472:in `process_client'
/app/vendor/bundle/ruby/2.5.0/gems/puma-3.12.0/lib/puma/server.rb:332:in `block in run'
/app/vendor/bundle/ruby/2.5.0/gems/puma-3.12.0/lib/puma/thread_pool.rb:133:in `block in spawn_thread'

We have OAuth making a request and I set ENV['OAUTH_DEBUG'] = 'true' as per the directions here. Let me know if there's anything else I can provide to make it easier to debug.

Hi @pboling,
I've checked the repo and found that https://github.com/oauth-xx/oauth2/pull/294 is missing in 1.4.1 release. I've added that test and was able to reproduce the issue.
Adding that test to 1-4-stable with a change I made a comment about in https://github.com/oauth-xx/oauth2/pull/294 reproduces the issue exactly as I'm seeing it.

@gafrom do you have any ideas about this, as you worked on something related in #294 ?

i removed from the faraday gem follow line (https://github.com/lostisland/faraday/blob/master/lib/faraday/rack_builder.rb#L165) and it fix for me

@pboling, as far as I can see - the fix cd104e84485b6185f1cac49b2f4b6ae2520e670f was set to be added to the 1.5.0 milestone. And sure I do not see fixed client.rb in v1.4.1.
So, unsurprisingly, @lastgabs is still experiencing the issue.

@galois17 That makes sense!  @lastgabs @syakovyn @masterkain Would you be able to try using the master branch to see if the issue is resolved?  We're still working toward a new major release.

updates?

@BrunoQuaresma See the comment above yours.  We are waiting on feedback from the community.  If you are using master branch this should no longer be an issue.  Please verify if that is the case for you!

Within a week, this issue will be closed so we can move forward with the 2.0.0 release, if there is no negative feedback.

thanks @pboling

authors: BrunoQuaresma alepore gafrom lastgabs markfrst masterkain pboling syakovyn


text:
list.eo:207-210: The object does not work. After moving...

The puzzle 3251-7a787eb5 from #3251 has to be resolved:
https://github.com/objectionary/home/blob/65216e7a3704bb953057f0080f2c2a5617639886/objects/org/eolang/structs/list.eo#L207-L210
The puzzle was created by @yegor256 on 29-Oct-24.
Estimate: 30 minutes,  role: DEV.
If you have any technical questions, don't ask me, submit new tickets instead. The task will be "done" when the problem is fixed and the text of the puzzle is removed from the source code. Here is more about PDD and about me.

The puzzle 3251-7a787eb5 has disappeared from the source code, that's why I closed this issue.

repo: objectionary/home


text:
feat(#232): Remove Code Duplication in DirectivesMethod Class

Remove code duplication in DirectivesMethod class. Add Operand and DirectivesLabel classes.
Closes: #232.

feat(#232): replace 'label' method with 'DirectivesLabel' class
feat(#232): replace duplicated method with Operands class usage
feat(#232): remove duplicated method
feat(#232): fix all qulice suggestions

PR-Codex overview
Detailed summary

Added MIT License header to DirectivesLabel class.
Removed unused import statement in DirectivesMethod class.
Refactored DirectivesMethod class to remove code duplication and improve readability.
Created new DirectivesLabel class to handle XML directives for label entry in byrecode.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@rultor merge

@rultor merge

@volodya-lombrozo OK, I'll try to merge now. You can check the progress of the merge here

@rultor merge

@volodya-lombrozo Done! FYI, the full log is here (took me 3min)

authors: rultor volodya-lombrozo

repo: objectionary/jeo-maven-plugin


text:
Removed MaxPermSize option for tests

MaxPermSize has been removed as of Java 8. Specifying the parameter yields a lot of warning during the test run

👍

authors: igorspasic neroux

repo: oblac/jodd


text:
Icons fail to show on Release Build!

[x] Review the documentation: https://github.com/oblador/react-native-vector-icons
[x] Search for existing issues (including closed issues): https://github.com/oblador/react-native-vector-icons/issues

Environment

iOS (Release build)
react native 0.63.1
react native vector icons: latest

Description
In debug/development everything works fine. Icons show as usual. But once I build the app for release/production, the Icons don't show up. Not even question-mark boxes.

(Bottom bar should be Icons)
I have auto-linked the library, but specified only "MaterialCommunityIcons" in my Info.plist, because that's the only set I use. Do I still have to leave all of them in there?
~Also, I have called Icon.loadFont() at the entry point. (top of App.tsx)~ <-- Not required, as I'm not using use_frameworks! in my Podfile.

Apparently my InteractionManager.runAfterInteractions() callback is never being called, I've created an issue on facebook/react-native regarding this. Can this be related? https://github.com/facebook/react-native/issues/29421

I'm having the same issue on Android, but not on Web, after updating from 6 to 7. Didn't test on iOS yet. Method of installation for Android was the recommended one, with gradle.

Here happened to me too aftet I did a rebuild, deleting the modules and cleaning the cache.

Could be related to https://github.com/oblador/react-native-vector-icons/issues/1212

Having same issue with react-native 0.63.2 and react-native-vector-icons 7.0.0.
Deleting node modules and package-lock.json and reseting cache didn't help.

I wonder if this is related to react-native-screens, could you try disabling it? If that's not it can you provide a minimal reproducible example?

Also try to reset the simulator.

@oblador Might have something to do with react-native-screens, will test this out. Would be a bummer though, as I rely on react-native-screens for navigation (react-navigation requires react-native-screens)

@oblador I don't think it is related to #1212, as the icon in the purple button isn't visible either, and that should be white.
Also, I've reset the simulator but that didn't change anything. Also happens on physical device.
Also, I noticed that some icons actually do render, mainly those that are rendered lazily. The Icons at the bottom (tab navigator bottom bar) are rendered almost instantly on app launch, which apparently fails most of the time. Icons I have inside another screen which will only be rendered once I navigate to it (in my case the "add" screen when I press the big purple button), which apparently works. I've got a camera and photo gallery Icon in there and they showed up.
Do you maybe have some native logic that gets initialized lazily?

@oblador I have disabled rn-screens and the icons still failed to show on release build.
Just now I also managed to see this behaviour in debug mode aswell, couldn't reproduce it since then.

I'm seeing this issue in our most recent Android release build as well. The icons are still there on iOS.

Just to make sure, you have followed the installation instructions? The important one including the line in build.gradle for Android and running pod update for iOS (instructions here https://github.com/oblador/react-native-vector-icons).
I had the same problem with icons only loaded lazy were showing, but once I included the above line in build.gradle all icons were showing.

@r0stig do you still have to do those steps in >0.60 with autolinking?

@r0stig do you still have to do those steps in >0.60 with autolinking?

I'm using 0.63.2 and I had to add that line in build.gradle after updating to 7.0.0.

I've set up my iOS app correctly (I think), but the Icons are still not showing in release build.

just add apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" in the bottom off android/app/build.gradle ( NOT android/build.gradle ) then sync again the project and icon will show correctly

just add apply from: "../../node_modules/react-native-vector-icons/fonts.gradle" in the bottom off android/app/build.gradle ( NOT android/build.gradle ) then sync again the project and icon will show correc

can you guide m in more details I have same issue

Is there any updates about it? I have the same problem with IOS release build.

i solve this by
npx react-native unlink react-native-vector-icons
then
npx react-native link react-native-vector-icons

I have the same issue with react-native 0.69.9. Is there any updates?

still have same issue. it was working fine . but now it has this issue

We’ve just released a major new version with significant changes and improvements. If you’re still experiencing this issue after upgrading, please open a new issue with updated details. We're closing all the very old issues to get on top of things. Thanks for your patience!

authors: AftabUfaq Dheyson GoktuqCan Luckygirlllll bernardodesousa fazal59 jmyers0022 johnf mrousavy nttung291 oblador r0stig vohoangankhanh withzhaoyu

repo: oblador/react-native-vector-icons


text:
Icons displaying as crossed out box on Android

I'm getting a crossed out box on Android, works on iOS.
'use strict';

var React = require('react-native');
var Icon = require('react-native-vector-icons/Ionicons');

var {
  StyleSheet,
  View,
  Text,
  AppRegistry
} = React;

var Main = React.createClass({
  render() {
    return (

	    <View style={styles.container}>
	    	<Text>Hey</Text>
	    	<Icon name="person" size={45} color="red" />
	    </View>
	)
  }
})

var styles = StyleSheet.create({
	container: {
		flex: 1,
		alignItems: "center",
		justifyContent: "center",
	}
});

AppRegistry.registerComponent('medassist', () => Main);

Here's the path:
android/app/src/main/assets/fonts/Ionicons.ttf

No additional errors, and I've tried deleting the android/app/build folder and re-ran "react-native run-android"
Running on a Mac in Genymotion.

I can't get the IconExplorer example to work either, it has the same box issue.

Ok, got it to work by changing the Fonts folder to lowercase. Might want to change it in the example. I'll keep troubleshooting my own app.

I was running 0.15.0 instead of 0.16.0.

@dangnelson: Thanks for spotting this. I had it changed on my computer but since my file system is case insensitive git didn't see any changes. Had to delete and add it again for changes to take effect.

Add to android/app/build.gradle this line:
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
As suggested under Android section in https://github.com/oblador/react-native-vector-icons

authors: adimittal dangnelson oblador


text:
GABAergic CL mapping

On CS202002013_123 (GABAergic), I've current mapped CL:0000617 (GABAergic neuron) as it's the highest level/most generic. It can also be CL:0011005 (GABAergic interneuron) or CL:0010011 (cerebral cortex GABAergic interneuron). I think it depends on the list of markers and how generalizable they are?

I think 'GABAergic interneuron' should be sufficient to line up with the terms in CL (they will get an inference to cortical from the soma location axiom).

authors: dosumis shawntanzk


text:
add text defs

addresses #350

Should be related to Uberon:'vagal neural crest'  @cmungall - is part_of the right relationship here?  Not clear to me from Uberon defs if they  apply to only prior to migration.   Seems this is a general issue with missing Uberon mappings between CL & Uberon NC terms.

Moved uberon - cl link issue to #638

authors: dosumis nicolevasilevsky

repo: obophenotype/cell-ontology


text:
all mirrors are unavailable in configuration file

all mirrors in configuration file are unavailable in my country:
"mirrors": [
"https://libgen.is/",
"https://libgen.st/",
"http://libgen.rs/"
],
https://libgen.li/ seems to work fine, can you add this mirror to configuration?
or simply make the software search local configuration instead?

Hi @nuitlejour!
That day i could not access to libgen either but it should be fine now. Libgen servers were down probably at that moment. Can you check it again?.
Since libgen-downloader shows the result by parsing the HTML response, I can not add https://libgen.li/ as a mirror. It uses different kind of HTML structure.

authors: nuitlejour obsfx

repo: obsfx/libgen-downloader

license: WTFPL


text:
Failed connections appear to cause memory leaks and don't timeout

I was testing the code by running it in unity and consuming the Client class. I notice that memory stays about the same if a connection succeeds but memory usage steadily climbs on a failure. It appears to not actually trigger a timeout in my testing.

Looking into the issue further https://github.com/obsilp/rmnp-csharp/blob/d2dcda120788301ddba49d9aa07a111e2df50847/Connection.cs#L208 will always return before hitting timeout logic due to the fact the default connection state is disconnected

Thats strange, the example I pushed works fine with this check. Are you sure that the State was
"Disconnected" when you debugged? Because it should have been at least "Connecting" as every connection state is set when the Connection object is acquired. (Connection.cs#L84)

I gave it a try today and it is working correctly. I am unsure of why it wasn't yesterday and I wouldn't think it would be related to the buffer changes but I would say it's fine for now.

authors: SonarBeserk obsilp

repo: obsilp/rmnp-csharp


text:
Create a 'Release'

I think if you just create a release in the UI it will package up everything as a zip file so people can more easily download the scripts.  I guess there is nothing to be compiled so the default zip's it builds should work fine.

Done: https://github.com/obsoleted/azsearch_management/releases/tag/v1.0.0

authors: obsoleted stefangordon


text:
Modify CNN and GAN

Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

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

How has this been tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

[ ] local build the book
[ ] review the artifacts from local build
[ ] local build the slides if appliable
[ ] Unit test if appliable

Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have applied tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes
[ ] Any dependent changes have been merged and published in downstream modules

Someone helps me review this pr?

repo: ocademy-ai/machine-learning


text:
CI 32-bit and OPAM

Add CI workflows to test:

32-bit on Linux; this thus builds upon #297;
OPAM packages.

I've now merged this. On the main CI run all Windows workflows failed during Cygwin install:
  [...]
  connection error: 12037 fetching https://cygwin.mirror.constant.com/x86_64/setup.ini
  mbox note: Unable to get setup from <https://cygwin.mirror.constant.com/>
  unattended_mode is set at mbox: returning default value
  download/verify error in unattended_mode: out of retries
  note: Installation incomplete.  Check D:\cygwin\var\log\setup.log.full for details
  Ending cygwin install
  Error: The process 'C:\hostedtoolcache\windows\cygwin\3.4.3\x86_64\setup-x86_64.exe' failed with exit code 1

I suspect that this is just due to a temporary network failure.

authors: jmid shym

repo: ocaml-multicore/multicoretests


text:
Error message of learn-ocaml grade

The following error message is a bit disturbing. (In that example, tmp does not contain any learn-ocaml related material.)
yann➜/tmp» learn-ocaml grade                                                                                [15:22:00]
Fatal error: exception Learnocaml_exercise.Missing_field("solution.ml")
Called from unknown location
Called from unknown location
Called from unknown location
Called from unknown location
Called from unknown location
Called from unknown location
Called from unknown location

Now we get:
yann➜/tmp» learn-ocaml grade                                                                                [10:18:35]
[ERROR] Could not load exercise at .: Learnocaml_exercise.File.Missing_file("solution.ml")

I think this is good enough.

repo: ocaml-sf/learn-ocaml


text:
Fix for #12

Now all links in toc-container will be set - fixes issue #12
Also some minor cleanup in CSS - it shouldn't be that different from my last commit but somehow I'm seeing more changes below. But no worries I've used them in my project.

I think that's enough fixes for the next version? You may publish all changes up to this point to npm, unless if you wish to fix issue #10 first?

did it: https://www.npmjs.com/search?q=dokker

authors: georgschlenkhoff kengz


text:
2

中国现在有多少人

/chatgpt 你好

/ping

/chatgpt this?

11

authors: alashijia cubxxw songyuqi11

repo: oceanlvr/ChatGPT-ProBot

license: ISC


text:
Misleading logging message cannot find DID

Expected Behavior
Call sign_service_agreement in Squid. Get start download of asset.
Current Behavior
The following error is logged in Brizo:
brizo_1_474d56ee4187         | 2018-12-10 15:31:32 7f3127fbb7c4 root[12] ERROR cannot find DID 0x23d76f6f5e1040c8bba8701fdaa59e28bf2c9edd3acc400aa8af46fe1433344e

But actually, the error is caused by a contract ABI mismatch.
Possible Solution
Update this logging message.

This has changed. The error message is replaced with this:
            raise OceanDIDNotFound('DID "{}" is not found on-chain in the current did registry. '
                                   'Please ensure assets are registered in the correct keeper '
                                   'contracts. The keeper-contracts DIDRegistry address is {}'
                                   .format(did, self._did_registry.address))

authors: MarcusJones ssallam

repo: oceanprotocol/brizo


text:
V4

Fixes #1046  .
The v4 main branch with the new version for the ocean.js lib where all other v4 PR's will be merged against.
The will never be merged into main and it will become the new main after the v4 release and the current main will became v3 branch.
In a highly WIP state, the tests and build may fail for the moment.

Do we need to prefix stuff with V4  OceanPoolV4 ?

interface FixedData {
  fixedPriceAddress: string
  addresses: string[]
  uints: (string | number)[]
}

Please stop using fields like uints, for a js developer it means nothing. This should be an object /struct with the following fields [baseTokenDecimals,dataTokenDecimals, fixedRate, marketFee, withMint] (got this from the contracts), so something like :
interface FixedData {
  fixedPriceAddress: string
  addresses: string[]
  baseTokenDecimals: number
  dataTokenDecimals: number
  fixedRate: number
  marketFee: number
  withMint: boolean
}

authors: bogdanfazakas mihaisc


text:
Generate source URL using tag instead of branch

Fixes #31

Tbh I haven't thought a lot about this.
I would love to see feedback from @akshay-ap , who has.

I agree with @DMats. As we have tagged releases, it makes sense to generate sources for docs using tags.

authors: DMats akshay-ap trentmc

repo: oceanprotocol/readthedocs


text:
Investigate how we can publish the extension

The extension should be installable from https://marketplace.visualstudio.com/VSCode

yep, definitely

There is a guide on how to do this here: https://code.visualstudio.com/api/working-with-extensions/publishing-extension

repo: oceanprotocol/vscode-extension


text:
Cross Reference within language file not wokring

I have been using https://github.com/angular-translate/angular-translate for some time and have a well developed language file where we cross reference other elements within the file, i.e.
"PLACEHOLDER": {
"USERNAME": "Enter your email"
},
"LABEL": {
"EMAIL": "@:PLACEHOLDER.USERNAME"
}
So when we use {{ 'LABEL.EMAIL' | translate }} it actually uses the text within PLACEHOLDER.USERNAME
This does not work with when I implement in angular 2.
Can anyone tell me if this is working?

Hello, sorry the placeholders don't work in ng2-translate, but it would be a nice PR if you have some time to do it :)

This is actually a duplicate of https://github.com/ocombe/ng2-translate/issues/147, closing this one, follow the status in the other one.

authors: antonycooper ocombe


text:
How to read current language from ng-1 in a hybrid Angular app?

I'm submitting a ...  (check one with "x")
[ ] bug report => check the FAQ and search github for a similar issue or PR before submitting
[x] support request => check the FAQ and search github for a similar issue before submitting
[ ] feature request

I'm using ng-2 translate in a hybrid ng-1/ng-2 app. My plan is to use Pascal Precht's angular-translate to handle localization in the ng-1 code, and ng-2 translate to handle localization in the ng-2 code of the app.
In my existing ng-1 implementation, users can change their language from a dropdown, and it gets stored in $rootScope.currentLanguage. E.G. " $rootScope.currentLanguage = 'de' ". My question is:  how can I read this value from $rootScope when initializing ng-2 translate, and how watch it and change the current language on the fly in ng2-translate when it changes?

I have no idea how this works, but would it be possible to inject the rootscope to the main ng2 component.
class AppComponent {
    constructor(
        @Inject('$rootScope') private rootScope,
        private translate: TranslateService
    ) { }

    ngOnInit() {
        this.rootScope.$watch('currentLanguage', language => {
            this.translate.use(language);
        });
    }
}

Although not sure if you can inject $rootScope as per this issue https://github.com/angular/angular/issues/10590.
I'm also not sure if it's a good thing to add stuff to your $rootScope. Instead, it might be better to create a languageService that you use to change the language. Then you can inject that service and listen to changes or better, emit an event when the language has changed.
Just throwing some ideas out here because as I said before, I have no experience with hybrid angular apps.

we should ask @amcdnl, he's the only one I know using an hydrib app in production

@SamVerschueren - chk this out https://github.com/swimlane/ng1-ng2-webpack-lazy-uirouter

I made it work like this:
export class AppModule {

	constructor(
		private translateService: TranslateService,
		@Inject('$rootScope') private _rootScope: any
	){
        this.translateService.addLangs(["en", ...]);
        this.translateService.setDefaultLang('en');
		this._rootScope.$watch('currentLanguage', language => {
			this.translateService.use("api/localization/" + language);
		});
	}

	ngDoBootstrap() {}
}

@IonPopescu Hello, I 'm currently working on a hybrid app. my angularJs (using angular-gettext) and angular(ngx-translate). I'm having  translation problem when I want to downgrade an angular component used in an angularJs component.
Do you managed to make it work ?
thanks

authors: IonPopescu SamVerschueren amcdnl lionelB ocombe


text:
setting timeout after keytap causes cmd+o to trigger

Expected Behavior

when i use keytap, and after that i set a timeout, the timeout should not affect the functionalities of robotjs

Current Behavior

when i use keytap, it takes time for the command to fully execute, therefore i use a setTimeout to wait for x amount of seconds for it to finish. after that, i execute robot.typeString.
but before it does that it for some reason also emulates command+o.

Possible Solution

Steps to Reproduce (for bugs)

1.open a browser and focus it
2.have robotjs open the Javascript console (command+f1) for me.
3.set a timeout of 2000ms
4.execute robot.typeString when the timeout is over
5. i expected the typestring to be executed in the console
6. instead it first executes command+o and then proceeds to interpret the typeStrings string as literal key input
Context

i am trying to build a scraper for a website that blocks data through requests, so i have to open a browser, then open the console and insert a script that sends the scraped data back to my endpoint.

Your Environment

RobotJS version: 0.4.7
Node.js version: v4.4.7
npm version: 3.10.6
Operating System: MAC OSX SIERRA 10.12.4

This issue has been closed because it has been inactive for > 240 days.
You may reopen this issue if it has been closed in error.

authors: fabulousduck oktapodia

repo: octalmage/robotjs


text:
Types for Octokit instance broken

Since the switch to ESM in @octokit/core, you can't import from the @octokit/{packageName}/dist-types path anymore.
Since TypeScript can't resolve the import, the type for Octokit is any

Should get fixed once https://github.com/octokit/core.js/pull/673 has been landed and this repo upgrades

repo: octoherd/octokit


text:
🛑 SERACARH (intranet.seracarh.org.ar) is down

In 974b016, SERACARH (intranet.seracarh.org.ar) (http://intranet.seracarh.org.ar/api/health) was down:

HTTP code: 403
Response time: 156 ms

Resolved: SERACARH (intranet.seracarh.org.ar) is back up in e2c6c8b.

repo: octubre-softlab/octubre-upptime


text:
[Security] Workflow rubocop.yml is using vulnerable action actions/checkout

The workflow rubocop.yml is referencing action actions/checkout using references v1. However this reference is missing the commit a6747255bd19d7a757dbdda8c654a9f84db19839 which may contain fix to the some vulnerability.
The vulnerability fix that is missing by actions version could be related to:
(1) CVE fix
(2) upgrade of vulnerable dependency
(3) fix to secret leak and others.
Please consider to update the reference to the action.

Fixed

authors: igibek jnylen

repo: oddcamp/mrml-rails


text:
Decouple access management from appeal

Summary
Currently, appeal acts as the information holder for approval flow and user access. We can decouple those responsibilities by creating a new entity called access that manages user access and its lifecycle.
Changes:
1. Process

Once appeal is approved, guardian will create an access entry representing the current user access to the resource
Access revocation will be done to access instead of appeal
If a new appeal to the same resource created by the same user with the same role is approved, guardian will revoke the existing active access (if exists) and create a new one.

2. Entity
Appeal:
  type Appeal struct {
  	ID            string
  	ResourceID    string
  	PolicyID      string
  	PolicyVersion uint
  	Status        string
  	AccountID     string
  	AccountType   string
  	CreatedBy     string
  	Creator       interface{}
  	Role          string
  	Permissions   []string
  	Options       *AppealOptions
  	Details       map[string]interface{}
  	Labels        map[string]string

- 	RevokedBy    string
- 	RevokedAt    time.Time
- 	RevokeReason string

  	Policy    *Policy
  	Resource  *Resource
  	Approvals []*Approval

  	CreatedAt time.Time
  	UpdatedAt time.Time
  }

Access:
+  type Access struct {
+ 	ID             string
+ 	Status         string // active | revoked
+ 	AccountID      string
+ 	AccountType    string
+ 	ResourceID     string
+ 	Permissions    []string
+ 	ExpirationDate *time.Time
+ 	AppealID       string
+ 	RevokedBy      string
+ 	RevokedAt      *time.Time
+ 	RevokeReason   string
+ 	CreatedAt      time.Time
+ 	UpdatedAt      time.Time
+  }

3. Lifecycle
Appeal:
  1. pending
    2. canceled
-   2. active
+   2. approved
-     3. terminated
    2. rejected

Access:
+ 1. active
+   2. revoked

@rahmatrhd does the mean of *time.Time is a nullable time? So is it possible to have an access with null ExpirationDate ?

@mabdh yes, that's the case for permanent access

@bsushmith and I were having some discussions on invite based providers, this is basically regarding suppose the user didn’t accept the invite within the given the time(24 hours), should we make him create the appeal again? In that case the managers/resource owners will have to approve the appeal again to grant access for the resource.
We were thinking if there’s a possibility to ensure that if the approvers have already approved your appeal, and user’s invite has expired, can we keep a boolean flag in Access Struct to check on that, and make another API call to resend the invite without going into the entire approval process again? This would simplify the invite based flow, instead of doing same thing again and again.

@bsushmith @Chief-Rishab I was thinking that guardian can have a job that periodically checks the invitation status to the provider and set the access status to active or canceled accordingly when the access created with initial status pending

in order to rollout this access entity while still maintaining the backward compatibility for the client (frontend), we need to have two separate releases/versions:
Release 1

introduce access entity
introduce GET /accesses, GET /me/accesses, GET /accesses/:id, PUT /accesses/:id/revoke, and PUT /accesses/revoke (bulk revoke accesses) APIs
deprecate PUT /appeals/:id/revoke, and POST /appeals/revoke (bulk revoke appeals) APIs
maintain the status of provider access in both appeal and access (see the table below for the mapping)

appeal status
access status
business logic changes
db migration

pending
N/A
-
-

canceled
N/A
-
-

rejected
N/A
-
-

active
active
create access entry when the appeal is activated
active appeals will be migrated to active access

terminated
inactive
revoking active appeal or access will change the status of both entities, appeal -> terminated, access -> inactive
terminated appeal records will be migrated to inactive access records along with the revoked_at, revoked_by, and revoke_reason information

Release 2

delete PUT /appeals/:id/revoke, and POST /appeals/revoke (bulk revoke appeals) APIs
only maintain the status of provider access in access (see the table below for the mapping)

appeal status
access status
business logic changes
db migration

pending
N/A
-
-

canceled
N/A
-
-

rejected
N/A
-
-

approved
active
change appeal status to approved instead of active when all approvals got approved
update appeals with status = active to approved

approved
inactive
remove appeal revoke logic from accessService.Revoke and accessService.BulkRevoke
update appeals with status = terminated to approved and remove revoked_at, revoked_by, and revoke_reason columns from appeals

In between those two releases we can update the client (frontend) to use access instead of appeal for listing list of user accesses

In between those two releases we can update the client (frontend) to use access instead of appeal for listing list of user accesses

Why can't this be part of Release 1 ?

@mabdh the releases I mentioned are specific for guardian (backend), updating the client going to be a separate task. But still, release1, update client, and release2 had to be done sequentially as each depends on the prior task

@rahmatrhd based on what you mention, updated client should be part of release 2 then?

@mabdh the client (frontend) now is managed in different project/repo anyway, so the requirement for guardian is only to have two separate releases/versions with requirements I mentioned above. This strategy is basically to give the client chance to update to the new version without breaking/having downtime during the backend is using release1, and release2 is basically to remove the deprecated/unused features.

Oh I see got it, by client, I thought it is guardian cli.

The Guardian CLI commands will also have to be updated in release 2 @rahmatrhd

authors: Chief-Rishab mabdh rahmatrhd

repo: odpf/guardian


text:
fix: dependency resolution during duplicate destinations of job

https://github.com/odpf/optimus/issues/89
if during dependency resolution, multiple jobs have same destination it should give higher priority to select a job that belongs to the same project first, then choose anyone from the rest if not found.

Pull Request Test Coverage Report for Build 1552535919

23 of 36 (63.89%)  changed or added relevant lines in 2 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.1%) to 71.32%

Changes Missing Coverage
Covered Lines
Changed/Added Lines
%

job/service.go
5
6
83.33%

job/dependency_resolver.go
18
30
60.0%

Files with Coverage Reduction
New Missed Lines
%

job/dependency_resolver.go
1
76.42%

Totals

Change from base Build 1505606437:
-0.1%

Covered Lines:
4986

Relevant Lines:
6991

💛  - Coveralls

LGTM. Functionality also runs as expected.

authors: arinda-arif coveralls kushsharma

repo: odpf/optimus


text:
🛑 urbamonde.org is down

In bdfb964, urbamonde.org (https://www.urbamonde.org) was down:

HTTP code: 429
Response time: 615 ms

Resolved: urbamonde.org is back up in 0af2d4e.

repo: odqo/upptime


text:
🛑 Ipsilon-Dev is down

In 7a07a00, Ipsilon-Dev (https://ipsilon-dev.sgu.ru) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ipsilon-Dev is back up in ed595af after 16 minutes.

repo: oec-ssu/status


text:
when using an Observable dataSource with changing values, list gets empty

I'd like to change data displayed on autocomplete list depending on user input. Since data doesn't come from and http endpoint but from an Observable. I am using CompleterService.local to make the completer subscribe to that observable.
The issue is that the event on next data coming from observable cleans up the input value and hides the list.
That seems to be done on https://github.com/oferh/ng2-completer/blob/2a18eb92dc1b9881fe920c7eb95fce5787a32d4f/src/directives/ctr-list.ts#L216 after an emit of dataSourceChange from https://github.com/oferh/ng2-completer/blob/2a18eb92dc1b9881fe920c7eb95fce5787a32d4f/src/services/local-data.ts#L26
here is a plunkr reproducing the issue
https://plnkr.co/edit/N1FTt7FRTLZmMET0G6Ww?p=preview
Maybe I am doing things the wrong way :)

you should probably use a custom data provider, there is a sample in the demo

Okay awesome ! I'll give it a try.

authors: chihab oferh


text:
Downloading Darwin File

Chrome doesn't like it ...

Are you downloading from the Github release page?
https://github.com/officert/mongotron/releases

yep, download via this page https://github.com/officert/mongotron/releases
by this link https://github.com/officert/mongotron/releases/download/v1.0.0-alpha.2/Mongotron-darwin-x64.zip

Same thing happens for me.

Chrome is blocking the download for https://github.com/officert/mongotron/releases/download/v1.0.0-alpha.2/Mongotron-darwin-x64.zip as nodkz displayed.

Same here.  Do we know if there is a way to check with Google to see why they are listing it as a virus?

I haven't had time to look into this yet. Are you guys not able to download the release at all? If so I could try hosting it somewhere else and see if that helps.

Not sure if that is the problem, I doubt Google would have a problem with GitHub.
It can be manually extracted by renaming the file to a .zipfile, but that makes me a bit nervous.

I agree with Addo. Can't download and use the release without the warning,
wish is a bit nerve wrecking. Haven't installed to try / contribute
specifically because of this, to be honest.
--
Joe Benson, CTO
Legnd
Experience. Results.
legnd.com
joe@legnd.com
(855) 695-3463
On Tue, Jan 5, 2016 at 11:40 AM, Addo Solutions notifications@github.com
wrote:

Not sure if that is the problem, I doubt Google would have a problem with
GitHub.
It can be manually extracted by renaming the file to a .zipfile, but that
makes me a bit nervous.
[image: image]
https://cloud.githubusercontent.com/assets/3859209/12122516/8aafdc18-b3a9-11e5-9db7-8f069d0bce37.png
—
Reply to this email directly or view it on GitHub
https://github.com/officert/mongotron/issues/64#issuecomment-169076704.

To contribute you'll need to pull down the git repo which isn't affected by this.
Though I do understand the hesitation, I just tried downloading and got the error message and it is a bit worrisome. I'm going to look into this some more and try and get it resolved.
Would love the extra contributors, so please don't hesitate to jump in :+1:

Just found this which could be related:
https://github.com/atom/atom/issues/3927
ran the darwin release through virus total for scanning for viruses:
https://www.virustotal.com/en/file/19f63f1f06574113ce25ed6b9f910ffa483d23a4fe33ff193d42bbf571cf119c/analysis/
1 thing detected:

Tim, yep I'm familiar with the fork and pull requests, etc. I'll be happy
to contribute once things slow down a bit at work, and Google is sure the
file is safe ;)
Thanks for starting a great project.
--
Joe Benson, CTO
Legnd
Experience. Results.
legnd.com
joe@legnd.com
(855) 695-3463
On Tue, Jan 5, 2016 at 1:21 PM, Tim Officer notifications@github.com
wrote:

To contribute you'll need to pull down the git repo which isn't affected
by this.
Though I do understand the hesitation, I just tried downloading and got
the error message and it is a bit worrisome. I'm going to look into this
some more and try and get it resolved.
Would love the extra contributors, so please don't hesitate to jump in [image:
:+1:]
—
Reply to this email directly or view it on GitHub
https://github.com/officert/mongotron/issues/64#issuecomment-169102926.

This seems to be fixed in the latest release:
https://github.com/officert/mongotron/releases
If anyone has any more problems with this please comment.

authors: AddoSolutions joebenson joegyoung nodkz officert sean-hill

repo: officert/mongotron


text:
more user and group operations

The patch includes getters for current and effective groups, effective user, and group and user setters.

Oh cool, thanks a lot for this! :+1: I didn't even think about adding these features.
I commented on a failing doctest, but other than that it's good.

You are welcome! Nice to know these features are useful for someone besides me. Actually the PR was out of neccesity: I was working on crontab implementation for @systemd-cron project, using your crate, but I missed some functionality, so I decided to add it to your crate instead of spawning another users operations crate to crates.io.

authors: kstep ogham

repo: ogham/rust-users


text:
SSH URI

Hi! I've been using this great library for a while and doesn't have problem at all. Until I try to use it to validate a github ssh url, like "git@github:xxx/repo.git". Is this SSH uri also a valid url that we should support in this library?
*Reference for the ssh url https://tools.ietf.org/id/draft-salowey-secsh-uri-00.html.

Hi @RonWang,
I was facing the same issues with valid-url but also validator so I decided to build a module as reliable as possible strictly based on RFC-3986: https://github.com/adrienv1520/node-uri
The main features of this project are:

parse any URI (URNs, URLs, URIs with IDNs support, etc.);
get the safe Punycode ASCII or Unicode serialization of a domain;
check an URI, HTTP/HTTPS/Sitemap URL, IP, domain is valid with clear checking errors;
encode/decode an URI, HTTP/HTTPS/Sitemap URL.

I hope it could help you.

repo: ogt/valid-url


text:
how about proguard settings?

Which one I should add into proguard.txt.
Is there a example?

Same as ButterKnife
-keep class butterfork.** { *; }
-dontwarn butterfork.internal.**
-keep class **$$ViewBinder { *; }

-keepclasseswithmembernames class * {
    @butterfork.* <fields>;
}

-keepclasseswithmembernames class * {
    @butterfork.* <methods>;
}

I'll add a consumerProguardFiles option to gradle for next release

Fixed with update to ButterKnife 8.0.1

repo: oguzbabaoglu/butterfork


text:
Remove preferences provided by the default packages

A PR has been sent to add these to the default packages: https://github.com/sublimehq/Packages/pull/513.
Note: these are just the ones that were pretty much identical in comparison to a syntax available in the default packages. There are lots of other default package syntaxes. I'll prepare preferences for those and then compile a list of file_icon_*.tmPreferenes in the default package.

I think we should wait for @wbond answer in https://forum.sublimetext.com/t/sublime-text-3-file-icons-in-sidebar/21134, if those files will be added to the default packages I merge this.

We need this. @oivva thanks for the effort.

Close it for now. I'll remove those files when they will be added to the default packages.

authors: equinusocio gerardroche oivva

repo: oivva/boxy


text:
🛑 Ekşi Sözlük is down

In b860a8e, Ekşi Sözlük (https://eksisozluk.com) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Ekşi Sözlük is back up in c9c408d.

repo: okankocyigit/upptime


text:
DefaultLifecycleObserver for coroutine cancellation

I have added "DefaultLifecycleObserver" for auto Automatic cancellation of the coroutines.
issue: https://github.com/okcredit/OkLayoutInflater/issues/1

Hi Ranbir,
ItzNotABug added Auto cancel with #3 . If you could take a look at it, that would be great. Only one of them can be merged.

@anjalsaneen ! Yeah its looks good!

authors: AndroidPoet anjalsaneen

repo: okcredit/OkLayoutInflater


text:
Updated graphql dependency

Updated graphql to latest version

Thanks @ruisaraiva19.

repo: okgrow/merge-graphql-schemas


text:
Adds Firefox/Safari support

Maybe closes #4? This fixes SyntaxError: export declarations may only appear at top level of a module issues in Firefox and Safari.
Firefox and Safari do not support new Worker("", { type: "module" }), but since we're bundling the workers with esbuild, we can use iife as an output mode.

This change in the end was nothing but a newline?

I had to add a couple more lines to convert esm workers to iife, I just created a separate commit for those

authors: Haroenv natemoo-re okikio

repo: okikio/bundle


text:
🛑 Website OK Lab Flensburg (Beta) is down

In 9a8bb40, Website OK Lab Flensburg (Beta) (https://website.oklabflensburg.de) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Website OK Lab Flensburg (Beta) is back up in ddb05fc after 10 minutes.

repo: oklabflensburg/open-health-check


text:
ResponseStream does not support std::string

When using the ResponseStream with an std::string object like so:
std::string strResult = "foo";
stream << strResult;

I get an error, which stems from a missing template specialisation for Size.
I can do:
stream << strResult.c_str();

But the error message is not clear, and I would not have expected not being able to provide an std::string directly.

Hello. You are right, chunk-encoding relies on a specific Size<T> template specialization to retrieve the size of the chunk depending on the type you are currently streaming. Size<std::string> is currently not specialized, will fix.

authors: jakobs oktal

repo: oktal/pistache


text:
refactor(collapsible): update component

Description

Linked Issues
cc #358
Additional context

I'll take sfc and keep the rest of their code and improve it and take it to main.

repo: oku-ui/primitives


text:
LogToTable in different database intead of Master

First let me tell you that your maintenance solution is awesome and i really like.
A very important feature to me is the ability to log all process in a table where i can analyses later the performance and look for improvements.
But i think use Master database (system db) as repository is not so good, i prefer to create a new user database and save all logs, store procedures and etc over there.
So is it possible to create a variable in the procedures to the "@LogToTable" in a database that i point ?
Thanks again.

check the details here - https://ola.hallengren.com/frequently-asked-questions.html

You can create the log table and the stored procedures in any database (but the log table and the stored procedures have to be in the same database).


text:
HEADs converted to GETs on relayed requests

HEADs where being converted to GETs, meaning HEADing a relayed server results in the entire payload being dumped unceremoniously on the requester.
I also had an issue with being stuck in an endless relay loop.
my quick and dirty hack to make it work can be cut and pasted to the top of any jsnode file, (don't worry with npm or other bollocks, just have assert,debug and consume installed.
enjoy.
'use strict';

var assert = require('assert');
var debug = require('debug')('follow-redirects');
var consume = require('stream-consume');
// follow-redirects is taken and butchered from code obtained using
// "npm install follow-redirects"
// ie: https://www.npmjs.com/package/follow-redirects
// it had enough bugs in it to warrant fixing, but
// it's not worth doing
var followRedirects = (function (_nativeProtocols) {

  var nativeProtocols = {};

  var publicApi = {
    maxRedirects: 5
  };

  for (var p in _nativeProtocols) {
    /* istanbul ignore else */
    if (_nativeProtocols.hasOwnProperty(p)) {
      // http://www.ietf.org/rfc/rfc2396.txt - Section 3.1
      assert(/^[A-Z][A-Z\+\-\.]*$/i.test(p), JSON.stringify(p) + ' is not a valid scheme name');
      generateWrapper(p, _nativeProtocols[p]);
    }
  }

  return publicApi;

  // to redirect the result must have
  // a statusCode between 300-399
  // and a `Location` header
  function isRedirect(res) {
    return (res.statusCode >= 300 && res.statusCode <= 399 &&
    'location' in res.headers);
  }

  function execute(options, callback) {
    var req_method=options.method;
    var fetchedUrls = [];
    var clientRequest = cb();

    // return a proxy to the request with separate event handling
    var requestProxy = Object.create(clientRequest);
    requestProxy._events = {};
    requestProxy._eventsCount = 0;
    if (callback) {
      requestProxy.on('response', callback);
    }
    return requestProxy;

    function cb(res) {
      // skip the redirection logic on the first call.
      if (res) {
        var fetchedUrl = url.format(options);
        fetchedUrls.unshift(fetchedUrl);

        if (!isRedirect(res)) {
          res.fetchedUrls = fetchedUrls;
          requestProxy.emit('response', res);
          return;
        }

        // we are going to follow the redirect, but in node 0.10 we must first attach a data listener
        // to consume the stream and send the 'end' event
        consume(res);

        // need to use url.resolve() in case location is a relative URL
        var redirectUrl = url.resolve(fetchedUrl, res.headers.location);
        debug('redirecting to', redirectUrl);

        options=url.parse(redirectUrl);
      }

      if (fetchedUrls.length > options.maxRedirects) {
        var err = new Error('Max redirects exceeded.');
        return forwardError(err);
      }

      options.nativeProtocol = nativeProtocols[options.protocol];
      options.defaultRequest = defaultMakeRequest;

      var req = (options.makeRequest || defaultMakeRequest)(options, cb, res);
      req.on('error', forwardError);
      return req;
    }

    function defaultMakeRequest(options, cb, res) {
      if (res && res.statusCode !== 307) {
        // This is a redirect, so use only GET methods, except for status 307,
        // which must honor the previous request method.
        options.method = 'GET';
      }

      if (req_method === 'HEAD')
        options.method=req_method;

      var req = options.nativeProtocol.request(options, cb);

      if (res) {
        // We leave the user to call `end` on the first request
        req.end();
      }

      return req;
    }

    // bubble errors that occur on the redirect back up to the initiating client request
    // object, otherwise they wind up killing the process.
    function forwardError(err) {
      requestProxy.emit('error', err);
    }
  }

  function generateWrapper(scheme, nativeProtocol) {
    var wrappedProtocol = scheme + ':';
    var H = function () {};
    H.prototype = nativeProtocols[wrappedProtocol] = nativeProtocol;
    H = new H();
    publicApi[scheme] = H;

    H.request = function (options, callback) {
      return execute(parseOptions(options, wrappedProtocol), callback);
    };

    // see https://github.com/joyent/node/blob/master/lib/http.js#L1623
    H.get = function (options, callback) {
      var req = execute(parseOptions(options, wrappedProtocol), callback);
      req.end();
      return req;
    };
  }

  // returns a safe copy of options (or a parsed url object if options was a string).
  // validates that the supplied callback is a function
  function parseOptions(options, wrappedProtocol) {
    if (typeof options === 'string') {
      options = url.parse(options);
      options.maxRedirects = publicApi.maxRedirects;
    } else {
      options.maxRedirects = publicApi.maxRedirects;
      options.protocol     = wrappedProtocol;
    }
    assert.equal(options.protocol, wrappedProtocol, 'protocol mismatch');

    debug('options', options);
    return options;
  }
}) ({
  http: require('http'),
  https: require('https')
});
followRedirects.maxRedirects = 10;
var  http  = followRedirects.http,
     https = followRedirects.https;

Yeah, it doesn't make any sense to forward a HEAD to a GET. PR welcome.

Should be fixed along with #12.

Fixed by cd203e6f4710059683fb9794db5a720a4fa4f1d1.

repo: olalonde/follow-redirects


text:
Allow for multiple networks in the update launch configuration GUI

The update launch configuration GUI also does not allow for specifying more than one network, despite the fact that the autoscale API does support multiple networks. Our customers often need to specify a private network when using autoscaling, often for back-end traffic between application servers in an AS group.
Would it be possible to modify the pitchfork GUI in a way such that it would allow the input of multiple networks in the update launch configuration API call?
thanks
j

This following has been added in PR #62 This affects the following calls, and has been deployed to production.
Autoscale - Create Group config
Autoscale - Replace Launch Config
Autoscale - Replace Launch Config (BFV)
Servers - Create Server
Servers - Create Server (BFV)
This does not solve groups of fields i.e. metadata, but I am looking into it to see what can be done to complete it. Will reopen Issue #8 as it is pertaining to a group of fields instead of a single field.

authors: jakubkrajcovic oldarmyc

repo: oldarmyc/pitchfork


text:
Not possible to build with Xamarin Forms release build

It is not possible to build xamarin forms release build.
Works fine with debug(Linking to "None"), but Release Build(Linking is set to "Sdk Assemblies Only") failing with the error
`
Error		Mono.Linker.MarkException: Error processing method: 'System.Void* ZstdSharp.UnsafeHelper::memcpy(System.Void*,System.Void*,System.UInt64)' in assembly: 'ZstdSharp.dll' ---> Mono.Cecil.ResolutionException: Failed to resolve System.Void InlineMethod.InlineAttribute::.ctor(System.Boolean)
at Mono.Linker.Steps.MarkStep.HandleUnresolvedMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkMethod(MethodReference reference)
at Mono.Linker.Steps.MarkStep.MarkCustomAttribute(CustomAttribute ca)
at Mono.Linker.Steps.MarkStep.MarkCustomAttributes(ICustomAttributeProvider provider)
at Mono.Linker.Steps.MarkStep.ProcessMethod(MethodDefinition method)
at Mono.Linker.Steps.MarkStep.ProcessQueue()
--- End of inner exception stack trace ---
at Mono.Linker.Steps.MarkStep.ProcessQueue()
at Mono.Linker.Steps.MarkStep.ProcessPrimaryQueue()
at Mono.Linker.Steps.MarkStep.Process()
at Mono.Linker.Steps.MarkStep.Process(LinkContext context)
at MonoDroid.Tuner.MonoDroidMarkStep.Process(LinkContext context)
at Mono.Linker.Pipeline.ProcessStep(LinkContext context, IStep step)
at Mono.Linker.Pipeline.Process(LinkContext context)
at MonoDroid.Tuner.Linker.Process(LinkerOptions options, ILogger logger, LinkContext& context)
at Xamarin.Android.Tasks.LinkAssemblies.Execute(DirectoryAssemblyResolver res)
at Xamarin.Android.Tasks.LinkAssemblies.RunTask()
at Microsoft.Android.Build.Tasks.AndroidTask.Execute() in /Users/builder/azdo/_work/1/s/xamarin-android/external/xamarin-android-tools/src/Microsoft.Android.Build.BaseTasks/AndroidTask.cs:line 17	App1.Android
App1.zip
`

I think it's fixed in 0.5.1

It works! Thank you!

authors: alexanderzuban oleg-st

repo: oleg-st/ZstdSharp


text:
change Id to ID in 3.0 version?

Hi!,
I have read CHANGELOG for 3.0 version, and I have a doubt... Do you intend to change Id to ID?. For example:
ScrollId
to
ScrollID
res, err = client.Get().Index("one").Type("tweet").Id("no-such-id").Do()

to
res, err = client.Get().Index("one").Type("tweet").ID("no-such-id").Do()

I have mixed feelings about it. While it's probably more idiomatic Go there is no real value for end-users. While I also prefer .ID(...) or .ScrollID(...), it feels awkward as a paremeter, e.g. in .Do(scrollID string). What are your pros/cons to it?

Yes, I only say it because is the idiomatic way (and for me, is cleaner because it would have more consistency with another libraries) but I don't have problem to see Id instead of ID, this is a minor problem.
Thanks!

I'll put it on my todo list for 3.0. BTW: You're welcome to test Elastic 3 with ES 2.0 :-)

ok, thanks! :+1:

For self-reference: Perhaps change awkward scrollID parameters to just scroll like in this example.

I'm sorry but I decided not to change Id to ID in 3.0.

authors: dashaus olivere

repo: olivere/elastic


text:
litecoin fix

hi litecoin all time info sync no load pool
info console
[litecoin] Daemon has downloaded 100.00% of blockchain from 48 peers
litecoin sync 100% normal work
version ltc
Litecoin Core version v0.21.2.2-5ac781487

https://github.com/minershaven/miningcore
I have it fixed in my version.

What was the fix if you don't mind me asking? - I just ran into the same issue.

I'll note that https://github.com/jon4hz/miningcore-foss/commits/ltc-fix also has a fix.

authors: dreams-money jakubartur minershaven

repo: oliverw/miningcore


text:
Persistent chat memory

I have ollama-python running with a custom ollama model. It works very well except that it does not remember the conversation at all. Every chat is like a new conversation.
I checked issues and I cant find the same problem I am having.(Or I did not look enough. Forgive me.)
I made this basic prototype with chat stream to test.
import ollama

model = 'Llama3'

def chat(message):
    messages = [{
    'role': 'user',
    'content': message,
    }]
    response = ollama.chat(model=model, messages=messages, stream=True)
    for line in response:
        print(line['message']['content'], end='', flush=True)

while True:
    print('\nQ to quit')
    prompt = input('Enter your message: ')
    if prompt.lower() == 'q':
        break
    else:
        chat(prompt)

Is there a doc somewhere I can use as guide for more use cases like persistent memory/context using the model's context size? Similar to how Ollama run works where the chat is continuous. Thanks.

You need to keep the conversation in your messages here response = ollama.chat(model=model, messages=messages, stream=True)
Ollama's official doc provides an example on this.

Does this mean declaring an empty list [] as messages variable and inserting each conversation turn to creat a conversation history, then using the while chat history as prompt for the chat?

Figured it out. For anyone who might encounter the same question, I will leave the bare bone code here. It can certainly remember previous conversation.
import ollama

model = 'Test'
messages = []

def chat(message):
    user_message = [{
    'role': 'user',
    'content': message,
    }]
    messages.append(user_message[0])
    response = ollama.chat(model=model, messages=messages)
    answer = response['message']['content']
    messages.append(response['message'])
    return answer

while True:
    print('\nQ to quit')
    prompt = input('Enter your message: ')
    if prompt.lower() == 'q':
        break
    else:
        reply = chat(prompt)
        print(reply)

I wrote this based on the examples you provided, which worked for me.
I think the problem you met (to maintain the history with steaming=True) is to get the complete response properly.
import ollama

model = 'Gemma2:2b'
messages = []
# Roles
USER = 'user'
ASSISTANT = 'assistant'

def add_history(content, role):
    messages.append({'role': role, 'content': content})

def chat(message):
    add_history(message, USER)
    response = ollama.chat(model=model, messages=messages, stream=True)
    complete_message = ''
    for line in response:
        complete_message += line['message']['content']
        print(line['message']['content'], end='', flush=True)
    add_history(complete_message, ASSISTANT)

while True:
    print('\nQ to quit')
    prompt = input('Enter your message: ')
    if prompt.lower() == 'q':
        break
    else:
        chat(prompt)

hi,i hava same question too.
i found there has a simple parameter in api /generate:
https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-completion

Generate a completion
POST /api/generate

request:

Advanced parameters (optional):
context: the context parameter returned from a previous request to /generate, this can be used to keep a short conversational memory

response:

context: an encoding of the conversation used in this response, this can be sent in the next request to keep a conversational memory

i wonder if i use /api/chat and want to keep memory, means only can store message at client(such as python script) and send all history message like {"role":"user",“content":"xxxx"} in the POST request body?
is there have a same things for /api/chat like parameter context in /api/generate? thanks for all!

hi,i hava same question too. i found there has a simple parameter in api /generate: https://github.com/ollama/ollama/blob/main/docs/api.md#generate-a-completion

Generate a completion
POST /api/generate

request:

Advanced parameters (optional):
context: the context parameter returned from a previous request to /generate, this can be used to keep a short conversational memory

response:

context: an encoding of the conversation used in this response, this can be sent in the next request to keep a conversational memory

i wonder if i use /api/chat and want to keep memory, means only can store message at client(such as python script) and send all history message like {"role":"user",“content":"xxxx"} in the POST request body? is there have a same things for /api/chat like parameter in /api/generate? thanks for all!context

or is there are any different between use /api/generate with context and use /api/chat with all history message

Hello, I'm having the same issue, I'm learning to use llms so probably I'm missing something, but with Strem=False, I'm sending all the message history, but the model reply to all my messages together.  I attach an example.
New msg: 10 + 10
20.
New msg: + 40
To evaluate the expression, I'll follow the order of operations:

1. First, add 10 and 10:
10 + 10 = 20
2. Now, add 20 (the result from step 1) to 40:
20 + 40 = 60

Therefore, the final answer is: **60**

Closing this out - we have an example under the examples directory :D

authors: ArnoldIOI ParthSareen SmoothBrainApe dyexlzc jwaitzel kikoferrer

repo: ollama/ollama-python


text:
support a custom HTTPX client in Client and AsyncClient

As well as allowing a custom httpx client, this also improves type safety in Client and AsyncClient - previously self._client implicitly had type of None.

This is needed for pydantic-ai to use this library rather than the OpenAI compatibility layer, see https://github.com/pydantic/pydantic-ai/issues/242.

Thanks for the PR. Can you provide some details in the description of why this change is necessary for pydantic-ai?

We would like to reuse a set of http connections (encapsulated in an HTTPX client) when creating Ollama clients, so it's as cheap as possible to create new clients.
Please could you at least kick off tests.
By the way, you can set github to run tests automatically, even for new contributors; this change makes it much more attractive to contribute to the library.

Hi can you fix the tests? ollama-python currently targets 3.8 so the union types | are not supported. Please use typing.Union

Fixed suggestions I think, by the way it would be easier for contributors and less work for you if you let tests run automatically.

authors: mxyng samuelcolvin