[bug] hangs (MacOS)

Example:
from manimlib import *

class SquareToCircle(Scene):
    def construct(self):
        #
        ## Set up
        circle = Circle()
        circle.set_fill(BLUE, opacity=0.5)
        circle.set_stroke(BLUE_E, width=4)
        square = Square()

        ## Cell
        self.play(ShowCreation(square), run_time=3)
        self.play(ReplacementTransform(square, circle))
        self.wait()

start scene on line 17

click "Preview Manim Cell" on line 7

Hangs:

It doesn't matter where you start the scene.
The problem is:
"Preview Manim Cell" just always hangs.. - for the First cell only.
(2nd cell works!!)
What solved it: pressing "Enter" in the terminal.

Hypothesis of what could be the reason:

Cell 1 doesn't output any progress bars to the terminal
but cell 2 does

is execution triggered by progress bars?

@Splines reproducible on linux?

Mmh, ok that's weird, for me it works just fine even for the first scene.
https://github.com/user-attachments/assets/8ada6b3b-5c41-4457-82ba-ae6b7df7852a
You know what: this is now a good time to introduce some logging to the extension (not just debugging console, but a proper file). This way, for future issues, we can ask users to send us the log, otherwise issues like these are really hard to debug as I don't have any MacOS system.

I can confirm with @VladimirFokow the hanging on MacOS. Must fix. Good find!

Update:
looks like the commands DO execute,
BUT just:
the "Previewing Manim" info box doesn't go away until the user presses Enter

Update:
With the new logging system, here is the fresh log file.
Manim Notebook.log
from manimlib import *
import time

class SquareToCircle(Scene):
    def construct(self):
        #
        ## Test
        print('1')
        # time.sleep(1)
        print('2')

start manim on line 6
open the manim terminal
start logging
"run manim cell" -> it runs, but then hangs
wait a bit
click Enter in the terminal -> it stops hanging

Log file 2: Manim Notebook.log
Same code as above.
New steps:

start manim on line 6
start logging
click "preview manim cell" -> it runs, but then hangs
open the manim terminal -> IT STOPS HANGING (just because of opening the terminal)
select code, run it -> it hangs
press Enter -> it stops hanging

Log 3:
Manim Notebook.log
To show that: sleep causes it to stop hanging.
Also: to show an example how it stops hanging.
Code: same as above with uncommented sleep:
from manimlib import *
import time

class SquareToCircle(Scene):
    def construct(self):
        #
        ## Test
        print('1')
        time.sleep(1)
        print('2')

Steps:

start logging
click "preview manim cell" -> 1 sec progress bar, then progress bar ends like it should
click "preview manim cell" -> 1 sec progress bar, then progress bar ends like it should

Log 4:
Manim Notebook.log
To show that:

if I type something in the manim terminal, it doesn't hange then

hm.. considering this looks very weird,
@Splines I certainly don't expect you to solve this without even having a MacOS system.
I would be able to see how your Shell class works in the coming 1-2 months, and debug it from the ground up


Improve the Contribution Guide by describing how install wagtail for projects

A lot of people and even me when I started contributing to wagtail, needs a way so that when changes are done to the wagtail package locally, they are auto reflected with the hot-reload feature of Django. I had gotten of the wrong direction at first using Docker, though it worked Docker is extremely slow for Windows user due to the WSL overhead.

However, I have seen a lot of people in slack ask for the same.
My suggestion is to add it as just another step in "Setting up the Wagtail codebase"
Pertinent section of the Wagtail docs
https://docs.wagtail.org/en/latest/contributing/developing.html
Details

This could just be added as another step in "Setting up the Wagtail codebase" subheading.

I'm not sure I understand what you mean, but isn't that exactly part of the instructions in the docs?

Hi! So, what I gathered from this line was that I needed to install wagtail inside the wagtail repo with a virtualenv activated, not for the project like bakerydemo...
pip install -e path/to/wagtail_repo"[testing, docs]" -U
I think this slight modification is much more readable and understandable than just specifying .(dot)

But the line just above it tells you to git clone and cd wagtail, so that means you're in the Wagtail repo directory at that point, hence it uses .
If we wrote path/to/wagtail_repo, you can also argue that it's more confusing as some people might just copy and paste the instructions, then finding out later that it failed to install because path/to/wagtail_repo is not a real directory.
I think the last paragraph in the screenshot there clarifies the situation, but yeah I agree that we could make this clearer. Maybe we could improve it by adding another code block showing that command, instead of replacing the existing one, e.g.

Any Wagtail sites you start up in this virtualenv will now run against this development instance of Wagtail. We recommend using the Wagtail Bakery demo site as a basis for developing Wagtail. Keep in mind that the setup steps for a Wagtail site may include installing a release version of Wagtail, which will override the development version you've just set up. In this case, you should install the site before running the pip install -e step, or re-run that step after the site is installed:
pip install -e path/to/wagtail"[testing, docs]" -U

Just a small suggestion, Why don't we just create a video and explain every step and add it in this page. Because beginners tend to skip the documentation reading part.

@msaini0r Videos are more work to produce, and harder to update if they become outdated.

@gasman seems true. Just a small request. I am new to wagtail, so please let me know if you come across an interesting new issue. Other than that, I am trying my best to contribute.


Debian

Just to confirm... (https://github.com/uvulpos/gitea-installer#supported-operating-systems)
Debian 11 tested, script works perfectly. Thanks.

Thank you 👍🏻


fix: Incorrect metaUpdates

Description
Fixes # (issue)
Type of change

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

How Has This Been Tested?
Checklist:

[ ] My code follows the style guidelines of this project
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I have made corresponding changes to the documentation
[ ] My changes generate no new warnings
[ ] I have added tests that prove my fix is effective or that my feature works
[ ] New and existing unit tests pass locally with my changes

Test coverage results :test_tube:
:green_circle: Total coverage has increased
// Code coverage diff between base branch:release and head branch: fix/incorrect-metaUpdates

Status
File
% Stmts
% Branch
% Funcs
% Lines

:green_circle:
total
56.47 (0.01)
37.92 (0.02)
36.13 (0.01)
56.69 (0.01)

:green_circle:
app/client/src/reducers/entityReducers/metaReducer.ts
41.18 (7.85)
0 (0)
22.22 (2.22)
41.18 (6.18)

:red_circle:
app/client/src/selectors/commentsSelectors.ts
83.61 (-1.64)
61.76 (-2.95)
73.33 (0)
88.24 (-2.35)

:red_circle:
app/client/src/workers/evaluation.worker.ts
7.89 (-0.22)
0 (0)
33.33 (0)
8.39 (-0.24)

:green_circle:
app/client/src/workers/evaluationUtils.ts
62.84 (0.6)
60.98 (0.78)
67.19 (0)
61.1 (0.73)

:green_circle:
app/client/src/workers/DataTreeEvaluator/DataTreeEvaluator.ts
76.52 (0.21)
58.36 (0)
74.16 (0)
76.23 (0.08)

/ok-to-test sha=1b27552

/ok-to-test sha=fbd04a3

/ok-to-test sha=95ac32a

/ok-to-test sha=b70de1b

Code merged in https://github.com/appsmithorg/appsmith/pull/13084 PR


Feature.401

Implement the QA testing operations of tutorial 401.
Should be manage after PR #11

LGTM

Resolved conflicts with requirements.txt


Get nan in trimodal integration

Hi ~
I met some errors when trying to integrating my trimodal data.
I got nan when calculating KL loss. Have you ever met this problem?
Would this be caused by some VAE intrinsic properties?
It is strange because I successfully integrated other similar datasets and got proper results.
Additionally, could you please share some skills to select a better coefs (such as 'integ' and 'kl').
Thank you.

Hi @JiahaoChow,
I am really sorry about the very late reply, I managed to miss this issue completely. Getting nan in losses is not multigrate-specific issue, but rather comes from training with scvi-tools Trainer. The solution is usually to decrease the learning rate or to increase the KL coefficient. I will update the tutorials soon on how to fine-tune the model (and use integration and KL coefficients) depending on the task and the dataset, and will update you on this.

Thank you!


Pwa 475 error handling for categories

Pull Request Test Coverage Report for Build 965

7 of 7 (100.0%)  changed or added relevant lines in 1 file are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.2%) to 41.39%

Totals

Change from base Build 953:
0.2%

Covered Lines:
1569

Relevant Lines:
3797

💛  - Coveralls


Icons on top bar hidden - Is a resizable window possible?

Depending on the monster, sometimes icons that should be on the top bar become hidden.
Would it be possible to implement a resizable windows? In this example, not only is the creature's name partially hidden, but there are other icons missing, like the Token Preferences.

Unfortunately it is not feasible to make the sheet resizable given the layout restrictions.
The top bar icon problem is something that's supposed to be addressed in the future by a Foundry core update. For the time being, it is possible to improve a bit with Custom CSS.

Using the Compact Window option in MonsterBlocks helps alleviate the problem, and IMO looks waaaaaay better.

Thanks, @figotech! That worked wonderfully!


MacOS M1 10fps and visual glitches since latest update

escribe the bug
117HD causes artifacts/visual glitches and insane fps drop to max 10 fps. Game is unplayable until 117HD is turned off.
To Reproduce
Steps to reproduce the behavior:
117HD on whilst on a MacBook Pro with the M1 Max chip, problem is instantly shown.
Expected behavior
Not show visual glitches and have a normal, stable fps instead of a max of 10 (unlock fps is turned off).
Screenshots
https://share.cleanshot.com/x7xGDTtQ
Environment (please complete the following information):
OS: MacOS 13.3.1(a)
RuneLite version: 2.6.3

Seconding this issue. I am running Runelite on a M1 Pro 16" Mac. Vanilla settings, even reinstalling does not slove this issue. Graphics get all glitchy and framerate dips continuously until the RuneLite client crashes. Leaves graphical glitches on the screen when the plugin is turned off.
OS: MacOS Ventura 13.2.1
RuneLite version: 2.4.2

+1! Game is unplayable with 117HD and M1 Silicone at the moment. Turning the plugin off fixes the issue. When I turn 117hd on, the game instantly shows corrupted textures and then crashes within seconds.

I'll be working to try to resolve this in the next few hours. Unfortunately I don't own a Mac, but I have been able to reproduce this issue just now in a virtual machine. Sorry to have caused this issue. OpenGL on Mac is quite unpredictable!

This bug should be fixed now if you restart RuneLite or click Update in the plugin hub panel. Big thanks to Adam for figuring out how I accidentally broke it!


[SPARK-28807][DOC] Document SHOW DATABASES in SQL Reference

What changes were proposed in this pull request?
Document ALTER DATABSE statement in SQL Reference Guide.
Why are the changes needed?
Currently Spark lacks documentation on the supported SQL constructs causing
confusion among users who sometimes have to look at the code to understand the
usage. This is aimed at addressing this issue.
Does this PR introduce any user-facing change?
Yes.
Before:
There was no documentation for this.
After.

How was this patch tested?
Tested using jykyll build --serve

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/14526/
Test PASSed.

Test build #109469 has started for PR 25526 at commit 7a1ef8d.

Test build #109469 has finished for PR 25526 at commit 7a1ef8d.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/109469/
Test PASSed.

cc @gatorsmile

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/14569/
Test PASSed.

Test build #109514 has started for PR 25526 at commit 89f7f7e.

Test build #109514 has finished for PR 25526 at commit 89f7f7e.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/SparkPullRequestBuilder/109514/
Test PASSed.

Merged build finished. Test PASSed.

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/testing-k8s-prb-make-spark-distribution-unified/14928/
Test PASSed.

