session: SHM glue: Oversight ignores that Shm_session::lend_object() (also borrow_object()) can legitimately fail around session-hosing time; => assert/mayhem.

[ CC @wkorbe @echan-dev ]
@wkorbe reproduced this (unreliably, because timing can cause problem to be detected earlier by other pieces and be handled properly most of the time). In his particular case, he was performing an async_request() (could have been any send really), which assert()ed here:
void capnp_set_lent_shm_handle(schema::ShmHandle::Builder* shm_handle_root,
                               const flow::util::Blob_sans_log_context& lend_result)
{
  using util::Blob_mutable;

  assert(!lend_result.empty());

but really a few instructions earlier, while internally preparing a SHM-backed message for sending, Shm_session::lend_object() returned an empty Blob. My code treated this as only being possible if we had bugs; therefore it assert()ed. (Naturally if asserts were turned off, some sort of worse mayhem would have occurred.)
His stuff was SHM-jemalloc-enabled. SHM-classic cannot fail this way, so this couldn't happen. But SHM-jemalloc's lend_object() performs internal IPC over an internal heap-based channel to inform the opposing process of an imminent sharing of a SHM handle. More specifically it performs a struc::Channel::sync_request() - which is expected to send a thing and very quickly get a response.
EDIT: Sorry, I believe it's actually that earlier-on, when the pool containing the allocated-thing was created, is when the sync_request() happened and failed, at which point the error-reacting internal code deregistered the pool. lend_object() then noticed (and warn-logged) that the pool is not registered as expected, so it had to fail (and return the empty blob). But either way, that latter thing was the result. lend_object() doesn't do internal IPC - the lending is done on a per-arena and per-pool basis (I am sure for efficiency among other things)..
In his case, though, he had intentionally killed the opposing process, so the session was not long for this world. But, this wasn't yet detected by various other code -- the SHM-jemalloc thing was the first to "see" it.
It's a straightforward oversight in the Shm_session-wrangling code. The fix, essentially, is simple: if this fails, then fail async_request()/send()/etc; and therefore emit the channel-hosing error. (As for the session, it will also detect getting hosed quite soon and thus emit an error to user separately.)
The details of the fix might be a little more involved, as the original error then affects (synchronously) several layers of "stuff" including the capnp-serializing layer. So probably some concepts/classes will need to be updated in cascading fashion, formally, to account for the possibility of lend_object() legitimately failing and thus dooming the Shm_session.
Also (minor)
There is a comment in the error-handler passed to Shm_session::create() which omits the above possibility. It should correctly mention it, so as to not mislead maintainers by omission.
EDIT: There is also a somewhat misleading comment in the Shm_session::lend_object() doc header, saying that it would fail only if one tried to duplicately lend the same object. This may or may not have led to my confusion, but either way demonstrably the session/channel being hosed can lead to it. Correct the comment.
Also (major)
Similarly borrow_object() can fail for perhaps similar reasons. (Look into that a little bit more, just to see what might actually happen in SHM-jemalloc's case. Right now it looks like there's no IPC traffic in there, )
Also (probably minor)
@echan-dev also suggests that upon detecting, in various places (?), that the Shm_session is likely hosed due to the hosing of the opposing process, we can call Shm_session::set_disconnected(). In particular this will cause any subsequent lend_object() and probably borrow_object() (check it) to short-circuit earlier without attempting to use the internal channel. This would reduce entropy and might speed up some things around session-hosing time.
That said, it's a SHM-jemalloc thing only, so either it would need to be invoked only for it, somehow; or the Shm_session concept has to be formally updated with this API. (SHM-classic would then need to support it too.)
How important this is is TBD to me. IMO stuff is pretty well locked down in practice, so it will all work out okay anyway. Could be wrong.
Priority
High. It should go in the next release. This is a sporadic problem one can trigger simply by ending a session (which is completely normal).

This should have probably been filed in the ticket table of ipc repo, as it cuts through not just ipc_session but also ipc_shm and partially ipc_shm_arena_lend (the latter docs-only, I think). But, it's not a big deal.


ROCm 1.6 can run width Juno arm r1 & r2 developemnt board and AMD R9 FURY X card?

I get the information the ROCm 1.6 support arm, I want to know if I have Juno ARM R1 & R2 development board and AMD R9 FURY C card, then I can  run opengl demos?

We do not have Juno board, the base driver today supports ARM AArch64 and a kernel driver support can be built up to the ROCr driver API.   We still working on User Land Language runtimes.


Rework README.md

this PR reworks readme according to the structure mentioned in one of the lectures. also available in the description of the corresponding issue (https://github.com/InnoQueue/Backend/issues/94)

Codecov Report

Merging #127 (796bd50) into main (3c73c72) will not change coverage.
The diff coverage is n/a.

:exclamation: Current head 796bd50 differs from pull request most recent head 0c63acd. Consider uploading reports for the commit 0c63acd to get more accurate results

@@            Coverage Diff            @@
##               main     #127   +/-   ##
=========================================
  Coverage     84.57%   84.57%
- Complexity      340      342    +2
=========================================
  Files            45       45
  Lines           979      979
  Branches        144      144
=========================================
  Hits            828      828
  Misses           57       57
  Partials         94       94

Flag
Coverage Δ

unittests
84.57% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.
:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

suspended

todo:

[ ] add styleguide.md as ref to readme.md

todo


Data augmentation confusion

It shows dataset.get_augumentation will augment the train image, but you add centercrop after resize with same width and height, i'm confuse about it, and it seems redundant, and resize with no heigth/width ratio will weak structure of image

@cswwp  Thanks for the great question from you=)).

Resize without ratio => weak struture of image. I agree, i will fix it.

fun with centercrop. It really does not change anything in the picture because width=crop_widht, height=crop_height. I will delete it. Thank for your question


Problem with Java

Version of Boardwalk:1.1
Version of Android:5.0
Device model:SM-G900F
Description of the problem:A Java Problem

Same problem, same device.
java.lang.RuntimeException: Dex retur ed 6 with error:

Versión of board 1.1
Android 4.2.2
Problem a java


Close avio stream instead of just flushing pending buffers

Right now, if we stream to an RTMP server (e.g. ffmpeg) the connection will not be properly
closed on finalization. This is because we're only flushing the IO stream instead of flushing AND
closing.
This is how finalization works according to the docs:
Once all the data has been written, the caller must call av_write_trailer()
to flush any buffered packets and finalize the output file, then close the IO
context (if any) and finally free the muxing context with
avformat_free_context().

There are two missing bits in the current implementation:

[x] close the IO context
[x] free it

I'm testing the free, for now I'm opening the PR for early feedback. I'm testing it and ffmpeg
now exists normally.

Getting a segfault on the tests. I'll setup Rambo locally (awful experience with m2 macs). Update coming soon.

Ah, the problem is that I do not think this bit of code does what you would expect
  # for Mac M1 it is necessary to include rambo compiler (used by :ffmpex)
  if Mix.env() == :test do
    def maybe_add_rambo(), do: [:rambo]
  else
    def maybe_add_rambo(), do: []
  end

Mix.env() is set to :dev if you run mix test 🤷♂

MIX_ENV=test mix test once then the compiler will be available, still you may consider checking this out.

Ahhhh I see now where the segfault comes from. There is
void handle_destroy_state(UnifexEnv *env, State *state) {
  UNIFEX_UNUSED(env);
  if (state->output_ctx &&
      !(state->output_ctx->oformat->flags & AVFMT_NOFILE)) {
    avio_closep(&state->output_ctx->pb);
  }
  if (state->output_ctx) {
    avformat_free_context(state->output_ctx);
  }
}

which is eventually closing it. Apparently in my case this function was not called, at least the avio_close part.

Note that on master I get
Finished in 13.8 seconds (13.8s async, 0.00s sync)
12 tests, 3 failures, 2 excluded

When I run the tests. The problem is the size comparison of two fixtures, 1 missing byte in each one of them (newline?)

To trigger the handle_destroy_state we can in handle_end_of_stream assign nil to the native reference.

The element should probably be used as-is so if we unassign the sink reference in end of stream to trigger garbage collection should be fine. Note that we need to close the structures in handle_state_destroy as the pipeline may crash and then you won't call finalize_stream, the question is if it should flush the connection there too.

the question is if it should flush the connection there too.
Maybe that's the only thing that should be changed! flush on finalize, release on handle_state_destroy

So we probably just need to assign to nil in handle_end_of_stream and the rest of the C code stays as it is.

Okay, let's do it that way. Add a flag to the state closed. Change the finalize to flush_and_close (that function will set the closed flag) that will be called in the handle_end_of_stream. In handle_destroy_state check if closed flag is set, if not then basically call the flush_and_close and be done with it.
This way we have an understandable API (good mental model when ending the stream) and we prevent any resource leaking once the native resource gets garbage collected). WDYT?

Sounds good to me @Qizot! I' ll update the PR soon


pin dependencies

our requirements.txt does not pin our python dependencies. at some point we should transition to this, so that our tests are repeatable and we don't run into issues with newer versions having conflicts

Was done in https://github.com/spacetelescope/DRESSCode/pull/58


Logitech G703 Hero is not supported

New purchased G703 Hero, lsusb shows:
Bus 001 Device 007: ID 046d:c539 Logitech, Inc.
ratbagctl can't recognize it, and Piper can't recognize it either. But the mouse is working fine. I checked the /usr/share/libratbag/, it has logitech-g703-hero.device file. ratbagd is running in the background.
OS: 4.19.66-1-MANJARO
Piper:  0.3
Libratbag: 0.10-1

You need Linux 5.2. I believe Manjaro has packages that provide newer kernels.

Yup, pacman -S linux52 or pacman -S linux53 should do the trick.

@FFY00 Thanks, I will give it a try.

I updated the wiki to document this.
https://github.com/libratbag/libratbag/wiki/Building-from-source#dependencies

It is working now, I will close this issue, thank you for your help!


Test if optimum-cli neuron cache add works.

As per title. From tests it might appear that nothing is pushed. To investigate.

@michaelbenayoun I've been using optimum-cli neuron cache synchronize with no problems other than an initial permission issue with the cache on HF.

It's not for the same purpose, the add command is for training. We are investigating if both will be merged at some point.

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread. Thank you!


24paras patch 1

I'm sorry what does this PR do? Kindly send in a description and reference an Issue along with it.

Hi, I'm sorry I did not add a description on the main page. It was there in the code. Although, it was there once you open the updated main.cpp. But I think the issue has been resolved by someone else.
I'll raise an issue before and then pull a request later on. We can let this one go for the time being.
Is there anything you would like to assign me for the time being? I can code in C++ well.

Check out the Issues tab. There's a Hash function which you can implement.


Update set.xml

Updated a Typo

