Unknown SSL error with YouTube

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.12.28. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

[x] I've verified and I assure that I'm running youtube-dl 2017.12.28

Before submitting an issue make sure you have:

[x] At least skimmed through the README, most notably the FAQ and BUGS sections
[x] Searched the bugtracker for similar issues including closed ones

What is the purpose of your issue?

[x] Bug report (encountered problems with youtube-dl)
[ ] Site support request (request for adding support for a new site)
[ ] Feature request (request for a new functionality)
[x] Question
[ ] Other

I am not sure what kind of SSL error this is, I hope someone can figure it out, here is the full output of the command:
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['--verbose', 'https://www.youtube.com/watch?v=jNQXAC9IVRw']
[debug] Encodings: locale cp1252, fs mbcs, out cp850, pref cp1252
[debug] youtube-dl version 2017.12.28
[debug] Python version 3.4.4 - Windows-10-10.0.16299
[debug] exe versions: none
[debug] Proxy map: {}
[youtube] jNQXAC9IVRw: Downloading webpage
ERROR: Unable to download webpage: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)> (caused by URLError(SSLError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:600)'),))
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpheifp6ll\build\youtube_dl\extractor\common.py", line 517, in _request_webpage
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpheifp6ll\build\youtube_dl\YoutubeDL.py", line 2198, in urlopen
  File "C:\Python\Python34\lib\urllib\request.py", line 464, in open
  File "C:\Python\Python34\lib\urllib\request.py", line 482, in _open
  File "C:\Python\Python34\lib\urllib\request.py", line 442, in _call_chain
  File "C:\Users\dst\AppData\Roaming\Build archive\youtube-dl\rg3\tmpheifp6ll\build\youtube_dl\utils.py", line 1088, in https_open
  File "C:\Python\Python34\lib\urllib\request.py", line 1185, in do_open

https://github.com/rg3/youtube-dl/issues/11573#issuecomment-269896421


vis: init vis at 0.2x (nightly)

I am not quite sure how to manage (1). If I get a link on details, I will do that.
This is a current repo checkout of vis editor since the last release (v0.2) does not seem to compile correctly on Nix. If there is an alternative mechanism for such packages, I would be happy to update.
Things done

[ ] (1) Tested using sandboxing (nix-build --option build-use-chroot true or nix.useChroot on NixOS)
Built on platform(s)

[X] NixOS
[ ] OS X
[ ] Linux

[X] Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
[X] Tested execution of all binary files (usually in ./result/bin/)
[X] Fits CONTRIBUTING.md.

Vis editor is a vim like editor.

"nightly" is an invalid version; you may name the package "vis-nightly" and use the date of the revision (in ISO format) as the version. I believe the guidelines currently require pkgname-git-year-month-day.

@joachifm I fixed the version, but kept the package name same.

git-1970-01-01 isn't a valid version, either; the Nix tools would parse the resulting name as a package named vis-git with version 1970. The purpose of the -git prefix is to identify the package as a snapshot, which I think your initial use of "nightly" communicates much better. In any case, the qualifier does not pertain to the version per se, the idea is to have what amounts to a separate namespace for snapshot packages alongside released packages.

Hi @joachifm. I'm wondering about updating the "Package Naming" section of the manual.
You say:

I believe the guidelines currently require pkgname-git-year-month-day.

Which is a reference to the NixPkgs Manual: Package Naming, which say:

If package is fetched from git's commit then the version part of the name must be the date of that (fetched) commit. The date must be in "YYYY-MM-DD" format. Also add "git" to the name - e.g., "pkgname-git-2014-09-23".

You retract this idea by saying

the Nix tools would parse the resulting name as a package named vis-git with version 1970

Should we update the NixPkgs manual to update this naming convention? Perhaps replace it with the "nightly" idea?

@chexxor, There is no contradiction in what I'm saying, but there's a conflation of the name attribute and the package name, which are not the same thing. The name attribute comprises the package name ("vis-git") and a version string ("1970-01-01").
The version attribute currently holds no special meaning. Versions are always parsed out of name, using builtins.parseDrvName. The algorithm only recognizes version strings that begin with a digit.
If you're interested in this topic, see https://github.com/NixOS/nixpkgs/issues/14572 for discussion about revising the guidelines.

@vrthra if you're ready to merge, please squash the commits (& ping me, github does not notify subscribers when the PR is updated).

@joachifm Well said! You're absolutely right - my mistake. Much appreciated!

@joachifm squashed and ready to merge.

Works for me. Thank you


Add embedded structs on generate

I want to generate all models from my database tables, using g.GenerateAllTable()...,, but I'd like for it to add all of the embedded fields too.
For example, with a struct like User:
type Users struct {
	ID             string         `gorm:"column:id;primaryKey" json:"id"`
	EffectiveDate  time.Time      `gorm:"column:effective_date" json:"effective_date"`
	ExpirationDate time.Time      `gorm:"column:expiration_date" json:"expiration_date"`
	DeletedAt      gorm.DeletedAt `gorm:"column:deleted_at" json:"deleted_at"`
	Email          string         `gorm:"column:email" json:"email"`
	OrganizationID string         `gorm:"column:organization_id" json:"organization_id"`
	Onboarded      bool           `gorm:"column:onboarded" json:"onboarded"`
}

Is there a way to automatically add the Organization field of type Organization without specifically specifying?

Thought it should be explained here here

How can I achieve this without specifying the relationships for each model?

I was wondering the same


Enhance custom tree views

Continuation from #26948

[x] Conditional visibility
[ ] Toggling views
[ ] Navigation group for menu action in tree item
[ ] Extract icons from the resource Uri
[ ] Tree state persistence
[ ] Customizable location of the view inside explorer
[ ] Get children in pages
[ ] Ability to update the view label

I can register a command for selection changes and menus, but I don't see a way to register a command for the "open" mouse gesture (usually double-click). That would make sense to have.

One of my case is cloudant design database. It is a json that contains javascript string
What is a plan if I want to make a tree of json and show js icon for a child that is javascript string?

https://github.com/Microsoft/vscode-extension-samples/blob/master/tree-view-sample/USAGE.md is outdated.

@atian25 Thanks for pointing it out. Will update it.

Hello,
Is it possible to provide icons from external URL? My extension calls an REST API for the items to be displayed in the TreeView. They come with svg icons and I thought it might be cool to have them.
I've tried to embed them inline with data:image/svg+xml; but with no luck.
Thank you for all the tremendous work!

Is it possible to obtain the default vscode icons for the iconPath? I would prefer to be able to delegate the iconPath to the default icons instead of specifying one myself.

Hi @sandy081 ,
I don't know if I'm missing something, but I didn't find a way to have direct access to the TreeItems, after they are created/provided using getChildren and getITreeItem.
I mean, let's suppose I need to add/remove a level 0 node.  Similarly, if I need to *add/remove/rename a non level 0 node, I have to had backups of the TreeItem previously provided, search for them when I need to update their children, and to call onDidChangeTreeData(foundTreeItemNode) to update only their children.'
As I said, I don't know if I'm missing something. But if I am, could you please point me in the right direction? Otherwise, I thing that you could expand the API to scenarios like this.
Thanks for your help

@alefragnani Yes, It is PULL instead of PUSH. It is designed to register a data provider where the core can ask for data (similar to other providers in API). Regarding triggering changes, you do not need to have the back up of TreeItem but element of type T. If you do no want to store, you can always provide element of type string which you can resolve uniquely from your data model.

@sandy081, I understand (and agree) the decision to use a PULL design, but I expected to have a bit more APIs to access/look for the data already provided. Still, I also understand that this API is in early stages, just recently published, and the current issue exists for the exact purpose to enhance it 😄 .
I ended up adding a reference to my model  inside the TreeItem, so I can look for it when the update events are triggered, by the model. The backup was limited only for the Level 0 nodes, because they are re-created only if I call onDidChangeTreeData with null as parameter.
I would like suggest a few enhancements:

[ ] Built-in commands to expand and collapse, located in the tree's title (like the one that already exists in explorer/find trees)
[ ] Built-in property/event to display a notification counter in the tree's title (like the Extension's panel)
[ ] Add an Secondary Command to TreeItem, which should be executed if you Ctrl + Click the node
[ ] Add an Secondary Command to TreeItem, which should be executed if you Double Click the node
[ ] Add a Hint to TreeItem

Thanks

I would add a few more to that list:

[ ] Provide an API to add a dynamic "secondary" name to a view

For example -- something like GitLens -- branches where GitLens is the name of the view, the -- is a vscode controlled separator (or unneeded if the styling or weight is different between the name and secondary name), and branches is a dynamic additional name for a view to provide more context

[ ] Support the navigation group for TreeItems -- so that they can have toolbar buttons (like search and source control viewlets)
[ ] Provide a way to set a decoration on a TreeItem -- like strike-through, etc
[ ] Provide a secondary icon (on the right) similar to the source control viewlet
[ ] Provide a way to support double-height TreeItems (similar to the way you can in the quickpicks)

I'm assuming that adding a Hint to TreeItem is about customizing the tooltip of a TreeItem -- if so 👍 otherwise, I would like to be able to customize the tooltip of a TreeItem 😄
Thanks for the consideration!

I suggest to add #33371 and #34130 to the list and give them high priority.
Without those fixes all the other other items are "nice to haves".

