text:
Pausing while preserving context does not work

While integrating your view into my existing app I had the problem of OpenGL returning a BAD_SURFACE error because the surface was already connected to another render thread. I debugged and found out, that the resume() function of RecordableSurfaceView was called twice during the startup of my app. I prevented it from happening by only executing the code in resume() if mPaused is actually true. With this fix, I can initialize the view correctly and record videos. However, pausing the app via pause() now does not work.
I get this in the error log:
E/BufferQueueProducer: [SurfaceView - one.realnote.app/one.realnote.app.MainActivity#0] disconnect: not connected (req=1)
E/OpenGLRenderer: [SurfaceTexture-0-26890-1] checkAndUpdateEglState: invalid current EGLContext
And my screen will stay black. Before using RecordableSurfaceView i had preserveEGLContextOnPause on true for my GLSurfaceView. Is there any way to preserve the context while pausing for RecordableSurfaceView?

I am currently testing a fix for this issue.

I am facing the same issue. Did you find any solution for this?

authors: Noltibus krunalpaliwal spaceLenny

repo: spaceLenny/recordablesurfaceview


text:
Character "X" not comming through + change keyboard layout (US -> DE)!

Hi,
I just got my ducky working... however I realized when printing "ABCDEFGHIJKLMNOPQRSTUVWXYZ" that the output sequence will only be: ABCDEFGHIJKLMNOPQRSTUVW
I tryied to print just the letters XYZ and it did not work...
printing the String "YZ" will yield in ZY (letters switched like in the EN keyboard layout).
Tried to print only "X" and this simply yields in no output at all.
What am I  getting wrong here?
Can anyone please give me a hint how to enable the right keyboard layout and how to get the "X" going?
Thanks!

could it be related to #31 ?

@tobozo : Yes it seems to be kind of the same Problem... however in my case it is not the letter "P" that gets stuck but the letter "X" .... smal "x" however works fine.
I have tried different baud_rates in the arduino_wifi_duck.ino
define BAUD_RATE 57200   //"X" missing
define BAUD_RATE 57600   //"X" missing
define BAUD_RATE 115200   //does not work at all
I could solve the keyboard layout problem however! ;-)
Take a look at: https://github.com/BlueArduino20/LocaleKeyboard.BAT

Can anyone reproduce this issue on their builds?
@spacehuhn: Stefan, from your youtube live broadcast together with Seytonic I know that you live near cologne - so do I =D. Would it be helpful to try debug this issue together if you can't reproduce it on your unit? Seems like there is a general problem as it seems to be related to #31 as well. Cheers & keep up the excellent work!

So you're saying that a code like this:
DELAY 500
STRING Testing 123
ENTER
DELAY 100
STRING X
ENTER
DELAY 100
STRING Test finished
ENTER

Will only print:
Testing 123
Test finished

If you can just confirm that, or post an exact reproducing ducky script, I will hook-up my wifiducky stick and my keylogger-ducky and test it for you.

@supersjimmie : Exactly! The above test script exactly reproduces the issue.
moreover the char "X" will also be missing in the middle of a string:
DELAY 500
STRING Testing ABCXYZ
ENTER
DELAY 500
STRING Test finished
DELAY 500
ENTER
will produce the Output:
Testing ABCYZ
Test finished

@supersjimmie : Just curious: could you reproduce the issue on your hardware?

@careyer sorry started at a new job, not enough free time at the moment.  :(
Will do asap!

@careyer I found some time.  :)
Script:
DELAY 500
STRING Testing ABCXYZ
ENTER
DELAY 500
STRING X
ENTER
DELAY 500
STRING XX
ENTER
DELAY 500
STRING Test finished
DELAY 500
ENTER

Result:
Testing ABCXYZ
X
XX
Test finished

So that concludes that there is something different between your setup and mine, that causes your problem.
To start with, I have made a combination of the hardware and the code from this Ducky and the Keylogger. But this mix should not make any difference to the ducky part.
My hardware (real keyboard and the pc) are setup for a US (International) keyboard.
If your layout is so different that your "X" is at another location, we cannot compare 1-to-1.
I use "Serial" for the debugging part at 115k2, and I use softwareserial (in my code defined as "ExternSerial") for the communication between the esp8266 and the Arduino at 57k6.  Please check at least that you don't have a slight difference between the baudrate in the esp code and the arduino code.
Please try 57k6 (57600) because I did notice problems when I used the original #define BAUD_RATE 57200. So I used #define BAUD_RATE 57600 And again, do that in both the esp code and the arduino code.
Please keep us informed.

Ah and now I see that you mentioned a German layout?
So at the position of your X is a C here.
I changed my script to test it with a C (and than again with a Y), same good results.

Hi @supersjimmie : Thank you for testing! Indeed I tweaked a bit in order to be able to use a german keyboard layout - however I also tried with the original US layout. The issue stays the same for both. (The letter X is at the same position in both layouts only Y  & Z are swapped).
I also tried playing around with the baudrate on both sides (Arduino / ESP) and changed them from 57200 to 57600. This also did not cause any change. I am a bit clueless what I can do more to debug and haunt this issue down?

I'm still suspecting the baudrate.  You have an issue with the 'X', while issue #31 is about the 'P'. Now 'X' is hex 58 bin 01010000 and 'P' is hex 50 bin 01011000. So they differ 1 bit. I cannot thing of a reason why, but it looks like something goes wrong there in the serial communication.
Can you try to lower the baudrates extremely to something like 9600?
Also, I once had a slower device instead of the arduino and then I had to put a small delay at the tx (esp) side:
#define TX_DELAY 2
void sendBuffer() {
  for (int i = 0; i < bc; i++) {
    mySerial.write((char)scriptBuffer[i]);
    delay(TX_DELAY);
  }
  runLine = false;
  bc = 0;
}

Perhaps you can try that too?

@supersjimmie your guess was right: I reduced the baud rate on both sides (Teensy + ESP8266) to 19200 baud and everything works flawlessly now! Thanks for your help

Does for somebody the character "&" work?
When yes, which keyboard layout are you using?

@Mr-iX : in german keyboard layout "&" doesn't work either

But for the "&", a lower baud rate doesn't help. It looks like there is something in the Keyboard.cpp wrong.

source: gharchive/issue

authors: Mr-iX careyer supersjimmie tobozo

license: mit

license_type: permissive

license_source: bigquery


text:
only us keyboard layout

In there any way to change the keyboard layout instead of typing a q to get an a on azerty because that is really annoying

If you build it yourself I will say kind "yes" but if you use a prebuild like the CJMCU-3212 board no...
Use this repo:
https://github.com/spacehuhn/WiFiDuck
Be careful you will need to rewire the ESP8266 to the ATmega32u4. It's the reason you can't change the layout on a CJMCU-3212 without modifying the code.

You can also edit the keyboard.h file found in Arduino folder: ...\Arduino\libraries\Keyboard\src\Keyboard.cpp


text:
Add different output formats to more spacectl commands

User Mora, Roberto (Roberto.Mora@experian.com) says:
Currently, spacectl only supports different formats (e.g. JSON) in commands that query data.
It would be nice if commands that cause mutations also support different output formats.
spacectl stack deploy --id my-stack -o json
Incorrect Usage: flag provided but not defined: -o

Currently these commands don't return the results in any format that could be easily parsed to build advanced workflows using the CLI
FREE account stg-experian
Feature URL https://spacelift.io/changelog/requests/en/add-different-output-formats-to-more-spacectl-commands

https://github.com/spacelift-io/spacectl/pull/183

authors: DDSpacelift peterdeme

repo: spacelift-io/spacectl

license: MIT

license_source: github-api


text:
Stack video additions

Description of the change
Testing embedding video into the documentation
Checklist
Please make sure that the proposed change checks all the boxes below before requesting a review:

[X] I have reviewed the guidelines for contributing to this repository.
[ ] The preview looks fine.
[ ] The tests pass.
[ ] The commit history is clean and meaningful.
[ ] The pull request is opened against the main branch.
[ ] The pull request is no longer marked as a draft.
[ ] You agree to license your contribution under the MIT license to Spacelift.

If the proposed change is ready to be merged, please request a review from @spacelift-io/solutions-engineering. Someone will review and merge the pull request.
Thank you for your contribution! 🙇

Deleting PR and will restart branch due to dirty commits for testing the embedded video and unverified commit.

source: gharchive/pull-request

repo: spacelift-io/user-documentation


text:
p2p, proposals, atx: don't broadcast already known data

Motivation
p2p layer uses bounded time-restricted cache for seen messages, as long as the message is in the cache it will not re-broadcast it and will not be passed to the handler. if node receives a message after it was evicted from the cache - it will be passed to the handler and broadcasted again. additionally, p2p layer uses lazy push, that periodically sends ihave message to peers. and if the peer doesn't have the message advertised in ihave - it will ask for it. i suspect that the could be some issues where one peer A evicts message earlier than the other peer B, peer B advertises this message to peer A and the message gets downloaded again.
logs from testnet23 indicate that some old messages were received over and over again, there is not enough metrics to be sure that it is caused by behavior that i described above, but ignoring old message is safer than what we do now.
Changes

ignore previously received proposals and activations

actually ATX, proposals, ballots, blocks and TXs can all be fetched. @dshulyak

actually ATX, proposals, ballots, blocks and TXs can all be fetched. @dshulyak

for the rest i was aware, but i thought that we don't sync proposals. i thought that if hare terminates with some proposals that are not available locally we download block from peers and don't care about proposals

yeah. sorry my bad. the code should've returned nil on known proposals.
at the app level, there is incentive to try harder to push the consensus along. when hare fails, that means tortoise will generate ballots that vote against blocks in that layer for hdist layers.

yeah. sorry my bad. the code should've returned nil on known proposals.
at the app level, there is incentive to try harder to push the consensus along. when hare fails, that means tortoise will generate ballots that vote against blocks in that layer for hdist layers.

@countvonzero can you check please if the last commit works for you? i need to remove that AddProposal so that it can be added in validator before publishing

@countvonzero can you check please if the last commit works for you? i need to remove that AddProposal so that it can be added in validator before publishing

yes. but can you add some comment there to say the proposal will be saved before publishing for future readers? thanks.

bors try

bors merge

bors merge

authors: countvonzero dshulyak

repo: spacemeshos/go-spacemesh


text:
Add ProcessExitGroup to ensure children are killed on exit

