scale is not work for canvas element

Steps To Reproduce

As above, when scale is set to a value which is greater than 1, plain html element is scaled as expected  while canvas element is not.
Error Message & Stack Trace
<!-- Provide a log message if relevant -->

Your Environment

modern-screenshot: [e.g. 4.4.9]
Browser: [e.g. chrome 111.0.5563.64]

@qq15725 Is there a way to solve this problem? It's quite common to set scale to 2 for macOS User, because macintosh uses a retina screen.


[core] IfRegionMaker find the wrong outBlock

Issue details
jadx failed to decompiled a method in this smali class.
/* JADX WARN: Multi-variable type inference failed */
    /* JADX WARN: Removed duplicated region for block: B:10:0x0065  */
    /* JADX WARN: Removed duplicated region for block: B:8:0x0064 A[RETURN] */
    /*
        Code decompiled incorrectly, please refer to instructions dump.
    */
    protected void onCreate(Bundle bundle) {
        ViewFacade viewFacade;
        super.onCreate(bundle);
        ApplicationStateBase applicationState = getApplicationState();
        XServerComponent component = applicationState.getEnvironment().getComponent(XServerComponent.class);
        Class cls = (Class) getIntent().getSerializableExtra("facadeclass");
        if (cls != null) {
            try {
                viewFacade = (ViewFacade) cls.getDeclaredConstructor(XServer.class, ApplicationStateBase.class).newInstance(component.getXServer(), applicationState);
            } catch (Exception unused) {
                Assert.state(ENABLE_TRACING_METHODS);
            }
            getWindow().addFlags(128);
            getWindow().addFlags(4194304);
            setContentView(R.layout.main);
            if (checkForSuddenDeath()) {
                this.viewOfXServer = new ViewOfXServer(this, component.getXServer(), viewFacade, applicationState.getXServerViewConfiguration());
                this.periodicIabCheckTimer.start();
                return;
            }
            return;
        }
        viewFacade = null;
        getWindow().addFlags(128);
        getWindow().addFlags(4194304);
        setContentView(R.layout.main);
        if (checkForSuddenDeath()) {
        }
    }

by looking into smali, the correct java code should be like
if (cls != null) {
    try {
        viewFacade = (ViewFacade) cls.getDeclaredConstructor(XServer.class, ApplicationStateBase.class).newInstance(component.getXServer(), applicationState);
    } catch (Exception unused) {
        Assert.state(ENABLE_TRACING_METHODS);
        viewFacade = null;
    }
} else {
    viewFacade = null;
}
getWindow().addFlags(128);
//...

the reason is that in IfRegionMaker.isBadBranchBlock(),  else block has two predecessors and one of them is not in info.getMergedBlocks(). so else branch is thought as bad branch and extracted as out block.
in this case, else block indeed is in the end of then block, but is not 100% to be executed, so should still keep as else block.
Relevant log output or stacktrace
No response
Provide sample and class/method full name
sample smali
Jadx version
latest commit(f4849d67cff4fc9382c97f77c070805886e05eb8)

Issue with incorrect if restore is fixed in PR #2385.
But part with missing viewFacade = null; still not fixed. I will try to implement check and duplicate required block.
Also, it will nice to fix type inference issue :slightly_smiling_face:

the type inference warning only appears when this class's depedencies are missing. after de629544a37242d300a14d7d7d7e7f7e1715b09e , the type inference works correctly with the completed apk.

type inference warning only appears when this class's depedencies smali are missing. so maybe its not a big deal?

Sure, but this warning is about incorrect type for this, such warning is pointless, so I will just disable it :rofl:


Add .env-example

Let's add an .env-example file, so other people also know what the .env file (which is in .gitignore) should look like.
For example:
SECRET_KEY=example-secret-key
DEBUG=True
...

That's a good idea


Rootless run fails

/kind bug

Description
/usr/bin/podman --log-level=debug run hello-world fails, logs here
Describe the results you received:
See logs.
Describe the results you expected:
Some hello world message.
Output of podman version:
Version:       0.6.5
Go Version:    go1.10.3
OS/Arch:       linux/amd64

(as included in Silverblue; version 28.20180707.0)
Output of podman info:
host:
  MemFree: 113836032
  MemTotal:<PHONE_NUMBER>
  SwapFree: 0
  SwapTotal: 0
  arch: amd64
  cpus: 4
  hostname: localhost.localdomain
  kernel: 4.17.3-200.fc28.x86_64
  os: linux
insecure registries:
  registries: []
registries:
  registries:
  - docker.io
  - registry.fedoraproject.org
  - quay.io
  - registry.access.redhat.com
  - registry.centos.org
store:
  ContainerStore:
    number: 13
  GraphDriverName: vfs
  GraphOptions: []
  GraphRoot: /home/aengelke/.local/share/containers/storage
  GraphStatus: {}
  ImageStore:
    number: 1
  RunRoot: /run/user/1000/run

@giuseppe PTAL when you get a chance.
I tried reproducing locally, and I'm running into issues pulling images while rootless - might be another bug there.

right that doesn't work on Silverlight as /home is a symlink to var/home.
The error is coming from runc that doesn't like symlinks into the path to the container rootfs:
/home/aengelke/.local/share/containers/storage/vfs/dir/86037da8b7681a729869f5478a543655d79d9bd7aab5c8de0c639caee073b6a6 is not an absolute path or is a symlink

I am taking a look, should be enough to fully resolve the path before feeding it to the runtime

Thanks for tracking this down -- my temporary workaround is to set HOME=/var/home/aengelke instead.

does that solve the issue for you?  Do you encounter other issues after the workaround?
@mheon what images have you tried?  Oner issue I am aware of is with images that have device nodes included in the layers will fail to be extracted, as a non root user cannot use mknod, but that should be addressed by the kernel in Linux 4.18

@aengelke I've opened a PR: https://github.com/projectatomic/libpod/pull/1075
It solved the problem for me on Fedora Atomic (Version: 28.20180708.0 (2018-07-08 20:03:31), but if you are still having other issues, I can address them as part of the same PR

@aengelke is your username listed in /etc/subuid and /etc/subgid?

Uhh, no, it's not. What shall I put there?

Ok, after putting some generous amount of subuid and subgids, it works. Is this the intended behavior and just missing some documentation? Thanks anyway.

the subuids/subgids should be added automatically by adduser, but that doesn't work if your are using some old /etc configuration files that were generated before the adduser supported the subids (I also had the same problem with my ancient configurations files and I needed to add the mappings manually).
I think we should make it an error and don't let podman run if there are not subids available for the user.  The only blocker for it is our CI.

@giuseppe I'm not sure exactly what was happening on my end, but deleting/recreating the c/storage dir in my home directory seems to have fixed it.

@mheon SELinux?
@giuseppe I think ignoring/blocking images with devicenodes is a good thing....  I have a PR for containers/storage to allow us to pass in NODEV by default.  Need to get @nalind to review it.
Having podman realize it is running as non root, it should check to see if the user has an entry in /etc/subuid, /etc/subgid files, and report an error to help them out.

@rhatdan Don't think so, nothing in the audit logs. Maybe regular old Unix permissions were messed up somewhere?

@giuseppe I think we need to talk about having a storage.conf for non root users, and then users could customize it by copying it to their homedir.

@mheon Maybe.  Might have been blocked by SELinux dontaudit rules also.  But who knows.

@rhatdan I relaxed the error for podman when there are no entries in /etc/subuid, /etc/subgid so that tests could pass on the CI.  But I think we should re-enable it, or allow it only from the CI, as running with only one user mapped breaks almost any image

SGTM


Fix PGP EC Key Conversion

This PR is based on #1663 and fixes JcaPGPKeyConverter conversions for Elliptic Curve keys (Brainpool, NIST etc.).
The test from aeb001d4b9556502fc2205babef9d23375cacf87 shows that conversion between Jca and BC keys fails for some elliptic curve based keys, because some keys report the wrong OID (X9ObjectIdentifiers.id_ecPublicKey).
The patch from 87bbd5db7218e69cb397e47d9183a2a7f8db7f6f drills down on the key to detect the proper OID by iterating over all known curves (a bit inefficient, is there a cleaner way?).

Some observations:
JcaPGPKeyConverter still fails to convert EC keys over prime256v1 and P-256 if no BouncyCastleProvider is set.

Thanks. Merged with revision - you'll find the changes in JcaPGPKeyConverter, I've generalized it to deal with non-BC keys and also added use of the X962Parameters type which is the ASN.1 construct you'll find in a key of type id_ecPublicKey. It would be worth having a look as it explains what's going on internally in the actual Java providers (well at least the ones I have seen to date).


update command description in CLI

- What I did

correct some wrong description of docker commandline
change Args Number of a command, such as command plugin
update related docs

- How I did it
- How to verify it
- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)
Signed-off-by: allencloud<EMAIL_ADDRESS>

test this pleae

test this please

I'm trying to re-trigger the docs checker

LGTM after https://github.com/docker/docker/pull/25240#discussion_r72874032 has been addressed

LGTM 👼

this is not really just docs - its got code file changes.

@SvenDowideit not strictly needed, please read https://github.com/docker/docker/blob/master/project/PATCH-RELEASES.md


Crash when closing a BrowserWindow

Some of our users (including me now) are signalling crash of our application (GitBook Editor beta).
I don't know exactly how to reproduce it (it happens only for a few users on Windows/Mac). It seems related to the closing of a BrowserWindow (after a win.close()).
Crash report: https://gist.github.com/SamyPesse/17b165a93b17480cf244
The application is using electron 0.36.7
I'll be happy to provide more information (ex: code snippets) to help understand the source of this bug,
Thanks :beers:

Stack track:
url::Parsed::set_inner_parsed(url::Parsed const&) (in Electron Framework) (url_parse.h:194)
GURL::operator=(GURL) (in Electron Framework) (gurl.cc:170)
content::NavigationHandleImpl::DidRedirectNavigation(GURL const&) (in Electron Framework) (navigation_handle_impl.cc:195)
content::WebContentsImpl::DidGetRedirectForResourceRequest(content::RenderFrameHost*, content::ResourceRedirectDetails const&) (in Electron Framework) (web_contents_impl.cc:2573)
base::internal::Invoker<base::IndexSequence<0ul, 1ul, 2ul>, base::internal::BindState<base::internal::RunnableAdapter<void (*)(int, int, scoped_ptr<content::ResourceRedirectDetails, base::DefaultDeleter<content::ResourceRedirectDetails> >)>, void (int, int, scoped_ptr<content::ResourceRedirectDetails, base::DefaultDeleter<content::ResourceRedirectDetails> >), base::internal::TypeList<int, int, base::internal::PassedWrapper<scoped_ptr<content::ResourceRedirectDetails, base::DefaultDeleter<content::ResourceRedirectDetails> > > > >, base::internal::TypeList<base::internal::UnwrapTraits<int>, base::internal::UnwrapTraits<int>, base::internal::UnwrapTraits<base::internal::PassedWrapper<scoped_ptr<content::ResourceRedirectDetails, base::DefaultDeleter<content::ResourceRedirectDetails> > > > >, base::internal::InvokeHelper<false, void, base::internal::RunnableAdapter<void (*)(int, int, scoped_ptr<content::ResourceRedirectDetails, base::DefaultDeleter<content::ResourceRedirectDetails> >)>, base::internal::TypeList<int const&, int const&, scoped_ptr<content::ResourceRedirectDetails, base::DefaultDeleter<content::ResourceRedirectDetails> > > >, void ()>::Run(base::internal::BindStateBase*) (in Electron Framework) (bind_internal.h:343)
base::debug::TaskAnnotator::RunTask(char const*, base::PendingTask const&) (in Electron Framework) (task_annotator.cc:51)
base::MessageLoop::RunTask(base::PendingTask const&) (in Electron Framework) (message_loop.cc:482)
base::MessageLoop::DoWork() (in Electron Framework) (message_loop.cc:605)
base::MessagePumpCFRunLoopBase::RunWork() (in Electron Framework) (message_pump_mac.mm:328)
base::mac::CallWithEHFrame(void () block_pointer) (in Electron Framework) (call_with_eh_frame_asm.S:38)
...
base::MessagePumpNSApplication::DoRun(base::MessagePump::Delegate*) (in Electron Framework) (message_pump_mac.mm:680)
base::MessagePumpCFRunLoopBase::Run(base::MessagePump::Delegate*) (in Electron Framework) (message_pump_mac.mm:239)
base::RunLoop::Run() (in Electron Framework) (run_loop.cc:56)
content::BrowserMainLoop::MainMessageLoopRun() (in Electron Framework) (browser_main_loop.cc:1339)
content::BrowserMainLoop::RunMainMessageLoopParts() (in Electron Framework) (browser_main_loop.cc:917)
content::BrowserMainRunnerImpl::Run() (in Electron Framework) (browser_main_runner.cc:236)
content::BrowserMain(content::MainFunctionParams const&) (in Electron Framework) (browser_main.cc:26)
content::ContentMainRunnerImpl::Run() (in Electron Framework) (content_main_runner.cc:798)
content::ContentMain(content::ContentMainParams const&) (in Electron Framework) (content_main.cc:19)