Refresh my memory, are you still waiting for me to update the feed again or is the game good now?

I've got a small list of things to edit, but I'll be doing it the way you
told me to do it. I just need to update it, and push it to the servers and
someone will find it and approve it, correct?
On Jun 14, 2016 9:07 AM, "Kelly Elton"<EMAIL_ADDRESS>wrote:

Refresh my memory, are you still waiting for me to update the feed again
or is the game good now?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/octgn/OCTGN-UFS/pull/3#issuecomment-225931467, or mute
the thread
https://github.com/notifications/unsubscribe/ASsLSmO0lpU-kzcyvMXn_fg1EHtWUAtCks5qLtG-gaJpZM4IrLBF
.

Right. If you do a pull request to this repository I'll see it right away
On Tue, Jun 14, 2016, 3:30 PM xicidis<EMAIL_ADDRESS>wrote:

I've got a small list of things to edit, but I'll be doing it the way you
told me to do it. I just need to update it, and push it to the servers and
someone will find it and approve it, correct?
On Jun 14, 2016 9:07 AM, "Kelly Elton"<EMAIL_ADDRESS>wrote:

Refresh my memory, are you still waiting for me to update the feed again
or is the game good now?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/octgn/OCTGN-UFS/pull/3#issuecomment-225931467, or
mute
the thread
<
https://github.com/notifications/unsubscribe/ASsLSmO0lpU-kzcyvMXn_fg1EHtWUAtCks5qLtG-gaJpZM4IrLBF
.

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/octgn/OCTGN-UFS/pull/3#issuecomment-225990720, or mute
the thread
https://github.com/notifications/unsubscribe/ABSxg4GUy6xWlRXmbXtNhZ90bqFjLJnCks5qLwFugaJpZM4IrLBF
.

Hello again!
I sent in a bunch of updates. I edited the Changelog and added comments to
the pull requests so you can see what it is. I tried to add a new folder,
but it says "Uploads are disabled. File uploads require push access to this
repository."
So, here is the small set of Champion Promos included.
Thanks for the help again!
Michael
On Tue, Jun 14, 2016 at 7:14 PM, Kelly Elton<EMAIL_ADDRESS>wrote:

Right. If you do a pull request to this repository I'll see it right away
On Tue, Jun 14, 2016, 3:30 PM xicidis<EMAIL_ADDRESS>wrote:

I've got a small list of things to edit, but I'll be doing it the way you
told me to do it. I just need to update it, and push it to the servers
and
someone will find it and approve it, correct?
On Jun 14, 2016 9:07 AM, "Kelly Elton"<EMAIL_ADDRESS>wrote:

Refresh my memory, are you still waiting for me to update the feed
again
or is the game good now?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/octgn/OCTGN-UFS/pull/3#issuecomment-225931467, or
mute
the thread
<

https://github.com/notifications/unsubscribe/ASsLSmO0lpU-kzcyvMXn_fg1EHtWUAtCks5qLtG-gaJpZM4IrLBF

.

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/octgn/OCTGN-UFS/pull/3#issuecomment-225990720, or
mute
the thread
<
https://github.com/notifications/unsubscribe/ABSxg4GUy6xWlRXmbXtNhZ90bqFjLJnCks5qLwFugaJpZM4IrLBF
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/octgn/OCTGN-UFS/pull/3#issuecomment-226069942, or mute
the thread
https://github.com/notifications/unsubscribe/ASsLSuQH8UDQCOAfUGkhMdXW6CYRFAgrks5qL1_6gaJpZM4IrLBF
.

When you open up a pull request, you can make additional commits to that branch and it'll automatically add those commits to your pull request.  You wont need to open up a new request each time you make a change

Oh ok. I'll do that next time. Sorry about that.
On Jul 26, 2016 9:35 PM, "brine"<EMAIL_ADDRESS>wrote:

When you open up a pull request, you can make additional commits to that
branch and it'll automatically add those commits to your pull request. You
wont need to open up a new request each time you make a change
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/octgn/OCTGN-UFS/pull/3#issuecomment-235481788, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ASsLSjF0C95XzzjBAedmg6oYjQscPh3oks5qZuAigaJpZM4IrLBF
.

Howdy. I tried to do a pull request for the set of champion cards and it
hasn't gone through yet. Did I do something wrong with it?
Thanks!
Michael
On Jun 14, 2016 7:14 PM, "Kelly Elton"<EMAIL_ADDRESS>wrote:

Right. If you do a pull request to this repository I'll see it right away
On Tue, Jun 14, 2016, 3:30 PM xicidis<EMAIL_ADDRESS>wrote:

I've got a small list of things to edit, but I'll be doing it the way you
told me to do it. I just need to update it, and push it to the servers
and
someone will find it and approve it, correct?
On Jun 14, 2016 9:07 AM, "Kelly Elton"<EMAIL_ADDRESS>wrote:

Refresh my memory, are you still waiting for me to update the feed
again
or is the game good now?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/octgn/OCTGN-UFS/pull/3#issuecomment-225931467, or
mute
the thread
<
https://github.com/notifications/unsubscribe/ASsLSmO0lpU-kzcyvMXn_
fg1EHtWUAtCks5qLtG-gaJpZM4IrLBF
.

—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/octgn/OCTGN-UFS/pull/3#issuecomment-225990720, or
mute
the thread
<https://github.com/notifications/unsubscribe/
ABSxg4GUy6xWlRXmbXtNhZ90bqFjLJnCks5qLwFugaJpZM4IrLBF>
.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/octgn/OCTGN-UFS/pull/3#issuecomment-226069942, or mute
the thread
https://github.com/notifications/unsubscribe/ASsLSuQH8UDQCOAfUGkhMdXW6CYRFAgrks5qL1_6gaJpZM4IrLBF
.

No, I just haven't got a chance to go through it yet. I'll be going through them all at some point today.


depot-tools: migrate to boneyard

https://github.com/Homebrew/homebrew-boneyard/pull/179

Let’s merge https://github.com/Homebrew/homebrew-head-only/pull/212 before this one.


Performance issue when extracting large expression with vecs

There is currently a performance issue when extracting a large expression with vecs in it.
This PR (https://github.com/egraphs-good/egglog/pull/492) adds an example of such a file to the test suite.
I was able to profile the file with samply and can share the performance results:
samply record ./target/profiling/egglog --dont-print-messages tests/eqsat-basic.egg

Around 20% of the time is spent in TermDag::to_string. We should add a way to disable printing extracting values to strings, because when using with the Python bindings, this work is thrown away.
The remaining 80% is spent in Extract::find_best with about a third inside of that spent in VecSort::extract_expr, ptr::drop_in_place<GenericExpr>, and TermDag::expr_to_term.

Wow, when I disable printing messages in #492 and use the rewrite of extraction in #495, the time for this benchmark goes down to 400ms!
$ time env RUST_LOG=error ./target/release/egglog --dont-print-messages tests/extract-vec-bench-no-messages.egg

________________________________________________________
Executed in  391.50 millis    fish           external
   usr time   41.04 millis  189.00 micros   40.85 millis
   sys time    4.21 millis  711.00 micros    3.50 mills


Can anyone guide how to create env file and package.json script to run both prod and dev ?

The steps to be able to run the dev and prod are included in the README file. Have you gone through those steps?
You have to create a .env.dev and .env.prod files in the root of your project folder which contains the configuration settings of your firebase project. That means you have to create 2 separate projects in your Firebase Console and then get the config settings of your project then put them in the env file.
We need to create a separate firebase project for dev for testing purposes.
Creating 2 separate firebase projects is optional, you can create just 1 project then use the same config settings for both .env.dev and .env.prod.  You can use Firebase Emulators for testing. By running firebase emulators:start this will run all emulators suite [Functions, Firestore, Authentication, etc.]
The contents of your .env.dev and .env-prod looks like this:
FIREBASE_API_KEY=AIzaKJgkjhSdfSgkjhdkKJdkjowf
FIREBASE_AUTH_DOMAIN=yourauthdomin.firebaseapp.com
FIREBASE_DB_URL=https://yourdburl.firebaseio.com
FIREBASE_PROJECT_ID=yourproject-id
FIREBASE_STORAGE_BUCKET=yourstoragebucket.appspot.com
FIREBASE_MSG_SENDER_ID=43597918523958
FIREBASE_APP_ID=234598789798798fg3-034

If you're wondering where to get the firebase config properties:

Just click on Project Settings then scroll to the very bottom to see the config object.

Scripts already included in package.json. No need to create new one.


Brain not in head

The decimated cortical surface and BEM surfaces don't appear to be in the same coordinate system:

Normally, the BEM surfaces are in ras-tkr space, which is the same as the cortex. How did this happen?

@timpx previously mentioned a post on the fs list
<EMAIL_ADDRESS>

ah perhaps @timpx already told me the answer...

when you export surfaces into ascii files, the surface is shifted compared to the original T1. you need to add the c_ras vector to the coordinates, that you can get by doing: mris_info surf/lh.pial

Subtracting c_ras from the cortical coordinates (or adding to BEM coordinates) does the trick

However you have to be careful that we want BEM surfaces and cortex AND volumetric T1 aligned, so we better add to BEM coordinates than the opposite.
Also I just thought it may be the reason why I was having so much trouble in mne_setup_forward_model with the function telling me each time that the surfaces were crossing, and I had to shift it a bit, we should check that out.

And nice visualization :)

The BEM surfaces are always (unless you ask mne_watershed_bem to do otherwise) in correct ras-tkr coordinates. The decimated surface after the cras shift is then in these coordinates.
When you use the vox2raw-tkr transform on the T1.mgz, you have an aligned T1 & BEM surfaces. I'm fairly sure of this, as I've done it for a dozen subjects already. This is why I preferred to move your surface.

What I fear is that using mri_convert and vox2ras-tkr will give different results, this difference being the shift we discussed. SCRIPTS currently works using the mri_convert space, so we should think a bit what space is the best to use and make the changes accordingly

mri_convert mri/T1.mgz mri/T1.mgz.nii

produces an image that when using the --vox2ras-tkr transform, is aligned witht eh BEM surfaces. Of this I am sure see my notes here
http://meg.univ-amu.fr/wiki/FreeSurferToFieldTrip

For future references, we have the vox2ras and the vox2ras-rkr coordinate systems, all surfaces in SCRIPTS will be produced in the vox2ras coordinate system.

<pedantic>
it's vox2ras-tkr with a t
</pedantic>

Indeed, I updated


saas variables with Bulma 1 not recognize anymore

Hello guys :)
Apparently there is mismatch with old way of Bulma 0.94 to integrate this plugin
I've got this error once I've migrate to Bulma v1
$tagsinput-selected-background-color: $primary !default
Could be relative of the way of Saas variables are accessible from now
Thanks to you

