text:
synth keeps building lang/llvm37

Hello,
Each time I try to build a port (example synth install multimedia/mpv), synth compiles lang/llvm37. The package is installed and has been built somewhat like 3 times. There is updates since I didn't update the ports tree.
I wonder if that's normal or a bug because it takes 3 hours to build for me so I would like to avoid rebuilding again and again.

The package is installed
That is irrelevant.  Synth does not use installed packages to build new ones.

I wonder if that's normal or a bug
It's not a bug.

There is a log starting with 06_* which explains why dependencies are rebuilt.  Right now ports is changing dramatically, every day, pretty much since 31 Dec 2016.  My guess is that these big changes are correctly causing rebuilds.  Synth works better if run weekly for this reason (Some people try to run it daily which is pretty much overkill and not efficient).  You didn't note the frequency of the rebuilds though.  llvm37 is forced to get rebuilt quite often and quite easily.

Right now ports is changing dramatically, every day, pretty much since 31 Dec 2016.

Yes, but I told that I didn't updated the ports tree at all since the initial checkout on 26 december 2016.
The 06_obsolete_packages.log contains this:
graphics/libEGL package depends on llvm37-3.7.1_4.txz which doesn't exist or has been scheduled for deletion
But I'm not sure if that one comes from my attempt to install multimedia/mpv. As a suggestion, we could add timestamps in that file? :)

the log is always the last run.  It's overwritten every time.  Timestamps are pointless in that case.

note that you can use "synth status multimedia/mpv" and see what will be rebuilt (and why) as a dry run.  It's just FYI though since it's not avoidable.

authors: jrmarino markand

repo: jrmarino/synth

license: isc


text:
How to use mysql streams?

Does this library provide a method for accessing MySQL stream similar to mysql2 adapter?
Sources:
Mysql2 Adapter - https://github.com/brianmario/mysql2#streaming
Mysql documentation - https://dev.mysql.com/doc/connector-j/8.0/en/connector-j-reference-implementation-notes.html

you can access the jdbc connection from your AR connection: connection.jdbc_connection
from there you could create a statement and set stmt.setFetchSize(Integer.MIN_VALUE)
not sure whether where we should add that since we do not emulate the mysql2 API that much
client.query("SELECT * FROM really_big_Table", :stream => true) we simply do not have that
as AR-JDBC implements AR API: connection.exec_query do you feel that could be made streamable?

source: gharchive/issue

authors: ajinkyapisal kares

repo: jruby/activerecord-jdbc-adapter

license_type: permissive

license_source: bigquery


text:
Response to preflight request is intercepted by servlet

This issue's cause is same as #153 .
I think that we have to deal with not only 'Allow' header but also 'Access-Control-Allow-Origin' header.

@joe-re we would need exact information (preferably with source links) if you traced this down already ...

@kares
I'm sorry, I misunderstood...
The commad and response below was result that I tried.
$ curl -i -X OPTIONS 'http://localhost/api/v1/infomation'
HTTP/1.1 200 OK
Date: Thu, 29 Jan 2015 01:49:39 GMT
Allow: GET, HEAD, POST, PUT, DELETE, OPTIONS
Content-Length: 0
Connection: close

But I implements OPTIONS method. And I misread 592c17f...
So I thought to due to not enough dealt with CORS.
But I couldn't reproduce it now.
Probably this is my miss.
Old library had get mixed in war when I use warble,etc...

authors: joe-re kares

repo: jruby/jruby-rack

license: mit


text:
how to return a value from a consequent and capture it in the caller.

I am exploring the rule engine to build a tool to analyse the state changes of an entity and report the states and any capture any failure during the state change.
I couldn't find a. way to capture the return value once the consequent executes. Can you help me here with an example. I have gone through the py docs, all the consequents are only having print statements. Can you please add a example to return a custom value?
from durable.lang import *
with ruleset('test'):
# antecedent
@when_all(m.subject == 'World')
def say_hello(c):
# consequent
print ('Hello {0}'.format(c.m.subject))
c.m.out = {'komal': 'komal'}
return "world"
def validate_opst(order_info):
val = post('test', order_info)
print(type(val), val)
print(order_info)
The val is sometimes 0 and sometimes a json with Sid.

Hi, thanks for asking the question. You can use the context object passed to the consequent to record the outcome. For example:
from durable.lang import *

with ruleset('test'):
    # antecedent
    @when_all(m.subject == 'World')
    def say_hello(c):
        # consequent
        print('test-> Hello {0}'.format(c.m.subject))
        c.s.result = 'say_hello'

print(post('test', { 'subject': 'World' }))

@jruizgit Thanks for the your quick response. This is greatly helpful, I tried the same on state flow, but the context state is not returned. After looking into the library, it seems that there a complete callback to be provided to get the callback once state flow is complete.
The declaration looks to be like this: complete_cbk(msg, state). In all the cases, there surely will be a callback I hope. Please let me know if not, so I can handle that accordingly.

authors: jruizgit komalbb

repo: jruizgit/rules


text:
Multiple panes when there should be two

To reproduce, click on a video in the vault, not from a within a note.
click open  a note, click open the video, click open a note, etc.
notice multiple panes opened.

Good catch, I don't usually open non-text files in Obsidian. Should be fixed in 1.1.1.

Thanks for the timely update. Unfortunately, it is still a problem.
Have a note open that is auto split. <works across two panes, as it should>
open a video <replaces the note in two panes, as it should>
Open a note <it opens in two panes, as it should, but leaves a third pane open with the video>
open a video <replaces the note in two panes, as it should, third video pane still remains>
Open a note <it opens in two panes, as it should, but leaves a third and fourth pane open with the video in it>
thank you

You may need to do that procedure twice to see the issue. It generally works properly the first time you click between them

Sorry for the delay! Should be fixed in 1.1.2.

1.1.2
Now, when i click on a media file it opens in the two panes as expected, but then i cannot open anything else by clicking on it until i close at least one of the panes :)
Thanks for the continued efforts!

That appears to be a bug with Media Extended and linked panes. I'm able to reproduce it without this plugin being installed :P

Well shoot! Apoligies for any wasted time :/ I am unable to test at this moment, but i am sure you are correct. Thanks a bunch!

No worries!

authors: Hunanbean jsartelle

repo: jsartelle/obsidian-auto-split

license: MIT

license_source: github-api


text:
🛑 API is down

In db90974, API ($SERVER_BASE/api/) was down:

HTTP code: 0
Response time: 0 ms

Resolved: API is back up in c43a132 after 10 minutes.

repo: jscmidt/upptime


text:
🛑 Startpage is down

In 9043752, Startpage ($SERVER_BASE) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Startpage is back up in 81c897b after 31 minutes.


text:
New rule to disallow block comments?

There are code styles out there which disallow block comments and prefer single line comments.
https://github.com/h5bp/Effeckt.css/wiki/Code-Style-Guide

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/21358748-new-rule-to-disallow-block-comments?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).

If we think this could be a rule - what would the name be: requireBlockComments? I guess there could be the opposite rule as well.

+1 Yes, I would think requireBlockComments and disallowBlockComments could be appropriate names for the new rules.

Keep in mind requireBlockComments will need to respect // jscs: disable comments.

jQuery preset could benefit from that rule too - https://contribute.jquery.org/style-guide/js/#comments
But with exception for the parameter list.
@ShashankaNataraj  would you like to do it?

@markelog Sure would! I will take this up! :+1:

Hey @ShashankaNataraj still interested?

@mrjoelkemp Definitely, sorry got caught up in some other things. Will be making a PR soon.

authors: ShashankaNataraj hzoo markelog mrjoelkemp

repo: jscs-dev/node-jscs


text:
maxErrors IS respected when fix is true

When fix is true the documentation says maxErrors is ignored however using 2.1.0 this does not seem to be the case i can run with fix true repeatedly and it will fix 50 errors at a time fixing 50 more with each run. I am using this with the jQuery preset and grunt-jscs.

---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/26126174-maxerrors-is-respected-when-fix-is-true?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).

Are you sure this is the case?
Maybe it's showing errors it can't fix? I just did function a () {} 51 times and tried autofixing and it fixed all of them to function a() {}

Yes reproduced repeatedly with this config on the jQuery ui repository
jscs: {
		all: {
			options: {
				requireCapitalizedComments: null,
				fix: true,
				config: ".jscsrc"
			},
			files: {
				src: [ "demos/**/*.js", "build/**/*.js", "tests/**/*.js", "ui/**/*.js" ]
			}
		}
	}

the result is a passing status with no errors on each run
but running git status after each run shows an ever increasing number of changed files as it fixes 50 errors at a time.
adding maxErrors: 500000 causes the whole lib to be fixed and 175 unfixable errors to be out put

Hmm ok the code is in https://github.com/jscs-dev/node-jscs/blob/b5da623613bc81d8e92eaa3037cb8375d2909eca/lib/cli.js#L96-L98 @markelog

Yeah, maxErrors is respected if you run through CLI, but not programmatically

Okay, it is grunt-jscs, since fix property is its flag not of jscs - https://github.com/jscs-dev/grunt-jscs/issues/95

authors: arschmitz hzoo markelog


text:
Expose nocommafirst

This was actually surprisingly easy to implement so I just ran with it. This fixes issue #279, most of the relevant discussion is already there.
https://github.com/jshint/jshint/issues/279#issuecomment-2293510

I need a better, more neutral, name for this option.