I think it is an upstream bug which had already been fixed by https://chromium.googlesource.com/chromium/src/+/314c15b4182d6c1c12c02dc2b2a2adc66dd4ed1e^!/. We will get the fix once we upgraded to Chrome 48.

Also if you are using the did-get-redirect-request event in your code, it might help by removing it.

Thank you @zcbenz
I've removed the did-get-redirect-request, but it's still crashing (https://gist.github.com/SamyPesse/d93f9bce28d7da455677).
I'll wait for the next release with chrome 48 and let you know if it fix it.

@SamyPesse The new crash report makes it look like another bug, can you try making an reproducible example for this? The most suspicious parts are the ones that call loadURL.

@zcbenz Here is some part of the app that reproduce the error: https://github.com/SamyPesse/electron-error
But the bug is happening after authenticating the user (you'll need a gitbook account), feel free to create a tmp one if you want to and I can delete it after)

I have found the cause, calling BrowserWindow.close() in the handler of will-navigate will crash the program. To work around it, you can wrap your call of close in handleCallback with setImmediate:
            // Close the browser if code found or error
            setImmediate(function() {
              authWindow.close();
            });

Thanks!


Issue with CORS headers / CSP policy for static content.

Hi,
I have deployed my lightly modified Tabi-theme site on Github Pages: https://sandip.live/
Unfortunately, the images, CSS and other static assets are not loaded:

What am I doing wrong?

Change base_url in config.toml to https://sandip.live

Thanks @donovanglover - that worked!
A related question: How should the static images be referenced in deployment? I have my images under /static/img and these seem to be copied into /public/img. However, the following image Markdowns both throw a 404:
![Hair on Fire problem](/public/img/hair-fire.jpg "Find customers with a burning problem")*Your customer with a hair on fire problem*
![Hair on Fire problem](/static/img/hair-fire.jpg "Find customers with a burning problem")*Your customer with a hair on fire problem*

The contents of public end up as your website root, so you'd use /img/hair-fire.jpg

Thanks so much @donovanglover ! You've been very helpful :+1:


feature(stage header): sliding header

Description
Support mobile browser friendly stage headers in home and static pages
Why
New design
Issue
NA
Checklist
Please delete options that are not relevant.

[x] I have followed the contributing guidelines
[x] I have performed a self-review of my own code
[x] I have successfully tested my changes locally

@jjeroch Kindly add text content for the slider section

@manojava-gk since its planned to merge the yarn upgrade by end of this week I wonder if we wait for that and move the new header directly into the new shared-component project.
Separately from this - I was looking for the header content to be added - but I dont clearly see where this can be added - please share the details. It seems that the content is inside the component. We shouldnt do that, we need to fetch the content from our locales


Discovery on EC2 not running

Hi Guys, I've been trying to make this work with no luck.
My config is as follow:
cluster.name: fake
node.name: prd-fake-app-01
cloud:
aws:
access_key: AKIAI24ITOQA4NFAKE
secret_key: 7fHOeNoeuzFrnvpKgXj2ac6GL4TkeFAKE
region: us-east
discovery:
type: ec2
groups: sg-8d64fake
IAM user has full access to ec2.
Log looks as follow:
[2015-09-23 22:50:12,058][INFO ][node                     ] [prd-fake-app-01] initializing ...
[2015-09-23 22:50:12,149][INFO ][plugins                  ] [prd-fake-app-01] loaded [cloud-aws], sites []
[2015-09-23 22:50:12,188][INFO ][env                      ] [prd-fake-app-01] using [1] data paths, mounts [[/ (/dev/xvda1)]], net usable_space [16.6gb], net total_space [19.5gb], types [ext4]
[2015-09-23 22:50:15,076][INFO ][node                     ] [prd-fake-app-01] initialized
[2015-09-23 22:50:15,076][INFO ][node                     ] [prd-fake-app-01] starting ...
[2015-09-23 22:50:15,132][INFO ][transport                ] [prd-fake-app-01] bound_address {inet[/0:0:0:0:0:0:0:0:9300]}, publish_address {inet[/<IP_ADDRESS>:9300]}
[2015-09-23 22:50:15,140][INFO ][discovery                ] [prd-fake-app-01] erx/2G9PkhMFQVuC7YZyTGWdTw
[2015-09-23 22:50:21,165][INFO ][cluster.service          ] [prd-fake-app-01] new_master [prd-fake-app-01][2G9PkhMFQVuC7YZyTGWdTw][prd-fake-app-01][inet[/<IP_ADDRESS>:9300]], reason: zen-disco-join (elected_as_master)
[2015-09-23 22:50:21,182][INFO ][http                     ] [prd-fake-app-01] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/<IP_ADDRESS>:9200]}
[2015-09-23 22:50:21,182][INFO ][node                     ] [prd-fake-app-01] started
[2015-09-23 22:50:21,194][INFO ][gateway                  ] [prd-fake-app-01] recovered [0] indices into cluster_state
and same thing is happening in the other node.
I've also tried using the name of the security group with no luck.
I've tried plugin version 2.7.0 and 2.7.1 on ES 1.7.0.
I've this working in the same way with ES 1.7.0 and plugin version 2.7.0
Everything is configured in the same way as I'm doing this thru chef.
Is there any way to get the log in debug ?
any ideas on what to look?
thanks in advance

+1 same issue

Same here. I had this working until a few days ago, has Amazon made a breaking change somewhere?

You should be able to enable debugging for discovery using config/logging.yml by uncommenting the line for discovery

In my case I was missing the http.publish_host setting ( https://github.com/elastic/elasticsearch/issues/8137 ) because I was running ES on Docker mapping it to a different port. Weird thing is two out of three nodes could always see each other and one of them (seemed to be random which one) was left out.
Anyway, it was not related to the AWS discovery plugin, sorry.

+1

Greetings, anyone know what is the work around as only single node is showing up when they should be nodes showing up in a cluster. Thank you for your time.

Scratch my previous comment, it happened again. I had to revert to manual discovery.
Nothing relevant came up in the debug logs, I'll post what I have tomorrow.

My bad, need to allow 9300. Auto discovered, voila!

@hernan82arg Did you set the following:
discovery.ec2.any_group: false

By default its set to true so the plugin still try's all instances in the region regardless of the security group so the discovery.ec2.groups option won't help.

Nope, I didn't. Will try that the next time. I haven't come back here because after some time it worked (without making any changes). Thanks

Hey @hernan82arg: You have a small indentation or level error in your config. It's "discovery.ec2.groups", not "discovery.groups". The correct config is:
cluster.name: fake node.name: prd-fake-app-01 cloud:    aws:       access_key: AKIAI24ITOQA4NFAKE       secret_key: 7fHOeNoeuzFrnvpKgXj2ac6GL4TkeFAKE       region: us-east discovery:    type: ec2    ec2:        groups: sg-8d64fake       any_group: false


Packages: Move elements to its own package

Task Description

The idea for this dedicated elements package would be to provide various APIs to register & retrieve element types. But not the actual individual element types supported by the editor.
See https://docs.google.com/document/d/1ImRe9wYKWGCAZiq3jro5KLpSJK_NMKXHC6FWqs3nwl0/edit for context.
See also @wordpress/blocks for context.

But not the actual individual element types supported by the editor.

Would be have a elements-library package for this?

But not the actual individual element types supported by the editor.

Would be have a elements-library package for this?

See #8777. It's marked as blocked by this ticket.

Duplicate of #8125


Don't provide alternative images for open graph if share image is picked

When the user picks a share image, that very image should be used to share the pageflow. facebook does not offer to choose between multiple images when sharing, so we shouldn't provide alternative images.

Merged in #280.


Reverse zone not recognized as reverse if name is uppercase

Describe the bug
if connected zone is named ie. "0.1.10.IN-ADDR.ARPA" it is not recognized as reverse zone. PTR records are not valid
VinylDNS Version
0.9.5-SNAPSHOT
To Reproduce

connect a reverse zone and name it uppercase
try add a new PTR rr
See error: "...PTR is not valid in forward lookup zone"

Expected behavior
both upper and lower case names should work

Oh, that is unfortunate.  We have seen this a few times.  The original DB was all DynamoDB where things were case insensitive by default.  Moving to MySQL exposed some of these issues.
This should be a small fix.  Just need to craft he SQL to do "lower" here - https://github.com/vinyldns/vinyldns/blob/61c6338bee7e998e427b65ff1b9642c02b6f3135/modules/mysql/src/main/scala/vinyldns/mysql/repository/MySqlZoneRepository.scala#L219

Also, we had discussed in the past to make it much more robust to do reverse zone discovery.
I have to look into MySQL, but with Postgres they have a cidr type and you can see if an IP address is in the range.  We could also add a start/end (range) on the zone table and see if an IP address falls in the range.  Right now zone discovery for reverse zones is a bit wonky.

MySQL supports case-insensitive collations.
@JanuszU what is the result of this query against your MySQL database
SELECT table_schema, table_name, table_collation
       FROM information_schema.tables WHERE table_name = 'zone';

the result is:
table_schema | table_name | table_collation |
vinyldns | zone | utf8mb4_general_ci

hmmm, I would think utf8mb4_general_ci case insensitive

@JanuszU did you have any update, feels like something we can get in :)

Marking this as Ready.  Someone can pick it up, try to reproduce and see if it's a matter of the collation or if it's something we should account for in the code.
I'd like to avoid handling case in the code, since it can cause table scans if your data is collated as case-sensitive.


fix(core): export suretype converters

Exports were missing for suretype reader/writer functions. This PR adds them.

Great thanks! There are still quite a few quirks and issues with this conversion, beware. I'm working on them and will probably release that in a few days.
It's a different thing to convert between type systems and converting to running source code in which case declaration order and missing references actually become a big problem. That's what I'm trying to fix, if you stumble upon it.


nodejs steam.Readable not work

Version information

fluent-ffmpeg version: 2.1.2
ffmpeg version: 4.1
OS: mac mojave
NODE: v8.9.3

The following code works fine and can be played，the mp3 size 33kb.

const stream = fs.createWriteStream('11111.m4a')
stream.write(req.body);
stream.end();
ffmpeg(__dirname + '/../../11111.m4a').format('mp3').pipe(res, { end: true });

The following code works fine but cannot be played，the mp3 size 259 byte

const s = new steam.Readable();
s.push(req.body);
s.push(null);
ffmpeg(s).format('mp3').pipe(res, { end: true });

