text:
iOS screen stuck halfway during modal/page transition

Short description of the problem:
Screen gets stuck half-way only using the iOS CSS modal/page transitions.

What behavior are you expecting?
Screen returns to normal on iOS like Android. I seem to only get this on an actual iOS device.
Steps to reproduce:
I modelled my setup in the plunkr below but it goes as follows:
// modal is trigged from my TabsPage, then when it's dismissed, present MysteryPage
let modal = Modal.create(IncomingPage);
modal.onDismiss(d => {
	// dismissed with this.viewCtrl.dismiss();

    if (!d) return;
    this.nav.push(MysteryPage, d, {animate: false});
});
this.nav.present(modal);

// in MysteryPage, dismiss by doing this:
this.nav.pop(); // after this, we have the half-screen issue

Other information: (e.g. stacktraces, related issues, suggestions how to fix, stackoverflow links, forum links, etc)
The MD CSS animations seem to be okay so the following fixes my issue:
@App({
    template: '<ion-nav [root]="rootPage"></ion-nav>',
    providers: [Service1, Service2],
    config: { // http://ionicframework.com/docs/v2/api/config/Config/
        tabSubPages: true,
        pageTransition: 'md-transition', // <--
        modalEnter: 'modal-md-slide-in',  // <--
        modalLeave: 'modal-md-slide-out'  // <--
    }
})

Which Ionic Version? 2.x
Plunker that shows an example of your issue
Note: I'm unable to reproduce my setup correctly in the plunker as everything seems to work properly in there.
http://plnkr.co/edit/Vl7FlHxqBTL3MYpcXaUp?p=preview
Your system information:
Cordova CLI: 6.1.1
Gulp version:  CLI version 3.8.11
Gulp local:   Local version 3.9.1
Ionic Version: 2.0.0-beta.4
Ionic CLI Version: 2.0.0-beta.19
Ionic App Lib Version: 2.0.0-beta.9
ios-deploy version: 1.5.0
ios-sim version: 3.1.1
OS: Mac OS X El Capitan
Node Version: v5.8.0
Xcode version: Xcode 7.3 Build version 7D175

1 - create the class that will control your modal and define add its template:
import {Modal, NavController, ViewController} from 'ionic-angular';
// other things can go here
@Page({
template:    <ion-content padding>
I'm a modal!
     <button (click)="close()">Close</button>   </ion-content>
})
class MyModal {
constructor(viewCtrl: ViewController) {
this.viewCtrl = viewCtrl;
}
close() {
this.viewCtrl.dismiss();
}
}
2 -  add the code that will open your Modal:
import {Modal, NavController} from 'ionic/ionic'
class MyPage {
constructor(nav: NavController){
this.nav = nav;
}
showModal() {
let modal = Modal.create(MyModal);
this.nav.present(modal)
}
}
Just try out this simple stuff. This shouldn't suck in iOS!!

Hello! Would you mind trying ionic nightly? I cannot seem to reproduce this on my ios device (running ios 9.3.1) with my test app that is using ionic nightly. To test this run npm rm ionic-angular and then npm install ionic-angular@nightly. Thanks!

@jgw96 I just tried today's nightly with the associated deps but I'm still having the same issue. I can't quite figure it out; there may be something more in my app's controller or view that i'm not replicating properly in the plunkr (the plunkr shows the basic flow of what I'm doing but is missing all the native Cordova plugins and HTML5 media I have going on). I'll see if I can try and isolate the issue a bit more.
Thanks for your help.

Just to follow up, this was caused by my use of using RxJS subscriptions in my controllers and not unsubscribing after the controllers are destroyed. I moved to the Ionic Events pubsub system and I properly subscribe/unsubscribe after I'm done with my modal views.

I am still having this issue and trying to remove all the events as suggested by @apparition47 did not work. Any words on this issue?

@apparition47 So the issue had to do with .subscribe() within your controller? Doesn't RxJS automatically unsubscribe from Observables when there are no longer any values that will come in?


text:
white line by refresher

Short description of the problem:
ion-refresher adds a white space under toolbar.
What behavior are you expecting?
No white space.
Steps to reproduce:

add the HTML below

<ion-content>
    <ion-refresher (ionRefresh)="doRefresh($event)">
        <ion-refresher-content></ion-refresher-content>
    </ion-refresher>
</ion-content>

Which Ionic Version? 1.x or 2.x
2 beta 10

Hello, thanks for opening an issue with us! Im sorry, but im not fully understanding the issue here. Would you be able to post a screenshot or gif that shows this issue? Thanks for using Ionic!

I fixed it with this style:
.has-refresher scroll-content {
  border-top: 0px;
}

problem was that there was a border on the top of the scroll-content that did make a cap between the toolbar and content.

Awesome glad it was fixed. Would you be able to post a screenshot or gif of the white line? Thanks!

Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic!

source: gharchive/issue

repo: driftyco/ionic

license: mit

license_type: permissive

license_source: bigquery


text:
bug: ionic resources doesn't produce icons

Type: bug
Ionic Version: 1.x
Platform: all
CLI v1.3.1
'ionic resources' doesn't work
'ionic resources --icon' doesn't work
'ionic resources --splash' doesn't work
It used to work so I know how to use it, but now it doesn't.

Never mind. The ionic resources page has a PSD template that's in the wrong resolution, so the splash page wasn't generating. Might wanna look into that.


text:
style(templates): fix style variations in tooling templates

Short description of what this resolves:
Fixes a few trailing whitespaces and spacing issues.
Changes proposed in this pull request:
Nothing important.
Ionic Version: 2.x
Fixes: none
Updated from: #6988

thanks

source: gharchive/pull-request

authors: adamdbradley arvindch


text:
fix(templates): suffix templates page #8320

Short description of what this resolves:
Added suffix Page to templates generated by
ionic g page <mypage>

and
ionic g tabs <mypage>

Changes proposed in this pull request:
Ionic Version: 2.0.0-rc.0
Fixes: #8320

ping @danbucholtz

@ramonornela,
Will validate and merge tonight.
Thanks,
Dan

@mlynch, we were talking about this a bit earlier. Does this match with what you were imagining?

Related https://github.com/driftyco/ionic-app-generators/pull/2

authors: danbucholtz ramonornela


text:
[Pg] Fix pg-native Pool transactions

Fixes issue #1707
pg-native connection Pools were not working properly with transactions. Drizzle was deciding how to handle transactions based on whether a client is an instanceof pg Pool, but not considering whether the client is an instanceof pg-native Pool.
This PR fixes that by also checking whether the client is a pg-native Pool.

We are observing the same issue right now where Drizzle doesn't commit transactions. Given this is already approved, is this save to get merged @AndriiSherman ?

When should this be merged?

Also dealing with this issue. Any work around until this is merged?

authors: AhmedBaset NickKelly1 matthiasbayer namgpham

repo: drizzle-team/drizzle-orm

license_source: github-api


text:
Drone+gogs webhook

gogs+Drone lastest

gogs webhook can work,but drone no change

I want to know why?

:wave: hey there, per our issue template, for end-user support please use one of our support channels, such as our chatroom or our mailing list. Also please note that we have a thread dedicated to this topic at https://discourse.drone.io/t/nothing-happens-when-i-push-code-no-builds-or-builds-stuck-in-pending/3424

authors: bradrydzewski zzzacbbt

repo: drone/drone


text:
BZ-1296498 - Retrieve tag information only instead of full metadata

Improve folder listing by retrieving only tag information, and not the complete metadata.

Can one of the admins verify this PR? Comment with 'ok to test' to start the build.

@martinweiler Thanks for the PR, but we're going to need a unit test or two...

@martinweiler Hi, I'll fetch this PR tomorrow (Friday) and write some tests before re-submitting..

Superceded by https://github.com/droolsjbpm/guvnor/pull/214

Please close.

authors: kie-ci manstis martinweiler

repo: droolsjbpm/guvnor


text:
GUVNOR-2682: Invalid DRL file is successfully validated after reloading of Business Central

See https://issues.jboss.org/browse/GUVNOR-2682

@karreiro Hi, would you mind taking a look please.

repo: droolsjbpm/kie-wb-common


text:
Partial parsing

Here is an attempt at providing partial parsing support. It's orthogonal to the event parsing branch I proposed before so those changes are not included here.
There are still problems for me with this branch:

7ed92d18a4404d12119b3ace116d3df7f19d48f1: I'm coming from a C programming background, so I'm still not used to the C++ way of doing things. I'd like to modify the stacked value in place but for some reason it's not working so I pop them and push them back again, I suppose there is a better way.

Testing: I did some test locally but I did not modify the test.cpp, on purpose. It's a bit of a mess and I wanted to know how and what you'd want me to add as tests.

I also suppose you'll have other remarks and they'd be welcomed.

Automated message from Dropbox CLA bot
@canatella, thanks for the pull request! It looks like you haven't yet signed the Dropbox CLA. Please sign it here.

This PR is to go along with PR https://github.com/dropbox/json11/pull/83.
We develop mobile applications. We use json11 and djinni to connect to REST apis. We have a lot of data to transfert at first application startup on possibly bad connection (mobile data),  and we want to be able to display the data ASAP. This PR allows parsing the json body without having to buffer the entire HTTP response body. As soon as there is data, you can feed the parser with it by calling consume and the parser will continue where it left. Used in conjunction with PR PR https://github.com/dropbox/json11/pull/83, it will trigger event as soon as any JSON value is available. With these two PR, we could then also make the parser drop already parsed code to limit memory usage when parsing large json strings, which is part of my use case. They could also allow parsing an io directly without having to buffer the entire string in memory.
From an architectural point of view, we need to be able to restart parsing from where we left at any point. For that,

we need to keep the full parser state up to date and self contained
we need to make the parsing loop use the state information.

At the api level, this implies that we expose a parser object with the aforementioned state information that the user can manage by itself, and a function to feed data to the parser.
The first commit deals with this api change, it creates a public parser class which hold the current parser implementation as private member and has a consume method.
The next commits are mostly changes needed to store the full parsing state, besides commit https://github.com/dropbox/json11/pull/88/commits/eb177d0053b0b69a3a510d1958b27768de430283 which uses the introduced state information to provide the depth limit check.
Finally, the last commit is the one making the parsing loop explicit.
I'll add some test that feed the parser with one character at a time and some documentation and examples in the header file.

Okay, I understand your intent, and how this fits together with your other PR.  I'm a bit iffy on merging this feature on it's own since it feels somewhat half-baked without the other pieces you describe to make a useful system.  I'd be okay with it as a half-way step to a final good state, though, barring any concerns about safety or performance I might have on deeper review.
I'll wait for your next update with docs and examples before doing the full review.

I can continue the patch series with the freeing of already parsed string and the event parsing and the doc and example for everything if you prefer.