Does the ' Ability to update the view label' concern tree items? I'm currently looking at a way to update the Tree-Item label without having to fire refresh (to preserve the state of the Tree-Item's children).  For example, this issue in the vscode-cosmosdb would be easily solved if this functionality was provided. :-)

Another high priority item is #40018

I also have a number of things I'd like to see in a tree. Here's a list of items I mentioned already in #28338.

[ ] Not just a single icon per tree, but one for each node (just like the file tree has).
[ ] Colors for text; markdown support would be awesome.
[ ] Tooltips/hovers per node.
[ ] Read and set selection status (for multiple nodes) programatically.
[ ] Check box support is also a pretty common requirement.
[ ] Multi column support! This content:

would then show much nicer. All the individual values nicely aligned.

[ ] Support docking, so that views can be spread accross all the available space. Currently I have 10 views stacked vertically. Even on a 4K screen this is all but easy to consume.

@mike-lischke
In regards to

Support docking, so that views can be spread accross all the available space. Currently I have 10 views stacked vertically. Even on a 4K screen this is all but easy to consume.

There is another issue I don't see referenced here that I believe is same or related #41686

Closing this item as mentioned items in the description are done. I would request to create a separate issue for each of your feature requests or bugs as it is becoming very difficult to track in a single item. Thanks for understanding.

@sandy081 I don't consider it as appropriated action on this issue to simply close it and have everyone do their own issue filing. It's a pretty nice collection of FRs all revolving around the same element and the issue itself started out as a collection of ideas/wishes. Usually I also prefer to separate issues, as it's just better to solve each of them. But this issue is more about development of a core element that needs consolidation. Of course each FR then has to go into its own Github issue, but a central collection/discussion issue is pretty useful too.

@mike-lischke The pain point here is that these feature requests are spread across multiple comments and its very hard to track them and to prioritise.
You are right that this issue was created initially to capture improvements to be done to custom views. But they are scoped to those listed in the summary. This could get easily side tracked by multiple feature requests in multiple comments. They are so important that I do not want to miss them.
Hence, I asked to create an issue per feature request. Hope it makes sense.


ConfigDir should respect $XDG_CONFIG_HOME

ConfigDir should respect $XDG_CONFIG_HOME for creating .codeium/
$HOME can be a fallback.

As an implementation note for our team, we currently store sensitive information in the config directory, so we will need to split this information from the rest of the configuration before we can respect $XDG_CONFIG_HOME.

We don't yet have settings that would properly belong in $XDG_CONFIG_HOME, #40 defines a function to get the directory when that happens.


stringmime error

On the latest Images.jl (0.4.24) and Julia 0.3, I'm seeing the following error:
julia> im = convert(Image, rand(5,5))
Gray Image with ...

julia> stringmime("image/png", im)
ERROR:
 in error at error.jl:21
 in error at /Users/mike/.julia/v0.3/Images/src/ioformats/libmagickwand.jl:150
 in setimageformat at /Users/mike/.julia/v0.3/Images/src/ioformats/libmagickwand.jl:331
 in getblob at /Users/mike/.julia/v0.3/Images/src/ioformats/libmagickwand.jl:212
 in writemime at /Users/mike/.julia/v0.3/Images/src/io.jl:205
 in base64 at base64.jl:125
 in stringmime at multimedia.jl:82
 in stringmime at multimedia.jl:88

Previously this would output the base64-encoded image (and it seems to work on Julia 0.4).

@one-more-minute Mike did you manage to get this working for you in Julia 0.3 ? In IJulia have basically the same issue in Julia 0.3.6 with the following code, same versions of Images and ImageMagick in Homebrew.list()
using Images, TestImages
img = testimage("fabio")

the error message is:
in error at error.jl:21
in error at ~/.julia/v0.3/Images/src/ioformats/libmagickwand.jl:149
in setimageformat at ~/.julia/v0.3/Images/src/ioformats/libmagickwand.jl:331
in getblob at ~/.julia/v0.3/Images/src/ioformats/libmagickwand.jl:211
in writemime at ~/.julia/v0.3/Images/src/io.jl:205
in base64 at base64.jl:125
in display_dict at ~/.julia/v0.3/IJulia/src/execute_request.jl:34

FYI the following returns 0 for "png","jpg","jpeg","JPEG","PNG","PNG8":
import Images.LibMagick
wand = LibMagick.MagickWand()
ccall((:MagickSetImageFormat, LibMagick.libwand), Cint, (Ptr{Void}, Ptr{Uint8}), wand.ptr, "JPG")