What are you trying to achieve?
Are you trying to stream user content to fluent ffmpeg and stream it back?


Path test in showpaths tool

Fixes #2039

This change is

go/tools/showpaths/paths.go, line 116 at r1 (raw file):
Previously, sgmonroy (Sergio Gonzalez Monroy) wrote…
you should have a timeout here in case some packets are lost and you get no reply at all

There's a timeout set on the connection, see line 84

go/tools/showpaths/paths.go, line 115 at r1 (raw file):
Previously, sgmonroy (Sergio Gonzalez Monroy) wrote…
Why such a big buffer? errors should fit in 1500 Bytes packets and if it doesn't fit you should get an error from ReadFrom

I wasn't sure what the limit is. Shrinking it to 1500.

go/tools/showpaths/paths.go, line 115 at r1 (raw file):
Previously, sustrik (Martin Sustrik) wrote…
I wasn't sure what the limit is. Shrinking it to 1500.

Done.

go/tools/showpaths/paths.go, line 116 at r1 (raw file):
Previously, sustrik (Martin Sustrik) wrote…
There's a timeout set on the connection, see line 84

Done.

go/tools/showpaths/paths.go, line 117 at r1 (raw file):
Previously, sgmonroy (Sergio Gonzalez Monroy) wrote…
I don't think this is enough. You should check the SCMP error you got back, and check for the expected class/type error.
You can call SCMP() on an OpError then check  for C_Rourintg/T_R_BadHost
As discussed offline, we should check for:

expected SCMP error C_Rourintg/T_R_BadHost
print any other error
unexpected packet

Done.

go/tools/showpaths/paths.go, line 77 at r2 (raw file):
Previously, sgmonroy (Sergio Gonzalez Monroy) wrote…
the code for this functionality is quite large compare to the main body itself, could you take it out of main and brake it up a bit into smaller function/functions?

I've split the path testing into a separate function. However, splitting it further doesn't make much sense. Sending the packets alone isn't good for anything. Neither is receiving the replies.

a discussion (no related file):
Let Sergiu have a look before merging

go/tools/showpaths/paths.go, line 81 at r3 (raw file):
Previously, scrye (Sergiu Costea) wrote…
It's not related to this PR specifically, but we can simplify two lines by doing:
for i, path := range reply.Entries {
  // ....
}

Done.

go/tools/showpaths/paths.go, line 91 at r3 (raw file):
Previously, scrye (Sergiu Costea) wrote…
This must be removed for the previous comment to work.

Done.

go/tools/showpaths/paths.go, line 148 at r3 (raw file):
Previously, scrye (Sergiu Costea) wrote…
It would be a bit easier to read this if the inside of the loop were split into a different function:
for _, path := range paths {
    sendTestPacket(scionConn, path)
    pathStatuses[string(path.Path.FwdPath)] = "Timeout"
}

Done.

go/tools/showpaths/paths.go, line 173 at r3 (raw file):
Previously, scrye (Sergiu Costea) wrote…
Same suggestion as above:
for i := len(pathStatuses); i > 0; i-- {
    path, status := receiveNextTestReply(scionConn)
    pathStatuses[path] = status // and other global logic, like double replies
}

Done.


MySQL bug

Hello there, great work mate.
But there is a bug, or seems like it. When I am running my server locally and MySQL server is running locally it works fine, But when I deploy it to a server that uses a remote MySQL server, it gives this error
[17:52:41] [MySQL] (Main Pipelines) Connecting to localhost... [17:52:41] [MySQL] (MainPipeline) Fatal Error! Could not connect to MySQL: Host localhost - DB: ngrpc - User: root [17:52:41] [MySQL] Note: Make sure that you have provided the correct connection credentials. [17:52:41] [MySQL] Error number: 2059
if full "server_log.txt" is required, please let me know.
NOTE: I DID UPDATE THE FILE "mysql.cfg" TO THE WORKING MySQL SERVER, AND THE SERVER SHOULDN'T ATTEMPT CONNECTING TO LOCALHOST AT ALL IN FIRST PLACE.
thanks

Hi, it seems you have a mistake on MySQL.cfg, please make sure you modified it on scrip files/MySQL.cf and make sure you've changed that localhost to the correct IP of your remote host

Make sure also you configure the firewall of your server

Or maybe you mistakenly modified the MySQL.cfg , it is located on the script files folder, those cfgs on the home folder, I accidentally merge it that's why there's a lot of cfgs there

Here's the test server that I created
<IP_ADDRESS>:7777

Configure your server firewall

Hey, thanks for the reply.
Changing scriptfiles/mysql file did solve the issue
Regards


Build.sh fails on OSX/Mono when running first time

Description
When I download the scaffolding project and run build.sh I get a number of errors
Repro steps
Please provide the steps required to reproduce the problem
Please see the attached output for what I did
./build.sh
No version specified. Downloading latest stable.
Starting download from https://github.com/fsprojects/Paket/releases/download/2.63.2/paket.exe
Done.
Paket version <IP_ADDRESS>
Downloading fsharp/FAKE:26cd2e6430a3ada972fa37a5a65606b2f7f427e3 modules/Octokit/Octokit.fsx to /Users/carsten/Projects/baz/paket-files/build/fsharp/FAKE/modules/Octokit/Octokit.fsx
6 seconds - ready.
Paket version <IP_ADDRESS>
Resolving packages for group Build:

Octokit 0.19.0
FAKE 4.25.5
FSharp.Formatting 2.14.2
SourceLink.Fake 1.1.0
Microsoft.Net.Http 2.2.29
FSharpVSPowerTools.Core 2.3.0
FSharp.Compiler.Service <IP_ADDRESS>
Microsoft.Bcl 1.1.10
Microsoft.Bcl.Build 1.0.21
Resolving packages for group Main:
FSharp.Core <IP_ADDRESS>
Resolving packages for group Test:
NUnit 2.6.4
NUnit.Runners 2.6.4
Locked version resolution written to /Users/carsten/Projects/baz/paket.lock
Downloading fsharp/FAKE:b6f259615a85b9b4b715be927e7f60a34967e8fa modules/Octokit/Octokit.fsx to /Users/carsten/Projects/baz/paket-files/build/fsharp/FAKE/modules/Octokit/Octokit.fsx
5 seconds - ready.

Project Scaffold Init Script
Please answer a few questions and we will generate
two files:

build.fsx               This will be your build script
docs/tools/generate.fsx This script will generate your
documentation

NOTE: Aside from the Project Name, you may leave any
of these blank, but you will need to change the defaults
in the generated scripts.

#####################################################
Project Name (used for solution/project files): baz
Summary (a short description): test
Description (longer description used by NuGet): longer test
Author: carsten
Tags (separated by spaces): F#
Github User or Organization:
Github Project Name (leave blank to use Project Name):
Initialize git repo [Yn]: n
moving /Users/carsten/Projects/baz/FSharp.ProjectScaffold.sln to /Users/carsten/Projects/baz/baz.sln
#####################################################
/Users/carsten/Projects/baz/baz.sln updated
#####################################################
#####################################################
/Users/carsten/Projects/baz/src/baz/baz.fsproj updated
#####################################################
#####################################################
/Users/carsten/Projects/baz/src/baz/AssemblyInfo.fs updated
#####################################################
#####################################################
/Users/carsten/Projects/baz/src/baz/Library.fs updated
#####################################################
#####################################################
/Users/carsten/Projects/baz/src/baz/Script.fsx updated
#####################################################
#####################################################
/Users/carsten/Projects/baz/src/baz/paket.template updated
#####################################################
#####################################################
/Users/carsten/Projects/baz/tests/baz.Tests/baz.Tests.fsproj updated
#####################################################
#####################################################
/Users/carsten/Projects/baz/tests/baz.Tests/Tests.fs updated
#####################################################
#####################################################
/Users/carsten/Projects/baz/docs/content/index.fsx updated
#####################################################
#####################################################
/Users/carsten/Projects/baz/docs/content/tutorial.fsx updated
#####################################################
#####################################################
Generated /Users/carsten/Projects/baz/build.fsx
#####################################################
#####################################################
Generated /Users/carsten/Projects/baz/docs/tools/generate.fsx
#####################################################
git remote -v
Building project with version: LocalBuild
Shortened DependencyGraph for Target All:
<== All
<== GenerateDocs
<== GenerateReferenceDocs
<== RunTests
<== CopyBinaries
<== Build
<== AssemblyInfo
<== Clean
<== GenerateHelp
<== CleanDocs
The resulting target order is:

Clean
AssemblyInfo
Build
CopyBinaries
RunTests
CleanDocs
GenerateHelp
GenerateReferenceDocs
GenerateDocs
All
Starting Target: Clean
Creating /Users/carsten/Projects/baz/bin
Creating /Users/carsten/Projects/baz/temp
Finished Target: Clean
Starting Target: AssemblyInfo (==> Clean)
Created AssemblyInfo file "/Users/carsten/Projects/baz/src/baz/AssemblyInfo.fs".
Finished Target: AssemblyInfo
Starting Target: Build (==> AssemblyInfo)
Building project: /Users/carsten/Projects/baz/baz.sln
xbuild  /Users/carsten/Projects/baz/baz.sln /t:Rebuild    /p:RestorePackages="False" /p:Configuration="Release" /p:DefineConstants="MONO" /logger:Fake.MsBuildLogger+ErrorLogger,"/Users/carsten/Projects/baz/packages/build/FAKE/tools/FakeLib.dll"
xbuild  /Users/carsten/Projects/baz/baz.sln /t:Rebuild    /p:RestorePackages="False" /p:Configuration="Release" /p:DefineConstants="MONO" /logger:Fake.MsBuildLogger+ErrorLogger,"/Users/carsten/Projects/baz/packages/build/FAKE/tools/FakeLib.dll"
XBuild Engine Version 14.0
Mono, Version <IP_ADDRESS>
Copyright (C) 2005-2013 Various Mono authors

Build started 5/2/2016 7:14:51 AM.

