text:
No action from WillPopScope with GetRouterOutlet

Describe the bug
Have been trying GetRouterOutlet to work with the routing, and did simple pages to test it. However, using WillPopScope seems to
be affected when tapped. Follow the code below.
class RootPage extends GetView<AuthController> {
  const RootPage ({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GetRouterOutlet.builder(
      builder: (context, delegate, currentRoute) {
        return WillPopScope(
          onWillPop: () async {
            return false;  **<-- theoretically  should not pop, but it is.**
          },
          child: Scaffold(
              resizeToAvoidBottomInset: false,
              body: controller.obx(
                  (state) => GetRouterOutlet(
                        delegate: delegate,
                        initialRoute: Routes.dashboard,
                      ),
                  onError: (_) => GetRouterOutlet(initialRoute: Routes.login))),
        );
      },
    );
  }
}

/***MATERIAL APP ****/
class AppWidget extends StatelessWidget {
  const AppWidget({Key key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return GetMaterialApp.router(
      debugShowCheckedModeBanner: false,
      theme: AppTheme.appTheme,
      getPages: AppRoute.routes,
      initialBinding: GlobalBindings(),
      defaultTransition: Transition.noTransition,
    );
  }
}

The behaviour expected, according to the code above is to not get back, as you could see it's false. However, is getting back to the previous page.
Flutter Version:
Flutter 2.10.4
Engine • revision 57d3bac3dd
Tools • Dart 2.16.2 • DevTools 2.9.2
Getx Version:
get: ^4.6.5
Describe on which device you found the bug:
ex: Android Mobile Phone

Did you find anty solution?

you can try this
class MyBackButtonDispatcher extends RootBackButtonDispatcher {
  @override
  Future<bool> didPopRoute() async {
    var currentPageName = Get.rootDelegate.currentConfiguration?.currentPage!.name;
    if (currentPageName!.startsWith("/user")) {
      // cant back
      return true;
    }
    // back
    return super.didPopRoute();
  }
}

return GetMaterialApp.router(
    title: "Application",
    initialBinding: BindingsBuilder(
      () {
        Get.put(HomeService());
        Get.put(AuthService());
        Get.put(AuthServiceTest());
      },
    ),
    getPages: AppPages.routes,
    theme: themeData,
    backButtonDispatcher: MyBackButtonDispatcher(),

authors: m-mine pradeep14598 victordsgamorim

repo: jonataslaw/getx


text:
How can one ensure that each time entering PersonPage, it is a brand new instance of the personal home page for the respective user?

For example, there is a personal home page (PersonPage) with an associated PersonController.
When I go to my personal home page, find my followers list, and then visit the followers’ home pages,
I end up entering the PersonPage twice.
The first time I call Get.to(()=>PersonPage(userId:1)), PersonPage and PersonController are normally instantiated, and the constructor is also called.
However, the second time I call Get.to(()=>PersonPage(userId:2)), PersonPage and PersonController are not recreated.
How can one ensure that each time entering PersonPage, it is a brand new instance of the personal home page for the respective user?
I tried using Get.create/Get.spawn, but I’m not sure how to use it. Could you please provide a simple and easy-to-understand example? Thank you very much!
get: ^5.0.0-release-candidate-9.2

I tried using Get.create, but I’m not sure how to use it. Could you please provide a simple and easy-to-understand example? Thank you very much!

Why not initialize the controller inside the person page? Try doing that. Pass it required data via a model class, and initialize the controller inside the page or even better inject the controller.

read this :
https://github.com/jonataslaw/getx/blob/master/documentation/en_US/dependency_management.md#differences-between-methods

maybe this solution will solve your problem click

get: ^5.0.0-release-candidate-9.2 is bug

source: gharchive/issue

license: MIT

license_type: permissive

license_source: github-api


text:
🛑 MK - Macedonia is down

In 7d70fde, MK - Macedonia (https://www.skyshowtime.com/mk/help/) was down:

HTTP code: 404
Response time: 629 ms

Resolved: MK - Macedonia is back up in ab16a45 after 54 minutes.

repo: jonesyriffic/gsp-sst


text:
🛑 CZ - Czechia is down

In a8d2f59, CZ - Czechia (https://www.skyshowtime.com/cz/help/) was down:

HTTP code: 404
Response time: 873 ms

Resolved: CZ - Czechia is back up in 62f7a23 after 27 minutes.


text:
Show Profile status, joined dated, webaite and location

Closing as a duplicate of #223 (although this one came first, the reporter no longer has an account)

authors: ghost jonjomckay

repo: jonjomckay/fritter


text:
Fix convert xray

roll back code deploy and check when error occurred, it was definitely broken since multiple uploads
sometime it seems to work :o

only happens in combination with local invokes

repo: jonny-rimek/wowmate


text:
Refactor the list of sessions into a manifest class.

Greetings.
I have a proposed refactoring that I would like to do (mostly done actually) regarding how nox comes up with its session list.
The Status Quo
Right now, the main function discovers sessions based on the Noxfile, filters them based on CLI arguments, ends up with a list, and then does a simple loop over that list and executes them in order.
Proposal
I want to refactor how nox stores its session list into a somewhat more powerful "manifest" class, implemented in this PR (manifest.py). The manifest takes the original list of functions that comes back from discover_session_functions and applies all the filters as before.
Iterating over the manifest is slightly different, in an extremely important way. Internally, the manifest keeps a queue (a list of sessions yet to be yielded) and a consumed list (a list of sessions already yielded). Importantly, this allows the queue of remaining sessions to be modified during iteration.
Why do I want this?
Basically, I want to be able to add a session to the queue from another session. In particular, I want to implement something similar to handlers in Ansible, so I could do something like this...
@nox.session
@nox.parametrize(version=('2.7', '3.6'))
def unit_tests(session, version):
    # Run the unit tests
    cover.notify()   # <-- THIS IS THE IMPORTANT PART. :-)

@nox.session
@nox.parametrize(version=('2.7', '3.6'))
def system_tests(session, version):
    # Run the system tests

@nox.session
def docs(session):
    # Build the docs.

@nox.session
def lint(session):
    # Lint all the things.

@nox.session
def cover(session):
    # All the .coverage files were written by unit_test earlier.
    session.install('coverage')
    session.run('coverage', 'report', '--fail-under=100')
    session.run('coverage', 'erase')

I want this because right now I find myself issuing nox -s "unit_tests(version='3.6')" ; nox -s cover a lot. Really what I want is I always want cover to run if any of the sessions that wrote out coverage data ran.
Obviously not everyone will want this, but I hope in principle you can see how this is a useful feature. :-)
Conclusion
This does not yet implement the notify feature (although it becomes easy once the manifest is a thing). However, is this something you are willing to accept in principle?
The manifest code is there and works, I would just need to update tests (but test_run is kind of gnarly and I wanted to get design approval before I spent an hour adapting all the mocks and such).

This is a great idea. I'm all for it.
Feel free to delete/refactor the test_run stuff if it makes it easier for you, as long as we maintain coverage.

Just pinging to say I intend to finish this next week.

Feel free to delete/refactor the test_run stuff if it makes it easier for you, as long as we maintain coverage.

@jonparrott Please see lukesneeringer/nox#1 for this refactor. It ended up being much more significant than I planned (I refactored both the function and the tests) so I sent it up separately.

Coverage back to 100% on lukesneeringer/nox#1.
Once this gets in, I can actually write the (absolutely trivial by comparison) useful features I want that depend on it. :-p

Codecov Report

Merging #38 into master will decrease coverage by 0.32%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #38      +/-   ##
==========================================
- Coverage     100%   99.67%   -0.33%
==========================================
  Files          11       15       +4
  Lines         544      620      +76
  Branches       85       97      +12
==========================================
+ Hits          544      618      +74
- Misses          0        1       +1
- Partials        0        1       +1

Impacted Files
Coverage Δ

nox/utils.py
71.42% <ø> (-28.58%)
:arrow_down:

nox/sessions.py
100% <100%> (ø)
:arrow_up:

nox/tasks.py
100% <100%> (ø)

nox/main.py
100% <100%> (ø)
:arrow_up:

nox/workflow.py
100% <100%> (ø)

nox/_testing.py
100% <100%> (ø)

nox/manifest.py
100% <100%> (ø)

... and 2 more

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 5f1265d...10f3e67. Read the comment docs.

LGTM, but travis is failing

source: gharchive/pull-request

authors: codecov-io jonparrott lukesneeringer

repo: jonparrott/nox

license_source: bigquery


text:
'use stric' error, should be 'use strict'

https://github.com/jonschlinkert/strip-comments/blob/master/index.js
you have written 'use stric' instead of 'use strict' which means it will not be parsed in strict mode at all

which means it will not be parsed in strict mode at all

Well that's why I made the typo, to prevent it from being parsed in strict mode. jk ;)
@tunnckoCore I thought that was fixed a loooooooong time ago? wasn't it?

hmmmm... I dont know, actually. Cuz badge shows it is 0.3.2, in commits history there's no 0.3.2 commit. Also cant remember what we decide finally.

We also have some PRs and I came with that solution. https://github.com/tunnckoCore/code-comments-regex

fixed

repo: jonschlinkert/strip-comments

license: mit


text:
Table of contents is jumbled

This is what I get when I add a table of contents. Note this is a very long googledoc, but well-formatted using headings.
iOS 10.14.6
Chrome Version 80.0.3987.149 (Official Build) (64-bit)

Is this on an iOS device?  Does this display correctly if you look at it on a non iOS browser?

Gah! Sorry, I meant MacOS. Version number above is correct.
On Tue, 14 Apr 2020 at 21:53, jordan2175 notifications@github.com wrote:

Is this on an iOS device? Does this display correctly if you look at it on
a non iOS browser?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jordan2175/markdown-tools/issues/6#issuecomment-613648474,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHEWEKHTDU3ASQY24PQ3ZETRMS5LHANCNFSM4MHQXAVQ
.

--
Tom Nixon
+44 (0) 7970 270544 | Website http://tomnixon.co.uk | Twitter
http://twitter.com/tomnixon | LinkedIn
http://www.linkedin.com/in/tomnixon
☎ Book a call https://calendly.com/tomnixon with me.
💥 Check out my product Maptio http://maptio.com for self-managing
organisations.
💡 Join my online workshop
https://betterworktogether.teachable.com/p/introduction-to-source about
the special role founders play in organisations.
🌍 Come to Meaning https://meaningconference.co.uk/, our conference for
better 21st century business.

As I can not replicate this, can you share the link to a sanitized document with me so I can see what is going on?

I have tried this with Chrome version Version 80.0.3987.149 (Official Build) (64-bit) on MacOS 10.14.6 with over 300 header sections and can not replicate the problem you are seeing.

Thanks for investigating. I think I figured out the problem - the page size was A5 (it's a book). When I switched to A4 the table of contents rendered correctly.
Putting aside the page size issue, I don't think this table of contents is suitable for a book. I guess your intent is for users of markdown rather than a print/kindle friendly table of contents which is fair enough.
There's definitely a gap in the market - at the moment there's no Add-on to create a ToC in gdocs that allows you to specify which heading levels you want to be included. The built-in gdocs ToC always adds every heading level to the contents which is way too much for a book.

That is actually a really interesting idea. I would have to see if I could do something like that.

Lots of demand for it - check out the upvotes on this. Also some specific
feature ideas. Dunno why google isn’t interested in doing it.
https://support.google.com/docs/thread/4362484?hl=en
On Fri, 17 Apr 2020 at 18:36, jordan2175 notifications@github.com wrote:

That is actually a really interesting idea. I would have to see if I could
do something like that.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jordan2175/markdown-tools/issues/6#issuecomment-615345862,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AHEWEKC3AN3DC5JNN3NOGBTRNCAQVANCNFSM4MHQXAVQ
.

--
Tom Nixon
+44 (0) 7970 270544 | Website http://tomnixon.co.uk | Twitter
http://twitter.com/tomnixon | LinkedIn
http://www.linkedin.com/in/tomnixon
☎ Book a call https://calendly.com/tomnixon with me.
💥 Check out my product Maptio http://maptio.com for self-managing
organisations.
💡 Join my online workshop
https://betterworktogether.teachable.com/p/introduction-to-source about
the special role founders play in organisations.
🌍 Come to Meaning https://meaningconference.co.uk/, our conference for
better 21st century business.


text:
Routes

Hi,how to know the routes?
Or the basic functionality?
Thanks!

Hi,
You can just run php artisan route:list to get the list with the available routes for your application.

It looks great. But, what if you have a custom UserModel ? You need to use your UserModel. It doesn't work with custom user model :(

It does work with you custom user model. I'm sorry my docs are not completed yet but you have to make sure your custom user model uses the BlogifyUserTrait ('jorenvanhocht\Blogify\Traits\BlogifyUserTrait')

hehe. ok. And if you use Confident for users Roles?. Its a great package, yes. But if you need to use in an working project, its a little bit complicated. I will wait your docs.

Thanks for letting me know, so I can work on that. I will need to take a look at that part, specific for migrations etc so It does not override existing tables like the user table etc. Normally the package should be finished in the middle of June. Your feedback is appreciated and I will work on your feedback. If you find any other issues feel free to report them so I can take a look at them.
Joren

Thats great! I will wait your release. Thanks!

authors: Krato jorenvh

repo: jorenvh/Blogify


text:
cambie my_file.py

agregue una linea de codigo

Yo lo veo bueno al cambio

authors: MarielCG sypten


text:
iOS: Image View Tweaks

Make sure to set the initial content mode
Make the clipsToBounds flag available. Pretty much any time you're using .ScaleAspectFill you want this set. It matters.

Great finds :+1:

authors: adly-holler joshaber


text:
Individual slide direction

This PR address Issue #6. It adds the ability to change the slide direction for an individual slide. The Presenter.slideDirection is the default, if no direction is specified on a slide.

https://user-images.githubusercontent.com/8521453/189356065-926e1846-d61c-4f2b-af90-d11ce33177a6.mov

repo: joshdholtz/DeckUI


text:
Cannot read property 'GCConnectionStatus_HAVE_SESSION' of undefined

This has resurfaced:
https://github.com/joshuaferrara/node-csgo/issues/10

Thanks! Updated according to the comment.

repo: joshuaferrara/node-csgo


text:
SCSS not updating

I am using CodeKit which is compiling my SCSS into CSS properly, but for some reason my theme isn't updating the changes. I have tried the customizer.scss, style.scss, and _base.scss files with no luck. What am I doing wrong? I'm using MAMP on localhost. Updating PHP files works fine, just trying to figure out the scss -> css thing.

Hi @companyhen - if you're using Chrome, it aggressively (and I mean really aggressively) caches pages. I use the Classic Cache Killer extension to make sure Chrome doesn't cache anything:
https://chrome.google.com/webstore/detail/classic-cache-killer/kkmknnnjliniefekpicbaaobdnjjikfp?hl=en
If that still doesn't do it, add some changes to your .scss file and then check the compiled style.css file to make sure your changes are being compiled.
Also, usually CodeKit needs no setup but if you have changed the theme file structure you might need to adjust the output path(s) in CodeKit.
If none of those are helping, circle back and we can try to troubleshoot further.

Thanks for the quick reply @joshuaiz
I didn't make any changes to the theme structure, I just dragged the theme into codekit and set up a new wordpress database via mamp. Site is running like normal and PHP file changes are working with livereload.
Previously I was using the wp-scss plugin (https://wordpress.org/plugins/wp-scss/) with Bones theme successfully to get it working - I assume I don't need that any more? I installed the Chrome plugin (I use http://brave.com which uses chromium) but still no luck.
Should I "enable" build folder?

Appreciate your help.

Hi @companyhen - no you don't need the build process.
In your CodeKit, in the files section, can you click on /library/scss/style.scss and see what it looks like. Mine looks like this:

Make sure the Output is set to 'Compile it` and it is going to the same location.
Just some obvious things to check:

are you viewing the correct site from MAMP?
can you check in the <head> and make sure it is loading style.css from the theme?
are you using another minifier or caching plugin (e.g. WP Super Cache, WP Total Cache, Autooptimize, etc)?

Yes I'm viewing the correct site
/library/css/style.css is being loaded
I just put up a clean Wordpress 5.1 install with no plugins activated at the moment.

Although it looks like my CodeKit settings were slightly different from yours:

It seems to be working with updates to the style.scss file after copying your settings in CodeKit! Thanks.
Can I create a new scss file (ex: custom.scss) to do my custom css in? Or is that what the 'customizer.scss' file is for? Because I'm making updates in the customizer file and no changes are being updated, unlike the style.scss file which is working now.

Your set up is fine...the Create a source map is cool because it will map your compiled file back to the original file so when you're working in the dev tools, it will show _base.scss or _768up.scss or whatever.
Autoprefixer automatically adds any vendor prefixes for various browser so it's also a nice to have.
(Just saw your new message) Great!!
customizer.scss is intended for the WordPress Customizer.
The way Plate works and how Bones worked is you really can just edit the existing files as you need. All that said, you can definitely add a custom.scss (or any additional stylesheets). The main thing is that whenever you add a stylesheet, you need to update the style.scss file to make sure it is importing it. You'll see all of the import statements at the top, so you can just add yours like so (at the bottom):
/*********************
IMPORTING PARTIALS
These files are needed at the beginning so that we establish all
our mixins, functions, and variables that we'll be using across
the whole project.
*********************/

// normalize: http://necolas.github.io/normalize.css/
@import "partials/normalize";

// Sass variables
@import "partials/variables";

// typography
@import "partials/typography";

// Sass functions
@import "partials/functions";

// import mixins
@import "partials/mixins";

// CSS Grid
@import "partials/cssgrid";

// Add your custom stylesheet
@import "partials/custom"

Note that to import this way, you need to use an underscore as the first character of your file so "_custom.scss" should be the filename.
Again, you don't have to create your own custom stylesheet(s) — you can just edit the existing ones — but you certainly can. Just make sure that every new stylesheet has to be imported to style.scss so that it gets compiled to the final output.
Re: External Server, I used to use MAMP Pro and I think you need to use the alias from MAMP so it should be something like: http://plate.local:8888/ or http://localhost:8888/ - it depends how you have things set up in MAMP. Here's more info from CodeKit: https://codekitapp.com/help/browser-refreshing/

Thanks a ton! That worked.
One issue I'm having now is my custom.scss has less priority for some reason, see screenshot. Any suggestions on fixing this without having to abuse !important

With CSS, it is actually the lower or last rule that has priority so I would then place your @import down at the bottom of style.scss and it should have priority.
All that said, if you're editing styles that are already in Plate, I really would just...wait for it...edit them! That's how Plate (and Bones) are supposed to work. Just go in and get dirty...you can always copy the original styles back from a fresh copy of Plate so I wouldn't worry about adding your own stylesheet.

Thanks for all the help, looking forward to having fun with this. 😄

No worries. Going to close this...if anything else crops up, don't hesitate to file a new issue.

authors: companyhen joshuaiz

repo: joshuaiz/plate

license: WTFPL


text:
feat(atomWithLocation): override replace for specific navigations

Sometimes you want to be able to both push and replace when navigating in the same file, without having to use useAtom twice creating two copies of the setLocation method.
This PR allows you to override your "replace" option for specific calls to the setLocation call.

Published: https://www.npmjs.com/package/jotai-location/v/0.5.3

authors: Flirre dai-shi

repo: jotaijs/jotai-location


text:
Passing props to jotai-tanstack-query

How can I pass props to atomWithQuery?
I realize atomWithQuery is global / context scoped whereas props are component scoped. But queryCache is context scoped and react-query accepts unmemoized props.
I want to bring my fetched data into the jotai context store so I can write derived atoms reactive to this data.
If I could somehow pass props to a context-scoped jotai atom, then I would be able to use jotai-tanstack-query instead of react-query, which would also resolve the related issue below for me.
Related: https://github.com/jotaijs/jotai-tanstack-query/issues/48

The recommended approach for passing props is to create and memoize jotai atoms in a component, but then how would other atoms be able to get a reference to the atom config to access the fetched data?

How would context/global scoped atoms get a reference to the atom config to access the fetched data?

Can you elaborate a bit? Can you explain it without atomWithQuery?

One idea for an api:
function Post(id: number) {
  const { status, data, error, isFetching } = useAtomValue(atomQuery({
    queryKey: ['posts', id],
    queryFn: async ([_, id]) => {
      const { data } = await getPost(id)
      return data
    },
  }))
  ...
}

How would context/global scoped atoms get a reference to the atom config to access the fetched data?

const derivedPostAtom = atom(get => {
  get(postQueryAtom)  // <--- How do I get this?
})

function Post(id: number) {
  const postQueryAtom = useMemo(() => {
    const postQueryAtom = atomWithQuery(() => ({
      queryKey: ['posts', id],
      queryFn: async ([_, id]) => {
        const { data } = await getPost(id)
        return data
      }
    }))
    return postQueryAtom
  }, [id])

  const { status, data, error, isFetching } = useAtomValue(postQueryAtom)
  ...
}

https://github.com/jotaijs/jotai-tanstack-query/issues/49#issuecomment-1750108716

get(postQueryAtom)  // <--- How do I get this?

As it's not global, you need to use context or put the atom config in a global atom (but it can only holds one.)
Or, use bunshi.

I see. The prop is component scoped as it the resulting data so a global atom would need to support a collection of props.

authors: dai-shi dmaskasky

repo: jotaijs/jotai-tanstack-query


text:
ThemeSelect doesn't seem to work in a production build of a Hilla React app

After doing a production build and running the app, the React ThemeSelect doesn't seem to do anything. It does not initialize with a value, and selecting a value in the dropdown does not change the theme, nor does it update the select's value:
https://github.com/user-attachments/assets/500c1688-7c5c-4751-a879-b96cb9abd1ac
To reproduce:

Download this example project: repro.zip
Run mvn clean package -Pproduction
Start the app with java -jar target/skeleton-starter-hilla-react-1.0-SNAPSHOT.jar
Open http://localhost:8080 and try to interact with the component

Thanks for testing it! Unfortunately, I don't have any idea what might be the cause.

authors: jouni sissbruecker

repo: jouni/theme-select


text:
removed CB_path, CB_query_string and CB_fragment

removed CB_path, CB_query_string and CB_fragment

Thanks, I'll happily merge your patch but I'm afraid I need a signed CLA first.

yup, already did, but I'll do it again =)

Thanks Randy, merged in b215eaa. It's odd, I didn't see you on the list yesterday but you're on it twice now. Maybe the first one got delayed in a queue somewhere. Anyway, thanks again!

authors: bnoordhuis rrizun

repo: joyent/http-parser


text:
Icons not showing

After installing the program on Ubuntu, the icon(s) are not showing.
Generated binaries can be found here for further debugging.

Thanks! The path was wrong:
---QIcon path: /usr/local/bin/DICOMAnonymizer/dicomanonymizer/../images/up.png

Great! Assuming that his is solved, I am closing this comment.

If an element in the path is missing from the system, Linux cannot find the path.
os.path.split(os.path.dirname(os.path.realpath(__file__))) includes the directory "dicomanonymizer" which is not present in the install dir. Hence it fails.
See commit d771b96a9eb0035f215add3b0c352285c1abeefd

authors: andreped jpdefrutosSINTEF


text:
Illegal characters in the URL

Hello. I try to get page from Url thruout
Jsoup::connect($link)->get()

or
Stream::getContents($link)

But most of links execute ioExeption that "illegal characters in the URL".
As i understand we can not work with http withuout URLEncoder.encode URLEncoder.decode methods?
We need to add java.net.URLEncoder to jphp code?
Please help to include JAVA class to JPHP code. Thanks.

Please, execute var_dump($link) and write the result here. $link contains invalid characters for url.

Code like this:
$cwd = System::getEnv()['DIRNAME'];

$links = Stream::of($cwd.'forums.txt', 'r');

try {
   	$link = $links->readFully();
    $content = Stream::getContents($link);
    Stream::putContents($cwd.'forums2.txt', $content, 'a');
} finally {
   $links->close();
}

http://www.wwlf.h10.ru/
http://planeta-malysh.ru/forum/
http://heelys-portugal.com/forum/
http://galeclub.invisionplus.net/
http://profikkm.ru/forum/
http://it19.invisionplus.net/
http://mystateline.com/forums/
http://sepecat.info/forum/
http://forum.paintwar.ru/
http://nuavongtraidat.com/4rum/
http://forum.rostov-smu.ru/
http://tmprint.spb.ru/forum/

The $link variable contains the all urls from froms.text, the http functions cannot get content from multiple urls.

$links->readFully(); read's all file?
Дмитрий, простите за тупые вопросы. Но очень хочеться разобраться.

Use the scanner class to read each line from file.
use php\util\Scanner;
...
$scanner = new Scanner($links);

while ($scanner->hasNextLine()) {
    $url = $scanner->nextLine();
    // .... working with each url
}

readFully читает абсолютно все что есть в файле, т.е. весь файл.

authors: FirestarterUA dim-s

repo: jphp-compiler/jphp


text:
dnase_wig_tracks.py crushes - python3

Hi, apparently dnase_wig_tracks.py python3 version crushes. Python says the reason is that  GenomicInterval objects canot be compared to each other. Indeed I can't find any internal method for such comaprison in pyDNase package. In package for python2 it works however but I can't figure where it's defined. Could you give me a hint on that?
Thx!
>>> import pyDNase
>>> regions = pyDNase.GenomicIntervalSet("some.bed")
Reading BED File...
[################################] 39169/39169 - 00:00:01
>>> for each in [item for sublist in sorted(regions.intervals.values()) for item in sorted(sublist, key=lambda peak: peak.startbp)]:
...     continue
...
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: unorderable types: GenomicInterval() < GenomicInterval()

Can you try upgrading (pip install -u pyDnase) and see if the error is still there?

Works! Nicely done thanks

authors: jpiper mcjmigdal

repo: jpiper/pyDNase


text:
🛑 Launch Morrisville is down

In 7855415, Launch Morrisville (https://LaunchMorrisville.org) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Launch Morrisville is back up in aa7ef49 after 29 minutes.


text:
Handling polygons

Moving folder with polygons into the repo to allow for more flexibility. A few additional help functions have been added to further increase user friendliness of the handling of polygons.

The default region in config_main.ini doesn't exist in polygons. Maybe change Scandinavia to Fenno-Scandinavia or have it as none as default?

I've tested it on Bi and it looks very good to me.
Go ahead and merge it when you have time..


text:
WIP: python plugin merge

[x] migrate build
[ ] migrate docs
[ ] migrate deploy

giving up

repo: jpmorganchase/perspective


text:
Add python binding

Closes #37
from jpreprocess import JPreprocess
j=JPreprocess(dictionary="../../crates/jpreprocess/tests/dict")

TODO

[ ] r9y9/pyopenjtalk#74 を拾う
[ ] mypyをjpreprocess packageに対して走らせる

repo: jpreprocess/jpreprocess


text:
2.5.1 - Tracking thread for a bug fix only release

Just a thread to track the proposed changes for 2.5.1, primarily fixes for user reported issues #293 and #294 which are included in my pull request #295 :)

Now includes:
#305 PiAware client version bump to 3.3

Now includes:
#293 - Initial work towards graphing on non-Pi hardware
#294 - Fix python indent error that was filling syslog
#305 - PiAware Client update to version 3.3
#310 - MLAT Client update to version 0.2.8

My 2.5.1 branch pull request (#295) now includes:
#276 - Sanity checking of user entered LAT/LON during setup
#293 - Initial work towards graphing on non-Pi hardware
#294 - Fix python indent error that was filling syslog
#305 - PiAware Client update to version 3.3
#310 - MLAT Client revert to version 0.2.7
#316 - MLAT client will not install if the configured version does not match the latest version
#317 - PlaneFinder ARM Client update to version 3.5.469

repo: jprochazka/adsb-receiver


text:
重构一下代码吧

代码问题太多了：名称定义有问题，各种if 判断，还有完全没有按照ruby的命名规则定义...
实例代码也有问题

重构一下代码吧！！！！！！！！！各种恶心的变量名跟使用规范，浓浓的 Java 味道

你们说的很正确，我们正在重构代码，感谢建议

authors: Martin288 chucai helperhaps

repo: jpush/jpush-api-ruby-client


text:
Change where comments are attached back to 1.2 branch location.

https://code.google.com/p/esprima/issues/detail?id=607
This logic is the same as the 1.2 branch stack eating logic, it results in
comment nodes being placed where tools like ESLint expect them to exist.

Don't close this yet.

@briandipalma thanks again for contributing! We just finished having the discussion over in #1024, and decided we're not going to go back, so I'm going to close this PR. Thanks again.

authors: briandipalma mikesherov

repo: jquery/esprima


text:
[assemble] Add template support to archive assembler

All other assemblers support templates, archive should do as well.

Released in v1.5.0 -> https://github.com/jreleaser/jreleaser/releases/tag/v1.5.0

repo: jreleaser/jreleaser


text:
pkg 1.17.0 in FreeBSD changes package suffix to .pkg

With pkg 1.17.0, freebsd/ports/main commit e497a16a286972bfcab908209b11ee6a13d99dc9 (https://cgit.freebsd.org/ports/commit/?id=e497a16a286972bfcab908209b11ee6a13d99dc9), package suffix is now .pkg.
This causes the command synth rebuild-repository to believe the package repository is empty.
A workaround is to run pkg repo /path/to/repo.
Actually, this issue is more severe, as it turns out Synth believes it must (re)build every port specified, because the associated .txz files no longer exists.

I'm having the same issue.
However, only 44 of 215 packages are stored (in .pkg format) in the packages directory. The rest are missing.
Synth is now rebuilding all 171 missing packages anytime there is a new update. Those never get packaged up. No errors or warnings in the logs file. They are all shown as green and marked as "Built".

So obviously this is a pretty big deal.
What's the suggested approach?  For people that have pre-4.17 pkg, they have to continue using current version of synth and people using 4.17 pkg and newer have to use a new release of synth?  In other words, can Synth handle a single extension (either .txz or .pkg)? Because if it has to support both simultaneously that's a log more complicated.

does someone want to try to build this and try it?
https://github.com/jrmarino/synth/commit/889368421b42d918ea63de5b8687e7d186505597
It's on a working branch:
https://github.com/jrmarino/synth/tree/txz-to-pkg-extension

I gave it a go at my "proving ground" (stable/13) at ${WORK}, and later on the dedicated builder (stable/12) also at ${WORK}. I saw no undesired side effects. The latter is currently rebuilding all ports we use at ${WORK}.
I'm now at home rebuilding synth(1) om my laptop (current) and I will shortly rebuild all my ports and experiment with PKG_COMPRESSION_FORMAT=tzst in LiveSystem-make.conf. Listening to the Interstellar soundtrack at the same time is highly motivating.

I've just tried the new code and it appears to work fine.

here's a follow-on commit:
https://github.com/jrmarino/synth/commit/eedd497427fafe36a640e6d6217624254d345a57
Primarily it removes the "-xz" switch for the pkg package extraction.
I think everyone is saying this branch is working as expected (even without the last commit) so if I can get one or two more confirmations, I can merge this into master and cut a new release.

txz-to-pkg-extension works on 14-CURRENT

okay, I'll merge the branch and cut a new release

here's a follow-on commit:
eedd497
Primarily it removes the "-xz" switch for the pkg package extraction.
I think everyone is saying this branch is working as expected (even without the last commit) so if I can get one or two more confirmations, I can merge this into master and cut a new release.

The builder at ${WORK} finally finished with synth rebuild-repository:
Stand by, prescanning existing packages.
Stand by, recursively scanning 841 ports serially.
Scanning existing packages.
Packages validated, rebuilding local repository.
Local repository successfully rebuilt

All metadata is present and accounted for:
# ll /var/synth/live_packages
total 348
drwxr-xr-x  2 root  wheel       3 Jul 23 09:33 .tmp/
drwxr-xr-x  2 root  wheel    1719 Jul 23 17:55 All/
drwxr-xr-x  2 root  wheel       5 Jul 23 10:24 Latest/
-rw-r--r--  1 root  wheel     163 Jul 23 17:58 meta.conf
-rw-r--r--  1 root  wheel     792 Jul 23 17:58 meta.pkg
lrwxr-xr-x  1 root  wheel       8 Jul 23 17:58 meta.txz@ -> meta.pkg
-rw-r--r--  1 root  wheel  242480 Jul 23 17:58 packagesite.pkg
lrwxr-xr-x  1 root  wheel      15 Jul 23 17:58 packagesite.txz@ -> packagesite.pkg

I think the txz-to-pkg-extension branch is ready for release.

okay, release https://github.com/jrmarino/synth/tree/v2.12 is published.
Can somebody let fluffy know?

okay, release https://github.com/jrmarino/synth/tree/v2.12 is published.
Can somebody let fluffy know?

I'll send an email.

I hope there's no objections to me closing this issue.

authors: Ximalas daemonblade jrmarino qcybb shiorid

repo: jrmarino/synth

license: isc


text:
Add display of current value to slider parameters

Expected Behavior
As the slider is changed, show the value of the slider.
@gilboonet suggests "An option to show/hide slider value would be great."
Actual Behavior
The slider is shown but there's no display of the current value.
Steps to Reproduce the Problem

Open the example call "All Parameter Types"
There slider can be moved but there's not value displayed.

Specifications

Version: All
Platform: Web UI
Environment: Browsers

When I tweaked the old version (0.4 if I recall correctly) of openjscad to customize parameters, I added sliders with value, and also dual slider that allow to specify an interval, but my solution was ugly : I used bootstrap controls that replaced a text parameter and feed its value. And it needed javascript code to init the bootstrap controls with parameters names. And to be able to do that I needed to add name property to parameters class. This allow me to easily be able to use json to read/save parameters with name=value couplets. I can fetch my old code if it can be useful, but it was before I use github.


text:
V2 : Enable coverage reports

These changes enables coverage reports for packages with test suites.
The coverage reports can be viewed by opening the "coverage_reports.html" file in the project directory.
All Submissions:

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same update/change?
[x] Does your submission pass tests?

@z3dev tried to run this today, but sadly, as I feared , it does not work unless you add nyc as a dependency of all the sub packages (I think it worked for you because you had a version with nyc already installed in there, you will likely have the same issue if you run lerna clean before running the coverage command).
I understand why you wanted to remove the dependency from each individual package, but I fear it is not that trivial (I tried to do this a while back with ava , which is also a similar devdependency) and failed

there is a lerna command to achieve something like that, trying to solve it now
https://github.com/lerna/lerna/blob/master/doc/hoist.md

aha ! Found a solution ! Shall I edit your PR a tiny bit @z3dev  ? it is just a minor change in the main package.json

@z3dev  ?

aha ! Found a solution ! Shall I edit your PR a tiny bit @z3dev ?

@kaosat-dev Please amend.

@kaosat-dev looks good.
I thought you might use hoist. Do you know if lerna.json can be used for hoist as well?

@z3dev , hmm good question, the docs are not clear on the subject at all : does it matter if it is in the command or lerna config ?

Nope. I’m fine. We are both learning a lot. 😃

@kaosat-dev please merge.


text:
🛑 Piwigo is down

In b35e4aa, Piwigo ($SERVER_BASE/piwigo/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Piwigo is back up in 68ebbc8.

repo: jscmidt/upptime


text:
🛑 Tandoor is down

In 18e2731, Tandoor ($SERVER_BASE/recipes/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Tandoor is back up in b657d8c.


text:
New Rule: requireSpread (ES6)

Could this work?
Similar to #1305 (requireRest or disallowArgumentsObject)
// Good
const wrap = (f, g) => (...args) => g(f, ...args)
instance.method(...args)

// Bad
const wrap = (f, g) => (...args) => g.apply(g, [f].concat(args))
instance.method.apply(instance, args);

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/12719543-new-rule-requirespread-es6?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F281640&utm_medium=issues&utm_source=github).

We can always make sure that the first parameter is the same as the object of the member expression.
// bad
g.apply(g, arguments);

// good, we can't be certain that apply is Function.prototype.apply
g.apply(arguments);

// good
g(...args);

Thanks - sounds good.

Apply is not everything; I'd like to have the following:
function f() {
    return arguments[0];
}

banned as well so that there is no single arguments in my code (maybe except when it's used as a regular, non-special variable but I don't care too much about it).
But since this example should be replaced by:
function f(a) {
    return a;
}

& there is no spread there, maybe it's not sth meant for this rule.

I think that could be covered in #1305 with disallowIdentifierNames: ['arguments']

authors: hzoo mikesherov mzgol

repo: jscs-dev/node-jscs


text:
requirePaddingNewlinesAfterUseStrict: allow immediate require() sta…

…tements
Fixes #1599

Thank you!

:dancers:

authors: faceleg markelog


text:
2.19.3 fails with Error: fatal: pathspec 'undefined' did not match any files

I am using npm 8.5 and the --legacy-peer-deps switch when running npm install.
My environment: @nrwl/* 13.8.3, @jscutlery/semver 2.19.3.
This is the version entry in project.json:
    "version": {
      "executor": "@jscutlery/semver:version",
      "options": {
        "commitMessageFormat": "chore(${projectName}): release version ${version}",
        "skipProjectChangelog": true
      }
    },

Here is the stack trace (with sanitized root paths):
Error: fatal: pathspec 'undefined' did not match any files

    at ./node_modules/@jscutlery/semver/src/executors/version/utils/git.js:62:186
    at Observable.init [as _subscribe] (./node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/observable/throwError.js:8:64)
    at Observable._trySubscribe (./node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/Observable.js:41:25)
    at ./node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/Observable.js:35:31
    at Object.errorContext (./node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/util/errorContext.js:22:9)
    at Observable.subscribe (./node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/Observable.js:26:24)
    at ./node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/operators/catchError.js:17:31
    at OperatorSubscriber._this._error (./node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/operators/OperatorSubscriber.js:43:21)
    at OperatorSubscriber.Subscriber.error (./node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/Subscriber.js:60:18)
    at OperatorSubscriber.Subscriber._error (./node_modules/@jscutlery/semver/node_modules/rxjs/dist/cjs/internal/Subscriber.js:84:30)

I'm going to rollback to the previous release and see if that helps. What else can I look for that would help?
Rolling back to 2.18.2 makes the issue go away, so there must be a breakage in 2.19.*

@kurtinatlanta Thanks for the report, this has been fixed in 2.19.4.

Much better. Thank you very much!

authors: edbzn kurtinatlanta

repo: jscutlery/semver


text:
react-ladda from npm outdated

Hi,
I just installed react-ladda from npm npm install --save react-ladda, and I notice the code is outdated when compared to the repo.
This the code  of componentDidUpdate inside node_modules/react-ladda/index.js
componentDidUpdate: function() {
    if (!this.laddaButton) {
      return;
    }

    // Skip if the button was initially disabled.
    if (!this.props.loading && this.props.disabled) {
      return;
    }

    if (this.props.loading && !this.laddaButton.isLoading()) {
      this.laddaButton.start();
    } else if (!this.props.loading && this.laddaButton.isLoading()){
      this.laddaButton.stop();
    }

    if (typeof this.props.progress !== 'undefined') {
      this.laddaButton.setProgress(this.props.progress);
    }
  }

It seems the latest commit (29897875a575d355de0e6fca455ff33885da26e0) is not on npm, which is a same since it fixed the problem I'm having.

Thanks for noticing. I've just published the latest changes in react-ladda@4.0.1.

Thanks! :+1:

Hm, I've faced the same issue with 4.0.3. The code on the npm is still the same as in 4.0.1 version

@antoniopuero this should be fixed in react-ladda@4.0.4

authors: TGMorais antoniopuero jsdir

repo: jsdir/react-ladda


text:
inheritance chain not displayed for AMD modules

my English is poor, and I am beginner to requirejs and jsdoc.
I have the following code
/**
 * @module mymodule
 */
define(function () {
    /**
     * @classdesc Person class
     * @class Person
     * @constructor
     */
    var Person = function () {
    };
    /**
     * @description say I'm Person class
     */
    Person.prototype.sayName = function () {
        alert("I'm Person");
    };
    /**
     * @classdesc Student class
     * @class Student
     * @extends Person
     * @constructor
     */
    var Student = function () {
    };
    /**
     * @description say I'm Student class
     * @override
     */
    Student.prototype.sayName = function () {
        alert("I'm Student");
    };
    return Student;
});

the Student class's method sayName overrides the Person's method,but the after running jsdoc,the out did not show the inheritance. please look at the screenshot

but when i put the code into a normal js file,the inheritance is displayed.
code
/**
 * @classdesc Person class
 * @class Person
 * @constructor
 */
var Person = function () {
};
/**
 * @description say I'm Person class
 */
Person.prototype.sayName = function () {
    alert("I'm Person");
};
/**
 * @classdesc Student class
 * @class Student
 * @extends Person
 * @constructor
 */
var Student = function () {
};
/**
 * @description say I'm Student class
 */
Student.prototype.sayName = function () {
    alert("I'm Student");
};

screenshot

jsdoc's version is JSDoc 3.3.0-dev

The problem is that you're using the wrong names for the classes. Please see these examples on Use JSDoc for the correct way to document AMD modules.
In this case, the longname for the Person class should be module:mymodule~Person, because it's an inner class (in other words, it is not exported by the module). The longname for the Student class should be module:mymodule, because it's the only symbol exported by the module.
Here's a fixed-up version of your example:
/**
 * @module mymodule
 */
define(function () {
    /**
     * @classdesc Person class
     * @class
     * @alias module:mymodule~Person
     */
    var Person = function () {
    };
    /**
     * @description say I'm Person class
     */
    Person.prototype.sayName = function () {
        alert("I'm Person");
    };
    /**
     * @classdesc Student class
     * @class
     * @alias module:mymodule
     * @extends module:mymodule~Person
     * @constructor
     */
    var Student = function () {
    };
    /**
     * @description say I'm Student class
     * @override
     */
    Student.prototype.sayName = function () {
        alert("I'm Student");
    };
    return Student;
});

If you have more questions, please send them to the jsdoc-users mailing list. The issue tracker is for bug reports and feature requests. Thanks!

thanks a lot

authors: hegemonic tcstory


text:
Add a method to tell if a node is part of the symbol tree

I am running into some tricky initialization time issues in jsdom and need something like domSymbolTree.isInitialized(node), so I can bail out early if we're still in the pre-symbol-tree phase.

Are you sure that is needed? domSymbolTree.initialize() is optional, any method will implicitly initialize your node as needed (example).
This initialize function is intended to help the javascript engine optimize. v8 likes it if you always assign new properties in the same order.

initialize() is also needed for compatibility with Object.freeze()

Yeah, you're right; the problem was actually that I was passing undefined to domSymbolTree.hasChildren.

authors: Joris-van-der-Wel domenic

repo: jsdom/js-symbol-tree


text:
1.1 seems to contain a breaking change - 'lid' now required for resource creation?

The 1.1. spec, section 7.3, states:

A “resource identifier object” MUST contain a type member. It MUST also contain an id member, except when it represents a new resource to be created on the server. In this case, a lid member MUST be included that identifies the new resource.

I can't immediately see a way to interpret this other than lid being required for all resource creation requests. This is, of course, a breaking change from 1.0, where only type was required (and id was optional). So either I'm missing something, or the spec could be improved. Could you clarify this?

The quote is about Resource Identifier Objects. Resource identifier objects were required to have type and id already in v1.0:

5.3 Resource Identifier Objects
[...]
A “resource identifier object” MUST contain type and id members.

A resource identifier object is not used for creating a resource. It is used to identify resources. It requires either id or lid in addition to type to identify a resource.
A resource object, which is used to create a resource, is allowed to have neither id nor lid member also in v1.1:

7.2 Resource Objects
[...]
7.2.1 Identification
As noted above, every resource object MUST contain a type member. Every resource object MUST also contain an id member, except when the resource object originates at the client and represents a new resource to be created on the server. If id is omitted due to this exception, a lid member MAY be included to uniquely identify the resource by type locally within the document. The value of the lid member MUST be identical for every representation of the resource in the document, including resource identifier objects.

My bad. Thanks for clarifying!

authors: cmeeren jelhan

repo: json-api/json-api


text:
Fix bug in null-exclusivity rules (and a non-normative bug).

The bug:
As discussed under "My implementation suggestion is this" in this
post
and especially my following post, the type null is just as
null-exclusive as String or Object[].
The non-normative bug:
I think I just wrote this backward? It's the "lenient" / "some-world"
rules under which a type like Foo* can be both null-inclusive ("You
can put null into it") and null-exclusive ("You can dereference it").

@wmdietl , I can't remember when your schedule gets back to normal, so when you have a chance, let me know if you think you will have time for another look at this this week. I'd like to make the case at the meeting tomorrow that the spec is basically ready for 1.0 :) I can probably get netdpb to take a look if that would help.

netdpb also encountered the non-normative bug and ended up fixing it in another commit. So now all that this one does is fix the null-exclusivity bug.

repo: jspecify/jspecify


text:
pkgname

Hi,
first of all, thank you for packaging and providing jk-aur repository, it is really a time saver.
I wanted to add the github.com/jstkdng/ungoogled-chromium-archlinux into my own service called aurora which automatically clones AUR (or not aur) pkgbuild repositories and runs makepkg against them (in containers) and then distributes it as an arch repository.  Here it is: https://github.com/kovetskiy/aurora
Could you rename your package into ungoogled-chromium-bin as it was in AUR (before the package deletion) so it will not conflict with existing AUR ungoogled-chromium package?

why not just use this repository instead of the aur one? :)

no response from OP for 2 months, closing.

authors: jstkdng kovetskiy

repo: jstkdng/ungoogled-chromium-archlinux


text:
Fails to work on California Franchise Tax Board web pay

To my surprise this extension failed to work at https://webapp.ftb.ca.gov/ which is the California FTB. I was making a payment to them and they asked for my banks routing number and then account number. Account number was asked for again to make sure and paste didn't work!

@adefaria, sorry you are having trouble with this extension.
There are many ways that a website author can try to control a user's browsing experience, this extension is just meant to prevent a site from blocking copy and paste browser events -- which is the most direct way for a site to interfere with copying/pasting, but not the only way. That does not prevent a site from effectively blocking paste by intercepting the related keyboard events (in this scenario, the extension would allow you to use Edit -> Paste from the browser's OS menu).
I cannot get to a payment screen on CA FTB's site, so unfortunately I cannot inspect the site to see how it is they are preventing you from pasting. When on their site, is the icon for this extension grey or blue? If grey, please see https://github.com/jswanner/DontFuckWithPaste/wiki/Version-2.0#usage for help.

Closing due to inactivity, but you are free to reopen the issue again.

authors: adefaria jswanner

repo: jswanner/DontFuckWithPaste


text:
rethinking the Trie

The key to any speedup and/or reduction in memory consumption is likely to involve replacing the Trie.
The Trie only exists because we need to be able to do longest-prefix retrieval on a dictionary.
We could use a regular Python dictionary if incoming strings were tokenised by collation key.
What I'm basically thinking is:

build a regular python dictionary for the collation table (some keys of which will consist of multiple characters)
build a regex using the keys in the collation table
use that regex to tokenise incoming strings (this has the effect of a Trie)
look the tokens up (some of which will be multiple characters) in the python dictionary

It will be worth having some sort of timed test to see if this approach actually makes a (positive) difference but I suspect it might.

I'm not actually sure this approach is feasible in the general case but the algorithm actually involves writing back to the string being tokenised so it can't be "pre-tokenised"

repo: jtauber/pyuca


text:
Add buttons to the toolbar

Right now the console toolbar is empty:

Maybe we should add a couple of buttons to it, for example:

run
restart
clear

It would be nice if the toolbar was optional, to reduce the space taken by replite if needed

Then it could be an opt-in via a query string parameter?

That would be great!

authors: jtpio martinRenou

repo: jtpio/replite


text:
对于rate limit的处理

今天又测试了一下，发现缺少对Claude API rate_limit_error 的处理，没记错OpenAI 报错会发一个message之类的信息，里面就可以写上rate limit，或者我记得官方就有rate limit error来着。
我的想法是，当探测到返回字段是：
{"error":{"type":"rate_limit_error","message":"Number of concurrent connections to Claude exceeds your rate limit. Please try again, or contact sales@anthropic.com to discuss your options for a rate limit increase."}}

的时候，就构造一个message返回，或者429报错。
此外，Claude给的免费API的rate是1秒一次，未来能否搞一个排队之类的功能。

很好的想法！感觉可以加一下。不过我最近很可能没时间处理，也欢迎 PR 哈


text:
Product Name

We need to figure out what this site is actually called.

I’m just going to throw out some name ideas that I’m forcing myself to think of. Sorry if they’re horrible.
MatchMocker
CodePair
PrepTech
CodeBuddy
CodeConnect
InterviewU (both because it’s to find someone to interview you or for you to interview, and also because it’s mostly for University students)

Even though it's a little cheesy I think MatchMocker is perfect lol

Looks like we have settled on MatchMocker, so I'm going to mark this as resolved.

authors: NickChapman alexschles juan-t0rres


text:
Set fetch depth to 0 in checkout step of actions

This fetches all history for all branches and tags. Just a test. Trying to solve #42.

I think fetching all commit history solves the problem at least for the warnings:
/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/setuptools_scm/git.py:163: UserWarning: "/home/runner/work/iop4/iop4" is shallow and may cause errors
 warnings.warn(f'"{wd.path}" is shallow and may cause errors')

However, CI with python 3.11 is taking too long, I don't know if it's related.

I canceled and rerun the job. Should work normally. Actions CI tests randomly fail sometimes, I think because of connections problems or because of a bug in github.com/, or both, because I think a temporary connection problem should not cause an error. Related to #29.
Maybe #29 should be reopened. Either we fix / find the right version of github.com/ so that it does not randomly fail, or we have to setup a self-hosted runner. But that discussion should go to #29. The current setup is the best we have atm.


text:
client_secret_path: cli.initConfig: SIGSEGV

Bug description
When starting a 0.20.0 container (on SQLite), it immediately throws:
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0xb0 pc=0x102e75f]

goroutine 1 [running]:
github.com/juanfont/headscale/cmd/headscale/cli.initConfig()
	/go/src/headscale/cmd/headscale/cli/root.go:59 +0x21f
github.com/spf13/cobra.(*Command).preRun(...)
	/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:946
github.com/spf13/cobra.(*Command).execute(0x1cc3040, {0x1d075c0, 0x0, 0x0})
	/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:876 +0x563
github.com/spf13/cobra.(*Command).ExecuteC(0x1cc1f00)
	/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:1044 +0x3bd
github.com/spf13/cobra.(*Command).Execute(...)
	/go/pkg/mod/github.com/spf13/cobra@v1.6.1/command.go:968
github.com/juanfont/headscale/cmd/headscale/cli.Execute()
	/go/src/headscale/cmd/headscale/cli/root.go:101 +0x25
main.main()
	/go/src/headscale/cmd/headscale/headscale.go:42 +0x235

This is the container running on GKE on Co-OS nodes.
To Reproduce
Run the 0.20.0 container on Kubernetes.

This also happens with 0.19.0, and then with pc=0x102e31f. The rest is the same.
With 0.18.0 it now also appears at 0x102cdbf.
As this happens in cli.initConfig(), this is most likely a parsing error of the configuration file?

This has something to do with oidc.client_secret_path. The error does not occur when this directive is not used, but client_secret instead.

Related #1127

Happened to me, it seems it was due to invalid permissions on the client_secret_path, changing the owner of that file fixed it.

Thank you!
I believe we can close here, then.
This is not a use case I need to support anymore.

authors: almereyda traxys

repo: juanfont/headscale


text:
Fix OpenBSD build docs

OpenBSD 7.2 installs go 1.19 by default
Doubt you can run nix on OpenBSD so skip the makefile/nix build and just go build directly

(this is only an auxiliary docs change so none of the checklist seems relevant)

Thanks!

authors: juanfont mikejsavage


text:
Regla 7:  Los nombres de los métodos deben comenzar con minúsculas

unction int _mi_Funcion(int _a, int A){skip;}
Se debe chequear guiones bajos al comienzo, en nombre de funciones, al igual que nombres de variables?

No, en las funciones solo se debe chequear que su nombre comience con minúscula. No importa si comienzan con _

authors: mconiglio nandotorterolo

repo: juanpale/ObligatorioWhile

license: unlicense


text:
🧪 PIP_COMPILE_DISABLE

enforce PIP_COMPILE_DISABLE in ci/cd

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

repo: juftin/hatch-pip-compile


text:
Questions about training resources

Hi, first of all thanks for your help, I have solved the problem with the dataset. My device has only one gpu, I modified per_device_train_batch_size=24 in V1.yaml, but the result shows RuntimeError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 3.95 GiB total capacity; 3.33 GiB already allocated; 16.31 MiB free; 3.35 GiB reserved in total by PyTorch). I followed the online suggestion and changed per_device_train_batch_size to 1, but the same error still occurs. Is there a solution without replacing the device? I look forward to your reply.

It seems that your GPU size is not big enough.
You can set gradient_accumulation_steps and gradient_checkpointing for TrainingArguments (config/train/v1.yaml) while training to train on a small GPU.
For more info, check https://huggingface.co/docs/transformers/perf_train_gpu_one
Note that, with different batch sizes, the results will be different to the reported performances (as it will influence training).

Thank you very much，i will try again.


text:
object: add dummy object store

Introduce a dummy object store as juicefs backend, which might be useful for developers to write/debug non-object storage related code such as disk cache.

Usually the local filesystem (type 'file') is simple enough as an object store for developing use. Besides, it's more feature completed (have real data write/read).

That's true, but sometimes the disk is slow on dev machine, and I don't want to waste the time and disk space for nothing. A dummy storage would be more efficient.

We already have in-memory object storage could be used for develop or test.

authors: SandyXSD davies eryugey

repo: juicedata/juicefs


text:
If keepalived deployed, master kubeconfig api-server endpoint should be the VIP

See https://github.com/juju-solutions/charm-keepalived/pull/1#discussion_r199074508

In other words:
juju ssh kubernetes-master/0 grep server config
    server: https://<ip-address>:443

Instead, it should be equal to vip or vip_hostname configured in the keepalived charm. Config values
juju config keepalived vip_hostname
kubeapilb.maas

juju config keepalived virtual_ip
192.0.2.200

juju ssh kubernetes-worker/0 grep server ~/.kube/config
    server: https://kubeapilb.maas:443

This looks like a duplicate of https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/712 so I'm closing this.
See https://github.com/juju-solutions/bundle-canonical-kubernetes/issues/712#issuecomment-456436156. If you relate kubernetes-master:loadbalancer to keepalived:loadbalancer, and remove any other relations to kubernetes-master:loadbalancer (e.g. to kubeapi-load-balancer:loadbalancer), then the kube config should be generated correctly.

authors: Cynerva dshcherb tvansteenburgh


text:
ci/cd: calling WriteConsoleW function on GitHub Actions fails

What would you like to share?
After correction solving of the issue #34, I created Windows GitHub Actions workflows to use.
The Jule API and Jule standard library uses the WriteConsoleW function of Windows for writing to console. The WriteConsoleW function usually used in Unicode cases, uses UTF-16 encoding. Jule uses UTF-8 encoded strings by default which is supports Unicode characters also, therefore calls WriteConsoleW function after UTF-8 to UTF-16 conversion.
This operation works fine on our local test systems; on 2 different AMD64 Windows 10 and single ARM64 Windows 11, works as expected. On GitHub Actions with windows-latest, the WriteConsoleW function returns zero which is means failed.
I created a new workflow with simple C++ program and tested with to understand whether this problem relevant with Jule implementation.
That's my simple C++ program to test;
#include <iostream>
#include <windows.h>

int main() {
    HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
    wchar_t text[] = {104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 0};
    WriteConsoleW(hConsole, text, 11, nullptr, nullptr);
    return 0;
}

And that's my compile command: clang++ -O0 --std=c++17 -o main.exe main.cpp -lshell32 -lkernel32
The test program above, writes hello world to the stdout handle. The variable text stores UTF-16 encoded hello world characters with NULL termination. Works as expected on local machines unlike GitHub Actions. On GitHub Actions, will not prints anything and failed.
Additional information
GitHub Actions uses UTF-8 by default. Printing with std::cout or std::wcout with UTF-8 encoded strings works and displayed fine, but std::wcout output is not displayed well with UTF-16 encoded strings.
As far as I tested, GitHub Actions's "UTF-8 by default" approach is not a problem. I tested on local machines with UTF-8 localization and calling WriteConsoleW function with UTF-16 encoded strings works and displayed as expected.

Might be worth reporting on https://github.com/actions/runner.

I'm not exactly sure if the problem is about the runner, I think we need more information.

authors: adamperkowski mertcandav

repo: julelang/jule


text:
TagBot trigger issue

This issue is used to trigger TagBot; feel free to unsubscribe.
If you haven't already, you should update your TagBot.yml to include issue comment triggers.
Please see this post on Discourse for instructions and more details.
If you'd like for me to do this for you, comment TagBot fix on this issue.
I'll open a PR within a few hours, please be patient!

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/66239

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/66906

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/69478

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/85686

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/102684

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/110590

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/110593

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/110599

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/111147

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/111220

Triggering TagBot for merged registry pull request: https://github.com/JuliaRegistries/General/pull/113480


text:
A777med/master

Forked from #28 with a commit to fix linters.

Thanks @a777med :+1:


text:
py39 py._path.local.LocalPath.ImportMismatchError

I see the following error by tox -e py39 on my local machine Fedora 32.
$ tox --version
3.15.2 imported from /usr/lib/python3.8/site-packages/tox/__init__.py

$ rpm -qf "$(command -v tox)"
python3-tox-3.15.2-1.fc32.noarch

$ pwd
/home/jaruga/git/rpm-py-installer

$ tox -e py39
py39 create: /home/jaruga/git/rpm-py-installer/.tox/py39
py39 installdeps: -rtest-requirements.txt
py39 installed: atomicwrites==1.4.0,attrs==20.2.0,backports.unittest-mock==1.5,more-itertools==8.6.0,pluggy==0.13.1,py==1.9.0,pytest==3.10.1,pytest-helpers-namespace==2019.1.8,six==1.15.0
py39 run-test-pre: PYTHONHASHSEED='3369357786'
py39 run-test: commands[0] | python --version
Python 3.9.0
py39 run-test: commands[1] | rpm --version
RPM version 4.15.1
py39 run-test: commands[2] | pytest -m unit
4.2.23
  Installed: dnf-0:4.2.23-1.fc32.noarch at Tue 23 Jun 2020 02:19:30 PM GMT
  Built    : Fedora Project at Tue 02 Jun 2020 07:50:03 PM GMT

  Installed: rpm-0:4.15.1-3.fc32.1.x86_64 at Tue 23 Jun 2020 02:17:25 PM GMT
  Built    : Fedora Project at Mon 04 May 2020 07:32:48 AM GMT
ImportError while loading conftest '/home/jaruga/git/rpm-py-installer/tests/conftest.py'.
py._path.local.LocalPath.ImportMismatchError: ('tests.conftest', '/work/tests/conftest.py', local('/home/jaruga/git/rpm-py-installer/tests/conftest.py'))
ERROR: InvocationError for command /home/jaruga/git/rpm-py-installer/.tox/py39/bin/pytest -m unit (exited with code 4)
_______________________________________________ summary ________________________________________________
ERROR:   py39: commands failed

No, it's my mistake about how to test. After cleaning the temporary files, the test is okay.
$ pwd
/home/jaruga/git/rpm-py-installer

$ git clean -fdx
Removing .coverage
Removing .pytest_cache/
Removing .tox/
Removing __pycache__/
Removing htmlcov/
Removing rpm_py_installer/__pycache__/
Removing tests/__pycache__/

$ tox -e py39
...
  py39: commands succeeded
  congratulations :)

repo: junaruga/rpm-py-installer


text:
[neovim] resize split according to number of options

You said in this https://github.com/junegunn/fzf/issues/137#issuecomment-91735586 it might be possible to write an autocmd. I would try to implement this but have no idea how the autocmd could work.

This is what I've tried:
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index 85f576d..f07365c 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -287,6 +287,9 @@ function! s:execute_term(dict, command, temps)
   call s:pushd(a:dict)

   let fzf = { 'buf': bufnr('%'), 'dict': a:dict, 'temps': a:temps }
+  if has_key(a:dict, 'onchange')
+    let fzf.on_stdout = a:dict.onchange
+  endif
   function! fzf.on_exit(id, code)
     let tab = tabpagenr()
     execute 'bd!' self.buf
@@ -356,6 +359,17 @@ function! s:cmd_callback(lines) abort
   endfor
 endfunction

+function! s:cmd_onchange(...)
+  let matches = matchstr(getline(line('$') - 1), '[0-9]\+\ze/[0-9]\+')
+  if empty(matches)
+    return
+  endif
+  let height = min([&lines, str2nr(matches) + 4])
+    " + 2 should suffice, but for some reason Neovim silently closes the buffer
+    " when the height of the split becomes that small
+  execute 'resize' height
+endfunction
+
 function! s:cmd(bang, ...) abort
   let s:action = get(g:, 'fzf_action', s:default_action)
   let args = extend(['--expect='.join(keys(s:action), ',')], a:000)
@@ -366,7 +380,10 @@ function! s:cmd(bang, ...) abort
   if !a:bang
     let opts.down = get(g:, 'fzf_height', get(g:, 'fzf_tmux_height', s:default_height))
   endif
-  call fzf#run(extend({'options': join(args), 'sink*': function('<sid>cmd_callback')}, opts))
+  call fzf#run(extend({
+        \ 'options': join(args) . ' --no-inline-info --no-reverse',
+        \ 'onchange': function('<sid>cmd_onchange'),
+        \ 'sink*': function('<sid>cmd_callback')}, opts))
 endfunction

 command! -nargs=* -complete=dir -bang FZF call s:cmd(<bang>0, <f-args>)

It looks like there's no autocmd fired when the content of the terminal buffer is updated (none of TextChanged, TextChangedI, CursorMoved, CursorMovedI, InsertCharPre works), so I tried with on_stdout callback of termopen(). I noticed that no data is passed to the callback (a:000 is an empty array). Is this normal?
The layout of fzf can differ depending on --reverse and --inline-info option, I explicitly disabled them. (While doing this, I realized that --inline-info was not immediately displayed on terminal resize, https://github.com/junegunn/fzf/commit/5d9107fd15a5bca3973f8206884ddfa66d47b923 is the fix)
If you run the above code, you'll notice that the resize does not immediately happen. I could fix it by doing redraw! twice after resize, but then we see awful flickering of the screen.

@tarruda Is using on_stdout a right approach?

Thanks for working on this! I applied the patch, but the cmd_onchange function never gets executed.

@tarruda could you take a look at this?

sorry I had missed this

@tarruda Is using on_stdout a right approach?

If I understood correctly, you want the terminal window to have the same height as the number of available lines, right?  If so, then yes, you need to listen for stdout  events.
I see that your comment is from April. Since that time, the internal architecture of how nvim handles asynchronous events changed dramatically, can you try it again and see if it works?

@tarruda thanks for your reply. It does kind of work but there is a problem.
I created a minimal patch to show the probem:
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index fddab51..2f344e2 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -321,6 +321,9 @@ function! s:execute_term(dict, command, temps)
   call s:pushd(a:dict)

   let fzf = { 'buf': bufnr('%'), 'dict': a:dict, 'temps': a:temps, 'name': 'FZF' }
+  if has_key(a:dict, 'onchange')
+    let fzf.on_stdout = a:dict.onchange
+  endif
   let s:command = a:command
   function! fzf.on_exit(id, code)
     let pos = s:getpos()
@@ -427,6 +430,10 @@ function! s:cmd_callback(lines) abort
   endtry
 endfunction

+function! s:cmd_onchange(...)
+  sleep 1
+  echom getline(line('$') - 1)
+endfunction
+
 function! s:cmd(bang, ...) abort
   let s:action = get(g:, 'fzf_action', s:default_action)
   let args = extend(['--expect='.join(keys(s:action), ',')], a:000)
@@ -437,7 +444,10 @@ function! s:cmd(bang, ...) abort
   if !a:bang
     let opts.down = get(g:, 'fzf_height', get(g:, 'fzf_tmux_height', s:default_height))
   endif
-  call fzf#run(extend({'options': join(args), 'sink*': function('<sid>cmd_callback')}, opts))
+  call fzf#run(extend({
+        \ 'options': join(args) . ' --no-inline-info --no-reverse',
+        \ 'onchange': function('<sid>cmd_onchange'),
+        \ 'sink*': function('<sid>cmd_callback')}, opts))
 endfunction