I could go either way.  I see the value of bite-sized pieces for me to review, and to built/tested separately.  But I also prefer the final public result is something worth using.  Possible compromises might be to do multiple stages of review in the same PR (I'm not sure how well GItHub supports this flow) or to merge multiple PRs onto a public branch then merge into master when all the planned work is done.  The branch might be the easiest option for us to collaborate, if you want to make this a multi-part project.
My overall philosophy on PR merges/reviews (and on the internal code-reviews I do at Dropbox): Strictly, each public merge should not be a step backwards.  No merging code which is broken, messy, unperformant, etc. with promises to fix it later.  Less strictly, I prefer if each public merge is a step forward, meaning no half-baked features which aren't really ready for use yet, but there can be exceptions to this.  The point so ensure that users who pull for the first time don't get a broken/confusing intermediate state, and that the code isn't left in the bad state if an author gets busy and doesn't finish the next step.

I added some documentation in the README.md
I added two tests where I used the already existing test results and compare them to the result of parsing the stream one char at a time. I also feeded a big (+/- 300) corpus of various valid json object to it from https://github.com/jdorfman/awesome-json-datasets without problems.
I added some other fixes detected by testing parsing json with comments enabled.
This patch set can be applied on his own has it does not change anything for current users: api and behaviour are the same except for the chunked parsing addition. So you could either apply it to master where it would get a bit of exposure, or apply it to another branch. I should be able to provide fixes in cases of trouble in the next weeks but I think I won't have the time to update the event parsing PR and the freeing of already parsed data quickly as I have more urgent stuff now.
Speaking of which, what would be the best way to free up the already parsed strings, and at which point would it be best to execute ? I could see the use for a circular buffer here but there are no implementation in std, and it might add too much complexity. Other solution I see is using a list of string, that way we can easily drop parsed strings, or replace the string at some point with a substring,  but that would entail a lot of memory operations I think.

Some high-level feedback after the deeper (but still not complete) code-review.  It seems like your long-term goal is a good one, but the usability of this current step on its own isn't clear yet.  It also seems that you've already diverged quite far from the original json11 code (it's not a simple 1:1 translation which is obviously correct, for instance), and will have gone far further down that path by the time you're done.  In particular you're moving away from the "tiny library" descriptor which the README starts with.
By the time you're done I feel the library you'll be left with will be a newly-written library inspired by json11, so I wonder what the value is of calling it json11 at that point, vs. forking off and publishing your own thing under another name.  I don't feel like I'll give much value as gatekeeper on your efforts, given I/Dropbox isn't motivated to use them.  I want to encourage you to think about just going your own way and building the advanced parsing engine you want without worrying about what fits in with our needs.
One possible more limited integration would be if you might want to provide a more advanced parser which produces json11 objects as output, rather than replacing the original parser outright.  In that case your parser could be a separate add-on library of its own, or maybe eventually a separate optional class/file in the json11 repo.  If there are aspects of the json11 data which hold you back from doing so (like a missing interface for building the inner value types) I would be open to PRs which make json11 more open to replaceable parsers.  I.e. make small changes to json11 to enable you and others to build on top of it freely, rather than making large changes to json11 to do exactly what you want.

Thank you for the review. I have a bit more time now but before going further, I want to say that if you don't want to pursue on this, that's no problem for me, the code is there and it's working for my use case. I wanted to share back the code but if you feel it's a burden for you, I can just keep it in my repository. I just don't want to end up going through all the review process to finally have the PR rejected.
So to make things clear, I'm willing to go forward with the review process if it's going to be accepted and from your previous comment it seems that it's more for you to say that.

I'd be interested to hear from the original author @j4cbo on his interest in such a submission.  From my point of view, Dropbox doesn't have a need for this, so I'd have to take on the CR and validation of this as a side project, and if this is going beyond Dropbox territory into community/side-project territory I feel like @j4cbo has more ownership here than I do.

authors: artwyman canatella smarx


text:
Wrap exceptions thrown by beforeStart with MappableException

Problem:
We have a custom HibernateBundle that provides multi-tenancy and must support the case where tenant database instances are offline. We'd like to handle the errors caused by an offline tenant using ExceptionMapper as well, but that's impossible because exceptions thrown during the beforeStart phase are not wrapped in MappableException. (See #5501.)
This is similar to issue https://github.com/dropwizard/dropwizard/issues/949. Back in those good old times, it was impossible to create ExceptionMappers to handle persistence exceptions thrown during the afterEnd phase of the unit of work. The fix in PR https://github.com/dropwizard/dropwizard/pull/958 wraps the exception with Jersey's MappableExceptionbefore rethrowing.
This gist is a minimal test case.
Solution:

Exceptions thrown by UnitOfWorkAspect.beforeStart are wrapped in MappableException.
I'm unsure about the test: I had to config the H2 TCP server, so that I could turn it off and trigger an error during beforeStart. That might not be appropriate in the project's build infrastructure.
It might be sensible to wrap any exception thrown by the UnitOfWorkEventListener. I didn't do that though.

Result:
If an exception is thrown during the beforeStart stage, the user can create an ExceptionMapper to produce a web response in a way similar to what is already possible during the afterEnd stage.

I forgot to create a separate branch, sorry.

repo: dropwizard/dropwizard


text:
Modify Timer.Context for Extensibility

Change Timer.Context constructor to protected from private so that the class may be extended.

What's your use case for this? I generally avoid expanding visibility if not absolutely critical.

I completely agree. We are writing an interop layer between our library and Codahale metrics. Code already using Codahale metrics will be able to output data through our library. We need to create an instance of Timer.Context in order to satisfy the contract of Codahale's Timer in our library where we subclass Timer. Internally, this is being used in an extension of DropWizard to get it to interoperate with existing metrics infrastructure. Happy to discuss this further if you would like more details.

@ryantenney any further thoughts on this?

First class support for custom metrics is one of my priorities for Metrics 4. As you know, as of Metrics 3, custom metric types aren't supported, and understandably you're trying to work around that. I've decided that I don't want to start making changes to things in 3 to allow hacking in custom metric types.

Fair enough. Is there a mailing list or issue I can subscribe to for updates about the release of version 4?

There's the metrics-user group, but there hasn't been much in the way of conversation about v4 yet. I do need to start engaging the group on discussions about v4 priorities. https://groups.google.com/forum/#!forum/metrics-user

authors: ryantenney vjkoskela

repo: dropwizard/metrics


text:
Wrong registry paths for 32 and 64 bit aliases and applications

There are a couple of wrong assumptions about aliases and their registry paths:
The alias does not depend on the processor architecture of the host machine, but on the architecture of the running process: a 64 bit application will take the 64 bit alias, a 32 bit application will take the 32 bit alias, even on a 64 bit machine.
Then again, due to Registry Redirection, it is not necessary to specify two different paths as registy redirection will do this automatically (transparently) for you.
So it is sufficient to supply only @"HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\Client\ConnectTo" to the GetValue() method ... and it will be correct for both 32 and 64 bit applications.
In fact, you mixed up the two paths in your code: the one with "WOW6432Node" is the path for 32 bit applications, not for 64 bit!
So your code is broken for 64 bit applications as redirection does not take place if you explicitly refer to the WOW6432Node path ... but this path holds the value for 32 bit applications!

@mnissl Thanks for that, I've recently learnt about redirection magic and this now makes sense

Also see this tweet and the thread it belongs to from swiftonsecurity

authors: droyad mnissl

repo: droyad/SqlAlias

license: MIT


text:
Add env file

add env file to store all the secret variables.

.env file has been added. Here is the PR.


text:
Integrated Oscilloscope in iTNC530

Hi,
I wanted to share this program with you.
This program simulates the Integrated Oscilloscope in iTNC530 to read all values like the Oscilloscope channels.
The link is here:
https://drive.google.com/drive/folders/19GL2waiYKEm7FenXpDKv1TfkUMzzPQu1?usp=share_link
I wonder if we can write a python code for the functions of the channels.
Thanks.

Hello @Mohamed-ali7,
thanks for the software! I will and check it out and see if I can capture and decode the network traffic.
As soon as I have something I will get back to you.

I wonder if you are facing any problems with the software or want me to check any of its functions on the CNC.

Thanks for the offer but I think I have figured it out as far as it is necessary to record data. After some trial and error I was able to capture the traffic of reading values from a programming station.
Currently I am able to replay the exact same sequence sent by TNCscope and I get the messages exactly as they should be. The problem is that I have to figure out what all the messages beint sent actually mean.
So far I identified 5 steps for reading data from one channel:

load a list of available channels from the control
setup step 1 : send 4 bytes -> returns 8 bytes
setup step 2: send 12 bytes -> returns 22 bytes
setup step 3: send single command -> returns 4 bytes
setup step 4: send 16 bytes
repeatedly read data -> returns 138 bytes
tell control to stop sending data

As you can imagine without any documentation it isn't easy to decode all the data sent back and forth.
If you want you can try yourself. I am working on a branch based on v1 and if you are interested I can publish the current state so you can also take a look.

No problem.

You can find a help file installed automatically with the program.
A screenshot taken from it is shared above.

I also have the LSV2 protocol help file, I can share it with you if you think it may help in decoding.

SDK_Help.zip

The help files for TNCscope I already found myself, thank you. The problem is that it is about the usage of the tool itself and not about the details of implementing the necessary LSV2 protocol.
On the other hand the documentation on the LSV2 protocol you posted is quite interesting but it lacks anything regarding the messages used for reading data with the scope. By capturing the traffic I found the following messages: R_OC, R_CI, R_OP, R_DT and R_OD. Of these four, only R_DT is documented, the others are not.
This was probably done deliberately. The only option I see is to continue decoding the data by hand.
Again, if you want it would be a great help if you could help out. Maybe try capturing the network traffic with Wireshark yourself and check if you find any patterns.

I will try to work on it as soon as I get free from the final exams.
But before doing so I will have to learn Wireshark first. So, it may take some time for me, but I will be happy to help.

Maybe if you publish the current state of what you have done, I can take a look.

Take a look at the branch https://github.com/drunsinn/pyLSV2/tree/scope, it contains the current state of what I was able to implement thus far:

read channels (type, number, name and available signals)
set reading interval
select channels (hardcode)
take x number of readings

I made a simple test script scripts/tst_scope.py which connects to the programming station, selects the first and second axes for channel 2 and three and takes 10 readings

This software (free trial) can be much easier to decode its network.
We will use it directly for our research.
I hope you can add its functions in one of the following versions.
https://drive.google.com/drive/folders/1XEqJ70zC-oAksSEaK-njMtYWX-BC_cup?usp=sharing

I hope everything is okay and that you are having some progress for TNCscope.
If it seems to be very difficult or impossible for decoding the TNCscope network, I can find similar softwares that can do the same functions to try to decode their network.

Can you try the latest versions and check again? I made some updates to the code and the demo script. It now dumps the channel list and the recorded data to text files.

Now I could connect, but it gives me :
availible_signals = con.tst_read_scope_channels()
AttributeError: 'LSV2' object has no attribute 'tst_read_scope_channels'
I checked the attribute, it exists in LSV2 class in the client library.
What could be the reason?

Yes, you were right. Thanks!
Now, the code works.
I will try to figure out the readings.
Thanks again.

Hi, here I just wanted to share some parts of the C++ libraries used for reading some of the channel data.
They refer to (R_CI, R_OP, and R_OD):
lsv2_def.zip

As far as I could understand, you could already get all the scope readings and decode some of them, while some are still not decoded.
For example, the data.txt file that you created already includes some final decoded values i.e. read as exactly reported in TNCscope software?
Right?
Like what reading you didn't decode?
I didn't understand why this raise keyword-shown in a circle- is put here.

I mean when it raised an Exception for some of the channel decoding.
When removed I get a value (in my case it was a value of zero, could it be wrong or should I remove it?)
One more important thing I noticed is the "intervall_us=" values.

I could understand why we get 10 readings (we choose it in the code) . But in one reading, why do we get so many samples for the same signal?
Is it related to iteration over time? Then, what is the point of 10 readings?

Hello,
first, thank you for the header files. I will check them and try to import as much as possible!
Regarding the other questions:
The basic data structures are decoded, correct. There are still a lot of places where the meaning of the values is not known. Most of the stuff ist just guesswork or copy&paste form the observed communication. For example decoding the channel description: The data contains 36 bytes of 0x00. I don't know what they are used for. The same is true for decoding the recorded data. It contains a "header" of 0x00 0x20 0xff 0xff 0xff 0xff. I have no idea what these values might indicate. The first two bytes might be an indicator of how many values are included in this package but I am not certain. Every recoding I have made always used the exact same header.
Another example of missing information is about the values returned from the control. Currently everything gets converted to an integer value. I am not sure if this is correct since I haven't done enough testing.
In general every place where you find raise Exception(....) is a situation where I just compare the current values with values from my recordings. If the code doesn't raise an exception it indicates that you are getting the exact same patterns.
The same goes for line 2121. This is just a "catch all" for situations with unexpected behavior during debugging. It's meant to make sure everything that is not as expected gets reported. If you get an exception at this place the control doesn't like something about how you set up the channels. This could be because of a lot of things. Take a look at the log messages the get a better idea. You can change how detailed the log messages are by changing the line logging.basicConfig(level=logging.INFO) in tst_scope.py to logging.basicConfig(level=logging.DEBUG)
I also observed that the interval value depends on the type of channel. This is consistent with the behavior in TNCscope, some channels require higher reading intervals than others.
BTW: All these raise Exception() will have to be replaced with proper error handling bevor it gets included in the official release.
The reason you get more than 10 values is also because this function isn't finished yet. It would be more correct to change it from 'number of readings' to 'number of TCP packages'. I will have to think about a way to correct this behavior in the future.

Ok, thanks a lot. I will be testing these functions in the near future on some machining processes and comparing the readings to those from TNCscope. If I notice something important I will write to you.

Hi,
here https://github.com/Mohamed-ali7/pyLSV2/tree/scope I will add anything new that I notice.
Currently, I add the channel signals as constants to be easier to call as shown below:

Also, I am considering creating a new function for real-time data readings. It will have the same structure as "tst_record_data" function except to open the user instantly. I still have to think about a good design for it since with the current structure I have each time to edit the client code file each time to get what I want. Though, I can now leak any data I want in real-time.
Here is the line from where we can get real-time readings:

Also, I noticed that each TCP package has 32 readings over time. For example, the sampling frequency is around 320 Hz:
So, to get readings for one complete second, you can set "num_readings = 10", which will give 320 samples collected over time with a frequency of approximately 320 Hz.

Hi,
Do you think that calibrating the readings manually (as shown below) is the right way to get the readings as they appear in TNCscope software, or from the networks themselves they may include such a thing?

Good progress!
My only concern would be with the mapping of the signal number to a name. I would expect this mapping to be dependent one the version of the control. A fixed mapping like in your case might not fit for a control with other signals. I would prefer another approach: Some code that tries to map the signal number to the names at runtime after reading the signal list.
If you think you have a working state you can send me a pull request so it gets integrated into the main version.

I sent you a pull request (or that is what I think I have done :) ).
Can you check it?
All changes are in the branch (Scope) :
pyLSV2/client.py
pyLSV2/const.py
scripts/Real_Time_Readings

Concerning the software I sent you recently, the iTNC530 software version (The versions I tried on are 606425 & 606424) of the CNC control is incompatible with the TNCopt version so, no connection takes place.
Do you know any suggestions for solving this problem?

https://user-images.githubusercontent.com/119819019/223422926-13b39239-6bbc-4269-adc7-fb7aeaa6db69.mp4
Just to make sure, this is how I tried to connect.

Ok, I just installed and tried this software but I also couldn't get it to work with a iTNC. They probably removed support for iTNC controls.
It did connect to a TNC 640 but I wasn't able to get any meaningful data. Capturing the traffic with Wireshark confirmed that it, just like TNCscope, works with some kind of login/encryption. :-/

Hi,
The machine I use is KERN iTNC530

The len(data_set) in it was 98 instead of 106.
As a result, the decoded data I am getting (when I remove the raise exception command) is different from the real one.

I modified the code (as shown below) to allow len(data_set) = 106 or 98.
I checked it and made sure it works correctly by comparing the reading with TNCscope readings. The data I checked was both current and position. I also used the factor and offset coefficients you have added recently. Thanks!

Hello @Md-aliy7,
first, regarding your comment with connection to the TNC640: I was referring to the TNCopt software. I used it to connect to a programming station while capturing the TCP packages. Up to a certain point I could follow the data but then some encrypted password was used. This is similar/the same as when recoding the connection between TNCscope and a TNC640. Until we manage to reverse the  encryption I don't see any way to make it work.
second: Thank you for the update! I was just typing up my reply while I received it :-) The length check was just some sanity check since all packages I had seen so far had always a length go 106. Maybe it is a case of the number of axes being different from the programming station.
Since for type 1 and 4 the end is always 1 less than the total length it would be easier to just calculate it. I will make the change and update the branch!
For the factor and offset: I don't know if the calculation is correct. Can you check if the value has to be multiplied with the factor or if the offset has to be added first?

I couldn't decide multiplication or addition should be done first because in (position, acceleration, current ) the added offset value is zero (as shown below).
I will check what other readings could have an offset value that is not zero.

That is a comparison of the actual position between pyLSV2 (right) and TNCscope (left) both on KERN iTNC530.

We also checked the compared the current readings between the two and graphed them.
pyLSV2 (right) and TNCscope (left) both on KERN iTNC530.

Especially in the current, some difference is noticed, mainly because we couldn't connect to the same machine using both software at the same time. Also, we only sampled each one for 15 seconds following each other.

At least your test show that we get the correct values!
To be honest, I didn't expect we would be able to read any values at first. Looking at those graphs there dosen't seem to be much of a difference.
In the end, it isn't that important if the multiplication or the addition comes first. It is a simple change to switch them around if necessary.

I checked and there is no direct timing info in the packages.
The function get_time is not directly related to the scope functions. It was used during the setup procedure of the signals. I decided to extract it to a separate function because it seems unnecessary. If you want to sync the time of the control with the start of the recording I would do something similar to this:
from datetime import datetime, timedelta
...
intervall = 3000
...
recording_start_time = datetime.now()
reading_counter = 0
for package in con.real_time_readings(selected_signals, duration, interval):
    signal_readings = package.get_data()
    readings_per_signal = len(signal_readings[0].data)
    for j in range(readings_per_signal):
        reading_time = recording_start_time + reading_counter * timedelta(microseconds=interval)
        .....
        reading_counter += 1

I haven't tested this code but it should work.

Will you merge the scope branch with the master branch soon? or more work still to be done?

It would be easier for my work colleagues to use the scope functions if they are integrated into the master branch.
Thank you!

version 1.1 has just been released :-)
If it is ok with you, please close this ticket because the initial implementation is done. Feel free to create a new one if there is anything else!