Project "/Users/carsten/Projects/baz/baz.sln" (Rebuild target(s)):
Target ValidateSolutionConfiguration:
Building solution configuration "Release|Any CPU".
Target Rebuild:
Project "/Users/carsten/Projects/baz/src/baz/baz.fsproj" (Rebuild target(s)):
Target PrepareForBuild:
Configuration: Release Platform: AnyCPU
Created directory "./bin/Release/"
Created directory "obj/Release/"
Target CopyFilesMarkedCopyLocal:
Copying file from '/Users/carsten/Projects/baz/packages/FSharp.Core/lib/net40/FSharp.Core.dll' to '/Users/carsten/Projects/baz/src/baz/bin/Release/FSharp.Core.dll'
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
Tool /Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.5/fsc.exe execution started with arguments: -o:obj/Release/baz.dll --debug:pdbonly --noframework --define:MONO --doc:./bin/Release/baz.xml --optimize+ -r:../../packages/FSharp.Core/lib/net40/FSharp.Core.dll -r:/Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.0-api/mscorlib.dll -r:/Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.0-api/System.dll -r:/Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.0-api/System.Numerics.dll -r:/Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.0-api/System.Core.dll --target:library --warn:3 --warnaserror:76 --fullpaths --flaterrors --highentropyva- --warnon:1182 Library.fs
F# Compiler for F# 4.0 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License
/Users/carsten/Projects/baz/src/baz/Library.fs(16,13): warning FS1182: The value 'num' is unused
Target _CopyAppConfigFile:
Copying file from '/Users/carsten/Projects/baz/src/baz/App.config' to '/Users/carsten/Projects/baz/src/baz/bin/Release/baz.dll.config'
Target DeployOutputFiles:
Copying file from '/Users/carsten/Projects/baz/src/baz/obj/Release/baz.dll.mdb' to '/Users/carsten/Projects/baz/src/baz/bin/Release/baz.dll.mdb'
Copying file from '/Users/carsten/Projects/baz/src/baz/obj/Release/baz.dll' to '/Users/carsten/Projects/baz/src/baz/bin/Release/baz.dll'
Done building project "/Users/carsten/Projects/baz/src/baz/baz.fsproj".
Project "/Users/carsten/Projects/baz/tests/baz.Tests/baz.Tests.fsproj" (Rebuild target(s)):
Target PrepareForBuild:
Configuration: Release Platform: AnyCPU
Created directory "bin/Release/"
Created directory "obj/Release/"
Target CopyFilesMarkedCopyLocal:
Copying file from '/Users/carsten/Projects/baz/packages/FSharp.Core/lib/net40/FSharp.Core.dll' to '/Users/carsten/Projects/baz/tests/baz.Tests/bin/Release/FSharp.Core.dll'
Copying file from '/Users/carsten/Projects/baz/packages/test/NUnit/lib/nunit.framework.dll' to '/Users/carsten/Projects/baz/tests/baz.Tests/bin/Release/nunit.framework.dll'
Copying file from '/Users/carsten/Projects/baz/src/baz/bin/Release/baz.dll' to '/Users/carsten/Projects/baz/tests/baz.Tests/bin/Release/baz.dll'
Copying file from '/Users/carsten/Projects/baz/src/baz/bin/Release/baz.dll.mdb' to '/Users/carsten/Projects/baz/tests/baz.Tests/bin/Release/baz.dll.mdb'
Copying file from '/Users/carsten/Projects/baz/src/baz/bin/Release/baz.xml' to '/Users/carsten/Projects/baz/tests/baz.Tests/bin/Release/baz.xml'
Target GenerateSatelliteAssemblies:
No input files were specified for target GenerateSatelliteAssemblies, skipping.
Target CoreCompile:
Tool /Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.5/fsc.exe execution started with arguments: -o:obj/Release/baz.Tests.dll --debug:pdbonly --noframework --define:MONO --optimize+ -r:../../packages/FSharp.Core/lib/net40/FSharp.Core.dll -r:/Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.0-api/mscorlib.dll -r:/Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.0-api/System.dll -r:/Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.0-api/System.Numerics.dll -r:../../packages/test/NUnit/lib/nunit.framework.dll -r:/Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.0-api/System.Core.dll -r:/Users/carsten/Projects/baz/src/baz/bin/Release//baz.dll --target:library --warn:3 --warnaserror:76 --fullpaths --flaterrors --highentropyva- Tests.fs
F# Compiler for F# 4.0 (Open Source Edition)
Freely distributed under the Apache 2.0 Open Source License
Target _CopyAppConfigFile:
Copying file from '/Users/carsten/Projects/baz/tests/baz.Tests/App.config' to '/Users/carsten/Projects/baz/tests/baz.Tests/bin/Release/baz.Tests.dll.config'
Target DeployOutputFiles:
Copying file from '/Users/carsten/Projects/baz/tests/baz.Tests/obj/Release/baz.Tests.dll.mdb' to '/Users/carsten/Projects/baz/tests/baz.Tests/bin/Release/baz.Tests.dll.mdb'
Copying file from '/Users/carsten/Projects/baz/tests/baz.Tests/obj/Release/baz.Tests.dll' to '/Users/carsten/Projects/baz/tests/baz.Tests/bin/Release/baz.Tests.dll'
Done building project "/Users/carsten/Projects/baz/tests/baz.Tests/baz.Tests.fsproj".
Done building project "/Users/carsten/Projects/baz/baz.sln".
Build succeeded.
Warnings:
/Users/carsten/Projects/baz/baz.sln (Rebuild) ->
(Rebuild target) ->
/Users/carsten/Projects/baz/src/baz/baz.fsproj (Rebuild) ->
/Library/Frameworks/Mono.framework/Versions/4.4.0/lib/mono/4.5/Microsoft.FSharp.Targets (CoreCompile target) ->
/Users/carsten/Projects/baz/src/baz/Library.fs(16,13): warning FS1182: The value 'num' is unused

 1 Warning(s)
 0 Error(s)

Time Elapsed 00:00:04.6860010
Finished Target: Build
Starting Target: CopyBinaries (==> Build)
Creating /Users/carsten/Projects/baz/bin/baz
Finished Target: CopyBinaries
Starting Target: RunTests (==> CopyBinaries)
/Users/carsten/Projects/baz/packages/test/NUnit.Runners/tools/nunit-console.exe "-nologo" "-noshadow" "-labels" "/Users/carsten/Projects/baz/tests/baz.Tests/bin/Release/baz.Tests.dll" "-xml:TestResults.xml"
/Library/Frameworks/Mono.framework/Commands/mono  "/Users/carsten/Projects/baz/packages/test/NUnit.Runners/tools/nunit-console.exe" "-nologo" "-noshadow" "-labels" "/Users/carsten/Projects/baz/tests/baz.Tests/bin/Release/baz.Tests.dll" "-xml:TestResults.xml"
WARNING: The runtime version supported by this application is unavailable.
Using default runtime: v4.0.30319
ProcessModel: Default    DomainUsage: Single
Execution Runtime: mono-4.0
***** baz.Tests.hello returns 42
42
Tests run: 1, Errors: 0, Failures: 0, Inconclusive: 0, Time: 0.0335104 seconds
Not run: 0, Invalid: 0, Ignored: 0, Skipped: 0
Finished Target: RunTests
Starting Target: CleanDocs
Deleting contents of docs/output
Finished Target: CleanDocs
Starting Target: GenerateHelp (==> CleanDocs)
/Users/carsten/Projects/baz/docs/content/release-notes.md does not exist.
/Users/carsten/Projects/baz/docs/content/license.md does not exist.
Building documentation (Default), this could take some time, please wait...
/Library/Frameworks/Mono.framework/Commands/mono  "/Users/carsten/Projects/baz/packages/build/FAKE/tools/FAKE.exe"  --fsiargs -d:FAKE --define:RELEASE --define:HELP "generate.fsx"
FSharp.Formatting Information: 0 : FSharp.Formatting Logging setup!
Yaaf.FSharp.Scriping Information: 0 : Yaaf.FSharp.Scripting Logging setup!
Copying file: /Users/carsten/Projects/baz/docs/output/img/logo-template.pdn
Copying file: /Users/carsten/Projects/baz/docs/output/img/logo.png
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/style.css
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/style.css.bak
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/style_light.css
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/tips.js
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/img/github-blue.png
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/img/github.png
Generating '/Users/carsten/Projects/baz/docs/tools/../content/index.html'
FSharp.Formatting Critical: 0 :
Processing the file 'docpage' failed
Source written to: '/var/folders/v6/yvw4znkn1ds037st24hlqqlw0000gn/T/tmpe9b8ae5.tmp.cs'
Compilation errors:

error: (0, 0) 慷湲湩千㜱㄰›獁畳業杮愠獳浥汢⁹敲敦敲据䙠桓牡⹰潃敲敖獲潩㵮⸴⸳⸰ⰰ䌠汵畴敲渽略牴污畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡洠瑡档獥愠獳浥汢⁹䙠桓牡⹰潃敲敖獲潩㵮⸴⸴⸰ⰰ䌠汵畴敲渽略牴污畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡潙⁵慭⁹敮摥琠畳灰祬爠湵楴敭瀠汯捩੹慷湲湩千㜱㄰›獁畳業杮愠獳浥汢⁹敲敦敲据䙠桓牡⹰潃敲敖獲潩㵮⸴⸳⸱ⰰ䌠汵畴敲渽略牴污畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡洠瑡档獥愠獳浥汢⁹䙠桓牡⹰潃敲敖獲潩㵮⸴⸴⸰ⰰ䌠汵畴敲渽略牴污畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡潙⁵慭⁹敮摥琠畳灰祬爠湵楴敭瀠汯捩੹