+1 It would be useful

Trying to setup this plugin for Bulma 1.0 too, but without success :/


Reject SriovNetworkNodePolicy with bad resourceName

SriovNetworkNodePolicy.Spec.ResourceName field is used as k8s resource name and it is passed to the sriov-network-device-plugin. If the user provides a bad value for this field, eg a name-with-dashes, the resource creation goes well but the device plugin complains in the logs:
I0429 07:26:52.803352       1 factory.go:166] net device selector for resource sriovnic-bad-name-resource is &{DeviceSelectors:{Vendors:[] Devices:[] Drivers:[] PciAddresses:[]} PfNames:[eno1] RootDevices:[] LinkTypes:[] DDPProfiles:[] IsRdma:false NeedVhostNet:false}
I0429 07:26:52.803365       1 manager.go:99] unmarshalled ResourceList: [{ResourcePrefix: ResourceName:sriovnic-multi-networkpolicy-resource DeviceType:netDevice Selectors:0xc00000ed38 SelectorObj:0xc0003395f0}]
E0429 07:26:52.803396       1 manager.go:188] resource name "sriovnic-bad-name-resource" contains invalid characters
F0429 07:26:52.803402       1 main.go:57] Exiting.. one or more invalid configuration(s) given

It could be useful to get this error message during the resource creation, so it would be clearer to the user where the problem is.

Hi we have this one in place (https://github.com/k8snetworkplumbingwg/sriov-network-operator/blob/cebbdb3c4c17caa11afad05d6fc98f54a81bbb7c/pkg/webhook/validate.go#L88)
so when the user apply the sriovNetworkNodePolicy it should failed

I tested again and I got:
admission webhook \"operator-webhook.sriovnetwork.openshift.io\" denied the request: resource name \"bad-name-one\" contains invalid characters, the accepted syntax of the regular expressions is: \"^[a-zA-Z0-9_]+$\"

My previous test was probably with enableOperatorWebhook: false
I'm closing this issue


added new ScalableFloatingPointChromosome capable of storing value be…

…tween min/max for any given number of bits (more bits, greater precision)

I've added new chromosome capable of storing values between min and max value for any given number of bits.
For example
If we want to store values between -5 and 5 in 3 bits, we have 2^3 = 8 values available.
That way [0, 0, 0] will be minimum value (-5) and [1, 1, 1] maximum value(5).
[0, 0, 1] will become -3,75
[0, 1, 0] will become -2,5 and so on, up to [1, 1, 1] = 5


Add codemeta.json

Background: https://codemeta.github.io/

I think codemeta.json is basically ready to supersede the badly documented zenodo.json.

(https://github.com/codemeta/codemeta/issues/213)
To validate it: https://github.com/caltechlibrary/convert_codemeta
Zenodo has support for it in its roadmap: https://github.com/zenodo/zenodo/issues/1504 but we can add it to our repository already.
Good starting point: https://zenodo.org/record/3816771/export/schemaorg_jsonld
Example: https://github.com/adrn/gala/blob/main/codemeta.json

Hello, @astrojuanlu I randomly selected this issue for working before GSOC, I will send the updates soon !!

@astrojuanlu  I will work on all these Issues left, but in this mean time I will work on this issue please assign this to me!!
I have started working please share the details of poliastro foe developing code meta
my work till now________________
"@context": "https://doi.org/10.5063/schema/codemeta-2.0",
"@type": "SoftwareSourceCode",
"datePublished": "2015-05-09",
"name": "poliastro",
"description": "poliastro is an open source collection of Python subroutines for solving problems in Astrodynamics and Orbital Mechanics.\n\npoliastro combines cutting edge technologies like Python JIT compiling (using numba) with young, well developed astronomy packages (like astropy and jplephem) to provide a user friendly API for solving Astrodynamics problems."
}

Can I Contribute to this Isssue?

@abdulmoiz37 but I am working on it !!!

Can I Contribute to this Isssue?

And I have solved 50% in the comment sections @abdulmoiz37

@satyamroy001 calling this 50 % is a bit optimistic in my opinion 😉
The way you solve this issue is by doing a pull request, not by leaving comments here.
@abdulmoiz37 asked about contributing, so you could have proposed doing it together.
@satyamroy001 You asked twice about the details of poliastro, but in my initial commit I wrote everything you need, so I think you didn't pay enough attention to it.

Please reflect about this feedback and do better.

Its okay @astrojuanlu.It will be great if @satyamroy001 Completes It.

Closed in #1172


Optimize bubbe sort

as after each step of 'outer-loop', one number reaches to its right position. Thus inner loop does not need to run for 'n' times in every cycle of 'outer-loop'.

(Put an X inside the [ ] to denote check mark [X].)

[ ] If creating a new file :

[ ] added links to it in the README files ?
[ ] included tests with it ?
[ ] added description (overview of algorithm, time and space compleixty, and possible edge case) in docstrings ?

[ x] if done some changes :

[ x] wrote short description in the PR explaining what the changes do ?
[ x] Fixes #[issue number] if related to any issue

[ ] other

Pull Request Test Coverage Report for Build 759

3 of 3 (100.0%)  changed or added relevant lines in 1 file are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage increased (+0.04%) to 71.561%

Files with Coverage Reduction
New Missed Lines
%

algorithms/linkedlist/is_palindrome.py
1
93.33%

Totals

Change from base Build 753:
0.04%

Covered Lines:
4308

Relevant Lines:
6020

💛  - Coveralls


get into the TechEmPower Benchmarks.

https://www.techempower.com/benchmarks/
It's fun to run your own benchmark,  but this is pretty much the standard now since it actually cover some semi-real world use cases.

I am aware of the benchmarks from techempower and here are the reasons that I have my own benchmark.

As I understand, it stops publishing new round of benchmarks.
Techempower only compares throughput and ignore other criteria, like response time. Some of the frameworks like GO fastHttp has good throughput but very high latency.
This is to aim microservices other than generic web framework.
The test is to gauge the raw throughput and latency other than real world user cases.

Thanks.

Are you able to turn off the log from dropwizard? I guess it will between 40K - 50K. In Light-Java, we are using a customized version of dropwizard metrics to hook up with Influxdb/Grafana.

Hi Steve:

Round 13 was literally published yesterday, and they're trying to move to a sort of continuous basis.
They do list latency including StdDev and Max thereof.
There are is an entire "class" for "micro services" indicated by "Mcr"
There is a test case called "Plaintext"   described as 'In this test, the framework responds with the simplest of responses: a "Hello, World" message rendered as plain text.'  I guess it's missing the exclamation mark,  so probably shouldn't be used :-)

So it does hit all your bullet points there.

Thanks a lot for pointing me out the round 13 test. I will submit a pull request over there.


Separator Element

Implemented separator element with thin, regular, and thick options and tested presence in Cypress. Also made small edits to "translate" the npm run script from UNIX for windows.
The Cypress test is not passing in full for me, but it appears to be failing after successfully detecting the separator.

Very nice work. =) Looking forward to giving you the next piece... =)


Remove incorrect set of bodyUsed flag when cloning a request

This removes setting bodyUsed to true when you clone a request.
In order to use a request multiple times you need to clone a request, which lets you get a copy of the request while leaving the original request as is, as long as you didn't read the request body beforehand.
In Chrome implementation for example cloning a request does not change the bodyUsed property to true, however in this polyfill it does.
This prevents you from cloning a request and passing on the original request as passing it causes the Already Read exception even though the body was not read directly from that request (by the end user).
Polyfill scenario:
https://runkit.com/58308876f439290014bb0025/5830907cf836f700146fa4f7
Chrome Implementation scenario: (open the browser console to see the output)
https://plnkr.co/edit/OVK9RREqhMm3WcgPtxOf?p=preview
Sorry for not having a single place for both scenarios. I could not find a snippet service that allows me to bring the package from npm.
TL;DR
bodyUsed should not be set to true when cloning a request on the original request

Thanks, but if you tried to add a failing test before coding up a solution, you would have found out that bodyUsed is not actually set to true. We have tests to verify that behavior as well. We only had tests to verify requests with bodies, though, so I've added a new test that verifies this behavior for GET request too, like in your runkit example.


Refactor ParseServerTLS

If I understand correctly, this function is used to generate a instance
of structure ServerTLSOpts if TLS is required and both of the certificate
and key are provided. Otherwise return nil.
So why should we check whether the one of certificate or key is empty
even if the TLS is not required. Will it miss something if just return
nil if the TLS is not required.
Signed-off-by: Hu Keping<EMAIL_ADDRESS>

Ths CI should be failed since it was designed so.

!tlsRequired does not mean “TLS forbidden”, it merely means “the server can be configured not to use TLS”. This change would make TLS use in such sitautions (in particular having the server serve over TLS) impossible.
Doesn’t the optional token authentication mechanism rely on confidentiality of the tokens? If so, inability to use TLS would prevent secure use of token authentication.

@HuKeping if you have a look at where ParseServerTLS is used, the tlsRequired flag indicates whether to be strict about requiring it. As @mtrmac noted, !tlsRequired doesn't mean "never use TLS" it means "TLS is optional".
Currently, we require (i.e. set tlsRequired to true) that notary signer has TLS enabled for all communications, but notary server does not require TLS to be configured (it/s optional, tlsRequired set to false) for those users that want to do things like load balancer TLS termination.
Closing as current implementation is the intended behaviour.

Thanks for the explanation, much more clear now :)


Fixing docker ssl problems

Added certificates for crowd_server and some configuration to have gunicorn use them if docker is detected.
Made the call to json ip once at boot, instead of once per HIT creation.
Fixed problem where in prod celery wasn't starting correctly due to docker running on root.

Nice. Merging it now.


Official CI is not running on main

There does not appear to be an official CI builds running on the main branch.
There is a build configured but it has not run since April 4th - https://github.com/dotnet/source-build/blob/main/.vsts.pipelines/builds/ci.yml (internal link).  This build is configured with the following pipeline definition -  https://github.com/dotnet/source-build/blob/main/.vsts.pipelines/builds/ci.yml

The issue is the build definition was configured to run on the old master branch.  I deleted this from the internal repo and reconfigured the build to run on main.  Running a test build to validate.

Test build passed - https://dnceng.visualstudio.com/internal/_build/results?buildId=1159639&view=results (Internal link).  Leaving issue open until I can validate the build will trigger on commits.

Build failed to trigger with recent dependencies update.  I discovered the build definition was overriding the yaml triggers.  Disabled these and will wait for the next commit.

[Triage] This was fixed for the 7.0 timeframe but is broken again for 8.0 which is tracked by #3067.


Add Domestic Aviation variable

Addresses #227.
@danielhuppmann we need this domestic aviation variable for CMIP7.
But not necessarily any other differentiation.
Should we add an "Other" category at the same level, or are there more categories that you suggest to add at this level?