Commenting on that quoted part in one of your replies:

first, regarding your comment with connection to the TNC640: I was referring to the TNCopt software. I used it to connect to a programming station while capturing the TCP packages. Up to a certain point I could follow the data but then some encrypted password was used. This is similar/the same as when recoding the connection between TNCscope and a TNC640. Until we manage to reverse the encryption I don't see any way to make it work.

Did you find any way to decrypt the data in TNC640?
Could you try any AI assistance like Chatgpt, google bard, or Microsoft Bing AI?
Probably one of them may help!


text:
Improve form test coverage

These changes bring the Form coercions to 100% mutation coverage

Ah looks like I need to rebase these changes

Could rebase this? I merged in new JSON types 30 seconds before you sent this PR and we have conflicts.

Could rebase this? I merged in new JSON types 30 seconds before you sent this PR and we have conflicts.

already on it :)

@solnic rebased

The earlier builds here fail because I use git push-each and travis does not checkout specific commit SHAs when github triggers a build on their platform. As a result the earlier commits here are actually the results of builds that were fixed when I rebased and force pushed recently.
tl;dr sorry about the earlier failing commits I think you can safely ignore them

authors: backus solnic

repo: dry-rb/dry-types


text:
Need to decide on intent of the Makefile

This conversation started in #89 . What features do we actually want to have in the Makefile for the final "release"? Should we still have code to download new data?

I think I got a little lost in this conversation during class. I think it would be good for reproducibility purposes to show (either an outside user or ourselves at a later date) exactly what we did to download the data. So having a command that does this is good.
I think we should just be clear what that command is doing (downloading new data that is similar to what we used but not exactly the same) and have a record of the actual data that we used so that our visualizations are backed up. This way a user can download new data if they want, see how we originally downloaded the data, but still see the exact csv's we used at the point in time the visuals were made.
Is this along the lines of what y'all were thinking?

Closed in class conversation and by #94

authors: PhilipMathieu sophiacofone


text:
nbqa still reports bad cells

Contrary to what the documentation of nbqa says, cells with wrong syntax or with line magics don't seem to be ignored but are instead passed to allowed, which then, for some reason, reports a disallowed use of built-in function hash() instead of reporting a syntax error.
Once the default configuration allows the hash function in unit 8, these messages no longer appear.

To be clear: with nbqa, allowed is working correctly: it checks all valid cells instead of skipping the whole notebook because of a syntax error. It's just annoying to have those meaningless messages about hashing.

I have had a look into this...
A bit of experimenting shows that when using nbqa and allowed on an example .ipynb file say 02_4_assignments.ipynb, the "source" that is passed to allowed is basically this:
# %%NBQA-CELL-SEP05dc98
year = 2020
birth = 2010
age = year - birth

# %%NBQA-CELL-SEP05dc98
year = 2020
year                # not last line, so it isn't displayed
birth = 2010
age = year - birth
age                 # last line, so it's displayed

# %%NBQA-CELL-SEP05dc98
year = 2020
print(year)
birth = 2010
age = year - birth
age

# %%NBQA-CELL-SEP05dc98
current_year = 2020
year_of_birth = 2010
age = current_year - year_of_birth
print(age)

# %%NBQA-CELL-SEP05dc98
hash(0xEDEEF5BF)

# %%NBQA-CELL-SEP05dc98
currentyear     # current_year is defined, currentyear isn't

# %%NBQA-CELL-SEP05dc98
hash(0xF189E912)

# %%NBQA-CELL-SEP05dc98
hash(0xB919759F)

# %%NBQA-CELL-SEP05dc98
left-associative

# %%NBQA-CELL-SEP05dc98
# replace this by your code

After a superficial look at the nbqa source, the cause of our issue can be traced to this line .  Don't know what we can do about it though, we might just have to live with the limitation. I have experimented with just replacing the hash with an empty string and it did still work for our purposes but would incapacitate the whole "cell magic" handing system (and god knows what else...).

Great detective work, thanks! Given that you have implemented your own suggestion, I'll close this issue when PR #16 has been merged.

authors: densnow mwermelinger

repo: dsa-ou/allowed


text:
Trailing commas in arguments are invalid for binding patterns or rest parameters

The current version of dprint, when allow trailing commas in arguments, adds them in syntatically invalid locations.  For example:
function foo(
  a: A,
  b: B,
  ...c: C
): void { }

Cannot be reformatted to:
function foo(
  a: A,
  b: B,
  ...c: C,
): void { }

Ref: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Trailing_commas#Illegal_trailing_commas
Ref: #153