and run(`identify -list format`) in a julia prompt (http://www.imagemagick.org/script/formats.php) returns:
Format  Module    Mode  Description
-------------------------------------------------------------------------------

* native blob support
r read support
w write support
+ support for multiple images

i.e. the list is blank. When I run on a regular command line (which I assume uses my macports compiled ImageMagick) I get a long list of formats. Not sure if it's relevant but in IJulia running that command gets me a failed process: Process(`identify -list format`, ProcessExited(1)) [1] while loading In[11], in expression starting on line 1

Unfortunately, no – I never managed to look into this more. But I get the exact same output from running those lines.
@timholy is there a way to get Images.jl to use the system ImageMagick?

Since this appears OSX-specific, calling in @staticfloat here.
I'll point out that presumably another approach would be to extend @rsrock's good work on OSXNative.jl to writing (not just reading).

It looks like ImageMagick is not getting the list of formats properly.
@one-more-minute, @JobJob can I ask you both to post the following output, if you haven't already:
julia> run(`which identify`)
/Users/sabae/.julia/v0.3/Homebrew/deps/usr/bin/identify

julia> run(`identify -list format`)
   Format  Module    Mode  Description
-------------------------------------------------------------------------------
      3FR  DNG       r--   Hasselblad CFV/H3D39II
        A* RAW       rw+   Raw alpha samples
      AAI* AAI       rw+   AAI Dune image
       AI  PDF       rw-   Adobe Illustrator CS2
...

julia> using Images

julia> filter(x -> contains(x, "image"), Sys.dllist())
1-element Array{String,1}:
 "/Users/sabae/.julia/v0.3/Homebrew/deps/usr/Cellar/imagemagick/6.8.9-1_1/lib/libMagickCore-6.Q16.2.dylib"

It's worth noting that I do not have imagemagick installed system-wide anywhere.

This is definitely on my todo list.  I will probably revamp the whole reader/writer, and use @one-more-minute's awesome ObjectiveC.jl package which I just discovered last week. Any plans on tagging a version of that?
On Mar 14, 2015, at 8:24 PM, Tim Holy <notifications<EMAIL_ADDRESS>wrote:
Since this appears OSX-specific, calling in @staticfloathttps://github.com/staticfloat here.
I'll point out that presumably another approach would be to extend @rsrockhttps://github.com/rsrock's good work on OSXNative.jl to writing (not just reading).
—
Reply to this email directly or view it on GitHubhttps://github.com/timholy/Images.jl/issues/237#issuecomment-80791520.

Ronald S. Rock, Jr., Associate Professor
Dept. of Biochemistry and Molecular Biology, The University of Chicago
GCIS W240, 929 E. 57th St.
Chicago, IL 60637   USA
+1<PHONE_NUMBER> (w), +1<PHONE_NUMBER> (f)
rrock<EMAIL_ADDRESS>

On my system, I get this:
run(`which identify`)

/usr/local/bin/identify

Which is at least part of the problem.  I will push a fix here shortly.
Related: staticfloat/homebrew-juliadeps#38

Actually, I'll only have a partial fix for this issue (the $PATH setting).  The main issue is that Homebrew/MacPorts/Whatever ImageMagick is being picked up, instead of @staticfloat's Julia-Homebrew package.  The symptom is something like this line in .../Images/deps/deps.jl:
# Load dependencies
@checked_lib libwand "/usr/local/lib/libMagickWand-6.Q16.dylib"

That should look like:
# Load dependencies
@checked_lib libwand "/Users/rrock/.julia/v0.3/Homebrew/deps/usr/lib/libMagickWand-6.Q16.dylib"

A quick fix may be to brew unlink imagemagick, followed by a Pkg.build("Images") in julia, followed by brew link imagemagick`.

@staticfloat identify only works for me when installed globally via homebrew – after uninstalling run(`which identify`) just gives an error.
julia> filter(x -> contains(x, "image"), Sys.dllist())
1-element Array{String,1}:
 "/Users/mike/.julia/v0.3/Homebrew/deps/usr/Cellar/imagemagick/6.8.9-1/lib/libMagickCore-6.Q16.2.dylib"

@rsrock Awesome, would be great for ObjectiveC.jl to see some more use. Ping me if you need anything, and sure, I can tag a release if you need one. Do you need 0.3 compatibility? I'm hoping I can speed things up a bit with staged functions and take advantage of the new struct support at some point.

Ok, after b6e50d55, which identify points to @staticfloat's version and run(`identify -list format`) gives a nice long list of image formats to work with.

Ok, this is interesting – which @rsrock's patch I can run identify -list format after using Homebrew. I get a nice long list of formats. Then, after using Images, all the formats disappear – so Images.jl is nuking them somehow.

So let's first ensure that we all know we're on the same page as far as how BinDeps works, and how Images interacts with it.
Images has a build.jl file, which invokes BinDeps and asks BinDeps to create a deps.jl file.  This deps.jl file is only recreated after calling Pkg.build("Images"), either directly or indirectly.  deps.jl caches things like library file paths, so if you change something about the environment you need to be sure to run Pkg.build("Images") before expecting everything to be settled and working.
In order to create deps.jl, BinDeps will attempt to satisfy all library dependencies given it.  In this case, the libwand dependency (Note it's got a bunch of aliases, but in our case we're looking at libMagickWand-6.Q16.dylib).  BinDeps will search all providers it has been informed could possibly provide this library (System Paths, Homebrew.jl, etc...) and will pick the first one that requires the least effort to get working.  This means that it will pick some random library that's laying around on a library search path (e.g. DYLD_LIBRARY_PATH, DYLD_FALLBACK_LIBRARY_PATH, etc....) over installing a Homebrew.jl package if it thinks it can use that library.  It will, however, prefer a Homebrew.jl file over a file laying around on the system path if both are available.  This also means that if it picked up a system library earlier, (and had written out an appropriate deps.jl file) even if you manually Homebrew.add("imagemagick") you will need to Pkg.build("Images") so that the deps.jl file is changed.
Now that we've got that out of the way, let's look at the specific stuff that Images.jl does with BinDeps and Homebrew.jl.  Specifically, we not only ask for Homebrew.jl to install imagemagick for us, but we add an onload hook to modify some environment variables for us.  I believe the issue of all the file formats disappearing is due to misconfigured environment variables, and this is likely being caused by Pkg.build("Images") not getting called before people try to call using Images.  Note that this onload hook gets written out to deps.jl as well, and we should not have such a hook if Images.jl is to use a system-paths version of imagemagick.  According to @rsrock's comment in another thread, that looks like it is happening, which is a huge no-no, and is definitely one bug that needs to be squashed.

@rsrock Awesome, would be great for ObjectiveC.jl to see some more use. Ping me if you need >anything, and sure, I can tag a release if you need one. Do you need 0.3 compatibility? I'm hoping I can >speed things up a bit with staged functions and take advantage of the new struct support at some point.

@one-more-minute, Thanks!  I'm still using 0.3 for the most part, but with that good stuff coming, I might have to play around with 0.4.  I'm especially excited about being able to make NSrects, especially if the new struct support can handle it (although your current solution works quite well).  Looking forward to making native UIs with this.
I don't think Images needs anything more involved than objc_msgsend calls.  That said, it might be easier to maintain if I just hold off on this until the staged function and struct support lands, so I will probably make those changes for Images on 0.40- only.

Seems to be working on master.


Partially revert run.ps1 to handle continuous reboot of RKE2 service

Issue: https://github.com/rancher/rancher/issues/41868
Problem:
Changes made to the run.ps1 file in  https://github.com/rancher/system-agent-installer-rke2/pull/40 unintentionally resulted in the inability to upgrade the kubernetes version of windows worker nodes.
Solution:
Remove sleep periods before and after restarting the RKE2 windows service. These changes result in the worker being properly upgraded, as well maintains the fix made for https://github.com/rancher/system-agent-installer-rke2/pull/40.
This issue was encountered due to the RKE2 windows service restarting itself in spite of a graceful shutdown. The RKE2 service is configured to restart upon a failure every 30 seconds, and the prior update of this script also paused for 30 seconds with the intention of allowing the service some time to free any resources in use. However, this resulted in the RKE2 service transitioning into a running state at the same time as the script attempts to upgrade the version.
The fatal error encountered with the previous version of this script which prevented proper upgrades can be seen in the RKE2 service logs, indicating that an instance of RKE2 is already running and using the containerd shim exe on the host.
6/20/2023 5:23:28 PM {failed to extract runtime image: open C:\var\lib\rancher\rke2\data\v1.24.11-rke2r1-windows-amd64-def9d7224936\bin\containerd-shim-runhcs-v1.exe: The process cannot access the file because it is being used by another process.}

The Microsoft documentation states that the service is only expected to automatically restart if the service terminates without transitioning to the SERVICE_STOPPED state (i.e. a non graceful shutdown). run.ps1 initiates a graceful shutdown of the service through the use of the Stop-Service command (this is acknowledged by RKE2 via the following log message: 6/20/2023 12:55:03 PM {Windows Service is shutting down gracefully}).
Looking at the RKE2 source code,  RKE2's service implementation takes this requirement into account and properly signals that state during a graceful shutdown. I'm still investigating why windows is restarting this service after graceful shut downs, and I've removed aspects of this script which depend on that expected behavior. In the mean time, forcibly killing the process provides a path forward and resolves the upgrading issues as well as the issues #40 aimed to address. Let me know if there are concerns with this approach, I haven't seen any impact to functionality in my testing.
Testing:

Upgrade Kubernetes Cluster with a windows worker node

Create a custom cluster using a Kubernetes version which includes this change
Provision a Linux node with all roles and wait for it to become available
Provision a windows worker node and register it to the custom cluster (This was tested using 2019 and 2022).
Initiate an upgrade via the Rancher UI to another Kubernetes version also including these changes.
Observe the cluster properly upgrade and become available

Graceful reboot of the node does not result in node disconnection

Create a custom cluster using a Kubernetes version which includes these changes
Register am all roles linux node to the cluster and wait for it to become available
Within vSphere, provision a windows VM and configure it as needed

The 'Containers' feature needs to be enabled
VMWare tools need to be installed onto the VM

Register windows worker node to existing custom cluster and wait for it to become available
Within the vSphere UI, gracefully restart the host
Observe the worker node temporarily become unavailable, and after some time properly reconnect to the cluster.
Power cycle the VM several more times in the vSphere UI, observe the node reconnect consistently

@HarrisonWAffel is this actually ready for review, or is it still WIP?

@brandond I have done some additional testing this morning EST and identified a few edge cases that I did not observe last night, apologies for the updates after your initial review.

We just tagged another RC of RKE2 this morning and were trying to figure out if this is ready and can be merged now in time for it to be used by RC3, or if we'll need to tag RC4 later today.


LimeSDR - Tx IQ swap on latest images?

@rjonaitis Are you seeing this? Run the siggen and see where the tone shows up. I'm seeing negative unless I make the swap in the diff below:
Command: siggen_test.py --txAnt=BAND1 --rate=2.5e6 --txGain=40 --freq=1e9 --waveFreq=0.5e6
diff --git a/src/ConnectionSTREAM/ConnectionSTREAMing.cpp b/src/ConnectionSTREAM/ConnectionSTREAMing.cpp
index afd2bbd..38d45ff 100644
--- a/src/ConnectionSTREAM/ConnectionSTREAMing.cpp
+++ b/src/ConnectionSTREAM/ConnectionSTREAMing.cpp
@@ -330,7 +330,7 @@ std::string ConnectionSTREAM::SetupStream(size_t &streamID, const StreamConfig &
     //configure LML based on channel config
     LMS7002M rfic;
     rfic.SetConnection(this);
-    if (config.isTx) rfic.ConfigureLML_BB2RF(s0, s1, s2, s3);
+    if (config.isTx) rfic.ConfigureLML_BB2RF(s1, s0, s3, s2);
     else             rfic.ConfigureLML_RF2BB(s0, s1, s2, s3);

I didnt hear back about this, but the siggen app is telling me that IQ are swapped so I check this fix in: https://github.com/myriadrf/LimeSuite/commit/f840b4548ecc4e8319d2feeb231145a579f40fe8
Pleas reopen if this is some other cause


Added Docker Support

This change adds a Dockerfile to create an ubuntu image running
nodejs and homebridge.
To run:
docker build -t homebridge .
docker run homebridge

Note - This is still a Work In Progress.
There is still work remaining on this PR to do appropriate Port mapping as it seems like home bridge runs multiple services, each on its own Port.  I need to figure out a way to dynamically expose each of those ports on the container to the host.

Very cool. What kind of machine are you running HomeBridge on?

Thanks.  I'm running OS X Yosemite.  But I like to run things through Docker.  Also this helps alleviate some of the build issues I've seen people have in getting home bridge running properly.

I think this will be great once #94 is merged - that will change homebridge to expose just one predictable port and all Accessories will be hosted behind that.

awesome.

#94 is now merged. Could you try your Docker file with the latest Homebridge version? It should create a single Bridge accessory on port 51826.

Hi there, why not use official https://hub.docker.com/_/node/ images from node hub? Based on debian image

I am abandoning this change.  I finally got around to looking at docker support and found a bunch of implementations.  The one I like best is https://github.com/ViViDboarder/docker-rpi-homebridge due to its simplicity in getting it set up and not requiring a bunch of different files to get it working.


Omit orphaned models

Models can be orphaned by skipping an entire operation group like Operations or by replacing the type with a reference type therefore the original is no longer referenced anywhere
example there are two resource objects so we have to explicitly specify one
https://github.com/Azure/autorest.csharp/pull/1427/files#diff-73c11042786cf1e5a8d918e0ee37dcb8934f391ae7dd17dd3d6cb84bb766481bR15

If we can omit all orphan models manually before GA then this feature can be postponed

Explored the option to use Roslyn code analysis to remove orphaned models.
Basic logic to find orphaned models: check if a model type is only referenced by its declaring files (using SymbolFinder.FindReferencesAsync()).
There are cases that an orphaned model refers to other models, only when that orphaned model is removed, we can detect other models as orphaned. Therefore, we need multiple iterations to find and remove orphaned models until there are no more orphaned models.
We cannot remove all orphaned models because some models are not directly referenced but are still useful. For instance, AvailabilitySetSkuTypes in compute is not referenced by code anywhere, but users need to check it so they know what values to pass as the String-typed name for the general Sku model for AvailabilitySetData. The description for Sku also directs users to check AvailabilitySetSkuTypes for possible values. Therefore, we may need to add configurations to not remove some orphaned models.
Considering the cost and gain, let's use codegen attributes to suppress orphaned models first, and revisit this item after GA.

Orphaned models caused by generator behavior:

A model is replaced by common type model. Then the models only used by that replaced model could be orphaned. For instance, the CreatedByType model which is only used by SystemData becomes an orphan after SystemData is replaced by common type.
In the case of multiple allOf, the generator only inherits from one parent schema and the properties of other parents are flattened, therefore the models for other parents are not used in the generated code and become orphans. For instance, the LocationResource and TaggedResource inherited by CommunicationServiceResource are orphaned models.

In my implementation #1998 , I only mark the ObjectSchema type to internal if it is not referenced by the public operations (directly or indirectly). The enum types will be left unchanged.


Default CLI entry_point

When running hatch new --cli mypackage the default entry_point can conflict with import mypackage
'console_scripts': ['{pn} = {pnn}.cli:{pnn}']
Any thoughts on changing this to 'console_scripts': ['{pn} = {pnn}.cli:cli'] so __main__ calls cli() instead of mypackage()?
If so, I can generate a PR and make the default version of cli.py a little more click-ish

Hatch has been rewritten from scratch and now this should be fixed, see https://ofek.dev/hatch/latest/config/project-templates/#command-line-interface


Button is not legible

Describe the Bug

The button to report a form still has white text on a yellow button. This way the button text is barely legible.
Steps to Reproduce

Go to the index page (all offers). Click on any offer and see the open offer detail overlay
Click on Report
See yellow button with white text on it

Expected Behavior

The text color is supposed to be text-gray-700.
Actual Behavior

The text color is white
Additional Information

The required file for this is "offer_report.html"

Traceback

Is this an issue for you, @amikable-tech? :blush:


[Feature Request] Adding the .quiet() property to all node types and making it more configurable

The eval node has a .quiet() property which is very useful for supressing errors and warnings that we don't necessarily care about. It would be great if more, or even all, node types would offer this functionality.
Ideally I'd like even with more control over which log level messages get supressed and possibly a lambda expression to supress specific errors. For example, we might want DerivativeNode to supress just the "0 time difference" errors but nothing else.

@nathanielc Can we scope this for effort / feasibility?

Yeah. Having a .quiet() propety and some parameter to adjust the verbosity (like a list of errors) would be sufficient. Fair point about the lambda expressions.

A trivial example: We process a measurement where a certain field is not always defined. We want to supress the error that results in a node failing to process that field if it is undefined. We could start adding default nodes but that can become really convoluted. Just having kapacitor drop the problematic line to the floor quietly would be the preferred option.
I've hit situations several times where I've found myself trying doing extra work with a script just to supress the error messages while the script itself is already working properly


Running sshd inside container produce wired error due to pam_loginuid.

Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
I have a container running as a SSH jump host on a remote server. Recently I'm trying to switch from docker to podman. And then, argh, podman breaks my jump host in a very weird way: the SSH authentication step finished successfully, but my SSH client failed with an error code 254.
I took some time investigating the details. Later it turns out that the SSH client failed because it cannot complete the pam session on the remote server. More specifically, it failed to run a pam module called pam_loginuid. I searched on the Internet, and noticed that it seems to be a bug that has been already fixed by docker.
Reference: https://stackoverflow.com/questions/21391142/why-is-it-needed-to-set-pam-loginuid-to-its-optional-value-with-docker
Any ideas?
Steps to reproduce the issue:

Run an OpenSSH server (v7.4 in my case) instead a container. Make sure the following line is in its PAM config:

session    required     pam_loginuid.so

Run an OpenSSH client (v7.9 in my case) to connect the server.

Describe the results you received:
The client exited with error code 254.
Describe the results you expected:
The client connect to the server successfully.
Output of podman version:
Version:            1.4.3
RemoteAPI Version:  1
Go Version:         go1.10.4
OS/Arch:            linux/amd64

Output of podman info --debug:
debug:
  compiler: gc
  git commit: ""
  go version: go1.10.4
  podman version: 1.4.3
host:
  BuildahVersion: 1.9.0
  Conmon:
    package: 'conmon: /usr/libexec/podman/conmon'
    path: /usr/libexec/podman/conmon
    version: 'conmon version 1.0.0-rc2, commit: unknown'
  Distribution:
    distribution: ubuntu
    version: "19.04"
  MemFree:<PHONE_NUMBER>
  MemTotal:<PHONE_NUMBER>
  OCIRuntime:
    package: 'cri-o-runc: /usr/lib/cri-o-runc/sbin/runc'
    path: /usr/lib/cri-o-runc/sbin/runc
    version: 'runc version spec: 1.0.1-dev'
  SwapFree:<PHONE_NUMBER>
  SwapTotal:<PHONE_NUMBER>
  arch: amd64
  cpus: 4
  hostname: emerson-VirtualBox
  kernel: 5.0.0-16-generic
  os: linux
  rootless: true
  uptime: 3h 41m 20.5s (Approximately 0.12 days)
registries:
  blocked: null
  insecure: null
  search: null
store:
  ConfigFile: /home/emerson/.config/containers/storage.conf
  ContainerStore:
    number: 0
  GraphDriverName: vfs
  GraphOptions: null
  GraphRoot: /home/emerson/.local/share/containers/storage
  GraphStatus: {}
  ImageStore:
    number: 0
  RunRoot: /run/user/1000
  VolumePath: /home/emerson/.local/share/containers/storage/volumes

Additional environment details (AWS, VirtualBox, physical, etc.):
The test output pasted here is from a VirtualBox instance, but a bare-metal machine can produce the same error.

I do not think that we want to add CAP_AUDIT_WRITE to the default container capabilities. Maintaining a minimal set of capabilities improves the security of containers, and most containers will not require AUDIT_WRITE for normal operation. If you want to use it, you can add --cap-add audit_write to your Podman command line.
You can also look into making the loginuid module optional - the linked StackOverflow article notes that this ought to be possible.

Ummm, cool, if that's about security concerns, then I'm totally okay with it. I'll close the ticket and consider using optional pam module instead. Thanks for your reply.

@mheon, Podman is currently setting AUDIT_WRITE
[libpod (master)]$ podman top -l capeff
EFFECTIVE CAPS
AUDIT_WRITE,CHOWN,DAC_OVERRIDE,FOWNER,FSETID,KILL,MKNOD,NET_BIND_SERVICE,NET_RAW,SETFCAP,SETGID,SETPCAP,SETUID,SYS_CHROOT

Huh. Guess it must have made its way into the default caps in the OCI generator. I had a feeling we wouldn't want it because it can be used to break our loginuid chain.

Personally I think we should drop it.  Running sshd inside of a container should not be supported by default, users should have to do a --cap-add AUDIT_WRITE if they want this to work.

Is your failure SELinux or trying to do this as rootless?  I would figure rootless would not work.

@mheon After reading @vrothberg 's reply, I got curious and tested SSHD in container with the --cap-add CAP_AUDIT_WRITE flag. Surprisingly, that didn't fix the problem. There's something else breaks pam_loginuid.so in podman.

Interesting. Can you provide a few more details to help reproduce? Podman command used to run the container, whether you're running as root?

@mheon @rhatdan I'm running podman as root, with SELinux disabled. The podman command I ran unfortunately requires a private container image that I cannot provide. But I'll try find a valid public image to help reproduce the problem.

@mheon Reproduce Steps:

Add 'docker.io' to podman's registries.
Start a Fedora 20 container using

sudo podman run -it fedora:20 /bin/bash

Install OpenSSH server using

yum -y install openssh-server
ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ""

Create a temporary user and set its password.
Start SSHD on port 2222 with debug output

/usr/sbin/sshd -d -p 2222

SSH to the container from the outside

ssh -p 2222 <container IP>

fedora 20?

using your instructions and the latest master build, i was able to make this work perfectly.  the key is to use the latest fedora package that is actually from fedora.
sudo podman run -it --rm registry.fedoraproject.org/fedora:latest /bin/bash
[root@24899cac9bdd /]# dnf -y install passwd openssh-server
...
[root@24899cac9bdd /]# ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N ""
...
[root@24899cac9bdd /]# ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N ""
...
[root@24899cac9bdd /]# ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ""
...
[root@24899cac9bdd /]# useradd foobar
[root@24899cac9bdd /]# passwd foobar
...
[root@24899cac9bdd /]# /usr/sbin/sshd -d -p 2222
...
debug1: Bind to port 2222 on ::.
Server listening on :: port 2222.

In another terminal, ssh into the container.

Cool, thanks @baude , that's a really helpful observation for me.
Another interesting fact is, I just tested both Fedora 20 and latest Fedora on docker 19.03.1, sshd is working properly on both of them. So the old Fedora must have something inside its pam_loginuid that's working for docker, but won't work in podman. Is this fact helpful for you guys?

By the way, I feel I may have to briefly explain why I choose Fedora 20 to reproduce this bug.
I choose Fedora 20 because this bug was found on a RHEL 7.5 container (which is the majority of the RHEL systems I guess). I'm not familiar with the version mapping between Fedora and RHEL, but I roughly remember that some old RHEL 7 releases was based on Fedora 19~20. That's why I pick Fedora 20. Moreover, that means this bug may also exists in some newer Fedora versions.

@rhatdan @mheon ring any bells?
@Gh0u1L5 lemme try this on a centos container, much closer imho

The following works as expected.  Please try building this Dockerfile.
FROM registry.centos.org/centos:latest
RUN yum -y update && yum -y install openssh-server passwd && yum clean all
RUN ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N "" && ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N "" && ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N ""
RUN useradd foobar && echo "foobar:foobar" | chpasswd
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd

@Gh0u1L5 I hope my feedback works ... given that Fedora 20 is way past end-of-life, it is a tough scenario to work with.

One key difference between podman and docker is that when you run podman the  /proc/self/loginuid would be set, not sure if this would cause issues.   Since pam_loginuid will fail when it tries to set it.  In Docker it will not be set.
# podman run fedora cat /proc/self/loginuid
3267

That is my UID.
# docker run fedora cat /proc/self/loginuid
4294967295

That is the UID=-1 basically meaning the docker daemon was never started by a logged in user.
I would also try to run the sshd container fully privileged to see if something else is causing an issue.

may we close?

No, we're still working this one

I think this is fixed.  I don't see this as a bug.  It is just a configuration issue in the container image as @baude pointed out.  Reopen if you disagree.

@rhatdan, I kind of disagree with this being a configuration issue of the container.  That change of pam_loginuid.so from required to optional is a workaround.
However I wonder if that workaround could impose a security issue in some way?  Anyways, the root cause should really be fixed instead.
Unless I have totally misunderstood something, then this bug has been reported in Debian (726661, OCT 2013), LXC (#661, SEP 2015).
One of the Ubuntu/LXC developpers made a patch for this issue in linux-pam (https://github.com/linux-pam/linux-pam/commit/2e62d5aea3f5ac267cfa54f0ea1f8c07ac85a95a) JAN 2014.
BZ#1728777 was opened JUN 2019, regarding this patch nog being present in RH, and it seems to have been acceptet (Status: ON_QA → VERIFIED).
So i agree, this is not a bug in podman, it rather seems like a bug in RH and thus also CentOs, and potentially other distros as well, if they aren't using a "newer" version of pam or have backported that patch.
Sorry to bring up a closed ticket like this, but I felt like it was missing some background info, for future people coming by with this issue (like myself).


Do there any blockers to bump new release?

We are looking forward to using django-widget-tweaks with Django 3.2 on edX.
Required PR - #112 is already merged into the master branch.
Do there any chance a new version will be bumped soon?
If any blockers with the release I would be happy to help.
Thank you in advance.

@jramnai @camilonova is the project maintainer and can make releases to PyPI:
https://jazzband.co/projects/django-widget-tweaks
I've made a new tag which can be released through Jazzband.co automation, but I can't make the release myself.
@jezdez I can volunteer for maintaining django-widget-tweaks and helping out with releases, if that's OK with everyone.

@jramnai is there a blocker for using version 1.4.8 with Django 3.2 by the way?

no code changes and the tests passed. go ahead!

@jramnai is there a blocker for using version 1.4.8 with Django 3.2 by the way?

I haven't tried it but on Open edX, we are upgrading to Django 3.2, so we are updating all dependent packages.
BTW, thanks for the new tag.
@camilonova, looking forward to the new release.

@camilonova, @aleksihakli, @zodman any change for the new release?
Let me know if there is any blocker.
Thanks.

support the latest version of django only that. its a minority change.  go ahead with the release tag.

@jramnai me and zodman can't make a new release, please contact @camilonova who is the project lead on https://jazzband.co

@camilonova, can you take a look at this one?

@aleksihakli Good idea, thank you, let me try that.


Deploy and pass CGP for cEUR activation (staging)

The purpose of this governance proposal is to activate cEUR. It assumes that oracles for CELO/EUR are deployed and operational.
The proposal should include:

Unfreeze any contracts frozen in #6167
Add cEUR to the reserve (reserve.addToken)
Allow ExchangeCEUR to be a reserve exchange spender
Update any cEUR parameters that we've learned should be different than the initial values set for CR3 deployment
set cEUR as gas currency

oracle-CELOEUR-0 -> 0x4D169C0Ec17D3dEcB250701Aa64e966bE98a696B
oracle-CELOEUR-1 -> 0x034217fB0C08dec29a6beA99e75aAC39baf7459A
oracle-CELOEUR-2 -> 0xD20f803a1489849031725479Df27741c3326eD15
oracle-CELOEUR-3 -> 0x26412103865Be3F80152EA10E61E6294ed0e0DC9
oracle-CELOEUR-4 -> 0x7Ba21D1f769Ae9feCF58dEfB5bD08905Bd3B707B

Already passed!


ci: configure the protected branch

Configures CI for branch

@Neenu1995 Kokoro configuration doesn't seem to be setup.


Fix ranges

These commits correct two issues with ranges spotted by @phadej in #9.
The LaTeX license range fix is based on http://www.latex-project.org/lppl/, which makes pretty clear that LPPL-1.3c is a successor license to LPPL-1.3a.

@phadej and @shinnn, I'd be grateful for your input on semantic versioning. These strike me as mere bug fixes. Is everyone comfortable with 0.4.0 to 0.4.1 for these changes?
I believe npm currently depends on<EMAIL_ADDRESS>

I'm. :+1:


Blank project

What would be the best way to start a blank project in VS 2019?

create an empty console app, add nuget package and modify?
use the monogame c# templates and go from there?
just use the sample app from the repository?

Thanks

Hi! I'd probably just use one of the sample apps, as they're stripped back to whats absolutely necessary. One thing is that they have dependencies on the main xelmish project, NOT the nuget package, so you would either want to remove that reference and add the nuget package, or include xelmish itself with your project.
The latter isn't too bad an option: its only a very small amount of files, and has largely been built to my needs - you might find that there are things you want to change as you go, and having the (quite well commented) code handy might be more flexible than trying to get me to modify it and build another nuget package.

Thanks for the fast answer.
I was very happy to see Xelmish getting an update, great work!


can we install in the laravel 8 in my existing project

Problem 1
- Root composer.json requires mkocansey/bladewind ^0.1.7 -> satisfiable by mkocansey/bladewind[v0.1.7].
- mkocansey/bladewind v0.1.7 requires laravel/framework ^9.0 -> found laravel/framework[v9.0.0-beta.1, ..., 9.x-dev] but it conflicts with your root composer.json require (^8.75).

This is for Laravel 9.x only unfortunately

Hmmm, okay but you do something or change in composer file can work in the
laravel 8
Please......
On Fri, May 27, 2022, 1:45 PM Gavin Kimpson @.***>
wrote:

This is for Laravel 9.x only unfortunately
—
Reply to this email directly, view it on GitHub
https://github.com/mkocansey/bladewind/issues/19#issuecomment-1139388003,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AMNGPXQ625O5G3PWOBRGBO3VMCACZANCNFSM5XDOF6HQ
.
You are receiving this because you authored the thread.Message ID:
@.***>

@Tejas20002 I am working on making the components compatible with Laravel 8. Will notify you when this is done

@Tejas20002 check out this announcement https://github.com/mkocansey/bladewind/discussions/22


JsonWebSignature2020 Test Suite Compliance

After #20 add test suite to https://identity.foundation/JWS-Test-Suite/

work here https://github.com/decentralized-identity/JWS-Test-Suite/pull/48


[EventRequest] Report 513 Move IC Trans. to Partner Comp - TransferToPartner

Issue #3615 has only partly been delivered. Can you also implement the second publisher? Many thanks.
Originally posted by @lv-janpieter in https://github.com/microsoft/ALAppExtensions/issues/3615#issuecomment-530433148

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. We will update this issue with information about availability.


update canonical-book-list.json

Should have left a note yesterday on this PR: @ckline-tryptic and I discussed the changes a bit on 7/9, and the modified structure may not be necessary after all with the direction he's going to to try and take for cnx 1039. I suggest we place this PR on the back burner or in draft state for the time being. We can later close or merge it depending on what he finds during implementation of the related issue.


[BUG]: selecting an asset in project view breaks

Describe the bug
Choosing an asset breaks when done in a certain order (steps below).
To Reproduce
Steps to reproduce the behavior:

Open a project with more than one model and at least one other asset type
Select a model then select another model you have
Then select an asset of another type
See how the asset isn't chosen

Example video (note asset selection breaks as soon as I go from one model to another):
https://github.com/DARPA-ASKEM/terarium/assets/28237258/1904d70f-1276-415a-9676-ab45ea7d7ed9

Can't reproduce this anywhere anymore


Update ro.json

new strings translated and added.

we need the conflicts to be resolved before merging this one

Good morning.
Unfortunately, I could not find out what error/conflict you are talking
about.
Give me details so I can try to fix it.
Thanks,
Oli Schnelbach
On Wed, Feb 7, 2024 at 10:09 AM Mateusz Zatorski @.***>
wrote:

we need the conflicts to be resolved before merging this one
—
Reply to this email directly, view it on GitHub
https://github.com/Iternio-Planning-AB/abrp-translations/pull/702#issuecomment-1931489782,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ATO5BNJ55QJOOB5SQMEV5ADYSMZDJAVCNFSM6AAAAABCXF6CE6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZRGQ4DSNZYGI
.
You are receiving this because you authored the thread.Message ID:
@.***>

best and quickest would be to create a new change request as we updated the strings couple of times already


Check response interface for type instead of setting bool

This fixes #132 without removing the possibility of still being able to use ManifestList and ManifestV2 methods independently.
As the switch case will not add any headers if the type is not of *schema2.Manifest or *manifestlist.ManifestList I no longer saw the requirement for the addV2Header bool so I've cleaned that up.

awesome thanks!


How to prevent mongodb sql injection with go

Hi @upgradepa can you provide more context? Did you face this issue with this package, best you can do is sanitize your input you have plenty of packages for it? For now, I will close this issue since your issue is not related to this package.


Change Random number generator usage and guidelines

Many methods use random numbers to initialize a structure or run a method.
If many algorithms are ran with the same generator will step one over the other by re-initializing the generator state with a different seed.
The changes required are the following:

Each method should have an initial random state.
Algorithms should allow to initialize the state from outside to allow deterministic checking.
Existing algorithms should be modified accordingly.
Guidelines for contributors and users should be added to the documentation.

Please open separate issues for each algorithm that needs fixing. For the documentation, I opened issue #114.


nextjs file structure & duplicate child handled

Linked issue/ticket

Description

Reproduction steps

Checklist

[ ] I've followed the Contributing guidelines
[ ] I've titled my PR according to the Conventional Commits spec
[ ] I've added tests that fail without this PR but pass with it
[ ] I've linted, tested, and commented my code
[ ] I've updated documentation (if appropriate)

works with Nextjs app router file Structure with 'src' Directory and without 'src' Directory.


chore: move files into new Analysis.Normed.Module

part of my organization of Analysis.NormedSpace

Thanks!
bors merge

bors r-

Sorry, I didn't notice your message on Zulip. LGTM, thanks!
bors d+

bors merge


Mock up cork/uncork to avoid test failure

npm test fails on master with Node 4.x and 5.x. The PR mocks up the socket.cork/uncork methods to fix the test failure.

Hmm, strange that it's been passing in travis for 4.0 (see https://github.com/vpulim/node-soap/blob/master/.travis.yml#L8).

Coverage remained the same at 92.12% when pulling cea9a26a3b2568fcd516c2b8b18d2c101589834c on strongloop-forks:master into 367cf4dec2ee3774658707fba33cfc6411fba5ae on vpulim:master.

I'm on 4.4.x and 5.10.x. Without the PR, it fails:

should allow customization of httpClient and the wsdl file download should pass through it:
Uncaught TypeError: socket.cork is not a function
at ClientRequest._flushOutput (_http_outgoing.js:661:10)
at ClientRequest.OutgoingMessage._flush (_http_outgoing.js:640:16)
at _http_client.js:195:10
at callSocketMethod (_http_client.js:570:7)
at ClientRequest.onSocket (_http_client.js:575:7)
at tickOnSocket (_http_client.js:541:7)
at onSocketNT (_http_client.js:553:5)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

Thanks @raymondfeng !


Addresses some improvements from #71

[x] Remove ticker column and display ticker small next to company name
[x] Add edit icon to toggle delete button visibility
[x] Change neutral sentiment pie chart color from yellow to light grey
[x] Display categories, if available, at the bottom of article cards

@creitz thanks so much for a quick response. Either myself or Rich will review this, but at first glance it looks solid.


Windows 'updates.exe' times out

This issue respects the following points:

[X] This is a bug, not a question or a setup/configuration issue.
[X] This issue is not already reported on Github (I've searched it).
[X] I use the latest release of the Monitoring Plugins (https://github.com/Linuxfabrik/monitoring-plugins/releases).
[X] I agree to follow Monitoring Plugins's Code of Conduct.

Which variant of the Monitoring Plugins do you use?

[ ] .rpm/.deb package from repo.linuxfabrik.ch
[ ] Compiled for Linux (.tar/.zip from download.linuxfabrik.ch)
[X] Compiled for Windows (from download.linuxfabrik.ch)
[ ] Source Code from GitHub

Bug description
Windows 'updates.exe' plugin always returns a timeout.
I initially had an issue with permissions, but following issue 695 resolved that, but now is returning timeouts.
This happens whether run via a check, from the command line, both standard as well as elevated.

Steps to reproduce - Plugin call
'C:\ProgramData\icinga2\usr\lib64\nagios\plugins\updates.exe' '--critical' '50' '--timeout' '300' '--warning' '2'
Steps to reproduce - Data
Run the check whether from the Icinga2 portal or from the command line.
Environment
Windows Server 2022, domain joined, running either via the Icinga2 check, or manually through a standard command prompt or an elevated command prompt.
Plugin Version
updates: v2023112901 by Linuxfabrik GmbH, Zurich/Switzerland
Python version
No response
List of Python modules
Using Windows compiled version
Additional Information
No response

How long does the following command take on your machine? What does it return?
powershell -Command "
    $WindowsUpdates = New-Object -ComObject 'Microsoft.Update.Session';
    $SearchIndex = $WindowsUpdates.CreateUpdateSearcher();
    $Pending = $SearchIndex.Search('IsInstalled=0');
    foreach ($update in $Pending.Updates) {
        [string]$name = [string]::Format('{0} [{1}]', $update.Title, $update.LastDeploymentChangeTime);
        Write-Output $name;
    }
    "

Hi Mark,
I apologize for the late reply, apparently I did not have notifications enabled so I didn't see your reply until now.
This is from a non-elevated PowerShell prompt:
Get-Date

#powershell -Command "
    $WindowsUpdates = New-Object -ComObject 'Microsoft.Update.Session';
    $SearchIndex = $WindowsUpdates.CreateUpdateSearcher();
    $Pending = $SearchIndex.Search('IsInstalled=0');
    foreach ($update in $Pending.Updates) {
        [string]$name = [string]::Format('{0} [{1}]', $update.Title, $update.LastDeploymentChangeTime);
        Write-Output $name;
    }
#    "

Get-Date

Results:
Monday, June 3, 2024 6:53:49 PM
Monday, June 3, 2024 6:57:05 PM

Try to increase the timeout by updates --timeout 600.
Closing this issue.

Interestingly, the plugin does not seem to be respecting the timeout.
Executed Command
'C:\ProgramData\icinga2\usr\lib64\nagios\plugins\updates.exe' '--critical' '50' '--timeout' '600' '--warning' '2'

Object Properties
__name	"test-srv22.mydomain.com!Updates"
acknowledgement	1
acknowledgement_expiry	0
acknowledgement_last_change<PHONE_NUMBER>.907525
action_url	""
active	true
check_attempt	1
check_command	cmd-check-updates-windows
check_interval	86400
check_period	""
check_timeout	10
command_endpoint	"test-srv22.mydomain.com"
display_name	"Updates"
downtime_depth	0
enable_active_checks	true
enable_event_handler	false
enable_flapping	false

Odd the 'check_timeout' is '10', when the command line shows '--timeout' is '600'.

Yeah, seems to be an Icinga issue.


Quoted MySQL table name when using LOAD DATA INFILE

@alexmojaki can you add a test for this change?

@cpcloud I can't see any existing tests for loading data into SQL (although I don't know this repo well so it may be right there) and I'm not going to create one from scratch. If you want to build on an existing test then try a table name with a non-standard character such as - in it (this is how I ran into the problem).

Closing in favor of #371


New exercise: Space age

There we go! Another exercise.

What happened to this one?

Oops!! I made a mistake while playing locally with the repo (rebasing,...). Then, I pushed my local changes and broke my repo on github :cry:
I wasn't sure how to fix it, so I decided to start from scratch. I deleted my github repo, and cloned again from exercism/xecmascript. It seems I broke more things than my local and github repo.
is exercism/xecmascript repo ok? I hope so. I hope it's only this pull request what is wrong.

Yeah, exercism/xecmascript is fine :)
If you have time, check out this video: https://www.youtube.com/watch?v=1ffBJ4sVUb4 Git Ages 4 and Up

4 and up? :joy: I think I can do it. Thanks for the video!!

LOL, yeah, I know. The quality of the video/sound is not great, but the content is phenomenal.


stopRecorder not working in functional component

Please fill the template to help you out. Also, please try the Example project compare before submiting the issue when you have certain issue with your project setup.

Version of react-native-audio-recorder-player
"react-native-audio-recorder-player": "^3.0.2"

Version of React Native
"react-native": "0.64.0",

Platforms you faced the error (IOS or Android or both?)
Android. not tested in ios
Expected behavior
voice recording should stop
Actual behavior
recording still on and logged Already stopped

Could you try the Test project? I've not experienced this. It should not matter with the functional component.

Could you try the Test project? I've not experienced this. It should not matter with the functional component.

yes i have test with a test project it doesn't work  with functional component
here is stop function i am using
 const onStopRecord = async () => {       const result = await audioRecorderPlayer.stopRecorder();       audioRecorderPlayer.removeRecordBackListener();       setrecordSecs(0)       console.log(result);     };

I am suspecting, something rerenders your functional component before stopping.
Try to wrap this with useCallback.
It should not matter with the functional component theoretically.
Try to share your codes so someone can see your logical error.

thank you so much brother it worked with useCallback
here is the code
for start recording
 const onStartRecord = React.useCallback(async () => {     if (Platform.OS === 'android') {       try {         const grants = await PermissionsAndroid.requestMultiple([           PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,           PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE,           PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,         ]);         console.log('write external stroage', grants);         if (           grants['android.permission.WRITE_EXTERNAL_STORAGE'] ===             PermissionsAndroid.RESULTS.GRANTED &&           grants['android.permission.READ_EXTERNAL_STORAGE'] ===             PermissionsAndroid.RESULTS.GRANTED &&           grants['android.permission.RECORD_AUDIO'] ===             PermissionsAndroid.RESULTS.GRANTED         ) {           console.log('permissions granted');         } else {           console.log('All required permissions not granted');           return;         }       } catch (err) {         console.warn(err);         return;       }     }     const audioSet: AudioSet = {       AudioEncoderAndroid: AudioEncoderAndroidType.AAC,       AudioSourceAndroid: AudioSourceAndroidType.MIC,       AVEncoderAudioQualityKeyIOS: AVEncoderAudioQualityIOSType.high,       AVNumberOfChannelsKeyIOS: 2,       AVFormatIDKeyIOS: AVEncodingOption.aac,     };     console.log('audioSet', audioSet);     const uri = await audioRecorderPlayer.startRecorder(undefined, audioSet);     audioRecorderPlayer.addRecordBackListener((e: RecordBackType) => {       console.log('record-back', e);       setrecordSecs(e.currentPosition);       setrecordTime(audioRecorderPlayer.mmssss(Math.floor(e.currentPosition)));     });     console.log(uri: ${uri}`);
}, []);
for stop recording
const onStopRecord = React.useCallback(async () => {
const result = await audioRecorderPlayer.stopRecorder();
audioRecorderPlayer.removeRecordBackListener();
setrecordSecs(0);
console.log(result);
}, []);
`
again thanks for you help really appreciated

Formatted @Aditya1942's code for reference
for start recording:
const onStartRecord = React.useCallback(async () => {
    if (Platform.OS === 'android') {
        try {
            const grants = await PermissionsAndroid.requestMultiple([
                PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,
                PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE,
                PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
            ]);
            console.log('write external stroage', grants);
            if ( grants['android.permission.WRITE_EXTERNAL_STORAGE'] === PermissionsAndroid.RESULTS.GRANTED && grants['android.permission.READ_EXTERNAL_STORAGE'] === PermissionsAndroid.RESULTS.GRANTED && grants['android.permission.RECORD_AUDIO'] === PermissionsAndroid.RESULTS.GRANTED ) {
                console.log('permissions granted');
            } else {
                console.log('All required permissions not granted');
                return;
            }
        } catch (err) {
            console.warn(err);
            return;
        }
    }
    const audioSet: AudioSet = {
        AudioEncoderAndroid: AudioEncoderAndroidType.AAC,
        AudioSourceAndroid: AudioSourceAndroidType.MIC,
        AVEncoderAudioQualityKeyIOS: AVEncoderAudioQualityIOSType.high,
        AVNumberOfChannelsKeyIOS: 2, AVFormatIDKeyIOS: AVEncodingOption.aac,
    };
    console.log('audioSet', audioSet);
    const uri = await audioRecorderPlayer.startRecorder(undefined, audioSet);
    audioRecorderPlayer.addRecordBackListener((e: RecordBackType) => {
        console.log('record-back', e);
        setrecordSecs(e.currentPosition);
        setrecordTime(audioRecorderPlayer.mmssss(Math.floor(e.currentPosition)));
    });
    console.log(uri: ${uri}`);
}, []);