Test build #109900 has started for PR 25526 at commit bfc2404.

Test build #109900 has finished for PR 25526 at commit bfc2404.

This patch passes all tests.
This patch merges cleanly.
This patch adds no public classes.

LGTM
Thanks! Merged to master.

Thanks a lot @gatorsmile


error  hiveos_gddr6x_temps

curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to raw.githubusercontent.com:443
error
How to deal with it?

hello,
paste in console copy repons ?
curl -v github.com:443
ME i have this:

curl -v github.com:443

Rebuilt URL to: github.com:443/
Trying <IP_ADDRESS>...
TCP_NODELAY set
Connected to github.com (<IP_ADDRESS>) port 443 (#0)

GET / HTTP/1.1
Host: github.com:443
User-Agent: curl/7.58.0-DEV
Accept: /

Empty reply from server
Connection #0 to host github.com left intact
curl: (52) Empty reply from server

Hello!
Are you installing this from HiveOS ? That's an odd error, you should retry again and if it still doesn't work, do reinstall your HiveOS because something must be very wrong in there :)
Cheers!


Adding the Polish translation.

Thanks for the contribution. I just bumped gem versions to include this.


Setdata event not working

Version

Phaser Version: 3.11.0

Operating system: Ubuntu 18.04

Browser: Chrome

Description
Phaser.GameObjects. GameObject   on function is not working 3.11.0 however it is working properly on Phaser v3.9.0. i put link below.
https://labs.phaser.io/view.html?src=src\components\data\set data event.js&v=3.11.0

Example Test Code

Additional Information

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

The setdata event is only emitted the first time a value is set and subsequent changes emit the changedata event. This behaviour is documented here and was changed in v3.10. The labs example should be updated to reflect this behaviour.


Docs updated for RN 0.18+ (Android)

@oblador It looks like the file MainActivity.java has changed in RN 0.18 and the docs are not valid anymore.

You're right, thanks!


Chained method not supported?

I installed laravel-ide-helper and following some tutorials on Laracast. Very soon I find this:

It refers chained method "->nullable()" as undefined. Then I look through other pages, find that another chained method "->unique()" resulting the same.
Did I miss out some steps or this is the limitation of the ide-helper?

Limitation


express-intl is now working with express 4.

Breaking changes with express 3 though.

Reference to changed API for express 4: http://expressjs.com/en/api.html#req.acceptsLanguages

Archiving this project


 I made it.
I'm sorry.
I'm not expecting anyone to accept this PR.
I just had to.

I'm not sure why the checks have failed, but I'd like to put my hand up to say that I'll take a look and see if I can build this branch and get it to pass on my machine. Of course, I'm busy...

On all honesty, the checks probably fail because it's both an old pr and I did an awful job. It worked, just also happened to make it so barely anything else works.
I'm still loving the idea, just never got deep enough into the codebase to figure out how to fix it and figured it'd be better for someone more experienced to implement it if they so desired.


Re-Add Minting Receipts on dashboard

Situation
I am testing the new super cool dashboard (next.dashboard.grid.tf) and documenting it, when I realize that I can't download minting receipts as it is possible for the current dashboard.grid.tf:

Request
Can we add this button to the new dashboard still in farm section?

Mainnet, 2.3.4.
You can find the Download miniting receipts button on the Your Farm page under node statistics tab.


Don't delete the dist / output-path until the build has complete successfully

I'm not sure if there's a command line option for this already.
This is particularly useful when you're building an angular app in production and, because a build can take few minutes to complete on a small server, your website could be down for that amount of time.
If the build could use a temporary folder and move the files to the dist or output-path only when the build successed, that would be lovely 🙏

You are not really supposed to use the build directory directly.
Your deploy script should copy over the build directory to the desired destination after success.

Ok. I'll write my own build script to do that


REFACTOR/3-5/ft_itob/function extrat

left shifting mask return by get_next_mask

Nice Refactoring. Looks cleaner.


Patch 10

Some updates for 1.0.10 ...
Some Updates for #2744 did not wrap eval in catch statements for php7 and have not taken care of the image rotation update
Fix #2766 editor with ios (this is not the new editor as in 1.1, but a patched version of 1.0.9)
Other fixes as indicated

Something going on with SensioLabsInsight .....

Yep, seems they are having some issue with our builds... let's see if in a few days it comes back to life, otherwise I'll ping them and see.


Catch $fetch errors globally

Environment

Operating System: Linux
Node Version:     v20.12.0
Nuxt Version:     3.11.2
CLI Version:      3.11.1
Nitro Version:    2.9.6
Package Manager<EMAIL_ADDRESS>Builder:          -
User Config:      devtools, extends, modules, gtag
Runtime Modules<EMAIL_ADDRESS>Build Modules:    -

Reproduction
<script setup>

async function testOne() {
  await $fetch('https://non.existing/link');
  // code that should not execute
}

async function testTwo() {
  await $fetch('https://existing.api/but/gives/error');
  // code that should not execute
}

</script>

<template>
  <button @click="testOne(); testTwo();">
    Run
  </button>
</template>

Describe the bug
How is it possible to catch $fetch errors globally? As you can see in my repro, i have api calls which I want to proceed only if the call has succeeded, and I want the $fetch errors from everywhere to be handled in one place. I thought this would work
export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.config.errorHandler = (error, instance, info) => {
    console.log(error);
  }
  nuxtApp.hook('vue:error', (error, instance, info) => {
    console.log(error);
  })
})

But it does not (for $fetch, it works for other things). NuxtErrorBoundary does not work too.
<template>
  <nuxt-error-boundary @error="console.log">
    ...
  </nuxt-error-boundary>
</template>

And if I give an onResponseError to the $fetch, although it gives me the error, but it does not halt execution, like throwing.
Is there any workaround?
Additional context
No response
Logs
No response

You can create a customized fetch instance and do the global error handling in the onResponseError hook. Then you use that custom fetch in your app
https://nuxt.com/docs/guide/recipes/custom-usefetch#custom-fetch

@MuhammadM1998 thank you for replying. The issue with onResponseError is that it does not halt the execution of the code (like throwing does). Also, without the global catching of the errors, the errors will be shown in the console which I like to avoid.

Is there a better solution now?

@JoyfulAndSpeedyMan I am using the onResponseError to handle the errors, but the errors will be shown in the console. This is the closest I could get to what I wanted.

My code didn't work as expected, when the http status code was 403, instead of jumping to the login page in the ssr scenario, the error page would appear directly
plugins/api.ts
export default defineNuxtPlugin((nuxtApp) => {
    const api = $fetch.create({
        onRequest(context) {
          // ........
        },
        async onResponseError({ response }) {
            if (response.status === 403) {
                await nuxtApp.runWithContext(() => {
                    console.log('navigateTo login')
                    navigateTo("/user/login")
                });
                return;
            }
        },

    });
    return {
        provide: {
            api,
        },
    };
});

plugins/error-handler.ts
export default defineNuxtPlugin((nuxtApp) => {
    nuxtApp.hook("app:error", async (err) => {
        console.error("app:error: ", err);
    });
});

Access Error Page

Server Console Log

@JoyfulAndSpeedyMan have you tried to remove async/await on onResponseError ?
export default defineNuxtPlugin((nuxtApp) => {
    const api = $fetch.create({
        onRequest(context) {
          // ........
        },
        onResponseError({ response }) {
            if (response.status === 403) {
                return nuxtApp.runWithContext(() => {
                    console.log('navigateTo login')
                    navigateTo("/user/login")
                });
            }
        },

    });
    return {
        provide: {
            api,
        },
    };
});

I tried to get rid of async/await, but nothing worked. I found that running the server after bundling with pnpm run build did not have this problem. This problem only existed when running with pnpm run dev and did not reoccur every time

navigateTo

I have the same problem, the navigateTo interface was redirected to an error page due to a lack of data, and did not redirect to the specified login page

i triggered manually a network error, it doesn't catch it!, tried with the hooks and  onResponseError but no result

We are using nuxt-svgo module. And thanks to build result below - users see 404.
I can't even make this error silent or handle it. If any svg file in our project will be missing  - user will see 404 page.
defineAsyncComponent(() =>   __vitePreload(     () => dynamicImportPolyfill("./DyRztByb.js", import.meta.url),     true ? void 0 : void 0,     import.meta.url   ).then((r2) => r2["default"] || r2.default || r2) );


TarArchiveReader is not functioning with HTTPReader or GDriveReader

This issue was discovered as part of #40. The TarArchiveReader implementation is likely wrong:

An error is raised when we attempt to use TarArchiveReader immediately after HTTPReader because the HTTP stream does not support the operation seek:

file_url = "http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz"
http_reader_dp = HttpReader(IterableWrapper([file_url]))
tar_dp = http_reader_dp.read_from_tar()
for fname, stream in tar_dp:
    print(f"{fname}: {stream.read()}")

It returns an error that looks something like this:
Traceback (most recent call last):
  File "/Users/ktse/data/test/test_stream.py", line 66, in <module>
    for fname, stream in tar_dp:
  File "/Users/.../data/torchdata/datapipes/iter/util/tararchivereader.py", line 62, in __iter__
    raise e
  File "/Users/.../data/torchdata/datapipes/iter/util/tararchivereader.py", line 48, in __iter__
    tar = tarfile.open(fileobj=cast(Optional[IO[bytes]], data_stream), mode=self.mode)
  File "/Users/.../miniconda3/envs/pytorch/lib/python3.9/tarfile.py", line 1609, in open
    saved_pos = fileobj.tell()
io.UnsupportedOperation: seek

Currently, you can work around by downloading the file in advance (or caching it with OnDiskCacheHolderIterDataPipe). In those cases, TarArchiveReader works as intended.

TarArchiveReader also doesn't work with GDriveReader because of the return type

amazon_review_url = "https://drive.google.com/uc?export=download&id=0Bz8a_Dbh9QhbaW12WVVZS2drcnM"
gdrive_reader_dp = OnlineReader(IterableWrapper([amazon_review_url]))
tar_dp = gdrive_reader_dp.read_from_tar()

This is because validate_pathname_binary_tuple requires BufferedIOBase. Perhaps it should accept HTTP response as well?
https://github.com/pytorch/data/blob/85d8bbe235cd58f270c17367a5577de107b0095f/torchdata/datapipes/utils/common.py#L66-L76
test/test_stream.py:None (test/test_stream.py)
test_stream.py:79: in <module>
    for fname, stream in tar_dp:
../torchdata/datapipes/iter/util/tararchivereader.py:43: in __iter__
    validate_pathname_binary_tuple(data)
