uploading a file to a non-existing bucket yields an unhelpful error message

If I try to upload a file to a non-existent bucket, e.g.
var bucketName = Guid.NewGuid().ToString();
StorageClient.Create().UploadObject(bucketName, "foo.txt", "", Stream.Null);
I get an ArgumentNullException instead of a NoSuchBucketException, which makes it extremely difficult to track down (about 10 minutes in my case).

Is this ArgumentNullException saying that baseUri is null? If so, that's a known bug which I've fixed but we haven't built a new version of the support library yet. (It's planned for this coming week.) And yes, if it's that bug, it's supremely annoying, and you did well to "only" waste 10 minutes on it. Apologies for it still being a problem right now - hopefully not for much longer.
If it was something else, I'll look into it.

Nope. That’s it.
On May 7, 2016, at 9:01 AM, Jon Skeet <notifications<EMAIL_ADDRESS>wrote:
Is this ArgumentNullException saying that baseUri is null? If so, that's a known bug which I've fixed but we haven't built a new version of the support library yet. (It's planned for this coming week.) And yes, if it's that bug, it's supremely annoying, and you did well to "only" waste 10 minutes on it. Apologies for it still being a problem right now - hopefully not for much longer.
If it was something else, I'll look into it.
—
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHubhttps://github.com/GoogleCloudPlatform/gcloud-dotnet/issues/143#issuecomment-217647278

Cool. Will leave this open for the moment, so I can see what error message we get when it is fixed - it may still be a bit obscure.

(Should now be able to test this easily. Will do so...)

New exception:
Unhandled Exception: Google.GoogleApiException: Google.Apis.Requests.RequestError
Not Found [404]
Errors [
        Message[Not Found] Location[ - ] Reason[notFound] Domain[global]
]

So it's now obvious that something's not found. Is that good enough? I suspect that going any further may involve guessing, which risks getting it wrong.
Assigning to Chris to comment or close.

Ping? (Trying to reduce the number of open issues at the moment...)

Ping for @csells to confirm he's happy enough with this.

Would it be possible to have the name and type of the thing not found in the error message, i.e. "bucket foo not found"?

Well, it would be a matter of catching each exception, trying to detect exactly what's meant, adding information (somewhere) and rethrowing. Then do that for every condition we're interested in, for every exception. We might find it would be better to ask the API team to put more information in the message... that way everyone would benefit, with no per-language work. (There may be a reason it's impossible, of course.)

@jskeet That's the right answer. It's an extremely common request that just hasn't gotten traction.

Closing within this repo as it shouldn't be fixed by code here, and it sounds like the Storage team is already tracking the request separately.

Hi jskeet, I believe that would be great if you could reopen this ticket as we still experience this behavior. Lost few hours trying to understand the issue... till hit this ticket...
Anyway, thanks guys for the light...!

@marioeu: I'd rather only have open issues within this repository for things that can be fixed in this repository. The change we're hoping for is server-side, which wouldn't be a change in this repository.


Password reset should redirect me

Just reset my password and was expecting to get redirected to my account page. It just stayed at

It would be nice not to have to manually go type in opencollective.com again.

Hey Andrew, good to have you here. Thanks for taking the time to write this issue.
I agree, we should redirect the user to the homepage of the app.


Change coroutinescope for vpnservice

Task/Issue URL: https://app.asana.com/0/488551667048375/1203720482986850/f
Description
PR includes changing the coroutinescope used by VpnService
Steps to test this PR
Smoke test App TP

Current dependencies on/for this PR:

develop

PR #2718   👈

This comment was auto-generated by Graphite.

This https://github.com/duckduckgo/android-netp/pull/24 was actually a better and more holistic fix to the issue.


fix(#695): when hoverctl is initialized the custom parameters provided on command line are set

setting custom admin-port, proxy-port & host to be able to execute:
hoverctl status --admin-port 12345 --host <IP_ADDRESS>

I'm closing this PR as the ports and host are not global flags https://github.com/SpectoLabs/hoverfly/issues/695#issuecomment-364386765


Mobile platform support

Does memguard work on mobile platform such as iOS and Android?
Tested compiled using gomobile and attempt to use memguard result in crash. Did I missed out something?
Thanks

Can't tell you much without a crash message.
My guess would be it doesn't have permissions to use mlock.


Very low copy speed

Problem
I need to copy files from USB to device storage, I do it like so:
@Throws(IOException::class)
fun UsbFile.copyTo(outFile: File) {
    var inStream: InputStream? = null
    try {
        inStream = BufferedInputStream(UsbFileInputStream(this))
        val outStream: OutputStream = FileOutputStream(outFile)
        outStream.use {
            inStream.copyTo(it)
            it.close()
        }
    } catch (e: Exception) {
        e.printStackTrace()
    } finally {
        inStream?.close()
    }
}

this kotlin copyTo() method uses default buffer soze:
public const val DEFAULT_BUFFER_SIZE: Int = 8 * 1024 (8KB)
This operation takes a lot, especially for big video files. If we increase buffer size like DEFAULT_BUFFER_SIZE * 8  (64KB) then speed will be increased too but this doesn't guarantee that file will be copied successfully. This will work only if Allocation unit size is set >= with this buffer size. There is no way to determine this value from the lib API. Actually we have chunkSize defined in me.jahnen.libaums.core.fs.FileSystem but it always retutns 512
This is where we can change USB  Allocation unit size

Expected behavior
Maybe there is a better/faster way to copy files from USB to internal memory.
Maybe there is a way to determine the right value for USB  Allocation unit size  so we can use it in order to copy faster.
** @magnusja your feedback is appreciated

Not sure if I understand. You say there should be a faster way to copy but at the same suggest that using larger buffer sizes increases the speed. If the file is corrupt with larger buffer sizes that is a bug in the file system library (maybe?).
The allocation unit size should be the cluster size. So this is also probably a bug if you expect something else with 64 KB.
/**
     * Returns the amount in bytes in one cluster.
     *
     * @return Amount of bytes.
     */
    val bytesPerCluster: Int
        get() = sectorsPerCluster * bytesPerSector

see also https://github.com/magnusja/libaums/issues/406


Support Node 16 again by downgrading some deps

This will re-enable building on the production server instead of needing to mess with copying from a local machine and fixing symlinks.
Intentionally downgrades the Node version on Netlify to test the build there.

Took a bit of trial and error with some odd deps expecting a higher Node version, but now this is good to go!


Bootstrap CSS3 included in the index.html is changing the CSS of other components

I attached bootstrap.css in index.html  but now all the css of other components are being changed .
Any workaround?

Are you using this in combination with another css framework?  If so, there might be a conflict between bootstrap and your other framework.  Unfortunately, resolving that is an issue outside the scope of this project.


Extract out BuildVolume

As explored in https://github.com/remcoder/gcode-preview/pull/169, I've extracted out the build volume to encapsulate the attributes and geometry building.

I think it's fine for now, separating it out as a util. Eventually we'd want to move to a scheme where we add/remove objects like a build plate to the scene.
Also it might be better to separate the axes from the build plate, eventually that is.

Agreed, they could all be separated

@sophiedeziel this LGTM. Agree to merge?

Yes!


🛠 Tooling: Raise code coverage above 11%

Bug Report Checklist

[X] I have tried restarting my IDE and the issue persists.
[X] I have pulled the latest main branch of the repository.
[X] I have searched for related issues and found none that matched my issue.

Overview
This repo has 11% code coverage right now. Yeesh. That's an angry red badge. I'd like to raise that amount.
Additional Info
No response

#228 raises test coverage to about 25%. Which still isn't ideal, but given that raising it more would necessitate testing DOM interactions, I think this is as good as we can get for now.
#4 will likely significantly reduce the amount of code in the content script, which will further help unit test coverage numbers.


[SUGGESTION] Give the copy tool more use

Short Description
Allow the copy tool to spawn whatever it has copied when left clicking on world instead of forcing users to update an existing spawned entity.

Added on bdb8464, merged to master on 40a67db.

Added on bdb8464, merged to master on 40a67db.


mqadmin delete group success，prometheus can still see the data of groups that have been deleted

promsql
label_replace(sum(rocketmq_producer_offset by (topic) - on(topic) group_right sum(rocketmq_consumer_offset by (topic,group) > 100, "consumer", "$1", "group", "(.*)")

@hmthoo Is prometheus statistics history data?


I would like some mechanism to link lines to the speaker in translation CSV's

Is your feature request related to a problem? Please describe.
The game I am working on is using voice acting. In order to sync audio lines to text lines I am trying to re-use TL keys since they serve a similar purpose and have existing infrastructure. Due to having those keys and using the import/export settings, the generated CSV's seem a very useful authoritative version of the script for generating and then keeping lines in sync across the team. So I would like to to generate a more readable script from them. Stuff like removing BBCode I can post process myself, but linking lines in the CSV file back to their speaker is more difficult. And it necessary to have speaker names in these docs for them to be usable to the rest of the team
Describe the solution you'd like
Perfect solution; another field in the generated CSV which contains the name of the speaker for each line, but this would probably break the generated packed_translation file unless theres some way to exclude a field that I don't know about.
Imperfect solution; generate another file which links each speaker to each TLkey they speak so I can do it myself externally
Describe alternatives you've considered
This could be accomplished by a toolscript that reads through the file as if it were playing the game and generates a readable script using those exposed values, but this could get quite complex as it goes back to re-do other branches and I don't even know how I would detect and handle a recursive script.
I could also attempt to read the dialogue_resource file directly. Theres no downsides to this;, I'd just rather not put in the work if I can avoid it. This will probably be of use to others in the future so I may as well try proposing it as a feature before doing it myself.

There's an option in advanced dialogue settings to include the character names in CSV exports (There was an issue when initially generating the file but that's been fixed in this PR). It will throw a few errors in the Godot console because it tries to import the _character column as a language but you should be able to safely ignore them.


Compile the Standalone OpenROAD ending up with errors

Describe the bug
When compiling  OpenROAD, it ended up with errors after installing essential dependencies and running make command.  It is almost finished (97%).
collect2: error: ld returned 1 exit status
make[2]: *** [src/CMakeFiles/openroad.dir/build.make:410: src/openroad] Error 1
make[2]: Leaving directory '/home/yuanjiadong/OpenROAD/build'
make[1]: *** [CMakeFiles/Makefile2:1666: src/CMakeFiles/openroad.dir/all] Error 2
make[1]: Leaving directory '/home/yuanjiadong/OpenROAD/build'
make: *** [Makefile:149: all] Error 2
Here is what was printed after I run  cmake .. -DCMAKE_INSTALL_PREFIX=/home/yuanjiadong/openroad:
-- OpenROAD version: v2.0-7328-g3dc4848b3
-- System name: Linux
-- Compiler: GNU 10.2.1
-- Build type: RELEASE
-- Install prefix: /home/yuanjiadong/openroad
-- C++ Standard: 17
-- C++ Standard Required: ON
-- C++ Extensions: OFF
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- TCL library: /usr/lib/x86_64-linux-gnu/libtcl.so
-- TCL header: /usr/include/tcl/tcl.h
-- TCL readline library: /usr/lib/x86_64-linux-gnu/libtclreadline.so
-- TCL readline header: /usr/include/x86_64-linux-gnu
-- Found Boost: /home/yuanjiadong/openroad/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found version "1.80.0")
-- boost: 1.80.0
-- spdlog: 1.8.1
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- STA version: 2.4.0
-- STA git sha: 20805c83cf4817f6d2ca7867a52dac226515a21e
-- System name: Linux
-- Compiler: GNU 10.2.1
-- Build type: RELEASE
-- Build CXX_FLAGS: -O3 -DNDEBUG
-- Install prefix: /home/yuanjiadong/openroad
-- TCL library: /usr/lib/x86_64-linux-gnu/libtcl.so
-- TCL header: /usr/include/tcl/tcl.h
-- SSTA: 0
-- STA executable: /home/yuanjiadong/OpenROAD/src/sta/app/sta
-- GPU is not enabled
-- GUI is enabled
-- Found Boost: /home/yuanjiadong/openroad/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found version "1.80.0") found components: serialization
-- Could NOT find VTune (missing: VTune_LIBRARIES VTune_INCLUDE_DIRS)
-- Found Boost: /home/yuanjiadong/openroad/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found suitable version "1.80.0", minimum required is "1.78")
-- Found Boost: /home/yuanjiadong/openroad/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found version "1.80.0") found components: serialization system thread
-- TCL readline enabled
-- Tcl Extended disabled
-- Python3 enabled
-- Configuring done
CMake Warning at src/CMakeLists.txt:269 (add_executable):
Cannot generate a safe runtime search path for target openroad because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libtcl8.6.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/yuanjiadong/mambaforge/lib
runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/yuanjiadong/mambaforge/lib
runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/10 may be hidden by files in:
  /home/yuanjiadong/mambaforge/lib