for stop recording:
const onStopRecord = React.useCallback(async () => {
     const result = await audioRecorderPlayer.stopRecorder();
     audioRecorderPlayer.removeRecordBackListener();
     setrecordSecs(0);
     console.log(result);
}, []);

@hyochan #442 I shared my code that is having issues here

Hi, I am trying to implement a listener in the functional component, can anyone please tell me where they are importing audioRecorderPlayer from?
Is there any codebase I can take a look at?
Thank you

Hi, I am trying to implement a listener in the functional component, can anyone please tell me where they are importing audioRecorderPlayer from?
Is there any codebase I can take a look at?
Thank you

https://github.com/hyochan/react-native-audio-recorder-player/tree/main/Example

Hi, I was having this same issue, and useCallback didn't solve it for me.
Instead, moving audioRecorderPlayer initialization outside of the component did it.
import AudioRecorderPlayer from 'react-native-audio-recorder-player';
const audioRecorderPlayer = new AudioRecorderPlayer();
const yourComponent = () => {
...
}

https://github.com/hyochan/react-native-audio-recorder-player/tree/main/Example

I tried to use useCallback hook and even i moved const audioRecorderPlayer = new AudioRecorderPlayer(); outside of component but still problem persists, The component is re-rendering again and again
`
const onStartRecord = useCallback(async () => {
try {
  if (audioRecorderPlayer) {
    audioRecorderPlayer.stopPlayer();
    setIsPlaying('');
    audioRecorderPlayer.removePlayBackListener();
    setPlayTime('00:00:00');
    if (Platform.OS === 'android') {
      const grants = await PermissionsAndroid.requestMultiple([
        PermissionsAndroid.PERMISSIONS.WRITE_EXTERNAL_STORAGE,
        PermissionsAndroid.PERMISSIONS.READ_EXTERNAL_STORAGE,
        PermissionsAndroid.PERMISSIONS.RECORD_AUDIO,
      ]);

      console.log('write external stroage', grants);

      if (
        !(
          grants['android.permission.WRITE_EXTERNAL_STORAGE'] ===
            PermissionsAndroid.RESULTS.GRANTED &&
          grants['android.permission.READ_EXTERNAL_STORAGE'] ===
            PermissionsAndroid.RESULTS.GRANTED &&
          grants['android.permission.RECORD_AUDIO'] ===
            PermissionsAndroid.RESULTS.GRANTED
        )
      ) {
        console.log('All required permissions not granted');

        return false;
      }
    }

    const path = Platform.select({
      ios: `${dayjs().format('DDMMYYYY[at]HHmmss')}.m4a`,
      android: `${dirs.CacheDir}/${dayjs().format(
        'DDMMYYYY[at]HHmmss',
      )}.m4a`,
    });
    // const path = `${dayjs().format('DD-MM-YYYY[at]HH:mm:ss')}.aac`;

    const audioSet = {
      AudioEncoderAndroid: AudioEncoderAndroidType.AAC,
      AudioSourceAndroid: AudioSourceAndroidType.MIC,
      AVEncoderAudioQualityKeyIOS: AVEncoderAudioQualityIOSType.high,
      AVNumberOfChannelsKeyIOS: 2,
      AVFormatIDKeyIOS: AVEncodingOption.aac,
      OutputFormatAndroid: OutputFormatAndroidType.AAC_ADTS,
    };
    const uri = await audioRecorderPlayer.startRecorder(path, audioSet);

    await audioRecorderPlayer.addRecordBackListener(e => {
      setRecordSecs(e.currentPosition);
      setRecordTime(
        audioRecorderPlayer.mmssss(Math.floor(e.currentPosition)),
      );
    });
    console.log(uri, 'URI');
  }
      } catch (err) {
        console.warn(err);
        return;
      }
 }, []);

`