My suggestion is that it be called laxcomma and that this line: https://github.com/jshint/jshint/pull/282/files#L0R1956 be changed to
  if (!option.laxbreak || !option.laxcomma) {

This would make the option consistent with laxbreak since from an implementation perspective it is just a subset of it.

@antonkovalyov Would you like me to reimplement this as laxcomma?

Yeah, thanks much! Could you open a new PR for this please?

No problem. Look for this from me in the next 36 hrs

Just for posterity: the pull request that ultimately got merged was #340.

authors: antonkovalyov indexzero jbdutton

repo: jshint/jshint


text:
[[FEAT]] Support QUnit's global notOk

Adds support for notOk exposed to the global object since QUnit 1.18.0
Ref https://github.com/jquery/qunit/releases/tag/1.18.0

This patch is not okay.

Thanks, Leo!

source: gharchive/pull-request

authors: jugglinmike leobalter


text:
Kubernetes Helm filesystem permissions check and fsgroup

The current deployment in Kubernetes does not work properly for me because of various reasons:
fsgroup is not set to 10000
When obtaining storage from Kubernetes while running a specific userid other than root you want to tell Kubernetes to handle the Permissions for you with fsgroup:
spec:
  template:
    spec:
      securityContext:
        fsGroup: 10000

Filesystem permission check only checks the folder permissions of the Persistent Mountpoint
In my case the Mountpoint is owned by root but I set fsgroup to 10000 which results in the Permissions in the Volume to be 10000 when you create files. I think the permissions check could be improved by checking if a file inside /home/steam/enshrouded/savegame/ can be created.

Success! App '2278520' fully installed.
INFO: Enshrouded server config not present, copying example

2024-01-25T20:39:05.480217832+01:00 ERROR: The ownership of /home/steam/enshrouded/savegame is not correct and the server will not be able to save...
2024-01-25T20:39:05.480221359+01:00 the directory that you are mounting into the container needs to be owned by 10000:10000
from your container host attempt the following command 'chown -R 10000:10000 /your/enshrouded/folder'
2024-01-25T20:39:05.480225326+01:00

Set scaling and upgrade policy to recreate
When a Volume in Kubernetes is RWO (ReadWriteOnce) you cannot redeploy the workload because the pv cannot be attached to the newly created pod.
spec:
  strategy:
    type: Recreate

I hope this helps, if you need me to test anything on kubernetes for you hit me up!

Hey thanks for this! Admittedly I have not tested this on my own cluster since I made that change. I was just trying to help folks running outside of Kubernetes that think they need to have access to the files locally and keep doing bind mounts. I'll enhance the check and make your recommended change regarding the security context. Cheers.

Well the difference is that with the behavious as is it creates a second Pod on updates/redeploys, this pod tries to mount the PV and then fails if the PV is RWO. Recreate Terminates the Pod gracefully, after it is fully terminated it creates the new Pod. It does not cause a loss of data. I would be more concerned with a loss of data with the behaviour as is, because on a redeploy two servers try to access the same savegame at the same time. (depending on how fast the server process actually starts) In my case it took a few minutes to start the server fully.

Ok - that makes sense to me. I will make the necessary change.

Using a StatefulSet might be a good alternative as well, since they are designed to handle the PVC and Recreation

That's actually not a bad idea, I didn't think about doing a stateful set. I'll play around with this.

For the issue mentioned above with fs groups, I changed the entrypoint to have this:
    # Check for proper save permissions
    if ! touch "${ENSHROUDED_PATH}/savegame/test"; then
        echo ""
        echo "ERROR: The ownership of /home/steam/enshrouded/savegame is not correct and the server will not be able to save..."
        echo "The directory that you are mounting into the container needs to be owned by 'steam' (uid 10000)"
        echo "from your container host attempt the following command 'chown -R 10000:10000 /your/enshrouded/folder'"
        echo ""
        exit 1
    fi

    rm "${ENSHROUDED_PATH}/savegame/test"

This has been fixed in image v2.0.2

authors: Divinii jsknnr tchupp

repo: jsknnr/enshrouded-server


text:
FYI: empty string allowed as an id

Unless I'm overlooking something, JSON:API currently seems to allow the empty string as a resource's id. We may want to note this or disallow it (which is probably acceptable as a breaking change).

This is a very good point, and I my first thought was to agree that it should be disallowed, but I'm not so sure...
Although we are not using empty string identifiers, allowing it would be a good way to grant a single object response.
At my current company, we've implemented JSON:API for PostgreSQL using SPI, and last week we had a problem because we were being too restrictive for the resource id. We are using ragel to parse the URL, and I was using for the resource identifier the same rule that was defined to match member names.
I've checked JSON:API specification and could not find any specific restrictions, so ended up checking RFC 3986.
It seems now that I didn't check properly, because when I fixed the characters restrictions, I kept the assumption that an id should have at least one character...
We have some resources, used to report latest data, where it made more sense for us to always return a single object response, and to grant that we are using a phony identifier (because of that non-empty string assumption) which is just being ignored.

Making the empty string invalid as an id would be backward incompatible.
I also don't see a problem with keeping it valid; if you don't use it, then the value becomes invalid in your application because it doesn't refer to anything anyway.
I have an application where I specifically chose to use the empty string as id for a "api root" object.  Since JSON:API (rightly) does not define the URLs for an application, an application is going to want a set of root URLs for various collections.  I then provide a resource with a known URL that clients can use to locate everything else they need.  Since there's only one instance of the type, there's no particular value in giving it anything interesting as an id.  At that point, making it small seems best.
I think this issue can be closed.

@gabesullice ?

@gabesullice ?

I agree that it would be a backward incompatible change. I think we need to figure out a procedure for noting things that we aren't going to fix for BC reasons, but which we want to fix in a new major version.

authors: ethanresnick freddrake gabesullice joananeves

repo: json-api/json-api


text:
Manipulate Array Data

I've been digging into ways to build a csv helper on top of the standard array class and its decorators. I'm trying to find where I can access the values already entered. I'm not seeing the values in Item or Model array and the internals make it look as though 'list' is the storage mechanism here.
Is there a way to access these items without overriding the standard array.js?

They should be in the model, actually. Is this still a problem?
Can you perhaps provide an example of what you are trying to do?

Please re-open if you can provide information to help is assist you.

authors: Anthropic nicklasb stephenreid

repo: json-schema-form/angular-schema-form


text:
Need help with array validation

Expected behaviour
When you type only the validation should work on the input field.
Actual behaviour
Below is the code i used to create a array of input with button. It always show Required message at the bottom and  show Required in the input even.
form= [
   {
       'type': 'help',
       'helpvalue': '
Click New List to add new List
'
  }, {
       'key': 'data',
       'add': 'New',
       'feedback': "{ 'glyphicon': false, 'glyphicon-asterisk': form.required && !hasSuccess() && !hasError() ,'glyphicon-ok': hasSuccess(), 'glyphicon-remove': hasError() }",
        'style': {
             'add': 'btn-success'
         },
         'items': [
             'data[].name', {
                  'type': 'button',
                   'style': 'btn-success',
                    'title': 'Save',
                     'onClick': 'saveItem()'
                }
           ],
          'startEmpty': true
      }
]

schema= {
  'type': 'object',
  'title': 'Comment',
   'properties': {
        'data': {
             'type': 'array',
             'maxItems': 1,
              'items': {
                    'type': 'object',
                     'properties': {
                          'name': {
                               'title': 'Name',
                               'type': 'string'
                            }
                        },
                        'required': ['name']
                     }
                 }
          }
     }

Below image shows my issue

@anushkamahesh in the documentation look for validateOnRender under global options. You need to set it to false if you want to avoid the default behaviour.
Please use gist to provide schema/form code examples it is much easier to help, in this case I already knew the answer, but for most things it really helps.
Please re-open if you do not feel the question has been answered sufficiently.

it says validateOnRender	boolean	Should form be validated on initial render? Default false
Check this one `https://embed.plnkr.co/NT6cvVybfuZnFIhgU1Xm/, Close the current one exist on the view. Then you can see the issue

@anushkamahesh ok I think I understand what your issue is now thanks for the plunker.
You have set both the comments array as required and the field as required which is why the word required would appear, are they not supposed to be required? If you want a clearer message then you can set validationMessage on the form definition for both array and field to override.
Setting minItems as well as maxItems will also provide better messages at the array level.

authors: Anthropic anushkamahesh


text:
hyperborea blog entry

@Relequestual  There we go! I have added some mention that $data is not core JSON Schema, and made sure that the text and examples look decent in this blog. Anything you'd like me to tweak, let me know!

Made a few small alterations. Good to go!
Thanks again Yanick!

Woo! Excellent! \o/

authors: Relequestual yanick

repo: json-schema-org/blog


text:
jspm inject usability

when providing the wrong first argument, one ends up with weird package name files being written.
Instead let's make the html file argument a mandatory flag:
jspm inject --html test.html react-dom

If the flag isn't provided we should get an error:
jspm inject react-dom

ERR: Must provide an --html file to inject into

We could use -h as a short flag for --html.

I think -h would be confusing with --help! So let's skip it IMO.

authors: Aslemammad guybedford

repo: jspm/jspm


text:
Remove unnecessary use directives

Suggested by "cargo clippy".

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (eb676b2) 93.02% compared to head (000ecb8) 93.02%.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.
Additional details and impacted files
@@           Coverage Diff           @@
##           master       #5   +/-   ##
=======================================
  Coverage   93.02%   93.02%
=======================================
  Files           2        2
  Lines         215      215
=======================================
  Hits          200      200
  Misses         15       15

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

authors: codecov-commenter jstasiak

repo: jstasiak/cachedir


text:
Jstzd: add build.rs fro the rollup and spawn rollup in jstzd

Context

Description
There are two parts in this PR:

add a build script to build the rollup preimages / installer
a. Modified the MakeFile so that the kernel.wasm is copied to crates/jstzd/
b. Add build.rs that 1) stores the rollup kernel_installer.hex, preimages/ and parameters_ty.json to OUT_DIR. 2) generate a path getter file (jstz_rollup_path.rs) to access the path of 1
add rollup to the jstzd server

Manually testing the PR

Btw, you should add ./resources/jstz_rollup and jstz_rollup_path.rs to the .gitignore and include these files as part of the jstzd package in Cargo.toml

authors: ryutamago zcabter

repo: jstz-dev/jstz


text:
[New] jsx-no-useless-fragment: add ignoreUnsafeChildren flag

With ignoreUnsafeChildren enabled, this rule will only warn about
useless fragments that removing would guarantee no change in behavior.
addresses some of: https://github.com/yannickcr/eslint-plugin-react/issues/2584

Codecov Report

Merging #2967 (4ca34c7) into master (0d999ef) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #2967      +/-   ##
==========================================
- Coverage   97.58%   97.57%   -0.02%
==========================================
  Files         110      110
  Lines        7256     7258       +2
  Branches     2643     2644       +1
==========================================
+ Hits         7081     7082       +1
- Misses        175      176       +1

Impacted Files
Coverage Δ

lib/rules/jsx-no-useless-fragment.js
98.78% <100.00%> (+0.03%)
:arrow_up:

lib/util/Components.js
98.64% <0.00%> (-0.20%)
:arrow_down:

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 0d999ef...4ca34c7. Read the comment docs.

@ljharb which fragments should we warning about?
// function could be expecting a react node and raise an error at runtime if it got null instead
<></>
// children could be undefined
<>{children}</>
// foo could be undefined
<>{foo && <Foo/>}</>
// foo could be undefined
<>{foo?.map(x => <Bar x={x}/>)}</>

In that case, you should be doing:
<></> // fair enough
// children could be undefined
{children ?? <></>}
// foo could be undefined
{foo ? <Foo/> : <></>}
// foo could be undefined
{foo?.map(x => <Bar x={x}/>) ?? <></>}

In general, if a component is so badly written that it crashes when it receives a nullish value instead of an element, i don't think it makes much sense for the consumer to need to worry about it. I also think that's an appropriate place for an eslint override comment, where you explain that the override is necessary because the other component is incompetently authored.

I think this would solve the only issue I have with the rule.
JSX.Element, React.Element and React.ReactNode are not interchangeable types, and however you pull them you end up with type errors.
If you have a React.FunctionComponent type for example you just cannot return a raw children, but you can return <>{children}</>
While <> is technically useless, TypeScript disagrees
Type '({ children, LoginPage, ignoreApiError, }: PropsWithChildren<RequireAuthProps>) => ReactNode' is not assignable to type 'FC<RequireAuthProps>'.
  Type 'ReactNode' is not assignable to type 'ReactElement<any, any>'.
    Type 'string' is not assignable to type 'ReactElement<any, any>'

@fregante can you elaborate (maybe with a ts playground link) on what you're hoping this PR would fix?

I haven't looked at the code, but I assume ignoreUnsafeChildren means that <>{children}<> or <>{props.children}</> would be allowed, without allowing all expressions via allowExpressions
The setting might make more sense as allowExpressions: "children"
I think the entirety of https://github.com/jsx-eslint/eslint-plugin-react/issues/2584 (except https://github.com/jsx-eslint/eslint-plugin-react/issues/2584#issuecomment-627002431) has this single complaint, so you have a lot more examples there.

authors: codecov-io fregante ljharb sbdchd

repo: jsx-eslint/eslint-plugin-react


text:
Cuda Runtime Error: out of memory

When i was testing the model in Set14, I found the GPU memory is overflow. How could you solve this problem？ And my GPU is 1080Ti.

You can crop the test image into patches with a proper size and feed them into the model separately.

Hi @t827859032, I had crop the img into patches with some overlaps as your suggestion, and get the PSNR close to the results of the article. Thanks for your help.

Hi @jt827859032 , I had crop the img into patches with some overlaps as your suggestion, and get the PSNR close to the results of the article. Thanks for your help.


text:
Undo commit 2689d07c8dbe9ca50e76a10076a2c203d977bc0b

Commit 2689d07c8dbe9ca50e76a10076a2c203d977bc0b should be reverted. "RtlCreateUserThread" is (obviously) not a syscall and, even if it was, the prototype is incorrect for x64 usage.

Please make a pull request.


text:
Add GPS location

Allow users to use their location instead of writing down address

Hello. Can I take this one? I would like to get some experience with PWA's.

@billy-le Hi! Sure! For the UI I was thinking something like a end adornment for the location text field using the GpsFixed icon.
Thanks for the help and happy hacktoberfest!

Thank you, great work!
Closed in #19

authors: billy-le jtiala

repo: jtiala/lunchwatch-pwa


text:
make error

Hi, I'm a nanopolish newbie. I'm using OSX 10.10.5 on a MacBook Pro. I installed the latest code from github, but when I try to make I get the output below. Any help greatly appreciated. Thanks.
MacTop-IT11905:nanopolish ranitori$ make
if [ ! -e hdf5-1.8.14.tar.gz ]; then
version_major_minior=echo "1.8.14" | sed -E 's/\.[0-9]+$//';
wget https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-${version_major_minior}/hdf5-1.8.14/src/hdf5-1.8.14.tar.gz;
fi
--2018-12-04 22:25:05--  https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.14/src/hdf5-1.8.14.tar.gz
Resolving support.hdfgroup.org (support.hdfgroup.org)... 50.28.50.143
Connecting to support.hdfgroup.org (support.hdfgroup.org)|50.28.50.143|:443... connected.
ERROR: cannot verify support.hdfgroup.org's certificate, issued by ‘CN=cPanel\, Inc. Certification Authority,O=cPanel\, Inc.,L=Houston,ST=TX,C=US’:
Unable to locally verify the issuer's authority.
To connect to support.hdfgroup.org insecurely, use `--no-check-certificate'.
make: *** [lib/libhdf5.a] Error 5

That is strange, I don't get that error when I run on linux. To work around it you can run:
wget --no-check-certificate https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.8/hdf5-1.8.14/src/hdf5-1.8.14.tar.gz

then continue by running make. Alternatively nanopolish is available through conda.
Jared

Try:
wget --no-check-certificate https://bitbucket.org/eigen/eigen/get/3.2.5.tar.bz2

then re-run make like before.

Hi,
I'm re-trying to install nanopolish again. This time I'm using OSX 10.14.6 Mojave on a MacBook Pro. I installed the latest code from github, but when I try to make it's not working. Please see the attached Terminal log file. Any help is greatly appreciated. Thanks.
make.log

authors: jts ranitori

repo: jts/nanopolish


text:
Where is the primers_to_amplicons.py script?

Hello,
I can't find the primers_to_amplicons.py script within the ncov-tools scripts directory.
I am trying to run the NML fork of the SIGNAL pipeline, but everything seems to be running smoothly until the ncov-tools make_amplicon_bed rule. There is no obvious error; only Error in rule make_amplicon_bed ... (one of the commands exited with non-zero exit code; note that snakemake uses bash strict mode!). Hoping to solve the issue by looking at the script mentioned in the shell command, primers_to_amplicons.py, I realized it was missing.
Is the script still in use, as the Snakefile suggests, and if so, where might I find it?
Thanks.

It can be found in the ncov-parser package which is one of the dependencies in the environment.yaml file.
https://github.com/simpsonlab/ncov-parser/blob/main/bin/primers_to_amplicons.py

The conda env for that fork should be found in your clone of the repo under .snakemake/conda/ncov-qc-pangolin4. If ncov-parser is not installed there that would be odd as as Richard said its in the environment.yaml file. Hopefully doublechecking the install fixes it
It could be an issue with one of the primer bed files as well though

Thank you both for your responses! ncov-parser wasn't listed with pip list within the conda environment @DarianHole mentioned, so I manually used pip install ncov-parser. After chmod +x primers_to_amplicons.py to get rid of the ensuing Permission denied error, my colleague and I are troubleshooting a ModuleNotFoundError for vcf.
File ".../covid-19-signal-nml/.snakemake/conda/ncov-qc-pangolin4/bin/primers_to_amplicons.py", line 8, in <module>
    import ncov.parser.primers as pr
File ".../covid-19-signal-nml/.snakemake/conda/ncov-qc-pangolin4/lib/python3.8/site-packages/ncov/parser/__init__.py", line 7, in <module>
    from .Vcf import *
File ".../covid-19-signal-nml/.snakemake/conda/ncov-qc-pangolin4/lib/python3.8/site-packages/ncov/parser/Vcf.py", line 7, in <module>
    import vcf
ModuleNotFoundError: No module named 'vcf'

Did potentially none of the pip installs work? That is what it somewhat sounds like which would be odd. Actually it looks like I had a spacing difference in that file so that is likely it. Sorry about that. I've adjusted it
You'll probably either have to pip install the remaining dependencies or re-make the env after pulling the fix I made to the yaml file.
https://github.com/jts/ncov-tools/blob/master/workflow/envs/environment.yml#L31 has all the dependencies

authors: DarianHole juliadouglasf rdeborja

repo: jts/ncov-tools


text:
Offense detected - 4: Variable definida sin usar.

Dado este caso, quisiera evaluar la regla 4: Vaiable definida sin usar:
El mensaje de error  que tengo para comparar es :

Offense detected - 4: Variable definida sin usar.

Y como se cual es la que no estoy usando ?
Se puede agregar el id de la variable?? quiero agregar un test que digo, no estas usando b, no estas usando c.
Parecido a como se usa en:

Offense detected - 8: Variable $v no declarada.

[info] The case2: '{
[info]  function int identidad(int a) return a;
[info]  int b = identidad(a);
[info]  bool c = identidad(a);
[info] }' string should