Some of these libraries may not be found correctly.
CMake Warning at src/odb/src/swig/python/CMakeLists.txt:28 (add_executable):
Cannot generate a safe runtime search path for target odb_py-bin because
files in some directories may conflict with libraries in implicit
directories:
runtime library [libtcl8.6.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/yuanjiadong/mambaforge/lib
runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/yuanjiadong/mambaforge/lib

Some of these libraries may not be found correctly.
CMake Warning at src/drt/CMakeLists.txt:176 (add_executable):
Cannot generate a safe runtime search path for target trTest because files
in some directories may conflict with libraries in implicit directories:
runtime library [libtcl8.6.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/yuanjiadong/mambaforge/lib
runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/10 may be hidden by files in:
  /home/yuanjiadong/mambaforge/lib
runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
  /home/yuanjiadong/mambaforge/lib

Some of these libraries may not be found correctly.
-- Generating done
-- Build files have been written to: /home/yuanjiadong/OpenROAD/build
Expected Behavior
OpenROAD should be compiled and installed successfully.
Environment
It is recommened to pull the latest changes.
If problem persists, file a github issue with the re-producible test case.
kernel: Linux 5.10.0-18-amd64
os: Debian GNU/Linux 11 (bullseye)
cmake version 3.24.2
-- The CXX compiler identification is GNU 10.2.1
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- OpenROAD version: v2.0-7328-g3dc4848b3
-- System name: Linux
-- Compiler: GNU 10.2.1
-- Build type: RELEASE
-- Install prefix: /usr/local
-- C++ Standard: 17
-- C++ Standard Required: ON
-- C++ Extensions: OFF
-- Could NOT find GTest (missing: GTEST_LIBRARY GTEST_INCLUDE_DIR GTEST_MAIN_LIBRARY)
-- The C compiler identification is GNU 10.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Found Python: /home/yuanjiadong/mambaforge/bin/python3.10 (found version "3.10.8") found components: Interpreter
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Performing Test C_COMPILER_SUPPORTS__-Wall
-- Performing Test C_COMPILER_SUPPORTS__-Wall - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wall
-- Performing Test CXX_COMPILER_SUPPORTS__-Wall - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-array-bounds
-- Performing Test C_COMPILER_SUPPORTS__-Wno-array-bounds - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-array-bounds
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-array-bounds - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-nonnull
-- Performing Test C_COMPILER_SUPPORTS__-Wno-nonnull - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-nonnull
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-nonnull - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-maybe-uninitialized
-- Performing Test C_COMPILER_SUPPORTS__-Wno-maybe-uninitialized - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-maybe-uninitialized
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-maybe-uninitialized - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-format-overflow
-- Performing Test C_COMPILER_SUPPORTS__-Wno-format-overflow - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format-overflow
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format-overflow - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-variable
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-variable - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-variable
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-variable - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-function
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-function - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-function
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-function - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-write-strings
-- Performing Test C_COMPILER_SUPPORTS__-Wno-write-strings - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-write-strings
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-write-strings - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-sign-compare
-- Performing Test C_COMPILER_SUPPORTS__-Wno-sign-compare - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-sign-compare
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-sign-compare - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-deprecated
-- Performing Test C_COMPILER_SUPPORTS__-Wno-deprecated - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-deprecated
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-deprecated - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-c++11-narrowing
-- Performing Test C_COMPILER_SUPPORTS__-Wno-c++11-narrowing - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-c++11-narrowing
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-c++11-narrowing - Failed
-- Performing Test C_COMPILER_SUPPORTS__-Wno-register
-- Performing Test C_COMPILER_SUPPORTS__-Wno-register - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-register
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-register - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-format
-- Performing Test C_COMPILER_SUPPORTS__-Wno-format - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-format - Success
-- Performing Test C_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal
-- Performing Test C_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-reserved-user-defined-literal - Failed
-- Performing Test C_COMPILER_SUPPORTS__-fpermissive
-- Performing Test C_COMPILER_SUPPORTS__-fpermissive - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-fpermissive
-- Performing Test CXX_COMPILER_SUPPORTS__-fpermissive - Success
-- Performing Test C_COMPILER_SUPPORTS__-x
-- Performing Test C_COMPILER_SUPPORTS__-x - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__-x
-- Performing Test CXX_COMPILER_SUPPORTS__-x - Failed
-- Performing Test C_COMPILER_SUPPORTS__c++
-- Performing Test C_COMPILER_SUPPORTS__c++ - Failed
-- Performing Test CXX_COMPILER_SUPPORTS__c++
-- Performing Test CXX_COMPILER_SUPPORTS__c++ - Failed
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-but-set-variable
-- Performing Test C_COMPILER_SUPPORTS__-Wno-unused-but-set-variable - Success
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-but-set-variable
-- Performing Test CXX_COMPILER_SUPPORTS__-Wno-unused-but-set-variable - Success
-- TCL library: /usr/lib/x86_64-linux-gnu/libtcl.so
-- TCL header: /usr/include/tcl/tcl.h
-- TCL readline library: /usr/lib/x86_64-linux-gnu/libtclreadline.so
-- TCL readline header: /usr/include/x86_64-linux-gnu
-- Found SWIG: /usr/bin/swig4.0 (found suitable version "4.0.2", minimum required is "3.0")
-- Found Boost: /home/yuanjiadong/openroad/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found version "1.80.0")
-- boost: 1.80.0
-- Found Python3: /home/yuanjiadong/mambaforge/include/python3.10 (found version "3.10.8") found components: Development Development.Module Development.Embed
-- Found ZLIB: /usr/lib/x86_64-linux-gnu/libz.so (found version "1.2.11")
-- spdlog: 1.8.1
-- Found BISON: /usr/bin/bison (found version "3.7.5")
-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
-- STA version: 2.4.0
-- STA git sha: 20805c83cf4817f6d2ca7867a52dac226515a21e
-- System name: Linux
-- Compiler: GNU 10.2.1
-- Build type: RELEASE
-- Build CXX_FLAGS: -O3 -DNDEBUG
-- Install prefix: /usr/local
-- Found FLEX: /usr/bin/flex (found version "2.6.4")
-- TCL library: /usr/lib/x86_64-linux-gnu/libtcl.so
-- TCL header: /usr/include/tcl/tcl.h
-- Check if compiler accepts -pthread
-- Check if compiler accepts -pthread - yes
-- SSTA: 0
-- STA executable: /home/yuanjiadong/OpenROAD/src/sta/app/sta
-- GPU is not enabled
-- Found re2: /home/yuanjiadong/openroad/lib/cmake/re2/re2Config.cmake (found version "9.0.0")
-- Found Clp: /home/yuanjiadong/openroad/lib/cmake/Clp/ClpConfig.cmake (found version "1.17.7")
-- Found Cbc: /home/yuanjiadong/openroad/lib/cmake/Cbc/CbcConfig.cmake (found version "2.10.7")
-- Found Eigen3: /home/yuanjiadong/openroad/share/eigen3/cmake/Eigen3Config.cmake (found version "3.4.0")
-- Found SCIP: /home/yuanjiadong/openroad/lib/cmake/scip/scip-config.cmake (found version "8.0.1")
-- GUI is enabled
-- Found Boost: /home/yuanjiadong/openroad/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found version "1.80.0") found components: serialization
-- Found OpenMP_CXX: -fopenmp (found version "4.5")
-- Found OpenMP: TRUE (found version "4.5")
-- Could NOT find VTune (missing: VTune_LIBRARIES VTune_INCLUDE_DIRS)
-- Found Boost: /home/yuanjiadong/openroad/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found suitable version "1.80.0", minimum required is "1.78")
-- Found Boost: /home/yuanjiadong/openroad/lib/cmake/Boost-1.80.0/BoostConfig.cmake (found version "1.80.0") found compoCMake Warning at src/CMakeLists.txt:269 (add_executable):
  Cannot generate a safe runtime search path for target openroad because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libtcl8.6.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/yuanjiadong/mambaforge/lib
    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/yuanjiadong/mambaforge/lib
    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/10 may be hidden by files in:
      /home/yuanjiadong/mambaforge/lib

  Some of these libraries may not be found correctly.