Just want to add that this issue is also on ios. Using callback fixed this issue on my end.


Stripe Identity integration

Changes

Stripe integration

Added /profile/verify page where verification can be initiated using Stripe Identity
New environmental variables. For web, the Stripe public API key. For api and scribe, the Stripe API secret.
API endpoints for creating a verification session and getting a verification session for a user.
User table has new verificationId column for storing the current verification session.
Stripe SDK

Closing since Stripe Identity doesn't do ongoing monitoring, but this could be useful down the road.


Re-create QR code after editing.

Please allow editing a QR code definition, and regenerating the QR code.
Many sites these days don't save the QR code in an actual file, but generate them client-side in the browser.  It should be
simple to remove all the server size image generation, and use the client side generation with a slider controlling the image
size.   The user can then right click on them and select save-as.

thanks for the suggestion. Currently I can’t release a new version, so I invite you to contribute to the project


Footer for the Website

Issue Type:
Hi sir @arpit456jain  I will create a beautiful and yes, responsive footer for the website.

something like this. this is actually my website design but ill create one beautiful footer like this for this website as well

@arpit456jain Please assign this issue to , design is ready. and just half development is also on the way please assign this task to me

Sir I would like to work on this issue. I will create fully responsive and beautiful footer for this website. Kindly assign this issue to me.

