the plan about the implementation of getrawtransaction api

Hi Team, are there any roadmaps or plans about how to implement the interface of how to get the bitcoin raw transaction?

DFINITY is planning to add an endpoint to the bitcoin canister that allows getting block headers. This should be relatively easy as it already holds these block headers, so hopefully that comes in the near future. Getting full block / tx info from the bitcoin canister would be a lot more work, but I think that as soon as you can securely get the block headers, you can build solutions on top of that that gives full tx / block details securely (by fetching data externally and validating against block headers).

Thanks for answering my question, I met another question: After I sent a transaction from ICP network, it returned a txid, but I can not find it in the bitcoin mempool, like this: https://mempool.space/testnet/tx/cfbab25ec52878705bfcc3e6dbcbea6af2989aec2cf9022865025df0f1e83377
So, do I miss any steps? I called the send_transaction interface and no error prints out.

An endpoint for fetching block headers is currently in the works in #297.


包含正则表达式匹配的简单实现  Greedy implementation of lac with regex

I use your tools on my project. Since I need regex to assist with my tokenization, I come up with a way for solving this.
Noticing that it might still need some time since "后续还将开放以通配符配置词典的模式", I think I could help people with similar needs like me.

Pseudocode：

import re
def get_regex_lac(sent, lac, regex_patterns, tags),:
    """
    :param sent:  input sentence
    :param lac: LAC object
    :param lac: A list of regex patterns
    :param tags: A list of corresponding tags
    :return: just as lac.run(sent)
    """
    for regex_pattern, tag in zip(regex_patterns, tags):
        sent_remained = sent                                            # process remained sentence from left to right
        search_result = re.search(regex_pattern, sent_remained)

        while search_result:
            l_index, r_index = search_result.span()
            new_word = sent_remained[l_index:r_index]

            if new_word not in lac.custom.dictitem:
                lac.custom.dictitem[new_word] = ([tag], [len(new_word)])     # add new word to lac inner data structure
                lac.custom.ac.add_word(new_word)

            sent_remained  = sent_remained[r_index:]
            search_result = re.search(regex_pattern, sent_remained)

    return lac.run(sent)

I use it in my project. And it works fine.  If you think this implementation is OK and would like to assign me as a committer, I could assist to insert the function into this project.

I notice that there is a drawback in this implementation.  It can not satisfy the need of Lookahead and Lookbehind Regular-Expression


"scale", "move", "rotate" and "wave" defaults should be somewhat aligned to the bpm

the bpm function sets a rhythm to which several other "defaults" of functions should align.
In other words, the default "scale", "move", "rotate" and "wave" defaults should be somewhat aligned to the bpm (or multiples of, if the default/typical bpms are too slow/too fast).

so with the timekeeper updates pull request merged, I think that this is now all working as we need and can be closed right?


[AMBARI-23255] Load modules and components into a map when reading the mpack.json