Ugh! I remember reading this on the weekend and then forgetting about it.
Thanks @kitsonk! Fixed and published in 0.9.6. Also it was missing trailing commas in object patterns so that's fixed now too.
See test file for illegal trailing commas here to make sure I didn't miss something: https://github.com/dsherret/dprint/blob/9e04af06266c98ad0d392237e40cc007247b0f5b/packages/rust-dprint-plugin-typescript/tests/specs/common/configuration/IllegalTrailingCommas.txt

authors: dsherret kitsonk

repo: dsherret/dprint


text:
Parallelize rust cli

It would be nice to parallelize formatting of files on the rust cli. That would speed things up a lot.

Formatting Deno's code took me 1.7s previously and now it's taking <500ms after this change.


text:
Any way to make it multiroom?

Is there any way to install it on multiple pis to make it play multiroom in sync?

You could set up multiple pi's running raspotify and then use this method to set it up as a multiroom system I'd presume, but I must say that I haven't tried it. I have multiple pi's laying around, so I might test it if I'm bored sometime.

I can not seem to find any of my pis with raspotify in the Google Home app, any other ideas?

U can use Snapcast(github) as combination with librespot. Works pretty good here.

Yes, but then it is not natively supported inside the Spotify client

yes it is, trough Librespot's own Discovery Feature. The Snapcast-Server just grabs the audio from librespot and sends it to its Snapcast-Clients.  👍

Then I've gotta try that

@derWeihnachtsmann Do you maybe have a short explanation of how to use raspotify with snapcast? I couldn't find any documentation for this specific combination - or is it just install-and-forget? Raspotify itself is working like a charm here.

I've got my raspberry Pi broadcasting to FM using a small USB to FM dongle. Then I just tune in the house's radios to that station and I have multi-room. Sound quality is very good.

Sorry for the very very late answer, just put SNAPSERVER_OPTS="-d -s spotify:///librespot?name=snapcast&bitrate=160" in your /etc/default/snapserver file.

Hey found this issue searching a way to use Raspotify across several RPIs. already configured to use a master Mopidy. I changed Raspotify configuration file from :
#BACKEND_ARGS="--backend alsa"
to :
BACKEND_ARGS="--backend pipe --device /tmp/snapfifo"
allowing to use both Mopidy and Raspotify on my RPI network.

How did you get Snapcast running on the pi?

@5AMsan , can you explain a bit more what have you done ? I can't make it working
If I try to put this :

SNAPSERVER_OPTS="-d -s spotify:///librespot?name=snapcast&bitrate=160" in your /etc/default/snapserver file

I have no sound when Mopidy is working, only when Raspotify is working.
And if I use your command, I don't have any Spotify sound, and it bugs (sometimes disappears in my Spotify devices when I'm connected)

Yes thanks you a lot, it works !
(Je peux peut-être te parler en français, ça serait plus simple si ça te convient!)
Il y a néanmoins un petit soucis avec Raspotify. La musique se lit en accélérée, j’entends par là qu’elle va plus vite que la normale, as-tu été confronté également à ce problème ?
Merci beaucoup en tout cas!