Sir I would like to work on this issue. I can create fully responsive and beautiful footer for this website.
Please Kindly assign this issue to me.

Sir I would like to work on this issue. I can create fully responsive and beautiful footer for this website with animations.
Please Kindly assign this issue to me.

@Abh1shekSingh can u make a footer exactly like this

Hey! @arpit456jain I would like to work on this issue under GSSoC'22 . Please Assign me with this issue .

@arpit456jain i can make a footer exactly like that

Yes sir
On Wed, Mar 2, 2022, 12:06 AM Arpit Jain @.***> wrote:

[image: footer]
https://user-images.githubusercontent.com/55352601/156228446-a300fcf7-386d-4fcf-b5ad-b11b3f03ff0a.png
@Abh1shekSingh https://github.com/Abh1shekSingh can u make a footer
exactly like this
—
Reply to this email directly, view it on GitHub
https://github.com/arpit456jain/Amazing-Css-Effects/issues/270#issuecomment-1055739593,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARFFTFZGEL7PDG54GVTTQ6LU5ZPTVANCNFSM5PUPT6UA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

@Abh1shekSingh can u make a footer exactly like this

SIR I HAVE BUILT and completed with the development part of this issue as you have asked to do this. I have created Footer the exact way you want. and yes it is responsive too
here are the images