What changes were proposed in this pull request?
During mpack registration and bootstrap of ambari server, load modules and components into a map which is an attribute of Mpack.java
(Please fill in changes proposed in this fix)
How was this patch tested?
Tested POST /service which issues a call to mpack.getModule(getServiceType())
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Ambari Server ...................................... SUCCESS [04:21 min]
[INFO] Ambari Functional Tests ............................ SUCCESS [  1.172 s]
[INFO] Ambari Agent ....................................... SUCCESS [ 39.048 s]
[INFO] Mpack instance manager ............................. SUCCESS [  0.218 s]
[INFO] ambari-logsearch ................................... SUCCESS [  5.229 s]
[INFO] Ambari Logsearch Appender .......................... SUCCESS [  0.852 s]
[INFO] Ambari Logsearch Config Api ........................ SUCCESS [  0.257 s]
[INFO] Ambari Logsearch Config Zookeeper .................. SUCCESS [  0.308 s]
[INFO] Ambari Logsearch Log Feeder Plugin Api ............. SUCCESS [  0.200 s]
[INFO] Ambari Logsearch Log Feeder ........................ SUCCESS [  6.524 s]
[INFO] Ambari Logsearch Web ............................... SUCCESS [01:27 min]
[INFO] Ambari Logsearch Server ............................ SUCCESS [  7.155 s]
[INFO] Ambari Logsearch Assembly .......................... SUCCESS [  0.084 s]
[INFO] Ambari Logsearch Integration Test .................. SUCCESS [  0.553 s]
[INFO] ambari-infra ....................................... SUCCESS [  0.107 s]
[INFO] Ambari Infra Solr Client ........................... SUCCESS [  3.716 s]
[INFO] Ambari Infra Solr Plugin ........................... SUCCESS [  0.400 s]
[INFO] Ambari Infra Manager ............................... SUCCESS [  6.338 s]
[INFO] Ambari Infra Assembly .............................. SUCCESS [  0.080 s]
[INFO] Ambari Infra Manager Integration Tests ............. SUCCESS [  0.185 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:01 min
[INFO] Finished at: 2018-03-27T15:21:39-07:00
[INFO] Final Memory: 320M/1862M
[INFO] ------------------------------------------------------------------------
(Please explain how this patch was tested. Ex: unit tests, manual tests)
(If this patch involves UI changes, please attach a screen-shot; otherwise, remove this)
Please review Ambari Contributing Guide before opening a pull request.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1443/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1484/
Test FAILed.
Test FAILured.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Ambari-Github-PullRequest-Builder/1485/
Test FAILed.
Test FAILured.


Save options or examples instead of history with memory.save_context() in VectorStoreRetrieverMemory

Feature request
Is there a way to save options or examples instead of history with memory.save_context() in VectorStoreRetrieverMemory?
For example, if A, B, and C are expected as the answer to a certain question, A, B, and C are returned as the predict results for that question. The current memory function takes into account the flow of history, so it is not possible to select options or define behavior like the switch statement in programming languages.
If I just don't know about this feature, I'd appreciate it if you could let me know. In a past issue, if someone wanted to have a rule-based conversation, the answerer just only said to use VectorStoreRetrieverMemory, but no examples were introduced. If you have any simple exmaples, please let me know.
Motivation
This is to stably control the chatbot's behavior.
Your contribution
I checked and found out that this feature does not currently exist.

@dosu-bot The above answers did not meet my requirements. I don't want memory to store history, I want it to record conversation patterns. What should I do?

I realized that this is not possible at the moment, so I will close it for now.


Add indexes for created_at on executions table

Necessary in order to implement this : https://github.com/rails/mission_control-jobs/pull/114
I added the index on all executions tables but this may well be overkill, happy to change it if you believe we should only add it on failed executions for now

Thanks @Intrepidd! I continued thinking about that one... and what if we sorted failed_executions on job_id, but descending? This is what we do for recurring_executions. In that case the sort is going to mimic very well the creation date because recurring executions are created at the same time as the job. For failed executions, sorting on the job_id won't correspond exactly to the same order jobs failed because it depends on how long a job takes to fail, but I think it should be a good approximation in most cases. In this way, we wouldn't need any new indexes.

I thought about it but it would not correctly handle retries would it ? You probably want on top of the pages the most recent failures.
Imagine a job failed a few days ago sitting in page 3, if you retry it and it fails again you want to see it on top of page one don't you ?

Hmm yes, that's true 🤔 Perhaps we could sort by primary key instead 🤔 That is, failed_executions.id.

Depending on the filtering, no index could be used for sorting, though. But the same would be true for a new index on created_at anyway. It'd only be used when no filtering is done. I had suggested job_id because I think, with the joins, we do for filtering, we could also use the index on job_id for sorting, but the retries prevent that, as you said.

Hmm yes, that's true 🤔 Perhaps we could sort by primary key instead 🤔 That is, failed_executions.id.

This seems obvious now :D I'll make the changes in the other PR

Awesome! Thank you 🙏🏻


Enable protected branch for master?

Protected branches are a relatively new and handy feature:
https://github.com/blog/2051-protected-branches-and-required-status-checks
At the very least I think we should enable these for master:

Can't be force pushed
Can't be deleted

This is also handy too:

Can't have changes merged into them until required status checks pass

:+1: Haven't actually tried this on any repos yet, but seems like it's worth doing.

Enabled.  Also enabled the required status checks pass.  Let's see how it goes.

Hmm, just ran into the first snag.  Trying to merge this: https://github.com/awslabs/aws-shell/pull/73, github prevents me from merging because there's been other commits to master since the PR was sent.
I get why it's rejecting the push.  It's possible that the subsequent commits from master when integrated with the PR branch could cause test failures.
So if I'm understanding correctly, every pull request will become unmergeable  as soon as we push any new commits to master. =/  So the options:

Require users to click the update branch, which merges master into the PR branch.  Not my preference, it clutters history.  I'd prefer they rebase against master.
Require users constantly rebase as we push commits to master.
Pull their branch down locally, rebase against master.  Push up to github as our own branch.  Wait for travis to pass.  Then merge to master.
Not have the required status checks.

What I'd like is something like https://github.com/barosl/homu, which can run the tests and merge for you.
I'm thinking I'm going to disable the required status checks for now.

Seems that feature could use an intermediate level to be more practical.

https://github.com/barosl/homu

Awesome...starred.

I'm thinking I'm going to disable the required status checks for now.

I agree I think this is currently the best option.


[#noissue] FIX potential NPE & Apply hostAddress cache

Codecov Report

Merging #5860 into master will decrease coverage by <.01%.
The diff coverage is 47.72%.

@@            Coverage Diff             @@
##           master    #5860      +/-   ##
==========================================
- Coverage   40.78%   40.77%   -0.01%
==========================================
  Files        2949     2950       +1
  Lines       88634    88660      +26
  Branches    11652    11659       +7
==========================================
+ Hits        36146    36148       +2
- Misses      49357    49374      +17
- Partials     3131     3138       +7

Impacted Files
Coverage Δ

...bo/interceptor/ApacheDubboProviderInterceptor.java
57.74% <31.57%> (-7.97%)
:arrow_down:

.../plugin/apache/dubbo/interceptor/NetworkUtils.java
60% <60%> (ø)

...p/pinpoint/rpc/client/WriteFailFutureListener.java
56.25% <0%> (-18.75%)
:arrow_down:

...vercorp/pinpoint/rpc/packet/ClientClosePacket.java
55.55% <0%> (-11.12%)
:arrow_down:

...cluster/zookeeper/ZookeeperClusterDataManager.java
52.9% <0%> (-1.94%)
:arrow_down:

...orp/pinpoint/rpc/server/DefaultPinpointServer.java
79.22% <0%> (-1.06%)
:arrow_down:

...ofiler/sender/StandbySpanStreamDataSendWorker.java
83.58% <0%> (+2.98%)
:arrow_up:

...m/navercorp/pinpoint/rpc/client/ConnectFuture.java
85% <0%> (+5%)
:arrow_up:

Continue to review full report at Codecov.

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


Typescript Support

Is it possible to add types to this package?

I started drafting up something like this for an index.d.ts file.... new to typing... would love some feedback/help on this.
import Pusher from 'pusher-js'
import Options from 'pusher-js/types/src/core/options'

interface ReduxStore {}
interface AdditionalParams {}

declare module "pusher-redux" {
    function setPusherClient(
        PusherClient: Pusher
    ): any;
    function configurePusher(
        store: ReduxStore,
        apiKey: string,
        options?: Options
    ): any;
    function delayConfiguration(
        store: ReduxStore,
        apiKey: string,
        options?: Options
    ): any;
    function startConfiguration(options?: Options): any;
    function subscribe<T extends string>(
        channelName: string,
        eventName: string,
        actionType: T,
        additionalParams: AdditionalParams
    ): any;
    function unsubscribe<T extends string>(
        channelName: string,
        eventName: string,
        actionType: T,
    ): any;
    function getChannel(
        channelName: string
    ): any;
    function disconnect(): any;
}

hey @tristanhcole
thanks for this effort!
I am a bit swamped with other work lately and don't have a current project that uses pusher-redux to test it on.
As for your code it's a great start, it can be polished further of course, but hopefully, you and others find it useful already.
I don't think I can merge this yet, but these typings can be used separately from this repo.

hey @tristanhcole
thanks for this effort!
I am a bit swamped with other work lately and don't have a current project that uses pusher-redux to test it on.
As for your code it's a great start, it can be polished further of course, but hopefully, you and others find it useful already.
I don't think I can merge this yet, but these typings can be used separately from this repo.

No worries @TheRusskiy! Thanks for the reply. I'll try to improve the typing of these and put in a PR once it's further along

@tristanhcole any updates on the TS support?


Use six rather than homegrown reinventions.

Coverage decreased (-0.3%) to 32.182% when pulling ffe9d2c3c68d6a69c9982b72bb41da0cade6f210 on timgraham:use-six into 7303cbbc0021448e108d1963fb7d95ac7612f513 on django-extensions:master.


App is draining battery quickly

Hi, Bringing this to your attention been using the lastest apk on the Samsung Galaxy Fold 3 usually watching streams with alot of bttv in chat and battery has been draining almost twice as fast as the Main Twitch app but the phone doesn't get hot or laggy while in use. Here's a screenshot of the battery usage.

Originally posted by @AoiKC in https://github.com/bttv-android/bttv/issues/152#issuecomment-1003615878

Please see this comment: https://github.com/bttv-android/bttv/issues/152#issuecomment-869163132
If you are experiencing issues it is advised to disable GIF Emotes, they seem to be the problem.


Add concurrency option for .each?

Is there a reason .each doesn't have the concurrency option? The way I see it, .map is for transformation and .each is for side-effects - there's no semantic difference that precludes one from having the concurrency option and not the other.
It's a little annoying not having the option, because it forces you to use .map in place of .each even when you don't want to transform the collection. Example:
}).then(() => {
  return getItems();
}).map(item => {
  return processItem(item).then(() => item); // Have to resolve with the item. :(
}, { concurrency: 5 })
.then(items => {
  console.log(items);
});

Would be nice if you could do this:
}).then(() => {
  return getItems();
}).each(item => {
  return processItem(item); // Don't have to care about the resolved value.
}, { concurrency: 5 })
.then(items => {
  console.log(items);
});

I don't see what harm adding the option would bring, since a default value of 1 would provide the exact same behaviour that .each currently has (i.e. every item is processed serially).

The way I see it, .map is for transformation and .each is for side-effects

.map is for concurrency and .each is for in-order execution. In 3.0 .each returns the modified sequence too.
As for how to resolve with the item there's .return.

.map(item => {
  return processItem(item).return(item);
}, { concurrency: 5 })


new platform icons

Make all strokes thicker and more consistent. See some examples below.

👑

Thanks @talkor @YossiSaadi! How do I know if the icons look good on our swimm app? Will I automatically see it on staging after merge?

Thanks @talkor @YossiSaadi! How do I know if the icons look good on our swimm app? Will I automatically see it on staging after merge?

No, there's another step after merging this PR. I added a commit to this PR that changes the version number to 2.0.0 (in the package.json file), we need to generate a new tag (a.k.a release/version) for this PR after it's merged. Only after that, we can go back to the swimm repo, and installed the new tag (2.0.0) and see the new icons. There are some instructions here

@shujuuu I'll take it from here, I'd be happy to show you how I did the rest when you come back from vacation :) Happy holidays 🥳


Modify Action on Returncodes

Is it possible like in the GUI to modify the Reurncodes, for exampel 3010 -> Success instead of Soft-Reboot. So that no Reboot is triggered?

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

ID: c6548ba0-8146-8b3d-c7fe-5e6f2e2ed946
Version Independent ID: 6c5a9d23-8912-14e1-1e3a-9eef7fcd13c9
Content: Add-CMScriptDeploymentType - Configuration Manager
Content Source: sccm-ps/ConfigurationManager/Add-CMScriptDeploymentType.md
Product: configuration-manager
Technology: configmgr-other
GitHub Login: @aczechowski
Microsoft Alias: aaroncz

Hi @PehDeh, I don't see any option to do that with these cmdlets.
It's an interesting feature idea, and I want to make sure it gets directly into the hands of the engineering team. Fortunately, we've got dedicated channels for that very purpose. :) See the Product feedback section in our docs. I think it’s important that you submit it directly, because that allows you to receive notifications and more closely monitor the progress.
I'm closing this issue as there's nothing actionable for docs at this time.