For consistency with the energy consumption, we should also add "Domestic Shipping" - and maybe other categories including Bus, Light Duty Vehicle, Truck, Rail...

For consistency with the energy consumption, we should also add "Domestic Shipping" - and maybe other categories including Bus, Light Duty Vehicle, Truck, Rail...

Pro: consistency with energy consumption categories in the template.
Con: we don't need it for ScenarioMIP, so could create more work / some confusion on what is required until we have clear labels for ScenarioMIP (and climate emulator)?
What do you think is best @danielhuppmann

Closing in favor of #234 to address the missing units.
Also, I'm not sure if we really need distinction of transportation-emissions between freight and passenger, and an aggregate aircraft-energy-demand variable might cause more confusion than it helps - so leaving those out for now. We can address that if we see a need for those.


Generate md/swagger.yaml from comments?

What am I trying to accomplish
We have various github repos and I would like to generate the docs in an md file that can then be used to refer to the API. Currently I have these comments and from them I can generate the swagger.yml file. Is it possible to do something similar with this package?
Would it be possible to generate a swagger file from the spec instead of exposing the endpoint.

Hi there,
Are you asking if it’s possible to export a swagger yaml instead of serving swagger ui?
If so yes, you can use the CLI to export a swagger json file (we can add support for yaml too if you want). Or you can use it inline in your code and write the swagger object to a yaml file instead of passing it to swagger ui
Hope this helps :)

@Pritoj here is an example how to do it in code:
const fs = require('fs');
const yaml = require('js-yaml');
const openapi = require('openapi-comment-parser');

const spec = openapi();

fs.writeFileSync('swagger.yml', yaml.dump(spec));

I think this is exactly what I was looking for. Thanks so much for this and being so quick. I can close this now ✅


build: add tooling to generate examples files

Added a new target make examples.sync and gojq changes to enable this hook. The idea is that as we add more patches that can replace the default ones in the capi-quickstart we can remove the patches in the ClusterClass. Using clusterctl also makes it simpler to keep up with upstream sample.

I was wondering what the kustomize patches approach would look like? I might take a stab at that before we merge this. Personally I feel that kustomize patches feels more k8s idiomatic and more understandable than using gojq.

@dkoshkin @mhrabovcin I pushed a follow up commit to this PR to use kustomize instead of gojq - let me know what you think, and we can revert if we prefer the gojq approach.


RoundedBitmapDisplayer doesn't work with wrap_content params????

I'm trying to use RoundedBitmapDisplayer with some images and I realized that it only works when you define a fix height and width, not with wrap_content (in this case image doesn't appear).
There's any solution to this?
I'm using 1.9.3.
Tested on Galaxy S3 running 4.2
Tested on One plus One running 4.4
min 14, target 21. Eclipse Luna.

https://gist.github.com/nostra13/261cf47c6f2b1463759c

I've seen this, but how I use it if I use the .jar ? Thanks for your quick reply.

Just copy it into your project and set into DisplayimageOptiions.displayer(...)

Thanks.

Ok, another problem using the OldRoundedBitmapDisplayer... The rounded corners are different in different device resolutions. I think it's because the use of px, any way to use DP?

Put DP size in your resources "dimens.xml":
<dimen name="noise_point_size">2dp</dimen>

and them use getResources().getDimensionPixelSize(R.dimen.my_size) to pass value in OldRoundedBitmapDisplayer.

Thanks for your quick reply, that sentence is throwing a nullPointerException
.displayer(new OldRoundedBitmapDisplayer(getResources().getDimensionPixelSize(R.dimen.roundedCorners)))
I think what you recommend is similar to this method, and it doesn't work neither...
public static int dpToPx(int dp)
{
return (int) (dp * Resources.getSystem().getDisplayMetrics().density);
}


Use k8s CRD as the config store

This is a task related to our recent decision on Galley; first we will use kubernetes custom resource definitions (CRDs) to store configs for istio. However, this new config data model is different from what mixer currently has, and it is not obvious how we make this transition.
I think we should take the following steps:
step 1: implement k8s client as a "store" implementation
The initial attempt would be to build the k8s client as an implementation of pkg/config/store (especially a Watcher). This will be inefficient because it needs to reformat the k8s data into the serialized yaml data and then re-validate them. No external webhooks.
step 2: introduce the validation webhook / reformat apiserver
Currently pkg/config/apiserver.go receives the requests from istioctl, validates the config data, and stores it to the server.
We want to replace the validation by the external admission webhook. During the transition, first webhooks are introduced. Also apiserver.go will be reformed to store the config data directly into CRD and let webhooks do the rest.
step 3: refactor validation / storage abstraction
Related to https://github.com/istio/mixer/issues/910. k8s client can emit updates per "kind" (i.e. type of configs), it is better to refactor the validator and storage abstraction to fit with the new config data model.
step 4: the retirement of the old config data
Updates on e2e test scenario, installation scripts for the predefined data (to istio/istio), and removal of the old code.

This issue is for tracking tasks for myself. Here's the notes:

[ ] step1: k8s client as a store implementation
step2

[ ] a: validation webhooks
[ ] b: reformat apiservers

[ ] step3: refactoring of validator and storage
step4

[ ] a: e2e update
[ ] b: installation data and scripts
[ ] c: removal of old code

Can we close this?

yes.


Transcriptsdisabled

DO NOT DELETE THIS! Please take the time to fill this out properly. I am not able to help you if I do not know what you are executing and what error messages you are getting. If you are having problems with a specific video make sure to include the video id.
To Reproduce
Steps to reproduce the behavior:
What code / cli command are you executing?
Im running the code in colaboratory
and getting the error
Subtitles are disabled for this video
YouTubeTranscriptApi.get_transcript ...

Which Python version are you using?
Python 3.21
Which version of youtube-transcript-api are you using?
youtube-transcript-api x.y.z
Expected behavior
Describe what you expected to happen.
It needs to extract the transcript from the video
For example: I expected to receive the english transcript
Actual behaviour
Describe what is happening instead of the Expected behavior. Add error messages if there are any.
For example: Instead I received the following error message:
# ... error message ...

TranscriptsDisabled                       Traceback (most recent call last)
 in <cell line: 1>()
----> 1 YouTubeTranscriptApi.get_transcript(video_id)
2 transcript = YouTubeTranscriptApi.get_transcript(video_id)
3 frames
/usr/local/lib/python3.10/dist-packages/youtube_transcript_api/_transcripts.py in _extract_captions_json(self, html, video_id)
60                 raise VideoUnavailable(video_id)
61
---> 62             raise TranscriptsDisabled(video_id)
63
64         captions_json = json.loads(
TranscriptsDisabled:
Could not retrieve a transcript for the video https://www.youtube.com/watch?v=u7TC5RBd1rK0M0gy! This is most likely caused by:
Subtitles are disabled for this video

Just hit this as well - but there is a transcript and auto generated subtitles are there.

Hi @Pavankumar44, it looks like you are trying to retrieve the transcript for a video with the ID u7TC5RBd1rK0M0gy. However, there is no such video: https://www.youtube.com/watch?v=u7TC5RBd1rK0M0gy


Improve the example of SetBinding

Fixes #176

Docs Build status updates of commit 419cbf8:
:white_check_mark: Validation status: passed

File
Status
Preview URL
Details

docs/Xamarin.Forms/BindableObjectExtensions.xml
:white_check_mark:Succeeded

For more details, please refer to the build report.
Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.
For any questions, please:Try searching in the Docs contributor and Admin GuideSee the frequently asked questionsPost your question in the Docs support channel


Fix lerp for Color.

Fixes #8.

From writing similar code in games in years / decades past ... I don't think there's a single answer!


On normal mode, GVim-Win32 misinterprets characters with accents

Describe the bug
Can't do commands like fó (find next ó character) or Fí (find previous í character) because Vim instead opens a new line with ó or enters insert mode with í.
To Reproduce
Detailed steps to reproduce the behavior:

gvim --clean
Past following content on new buffer: abc í ó def
Move cursor to c
Type fí

Expected behavior
Cursor should move to í.
Environment (please complete the following information):

Vim version:

     VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jun 14 2021 22:12:16)
     MS-Windows 32-bit GUI version with OLE support
     Included patches: 1-2999

       Compiled by appveyor@APPVYR-WIN
       Huge version with GUI.  Features included (+) or not (-):
       +acl                +eval               +multi_byte_ime/dyn -tag_old_static
       +arabic             +ex_extra           +multi_lang         -tag_any_white
       +autocmd            +extra_search       +mzscheme/dyn       +tcl/dyn
       +autochdir          -farsi              +netbeans_intg      -termguicolors
       +autoservername     +file_in_path       +num64              +terminal
       +balloon_eval       +find_in_path       +ole                -termresponse
       -balloon_eval_term  +float              +packages           +textobjects
       +browse             +folding            +path_extra         +textprop
       ++builtin_terms     -footer             +perl/dyn           -tgetent
       +byte_offset        +gettext/dyn        +persistent_undo    +timers
       +channel            -hangul_input       +popupwin           +title
       +cindent            +iconv/dyn          -postscript         +toolbar
       +clientserver       +insert_expand      +printer            +user_commands
       +clipboard          +ipv6               +profile            +vartabs
       +cmdline_compl      +job                +python/dyn         +vertsplit
       +cmdline_hist       +jumplist           +python3/dyn        +virtualedit
       +cmdline_info       +keymap             +quickfix           +visual
       +comments           +lambda             +reltime            +visualextra
       +conceal            +langmap            +rightleft          +viminfo
       +cryptv             +libcall            +ruby/dyn           +vreplace
       +cscope             +linebreak          +scrollbind         -vtp
       +cursorbind         +lispindent         +signs              +wildignore
       +cursorshape        +listcmds           +smartindent        +wildmenu
       +dialog_con_gui     +localmap           +sound              +windows
       +diff               +lua/dyn            +spell              +writebackup
       +digraphs           +menu               +startuptime        -xfontset
       +directx            +mksession          +statusline         -xim
       -dnd                +modify_fname       -sun_workshop       +xpm_w32
       -ebcdic             +mouse              +syntax             -xterm_save
       +emacs_tags         +mouseshape         +tag_binary
          system vimrc file: "$VIM\vimrc"
            user vimrc file: "$HOME\_vimrc"
        2nd user vimrc file: "$HOME\vimfiles\vimrc"
        3rd user vimrc file: "$VIM\_vimrc"
             user exrc file: "$HOME\_exrc"
         2nd user exrc file: "$VIM\_exrc"
         system gvimrc file: "$VIM\gvimrc"
           user gvimrc file: "$HOME\_gvimrc"
       2nd user gvimrc file: "$HOME\vimfiles\gvimrc"
       3rd user gvimrc file: "$VIM\_gvimrc"
              defaults file: "$VIMRUNTIME\defaults.vim"
           system menu file: "$VIMRUNTIME\menu.vim"
       Compilation: cl -c /W3 /GF /nologo  -I. -Iproto -DHAVE_PATHDEF -DWIN32  -DFEAT_CSCOPE -DFEAT_TERMINAL
       -DFEAT_SOUND -DFEAT_NETBEANS_INTG -DFEAT_JOB_CHANNEL -DFEAT_IPV6   -DFEAT_XPM_W32
       -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 /source-charset:utf-8 /MP -DHAVE_STDINT_H /Ox /GL -DNDEBUG
       /arch:IA32 /Zl /MT /D_CRT_SECURE_NO_DEPRECATE /D_CRT_NONSTDC_NO_DEPRECATE -DFEAT_OLE
       -DFEAT_MBYTE_IME -DDYNAMIC_IME -DFEAT_GUI_MSWIN -DFEAT_DIRECTX -DDYNAMIC_DIRECTX
       -DFEAT_DIRECTX_COLOR_EMOJI -DDYNAMIC_ICONV -DDYNAMIC_GETTEXT -DFEAT_TCL -DDYNAMIC_TCL
       -DDYNAMIC_TCL_DLL=\"tcl86t.dll\" -DDYNAMIC_TCL_VER=\"8.6\" -DFEAT_LUA -DDYNAMIC_LUA
       -DDYNAMIC_LUA_DLL=\"lua53.dll\" -DFEAT_PYTHON -DDYNAMIC_PYTHON -DDYNAMIC_PYTHON_DLL=\"pyth
       on27.dll\" -DFEAT_PYTHON3 -DDYNAMIC_PYTHON3 -DDYNAMIC_PYTHON3_DLL=\"python39.dll\"
       -DFEAT_MZSCHEME -I "C:\Program Files (x86)\Racket\include" -DMZ_PRECISE_GC -DDYNAMIC_MZSCHEME
       -DDYNAMIC_MZSCH_DLL=\"libracket3m_a36fs8.dll\" -DDYNAMIC_MZGC_DLL=\"libracket3m_a36fs8.dll\"
       -DFEAT_PERL -DPERL_IMPLICIT_CONTEXT -DPERL_IMPLICIT_SYS -DDYNAMIC_PERL -DDYNAMIC_PERL_DLL=\"pe
       rl528.dll\" -DFEAT_RUBY -DDYNAMIC_RUBY -DDYNAMIC_RUBY_DLL=\"msvcrt-ruby240.dll\"
       -DRUBY_VERSION=24 -DFEAT_HUGE /Fd.\ObjGXOULYHTRZi386/ /Zi
       Linking: link  /nologo /opt:ref /LTCG:STATUS oldnames.lib kernel32.lib advapi32.lib shell32.lib gdi32.lib
       comdlg32.lib ole32.lib netapi32.lib uuid.lib /machine:i386 gdi32.lib version.lib   winspool.lib comctl32.lib
       advapi32.lib shell32.lib netapi32.lib  /machine:i386  libcmt.lib oleaut32.lib user32.lib  /nodefaultlib:lua53.lib
       /STACK:8388608  /nodefaultlib:python27.lib /nodefaultlib:python39.lib   "C:\Tcl\lib\tclstub86.lib" winmm.lib
       WSock32.lib Ws2_32.lib xpm\x86\lib-vc14\libXpm.lib /PDB:gvim.pdb -debug