Sir Have made the footer and given the attachment as well so that you can
see. please assign this issue to, so that i can make pull request [image:
proof2.JPG][image: prrof1.JPG]
On Wed, Mar 2, 2022 at 7:19 AM Abhishek Singh @.***>
wrote:

Yes sir
On Wed, Mar 2, 2022, 12:06 AM Arpit Jain @.***> wrote:

[image: footer]
https://user-images.githubusercontent.com/55352601/156228446-a300fcf7-386d-4fcf-b5ad-b11b3f03ff0a.png
@Abh1shekSingh https://github.com/Abh1shekSingh can u make a footer
exactly like this
—
Reply to this email directly, view it on GitHub
https://github.com/arpit456jain/Amazing-Css-Effects/issues/270#issuecomment-1055739593,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARFFTFZGEL7PDG54GVTTQ6LU5ZPTVANCNFSM5PUPT6UA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were mentioned.Message ID:
@.***>

LGTM. Thanks for contributing!

Thank you so much for giving this opportunity
On Wed, Mar 2, 2022 at 7:20 PM VIDHI BHATT @.***> wrote:

LGTM. Thanks for contributing!
—
Reply to this email directly, view it on GitHub
https://github.com/arpit456jain/Amazing-Css-Effects/issues/270#issuecomment-1056952841,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ARFFTF2DYOAJWPWHYISLQGDU55WZVANCNFSM5PUPT6UA
.
Triage notifications on the go with GitHub Mobile for iOS
https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675
or Android
https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you were assigned.Message ID:
@.***>