Motivation
If the node exits unexpectedly or is killed with SIGKILL instead of SIGTERM it will not kill post services that it spawned.
This PR fixes this by adding a job object that kills processes assigned to it on close. For information on how this works see the official Microsoft documentation on job objects: https://learn.microsoft.com/en-us/windows/win32/api/jobapi2/nf-jobapi2-assignprocesstojobobject and https://learn.microsoft.com/en-us/windows/win32/api/winnt/ns-winnt-jobobject_basic_limit_information
Changes

On windows ProcessExitGroup adds the new process to a job object (itself) and ensures that they are closed when itself is closed
On other systems the ProcessExitGroup only ensures that new processes are in the same process group as the main process.

For windows this ensures that if the main process crashes / is killed all commands started through the ProcessExitGroup will be killed as well. On other systems this is only true for crashes. Killing the node with kill -9 will not cause the child processes to exit automatically. For this they have to listen to signals about their parent and close themselves.
Test Plan

n/a

TODO

[x] Explain motivation or link existing issue(s)
[x] Test changes and document test plan
[x] Update documentation as needed
[x] Update changelog as needed

Would it make sense to add a unit test that would:

spawn process A that spawns process B
kill process A
observe that process B died

wouldn't work on linux (because the code actually doesn't work on nix

Would it make sense to add a unit test that would:

spawn process A that spawns process B
kill process A
observe that process B died

wouldn't work on linux (because the code actually doesn't work on non-windows systems)