OS: Windows 10 20H2, 19042.1052 (did not happen on Linux)
Terminal: GUI (did not happen on terminal)

Can you please show what is the output of :set encoding?
I wonder if this might be caused by
https://github.com/vim/vim/releases/tag/v8.2.2912
Can you please also try some earlier versions and see if this happened
there as well?
Am 2021-07-08 21:17, schrieb André Willik Valenti:

Describe the bug
Can't do commands like fó (find next ó character) or Fí (find
previous í character) because Vim instead opens a new line with ó or
enters insert mode with í.
To Reproduce
Detailed steps to reproduce the behavior:

gvim --clean
Past following content on new buffer: abc í ó def
Move cursor to c
Type fí

Expected behavior
Cursor should move to í.
Environment (please complete the following information):

Vim version: VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jun 14
2021 22:12:16) MS-Windows 32-bit GUI version with OLE support Included
patches: 1-2999
Compiled by appveyor@APPVYR-WIN
Huge version with GUI.
Reply to this email directly, view it on GitHub [1], or unsubscribe
[2].
Links:
[1] https://github.com/vim/vim/issues/8530
[2]
https://github.com/notifications/unsubscribe-auth/AAB3ZP5PBSAH2IZH47EZIKLTWX2WPANCNFSM5ABLDCTQ

And, how do you type ó or í? What is your keyboard? What is your system locale?

:set encoding was utf-8, but I changed it to latin1 on vimrc and the same happened.
My system locale is pt_BR
I type these characters using dead keys in a Brazilian keyboard, firsrt ´ (acute accent), then a, to result in á:

I tried this portable distribution - gvim_8.2.2875_x64_signed.zip - and the same problem occured. It's older than the version you mentioned, v8.2.2912.

I can reproduce this issue on GVim 8.2.3187 with the "utf-8" encoding as well. I am using the US international keyboard layout with dead keys and my Windows locale is set to "United States".

In 2002 I wrote a HowTo page about how to set up Vim for Unicode, especially when the system locale is something else, and AFAIK it is still valid: https://vim.fandom.com/wiki/Working_with_Unicode
Maybe it can help you.
Best regards,
Tony.

I could reproduce this issue on Vim 7.4.2066 with utf-8 encoding, so it seems that this issue has been affecting Vim for a long time.

After further testing, in my case this issue seems to stem from the fact that f does not work well with dead keys, so if for example you try to search for í by pressing ' then i, instead of searching for the composed character, the command searches for the apostrophe or backtick symbol, then the following character is executed as a normal mode command.
@awvalenti As a workaround, when you search for accented characters you could try to use the digraph feature by pressing f, then ctrl-k, then entering the key combination that corresponds to that character; that way f will work correctly.

IMHO system-wide dead keys ought to be "remembered" by the keyboard handler and not transmitted to the application unless the next keystroke is one to which the dead key can apply, but I don't know how the Windows keyboard interface actually does it.
On Linux my fr_BE keyboard has a number of dead keys, one of which (dead-circumflex) doesn't even need AltGr or Shift, but dead-^ followed by a gives me â (U+00E2 LATIN SMALL LETTER A WITH CIRCUMFLEX) in or out of Vim, not some combining-character combination and not some (spacing-^ backspace something) combination. Inside Vim, Ctrl-K a > (in Insert mode without intervening spaces) gives me the same thing.
Tested in gvim with GTK3, where modifyOtherKeys is irrelevant, with 'esckeys' on, 'timeout' on, and 'timeoutlen' and 'ttimeoutlen' set to appropriately chosen different positive values.


Api doesn't "support" one of the user stories

Challenge http://www.freecodecamp.com/challenges/zipline-stylize-stories-on-camper-news has an issue.
So one of the user stories states that, "8. User Story: As a user, I can click a link to go directly to the post's discussion page." But the http://www.freecodecamp.com/stories/hotStories API doesn't support it. I mean that it doesn't provide any link to the discussion. So I think it's quite hard to get the discussion link if the API doesn't give any link to the discussion.
How to reproduce:

Go to http://www.freecodecamp.com/stories/hotStories
Check for any links to discussion
Find nothing

Close this issue and take a look at the storyLink key ;)

Atleast for me the storyLink key only has the headline stored again. How that helps me to get to the discussion page?

If you look at how the discussion page is reached, you can probably figure out how the storyLink value can be used to access the relevant page.


Make sure the module works with Solr 5.x

Seems like the module doesn't work properly when using with the latest releases

Looks like things have changed a bit since 5.x: http://lucene.apache.org/solr/quickstart.html

So, this module does not support Solr 5 yet?

Afaik nope, I was hoping someone will ask for it :-). I'll add support in the next release.

+1 to Solr 5 support

Will it then also support Solr 6.x?

Oh wow, I haven't kept up with Solr recently. Looks like it's already in 6.1.x. I need to get cracking on this. I'm open to transferring it to someone who's working with Solr actively.

I do not work with Solr actively - I just stumbled upon it while looking for existing modules as I am not really familiar with Solr.


acl.conf configuration not being read.

Environment

OS: Windows
Erlang/OTP: 19
EMQ: 2.1.0

Description
We have been trying to limit the access control using the acl.conf file.
We tried restricting access to a specific machine using IP address as follows:
{deny, {ipaddr, "<IP_ADDRESS>"}, subscribe, ["$SYS/#", "#"]}.
Yet the other machine with the above ip is able to effortlessly subscribe to restricted topics and is receiving messages sent on it.
Our use case wants that only one specified machine be able to subscribe to the topic and no one else.
We tried denying all users, access to subscribe and then allowing this IP to subscribe, that didn't work either.
Our acl.conf file looks like this:
{allow, {user, "dashboard"}, subscribe, ["$SYS/#"]}.
{allow, {ipaddr, "<IP_ADDRESS>"}, pubsub, ["$SYS/#", "#"]}.
%%{deny, all, subscribe, ["$SYS/#", {eq, "#"}]}.
%%{allow, all}.
{deny, {ipaddr, "<IP_ADDRESS>"}, subscribe, ["$SYS/#", "#", "benchmark", {eq, "#"}]}. %%benchmark is the topic in question

Please let me know if anything is done wrong. Thanks.

@pritukam The documentation on ACL: http://emqtt.io/docs/v2/guide.html#acl. You have to define '{allow, all}' or '{deny, all}' at the end of acl.conf.

Hi @emqplus, I tried that too.
{allow, {ipaddr, "<IP_ADDRESS>"}, subscribe, "benchmark" }.
{deny, all}.
I added this to the config, hoping that the if I subscribe from the machine with the IP, the messages can be subscribed. I am unable to receive the sent messages from any machine, including the one that is allowed to subscribe and receive.
I tried {allow, all} and any machine is allowed to connect now.  Our use case dictates that only one specified machine be able to subscribe to the topic and no one else.
Is there something I am missing?
p.s. thanks a lot for replying.

@pritukam
{allow, {ipaddr, "<IP_ADDRESS>"}, subscribe, ["benchmark"]}.
{deny, all}.

@emqplus Tried that just now. The machine with the IP is not receiving any messages.
Could this be a bug? I'm using 2.1.0


pickle / persist LimeTabularExplainer

How can I persist an LimeTabularExplainer?
Using
from sklearn.externals import joblib
joblib.dump(explainer, 'my_path')