CMake Warning at src/odb/src/swig/python/CMakeLists.txt:28 (add_executable):
  Cannot generate a safe runtime search path for target odb_py-bin because
  files in some directories may conflict with libraries in implicit
  directories:

    runtime library [libtcl8.6.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/yuanjiadong/mambaforge/lib
    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/yuanjiadong/mambaforge/lib

  Some of these libraries may not be found correctly.

CMake Warning at src/drt/CMakeLists.txt:176 (add_executable):
  Cannot generate a safe runtime search path for target trTest because files
  in some directories may conflict with libraries in implicit directories:

    runtime library [libtcl8.6.so] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/yuanjiadong/mambaforge/lib
    runtime library [libgomp.so.1] in /usr/lib/gcc/x86_64-linux-gnu/10 may be hidden by files in:
      /home/yuanjiadong/mambaforge/lib
    runtime library [libz.so.1] in /usr/lib/x86_64-linux-gnu may be hidden by files in:
      /home/yuanjiadong/mambaforge/lib

  Some of these libraries may not be found correctly.

nents: serialization system thread
-- TCL readline enabled
-- Tcl Extended disabled
-- Python3 enabled
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/tmp.vAkC7YP8nL

To Reproduce
CMakeError.log
CMakeOutput.log
openroad-env.log
Relevant log output
No response
Screenshots
No response
Additional Context
No response

@JiaDYuan looks like you are using an env manager (i.e., mambaforge).


Ruby sample should show error

in the sample ruby program here:
https://developers.google.com/apps-script/guides/rest/quickstart/ruby
Missing the following to print the actual error:
rescue Google::Apis::ClientError => e
  # The API encountered a problem before the script started executing.
  puts "Error calling API!"
  puts sprintf('Caught error %s', e)

Thanks for the suggestion, however, the source code for that sample is not in this repo.


Is there any way to make page breaks?

I'm trying to schematize a pdf, but there's no way to make page breaks.

Sorry, I don't know that this css style exists. Solved page break with:

Thanks!

 worked perfectly for me.

style="page-break-after:always;" Works perfect!

@lucdetellis you are a god!

Sorry to revive an old thread, but have any of you had any luck doing the same with css grid? page-break-after doesn't seem to work within a grid.

Hi Techies,
I am facing problem of page-break not working for table row (tr),
I have tried all above methods but no luck,
FYI ., i am using Nodejs, serverless framework having html-pdf as dependancy

if you are running into problems where "page-break-after: always;" does work, then a cheap way to get around it is to install something like "merge-pdf-buffer" to merge multiple pdf buffers. It's how I solved my problem. instead of creating 1 pdf-buffer create multiple and merge then using the "merge-pdf-buffer" package.

guys can I get some help with this? https://stackoverflow.com/questions/69858192/add-page-break-to-ejs-template

style="page-break-after:always;" worked for me. Thanks


Fixed issues, AST structure is now correct and parser able to parse

However there is a slight issue when returning donsus_tree from the parser we encounter a segmentation fault error, however the structure of the tree is correct and is able to parse down expressions.

Nice, we might need to replace vectors in the future.


errors when converting timm to d2

The problems are as follows

It seems that you didn't pass the second argument /path/to/save/resnet50d_ra2-464e36ba.pkl to the converting command.


CRUD dont show

Creating in laravel works fine
In laravel 10 the CRUD dont show
But copy all from laravel 9 to laravel 10 works fine.

@ribafs Please you can check now this package is supported up to laravel 11
Thanks


(BKR-161) Beaker tagging improvements

Use JOB_NAME for 'project' tag default if it exists
Set 'beaker_version' tag in vmpooler hypervisor

:+1:

Tagging result as illustrated by the Beaker acceptance run:
{
  "ok": true,
  "w5p94l212w5fphs": {
    "template": "centos-7-x86_64",
    "lifetime": 12,
    "running": 0.01,
    "tags": {
      "jenkins_build_url": "http://jenkins-beaker.delivery.puppetlabs.net/job/qe_beaker_intn-sys_beaker-accceptance-base-vpool/",
      "department": "eso-dept",
      "beaker_version": "2.8.0",
      "created_by": "jenkins",
      "project": "Beaker Smoketest - PE Extended Platforms Smoke Test"
    },
    "domain": "delivery.puppetlabs.net"
  }
}

This shouldn't be merged until we have a discussion/decision about whether to overload 'project'.  (cc: @waynr @rji)

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/689/
:red_circle: Test failed.

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/702/
:red_circle: Test failed.

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/704/
:red_circle: Test failed.

@puppetlabs-jenkins retest this please

Refer to this link for build results (access rights to CI server needed):
http://jenkins-beaker.delivery.puppetlabs.net//job/qe_beaker_btc-intn/714/
:green_heart: Test passed.


Cmake Fails

Hello.  I am trying to cmake the latest version and get the following errors:
-- Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)
CMake Error at CMakeLists.txt:116 (add_subdirectory):
  The source directory

    /home/adam/Downloads/cpp-netlib/deps/uri

  does not contain a CMakeLists.txt file.

CMake Error at CMakeLists.txt:135 (add_subdirectory):
  The source directory

    /home/adam/Downloads/cpp-netlib/deps/googletest

  does not contain a CMakeLists.txt file.

CMake Error at CMakeLists.txt:136 (add_subdirectory):
  add_subdirectory given source "deps/uri/test" which is not an existing
  directory.

-- Configuring incomplete, errors occurred!

I am not trying to build it with SSL.
Thank you.

You should be able to do this by setting the CPP-NETLIB_ENABLE_HTTPS option to "Off" either through the cmake invocation:
cmake -DCPP-NETLIB_ENABLE_HTTPS=Off ...

(The option is defined in https://github.com/cpp-netlib/cpp-netlib/blob/master/CMakeLists.txt#L13).
Or when configuring using ccmake.
I notice that you also hadn't updated the submodules the project needs to build. Our documentation points out the best way of getting the development version of the library:
https://github.com/cpp-netlib/cpp-netlib#downloading-cpp-netlib
$ git clone https://github.com/cpp-netlib/cpp-netlib
$ cd cpp-netlib
$ git submodule init
$ git submodule update

I hope this helps!


Use store revisions to ensure that stories re-render on HMR.

For #2587
Issue:
To avoid unnecessarily re-rendering stories we don't re-render if the story name+kind haven't changed.
However on HMR, this leads to not rerendering / breakage, as in this case the name/kind haven't changed, but the store's implementation itself changed.
What I did
I added the concept of a revision to the storystore. This implies that the same name+kind can be different as the store itself has changed. I got the idea from styleguidist which I think saw something similar in when I was reading their source ;)
Moving forward, if we want dynamic stores (yes please!) we may need to generalise the concept of revision to meaning more just "incrementing on each HMR".
How to test
Try changing stories implementations in the kitchen sink.
Is this testable with jest or storyshots? No
Does this need a new example in the kitchen sink apps? No
Does this need an update to the documentation? No
We should ensure this is merged into https://github.com/storybooks/storybook/pull/2241

Should we do the same for other apps?

They don’t have this immediate problem. We’ll get this revision code in all
apps when we land the general story store PR
On Thu, 28 Dec 2017 at 12:26 pm, Filipp Riabchun<EMAIL_ADDRESS>wrote:

Should we do the same for other apps?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/storybooks/storybook/pull/2588#issuecomment-354210395,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAIFystmGsXL00rZMHgk6HRqihGWt1mTks5tEu47gaJpZM4RN6Q1
.

They don’t have this immediate problem

Why do they need the revisions then?

@Hypnosphi

They don’t have this immediate problem
Why do they need the revisions then?

Good question, perhaps we can discuss elsewhere (I'll make this into a PR against #2241 and we can go into detail there).
I think it is conceptually correct that we keep track in the storystore that the stories have changed; ie the output of Foo:bar (kind="Foo", name="bar") is different to what it was previously.
In this case, such a distinction is needed because our React code is trying to avoid unnecessary re-renders when the story choice hasn't changed. There was no way (until this patch) for the React code to know if the story implementation had changed.
@danielduan

also curious as to why the other two platforms don't need it

They don't need it immediately because they are not (AFAIK) making this optimization [I don't really know if they need to either]. This patch is a reaction to a bug introduced when I made this optimization in React in https://github.com/storybooks/storybook/pull/2503.


App crashes on Finish button

click on finish button crashes app, if all questions are answered

I can't reproduce this bug

I can, so i will try to fix it then

Ok, I cant reproduce either I do not know what happened. I am closing it


evt.draggedContext.futureIndex not updated when dragging item from one section to another

Description:
I want to track the futureIndex of the dragged item within the onMove event in order to potentially return false (i.e. to cancel).
What happens:
As long as the dragged item remains within the section in which the drag originated, the evt.draggedContext.futureIndex returns the correct futureIndex. However, as soon as the item is dragged into another section, the futureIndex stays zero.
What I expected:
I expected evt.draggedContext.futureIndex to report the correct index (also after dragging an item into another section). See the attached .gif for an example screenshot.

.

@mfjonker please share  the code sample so I can take a look

@anish2690 Sure, I can send you an invitation to the project - but perhaps a simple example is sufficient?
See https://github.com/mfjonker/anish-draggable-test , which is a slight modification of the basic demo example.

@anish2690 Do you perhaps have an update of this issue? Thank you!

@mfjonker you have to listen for change event , once you moved out from one instance to another there will be a added event for destination and removed for source events.

@anish2690 Thank you for your suggestion. Two quick questions: a) Does the change event also allow you to cancel the drag? That is why I needed the evt.draggedContext.futureIndex to return the correct futureIndex; if you return "false" the drag is canceled. b) Wouldn't it be preferable to have the evt.draggedContext.futureIndex to return the corect value?

@anish2690 I checked the SortableJS /
vue.draggable.next project and evt.draggedContext.futureIndex is not always zero when dragging an item from one section to another in their implementation; hence it does appear to be an error in the vue-draggable-next implementation. It would be truly great if you could fix this?

Sure I'll check that out

Hi @anish2690, apologies for spamming (!) and a quick question to see if there is any progress on this issue. Many thanks!

@mfjonker i'm not able find any errors it will show future index as 0 because that element is not added to the second instance of drag space.

Hi @anish2690, as promised the link to the test-example based on the vue.draggable.next library:
https://github.com/mfjonker/vue.draggable.next-test
(The animated gifs are in the repository as well.)

https://github.com/anish2690/vue-draggable-next/releases/tag/2.1.0


Display pool memory leak