 command! -nargs=* -complete=dir -bang FZF call s:cmd(<bang>0, <f-args>)

The echo now always shows the state of the line before the ui updated not after. So the on_change is triggered after I press a button but before the interface updates.

@Tranquility Now I see the real issue: nvim does not update the terminal buffer as soon as it receives data. Here's a high-level overview of how it works:

Nvim receives data from the pty
Data is fed to libvterm, which immediately updates its internal screen
At most 10ms later, nvim updates the terminal buffer to reflect libvterm internal screen.

In other words, nvim updates the buffer at most once each 10 milliseconds. This is done because updating buffers is more expensive than simply updating a virtual screen, and if we updated the buffer every time data is received, there could be serious performance problems with programs that send large bursts of output(It is not a premature optimization, I actually noticed these problems while working on neovim/neovim#2076).
A relatively simple workaround is to expose a separate API for accessing libvterm screen state directly. This would allow @junegunn patch to be adapted to use this API to get the number of matches instead of getline(line('$') - 1).

authors: Tranquility junegunn tarruda

repo: junegunn/fzf


text:
Actions for 'select' and 'deselect'?

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf (0.25.1)
[x] I have searched through the existing issues

Info

OS

[x] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[x] bash
[ ] zsh
[ ] fish

Problem / Steps to reproduce
Hi. Thanks for the wonderful fzf tool.
I'd like to add bindings shift-down:select+down and shift-up:select+up so that I can quickly select a range of entries by holding down 'shift-down', scroll down a bit, and then continue selecting another range, and so on.  If there are no entries selected, shift-down:toggle+down would serve my needs.  However, if some of the entries are already selected, running 'shift-down' through them would toggle those entries to be unselected.
So, I'm looking for actions select and deselect but AFAICT, they don't exist.  Is there another way to emulate select and deselect?

Added select and deselect. Thanks for the suggestion.

Brilliant :pray:

authors: HenrikBengtsson junegunn


text:
fzf-vim: Neovim 0.8.0 breaks FZF colors

[x] I have read through the manual page (man fzf)
[x] I have the latest version of fzf
[x] I have searched through the existing issues

Info

OS

[x] Linux
[ ] Mac OS X
[ ] Windows
[ ] Etc.

Shell

[x] bash
[ ] zsh
[ ] fish

Problem / Steps to reproduce
This is using alacritty as the terminal emulator:
useradd --create-home -d /home/test test -- Create a test user
sudo passwd test -- Give it a login password
su -l test -- Log into test with a clean environment
mkdir -p ~/.config/nvim/pack/bundle/start
git clone https://github.com/junegunn/fzf ~/.config/nvim/pack/bundle/start/fzf
nvim
:FZF
fzf executable not found. Download binary? (y/n) y
FZF downloads... then the resulting window pops up.
On the left side is the working case with nvim 0.7.2, on the right side is the faulty case with nvim 0.8.0.

This was reported before: https://github.com/junegunn/fzf.vim/issues/1431
There are workarounds, but I'll see what I can do.

I only searched for "faulty colors neovim 0.8", so did not find this already filed issue. For future visitors: It appears that vim.api.nvim_set_hl(0, 'NormalFloat', {fg='LightGrey'}) works, but I'm not sure if that's the correct thing to issue in all cases (if it interferes with anything else).

@junegunn  With https://github.com/junegunn/fzf/commit/0881a6bc17d970d2833be21fafc8de69fe468631, the fzf window uses NormalFloat defined by colorscheme the user is using.
If the intended behavior is to use Normal for fzf window (which seems to be true for vim), then I think this should be like this, based on https://github.com/neovim/neovim/pull/9722#discussion_r264777602
-    silent! call setwinvar(win, '&winhighlight', 'Pmenu:')
+    silent! call setwinvar(win, '&winhighlight', 'Normal:')

@tomtomjhj Thanks for the comment, actually I'm aware of that.

This commit makes the colors of fzf window default to those of 'Normal'
group (or 'NormalFloat' if defined), by ignoring Pmenu group.

I felt that it makes sense to respect NormalFloat, while choosing Pmenu for fzf is most likely a mistake. Do you think we should only choose Normal and not NormalFloat? I'm not a Neovim user so I don't know how most Neovim users configure their NormalFloat.

actually I'm aware of that.

This commit makes the colors of fzf window default to those of 'Normal'
group (or 'NormalFloat' if defined), by ignoring Pmenu group.

Sorry, my bad.

Do you think we should only choose Normal and not NormalFloat?

At first, I didn't like this change because it changed the behavior I was used to, but now I think the new behavior is the best option, because

Normal: seems to be buggy: when winblend is non-zero and the user switches to another colorscheme, the fzf window's highlighting is broken, so we can't use this;
we don't want to reintroduce the behavior fixed by 0881a6bc17d970d2833be21fafc8de69fe468631; and
users can override winhighlight in FileType fzf anyway.

I'm not a Neovim user so I don't know how most Neovim users configure their NormalFloat.

I set bg of NormalFloat to dark gray in bg=dark and to light gray in bg=light, so NormalFloat for fzf window works well for me.
But I can't say for sure for other users because I use my custom colorscheme.
Let's see if someone else complains.

May I know how I can have transparent background now without changing NormalFloat for everything?
highlight Normal ctermbg=NONE guibg=NONE
let g:fzf_colors = { 'bg': [ 'bg', 'Normal' ] }

doesn't work probably due to https://github.com/junegunn/fzf/blob/01ae621f116bd4a3ef951a3816e11615c61b8c36/plugin/fzf.vim#L348

augroup fzf-custom
    autocmd!
    if has('nvim')
        autocmd FileType fzf setlocal winhighlight+=Normal:Normal
    endif
augroup END

@junegunn Yes. I'm using gruvbox-material in my vimrc, and after 0881a6b the default background became opaque.
Here's a minimal vimrc to reproduce this issue:
set runtimepath^=~/.vim runtimepath+=~/.vim/after
let &packpath = &runtimepath

call plug#begin('~/.vim/plugged')
Plug 'junegunn/fzf'
Plug 'junegunn/fzf.vim'
call plug#end()

set nobackup
set nowritebackup
set cmdheight=2
set updatetime=300

set background=dark
highlight Normal      ctermfg=223 ctermbg=NONE guifg=#ebdbb2 guibg=NONE
highlight NormalFloat ctermfg=223 ctermbg=237  guifg=#ebdbb2 guibg=#45403d
highlight Pmenu       ctermfg=223 ctermbg=237  guifg=#ebdbb2 guibg=#45403d

(I'm a little confused by the commit message. It says 'Do not use Pmenu group colors' but actually replaced Normal with Pmenu?)

@tomtomjhj Thank you that worked! Though it looks a little hacky at a glance (haven't got time to go through the whole thread)?

@Frederick888

I'm a little confused by the commit message

See :help 'winhighlight' for the explanation. However, it seems there are some rough edges and I still haven't been able to fully comprehend its behavior.
Anyway, if you use the fzf plugin prior to 0881a6bc17d970d2833be21fafc8de69fe468631, and comment out highlight lines in the given vimrc, you'll see that fzf will have the hideous magenta background, which is from Pmenu. 0881a6bc17d970d2833be21fafc8de69fe468631 is an attempt to fix the problem.
In addition to that, we can try adding NormalFloat:Normal (replacing NormalFloat with Normal) to make fzf use Normal even when NormalFloat is defined. But to my surprise, set winhighlight=Pmenu:,NormalFloat:Normal fails to handle the magenta problem.
On the other hand, set winhighlight=Pmenu:,Normal:Normal suggested by @tomtomjhj works, but what does that even mean? Replacing Normal with Normal? It's very confusing.
@tomtomjhj Any idea why Normal:Normal works in this scenario? Should we add it to winhighlight by default?
diff --git a/plugin/fzf.vim b/plugin/fzf.vim
index a56f23c..7d4d8fe 100644
--- a/plugin/fzf.vim
+++ b/plugin/fzf.vim
@@ -977,7 +977,7 @@ if has('nvim')
     let buf = nvim_create_buf(v:false, v:true)
     let opts = extend({'relative': 'editor', 'style': 'minimal'}, a:opts)
     let win = nvim_open_win(buf, v:true, opts)
-    silent! call setwinvar(win, '&winhighlight', 'Pmenu:')
+    silent! call setwinvar(win, '&winhighlight', 'Pmenu:,Normal:Normal')
     call setwinvar(win, '&colorcolumn', '')
     return buf
   endfunction

I tried Normal:Normal based on https://github.com/neovim/neovim/pull/9722#discussion_r264777602 and my assumption that the right hand side of : is interpreted as usual.
I agree on adding Normal:Normal by default. It works well for my use cases and seems to be an established practice:

https://github.com/hrsh7th/nvim-cmp/blob/9bb8ee6e2d6ab3c8cc53323b79f05886bc722faa/lua/cmp/config/window.lua#L7
fzf-lua

initial version: https://github.com/ibhagwan/fzf-lua/blob/36d850b29b387768e76e59799029d1e69aee2522/lua/fzf-lua/config.lua#L245
curent version (Normal:FzfLuaNormal): https://github.com/ibhagwan/fzf-lua/blob/b1f1f76c13d6040b9b9b6ccdb59129c6c4885124/lua/fzf-lua/win.lua#L308

authors: BourgondAries Frederick888 junegunn tomtomjhj


text:
docs(ADVANCED.md): replace placeholder with env variable for toggle single key binding

description
Since {fzf:prompt} is being phased out, let's replace the example with $FZF_PROMPT.

Ref #3582

The previous PR was unintentionally closed. This implements the same changes as before.

Thanks!

authors: LangLangBart junegunn


text:
Add license and authoring information to all the files

Try to keep the ASL license as short as possible.
https://issues.apache.org/jira/browse/LEGAL-124
The header is:
# Licensed under the terms of http://www.apache.org/licenses/LICENSE-2.0
and about the authors and copyright:
# Author/s (©): <name of the author/s>
Not sure if the © introduces problems. Probably we can just use (c).

I think it is useful to add to all files because the code could be reused in other places and it this case, it is useful to have tracking information about it.

Done in 0.11.0 version:
https://github.com/juntosdesdecasa/mcthings/commit/e7187f740c7a6fdd258062fcf5e64bc3b2b9dabf

repo: juntosdesdecasa/mcthings


text:
看完代码觉得这个Implemention有问题，欢迎指正

把作者的代码读了一遍，觉得有个地方有问题。 按照我的理解作者这里把每局的replay简单的所有局面赋予了相同的z值，我按一种分支走法走到底，如果这局白棋赢了，对于这一局的所有states都赋予白棋赢的标签。
然而任何一篇alphago论文都不是这么干的，包括alpha lee的文章， 一开始就是有把单次搜索（可能是几千几万盘end_game）做一个统计，才能得出一个当前局面的value或者action的监督信号。 我觉得这可能是这个项目训出来的ai不怎么强的原因。
具体训练数据的生成，标签统计应该如何做，可以参考这一篇文章：
https://medium.com/applied-data-science/how-to-build-your-own-deepmind-muzero-in-python-part-2-3-f99dad7a7ad


text:
Revert "Fix missing links in JMS charter"

Reverts jupyter/governance#231
All - since the EC approves charters I think the EC needs to approve changes to charters. Reverting this back until we get feedback from the EC. This isn't urgent at this time and it makes sense to confirm that before moving forward.

Should the governance be amended to say that only non-trivial changes need to be approved?
I was in past annoyed by the missing links in the JMS charter.

Then we get into what is trivial and non trivial. In most cases that would be clear, such as this one which is clearly non controversial but not always. At the very least the EC should be notified of a change so they can review and decide if it needs to be discussed. This part of the governance process is not documented as far as I know so I thought as a best practice it should be clarified before taking action. Simply using this as an exercise to set precedence. I don't think changes to charters have happened since we created this new model (I'm not 100% sure).

Seeing how #231 is already merged, changes are trivial (adding missing links), and changes merged don't affect meaning of the document, should we check in with EC and revert after if needed?

Seeing how #231 is already merged, changes are trivial (adding missing links), and changes merged don't affect meaning of the document, should we check in with EC and revert after if needed?

Sure, that works for me. I do think we should reflect the flow in these comments so anyone viewing this thread sees the amended process.

Copying my comment from here:
We (the EC) discussed this in a recent meeting. Eventually we should set permissions on this repo so that only the EC and SSC can merge, but for situations like this:

The voting members of the working group or standing committee must approve the change (done here)
For small or unsubstantial changes to a working group/standing committee charter, any member of the EC can merge. For larger changes then they should notify the EC and ask for review. I think this falls under the "small changes" case. While Steve did the actual merging, Ana and I did approve the change here, so I think we are good.

Closing since I think this matter is resolved (Ana, feel free to reopen if you still feel like we need to discuss more).

authors: Ruv7 andrii-i jasongrout krassowski

repo: jupyter/governance


text:
Dockarea + Notebook

When closing a notebook tab that is not the current tab, the close without saving popup is invisible because the tab content is invisible - and the tab is not closed right away.
The triggering of this popup should probably change the selected tab temporarily.

Phosphor specifically does not select the tab when clicking the close icon, which I think is the correct default behavior. It shouldn't be too difficult to ensure a widget is the selected tab from its onCloseRequest handler.

I am not sure that I was clear, it is only in the case of a popup such " Close without saving" that we need to select the tab.

This is fixed in master now that all dialog are on the body...

authors: SylvainCorlay ellisonbg sccolbert

repo: jupyter/jupyterlab


text:
Tooltip (help, tab completion) misplaced

Tooltip and completion are shown in the left top corner. To illustrate:

Windows 7, JupyterLab 0.1.1 (latest from conda-forge), Firefox 47

Tested it with chrome, and there is seems to work better, however, it is above the code line, while I would expect it be below. For example:

(in this case there is not enough room to show the full tooltip above, if the tooltip is brought up lower at the page it shows more entries)

Thanks for reporting this. Those sorts of screenshots really help us understand the issue!

And another one, to illustrate how annoying this is :-)

What I did in the console was:
import pandas as pd

pd.DataFrame

(my cursor was at the end). So because of the placement of the tooltip, it constantly covers your input text you are typing.
But related to the tooltips (but probably another issue), when I just type pd or pd., I get the tooltip for the module docstring automatically shown, and therefore I don't see any completions (I first have to 'Esc' out of the tooltip, so pressing tabs shows the completions). (this is in the console, in the notebook I don't get the help tooltips)

Update
This issue is half resolved because the tooltip is no longer free floating: https://github.com/jupyter/jupyterlab/pull/494
The position of the completion widget still needs to be addressed and corrected.

authors: afshin jorisvandenbossche sccolbert


text:
Fixed some spacing issues with paragraphs and headings

Some naming conventions were changed so @rnetro and I went through some of the CSS to normalize names and spacings and other good shtuff ( ° ͜ʖ °)

closing in favor of #137

authors: eskirk sccolbert


text:
Remove unnecessary console print when starting the default kernel

👍


text:
Adding global drop-down file tab

Works well, thank you!


text:
Advantage of using sudo spawner over adding capabilities CAP_SETUID, CAP_SETGID to JupyterHub

Hi,
I am running JupyterHub as separate non-root user with systemd without sudospawner. Instead I leverage the systemd AmbientCapabilities option. My jupyterhub.service file looks like this:
[Unit]
Description=JupyterHub
After=syslog.target network.target podman-chp.service

[Service]
User=jupyterhub
AmbientCapabilities=CAP_SETUID CAP_SETGID
Environment="PATH=/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/opt/jupyterhub/bin"
Environment="CONFIGPROXY_AUTH_TOKEN=<secret>"
ExecStart=/opt/jupyterhub/bin/jupyterhub -f /opt/jupyterhub/etc/jupyterhub/jupyterhub_config.py

[Install]
WantedBy=multi-user.target

With this I can use the PAMAuthenticator for logging in and use the standard spawner for creating the single user notebooks. My question now is: Am I missing some feature of the sudospawner configuration? Or do I get the same effects with my configuration?
NOTE: I am running on CentOS 8. Maybe this makes a difference?

This is a very good question - I had been looking for systemd functionality like this since in my tutorial I just run the server as root. But I am not familiar enough with systemd to understand what the implications of the CAP_* settings are. If they are what we need I would like to update my tutorial to use your systemd config.

A process running with CAP_SETUID is able to set / change its own user ID. Similarly a process with CAP_SETGID can change its group ID. When a process spawns a new subprocess this subprocess inherits the UID and GID of the process. So when the JupyterHub starts a new singleuser it needs to change the singleusers UID and GID. Normally JupyterHub runs as root, then the singleuser runs as root. Since root can change UID and GID, the singleuser changes UID and GID to the correct ones.
To run JupyterHub as non-root we need to add the possibility to change UID and GID. In sudospawner this is accomplished by adding the non-root user to the sudoers.
The line AmbientCapabilities=CAP_SETUID CAP_SETGID adds the mentioned capabilities to the JupyterHub Process. So the process does not need to be root, but is still allowed to change UID and GID. Once they are changed by supprocesses these subprocesses loose the capability and are stuck with UID and GID until their end. I do not now if this opens security issues or different problems. My JupyterHub runs stable with this config. Since it is in systemd I think it is a very straight forward way. So in my oppinion they are what you need :D but I am no expert...

@gatoniel this looks pretty neat! I don't know whether it's more/less/as safe as sudospawner. You could try asking on https://discourse.jupyter.org/ since more people are likely to see it?

@gatoniel Thanks, that makes sense - I've never actually looked at how jupyterhub sets the user for the spawned processes but good to know it works. Do you know if CAP_SETUID/SETGID allow to set the values to the root user?
I guess a downside relative to sudospawner could be that AFAIU the latter only allows to run the hard-coded jupyter process. I don't know if there are systemd options for doing that.
I wonder if there is a way to use systemdspawner together with the CAP_* settings - at the moment systemdspawner still requires the hub to run as root 🤔

I think doing this opens up some security issues, at least without further configuration. As the single-user server is now running with CAP_SETUID, any code run in a notebook or terminal can set the UID to 0 and run any further code as root:
 [In 1]: import os
         os.setuid(0)