fails with
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save_global(self, obj, name)
    917             module = sys.modules[module_name]
--> 918             obj2, parent = _getattribute(module, name)
    919         except (ImportError, KeyError, AttributeError):

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in _getattribute(obj, name)
    265             raise AttributeError("Can't get local attribute {!r} on {!r}"
--> 266                                  .format(name, obj))
    267         try:

AttributeError: Can't get local attribute 'BaseDiscretizer.__init__.<locals>.<lambda>' on <function BaseDiscretizer.__init__ at 0x1c6d9aa60>

During handling of the above exception, another exception occurred:

PicklingError                             Traceback (most recent call last)
<ipython-input-182-1f5d50e366df> in <module>()
----> 1 joblib.dump(explainer, explainer_file_path)

/usr/local/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle.py in dump(value, filename, compress, protocol, cache_size)
    482     elif is_filename:
    483         with open(filename, 'wb') as f:
--> 484             NumpyPickler(f, protocol=protocol).dump(value)
    485     else:
    486         NumpyPickler(filename, protocol=protocol).dump(value)

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in dump(self, obj)
    407         if self.proto >= 4:
    408             self.framer.start_framing()
--> 409         self.save(obj)
    410         self.write(STOP)
    411         self.framer.end_framing()

/usr/local/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle.py in save(self, obj)
    279             return
    280
--> 281         return Pickler.save(self, obj)
    282
    283

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save(self, obj, save_persistent_id)
    519
    520         # Save the reduce() output and finally memoize the object
--> 521         self.save_reduce(obj=obj, *rv)
    522
    523     def persistent_id(self, obj):

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
    632
    633         if state is not None:
--> 634             save(state)
    635             write(BUILD)
    636

/usr/local/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle.py in save(self, obj)
    279             return
    280
--> 281         return Pickler.save(self, obj)
    282
    283

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save(self, obj, save_persistent_id)
    474         f = self.dispatch.get(t)
    475         if f is not None:
--> 476             f(self, obj) # Call unbound method with explicit self
    477             return
    478

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save_dict(self, obj)
    819
    820         self.memoize(obj)
--> 821         self._batch_setitems(obj.items())
    822
    823     dispatch[dict] = save_dict

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in _batch_setitems(self, items)
    845                 for k, v in tmp:
    846                     save(k)
--> 847                     save(v)
    848                 write(SETITEMS)
    849             elif n:

/usr/local/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle.py in save(self, obj)
    279             return
    280
--> 281         return Pickler.save(self, obj)
    282
    283

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save(self, obj, save_persistent_id)
    519
    520         # Save the reduce() output and finally memoize the object
--> 521         self.save_reduce(obj=obj, *rv)
    522
    523     def persistent_id(self, obj):

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save_reduce(self, func, args, state, listitems, dictitems, obj)
    632
    633         if state is not None:
--> 634             save(state)
    635             write(BUILD)
    636

/usr/local/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle.py in save(self, obj)
    279             return
    280
--> 281         return Pickler.save(self, obj)
    282
    283

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save(self, obj, save_persistent_id)
    474         f = self.dispatch.get(t)
    475         if f is not None:
--> 476             f(self, obj) # Call unbound method with explicit self
    477             return
    478

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save_dict(self, obj)
    819
    820         self.memoize(obj)
--> 821         self._batch_setitems(obj.items())
    822
    823     dispatch[dict] = save_dict

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in _batch_setitems(self, items)
    845                 for k, v in tmp:
    846                     save(k)
--> 847                     save(v)
    848                 write(SETITEMS)
    849             elif n:

/usr/local/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle.py in save(self, obj)
    279             return
    280
--> 281         return Pickler.save(self, obj)
    282
    283

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save(self, obj, save_persistent_id)
    474         f = self.dispatch.get(t)
    475         if f is not None:
--> 476             f(self, obj) # Call unbound method with explicit self
    477             return
    478

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save_dict(self, obj)
    819
    820         self.memoize(obj)
--> 821         self._batch_setitems(obj.items())
    822
    823     dispatch[dict] = save_dict

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in _batch_setitems(self, items)
    845                 for k, v in tmp:
    846                     save(k)
--> 847                     save(v)
    848                 write(SETITEMS)
    849             elif n:

/usr/local/lib/python3.6/site-packages/sklearn/externals/joblib/numpy_pickle.py in save(self, obj)
    279             return
    280
--> 281         return Pickler.save(self, obj)
    282
    283

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save(self, obj, save_persistent_id)
    474         f = self.dispatch.get(t)
    475         if f is not None:
--> 476             f(self, obj) # Call unbound method with explicit self
    477             return
    478

/usr/local/Cellar/python3/3.6.2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/pickle.py in save_global(self, obj, name)
    920             raise PicklingError(
    921                 "Can't pickle %r: it's not found as %s.%s" %
--> 922                 (obj, module_name, name))
    923         else:
    924             if obj2 is not obj:

PicklingError: Can't pickle <function BaseDiscretizer.__init__.<locals>.<lambda> at 0x1a1a0dea0>: it's not found as lime.discretize.BaseDiscretizer.__init__.<locals>.<lambda>

I had the same issue some time ago.
My solution is to load the LimeTabularExplainer  each time I'm going to use it. In particular I run this as part of a flask app, so I train the explainer when the application launch.
Here an example
class explainer():
    def __init__(self):
        # LIME Model
        self.lime_clf = joblib.load('data/models/model_LIME_ET.pkl')
        data_temp = pd.read_csv('data/models/data_total_inputs.csv', index_col=0)
        self.explainer = LimeTabularExplainer(data_temp .values, feature_names=data_temp .columns.values.tolist(),
                                     class_names=['Decrease', 'Increase'], discretize_continuous=True, kernel_width=5)

Cool.
I have the exact same problem. Good to know that training on startup is a
good solution.
Apparently dill should work here. Did you try it?
So far I could not yet get it to work.
https://stackoverflow.com/a/45716772/2587904
Alejandro Correa Bahnsen<EMAIL_ADDRESS>schrieb am Mi. 16. Aug.
2017 um 16:22:

I had the same issue some time ago.
My solution is to load the LimeTabularExplainer each time I'm going to
use it. In particular I run this as part of a flask app, so I train the
explainer when the application launch.
Here an example
class explainer():
def init(self):
# LIME Model
self.lime_clf = joblib.load('data/models/model_LIME_ET.pkl')
data_temp = pd.read_csv('data/models/data_total_inputs.csv', index_col=0)
self.explainer = LimeTabularExplainer(data_temp .values, feature_names=data_temp .columns.values.tolist(),
class_names=['Decrease', 'Increase'], discretize_continuous=True, kernel_width=5)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/marcotcr/lime/issues/98#issuecomment-322787568, or mute
the thread
https://github.com/notifications/unsubscribe-auth/ABnc9Nk7YtaFbgFNLC9E9o0k37g9UO4rks5sYvsogaJpZM4O47KB
.

dill is actually working fine:
with open('data', 'wb') as f:
    dill.dump(exp, f)

with open('data', 'rb') as f:
   dill.load(f)

Trans out it is not. Apparently a function is missing.
---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
<ipython-input-33-8139695c1bd1> in <module>()
----> 1 exp = xxx.explain_instance(instance_i, estimator.predict_proba, num_features=6, top_labels=1)

AttributeError: 'Explanation' object has no attribute 'explain_instance'

You seem to have pickled the explanation instead of the explainer.

Correct.


Document GOMAXPROCS recommendation

re: https://github.com/GoogleCloudPlatform/kubernetes/issues/7767
It would be useful to document recommended GOMAXPROC for optimal performance.

@yichengq Does this make sense for part of our test suite?

@barakmich We can include this var into our benchmark. And we can suggest the "optimal" number of cores for different workload.


Error: Cannot find module<EMAIL_ADDRESS>