Windows: Unify workdir handling

Signed-off-by: John Howard<EMAIL_ADDRESS>Working directory processing was handled differently for Hyper-V and Windows-Server containers, as annotated in the builder documentation (updated in this PR). For Hyper-V containers, the working directory set by WORKDIR was not created. This PR makes Hyper-V containers work the same as Windows Server containers (and the same as Linux).
@swernli As discussed offline. PTAL.
Example (only applies to Hyper-V containers, so not reproducible under CI environment)
Dockerfile:
#escape=`
FROM microsoft/nanoserver
WORKDIR c:\installer
ENV GOROOT=c:\installer
ADD go.exe .
RUN go --help

Running on Windows Server 2016, using docker master without this change, but with daemon set to --exec-opt isolation=hyperv as it would be for Client operating systems.
PS E:\go\src\github.com\docker\docker> dockerd -g c:\control --exec-opt isolation=hyperv
time="2017-02-01T15:48:09.657286100-08:00" level=info msg="Windows default isolation mode: hyperv"
time="2017-02-01T15:48:09.662720900-08:00" level=info msg="[graphdriver] using prior storage driver: windowsfilter"
time="2017-02-01T15:48:10.011588000-08:00" level=info msg="Graph migration to content-addressability took 0.00 seconds"
time="2017-02-01T15:48:10.016655800-08:00" level=info msg="Loading containers: start."
time="2017-02-01T15:48:10.460820000-08:00" level=info msg="Loading containers: done."
time="2017-02-01T15:48:10.509859600-08:00" level=info msg="Daemon has completed initialization"
time="2017-02-01T15:48:10.509859600-08:00" level=info msg="Docker daemon" commit=3c64061 graphdriver=windowsfilter version=1.14.0-dev

First with no explicit isolation:
PS E:\docker\build\unifyworkdir> docker build --no-cache .
Sending build context to Docker daemon  10.1 MB
Step 1/5 : FROM microsoft/nanoserver
 ---> 89b8556cb9ca
Step 2/5 : WORKDIR c:\installer
 ---> 7e0f41d08204
Removing intermediate container 236c7802042a
Step 3/5 : ENV GOROOT c:\installer
 ---> Running in 8ea5237183c1
 ---> 394b70435261
Removing intermediate container 8ea5237183c1
Step 4/5 : ADD go.exe .
 ---> e47401a1745c
Removing intermediate container 88dcc28e74b1
Step 5/5 : RUN go --help
 ---> Running in efe90e1b6b8b
container efe90e1b6b8b76586abc5c1dc0e2797b75adc26517c48733d90651e767c8463b encountered an error during CreateProcess: failure in a Windows system call: The directory name is invalid. (0x10b) extra info: {"ApplicationName":"","CommandLine":"cmd /S /C go --help","User":"","WorkingDirectory":"C:\\installer","Environment":{"GOROOT":"c:\\installer"},"EmulateConsole":false,"CreateStdInPipe":true,"CreateStdOutPipe":true,"CreateStdErrPipe":true,"ConsoleSize":[0,0]}
PS E:\docker\build\unifyworkdir>

Then forcing process isolation:
PS E:\docker\build\unifyworkdir> docker build --isolation=process --no-cache .
Sending build context to Docker daemon  10.1 MB
Step 1/5 : FROM microsoft/nanoserver
 ---> 89b8556cb9ca
Step 2/5 : WORKDIR c:\installer
 ---> 350c955980c8
Removing intermediate container 8339c1e9250c
Step 3/5 : ENV GOROOT c:\installer
 ---> Running in bde511c5e3e0
 ---> b8820063b5b6
Removing intermediate container bde511c5e3e0
Step 4/5 : ADD go.exe .
 ---> e4ac32f8902b
Removing intermediate container d586e8492eda
Step 5/5 : RUN go --help
 ---> Running in 9e1aa235af5f
Cannot mkdir: C:\installer is not a directory
PS E:\docker\build\unifyworkdir>

Now compare the same results after this PR.  Again, first with no explicit isolation (defaulting to Hyper-V containers as that's what the daemon it set to) - note it now succeeds :smile:
PS E:\docker\build\unifyworkdir> docker build --no-cache .
Sending build context to Docker daemon  10.1 MB
Step 1/5 : FROM microsoft/nanoserver
 ---> 89b8556cb9ca
Step 2/5 : WORKDIR c:\installer
 ---> 4f319f301c69
Removing intermediate container 61b9c0b1ff6f
Step 3/5 : ENV GOROOT c:\installer
 ---> Running in c464a1d612d8
 ---> 96a26ab9a7b5
Removing intermediate container c464a1d612d8
Step 4/5 : ADD go.exe .
 ---> 0290d61faf57
Removing intermediate container dc5a085fffe3
Step 5/5 : RUN go --help
 ---> Running in 60bd56042ff8
Go is a tool for managing Go source code.

Usage:

        go command [arguments]

The commands are:

        build       compile packages and dependencies
        clean       remove object files
        doc         show documentation for package or symbol
        env         print Go environment information
        fix         run go tool fix on packages
        fmt         run gofmt on package sources
        generate    generate Go files by processing source
        get         download and install packages and dependencies
        install     compile and install packages and dependencies
        list        list packages
        run         compile and run Go program
        test        test packages
        tool        run specified go tool
        version     print Go version
        vet         run go tool vet on packages

Use "go help [command]" for more information about a command.

Additional help topics:

        c           calling between Go and C
        buildmode   description of build modes
        filetype    file types
        gopath      GOPATH environment variable
        environment environment variables
        importpath  import path syntax
        packages    description of package lists
        testflag    description of testing flags
        testfunc    description of testing functions

Use "go help [topic]" for more information about that topic.

The command 'cmd /S /C go --help' returned a non-zero code: 2

And the same with forcing process isolation. Also works :smile:
PS E:\docker\build\unifyworkdir> docker build --isolation=process --no-cache .
Sending build context to Docker daemon  10.1 MB
Step 1/5 : FROM microsoft/nanoserver
 ---> 89b8556cb9ca
Step 2/5 : WORKDIR c:\installer
 ---> f423b9cc3e78
Removing intermediate container 41330c88893d
Step 3/5 : ENV GOROOT c:\installer
 ---> Running in 0b99a2d7bf19
 ---> e051144bf8ec
Removing intermediate container 0b99a2d7bf19
Step 4/5 : ADD go.exe .
 ---> 7072e32b7c37
Removing intermediate container a7a97aa37fd1
Step 5/5 : RUN go --help
 ---> Running in 7097438a54e5
Go is a tool for managing Go source code.

Usage:

        go command [arguments]

The commands are:

        build       compile packages and dependencies
        clean       remove object files
        doc         show documentation for package or symbol
        env         print Go environment information
        fix         run go tool fix on packages
        fmt         run gofmt on package sources
        generate    generate Go files by processing source
        get         download and install packages and dependencies
        install     compile and install packages and dependencies
        list        list packages
        run         compile and run Go program
        test        test packages
        tool        run specified go tool
        version     print Go version
        vet         run go tool vet on packages

Use "go help [command]" for more information about a command.

Additional help topics:

        c           calling between Go and C
        buildmode   description of build modes
        filetype    file types
        gopath      GOPATH environment variable
        environment environment variables
        importpath  import path syntax
        packages    description of package lists
        testflag    description of testing flags
        testfunc    description of testing functions

Use "go help [topic]" for more information about that topic.

The command 'cmd /S /C go --help' returned a non-zero code: 2
PS E:\docker\build\unifyworkdir>

@friism @thaJeztah This might (not sure - will let you guys make the call) be an important one to pull into 1.13.1 and CS, in particular for client container scenarios. Server scenarios it's not so impactful as the default isolation is process/Windows Server containers.

LGTM

@johnstep PTAL if you have time.

Was there a reason we previously treated this different? Also, could you add a bit of description in the commit message as well?
ping @vieux for 1.13.1, but may be very close, or too late

@thaJeztah Commit message updated. Yes, see https://github.com/docker/docker/pull/27863 and https://github.com/docker/docker/issues/27545. Neither myself or @swernli realised that there was some platform code in VMCompute which allows us to effectively make this work the same through both Hyper-V and Windows server containers.


Add a note about working around the locmem cache restriction

Per a conversation on twitter with @jezdez about this, here's a stab at some docs. I've tried to strike a balance: I want to tell people about this option, but not directly provide the code to avoid copy-paste without thinking.

@jacobian thank you. Glad to see you around here :)