Le 16 oct. 2018 à 12:24, SAMsan notifications@github.com a écrit :
@dmckminard https://github.com/dmckminard , I assume you didn't setup mopidy to output audio through snapcast pipe but you did in librespot using SNAPSERVER_OPTS config.
I did not change SnapServer config :
defaults file for snapserver
start snapserver automatically?
START_SNAPSERVER=true
Allowed options:
-h, --help                          Produce help message
-v, --version                       Show version number
-p, --port arg (=1704)              Server port
--controlPort arg (=1705)           Remote control port
-s, --stream arg (=pipe:///tmp/snapfifo?name=default)
URI of the PCM input stream.
Format: TYPE://host/path?name=NAME
[&codec=CODEC]
[&sampleformat=SAMPLEFORMAT]
--sampleformat arg (=48000:16:2)    Default sample format
-c, --codec arg (=flac)             Default transport codec
(flac|ogg|pcm)[:options]
Type codec:? to get codec specific options
--streamBuffer arg (=20)            Default stream read buffer [ms]
-b, --buffer arg (=1000)            Buffer [ms]
--sendToMuted                       Send audio to muted clients
-d, --daemon [=arg(=0)]             Daemonize
optional process priority [-20..19]
--user arg                          the user[:group] to run snapserver as when daemonized
USER_OPTS="--user snapserver:snapserver"
#SNAPSERVER_OPTS="-s pipe:///tmp/snapfifo"
But I configured both Mopidy and Raspotify to output through SnapServer pipe.
My (relevant) Mopidy conf (/etc/mopidy/mopidy.conf):
[audio]
output = filesink location=/tmp/snapfifo
And the relevant Raspotify conf (/etc/default/raspotify):
BACKEND_ARGS="--backend pipe --device /tmp/snapfifo"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/dtcooper/raspotify/issues/30#issuecomment-430185134, or mute the thread https://github.com/notifications/unsubscribe-auth/AmyazQg8kY5qRbRIJXTnZh8fXtfHhkT9ks5ulbP1gaJpZM4P6HF5.

I'll keep it english for GitHub readers visiting from search engine if you don't mind.
Never had pitch issues on Raspotify stream but I read about slower speed while playing on some devices :/
#129

No problems ! Yes, I've already seen that, I'm going to search and post if I found something!

Snapcast is a seperate server, which simply plays on all running snapcast clients, correct?
What if I would like to group my raspotify server with my Chromecast Audio in my kitchen, for example? Any ways of making raspotify, librespot or similar show up in my Google Home application, so I could do that?
I got a spare Pi so i could go for a dual pi setup, along the snapcast option, but i'd like to use the chromecast in my kitchen for stuff like soundcloud, radio apps etc.

Hi
Is it possible to send multiple stream (multiple raspotify ?) to snapcast ?
I want to be able to listen my spotify music through connect and my wife too through her own account.

So if inside the config file of raspotify I specify account, player will only be avaible from spotify connect for this account ?
Then, can I set 2 instance of raspotify for each player to have 2 streams inside snapcast ? (maybe I don't fully understand how it works)

Hey all, thanks for the magic line:
BACKEND_ARGS="--backend pipe --device /tmp/fifofilenamegoeshere"
Even though this is closed, I'm adding some details that might potentially help others!
I have connected raspotify to forked-daapd for a multiroom (wifi/ airplay compatible) solution.  I like raspotify (spotify connect) better than the pseudo-integrated spotify client in forked-daapd.  Here is how it works:

create a fifo handler in a directory that is automatically indexed by forked-daapd with 'mkfifo spotifyfifo'.
Load raspotify and add the magic line above with /home//spotifyfifo to /etc/default/raspotify.  Restart raspotify (sudo systemctl restart raspotify).
load spotify, point to your server, and it magically takes over forked-daapd to play.

(Note that you can create a forked-daapd airplay "repeater" in the same way with shairport-sync.)
As a side note, playing spotify connect fifo and airplay sink at the same time creates an unhappy race condition.

@jshep321 I tried this as user pi on a raspbian setup, but can’t get it to work.
Would the device be /home/pi/spotifyfifo ?
When I try the raspotify ”speaker” on Spotify I just get stuck on ”connecting”

Well the device needs to be in your "music" directory from your forked-daapd.conf file.  The default setting is pasted below.
       # Directories to index        directories = { "/srv/music" }
Unless your music files, remote files, etc. are in /home/pi/ then it won't index them.  Or you can add /home/pi to the conf file, but that is a bit ugly (using your homedirectory that is).

I've got my raspberry Pi broadcasting to FM using a small USB to FM dongle. Then I just tune in the house's radios to that station and I have multi-room. Sound quality is very good.

Is this legal? 🤔

I've got my raspberry Pi broadcasting to FM using a small USB to FM dongle. Then I just tune in the house's radios to that station and I have multi-room. Sound quality is very good.

Is this legal? 🤔

In the US, probably.  Assuming you stay off of 87.7-87.9 and power+antenna gain is limited (measured in field strength), then yes.
https://recnet.com/unlicensed
With a cheap USB dongle, you're likely OK, but I am not a lawyer. :)

@febs, I think it's ok - it's very low power. It's just receivable in the back and front yards, but barely from the street. I don't think even my next door neighbours would notice any interference.

mkfifo spotifyfifo

Hey @jshep321,
I am trying to follow your guide to use raspotify together with forked-daapd
Here is a part of my  /etc/forked-daapd.conf
##############################################
Library configuration
library {
# Name of the library as displayed by the clients (%h: hostname). If you
# change the name after pairing with Remote you may have to re-pair.
name = "My Music on %h"
    # TCP port to listen on. Default port is 3689 (daap)
    port = 3689

    # Password for the library. Optional.

password = ""
    # Directories to index
    directories = { "/srv" }

##############################################################
I created fifo handler spotifyfifo in  directory /svr
I added
BACKEND_ARGS="--backend pipe --device /srv/spotifyfifo"
to /etc/default/raspotify
restareted both  services  raspotify and forked-daapd
From Spotify I point at raspotify
In forked-daapd I can see spotifyfifo as a source, but cannot play it.
I am afraid that raspotify  is not streaming the output to spotifyfifo.
Can you see anything wring ion my approach?
If not, do you have any idea for how I can check what went wrong?
Thanks,
Ghassan

Hi,
Everything looks correct to me.  Maybe this is a permissions issue?
Also, make sure the existing BACKEND_ARGS line is commented out or deleted.
#BACKEND_ARGS="--backend alsa"
BACKEND_ARGS="--backend pipe --device /home/pi/music/spotifyconnect"

I have my music directory inside the user home directory (/home/pi/music), which is where my raspotify fifo is (as you can see above.
You can either try to replicate this in your home directory and/or make sure that the permissions on these are writable by all (or change ownership with chown).
sudo chmod ugo+rw /srv/spotifyfifo and then restart.

Hi,
Everything looks correct to me. Maybe this is a permissions issue?
Also, make sure the existing BACKEND_ARGS line is commented out or deleted.
#BACKEND_ARGS="--backend alsa"
BACKEND_ARGS="--backend pipe --device /home/pi/music/spotifyconnect"

I have my music directory inside the user home directory (/home/pi/music), which is where my raspotify fifo is (as you can see above.
You can either try to replicate this in your home directory and/or make sure that the permissions on these are writable by all (or change ownership with chown).
sudo chmod ugo+rw /srv/spotifyfifo and then restart.

Hi @jshep321,
I replicated your setup but it still doesn’t work. But now I noticed a new error in my log:
#############################################################################
pi@mediaserver:/ $ tail -f /var/log/forked-daapd.log
[2020-11-08 21:57:47] [  LOG]     main: mDNS init
[2020-11-08 21:57:47] [  LOG]     mdns: Avahi state change: Client running
[2020-11-08 21:57:47] [  LOG]       db: Configured to use database file '/var/cache/forked-daapd/songs3.db'
[2020-11-08 21:57:47] [  LOG]       db: Now vacuuming database, this may take some time...
[2020-11-08 21:57:47] [  LOG]       db: Database OK with 3 active files and 6 active playlists
[2020-11-08 21:57:47] [  LOG]   laudio: Pulseaudio failed with error: Connection refused
[2020-11-08 21:57:47] [  LOG]   laudio: Error initializing Pulseaudio: Connection refused
[2020-11-08 21:57:48] [  LOG]     scan: Bulk library scan completed in 1 sec
#############################################################################
I tried top start/Stop the Pulseaudio service but I got this error, indicated that it is not installed at all?
#############################################################################
pi@mediaserver:/ $ sudo systemctl start pulseaudio
Failed to start pulseaudio.service: Unit pulseaudio.service not found.
#############################################################################
Do I need to install it? If so what fir and how do I do that?
Thanks  :)

Make sure your audio { section in /etc/forked-daapd.conf has no local pulse enabled.  Mine looks like this:
# Type of the output (alsa, pulseaudio, dummy or disabled)
#       type = "alsa"

Make sure your audio { section in /etc/forked-daapd.conf has no local pulse enabled. Mine looks like this:
# Type of the output (alsa, pulseaudio, dummy or disabled)
#       type = "alsa"

Mine is already like this, and I think the issue is in the input stream and not the output.
can I some how verify that the output stream from raspotify is genereted correctly
any other ideas?

Make sure your audio { section in /etc/forked-daapd.conf has no local pulse enabled. Mine looks like this:
# Type of the output (alsa, pulseaudio, dummy or disabled)
#       type = "alsa"

One more thing
I noticed in the log: "No Spotify refresh token found"
Do I need such a token?
I thought it not necessary in this setup as daapd just streams  pipe no matter whether it is generated from Spotify or something else.
right?
If I do need the Spotify token anyway, how do I get it?

Make sure your audio { section in /etc/forked-daapd.conf has no local pulse enabled. Mine looks like this:
# Type of the output (alsa, pulseaudio, dummy or disabled)
#       type = "alsa"

Hi @jshep321
just wanted to tell you that I just managed to get it working now 👍
I made various things amongst which:
I moved my library files to a new location ( home/pi/mymusic)
made sure all folder names are low case
installed Pulseaudio
and the last thing I did was to regrant ugo+rw privileges to spotifyfifo
Next step is to try to enable streaming to Bluetooth speakers
Thanks for your help :)

congrats!

authors: 5AMsan G-Christ Hydro8 bitttttten christianfl derWeihnachtsmann dmckminard febs henrikklarup hessius jshep321 markheloking mikkelrask wall0159

repo: dtcooper/raspotify


text:
c++ header include issue

Hi! I'm having issues with including a c++ header file and I'd appreciate your help :)
#[cxx::bridge]
mod ffi {
    extern "C" {
        include!("cpp/wrap/wrap.h");
        type Spref;
        fn new_spref(name: &str) -> UniquePtr<Spref>;
    }
}

Note the "src/cpp/wrap/wrap.h"
error: couldn't read src/cpp/wrap/wrap.h: No such file or directory (os error 2)
 --> src/lib.rs:4:9
  |
4 |         include!("cpp/wrap/wrap.h");
  |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |

Here's my builld.rs
fn main() {
    cxx_build::bridge("src/lib.rs")  // returns a cc::Build
        .file("cpp/wrap/wrap.cpp")
        .include("cpp/lib")
        .flag_if_supported("-std=c++14")
        .compile("cpp-wrap");

    println!("cargo:rerun-if-changed=src/lib.rs");
    println!("cargo:rerun-if-changed=cpp/wrap/wrap.h");
    println!("cargo:rerun-if-changed=cpp/wrap/wrap.cpp");
}

If I change the path to something like:
include!("../cpp/wrap/wrap.h")

I'll get a different error:
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-shared" "-I" "/home/alex/Sandbox/rust/cxx_test/target/cxxbridge" "-I" "/home/alex/Sandbox/rust/cxx_test" "-I" "cpp/lib" "-Wall" "-Wextra" "-std=c++14" "-o" "/home/alex/Sandbox/rust/cxx_test/target/debug/build/cxx_test-38d75340743cc24c/out/src/lib.rs.o" "-c" "/home/alex/Sandbox/rust/cxx_test/target/debug/build/cxx_test-38d75340743cc24c/out/src/lib.rs.cc"
cargo:warning=/home/alex/Sandbox/rust/cxx_test/target/debug/build/cxx_test-38d75340743cc24c/out/src/lib.rs.cc:1:10: fatal error: ../cpp/wrap/wrap.h: No such file or directory
cargo:warning= #include "../cpp/wrap/wrap.h"
cargo:warning=          ^~~~~~~~~~~~~~~~~~~~
cargo:warning=compilation terminated.
exit code: 1

Thx,
Alex

I think this means cxx::bridge is not being invoked. Does your Cargo.toml have cxx under [dependencies] and does it have edition = "2018" under [package]?

Oh you're right, I only added cxx-build but totally forgot to add cxx itself. It's now compiled. Thanks @dtolnay

I stumbled upon another related issue:
I created a new cargo bin project alongside the cxx_test (which is a lib crate)
Cargo.toml:
[dependencies]
cxx_test = {path = ".."}

Building this gives me an error:
running: "c++" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-g" "-fno-omit-frame-pointer" "-m64" "-shared" "-I" "/home/alex/Sandbox/rust/cxx_test/consume/target/cxxbridge" "-I" "/home/alex/Sandbox/rust/cxx_test/consume" "-I" "cpp/lib" "-Wall" "-Wextra" "-std=c++14" "-lcxxlib" "-o" "/home/alex/Sandbox/rust/cxx_test/consume/target/debug/build/cxx_test-b3a77f1cdae677d0/out/src/lib.rs.o" "-c" "/home/alex/Sandbox/rust/cxx_test/consume/target/debug/build/cxx_test-b3a77f1cdae677d0/out/src/lib.rs.cc"
cargo:warning=/home/alex/Sandbox/rust/cxx_test/consume/target/debug/build/cxx_test-b3a77f1cdae677d0/out/src/lib.rs.cc:1:10: fatal error: cpp/wrap/wrap.h: No such file or directory
cargo:warning= #include "cpp/wrap/wrap.h"
cargo:warning=          ^~~~~~~~~~~~~~~~~
cargo:warning=compilation terminated.
exit code: 1

I guess this has something to do with include! uses a relative path of the cxx_test crate. Is there a way to fix it?

Adding .include(".") to the build script fixes the problem.
I wish there was more examples and explanation of how things work. In particular it' be very helpful to see an example of how to write a simple binding to a c++ shared library.

Glad you got it working! As you noticed, the Cargo workflow is not well trodden yet. So far I have mostly been developing using Bazel, and using Buck at work. We are looking at making the Cargo workflow more robust in #214 and of course documenting it better in #179.

authors: alexxbb dtolnay

repo: dtolnay/cxx


text:
Set up C++ linter or static analysis in CI

I haven't done a C++ project before --- is there a good linter or static analyzer that we should be running on include/cxx.h and src/cxx.cc in the GitHub Actions jobs?

I'd argue that clang-tidy is one of the more up-to-date/complete/modern ones.
A set of checks also need to be enabled. The default ones probably are not enough. I recommend at least modernize-*, clang-analyzer-*and cppcoreguidelines-*.
I can have a look if you think clang-tidy is ok.

That would be great!

authors: dtolnay iulianR


text:
add unit test for redirect.go

What this PR does:
Which issue(s) this PR fixes:

Special notes for your reviewer:
Does this PR introduce a user-facing change?:

Codecov Report

:exclamation: No coverage uploaded for pull request base (master@e9387c1). Click here to learn what that means.
The diff coverage is n/a.

@@            Coverage Diff            @@
##             master      #66   +/-   ##
=========================================
  Coverage          ?   21.43%
=========================================
  Files             ?       42
  Lines             ?     8112
  Branches          ?        0
=========================================
  Hits              ?     1739
  Misses            ?     6118
  Partials          ?      255

Continue to review full report at Codecov.

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

authors: codecov-commenter dongzl

repo: dubbogo/arana


text:
Fix string passing at interface C++ to JS

Thanks to @jraymakers that identified the problem.
There are still a few places where we pass table names or DB names, those ought to be shorter, but I will address and remove those in a separate PR, for now keeping old and new interface in, but using only the new one where we pass only malloc-ed memory around.

Should createPrepared get the same treatment? It also takes a query string.

Should createPrepared get the same treatment? It also takes a query string.

Yes, thanks. I will address those in a separate PR, I think this still makes sense as-is.

Should createPrepared get the same treatment? It also takes a query string.

Yes, thanks. I will address those in a separate PR, I think this still makes sense as-is.

Separate PR is fine. But note that createPrepared is also an important call for us.

I am onto that.

This is minor, but a couple of the C functions have unused "script" arguments:

duckdb_web_pending_query_poll
duckdb_web_pending_query_cancel

Follow up is here: https://github.com/duckdb/duckdb-wasm/pull/1906

authors: carlopi jraymakers

repo: duckdb/duckdb-wasm


text:
Fix to right compression in script/extension-upload

Fixing an earlier mistake of mine. This should really be abstracted away, to fix those things properly once, but anyhow, still better to have it in a working version.

Is this still necessary? If so, could you merge with main?

File is gone, has been unified with the one in duckdb/duckdb repo.

authors: Mytherin carlopi


text:
[Feature request] Long press over image => open menu

When long press over image, open menu to allow save image to gallery, share image, share image URL to the app of you want to.

Thanks for your request. Saving an image is currently in progress, it will be out soon. We will also add share functionality in the future.

authors: huuhaa subsymbolic

repo: duckduckgo/Android


text:
[Bug] Search bangs with special letters

Describe the bug
The bangs break (the ! symbol) in the search bar doesn't work if you use words that end with the letters ä, â, ã, å, à, ȁ, á, â, ó, ò, ö, ô, õ, ø, œ, ō
How to Reproduce
Go to the search bar in the mobile app and search any word that ends with the letters mentioned above and try to use any of the search Bangs (for example bestå!g or bestå!a)
Notice that you will not be redirected to the specified search Bangs
This problem also happens in other OS and in the desktop version
Expected behavior
The Bangs break (the ! symbol) should be recognized in the use of other language letters
Environment
- DDG App Version:
- Device:
- OS:

Hey @matthernet after seeing your description of the bug, I have to say you might have misunderstood how the bangs work.
The syntax of bang search is: (say for Wikipedia) '!w '
ex: "!w sachin tendulkar"  gives you the Wikipedia page of Sachin Tendulkar.

Hi @VISHNUONE8 fhanks for the answer and sorry for the confusion, I'll use the search fringe before the indication


text:
[Bug] Developer forgot to include changelog in releases

Describe the bug
I've noticed the past several (perhaps more) releases have had no change log available. As this is somewhat of a convention for open software, or really any software that purports to stand for the members of the public that need their services, I respectfully request that change logs be included with all current and future releases.
Users deserve better than "Bug fixes and improvements"
How to Reproduce
Go to releases page and see thee is no change log
Expected behavior
See changes applied.to this release version
Environment
- DDG App Version:5.194.0
- Device:any android
- OS: any

No change:
5.195.0
Latest
What's new in this release?
Bug fixes and other improvements

@anikiki did you mean to close this as completed when it hadn't been addressed, or simply to dismiss my concern?

@s38b35M5 Our GH release notes follow what we publish on the Play Store. We don't have any immediate plans to change that.

Where can users find the actual release notes and changelog? Is it that wild to want to know what is being changed?

@aitorvs @anikiki can you please point me to where you have the changelog and release notes?

As a user of this app, finding a real changelog is important to me. The refusal to include changes or even a link to the changes is one thing, but now the changelog is being abused to include advertisements of premium features, and still no trace of any changes between versions.
@anikiki @aitorvs can you please -- even if you insist that these ads are great, and you need not list actual changes here on GH -- can you PLEASE direct me to the actual changelog and release notes?


text:
Tweak open source documentation

Task/Issue URL: https://app.asana.com/0/856498667320406/1107787706804409
Tech Design URL: N/A
Description:
Update README and contributions files to match iOS tweaks.

Internal references:
Software Engineering Expectations
Technical Design Template

@bwaresiak over to you for review.

Thanks for the review :)


text:
Replace deprecated animate() method

Task/Issue URL:
Description
Steps to test this PR
Feature 1

[ ]
[ ]

UI changes

Before
After

!(Upload before screenshot)
(Upload after screenshot)

#4884  👈
develop

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @nalcalag and the rest of your teammates on  Graphite


text:
기존 린트와 중복되는 린트 구현 제거

detekt 와 ktlint + compose rules 와 중복되는 린트 구현들이 꽤 보임
추후 현존하는 린트 목록을 공부하여 중복되는 린트 구현을 없애야 함
Reference

detekt rules
ktlint rules

https://github.com/chrisbanes/tivi/pull/1012

포기
#400

repo: duckie-team/quack-quack-android


text:
Draft 1

flowchart LR
  B --> I --> P --> O --> E
  B(("Begin"))
  I[/"x, y"/]
  P["z = f(x,y)"]
  O[/"z"/]
  E(("End"))

$$\tag{1}
f(x,y) = x + y
$$
$$\tag{2}
f(x,y) = x - y
$$
$$\tag{3}
f(x,y) = xy
$$
$$\tag{4}
f(x,y) = \frac{x}{y}
$$
$$\tag{5}
f(x,y) = x^y
$$
$$\tag{6}
f(x,y) = \sqrt[y]{x}
$$

Insert to content as f8bbd93.

repo: dudung/snippet


text:
Change error code for super in a class property based for <= Es5

https://github.com/dudykr/stc/blob/94a2b2090d154669348b75f1a40d0899fd90c8a4/crates/stc_ts_type_checker/tests/conformance/classes/members/instanceAndStaticMembers/typeOfThisInStaticMembers9.ts#L8
The expected error is different for Es5.
See Es5 and Es6
ES5:
============================================================
TS2660

  x SuperCanBeOnlyReferencedInDerivedClass {
  |     span: Span {
  |         lo: BytePos(
  |             130,
  |         ),
  |         hi: BytePos(
  |             135,
  |         ),
  |         ctxt: #0,
  |     },
  | }
   ,-[$DIR/tests/conformance/classes/members/instanceAndStaticMembers/typeOfThisInStaticMembers9.ts:7:1]
 7 | class D extends C {
 8 |     static arrowFunctionBoundary = () => super.f + 1;
   :                                          ^^^^^
 9 |     static functionExprBoundary = function () { return super.f + 2 };
   `----

============================================================
1 unmatched errors out of 6 errors. Got 1 extra errors.
Wanted: [RefError { line: 8, column: 48, code: "TS2340" }]
Unwanted: [(8, "TS2660")]

I'm on it

Thanks!

repo: dudykr/stc


text:
Fixed OneDrive selection in the sidebar

Closes #559.

Bug still not fixed.

Bug still occurs in Files UWP v0.7.8

@BlaT2512 @tsvietOK The issue isn't solved completely, but this at least fixed one of the causes.

authors: BlaT2512 tsvietOK yaichenbaum


text:
Smiley

Faces and Jerseys

Whoa extra stuff!

New stuff is live in BBGM/FBGM now!

repo: dumbmatter/facesjs


text:
Translate spellbook/index.md

Translate spellbook/index.md
翻译了Spellbook/index.md
这一页信息量有点大。
谢谢大家审核及修改。

多谢帮忙校对修正

repo: duneanalytics/docs


text:
🛑 Mention Bot is down

In 5469d87, Mention Bot (https://backend.isbotdown.com/bots/mentionbot) was down:

HTTP code: 200
Response time: 151 ms

Resolved: Mention Bot is back up in a43ca7e.

repo: durof/status


text:
🛑 Mention Bot is down

In 4ec5be5, Mention Bot (https://backend.isbotdown.com/bots/mentionbot) was down:

HTTP code: 200
Response time: 152 ms

Resolved: Mention Bot is back up in 4eafbce.


text:
WIP feat: support OpenAI organization-id

#216

Yeah I think we should support it in the API only for now through extras vs credentials given that it’s not asked a lot.
Otherwise people might get scared by the extra setting I fear

wdyt?
I propose we start with extras (hidden) and then see if a full provider config is needed / useful

Ok to move to extras @spolu !

@spolu do we want to document somewhere openai_user and openai_organization_id ?

@fontanierh no need to to document for now IMHO let's just follow up on the Issue once I deploy next :+1:

authors: fontanierh spolu

repo: dust-tt/dust


text:
Remove nested buttons in Tooltips and Popovers

Description

Fix #8012
Nested buttons cause console errors in dev: hydration-error-info.js:63 Warning: validateDOMNesting(...): <button> cannot appear as a descendant of <button>.

Risk
Deploy Plan

Deploy an alpha of sparkles

Note: Tooltips and Popovers may result in nested buttons because TooltipTrigger and PopoverTrigger contain a button, this is quite specific and most other components do not follow the same pattern.
Specifically, I checked:

Input
Separator
Label


text:
Running interactive shell scripts

I do have a shell script that may need to prompt for password in some cases.
Would it be possible to run the shell script interactively? Is there a switch?
Also it would be helpful to know if a script failed to execute successfully. It may be my lack of knowledge about ControlPlane but my impression is that there is zero feedback regarding execution of shell scripts. We don't know if they fail to run, or even missing, if they are successful or if they are stuck running endlessly.

ControlPlane won't support interactive scripts. What you want is to build an expect script around the script in question if you can't modify the shell script.
If I remember correctly a script that exits with a status of 0 (exit 0) will be reported as a success to ControlPlane and ControlPlane will report success or failure properly.

authors: dustinrue ssbarnea

repo: dustinrue/ControlPlane


text:
Add testcafe-community & Edit TestCafe

Add the new testcafe-community plugin which is a fork from the original plugin with community gathered rules.  It extends the original plugin which only provided the global environment variables for TestCafe. The original has not seen an update since 2016 and is less prepared to support PRs for additional rules.  Therefore, I moved the original TestCafe down to the globals category since that is all it provides from the actual implementation index.js.
Thanks again for this awesome repo!

Thanks very much for the PR!

repo: dustinspecker/awesome-eslint


text:
跟prop-types的检验有关 一大堆的warning

发生如题的warning
main.js:14317 Warning: Failed propType: Calling PropTypes validators directly is not supported by the prop-types package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types
好像跟prop-types的检验有关 一大堆的warning   这个是什么原因呢

按照后面的github地址配置了也不行

依赖的原因，除了等第三方库自己升级外没得救~ 无视这个warning就好，反正是兼容性的提示

第三方库导致的warning选择无视，自己项目代码中的建议修改下。

下个版本，PropTypes会从react核心库里移动到一个独立的proptypes库里
这个版本无视就好了

authors: Slngle nalantianyi vipcxj yautah

repo: dvajs/dva


text:
前后端分离遇到的一些问题

我这边的框架大概是这种写法
<App>{login && children || (<Login />)} </App>
所有的组件都是放到 App 的 children 里面。
每个 route 的初始化流程都是  app init  -> child int  。这两个 init 都是通过调用  subscriptions 的 setup 事件。这两个 init 属于不同的 namespace
下面我遇到了几个问题：

app init 跟  child init 执行实际上好像没有先后关系。实际上我是想 app init 成功之后，再去执行 child 的init

app init 不成功, 需要 login 的时候，显示 login , 并执行相关逻辑 。 login 成功之后， child 可以显示，但是没有数据。 因为在  1 步骤里面 , child init 是失败的。 我不知道，该怎么让 login 成功之后，去执行 child 的 init

我的菜单，或者链接，基本上都是用的 history.push 操作，没有用 Link 。这样发现一个问题，点击浏览器后退的时候， 上一个页面没有刷新，如何能让页面强制刷新。因为，我当前 route 增加了一个申请，后退是到了 申请列表的 route ，我想在这个列表的 route 中显示新数据

从上面 3 个问题，基本都有一个问题，就是如何跨 namespace 调用 action。而且是不知道，你要调用的那个 action 属于哪个 namespace 的前提下。

以前前后端没分离前，页面跳转，有时候是通过后端直接 redirect 。现在我是通过后台反馈 模拟 302, 303 来指导前端去进行跳转。跳转一般是在  effects 里面才能决定的，但是 effects 里面没有 history 。后来，我直接用的 window.location.href 跳转。这种场景，有没有什么好的解决方案？

通过前端的跳转，（不是route页面的跳转），我发现一个问题，就是很容易出现 net::ERR_BLOCKED_BY_CLIENT 错误。网上查了很多，包括去 stackoverflow ，基本上都是说 chrome 插件的问题。我机器上也确实装了很多插件。但是我把所有的插件都禁用。基本也解决不了这个错误。这个是我在做 微信公众号 oauth2 验证时遇到的问题。另外，一个现象是，使用 hash history 发生 net::ERR_BLOCKED_BY_CLIENT 错误的次数远大于  browser history 。

延续6，oauth 验证的大致步骤是  本地 -> 远程 -> 本地。有时候本地跳远程，要多刷几次。远程跳本地成功之后，发现本地的 app 所有的 init 都不执行不管是 app init 还是 child init 。很无语 ...

还有好多问题，都是通过各种很烂的方式，暂时弥补过去了。
这里想请大神们给小弟一点指引 !

1.不清楚。
2.我并没有采用这种方式，登录成功后除了把用户信息放入model里，还把拥有的所有权限放到了localStorage里，每次访问路由时我都会拦截去判断他有没有这个路由的权限，如果实际上后端没有这个权限了，后端会返回401，我前端就提示未有权限或者登录失败，并用window.location.href 跳转到登录页面。
3.菜单用的antd，都是Link。
4.调用其他action，我的例子，在namespace为user的model里调用namespace为system里的.
yield put({ type: 'system/result',payload:{response, namespace:'user'} });

window.location.href  这种方式可以的啊！给302页面做一个登录跳转连接之类的感觉没啥影响吧！
6.没出现过。
7.不懂，我的是每次访问路由组件去localstorage判断，然后用户去后端取数据时服务端判断，没权限对应处理。

可能在上级组件中不知道下级组件是什么，也不知道它的model是什么，可以反过来在下级组件的model里面take上级的某个action

我也碰到楼主类似的问题。
1、执行顺序应该跟模型加载顺序有关。
2、我没有在setup里面发起请求申请，在组件的componentDidMount里面发起，可以保证登录后再执行child init
整个流程是
打开页面 -> 获取缓存token(后台/localstorage) -> 根据token获取账号
a: -> 成功 -> 执行初始请求
b: -> 失败 -> 呈现登录界面 -> 输入账号密码 -> 成功 -> 执行初始请求

让login操作更新child组件会用到的state, child会更新的

用高阶组件的componentWillReceiveProps方法

import { routerRedux } from 'dva/router';

# in effect
yield put(routerRedux.push('anyPathYouLike'));

@grunmin 谢谢，学习了

如何判断页面加载完成？
然后当页面完成后执行一些方法

在 dva 框架中 如何调用 componentDidMount 方法呢？

authors: grunmin liekkas longzhaobi wangfengcool xufei zjxpcyc


text:
Typos

A few more I noticed while finishing the tutorial.

Thanks!

authors: dvanhorn namin

repo: dvanhorn/redex-aam-tutorial


text:
Fixed - RuntimeError: FlashAttention only supports fp16 and bf16 data type

The fix is copied from here .
Below are the information and solutions I went through.
https://github.com/huggingface/peft/issues/790
https://github.com/huggingface/transformers/issues/26066

Hi @weicheng113 ,
Many thanks for your contribution. Would you please tell me that what are the versions of your peft, flash-attention, and transformers, and deepspeed? Are there any requirements for the versions of them?
Regards,
Yukang Chen

Hello Yukang,
I realized the error could be because I used a different versions of lib than the one used in your official repo. Sorry for that. My library versions are below. Most of them are the latest versions I think. I will close the pull request.
https://github.com/weicheng113113/LongLoRA/blob/experiment/pyproject.toml

Hi @weicheng113 ,
I think you could open an PR to fix the library version in requirement.txt. I will merge it into the main branch. In this way, your name would be included in the contributors, to show my thanks for your contribution.
Regards,
Yukang Chen

Thanks @yukang2017 for the opportunity. I will have a try. Thanks.

repo: dvlab-research/LongLoRA


text:
🛑 Matrix Homeserver is down

In ad55c44, Matrix Homeserver (https://matrix.itclowd.de/_matrix/federation/v1/version) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Matrix Homeserver is back up in 1872682 after 1 hour, 12 minutes.

repo: dwaris/itclowd-uptime


text:
Revisions 26, 27

https://github.com/dwellir-public/polkadot-operator/pull/65 from dwellir-public/cleanup-const
https://github.com/dwellir-public/polkadot-operator/pull/69
https://github.com/dwellir-public/polkadot-operator/pull/63 from dwellir-public/fix-relay-relation

Not sure how many things that are in the pipe at the moment, but let's wait at least for the current open PR:s to be reosolved (https://github.com/dwellir-public/polkadot-operator/pull/66, https://github.com/dwellir-public/polkadot-operator/pull/63) before releasing the next revision.

This is likely ready for merging. Agree?

repo: dwellir-public/polkadot-operator


text:
409 report already submitted

New version. Waiting for Emily Colman to understand new status terminology.

There is a conflict on the index page. I added a link to the new error.

repo: dwp/health-core-components


text:
Add pdf page check for non-embedded links

Fixes #9

Plugin updated. Sorry for delay.

authors: dy-sh mnaoumov


text:
[Feature Request] Add seperate options for IPv4 and IPv6; Also use HTTPS instead of HTTP

Currently the default site used for getting your public IP, http://ident.me, will return a IPv6 if your ISP provides it (and if your home network has it enabled), otherwise you are provided a IPv4. While it is possible to change the URL used from http://ident.me to http://v4.ident.me to force return a IPv4, it is not possible to have both IPv4 and IPv6 be shown by Neofetch at the same time without having the user make coding changes in several places. I would like to request the ability to show both as separate options, say "public_ipv4" and "public_ipv6", in case users want one or the other or both.
Additionally, I would like to see the URL updated to use HTTPS instead of HTTP, i.e. https://v4.ident.me

Not sure if this the best way to do it (there's probably a more complex way which removes the need to duplicate code), but I essentially just renamed all public ip variables/functions to specify ipv4 and then duplicated those for ipv6. For example:
    # info "Public IPv4" public_ipv4
    # info "Public IPv6" public_ipv6

# Website to ping for the public IP
#
# Default: 'https://ident.me'
# Values:  'url'
# Flag:    --ip_host
public_ipv4_host="https://v4.ident.me"

# Website to ping for the public IP
#
# Default: 'https://ident.me'
# Values:  'url'
# Flag:    --ip_host
public_ipv6_host="https://v6.ident.me"

I actually think it's best to drop this feature altogether. I don't think neofetch should be doing network at all. Nothing prevents someone from doing: prin "Public IPv4" "$(curl .....)" in their neofetch configuration file after all.

Unless this information can somehow be determined locally...

Fair enough, I can close out the request as I do not see any way for a client to determine public IPs locally (apart from any craziness that would entail asking the modem/router what it was assigned by the ISP)

repo: dylanaraps/neofetch


text:
OS: Expand support to Debian GNU/kFreeBSD

Description
This PR extends our compatibility to Debian GNU/kFreeBSD.
Rationale

Merging of GNU in get_os() into Linux.

As I first tested this, because the uname GNU/kFreeBSD contains BSD, the $os is set to BSD for the remainder of this script. So, some utilities doesn't work as a result.
Also, a GNU/kFreeBSD (and to some extents, GNU Hurd) works the same way with Linux, so it makes sense to merge them.

Merged Local IP of BSD (and Solaris) to Linux

It turns out that GNU/kFreeBSD doesn't have ip (and the Hurd one doesn't have ifconfig). But since Linux has both ifconfig and ip, and ifconfig can be used as fallback if iproute2 somehow isn't installed, so I merged it.

The $PATH

Since when we interact with outside software we only require /usr/sbin:/usr/bin:/sbin:/bin, I've set this to prevent neofetch interacting with pacman (the game, not the package manager).
Another reason I did this is because in Debian GNU/kFreeBSD, they only have ifconfig in /sbin, I could set this to /sbin/ifconfig, but I'm not sure that other Linux/BSD/Solaris systems have ifconfig in their /sbin, and I think adding PATH="/sbin:$PATH" to the commands would be ugly. This would also remove the requirement to use /sbin in lspci and Slackware's pkgtool.

LGTM :+1:
Great stuff! :D

authors: dylanaraps konimex


text:
[Snyk] Fix for 1 vulnerabilities

Snyk has created this PR to fix 1 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):

packages/babel-helper-replace-supers/package.json

Note for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the .yarn/cache/ directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to run yarn to update the contents of the ./yarn/cache directory.
If you are not using zero-install you can ignore this as your flow should likely be unchanged.

⚠ Warning
Failed to update the yarn.lock, please update manually before merging.

Vulnerabilities that will be fixed with an upgrade:

Issue
Score

Directory Traversal SNYK-JS-SOURCEMAPSUPPORT-6112477
  170

[!IMPORTANT]

Check the changes in this PR to ensure they won't cause issues with your project.
Max score is 1000. Note that the real score may have changed since the PR was raised.
This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic

Learn how to fix vulnerabilities with free interactive lessons:
🦉 Directory Traversal

:tada: Snyk checks have passed. No issues have been found so far.
:white_check_mark: code/snyk check is complete. No issues have been found. (View Details)

repo: dylansnyk/babel


text:
User Zoom on first load Resets to Lat/Long

Reported in Discord, a mapview with lat, long, and zoom set in markup, on first load, of the user zooms to a spot, the map re-centers on the lat/long after zoom.
Here is the bug
https://cdn.discordapp.com/attachments/1027907221486579744/1126579203131850763/IMG_5959.mov
Works correctly if panning first
https://cdn.discordapp.com/attachments/1027907221486579744/1126579448649629836/IMG_5961.mov
The boolean logic that disables resetting to lat/long is apparently not being triggered by a zoom.

I am unable to recreate this bug any longer, perhaps it got fixed and not closed?

repo: dymaptic/GeoBlazor


text:
Help designing a mix of a joint with a fixture

I need to somehow implement a distance joint that is rigid (preferably with some thickness) and other bodies can collide with. I'm currently searching of possible ways to implement this and though I could get some extra opinions.
So I want to have two bodies b1, b2 that are connected as a system with a distance joint so that other bodies can collide with the joint it and interact with the system.
Making a fixture that changes shape on every frame shouldn't be a big problem (I think) but I'm not sure how this can be combined to work with the linked bodies b1, b2.
I'm working on implementing jelly/soft bodies for dyn4j, that's where this is needed.
There are some 'lower quality' solutions that I have tried and they work decently, but I was wondering if the above can somehow be implemented.
Any help appreciated.

This is a demo with the current approach I'm using: jelly.zip

The result is good enough, the only thing I don't like is that under great force two jellies can get one inside the other (partially or completely) which is not satisfactory.
Maybe there's even some other way to prevent that, less complex that making a dynamic joint/fixture.


text:
Typo in pf2 diabolic bloodline

There is a typo in the pf2 diabolic bloodline (diabolic edict power) :
Pathfinder 2e/core/class/sorcerer/bloodline/sorcerer-bloodline-diabolic
The text says Otherwise, they take a -1 penalty to related attack **roles** and skill checks. where it should states Otherwise, they take a -1 penalty to related attack **rolls** and skill checks., with rolls instead of roles
Thanks

Well spotted!
I've fixed that, it'll be released with the archetypes I'm currently working on.

see https://github.com/dyslexic-charactersheets/lib-charactersheets/pull/9

see https://github.com/dyslexic-charactersheets/lib-charactersheets/pull/9

repo: dyslexic-charactersheets/pages


text:
Responsive UI

Request details
Well...

can I pick this?

Feel free to contribute! :) This issue addresses a few problems, so remember that we prefer small changes in multiple standalone PRs rather than one big PR.

Another issue:

I've found that we're missing a font in code snippets on your platform.

It should be much more smooth like on the screen.

authors: dzikoysk sudhinm

repo: dzikoysk/reposilite


text:
AP CSA Prep

 U1 Primitive Types
Primitive type: BASIC data types in Java, representing fundamental values

*int: Represents a signed 32-bit integer value
*boolean: Represents true or false values
*double: Represents a double-precision 64-bit floating-point value
byte: Represents a signed 8-bit integer value
short: Represents a signed 16-bit integer value
long: Represents a signed 64-bit integer value
float: Represents a single-precision 32-bit floating-point value
char: Represents a single Unicode character

Reference Data types: more COMPLEX data types, hold collection of values/custom-defined entities

*String: Sequence of characters
*Array: Collection of elements of the same data type
*Class: Define custom data structures that may contain primitives, strings, enums, wrapper classes, or arrays
*Collection Framework: Object that hold references to other objects.

Hybrid data types:

*Wrapper classes: Represents primitive data types as objects (if want to store in collection)
Enums: Represents fixed set of constants that are unchangeable.

Scanner is java utility class for console input + System.out.println(""); for output
 U5 Menu Class

Class is template for an object. Object is instances of a class

Exam questions
4 types
1. Methods and Control Structures
2. Class Implementation
3. Array/ArrayList
4. 2-D Array
Methods & Control Structures


text:
win10defender 报毒

有trojan报毒 希望能过免杀

不会。
你要是觉得github action编译的不放心那么你可以自己检查代码然后自己编译。本作没有任何恶意代码。

没有怀疑机器人的意思 以前我用的的clash386也是这样 改着改着就报了 虽然没有啥影响 总是感觉不舒服

而且如果某国的 审查部门 和 微软配合、将代理程序 认为是 某国的病毒，那么谁也没办法。只是一种可能，不管是否如此。


text:
Who wasted their time on this?

Right click print save as PDF has already been a solution for this.. Let's use our skills to solve real problems going forward OK?

That was very unfortunate comment. If you don't experience html to pdf or any other experience, you will never going forward.

@Nick- Javascript, even when limited to the web browser, has an enormous range of applications, perhaps more than any other programming language.  Suppose you have 10 000 html sites that you want to convert to pdf.  Will you pay me whatever the going rate for such labour is in your area, to manually right click print save as PDF on every single one?  (If you will, please contact me, I could use the income 😂)
As a specific example, the company where I work uses this library in a visitor management application which runs on an iPad mounted in kiosks in the reception area of various offices.  Visitors to the office are asked to read and sign a safety agreement when they arrive, which is rendered in html.  In the background, the app automatically converts the signed copy to a PDF, uploads it to amazon S3, and sends the visitor an email with a copy of the agreement attached.  The company using this app can also access a web portal where they can view their visitors and see all of the signed agreements, for auditing/compliance purposes.
Your alternative is that the visitor should instead "Right click print save as PDF" (none of which exist in the iPad context), and then what?  Go into the Mail app on the iPad, and send themselves and their host a copy of this agreement, and then some kind of separate email scraping service will collect the PDFs into a single place for the host company to review later?

Good use case, thanks for explaining

This should be closed now.

To ChatGPT:

There's a dude on Github not understanding the great use cases html2pdf.js could have. He put a comment in the Issues section:
Right click print save as PDF has already been a solution for this.. Let's use our skills to solve real problems going forward OK?
Please help him out, by explaining to him why this project is important.

Its response:
Hi @Nick-
Thanks for sharing your perspective. You're right that the right-click, print, and save as PDF method provides a straightforward way to convert web content into a PDF format. However, html2pdf.js offers several key advantages that cater to more complex and automated needs which this basic method can't fulfill.

Programmatic Control: html2pdf.js allows developers to programmatically control the conversion process. This means that web applications can dynamically generate PDFs based on user interactions or data changes without requiring manual intervention from the user.
Customization and Consistency: While the print-to-PDF feature depends heavily on the browser and user settings, html2pdf.js provides consistent output across different environments. It also allows for more advanced customization, such as setting specific margins, page sizes, or even adding headers and footers, which are crucial for professional-looking documents.
Automation and Integration: In scenarios where PDF generation needs to be part of an automated workflow (like generating reports, invoices, or receipts in response to certain triggers), html2pdf.js becomes invaluable. It integrates seamlessly into the backend processes, unlike the manual print-to-PDF method.
Accessibility and User Experience: Not all users may find the print-to-PDF approach intuitive or accessible, especially those who are not tech-savvy. Having a one-click solution within the web application enhances user experience and accessibility.
Performance and Load Handling: For web applications dealing with high volumes of content or complex layouts, html2pdf.js can handle the conversion more efficiently, reducing the load on the client's browser and providing faster results.

In conclusion, while right-click, print, and save as PDF works for individual, ad-hoc cases, html2pdf.js extends the functionality to meet the needs of dynamic, automated, and professional web applications. It's about enhancing capabilities and providing solutions that cater to a wider range of scenarios.

I personally think ChatGPT is way too subtle for you. But now this 'issue' can be closed. And please try to be constructive on this platform.

close this please

Seems pretty useful as I have, for example, navigation buttons on a page that I don't want to be included in the PDF. and it provides users with a convenient "download PDF" button amongst those. Better UX.

authors: Nick- Sanan4li davidnbooth karencfisher msberends tiagorangel2011 undercontr


text:
implementation of all DDS core Policies

This PR is done over #1088 and must be merged afterwards

Build status:

Linux
Mac
Windows

Build status:

Linux
Mac
Windows

Build status:

Linux
Mac
Windows

authors: IkerLuengo richiware

repo: eProsima/Fast-RTPS


text:
Log FileConsumer [3709]

New FileConsumer
Log now allows to empty its consumers
Updated XML parser to allow log configuration.

A few win and mac warnings, a leak, and a condition race fixed. CI passing.


text:
External symbol definition sidelining Arduino.h include conflicts with inlining work in ESP8266

I am speeding up optimistic_yield() in ESP8266 master from idle 80 cycles to 32 cyles by inlining the usually constexpr parameter conversion from µs to cycles.
Writing directly inlined code in Arduino.h, This conflicts with src/inner.h line 2598:
extern void optimistic_yield(uint32_t);

requiring an external symbol.
In PR https://github.com/esp8266/Arduino/pull/6804 I'm working around this by using the preprocessor. Cleaning this up would be better for typesafety etc.
@earlephilhower Grep'ing for use of optimistic_yield in bearssl, I would believe that the PR speeds up bearssl noticeably? Both the idle cycle reduction, and the corrected behavior of not yielding on every optimistic_yield after 10000us in the same loop iteration, but only each 10000µs between yields, should make a difference. Could you please review and comment in the PR log, maybe providing rationale from your POV there, what the expected behavior of optimistic_yield was anyway? Thank you.

@dok-net what would your suggestion for fixing the problem?  I'm not sure I can repro it, as I tried checking out Arduino/6804 and running the simple validation example.  The results weren't very stable, but I didn't see a great deviation vs. w/o the (corrected) optimistic_yield.  Maybe 100ms shorted in the shortest reported handshake time (but total connect time about 1300ms so it's not that dramatic).
The reason, I believe, is because in most cases the optimistic_yield is a no-op when I call it.  The SSL protocol is 1-way until the handshake is done, so while I'm doing EC work no new packets will be arriving from the website.  W/o wifi servicing, the ROM doesn't really have much to do other than some beacons and stuff.  I'm also doing a lot of work in the EC math calls, so the small overhead of the call/return aren't really noticeable.

authors: dok-net earlephilhower


text:
Test Issue

Test

test comment

repo: easyCZ/octoreactions


text:
unauthorized user?

When I run homebridge I get:
[2018-1-14 12:48:32] [Hue] Initializing Hue platform...
[2018-1-14 12:48:32] [Hue] homebridge-hue v0.5.64, node v8.9.4, homebridge v0.4.36
[2018-1-14 12:48:38] [Hue] Home: BSB002 bridge v1711151408, api v1.22.0
[2018-1-14 12:48:38] [Hue] Home: bridge request 2: get /
[2018-1-14 12:48:38] [Hue] Home: bridge error 1: unauthorized user

What could it be?

sorry to follow up on this, but I have the same problem.
I get this error on first startup of Homebridge after a complete new installation of Homebridge and the Homebridge Hue plugin. I never got the token to edit the config.json. deleting the "users" section as recommended by FezVrasta has no effect.
Any ideas?

What error do you get?

hey,
thanks for your response.
this is the error-message:
Dec 05 19:36:05 raspberrypi systemd[1]: Started Homebridge.
Dec 05 19:36:06 raspberrypi homebridge[1568]: [12/5/2019, 19:36:06] Loaded config.json with 0 accessories and 1 platforms.
Dec 05 19:36:06 raspberrypi homebridge[1568]: [12/5/2019, 19:36:06] ---
Dec 05 19:36:09 raspberrypi homebridge[1568]: [12/5/2019, 19:36:09] Loaded plugin: homebridge-hue
Dec 05 19:36:09 raspberrypi homebridge[1568]: [12/5/2019, 19:36:09] Registering platform 'homebridge-hue.Hue'
Dec 05 19:36:09 raspberrypi homebridge[1568]: [12/5/2019, 19:36:09] ---
Dec 05 19:36:09 raspberrypi homebridge[1568]: [12/5/2019, 19:36:09] Loading 1 platforms...
Dec 05 19:36:09 raspberrypi homebridge[1568]: [12/5/2019, 19:36:09] [Hue] Initializing Hue platform...
Dec 05 19:36:09 raspberrypi homebridge[1568]: [12/5/2019, 19:36:09] [Hue] homebridge-hue v0.11.44, node v12.13.1, homebridge v0.4.50
Dec 05 19:36:09 raspberrypi homebridge[1568]: [12/5/2019, 19:36:09] Loading 0 accessories...
Dec 05 19:36:09 raspberrypi homebridge[1568]: [12/5/2019, 19:36:09] [Hue] 192.***.***.50: bridge request 1: get /config
Dec 05 19:36:09 raspberrypi homebridge[1568]: [12/5/2019, 19:36:09] [Hue] 192.***.***.50: bridge error 1: unauthorized user
Dec 05 19:36:24 raspberrypi homebridge[1568]: [12/5/2019, 19:36:24] [Hue] 192.***.***.50: bridge request 2: get /config
Dec 05 19:36:24 raspberrypi homebridge[1568]: [12/5/2019, 19:36:24] [Hue] 192.***.***.50: bridge error 1: unauthorized user

What’s your config.json?  What bridge do you have?

The bridge is a raspberry pi with diy hue emulator. Had it running flawlessly with your plugin until two days ago. Then I did the usual updates via apt-get update/upgrade and also updated to the latest node version. Since then it stopped working and gave me the above mentioned error. So i did a fresh reinstall of the raspberry, diy hue, Homebridge and your plugin. Unfortunately its still not working.
This is my config.json:
{
    "bridge": {
        "name": "Homebridge",
        "username": "CB:22:3D:E2:CE:31",
        "port": 51826,
        "pin": "033-44-254"
    },
    "accessories": [],
    "platforms": [
        {
                "platform": "Hue",
                "users": {
                        "": ""
                },
                "hosts": "192.168.178.50",
                "lights": true
                }
]
}

See #567: it would seem that diyhue doesn’t (no longer?) implements the full Hue API.  Did you update diyhue as well?
What’s the output of ph -H 192.168.178.50 config?

I regularly start the diyhue automatic install-script wich updates diyhue if there is a new version. I did it before it stoped working, but I am not sure if there really was an update. but its definitely the actual version.
output of ph -H 192.168.178.50 config is:
ph: error: 192.168.178.50: 1 unauthorized user
ph: fatal: 192.168.178.50: not a Hue bridge nor deCONZ gateway

So it no longer support an unauthenticated GET of /api/config.  As a workaround, you might try and create a username by ph -H 192.168.178.50 createuser and use that for homebridge-hue.

ph -H 192.168.178.50 createuser leads to the same "unauthorized user" error.
@andre68723 created an issue regarding this problem in the diyhue repository, maybe we can get a solution there.

authors: FezVrasta ebaauw romanlucas

repo: ebaauw/homebridge-hue


text:
File input is missing in the Spreadsheet tab in Submission details page

Steps to Replicate

Upload the integration test spreadsheet from All Submissions page
Go to the page of the submission created.
Click Spreadsheet tab

Actual Behavior
There is no way to upload a spreadsheet. The file input is missing.
Expected Behavior
There should be a file input to allow user to upload an updated spreadsheet

Deployed to prod.
https://gitlab.ebi.ac.uk/hca/ingest-ui/-/pipelines/219548

repo: ebi-ait/dcp-ingest-central


text:
Review where operations documentation should live and check it is up to date.

As a wrangler I want to know where to look for information about specific steps in the wrangling process and for that information to be up to date.
Review where documentation should be stored given the new repo. Are we using wikis etc from the old one or new?
Examples of Documentation that needs a home is the graph validator documentation (https://docs.google.com/document/d/1lTvY7U02AT6uLe1pcvFTkt3GYfTP0JY8VJS-EBOSRaU/edit) and also the Ingest to archives documentation (https://docs.google.com/document/d/1S4fyCSqB3nLrCUssNMwSp6ff8tmeipMi_slnXW2Lrq4/edit#heading=h.n3qy5yl0auvs) and possibly others?
And where feedback doc should live: https://docs.google.com/document/d/1h-oUrbOb5OZS8L_F023eYP9mYwyuimTH7jdPQEMGj-E/edit#

Is there a reason not to put all of this on https://ebi-ait.github.io/hca-ebi-wrangler-central/

I think it hopefully has been. I need to check.

authors: clairerye lauraclarke

repo: ebi-ait/hca-ebi-wrangler-central