Fresh install! Commands:
git clone
npm install
npm run dev
Error: Cannot find module<EMAIL_ADDRESS>at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
at Function.Module._load (internal/modules/cjs/loader.js:507:25)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:20:18)
at Object. (/git/vue-storefront/core/build/dev-server.js:9:24)
at Module._compile (internal/modules/cjs/loader.js:689:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
at Module.load (internal/modules/cjs/loader.js:599:32)
at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
at Function.Module._load (internal/modules/cjs/loader.js:530:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-storefront@ dev: node ./core/scripts/server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-storefront@ dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!    /.npm/_logs/2018-08-09T18_30_02_948Z-debug.log

Try changing the name of your theme in the config from "theme": "@vue-storefront/theme-default" to "theme": "theme-default",

... and use yarn install instead od npm install

The name of the template is the original.
Yarn worked ok for me. What’s the difference? It make not sense. Thank you Piotr.


Disable Jar filters during development

What do you recommend as the best way to apply a jar: filter so that the same code also works in the IDE (where no jar exists). I'm sure you are aware of the current behaviour; the existence of jar:completely disables normal classpath scanning. This is understandable but do you see a non-DIY solution to complex cases where some internal modules are loaded as IDE projects (no jars) and some left to dependency resolution to download
new FastClasspathScanner("com.company.product","jar:com-company-module1.jar","jar:com-company-module2.jar"....)

This is tricky... is the reason for using a jar: filter to increase scanning speed, or something else? (If speed is not an issue, you should just whitelist the package prefix(es) that you use, rather than using a jar: prefix.)

Yes, solely for performance and without any measurement that it would make a difference :). It's quite easy to end up with a lot of 3rd-party libs. I don't know how efficient FCS is at disregarding a jar based on a package whitelist...

Makes sense. Zipfiles tend to be fast to read when classfiles are not whitelisted, because the zip directory can be read quickly without reading zipfile content. (At least I'm assuming that Java does the right thing, and just reads the zip headers in creating ZipEntry objects, rather than uncompressing the whole file!) FastClasspathScanner only opens the FileInputStream on a ZipEntry for files in a zipfile that have a path that matches a whitelist entry.
I would be curious to see some numbers though, if you have a large project you can test (lots of 3rd party jars, with a small whitelist). If you turn on .verbose(), you'll see how many milliseconds were used to process each jarfile.

Scanning is faster now, whether classfiles are in a jar or in a directory. Please reopen this if your testing shows that the whitelist and/or blacklist criteria specification mechanisms don't do what you need to reduce scan time. Thanks!


bot not starting

hello i have complet all the settings when i start the program noting happen

Do you have more info for us? Operating system, did you have errors while compiling the program? Did you enter the right bot token and server ID? Did you enable the intends? There is a lot to look out for. I need to know more about the problem before I can help you

Windows 10:  Server id yes its right bot token its right

You enabled the intends?

what is intends

My bad, I meant intents, as described here

@ZorroMundoYT you might wanna check it out imma sleep now, really Imma be back tomorrow, cya

Alright

now its working how do i see all commands ??

You can see most of them here https://github.com/mategol/PySilon-malware/wiki/Commands

you have this

This is resolved :)


Search results show duplicate files when "search.followSymlinks" is set to false in Visual Studio Code 1.77.3

Issue:
When the "search.followSymlinks" setting is set to false in Visual Studio Code version 1.77.3 (Universal), the search results still show duplicate files—one for the symlink and one for the actual project file. Although live reloading seems to work to some extent, it raises concerns about the safety and reliability of this behavior.
Steps to reproduce:
Open Visual Studio Code version 1.77.3 (Universal).
Set "search.followSymlinks" to false in the settings.
Create a project with a symlink to another file.
Use the search functionality in Visual Studio Code.
Observe that the search results display both the symlink file and the actual project file.
Expected behavior:
When "search.followSymlinks" is set to false, the search results should only display the actual project file, not the symlink.
Actual behavior:
The search results show both the symlink file and the actual project file, despite having the "search.followSymlinks" setting set to false.
Environment:
Visual Studio Code version: 1.77.3 (Universal)
Operating System: [Please provide your operating system and version here]
Additional information:
When saving the symlink file, the actual project file is updated accordingly.
Live reloading appears to work, but the duplicate file in the search results raises concerns about potential issues.
Please consider investigating and resolving this issue to improve the reliability and safety of using symlinks in Visual Studio Code.

Starting to lose a bit of work from this.  There is no question in ambiguity as it relates to the identity of files.  It must just be a bug on macOS version but I have not verified on another system yet.  This is an M2 system.  The views should never open duplicates of the same file.  It can know its a symlink and relate to the same file already opened.  This is a critical integrity issue I think.

@ar-visions is this a recent regression, or has this happened since you started searching with symlinks?

I see that it's searching the symlink-ed file despite setting search.followSymlinks to false.

no setting i can use will avoid the duplicates in the search.  and there are issues when i am not careful about having just 1 open.  i have a symlink in a projects dir linking to an 'extern' of its ci repo which is part of the workspace, but that doesnt seem to be it.  it seems that it sees symlinks, resolves them, and adds duplicates into its file cache..  i can fix this im pretty sure because i always wanted to work for microsoft.

I just want to double-check my understanding: you have a file in your workspace that is pretty much the same as a file that you symlink and only want to see results for one, but see both (even when you turn off symlinks). Is this correct?

The issue arises when I click on file links in the console output, particularly in cases where the linked file is a symlink pointing to a file in an external build directory. Instead of opening the file correctly within the VSCode environment, I have noticed that two copies of the file appear, with one copy displayed in red. However, upon modifying either copy, the changes are applied to both files, indicating that they are, in fact, the same file.
I have tried various approaches to resolve this issue, including adjusting workspace settings and experimenting with different configurations, but the problem persists. This behavior has led to confusion and inefficiency in my workflow, as I rely on the ability to navigate to source code files directly from the console output.
I kindly request your assistance in investigating and addressing this issue

I have lost a lot of little fixes in my code as I've mistakenly forgotten to manually navigate to the file rather than click on the file.c in the console.  For now I believe I'm going to modify my build system to resolve the symlinks to .c's as they go in.  I just want you to know I am getting beaten up by this bug.

I thought for a moment because my 'prefix' project was a workspace item, that it preferred to have a unique copy for that project.  I removed the prefix project (which contains extern dir with repo builds and symlinks to local projects.  That is, no logic can not resolve what is a symlink to a file in your project view.
This is macOS build, running latest.

So is the problem with opening a link from the console output and it opening the symlinked file path (which doesn't correctly sync with the file opened from the real file path?

Anything that invokes opening a file in the apps MDI client area, its main view.  Yeah it did show symlinks as different files in the quick search as well.  That invokes the same launch command though so I am checking out VScode and narrowing down.

export class BaseCodeEditorView extends CodeEditorView { 	constructor(
what kind of Base goes on top p;D

https://github.com/microsoft/vscode/blob/2bd04a1380e93fa92294878b17305f246f7f334a/src/vs/workbench/contrib/files/common/explorerModel.ts#L74
https://github.com/microsoft/vscode/blob/2bd04a1380e93fa92294878b17305f246f7f334a/src/vs/base/common/resources.ts#L20
This class is referenced by the explorer list which contains the identity delegation to this class.   It doesnt do any symlink checks in the ext classes.    It needs to resolve it with apis in VScode vs/base/node

Just to confirm, these are the steps to repro the bug on your side:

have a file that's symlinked to a file outside of the workspace.
open the file in any way (ie: via links in the console, via quick open)
this opens two copies (one of which is red) :bug:

@jrieken do you know whether this would be on the URI resolver as mentioned in the above comment?

@andreamah The uri identity service doesn't resolve symbolic links, it only does case normalisation and some path normalisation.
I not quite sure what the idea of followSymlink: false is but unresolved sym-links lead to this. So, if ripgrep doesn't resolve them the search model should do it before showing/opening/reading results

I'm going through this issue again and I'm having troubles collecting what the core issue was. I tried the steps in https://github.com/microsoft/vscode/issues/180087#issuecomment-1607765124, but they aren't doing anything on my side.
When I have the following structure
|- dir1
  |- test.txt (contains `'foo'`)
|- dir2 -> linked to dir1

and search for 'foo' with useSymlinks=false, then one result appears as expected.
In the case where I have:
somewhere else on the filesystem that isn't in the open folder
|- dir3
  |- test.txt (contains `'foo'`)

and in the open folder
|- dir1
  |- test.txt
|- dir2 -> linked to dir3

And search for 'foo' with useSymlinks=false, I get nothing as expected. I'm not running into any cases where two instances appear unless I explicitly open the source of the linked file in my editor. If this is still happening, can you illustrate your format using a file tree like above?

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!


Blank screen on iOS (cca v0.5.2-dev)

I don't know if this related to https://github.com/MobileChromeApps/mobile-chrome-apps/issues/457 but when spinning up Whiteout on the current version of cca, I get blank screen on iOS 8.1.2. I can't debug the issue in Safari because none of my scripts are visible in the remote debugger. What am I doing wrong?

we just tracked the issue down to the use of inline svg for icons (all of those concatenated into one) that are inserted here
<div style="width: 0; height: 0; visibility: hidden;">
<svg viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg">
<symbol viewBox="155.9 279.2 283.5 283.5" id="icon-about"><title>about</title><path ... />
</symbol><symbol viewBox="155.9 279.2 283.5 283.5" id="icon-account"><title>account</title><path ... /></symbol></svg>
</div>

if this is in the markup, the dom loading times out after a couple of seconds.
is there any known problem with this practice? it doesn't seem to be a csp problem, since it still occurs if we remove this line, or is there a default CSP setting by now?

The error was on our side. Sorry for the noise. As you were :+1:

Awe, what a cliff-hanger! Was it something to do with svg in the end? Is there some gotcha to avoid here?

when we concatenated the svg, we used was a) the individual sources and b) the concatenated source, so basically we duplicated the svg. that seems to have broken the parser or something along the way. on a semi-related note: does cca use the WKWebView or the (legacy) UIWebView?

Interesting :P.
It uses UIWebView. We'll be onboard with wkwebview though once Cordova
supports it.
On Thu, Jan 8, 2015 at 10:29 AM, Felix Hammerl<EMAIL_ADDRESS>wrote:

when we concatenated the svg, we used was a) the individual sources and b)
the concatenated source, so basically we duplicated the svg. that seems to
have broken the parser or something along the way. on a semi-related note:
does cca use the WKWebView or the (legacy) UIWebView?
—
Reply to this email directly or view it on GitHub
https://github.com/MobileChromeApps/mobile-chrome-apps/issues/497#issuecomment-69194857
.


Example with tabs

Hi! Would love to see a example of a parallax header with a viewpager and tabs.
Best regards, Ali.

Cool! I am working on it. ViewPager, NestScrollView and QuickReturn like Google Play App Detail will be updated soon. Up to a week.

+1

+1

I added NestedScrollView and QuickReturn examples already. Checkout v0.1.3

Hello Henrytao,
Sorry, but I am not able to see the viewPager with Tabs.
Can you please confirm this "smooth-app-bar-layout-master" App is having  viewPager with Tabs example ?
Please share App link to get it if it is not.
Thanks,
Anil

Hello Henrytao,
I tested ViewPager with tabs using current "SmoothAppBarLayout", but unfortnately it is not working properly even worse like jumping.
Please suggest by sample example like ViewPager with multiple Tabs and tab is having Recyclerview.
Thanks in Advance,
Anil

Hi @nomad609,
I am working on ViewPager support. The end result will be like Google Play Games / Apps section. Stay tuned!
Also, I would like to have your idea: how many ViewPager styles do you like to support beside these styles?

ViewPager + Toolbar (Google Play Games / Apps section)
View Pager + Parallax
Toolbar / Parallax will be showed immediately right after scroll up (like quick return)
Toolbar / Parallax will only be showed when scroll to top (like ExitUntilCollapsed)

very good idea

Thanks Henrytao for fast reply and confirmation :)
I would like to work on one of the project like this link -
http://blog.grafixartist.com/wp-content/uploads/2015/09/parallax-scroll-header-tabs.png
But I tried using SmoothAppBar, but it didn't help and existing link-
http://blog.grafixartist.com/parallax-scrolling-tabs-design-support-library/
It is also not that smooth specially during scroll Up and down.
Please let us know once you complete it.
Thanks for help.
Thanks,
Anil

PR is coming. I will deploy this weekend. Cheers!

+1

Hi @henrytao-me can u please add listview,scrollview and recycleview in the tabs with parallaxview...Thanks

I will deploy new version this weekend. It will support scrollView, recyclerView in tabs with parallaxView. ListView is later because I haven't tested it.

Thanks Henry, we are waiting for good smooth version app.

Sweeeeeeeet! version 0.1.5 is out. Check it out. ViewPager support + Inbox App and Google Play App Detail samples included.


Confusing create account page

I've just had a load of students (200ish) sign up and about 10% of them completed the form correctly then clicked 'sign in' rather than 'create account'. The sign in button should either be smaller or read e.g. 'Already have a account? Sign in' which would prevent confusion.

Definitely–good point! We are redesigning those screens now and will take this into account.

Yup, already being taken into account in the new designs. Thanks for bringing this to our attention!


Weights using long

Hey,
Is it possible to extend weights to support long, lookg like at the moment they only support int?
❤

Hey,
I limited the weights to int in the beginning, because Fluent Random Picker uses algorithms that sum up all the weights internally.
If the int weights are Int32.MaxValue and Int32.MaxValue, the sum can't be stored as an int. So I use long for the sum internally at the moment.
If I'd allow long weights and if they are Int64.MaxValue and Int64.MaxValue, the sum can't be stored as a long. I'd need a larger data type then internally...