Implement bigint dividing by timedelta64

This patch adds support for dividing bigints by timedelta64. We automatically assume the integral value is the number of seconds for a time interval. This would make an upcoming blog post work.
However, after this I think we should look at holistically how we want to handle date/time and intervals.

Yup, let me track this in https://github.com/databricks/koalas/pull/136


Compilation often leads to errors.

Environment
{
  "name": "nuxt-app",
  "private": true,
  "type": "module",
  "scripts": {
    "build": "nuxt build",
    "dev": "nuxt dev",
    "generate": "nuxt generate",
    "preview": "nuxt preview",
    "postinstall": "nuxt prepare"
  },
  "devDependencies": {
    "@nuxt/devtools": "latest",
    "@nuxtjs/color-mode": "^3.3.2",
    "@nuxtjs/device": "^3.1.1",
    "@nuxtjs/tailwindcss": "^6.11.2",
    "@pinia-plugin-persistedstate/nuxt": "^1.2.0",
    "@pinia/nuxt": "^0.5.1",
    "@vant/nuxt": "^1.0.4",
    "dayjs-nuxt": "^2.1.9",
    "vant": "^4.8.4",
    "nuxt": "^3.10.0",
    "vue": "^3.4.15",
    "vue-router": "^4.2.5",
    "jwt-decode": "^4.0.0"
  },
  "dependencies": {

  }
}

Reproduction

Describe the bug

Additional context
No response
Logs
No response

This is a bug in yarn, not Nuxt. See https://github.com/search?q=strip-ansi+string-width&type=issues.
This comment explains the issue and provides a workaround.


upgrade secure storage to 8.0.0

Breaking changes:
[macOS] The minimum macOS version supported is now 10.14.
Other changes:
[Android] Fixed an issue when Encrypted Shared Preferences failed, the fallback would not handle the data correctly.
[Windows] Write encrypted data to files instead of the windows credential system.
[Linux] Fixed an issue with memory management.


404 Not found error on blob_excerpt expansion

Gitea version (or commit ref): 1.11.1
Git version:
Operating system: Linux
Database (use [x]):

[x] PostgreSQL

Can you reproduce the bug at https://try.gitea.io:

[x] Yes https://try.gitea.io/testinguserXY/my_bugtest/pulls/3#code-preview-26577

Log gist:

Description
Hi, gitea returns HTTP/404 not found on a blob_excerpt request while trying to expand the code in pull_request/review conversation (as seen on screenshot). This bug is also reproducable in testing gitea environment.
Request URL example:
Request URL: https://try.gitea.io/testinguserXY/my_bugtest/blob_excerpt/?last_left=0&last_right=0&left=35&right=35&left_hunk_size=6&right_hunk_size=7&path=testfile&style=unified&direction=up&anchor=diff-e05fcb614ab36fdee72ee1f2754ed85e2bd0e8d0K35
Thanks in advance
Screenshots

Sadly, It still exists :(

Issue still present

I just tried the provided url: https://try.gitea.io/testinguserXY/my_bugtest/pulls/3 and couldn't reproduce.

@sosak009 what version of Gitea is this present in?

@sosak009 what version of Gitea is this present in?

I just reproduced it on the try.gitea.io ...
Request URL: https://try.gitea.io/testinguserXY/my_bugtest/blob_excerpt/?last_left=0&last_right=0&left=35&right=35&left_hunk_size=6&right_hunk_size=7&path=testfile&style=unified&direction=up&anchor=diff-e05fcb614ab36fdee72ee1f2754ed85e2bd0e8d0K35
Request Method: GET
Status Code: 404

@sosak009 Cannot reproduce it on macOS & firefox

Ah you mean the up arrow on https://try.gitea.io/testinguserXY/my_bugtest/pulls/3#code-preview-26577

Now the question is what should that arrow do? Should it just redirect to the files page? Should it even exist?

Just remove that up arrow.


Google Cloud Run - Always reports changes on volume mounts

What happened?
Whenever I re-run pulumi up without making any changes, the V2 Cloud Run provider will generate this diff:
~ template: {
          ~ containers: [
              ~ [0]: {
                      - volumeMounts: [
                      -     [0]: {
                              - mountPath: "/cloudsql"
                              - name     : "cloudsql"
                            }
                        ]
                    }
            ]
        }

This happens despite me having made no changes to my CloudSQL connector setup.
Expected Behavior
No changes to be generated.
Steps to reproduce
Set up a Cloud Run service with an SQL connector and run it twice.
Output of pulumi about
CLI
Version      3.68.0
Go Version   go1.20.4
Go Compiler  gc

Plugins
NAME    VERSION
dotnet  unknown
gcp     6.56.0
random  4.13.2

Host
OS       fedora
Version  38
Arch     x86_64

This project is written in dotnet: executable='/usr/bin/dotnet' version='7.0.105'

Backend
Name         REDACTED
URL            REDACTED
User           REDACTED
Organizations

Dependencies:
NAME           VERSION
Pulumi         3.55.1
Pulumi.Gcp     6.56.0
Pulumi.Random  4.13.2

Pulumi locates its logs in /tmp by default

Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Hi @atrauzzi,
As Robbie mentioned earlier, it would be immensely helpful if you could provide us with a code sample that we can replicate. This would not only assist us in identifying any potential configuration issues in your Pulumi code but also help us pinpoint the root cause of the problem.
Based on my initial investigation using the example code for spinning up a Cloud Run v2 Service with Cloud SQL, it seems that including the volume mount in your Pulumi code might be necessary. It appears that GCP overrides the template and includes the volume mounts because they are required for interacting with Cloud SQL from Cloud Run. Consequently, there will be an actuation fight between the configuration applied/reported by GCP and the one you have locally, leading to a conflict when re-running pulumi up.
To resolve this conflict between Pulumi and GCP, you have a couple of options. One approach is to explicitly include the volume mount within your Pulumi program. Alternatively, you can make use of the ignoreChanges field in the resource configuration to prevent diffing on the volume mount field.
Let me know if either of these approaches help.

It vaguely sounds like @atrauzzi found a solution or isn't blocked on this anymore. Since we don't have a repro, I'll err on the side of cleaning things up and close the issue. Please open a new one with a repro if the problem persists and you think it's a bug on Pulumi side.

Creating a whole new Pulumi project just to report a bug can be a lot of work, if you don't do it all the time, like yourself.
The reproduction steps are right there: "Set up a Cloud Run Gen2 service with an SQL connector and run it twice."
@atrauzzi is not alone in this issue, together with https://github.com/pulumi/pulumi/issues/9830 this is impossible debug, and workarounds like just ignoring volume field updates would be replicating in code exactly the reason why we don't use UIs – where we forget to update dependencies or changes – and use IaC in the first place.
Pulumi is wonderful and works well mostly, but ignoring issues like these is going to add up.
    ~ template: {
          ~ containers: [
              ~ [0]: {
                      ~ volumeMounts: [
                          ~ [0]: {
                                  - mountPath: [secret]
                                  - name     : [secret]
                                }
                        ]
                    }
            ]
        }

@mikhailshilkov can you elaborate on "One approach is to explicitly include the volume mount within your Pulumi program."
I am currently creating cloud instance volumes for the Gen2 Cloud Run instance like this:
        volumes = []
        if self.cloud_sql_instance is not None:
            volumes.append(
                cr2.ServiceTemplateVolumeArgs(
                    name="cloudsql",
                    # googleapi: Cloud SQL volume must be named 'cloudsql', and 'cloudsql' is reserved for
                    # Cloud SQL volumes.
                    cloud_sql_instance=cr2.ServiceTemplateVolumeCloudSqlInstanceArgs(
                        instances=[self.cloud_sql_instance.connection_name]
                    )
                )
            )

Nothing is set up through the UI. I would call that "explicitly including the volume mount within my Pulumi program", yet still it keeps showing up as a change everytime we re-apply pulumi up, even if nothing changed at all, in the configuration.
Would appreciate your support.

Okay after lunch and a meeting I see the issue (documenting here for the unlucky soul that runs into the same issue), three things are coming together:

The template has a volumes field, that everyone sets correctly like this

cr2.ServiceTemplateVolumeArgs(
    name="cloudsql",
    # googleapi: Cloud SQL volume must be named 'cloudsql', and 'cloudsql' is reserved for
    # Cloud SQL volumes.
    cloud_sql_instance=cr2.ServiceTemplateVolumeCloudSqlInstanceArgs(
        instances=[self.cloud_sql_instance.connection_name]
    )
)

The container definition itself though also has a similarly named volume_mounts field; For Cloud SQL the database is connected via a socket, that is mounted here as a volume mount. That mount happens automagically, and people forget to add it in their definition. Name and mount path are always as below.

cr2.ServiceTemplateContainerVolumeMountArgs(
    name="cloudsql",
    mount_path="/cloudsql",
)

@mikhailshilkov, though helpful, talks about adding the volume_mount as a "workaround" which immediately turns off the reader. Adding the mount is not a workaround, it is actually just a mapping of what's happening automatically, to Pulumi's stack; it's the actual solution, not a workaround.

So all in all the working solution for me is – when using Cloud SQL with Cloud Run Gen2 – to just define both at the same time
volumes = []
container_volume_mounts = []
if self.cloud_sql_instance is not None:
    volumes.append(
        cr2.ServiceTemplateVolumeArgs(
            name="cloudsql",
            # googleapi: Cloud SQL volume must be named 'cloudsql', and 'cloudsql' is reserved for
            # Cloud SQL volumes.
            cloud_sql_instance=cr2.ServiceTemplateVolumeCloudSqlInstanceArgs(
                instances=[self.cloud_sql_instance.connection_name]
            )
        )
    )
    container_volume_mounts.append(
        cr2.ServiceTemplateContainerVolumeMountArgs(
            name="cloudsql",
            mount_path="/cloudsql",
        )
    )


The landing page pictures

Jack
You know there are two large pictures right on the top of landing page that continue on every screen.  In your website its the picture of a skateboard ..
I feel these pictures are eating away lot of screen real estate , without carrying any specific meaning. Another problem is they don't look good on the smartphones ..
Is there a way to remove these pictures for good  ..
Btw  - thanks again for your help on the font sizes and the sample css you provided. I have made some modifications and now posts are looking really good ..
Again - no hurry , please provide answer at your convenience
Cheers

@ashutoshmjain
This idea is very practical, landing pictures may give others the state of blog's owner, but if we see them too often, it's meanless.
In Jalpc, I added this feature to open/close carousel with @felansu 's  PR, thanks.
If you want to edit the code of your blog, they are located at two files: one, two.
Comment them can remove carousel.

Jack - Thanks for the response. I removed the code. Its working well for the blog but somehow the homepage is NOT loading  ..
https://ashutoshmjain.github.io/homepage/blog/  -- is good . this is exactly what I wanted
https://ashutoshmjain.github.io/homepage/    -- NOTHING SHOWS up here . It is the main page.

Again - No hurry as no one is anyway looking at my homepage  :-) .