FsiEvaluationException:
Error: System.Exception: Generating HTML failed.
at FSharp.Literate.RazorRender.handleCompile[a](System.String source, Microsoft.FSharp.Core.FSharpFunc2 f) <0xe871b18 + 0x00577> in <filename unknown>:0       at FSharp.Literate.RazorRender.ProcessFileModel[b](System.Type modelType, System.Object model, Microsoft.FSharp.Core.FSharpOption1 properties) <0xe8719b0 + 0x00073> in :0
at FSharp.Literate.Templating.generateFile (Microsoft.FSharp.Core.FSharpOption1 references, System.String contentTag, IEnumerable1 parameters, Microsoft.FSharp.Core.FSharpOption1 templateOpt, System.String output, IEnumerable1 layoutRoots) <0xe86e3f8 + 0x00187> in :0
at FSharp.Literate.Templating.processFile (Microsoft.FSharp.Core.FSharpOption1 references, FSharp.Literate.LiterateDocument doc, System.String output, FSharp.Literate.ProcessingContext ctx) <0xd2844a0 + 0x003ab> in <filename unknown>:0       at FSharp.Literate.Literate.ProcessScriptFile (System.String input, Microsoft.FSharp.Core.FSharpOption1 templateFile, Microsoft.FSharp.Core.FSharpOption1 output, Microsoft.FSharp.Core.FSharpOption1 format, Microsoft.FSharp.Core.FSharpOption1 formatAgent, Microsoft.FSharp.Core.FSharpOption1 prefix, Microsoft.FSharp.Core.FSharpOption1 compilerOptions, Microsoft.FSharp.Core.FSharpOption1 lineNumbers, Microsoft.FSharp.Core.FSharpOption1 references, Microsoft.FSharp.Core.FSharpOption1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption1 replacements, Microsoft.FSharp.Core.FSharpOption1 includeSource, Microsoft.FSharp.Core.FSharpOption1 layoutRoots, Microsoft.FSharp.Core.FSharpOption1 generateAnchors, Microsoft.FSharp.Core.FSharpOption1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption1 customizeDocument) <0x8981cd0 + 0x000d7> in :0
at<EMAIL_ADDRESS>(System.String file, System.String output) <0x8981bb0 + 0x00103> in :0
at Microsoft.FSharp.Core.FSharpFunc2[T,TResult].InvokeFast[V] (Microsoft.FSharp.Core.FSharpFunc2 func, Microsoft.FSharp.Core.T arg1, Microsoft.FSharp.Core.TResult arg2) <0x2dd8d08 + 0x0005b> in :0
at <StartupCode$FSharp-Literate>.$Main.processDirectory@199 (Microsoft.FSharp.Core.FSharpOption1 format, Boolean processRecursive, Microsoft.FSharp.Core.FSharpFunc2 processScriptFile, Microsoft.FSharp.Core.FSharpFunc2 processMarkdown, System.String indir, System.String outdir) <0x89801f8 + 0x007b7> in <filename unknown>:0       at FSharp.Literate.Literate.ProcessDirectory (System.String inputDirectory, Microsoft.FSharp.Core.FSharpOption1 templateFile, Microsoft.FSharp.Core.FSharpOption1 outputDirectory, Microsoft.FSharp.Core.FSharpOption1 format, Microsoft.FSharp.Core.FSharpOption1 formatAgent, Microsoft.FSharp.Core.FSharpOption1 prefix, Microsoft.FSharp.Core.FSharpOption1 compilerOptions, Microsoft.FSharp.Core.FSharpOption1 lineNumbers, Microsoft.FSharp.Core.FSharpOption1 references, Microsoft.FSharp.Core.FSharpOption1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption1 replacements, Microsoft.FSharp.Core.FSharpOption1 includeSource, Microsoft.FSharp.Core.FSharpOption1 layoutRoots, Microsoft.FSharp.Core.FSharpOption1 generateAnchors, Microsoft.FSharp.Core.FSharpOption1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption1 processRecursive, Microsoft.FSharp.Core.FSharpOption`1 customizeDocument) <0x81ffb60 + 0x001b3> in :0
at FSI_0005.Generate.buildDocumentation () <0x81ff410 + 0x00263> in :0
at <StartupCode$FSI_0005>.$FSI_0005_Generate$fsx.main@ () <0x81faf70 + 0x00a6f> in :0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x1a7c510 + 0x000a1> in :0
Stopped due to error
Output: [Loading /Users/carsten/Projects/baz/packages/build/FSharp.Formatting/FSharp.Formatting.fsx
Loading /Users/carsten/Projects/baz/docs/tools/generate.fsx]
FSharp.Formatting Information: 0 : FSharp.Formatting Logging setup!
Yaaf.FSharp.Scriping Information: 0 : Yaaf.FSharp.Scripting Logging setup!
Copying file: /Users/carsten/Projects/baz/docs/output/img/logo-template.pdn
Copying file: /Users/carsten/Projects/baz/docs/output/img/logo.png
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/style.css
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/style.css.bak
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/style_light.css
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/tips.js
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/img/github-blue.png
Copying styles and scripts: /Users/carsten/Projects/baz/docs/output/content/img/github.png
Generating '/Users/carsten/Projects/baz/docs/tools/../content/index.html'
Binding session to '/Users/carsten/Projects/baz/packages/build/FSharp.Formatting/../FSharpVSPowerTools.Core/lib/net45/FSharpVSPowerTools.Core.dll'...
Binding session to '/Users/carsten/Projects/baz/packages/build/FSharp.Formatting/../FSharp.Compiler.Service/lib/net45/FSharp.Compiler.Service.dll'...
Binding session to '/Users/carsten/Projects/baz/packages/build/FSharp.Formatting/lib/net40/FSharp.Markdown.dll'...
Binding session to '/Users/carsten/Projects/baz/packages/build/FSharp.Formatting/lib/net40/RazorEngine.dll'...
FSharp.Formatting Critical: 0 :
Processing the file 'docpage' failed
Source written to: '/var/folders/v6/yvw4znkn1ds037st24hlqqlw0000gn/T/tmpe9b8ae5.tmp.cs'
Compilation errors:
- error: (0, 0) 慷湲湩千㜱㄰›獁畳業杮愠獳浥汢⁹敲敦敲据䙠桓牡⹰潃敲敖獲潩㵮⸴⸳⸰ⰰ䌠汵畴敲渽略牴污畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡洠瑡档獥愠獳浥汢⁹䙠桓牡⹰潃敲敖獲潩㵮⸴⸴⸰ⰰ䌠汵畴敲渽略牴污畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡潙⁵慭⁹敮摥琠畳灰祬爠湵楴敭瀠汯捩੹慷湲湩千㜱㄰›獁畳業杮愠獳浥汢⁹敲敦敲据䙠桓牡⹰潃敲敖獲潩㵮⸴⸳⸱ⰰ䌠汵畴敲渽略牴污畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡洠瑡档獥愠獳浥汢⁹䙠桓牡⹰潃敲敖獲潩㵮⸴⸴⸰ⰰ䌠汵畴敲渽略牴污畐汢捩敋呹歯湥戽㌰㕦㝦ㅦ搱〵㍡❡潙⁵慭⁹敮摥琠畳灰祬爠湵楴敭瀠汯捩੹
Input: /Users/carsten/Projects/baz/docs/tools/generate.fsx
Exception: Yaaf.FSharp.Scripting.FsiEvaluationException: Error while compiling or executing fsharp snippet. ---> System.Exception: Operation failed. The error text has been print the error stream. To return the corresponding FSharpErrorInfo use the EvalInteractionNonThrowing, EvalScriptNonThrowing or EvalExpressionNonThrowing
at Microsoft.FSharp.Compiler.Interactive.Shell+FsiEvaluationSession.commitResult[a,b](Microsoft.FSharp.Core.FSharpChoice2 res) <0x80621f0 + 0x0014f> in <filename unknown>:0   at Microsoft.FSharp.Compiler.Interactive.Shell+FsiEvaluationSession.EvalScript (System.String filePath) <0x81ab748 + 0x0003b> in <filename unknown>:0   at<EMAIL_ADDRESS>(System.String arg00) <0x81ab718 + 0x0001f> in <filename unknown>:0   at<EMAIL_ADDRESS>(System.String path) <0x81ab648 + 0x000bb> in <filename unknown>:0   at<EMAIL_ADDRESS>(Microsoft.FSharp.Core.Unit unitVar0) <0x795b950 + 0x0001d> in <filename unknown>:0   at Yaaf.FSharp.Scripting.Helper.consoleCapture[a](System.IO.TextWriter out, System.IO.TextWriter err, Microsoft.FSharp.Core.FSharpFunc2 f) <0x2de9530 + 0x00052> in :0
at Yaaf.FSharp.Scripting.Helper.redirectOut@1044[a](Boolean preventStdOut, Yaaf.FSharp.Scripting.OutStreamHelper out, Yaaf.FSharp.Scripting.OutStreamHelper err, Microsoft.FSharp.Core.FSharpFunc2 f) <0x2de9258 + 0x00277> in <filename unknown>:0   at<EMAIL_ADDRESS>(System.String text) <0x795b5d8 + 0x000f3> in <filename unknown>:0   --- End of inner exception stack trace ---   at<EMAIL_ADDRESS>(System.String text) <0x795b5d8 + 0x00253> in <filename unknown>:0   at<EMAIL_ADDRESS>(System.String ) <0x81ab628 + 0x0001a> in <filename unknown>:0   at Fake.FSIHelper.runScriptUncached (Boolean useCache, System.String scriptPath, IEnumerable1 fsiOptions, Boolean printDetails, Fake.CacheInfo cacheInfo, System.IO.TextWriter out, System.IO.TextWriter err) <0x2dab7a0 + 0x0077d> in :0
System.Exception: Generating HTML failed.
at FSharp.Literate.RazorRender.handleCompile[a] (System.String source, Microsoft.FSharp.Core.FSharpFunc2 f) <0xe871b18 + 0x00577> in <filename unknown>:0   at FSharp.Literate.RazorRender.ProcessFileModel[b](System.Type modelType, System.Object model, Microsoft.FSharp.Core.FSharpOption1 properties) <0xe8719b0 + 0x00073> in :0
at FSharp.Literate.Templating.generateFile (Microsoft.FSharp.Core.FSharpOption1 references, System.String contentTag, IEnumerable1 parameters, Microsoft.FSharp.Core.FSharpOption1 templateOpt, System.String output, IEnumerable1 layoutRoots) <0xe86e3f8 + 0x00187> in :0
at FSharp.Literate.Templating.processFile (Microsoft.FSharp.Core.FSharpOption1 references, FSharp.Literate.LiterateDocument doc, System.String output, FSharp.Literate.ProcessingContext ctx) <0xd2844a0 + 0x003ab> in <filename unknown>:0   at FSharp.Literate.Literate.ProcessScriptFile (System.String input, Microsoft.FSharp.Core.FSharpOption1 templateFile, Microsoft.FSharp.Core.FSharpOption1 output, Microsoft.FSharp.Core.FSharpOption1 format, Microsoft.FSharp.Core.FSharpOption1 formatAgent, Microsoft.FSharp.Core.FSharpOption1 prefix, Microsoft.FSharp.Core.FSharpOption1 compilerOptions, Microsoft.FSharp.Core.FSharpOption1 lineNumbers, Microsoft.FSharp.Core.FSharpOption1 references, Microsoft.FSharp.Core.FSharpOption1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption1 replacements, Microsoft.FSharp.Core.FSharpOption1 includeSource, Microsoft.FSharp.Core.FSharpOption1 layoutRoots, Microsoft.FSharp.Core.FSharpOption1 generateAnchors, Microsoft.FSharp.Core.FSharpOption1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption1 customizeDocument) <0x8981cd0 + 0x000d7> in :0
at<EMAIL_ADDRESS>(System.String file, System.String output) <0x8981bb0 + 0x00103> in :0
at Microsoft.FSharp.Core.FSharpFunc2[T,TResult].InvokeFast[V] (Microsoft.FSharp.Core.FSharpFunc2 func, Microsoft.FSharp.Core.T arg1, Microsoft.FSharp.Core.TResult arg2) <0x2dd8d08 + 0x0005b> in :0
at <StartupCode$FSharp-Literate>.$Main.processDirectory@199 (Microsoft.FSharp.Core.FSharpOption1 format, Boolean processRecursive, Microsoft.FSharp.Core.FSharpFunc2 processScriptFile, Microsoft.FSharp.Core.FSharpFunc2 processMarkdown, System.String indir, System.String outdir) <0x89801f8 + 0x007b7> in <filename unknown>:0   at FSharp.Literate.Literate.ProcessDirectory (System.String inputDirectory, Microsoft.FSharp.Core.FSharpOption1 templateFile, Microsoft.FSharp.Core.FSharpOption1 outputDirectory, Microsoft.FSharp.Core.FSharpOption1 format, Microsoft.FSharp.Core.FSharpOption1 formatAgent, Microsoft.FSharp.Core.FSharpOption1 prefix, Microsoft.FSharp.Core.FSharpOption1 compilerOptions, Microsoft.FSharp.Core.FSharpOption1 lineNumbers, Microsoft.FSharp.Core.FSharpOption1 references, Microsoft.FSharp.Core.FSharpOption1 fsiEvaluator, Microsoft.FSharp.Core.FSharpOption1 replacements, Microsoft.FSharp.Core.FSharpOption1 includeSource, Microsoft.FSharp.Core.FSharpOption1 layoutRoots, Microsoft.FSharp.Core.FSharpOption1 generateAnchors, Microsoft.FSharp.Core.FSharpOption1 assemblyReferences, Microsoft.FSharp.Core.FSharpOption1 processRecursive, Microsoft.FSharp.Core.FSharpOption`1 customizeDocument) <0x81ffb60 + 0x001b3> in :0
at FSI_0005.Generate.buildDocumentation () <0x81ff410 + 0x00263> in :0
at <StartupCode$FSI_0005>.$FSI_0005_Generate$fsx.main@ () <0x81faf70 + 0x00a6f> in :0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x1a7c510 + 0x000a1> in :0
Stopped due to error
Running build failed.
Error:
System.Exception: generating reference documentation failed
at FSI_0005.Build.buildDocumentationTarget (System.String fsiargs, System.String target) <0x9febac8 + 0x00157> in :0
at FSI_0005.Build.generateHelp' (Boolean fail, Boolean debug) <0x9feb928 + 0x0003b> in :0

Build Time Report
Target         Duration

Clean          00:00:00.0018745
AssemblyInfo   00:00:00.0129886
Build          00:00:04.8989804
CopyBinaries   00:00:00.0073456
RunTests       00:00:00.7655741
CleanDocs      00:00:00.0020104
Total:         00:00:16.0254994
Status:        Failure

System.Exception: generating reference documentation failed
at FSI_0005.Build.buildDocumentationTarget (System.String fsiargs, System.String target) <0x9febac8 + 0x00157> in :0

at FSI_0005.Build.generateHelp' (Boolean fail, Boolean debug) <0x9feb928 + 0x0003b> in :0
Expected behavior
Please provide a description of the behavior you expect.
Build.sh runs without any errors
Actual behavior
Please provide a description of the actual behavior you observe.
Build.sh fails with the following error:

System.Exception: generating reference documentation failed
at FSI_0005.Build.buildDocumentationTarget (System.String fsiargs, System.String target) <0x9febac8 + 0x00157> in :0
at FSI_0005.Build.generateHelp' (Boolean fail, Boolean debug) <0x9feb928 + 0x0003b> in :0

Known workarounds
Please provide a description of any known workarounds.
Related information

Operating system: OSX 10.11.4
Branch: a clone of master branch
.NET Runtime, CoreCLR or Mono Version:

mono --version
Mono JIT compiler version 4.4.0 (mono-4.4.0-branch/fcf7a6d Tue Apr 26 11:53:52 EDT 2016)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
TLS:           normal
SIGSEGV:       altstack
Notification:  kqueue
Architecture:  x86
Disabled:      none
Misc:          softdebug
LLVM:          yes(3.6.0svn-mono-master/a173357)
GC:            sgen

Performance information, links to performance testing scripts

Yeah, I have seen this issue too I was investigating it a week or so ago but haven't had any time since.. It is however to do with fsharp.formatting / razor.engine I think this issue should probably be raised against fsharp.formatting as it isn't directly to do with project scaffold

👍

This is a bug in mono-4.4. Just add
mono:
  - 4.2.3

to the .travis.yml file and life is good.
What happens is that they get some encoding wrong and then cannot detect the warning:
decode(encode(chinese, utf16), utf8) ->
warning CS1701: Assuming assembly reference `FSharp.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' matches assembly `FSharp.Core, Version=<IP_ADDRESS>, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. You may need to supply runtime policy

Took me a while to figure this out but CodeDom seems to be completely broken with mono-4.4. I think they switched to Roslyn and got some things wrong in the process.

Reported the bug to mono: https://bugzilla.xamarin.com/show_bug.cgi?id=41979

Cl;osing old fixed bug


Compatibility with survival analysis packages as scikit-survival?

I am a frequent user of the MAPE package and I wanted to inquire about the possibility of adding compatibility with survival analysis packages for censored data, such as scikit-survival.
If possible, could you please consider adding compatibility with survival analysis packages for censored data in a future update of MAPE? I believe this would be a valuable addition to an already great package, and I'm sure many other users would find it helpful as well.
Thank you for your time and consideration

Hi @joselznom , thank you for your issue. For now this implementation is not planned. We are not aware of any paper related to this issue, if you have one we would be glad to read it. I will close the issue for now, feel free to re-open it if you encounter a paper that tackles this issue !

Hi @vincentblot28,
Here are a couple of papers that are related to the topic:
https://academic.oup.com/jrsssb/article/85/1/24/7008653?login=false#396975853
https://ieeexplore.ieee.org/document/8260735


Missing messages package - doesn't compile

Current master doesn't compile
Looks like its missing the messages package in the jsgo repo?
actions/actions.go:6:2: cannot find package "github.com/dave/jsgo/server/messages"
I pulled the latest code on both repos.

Oh yeah right I'm in the middle of a massive refactor right now... I was pushing to the play repo using another branch because I didn't want anyone to be able to recompile it broken at compile.jsgo.io/github.com/dave/play (the front-end of play.jsgo.io just blindly uses the latest successfully compiled version even if it's broken - not ideal!)...
However, as you've realised I've broken play by pushing refactored code to the jsgo repo master branch. Oops. I'm in the middle of a trek in the Nepal backcountry, so coding mostly offline and git pushing when I get internet... Should have put used branches in all the repos really. If you check out the refactor branch of the play repo you might have more luck... But as I say I'm in the middle of a period of frenzied development so you might have problems getting it running.
Plus I haven't (yet) spent any time optimising this project for anyone else to develop on...
Here's a tip: it's got a pretty good "offline" mode for development without an internet connection - it pulls code from your local GOPATH instead of the git repos on the internet, and stores data / assets in a temporary folder instead of using GCS services. Use build tags dev local to enable that. You'll need to edit generate.go to add those build tags to the initialise.go command before running go generate... that way it'll store all the assets locally instead of using GCS. Oh, you'll need to update this too with the temp dir.
As I said this isn't really set up for anyone else to develop on, but I'm happy to help you hack!

Awesome thanks I'll take a look.
It looks great so far. I'm seeing if I can run it locally to create a fantasy virtual console in Go like Pico8.

BTW you also need the norwfs tag, so to get it running locally the right command is:
go run -tags "norwfs dev local" "$GOPATH/src/github.com/dave/jsgo/server/main/main.go"

Then localhost:8080 will be the playground.

Got it working :)
Checked out the refactor branch.
Generated the local assets using:
go run -tags="dev local" ./initialise/initialise.go
Created a local CORS compatible fileserver to host the local assets on port 8082.
https://gist.github.com/telecoda/0439695fd07ed207082c3f7bcc78b386
Seems to run ok offline. Enjoy your trip

You shouldn’t need to do that... when you run the server in local mode it should start file servers for the local buckets...

Yeah I realised that this morning. Only been dipping in/out the code on the way to work.

Hey I just did a deploy, so what's running on {play|compile}.jsgo.io is what's in the master branch now. I'll try to keep the master branches in better shape in future!


[FLINK-31980] Implement support for EFO in Kinesis consumer

Purpose of the change
Implement support for EFO in the new KDS source
Verifying this change
This change added tests and can be verified as follows:

Added unit tests
Manually verified by running the Kinesis connector on a local Flink cluster.

Significant changes
(Please check any boxes [x] if the answer is "yes". You can first publish the PR and check them afterwards, for convenience.)

[ ] Dependencies have been added or upgraded
[ ] Public API has been changed (Public API is any class annotated with @Public(Evolving))
[ ] Serializers have been changed
[x] New feature has been introduced

If yes, how is this documented? Documented as part of https://issues.apache.org/jira/browse/FLINK-31989

Hi, EFO is very important for using the New SouceAPI. Do you plan to finish this PR?

@Sunninsky Hey! We are currently working on implementing EFO support for the new source connector. Estimate maybe end of the quarter?

@Sunninsky Hey! We are currently working on implementing EFO support for the new source connector. Estimate maybe end of the quarter?

That's very cool, thank you.


Fixing up the contributing doc

Resolves #234 - I've removed the reference to flow from the contributing doc, and I've fixed up the npm run coverage command which we broke whilst bumping dependencies (oops!).

LGTM: 👍 :shipit:


Corrected docs for package --all-platforms

This fixes the doc package --all-platforms mentioning that only the platforms present in the lock files are cached. #4330

Failures seem to be unrelated to the actual changes in this PR and potentially related to something that's changed on Rubygems master.

:+1: with those small changes -- thanks @asutoshpalai

Fixed the errors :smile:

Awesome, thanks!
@homu r+

:pushpin: Commit ce0914c has been approved by segiddins

:zap: Test exempted - status


fix: reintroduce login duration

Description
Many months ago, I added support for login_maximum_inactive_lifetime_duration and login_maximum_lifetime_duration in https://github.com/grafana-operator/grafana-operator/pull/345. It was quite important to have this functionality since grafana still doesn't fully track validity of OIDC sessions, which leads to forwarding stale tokens to data sources unless the right settings are made in both grafana and Keycloak. - Other parameters login_maximum_lifetime_days and login_maximum_inactive_lifetime_days, don't give enough flexibility in the period of time.
Haven't used grafana-operator since I changed companies. Recently, I rebuilt a local lab with a fresh grafana-operator, and noticed today that grafana was sending stale tokens, which shouldn't have been the case since I had all the right settings in place from previous labs.
Further digging showed that the configmap generated by grafana-operator did not contain  login_maximum_inactive_lifetime_duration and login_maximum_lifetime_duration. In source code, those get added to a struct, but not dumped into grafana.ini.
The suggested change brings back full support for the parameters.
P.S. Please, let me know if tests are needed.
Type of change

[X] Bug fix (non-breaking change which fixes an issue)

Checklist

[X] I have added a test case that will be used to verify my changes

Verification steps

Add the following settings to grafana CR:

      auth:
        login_maximum_inactive_lifetime_duration: 4h
        login_maximum_lifetime_duration: 8h

You should see those settings in the cm with grafana.ini:

apiVersion: v1
data:
  grafana.ini: |+
[...]
    [auth]
    login_maximum_inactive_lifetime_duration = 4h
    login_maximum_lifetime_duration = 8h

There is a risk that they disappeared during version 4 release, we did a few human errors on that one...
It would of course be great if you can add a test for it @weisdd .

@NissesSenap Was happy to help :)


feat: add optional keyvault AAD group input

Adds optional root module input variable to landing-zones/aks/core to allow use of an AAD security group for keyvault access policies.

Considering simplifying this code

lgtm


Compare DataType based on memory size

Is your feature request related to a problem or challenge? Please describe what you are trying to do.
Related datafusion issue: https://github.com/apache/arrow-datafusion/issues/3214
I would like to order fields of a schema based on the datatype's memory size to find the column with the presumable lowest memory footprint at query planning time.
Describe the solution you'd like
Implement Ord for DataType and base cmp on memory size.
Describe alternatives you've considered
--
Additional context
--

Will be implemented in DataFusion


Update link to Svelte extension