 [In 2]: os.getuid()
[Out 2]: 0

 [In 3]: import subprocess
         subprocess.run("whoami", capture_output=True).stdout
[Out 3]: b'root\n'

I think doing this opens up some security issues, at least without further configuration. As the single-user server is now running with CAP_SETUID, any code run in a notebook or terminal can set the UID to 0 and run any further code as root:
 [In 1]: import os
         os.setuid(0)

 [In 2]: os.getuid()
[Out 2]: 0

 [In 3]: import subprocess
         subprocess.run("whoami", capture_output=True).stdout
[Out 3]: b'root\n'

authors: bcbnz gatoniel mangecoeur manics

repo: jupyterhub/sudospawner


text:
Completely removing Jupyterlab Desktop according to instructions does not remove everything

Description
I have several times completely removed JupyterLab Desktop according to the uninstall instructions on macOS. However, when I re-install it, I discover that it remembers one of the JupyterLab servers I told it about previously.

Reproduce

Previously installed JupyterLab has custom server information I no longer want
Uninstall JupyterLab completely
Reinstall from fresh installer
Open jupyterlab, find that custom server is still found

Expected behavior
The custom server information should be gone.
Context

Operating System and version: macOS Ventura 13.1 Apple Silicon
JupyterLab-Desktop version: 3.6.1-3
Installer dmg

Perhaps a separate issue, but seems to be related, this particular Python environment that I want removed is an x86_64 mambaforge stack that was created by an arm64 base mambaforge environment.

@jzuhone this is by the design. App keeps user settings and app settings between installation / upgrades. You can clear some of the settings from Menu -> Settings -> Privacy. To perform a deeper clean you can delete these files additionally and clean logs from ~/Library/Logs/jupyterlab-desktop.

@mbektas I've done all of the things you recommended--nothing has worked.

Your local Python environments are discovered automatically on launch. If you added one that was not discovered, then it should be deleted when you clear User set Python environments from  Menu -> Settings -> Privacy or when you delete app-data.json as instructed in the link. Deleting the files manually should be done when the app is closed otherwise they will be recreated by the app on close.

authors: jzuhone mbektas

repo: jupyterlab/jupyterlab-desktop


text:
[BUG] All Rapyd transactions go through redirection flow

Bug Description
It bugs out when you do a non-three-ds transaction that gives response as require_customer_action instead of succeeded for a successful transaction.
Expected Behavior
Non-3DS transactions should not go through redirection flow.
Actual Behavior
Every transaction made goes through redirection flow
Steps To Reproduce
Provide an unambiguous set of steps to reproduce this bug. Include code or configuration to reproduce, if relevant.

Set connector to Rapyd
Do a non-3DS transaction

Context For The Bug

Environment
Are you using hyperswitch hosted version? Yes
Have you spent some time to check if this bug has been raised before?

[X] I checked and didn't find similar issue

Have you read the Contributing Guidelines?

[X] I have read the Contributing Guidelines

Are you willing to submit a PR?
No, I don't have time to work on this right now

On checking the logs, the connector is enforcing 3DS verification for every transaction made and we can do nothing about it.

repo: juspay/hyperswitch


text:
Search experiments UI

Problem
Filtering and searching for experiments is not possible from the UI
Solution
Add support for filtering by experiment status, date, user who created it, experiment name or experiment ID
https://github.com/user-attachments/assets/606ce8b5-94cf-4735-b5cd-8ad23a850881

dependent on #280

repo: juspay/superposition


text:
err_tunnel_connection_failed while DenyConnect

I use explicitEndPoint.
at onBeforeTunnelConnectRequest set
e.DenyConnect = true for specific host
And I get ERR_TUNNEL_CONNECTION_FAILED at chrome.
No change If I set response statuscode & description...

I think that is normal. If you set the DenyConnect then chrome shows that error.
What were you expecting?

I close this isse, feel free to reopen if needed.

authors: bainbin honfika


text:
SqsQueue WaitTimeSeconds to be configurable

https://github.com/justeat/JustSaying/pull/698#discussion_r435875501

This is now available via the ReceiveMessagesWaitTime setting on a subscription group

authors: gkinsman maisiesadler

repo: justeat/JustSaying


text:
🛑 AutoBangumi is down

In 5bb1a25, AutoBangumi (https://autobangumi.mkacg.com) was down:

HTTP code: 530
Response time: 74 ms

Resolved: AutoBangumi is back up in aede2a6 after 37 minutes.


text:
🛑 Bitwarden is down

In 89aafe8, Bitwarden (https://bitwarden.mkacg.com) was down:

HTTP code: 502
Response time: 2895 ms

Resolved: Bitwarden is back up in 81ee0ec after 22 minutes.


text:
🛑 Misskey is down

In e1bb700, Misskey (https://mkacg.social) was down:

HTTP code: 530
Response time: 241 ms

Resolved: Misskey is back up in 656e24c after 10 minutes.


text:
FOLOS

Before submission deletes this line:
THIS IS NOT A TOKEN LISTING REQUEST FORM. IF YOU DO NOT FOLLOW THE FORMAT OR MAKE A GENERIC TOKEN REQUEST YOUR ISSUE WILL BE DELETED WITHOUT COMMENT
YOUR JUSTLIST MUST FOLLOW THE JSON SPECIFICATION
https://github.com/justswaporg/justlists/example.justlists.ts
Checklist

[x] I understand that this is not the place to request a token listing.
[x] I have tested that my JustList is compatible by pasting the URL into the add a list UI at justswap.org.
[x] I understand that filing an issue or adding liquidity does not guarantee addition to the justlists website.

Please provide the following information for your token.
JustList URL must be HTTPS.
JustList URL: https://tronscan.org/#/token/1002283
JustList Name: FOLOS
Link to the official homepage of the JustList manager:

Sorry, your issue will be closed as you did not submit your information in the correct format.

authors: exfolos jeffwami

repo: justswaporg/justlists


text:
Add JustList: {JustList name}

Before submission deletes this line:
THIS IS NOT A TOKEN LISTING REQUEST FORM. IF YOU DO NOT FOLLOW THE FORMAT OR MAKE A GENERIC TOKEN REQUEST YOUR ISSUE WILL BE DELETED WITHOUT COMMENT
YOUR JUSTLIST MUST FOLLOW THE JSON SPECIFICATION
https://github.com/justswaporg/justlists/example.justlists.ts
Checklist

[ ] I understand that this is not the place to request a token listing.
[ ] I have tested that my JustList is compatible by pasting the URL into the add a list UI at justswap.org.
[ ] I understand that filing an issue or adding liquidity does not guarantee addition to the justlists website.

Please provide the following information for your token.
JustList URL must be HTTPS.
JustList URL:
JustList Name:
Link to the official homepage of the JustList manager:

Sorry, your issue will be closed as you did not submit your information in the correct format.