Jack
I figured out the problem .. looks like I had deleted more lines in index.html  ..
Everything good now and its looking beautiful
Thanks again


⚠ Samsung has degraded performance

In ad50080, Samsung (https://samsung.com) experienced degraded performance:

HTTP code: 200
Response time: 2765 ms

Resolved: Samsung performance has improved in f944f4d.


Program not running

Hi, first of all thanks for making this, we're in a pretty desperate pinch to schedule with the DPS asap so I was blown away that this exists.
I've tried running it following your instructions perfectly, and keep getting stuck with the same result (pasted below) -- without it running fully or completing. It looks like a couple people in the YouTube comments weren't able to schedule either, going back a couple months now.
Thanks for any insight!

esbuild index.ts --bundle --log-level=warning --outdir=./.build --outbase=. --sourcemap=inline --target=node16 --platform=node --format=cjs

I'm also having the same problem! I would love a solution this is so amazing!

@tmbarron couple things you can try:

Try to delete the project and then import again the same as #54.
Or, don't press the run button, switch to console mode then type npm run start.

@phamleduy04  - I am having similar issue. But tried your above options but no luck. It throws the compilation error when running 'npm run start' command.  Any idea I am missing something ?

<EMAIL_ADDRESS>start
ts-node src/index.ts

/home/runner/texas-dps-scheduler/node_modules/ts-node/src/index.ts:859
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
src/Client/index.ts:64:19 - error TS2345: Argument of type '(res: ExistBookingResponse[]) => ExistBookingResponse[]' is not assignable to parameter of type '(value: unknown) => ExistBookingResponse[] | PromiseLike<ExistBookingResponse[]>'.
Types of parameters 'res' and 'value' are incompatible.
Type 'unknown' is not assignable to type 'ExistBookingResponse[]'.
64             .then((res: ExistBookingResponse[]) => res.filter((booking: ExistBookingResponse) => booking.ServiceTypeId == this.config.personalInfo.typeId));
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/Client/index.ts:91:16 - error TS18046: 'response' is of type 'unknown'.

Im also having that same issue as you @Imhotep86

@Imhotep86 your issue moved to #58

@phamleduy04  - Thank you for the quickest fix. Retried and works like a charm and already booked appointment for 8/7. Appreciate it and will share it with my circle...
Kudos and Power of open source...!!!


msgbox: intelligently shape using ncplane_puttext() results

At first, provide a msgbox with the full height of the screen and half its width.

invoke ncplane_puttext()
successful? use result to trim box vertically
unsuccessful? widen and call again

only after having resized the msgbox ought we draw the perimeter (see #3)

I've switched to this, but we seem to be dropping the last word of our text (where we were not before). See https://github.com/dankamongmen/notcurses/issues/691.


Make URL more accurate

Make getSubTypesOf(Object.class) returns right result. #234 ,#196 and so on was fixed.

#245, #201 and  #178 are releted to this pr too.


Crashes on packages with broken symbolic links

I had a link in the top level directory that was broken, took me forever to figure out what the error actually was.
The error is coming from somewhere near here: https://github.com/rust-lang/rustwide/blob/master/src/crates/local.rs#L51
...
2019/11/04 04:49:50 [INFO] cratesfyi::docbuilder::rustwide_builder: building package rcc 0.1.0
2019/11/04 04:49:50 [INFO] rustwide::crates::local: copying local crate from /build to /home/cratesfyi/rustwide/builds/rcc-0.1.0/source
thread 'main' panicked at 'failed to build documentation: Os { code: 2, kind: NotFound, message: "No such file or directory" }

stack backtrace:
   0:     0x5618e503acbd - backtrace::backtrace::trace::h8a6a3924ab912084
   1:     0x5618e50396d2 - backtrace::capture::Backtrace::new_unresolved::h32baafbff7da6381
   2:     0x5618e5039087 - failure::backtrace::internal::InternalBacktrace::new::he7ea4be726cbc04f
   3:     0x5618e5039241 - <failure::backtrace::Backtrace as core::default::Default>::default::hb3a5647f7da2650d
   4:     0x5618e4985c72 - <rustwide::crates::local::Local as rustwide::crates::CrateTrait>::copy_source_to::h38d3150a66853397
   5:     0x5618e49c41ca - rustwide::crates::Crate::copy_source_to::hb8883f6638576a50
   6:     0x5618e49a4ce7 - rustwide::prepare::Prepare::prepare::h68b81601bb428e21
   7:     0x5618e47fa38f - rustwide::build::BuildBuilder::run::hc1083f614508117a
   8:     0x5618e489c6fe - cratesfyi::docbuilder::rustwide_builder::RustwideBuilder::build_package::h7a26bcb3a0f58c30
   9:     0x5618e489bf7c - cratesfyi::docbuilder::rustwide_builder::RustwideBuilder::build_local_package::h481bc5961bfef4c6
  10:     0x5618e47a5d78 - cratesfyi::main::h081055f3d1e49a0b
  11:     0x5618e4799182 - std::rt::lang_start::{{closure}}::h38c15e7f2a27e7a1
  12:     0x5618e505ec62 - std::rt::lang_start_internal::{{closure}}::h4e93c1949c7a1955
                        at src/libstd/rt.rs:49
                         - std::panicking::try::do_call::h9440ccd4dc467eaa
                        at src/libstd/panicking.rs:296
  13:     0x5618e5069669 - __rust_maybe_catch_panic
                        at src/libpanic_unwind/lib.rs:80
  14:     0x5618e505f82c - std::panicking::try::hc046e7ee42ee744f
                        at src/libstd/panicking.rs:275
                         - std::panic::catch_unwind::h27dfc457c200aee0
                        at src/libstd/panic.rs:394
                         - std::rt::lang_start_internal::hea1b49a567afe309
                        at src/libstd/rt.rs:48
  15:     0x5618e47a7641 - main
  16:     0x7f3090f08b96 - __libc_start_main
  17:     0x5618e4794179 - _start
  18:                0x0 - <unknown>', src/bin/cratesfyi.rs:175:17
stack backtrace:
   0: backtrace::backtrace::libunwind::trace
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/libunwind.rs:88
   1: backtrace::backtrace::trace_unsynchronized
             at /cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-0.3.34/src/backtrace/mod.rs:66
   2: std::sys_common::backtrace::_print
             at src/libstd/sys_common/backtrace.rs:47
   3: std::sys_common::backtrace::print
             at src/libstd/sys_common/backtrace.rs:36
   4: std::panicking::default_hook::{{closure}}
             at src/libstd/panicking.rs:200
   5: std::panicking::default_hook
             at src/libstd/panicking.rs:214
   6: std::panicking::rust_panic_with_hook
             at src/libstd/panicking.rs:477
   7: std::panicking::continue_panic_fmt
             at src/libstd/panicking.rs:384
   8: std::panicking::begin_panic_fmt
             at src/libstd/panicking.rs:339
   9: cratesfyi::main
  10: std::rt::lang_start::{{closure}}
  11: std::rt::lang_start_internal::{{closure}}
             at src/libstd/rt.rs:49
  12: std::panicking::try::do_call
             at src/libstd/panicking.rs:296
  13: __rust_maybe_catch_panic
             at src/libpanic_unwind/lib.rs:80
  14: std::panicking::try
             at src/libstd/panicking.rs:275
  15: std::panic::catch_unwind
             at src/libstd/panic.rs:394
  16: std::rt::lang_start_internal
             at src/libstd/rt.rs:48
  17: main
  18: __libc_start_main
  19: _start

Strangely the documentation for WalkDir says that this shouldn't be an error:

Follow symbolic links. By default, this is disabled.
When yes is true, symbolic links are followed as if they were normal directories and files. If a symbolic link is broken or is involved in a loop, an error is yielded.

https://docs.rs/walkdir/2.2.9/walkdir/struct.WalkDir.html#method.follow_links

My guess is that, since WalkDir is not configured to follow symlinks, copy_dir tries to call std::fs::copy on the broken symlink:
https://github.com/rust-lang/rustwide/blob/afb04e81d6626d347148282a5804db8a513bfde3/src/crates/local.rs#L60-L64
I think the best fix is to instead configure WalkDir to follow them, so we don't have to deal with the issue ourselves.

If WalkDir followed links, we would still get the same error, just a little sooner:

If a symbolic link is broken or is involved in a loop, an error is yielded.

Maybe we could configure std::fs::copy not to follow symbolic links? I don't see a way to do that in the documentation though ... https://doc.rust-lang.org/std/fs/fn.copy.html

WalkDir has an API to check whether or not it's a symbolic link at least, maybe we could do something like this:
    for entry in WalkDir::new(&src).into_iter()
        .filter_entry(|entry| !(entry.path_is_symlink() && /* check that entry isn't a broken link */) {
    }

I'd consider a link being broken an error though.

I feel like that should be up to the developer ... But in any case we should give a better error message if we're going to leave this in place, 'No such file or directory' sounds very strange for a copy.

Yeah, adding context to the errors mentioning the file name would probably solve it.


Add config file

needed so that the server url/ip isn't hard coded into the binary

I would prefer to not have a config file for the client, so that the install procedure is as simple as copying the binary, so barring any other requirements that mandate a config file I'll avoid making one.
For now at least, I believe the server url (the original inspiration for this ticket) can be found by looks for the PBS_PRIMARY in /etc/pbs.conf as we're running cttd on the sched node for each of our clusters


[Activation] PowBlockDefinition - ensure we are calling validator correctly

There is a TODO in PowBlockDefinition.cs, fix it

Following a discussion with Ivan and Apro, it was determined that the method TestBlockValidity is not required and can be removed from the codebase.  This is because block validation is already happening during the mining phase in ConsensusManager.
Also, this is a sanity check and should never happen, and that not removing it from here would lead to performing partial validation twice.

fixed with https://github.com/stratisproject/StratisBitcoinFullNode/pull/1987


ClassDefinitionFixer - PSR12 for anonymous class

Adds PSR12 support for anonymous class notation with a space following new class, like new class (1,2) {} (note that new class {} is currently already covered)
Closes: https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/5463#issuecomment-812727726
Also reported here https://github.com/loophp/collection/pull/102#issuecomment-859945929 (cc @drupol )
Closes one of the points here https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues/4502
New feature so targets master, no BC break, new behavior through configuration (by default configuration acts the same)

Coverage increased (+0.005%) to 92.226% when pulling 4d84a839b7d1c7cc10cdc240c7dc7550e2ba487f on SpacePossum:master_ClassDefinitionFixer_PSR12 into 676db92e1a6758067f9416dd6b966607ec706d21 on FriendsOfPHP:master.

Cool! Looking forward for this :)

Cool! Looking forward for this :)

Don't look, make a review :)

Thank you @SpacePossum.


how to get Agent-Computer Interface (ACI), readme only teach to run terminal Interface ? how to get aci ?

how to get Agent-Computer Interface (ACI), readme only teach to run terminal Interface ? how to get aci ? ; The interface at 38 seconds in this video; https://www.youtube.com/watch?time_continue=39&v=CeMtJ4XObAM&embeds_referring_euri=https%3A%2F%2Fswe-agent.com%2F&embeds_referring_origin=https%3A%2F%2Fswe-agent.com&source_ve_path=MTM5MTE3LDI4NjY2&feature=emb_logo

See #103


Export function to verify individual signature

Summary
Calling the existing VerifyImageSignatures function multiple times for the same image with different verifiers will download the OCI manifest multiple times. This is inefficient and slow.
Exporting a function that verifies a single signature allows the decoupling of the fetch and verification stages.
Release Note

I don't think the test failure is related to the changes in the PR:
--- FAIL: TestReadWrite (0.07s)
    write_test.go:36: appending signatures: error writing layer: rename C:\Users\RUNNER~1\AppData\Local\Temp\TestReadWrite2597293721\001\blobs\sha256\e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b8551856907808 C:\Users\RUNNER~1\AppData\Local\Temp\TestReadWrite2597293721\001\blobs\sha256\e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855: Access is denied.
FAIL
FAIL	github.com/sigstore/cosign/pkg/oci/layout	0.111s

Seems reasonable to me!
Any objections to the new public API anyone?

OK then, merging!


Add host as adjustable parameter through env variables

eg: HOST=test.dev.local npm start or npm start
I tried with and without the env HOST and it works as expected.

Thank you for your pull request.  As you may know, we require contributors to sign our Contributor License Agreement, and we don't seem to have you on file and listed as active anymore.  In order for us to review and merge your code, please email<EMAIL_ADDRESS>with your details so we can update your status.

Looks good to me, thanks!


module 'nmap' has no attribute 'PortScanner'

Before you submit this bug report check that you have ran the required setup correctly. Follow the steps on the wiki.
Describe the bug
When attempting to port scan I receive this error message:
AttributeError: module 'nmap' has no attribute 'PortScanner'

To Reproduce
Steps to reproduce the behavior:

Port Scan

Expected behavior
An nmap Response
Desktop (please complete the following information):

OS: macOS 10.13.4
Browser: Google Chrome
Version: sharkNet

Hello, please try the following:
python3 -m pip install python-nmap

AttributeError: module 'nmap' has no attribute 'portscanner' in windowns.

AttributeError: module 'nmap' has no attribute 'portscanner' please help me.

AttributeError: module 'nmap' has no attribute 'portscanner' in windowns.

Just run these commands:
python -m pip uninstall nmap
python -m pip install python-nmap

AttributeError: module 'nmap' has no attribute 'portscanner' in windowns.

Just run these commands:
python -m pip uninstall nmap
python -m pip install python-nmap


restart_process: reduce image size

Previous size (measured with docker image inspect aaaaaa --format '{{.Size}}'):
240996873 bytes = 240 MB
New size:
8546985 bytes = 8.5 MB

@maiamcc I think I can. There was some trouble last time but I think it was resolved.


Unable to load one or more of the requested types.

I have seen some other posts about this error but i can't figure out how to solve it.
I have implemented ReactJS.net according to the tutorial.
`using React;
[assembly: WebActivatorEx.PreApplicationStartMethod(typeof(AlternativeTo.ReactConfig), "Configure")]
namespace AlternativeTo {
public static class ReactConfig {
public static void Configure() {
ReactSiteConfiguration.Configuration
.AddScript("~/ReactTest/like_button.js");
}
}
}`
I have installed the nuget packages and so on but the first thing that happens when i load the project is that i get.
[ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.]    System.Reflection.RuntimeModule.GetTypes(RuntimeModule module) +0    System.Reflection.RuntimeModule.GetTypes() +9    System.Reflection.Assembly.GetTypes() +61    React.<>c.<InitializeIoC>b__2_0(Assembly assembly) +12    System.Linq.<SelectManyIterator>d__172.MoveNext() +170
System.Linq.WhereEnumerableIterator1.MoveNext() +87    React.Initializer.InitializeIoC(Func2 requestLifetimeRegistration) +275
React.Web.WebInitializer.Initialize() +43
[TargetInvocationException: Exception has been thrown by the target of an invocation.]
System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) +0
System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) +87
System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) +101
WebActivatorEx.BaseActivationMethodAttribute.InvokeMethod() +73
WebActivatorEx.ActivationManager.RunActivationMethods(Boolean designerMode) +637
WebActivatorEx.ActivationManager.Run() +101
[InvalidOperationException: The pre-application start initialization method Run on type WebActivatorEx.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
System.Web.Compilation.BuildManager.InvokePreStartInitMethodsCore(ICollection1 methods, Func1 setHostingEnvironmentCultures) +614
System.Web.Compilation.BuildManager.InvokePreStartInitMethods(ICollection`1 methods) +138
System.Web.Compilation.BuildManager.CallPreStartInitMethods(String preStartInitListPath, Boolean& isRefAssemblyLoaded) +163
System.Web.Compilation.BuildManager.ExecutePreAppStart() +156
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters, PolicyLevel policyLevel, Exception appDomainCreationException) +695
[HttpException (0x80004005): The pre-application start initialization method Run on type WebActivatorEx.ActivationManager threw an exception with the following error message: Exception has been thrown by the target of an invocation..]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +658
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +89
System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context) +189`
If I change the IIS App Pool to disable support for 32bit i get this error instead.
`[TinyIoCResolutionException: Unable to resolve type: React.IReactEnvironment]
React.TinyIoC.TinyIoCContainer.ResolveInternal(TypeRegistration registration, NamedParameterOverloads parameters, ResolveOptions options) +821
React.TinyIoC.TinyIoCContainer.Resolve() +46
React.ReactEnvironment.get_GetCurrentOrThrow() +66
[ReactNotInitialisedException: ReactJS.NET has not been initialised correctly. Please ensure you have called services.AddReact() and app.UseReact() in your Startup.cs file.]
React.ReactEnvironment.get_GetCurrentOrThrow() +158
React.Web.Mvc.<>c__DisplayClass2_01.<React>b__0(TextWriter writer) +359    React.Web.Mvc.ActionHtmlString.ToHtmlString() +201    System.Web.WebPages.WebPageBase.Write(Object value) +103    ASP._Page_Views_Start_Index_cshtml.Execute() in c:\GitHub\AlternativeTo\AlternativeTo2\AlternativeToWeb\Views\Start\Index.cshtml:85    System.Web.WebPages.WebPageBase.ExecutePageHierarchy() +252    System.Web.Mvc.WebViewPage.ExecutePageHierarchy() +148    System.Web.WebPages.StartPage.ExecutePageHierarchy() +86    System.Web.WebPages.WebPageBase.ExecutePageHierarchy(WebPageContext pageContext, TextWriter writer, WebPageRenderingBase startPage) +107    StackExchange.Profiling.Mvc.WrappedView.Render(ViewContext viewContext, TextWriter writer) +160    System.Web.Mvc.ViewResultBase.ExecuteResult(ControllerContext context) +375    System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +88
System.Web.Mvc.ControllerActionInvoker.InvokeActionResultFilterRecursive(IList1 filters, Int32 filterIndex, ResultExecutingContext preContext, ControllerContext controllerContext, ActionResult actionResult) +775    System.Web.Mvc.ControllerActionInvoker.InvokeActionResultWithFilters(ControllerContext controllerContext, IList1 filters, ActionResult actionResult) +81
System.Web.Mvc.Async.<>c__DisplayClass3_1.b__5(IAsyncResult asyncResult) +188
System.Web.Mvc.Async.AsyncControllerActionInvoker.EndInvokeAction(IAsyncResult asyncResult) +38
System.Web.Mvc.<>c.b__152_1(IAsyncResult asyncResult, ExecuteCoreState innerState) +26
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +73    System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +52    System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +39
System.Web.Mvc.Controller.EndExecute(IAsyncResult asyncResult) +38
System.Web.Mvc.<>c.b__20_1(IAsyncResult asyncResult, ProcessRequestState innerState) +40
System.Web.Mvc.Async.WrappedAsyncVoid1.CallEndDelegate(IAsyncResult asyncResult) +73    System.Web.Mvc.MvcHandler.EndProcessRequest(IAsyncResult asyncResult) +38    System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +648    System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +213    System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +131
As far as i understand it seems to have something todo with the "JavascriptEngineSwitcher" but i have no idea how to solve it? https://github.com/reactjs/React.NET/issues/414 this thread seems to mention something about setting a default engine but where do i do that and what should i use?
I have read https://github.com/reactjs/React.NET/issues/409 but tbh i dont not really understand what actions i should take based on that.
Sorry but i'm also new to this library and new to JavascriptEngineSwitcher so i don't have that much background information. Let me know if you need more code and so on.

There is a getting started page that may be helpful here.. would you mind trying to build one of the sample projects in this repo? Those show how to set up ReactJS.NET correctly.


Improve docs on grad accumulation

Also added a self-contained runnable example.

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint.

Hi @muellerzr and @sgugger thanks for the prompt review. Let me know if further changes are needed :)


Looking for new maintainer

I am currently spread too thin between many open source projects, and since I don't currently use Pulsar or Scala, this project is one that I need to pass the torch on.
If anyone wants to take over please ping here or my email.

That's great news @judu. Let's discuss on email, my email is in my profile.

@mbaechler , yep moved over to CleverCloud with @judu


3D ParticleSystem crashes second time the game starts on Android

Hey,
I'm using 3d Particle Effect in my Game on Android. However, the game will crash the second time I start it. Here is the error log:
04-07 15:32:10.680: E/AndroidRuntime(31308): FATAL EXCEPTION: GLThread 644
04-07 15:32:10.680: E/AndroidRuntime(31308): com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NullPointerException
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.assets.AssetManager.handleTaskError(AssetManager.java:540)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.assets.AssetManager.update(AssetManager.java:356)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at lu.internet.alain_krier.ggame.World.update(World.java:239)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at lu.internet.alain_krier.ggame.screens.GameScreen.update(GameScreen.java:30)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at lu.internet.alain_krier.ggame.screens.GameScreen.render(GameScreen.java:35)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.Game.render(Game.java:46)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at lu.internet.alain_krier.ggame.Ggame.render(Ggame.java:46)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:422)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
04-07 15:32:10.680: E/AndroidRuntime(31308): Caused by: java.lang.NullPointerException
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.assets.AssetManager.get(AssetManager.java:148)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.graphics.g3d.particles.batches.BillboardParticleBatch.load(BillboardParticleBatch.java:678)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.graphics.g3d.particles.ParticleEffectLoader.loadSync(ParticleEffectLoader.java:117)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.graphics.g3d.particles.ParticleEffectLoader.loadSync(ParticleEffectLoader.java:29)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.assets.AssetLoadingTask.handleAsyncLoader(AssetLoadingTask.java:139)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.assets.AssetLoadingTask.update(AssetLoadingTask.java:89)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.assets.AssetManager.updateTask(AssetManager.java:477)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	at com.badlogic.gdx.assets.AssetManager.update(AssetManager.java:354)
04-07 15:32:10.680: E/AndroidRuntime(31308): 	... 8 more

I figured out, that it is because ParticleSystem class uses the Singleton Pattern and therefore has a static variable holding the instance(which causes trouble due to the Android Life Cycle). I called the constructor of ParticleSystem manually and then it works.
I suggest removing the Singleton pattern and force the user to manually instantiate the ParticleSystem class to be able to use it.
regards,
Alain

It would be pretty exotic if static variables lose their values, even in an Android context. That happens only when the class would be unloaded or something similar happens. I don't think that Android really unloads classes and reloads them within a single lifetime of an app.
Even if it does happen though, there's a nullcheck in the singleton.
How did you backtrack this to ParticleSystem? It's not in the stacktrace. Plus: How did you call the constructor? Did you use black magic (aka reflection), because it's private.

The NPE you see in the stack trace is triggered by a null AssetDescriptor being sent to the AssetManager - how does this have anything to do with the ParticleSystem?

Yes, I used reflection to call the private constructor(as workaround for now).
I used the following code to load particle assets:
ParticleEffectLoader.ParticleEffectLoadParameter loadParam = new ParticleEffectLoader.ParticleEffectLoadParameter(ParticleSystem.get().getBatches());
        ParticleEffectLoader loader = new ParticleEffectLoader(new InternalFileHandleResolver());
        assets.setLoader(ParticleEffect.class, loader);

That's where the ParticleEffectLoader gets set up with the help of the ParticleSystem Singleton

krial057, I got a similar problem.   Check if your having duplicated ParticleSystem#batches, if you do, clear them before adding it.
My problem was when rotating the device assetManager crashed. It was because it was having duplicated batches.  Since ParticleSystem is static, the old batches is still in the array.


Fix ReactionHandler's permissions issues

Description of the PR
So, I'm using this class a lot, such as in my help command, music playlists, etc and I found out I would often get issues due to missing bot permissions.
I thought it'd be nice to add the permission check inside the class itself rather than some custom checks I would add into Klasa's code (which is not a good solution since I have to upload separately the klasa module now rather than just npm install-ing it).
Changes Proposed in this Pull Request (List new items in CHANGELOG.MD)

Added permission check inside ReactionHandler for "MANAGE_MESSAGES" when deleting a reaction from a message.

Semver Classification

[ ] This PR only includes documentation or non-code changes.
[x] This PR fixes a bug and does not change the (intended) framework interface.
[ ] This PR adds methods or properties to the framework interface.
[ ] This PR removes or renames methods or properties in the framework interface.

Oops my bad I had forgotten js linters won't like double quotes for these kind of purpose.

This has been suggested many times and denied many times more. You are given the tools to guard permissions before creating a reaction handler.  This is not the only place manage messages is needed btw.


Age 16 and over unemployment rate

closing as amalgamated into this pr: https://github.com/GSS-Cogs/idpd-api-poc/pull/129
ty for this


Contact page issues

As I understand contact.yaml is used to edit contact data.
Here's what I have observed:

businessName from contact.yaml seems not to be used
Office hours are hard-coded in the template

@amalic - per https://github.com/zerostaticthemes/hugo-hero-theme/pull/28 hours of operation are now configurable

@amalic - per https://github.com/zerostaticthemes/hugo-hero-theme/pull/28 hours of operation are now configurable


Batch resize

Please allow user to mark and resize multiple files at once.

Please allow user to mark and resize multiple files at once.

I will think about it👀

I think this feature is vital, especially since regular cropping is already supported by almost all gallery apps.

There could be an option whether to keep or remove exif, like a checkbox, that would apply to all selected images.

Cropping could work, have 2 ways (percentage and absolute) of entering dimensions. There are many cases where people have hundreds of images of the same size that all have the same kind of artifact in a specific spot.

thanks for the suggestions, it's really possible to do so, I'll add it as soon as I can 👀


useFastlaneAuth isn't finding session cookie in environment

Hello,
We are trying to use the new --use-fastlane-auth option, running xcodes 1.3.0 on an M1 Mac, installed using homebrew, and have tested in a CI pipeline and on a local device.
We export the FASTLANE_SESSION environment variable, then run the command xcodes install --use-fastlane-auth 14.2 and have tried including many variations of including or not including a --fastlane-user as a parameter.
Expected behavior:
Xcode 14.2 is installed without further ado
Actual behavior:
The command returns the error FASTLANE_SESSION not set then prompts for an AppleId, although the FASTLANE_SESSION is defined in the environment, as verified by running either printenv or echo $FASTLANE_SESSION.

Sorry for the noise, we realized that we had an invalid session cookie, and were being prompted for a userId (without the FASTLANE_SESSION not set error). I had it confused with an older error.
It would, however, be nice to add some error messaging. I noticed that inside AppleSessionService-loginIfNeeded, when we don't have a valid session, it silently defaults to prompting for AppleID login. If the user was able to get a message "no valid session, defaulting to password login" it would definitely have cleared up our issue!


fix column names in get_mids

When running coolpup using a 2D bed file, I was getting the following error:
Traceback (most recent call last):
  File "/pasteur/scratch/users/cmatthey/softwares/anaconda3/bin/coolpup.py", line 10, in <module>
    sys.exit(main())
  File "/pasteur/scratch/users/cmatthey/softwares/anaconda3/lib/python3.7/site-packages/coolpuppy/__main__.py", line 237, in main
    mids = get_mids(bases, resolution=c.binsize, combinations=combinations)
  File "/pasteur/scratch/users/cmatthey/softwares/anaconda3/lib/python3.7/site-packages/coolpuppy/coolpup.py", line 63, in get_mids
    'Bin1', 'Bin2']).drop(['Bin1',
  File "/pasteur/scratch/users/cmatthey/softwares/anaconda3/lib/python3.7/site-packages/pandas/core/frame.py", line 4331, in drop_duplicates
    duplicated = self.duplicated(subset, keep=keep)
  File "/pasteur/scratch/users/cmatthey/softwares/anaconda3/lib/python3.7/site-packages/pandas/core/frame.py", line 4381, in duplicated
    raise KeyError(diff)
KeyError: Index(['chr'], dtype='object')

When looking at get_mids, I found that the 'chr' column was not supposed to be present and that there was a mistake  at line 64 where spaces were inserted in the column name.
After correcting this, the program worked fine. Thanks for the nice and convenient software  :)

Hi, thank you so much for bringing this to my attention, not sure how this creeped in!
Two comments: instead of changing the import to
from coolpuppy import *
Just fix it as a relative import:
from .plotpup import *
And for the main fix here: please rather fix it this way:
                            ).drop_duplicates(['chr1', 'chr2',
                                'Bin1', 'Bin2']).drop(['Bin1', 'Bin2'], axis=1)

We only want to drop duplicates of coordinates by chromosome. Thank you!

OK, I actually have just pushed this myself with. Thank you again for spotting this!

Perfect, thanks for the update I rebased using your changes and it solved the issue. I also added a one-line change in a second commit to fix a bug happening with --save_all (see 7dc8962c0e75399acde8479cb2edcb7de185eda5). It's not pretty but it works ;)

I see, thanks! Again, better to just move prepare_single to coolpup.py instead of main.py, and actually remove its second argument (together with all the commented lines), it's not needed anymore. If you'd like to do it, I'll happily merge your PR.

Done ! And it seems to work :+1:

Great, thank you!