It seems like there is some kind of leak with the display pool. I haven't made a minimum reproducible example yet as I'm not sure exactly what's causing it yet. It still happens if I disable almost all of my passes except the main opaque pass, that's the furthest I've reduced the problem to so far. It seems to scale with the number of sub passes (leaks faster). It seems that it also causes this https://github.com/attackgoat/screen-13/blob/bdc4a819ba44be7d337a839f4ec0d180f0594076/src/graph/resolver.rs#L614 to take more time each frame. It seems like cmd_begin_render_pass is taking longer each frame for every pass as well, not just the opaque one (like the blit to swap will also take longer). Eventually it can take over 1ms (at the start it takes around 2us).
Using https://crates.io/crates/leak-detect-allocator I found 4 additional instances of this showing up each frame:
leak memory address: 0x1e4d0f06a40, size: 1088
    0x7ff785c43597, backtrace::backtrace::dbghelp64::tracebacktrace::backtrace::trace_unsynchronized<leak_detect_allocator::impl$0::alloc_accounting::closure_env$0<10> >
    0x7ff785c49d40, leak_detect_allocator::LeakTracer<10>::alloc_accountingleak_detect_allocator::impl$1::alloc<10>
    0x7ff785f950d3, alloc::alloc::allocalloc::alloc::Global::alloc_implalloc::alloc::impl$1::allocatealloc::raw_vec::RawVec<screen_13::driver::render_pass::SubpassInfo,alloc::alloc::Global>::try_allocate_inalloc::raw_vec::RawVec<screen_13::driver::render_pass::SubpassInfo,alloc::alloc::Global>::with_capacity_inalloc::vec::Vec<screen_13::driver::render_pass::SubpassInfo,alloc::alloc::Global>::with_capacity_inalloc::vec::Vec<screen_13::driver::render_pass::SubpassInfo,alloc::alloc::Global>::with_capacity
    0x7ff785f9c843, screen_13::graph::resolver::Resolver::record_scheduled_passes<dyn$<screen_13::display::ResolverPool> >
    0x7ff785fa4770, screen_13::graph::resolver::impl$2::record_node_passes::closure$0std::thread::local::impl$6::with_borrow_mut::closure$0std::thread::local::LocalKey<core::cell::RefCell<screen_13::graph::resolver::Schedule> >::try_withstd::thread::local::LocalKey<core::cell::RefCell<screen_13::graph::resolver::Schedule> >::with
    0x7ff785f676dc, screen_13::display::Display::resolve_image
    0x7ff785f17d15, bs13_core::resolve_and_submitbs13_core::s13_send_render_state_and_wait
    0x7ff785f27015, core::ops::function::FnMut::call_mutcore::ops::function::impls::impl$3::call_mutbevy_ecs::system::function_system::impl$26::run::call_innerbevy_ecs::system::function_system::impl$26::runbevy_ecs::system::function_system::impl$7::run_unsafe<void (*)(bevy_ecs::change_detection::NonSendMut<bs13_core::S13RenderGraph>,bevy_ecs::change_detection::Res<bs13_core::BlitViewTarget>,bevy_ecs::event::EventReader<bevy_window::event::WindowResized>,bev
    0x7ff7884d760d, bevy_ecs::schedule::executor::__rust_begin_short_backtrace::run_unsafe
    0x7ff7884e4df9, bevy_ecs::schedule::executor::multi_threaded::impl$5::spawn_system_task::async_block$0::closure$0core::ops::function::FnOnce::call_oncecore::panic::unwind_safe::impl$25::call_oncestd::panicking::try::do_callstd::panicking::trystd::panic::catch_unwindbevy_ecs::schedule::executor::multi_threaded::impl$5::spawn_system_task::async_block$0core::panic::unwind_safe::impl$28::pollfutures_lite::future::impl$9::poll::closure$0core::panic::unwind_safe::impl$25::call_oncestd::panicking::try::do_call

I noticed that if I did an early submit before the swap, both the memory leak and the additional time spent per frame issue went away.
graph.resolve().submit(&mut LazyPool::new(&render_state.device), 0, 0).unwrap();
Then I tried just resetting the display pool before display.resolve_image and that also seemed to resolve the issue:
display.pool = Box::new(HashPool::new(&render_state.device));
Resizing the window also seems to reset the issue with the additional time spent each frame, but doesn't seem to free the leaked memory.

It seems to maybe be related to merging passes. If I always return false from https://github.com/attackgoat/screen-13/blob/bdc4a819ba44be7d337a839f4ec0d180f0594076/src/graph/resolver.rs#L175 this issues seems not to occur.


Feature/groundwater flow

This PR was intended to introduce a groundwater reservoir but it includes a number of new features and updates:

added groundwater reservoir with two layers, values are initialized with config
added subsurface horizontal flow out of groundwater reservoir (subsurface flow and base flow)
added accumulated subsurface horizontal flow (currently same equation as surface runoff accumulation)
replaced P-ET stream flow with two river discharge variables (total_river_discharge in mm/month and river_discharge_rate in m3/s) which are calculated as: accumulated surface runoff+accumulated subsurface flow
updated doc strings (I haven't added a full hydrology documentation but added references and more detail in many places)

I would appreciate feedback on the logic and structure, it seems to be getting a bit busy.
Type of change

[x] New feature (non-breaking change which adds functionality)
[x] Optimization (back-end change that speeds up the code)
[ ] Bug fix (non-breaking change which fixes an issue)

Key checklist

[x] Make sure you've run the pre-commit checks: $ pre-commit run -a
[x] All tests pass: $ poetry run pytest

Further checks

[x] Code is commented, particularly in hard-to-understand areas
[x] Tests added that prove fix is effective or that feature works

Codecov Report

Merging #329 (7cbcb6c) into develop (f02b0d0) will increase coverage by 0.04%.
The diff coverage is 100.00%.

:exclamation: Current head 7cbcb6c differs from pull request most recent head a93e15e. Consider uploading reports for the commit a93e15e to get more accurate results

@@             Coverage Diff             @@
##           develop     #329      +/-   ##
===========================================
+ Coverage    96.54%   96.58%   +0.04%
===========================================
  Files           48       48
  Lines         2400     2430      +30
===========================================
+ Hits          2317     2347      +30
  Misses          83       83

Files
Coverage Δ

virtual_rainforest/models/hydrology/__init__.py
100.00% <ø> (ø)

...irtual_rainforest/models/hydrology/above_ground.py
100.00% <100.00%> (ø)

...irtual_rainforest/models/hydrology/below_ground.py
100.00% <100.00%> (ø)

virtual_rainforest/models/hydrology/constants.py
100.00% <100.00%> (ø)

...ual_rainforest/models/hydrology/hydrology_model.py
100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more

LGTM.
Don't worry about the dataclass thing unless it actually makes your life easier. It's just another way you can return multiple values from a function, but not necessarily the right one for every case.

I think it might be at some point but I'll leave it as it is for now and get on with other bits, it's recorded as a good option :-)


Create 1343-number-of-sub-arraysofSize-k-and-average-greaterthanor-equal-to-threshold.cs

File(s) Modified: 1343-number-of-sub-arraysofSize-k-and-average-greaterthanor-equal-to-threshold.cs
Language(s) Used: c sharp
Submission URL: _https://leetcode.com/submissions/detail/1424301263/_

Important
Please make sure the file name is lowercase and a duplicate file does not already exist before merging.

@vermavarun Follow the naming convention as this Python solution: https://github.com/neetcode-gh/leetcode/blob/main/python%2F1343-number-of-sub-arrays-of-size-k-and-average-greater-than-or-equal-to-threshold.py. Also review the suggestions for your code

@Ykhan799 I have updated the file name. Please let me know any specific change required.

@vermavarun Thanks for your contribution 👍


Create web_scraping.ipynb

this is simple web scraping illustration for the new learners.
I had used simple and very basic step to illustrate the steps.
for more instructions, open the file and start reading form the top.

issue no. #164

Is it count under project or utility? @siphyshu Please let me Know

sir its a beginner project for learners.

Is it count under project or utility? @siphyshu Please let me Know

I think this would come under a project.


displayWhenEmpty: none with deviceFilter / deviceFilterExclude: true does not behave as expected

Without a device filter, displayWhenEmpty: none works, and the module disappears after a few seconds when playback is paused.
However, when I work with the filter enabled, it functions correctly at the start, but if I pause the playback, the module remains visible forever. Even if I open Spotify on the filtered device but haven't played a song yet, the module becomes immediately visible—regardless of whether a song is playing or not.
Is this a known issue? Does it only occur for me? Are there any solutions or ideas for this?
displayWhenEmpty: "none", deviceFilterExclude: true, deviceFilter: ["Wohnzimmer"],
I would be very grateful for any help, best regards, Jonas.

Hey I was looking into this and I cannot seem to replicate the issue. Are you listening to audiobooks/podcast/similar when this error shows?


Broken UI on landscape

Default DataSource is broken when putting the device on landscape (iPhone 7)

For me all correctly. Maybe you use BG without mask


Error which seems to be related to automatic reimport

From<EMAIL_ADDRESS>on 2010-04-07T23:34:47Z
When I run a script of mine in spyder 1.1.0alpha3, I get the following
error.  I have the "force modules to be completely reloaded" option
switched on.  This seems to happen after I change my script and run it
again.  If I restart spyder the problem goes away.  Please email me if you
need a copy of the script to help reproduce this error.
execfile(u'C:\Documents and Settings\dap124\My
Documents\reference\material constants\process_constants.py')
Traceback (most recent call last):
File "C:\Documents and Settings\dap124\My
Documents\code\spyder\spyderlib\interpreter.py", line 104, in execfile
self.install_rollback_importer()
File "C:\Documents and Settings\dap124\My
Documents\code\spyder\spyderlib\interpreter.py", line 90, in
install_rollback_importer
self.rollback_importer.uninstall()
File "C:\Documents and Settings\dap124\My
Documents\code\spyder\spyderlib\interpreter.py", line 50, in uninstall
and not is_module_blacklisted(sys.modules[name], blacklist):
File "C:\Documents and Settings\dap124\My
Documents\code\spyder\spyderlib\interpreter.py", line 23, in
is_module_blacklisted
if module.file.startswith(path):
AttributeError: 'module' object has no attribute 'file'
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=191

From<EMAIL_ADDRESS>on 2010-04-08T16:12:05Z
Thanks Pierre,
Your instructions only worked when I got rid of the ">>STDOUT" section, otherwise I
got a bad file descriptor error.  Anyway it looks like the "array" module is causing
the problem.  This is a bit mysterious because I never use the builtin array module
in my code, but I do have "from numpy import array" and "import numpy as np" followed
by "np.array" used in my code.
I had a little bit of trouble reproducing this error, I had to run a couple of
different scripts at random until it popped up again.
is_module_blacklisted: <module 'array' (built-in)>
Traceback (most recent call last):
File "C:\Documents and Settings\dap124\My
Documents\code\spyder\spyderlib\interpreter.py", line 105, in execfile
self.install_rollback_importer()
File "C:\Documents and Settings\dap124\My
Documents\code\spyder\spyderlib\interpreter.py", line 91, in
install_rollback_importer
self.rollback_importer.uninstall()
File "C:\Documents and Settings\dap124\My
Documents\code\spyder\spyderlib\interpreter.py", line 51, in uninstall
and not is_module_blacklisted(sys.modules[name], blacklist):
File "C:\Documents and Settings\dap124\My
Documents\code\spyder\spyderlib\interpreter.py", line 24, in is_module_blacklisted
if module.file.startswith(path):
AttributeError: 'module' object has no attribute 'file'

From pierre.raybaut on 2010-04-08T07:54:20Z
In "spyderlib\interpreter.py", between lines 21 and 22, could you please add the
following debug code:
print >>STDOUT, "is_module_blacklisted:", module
...and tell me what is the module causing this error?
Status: Accepted
Labels: -Priority-Medium Priority-High

From pierre.raybaut on 2010-04-08T23:04:13Z
Fixed in v1.1.0alpha4
Status: Fixed


run alasql in nodejs vm

We found there is some problems about run alasql in nodejs vm, this is mainly because of this issue.
https://github.com/nodejs/node-v0.x-archive/issues/1277
In alasql, there is many line like (x instanceof Array) to check if x is an array, and the better way is Array.isArray(x).  Use (x instanceof Array) will cause some problem when running alasql in vm.
For example, in prepareFromData() function.

Thank you! What is the best replacement for x instanceof Array in this case?

Array.isArray() is the best way to test if something is an array

So we can replcae with Array.isArray( ... ) - but I dont know if this solves the core of the problem - that we cant rely on any ìnstanceOf`

Yes, this does not solve the core problem. The core problem is "require" method is passed from main context to vm context so objects in alasql is not created by vm context.
following is implement of instance of in js:
function instance_of(L, R) {
var O = R.prototype;
L = L.proto;
while (true) {
if (L === null)
return false;
if (O === L)// since L and R may be created by different vm, here use O == L may solve this problem.
return true;
L = L.proto;
}
}
However, core problem is L and R may be created by different vm, so we do not know if other function have same problem with instanceof .
I am still finding better ways.

sounds good. I cant imagine we are the first library to front this when running in a js vm

@xlvector Have you found out anything new?

Sorry, I does not find better solution.
I can only restrict my users can only do read operation in vm because write operation will generate new objects.

:-(

If we replace everything with named functions for the prototypes, we could just change everything from
if(x instanceof yy.Y){
  //do something
}else if (x instanceof yy.Z){
  //do something else
}

to
switch(x.constructor.name){
  case "Y":
    //do something;
    break;
  case "Z":
    //do something else;
    break;
}

This would probably be faster/result in less lines of code.
NOTE: Function.prototype.name is immutable if the function is named

If we replace everything with named functions for the prototypes, we could just change everything

Sounds interesting - but I dont quite get it. what is it exactly that needs to be replaced with a named function?

instead of attaching prototypes directly to yy, you "name" them first.
A named function is when you construct a function as follows:
function Select(){

}

instead of
yy.Select = function(){}

You then attach Select to yy later, like so
yy.Select = Select;

The only reason I mention is that a direct consequence of using the syntax
export function Select(){}

For issue #445 is that all functions become named functions.

@nickdeis I have paused changes in the ./src folder so we avoid a crazy merge with the ideas from #445
Woul it be easyer for you if I change all yy.Select = function(){} to function Select(){}+yy.Select = Select;  in the ./src at the moment?

I don't use alasql nodejs (I have used it a lot in nashorn/rhino, the latter being the main reason I'm pursuing #445 ), I was just saw this ticket and found it interesting.

:+1:

Yep. You can even keep the if/else if/else structure, I just find switch more expressive.


Support non-EC2 targets with ob deploy

I have:

[ ] Based work on latest develop branch
[ ] Looked for lint in my changes with hlint . (lint found code you did not write can be left alone)
[ ] Run the test suite: $(nix-build -A selftest --no-out-link)
[ ] (Optional) Run CI tests locally: nix-build release.nix -A build.x86_64-linux --no-out-link (or x86_64-darwin on macOS)

module is a really bad name for this...

This will address #444 right?

Right. You'd have to configure it properly but it should at least be trivial after this.

Tested both on EC2 and VirtualBox

Documentation was added to README: https://github.com/obsidiansystems/obelisk/tree/0aaa9c828be84404e9513b56f3abef077b132f61#custom-non-ec2-deployment


Not able to fetch custom user profile claims using oauth2/userinfo API

I am using WSO2 IS 5.2.0. I am trying to access custom claim mobile_verified . I have already created a mapping between "http://wso2.org/oidc/claim" dialect to "http://wso2.org/claims" dialect as mentioned on http://stackoverflow.com/questions/37074119/wso2-identity-server-not-returning-requested-claims-with-oauth-openid . Also, I have added this custom claim to openId scope in OIDC file using registry.
Is there any issue with 5.2 version, because it was working fine with 5.1?

I guess you have made sure that the claim is not empty in the particular user's profile. BTW are other claims returned with the user info response? Can you try with an existing claim like email?

It worked after removing mobile_verified value from mobile property which is mentioned in 3rd line from top. I don't know how, but it is working fine now. Closing this issue.


jest-snapshot: Distinguish empty string from internal snapshot not written

Summary
Breaking change: Add boolean isInline property to SnapshotMatchOptions so

inlineSnapshot: undefined means internal snapshot not written instead of external snapshot
inlineSnapshot: '' means empty string instead of internal snapshot not written

While trouble-shooting #8880 empty string in external snapshot, I found that internal snapshots had similar problem with different effect:

'--ci=false' when inline snapshot is empty string and received value is non-empty string, then instead of ordinary failure, test passes and replaces expected with received
'--ci=true' when inline snapshot was not written, test has ordinary failure with empty string as expected value

This edge case requires custom serializer which writes empty string not enclosed in quote marks
Effect of change on dependent packages without TypeScript that do not upgrade a match call:

external snapshot: no change, because absence of isInline means not inline
internal snapshot: ignore inline snapshot, instead read and write as external snapshot

For what it’s worth, while reviewing GitHub repos for a subset of npm dependents on jest-snapshot I did not find many calls to match method of SnapshotState nor any calls to match inline snapshot
Test plan
Added 2 new e2e tests
Especially because of prettier update to inline snapshot tests, I changed the enclosing punctuation for literal strings from double quote to single quote

Codecov Report

Merging #8898 into master will increase coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff             @@
##           master    #8898      +/-   ##
==========================================
+ Coverage   64.23%   64.24%   +0.01%
==========================================
  Files         275      275
  Lines       11658    11656       -2
  Branches     2845     2844       -1
==========================================
  Hits         7488     7488
+ Misses       3546     3544       -2
  Partials      624      624

Impacted Files
Coverage Δ

packages/jest-snapshot/src/State.ts
0% <0%> (ø)
:arrow_up:

packages/jest-snapshot/src/index.ts
28.85% <0%> (+0.19%)
:arrow_up:

Continue to review full report at Codecov.

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


Should be sqlite now

I checked and it popped up and a db.sqlite3 popped up. Though the code does not seem to change.
Issues #3

I dont think we need to spend the time on this at this stage, revisit if postgres proves troublesome on backups


Support Interactive Media Ads (IMA) in Flutter

Is there an existing issue for this?

[X] I have searched the existing issues
[X] I have read the guide to filing a bug

Use case
Flutter app owners/developers want to monetize their video content with in-stream video ads in line with IAB's VAST/VMAP specifications. Google's Interactive Media Ads SDK is a popular client library choice for publishers to do so in line with industry standards. Currently, there is no officially supported Flutter IMA plugin.
Proposal
Requesting official Flutter support for IMA SDKS on iOS & Android platforms. Initial request is to support the client side architecture of IMA SDK.

We are also looking for a long time, when can we get the official IMA SDK for flutter?

looking for ad support in video player

Hi, we're in urgent need to implement IMA Ads in our apps, is there an estimate for when the in-development interactive_media_ads plugin will be available for basic public use?

Is Flutter web support planned?

@sapphire008 This issue is only tracking support for Android and iOS.

This can be closed since the plugin now covers basic support of the client side for Android and iOS.


Add the catalog code

All of the data comes from environment variables passed into the docker container. They get substituted in config.js.tmpl, and the result overwrites the existing config.js.

Looks like I missed a few files; will send out a new PR instead.


Import docs for vnext

This should allow us to create PR's that contain both code and docs updates - which should make it easier for us to review the UX impact.
When we make a release, we can make a PR to the rancher/rancher.github.io repo
(and yes, we'll need to make sure we don't loose fixes that are made there)

BTW - I test this not by installing Jekyll and ruby, but by adding a github pages setting to my fork - that way the rendering is done by github.

@SvenDowideit Jekyll is a pain. Rendering this with Github would be awesome to document.

and boom, we have make docs

Even better!


Stop using glsl150 resources for now.

While testing out rviz, we noticed that a bunch of the GLSL150
resources could not be properly loaded by rviz_rendering/OGRE.
This was particularly noticeable by inserting a LaserScan plugin,
then trying to run the dummy_robot_bringup.launch.py .
At the moment I honestly don't understand why this is a problem, but
disable GLSL 150 for now so we can have working laser scan
visualization.
Signed-off-by: Chris Lalancette<EMAIL_ADDRESS>This essentially undoes the main thrust of #668 ; FYI @pijaro .  With this fix in place, this should close #805 .

CI:

Linux
Linux-aarch64
Windows


feat: add temporal operations

Is your feature request related to a problem?
adding the time_from_str to library
Desired solution
add the functionality to library
Possible alternatives (optional)
No response
Screenshots (optional)
No response
Additional Context (optional)
No response

:tada: This issue has been resolved in version 0.27.0 :tada:
The release is available on:

v0.27.0
GitHub release

Your semantic-release bot :package::rocket:


"function invocation on type 'typedesc' is not supported" error when trying to invoke some invalid function on a type

Description:
$Subject
eg:
string s = string.create(x);

function invocation on type 'typedesc' is not supported

Since convert function is available, I think the error message should be changed, because we can't say function invocations are NOT supported.

For the above code, now the error message has changed to "undefined function 'create'"


feat: Add get workflow-instance command [CORE-2740]

Adds a dafni get workflow-instance command for viewing information about a workflow instance e.g.

Looks good. Just one final thought, will a publish and visualise step also show the outputted dataset ID? In your screenshot it's empty

Yes your're right, it should be visible, I missed it in the json - it is the same as publisher just its named visualisation.


Develop

Small optimization regexp for rows with a lot of columns with datetime:
it is enough to compile regexp once

 Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.You have signed the CLA already but the status is still pending? Let us recheck it.


How do you compile in Windows?

In VS Code I'm using what looks like the official extension for running make.
This is the Makefile. It is the out of the box Makefile from the Windows version downloaded from the new official site.

all:
	cl $(COMMON) testxml.cc                 ../bin/mujoco210nogl.lib
	cl $(COMMON) testspeed.cc               ../bin/mujoco210nogl.lib
	cl $(COMMON) compile.cc                 ../bin/mujoco210nogl.lib
	cl $(COMMON) derivative.cc /openmp      ../bin/mujoco210nogl.lib
	cl $(COMMON) basic.cc ../bin/glfw3.lib  ../bin/mujoco210.lib
	cl $(COMMON) record.cc ../bin/glfw3.lib ../bin/mujoco210.lib
	cl $(COMMON) simulate.cc ../include/uitools.c ../bin/glfw3.lib ../bin/mujoco210.lib
	del *.obj```

This is the error.

```Building target "" with command: "make.exe -f "C:\Users\ooo\Documents\mujoco210\sample\Makefile""
cl /O2 /MT /EHsc /arch:AVX /I../include /Fe../bin/ testxml.cc                 ../bin/mujoco210nogl.lib
process_begin: CreateProcess(NULL, cl /O2 /MT /EHsc /arch:AVX /I../include /Fe../bin/ testxml.cc ../bin/mujoco210nogl.lib, ...) failed.
make (e=2): The system cannot find the file specified.

make: *** [C:\Users\ooo\Documents\mujoco210\sample\Makefile:4: all] Error 2
Target  failed to build.
Building target "" failed.```

I am able to build on Windows now using the x64 Native Tools Command Prompt for VS 2019.
Going to the sample dir and typing make.
There was a time when the files would not compile so I created a directory called obj in the sample file, which made it run.
@saran-t
@yuvaltassa
I know I ask a lot of questions, but do close and leave an answers when I figure it out. I don't know if I'm muted or something for asking too many questions.
My current problem is What are the units is the mjcb_act_dyn callback using?, if you want to through me a bone.

@MotorCityCobra
I had this error:
C:\mujoco-2.1.1\sample>make
g++ -O2 -I../include -L../bin -std=c++11 -mavx -pthread -Wl,-rpath,'$ORIGIN' testxml.cc    -lmujoco210nogl                             -o ../bin/testxml
C:/Program Files/Webots/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/11.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lmujoco210nogl
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:4: all] Error 1

Any suggestions on how to solve this?


[Question] Are async operations completed before calling the next then?

Lord have mercy on my pitiful code...but please cut me some slack. Still learning bluebird.
if (user) {
					redis.del('username:' + user.RPG.username.toLowerCase());
					if (user.RPG.channel) {
						redis.get('channels:' + user.RPG.channel)
							.then(function(data) { // Remove user from their channel on Redis
								if (data) {
									data.splice(data.indexOf(user.RPG.username.toLowerCase()), 1);
									redis.set('channels:' + user.RPG.channel, data).then(function(a, b) {
										//Notify everyone else in this Redis channel that this user has left.
										data.forEach(function(value) {
											redis.hgetall('username:' + value, function(error, data) {

												publish(data.server, {
													user_id: data.user_id,
													message: 'OQ ' + user.RPG.user_id
												});

											})

										})

										delete users[socket.user_id];

									});

								}
							}).then(function() {
								console.log('LERRRROY JENKINGS');

							});
					} else {
						delete users[socket.user_id];
					}
				}

See the Lerrory Jenkings log at the bottom inside that then function? Notice how I have code above that that is async? ForEach, redis.hgetall, and publish which is a function referencing back to use redis.publish.
Anyways, my question is will the text lerrror jenkings only be called AFTER ALL those operations in the previous then have completed? Even if they have a ton of async operations in them already?

Questions belong on StackOverflow or IRC or the DISQUS comments in the API docs and not in the issue tracker.
The issue tracker is for feature requests and bug reports as well as discussing the future of the library. Not for support questions.
This is all written in the contributing.md file and in the readme as well as on the website.

Some reading:  http://stackoverflow.com/questions/22539815/arent-promises-just-callbacks promises aren't magical, they work by using return value of functions.


neeview: Update to version 39.5

@Kazanami hope you are doing alright. I am closing my old prs, this is one of them. It is outdated anyway because neeview latest version is 41.1 but 32bit is still 39.5 so split the 32bit version into a different scoop?


Localization of the addon

Currently some strings as the addon description are hardcoded in english.
As far as I understand with the help of the i18n API should both Chrome and Firefox be able to use the correct language for each user.
For the start german and english would be nice.
I tried to implemented it but I didn't understand it yet, sorry. Here a general documentation about this.

We will do German and French. The content will simply be the same language as the page (FR on rts.ch, DE on srf.ch and nzz.ch).
Did you notice anything other than the extension description in English?

I only tested it with a german (browser) build but I didn't saw anything else.


PLAT-115998: Add a11y support to Slider, SliderButton, and IncrementSlider

This PR adds a11y support to Slider, SliderButton, and IncrementSlider.
Slider and IncrementSlider added a function that focuses slider when the user starts to drag.
SliderButton added SliderButtonDecorator to read out changed values when a user drags.
Enact-DCO-1.0-Signed-off-by: Mikyung Kim<EMAIL_ADDRESS>

LGTM


All keys are unresponsive when using HardwareKeyboard in Flutter

I have the android device you see in the picture. This device has an orange button on the back. I want to trigger a certain function when this button is pressed. I just try to use the HardwareKeyboard in Flutter as below and get a solution, but I don't get a response.
class MyHomePage extends StatefulWidget {
  const MyHomePage({Key? key, required this.title}) : super(key: key);
  final String title;

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  int _counter = 0;

  @override
  void initState() {
    HardwareKeyboard.instance.addHandler(key_handler);
    super.initState();
  }

  bool key_handler(event) {
    print(event.physicalKey.debugName);

    // In this part, when a button is clicked, it should return certain responses to me.

    if (event is KeyDownEvent) {
      if (event.physicalKey.usbHidUsage == PhysicalKeyboardKey.audioVolumeDown.usbHidUsage) {
        _incrementCounter();
      } else if (event.physicalKey.usbHidUsage ==
          PhysicalKeyboardKey.audioVolumeUp.usbHidUsage) {
        _decrementCounter();
      }
    }
    return true;
  }

  void _incrementCounter() {
    setState(() {
      _counter++;
    });
  }

  void _decrementCounter() {
    setState(() {
      _counter--;
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: <Widget>[
            const Text(
              'Hit a Volume UP/Down key:',
            ),
            Text(
              '$_counter',
              style: Theme.of(context).textTheme.headline4,
            ),
            TextField(
              decoration: InputDecoration(
                  hintText: "Once touch here and show a software key."),
            ),
          ],
        ),
      ),
    );
  }
}`

The code above increments or decrements the count by 1 unit when the volume up and down buttons are pressed. It works.
The button I need is known as f4 on the back. But when I click on this button I don't get any response.
I think Flutter has this problem because the codes of this part are not complete. Because there is no response from any button except the volume up and down buttons, the back button.
There is no Plugin that I can find to solve this issue. There used to be a plugin called hardware_buttons. Currently unavailable. Because it was written 3 years ago and the update has not arrived. I think since Flutter added HardwareKeyboard to itself, it was no longer needed.
https://stackoverflow.com/questions/75126084/all-keys-are-unresponsive-when-using-hardwarekeyboard-in-flutter
Please write all the guesses you know and guess in the comment section.

Hello @AlakbarHeyderov. Does your key_handler function get called? If so, what is the output of the logs printed there?

Hello @AlakbarHeyderov. Does your key_handler function get called? If so, what is the output of the logs printed there?

Hello, It only responds to the volume up and down buttons. Other buttons do not respond.

The device is a Chinese-made device that we bought under the name X6. Since Flutter also failed to get the information I needed, I decided to write the Plugin I posted below.
https://pub.dev/packages/hardware_buttons_find_flutter


explain cookie handling with ease

I have a server with access via username/passwd. It returns a session cookie. How I handle this situation with ease?

ease does not have any special support for cookies at the moment. However, hyper does support cookies so you can get the cookie from the HyperResponse in Response. Something like this might work, but I haven't tested it (import Cookie from hyper):
response.hyper_response.headers.get::<Cookie>()

Now this is a fairly common use case I guess, so if this work I'll add a convenience method to Response that does basically this to simplify it a bit. Thanks for raising the issue :)


Sort log view from newest to oldest

Instead of showing the oldest logs and having to scroll down it might be better to have the logs default to being sorted from newest to oldest.

:+1:


[Bug]: Some strings are not translated

Describe the Bug
The strings shown below are not in Japanese and do not exist in Crowdin.

Reset Settings
"Reset".
Setting Yes/No
"Yes" "No"
Save Settings
"Save Changes".
Tab to cancel unsaved settings
"Cancel & Discard Changes"
Player Coordinates
"Player coords".
Warning when canceling unsaved settings
"Changes Not Saved".
Warning text when canceling unsaved settings
"Are you sure..."
Server Tick
"Server tick".
Unknown module name
"Invaild Value!"
Error
"Error!"
Failure of translation
"text.betterf3.line.blank"
"text.betterf3.line.blank2"

Steps to Reproduce
(As an example, here is a bug in the translation of "Reset".)

Open Better F3 settings.
Select the General Settings tab.
Untranslated string "Reset" appears from English.

Expected Behavior
The correctly translated string is displayed.
Or, the corresponding string is submitted to Crowdin's translation request.
Screenshots

Modloader Type
Fabric
Modloader Version
0.48.0
Mod Version
1.2.5
Log Output
No response
Additional Context
No response

Just quickly looking at this, it looks like the issue is Cloth Config (https://github.com/shedaniel/cloth-config) being untranslated for Japanese. I will try to look through the program and see if I can fix translation issues outside of Cloth Config.


Error when withState is composed

Deps:
"@babel/core": "^7.4.4",
"incompose": "^4.0.0-alpha.1",
"inferno": "^7.1.12",

To reproduce:
import { compose, withProps } from 'incompose';

export default compose(
  withProps({ foo: 'bar '}),
  withState('state', 'setState', null),
)(() => Dummy template);

In this case withProps hoc will try to call returned class from withState as a function.
Babel will throw error: TypeError: Cannot call a class as a function

PR: https://github.com/zanettin/incompose/pull/24

deployed on version 5.0.0. thanks for your contribution 🎉


B21575-INT3B-add order type

Agility ticket
B21575
Previous INT PR's
14211
Main PR's
14206
Summary
Main PR was updated to:

fix broken tests
fix linter errors

This PR was created install into integrationTesting the commits recently made in the main branch.
Testing
Per the changes listed, there is no functional change and therefore nothing to test.

Warnings

:warning:
This PR does not include changes to unit tests, even though it affects app code.

  Generated by :no_entry_sign: dangerJS against f7a7064e10f55e17d8dd35d8f0a38c42e8506828

Test coverage on server failed.
Last run: Wed 11 Dec 2024 10:34:59 PM UTC
Refer to this report to see coverage details for the server app.
Documentation for test coverage can be found at this link.


"which"

The installer script claims to require the which command, but which is never used. Not all images have which, so the script can fail unnecessarily.
As a workaround, I'm simply doing curl https://.... | grep -v "need_cmd which" | sh, which at least is not too bad for now.

Nice catch. I'll fix this.


add vid none check

For some reason youtubedl playlist entries can be None, and it sometimes causes a crash. So, I added a simple none check.
This worked once, surely it will always work :)
closes #1

Merging


Feature: Add command line access

It would be useful if we could access the go-ipfs command line from the app

Hello @Hazae41! Do you mean adding ipfs to the PATH so you can access it through the command line? If so, it's in the works and this is a duplicate of #727 😄

No, sorry, I mean a command line in the GUI itself

@hazae41 how'd you suggest us to do so?

Maybe a new page in the webui
or a new window

But why would you need this if you'll be able to access it through the command line?

We can access the IPFS configuration through the webui, why not the command line?

I don't know to which point it would make sense to have a command line interface available through a web page when you can just use it on your terminal. Could you please explain some use cases?
/cc @ipfs-shipyard/gui

Well sometimes end-users need to allow HTTP origins and they are given commands to type

The cases where the web ui shows an example shell command, are those times where the web ui can't do the action required. The user must use the command line to do them, as the http api  is unavailable either due to CORS config or the daemon not running.
It might be neat to have a power user feature that lets you try out IPFS commands in the browser. We could use that as an opportunity to teach the user more about the meaning of the commands and how to interpret the responses.
It'd be a significant chunk of work. @hazae41 have you got more info on what situation you ran into that made you see the need for this? What's was your use case?


meta backup: don't leave out new MetadataModel

During meta backup, we explicitly select which MetadataModel to include in or exclude from a metadata snapshot.
The current issue is we don't enforce a review of selected MetadataModel list, when a new type of MetadataModel is added. That is we may forget to include new MetadataModel type in metadata snapshot when they should be, e.g. currently UDF, system params are left out.
Need to enforce a check after adding new MetadataModel.

A hack that will possible work:

Introduce a private marker trait as a super trait of MetadataModel.
Write a macro of for_all_metadata_model and use this to implement the marker trait for all models.

Then we ensure that for_all will cover all implementors of MetadataModel.


motu_requests docstring does not describe buffer

We should add a short description of what buffer is.
https://github.com/COSIMA/regional-mom6/blob/b0e13c5f6a45eec9451ea2165f19ae0fe9176aed/regional_mom6/regional_mom6.py#L272

The Motu Requests function is sadly deprecated anyway. I've been lazy and left it in the repo hoping that whenever Copernicus finishes their new API we can salvage it. Their new API is in Beta state and in my experience (as of Jan anyway) is that it's still a bit unreliable and under construction. In the meantime should we remove this function entirely and just dig through the git history when we want to reference the code?


Failure to recompile upon (certain) parameter changes

After running a devito model with a certain parameter set (i.e. DEVITO_AUTOTUNING=off python myfile.py), re-running the model with a modified parameter (i.e. DEVITO_AUTOTUNING=aggressive python myfile.py) results in an OSError:
  File "/data/devito/devito/operator.py", line 435, in apply
    self.cfunction(*arg_values)
  File "/data/devito/devito/operator.py", line 233, in cfunction
    self._lib = load(self._soname)
  File "/data/devito/devito/compiler.py", line 317, in load
    return npct.load_library(str(get_jit_dir().joinpath(soname)), '.')
  File "/home/rhodri/anaconda3/envs/devito/lib/python3.6/site-packages/numpy/ctypeslib.py", line 157, in load_library
    raise OSError("no file with expected extension")

With certain parameter changes the variable self._soname is modified and hence self._lib = load(self._soname) (line 233 of operator.py) points at a new shared object. However, this shared object does not get created resulting in the OSError. This error occurs when any parameter modification results in a self._soname different from the previous compilation.
This object is not created since the variable recompiled, computed in the jit_compile method of compiler.py, is returned as False upon such parameter changes. Hence, compiling and running then modifying any parameter that results in a new self._soname and re-running results in this error.
Clearing the cache and then recompiling (which should always result in recompiled=True) is a workaround to this issue.
Modifying the function compile_from_string() such that it returns values of True following the modification of any parameter resulting in a new self._soname would seem an appropriate fix?

Oh, so I see compile_from_string() is not actually a Devito function which potentially complicates things a little?

I've now created a branch fix_recompile. This, along with a CodePy patch seem the cleanest way of solving this issue.
My suggested change is modifying, in jit.py,

    def calculate_hex_checksum():
        try:
            import hashlib
            checksum = hashlib.md5()
        except ImportError:
           ...

to

    def calculate_hex_checksum():
        try:
            import hashlib
            checksum = hashlib.sha224(name.encode('utf-8'))
        except ImportError:
           ...

CodePy in its current form seems to have an issue when the same shared directory is used repeatedly?
Thoughts?

this should be fixed.


[Snyk] Security upgrade Jinja2 from 2.9.6 to 2.11.3

Snyk has created this PR to fix one or more vulnerable packages in the `pip` dependencies of this project.
Changes included in this PR

Changes to the following files to upgrade the vulnerable dependencies to a fixed version:

requirements.txt

Vulnerabilities that will be fixed
By pinning:

Severity
Priority Score (*)
Issue
Upgrade
Breaking Change
Exploit Maturity

658/1000  Why? Proof of Concept exploit, Recently disclosed, Has a fix available, CVSS 5.3
Regular Expression Denial of Service (ReDoS) SNYK-PYTHON-JINJA2-1012994
Jinja2:  2.9.6 -> 2.11.3
No
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.
Some vulnerabilities couldn't be fully fixed and so Snyk will still find them when the project is tested again. This may be because the vulnerability existed within more than one direct dependency, but not all of the effected dependencies could be upgraded.
Check the changes in this PR to ensure they won't cause issues with your project.

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

Coverage remained the same at 100.0% when pulling 6dcca885769a943a9c1e1e87eee8d3dfb5785b70 on snyk-fix-220632d801c913465e566922fb81a6a7 into a85fed697d40721b1fb5b8a96bf4fe8b4ee44e69 on master.


💅 metadata banner

close #140
didn't run indexer, only migration - type - codegen

https://github.com/kodadot/stick/tree/arrow-stick
Just fyi

https://github.com/kodadot/stick/tree/arrow-stick
Just fyi

Nice! Does it run?
Let's create a new build for rococo if so

Nice! Does it run?

Hope I finish it by today

I've tested, it runs


Improve default security posture of terraform sample

The attributes added here are recommended by many Terraform scanning tools. Hopefully by improving the example, we can teach developers about the best practice.

@microsoft-github-policy-service agree


Wrong type guessing on bulk import

Not a error, but to clarify on doc:
I tried this morning to bulk import all indexes from one cluster to a new one.
To avoid having to move all data into an intermediate file and then to the cluster I did:
$ elasticsearch-dump --all=true --bulk=true --input=http://fromhere:9200/ --output=http://tothere:9200/

It worked,  but we have some indexes with geoshape and geopoint field types that had been converted from:
"polygon" : { "tree_levels" : 10, "type" : "geo_shape" },
"center" : { "lat_lon" : true, "type" : "geo_point" },

to:
"polygon" : { "properties" : { "type" : { "type" : "string" }, "coordinates" : { "type" : "double" } } },
"center" : { "properties" : { "lon" : { "type" : "double" }, "lat" : { "type" : "double" } } },

If you first create the indexes mappings (one by one), then the --all=true --bulk=true --input=host1 --output=host2 will work fine.
It would be nice to be able to limit the number or rows to dump in a run.
$ elasticdump --limit=1000 --offset=350000 --maxrows=20000 --input=host1 --output=host2 --bulk=true_or_false
By the way, congratulations, this is a great tool !!

Yep, for this exact reason we have the mapping step, and recommend that you use that first.  I'll add a separate issue (https://github.com/taskrabbit/elasticsearch-dump/issues/96) to make a bulk-mapping option.
Regarding the limit/offset, you can write a --searchBody query to sort and limit however you want

I have a 220Gb json file with a Type backup and what I want to index into a new index is a subset, so --searchBody does not plays well there.
Anyway, I should congratulate you for this cool tool. Thank you!


Steps to run client

cd $GOPATH/src/github.com
mkdir marcoarthur ,cd marcoarthur/ ,git clone https://github.com/marcoarthur/gorjun.git
cd $GOPATH/src/github.com/subutai-io
rm -rf gorjun
ln -s ../marcoarthur/gorjun
It will be helpful at least for me, in the future we can improve it and add to wiki or main page.
cd gorjun-perl-cli
prove -v t/test_cover.t

This steps should move to this repo https://github.com/marcoarthur/gorjun-perl-cli, @marcoarthur can you move to wiki?


Create Bitcoin Diceglyphs

The directory name needs to be all lowercase.

Hey... please commit...
On Tue, 6 Feb, 2024, 2:15 pm Moon, @.***> wrote:

The directory name needs to be all lowercase.
—
Reply to this email directly, view it on GitHub
https://github.com/unisat-wallet/ordinals-collections/pull/11#issuecomment-1929032596,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/BFITWVET4JZIG544XI7NP6LYSHURZAVCNFSM6AAAAABBWMPUDSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMRZGAZTENJZGY
.
You are receiving this because you authored the thread.Message ID:
@.***>


osquery: Add version 5.0.1

Added manifest for osquery.

@pratikpc  Done 👍  Sorry for being late on this one.

Is this a CLI application? If yes please shift this to Main bucket.
Also, always create a new branch when making PRs.


feat(typeorm): add typeorm CLI and refactor typeorm config

PR Checklist
If you have any questions, you can refer to the Contributing Guide
What is the current behavior?
dup config orm file.
Issue Number
None.
What is the new behavior?
refactor orm config file, add CLI command. and document.
Does this PR introduce a breaking change?

[ ] Yes
[x] No

Specific Instructions
Are there any specific instructions or things that should be known prior to review?
Other information

@ysfscream PTAL

@oceanlvr Please remove the src/database/database.png. This is a PNG file that needs to be referenced during development and does not need to be in the src directory.

@oceanlvr Please remove the src/database/database.png. This is a PNG file that needs to be referenced during development and does not need to be in the src directory.

Yes, it is only used on dev mode.
But I think that picture is necessary, which makes the developer clear knows the current database model.
And best practice I think is to keep a CHANGELOG.md record the migration of the database.
those files will not increase the size of those final packages.

Nice work!


[WIP] Added auth page

Adding authentication page

I'm otherwise ok with the code.

@wojta Mind giving another look?


Extension crashes when user save unchanged file before the previous build complete

Add plugin
Build extension with NODE_ENV=development vite build --watch
Load the extension in a browser
Change content script or service worker file and save
Save again before the build completes

Extension crashes 💥
Acceptance criteria:

Extension should not crash

Added buffer time to fix extension crash issue
Refresh the current tab only after extension is reloaded


miss spelling in documentation

On page http://www.typescriptlang.org/Handbook
find buton
Replace button

If you read the content, you'll see that this isn't an error. :smile:
By the way, any handbook bugs can be filed on https://github.com/Microsoft/TypeScript-Handbook/


Change unit tests that force ooms to specify the oom type (gpu|cpu)

Now that #10013 is merged, we can differentiate between cpu and gpu when forcing ooms in unit tests.
As we add support for host memory retries, there is the potential that some forced ooms in unit tests will cause ooms in host memory retry loops, instead of the intended gpu retry loops.  This already happened with GeneratedInternalRowToCudfRowIteratorRetrySuite, which was fixed by #10087.
To prevent this, this patch changes all of the unit tests to use the longer form of RmmSpark.forceRetryOOM|forceSplitAndRetryOOM and explicitly specify the oom injection type.

build

build

build

build

Thanks @gerashegalov!  I've updated copyrights.  Can you take another look?


updateTargetValue bug

Hi,
There is a small bug in updateTargetValue.:
private _updateTargetValue() {         //donot move camera if av is trying to clinb steps         if (this._vMoveTot == 0)             this._avatar.position.addToRef(this._cameraTarget, this._camera.target);
Something is missing when you want the avatar to look in one direction or another as well as the camera with a different beta and alpha and radius.
Currently, my character can be anywhere on the terrain (it works on load), but the rotation of the character cannot be changed on scene load, nor can the beta, alpha and radius of the camera.
If I save the position, rotation of the player and the camera, so that when the player reloads the game later, he finds the same position and rotation, it does not work. only the position is taken into account, but the player will always look in the same direction and the camera will have an alpha and beta and radius always the same.
put another way. If I want to rotate my character when loading the game, it does not work. If I make my camera with a beta, alpha, radius in one way, it is not taken into account. because the updateTargetValue function re-modifies my values. The character has a default rotation as well as the arcRotateCamera.
How to correct this? Thanks.

Hi @dad72 ,
In mode 0 the camera controls the rotation of the avatar  and is also controlled by rotation of avatar.
Try mode 1 and see what happens.
https://github.com/ssatguru/BabylonJS-CharacterController#to-change-mode

I don't use isometric. Mode 0 is what I need.
I'm talking about the rotation of the avatar when loading the game which always looks in the Z position. (the camera is well behind the avatar in the third person.)
If I save the player's position and rotation in a database before he leaves the game and reloads the game, his rotation in Y is not taken into account (the position is taken into account, but not the rotation), the avatar always looks in Z regardless of the rotation values saved.
If I rotate the avatar to look south or west, when the game loads it will always look north by default.
I tried adding the rotation values in the updateTargetValue() function and that fixed the problem, so I guess something is missing here.
I also tried to remove this function in the call of the Start() function and that also corrected the problem.
I think something is missing in updateTargetValue()
Thanks

4.4.3 alpha has following methods to help save and load the Character Controller settings
getActionMap()
getSettings()
and
setActionMap()
setSettings()
See get , set settings
Try and let me know if that works

Ok, I updated to the latest version. I took the liberty of rewriting the class in jS ES6.
Everything works with the update.
Thanks Ssatguru


How to change the black color of  DrawerHost

Hi
I am trying for few days change the DrawerHost black color I want it to be transparent no any color
So i added this code by overriding the main DrawerHost code
Here is my code
Here is my code
I tried to make it whiote but it dont looks good for performance its like lighting and swiching its nott good
so maybe you can help me fixing it
Regards

Hi, I can't access that file from where I am.  GitHub repos are better.
Are you looking for .LeftDrawerBackground?

Hi
I am talking about the .RightDrawerBackground
Here is my code

I want to remove the black background color from the slider
Regards

When you say "slider", you mean the semi-transparent bit which overlays the main content?

Hi
Thanks for fast reply
i mean this << https://i.stack.imgur.com/8QkRn.png >>
This black on the page i want it to be normaly without any color
Regards

Hi ButchersBoy
Do you know any solution?
Regards

@Doughouzlight That color is hard coded in the control's template.
The simplest way to change it will be to re-template the control in your project. I would start by copying in the existing template and modifying it to suit your needs.

Hi @Keboo
Thank you for respond i really tried that all  i could not find how to make it black and change the speed of the DrawerHost during the opening and the closing of it.
i wrote this lines of code >>> http://prntscr.com/ft5ee8
I really will be thankful if you can write me here 3 lines of code to fix this problem
All i need make the black color to transparent and make it opening and closing fast like telegram app
Regards
Elin Doughouz

@Doughouzlight I think you are making it more difficult by trying to modify the existing template in C#. It is much easier to simply replace the template with one of your own in XAML.
You can put the following in your App.xaml. It is largely a copy and paste of the original template.
A few things worth pointing out:

The style is BasedOn the original one. This allows all of the setters from the original style to propagate into this one as well.
I changed the {StaticResource BlackBackground} to be {StaticResource OverlayColor}. This new brush is declared in the resources of ControlTemplate. You can change this to be whatever color you want (currently set to just be transparent).
There is a Opacity being set on the overlay, both when it animates in and when it animates out. If this is not desirable, you can simply remove these (one of the perks of replacing the template is you can do whatever you want with it).

<Style TargetType="{x:Type local:DrawerHost}" BasedOn="{StaticResource {x:Type local:DrawerHost}}">
    <Setter Property="Template">
        <Setter.Value>
            <ControlTemplate TargetType="{x:Type local:DrawerHost}">

                <ControlTemplate.Resources>
                    <!--  It would be really nice to be able to deactivate this / set the color yourself. I would prefer it disabled, too, for my use case. Due to the darkening it is hard to see the effect of the settings i placed in the Drawer. the user has to close the settings everytime to see the effect.

I realize this is an old ticket, but I figured I would get it written up if anyone wants to tackle it.
The changes are are very similar to what was done for the DialogHost in #1364.

We need a new dependency property for the OverlayBackground rather than the hard coded black
We should default the value to black in the default style to keep existing behavior. This will then allow people to override the color as they see fit.
We should as a small sample of this in the demo app (even something as simple as a toggle that switches between the default and like the primary hue brush would be fine)


Make Event.ConsoleOutputRecorder.Option[s] a struct instead of an enum.

When I'd originally assembled the Event.ConsoleOutputRecorder.Option enum, I assumed that it would behave much like a set of flags (à la C bitmask enums.) As it has evolved, it has taken on associated values and ceased to behave like an option set, so it really should be a struct. This PR changes it to a struct, renames it from Option to Options, and of course updates call sites.
Checklist:

[ ] Code and documentation should follow the style of the Style Guide.
[ ] If public symbols are renamed or modified, DocC references should be updated.

@swift-ci please test


Set Up Workflow Management in Cloud Cockpit

Tutorials: https://developers.sap.com/tutorials/cp-starter-ibpm-employeeonboarding-1-setup.html
Step 2: Set up your account using Booster
Screenshot for Booster creation needs to be updated
Expected Result:

Actual Result:

Tutorial is updated with the changes


[Bug]: Editing Wordlist type after initial upload does not actually change it for the scripts

Version of the software
0.1.20
Operating system
Microsoft Windows NT 6.2.9200.0 | Server 2012 DC
Browser
Chrome 91 / Opera 77.0.4054.203
What happened?
If you add a wordlist as say Email or Default and change it to Credentials jobs will give an error saying the Wordlist is not a supported type.
It would need to be removed and readded using the correct type.
Relevant LoliCode if needed
No response

After further testing it looks like its more when you import a config that supports a different wordlist type and resave the config with the proper type.  It fails to parse the Username/Password and reports it as :


Pool IO buffers

This is a simple implementation that enables pooling the byte buffers used in Jedis IO filtered stream classes. It is non intrusive and easy to disable, yet should improve memory allocation pressure on large applications.
to use : nothing special to do by default. If you use a custom buffer size, call BufferPool.setPooledBufferSize with this buffer size.
to completely disable : call BufferPool.setPooledBufferSize(-1)

Cool idea!
I'd like to see the result of benchmark, memory usages, GC count, ops, etc.
@mauhiz Do you mind to do benchmark between before vs. after this PR, or I'll do it?

@HeartSaVioR if you have a test harness ready, by all means please go ahead.

@mauhiz
Looking into your changes deeply, BufferPool.obtainBuffer() is used just for RedisInputStream and RedisOutputStream, so actually it only helps when you use much of Jedis instances.
(In other words, it doesn't help when you use JedisPool with proper configuration.)
Could you elaborate your use case?
Thanks in advance!

@HeartSaVioR You are right, I was under the wrong impression that RedisInputStream and RedisOutputStream were transient. I should have been looking at my head dump histogram more closely. :bow:
Therefore, I don't think the current implementation has issues with regards to buffer management. Sorry and thanks for your time.

@mauhiz Thanks for following up!
When we use string version of Jedis methods, we need to initialize byte[] for each operations.
If we can pool it, it should be helpful.

What do you mean? The String to byte[] conversion in SafeEncoder.encode ?

@mauhiz Yes, right. Actually its size is not deterministic, so it's just an idea regarding speed vs space.


Wrong value in the template regarding Install-VulnAssesmentAgent

Describe the bug
This is the template: https://github.com/Azure/Azure-Security-Center/blob/main/Workflow automation/Install-VulnAssesmentAgent/azuredeploy.json
There could be an error in the value 'virtualmachines' in line 97. It seems should be 'virtualMachines'.
To Reproduce
Steps to reproduce the behavior:
When deploying this: https://github.com/Azure/Azure-Security-Center/tree/main/Workflow automation/Install-VulnAssesmentAgent.
This was the screenshot of the error:

The JSON show a hint of what the issue is:

And the Logic App Code

Based on what we have found is that the above highlighted value in the template should be “virtualMachines” rather than “virtualmachines.
Showing as:

Expected behavior
Change the doc if confirmed it is an error.

Closing this issue as a change was provided. Also, please take a look at the other automations related to the builtin Qualys VA solution.


does ncnn part work or not

Hi,
I've run the C++ code under deploy folder, seems it has wrong result. I'v dig into it, but haven't got any clue yet.
not sure whether is the ncnn model (I use a tool transfer from onnx) problem.
Please help me out, thanks!

@toprince  Hi, I already pushed third_party and models.
cd deploy/
sh build.sh
sh run.sh

@toprince  Hi, Did it solve your issue?

Already test ncnn part does work ,  Issue wil be closed