[info] + contain messages: Offense detected - 8: Variable a no declarada. Line: 2, Column: 19
[info]   Offense detected - 10B: Parametro de funcion de tipo incorrecto. Esperado: Integer, actual: Double. Line: 2, Column: 9
[info]   Offense detected - 8: Variable a no declarada. Line: 3, Column: 20
[info]   Offense detected - 10B: Parametro de funcion de tipo incorrecto. Esperado: Integer, actual: Double. Line: 3, Column: 10
[info]   Offense detected - 15: El tipo de la variable c y la expresion no coinciden. Line: 3, Column: 1
[info]   Offense detected - 9B: La funcion no devuelve el tipo esperado. Line: 3, Column: 10

serían el 3, 4 y 8?

authors: juanpale nandotorterolo

repo: juanpale/ObligatorioWhile

license: unlicense


text:
How to deploy wordpress with now-php ?

How to deploy wordpress with now-php ?

Resolved。https://github.com/fydy/now-wordpress

I am not sure if we can say that vercel-php (now-php) is fully support wordpress with all it's plugins and extensions.
It seems me better to host wordpress somewhere else.

repo: juicyfx/vercel-php


text:
Demo is broken

http://julienw.github.io/dollardom/examples/
Basically, because it links to an offline file.

Broken again... ;-)

Are you sure ? This seems to work for me.