../torchdata/datapipes/utils/common.py:74: in validate_pathname_binary_tuple
    raise TypeError(
E   TypeError: pathname binary tuple should have BufferedIOBase based binary type, but got <class 'urllib3.response.HTTPResponse'>

cc @VitalyFedyunin @ejguan

An error is raised when we attempt to use TarArchiveReader immediately after HTTPReader because the HTTP stream does not support the operation seek:

Correct me if I am wrong, tarfile doesn't work with HTTPResponse.
If so, the second problem is not a problem. Even if we change the validate_pathname_... to accept HTTPResponse, tarfile is not able to open it for GDriveReader

An error is raised when we attempt to use TarArchiveReader immediately after HTTPReader because the HTTP stream does not support the operation seek:

Correct me if I am wrong, tarfile doesn't work with HTTPResponse.
If so, the second problem is not a problem. Even if we change the validate_pathname_... to accept HTTPResponse, tarfile is not able to open it for GDriveReader

Based on my observation, tarfile.open seems to handle HTTPResponse fine. Definitely a bit surprising.
The code snippet below runs:
for fname, stream in gdrive_reader_dp: #in tar_dp:
    tar = tarfile.open(fileobj=cast(Optional[IO[bytes]], stream), mode="r:*")
    for tarinfo in tar:
        if not tarinfo.isfile():
            continue
        extracted_fobj = tar.extractfile(tarinfo)
        print(tarinfo.name, extracted_fobj)  # type: ignore[misc]
        if "readme" in tarinfo.name:
            print(extracted_fobj.read())

Returns:
amazon_review_polarity_csv/test.csv <ExFileObject name=''>
amazon_review_polarity_csv/train.csv <ExFileObject name=''>
amazon_review_polarity_csv/readme.txt <ExFileObject name=''>
b'Amazon Review Polaridy Dataset\n\nVersion 3, Updated 09/09/2015\n\nORIGIN\n\nThe Amazon reviews dataset consists of reviews from amazon. The data span a period of 18 years, including ~35 million reviews up to March 2013. Reviews include product and user information, ratings, and a plaintext review. For more information, please refer to the following paper: J. McAuley and J. Leskovec. Hidden factors and hidden topics: understanding rating dimensions with review text. RecSys, 2013.\n\nThe Amazon reviews polarity dataset is constructed by Xiang Zhang<EMAIL_ADDRESS>from the above dataset. It is used as a text classification benchmark in the following paper: Xiang Zhang, Junbo Zhao, Yann LeCun. Character-level Convolutional Networks for Text Classification. Advances in Neural Information Processing Systems 28 (NIPS 2015).\n\n\nDESCRIPTION\n\nThe Amazon reviews polarity dataset is constructed by taking review score 1 and 2 as negative, and 4 and 5 as positive. Samples of score 3 is ignored. In the dataset, class 1 is the negative and class 2 is the positive. Each class has 1,800,000 training samples and 200,000 testing samples.\n\nThe files train.csv and test.csv contain all the training samples as comma-sparated values. There are 3 columns in them, corresponding to class index (1 or 2), review title and review text. The review title and text are escaped using double quotes ("), and any internal double quote is escaped by 2 double quotes (""). New lines are escaped by a backslash followed with an "n" character, that is "\\n".\n'

I omitted printing out test.csv and train.csv but their contents seem valid.
It will be interesting to see how Zip and XZ readers do with HTTPResponse. I suspect it may not work for those.
One better option is probably to have TarArchiveReader explicitly handle HTTPResponse, but for now I think it should be okay to require users to download or cache the files first. What do you think?

So, if it's working for GDriveReader, then the problem probably come from def _get_response_from_http.

See also The Requests package is recommended for a higher-level HTTP client interface.
Based on the Python doc, do you want to try requests rather than urllib to get respond?

So, if it's working for GDriveReader, then the problem probably come from def _get_response_from_http.

See also The Requests package is recommended for a higher-level HTTP client interface.

Based on the Python doc, do you want to try requests rather than urllib to get respond?

Switching to use the module requests still returns an error:
Traceback (most recent call last):
  File "/Users/ktse/data/test/temp.py", line 27, in <module>
    tar = tarfile.open(fileobj=cast(Optional[IO[bytes]], stream), mode="r:*")
  File "/Users/ktse/miniconda3/envs/pytorch/lib/python3.9/tarfile.py", line 1609, in open
    saved_pos = fileobj.tell()
AttributeError: 'Response' object has no attribute 'tell'

However, we can access its content and covert it into BytesIO:
# tar = tarfile.open(fileobj=cast(Optional[IO[bytes]], stream), mode="r:*")  # Original method
tar = tarfile.open(fileobj=cast(Optional[IO[bytes]], io.BytesIO(stream.data)), mode="r:*") # This works

I am leaning towards adding an option to TarArchiveReader (and other readers as needed) to allow them to handle HTTP response. Does that sound about right?
Full runnable code snippet:
file_url = "http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz"
http_reader_dp = HttpReader(IterableWrapper([file_url]))
# tar_dp = http_reader_dp.read_from_tar()

for fname, stream in http_reader_dp: #in tar_dp:
    print()
    print(type(stream))
    # tar = tarfile.open(fileobj=cast(Optional[IO[bytes]], stream), mode="r:*")  # Original way
    tar = tarfile.open(fileobj=cast(Optional[IO[bytes]], io.BytesIO(stream.data)), mode="r:*") # This works
    for tarinfo in tar:
        if not tarinfo.isfile():
            continue
        extracted_fobj = tar.extractfile(tarinfo)
        print(tarinfo.name, extracted_fobj)  # type: ignore[misc]
        if "readme" in tarinfo.name:
            print(extracted_fobj.read())

Looking at https://2.python-requests.org/en/master/user/advanced/#body-content-workflow. We should be able to do it as:
file_url = "http://ai.stanford.edu/~amaas/data/sentiment/aclImdb_v1.tar.gz"
r = requests.open(file_url, stream=True)
r = r.raw  # Get the HTTPResponse
tar = tarfile.open(fileobj=r, mode="r:*")


Remarks on ProjectPlan_u7061118

Some remarks on
https://github.com/ANU-RSES-Education/EMSC-4033-2023/blob/main/ProjectPlans/ProjectPlan_u7061118/ProjectPlanner.md

The project proposes to use pseudospectral methods which have much improved accuracy compared to finite differences but only work for periodic boundary conditions. This should be mentioned in the goals. Also it implies that the first goal the point about boundary conditions is redundant since pseudo spectral method will only apply to periodic boundary conditions.

The py-pde package uses finite differences. So it's relevant mentioned in the background but this project does not reproduced the py-pde functionality.

cc @Ashleyht

Hi Navid, I have modified my project plan and please take a look at my pull request.


Converting the git-cache to an emptyDir

The git-cache pods have been struggling lately with PV/PVC allocation issues.  This PR switches the git-caches over to use emptyDir volumes instead.

/assign @smarterclayton


Failed to upload layer to docker hub

I am trying to upload an image to a private docker hub repo, but get this
5297b7baddb7: Pushing [============>                                      ] 1.342 GB/5.386 GB 43m24s
2015/03/24 00:43:10 Failed to upload layer: Put https://cdn-registry-1.docker.io/v1/images/5297b7baddb7892d985240b35d7cf6cec88da7f7ca5e4a43f28903eb779f3304/layer: EOF

there are reports that the timeout needs to be increased: https://github.com/docker/docker-registry/issues/121 https://github.com/docker/docker-registry/issues/118 but I'm not in charge of the registry so I don't believe I can change the timeouts.

Could you provide additional information, such as

the output of docker version
the output of docker info
the output of uname -a
host distribution and version ( ubuntu 14.04, RHEL, fedora 21 )
Also, could you do a "-D" and send the debug output?

+kind/bug

this worked second time, but since you asked.


Speed Up Jest Tests By ~70% (4 minutes faster!)

Jira
http://vjira2:8080/browse/BDS-1653
Summary
Minor config updates that I noticed could speed up our Jest tests by quite a bit! 🎉

Details

Adds a missing timeout config to avoid hitting the default Jest timeouts.
Updates most Jest tests that use Puppeteer to now reuse the same browser tab (saving resources and increasing load times) and now clear out the inner HTML after each test has finished running (clean up Puppeteer for the next test)
Tweaks the default testing server template to make it easier for tests to clean out the body’s inner HTML
Also updates Jest test suites using Puppeteer to close the Puppeteer browser tab when complete to try and help reduce system resources

Before vs After (Note the long running tests times in red)

How to test

[ ]  Confirm Jest tests passing on Travis
[ ]  Review changes

Good stuff! I love to see the tests getting cleaned up and standardized.
One question:
Was it not clearing out HTML after each test before? I had noticed that within a given test, it would not clear out HTML after each page.evaluate(), but between tests I never had a problem. Just wondering.

Thanks @danielamorse!
You are correct that within each test in a test suite the HTML isn't cleared out after each page.evaluate (which I like TBH -- I think that makes it easier to break out Puppeteer logic into smaller more manageable chunks). You're also correct that previously (before this PR) the HTML on a page was always cleared out after each test in a suite was finished running.
The reason why the page's HTML gets cleared out after each test finishes running was because a brand new browser tab had to get opened and JS reload every single time. This was a huge reason why our Jest tests were taking so long!
With this PR, the original browser tab is now reused across tests in a test suite (ie. only download and execute the JS once per component's suite of tests) and instead manually clear out the same page's HTML after each test finishes.** This bit of cleaning up as we go along / tab re-use is where we get the huge speed improvements!
**A few tests are still using the slower one tab per test setup based on some quirky behavior I observed but most didn't have any issues switching over


Unable to scroll when filepond is disabled

Hello, if the max height is set as described here: https://pqina.nl/filepond/docs/patterns/api/style/#limiting-the-height-of-filepond
When the filepond is disabled, it`s not possible to scroll, I can see the scrollbar but im stuck it doesn't scroll.

Will look into this as soon as I have some time

Fixed in https://github.com/pqina/filepond/releases/tag/4.12.0


VnVPlan Evaluation for Secondary Reviewer

The VnVPlan is ready for evaluation.
VnVPlan.pdf

Hey! See issues #9, #10, #11 and #12


Rename comands

Codecov Report

Merging #11 into master will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master      #11   +/-   ##
=======================================
  Coverage   64.61%   64.61%
=======================================
  Files          31       31
  Lines         308      308
=======================================
  Hits          199      199
  Misses        109      109

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 6f87e8c...89ac8b7. Read the comment docs.


ReferenceSliceIter.ForEach can never return an error

This function https://github.com/src-d/go-git/blob/ee3d4c180ce664a4639ecf36d45a47ee1f8b6ee0/plumbing/storer/reference.go#L65 can never return an error.
Perhaps here: https://github.com/src-d/go-git/blob/ee3d4c180ce664a4639ecf36d45a47ee1f8b6ee0/plumbing/storer/reference.go#L73
return err is intended.
When it is not desirable to return an error in any way, perhaps remove the error return-value.

Oh, I see it is already fixed. Sorry for the inconvenience!


[BUG] Failed to attach uprobe at client side

Describe the bug
Trying to attach uprobe to application functions.   Issue occurred when client trying to instrument application failed to inject or attach probe to certain functions.
Same bpf code able to attach uprobes to appilcation with kernel uprobes.
After adding some debugs ,looks like we are hitting following issue  GUM_INSTRUMENTATION_ERROR_WRONG_SIGNATURE.
To Reproduce
Attaching sample programs user space bpf and kernel bpf code.
Application :    https://github.com/ls1mardyn/ls1-mardyn
you may need to increase file descriptor limit.(system limits ulimit -n  ). below app with "*" , comes around 3500 functions (return probes 2X that atleast)
bpftime code fix  DEFAULT_MAX_FD = 4024 * 6

How to build :
make;g++ -g bpftracer.cpp -o bpftracer -lbpf -lelf
Make sure bpftime bundled libbpf and  system installed libbpf is same (libbpf.so.1.3.0)
How to run :
./bpftracer "absulute path to executable"   "function pattern or name"
tracer_code.zip
functionpattern "*" traces all functions in executable ".text" section.
Server :
LD_PRELOAD=build/runtime/syscall-server/libbpftime-syscall-server.so /home/user/bpftracer
Client :
application https://github.com/ls1mardyn/ls1-mardyn  ( build clang one )
cd ls1-MarDyn/build/src
LD_PRELOAD=/home/user/bpftime/build/runtime/agent/libbpftime-agent.so  ./MarDyn ../../examples/EOX/305K_liq/config.xml --steps 50

I'm sorry that i'm a bit confusing. Could please make the following things clearer?

Which executable are you attaching to? (i.e the one injected by libbpftime-agent.so) How to get this executable?
What's the behavior of the failure and success?

Which executable :   https://github.com/ls1mardyn/ls1-mardyn
Build steps mentioned in Readme
cd ls1-mardyn
mkdir build
cd build
CC=clang CXX=clang++ ccmake ..
make -j $(nproc)
How to run : standalone application
    export OMP_NUM_THREADS=4
    cd ls1-mardy/build/src
    ./MarDyn ../../examples/EOX/305K_liq/config.xml --steps 10

=====================================================
Success :
With mardyn application and  above kernel bpf program mentioned. we are able to attach uprobes.
Please refer above comments for how get bpf program , how to build, and run.
Failure :   Tried same app with bpftime.
Server :
LD_PRELOAD=build/runtime/syscall-server/libbpftime-syscall-server.so /home/user/bpftracer
cd ls1-MarDyn/build/src
LD_PRELOAD=/home/user/bpftime/build/runtime/agent/libbpftime-agent.so ./MarDyn ../../examples/EOX/305K_liq/config.xml --steps 50
Error :   Failed to attach uprobe to some functions ;
error : Failed to execute frida gum_interceptor_attach for function 55b2caf0a3a0
case GUM_INSTRUMENTATION_ERROR_WRONG_SIGNATURE:
result = GUM_ATTACH_WRONG_SIGNATURE;
Please do let me know if you are anymore queries.

@Officeyutong   please let me know if you need more clarity .  I am kind off stuck here ,  we had to delay integration of bpftime into our project.  mean while i will try to instrument above mentioned application with Frida alone.
bpftime working fine with other application but failing for this application. https://github.com/ls1mardyn/ls1-mardyn

@Officeyutong   please let me know if you need more clarity .  I am kind off stuck here ,  we had to delay integration of bpftime into our project.
bpftime working fine with other application but failing for this application. https://github.com/ls1mardyn/ls1-mardyn

Sorry I'm too busy these days, I'll investigate into this issue and give you a reply in two days

Which executable : https://github.com/ls1mardyn/ls1-mardyn Build steps mentioned in Readme cd ls1-mardyn mkdir build cd build CC=clang CXX=clang++ ccmake .. make -j $(nproc)
How to run : standalone application
    export OMP_NUM_THREADS=4
    cd ls1-mardy/build/src
    ./MarDyn ../../examples/EOX/305K_liq/config.xml --steps 10

===================================================== Success : With mardyn application and above kernel bpf program mentioned. we are able to attach uprobes. Please refer above comments for how get bpf program , how to build, and run.
Failure : Tried same app with bpftime.
Server : LD_PRELOAD=build/runtime/syscall-server/libbpftime-syscall-server.so /home/user/bpftracer
cd ls1-MarDyn/build/src LD_PRELOAD=/home/user/bpftime/build/runtime/agent/libbpftime-agent.so ./MarDyn ../../examples/EOX/305K_liq/config.xml --steps 50
Error : Failed to attach uprobe to some functions ; error : Failed to execute frida gum_interceptor_attach for function 55b2caf0a3a0
case GUM_INSTRUMENTATION_ERROR_WRONG_SIGNATURE: result = GUM_ATTACH_WRONG_SIGNATURE;
Please do let me know if you are anymore queries.

Could you please send me a precompiled (statically linked is better) bpftracer for x86-64? It's difficult to get your source compiled

Attaching bpftracer built with following tools
ldd (Ubuntu GLIBC 2.37-0ubuntu2.2) 2.37
gcc version 9.5.0 (Ubuntu 9.5.0-3ubuntu1)
Ubuntu clang version 15.0.7
How to use  for attaching normal kernel uprobes (need root access , check ulimit  limits for  that user , may need to increase base on number of uprobes)
by default attaching to all functions in symtab
sudo ./bpftracer   "path to binary"
bpftracer.zip

Unable to repdocude except limitation of DEFAULT_MAX_FD

For limitation of DEFAULT_MAX_FD, you can change https://github.com/eunomia-bpf/bpftime/blob/87a8901d6eca582812ee84f8ab2ae3d10740adce/runtime/src/handler/handler_manager.hpp#L45 to a larger value and recompile to temporarily resolve it. In a future version, we will support specifying this value at runtime

I didn't encounter any issues related with attach, I have done the following test:

In terminal 1, run  bpftime load ./bpftracer /root/bpftime-312/ls1-mardyn/build/src/MarDyn. bpftracer is the binary you have uploaded
In terminal 2, run  bpftime start ./MarDyn ../../examples/EOX/305K_liq/config.xml --steps 50
After a few seconds, uprobe enter and uprobe return are kept being printed to console infinitely

So now I think there might be some issues on the binary you produced. Can you send me a copy of MarDyn , libbpftime-agent.so, libbpftime-syscall-server.so you compiled? (Debug profile is preferred)

Really appreciate for looking into it.
Couple of questions about , building MarDyn.
How did you build it  : GCC or CLANG ?
Is MPI Feature enabled in MarDyn ? during compilation.
Could you please give steps followed  for building MarDyn.
I will give try and let you know.

I could attach default binary and working fine.  Will check if there are any issues with generated MarDyn binary.
sorry for deviating  from main question :
Does bpftime support  attaching multiple pids (of running processes)
like example
sudo bpftime attach 101771,101772,...
https://github.com/eunomia-bpf/bpftime  (Quick start section)
You can also dynamically attach the eBPF program with a running process:
Does with work with multiple pids, how do we provide

Hi @Officeyutong  . I managed to create small reproducer for the  issue.
Issue happening with AMD compiler(AOCC) you can download from here:  https://www.amd.com/en/developer/aocc.html
Frida seems to inject probes with wrong function address.  AOCC compiler is llvm based.
Same application compiled with GCC and Clang working fine with bpftime.
Reproduced with :
Compile below application or any small program with function  with AOCC comipler (llvm based compiler).
Try to attach function.
Bpf client side error :
2024-08-27 05:00:43][error][1401954] Failed to execute frida gum_interceptor_attach for function 555da3ee37b0
[2024-08-27 05:00:43][error][1401954] Unable to instantiate handlers: Failed to attach uprobe/uretprobe
Bpf Server side  : Success
2024-08-27 05:56:45][info][1422282] Created uprobe/uretprobe perf event handler, module name /home/user/data/expr/probe_limits, offset 7b0
[2024-08-27 05:56:45][info][1422282] Created uprobe/uretprobe perf event handler, module name /home/user/data/expr/probe_limits, offset 7b0
Process maps :
Maps  of app
555da3ee3000-555da3ee4000 r--p 00000000 08:04 28574075                   /home/user/data/expr/probe_limits    (555da3ee37b0  address in bpftime  falls in non-executable region ?? )
555da3ee4000-555da3ee5000 r-xp 00000000 08:04 28574075                   /home/user/data/expr/probe_limits  (  function address supposed to fall in this region ?)
555da3ee5000-555da3ee6000 r--p 00000000 08:04 28574075                   /home/user/data/expr/probe_limits
555da3ee6000-555da3ee7000 rw-p 00000000 08:04 28574075                   /home/user/data/expr/probe_limits
555da3ee7000-555da3ee8000 r--p 00000000 00:00 0
555da3ee8000-555da3eef000 rwxp 00000000 00:00 0
555da5bb3000-555da5bf5000 rw-p 00000000 00:00 0
Failed function address   555da3ee37b0, falling outside execution mapped region of process.
Server side attached using proper file offset
objdump -D -F -C binary
00000000000017b0 <op_0> (File Offset: 0x7b0): we are u
17b0:   c3                      ret
17b1:   66 66 66 66 66 66 2e    data16 data16 data16 data16 data16 cs nopw 0x0(%rax,%rax,1)
17b8:   0f 1f 84 00 00 00 00
17bf:   00
Application
#include <stdio.h>
#include <unistd.h>
void  attribute ((noinline))  op_0()
{
for (int x = 0; x < 10; x++) { int sum = x+ 100; }
return;
}
int main()t
{
printf("test limits pid : %d\n",getpid());
getchar();
return 0;
}

I could attach uprobes for default binary and working fine. I will check if there are any issues with generated MarDyn binary. Thanks for looking into it and quick response.
sorry for deviating from main question :
Does bpftime support attaching multiple pids (of running processes)
like example sudo bpftime attach 101771,101772,...
https://github.com/eunomia-bpf/bpftime (Quick start section) You can also dynamically attach the eBPF program with a running process: Does with work with multiple pids, how do we provide

Just attach them seperately, call bpftime attach 101771 and bpftime attach 101772 and so on. Currently bpftime attach can only attach one pid at a time

Hi @Officeyutong . I managed to create small reproducer for the issue.
Issue happening with AMD compiler(AOCC) you can download from here: https://www.amd.com/en/developer/aocc.html Frida seems to inject probes with wrong function address. AOCC compiler is llvm based.
Same application compiled with GCC and Clang working fine with bpftime.
Reproduced with : Compile below application or any small program with function with AOCC comipler (llvm based compiler). Try to attach function.
Bpf client side error :
2024-08-27 05:00:43][error][1401954] Failed to execute frida gum_interceptor_attach for function 555da3ee37b0 [2024-08-27 05:00:43][error][1401954] Unable to instantiate handlers: Failed to attach uprobe/uretprobe
Bpf Server side : Success
2024-08-27 05:56:45][info][1422282] Created uprobe/uretprobe perf event handler, module name /home/user/data/expr/probe_limits, offset 7b0 [2024-08-27 05:56:45][info][1422282] Created uprobe/uretprobe perf event handler, module name /home/user/data/expr/probe_limits, offset 7b0
Process maps :
Maps of app 555da3ee3000-555da3ee4000 r--p 00000000 08:04 28574075 /home/user/data/expr/probe_limits (555da3ee37b0 address in bpftime falls in non-executable region ?? ) 555da3ee4000-555da3ee5000 r-xp 00000000 08:04 28574075 /home/user/data/expr/probe_limits ( function address supposed to fall in this region ?) 555da3ee5000-555da3ee6000 r--p 00000000 08:04 28574075 /home/user/data/expr/probe_limits 555da3ee6000-555da3ee7000 rw-p 00000000 08:04 28574075 /home/user/data/expr/probe_limits 555da3ee7000-555da3ee8000 r--p 00000000 00:00 0 555da3ee8000-555da3eef000 rwxp 00000000 00:00 0 555da5bb3000-555da5bf5000 rw-p 00000000 00:00 0
Failed function address 555da3ee37b0, falling outside execution mapped region of process.
Server side attached using proper file offset objdump -D -F -C binary
00000000000017b0 <op_0> (File Offset: 0x7b0): we are u 17b0: c3 ret 17b1: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 cs nopw 0x0(%rax,%rax,1) 17b8: 0f 1f 84 00 00 00 00 17bf: 00
Application
#include <stdio.h> #include <unistd.h>
void attribute ((noinline)) op_0() { for (int x = 0; x < 10; x++) { int sum = x+ 100; } return; }
int main()t { printf("test limits pid : %d\n",getpid()); getchar(); return 0; }

Will AOCC work on an Intel CPU? I don't have any AMD cpu machine now

AOCC should work with intel CPU, its same x86 . Except for some special optimization flags.
above application compiled with aocc/clang application.c -o application
Make sure its aocc/clange not system default clang . Please do "which clang" and Give absolute path of AOCC compiler.

Hi @Officeyutong . I managed to create small reproducer for the issue.
Issue happening with AMD compiler(AOCC) you can download from here: https://www.amd.com/en/developer/aocc.html Frida seems to inject probes with wrong function address. AOCC compiler is llvm based.
Same application compiled with GCC and Clang working fine with bpftime.
Reproduced with : Compile below application or any small program with function with AOCC comipler (llvm based compiler). Try to attach function.
Bpf client side error :
2024-08-27 05:00:43][error][1401954] Failed to execute frida gum_interceptor_attach for function 555da3ee37b0 [2024-08-27 05:00:43][error][1401954] Unable to instantiate handlers: Failed to attach uprobe/uretprobe
Bpf Server side : Success
2024-08-27 05:56:45][info][1422282] Created uprobe/uretprobe perf event handler, module name /home/user/data/expr/probe_limits, offset 7b0 [2024-08-27 05:56:45][info][1422282] Created uprobe/uretprobe perf event handler, module name /home/user/data/expr/probe_limits, offset 7b0
Process maps :
Maps of app 555da3ee3000-555da3ee4000 r--p 00000000 08:04 28574075 /home/user/data/expr/probe_limits (555da3ee37b0 address in bpftime falls in non-executable region ?? ) 555da3ee4000-555da3ee5000 r-xp 00000000 08:04 28574075 /home/user/data/expr/probe_limits ( function address supposed to fall in this region ?) 555da3ee5000-555da3ee6000 r--p 00000000 08:04 28574075 /home/user/data/expr/probe_limits 555da3ee6000-555da3ee7000 rw-p 00000000 08:04 28574075 /home/user/data/expr/probe_limits 555da3ee7000-555da3ee8000 r--p 00000000 00:00 0 555da3ee8000-555da3eef000 rwxp 00000000 00:00 0 555da5bb3000-555da5bf5000 rw-p 00000000 00:00 0
Failed function address 555da3ee37b0, falling outside execution mapped region of process.
Server side attached using proper file offset objdump -D -F -C binary
00000000000017b0 <op_0> (File Offset: 0x7b0): we are u 17b0: c3 ret 17b1: 66 66 66 66 66 66 2e data16 data16 data16 data16 data16 cs nopw 0x0(%rax,%rax,1) 17b8: 0f 1f 84 00 00 00 00 17bf: 00
Application
#include <stdio.h> #include <unistd.h>
void attribute ((noinline)) op_0() { for (int x = 0; x < 10; x++) { int sum = x+ 100; } return; }
int main()t { printf("test limits pid : %d\n",getpid()); getchar(); return 0; }

Will AOCC work on an Intel CPU? I don't have any AMD cpu machine now

"yes, AOCC should work with intel CPU, its same x86 . Except for some special optimization flags.
above application compiled with aocc/clang application.c -o application
Make sure its aocc/clange not system default clang . Please do "which clang" and Give absolute path of AOCC compiler."

@Officeyutong
Our current product ,bpf programs run without sudo ( we set bpf_cap to executable before running the bpf program).
How do we achieve same  with bpftime .
Are there any places we have to run bpftime with sudo (must ?? )
from : https://eunomia.dev/bpftime/documents/usage/
Modes of running bpftime

./example/malloc/victim & echo $! # The pid is 101771

attach to it:
$ sudo bpftime attach 101771 # You may need to run make install in root
Inject: "/root/.bpftime/libbpftime-agent.so"
Successfully injected. ID: 1

bpftime load ./example/malloc/malloc
bpftime start ./example/malloc/victim

Run with LD_PRELOAD directly
Why do we need to run 1st method needs sudo , is it necessary and also System call tracing examples are run with Sudo
it must.
Could you please let me know which cases we need to use sudo and which use case not.
We would like to avoid use of Sudo along with bpf programs. (run bpf program as non root).
we would like to use attach without sudo , is it possible.


Remove Draft Flag from Next Releases

Kpt vNext is no longer released as a draft.

@googlebot I fixed it.


[material-ui][Tabs] Improbe TabContext, TabList, and TabPanel documentation

The TabContext, TabList, and TabPanel are "mentioned" on the Tab docs in a single demo. These components could use more explanation.
It's also weird that it's so high up on the docs page but have no further explanation and are not mentioned again, this can be very confusing for users.
Issue comes from docs-feedback
Search keywords:

@samuelsycamore where are we storing docs-improvement issues?


Add support for RTMPS

I've added tests for RTMPS but the problem is how to keep the certificates to use them for testing? I would go for creating them in CI and then passing their paths via environmental variables but I have no idea how I can extend already existing CricleCI jobs to generate certs there and put them in certain directory so it is available for the next job.


Profiler may crash if driverLog is not accessible

Fixes #698

Closing this PR as it became out dated it was not tested


Make setup test for "sys/un.h" cross-compile-friendly.

The previous test used compile_and_run but running the test binary on
the build host is not always possible, for instance when
cross-compiling. Furthermore it's not necessary in this case since a
missing "sys/un.h" header would be caught at compile time and the lack
of library support at link time.
Therefore this patch replaces compile_and_run with compile_and_forget
which builds the test program but doesn't run it. compile_and_run is
removed since it's now unused.

Thank you!


Uninstall didn't kill the process

After uninstalling the app the process of stickynotes after some time heated up my pc and was using 100% of its power, pretty suspicious.

It Is Fixed Now


Update man page bangs

Describe the bug
The die.net man pages haven't been updated in ages and may mislead users.
To Reproduce
Steps to reproduce the behavior:

Search for !man php-fpm
It will open https://www.die.net/search/?q=php-fpm#gsc.tab=0&gsc.q=php-fpm&gsc.page=1
Click on the first result which is https://linux.die.net/man/8/php-fpm
See that it says "This manpage describes php-fpm, version 5.3.3.", which was released 14 years ago

Expected behavior
I expect to see an up to date man page.
I propose to use the archlinux man pages, as they have the most up to date + all man pages one could dream of.
The format is https://man.archlinux.org/search?q={{{s}}}&go=Go. With go=Go it opens the first result directly, when omitted it shows all relevant results.
Additional context
Debian also has a man page website, but I can't even find php-fpm on it.

There does exist the "archman" bang currently which does exactly what you've mentioned (redirecting to Arch Linux's man pages). I can see the benefit of having good defaults though. There will still exists bangs for die.net if this is changed as well ("die", "lpm", "man1").


publish official release to maven central

@rbri i am not able to find  htmlunit-android in sonatype releases repository (maven central)

it seems its just available as a snapshot release for now

motivation: since snapshot releases implementation can change at any time i hope you can understand that i dont want to add a snapshot release as a dependency to my project, because of stability and security reasons.

could you please do an "official release"?
Will the android release (since it's technically the same as the "real" htmlunit) have the same release cycle as htmlunit?

Release is there and also a first snapshot build for 2.59.0-SNAPSHOT.
The snapshot points to the latest HtmlUnit snapshot that already has the fix for the clipboard handling generating an exception on android.

Thanks for testing and all the feedback.


Rank mismatch error when using contrib.seq2seq.AttentionWrapper in a dynamic_rnn with sequence_length

System information
Linux Ubuntu 16.04
TensorFlow installed from pip binary
TensorFlow version 1.2.0 (v1.2.0-rc2-21-g12f033d)
Python 3.6.1 Anaconda 4.4.0
CUDA 8.0 / cuDNN 5.1
TITAN X (Pascal) 11.9GB
Describe the problem
Error: Shapes must be equal rank, but are 0 and 1 for 'rnn/while/Select_4' (op: 'Select') with input shapes: [10], [], []. when using tf.contrib.seq2seq.AttentionWrapper in a dynamic_rnn with seqence_length provided.
Code to reproduce:
import tensorflow as tf
from tensorflow.contrib.rnn import LSTMCell, MultiRNNCell
import numpy as np

encoder_outputs = tf.constant(np.random.rand(10,20,512).astype(np.float32))
decoder_inputs = tf.constant(np.random.rand(10,20,512).astype(np.float32))
lengths = tf.constant(np.random.randint(5,20,(10,),dtype=np.int32))

cell = LSTMCell(512)
attention_mechanism = tf.contrib.seq2seq.LuongAttention(512, encoder_outputs)
attn_cell = tf.contrib.seq2seq.AttentionWrapper(
          cell, attention_mechanism, attention_layer_size=256)

o, s = tf.nn.dynamic_rnn(attn_cell, decoder_inputs, lengths, dtype=tf.float32)
# this works: o, s = tf.nn.dynamic_rnn(attn_cell, decoder_inputs, dtype=tf.float32)
# this works: o, s = tf.nn.dynamic_rnn(cell, decoder_inputs, lengths, dtype=tf.float32)

with tf.Session() as sess:
    tf.global_variables_initializer().run()
    sess.run(o)

Traceback
Traceback (most recent call last):
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/common_shapes.py", line 671, in _call_cpp_shape_fn_impl
    input_tensors_as_shapes, status)
  File "/home/dgaddy/anaconda3/lib/python3.6/contextlib.py", line 89, in __exit__
    next(self.gen)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/errors_impl.py", line 466, in raise_exception_on_not_ok_status
    pywrap_tensorflow.TF_GetCode(status))
tensorflow.python.framework.errors_impl.InvalidArgumentError: Shapes must be equal rank, but are 0 and 1 for 'rnn/while/Select_4' (op: 'Select') with input shapes: [10], [], [].

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "test.py", line 14, in <module>
    o, s = tf.nn.dynamic_rnn(attn_cell, decoder_inputs, lengths, dtype=tf.float32)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py", line 574, in dynamic_rnn
    dtype=dtype)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py", line 737, in _dynamic_rnn_loop
    swap_memory=swap_memory)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2770, in while_loop
    result = context.BuildLoop(cond, body, loop_vars, shape_invariants)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2599, in BuildLoop
    pred, body, original_loop_vars, loop_vars, shape_invariants)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/control_flow_ops.py", line 2549, in _BuildLoop
    body_result = body(*packed_vars_for_body)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py", line 720, in _time_step
    skip_conditionals=True)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py", line 210, in _rnn_step
    final_output_and_state = _copy_some_through(new_output, new_state)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py", line 182, in _copy_some_through
    for state, new_state in zip(flat_state, flat_new_state)]
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py", line 182, in <listcomp>
    for state, new_state in zip(flat_state, flat_new_state)]
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/rnn.py", line 171, in _copy_one_through
    return array_ops.where(copy_cond, output, new_output)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/array_ops.py", line 2328, in where
    return gen_math_ops._select(condition=condition, t=x, e=y, name=name)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/ops/gen_math_ops.py", line 2145, in _select
    name=name)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/op_def_library.py", line 767, in apply_op
    op_def=op_def)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 2508, in create_op
    set_shapes_for_outputs(ret)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1873, in set_shapes_for_outputs
    shapes = shape_func(op)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/ops.py", line 1823, in call_with_requiring
    return call_cpp_shape_fn(op, require_shape_fn=True)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/common_shapes.py", line 610, in call_cpp_shape_fn
    debug_python_shape_fn, require_shape_fn)
  File "/home/dgaddy/anaconda3/lib/python3.6/site-packages/tensorflow/python/framework/common_shapes.py", line 676, in _call_cpp_shape_fn_impl
    raise ValueError(err.message)
ValueError: Shapes must be equal rank, but are 0 and 1 for 'rnn/while/Select_4' (op: 'Select') with input shapes: [10], [], [].

This question is better asked on  StackOverflow since it is not a  bug or feature request. There is also a larger community that reads questions there. If this does turn out to be a bug, please re-open this issue. Thanks!


Feat:adding a new page to display all contributors✨

I want to add a page to showcase all the contributors of this website.
@daccotta can you assign me this issue.

as of now,This part is not available for opensource. Thankyou for sharing your thoughts.


Blade block comment {{-- with  --}} not working

Laravel Version: 5.4.25
PHP Version: PHP 7.1.4 (cli) (built: Apr 11 2017 20:08:12)
Database Driver & Version: does not matter

Description:
blade block comment does not work
Steps To Reproduce:
Code like test.blade.php with:
    {{-- comment 1
        <?php
            echo 'comment 1'
        ?>
    --}}
    {{-- comment 2
        <?php
            echo 'comment 2'
        ?>
    --}}
    {{-- comment 3
        <?php
            echo 'comment 3'
        ?>
    --}}
    {{-- comment 4
        <?php
            echo 'comment 4'
        ?>
    --}}

results into HTML code like comment completely ignored and everything inside executed:
    {{-- comment 1
        comment 1    --}}
    {{-- comment 2
        comment 2    --}}
    {{-- comment 3
        comment 3    --}}
    {{-- comment 4
        comment 4    --}}

Please try using the @php @endphptags instead. These should be ignored by Blade.

This works as expected:
                {{--
                @php

                    echo "Hello world!";

                @endphp
                --}}

echo "Hello world!"; is not printed here.

I have another possible solution for this issue, in case https://github.com/laravel/framework/pull/20065 is merged :)

@php
@endphp
is a working workaround :-)

@php @endphp is not ok with i18n tools like poedit or certain built-in tools (which you cant edit) that scan only php tags for i18n strings. It was bad enough I had to change all my {{}} with __() strings to be inside <?php  ?>. I guess no other options here?


Add endpoint to get fee rate and block height for local txn construction

Current dependencies on/for this PR:

#544  👈
feature/pos-networking-and-syncing

This stack of pull requests is managed by Graphite.


[RESOLVED] Interface eth0(): High error rate (>2 for 5m)

Problem started at 14:24:29 on 2023.04.18
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Operational data: errors in: 2, errors out: 0
Original problem ID: 18928
Event details in Zabbix: http://<IP_ADDRESS>/tr_events.php?triggerid=23483&eventid=18928

Problem has been resolved in 12m 0s at 14:36:29 on 2023.04.18
Problem name: Interface eth0(): High error rate (>2 for 5m)
Host: S100-Primario
Severity: Warning
Original problem ID: 18928


How to manage state of Stateless Widget

Hi, I'm working on a weather forecast app - Source Code, where I use CustomScrollView Widgets as Hourly and Daily forecast, switched by BottomAppBar. The problem is, when I want to change the city (FloatingActionButton triggers new page with TextField), CustomScrollView doesn't update. I have it defined as Stateless Widget, because Scaffold's body property cannot take Stateful.
Do You have any suggestions?

Not sure if this fixes it, but here's how i would solve it:
Create a StatefulWidget that just returns a State:
class MyScrollViewWidget extends StatefulWidget {
  String text;

  MyScrollViewWidget(this.text);

  @override
  State<StatefulWidget> createState() {
    return MyScrollView(text);
  }

And i would change your MyScrollView as follows:
class MyScrollView extends State<StatefulWidget> {
And now every call you had for MyScrollView you replace with your StatefulWidget.
I would recommend watching a really good video on managing states by Dart devs(or any other, this is the one i remember): https://www.youtube.com/watch?v=d_m5csmrf7I

This is a more appropriate question for stack-overflow, you should post it over there.

@keshava19 I have already tried my luck there...

@alexpavelm Thanks, something is happening now - I see that ScrollView redraws, but the values stay the same... What could be the problem with that?

It's probably redrawing the list with default values because you don't actually modify them when you switch city. Follow your values through the code, starting from the button that triggers the city change and see if it changes what you actually want.
I suggest doing state management correctly, as shown in that video I've linked above and then check where the problem is - redrawing everytime might be one of the problems.

I'm really not sure, because _changeCity() method when called (after button press) modifies the values. The ScrollView just ignores it.

You have to keep your data inside the parent widget, because your CustomScrollView rebuilds itself everytime (this is why i recommend you to do the states management properly); or global for an easy fix only to see if it works, but again, not good code practice.

Thank you @alexpavelm !
This is a question better suited for StackOverflow, since there doesn’t seem to be anything wrong with Flutter itself. Closing, as this is not an issue report. @marobr001 see also https://flutter.dev/community for support options, hope you find a way to solve your issue.


Add a getting started guide to documentation

I think this is an OK start.
PR Type

Docs Pull Request

/cc @samccann @acozine

Thanks for the review @webknjaz. Addressed those comments.
I'm using --fixup to make my incremental changes easier to review. Will rebase once we're done.

Thanks @gundalow @samccann! Much appreciated. Comments addressed :+1:

@decentral1se (this is for another PR but) we could set up spell checker in CI. Example: https://github.com/aio-libs/aiohttp/blob/398b5ba/docs/Makefile#L179-L182 + apt install libenchant-dev + pip install sphinxcontrib-spelling + it supports adding terms to the whitelist

This is an improvement over what we have now - thanks @decentral1se.

OK, I've squashed all my commits, should be good to go :+1:
Thanks for reviews folks.


[#28] Fix - Add Imaginary Solution to Quadratic Eqn calculator

In script.js:
Update solutionEq. Modify script to get imaginary solution with i notation when the discriminant is negative for a given set of input for a, b, c.
Closes https://github.com/Srijita-Mandal/fix-your-nums/issues/28 by adding imaginary solution to improve Quadratic Eqn calculator.

Merged!! 💯


Missing images (vfb2-dev)

From @dosumis on February 17, 2018 7:47

Query for images only sparsely populated with actual images.

Copied from original issue: VirtualFlyBrain/geppetto-vfb#135

Pushing ahead with adding available images on in_register_with edge to replace on-load checking.
I'll add {nrrd,wlz,obj,swc,thumbnail} parameters to KB
Note:

I did consider labelling by type e.g. slices (wlz) but this limits us in future as these may change, hence files extensions are more reliable except with thumbnail which could potentially be any html img format.
Scanning from real files to enable us to do some quick data sanity checking.

Then I'll reload pdb-dev.


CSUB-918: Rebased & cleaned-up - Integration tests for burn() and burn_all()

Rebased #1435 to latest dev, dropped changes to Cargo.lock and yarn.lock and squashed relevant commits together.

Codecov Report
All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (111f592) 71.10% compared to head (756c059) 13.68%.

Additional details and impacted files
@@             Coverage Diff             @@
##              dev    #1463       +/-   ##
===========================================
- Coverage   71.10%   13.68%   -57.42%
===========================================
  Files         111       31       -80
  Lines       13009     1001    -12008
  Branches      128      128
===========================================
- Hits         9250      137     -9113
+ Misses       3749      864     -2885
+ Partials       10        0       -10

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.


sigmoid_cross_entropy_with_logits does not have labels arg

Hello,
I'm having some difficulties getting the example code to execute. I believe the issue stems from a tensorflow versioning delta. I first tried to train a model on the celebA data after setting up a cpu tensorflow docker container from: https://hub.docker.com/r/tensorflow/tensorflow/
When I run
python main.py --dataset celebA --input_height=108 --is_train --is_crop True

I get the following traceback:
Traceback (most recent call last):
  File "main.py", line 96, in <module>
    tf.app.run()
  File "/usr/local/lib/python2.7/dist-packages/tensorflow/python/platform/app.py", line 43, in run
    sys.exit(main(sys.argv[:1] + flags_passthrough))
  File "main.py", line 76, in main
    sample_dir=FLAGS.sample_dir)
  File "/root/git_repos/DCGAN-tensorflow/model.py", line 71, in __init__
    self.build_model()
  File "/root/git_repos/DCGAN-tensorflow/model.py", line 115, in build_model
    logits=self.D_logits, labels=tf.ones_like(self.D)))
TypeError: sigmoid_cross_entropy_with_logits() got an unexpected keyword argument 'labels'

After looking, I found sigmoid_cross_entropy_with_logits here: https://github.com/tensorflow/tensorflow/blob/cb17d1b0e2b581b5da1d9597b7929ba764749d38/tensorflow/python/ops/nn_impl.py#L99
which shows that it does take a labels arg. However, the version under v0.12.1 does not take this arg which I believe is the error I'm receiving above.
Furthermore, if I try to install the specific version of tensorflow branch that you linked to:
pip install<EMAIL_ADDRESS>
I get the following traceback:
Collecting<EMAIL_ADDRESS>  Cloning https://github.com/tensorflow/tensorflow.git (to r0.12) to /tmp/pip-oKC0L1-build
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
    IOError: [Errno 2] No such file or directory: '/tmp/pip-oKC0L1-build/setup.py'

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-oKC0L1-build/

Any suggestions on how to get this up and running?
Thanks,
Scott

Yes the argument only exist in new version of TensorFlow.
Your command is not the right way to install TensorFlow. Please refer to the documentation: https://github.com/tensorflow/tensorflow#installation .
(For this new feature you may need the nightly build)

Thanks for the suggestion. The code executed once I installed the nightly build.

Same issue here. How do we install nightly build? I tried to download the wheel file to my local directory, but the installation didn't happen smoothly. Is it possible for you guys to provide more instruction on that?
Thanks,
Shi

You can use any links in https://github.com/tensorflow/tensorflow#installation like:
pip install -U https://ci.tensorflow.org/view/Nightly/job/nightly-matrix-linux-gpu/TF_BUILD_IS_OPT=OPT,TF_BUILD_IS_PIP=PIP,TF_BUILD_PYTHON_VERSION=PYTHON2,label=gpu-linux/lastSuccessfulBuild/artifact/pip_test/whl/tensorflow_gpu-1.0.0rc1-cp27-none-linux_x86_64.whl

Can you gime me the link for the nightly code for windows??

Worked for me
pip install -U  tensorflow

Recently I am working with ANN and  facing issues while performing ANN .
In [6]: classifier.add(Dense(output_dim = 6, init = 'uniform', activation = 'relu', input_dim = 11))
__main__:1: UserWarning: Update your `Dense` call to the Keras 2 API: `Dense(activation="relu", input_dim=11, units=6, kernel_initializer="uniform")`

classifier.add(Dense(output_dim = 6, init = 'uniform', activation = 'relu'))
__main__:1: UserWarning: Update your `Dense` call to the Keras 2 API: `Dense(activation="relu", units=6, kernel_initializer="uniform")`

classifier.add(Dense(output_dim = 1, init = 'uniform', activation = 'sigmoid'))
__main__:1: UserWarning: Update your `Dense` call to the Keras 2 API: `Dense(activation="sigmoid", units=1, kernel_initializer="uniform")`

and Finally , When I am trying to compile the ANN, I am getting following error.
In [9]: classifier.compile(optimizer = 'adam', loss = 'binary_crossentropy', metrics = ['accuracy'])
Traceback (most recent call last):

  File "<ipython-input-9-bdfe6dd46c1c>", line 1, in <module>
    classifier.compile(optimizer = 'adam', loss = 'binary_crossentropy', metrics = ['accuracy'])

  File "/Users/rezwan/anaconda/lib/python3.6/site-packages/keras/models.py", line 784, in compile
    **kwargs)

  File "/Users/rezwan/anaconda/lib/python3.6/site-packages/keras/engine/training.py", line 850, in compile
    sample_weight, mask)

  File "/Users/rezwan/anaconda/lib/python3.6/site-packages/keras/engine/training.py", line 450, in weighted
    score_array = fn(y_true, y_pred)

  File "/Users/rezwan/anaconda/lib/python3.6/site-packages/keras/losses.py", line 57, in binary_crossentropy
    return K.mean(K.binary_crossentropy(y_true, y_pred), axis=-1)

  File "/Users/rezwan/anaconda/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2822, in binary_crossentropy
    logits=output)

TypeError: sigmoid_cross_entropy_with_logits() got an unexpected keyword argument 'labels'

N.B: spyder, mac os
How can I solve this error ?

I think you are not working on the latest version of tensor flow. Update
the version.
On Sep 26, 2017 23:18, "Md. Rezwanul Haque"<EMAIL_ADDRESS>wrote:

Recently I am working with ANN and facing issues while performing ANN .
In [6]: classifier.add(Dense(output_dim = 6, init = 'uniform', activation = 'relu', input_dim = 11))
main:1: UserWarning: Update your Dense call to the Keras 2 API: Dense(activation="relu", input_dim=11, units=6, kernel_initializer="uniform")

classifier.add(Dense(output_dim = 6, init = 'uniform', activation = 'relu'))
main:1: UserWarning: Update your Dense call to the Keras 2 API: Dense(activation="relu", units=6, kernel_initializer="uniform")
classifier.add(Dense(output_dim = 1, init = 'uniform', activation = 'sigmoid'))
main:1: UserWarning: Update your Dense call to the Keras 2 API: Dense(activation="sigmoid", units=1, kernel_initializer="uniform")
and Finally , When I am trying to compile the ANN, I am getting following
error.
In [9]: classifier.compile(optimizer = 'adam', loss = 'binary_crossentropy', metrics = ['accuracy'])
Traceback (most recent call last):
File "", line 1, in
classifier.compile(optimizer = 'adam', loss = 'binary_crossentropy', metrics = ['accuracy'])
File "/Users/rezwan/anaconda/lib/python3.6/site-packages/keras/models.py", line 784, in compile
**kwargs)
File "/Users/rezwan/anaconda/lib/python3.6/site-packages/keras/engine/training.py", line 850, in compile
sample_weight, mask)
File "/Users/rezwan/anaconda/lib/python3.6/site-packages/keras/engine/training.py", line 450, in weighted
score_array = fn(y_true, y_pred)
File "/Users/rezwan/anaconda/lib/python3.6/site-packages/keras/losses.py", line 57, in binary_crossentropy
return K.mean(K.binary_crossentropy(y_true, y_pred), axis=-1)
File "/Users/rezwan/anaconda/lib/python3.6/site-packages/keras/backend/tensorflow_backend.py", line 2822, in binary_crossentropy
logits=output)
TypeError: sigmoid_cross_entropy_with_logits() got an unexpected keyword argument 'labels'
N.B: spyder, mac os
How can I solve this error ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/carpedm20/DCGAN-tensorflow/issues/84#issuecomment-332397247,
or mute the thread
https://github.com/notifications/unsubscribe-auth/Ab4Zxy6excyaTtoCFWghCl_Ndrp_E5Leks5smb5ugaJpZM4LlCa3
.

@rezwanulhaquerezwan I am getting the exact same error, did you managed to fix it? How to fix it?

pip install -U tensorflow  fixed the issue for me

Hi,
I am compile my model:
classifier.compile(optimizer = 'adam', loss = 'binary_crossentropy', metrics = ['accuracy']),
And got the same error:
TypeError: sigmoid_cross_entropy_with_logits() got an unexpected keyword argument 'labels'
Tried to update my tensorflow to 1.4.0. Tried sushilshah's method. Neither works.
Can anyone help?


jira-feature-collector: Allow for a custom timeout for large datasets

When the pageSize default is exceeded, the resulting payload can take longer than the default socket timeout of 20000ms.  Adjusting this default would help with the larger datasets coming back from jira.
The result of the default is a timeout exception:
No result was available from Jira unexpectedly - defaulting to blank response. The reason for this fault is the following:java.net.SocketTimeoutException

@xeon22 , Actually, this would obviously be preferable. However, the collector is now using the JRJC.  To my knowledge, the newest version of the JRJC does not have a timeout setting override.  If you know of an override option for this, outside of overriding the entire class, please let me know, and I will gladly update.

@tabladrum , As mentioned in the above comment, socket timeout overrides are not an option for the Jira collector's JRJC.  However, using the default pageSize settings, implemented in a previous merge, will resolve this issue.  I recommend closing this issue, pending any further questions from @xeon22 .


ECS drain hook can't change instance state to draining

The draining function's IAM policy does not provide enough permission to change the ECS instance state.

What is the current behavior?
The ecs:UpdateContainerInstancesState permission is provided for the cluster ARN but the function needs to set the state on the instance which has a different ARN.

An error occurred (AccessDeniedException) when calling the UpdateContainerInstancesState operation: User: arn:aws:sts::assumed-role/[role]/[function] is not authorized to perform: ecs:UpdateContainerInstancesState on resource: arn:aws:ecs:ap-southeast-2::container-instance/[instance]

What is the expected behavior (or behavior of feature suggested)?
The function should have access to the cluster instance to set the state.

What is the motivation / use case for changing the behavior or adding this feature?
The draining function can't set the instance to draining which defeats its sole purpose.

Please tell us about your environment:

CDK CLI Version: 0.36.1
Module Version: 0.36.1
OS: Linux
Language: TypeScript

Thanks for reaching out @ScOut3R, we're looking into the issue and will get back to you with more information.

UpdateContainerInstancesState and ListTasks need to be restricted to the containerInstance resource.
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/ecs-supported-iam-actions-resources.html

Thank you for pointing out the documentation! Looks like the ARN format defined in the documentation refers to the long ARN @pkandasamy91. The legacy format does not have the cluster name.

@ScOut3R the fix has been is pending: PR:#3196

@pkandasamy91 beat me to it :D

@ScOut3R thanks for the feedback! Instead of using the resource arn (which would vary depending on if you opted into using long arns or not), we used the cluster as the condition key for restricting the scope of the permissions on ListTasks and UpdateContainerInstancesState actions.
The fix has been merged in!


feat(chisel): display return value on function call

Closes #5481
Solution
Check if the current action is a function call. If so, display the result of the call

thanks for the review @mattsse
should be a bit cleaner now

hey @teddav pushed a few commits to just tidy up a bit, hope you don't mind!
let us know when this is working and ping us if you need help 🙏

I don't see how the match makes it clearer, but if you prefer, I don't mind. I think the let..else was more concise.
If it's good for you, I guess it can be merged then


Basic repo setup

This repo homes example code that is too large to fit in a doctest

[x] README.md w/ description and links to examples
[x] Workspace Cargo.toml w/ git dependency
[x] CI to run against

Future

[ ] dep on published versions of alloy
[ ] pre-release process for alloy including updating examples

Added a dedicated ticket for the CI workflow to align on requirements

PR for the CI: https://github.com/alloy-rs/examples/pull/22


Support menu item visible length in autocomplete combobox

Currently in Combobox we have
	/**
	 * Determines the height of the menu based on SLDS CSS classes. This only applies to the readonly variant. This is a `number`.
	 */
	readOnlyMenuItemVisibleLength: PropTypes.oneOf([5, 7, 10]),

We should deprecated this property and make it menuItemVisibleLength and allow it to apply to autocomplete Comboboxes also.

@PaulaIoana This is probably the better path forward than the solution I mentioned in the meeting.


fix: electron builder fails for clients that want to use webpack to b…

…uild headless bundles
Fixes #7557

Description of what you did:

My PR is a:

[ ] 💥 Breaking change
[x] 🐛 Bug fix
[ ] 💅 Enhancement
[ ] 🚀 New feature

Please confirm that your PR fulfills these requirements

[x] Multiple commits are squashed into one commit.
[x] The commit message follows Conventional Commits, which allows us to autogenerate release notes; e.g. fix(plugins/plugin-k8s): fixed annoying bugs
[x] All npm dependencies are pinned.

/lgtm

/lgtm


⚠ Bofrost.de has degraded performance

In 8dd6e16, Bofrost.de (https://www.bofrost.de) experienced degraded performance:

HTTP code: 200
Response time: 1454 ms

Resolved: Bofrost.de performance has improved in 6113b06 after 6 minutes.


Unable to install PowerToys

ℹ Computer information

PowerToys version:
PowerToy Utility:
Running PowerToys as Admin:
Windows build number: [run "winver"]

📝 Provide detailed reproduction steps (if any)
Always the same error message:
"Power Toys (Preview). Setup Wizard ended prematurely because of an error. Your System has not been modified. Install this program at a later time, run Setup Wizard again. Click the Finish button to exit the Setup Wizard."
Win 10 Pro
Ver.: 20H2
Installiert am 04.10.2020
Build: 19042.685
Leistung WinFeature Expeience Pack 120.2212.5510
Gerät: Microsoft Surface mit Core i7,
16 GB
64-Bit-Betriebssystem, x64 basierter Prozessor.

Tried several times to install PowerToys.
Always the same error message:
"Power Toys (Preview). Setup Wizard ended prematurely because of an error. Your System has not been modified. Install this program at a later time, run Setup Wizard again. Click the Finish button to exit the Setup Wizard."
Win 10 Pro
Ver.: 20H2
Installiert am 04.10.2020
Build: 19042.685
Leistung WinFeature Expeience Pack 120.2212.5510
Gerät: Microsoft Surface mit Core i7,
16 GB
64-Bit-Betriebssystem, x64 basierter Prozessor.
What can I do?
Thanks for your comments

@hgm99 I'm assuming you are trying to install the latest version of PowerToys (0.27.1)?

yes

@HGM99 Can you give a screenshot?

Hi @HGM99
Can you try to install PowerToys with the following command in order to get an error log?
PowerToysSetup-0.27.1-x64.exe --log_level error
You should find an error in the file powertoys-bootstrapper-msi-0.27.1.log.

The error message ist the same.
This is the error file log>:
=== Logging started: 27.12.2020  12:45:11 ===
That's all....
powertoys-bootstrapper-msi-0.27.1.log

Mmmm.. Can you try to run with debug? Is the error changed?
PowerToysSetup-0.27.1-x64.exe --log_level debug

Hi @davidegiacometti
System Answer:

"Diese App kann auf dem Gerät nicht ausgeführt werden"
"Access denied"

Is the command prompt running as admin?

yes, I am tha admin

@enricogior have you looked at this?

@enricogior have you looked at this?

@crutkas
this seems a problem with the Windows install service not with the PowerToys installer.

@crutkas
this seems a problem with the Windows install service not with the PowerToys installer.

@HGM99
are you still having problems installing PowerToys?
In case try the Microsoft troubleshooter https://download.microsoft.com/download/7/E/9/7E9188C0-2511-4B01-8B4E-0A641EC2F600/MicrosoftProgram_Install_and_Uninstall.meta.diagcab
And then try installing the latest version
https://github.com/microsoft/PowerToys/releases/download/v0.31.2/PowerToysSetup-0.31.2-x64.exe

...thie worked.
PowerToys are installed.
Thanks for your support!
Georg

installing problem anyone help please

Hi @sajjad4499
Are you using a device with an ARM processor?
Can you try the x64 version (https://github.com/microsoft/PowerToys/releases/download/v0.62.0/PowerToysSetup-0.62.0-x64.exe) or install PowerToys from the store?

Hi @sajjad4499 Are you using a device with an ARM processor? Can you try the x64 version (https://github.com/microsoft/PowerToys/releases/download/v0.62.0/PowerToysSetup-0.62.0-x64.exe) or install PowerToys from the store?

think you very much for help that works thinks a lot


Allow Windows to use case insensitive path completion

closes #382

See #389.
Just to avoid code duplication.
And to make it works on windows and macos.

Agreed. Much better.


Automatic like posting

Would be amazing to have the option to automatically send a micropub like post when you like something on facebook / twitter / youtube etc. If it is possible with chrome extensions.

I've had the same thought. It mostly be a matter of listening for clicks on the corresponding elements of the page.
I would probably make it a user setting, so users aren't stuck with it doing something unprompted they don't like.


Adding

According to Kengo Hamasaki, no-ssr is required to compile the HTML dynamically. This would fix #1

Thank you very much, @jsparedes :)


Clone the code

Hello @fogleman, I'm Jason Zheng, one of the owners of Minecraft-in-python organization.
I have cloned this repository and added a lot of things.
The above all were ok, but I chose the GPLv3 as license, not MIT for the game.
This may need your permission.

But all was too late, We have created about 300 commits and added many things that it didn't have.

lol


Mobile Support

This is an epic, we need to improve the mobile experience of the site either by creating a mobile optimized version or auto scaling of our desktop vesion.

Currently going with a quick solution of fixing our viewport and forcing mobiles to display "Desktop Mode"


Clarify educational license offer

Clarified educational license: for instructors of accredited institutions, providing 5 months of FFC Starter.
Description
Explained how the educational license works. It's for instructors of accredited institutions and provides 5 months of FFC Starter.
Related Issue(s)
#2521
Checklist

[x] I have read the contribution guidelines
[x] I have considered the performance impact of these changes
[] Suitable unit/system level tests have been added and they pass
[x] Documentation has been updated

@Yndira-E Second try :)


Swipedeck Nougat

Hello,
I got a problem with the library when I use it for Nougat (API 25). The swipedeck won't appear, there aren't any exceptions or errors. The data that must be shown on the adapter are loaded and they do exist. The SwipeDeck do work on the previous versions of Android though.

Hello, I've got a similar bug.

I just posted something about this too

Thanks @mikechoch !

Same bug


syntax error when running pipreqs

Here's the error

Traceback (most recent call last):
  File "/usr/local/bin/pipreqs", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/pipreqs/pipreqs.py", line 281, in main
    init(args)
  File "/usr/local/lib/python2.7/dist-packages/pipreqs/pipreqs.py", line 235, in init
    extra_ignore_dirs=extra_ignore_dirs)
  File "/usr/local/lib/python2.7/dist-packages/pipreqs/pipreqs.py", line 86, in get_all_imports
    raise exc
  File "<unknown>", line 22
    async def concat_async(async_gen):
            ^
SyntaxError: invalid syntax

You're trying to parse a python3 project with python2 version of library. The AST module used in the pipreqs expects the code to be of the same python version as pipreqs was installed with.

So , should I add the python 2.7 shebang on all of my files ?


[WIP] Add Stop() method to shut down cluster.

This enables to terminate all pending health checks. Apart from making our tests shut down cleanly, it will also give users an opportunity to stop otherwise potentially leaking health-checking goroutines.

Something is still fishy:
=== RUN   TestUnsubscribe
--- PASS: TestUnsubscribe (0.00s)
=== RUN   TestEventStreamEventsReceived
2017/08/28 19:42:43 httptest.Server blocked in Close after 5 seconds, waiting for connections:
  *net.TCPConn 0xc820032088 <IP_ADDRESS>:41900 in state active
SIGQUIT: quit
PC=0x463e41 m=0
goroutine 0 [idle]:
runtime.futex(0xd19788, 0x0, 0x0, 0x0, 0x0, 0xd18d30, 0x0, 0x0, 0x410bca, 0xd19788, ...)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/sys_linux_amd64.s:302 +0x21
runtime.futexsleep(0xd19788, 0x0, 0xffffffffffffffff)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/os1_linux.go:40 +0x53
runtime.notesleep(0xd19788)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/lock_futex.go:145 +0xca
runtime.stopm()
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/proc.go:1535 +0x10b
runtime.findrunnable(0xc820027500, 0x0)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/proc.go:1973 +0x808
runtime.schedule()
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/proc.go:2072 +0x2a6
runtime.goexit0(0xc820001800)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/proc.go:2207 +0x1bf
runtime.mcall(0x4577c0)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/asm_amd64.s:233 +0x5b
goroutine 1 [chan receive, 9 minutes]:
testing.RunTests(0xb5fa28, 0xd16a20, 0x76, 0x76, 0xd14c01)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/testing/testing.go:583 +0xb39
testing.(*M).Run(0xc820040f10, 0xc8200137f0)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/testing/testing.go:515 +0x11e
main.main()
	github.com/gambol99/go-marathon/_test/_testmain.go:288 +0x211
goroutine 17 [syscall, 9 minutes, locked to thread]:
runtime.goexit()
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/asm_amd64.s:1998 +0x1
goroutine 385 [select]:
github.com/gambol99/go-marathon.(*cluster).healthCheckNode(0xc820404000, 0xc8203feca0)
	/home/travis/gopath/src/github.com/gambol99/go-marathon/cluster.go:166 +0x33f
github.com/gambol99/go-marathon.(*cluster).markDown.func1(0xc820404000, 0xc8200330b0)
	/home/travis/gopath/src/github.com/gambol99/go-marathon/cluster.go:152 +0x4a
created by github.com/gambol99/go-marathon.(*cluster).markDown
	/home/travis/gopath/src/github.com/gambol99/go-marathon/cluster.go:154 +0x278
goroutine 548 [chan send, 9 minutes]:
github.com/donovanhide/eventsource.(*Server).Handler.func1(0x2b492f53be58, 0xc8202476c0, 0xc8202f87e0)
	/home/travis/gopath/src/github.com/donovanhide/eventsource/server.go:87 +0x44f
github.com/gambol99/go-marathon.authMiddleware.func1(0x2b492f53be58, 0xc8202476c0, 0xc8202f87e0)
	/home/travis/gopath/src/github.com/gambol99/go-marathon/testing_utils_test.go:254 +0x251
net/http.HandlerFunc.ServeHTTP(0xc820409260, 0x2b492f53be58, 0xc8202476c0, 0xc8202f87e0)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/net/http/server.go:1618 +0x48
net/http.(*ServeMux).ServeHTTP(0xc820409230, 0x2b492f53be58, 0xc8202476c0, 0xc8202f87e0)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/net/http/server.go:1910 +0x213
net/http.serverHandler.ServeHTTP(0xc82030c680, 0x2b492f53be58, 0xc8202476c0, 0xc8202f87e0)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/net/http/server.go:2081 +0x207
net/http.(*conn).serve(0xc82030c980)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/net/http/server.go:1472 +0x1566
created by net/http.(*Server).Serve
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/net/http/server.go:2137 +0x4d2
goroutine 384 [select]:
github.com/gambol99/go-marathon.(*cluster).healthCheckNode(0xc820404000, 0xc8203fec20)
	/home/travis/gopath/src/github.com/gambol99/go-marathon/cluster.go:166 +0x33f
github.com/gambol99/go-marathon.(*cluster).markDown.func1(0xc820404000, 0xc8200330a8)
	/home/travis/gopath/src/github.com/gambol99/go-marathon/cluster.go:152 +0x4a
created by github.com/gambol99/go-marathon.(*cluster).markDown
	/home/travis/gopath/src/github.com/gambol99/go-marathon/cluster.go:154 +0x278
goroutine 527 [semacquire, 9 minutes]:
sync.runtime_Semacquire(0xc820405d1c)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/runtime/sema.go:47 +0x26
sync.(*WaitGroup).Wait(0xc820405d10)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/sync/waitgroup.go:127 +0x118
net/http/httptest.(*Server).Close(0xc820405ce0)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/net/http/httptest/server.go:189 +0x357
github.com/gambol99/go-marathon.(*fakeServer).Close(0xc820405e10)
	/home/travis/gopath/src/github.com/gambol99/go-marathon/testing_utils_test.go:318 +0x6b
github.com/gambol99/go-marathon.(*endpoint).CloseServer(0xc820405e00)
	/home/travis/gopath/src/github.com/gambol99/go-marathon/testing_utils_test.go:327 +0x3b
github.com/gambol99/go-marathon.(*endpoint).Close(0xc820405e00)
	/home/travis/gopath/src/github.com/gambol99/go-marathon/testing_utils_test.go:323 +0x6c
github.com/gambol99/go-marathon.TestEventStreamEventsReceived(0xc8204105a0)
	/home/travis/gopath/src/github.com/gambol99/go-marathon/subscription_test.go:359 +0x11bb
testing.tRunner(0xc8204105a0, 0xd172f0)
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/testing/testing.go:473 +0xdd
created by testing.RunTests
	/home/travis/.gimme/versions/go1.6.linux.amd64/src/testing/testing.go:582 +0xae3
goroutine 546 [chan receive]:
github.com/gambol99/go-marathon.(*marathonClient).registerSSESubscription.func1(0xc8204482d0)
	/home/travis/gopath/src/github.com/gambol99/go-marathon/subscription.go:180 +0x1a1
created by github.com/gambol99/go-marathon.(*marathonClient).registerSSESubscription
	/home/travis/gopath/src/github.com/gambol99/go-marathon/subscription.go:187 +0x73
rax    0xca
rbx    0x0
rcx    0x463e43
rdx    0x0
rdi    0xd19788
rsi    0x0
rbp    0x1
rsp    0x7ffe0a7ff850
r8     0x0
r9     0x0
r10    0x0
r11    0x286
r12    0xc82002cf58
r13    0xd19680
r14    0xc820001800
r15    0xd3cd00
rip    0x463e41
rflags 0x286
cs     0x33
fs     0x0
gs     0x0
*** Test killed with quit: ran too long (10m0s).
FAIL	github.com/gambol99/go-marathon	600.030s
make: *** [test] Error 1

Seems like we're yet missing to terminate SSE subscriptions.

Has there been any further work towards supporting cluster (or client) shutdowns? Asking because I'm about ready to start doing this myself since we're running into goroutine leaks in health checks.
We currently schedule Marathon on arbitrary hosts, so it's possible that a member of the cluster will go away and reappear with a new host and port, which currently requires a new client to be allocated. So, unless I can reconfigure a client's cluster (doesn't seem like the right approach), I'd have to be able to stop the client to avoid leaking health check and other goroutines.

@nilium I stopped using Marathon and subsequently go-marathon a while ago. You're more than welcome to continue the effort. I can try my best to review any PR(s) you may submit.
Thank you!

@timoreimann Thanks! I've got some changes that I'm testing out in our systems, so if all goes well, I'll have a pull request once I've had some time to make sure that it's working the way I expect. Just testing it on our own work to avoid too much churn in the PR. No ETA on that right now, but the WIP branch is over at https://github.com/Kochava/go-marathon/tree/cluster-stop for anyone else that wants to poke at it. (May be force pushed over, so please don't pin anything to that fork or branch even if it works for someone.)


Feature/RA-1078 more vacancy details

I have added the framework and standards description in this request. There are more fields to add, however merge this only if we are to demo this today.

Just a note, when returning the Provider name, similarly to how we are using Frameworks and Standards API here, we can use the Providers API () for Provider name passing in the UKPRN. This would ensure we are getting the correct and up to date Provider name? Something for V2.

The api url setting in config is fine in my opinion.

@dev4valtech unit tests are failing for me on this branch - can you take a look?


Training Docs Minor Fix

Minor change from --output to --outdir for cluster.py call.

Thanks for fixing this @shenoynikhil !


Update README.md / Removed discontinued threat resource Autoshun

Removed the autoshun entry;
As of November 30th, 2020, both AutoShun and Malware Domains feeds will be shut off and subscribers will no longer receive intel from those sources.

Thank you, @Azeemering. It took a while 😅