2 ways are probably possible on my site:

Replacing the algorithm that sums up the numbers (at least when the weights are longs) with one that works differently.
.Net7 (will be available in about a month) offers a new Data type (Int128), which I could use to calculate a sum of longs. But this would only work in projects that are targeting .Net7 or higher.

Which .Net version are you targeting?
I'll take a closer look at this in the future.

Hey,
Makes sense, you /could/ use BigInteger to sum the values. Tho it might be slow.
I'm currently targeting .net 7 rc1.
Right now I'm just casting to int so I'm not hindered, but what I'm using it for is figuring out in my game 'who' should hit.
Your library just makes mundane stuff easier :D
        var entity = Out.Of()
                         .Value(EntityType.Player).WithWeight((int)playerSpeed)
                         .AndValue(EntityType.Monster).WithWeight((int)monsterSpeed)
                         .PickOne();

Notes for me:

SortingBasedWeightedLeftShuffle would break with longs because all results are 1 at some point.

Math.Pow(0.9999, 1/(double)int.MaxValue) // = 0.99999999999995348165526820594095624983310699462891
Math.Pow(0.9999, 1/(double)long.MaxValue) // = 1.00000000000000000000000000000000000000000000000000
Math.Pow(0.9999, 1/((double)long.MaxValue/10)) // = 1.00000000000000000000000000000000000000000000000000
Math.Pow(0.9999, 1/((double)long.MaxValue/1_000_000)) // = 1.00000000000000000000000000000000000000000000000000
Math.Pow(0.9999, 1/((double)long.MaxValue/10_000_000)); // = 0.99999999999999988897769753748434595763683319091797

So, maybe, there needs to be a fallback like Math.Pow(0.9999, 10_000_000/(double)n); for larger numbers.
Maybe, a fallback should already be there for ints, because for ~0,000001% of the weights (higher if we would allow long weights), it does not even make a difference, whether they are int.MaxValue or int.MaxValue / 10 (edge case):
Math.Pow(0.99999999, 1/(double)int.MaxValue) // = 1.00000000000000000000000000000000000000000000000000
Math.Pow(0.99999999, 1/((double)int.MaxValue / 10)) // = 1.00000000000000000000000000000000000000000000000000

DefaultPicker would break because it calculates the sum resulting in a possible overflow (solvable with Int128 from .Net7 or BigInteger)
Everything else should still work with longs.


#108 [Guests] Stay duration as two fields

Addresses issue

Something bad happened to the image, it looks damaged. Do you have any idea why it's part of the commit?

Something bad happened to the image, it looks damaged. Do you have any idea why it's part of the commit?

Have no idea unfortunately :(

Closes #108


Build interface for movement scripts/controllers

Work was done on this in bab35cc, but leaving this open as its not finalised.


Wrap AuthAccount Capability in Host resource & add test suite

It was realized when reviewing a similar pattern that publishing unrestricted AuthAccount Capabilities introduces enough risk to be considered an anti-pattern.
This PR introduces changes to the (formerly named ContractUpdater) StagedContractUpdates contract that allow contract-hosting accounts to wrap their AuthAccount Capabilities in a Host resource before publishing to the account that will store the Updater resource defining their full update deployment. This restricts the access on the underlying account to the contract update API and nothing else from the time of transfer onward and is significantly safer than passing a full AuthAccount Capability.
Also introduced in this PR is a Cadence test suite as well as a testing workflow action on pull request and merge to main.

Welcome to Codecov :tada:
Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.
Thanks for integrating Codecov - We've got you covered :open_umbrella:


Added Cyber Security Career Guide

Hi,
Stjepan from Manning here. I thought this book might be a good match for your list. Thank you for considering it.
Best,

Thank you.
Best,
On Tue, Feb 1, 2022 at 8:05 PM Daniel Romero @.***>
wrote:

Merged #54 https://github.com/infoslack/awesome-web-hacking/pull/54
into master.
—
Reply to this email directly, view it on GitHub
https://github.com/infoslack/awesome-web-hacking/pull/54#event-5990588260,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ANDIEMIT5MYTZYEUW72JRE3UZAVGHANCNFSM5NISSSCA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you authored the thread.Message ID:
@.***>

--
Stjepan Jureković
Manning Publications - Marketing
@.***


💡 [FEATURE] - Footer UI can be better

Idea Contribution

[X] I have read all the feature request issues.
[X] I'm interested in working on this issue
[X] I'm part of GSSOC organization

Explain feature request

In the footer there is no icon as it looks basic design
Explain your solution
I can enhance the ui and also can add Icon to give this basic design more attractive
Any alternative approaches/features
No response
Additional Context
Kindly Assign this issue to me

@jfmartinz Hello sir! Could you please assign me this issue

This is duplicate


Add install and update scripts, don't add powerline function if user doesn't install it

Probably could add a function to .bashrc to trigger update.py in the future
install.py is to be ran on first clone, however update.py runs install.py so you could probably combine the two. Minimal error checking right now
Detect if powerline is installed; if it's not, use a different .bashrc file without that function so it doesn't freak the user out with errors upon ssh connection after installing this repo
Use spaces in the .bashrc files

.bashrc_powerline is to be identical to .bashrc, just without the top powerline function

Method of installing this repo changes from cloning the files directly to /home to /home/comma-dotfiles so that an installation script can copy and replace old files in /home for easy updates. Automatically replaces the files in /home that are defined here: https://github.com/ShaneSmiskol/comma-dotfiles/blob/master/install.py#L6
Let me know what you think of these ideas! I like the idea of a 'workbench for developers', that's the feeling I got from the project.

Could you write this with a dont-repeat-yourself philosophy with the bashrc? Just tell bash to source if powerline-shell is installed

Secondly, this is great, I will merge this. Just would be great to see that happen

Awesome, glad to hear you like it. I actually have always used Windows my entire life so I don't know too much about linux-specific stuff like its scripting. I'll look into it though

@AskAlice How does that look now?

hmm possible, sounds a bit overcomplicated. In bash you could probably test to make sure the output of pip show powerline-shell is nonzero, if it is nonzero, then powerline-shell is installed

oh wait, you did that.. hold up let me review this more lol

Yeah, just found a command online that seems to check if the command exists, and is true if it is! It worked in my quick test

you all set on merging this?

Let me shorten the install file first, then you can merge

kk

oooh im tempted to pip install thefuck and add that to the bashrc

Ooh, I haven't seen that before. That's great haha. Latest commit is working, I'll just unify update and install now. Is updatedotfiles a good name? I wonder how hard it would be to allow commands like dotfiles update, or similar

Yeah definitely make sure you squash merge this PR lol, should be good if you think the name for the new command is okay

I got this syntax working, which I think straight up looks cooler, but requires more to be typed for the same to be accomplished. Do you want me to replace the current commands with this? dotfiles pandaflash, dotfiles update, etc...


WIP: More granular feature level permissions

Overview
Where larger teams are working on a single Flagsmith Project, it would be useful for them to be able to assign RBAC privieldges based on a subset of Flags within the Project.
Potential Solution
The current proposed solution involves leveraging the tags that already exist within the platform. We would add the ability, when modifying the permissions for a group in an environment, to add a subset of tags that that permission / those permissions apply to. For example, you may have a group of users that should only have the 'Update feature state' permission against a subset of tags. One UI option to illustrate this is to add the ability to add tags below each permission, as per the following screenshot.

Detailed Example
TBC
Issues/Open Questions

Who defines what tag a Flag is associated with?
Would this require a new concept of 'Roles'? Currently we only have the concept of groups which means that users will likely belong to more than one group.
Is there a way we can allow existing customers to migrate?
Should we have a setting against the project which enables these tag-based permissions for the project?
Should we only allow the management of tag based permissions for a group? This seems to make sense since customers that want to use permissions on such a granular level are likely using groups exclusively anyway.

Other Possible Approaches
Environment / Feature Combination Level Permissions
The tags approach makes the management of the permissions slightly simpler, however, it may not be the best solution for creating the most granular permissions. Another option here would be to allow admins to create permissions for groups (& users?) against a combination of a feature and an environment. The UI management of these permissions would be challenging but it would likely allow admins to create more granular permissions as needed.

Some thoughts based on a conversation with @gagantrivedi .

Initial idea was to have 'tag based permission' be opt-in and, if enabled, the Update Feature State permission at the environment would be ignored. There would be View / Edit / Delete permissions on each tag. This is deemed to not be a viable solution as it would be hard to apply these permissions to individual environments, since the tags live at the project level.
Second idea (which is as per the screenshot in the description) is to add tags to a role. These tags could be added to environment / project roles such that the permissions are only given to features with those tags applied.

Next steps: start implementing option (2) above and see where it gets us :)

Yep agree - leveraging roles seems the right path here

I will set up some time with @novakzaballa to go through the backend implementation done here: https://github.com/Flagsmith/flagsmith/commit/78e559c320011bcc6ec9339cb2614a9751244156

Since there is not too much information about the behavior of this feature in the final implementation, I have the following assumptions:

If a role has one or more tags linked, then and only in that case, the feature permissions(Update feature state and delete), associated with that role, only apply to features having those tags. In other words, adding a tag to a role restricts the feature permissions to features having the same tag.
In any other case, the permissions work as before these changes. For example, a user with update_feature_state and/or delete_feature permissions, or belonging to a group with these permissions, should be able to update/delete the feature regardless of whether the feature is tagged. The same applies if the user has a role with these permissions and no tags associated.

As discussed on a call with @gagantrivedi , @novakzaballa and @kyle-ssg we have decided on a few outcomes:

Roles with a tag should only be able to include permissions that factor in tags on their target entity, i.e. those in the constants defined here and here. This means that, when a tag is added to a role, the FE should disable any other permissions to prevent them from being added. The API should reject the creation of any role with a tag that has unsupported permissions. The API should return this information in the response to the /<entity>/permissions/ endpoints (where entity=projects|environments).
We will need to extend the functionality to also support 3 new permissions: CREATE_CHANGE_REQUEST, APPROVE_CHANGE_REQUEST and MANAGE_SEGMENT_OVERRIDES.

Another topic was discussed was around the security of tag-based permissions. The issue arises due to the fact that anyone with the CREATE_FEATURE permission can add any tag to any feature. An immediate solution to this is to encourage customers to restrict the CREATE_FEATURE permission to project admins for example. Some discussion points regarding a more permanent solution:

Add the ability to assign tags to groups (or maybe roles but this would likely spark confusion with the rest of the behaviour discussed in this issue) so that only users in that group can add those tags
Add rules to tags to allow them to only be added to features with a given naming convention (an extension to this could be to automatically tag features with a given naming convention).

I believe this can be closed