In your main README, you refer to the old Svelte extension (https://marketplace.visualstudio.com/items?itemName=JamesBirtles.svelte-vscode). Please update the link to the new, official extension: https://marketplace.visualstudio.com/items?itemName=svelte.svelte-vscode .

Thanks @dummdidumm to notify me for this update. I just changed it on README.

Thanks 🥳


Accurate Shooting

Overview
In a multiplayer game called apex-nites, a player needs to find guns and shoot at other players to earn points. The last player to stay alive wins the game.(It's a Battle Royal game)
Initially the gun a player gets doesn't have any attachments. And without attachments the guns have high recoil( the backward momentum when a gun is shot) and low accuracy.
The players can buy and  attach attachments to the gun to reduce recoil and increase accuracy. The attachments and their advantages are:

Barrel stabilizer:  +15 unit accuracy

Standard stalk:  +40 unit accuracy

Hop up: +30 unit accuracy

Increased accuracy in guns offer advantages to player in defeating their opponents.
Example

player-1:  attaches only hop-up.
player-2: attaches hop-up first then barrel stabilizer.
player-3: attaches barrel stabilizer first then hop-up.
player-3: attaches barrel stabilizer first then hop-up then Standard stalk.

Assumptions

A gun with no attachments has low accuracy.(1 unit  accuracy).
A player buys attachments with the points he earns by shooting other players. So the gamer earns
game currency as the game advances.
Higher accuracy attachments are costly and lower accuracy attachments are cheap.

Task

Code so that a player can attach attachments to a basic gun in any combination.

The attachments are to be attached at runtime.

Learning goal

Decorator Pattern

Notes

The problem could be done with inheritance but the goal is to accomplish it at runtime.

Reminders

React to the problem if you find it interesting and helpful. This will help others to easily identify good problems to solve.
Feel free to comment about the problem. Is the description unclear? Do you think it is too easy or too difficult than what is mentioned? Comment about it.
Discussion about the solution is OK. But do not paste a solution here. Give a link to the solution instead.
Do you have an interesting problem? Post it.

@sadatbs01: This is an excellent problem. I think the difficulty should be "hard".


Added awkward.frompandas() for intuitive DataFrame -> Tables conversion

Initial support for a simple function that converts a Pandas DataFrame to an Awkward Tables. The new awkward.frompandas(dataframe) does:
return awkward.Table({name: dataframe[name].values for name in dataframe.columns})
Closes #215

I also think a unit test is a good idea. I hope I'll get to it soon.


2.3.0 release

We will have a 2.3 release to announce the deprecation of right multiplication like (1, 1) * Affine.scale(2) (see #32).

Done: https://pypi.org/project/affine/2.3.0/#files.


Downloading flv and converting causes re-downloads. Error on CrunchyRoll.

Please follow the guide below

You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
Put an x into all the boxes [ ] relevant to your issue (like that [x])
Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2016.07.17. 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 2016.07.17

Before submitting an issue make sure you have:

[ x] At least skimmed through README and most notably 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)
[ ] Question
[ ] Other

I ran into two issues on a download from crunchyroll. One are not a function of crunchyroll, but a function of downloading flv and converting to mp4:

Repeating the download command does not skip files that are already downloaded. When the last episode did not download the first time, I tried re-fetching, only to see it download episoide 1 again.

EDIT: Not an error; CrunchyRoll now requires signing up for the newest stuff.
[s]2. An error on the last one:
keybounceMBP:ReZero michael$ youtube-dl -v --playlist-start 17 http://www.crunchyroll.com/rezero-starting-life-in-another-world-
[debug] System config: []
[debug] User config: [u'-o', u'%(title)s.%(ext)s', u'-f', u'\nbest[ext=mp4][height>431][height<=480]/\nbestvideo[ext=mp4][height=480]+bestaudio[ext=m4a]/\nbest[ext=mp4][height>340][height<=431]/\nbestvideo[ext=mp4][height>360][height<=576]+bestaudio/\nbest[height>340][height<=576]/\nbestvideo[height>360][height<=576]+bestaudio/\nbestvideo[height=360]+bestaudio/\nbest[ext=mp4][height>=280][height<=360]/\nbest[height<=576]/\nworst', u'--write-sub', u'--write-auto-sub', u'--sub-lang', u'en,enUS', u'--sub-format', u'srt/ass/best', u'--embed-subs', u'--recode-video', u'mp4', u'--mark-watched']
[debug] Command-line args: [u'-v', u'--playlist-start', u'17', u'http://www.crunchyroll.com/rezero-starting-life-in-another-world-']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2016.07.17
[debug] Python version 2.7.5 - Darwin-13.4.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 3.1.1, ffprobe 3.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[crunchyroll:playlist] rezero-starting-life-in-another-world-: Downloading webpage
[download] Downloading playlist: Re:ZERO -Starting Life in Another World-
[crunchyroll:playlist] playlist Re:ZERO -Starting Life in Another World-: Collected 17 video ids (downloading 1 of them)
[download] Downloading video 1 of 1
[Crunchyroll] 702431: Downloading webpage
ERROR: This is a sample clip. To watch the full video, start a free trial today!; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.
Traceback (most recent call last):
  File "/Users/michael/bin/youtube-dl/youtube_dl/YoutubeDL.py", line 682, in extract_info
    ie_result = ie.extract(url)
  File "/Users/michael/bin/youtube-dl/youtube_dl/extractor/common.py", line 347, in extract
    return self._real_extract(url)
  File "/Users/michael/bin/youtube-dl/youtube_dl/extractor/crunchyroll.py", line 280, in _real_extract
    raise ExtractorError(note_m)
ExtractorError: This is a sample clip. To watch the full video, start a free trial today!; please report this issue on https://yt-dl.org/bug . Make sure you are using the latest version; type  youtube-dl -U  to update. Be sure to call youtube-dl with the --verbose flag and include its complete output.

[/s]

Repeating the download command does not skip files that are already downloaded. When the last episode did not download the first time, I tried re-fetching, only to see it download episoide 1 again.

Sounds like --download-archive is what you need.

An error on the last one:

I can't watch this video due to georestriction. I guess the message "This is a sample clip. To watch the full video, start a free trial today!" have pointed out the problem.

Ha. Going to the site, it turns out that CrunchyRoll now has a "You must sign up for the newest videos" feature. Even at the site. So YouTube-dl is working correctly.
As for --download-archive: Thanks for pointing that one out. Note that for everything else, yt-dl already detects that the video is already downloaded, so I've been relying on that auto-detection.

In general youtube-dl need to analyze web pages to know whether a video is already downloaded or not. --download-archive compares video IDs with those in the archive file. Such IDs are site-specific. They are less accurate and it's possible to miss some videos.


[html] support for bootstrap

VSCode Version: Code 1.16.0 (787b31c0474e6165390b5a5989c9619e3e16f953, 2017-09-06T16:54:47.289Z)
OS Version: Windows_NT ia32 10.0.15063
Extensions:

Extension
Author (truncated)
Version

html-snippets
abu
0.1.0

python
don
0.7.0

vscode-html-css
ecm
0.1.8

code-runner
for
0.7.1

HTMLHint
mka
0.3.3

view-in-browser
qin
0.0.5

Ruby
reb
0.15.0

vscode-icons
rob
7.12.0

view-in-default-application
see
3.3.0

html-css-class-completion
Zig
1.10.0

Steps to Reproduce:

Can we have something that give us a breif explaination of the bootstrap classes, so that the developer at that moment can know what exactly is happening with that class?

Reproduces without extensions: Yes/No

@akshitgupta29 Do you mean you would like some extra kind of documentation (like hover) when using a bootstrap CSS class name in HTML, or do you mean something else ?

@alexandrudima  By some extra kind of documentation, I meant something like attached in the image, so that a beginner like me, can have some extra information.

That would have to be offered by an extension. The built-in HTML extension should cover only the standard HTML constructs.

Okie! Thanks a lot! @aeschli

You can close this issue, and also since I am a newbie, can you recommend the extension for the same.

Sorry, I don't use bootstrap myself. You have to check out https://marketplace.visualstudio.com/search?target=vscode&category=Languages&sortBy=Downloads.

Okie! Thanks a lot for your help! You may close this issue. @aeschli


feat: sync form title, trigger intent and lu intent

Description
Allow editing of the intent name in the intent trigger and sync with lu provider.
Task Item
closes #2884

Coverage decreased (-0.2%) to 56.278% when pulling 46f67aac9ecbc5a7c6c918e612a612948c371c86 on lei9444:abrown/feat/update-intent-name into fd2a6d4f06d8322855f4edd03ad7edc884872912 on microsoft:main.


Allow customization of country and language

Right these are hard-coded
https://github.com/edgarrmondragon/tap-google-play/blob/dc36134837a3d5a57ef1a4e3273db035eb6a1e35/tap_google_play/streams.py#L43-L53
It'd be nice if users could configure them.

cc @afonsodiniz


"Cuza Vodă" is listed in the drop-down menu

Description:
When user writes "Cuza Vodă" the location appears in the drop-down menu next to the comune and the county witch is a part according to the law
Precondition:
The website is up an running.

Step 1
Write in the search bar "Cuza Vodă"

Expected results
The location appears in the drop-down menu as "Comuna Cuza Vodă, CONSTANȚA"

Step 2
Press "x" button.

Expected results
The location was deleted from the search bar.

Step 3
Write again in the search bar "Cuza Vodă"

Expected results
The location appears in the drop-down menu as "Sat Cuza Vodă, CONSTANȚA, (Cuza Vodă)"


store sharding attribute for databases on db servers

Scope & Purpose
This PR will lead to two changes:

for any newly created databases in --cluster.force-one-shard mode, the "sharding" attribute will automatically be set to "single" on database creation, even if not explicitly specified.
for any newly created databases in the cluster, the "sharding" attribute will be stored on DB servers as well when set to "single".

That way the "sharding" attribute with a value of "single" will propagate to the DB servers so they have local access to it, and also it becomes independent of the value of the --cluster.force-one-shard flag for any databases after they have been created.
Enterprise companion PR: https://github.com/arangodb/enterprise/pull/619

[ ] :hankey: Bugfix (requires CHANGELOG entry)
[ ] :pizza: New feature (requires CHANGELOG entry, feature documentation and release notes)
[ ] :fire: Performance improvement
[x] :hammer: Refactoring/simplification
[ ] :book: CHANGELOG entry made

Backports:

[x] No backports required

Related Information

[x] Enterprise PR: https://github.com/arangodb/enterprise/pull/619

Testing & Verification

[x] The behavior in this PR was manually tested
[x] This change is already covered by existing tests, such as shell_client, shell_server, server_permissions.

Link to Jenkins PR run:
http://<IP_ADDRESS>:8080/view/PR/job/arangodb-matrix-pr/13477/

Tests blue except unrelated failure in foxx-cleanup-spec test.

Tests blue except unrelated failure in foxx-cleanup-spec test.


az webapp config ssl upload: name argument seems unnecessary

An uploaded certificate is available to all apps in the specified resource group, so the requirement to specify an app name or resources ID(s) seems irrelevant. (The HTTP request to upload the cert doesn't even use the app name, although it won't allow you to upload with a nonexistent name.)

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 2a3f984d-0d48-e075-7e2f-2da5667b15cf
Version Independent ID: 98e06d47-0ed4-4d8e-ccf5-d3a78e510539
Content: az webapp config ssl
Content Source: latest/docs-ref-autogen/webapp/config/ssl.yml
Service: app-service-web
GitHub Login: @rloutlaw
Microsoft Alias: routlaw

Thanks for the feedback. We are working on improving these commands, & will take this into consideration. However, currently there are no plans to update the existing one. @madsd FYI


Build target also builds fbsql, fbsql is also packaged.

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.Julio Martinez seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.You have signed the CLA already but the status is still pending? Let us recheck it.

@j3m7 is this packaging the cli separately?

What would happen in Cloud if this fbsql wasn't built and packaged?


Is this dead ?

No commit since Feb 24th... What's going on ?

Apparently, they’ve just released v2.0.8, but they still have to officially announce it (I don’t even know how people have been informed of this release) and release the corresponding source code.
It seems they have adopted an “Android-like” development model: source code releases happen when the corresponding binaries are distributed.

Oh OK. I've been waiting for the Linux client since it was announced, so I was wondering. OK way and see :) Thanks !

The .deb file is available at http://edgehill.s3.amazonaws.com/2.0.8-3e0b575/linux-deb/x64/NylasMail.deb and http://edgehill.s3.amazonaws.com/2.0.8-3e0b575/linux-rpm/x64/NylasMail.rpm (for other distros, either extract it from those package or wait for official builds). And apparently they have been linux builds for a long time, but just never officially.

Arch AUR Repo at https://aur.archlinux.org/packages/nylas-mail/

Rather https://aur.archlinux.org/packages/nylas-mail-bin.

Hi everyone! Sorry for the confusion. We're doing some re-adjusting with our repos which is why you haven't seen commits on this one. We haven't officially released 2.0.x yet. I'll add you to a waiting list for when we officially release our linux build


Continuous Deployment card is not clear

As per description, CD card allows to

Play twice when the selected var is a multiple of 7

But the question is:
Does player keep this card forever on the variable he chooses and plays twice every time the var is mult.of 7?
Or is it played only once, when either of vars is mult. of 7?
I would opt for the former: card stays forever (or until it's removed by opponent's attack)

Yes, you keep this card forever on the variable you selected

Description updated


[gettext] Bison as a required global package

Host Environment

OS: Ubuntu 20.04
Compiler: g++ 9.4.0

To Reproduce
Steps to reproduce the behavior:
vcpkg.json
{
    "name": "samrewritten",
    "version-string": "2022.05.25",
    "dependencies": [
      "cxxopts",
      "gtkmm"
    ]
  }

./vcpkg/vcpkg install
Failure logs
[previous cut for brevity]

Additional packages (*) will be modified to complete this operation.
Restored 0 packages from /home/paul/.cache/vcpkg/archives in 52.32 us. Use --debug to see more details.
Installing 1/31 gettext:x64-linux...
Building gettext[core]:x64-linux...
-- Using cached gettext-0.21.tar.gz.
-- Cleaning sources at /home/paul/git/perso/SamRewritten/vcpkg/buildtrees/gettext/src/0.21-66fbad380c.clean. Use --editable to skip cleaning for the packages you specify.
-- Extracting source /home/paul/git/perso/SamRewritten/vcpkg/downloads/gettext-0.21.tar.gz
-- Applying patch 0002-Fix-uwp-build.patch
-- Applying patch 0003-Fix-win-unicode-paths.patch
-- Applying patch 0004-Fix-uwp-tools-build.patch
-- Applying patch rel_path.patch
-- Applying patch android.patch
-- Applying patch gettext-tools_woe32dll_gettextsrc-exports.c.patch
-- Using source at /home/paul/git/perso/SamRewritten/vcpkg/buildtrees/gettext/src/0.21-66fbad380c.clean
CMake Error at scripts/cmake/vcpkg_find_acquire_program.cmake:641 (message):
  Could not find bison.  Please install it via your package manager:

      sudo apt-get install bison
Call Stack (most recent call first):
  ports/gettext/portfile.cmake:35 (vcpkg_find_acquire_program)
  scripts/ports.cmake:146 (include)

Additional context
Gettext is a very basic library that I'm sure be included everywhere. I want to use vcpkg to avoid having to install the development packages on the target machines. Does that really mean everyone requiring gettext needs to globally install bison as well? Bison does not come preinstalled with most of the common distributions. This is such a PITA to ask users to install global packages as well as use a package manager, it completely defeats its purpose. If this stays like this it's better to just ask to install the development packages.
Is this intentional? Is there a known workaround?
Thank you

Reading the logs I can see that you have to install bison first:

Could not find bison.  Please install it via your package manager:

      sudo apt-get install bison

The other solution would be to add bison to the catalogue

I'm a beginner, so I will probably not grasp the whole idea. By catalogue, do you mean the list of packages in the public vcpkg repo? As far as I understand, bison here is a CLI tool required for the compilation of gettext. Since this is not a library, would it make sense to add it to the catalogue? Even then, is it possible to invoke this "local" version in the makefile of gettext?
Many questions but hopefully one conving answer :)

By catalogue, do you mean the list of packages in the public vcpkg repo?

Yes

As far as I understand, bison here is a CLI tool required for the compilation of gettext. Since this is not a library, would it make sense to add it to the catalogue?

Yes, there are multiple packages that are just tools.

Even then, is it possible to invoke this "local" version in the makefile of gettext?

Yes, this can be done by adding the location of bison to PATH (at least on Windows, I don't know what the Linux equivalent is).

Thank you very much for your fast and clear answers. I will open a new issue to add bison to the catalogue and keep this thread updated as much as I can 👍

So I will only leave issue #24905.


npm installer: Download elm package without deprecated libraries.

Quick Summary:
request is deprecated, and vulnerabilities have been reported in its dependency libraries.
I replaced download feature using following libraries:

follow-redirects
proxy-from-env

Ref: https://github.com/elm/compiler/commit/41ec49ed921a2409afda483eb9e29197e262fe27
Thought:
axios also depends on the same libraries (follow-redirects, proxy-from-env), but there is no need to use Promise-based features.
To improve maintainability, I believe that we should adopt libraries with simple enough functions to meet our needs,rather than relying on a library with many additional functions.

I want to review the behavior of proxy and organize the commits, so I close PR.


Prevent incorrect use of flatMap

Swift will happily coerce functions of the type A -> B into functions of the
type A -> B?. That means that using flatMap with a function that doesn't
return an optional will compile. But then at runtime, you will run into weird
behaviour that you don't expect, or worse, Swift will segfault.
In order to prevent these problems from happening in the future, we're going
to throw errors ourselves if flatMap is used incorrectly with a message
letting the user know that the type of the function isn't correct. Using a
default (but ultimately unused) implementation of map will push people in
the right direction if they go digging.
Credit to @mattrubin for the idea:
https://github.com/thoughtbot/Argo/issues/34#issuecomment-70166588

:+1: :+1: :+1: :+1: :fire: :godmode: :tangerine:

Swift seems to think it's ok to use a function of type A -> B where a function of type A -> B? is expected. The only troubles here have to do with bugs in the Swift compiler. Personally, I don't think it makes sense to prohibit this usage because of a bug that will presumably get fixed eventually (and I certainly hope someone's already filed a radar on this).
All that said, using a function A -> B here is kind of pointless, since what you really want is just to map it. I would not think it wrong to keep this change but fix the error message to say something like "function (T -> U) does not return [U], perhaps you meant <^>".

@kballard My concern with that is someone misunderstanding that error message and trying to just swap <^> for >>- and end up with val <^> func and an even more opaque error message.

@gfontenot How about "function (T -> U) does not return [U], perhaps you meant f <^> val"?

Also, if the bug that results in the segfaults was fixed, I'd probably end up removing this protection. I'm less concerned with preventing "incorrect" usage of the operator than I am with protecting users (including myself) from potentially dangerous behavior. If I were looking to force correctness, I'd add a warning about using apply with non-optional functions as well.

@kballard Yes, I like that much better. Thanks.


Update sbt plugins

@eed3si9n would you mind also pushing this change?
-addSbtPlugin("com.geirsson" % "sbt-scalafmt" % "1.5.1")
+addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.0.0")

it would help me simplify the configuration for this project in the Scala community build
also: @mdedetrich, ping, interested in merging this whole PR...?

@SethTisue I have no issue, just waiting for the additional change

Thanks for the reminder. I pushed the Scalafmt bump.

Will merge after tests pass

scala/community-builds@699dffbc39e0c5ba480754a7b7274e41f825d0b6 :+1: thanks!


parseh unable to detect noreturn function attribute

Sadly, the noreturn attribute according to libclang is an "unexposed attribute" which means we have to switch to the C++ API to gain support for it.

fixed in<PHONE_NUMBER>d52d6ea64521ab78574b593a6832ae


Wish: app notifications when mentioned, reposted, followed, favourited

This will require access to a streaming API. I've filed an issue regarding the existing WebSocket's authentication: https://github.com/Gargron/mastodon/issues/331

would suggest having the app run in the background, check for new interactions for the user periodically & display notifications, not necessarily push. would be very useful. mind you i'm not experienced in android dev and don't know if i'm making any sense

Hi I'm closing all old issues from 2017 as I'm starting this app up again in a new development environment.


Server saves files to ./src/files instead of ./files

This makes the front end application not able to load any saved project.

Looks like the fileserver folder in ./editor needs to have all of it's ./src contents moved to the parent folder, per https://github.com/jagenjo/litefilesystem.js/blob/master/INSTALL.md


Is there an option to list requests?

Did I miss something or the incoming requests cannot be listed to the terminal? For testing purposes it is great to see if a GET method is sent more than once.
I'm referring to something like this:

if you use local tunnel's API you can write a nodejs wrapper to run local tunnel as a child process.  within the child process you can intercept the data and log out the requests to your terminal or to a file/wherever.  i capture the requests using the API in a similar manner to ngrok.

Thank you for answering! I will try it out.

you can see incoming requests by including the --print-requests when running the lt client
e.g. lt -p 3000 -s coolsubdomainhere --print-requests
which would output each request like this:
your url is: https://coolsubdomainhere.loca.lt
Wed May 17 2023 10:03:28 GMT-0400 (Eastern Daylight Time) GET /
Wed May 17 2023 10:03:29 GMT-0400 (Eastern Daylight Time) GET /
Wed May 17 2023 10:03:29 GMT-0400 (Eastern Daylight Time) GET /
Wed May 17 2023 10:03:30 GMT-0400 (Eastern Daylight Time) GET /
Wed May 17 2023 10:03:30 GMT-0400 (Eastern Daylight Time) GET /
Wed May 17 2023 10:03:30 GMT-0400 (Eastern Daylight Time) GET /
Wed May 17 2023 10:03:30 GMT-0400 (Eastern Daylight Time) GET /
Wed May 17 2023 10:03:31 GMT-0400 (Eastern Daylight Time) GET /
Wed May 17 2023 10:03:31 GMT-0400 (Eastern Daylight Time) GET /
Wed May 17 2023 10:03:32 GMT-0400 (Eastern Daylight Time) GET /


Mermaid Plugin for Confluence not support axisFormat for gantt diagram

I look https://github.com/knsv/mermaid/issues/269 ，want use axisFormat for gantt diagram.
But Mermaid Plugin for Confluence 1.5.0 not support the The keyword axisFormat

please update the Mermaid Plugin for Confluence


32-bit Integer Overflow in fori_loop Arguments

When setting static bounds for the fori_loop, 32-bit overflows may occur in the background that change the amount of loop iterations. Consider the following toy snippet
from jax import lax

def body_fn(i, val):
    return i + 1

num_iter = 100000
actual_iter = lax.fori_loop(0, num_iter, body_fn, 0)
print(actual_iter)
# outputs: 100000

num_iter =<PHONE_NUMBER>00000
actual_iter = lax.fori_loop(0, num_iter, body_fn, 0)
print(actual_iter)
# outputs: 276447232

num_iter =<PHONE_NUMBER>000000
actual_iter = lax.fori_loop(0, num_iter, body_fn, 0)
print(actual_iter)
# outputs: 0

The last two examples overflow a signed 32bit integer: The first of these overflows into the positive range, resulting in some iterations of the loop being performed but less than instructed/expected. The second of these overflows into the negative range, resulting in a loop with no iterations.
While the cause for this is somewhat obvious and the behaviour could be pointed out in the documentation for the careful reader, it would in my opinion be nicer if this could be either prevented (might be a bit tricky depending on the actual low-level implementation) or warned at runtime, that an overflow occurred. The current silent-overflow behviour is error-prone as this is not expected in Python, where integers are usually not overflowing.

I wanted to revisit this and see whether I could come up with a fix, however, that turned out somewhat difficult.
I first confirmed that the problem does not occur when enabling jax's 64 bit mode (setting the environment variable JAX_ENABLE_X64=True). I then tried (as a firsth otfix) to change the implementation such that it uses always 64 bit integers for loop indices. Unfortunately, I did not succeed in doing so because there are many places where type information is changed to 32bit (before and after the execution reaches the fori_loop routine) so that any local change I'd make there would most likely lead to a very inconsistent behavior (where some int64 values work and some don't).
Frankly, I think the current dealing with types that forcibly casts all values to 32 bit or 64 bit depending on configuration is overly aggressive and can lead to very confusing situations. It begs the question why many methods even accept a dtype argument when they effectively ignore it. The example in the Common Gotchas illustrates this, but an even more startling example might be the following
import jax.numpy as np
value = np.int64(2**32 - 1)
print(value) # prints -1
print(np.dtype(value)) # prints int32

Nothing about is what I would (or could) sensibly expect when I'm explicitly trying to instantiate an in64 object.
I recognize that this is "to mitigate the Numpy API’s tendency to aggressively promote operands to double" (Common Gotchas) but it fully takes control over types away from the user.
I think a better solution would be to have jax.numpy.array do the type canonicalizing if no dtype is explicitly given in its initialization, i.e.,
np.array(3) # will have type int32
np.array(3, dtype=np.int64) # will have type int64
np.array(3.1) # will have type float32
np.array(3.1, dtype=np.float64) # will have type float64
np.array(onp.array(2.5, 3.5)) # will have type float32

That way the numpy promoting to 64bit types could still be countered but all the unexpected behaviors would no longer occur. I have to admit, though, that I don't have a full grasp on the many ways values can enter into jax so it might be that my suggestion is incomplete here (I'm especially unsure when it comes to tracing and such), but I nevertheless think that the current way this is done is suboptimal and solving this over a cleaner interface (and at one (or very few) central place) would be better.

This has since been fixed; the result now is:
---------------------------------------------------------------------------
OverflowError                             Traceback (most recent call last)
<ipython-input-1-35ef2342fe34> in <module>
     10
     11 num_iter =<PHONE_NUMBER>00000
---> 12 actual_iter = lax.fori_loop(0, num_iter, body_fn, 0)
     13 print(actual_iter)
     14 # outputs: 276447232

    [... skipping hidden 5 frame]

~/github/google/jax/jax/_src/dtypes.py in _scalar_type_to_dtype(typ, value)
    149   if typ is int and value is not None:
    150     if value < np.iinfo(dtype).min or value > np.iinfo(dtype).max:
--> 151       raise OverflowError(f"Python int {value} too large to convert to {dtype}")
    152   return dtype
    153

OverflowError: Python int<PHONE_NUMBER>00000 too large to convert to int32