I think it's fine to test windows-specific code only on windows :) Just skip/don't compile the test on a different OS.
I realize that the test would be much longer than the implementation, but on the other hand, the code for it is cryptic and prone to regressions :(

This shouldn't be required with https://github.com/spacemeshos/post-rs/pull/141.

Superseded by https://github.com/spacemeshos/go-spacemesh/pull/5201

authors: fasmat poszu


text:
Web tests intermittently timing out

It's not every time.  See here for an example:
https://travis-ci.org/spacetelescope/asv/jobs/69812435
Any thoughts @pv?

I'm not sure it's only Python 3.4, it might have also occurred previously with other versions. Haven't been able to reproduce this on my machine.
The failure appears to be before it has run the tests (no dots in output). Possibly hangs during Selenium initialization --- in which case it's Selenium/PhantomJS bug, probably race condition.
There's however a bug in the tests in that the scope="session" specifier is in the wrong place. That's fixed in gh-288 but I don't think that is related to this issue.

So still a bit of an engima.  Just for more data: I noticed a failure on Python 2.7 where the first dot after the test_web.py is printed.
https://travis-ci.org/spacetelescope/asv/jobs/70935853

Yes, this is probably not easy to weed out...
The first dot being printed in the above job doesn't yet rule out hang during Selenium initialization --- prior to gh-288 the fixture was initialized before each test. Having session-scope may alleviate the issue slightly, however.

Potentially related: https://github.com/travis-ci/travis-ci/issues/3251

Looking at the most recent failure in https://travis-ci.org/spacetelescope/asv/jobs/71682218
it again stalled after outputting one dot. Since this is with single-session selenium, and after fixture init and before shutdown, it then probably either hangs on page load in browser.get, or in httpd.shutdown / thread.join for the preview http server. It seems this can be triggered locally by running multiple instances of the tests in parallel, and it appeared the hang in that case is in condition wait --- probably the condition inside httpd.shutdown that blocks until serve_forever exits. IOW, the Python builtin socketserver seems to fail to terminate for an unclear reason (waiting on socket?) sometimes.
gh-290 plugs these cases by changing the threads to daemon threads, which are shutdown on program exit, and using timed-out joins. Also, it sets timeouts to selenium (afaik, the default is int_max). So hopefully that fixes the issue finally...

The tests still seem to fail, but with the changes in gh-290 at least a traceback was produced:
https://travis-ci.org/spacetelescope/asv/jobs/75030204
On the browser side:
/home/travis/build/spacetelescope/asv/test/test_web.py:71:
>           get_with_retry(browser, base_url)
/home/travis/build/spacetelescope/asv/test/tools.py:355: TimeoutException

and on the server side
127.0.0.1 - - [11/Aug/2015 04:42:22] "GET /jquery.md5.js HTTP/1.1" 200 -
Traceback (most recent call last):
  File "/opt/python/2.7.9/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/opt/python/2.7.9/lib/python2.7/SocketServer.py", line 321, in process_request
    self.finish_request(request, client_address)
  File "/opt/python/2.7.9/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/opt/python/2.7.9/lib/python2.7/SocketServer.py", line 657, in __init__
    self.finish()
  File "/opt/python/2.7.9/lib/python2.7/SocketServer.py", line 716, in finish
    self.wfile.close()
  File "/opt/python/2.7.9/lib/python2.7/socket.py", line 279, in close
    self.flush()
  File "/opt/python/2.7.9/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe
127.0.0.1 - - [11/Aug/2015 04:42:22] "GET /regressions.css HTTP/1.1" 200 -
Traceback (most recent call last):
  File "/opt/python/2.7.9/lib/python2.7/SocketServer.py", line 295, in _handle_request_noblock
    self.process_request(request, client_address)
  File "/opt/python/2.7.9/lib/python2.7/SocketServer.py", line 321, in process_request
    self.finish_request(request, client_address)
  File "/opt/python/2.7.9/lib/python2.7/SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "/opt/python/2.7.9/lib/python2.7/SocketServer.py", line 657, in __init__
    self.finish()
  File "/opt/python/2.7.9/lib/python2.7/SocketServer.py", line 716, in finish
    self.wfile.close()
  File "/opt/python/2.7.9/lib/python2.7/socket.py", line 279, in close
    self.flush()
  File "/opt/python/2.7.9/lib/python2.7/socket.py", line 303, in flush
    self._sock.sendall(view[write_offset:write_offset+buffer_size])
error: [Errno 32] Broken pipe

This seems to have got better via the changes.

authors: mdboom pv

repo: spacetelescope/asv


text:
WIP: Add better usage hints and example for generating remote-services config

Fixes #1127. Provides better usage instructions and and Example while executing the command

@YourTechBud, can you review?

@prakashmishra1598 can we do this for all the generators we have. You can find a list of all generators here: https://github.com/spaceuptech/space-cloud/blob/v0.19.0/space-cli/cmd/modules/generator.go

@YourTechBud Ack. I'll let you know when the changes are done

 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.

@sharadregoti can you confirm if the usage for space-cli generate service command is accurate?

Yes, the usage is correct

authors: CLAassistant YourTechBud prakashmishra1598 sharadregoti

repo: spaceuptech/space-cloud


text:
german model fails to download

After installing spacy, I downloaded the English model
via spacy.en.download.
However, using spacy.de.download to download the German model throws an exception:
sputnik.package_list.PackageNotFoundException: de>=1.0.0,<1.1.0
Any recommendations?
Best,
Florian

Ah. Sorry.
Try now.

Hi,
it's working now. Thanks a lot!
Best,
F

authors: fkuhn honnibal

repo: spacy-io/spaCy


text:
Also need to shop donut column if all deployments failed

@spadgett one more fix.

s/shop/show

repo: spadgett/origin-web-console


text:
Puma in cluster mode does not properly load translations (?)

Hey,
I noticed this strange behaviour on my spree 3.3 application and I can replicate it here because you use puma too. I don't know why it happens and I don't know if it's a puma, spree, rails, i18n, mine problem 😭
The expectation
I want to change an english translation already defined in spree, e.g., spree.quick_search. So I edit en.yml to have something like this:
 en:
   hello: "Hello world"
   spree:
     quick_search: "OVERRIDDEN QUICK SEARCH"

Then, when I visit http://localhost:5000/admin/orders I expect to see this:

The problem
But instead I see this:

You see? Quick search.. did not become OVERRIDDEN QUICK SEARCH.
The fix (?)
After some hours of struggling, I noticed that if I run my rails app without Puma (or with Puma in single mode, no clustered mode) I can finally see OVERRIDEN QUICK SEARCH in the admin page.
Note: this happens in spree backend and spree frontend both.
How to reproduce
I created a fork of this repo with two branches:
Here (https://github.com/delphaber/spark-starter-kit/tree/broken_test) you can test that the translation override won't work.
Here (https://github.com/delphaber/spark-starter-kit/tree/working_test) you can test that the translation override works.
Final thoughts
It's a very very strange behaviour. Have you ever noticed it?

Just a quick thought:  the I18n stuff is loaded once early in the application.  Typically it's loaded when your ApplicationController class (instance) is loaded.  So unless/until you restart the application, you will not see new/changed I18n data.
Interaction with puma and spring will affect how and when the server info is reloaded, too.
Perhaps you've already taken this into account, but it's something that's not mentioned in the I18n documentation and trips up a lot of folks.

Hi! I didn't think about spring because I usually spring stop already when something strange happens 😄
Anyway I removed spring from Gemfile and made sure there was not any spring process alive, but https://github.com/delphaber/spark-starter-kit/tree/broken_test still does not show my overridden translation 😞

authors: delphaber weedySeaDragon

repo: spark-solutions/spark-starter-kit


text:
Fixing NullReferenceException because of readStringUntil

readStringUntil isn't a blocking method and will return null if it can't find 13
64 is like 1/6 of the size of the packet we are waiting (Arduino serialize float as 00.00 (so 5 characters) + the comma separator, so we could easily end up calling readStringUntil way too early.

It seems there is a bug ticket (#1) for this issue, so you will be able to close it as well after this PR.


text:
Add tox to github actions

We presently have a make command to run tox in a docker container on python 3.6, 3.7, 3.8, and 3.9 to test our code. Not sure if having this run in github actions is overkill?

This is already implemented

repo: sparkgeo/stac-validator


text:
Get attribute more clearly

I think It will be interesting if instead
parsed_element.at_css('RESULT').attributes['ID']

I Can write only
parsed_element.at_css('RESULT').id

What you think about this feature ?

Thanks for suggesting an improved API!
Unfortunately, creating methods for attributes like this would conflict with Ruby methods, e.g. Object#class.
If you'd like to discuss other ways to improve the Nokogiri API, I encourage you to join the mailing list and start a conversation there: https://groups.google.com/forum/#!forum/nokogiri-talk
Cheers,
-mike

Also worth noting that there is a shorter way to get at attributes, via the Node#[] method:
parsed_element.at_css("div")["id"]

authors: flavorjones rusikf

repo: sparklemotion/nokogiri


text:
NodeSet#unshift does not exist

Hi @flavorjones, @larskanis, @jvshahid,
Would you accept a PR adding in the NodeSet#unshift method? I noticed that NodeSet has push, pop, and shift, but no unshift. Maybe there is a practical reason why not, or maybe this was just simply forgotten, in any case thought I would ask before making a PR.
Thanks,
Ben

Hi @benhass,
Sorry for not responding sooner. This seems like a perfectly reasonable thing to implement, and I'm not sure why we didn't implement it originally. PR away!

authors: benhass flavorjones


text:
[1.10.6] Error occurred while installing nokogiri

Hello,
we're having trouble to install 1.10.6 in ruby:2.6.5-slim docker image
I see an issue when new patch is applied. Some paths were changed in 1.10.6
root@0f9e302639b8:/app# cat /usr/local/bundle/gems/nokogiri-1.10.6/ext/nokogiri/tmp/x86_64-pc-linux-gnu/ports/libxml2/2.9.10/patch.log

patching file HTMLtree.c
Hunk #1 succeeded at 706 (offset -11 lines).
patching file entities.c
patching file entities.c
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Makefile.in.orig   2019-12-04 06:31:23.930568000 +0900
|+++ Makefile.in        2019-12-04 06:31:26.838389000 +0900
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored

What is the complete output of gem install?

Fetching nokogiri 1.10.6
Installing nokogiri 1.10.6 with native extensions
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.

    current directory: /usr/local/bundle/gems/nokogiri-1.10.6/ext/nokogiri
/usr/local/bin/ruby -I /usr/local/lib/ruby/2.6.0 -r ./siteconf20191204-1216-1iis1sv.rb extconf.rb
checking if the C compiler accepts ... yes
Building nokogiri using packaged libraries.
Using mini_portile version 2.4.0
checking for gzdopen() in -lz... yes
checking for iconv... yes
************************************************************************
IMPORTANT NOTICE:

Building Nokogiri with a packaged version of libxml2-2.9.10
with the following patches applied:
        - 0001-Revert-Do-not-URI-escape-in-server-side-includes.patch
        - 0002-Remove-script-macro-support.patch
        - 0003-Update-entities-to-remove-handling-of-ssi.patch
        - 0004-libxml2.la-is-in-top_builddir.patch

Team Nokogiri will keep on doing their best to provide security
updates in a timely manner, but if this is a concern for you and want
to use the system library instead; abort this installation process and
reinstall nokogiri as follows:

    gem install nokogiri -- --use-system-libraries
        [--with-xml2-config=/path/to/xml2-config]
        [--with-xslt-config=/path/to/xslt-config]

If you are using Bundler, tell it to use the option:

    bundle config build.nokogiri --use-system-libraries
    bundle install

Note, however, that nokogiri is not fully compatible with arbitrary
versions of libxml2 provided by OS/package vendors.
************************************************************************
Extracting libxml2-2.9.10.tar.gz into tmp/x86_64-pc-linux-gnu/ports/libxml2/2.9.10... OK
Running patch with /usr/local/bundle/gems/nokogiri-1.10.6/patches/libxml2/0001-Revert-Do-not-URI-escape-in-server-side-includes.patch... OK
Running patch with /usr/local/bundle/gems/nokogiri-1.10.6/patches/libxml2/0002-Remove-script-macro-support.patch... OK
Running patch with /usr/local/bundle/gems/nokogiri-1.10.6/patches/libxml2/0003-Update-entities-to-remove-handling-of-ssi.patch... OK
Running patch with /usr/local/bundle/gems/nokogiri-1.10.6/patches/libxml2/0004-libxml2.la-is-in-top_builddir.patch... ERROR, review
'/usr/local/bundle/gems/nokogiri-1.10.6/ext/nokogiri/tmp/x86_64-pc-linux-gnu/ports/libxml2/2.9.10/patch.log' to see what happened. Last lines are:
========================================================================
patching file HTMLtree.c
Hunk #1 succeeded at 706 (offset -11 lines).
patching file entities.c
patching file entities.c
can't find file to patch at input line 3
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- Makefile.in.orig   2019-12-04 06:31:23.930568000 +0900
|+++ Makefile.in        2019-12-04 06:31:26.838389000 +0900
--------------------------
File to patch:
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
========================================================================
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.

Provided configuration options:
        --with-opt-dir
        --without-opt-dir
        --with-opt-include
        --without-opt-include=${opt-dir}/include
        --with-opt-lib
        --without-opt-lib=${opt-dir}/lib
        --with-make-prog
        --without-make-prog
        --srcdir=.
        --curdir
        --ruby=/usr/local/bin/$(RUBY_BASE_NAME)
        --help
        --clean
        --use-system-libraries
        --enable-static
        --disable-static
        --with-zlib-dir
        --without-zlib-dir
        --with-zlib-include
        --without-zlib-include=${zlib-dir}/include
        --with-zlib-lib
        --without-zlib-lib=${zlib-dir}/lib
        --enable-cross-build
        --disable-cross-build
/usr/local/bundle/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:402:in `block in execute': Failed to complete patch task (RuntimeError)
        from /usr/local/bundle/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:373:in `chdir'
        from /usr/local/bundle/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:373:in `execute'
        from /usr/local/bundle/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:81:in `block in apply_patch'
        from /usr/local/bundle/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:86:in `apply_patch'
        from /usr/local/bundle/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:92:in `block in patch'
        from /usr/local/bundle/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:90:in `each'
        from /usr/local/bundle/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:90:in `patch'
        from /usr/local/bundle/gems/mini_portile2-2.4.0/lib/mini_portile2/mini_portile.rb:152:in `cook'
        from extconf.rb:365:in `block (2 levels) in process_recipe'
        from extconf.rb:257:in `block in chdir_for_build'
        from extconf.rb:256:in `chdir'
        from extconf.rb:256:in `chdir_for_build'
        from extconf.rb:364:in `block in process_recipe'
        from extconf.rb:262:in `tap'
        from extconf.rb:262:in `process_recipe'
        from extconf.rb:557:in `<main>'

To see why this extension failed to compile, please check the mkmf.log which can be found here:

  /usr/local/bundle/extensions/x86_64-linux/2.6.0/nokogiri-1.10.6/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /usr/local/bundle/gems/nokogiri-1.10.6 for inspection.
Results logged to /usr/local/bundle/extensions/x86_64-linux/2.6.0/nokogiri-1.10.6/gem_make.out

An error occurred while installing nokogiri (1.10.6), and Bundler cannot continue.
Make sure that `gem install nokogiri -v '1.10.6' --source 'https://rubygems.org/'` succeeds before bundling.

In Gemfile:
  rails was resolved to 6.0.1, which depends on
    actioncable was resolved to 6.0.1, which depends on
      actionpack was resolved to 6.0.1, which depends on
        actionview was resolved to 6.0.1, which depends on
          rails-dom-testing was resolved to 2.0.3, which depends on
            nokogiri

What are the complete contents of the mkmf.log file generated during the failed installation?

"gcc -o conftest -I/usr/local/include/ruby-2.6.0/x86_64-linux -I/usr/local/include/ruby-2.6.0/ruby/backward -I/usr/local/include/ruby-2.6.0 -I.    -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wrestrict -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable  -fPIC  conftest.c  -L. -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby  -lm   -lc "
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main(int argc, char **argv)
4: {
5:   return 0;
6: }
/* end */

"gcc -I/usr/local/include/ruby-2.6.0/x86_64-linux -I/usr/local/include/ruby-2.6.0/ruby/backward -I/usr/local/include/ruby-2.6.0 -I.    -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wrestrict -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable  -fPIC    -Werror -c conftest.c"
checked program was:
/* begin */
1: #include "ruby.h"
2:
3: int main() {return 0;}
/* end */

have_library: checking for gzdopen() in -lz... -------------------- yes

"gcc -o conftest -I/usr/local/include/ruby-2.6.0/x86_64-linux -I/usr/local/include/ruby-2.6.0/ruby/backward -I/usr/local/include/ruby-2.6.0 -I.    -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wrestrict -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable  -fPIC  -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline conftest.c  -L. -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby -lz  -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <zlib.h>
 4:
 5: /*top*/
 6: extern int t(void);
 7: int main(int argc, char **argv)
 8: {
 9:   if (argc > 1000000) {
10:     int (* volatile tp)(void)=(int (*)(void))&t;
11:     printf("%d", (*tp)());
12:   }
13:
14:   return 0;
15: }
16: int t(void) { void ((*volatile p)()); p = (void ((*)()))gzdopen; return !p; }
/* end */

--------------------

have_iconv?: checking for iconv... -------------------- yes

"gcc -o conftest -I/usr/local/include/ruby-2.6.0/x86_64-linux -I/usr/local/include/ruby-2.6.0/ruby/backward -I/usr/local/include/ruby-2.6.0 -I.    -O3 -ggdb3 -Wall -Wextra -Wdeclaration-after-statement -Wdeprecated-declarations -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wmisleading-indentation -Wpointer-arith -Wrestrict -Wwrite-strings -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable  -fPIC  -g -DXP_UNIX -O3 -Wall -Wcast-qual -Wwrite-strings -Wmissing-noreturn -Winline conftest.c  -L. -L/usr/local/lib -Wl,-rpath,/usr/local/lib -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic     -Wl,-rpath,/usr/local/lib -L/usr/local/lib -lruby  -lm   -lc "
checked program was:
/* begin */
 1: #include "ruby.h"
 2:
 3: #include <stdlib.h>
 4: #include <iconv.h>
 5:
 6: int main(void)
 7: {
 8:     iconv_t cd = iconv_open("", "");
 9:     iconv(cd, NULL, NULL, NULL, NULL);
10:     return EXIT_SUCCESS;
11: }
/* end */

--------------------

What operating system are you using?
Linux, ruby:2.6.5-slim docker image

The same seems to happen on Debian/buster.

OK, thanks for reporting this, will take a look.

OK, I see the problem: on systems that don't have git installed, mini_portile2 will fall back to using patch to apply patches. You're seeing an error in the different in how git and patch handle this patch.
Should have a patched version released in the next few hours. Sorry for the hassle.

thanks @flavorjones for the quick fix  🚀

Once this fix gets through CI (see https://ci.nokogiri.org/teams/nokogiri-core/pipelines/nokogiri-v1.10.x) I'll cut v1.10.7.

authors: artplan1 flavorjones mmoll


text:
[help] How to wrap fragments with complex html (to display to users in a rails app)?

What problem are you trying to solve?

people can reply to my rails app via email (via an action mailbox facility).
The problem is that the email sent to the rails app contains previous replies - which clutter up the view. I wish to hide all the previous replies. See a picture below which demonstrates this issue:

The proposed solution
The solution proposed is to:

parse the email response, and then to
wrap the "replies" with a little bit of code to trigger a toggle functionality.

I was hoping someone could point me in the direction of the best way to wrap nokogiri fragments.
    body = "

"

    doc = Nokogiri::HTML.fragment(body, encoding = nil)
    table = doc.at("table")

    wrapped_table = ? # how can I wrap table in complex html? - erb is preferable

    # I would like to display `body` in a rails view AFTER it has been transformed:
    # `table` needs to be wrapped in some complex html and then replaced
    # with the original. How can I easily wrap the table in complex html.
    # the documentation suggests I wrap it like this - but it seems cumbersome:
    table.wrap("

")

   # it is preferable to do something like this
   # _wrapped_table.html.erb

           <--- some html that is cumbersome to type as a string ---->
                <%=  table.to_html %>

   # and to then simply replace `table` with the `wrapped_table`  and to then show that to users
    table.replace(wrapped_table)

Q: Is there an easy way to wrap nokogiri fragments (preferably via erb)?
any advice would be appreciated.
Environment

Rails
Erb
Ruby 2.7.2

Hi, @benkoshy! Thanks for asking this question.
One way to do this, if you have a single element that you want to wrap around table, is to use Node#wrap like this:
fragment = Nokogiri::HTML.fragment("

")
fragment.at_css("table").wrap("

")
puts fragment.to_html
#

#

#

#

#

For more complicated markup, you could add the new sub-tree to the DOM and then reparent the table, like this:
fragment = Nokogiri::HTML.fragment("

")
table = fragment.at_css("table")
table.add_next_sibling("

")
fragment.at_css(".final-destination").add_child(table)
puts fragment.to_html
#

#

#

#

#

#

#

#

#

Does that help?

@flavorjones thank you.
i appreciate the thoughtful response.
I have adopted a slightly different solution. The short version is noted below. Perhaps it could be helpful to someone in the future?

santizer is a helper function used to whitelist and sanitize the nokogiri fragments turned into html.
I have made use of a library: Github View Components - extensively.

# MessageComponent.rb
class MessageComponent < ViewComponent::Base
  def initialize(body:)
    @body = body
    @doc = Nokogiri::HTML.fragment(@body, encoding = nil)
    @reply = @doc.at("table[role=presentation]")
  end
end

<%# message_component.html.erb %>
<% if @reply %>
  <% wrapped_value = WrappedMessageComponent.new(reply: @reply)  %>
  <% @reply.replace(render(wrapped_value)) %>
  <%= sanitizer(@doc.to_html).html_safe  %>
<% else %>
  <%= sanitizer(@body).html_safe %>
<% end %>

And the wrapped component is where all the magic happens:

We get all the benefits of using erb i.e. adding complex ruby to our markup, and we can also make use of our text editors to bash out html elements in that regard.
testing is also straight forward.

# WrappedMessageComponent.rb
class WrappedMessageComponent < ViewComponent::Base
  def initialize(reply:)
    @reply = reply
  end
end

As soon as the html hits the dom, a stimulus controller is invoked and operates on the button, according to the markup:

  <button type="button" class="btn btn-light" data-action="toggle#toggle">
    <%=  ruby_code_here  %>
  </button>

    <%=  sanitizer(@reply.to_s).html_safe  %>

def sanitizer(fragment)
   # code to sanitize the fragment
end

And then in some rails view:
<%# @email.body contains the action mailbox reply. %>
<%= render MessageComponent.new(body: @email.body) %>

Overall, our goals have been acheived:

using erb to wrap html, which would otherwise have been cumbersome.
allows for very easy testability.

Awesome, thanks for sharing your solution!

authors: benkoshy flavorjones


text:
Compiling Python functions to C++

Is Pyxie currently able to compile Python functions to C++ functions?
For example, it should be possible to compile this Python function:
def add(a,b):
    return a + b

...and generate a C++ function, using auto to infer the parameter types:
auto add(auto a, auto b){
    return a + b;
}

At present no.
I've used this sort of approach before with Pyxie's predecessor (pycc / py2cc), but not with Pyxie.
Will it do this? At some point, but at present (and for some time), life and then life/pandemic has somewhat gotten in the way of this sort of thing recently.
What I'm planning on doing in pyxie (when I get around to it) is proper type inference, that falls back to auto (Which is equivalent to saying a pling type in something like SML that has full type inference). For that I've been testing a bunch of ideas in a local repo.
Can it work and can it work well though? Absolutely. Up to a point, but that point might be useful to you. I'm not likely to get around to implementing this any time soon and I think the codebase internals really need an overhaul before doing that... Would be fun though :-)

It is possible to do type inference in Python using mypy, though I'm not sure if it can infer the types of generic functions (which are necessary here).
You can also infer types at runtime using MonkeyType, but it doesn't seem to infer generic types, either.
But I also found an implementation of Hindley-Milner type inference in Python, which may be able to infer generic types.

Yes, I am aware of both of these. If you want to use them, use them. I'm closing this issue now since it isn't relevant to me.
You seem to have ignored the comment about there being more important things in my life right now.

authors: jarble sparkslabs

repo: sparkslabs/pyxie


text:
Make an Explode Node

The KGE has a node that can Dissolve multiple polygons into a single Polygon/Multi-Polygon.  Please create a node that can Explode a polygon, Explode multi-part geometries into multiple single geometries., via the GeoPandas Explode function.
https://geopandas.org/en/stable/docs/reference/api/geopandas.GeoDataFrame.explode.html

Just found the Multipart To Singlepart Node, that does exactly this.


text:
Index

Preparation for summer semester 2022 requires some mods as this material was not updated for a while.
Hence,

index.ipynb has a Anconda env section
requirements.txt was updated, especially requiring latest sfs toolbox
Dockerfile was deleted as mybinder.org does not use this and does not build the repo anymore

Dockerfile was deleted as mybinder.org does not use this and does not build the repo anymore

I like having a .binder directory, which allows specifying all apt-get requirements as well as Python packages.
For example:

https://github.com/mgeier/python-audio/tree/master/.binder
https://github.com/spatialaudio/nbsphinx/tree/master/.binder
https://github.com/AudioSceneDescriptionFormat/splines/tree/master/.binder

Dockerfile was deleted as mybinder.org does not use this and does not build the repo anymore

I like having a .binder directory, which allows specifying all apt-get requirements as well as Python packages.
For example:

https://github.com/mgeier/python-audio/tree/master/.binder
https://github.com/spatialaudio/nbsphinx/tree/master/.binder
https://github.com/AudioSceneDescriptionFormat/splines/tree/master/.binder


text:
multiplatform testing

I ran into a bunch of new issues releasing geosnap on conda-forge because of idiiosyncrasies with windows. Windows testing is still alpha in travis (i havent actually gotten a windows vm on travis to boot), but I started a new config that I think should work

Exploring moving to github actions:

[ ] use secrets for remote secure remote datasets

#219

Once #219 is merged, we are covering Ubuntu and Mac OSX.

resolved by #222

authors: knaaptime sjsrey

repo: spatialucr/geosnap


text:
TypeError: Cannot read properties of undefined (reading 'code_snippet')

Please include some context and the contents of the console in your browser's developer tools.
TypeError: Cannot read properties of undefined (reading 'code_snippet')
    at XE (http://0.0.0.0/:74:249981)
    at mi (http://0.0.0.0/:74:70706)
    at Ql (http://0.0.0.0/:74:122308)
    at xc (http://0.0.0.0/:74:109797)
    at _c (http://0.0.0.0/:74:109725)
    at Cc (http://0.0.0.0/:74:109588)
    at Nc (http://0.0.0.0/:74:106582)
    at hc (http://0.0.0.0/:74:103958)
    at nu (http://0.0.0.0/:74:119816)
    at http://0.0.0.0/:74:121187

User Agent
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/98.0.4758.80 Safari/537.36

Thanks for your help!
The issue has since been resolved in https://github.com/spatie/ignition-ui/commit/dbfc5255e8add6919e5b25ec061e89b133d86b79. A new version of spatie/ignition has been tagged and running composer update in your project will automatically pull this in.

authors: AlexVanderbist guths

repo: spatie/ignition


text:
Laravel 8.x Compatibility

This is an automated pull request from Shift to update your package code and dependencies to be compatible with Laravel 8.x.
Before merging, you need to:

Checkout the l8-compatibility branch
Review all comments for additional changes
Thoroughly test your package

If you do find an issue, please report it by commenting on this PR to help improve future automation.

:warning: Shift detected GitHub Actions which run jobs using a version matrix. Shift attempted to update your configuration for Laravel 8. However, you should review these changes to ensure the desired combination of versions are built for your package.

:alembic: Using this package? If you would like to help test these changes or believe them to be compatible, you may update your project to reference this branch.
To do so, temporarily add Shift's fork to the repositories property of your composer.json:
{
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/laravel-shift/laravel-activitylog.git"
        }
    ]
}

Then update your dependency constraint to reference this branch:
{
    "require": {
        "spatie/laravel-activitylog": "dev-l8-compatibility",
    }
}

Finally, run: composer update

repo: spatie/laravel-activitylog


text:
Allow priority to be set for Block and Inline Renderers

Hi,
I noticed when trying to add a custom renderer that there was no way to pass a priority option through (meaning that if a renderer for the element type had already been registered and returned a non-null result, the renderer added to the config wouldn't be used).
This PR allows a priority key to be set for block / inline renderers, but falls back to 0 if not found. (0 is the default priority, so without adding the new key nothing should change),
I have also updated the comments in the config file to have the correct array key (class instead of blockClass) and bought the installation setup documentation page to be inline with the config file (as many of the comments were already out of date before I made my own changes to the config file).
As an complete aside, locally I went to run the tests just to be sure nothing I changed caused any issues, but I was getting a number of failures even when I reverted my changes and I'm really not sure why.

I've just done so, locally I'm still seeing 6 failures for some reason (which is a reduction from what I was seeing below).
I've attached the report.junit.xml that was generated as I wonder if something is odd my side but I'm not seeing anything oblivious.
report.junit.xml.txt

All checks seem to have passed on GitHub 👍

authors: SimonJulian freekmurze

repo: spatie/laravel-markdown


text:
Fix the issue with cpp codegen, where it currently cannot handle certain valid graphs.

Fix the issue with cpp codegen, where it currently cannot handle inputs:
cpp.reshape_strides(Range([(0, 4, 1), (0, 5, 1)]), None, None, [2, 3, 5])

and crashes with an index error.
Also fixes #1690 where RedundantArray was producing a (valid) graph that triggered this.

@acalotoiu,

The commit ec029bb introduces a test that verifies that there is an exception raised when compiling the transformed graph.
There are also additional unit tests that covers various cases (I could add even more if we want to be really through).
The fix commit 2960b9f fixes the compiling problem, but now it verifies that even now the transformed graph is not correct.
Thanks for insisting on having this case written down. @alexnick83 pointed out earlier that my original input graph (which I started the bug with) had a couple of memlet's ill-defined. So, now I have come up with a slightly different graph to trigger the problem again. Perhaps you would like to see the input graph to confirm that it is indeed a valid SDFG, even if it looks contrived.

    def original_graph_with_redundant_array():
        g = SDFG('prog')
        g.add_array('A', (5, 5), dace.float32)
        g.add_array('b', (1,), dace.float32, transient=True)
        g.add_array('c', (5, 5), dace.float32, transient=True)

        st0 = g.add_state('st0', is_start_block=True)
        st = st0

        # Make a single map that copies A[i, j] to a transient "scalar" b, then copies that out to a transient array
        # c[i, j], then finally back to A[i, j] again.
        A = st.add_access('A')
        en, ex = st.add_map('m0', {'i': '0:1', 'j': '0:1'})
        st.add_memlet_path(A, en, dst_conn='IN_A', memlet=Memlet(expr='A[0:1, 0:1]'))
        b = st.add_access('b')
        st.add_memlet_path(en, b, src_conn='OUT_A', memlet=Memlet(expr='A[i, j] -> b[0]'))
        c = st.add_access('c')
        st.add_memlet_path(b, c, memlet=Memlet(expr='b[0] -> c[i, j]'))
        st.add_memlet_path(c, ex, dst_conn='IN_A', memlet=Memlet(expr='c[i, j] -> A[i, j]'))
        A = st.add_access('A')
        st.add_memlet_path(ex, A, src_conn='OUT_A', memlet=Memlet(expr='A[0:1, 0:1]'))
        st0.fill_scope_connectors()

        g.validate()
        g.compile()
        return g

repo: spcl/dace


text:
Do we have a release schedule?

It would be helpful to know when is the next release coming.

We've typically done releases "on request" - typically within 2 to 4 weeks of a request.
With OSS Summit Europe coming up, it will probably be about 3 weeks or so to spin a complete release of all the SPDX java tools - but I could spin just a release of the Java tools this week if it is needed.
Should we plan on a release in 3 weeks (or sooner if just the Java library)?

It would be really helpful if we could release the library first.

I'm going to see if we can get one more PR merged before release - likely mid to late next week.  I'll release just the library so we don't have to wait for the other library PR's/issues.

@AlexanderYukhanov - I just release version 1.1.8.  It may take a couple hours before Maven Central is updated with the release.

authors: AlexanderYukhanov goneall

repo: spdx/Spdx-Java-Library


text:
Fix whitespace constant to always be 64 bit wide

Fixes #7

The missing 32 bit support in gordf is currently blocking osv-scanner from getting accepted into Alpine Linux:
https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/42405
As far as I can tell the issue is that 1<<' ' translates to 1<<32 and the resulting value needs 33 bits. go needs this explicit type hint of uint64 or it falls back to the cpu register size of the target architecture, which may not be able to hold 33 bits. Using 64 bit numbers on 32 bit computers is not a problem in go.

Pull Request Test Coverage Report for Build 3690810705

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 83.183%

Totals

Change from base Build 357518653:
0.0%

Covered Lines:
925

Relevant Lines:
1112

💛  - Coveralls

authors: another-rex coveralls kpcyrd

repo: spdx/gordf


text:
Support for multiple attr_values

The attributes can have multiple attr_values.
For Example SubClassOf: Class1; Class2
Formally it is attr_name: attr_value ( ; attr_value )*

We can even skip the ; separator, if every value can be restricted to be a single (space-delimited) word.
Copying from an old file where I did something similar:
avline_list: avline | avline_list avline

avline: attrib value_list NEWLINE

value_list: value | value_list value

attrib: word
value: word

word: STRING

empty:

The COLON : processing will be different, since in my old example I did not use it...

Can we ensure that xsd: string (the whitespace after colon is intentional) is invalid attr_value ?
This will be critical as we are treating space as delimiter in case of multiple attr values.

We can even skip the ; separator, if every value can be restricted to be a single (space-delimited) word.
Copying from an old file where I did something similar:
avline_list: avline | avline_list avline

avline: attrib COLON value_list NEWLINE

value_list: value | value_list value

attrib: word
value: word

word: STRING

empty:

The COLON : processing will be different, since in my old example I did not use it...
Maybe on the lexical level COLON is \s*:\s

So basically the difference between two colon in this exampletype: xsd:string is that

first colon which is :\s is the division between attr_name and attr_vals
second colon which is : is the regular colon which can be ignored or included in word.

Resolved by #19

authors: nirmal-suthar zvr

repo: spdx/spec-parser


text:
The feature extraction technique (or the input to the neural network model) used in this implementation?

The papers with regard to DeepSpeech 1 and 2 from Baidu claimed that they used the spectrogram of power normalized audio clips as the features to the system.
The implementation of Mozilla DeepSpeech, based on TensorFlow, said that they turned to apply the MFCC features.
Now I am curious about that of your implementation for my research purpose on the comparison of various feature extraction algorithms. So, I will appreciate it if you could solve my puzzle. Thank you.

Hi @Xinghui-Wu, SpeechBrain supports a variety of features (e.g, spectrograms, FBANKs, MFCCs). The one used the most are FBANKs, whose computations are reported here: https://github.com/speechbrain/speechbrain/blob/develop/speechbrain/lobes/features.py#L18

Hi @Xinghui-Wu, SpeechBrain supports a variety of features (e.g, spectrograms, FBANKs, MFCCs). The one used the most are FBANKs, whose computations are reported here: https://github.com/speechbrain/speechbrain/blob/develop/speechbrain/lobes/features.py#L18

Thank you a lot!
I have one more question please. I have noticed that you have published a few pre-trained models on the website, https://huggingface.co/speechbrain, which seem to be trained on the FBank feature according to the hyperparams.yaml file. So I wonder if there are any other published pre-trained models that use MFCC feature?

For speech recognition we normally use FBANKs. MFCCs are not used that much anymore because they often do not lead to performance improvements when feeding them into a neural network. In other contexts such as speech enhancement,  we use spectrogram directly. In other cases (e.g, speech separation) we use the raw samples without any feature extraction step.

authors: Xinghui-Wu mravanelli

repo: speechbrain/speechbrain


text:
Add Pyre type checker as a pre-commit hook (code from Samsung AI Center Cambridge)

What does this PR do?
This PR adds the Pyre type checker as a pre-commit hook. This was discussed in #2749.
This PR should not be merged yet until the test failures are removed (in separate PRs). But the log should be useful to see the errors to fix.
The reason this uses Pyre is that it is fast. On my desktop computer it takes 8 seconds. I have therefore added it to the pre-commit checks.
Currently, I see ~2000 failures, which it is my plan to address in separate PRs.
For now, please let me know any problems you see with this.

This gives errors like Undefined import [21]: Could not find a module corresponding to import torch.. So I will instead try and add a separate workflow for type checking in which all appropriate packages are installed.


text:
add Github Actions with release to Galaxy

Based on https://github.com/weakcamel/ansible-role-loki CI setup.

Depends on: https://github.com/ansible/galaxy/issues/2735

No matter how hard I try, I don't seem to be able to publish this role as speechmatics.hostname, despite defining namespace, author, role_name and even github_branch in meta/main.yml.
I guess we can live (for the time being) with this role published as https://galaxy.ansible.com/speechmatics/ansible_role_hostname for the time being, although any suggestions welcome.
@waquidvp @bradphipps

No matter how hard I try, I don't seem to be able to publish this role as speechmatics.hostname, despite defining namespace, author, role_name and even github_branch in meta/main.yml.

I finally have a clue as to why this might be happening ().
https://github.com/robertdebock/docker-github-action-galaxy/blob/master/Dockerfile doesn't support specifying a Git branch which means by default, metadata/role is imported from master branch.
When using ansible-galaxy tool directly - it gets it right: https://galaxy.ansible.com/speechmatics/hostname
Which means tagging releases on a feature branch just won't work.
$ ansible-galaxy role import --branch add_ci_builds_and_publish_to_galaxy --api-key {REDACTED} --role-name hostname speechmatics ansible-role-hostname -v
No config file found; using defaults
Successfully submitted import request 821730
Starting import: task_id=821730, repository=speechmatics/ansible-role-hostname

===== LOADING ROLE =====
Checking role metadata tags
Checking role platforms
Checking role cloud platforms
Checking role dependencies

===== LINTING ROLE: hostname =====
yamllint OK.
ansible-lint Warnings:
. no-tabs Most files should not contain tabs
. no-tabs Most files should not contain tabs

Updating repository name "ansible_role_hostname" -> "hostname"
===== IMPORTING ROLE: hostname =====

Deleting Content instance: content_type=role, namespace=speechmatics-30690, name=ansible_role_hostname
Updating repository versions...
Galaxy will only import git tags that match the semantic version format, skipping these tag(s): v3.0, v2.1, v2.0, v1.0
Import completed with 3 warnings and 0 errors

Perhaps worth an enhancement to the https://github.com/robertdebock/docker-github-action-galaxy  /  https://github.com/robertdebock/galaxy-action

repo: speechmatics/ansible-role-hostname


text:
feat: some examples and stackBlitz

relative issue: https://github.com/hardfist/speedystack/issues/198

already supported?

already supported?

Available after merged, reference: https://developer.stackblitz.com/docs/platform/importing-projects/#import-from-github

authors: bvanjoi hardfist

repo: speedy-js/examples


text:
Unable to get app to run using simulator

Hi - I followed the instructions and attempted to run the app locally using the command react-native run-ios
The result was:

The simulator opens, briefly displays the "RN App" message, and then displays a loading spinner.
The terminal displays a build log concluding with the following message:

** BUILD SUCCEEDED **

The following commands produced analyzer issues:
	Analyze Modules/RCTUIManager.m
(1 command with analyzer issues)
Installing build/Build/Products/Debug-iphonesimulator/RNApp.app
Launching org.reactjs.native.example.RNApp
org.reactjs.native.example.RNApp: 37986

The "packager log" is displaying the following message:

~/dev/learning/react/native/react-native-meteor-boilerplate/RNApp/node_modules/react-native/packager ~
 ┌────────────────────────────────────────────────────────────────────────────┐
 │  Running packager on port 8081.                                            │
 │                                                                            │
 │  Keep this packager running while developing on any JS projects. Feel      │
 │  free to close this tab and run your own packager instance if you          │
 │  prefer.                                                                   │
 │                                                                            │
 │  https://github.com/facebook/react-native                                  │
 │                                                                            │
 └────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
   /Users/Anders/dev/learning/react/native/react-native-meteor-boilerplate/RNApp

[11:17:27 AM] <START> Building Dependency Graph
[11:17:27 AM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot

React packager ready.

[11:17:28 AM] <END>   Crawling File System (1241ms)
[11:17:28 AM] <START> Building in-memory fs for JavaScript
[11:17:29 AM] <END>   Building in-memory fs for JavaScript (296ms)
[11:17:29 AM] <START> Building in-memory fs for Assets
[11:17:29 AM] <END>   Building in-memory fs for Assets (142ms)
[11:17:29 AM] <START> Building Haste Map
[11:17:29 AM] <START> Building (deprecated) Asset Map
[11:17:29 AM] <END>   Building (deprecated) Asset Map (72ms)
[11:17:29 AM] <END>   Building Haste Map (398ms)
[11:17:29 AM] <END>   Building Dependency Graph (2111ms)
[11:18:19 AM] <START> request:/index.ios.bundle?platform=ios&dev=true
[11:18:19 AM] <START> find dependencies
transformed 743/743 (100%)
[11:18:20 AM] <END>   find dependencies (1081ms)
[11:18:20 AM] <END>   request:/index.ios.bundle?platform=ios&dev=true (1219ms)

I then attempted to run the app using the command npm run ios but this had the same result.
Pls let me know if I can provide any additional log information to help debug this.

Your meteor app is not running that's why.
First make sure you have meteor installed. http://meteor.com.
Then go to the MeteorApp folder with your terminal and type meteor and press enter. Don't close this terminal window.

It wasn't clear to me that I needed to first fire up Meteor.  Added a PR to update the ReadMe.

Clarified in #35

authors: andersr sepehrooo spencercarli


text:
Lots of changes

Hey Scott,
Me again, I've been meaning to do another update for a while after I found loads of little issues throughout my stdVBA codebase. I've tried to fix all the issues which i noticed and documented them below.
Added support for the following keywords

Function declaration modifiers: Declare, Lib, PtrSafe, Attribute, Property, RaiseEvent, Static, Event
Global functions: TypeOf, DoEvents
Namespaces and global objects: MSForms, stdole, Excel, Office, VBA, Err
Type modifiers: WithEvents, ParamArray
Param types: ByRef, ByVal
64-bit constants: VBA7, Win64, Me, vbLongLong
Hexedecimal: &H\d+
Compiler expressions: #if, #elseif, #else, #end if and #const
Compiler declarations: VERSION 1.0 CLASS, BEGIN ... END
Compiler attributes: VB_Name, VB_GlobalNameSpace, VB_Creatable, VB_PredeclaredId, VB_Exposed, VB_UserMemId, VB_Description
File access:Open, Close
Removed support for VB.NET only keywords: ObjectContext, Request, Response, Server, Session

Fixed a few bugs:

Sections of code highlighting when they weren't supposed to be
as in Dim op As Operation wasn't highlighted unless it was in parameters

Added the following patterns for automatic indentation
increaseIndentPattern
decreaseIndentPattern
indentNextLinePattern
unIndentedLinePattern

Before you accept this, it looks like I deleted the document symbol provider, i think because I thought it must have been a left over from the old code. I'll make sure to add it back in...


text:
DeltaTable Specifications

Youtube link with introduction to the is PR: https://youtu.be/X57AWD0OsZA
Please approve this PR if you think that

It breaks nothing in existing workflows
it might be useful to someone
it does not fundamentally violate the principles of spetlr (maybe we should write those down)

DeltaTableSpec
Abstract
The DeltaTableSpec class contains all information about a delta table that can be
given in a CREATE TABLE statement.
The class can be initialized in pure python, or by parsing a CREATE TABLE
statement. In addition, the class is able to lift all necessary information from the
spark catalog that fully describe the table. Using these two channels, 1. from code
and 2. from disk, the class can make statements about the degree of agreement
between the two. Crucially, the class can formulate the ALTER TABLE statements
that are necessary to bring the table in spark into alignment with the specification
from code. This is its primary function.
Introduction
Taking a step back from the mechanisms of spark, one could argue that there are
these competing statements that all describe a delta table to some degree:

A CREATE TABLE statement
A spark data frame (to be written to disk)
A delta table on a storage media or in the spark catalog

In order to enable more dynamic analysis of their mutual (dis-)agreements, these
have been extended with the DeltaTableSpec class which can exist:

as python code: DeltaTableSpec(name="...", schema=...)
as a class instance in memory

The class has methods that enable going back and forth between each of these forms:

python code ↔ object instance: __init__ and repr(tbl) are guaranteed to
be mutual inverses. The result of eval(repr(tbl)) compares equal to the
original object.
sql code ↔ object instance:

DeltaTableSpec.from_sql(str) will create an instance from sql code
tbl.get_create_sql() will return a fully formed create statement,
guaranteed to be the inverse of the above.

delta table ↔ object instance:

DeltaTableSpec.from_path(str) and DeltaTableSpec.from_name(str) will read
all table details from spark.
tbl.make_storage_match() will execute the necessary create sql statement to
make the result of the from_name call compare equal to the specification in tbl

Reference
For a detailed reference, please see the docstrings of each method on the class.

Documentation like the above is being produced, but I really want to get this out into peoples hands after working on it for more than 4 months.

@LauJohansson I addressed all your comments. Thanks for the thorough review. I left the conversations unresolved, you can close them yourself if you agree.

repo: spetlr-org/spetlr


text:
Incomplete logging on server startup

Missing port, see #1099

@hut8 -- could you look at this. People use that log line to get to their blog, so it should be correct.


text:
3월 3일 merge 하겠습니다.

확인해주세요!!

확인해주세요!!

확인하였습니다

슛~ 부탁드립니다

authors: Junseokee namgh scsok13


text:
Fix match by custom attributes

Changes

add method to correctly format the predicate for custom attributes
adapt tests accordingly

cc/ @hajoeichler @emmenko

:+1:

Coverage increased (+0.05%) to 17.651% when pulling 88bd787d98e2d83090c14e821bd6c56059936ef7 on bugfix/match-by-custom-attributes into e987504b91cbff8bf09a53cc6c4c27babd7542c6 on master.

authors: PhilippSpo coveralls emmenko

repo: sphereio/sphere-node-product-csv-sync


text:
overlay 负载没有起来，报subnet of overlaySubnet and serviceSubnet must be define

1 创建应用负载
pod annotaiotn:
ipam.spidernet.io/ippool { "interface": "net1", "ipv4pools": [ "10-6-0-1" ] }
k8s.v1.cni.cncf.io/networks kube-system/macvlan-vlan0
2 应用报subnet of overlaySubnet and serviceSubnet must be define

解决：
将meta-plugins的镜像版本旧的删除，重新拉最新的，三台主机都要

测试的话请安装最新的multus-underlay 测试，旧版本 + 新CNI配置肯定有问题

authors: cyclinder yulng

repo: spidernet-io/cni-plugins


text:
document version

mkdocs make multiple version of doc

@ty-dc

Multiple versions of the document are ready, for example:
https://spidernet-io.github.io/spiderpool/v0.7/
https://spidernet-io.github.io/spiderpool/v06/

authors: ty-dc weizhoublue

repo: spidernet-io/spiderpool


text:
Fix failing tests in PHP 7

See https://github.com/ueberdosis/tiptap-php/pull/22#issuecomment-1231726237

Hi @jonassiewertsen
Can you review and merge so that your pull req. on the main repo can be merged? Thanks!

repo: spiegeltechlab/tiptap-php


text:
health bar edit

can someone help me change the health bar to make it just changing colors when hitted

Yes, unknowncheats.me

Color(entity->health / 100.f, abs(1.f - (entity->health / 100.f)), 0.f)
ez asf

not related to csgosimple

repo: spirthack/CSGOSimple


text:
Add linear correlation minimization

This will require the vectorized feature to be of the same dimension as the input to the model

implemented

repo: splitlearning/InferenceBenchmark


text:
PAPP-21461, PAPP-23404  - Updated output datapaths and added custom view for the "get email" action, Added support for CIDR Ip address

Please ensure your pull request (PR) adheres to the following guidelines:

Please refer to our contributing documentation for any questions on submitting a pull request, link: Contribution Guide

Pull Request Checklist
Please check if your PR fulfills the following requirements:

[x] Testing of all the changes has been performed (for bug fixes / features)
[x] The readme.html has been reviewed and added / updated if needed (for bug fixes / features)
[x] Use the following format for the PR description: <App Name>: <PR Type> - <PR Description>
[x] Provide release notes as part of the PR submission which describe high level points about the changes for the upcoming GA release.
[ ] Verify all checks are passing.
[x] Do NOT use the next branch of the forked repo. Create separate feature branch for raising the PR.
[x] Do NOT submit updates to dependencies unless it fixes an issue.
[x] Limit your pull request to one application and submit multiple pull requests if necessary.

Pull Request Type
Please check the type of change your PR introduces:

[ ] New App
[x] Bugfix
[ ] Feature
[ ] Code style update (formatting, renaming)
[ ] Refactoring (no functional changes, no api changes)
[ ] Documentation
[ ] Other (please describe):

Release Notes (REQUIRED)

Provide release notes as part of the PR submission which describe high level points about the changes for the upcoming GA release.

What is the current behavior? (OPTIONAL)

Describe the current behavior that you are modifying.

What is the new behavior? (OPTIONAL)

Describe the behavior or changes that are being added by this PR.

Other information (OPTIONAL)

Any other information that is important to this PR such as screenshots of how the component looks before and after the change.

Pay close attention to (OPTIONAL)

Any specific code change or test case points which must be addressed/reviewed at the time of GA release.

Screenshots (if relevant)

Thanks for contributing!

The UI tests in the Integration pipeline are failing for some reason and we have verified through a custom pipeline run that the pytest is passing successfully.
Pytest execution Custom pipeline link: https://cd.splunkdev.com/phantom-apps/app-tests/-/pipelines/4272448

authors: amangal-crest pzhou-splunk

repo: splunk-soar-connectors/ripe


text:
Experimental Detection "Exchange PowerShell Abuse via SSRF" fails due to a syntax error

The rule has an extra unnecessary pipe character at the beginning of its search causing an error.

Good catch! Thank you!

Fixed! Thank you


text:
Configure different HEC destinations

Hi.
We have a SC4SNMP instance on a K8S arquitecture configured for traps and polling. Also we hace several Heavy Forwarders and we need to send traps to a specific Heavy Forwarder and polling events and metrics to other Heavy Forwarder. It's possible create some type of redirection based on this specific configuration?
Our approach right now is to execute an instance of SC4SNMP only for traps and another instance of SC4SNMP for polling. Each of this instances send data to a specific Heavy Forwarder. Could you suggest some kind of alternative architecture?
Thanks!

On call with discussed with @ivanfr90 that they need to segregate polling/walks logs to one Splunk, and traps to another Splunk.
We discussed to use for that Splunk Edge Processor, but SPL2 not enough powerful and they wanna use vector that have support of Lua for implement complex pipelines.
Proposed workaround:

Use seperaed SC4SNMP instances, one of that will report only poll/walks to vector (using HEC adapter), second one will report only traps will go to Splunk.
Consume all logs in vector and my different branch of logic for logs with sourcetype sc4snmp:traps / sc4snmp:event / sc4snmp:metric.

P.S. @ivanfr90 If I miss something or you have any question, please reopen this issue

repo: splunk/splunk-connect-for-snmp


text:
Fix: assign profiles

Description
Refactor of assign profile method.
Fixes # (issue)
Type of change
Please delete options that are not relevant.

[x] Refactor/improvement

How Has This Been Tested?
unit, integration, manual
Checklist

[x] My commit message is conventional
[x] I have run pre-commit on all files before creating the PR
[x] I have commented my code, particularly in hard-to-understand areas
[x] I have made corresponding changes to the documentation
[x] I have added tests that prove my fix is effective or that my feature works
[x] New and existing unit tests pass locally with my changes
[x] I have checked my code and corrected any misspellings

:tada: This PR is included in version 1.12.1-beta.9 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:

authors: ajasnosz srv-rr-github-token


text:
Incorrect permissions on file lib/splunklib/modularinput/event_writer.py in release 1.7.2

The issue is the permissions of the file:
lib/splunklib/modularinput/event_writer.py
-rwxr-xr-x 1 user None 2878 Sep 22 20:09 event_writer.py
So 755 will not pass appinspect, this file should be 644 like all the other files...

@gjanders Thank you for reporting this issue. The team is taking a look.

@ncanumalla-splunk thanks for the reply. Perhaps this check could be automated or send it via appinspect which would definitely find the issue :)

@gjanders Our team hasn't changed the file permissions in the SDK and doesn't handle updating them. It depends on the way the SDK is packaged with the app. You have the option to move the SDK into /bin. Also, we recommend you install the SDK using pip in which case the file permissions are 664. Hope that helps.

@ncanumalla-splunk refer to https://github.com/splunk/splunk-sdk-python/releases/tag/1.7.2
Or this picture:

Perhaps your packaging system has an issue then? The releases are created on this github and that is the .tar.gz from tag 1.7.2

@gjanders Thank you very much for pointing this out in the Github release. We will look into fixing this and also check on  our packaging/release process.
cc: @ashah-splunk

As per the image, it's actually in the master branch...I'll send in a pull request

https://github.com/splunk/splunk-sdk-python/pull/491

@gjanders thanks for the PR, we are also looking into options to prevent such file permission changes in future. We will be merging the change soon. Also we have modified the PR with base branch to develop as per the process. Changes will be available in the master branch once new SDK is released.

Thanks for updating the PR

new PR ref - #493

@gjanders fix is available in the Python SDK latest release v1.7.3. Request you to pull the latest release.

authors: ashah-splunk gjanders ncanumalla-splunk

repo: splunk/splunk-sdk-python


text:
Add a CONTRIBUTION file

Add a CONTRIBUTION file with information about contributing and a requirement that all contributors sign the Splunk CLA

Also see https://github.com/splunk/cla-agreement

authors: evanmcclure harsimranmaan

repo: splunk/terraform-provider-stackrox


text:
Response headers are ignored when rendering a block

I am trying to send a response header when I return the response to render a block. But it looks like the code path doesn't pass through the response headers for rendering a block.
Can this be added? I'm happy to take a stab at a PR if you can give me a hint as to how to do this.

I forgot to mention, I'm using FastAPI with jinja2_fragments.

Hi @amjith. Could you post a minimal code example with the issue? I want to make sure I am understanding the problem.

Closing as didn't get any reply.

authors: amjith sponsfreixes


text:
Verify Links: links with xpath locators will not be found when link text contains newlines and/or tabs or ends with '*'

Originally submitted to Google Code by wolfram.... on 10 Dec 2009

using: seleniumLibrary V2.2.2
given links (html):

Link (in one line!):

{tab}

{tab}{tab}
{tab}{tab}Installation
{tab}

Link (in one line!):

{tab}

{tab}{tab}Release Notes, PAtools TX 2009
{tab}

Link (broken in two lines! Pretty formated inside 80 colums:-)):

{tab}

{tab}{tab}{nl}
{tab}{tab}Release Notes, PAtools TX 2009
{tab}

Now the Testcases with the comment if they work or not (in html-Tables):
Page should contain link |
xpath=//a[@href='PAtools_c.htm#inst' and text()='Installation'] |
WORKS!
Page should contain link |
xpath=//a[@href='ReleaseNotes.pdf' and text()='Release Notes, PAtools TX
2009'] |
WORK with Link 2 but NOT with Link 3! Link was not found! This was the
solution I would prefere to verify a link text and his href!!
Page should contain link |
xpath=//a[@href='ReleaseNotes.pdf' and text()='Release*'] |
DON't WORK! Link was not found!
In the LOG selenium_server_log.txt all xpath locaters looks exactly as
written in the tables.
But I think for the link text including new lines and/or tabs and for link
text ending with '*' the xpath syntax may be wrong and I have no plan
whats wrong. I think like as inside the browsers html-formating, the
newlines and/or tabs should not matter. I know no rule, that links in html
had to be written inside one line.
I have spend many hours in digging the cause of this failure, because
first I have a suspicion about the spaces in the link text and quoting the
link text with ''', '"' or none or using ${SPACE} or escaping somthing but
nothing would help.

Originally submitted to Google Code by @yanne on 3 Jan 2010

'*' is indeed a wildcard character in XPath expressions, but I'll have to investigate
if there is any way toget it worling with newlines.
As a workaround, have you tried accessing the links without using XPath explicitly,
for example like this:
Click link | Release* |
That will use also other strategies for finding the element, and Selenium uses glob
pattern by default in element locators.

Originally submitted to Google Code by wolfram.... on 28 Jan 2010

With the keyword 'Click link' I have never tryed, because my problems was locating
the link name with 'page should have link'.
But never the less! I found an acceptable workaround and the reason why locating the
link names failes when they are fromated inside with CRLFs /and/or TABs etc. because
of formating the raw HTML-Files:
Look at the source of xpath.py in C:\Paython26\lib\site-packages\SeleniumLibrary.
You will find a special handling for the link name/text in line 21. Here the link
name witch comes out of text() get handled in 'normalize-space' too. After expanding
my xpath expression to this, I never had problems with line wrapped link names!
I have found the solution to test a hyperlink with his name and his href/url WITH
ONE KEYWORD AT THE SAME TIME. Because the xpath expresion now was a little long,
I've written a keyword makro:
Test Case:
Page has link | <link name/text> | <href/url>
Keyword:
Page has link | [Arguments]  | $[linktext]       | $href |
--------------+--------------+---------------------------+
| Page should  | xpath=//a[@href='${href}' |
| contain link | and normalize-space(      |
|              | descendant-or-self::text()|
|              | )='${linktext}']          |
--------------+--------------+---------------------------+
This solution work fine for me.
Thank You for your efforts.

Originally submitted to Google Code by @yanne on 3 Feb 2010

Yes, whitespace in HTML source inside elements is problematic and your solution seems
fine. I am closing this since no modifications to library are needed.

Originally submitted to Google Code by wxy... on 8 Apr 2013

Very thanks to offer the good function.
I use the SeleniumLibrary to click some href and open the new tab, i use Call Selenium Api | click | xpath=//a[@href='https://code.google.com/XXX'] to open the new page. Now there are two pages in browser.
Then use function get window titles to location the page tiles which you want to use, and use function Select Window | Title Name can load into the page which you want.

repo: spooning/SeleniumLibrary


text:
Make download support streaming use

What is the purpose of your issue?

[x] Bug
[ ] Feature Request
[ ] Question
[ ] Other

Description
Here, the download creates a .temp file, and when the download completes, removes the .temp extension; Somehow, this causes the applications that have opened that file to crash. I don't know the Unixy filesystems much, but I think perhaps the way the file is renamed is changing its inode? If so, this needs fixing, as it is not necessary (per, e.g., https://unix.stackexchange.com/questions/192800/does-the-inode-change-when-renaming-or-moving-a-file.)
I use youtube-dl like this, too, and it renames its temp files without breaking my streaming application.
On a side note, why doesn't the project use youtube-dl?
https://github.com/ritiek/spotify-downloader/blob/master/spotdl/youtube_tools.py#L176
PS: Here is the code used for streaming (It uses my PR https://github.com/ritiek/spotify-downloader/pull/580):
spotdl -f . -nr -s 'not evil' & retry-eval 'mpv *.m*'

retry-eval () {
	retry-limited-eval 0 "$@"
}
retry-limited-eval () {
	local limit=0
	local ecode=0
	until {
			test "$1" -gt 0 && test $limit -ge "$1"
		} || {
			eval "${@:2}" && ecode=0
		}
	do
		ecode="$?"
		echo Tried eval "${@:2}" "..."
		sleep 1
		limit=$((limit+1))
	done
	(
		exit "$ecode"
	)
}

I guess the has been handled with a PR. Closing this.
I know it's late, just clearing out old issues.

authors: Mikhail-Zex NightMachinary

repo: spotDL/spotify-downloader


text:
Maven-Docker Build cannot create docker image

Hello, I have the following problem. When building a Docker image with dockerfile, I get the following error message. Docker plugin is used in maven. Strangely enough i can build a docker image in other spring boot applications and there i do not get such an error message. I use docker for windows. I would be pleased if I could help me.
[INFO] Building image portal-appJSF
Nov 20, 2017 6:18:37 PM org.apache.http.impl.execchain.RetryExec execute
INFORMATION: I/O exception (java.net.SocketException) caught when processing request to {}->http://localhost:2375: Connection reset by peer: socket write error
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.721 s
[INFO] Finished at: 2017-11-20T18:18:37+01:00
[INFO] Final Memory: 30M/507M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.spotify:docker-maven-plugin:1.0.0:build (default-cli) on project portal-appJSF: Exception caught: java.util.concurrent.ExecutionException: com.spotify.docker.client.shaded.javax.ws.rs.ProcessingException: org.apache.http.client.ClientProtocolException: Cannot retry request with a non-repeatable request entity: Connection reset by peer: socket write error -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Process finished with exit code 1

I encounter the same problem. Did you find a solution?
Output of docker version:
Client:
Version:      17.09.0-ce
API version:  1.32
Go version:   go1.8.3
Git commit:   afdb6d4
Built:        Tue Sep 26 22:40:09 2017
OS/Arch:      windows/amd64
Server:
Version:      17.09.0-ce
API version:  1.32 (minimum version 1.12)
Go version:   go1.8.3
Git commit:   afdb6d4
Built:        Tue Sep 26 22:45:38 2017
OS/Arch:      linux/amd64
Experimental: true

The error message in the original issue indicates that the docker daemon is not listening at the address the plugin is trying to communicate with it at. See the “Setup” section of the readme for how you can customize the address to reach docker at.

echo %DOCKER_HOST%
tcp://localhost:2375

During the build i get this:
[ERROR] Failed to execute goal com.spotify:dockerfile-maven-plugin:1.3.6:build (default) on project bcc-config-service-standalone: Execution default of goal com.spotify:dockerfile-maven-plugin:1.3.6:build failed: Illegal char <:> at index 3: tcp://localhost:2375 -> [Help 1]

I solved the problem by using the new plugin dockerfile-maven. Was not the deamon as previously mentioned but the plugin.

For me the issue was Capital letter in image name while building the Image .
For example following plugin configuration was giving me error .
<plugin>
           <groupId>com.spotify</groupId>
           <artifactId>dockerfile-maven-plugin</artifactId>
           <version>1.3.6</version>
           <configuration>
           <useConfigFile>false</useConfigFile>
           <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
               <repository>${docker.image.prefix}/dockerAgent</repository>
           <buildArgs>
   	<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
   		</buildArgs>
           </configuration>
   <executions>
   <execution>
   	<id>default</id>
   	<phase>install</phase>
   	<goals>
   		<goal>build</goal>
   	</goals>
   </execution>
   </executions>
       </plugin>

The Issue got resolved by changing the "dockerAgent" to dockeragent (all letters in small cases).

I have the same issue running Docker and Maven on Windows. My configuration tag was

${docker.image.prefix}/${project.artifactId}
...
And the ${project.artifactId} resolved to a name that had capital letters.
This led to the error "Cannot retry request with a non-repeatable request entity: Connection reset by peer: socket write error -> [Help 1]".
Changing the docker image to lowercase fixed it.
Thanks abhisheknn

For me the issue was an extra / in the name. My configuration was ${docker.image.prefix}/${project.artifactId}, and the prefix itself already had a /.

I believe this issue should re-opened, there is totally no error message that indicates a problem with uppercase / lowercase. This should be fixed in the plugin.

I had the same issue running Docker and Maven on Windows. My configuration tag was
${docker.image.prefix}/${project.artifactId}
...
And the ${project.artifactId} resolved to a name that had capital letters.
This led to the error "Cannot retry request with a non-repeatable request entity: Connection reset by peer: socket write error -> [Help 1]".
Changing the docker image to lowercase fixed it.
Thanks abhisheknn

This fixed it for me. seems to be an issue with the plugin

I can confirm that changing the repository-name to my own value (instead of project.artifactId) fixed this. The ${project.groupId}/${project.artifactId} has upper-case chars.
<plugin>
  <groupId>com.spotify</groupId
  <artifactId>dockerfile-maven-plugin</artifactId>
  <version>1.4.10</version>
...
  <configuration>
    <repository>${project.groupId}/${project.artifactId}</repository>
    <tag>${project.version}</tag>
  </configuration>
</plugin>

to
<plugin>
  <groupId>com.spotify</groupId
  <artifactId>dockerfile-maven-plugin</artifactId>
  <version>1.4.10</version>
...
  <configuration>
    <repository>domain/my_project_name</repository>
    <tag>${project.version}</tag>
  </configuration>
</plugin>

For me the issue was Capital letter in image name while building the Image .
For example following plugin configuration was giving me error .
<plugin>
           <groupId>com.spotify</groupId>
           <artifactId>dockerfile-maven-plugin</artifactId>
           <version>1.3.6</version>
           <configuration>
           <useConfigFile>false</useConfigFile>
           <useMavenSettingsForAuth>true</useMavenSettingsForAuth>
               <repository>${docker.image.prefix}/dockerAgent</repository>
           <buildArgs>
   	<JAR_FILE>target/${project.build.finalName}.jar</JAR_FILE>
   		</buildArgs>
           </configuration>
   <executions>
   <execution>
   	<id>default</id>
   	<phase>install</phase>
   	<goals>
   		<goal>build</goal>
   	</goals>
   </execution>
   </executions>
       </plugin>

The Issue got resolved by changing the "dockerAgent" to dockeragent (all letters in small cases).

It worked for me as well. Thanks a ton :)

This solved the issue.Thanks.

Don't understand why we don't think such issues are a serious thread to open-source in contemporary software.

Work for me. It is very simple issue. check name of your project.
I have name in Uppercase like this name = Xyz. I change to lower case and every thing work fine. ${project.name} = xyz . Thank you  all

I too had the same problem
We need not remove the capital cases I belive
dockerfile plug in uses project version
my pom.xml was having  0.0.1-SNAPSHOT and i changed it to 0.0.1.SNAPSHOT  and images built succesfully

authors: DRoppelt Engaam abhisheknn martinvw mattnworb mohanr oliviercwa reddyraja86 rmoutray-configureone shreekrishna905 uelker58 venkatnaveen7 vladvesa

repo: spotify/docker-maven-plugin


text:
Division by zero

We have seen the following exception on a postgres slave machine:
2015-11-17T10:33:21.001+00:00 lon2-artifactory4-a2.lon2.spotify.net Traceback (most recent call last):
2015-11-17T10:33:21.001+00:00 lon2-artifactory4-a2.lon2.spotify.net File "/usr/share/python/postgresql-metrics/local/lib/python2.7/site-packages/postgresql_metrics/metrics_logic.py", line 103, in _call_all_db_functions
2015-11-17T10:33:21.001+00:00 lon2-artifactory4-a2.lon2.spotify.net metrics.extend(db_metrics_func(db_parameter))
2015-11-17T10:33:21.001+00:00 lon2-artifactory4-a2.lon2.spotify.net File "/usr/share/python/postgresql-metrics/local/lib/python2.7/site-packages/postgresql_metrics/metrics_gatherer.py", line 95, in get_stats_heap_hit_statistics
2015-11-17T10:33:21.001+00:00 lon2-artifactory4-a2.lon2.spotify.net db_name, heap_read, heap_hit, heap_hit_ratio = get_heap_hit_statistics(db_connection)
2015-11-17T10:33:21.001+00:00 lon2-artifactory4-a2.lon2.spotify.net File "/usr/share/python/postgresql-metrics/local/lib/python2.7/site-packages/postgresql_metrics/postgres_queries.py", line 159, in get_heap_hit_statistics
2015-11-17T10:33:21.001+00:00 lon2-artifactory4-a2.lon2.spotify.net recent_heap_hit_ratio = recent_heap_hit / float(recent_heap_hit + recent_heap_read)
2015-11-17T10:33:21.001+00:00 lon2-artifactory4-a2.lon2.spotify.net ZeroDivisionError: float division by zero

Should be fixed by:
https://github.com/spotify/postgresql-metrics/pull/8

Merged, thank you for your contribution person I've never met before. :)

authors: Yarin78 mmatalka varjoranta

repo: spotify/postgresql-metrics


text:
Unique key updating entity

I think that if i update an entity changing the value of an "unique" field, save system does not check unique integrity.

You are right. The validation of the unique constraint is limited to new entities: https://github.com/spotorm/spot2/blob/master/lib/Mapper.php#L1125
I don't know if there is a reason being that, but the code should still be failing at the database level with an exception.

authors: manelj nebulousGirl


text:
能改提示音吗？

感谢汉化！使用起来提示声音太小，结束的时候也不弹窗，原作者3年了也不加上，有办法解决吗？

我才看到，我不会写代码，Windows可以单独设置某个软件的音量的。

authors: bearcai spphinslove

repo: spphinslove/pomotroid


text:
Inefficient default polling

Description: http://stackoverflow.com/questions/35860294/spring-cloud-sqs-polling-interval
Problematic area: https://github.com/spring-cloud/spring-cloud-aws/blob/master/spring-cloud-aws-messaging/src/main/java/org/springframework/cloud/aws/messaging/listener/SimpleMessageListenerContainer.java#L288
The gist is that when receiving a batch of messages it won't attempt to receive more until it's done processing the current batch. If these are longish tasks then it won't make use of all available threads even if messages are queued up to be received.
I believe this can be solved by creating an executor with a bounded queue (ArrayBlockingQueue) which will block when attempting to add more to the queue and (EDIT: I see the queue capacity sets a queue size of zero which results in a synchronous queue so this is good) removing the count down latch. This can be done by spring cloud aws users by overriding some methods in SimpleMessageListenerContainer (startQueue), but it isn't trivial to change this implementation. It'd be nice to simplify this.
Since the queue in the default executor is bounded and blocking removing the coundown latch from the message listener would result in the desired behavior. However I see that some care would be needed in deciding what to do when the executor is swapped out. There is a defaultTaskExecutor which could be used to avoid the count down latch when true. Not perfect but it would improve this situation.

Duplicate of https://github.com/spring-cloud/spring-cloud-aws/issues/166. Closing.

repo: spring-cloud/spring-cloud-aws


text:
Documentation update

The Demo project (https://github.com/spring-cloud-samples/spring-cloud-circuitbreaker-demo) contains outdated documentation.
It seems that Hystrix support was dropped but README.md still states about Hystrix support and examples:
There are two non-reactive samples in this repo, spring-cloud-circuitbreaker-hystrix and spring-cloud-circuitbreaker-resilience4j.
There are three reactive samples in this repo, spring-cloud-circuitbreaker-demo-reactive, spring-cloud-circuitbreaker-demo-reactive-hystrix, and spring-cloud-circuibreaker-demo-reactive-resilience4j.
Hystrix and Resilience4J Reactive Samples

Thanks
https://github.com/spring-cloud-samples/spring-cloud-circuitbreaker-demo/commit/faafc24da64df3a6a2b2bc2dffaf68342839a626

authors: ryanjbaxter sergey-morenets