Pretty sure... ;-)
Doesn't work in Chrome becaus of the mime type of dollardom-animate.min.js.
This is my console output:
julienw.github.io/:1 - Refused to execute script from 'https://raw.github.com/julienw/dollardom/master/dollardom-animate.min.js' because its MIME type ('text/plain') is not executable, and strict MIME type checking is enabled.
examples.js:1 - Uncaught ReferenceError: $dom is not defined
http://julienw.github.io/favicon.ico - Failed to load resource: the server responded with a status of 404 (Not Found)

OK; it works in Firefox, that's why I didn't see it.
I'll look how I can make it download with a right mime type in gh. If you have an idea I'm all ears :)

looks like I could use rawgit.com or host the js library on the gh-pages branch.

authors: julienw moay sebastianberns

repo: julienw/dollardom


text:
Remove perl dependency for bash

refer to this issue https://github.com/junegunn/fzf/pull/1635
Could it possible?

I don't know. Pull requests are welcome.

authors: junegunn rickywu

repo: junegunn/fzf


text:
Spinner Unicode does not work in xterm.

[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
In reference to the use of Unicode for the 'input spinner'...
Related to https://github.com/junegunn/fzf/issues/2050
The unicode braille does not work for xterm's either. All that appears is a dotted box!
Which is weird as the xterm's can output braille characters.
Using  'fzf --no-mouse' I was able to copy the dotted box, and pasting into the same xterm later, and the xterm displayed the braille character that was grabbed without any problem!
The various box characters however have no problem being displayed.
However I think what is happening is that the braille characters are being in bold which I discovered in another project did not support many unicode glyphs!
The fonts being used by the xterm were...
Normal font...   "-misc-fixed-medium-r---15--75-75-c-90-iso10646-1"
Bold Font... "-misc-fixed-bold-r---15--75-75-c-90-iso10646-1"
The normal font has the unicode glyphs,  the bold font does not!
I suggest that if you are going to output a unicode spinner, you do NOT use a bold font.
ASIDE: Interesting use of the braille unicode, shame I wasn't able to tell it was even there until I saw the previously referenced issue.

Just to be clear @antofthy, is the issue xterm not allowing unicode symbols on bold, or that the font doesn't have the symbols in bold?

More like the X window bold fonts do not have unicode characters defined (just blank)
As such turning in bold in xterms means any unicode does not appear.
They work just fine if you do NOT use bold when printing unicode characters.
Color is not an issue, only when using bold.

Since 0.24.0, --color option allows you to "un-bold" the part:
sleep 10 | fzf --color spinner:regular

Also, note that you can suppress all Unicode characters by passing --no-unicode.

Thanks junegunn.

authors: LuRsT antofthy junegunn


text:
Add additional tiebreakers

[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

[ ] bash
[x] zsh
[ ] fish

Problem / Steps to reproduce
It would seem sensible to me, to also allow the following tiebreakers:

beginword Prefers lines with matching word starting letters

Mozilla Thunderbird is ranked higher than
mumle-git for input mt

sequence Prefers lines where letters are sequential

Firefox is ranked higher than
Forts of Iron for input fir

The scoring algorithm of fzf already handles both cases (the scores are not the same, so tiebreak has no effect).
$ printf 'Forts of Iron\nFirefox' | fzf -f fir | head -1
Firefox

$ printf 'Mozilla Thunderbird\nmumle-git' | fzf -f mt | head -1
Mozilla Thunderbird

See https://github.com/junegunn/fzf/blob/master/src/algo/algo.go

authors: junegunn mpldr


text:
Executing shell history entry requires hitting Enter twice

[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
When choosing a shell history item via Ctrl-R, I need to hit Enter once in order to insert it into the shell command line, and another time in order to execute it. It would improve the workflow if the shell integration could follow the behavior of the shell's built-in history handling which is something like this:
Hitting Enter once directly executes the search entry.
Hitting any command line navigation button such as left/right/home etc., the entry is inserted without immediate execution and cursor moved accordingly.

It is by design. It gives us a chance to edit the command.
Related: https://github.com/junegunn/fzf/pull/1492

authors: dwuertz junegunn


text:
fzf with kill set USER name instead of PID

Checklist

[X] I have read through the manual page (man fzf)
[X] I have searched through the existing issues
[X] For bug reports, I have checked if the bug is reproducible in the latest version of fzf

Output of fzf --version
0.56.3 (brew)
OS

[ ] Linux
[X] macOS
[ ] Windows
[ ] Etc.

Shell

[ ] bash
[X] zsh
[ ] fish

Problem / Steps to reproduce
I use zsh on MacOS, with only configuration in my .zshrc:
eval "$(fzf --zsh)"
When I use fzf with kill -9 command,  fzf selects the wrong column, USER instead of PID:

Are there any options to configure the column that fzf extracts from the selected line number?

Quick suggestion: try source <(fzf --zsh).
I assume you might have set an alias for cat. Could you please confirm?

Quick suggestion: try source <(fzf --zsh).
I assume you might have set an alias for cat. Could you please confirm?

OMG, that's it!
I tried to configure it with bat and to set the options for no numbers and didn't work.
It was because of a cat alias.
Thank you!

Your're welcome.

It was because of a cat alias.

The fzf sourcing instructions were changed from eval to source to avoid expanding aliases.
Ref: #3794

authors: LangLangBart Mikcode


text:
unable to run vim-plug on WSL2

Cannot use PlugInstall or any other command in Vim or Neovim for WSL2. (windows 10)
Followed installing instructions but I always get a message:
E492: Not an editor command: PlugInstall
vim version and nvim version below
:version
VIM - Vi IMproved 8.1 (2018 May 18, compiled Apr 15 2020 06:40:31)
Included patches: 1-2269
Modified by team+vim@tracker.debian.org
Compiled by team+vim@tracker.debian.org
Huge version without GUI.  Features included (+) or not (-):
+acl               +cindent           +cursorshape       +file_in_path      +jumplist          +mksession         +mouse_xterm       +printer           +sound             +terminal          +virtualedit       -xim
+arabic            -clientserver      +dialog_con        +find_in_path      +keymap            +modify_fname      +multi_byte        +profile           +spell             +terminfo          +visual            -xpm
+autocmd           -clipboard         +diff              +float             +lambda            +mouse             +multi_lang        -python            +startuptime       +termresponse      +visualextra       -xsmp
+autochdir         +cmdline_compl     +digraphs          +folding           +langmap           -mouseshape        -mzscheme          +python3           +statusline        +textobjects       +viminfo           -xterm_clipboard
-autoservername    +cmdline_hist      -dnd               -footer            +libcall           +mouse_dec         +netbeans_intg     +quickfix          -sun_workshop      +textprop          +vreplace          -xterm_save
-balloon_eval      +cmdline_info      -ebcdic            +fork()            +linebreak         +mouse_gpm         +num64             +reltime           +syntax            +timers            +wildignore
+balloon_eval_term +comments          +emacs_tags        +gettext           +lispindent        -mouse_jsbterm     +packages          +rightleft         +tag_binary        +title             +wildmenu
-browse            +conceal           +eval              -hangul_input      +listcmds          +mouse_netterm     +path_extra        -ruby              -tag_old_static    -toolbar           +windows
++builtin_terms    +cryptv            +ex_extra          +iconv             +localmap          +mouse_sgr         -perl              +scrollbind        -tag_any_white     +user_commands     +writebackup
+byte_offset       +cscope            +extra_search      +insert_expand     -lua               -mouse_sysmouse    +persistent_undo   +signs             -tcl               +vartabs           -X11
+channel           +cursorbind        -farsi             +job               +menu              +mouse_urxvt       +postscript        +smartindent       +termguicolors     +vertsplit         -xfontset
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: gcc -c -I. -Iproto -DHAVE_CONFIG_H   -Wdate-time  -g -O2 -fdebug-prefix-map=/build/vim-iU6mZD/vim-8.1.2269=. -fstack-protector-strong -Wformat -Werror=format-security -D_REENTRANT -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: gcc   -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -o vim        -lm -ltinfo -lnsl  -lselinux  -lcanberra -lacl -lattr -lgpm -ldl     -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 -lcrypt -lpthread -ldl -lutil -lm -lm

:version
NVIM v0.5.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-OqQfCc/neovim-0.5.0+ubuntu2+git202104182337-66f9dd3c6-d569569c9=. -fstack-protector-strong -Wformat -Werror=format-security -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wa
ll -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_
GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/build/neovim-OqQfCc/neovim-0.5.0+ubuntu2+git202104182337-66f9dd3c6-d569569c9/build/config -I/build/neovim-OqQfCc/neovim-0.5.0+ubuntu2+git202104182337-66f9dd3c6
-d569569c9/src -I/build/neovim-OqQfCc/neovim-0.5.0+ubuntu2+git202104182337-66f9dd3c6-d569569c9/.deps/usr/include -I/usr/include -I/build/neovim-OqQfCc/neovim-0.5.0+ubuntu2+git202104182337-66f9dd3c6-d569569c9/build/src/nvim/auto -I/build/neovim-
OqQfCc/neovim-0.5.0+ubuntu2+git202104182337-66f9dd3c6-d569569c9/build/include
Compiled by buildd@lgw01-amd64-022

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info

Type:

[x ] Bug
[ ] Enhancement
[ ] Feature Request
[ ] Question

OS:

[ ] All/Other
[ ] Linux
[ ] OS X
[x ] Windows

Vim:

[x ] Terminal Vim
[ ] GVim
[x ] Neovim

Followed installing instructions

Which command did you run?

Vim and NeoVim commands as documentation states:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

and
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
       https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

solved with a pretty convoluted workaround reading the:versioninfo output
Seems that VIM root folder in WSL is/instead of  $HOME so placed the VIM config file in there inside a folder. Chowned to my user and then voilá. PlugInstall worked.
.vim/vimrc
Then NeoVim, reading :version info the init file seems to be at
"$VIM/sysinit.vim"
Odd enough, that folder in WSL is the $HOME folder  as in any other linux distribution
/home/user
So I created a file named sysinit.vim with all my configs and voilá. Working again....

we run curl -fLo ~/.vim/autoload/plug.vim --create-dirs \https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim and get the error:curl: (60) SSL certificate problem: self signed certificate More details here: https://curl.haxx.se/docs/sslcerts.html
So how to solve it ?

Thank you this worked for me too.
Had to create sysinit.vim in user\(username)\ folder. It worked
Neovim
Windows 10

I got same issue with vim on Ubuntu (WSL) and solved as below.
1. command:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
2. create the ~/.vimrc file if not exist
As i run vim --version we have the following output, then we know
system is reading .vimrc file in home folder
system vimrc file: "$VIM/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
defaults file: "$VIMRUNTIME/defaults.vim"
fall-back for $VIM: "/usr/share/vim"
then run following to create file if not yet have.
cd ~; touch .vimrc
3. in the .vimrc
call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')
" Declare the list of plugins.
Plug 'tpope/vim-unimpaired'
" List ends here. Plugins become visible to Vim after this call.
call plug#end()
Key point is because we put the file in autoload folder, it only load the plugin if
some function is called in the file.
Below is from https://learnvimscriptthehardway.stevelosh.com/chapters/53.html

Autoload lets you delay loading code until it's actually needed. You'll take a slight performance hit overall, but if your users don't always use every single bit of code in your plugin autoloading can be a huge speedup.
Here's how it works. Look at the following command:
:call somefile#Hello()
...
vim will load autoload/somefile.vim....

4. restart vim

call plug#begin(has('nvim') ? stdpath('data') . '/plugged' : '~/.vim/plugged')

I recommend that you keep it simple and call plug#begin without an argument unless you want to install plugins in a non-default directory. i.e. call plug#begin()

thank you @junegunn , it would be more simple to call call plug#begin() only.

authors: ElonDormancy Yash-Raj junegunn verajosemanuel vnluc

repo: junegunn/vim-plug


text:
Feature/workspacify

Heyho,
I took the liberty to turn this into a 'monorepo', as these are so hip nowadays. All it does it pull node-api-sys into this repo and make turn it all into a cargo-workspace. You should be able to build with cargo build --all.

Thanks, looks mostly good. Can you rebase to master?

I would suggest a good old merge here, as I joined the two repos via subtree.

Can you just copy instead of using subtree? I'd rather have them in one repo and delete node-sys

sure can do, I just meant to keep the original history around

Thanks for the effort, it's just not worth it. It's 100% autogenerated by bindgen.

done

Thanks man!


text:
Use naas-python for assets

Update assets with naas_python package

Stucked because: https://github.com/jupyter-naas/naas-python/issues/43

repo: jupyter-naas/abi


text:
Rebase on jupyter/minimal-notebook:4.0

@rgbkrk First crack at updating docker-demo-images to 4.0. Need many more eyes and testing, particularly against how it'll be run at tmpnb.org.
Key points

Now based on the jupyter/minimal-notebook:4.0 image from docker-stacks to DRY
It builds to completion with all kernels showing when the notebook server starts. Fixes the various defects currently open against this repo like #63, #64, #68.
No version pinning throughout (yet).
Inverts the original Dockerfile install order so that site specific customizations come after the install of all the demo-wares. This change means site-specific install steps can later be split off as a subimage, with a Dockerfile inheritance chain like jupyter/minimal-notebook -> jupyter/demo -> jupyter/tmpnb-demo. Then other folks can simply start FROM jupyter/demo and add their own site customizations without having to rebuild the massive middle image.

But for the time being, I haven't done that split so there's just one Dockerfile. Trying to KISS until everything works. Splitting is an easy later refactor.

I added comments galore throughout the Dockerfile.
Known problems

It won't work if the static_url_prefix in the jupyter config is in play because the CDN site does not have the piece parts yet. So for testing, I simply removed that part of the config for now. (And since it's near the end of the Dockerfile now, I didn't have to wait 3 hours to test again! Yay!)
The IHaskell widget demos don't work. There's kernel comm errors in the JS log. I did have to remove the version pinning on ihaskell-widgets to get the install to work but it looks that version installed anyway (and might be the only released version anyway). Briefly perusing the IHaskell commits, maybe this is still a WIP for 4.0 compatibility? Or simply unreleased? /cc @gibiansky @sumitsahrawat
The Julia logo doesn't appear. JS console reports http://mydomain:8889/kernelspecs/julia-0.3/logo-64x64.png Failed to load resource: the server responded with 404 Not sure why considering the logo is right where it needs to be. For comparison, the python2 logo is in its proper spot and loads just fine:

jovyan@266f76e05efd:~/.local/share/jupyter/kernels/julia-0.3$ ls -l
total 12
-rw-r--r-- 1 jovyan users  195 Sep 13 05:00 kernel.json
-rw-r--r-- 1 jovyan users 1310 Sep 13 05:00 logo-32x32.png
-rw-r--r-- 1 jovyan users 2843 Sep 13 05:00 logo-64x64.png
jovyan@266f76e05efd:~/.local/share/jupyter/kernels/julia-0.3$ cd ../python2
jovyan@266f76e05efd:~/.local/share/jupyter/kernels/python2$ ls -l
total 12
-rw-r--r-- 1 jovyan users  168 Sep 13 04:58 kernel.json
-rw-rw-r-- 1 jovyan users 1084 May  8 20:15 logo-32x32.png
-rw-rw-r-- 1 jovyan users 2180 May  8 20:15 logo-64x64.png

Unknowns

Does it work with tmpnb? I know jupyter/minimal-notebook does because I've tried it recently.
Anything else broken? I didn't test every kernel with every sample notebook.

DevOps impact

The jupyter static dir is now /opt/conda/lib/python3.4/site-packages/notebook/static/custom/ which appears to be nginx mounted according to the original Dockerfile comments. That'll need to change on deploy.

Oh my gosh, thanks.
Our cdn.jupyter.org setup is nginx + static files, fronted by fastly. We used to serve directly out of nginx, especially when we were hosting the latest master of ipython/ipython for the longest time. With a pinned version, this changes.
With this PR, we'll have to update the try directory. Example: http://cdn.jupyter.org/notebook/try/custom/custom.js
We should probably rely on versioning there too.

The Julia logo is a known issue. I patched that in IJulia not so long ago, seems like we were waiting on a release.

One deprecation note: should we migrate the tmpnb example to using jupyter/minimal-notebook and delete the jupyter/minimal image from docker hub? The alternative is making jupyter/minimal just "FROM jupyter/minimal-notebook" or set up hooks to create minimal from the same spot.

Thanks for the ping @parente.
IHaskell and the ihaskell-widgets package both support 4.0 now in the github master branch. The new widgets added to IPywidgets, i.e Valid, Proxy and ProxyPlace, have yet to be implemented. I will work on them ASAP, and then we can get a new release out. /cc @gibiansky

Would it be ok if we rely on this and for Haskell to not be supported until it's ready?

@rgbkrk As I'm learning more about tmpnb, dawns on me that the containers are running the notebook server as root not jovyan  because of the way the command is passed.
su jovyan -c '--command="su jovyan -c '/opt/conda/bin/ipython notebook \
				--NotebookApp.base_url={base_path} \
				--ip=0.0.0.0 \
				--port={port}"'

should do the trick on launch. Or we can wait for https://github.com/jupyter/docker-stacks/issues/24 to get resolved.

Would specifying the user as part of the call to docker-py work well? (same as -u from docker land).

Yes it will, but is that an exposed option to orchestrate?

No, but it could always be added. It's too bad we can't just run straight from the notebook server. Open to tini as well.

Confirmed ihaskell widgets working. Rebased on master to fix conflict. Looking into tini over in docker-stacks for simplifying container startup.

One deprecation note: should we migrate the tmpnb example to using jupyter/minimal-notebook and delete the jupyter/minimal image from docker hub? The alternative is making jupyter/minimal just "FROM jupyter/minimal-notebook" or set up hooks to create minimal from the same spot.

How about marking jupyter/minimal DEPRECATED on docker hub in its description, referring people to jupyter/minimal-notebook, and leaving the deprecated image there for a time before deleting it?

How about marking jupyter/minimal DEPRECATED on docker hub in its description, referring people to jupyter/minimal-notebook, and leaving the deprecated image there for a time before deleting it?

That's fine. As long as we also change the tmpnb README's to point to jupyter/minimal-notebook.

Round-up:

jupyter/docker-stacks#38 needs merging to master, then backport to 4.0 branch
jupyter/minimal-notebook needs rebuild on dockerhub (along with all other images)
cdn.jupyter.org needs update of resources, maybe versioned
/opt/conda/lib/python3.4/site-packages/notebook/static/custom/ is now the dir with the custom files within container (what needs to change? tmpnb orchestrate option to copy out files?)
After jupyter/docker-stacks#38 merges, tmpnb start command for orchestrate should be something like:

--command="start-notebook.sh \
                --NotebookApp.base_url={base_path} \
                --port={port}"

Upon launch, the container entrypoint should be tini (as specified in the base image) while the initial command will be start-notebook.sh. That script automatically switches to the jovyan user and passes all other arguments through as args to jupyter notebook.

Deprecate jupyter/minimal in favor of jupyter/minimal-notebook both in the jupyter/minimal Docker Hub description and in the tmpnb Makefile and README.

New ihaskell failure today during build (whereas last week all was well).
cabal: Error: some packages failed to install:
ihaskell-widgets-0.2.0.0 depends on singletons-2.0.0.1 which failed to
install.
singletons-2.0.0.1 failed during the building phase. The exception was:
ExitFailure 1
The command '/bin/sh -c cabal update &&     cabal install cpphs &&     cabal install gtk2hs-buildtools &&     cabal install ihaskell-0.8.0.0 --reorder-goals &&     cabal install ihaskell-widgets HTTP Chart Chart-cairo &&     ihaskell install &&     rm -fr $(echo ~/.cabal/bin/* | grep -iv ihaskell) ~/.cabal/packages ~/.cabal/share/doc ~/.cabal/setup-exe-cache ~/.cabal/logs' returned a non-zero code: 1
make: *** [build] Error 1

Today I'll carve out some of these as well as give you access to the CDN @parente. We do have versioned assets up but we haven't publicly declared what's available.

Ah but I see we'd want to version the try content from the CDN.

Not clear on what that versioning scheme would look like or how it relates to the options on the launching of the tmpnb containers.
If you've got cycles in the late PM today, we can pair on it if you'd like.

2-4pm central I'm packed, but any time on either side of that wide open.

Might be able to do 1 PM CST. Let's take off issue to gitter and see what time works out. I'll ping there.

https://jupyter.hackpad.com/Ops-Log-9242015-DObACmQcdks
@rgbkrk I think this is ready to go in to match the "latest" image now on Docker Hub. (Unless you don't want to merge til after the try site is updated.)

:shipit:

authors: parente rgbkrk sumitsahrawat

repo: jupyter/docker-demo-images


text:
Readme still references deleted commOpened

And there is no example for using the newer registerCommTarget().

Thanks!  Fix coming.

Ref: #97.

repo: jupyter/jupyter-js-services


text:
Border at top and bottom of toolbar seem to have different width.

Not sure if this is on purpose, its ok if it stays like that, but just want to open this to make sure.

Hopefully I get it right when we switch to Cameron's icons :wink:

Might just be a browser bug.
On Jun 8, 2016 15:15, "Steven Silvester" notifications@github.com wrote:

Hopefully I get it right when we switch to Cameron's icons 😉
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jupyter/jupyterlab/issues/7#issuecomment-224746685,
or mute the thread
https://github.com/notifications/unsubscribe/AAUez_S9luSVrAsvzPdkmlFyDKfxElL8ks5qJz8KgaJpZM4IuL3j
.

This could be a floating point rounding error when mapping onto retina displays. I see this a lot on hi-dpi displays.

What info does this need?

Need to know whether it's present in other browser/OS/device combinations, or if it's limited to retina/hi-dpi displays. If it's a hi-dpi issue and the CSS is specified correctly, there's nothing we can do about it.

@Carreau - is your screenshot above on a hi-dpi screen?

For 26917b074ce4cb590eca968cb176295498c1422c, I have the same border width on a macbook pro retina display:

Yes, Hi DPI, Chrome, OS X. Screenshot is Zoomed a bit to make it more visible.
If the CSS is the same, feel free to close,  it was just in case there was a mistake.

@Carreau, can you try on multiple browsers? If it's just Chrome, then let's chalk it up to the rounding problem.

Also ensure browser zoom is 100% - anything more or less will exacerbate rounding issues

Seem to be gone in latest Chrome anyway, let's close.

authors: Carreau blink1073 jasongrout sccolbert

repo: jupyter/jupyterlab


text:
Make our repository limit per-organization instead of per-repository

What do people think about hitting the max-binder limit to the organization, rather than the repository? I know that not all of our repoproviders would have the concept of an "organization", so maybe this would be harder to implement, but I could see the benefit in making this the limit to prevent abuse (e.g. somebody that creates a gajillion github repositories under their account and tries to mine bitcoin with them)
cc @betatim and @bollwyvl who chatted about this

Alas, I am unsure if there is a limit to the number of organizations one
can have, either... but at least there's no convenient API endpoint for it
on Big GitHub, so it's at least as much busy work as creating fake accounts.

I'd go for a limit per organisation and one per repository.

What's the current situation here?

I still think it's a good idea, but I don't believe an implementation has been proposed. So we should decide if we still want this to be on the backlog or not (and if not, close it). Do you think this feature would be a useful addition?

authors: betatim bollwyvl choldgraf manics

repo: jupyterhub/binderhub


text:
Investigate electron-remote

Looks like this could be very useful in talking between the two processes:
https://github.com/electron-userland/electron-remote

@ellisonbg these are the official APIs https://electron.atom.io/docs/api/remote/ they're included in Electron. They're absolutely fundamental 👍

@ellisonbg i think we can close this

authors: ddavidebor ellisonbg


text:
Figure out how to propagate ENV VARs in packaged apps

The ENV VARs in a user's environment determine which python and notebook server will be used. We will need to figure out a way of propagating the those to the electron app when installed so it can start the notebook server.

It appears that applications launched from a .desktop shortcut on Linux do not see the ENV vars from the user's .bashrc.
The user should still be able to select which notebook server to use and save the preference. #48

I did some investigation on this, and the problem boils down to the user's PATH variable. Any extension to the path that is added by the .bashrc is not included when a program is executed from the desktop environment. Thus, if Jupyter is installed by Anaconda, the main process just can't find the executable and the app can't start.
I found a solution that works but could use some refinement. Instead of spawning the Jupyter notebook server directly from the main process, we can spawn a shell in interactive mode, which forces .bashrc to be executed. We then pipe a command to the shell that starts the notebook server.

We use shell-env for this in nteract, with the huge caveat that you have to expect to only use what's in their default $PATH (no custom launching), since when you package the app on OS X it launches via launchctl when run from the dock / searchlight.

This has been solved, hasn't it?

authors: ddavidebor ellisonbg lucbouchard1 rgbkrk


text:
[PLUGIN] - WooCommerce - Add shell script

The WooCommerce-Payments-Plugin connect with multiple payment processors with a single API to improve payment conversions, reduce costs and ops. It supports multiple currencies, offers fraud protection, and provides an easy-to-use dashboard for managing transactions and tracking sales.
Getting started

Get familiar with Php and Javascript.
Check the README.md for project structure and setup instructions.
To setup locally, follow the steps provided here

Description:
Create a plugin.sh script that automates the creation of a ZIP file of the plugin repository. The script should exclude unnecessary files (like .git directories) and name the output in the format woocommerce-plugin.zip.

Contribution Guidelines:

Fork the repository and create a new branch for your work.
Ensure the WebSDK follows best practices for API integration and field rendering.
Write clean, well-documented code with clear commit messages.
Add unit tests to ensure the dynamic field rendering works as expected.
Make sure to follow our coding standards and contribution guidelines.

Helpful Resources:

Link to WooCommerce-Plugin documentation: WooCommerce

Submission Process:

Ask the maintainers for assignment of the issue, you can request for assignment by commenting on the issue itself.
Once assigned, submit a pull request (PR).
Maintainers will review and provide feedback, if any.
Maintainers can unassign issues due to inactivity, read more here.

Refer here for Terms and conditions for the contest.
If you have any questions or need help getting started, feel free to ask in the comments!

Hi, I have been scripts for a long time. Assign this issue to me and I'll soon update  with the exactl approach here.

Hey @sakksham7  can I work on this issue ?
I already had created a script for this issue

can i work on issue as i have worked on script and php

hi @sakksham7 Plz assign this issue to me

Hey @gorakhnathy7
Here is my written script
This script creates a ZIP file with name woocommerce-plugin.zip as mentioned in the issue. Do you need me to exclude any more files or make any changes to the script or should I raise a pr?

Excluded .git directory and all its content and plugin.sh script

#!/bin/bash

# Uncomment the below line and enter your directory name
PLUGIN_DIR="."

ZIP_FILE="woocommerce-plugin.zip"

EXCLUDE_LIST=(
  ".git/*"
  "./plugin.sh"

)

if [ -f "$ZIP_FILE" ]; then
  echo -e "Regular ZIP file exists."
else
  echo "ZIP file does not exist."
fi

EXCLUDE_PARAMS=()
for item in "${EXCLUDE_LIST[@]}"; do
    EXCLUDE_PARAMS+=("-x" "$item")
done

zip -r "$ZIP_FILE" "$PLUGIN_DIR" "${EXCLUDE_PARAMS[@]}"
echo "Zip file created: $ZIP_FILE"

I would like to work on this. Can you assign it to me?

repo: juspay/hyperswitch


text:
refactor(refunds): refactor refunds create to check for unintended 5xx

Type of Change

[ ] Bugfix
[ ] New feature
[ ] Enhancement
[x] Refactoring
[ ] Dependency updates
[ ] Documentation
[ ] CI/CD

Description

In this PR comments are added at places where code is not clear. Some minor code changes made wherever appropriate. No major logical changes made. Comments are added in code for more context. After the review the comments will be removed.
Additional Changes

[ ] This PR modifies the API contract
[ ] This PR modifies the database schema
[ ] This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Compiles
Checklist

[x] I formatted the code cargo +nightly fmt --all
[x] I addressed lints thrown by cargo clippy
[x] I reviewed submitted code
[ ] I added unit tests for my changes where possible
[ ] I added a CHANGELOG entry if applicable

Same comment as @SanchithHegde other than that LGTM, also please remove the comments


text:
cannot open source file "json.hpp" and unresolved external symbol__imp_curl_global_init referenced in function "public: __ ....

Sorry my bad :D, now only thing left is unresolved external symbol__imp_curl... im keep searching online too if im resolving my problems I'll delete them one by one without asking further help thanks!, btw I'm so new to c++

#update linking curl library solves problem but I don't really know how to :(

i get the same errors i dont know how to fix

I get the same error too, please help. I have been trying this for so long, still no improvement.

authors: ImVurse akash-dutta-dev notrealgosu

repo: jussihi/PUBG-map-hack


text:
Can't run README.md examples.    TypeError: pipe_1.pipeFromArray(...) is not a function

Description:
I can't run the examples in the README. I don't know how to run any tests.
Example Test (failing):
it('Should concatenate two cold observables into single cold observable', () => {
    const a = cold('-a-|');
    const b = cold('-b-|');
    const expected = '-a--b-|';
    expect(a.pipe(concat(b))).toBeMarble(expected);
});

Error Message:
TypeError: pipe_1.pipeFromArray(...) is not a function

      5 |     const b = cold('-b-|');
      6 |     const expected = '-a--b-|';
    > 7 |     expect(a.pipe(concat(b))).toBeMarble(expected);
        |              ^
      8 | });
      9 |

      at ColdObservable.Object.<anonymous>.Observable.pipe (node_modules/rxjs/src/internal/Observable.ts:437:37)
      at Object.pipe (__tests__/x.js:7:14)

package.json:
{
  "name": "tmp-test",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "type":"module",
  "scripts": {
    "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "jest": "^29.5.0",
    "jest-marbles": "^3.1.0"
  },
  "dependencies": {
    "rxjs": "^7.0.1"
  }
}

The new syntax is
   expect(concat(a,b)).toBeMarble(expected);

The examples not being updated is confusing to beginners like myself

repo: just-jeb/jest-marbles


text:
OnBeforeRequest being called twice?

Hi,
I'm making simple request to google.com and trying to send a custom response when it happens, like you have in your examples.
But, the OnBeforeRequest callback is called twice!
Any ideas why?
Code:
public async Task OnRequest(object sender, SessionEventArgs e)
{
	Console.WriteLine(e.WebSession.Request.Url);

	if (e.WebSession.Request.RequestUri.AbsoluteUri.Contains("google.com"))
	{
		Console.WriteLine("response");
		await e.Respond(new Response
		{
			ResponseStatusCode = "200",
			ResponseStatusDescription = "OK"
		});
	}
}

Answer: Must use e.GenericResponse - might as well make e.Respond internal!


text:
🛑 Jellyfin is down

In d31140f, Jellyfin (https://video.mkacg.com) was down:

HTTP code: 530
Response time: 77 ms

Resolved: Jellyfin is back up in 64bc68a after 37 minutes.


text:
🛑 qBittorrent is down

In 2b86849, qBittorrent (https://bt.justforlxz.com) was down:

HTTP code: 530
Response time: 74 ms

Resolved: qBittorrent is back up in 19889c8 after 20 minutes.


text:
Oneof/AnyOf/AllOf applied to the properties of an object

I have tried these schemas based on these answers:

http://stackoverflow.com/questions/31839578/how-to-define-a-json-schema-that-requires-at-least-one-of-many-properties
http://stackoverflow.com/questions/25014650/json-schema-example-for-oneof-objects

But I can't get them to work:
<?php

use JsonSchema\Validator;
use JsonSchema\Constraints\Constraint;
use JsonSchema\Exception\ValidationException;

$validator = new Validator;

$data = file_get_contents('./test.json');

$data = json_decode($data, true);

$validator->validate(
    $data,
    json_decode(json_encode([
        'type' => 'object',
        'properties' => [
            'response' => [
                'type' => 'object',
                'oneOf' => [
                    ['required' => ['error']],
                    ['required' => ['result']]
                ],
                'properties' => [
                    'error' => [
                        'type' => 'object'
                    ],
                    'result' => [
                        'type' => 'object'
                    ]
                ]
            ]
        ],
        'required' => ['response']
    ])),
    Constraint::CHECK_MODE_TYPE_CAST | Constraint::CHECK_MODE_EXCEPTIONS
);

var_dump($validator->isValid());
// JsonSchema\Exception\ValidationException with message 'Error validating /response/error: The property error is required'

<?php

use JsonSchema\Validator;
use JsonSchema\Constraints\Constraint;
use JsonSchema\Exception\ValidationException;

$validator = new Validator;

$data = file_get_contents('./test.json');

$data = json_decode($data, true);

$validator->validate(
    $data,
    json_decode(json_encode([
        'type' => 'object',
        'properties' => [
            'response' => [
                'type' => 'object',
                'oneOf' => [
                    [
                        'properties' => [
                            'error' => [
                                'type' => 'object'
                            ],
                        ]
                    ],
                    [
                        'properties' => [
                            'result' => [
                                'type' => 'object'
                            ],
                        ],
                    ]
                ]
            ]
        ],
        'required' => ['response']
    ])),
    Constraint::CHECK_MODE_TYPE_CAST | Constraint::CHECK_MODE_EXCEPTIONS
);

var_dump($validator->isValid());
// JsonSchema\Exception\ValidationException with message 'Error validating /response: Failed to match exactly one schema'

The data is like:
{
    "response": {
        "result": {}
    }
}

{
    "response": {
        "error": {}
    }
}

Investigating this.
For anyone else following, cleaned up schemas from the original post:
{
    "type": "object",
    "properties": {
        "response": {
            "type": "object",
            "oneOf": [
                {
                    "required": [
                        "error"
                    ]
                },
                {
                    "required": [
                        "result"
                    ]
                }
            ],
            "properties": {
                "error": {
                    "type": "object"
                },
                "result": {
                    "type": "object"
                }
            }
        }
    },
    "required": [
        "response"
    ]
}

{
    "type": "object",
    "properties": {
        "response": {
            "type": "object",
            "oneOf": [
                {
                    "properties": {
                        "error": {
                            "type": "object"
                        }
                    }
                },
                {
                    "properties": {
                        "result": {
                            "type": "object"
                        }
                    }
                }
            ]
        }
    },
    "required": [
        "response"
    ]
}

This one isn't working either:
<?php

use JsonSchema\Validator;
use JsonSchema\Constraints\Constraint;
use JsonSchema\Exception\ValidationException;

$validator = new Validator;

$data = file_get_contents('./test2.json');

$data = json_decode($data, true);

$validator->validate(
    $data,
    json_decode(json_encode([
        'type' => 'object',
        'properties' => [
            'response' => [
                'oneOf' => [
                    ['type' => 'object', 'properties' => [
                        'error' => [
                            'type' => 'object'
                        ],
                        'required' => ['error']
                    ]],
                    ['type' => 'object', 'properties' => [
                        'result' => [
                            'type' => 'object'
                        ],
                        'required' => ['result']
                    ]]
                ]
            ]
        ],
        'required' => ['response']
    ])),
    Constraint::CHECK_MODE_TYPE_CAST | Constraint::CHECK_MODE_EXCEPTIONS
);

var_dump($validator->isValid());

@CMCDragonkai Your first example works fine:
<?php

require('vendor/autoload.php');

use JsonSchema\Validator;

$v = new Validator();

$schema_a = json_decode(file_get_contents('schema-a.json'));
$data_a=json_decode('{"response":{"result":{}}}');

$v->validate($data_a, $schema_a);
assert($v->isValid()); //true

Maybe something's going wrong with the json encode and decode that I'm using to avoid typing out (object).

@CMCDragonkai Your second example works fine too - it fails validation, as it should, because your input data matches both schemas in oneOf.
Your third example has an invalid schema - properties must be objects, but you have defined one named "required" as an array.
Could you please explain exactly what your issue is? Because from where I'm sitting, this doesn't look like a problem with the library, or with json_encode / json_decode. This looks like user error on your part.
You may wish to check out http://www.jsonschemavalidator.net/ to assist with writing a valid schema that fulfils your requirements.

Try this:
<?php

use JsonSchema\Validator;
use JsonSchema\Constraints\Constraint;
use JsonSchema\Exception\ValidationException;

$validator = new Validator;

$data = <<<'JSON'
{
    "response": {
        "result": {}
    }
}
JSON;

$data = json_decode($data, true);

$validator->validate(
    $data,
    (object)[
        'type' => 'object',
        'properties' => (object)[
            'response' => (object)[
                'type' => 'object',
                'oneOf' => [
                    (object)['required' => ['error']],
                    (object)['required' => ['result']]
                ],
                'properties' => (object)[
                    'error' => (object)[
                        'type' => 'object'
                    ],
                    'result' => (object)[
                        'type' => 'object'
                    ]
                ]
            ]
        ],
        'required' => ['response']
    ],
    Constraint::CHECK_MODE_TYPE_CAST | Constraint::CHECK_MODE_EXCEPTIONS
);

var_dump($validator->isValid());

It's possible that because of {} gets decoded as a PHP array with the true option, and I'm looking for an object.

I'm on 5.1 version as well, and my most recent example really doesn't work. Even if I remove the true and Constraint::CHECK_MODE_TYPE_CAST, it still throws an error.

Your third example has an invalid schema - properties must be objects, but you have defined one named "required" as an array.

My third example has properties as an object, not sure what you mean that I've 'defined one named "required" as an array'? Because I haven't done that. This is the internal-memory output from the third schema in PHP:
{#238
     +"type": "object",
     +"properties": {#246
       +"response": {#245
         +"oneOf": [
           {#241
             +"type": "object",
             +"properties": {#242
               +"error": {#243
                 +"type": "object",
               },
               +"required": [
                 "error",
               ],
             },
           },
           {#180
             +"type": "object",
             +"properties": {#244
               +"result": {#240
                 +"type": "object",
               },
               +"required": [
                 "result",
               ],
             },
           },
         ],
       },
     },
     +"required": [
       "response",
     ],
   }

None of the properties there are typed as arrays. They are all objects because of their object id.

I found the problem. It's because of Constraint::CHECK_MODE_EXCEPTIONS. If you add it in, it fails on the first error. That error is that it fails one of the of oneOf. If you remove CHECK_MODE_EXCEPTIONS, it succeeds at the very end.

Compare:
<?php

use JsonSchema\Validator;
use JsonSchema\Constraints\Constraint;
use JsonSchema\Exception\ValidationException;

$validator = new Validator;

$data = <<<'JSON'
{
    "response": {
        "result": {
        }
    }
}
JSON;

$schema = <<<'JSON'
{
    "type": "object",
    "properties": {
        "response": {
            "type": "object",
            "oneOf": [
                {
                    "required": [
                        "error"
                    ]
                },
                {
                    "required": [
                        "result"
                    ]
                }
            ],
            "properties": {
                "error": {
                    "type": "object"
                },
                "result": {
                    "type": "object"
                }
            }
        }
    },
    "required": [
        "response"
    ]
}
JSON;

$data = json_decode($data);
$schema = json_decode($schema);

var_dump($data);
var_dump($schema);

$validator->validate(
    $data,
    $schema
);

var_dump($validator->isValid());

<?php

use JsonSchema\Validator;
use JsonSchema\Constraints\Constraint;
use JsonSchema\Exception\ValidationException;

$validator = new Validator;

$data = <<<'JSON'
{
    "response": {
        "result": {
        }
    }
}
JSON;

$schema = <<<'JSON'
{
    "type": "object",
    "properties": {
        "response": {
            "type": "object",
            "oneOf": [
                {
                    "required": [
                        "error"
                    ]
                },
                {
                    "required": [
                        "result"
                    ]
                }
            ],
            "properties": {
                "error": {
                    "type": "object"
                },
                "result": {
                    "type": "object"
                }
            }
        }
    },
    "required": [
        "response"
    ]
}
JSON;

$data = json_decode($data);
$schema = json_decode($schema);

var_dump($data);
var_dump($schema);

$validator->validate(
    $data,
    $schema,
    Constraint::CHECK_MODE_EXCEPTIONS
);

var_dump($validator->isValid());

try:
$data = json_decode($data, false);

@shmax Please see my most recent example. It shows that the problem is with exception constraint, not about json decoding.

Thanks - I can confirm there is a problem with CHECK_MODE_EXCEPTIONS; I will fix this.
Regarding the other issues you're having - you are definitely making mistakes with some of your schemas. I strongly recommend you take advantage of http://www.jsonschemavalidator.net/; it will help you ensure that your schemas are valid.

My third example has properties as an object, not sure what you mean that I've 'defined one named "required" as an array'? Because I haven't done that.

Yes, you have done that. You have properties->required->[], which is illegal.

@erayd I'm sorry but I just have my Spacemacs telling me I do not have required as a property of properties. They are siblings, not parent-children relationship.
Thank you for the fix.

@CMCDragonkai
Look at properties>>response>>oneOf>>properties>>required here.
I have now pointed this out three times. Look at your code.
I know there is a bug with CHECK_MODE_EXCEPTIONS, however your insistence that there is no user-error here is annoying, and makes me less inclined to pay attention when you submit new issues. Please check your input before claiming it's perfect, especially when someone has already told you multiple times it's not.

@erayd I see it. I thought you were referring to the first "required" property, not the inner set.

The CHECK_MODE_EXCEPTIONS bug has been fixed in #394. Thanks for bringing it to my attention :-).

authors: CMCDragonkai erayd shmax

repo: justinrainbow/json-schema


text:
Make authorization work

Integrate the SHA256 based authentication scheme described at https://www.varnish-cache.org/trac/wiki/CLI

This does work on Varnish 3.0. That was actually the original reason for modifying the code.

@dmclain Has this been stable for you? I have an identical need and am thinking about deploying your branch.

@acdha We've got an internal implementation that I pulled the auth method out of and it's very stable. I did some testing with my branch it was connecting to the server just fine.

authors: acdha dmclain

repo: justquick/python-varnish


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/blob/main/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:

Please submit the correct information, invalid information will cause the issue to close

repo: justswaporg/justlists


text:
Error on invalid input values (with revert option)

resulting from issue with changing inputs in juttle/juttle-viewer#34
Expands upon #148
Currently juttle is indifferent to the value of inputs in regards to their type. For instance if I have this program:
input my_text: text;

and I provide the compiler with the following input value { my_text: ['a', 'b', 'c'] }, the compiler will not complain and simply return the obviously invalid value as the inputs value and a runtime error will get thrown if you try to do any stringy things with the input value (correct me if I'm wrong).
Following what was defined in #148 it would be nicer if juttle were more aware  of what value type each input_type expected and either threw an error or revert to input default for invalid values.
As currently implemented we push this responsibility to any code that wants to implement juttle-inputs, which increases the complexity to implementing any client that wants to use juttle.
By default the compiler should throw an error if an invalid input_value is provided for an input. There should be a compiler option that would discard any invalid options and revert to the input default. Perhaps an option called input_mismatch_revert (defaults to false), that when set to true will not throw and error and instead revert invalid values to the input default.

@go-oleg

@go-oleg volunteers to take over the PR to finish up

authors: dmehra mnibecker

repo: juttle/juttle


text:
decorator autocompletion

Plugin does not suggest classes and interfaces while there is no dash.
decorator:
  - Works:
    setup:
      - bb(%option%)

decorator:
  DoesNotWork:
    setup:
      - bb(%option%)

fixed by 3e9b274c9b

repo: juzna/intellij-neon


text:
More Native Protocols

Leveraging from some of the other projects you have been involved in is it possible to add more native protocols.

I would like to keep this project focused on the NASDAQ transport protocols, because those are stable, reliable, and applicable to a wide variety of applications. The NASDAQ application protocols, such as ITCH and OUCH, belong to Juncture, and the new FIX engine will be a separate project.
Regarding past projects, right now I am not particularly interested in adding support for the NASDAQ OMX Nordic transport protocols. On the other hand, support for UFO would be an interesting addition. Contributions are welcome! :wink:
Do you have some particular protocols in mind?

Keep all the them separate and publish them on maven. I like to contribute a trading engine. In order to do this is it possible to have the feed handler and order flow interfaces defined in a generic way. I am going to code against this interface. One more protocols become available them can be used.

It sounds like you might already have a good idea on what the generic feed handler and order entry interfaces should look like. Would you be interested in starting such a project? I would gladly help on integrating Nassau, Juncture, and the forthcoming FIX engine to it.

@sirinath By the way, have you seen Helix, @penberg's recently released market data feed handler for C and C++?

Seen it. I am looking for something in Java and which has a very generic interface so the protocols can be plugged in.

Alright. At the moment I don't have a clear vision on how such system should look like. If you have ideas, I suggest you go forward an initiate such a project. As I mentioned, I would be interested in integrating Nassau and Juncture to it. :+1:
In the meantime I'm following Helix for ideas on the topic and gaining experience from different trading venues via Juncture.

OK. Sounds good.
When I have something I will get back to you. The interface part you might also need to be a bit active so things do not drift too far that it cannot integrate.

Sure, just let me know when you have something cooking. :+1:

authors: jvirtanen sirinath

repo: jvirtanen/nassau


text:
Error when running example

Hi, i tried running your example on the readme page and got the following error:
ERROR: UndefVarError: mylib not defined

I was wondering if you could provide a complete example on how to sort a Julia string vector using c++ std::sort?
Thank you

Hi @gitboy16 you are right, docs are currently lacking. Meantime I recommend looking at the tests. I would start with hello world, does that work locally for you?
For the std::sort I can help with that, but it is already a bit advanced.  The issue is that julia strings != C++ strings and there are multiple ways to deal with this. I suggest you try to sort a list of Float64 first and then we can look into the string example?

Hi, thanks for the feedback. I manage to run the hello example in your test folder but I had to change it a little bit.
I had the following error:
run(`g++ -shared -fPIC $(filepath) -o $libpath`)
clang-13: error: unsupported option '-fPIC' for target 'x86_64-w64-windows-gnu'

I removed the -fPIC and everything worked well.
I will try to sort float64 and let you know. Thank you.

I think I am going to need your help to get std::sort to work on a vector. 😅

Sure I would try something like this:
@cxx lib function unsafe_sort!(first::Ptr{Float64}, last::Ptr{Float64})::Cvoid
    ...
end

function sort!(v::Vector{Float64}
    GC.@preserve v begin
        unsafe_sort!(...)
    end
end

Sorry I did not manage to make it work. I think I am very far from understanding how things work and from your level of knowledge.

Sorry I did not manage to make it work. I think I am very far from understanding how things work and from your level of knowledge.

Sure generally speaking if a problem is too hard for me to solve directly, I try to solve a simpler subproblem first. Often that subproblem is still too hard, so I slice it down again. This may require a few iterations, until things are simple enough. So here I would recommend calling C code instead of C++ first. Don't use any packages, just ccall. For instance, you could write a simple C function that fills an array with zeros and try to call it from julia.


text:
websocket 经常会断开连接

websocket连接上TK后，隔一段时间会断开连接，出现这种情况的频率也是挺高的，为什么？api 版本1.8.5

This is a TikTok thing that we cannot control. Best you can do is reconnect after 5-10 seconds of disconnection.

repo: jwdeveloper/TikTokLiveJava


text:
Error when running sudo node tjbot-daemon.js

Hi Justin,
I encounter the following error when trying to activate the TJBot Daemon:
sudo node tjbot-daemon.js
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'bleno'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/pi/Desktop/tjbot-daemon/tjbot-daemon.js:18:15)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

Could you let me know what this error means?
Thank you very much!

Hi @jweisz I'm retrying the TJBot Daemon boostrapping and getting lots of errors. I have attached the log in a file here for your review. Thank you very much.
TJBot-Daemon-Installation.log

repo: jweisz/tjbot-daemon


text:
Add today.svg badge generation

add a new endpoint today.svg to generage a badge only count visitor in current day.

Done, see new release v1.0.1

repo: jwenjian/visitor-count-badge


text:
Default shell on macOS should use login

Which operating system does the issue occur on?
MacOS 10.12.3
Default process for a shell on MacOS should use login -fp $USERNAME and not a direct invocation of /bin/bash because the user's environment gets set up differently with login. iTerm2.app and Console.app both use login and share a consistent environment for my user account but alacritty's environment differs with a buggy $PATH among other oddities.

Thank you for posting this. Alacritty was not lighting up my ~/.zsh/.zprofile file, but following your example I was able to get things working with:
shell:
  program: /usr/local/bin/zsh
  args:
    - --login

I think a good example of how this can be fixed in Alacritty can be seen in how it was fixed in kitty: https://github.com/kovidgoyal/kitty/issues/247

authors: JamesDunne acheronfail fallwith

repo: jwilm/alacritty


text:
so what is the meaning of this code? I cannot understand it

if self._roidb[index_ratio]['need_crop']:
if ratio < 1:
# this means that data_width << data_height, we need to crop the data_height
# min_y 坐标
min_y = int(torch.min(gt_boxes[:,1]))
max_y = int(torch.max(gt_boxes[:,3]))
# trim_size此处应该是最终裁剪后图片的高
trim_size = int(np.floor(data_width / ratio))
if trim_size > data_height:
trim_size = data_height
box_region = max_y - min_y + 1
if min_y == 0:
y_s = 0
else:
if (box_region-trim_size) < 0:
y_s_min = max(max_y-trim_size, 0)
y_s_max = min(min_y, data_height-trim_size)
if y_s_min == y_s_max:
y_s = y_s_min
else:
y_s = np.random.choice(range(y_s_min, y_s_max))
else:
y_s_add = int((box_region-trim_size)/2)
if y_s_add == 0:
y_s = min_y
else:
y_s = np.random.choice(range(min_y, min_y+y_s_add))

@MoonWolf9067 @leoshine is correct. Yes, this part is not that clear, I am planning to modify it.