Notebooks: Ability to change font size of markdown rendering

Was playing around a bit, and didn't see a way to set this. Both Editor Font Size and Markdown Preview Font Size didn't look to change it. Per chat with @rebornix this might be a few feature to add.

Note: "this is a normal line" is the markdown cell.

I would consider this a "bug" since the markdown.preview.fontSize setting says:

Controls the font size in pixels used in the Markdown preview.

See related issue https://github.com/microsoft/vscode/issues/123149

Not in favor of reusing that setting for notebooks. I believe we should add a new setting for notebook markup/outputs
What do people want this setting to do? Scale everything? Or just the body text?

I think the same way the current setting scales everything. I think having separate settings is fine, same for output as long as it inherits from the notebook default.

@mjbvz

What do people want this setting to do? Scale everything? Or just the body text?

It would be nice to have a setting to scale everything (headers/text/etc) so that when editor.fontSize is larger for visibility, all the rendered markdown can be independently scaled up so that the markdown & code cells look proportional. For example, this would allow scaling the markdown so that rendered code blocks / inline code match the scale of actual code cells.

I am desperately waiting for an update for this feature. I changed "Markdown > Preview: Font Size" to be same as "Editor: Font Size" but it seems like it's not the feature that I expected.
I think making independent settings will be better for users to make things customizable.

If it's not this small people would not have noticed it. Just make it larger before adding customization feature for this.

I'd like to add that as well as it being too small relative to the code and output text by default, in cases where I've deliberately set the editor's font size larger (to accommodate a small screen without also scaling the UI) the Markdown output then also looks completely out of place.
So it's not enough to set the default to a larger font size, but that size should either change in proportion to the current editor font size, or there should be a setting that allows for tweaking the two independently of each other.

Note that while there isn't the ability to change the notebook markdown font size separately, the current vscode-insider builds have increased the default size. For many of you this may be sufficient. However, keeping this issue open for possibly adding a the separate setting.

I would just like to make a comparison with Databrick's Python Notebooks Markdown Feature:

With VSCode's Jupyter Notebook Markdown Feature:

I do think a separate setting would be best for users who would like to have a bigger Markdown font size (which, in my case, is much better for my eyesight and helps me a lot in commenting the code) and separating it in blocks.

H1. In my case, the font size is way too small (13px). I have a high resolution tablet display. As far as I can see, this comes from the default font size of the editor. See screenshot.

Please consider changing the font size in the next version.  Now it is too small for reading.

Thanks for all the feedback here. We do understand that having a separate setting to adjust the size of markdown text in a cell would be ideal. However, our resourcing situation is such that it's not as high priority of a work item to get done. PR's are welcome! :)
However, an in-the-meantime fix is to simply change the default size of the text as we did earlier. Given the following screenshot you can see the size of the VS Code font is pretty close to that of Jupyter Notebook. Both use font a font height that's similar to that of the code block fonts.
It does look like the font kerning and family may be different between VS Code and Jupyter because VS Code's text appears a bit more "squished". It's also gray by default vs black. That certainly doesn't help the situation.

But then there's Google Colab. It is obviously using a much larger default font size. In fact, it's markdown text size is significantly larger than the code itself.
All this said, we can certainly bump the default size a bit more to make it similar to that of Colab. However, that wouldn't likely fix the problem that @tilohauke screen-shotted above where the markdown text is significantly smaller than that of the code. @tilohauke, what is the code behind your screenshot?

The tiny Markdown font size makes Jupyter Notebooks in VS Code pretty much unusable, especially on 2K or even 4K displays. As pointed out in this comment, the font size uses a CSS variable that is not possible to change in the settings.
The only possible workaround I found was using the DevTools to change the variable every time I start up VS Code but that is not sustainable. Example screenshot attached.

Hi, I found a good to adjust the rendered markdown text.

Normal text

Hi, I found the good way to adjust the font related problems is using inline CSS command. For example:

Normal text (e.g. some explanations or your conclusions)
before applying css:

after applying css:

it is easy that you can adjust the font family, font size , font color or other formats. yes indeed, you may learn some about css, but you only need to focus on few common html elements, for example, a, p, h1~4.
Latex symbols and math formulas
original:

u just need  '\huge' or '\large' or '\Huge' command:

Hopefully, it is useful.

The next insiders build adds a new notebook.markup.fontSize setting which controls the size of rendered markdown
It defaults to 120% of your editor font size (so 12px editor font size == 14.4px). We may adjust the default value based on feedback


Produces application/pdf ignored

Problem statement
The below swagger definition will generate the ProducersFor:
func (o *SomeAPI) ProducersFor(mediaTypes []string) map[string]runtime.Producer {

	result := make(map[string]runtime.Producer)
	for _, mt := range mediaTypes {
		switch mt {

		case "text/html":
			result["text/html"] = o.HTMLProducer

		}
	}
	return result

}

So the application/pdf is ignored.
Also there is no producer property:
type SomeAPI struct {
...
	// JSONConsumer registers a consumer for a "application/json" mime type
	JSONConsumer runtime.Consumer

	// HTMLProducer registers a producer for a "text/html" mime type
	HTMLProducer runtime.Producer
...
}

Reading the source code, this seems intended. Is there any way to add a custom producer? I want the application/pdf producer to do the same as runtime.ByteStreamProducer(), but I cannot find any way to set it as there is no ApplicationPDFProducer property generated.
I expected this to work the same way as security schemes, where you get a handler which you can override for each scheme.
Swagger specification
paths:
  /some/path:
    get:
      operationId: "getPDF"
      produces:
      - "application/pdf"
      - "text/html"
      responses:
        200:
          description: "ok"
          schema:
            type: "string"
            format: "binary"
        default:
          description: "Unexpected error"
          schema:
            type: "object"

Environment
swagger version: 0.13.0
go version: 1.9
OS:   OSX El Capitan

Supported mimes are currently hardcoded here in generator/support.go.
Refactoring this and making it configurable could be a good PR, not too difficult.

Can application/zip be added as well?
I got
http: panic serving [::1]:45488: applicationZip producer has not yet been implemented
for
a swagger containing (except):
produces:
- application/zip
responses:
'200':
description: zip
schema:
type: file
with the following code:
return a.NewXOK().WithPayload(res.Body)

You can add it yourself: https://github.com/go-openapi/runtime/blob/master/json.go
And then just register it. Those consumers/producers are designed so that you can add your own because it's a near infinte list of posibilities

Not so long ago, I've added a couple common mime to be supported by generated code. application/pdf is now in the list:
https://github.com/go-swagger/go-swagger/blob/468a61360689c96f4e1a7350feeadf8eebb44b50/generator/media.go#L38


Implement 64bit div/idiv for amd64 backend.

Codecov Report

Merging #118 into master will increase coverage by 0.13%.
The diff coverage is 79.41%.

@@            Coverage Diff             @@
##           master     #118      +/-   ##
==========================================
+ Coverage   65.51%   65.65%   +0.13%
==========================================
  Files          41       41
  Lines        3883     3916      +33
==========================================
+ Hits         2544     2571      +27
- Misses       1072     1078       +6
  Partials      267      267

Impacted Files
Coverage Δ

exec/vm.go
84.13% <ø> (ø)
:arrow_up:

exec/internal/compile/scanner.go
0% <0%> (ø)
:arrow_up:

exec/internal/compile/backend_amd64.go
79.82% <81.81%> (+0.32%)
:arrow_up:

Continue to review full report at Codecov.

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