cannot build/test this on OSX

not sure if it is OSX only, but that is what I have available right now.
I tried various examples of ascidoctorj-screenshot and they all failed to do anything but start firefox and then nothing happened.
Now tried building this repo and I get the same result - firefox starts up but nothing working after that.
:compileJava UP-TO-DATE
:compileGroovy UP-TO-DATE
:processResources UP-TO-DATE
:classes UP-TO-DATE
:jar
:groovydoc UP-TO-DATE
:docJar
:sourcesJar UP-TO-DATE
:assemble
:licenseMain UP-TO-DATE
:licenseTest UP-TO-DATE
:license UP-TO-DATE
:compileTestJava UP-TO-DATE
:compileTestGroovy
Download https://jcenter.bintray.com/org/spockframework/spock-core/1.0-groovy-2.4/spock-core-1.0-groovy-2.4.pom
Download https://jcenter.bintray.com/org/spockframework/spock-core/1.0-groovy-2.4/spock-core-1.0-groovy-2.4.jar
:processTestResources
:testClasses
:test

org.asciidoctor.extension.GebBlockSubstitutionTest > test keys in geb block FAILED
    org.openqa.selenium.WebDriverException at GebBlockSubstitutionTest.groovy:70
        Caused by: org.openqa.selenium.WebDriverException at GebBlockSubstitutionTest.groovy:70
            Caused by: org.openqa.selenium.firefox.NotConnectedException at GebBlockSubstitutionTest.groovy:70

org.asciidoctor.extension.GebBlockTest > test keys in geb block FAILED
    org.openqa.selenium.WebDriverException at GebBlockTest.groovy:67
        Caused by: org.openqa.selenium.WebDriverException at GebBlockTest.groovy:67
            Caused by: org.openqa.selenium.firefox.NotConnectedException at GebBlockTest.groovy:67

org.asciidoctor.extension.ScreenshotMacroBlockTest > default dir for images should be 'screenshots' below 'destination_dir' FAILED
    org.openqa.selenium.WebDriverException at ScreenshotMacroBlockTest.groovy:65
        Caused by: org.openqa.selenium.WebDriverException at ScreenshotMacroBlockTest.groovy:65
            Caused by: org.openqa.selenium.firefox.NotConnectedException at ScreenshotMacroBlockTest.groovy:65

org.asciidoctor.extension.ScreenshotMacroBlockTest > take configured dir name for images FAILED
    org.openqa.selenium.WebDriverException at ScreenshotMacroBlockTest.groovy:75
        Caused by: org.openqa.selenium.WebDriverException at ScreenshotMacroBlockTest.groovy:75
            Caused by: org.openqa.selenium.firefox.NotConnectedException at ScreenshotMacroBlockTest.groovy:75
> Building 84% > :test > 20 tests completed, 4 failed

i'm running firefox 48.0.1 if that matters.

I ran brew install geckodriver to see if availability of geckodriver would help but seems to not change the results.

Yes the firefox version does matter.
https://github.com/SeleniumHQ/selenium/issues/2110#issuecomment-224413609
47.0 is known to be broken and starting with 48 you need to use marionette
https://developer.mozilla.org/en-US/docs/Mozilla/QA/Marionette

see also the discussion of PR #9

okey, so not just me ;) I'll follow #9 and give feedback once there is something that can be tried out.


⚠ ClamAV has degraded performance

In bc8713b, ClamAV (https://spamassassin.apache.org/) experienced degraded performance:

HTTP code: 200
Response time: 77 ms

Resolved: ClamAV performance has improved in 8e2845c.


AttributeError: 'TraceProcessor' object has no attribute 'http'

`from perfetto.trace_processor import TraceProcessor
from perfetto.trace_processor.api import TraceProcessorConfig
tp = TraceProcessor(trace='trace.perfetto-trace',config=TraceProcessorConfig(bin_path='trace_processor'))
qr_it = tp.query('SELECT name FROM slice')
for row in qr_it:
print(row.name)`
Error:
Traceback (most recent call last):
File "E:\04_Codeback\StudyCode\pyhon\process.py", line 3, in
tp = TraceProcessor(trace='trace.perfetto-trace',config=TraceProcessorConfig(bin_path='trace_processor'))
File "D:\install\anaconda3\lib\site-packages\perfetto\trace_processor\api.py", line 260, in init
self.http = self._create_tp_http(addr)
File "D:\install\anaconda3\lib\site-packages\perfetto\trace_processor\api.py", line 330, in _create_tp_http
url, self.subprocess = load_shell(self.config.bin_path,
File "D:\install\anaconda3\lib\site-packages\perfetto\trace_processor\shell.py", line 66, in load_shell
raise Exception(
Exception: Trace processor failed to start. Try rerunning with verbose=True in TraceProcessorConfig for more detailed information and file a bug at https://goto.google.com/perfetto-bug or https://github.com/google/perfetto/issues if necessary.
Exception ignored in: <function TraceProcessor.del at 0x0000019A35CE1DC0>
Traceback (most recent call last):
File "D:\install\anaconda3\lib\site-packages\perfetto\trace_processor\api.py", line 373, in del
self.close()
File "D:\install\anaconda3\lib\site-packages\perfetto\trace_processor\api.py", line 370, in close
self.http.conn.close()
AttributeError: 'TraceProcessor' object has no attribute 'http'

Are you using Python3 or Python2?
On Fri, 5 May 2023, 07:33 LittleLmc, @.***> wrote:

`from perfetto.trace_processor import TraceProcessor
from perfetto.trace_processor.api import TraceProcessorConfig
tp =
TraceProcessor(trace='trace.perfetto-trace',config=TraceProcessorConfig(bin_path='trace_processor'))
qr_it = tp.query('SELECT name FROM slice')
for row in qr_it:
print(row.name)`
Error:
Traceback (most recent call last):
File "E:\04_Codeback\StudyCode\pyhon\process.py", line 3, in
tp =
TraceProcessor(trace='trace.perfetto-trace',config=TraceProcessorConfig(bin_path='trace_processor'))
File
"D:\install\anaconda3\lib\site-packages\perfetto\trace_processor\api.py",
line 260, in init
self.http = self._create_tp_http(addr)
File
"D:\install\anaconda3\lib\site-packages\perfetto\trace_processor\api.py",
line 330, in _create_tp_http
url, self.subprocess = load_shell(self.config.bin_path,
File
"D:\install\anaconda3\lib\site-packages\perfetto\trace_processor\shell.py",
line 66, in load_shell
raise Exception(
Exception: Trace processor failed to start. Try rerunning with
verbose=True in TraceProcessorConfig for more detailed information and file
a bug at https://goto.google.com/perfetto-bug or
https://github.com/google/perfetto/issues if necessary.
Exception ignored in: <function TraceProcessor.del at
0x0000019A35CE1DC0>
Traceback (most recent call last):
File
"D:\install\anaconda3\lib\site-packages\perfetto\trace_processor\api.py",
line 373, in del
self.close()
File
"D:\install\anaconda3\lib\site-packages\perfetto\trace_processor\api.py",
line 370, in close
self.http.conn.close()
AttributeError: 'TraceProcessor' object has no attribute 'http'
—
Reply to this email directly, view it on GitHub
https://github.com/google/perfetto/issues/497, or unsubscribe
https://github.com/notifications/unsubscribe-auth/AACVW3LVJL2RRDMSZ4AAZUTXESNL3ANCNFSM6AAAAAAXWWNWYU
.
You are receiving this because you are subscribed to this thread.Message
ID: @.***>

Python3

This a dupe of https://github.com/google/perfetto/issues/449.
Generally the problem is that you do not have access to https://get.perfetto.dev/trace_processor or https://commondatastorage.googleapis.com/perfetto-luci-artifacts/v34.0/linux-amd64/trace_processor_shell.

Those files are public so it's really a question of why your ISP or internet connection is blocking the download. An workaround might be to download the shell binary manually and pass it to bin_path but I'd suggest figuring out the root cause of your internet issue.

@LalitMaganti  Can you send me the trace_processor_shell file? And tell me how to configure it?

I've provided the link above. Not sure what else I can do there really. You can also download the binary at the releases page of GitHub here - it's available inside the zip file for your architecture.
Configuration-wise, you just need to set the bin_path field of TraceProcessorConfig in your code to point to the downloaded binary.

@LalitMaganti   Doese it like this?
tp = TraceProcessor(trace='trace.perfetto-trace',config=TraceProcessorConfig(bin_path='trace_processor_shell'))
?

If the binary is in your working directory, then yes. You can also pass an absolute path to the binary.

@LalitMaganti  Thanks!


PHP 8.3.9 / 5.12.0 / 18.03.0003 SQLSTATE[IMSSP]: An invalid attribute was designated on the PDO object

PHP version
PHP Version 8.3.9
PHP SQLSRV or PDO_SQLSRV version
PDO_SQLSRV = 5.12.0
Microsoft ODBC Driver version
18.03.0003
SQL Server version
14.00.2052
Client operating system
Ubuntu
Table schema
N/A
Problem description
Getting the following error: SQLSTATE[IMSSP]: An invalid attribute was designated on the PDO object.

Not exactly sure which attribute to set or remove (if possible).

Expected behavior and actual behavior
N/A
Repro code or steps to reproduce
Try to connect using PHP pdo connection with versions mentioned above.

Ok so what do I do then. I can't remove them I don't think. I set your suggested attributes to false and the following error returns. Seems like they need to be removed completely. I set them as false as a group and individually and all tests returned the same error.
Fatal error: Uncaught PDOException: SQLSTATE[IMSSP]: An unsupported attribute was designated on the PDO object. in /home/devmarketing/shared/Medoo.php:499 Stack trace: #0 /home/devmarketing/public_html/assets/includes/medoo_test.php(21): Medoo\Medoo->__construct(Array) #1 {main} thrown in /home/devmarketing/shared/Medoo.php on line 499

How are you calling the PHP driver? When it's invoked it looks something like:
$conn = new PDO($connOptions, $uid, $pwd, array(SOME_ATTRIBUTE => VALUE, OTHER_ATTRIBUTE => VALUE2)); so as long as those attributes are not specified in the list, this error shouldn't happen.

Thanks for the help on this. Come to find out there was no issues at all on this. Sorry about the 911. I am migrating to a brand new server that has brand new everything. The way I was debugging was to just look at error messages in the code. I didn't actually try to execute the query to see if I was getting data back just the pdo connection info. The connection info reports that invalid attribute error but the query actually executes and returns data. So I think we are good. I have had to try getting this installed on three different new servers and that message was popular with older versions of php not 8.3+ so I thought I was running into the same issue....a bit confusing. I think we are good. Thanks again.


nix: util-linux isn't needed on darwin

Codecov Report

Merging #27 (f6ed3f9) into main (6e5bc80) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #27   +/-   ##
=======================================
  Coverage   78.69%   78.69%
=======================================
  Files           5        5
  Lines         507      507
  Branches      507      507
=======================================
  Hits          399      399
  Misses         56       56
  Partials       52       52

Flag
Coverage Δ

cargo-test
0.00% <ø> (ø)

pytest
78.69% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Include line numbers as well as index in output

When RSpec outputs index format (rspec ./test_spec[1:1]) it is not parseable by humans or non-rspec computers. This affects things like vim plugins that automatically jump you to the failing test.
Needed:

Repro. I've had reports of this on our large app but when I do a minimal spec it outputs line numbers in the failure. Under what circumstances does RSpec output the index format?
Specific examples for vim plugins and the like that use this information.

Suggestions:

Include line number AND index: test_spec:2[1:1]. This is kind of a mess but would cover needed use cases.
Provide an interface (CLI) to "convert" index format to line number.

The logic that determines what to print for the example is here:
      def rerun_argument_for(example)
        location = example.location_rerun_argument
        return location unless duplicate_rerun_locations.include?(location)
        conditionally_quote(example.id)
      end

The idea is that RSpec prefers printing line numbers but they don't always uniquely identify an example, so it falls back to the example id if the line number is not sufficiently unique.  This non-uniqueness primarily happens in two cases.  One is when the user dynamically defines multiple examples in a loop:
RSpec.describe User do
  [:email, :password].each do |attr|
    it "requires a value for #{attr}" do
      user = build_user(attr => nil)
      expect(user).not_to be_valid
    end
  end
end

In this example, spec/models/user_spec.rb:3 identifies 2 different examples.
The other case is when the user uses a shared example group:
RSpec.shared_examples_for "requires a value for" do |attr|
  it "requires a value for #{attr}" do
    record = build_record(attr => nil)
    expect(record).not_to be_valid
  end
end

RSpec.describe User do
  alias build_record build_user
  it_behaves_like "requires a value for", :email
  it_behaves_like "requires a value for", :password
end

Again, the location (spec/models/user_spec.rb:2) identifies two different examples.
When I added example ids to RSpec I remember thinking about this, and being concerned that printing the example id instead of the location in the re-run list could be a step back for some folks that use it to go the spec in their text editor.  However, given the list's primary purpose of providing commands for the user to copy and paste in order to re-run a specific example, I thought it was important that what is printed always uniquely identifies the example.  At the time I considered adding a config option that would allow the user to pick whether locations or ids were printed but decided on the current compromise instead.

Include line number AND index: test_spec:2[1:1]. This is kind of a mess but would cover needed use cases.

This is an interesting idea I hadn't considered.  RSpec would probably need to ignore the line number part, though, and that feels weird to have a throw-away part of what's printed that RSpec ignores.
Actually, there's a bigger problem with this idea: the location of the spec might not be the file that's a part of the id that RSpec prints.  Specifically, a spec can be defined in a shared example group in one file (e.g. in spec/support) and included in another file.  In this kind of situation, the spec location might be spec/support/shared_examples.rb:2 whereas the example id (used for reruns) would be spec/models/user_spec.rb[1:1].  In fact, the location_rerun_argument method used above takes this into account -- it uses the list of loaded spec files and uses location metadata on a parent if necessary.

Provide an interface (CLI) to "convert" index format to line number.

Interesting idea, but would anyone use it?

What I want: a line number that is close so I can start debugging. I can't read the [1:1] notation, and my vim error format config can't either ;)

What I want: a line number that is close so I can start debugging.

I kind feel we should restore this, as the previous behaviour would have been this...

I can't read the [1:1] notation, and my vim error format config can't either ;)

Well it could ;)

I kind feel we should restore this, as the previous behaviour would have been this...

The previous behavior had lots of problems for when the user tried to copy and paste it as a re-run command.  One idea is that we could switch to a form like:
rspec path/to/spec.rb[1:1] # path/to/spec.rb:15 -- spec description

Then it would have a working rerun line as it does now (although, if we do this, I think we'd make it _always print the id for consistency) and also the spec location and description.
It might make the lines super long, though...

@myronmarston Wouldn't doing rspec path/to/spec.rb:15[1:1] be ok? It's kinda reduced and we could just use the example but other things could use the imprecise line number variant?

@myronmarston Wouldn't doing rspec path/to/spec.rb:15[1:1] be ok? It's kinda reduced and we could just use the example but other things could use the imprecise line number variant?

It creates a string that is trying to refer to an example in two different ways, and they aren't necessarily going to be in sync.   I think dealing with it will have odd semantics.
A larger problem is one I was trying to explain above: the file path for the id might be entirely different than the file path for the location.  For example, an example could be defined in a shared group at spec/support/shared_groups.rb:10.  If the shared group is included in a group defined in spec/my_spec.rb, the example id will be something like spec/my_spec.rb[1:1] while the location will be spec/support/shared_groups.rb:10.

I was prompted to come here and give my support for getting the line number.  Even inside of a loop or vi shared spec, we can trace it faster via the line in the spec than we can with the current output.  We too have a shared example with a loop inside of it that leads to this complicated 1:1:1 stuff, if it failed at the behaves_like :shared_spec we could trace it dozens of times faster than with the current output because well, in order to parse the current output we have to parse the blocks and all that which can be hard, especially for this one spec that is 1000 lines because it's double cautious because it handles filesystem stuff.

@envygeeks: I very much want to provide line numbers for people who want it but I also know that other people use that primarily as a "rerun line" and want something printed that is guaranteed to run only the one example.  We used to always print the definition location of the spec but that (rightfully) caused users to report issues like #793 (see also: guard/guard-rspec#243 and rspec/rspec-rails#991).  If we switched back to printing the definition location, it would degrade the experience for other users.
So it seems like our options are:

Keep it how it is, causing a worse experience for people who want to use the summary to go to the definition location in their text editor
Revert to how it was before, causing a worse experience for people who want to use the summary to rerun exactly one failing example.
Find a way to print both in the summary line.  Problem is, the file paths may not be the same so we'd have to either use an inconsistent format (e.g. printing two file paths sometimes and only one other times) or always print the full id and full definition location as separate things on the same line, leading to extremely long output.  I suspect no one would be very happy with this solution.
Make it configurable. Given the summary has different uses and people have different needs and we can't please everyone with any default, this seems like the best approach to me.

Thoughts?

@myronmarston I like the configuration option tbh.  I know a lot of people like convention over configuration but I like configuration with convention by default.  That gives us the option to kick on line numbers on places like Travis or when we run RSpec manually and convention in the configuration defaults it to the current way any place we don't reconfigure it.

However, given the list's primary purpose of providing commands for the user to copy and paste in order to re-run a specific example

I've actually never once used it for that purpose. What's the quickest way to determine which example failed from the example ID notation?

Thats kind of hard to ascertain outside of RSpec as it refers to the example by how it was defined,
e.g.
RSpec.describe {}
RSpec.describe do
  context do
    it "spec"
  end
end

Would produce [2:1:1] for 2nd example group in file, 1st child example group, 1st example.

If the shared group is included in a group defined in spec/my_spec.rb, the example id will be something like spec/my_spec.rb[1:1] while the location will be spec/support/shared_groups.rb:10.

In theory though, we should be able to know the line number at my_spec.rb[1:1] ... pretty sure we have this in metadata already? full_path or full_description?

In theory though, we should be able to know the line number at my_spec.rb[1:1] ... pretty sure we have this in metadata already? full_path or full_description?

We used to do dump the line number, but it's problematic, as there are multiple ways of defining examples such that line number means nothing (e.g. putting examples in ruby loops, using shared examples etc).

In theory though, we should be able to know the line number at my_spec.rb[1:1] ... pretty sure we have this in metadata already? full_path or full_description?

The line number of what?  The it_behaves_like call?  That's not going to uniquely identify an example unless the shared group has only 1 example.

yeah, at least then you know which line is causing the whole thing to run. See earlier comment about wanting to just end up in basically the right area to debug. We already have a way to uniquely identify, here we're just talking about a usability hack. To Jon's comment, even if it's in a loop I at least want to get to the loop.

here we're just talking about a usability hack.

Yeah thats why I suggested mixing the two, we need the id in order to re run definitely so we can't just revert the id, but personally I don't see the harm in also providing a line number.

@myronmarston wrote:

Find a way to print both in the summary line. Problem is, the file paths may not be the same so we'd have to either use an inconsistent format (e.g. printing two file paths sometimes and only one other times) or always print the full id and full definition location as separate things on the same line, leading to extremely long output. I suspect no one would be very happy with this solution.

I think having both would be great.   Personally I don't think long output is a problem, but perhaps others disagree.
I frequently use the current behavior to re-run a single spec, but it definitely would be nice to have a line number (even if its for a different filename) to find the actual code, since it is pretty hard to track that down yourself if you have a complex shared example setup.
Both are useful (even at the same time), so printing both is more useful than a configuration to switch between the two, in my opinion.

Both are useful (even at the same time), so printing both is more useful than a configuration to switch between the two, in my opinion.

If we added a config option for this, it would allow people who want both to configure it.  So there wouldn't be any switching back and forth; just setting it to your preferred format, and leaving it.  Something like this:
RSpec.configure do |c|
  c.rerun_failed_example_format = "%{id} %{location}"
end

Personally I would just like to take one line of output from spec/examples.txt, run through a CLI and get the relevant file and line number.
Two examples:
rspec --parse --relevant-line-on-this-file "./spec/models/account_spec.rb[1:1:1]" # output: spec/models/account_spec.rb:20

or
rspec --parse --assertion-line "./spec/models/account_spec.rb[1:1:1]" # output: spec/support/shared_examples.rb:10

That way I can tell my tools to just call this CLI and jump to the relevant location. If I need to run rspec, I can just take the exact same line and feed to rspec itself.
I believe this could be simple enough to satisfy both sides.

Is there any useful update on how to resolve this? I'd find @juanibiapina 's solution super useful. Just something (it really doesn't matter what) that lets my human brain unwind that reference and end up somewhere (other than my head through my desk) that I can start debugging from.

No, no one has had any time to spare to implementing any of the ideas, you should be able to unwind the reference though, its a simple count through examples and example groups, and using:
rspec "./spec/path_to/your_spec.rb[1:1:1]" --format documentation

Will print the doc string of your example which should enable you to find it easily.

I am naming my include_examples invocations to work around this issue a bit:
      shared_examples 'match results' do |message|
        it message do
          # ...
        end
      end

      context 'when XYZ' do
        let(:results) { ... }
        include_examples 'match results', 'returns last enabled dates'
      end

With this in mind:

line numbers but they don't always uniquely identify an example, so it falls back to the example id if the line number is not sufficiently unique

and with eg a failed example admin_spec.rb[1] which calls it_behaves_like, and the real failure in user_spec.rb:22 that has the shared example code. It would be trivial to find the line number for [1], but it won’t correspond to the right file. Is this what you’re looking after?

I would prefer someone have a go at implementing a configurable format rather than a command

Ok thanks @JonRowe I'll have a crack 🍘

Hey @JonRowe please see my PR above 👌.
I have named the config variable use_line_number_for_failed_spec_location_rerun which is quite verbose but as a result is quite clear (I hope 😆), happy for a better name to be suggested and used though 🙏

Hey @JonRowe PR is ready for review 😄


ImportError: cannot import name pywrap_tensorflow

I followed the TensorFlow installation instructions for Mac OS X.(Mac OS X, CPU only, Python 2.7):
export TF_BINARY_URL=https://storage.googleapis.com/tensorflow/mac/tensorflow-0.9.0rc0-py2-none-any.whl
sudo pip install --upgrade $TF_BINARY_URL
Got this error:
In [2]: import tensorflow
ImportError                               Traceback (most recent call last)
 in ()
----> 1 import tensorflow
/usr/local/lib/python2.7/site-packages/tensorflow/init.py in ()
21 from future import print_function
22
---> 23 from tensorflow.python import *
/usr/local/lib/python2.7/site-packages/tensorflow/python/init.py in ()
46 _default_dlopen_flags = sys.getdlopenflags()
47 sys.setdlopenflags(_default_dlopen_flags | ctypes.RTLD_GLOBAL)
---> 48 from tensorflow.python import pywrap_tensorflow
49 sys.setdlopenflags(_default_dlopen_flags)
50
ImportError: cannot import name pywrap_tensorflow
Any help would be appreciated.

You're running the script in the same directory as tensorflow. Move it out and you should be fine.

Thanks for the response @Waffleboy. @xinyuwuhenZZ , please close the issue if this resolves installation for you.

Similar problem was asked and addressed in #1013.

@Waffleboy @aselle, Thanks for help! I did run script in other directory rather than installation directory.
@XianXing, not exactly the same issue, #1013

Did that resolve the issue @xinyuwuhenZZ. If so, please close the issue.

Not yet.

Can you post the full traceback (in proper code annotation format) after you have moved it to a completely different directory?

In [1]: import tensorflow as tf
ValueError                                Traceback (most recent call last)
 in ()
----> 1 import tensorflow as tf
/usr/local/lib/python2.7/site-packages/tensorflow/init.py in ()
21 from future import print_function
22
---> 23 from tensorflow.python import *
/usr/local/lib/python2.7/site-packages/tensorflow/python/init.py in ()
63 from tensorflow.core.util.event_pb2 import *
64 # Import things out of contrib
---> 65 import tensorflow.contrib as contrib
66
67 # Framework
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/init.py in ()
26 from tensorflow.contrib import grid_rnn
27 from tensorflow.contrib import layers
---> 28 from tensorflow.contrib import learn
29 from tensorflow.contrib import linear_optimizer
30 from tensorflow.contrib import lookup
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/init.py in ()
70
71 # pylint: disable=wildcard-import
---> 72 from tensorflow.contrib.learn.python.learn import *
73 from tensorflow.python.util.all_util import make_all
74
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/init.py in ()
21
22 # pylint: disable=wildcard-import
---> 23 from tensorflow.contrib.learn.python.learn import *
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/init.py in ()
23
24 from tensorflow.contrib.learn.python.learn import datasets
---> 25 from tensorflow.contrib.learn.python.learn import estimators
26 from tensorflow.contrib.learn.python.learn import graph_actions
27 from tensorflow.contrib.learn.python.learn import io
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/init.py in ()
21
22 from tensorflow.contrib.learn.python.learn.estimators._sklearn import NotFittedError
---> 23 from tensorflow.contrib.learn.python.learn.estimators.autoencoder import TensorFlowDNNAutoencoder
24 from tensorflow.contrib.learn.python.learn.estimators.base import TensorFlowBaseTransformer
25 from tensorflow.contrib.learn.python.learn.estimators.base import TensorFlowEstimator
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/autoencoder.py in ()
23
24 from tensorflow.contrib.learn.python.learn import models
---> 25 from tensorflow.contrib.learn.python.learn.estimators.base import TensorFlowBaseTransformer
26 from tensorflow.python.ops import nn
27
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/base.py in ()
32 from tensorflow.contrib import layers
33 from tensorflow.contrib.learn.python.learn.estimators import _sklearn
---> 34 from tensorflow.contrib.learn.python.learn.estimators import estimator
35 from tensorflow.contrib.learn.python.learn.estimators._sklearn import NotFittedError
36 from tensorflow.contrib.learn.python.learn.io.data_feeder import setup_train_data_feeder
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.py in ()
36 from tensorflow.contrib.learn.python.learn.estimators import tensor_signature
37 from tensorflow.contrib.learn.python.learn.estimators._sklearn import NotFittedError
---> 38 from tensorflow.contrib.learn.python.learn.io import data_feeder
39 from tensorflow.contrib.learn.python.learn.utils import checkpoints
40
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/io/init.py in ()
26 from tensorflow.contrib.learn.python.learn.io.graph_io import read_batch_features
27 from tensorflow.contrib.learn.python.learn.io.graph_io import read_batch_record_features
---> 28 from tensorflow.contrib.learn.python.learn.io.pandas_io import extract_pandas_data
29 from tensorflow.contrib.learn.python.learn.io.pandas_io import extract_pandas_labels
30 from tensorflow.contrib.learn.python.learn.io.pandas_io import extract_pandas_matrix
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/io/pandas_io.py in ()
22 try:
23   # pylint: disable=g-import-not-at-top
---> 24   import pandas as pd
25   HAS_PANDAS = True
26 except ImportError:
/usr/local/lib/python2.7/site-packages/pandas/init.pyc in ()
37 import pandas.core.config_init
38
---> 39 from pandas.core.api import *
40 from pandas.sparse.api import *
41 from pandas.stats.api import *
/usr/local/lib/python2.7/site-packages/pandas/core/api.py in ()
8 from pandas.core.common import isnull, notnull
9 from pandas.core.categorical import Categorical
---> 10 from pandas.core.groupby import Grouper
11 from pandas.formats.format import set_eng_float_format
12 from pandas.core.index import (Index, CategoricalIndex, Int64Index,
/usr/local/lib/python2.7/site-packages/pandas/core/groupby.py in ()
16                               DataError, SpecificationError)
17 from pandas.core.categorical import Categorical
---> 18 from pandas.core.frame import DataFrame
19 from pandas.core.generic import NDFrame
20 from pandas.core.index import (Index, MultiIndex, CategoricalIndex,
/usr/local/lib/python2.7/site-packages/pandas/core/frame.py in ()
37                                    create_block_manager_from_arrays,
38                                    create_block_manager_from_blocks)
---> 39 from pandas.core.series import Series
40 from pandas.core.categorical import Categorical
41 import pandas.computation.expressions as expressions
/usr/local/lib/python2.7/site-packages/pandas/core/series.py in ()
2942 # Add plotting methods to Series
2943
-> 2944 import pandas.tools.plotting as _gfx  # noqa
2945
2946 Series.plot = base.AccessorProperty(_gfx.SeriesPlotMethods,
/usr/local/lib/python2.7/site-packages/pandas/tools/plotting.py in ()
25 from pandas.util.decorators import Appender
26 try:  # mpl optional
---> 27     import pandas.tseries.converter as conv
28     conv.register()  # needs to override so set_xlim works with str/number
29 except ImportError:
/usr/local/lib/python2.7/site-packages/pandas/tseries/converter.py in ()
5 from dateutil.relativedelta import relativedelta
6
----> 7 import matplotlib.units as units
8 import matplotlib.dates as dates
9
/usr/local/lib/python2.7/site-packages/matplotlib/init.py in ()
1129
1130 # this is the instance used by the matplotlib classes
-> 1131 rcParams = rc_params()
1132
1133 if rcParams['examples.directory']:
/usr/local/lib/python2.7/site-packages/matplotlib/init.py in rc_params(fail_on_error)
973         return ret
974
--> 975     return rc_params_from_file(fname, fail_on_error)
976
977
/usr/local/lib/python2.7/site-packages/matplotlib/init.py in rc_params_from_file(fname, fail_on_error, use_default_template)
1098         parameters specified in the file. (Useful for updating dicts.)
1099     """
-> 1100     config_from_file = _rc_params_in_file(fname, fail_on_error)
1101
1102     if not use_default_template:
/usr/local/lib/python2.7/site-packages/matplotlib/init.py in _rc_params_in_file(fname, fail_on_error)
1016     cnt = 0
1017     rc_temp = {}
-> 1018     with _open_file_or_url(fname) as fd:
1019         try:
1020             for line in fd:
/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.pyc in enter(self)
15     def enter(self):
16         try:
---> 17             return self.gen.next()
18         except StopIteration:
19             raise RuntimeError("generator didn't yield")
/usr/local/lib/python2.7/site-packages/matplotlib/init.py in _open_file_or_url(fname)
998     else:
999         fname = os.path.expanduser(fname)
-> 1000         encoding = locale.getdefaultlocale()[1]
1001         if encoding is None:
1002             encoding = "utf-8"
/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.pyc in getdefaultlocale(envvars)
541     else:
542         localename = 'C'
--> 543     return _parse_localename(localename)
544
545
/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/locale.pyc in _parse_localename(localename)
473     elif code == 'C':
474         return None, None
--> 475     raise ValueError, 'unknown locale: %s' % localename
476
477 def _build_localename(localetuple):
ValueError: unknown locale: UTF-8

I just followed the official instruction, and run it in other directory.

Maybe it is a little mess up. I can try it in pycharm.

Well now you have a different error, try this.
https://coderwall.com/p/-k_93g/mac-os-x-valueerror-unknown-locale-utf-8-in-python

https://coderwall.com/p/-k_93g/mac-os-x-valueerror-unknown-locale-utf-8-in-python
That's the nub of the matter, thanks for your patience.

It's strange that disallowing a  script to be run in the TF directory were considered a non-bug.

Had the same issue. Solved by running:
pip uninstall tensorflow
pip install tensorflow

You're running the script in the same directory as tensorflow. Move it out and you should be fine.

can you explain how u do that ???


Update run_exports

Checklist

[ ] Used a personal fork of the feedstock to propose changes
[ ] Bumped the build number (if the version is unchanged)
[ ] Reset the build number to 0 (if the version changed)
[ ] Re-rendered with the latest conda-smithy (Use the phrase @conda-forge-admin, please rerender in a comment in this PR for automated rerendering)
[ ] Ensured the license file is being packaged.

Interesting looks like the rpath test found an issue with libcudart on CI
+ bash test-rpath.sh
$PREFIX/targets/x86_64-linux/lib/libcudart.so.12.0.107 rpath: $ORIGIN:$ORIGIN/.
The following libraries were found with an unexpected RPATH:
$PREFIX/targets/x86_64-linux/lib/libcudart.so.12.0.107

Interesting looks like the rpath test found an issue with libcudart

Seems we need to disable binary_relocation on cuda_cudart as well https://github.com/conda-forge/cuda-cudart-feedstock/pull/16/commits/3e2719028c49359cae464357c236f78867003939. This repro'd locally for me as well without the changes of this PR.


Make sure google/crc32c git hash is embedded in Python package

For example:
>>> import numpy.version
>>> numpy.version.git_revision
'f82c2b62d18b381baefc30f8e8d7788d08a0bd16'

Except that refers to a commit within the numpy/numpy project, whereas I'm suggesting we refer to a commit of the google/crc32c subproject.

Manually moved to https://github.com/googleapis/python-crc32c/issues/3


fragmap: add BdevLvolGetFragmap

Longhorn/longhorn#6138

@derekbit after resolving the conflicts, we can merge this PR.


(On Windows) Surround Forge command path with quotes against path with spaces

Is your feature request related to a problem? Please describe.
When the full path to the Forge application contains spaces (more common on Windows, though I guess could well be on macOS/Linux), the command fails with a "No executable found matching command {{partial path up to the first space character}}"
Describe the solution you'd like
I think the easiest solution would be to surround the full path to the Forge application in quotes.
Describe alternatives you've considered
Another idea, more involved, is to parse the full path and somehow (how?) deal with the spaces while not disturbing the user's file structure's ordering...
Additional context
By the way, regardless of the end results, the toast "Project was created" always shows up, which is misleading, confusing and (a little) irritating when, in fact, no project was created.
As an aside, I'd say, wait (and/or validate against the file system itself) for the project creation to actually be over before toasting (and, on error, toast an error message).

This issue should be moved to ionide-vscode-fsharp repository. It's not a problem on the callee side (Forge CLI), but on the caller side (the VS Code plugin).
@Krzysztof-Cieslak, can you move it?


Error in left_join()

When i run "IBD_2_subtypes_online" part in the protocol, there is an error occurred. Seems "y" is absent, do you have ideas how to fix it? Thank you very much.

groups <- c(CD = 'CD', UC = 'UC')
de_gene <- lapply(groups, function(x) {

DA(expr = metagenome,

 meta = meta_mg,

 subset_group = c(x, 'Control'),

 diff_group = x)

})
Error in left_join():
! Join columns in y must be present in the data.
✖ Problem with Sample.
Backtrace:

base::lapply(...)
dplyr:::left_join.data.frame(., y, by = by, copy = copy, suffix = suffix)

Please check whether meta_mg is loaded.
head(meta_mg)

I have reproduced successfully the examples in R-4.4.1, and you maybe neglect something.


The  path of Civilization 6 purchased by epic is different from that of steam

at Documents\My Games\Sid Meier's Civilization VI (Epic)

The manifest pulls save data from PCGamingWiki daily. Can always update there if you find something missing.
I've updated the Civ VI page to include this new info - https://www.pcgamingwiki.com/wiki/Sid_Meier's_Civilization_VI#Save_game_data_location
Will be included in tomorrow's update

Thanks, @sharkusmanch!


Feature/html

Just caught this late after approve, not sure what this part means for the conflicting files in the box above.
This branch has conflicts that must be resolved
to resolve conflicts before continuing.
Conflicting files
.DS_Store
assets/.DS_Store
assets/css/style.css
index.html


[Event Request] table 11000003 "Detail Line" - OnAfterCalculatePartOfBalance

[IntegrationEvent(false, false)]
    local procedure OnAfterCalculatePartOfBalance(DetailLineRec: Record "Detail Line"; var Percent: Decimal)
    begin
    end;

   procedure CalculatePartOfBalance() Percent: Decimal
    var
        Totamount: Decimal;
    begin
        Totamount := CalculateBalance("Currency Code (Entry)");
        if Abs("Amount (Entry)" - Totamount) < CalculateVariation then
            Percent := 1
        else
            if Totamount <> 0 then
                Percent := "Amount (Entry)" / Totamount
            else
                Percent := 0;

        OnAfterCalculatePartOfBalance(Rec, Percent);
    end;

Thanks for reporting this. We agree, and we’ll publish a fix asap, either in an update for the current version or in the next major release. Please do not reply to this, as we do not monitor closed issues. If you have follow-up questions or requests, please create a new issue where you reference this one.


Improving beacon monitoring

This is tracking bug for improving monitoring.
It aggregates multiple Dev Portal topics:
https://forums.estimote.com/t/monitoring-region-extremely-buggy/2552
https://forums.estimote.com/t/scaning-beacon-when-phone-is-sleeping/2339/7
Progress so far:

in v0.9.3 - we changed default background scanning time to 10s and waiting time 20s between scans
we are internally testing new alarm mechanism for more reliable invoking scan in background

The problem boils down also to one significant problem. If at some later time app is invoked from background to perform scan, there is possibility not to find beacon even if it is nearby. That causes onExitRegion callback.

https://forums.estimote.com/t/beaconmanager-monitoringlistener-list-of-beacons/2567

By implementing a simple debounce on the onExitedRegion (onExitedRegion has to be triggered twice before I show trigger my out of region "alarm", I don't seem to have the issue anymore)

@vergauwen-simon Is you debounce time based?

@wiktor My debounce is purely based on how many times the onExitedRegion is triggered. In other words, I force it to trigger two consecutive times before I rely on it being onExitedRegion.

We made a progress with v0.9.4 (https://github.com/Estimote/Android-SDK/releases/tag/0.9.4).
AlarmManager is now used in AndroidManifest.xml via broadcast receiver and not set up programatically. This will substantially help with reliability

We see the same problem (tested on Samsung Galaxy S4 and S6 with Android 5.0.1 and 5.1.1 respectively), using Estimite SDK 0.9.7 as well as 0.4.3, where our setForegroundScanPeriond for ranging is ignored when the app is put in background. We want a scan done every 1 minute, but we get a scan every 5 minutes. When Googling this, it seems like AlarmManager.set is (since API 19) inexact and can cause scheduled alarms to be deferred. If an exact firing is needed, AlarmManager.setExact should be used.
http://developer.android.com/reference/android/app/AlarmManager.html

Note: Beginning with API 19 (KITKAT) alarm delivery is inexact: the OS will shift alarms in order to > minimize wakeups and battery use. There are new APIs to support applications which need strict
delivery guarantees; see setWindow(int, long, long, PendingIntent) and setExact(int, long,
PendingIntent). Applications whose targetSdkVersion is earlier than API 19 will continue to see the
previous behavior in which all alarms are delivered exactly when requested.

Things are pretty bad here..
01-25 11:46:53.422 13239-13239/com.example.app D/MyApplication: entered
01-25 11:47:36.332 13239-13239/com.example.app D/MyApplication: exited
01-25 11:48:23.420 13239-13239/com.example.app D/MyApplication: entered
01-25 11:49:04.982 13239-13239/com.example.app D/MyApplication: exited
01-25 11:49:37.442 13239-13239/com.example.app D/MyApplication: entered
01-25 11:49:50.493 13239-13239/com.example.app D/MyApplication: exited
01-25 11:51:21.058 13239-13239/com.example.app D/MyApplication: entered
01-25 11:53:25.243 13239-13239/com.example.app D/MyApplication: exited
01-25 11:58:15.647 13239-13239/com.example.app D/MyApplication: entered
01-25 11:59:05.375 13239-13239/com.example.app D/MyApplication: exited
01-25 12:02:19.644 13239-13239/com.example.app D/MyApplication: entered
01-25 12:03:06.649 13239-13239/com.example.app D/MyApplication: exited
01-25 12:04:27.672 13239-13239/com.example.app D/MyApplication: entered
01-25 12:06:05.092 13239-13239/com.example.app D/MyApplication: exited
01-25 12:08:15.723 13239-13239/com.example.app D/MyApplication: entered
01-25 12:09:04.977 13239-13239/com.example.app D/MyApplication: exited
01-25 12:10:31.741 13239-13239/com.example.app D/MyApplication: entered
01-25 12:16:08.029 13239-13239/com.example.app D/MyApplication: exited
01-25 12:19:35.807 13239-13239/com.example.app D/MyApplication: entered
01-25 12:21:05.390 13239-13239/com.example.app D/MyApplication: exited
01-25 12:22:55.819 13239-13239/com.example.app D/MyApplication: entered
01-25 12:24:25.835 13239-13239/com.example.app D/MyApplication: exited
01-25 12:25:39.849 13239-13239/com.example.app D/MyApplication: entered
01-25 12:27:06.097 13239-13239/com.example.app D/MyApplication: exited
01-25 12:28:23.893 13239-13239/com.example.app D/MyApplication: entered
01-25 12:29:46.537 13239-13239/com.example.app D/MyApplication: exited
01-25 12:40:58.005 13239-13239/com.example.app D/MyApplication: entered
01-25 12:41:46.697 13239-13239/com.example.app D/MyApplication: exited
01-25 12:45:40.048 13239-13239/com.example.app D/MyApplication: entered
01-25 12:46:27.212 13239-13239/com.example.app D/MyApplication: exited
01-25 12:47:02.063 13239-13239/com.example.app D/MyApplication: entered
01-25 12:47:47.406 13239-13239/com.example.app D/MyApplication: exited
01-25 12:48:58.911 13239-13239/com.example.app D/MyApplication: entered
01-25 12:49:47.645 13239-13239/com.example.app D/MyApplication: exited
01-25 12:53:32.102 13239-13239/com.example.app D/MyApplication: entered
01-25 12:55:05.070 13239-13239/com.example.app D/MyApplication: exited
01-25 12:55:35.756 13239-13239/com.example.app D/MyApplication: entered
01-25 12:56:27.236 13239-13239/com.example.app D/MyApplication: exited
01-25 12:58:22.158 13239-13239/com.example.app D/MyApplication: entered
01-25 12:58:34.952 13239-13239/com.example.app D/MyApplication: exited
01-25 13:02:38.195 13239-13239/com.example.app D/MyApplication: entered
01-25 13:03:27.587 13239-13239/com.example.app D/MyApplication: exited
01-25 13:07:59.963 13239-13239/com.example.app D/MyApplication: entered
01-25 13:08:48.324 13239-13239/com.example.app D/MyApplication: exited
01-25 13:12:10.280 13239-13239/com.example.app D/MyApplication: entered
01-25 13:13:35.135 13239-13239/com.example.app D/MyApplication: exited
01-25 13:22:07.242 13239-13239/com.example.app D/MyApplication: entered
01-25 13:23:44.978 13239-13239/com.example.app D/MyApplication: exited
01-25 13:24:18.395 13239-13239/com.example.app D/MyApplication: entered
01-25 13:25:05.154 13239-13239/com.example.app D/MyApplication: exited
01-25 13:25:36.027 13239-13239/com.example.app D/MyApplication: entered
01-25 13:26:27.528 13239-13239/com.example.app D/MyApplication: exited
01-25 13:29:00.423 13239-13239/com.example.app D/MyApplication: entered
01-25 13:29:47.977 13239-13239/com.example.app D/MyApplication: exited
01-25 13:30:30.456 13239-13239/com.example.app D/MyApplication: entered
01-25 13:31:34.961 13239-13239/com.example.app D/MyApplication: exited
01-25 13:33:50.475 13239-13239/com.example.app D/MyApplication: entered
01-25 13:34:35.742 13239-13239/com.example.app D/MyApplication: exited
01-25 13:39:18.520 13239-13239/com.example.app D/MyApplication: entered
01-25 13:40:05.598 13239-13239/com.example.app D/MyApplication: exited
01-25 13:41:24.536 13239-13239/com.example.app D/MyApplication: entered
01-25 13:42:48.264 13239-13239/com.example.app D/MyApplication: exited
01-25 13:45:26.294 13239-13239/com.example.app D/MyApplication: entered
01-25 13:46:27.744 13239-13239/com.example.app D/MyApplication: exited

I put the "entered" and "exited" debug message in onEnter/onExit callbacks, and you can see they're being triggered randomly, but in very short interval. During the test I placed the device in a stationary place with good reception to the beacon (I can detect the beacon in the same place using the Estimote app from Play Store).
Since I rely on enter/exit event to log user's activity within an area, this renders my app useless.
Using latest SDK (v0.9.7)

What Android device and OS is that?

@heypiotr It was Xperia Z with official Lollipop 5.0 ROM, and I've also tested on Nexus 6P with stock latest firmware, with the same problem.
Thank you.

@maddie Work a round is to implement a debouncer... It's well not very pretty, but a debouncer of 2-3 seemed to do the trick for me.

@vergauwen-simon Thanks for the suggestion. The enter/exit events are being triggered too close to each other here I'm not sure how should I implement a debouncer for a situation like this.. but I'll take a shot at it.
Thanks again!

Debounce is not an acceptable workaround, because the number of trigger and the timing are not consistent. I've been using Estimote SDK from time to time since 2014 and I feel that Android does not receive enough attention from Estimote. With this bug, the SDK is basically useless...

Wall of text warning. For a TL;DR, skip to the last two paragraphs.
I can assure you we're paying more attention to Android now than ever. Android ecosystem is just much trickier for us to work with, so some features and bugfixes take longer to develop. [Ask any Android library maintainer, and especially when it come to libraries that have to touch the hardware. I'm 200% sure they'll tell you the same. We :heart: the openness, customizability and extensibility of the Android platform, but we have to acknowledge that it comes at a price.]
Example: Google made a huge step forward in Android 5.0 with rewriting their Bluetooth Low Energy API from scratch, with support for modern features such as batch scanning, hardware-level filtering, etc. First, we had to wait for Android 5.0 adoption to grow beyond a few percent it had for months after launch. Then, we a few months ago, we implemented the Android 5.0 API in our SDK, only to immediately be showered in bug reports—turned that there are huge implementation differences between devices. Samsung Galaxies for example won't report RSSI changes when doing batch scanning, etc. So we have to patiently investigate each case and add a ton of "if (isSamsungGalaxy())" workarounds to the SDK. All so that the beacon developers don't have to worry about those nuances. But this takes time.
At Estimote, we've doubled the size of our Android team in the past months, we work closely with Google and Eddystone and beacons, we're rolling out full support for our newly-announced Location Beacons to Android—100% feature parity with iOS. Android is extremely important for us, and we remain committed to its support.
About that monitoring bug though—this is something we've been working on for weeks now. Fixing bugs is not just "oh, there's a bug, let's fix it." We've been building better understanding of what's going wrong, gathering debugging logs from reporters, buying devices to be able to reproduce the bug, etc.
If you want to help speed things up, we'd appreciate your help! Tell us the exact device model, Android OS version, and SDK version that you experienced the problem with. (We'll always kindly ask you to see if the bug is reproducible with the latest version of the SDK.) If you could also enable debug logging (EstimoteSDK.enableDebugLogging(true), put it before all the other beacon code) and send us the output from logcat (plus, write at what time you got a "false" exit, so that it's easier for us to navigate the logs), that'd also help tremendously.
We're really sorry for all the trouble—believe me, we're also quite disappointed this is taking so long. Personally though [this is me speaking for myself now], I think saying that Android does not receive enough attention from Estimote is terribly unfair to both Estimote (as I'm writing this comment, two desks from me, our firmware engineers are working on new Eddystone features) and our Android team.

hi @heypiotr, sorry if I hurt your feelings, I was just expressing my frustrations. The new SDK 0.10.0 works well, I'm not having the onEnter/onExit events randomly anymore. The testing device was HTC One M9.

No feelings were hurt in the process (: I just felt it's important to add some context to this discussion, because otherwise, it's very easy to draw wrong conclusions—and it's naturally our job to explain the intricacies of building beacons support, so I'm glad you brought it up.
Glad to hear the new SDK works better!

Hi,
I'm new at developing with Android Estimote SDK and I've just came across the same issue that Maddie.
I've tried several Android SDK versions and the only one that seems to work fine is 0.10.0. But I've tried 0.10.04 and 0.11.00 and with both encountered the same bug.
I'm using a Samsung S5 Mini (SM-800G), Android Version 4.4.2
Any ideas?
Thanks in advance for your help.
Rodrigo

I have the same Issue , the beacon still entering and exiting, i have tried it on all devices from API 19 till 25 !
Anyone have a solution for this !

Hello everybody,
I have same problem. My beacon exit and enter a few seconds. My device note 3 android 6.0.
I find out this blog.
http://blog.estimote.com/post/149409589655/estimote-monitoring-more-reliable-notifications.
But no suggestion. Anyone have solution?


Limit wind length

PLEASE FOLLOW THE BELOW PR TEMPLATE
Limit wind length based on resource amount.
Description
Limit wind length based on resource amount.
Keep angle in direction of mouse.
Related Task
https://app.clickup.com/t/20ctx0v
How Has This Been Tested?
Screenshots (if appropriate):

Hello! Could you let us know which scene you tested this on? We can't find A scene with the stuff o-o


32-bit build succeeds, throws exceptions at runtime about integer length

Hey! I know these issues are bordering on the obscure, but I'm still fighting with the Windows builds of N1. We target ia32 instead of x64 on Windows because it's more widely supported, and it looks like there are some casting warnings at compile time that result in the module not working when the app runs. I believe this issue is only reproducible if you're targeting a 32-bit architecture.
Here are a few of the warnings:
c:\users\ieuser\documents\n1\node_modules\bettersqlite3\src\objects\int64\../../util/macros.h(33): warning C4146: unary minus operator applied to unsigned type, result still unsigned (..\src\objects\int64\int64.cc) [C:\Users\IEUser\Documents\N1\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
c:\users\ieuser\documents\n1\node_modules\bettersqlite3\src\objects\int64\../../util/macros.h(33): warning C4146: unary minus operator applied to unsigned type, result still unsigned (..\src\util\data.cc) [C:\Users\IEUser\Documents\N1\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]
c:\users\ieuser\documents\n1\node_modules\better-sqlite3\src\objects\statement\../../util/macros.h(33): warning C4146: unary minus operator applied to unsigned type, result still unsigned (..\src\objects\database\database.cc) [C:\Users\IEUser\Documents\N1\node_modules\better-sqlite3\build\better_sqlite3.vcxproj]

When you run the app, it complains about the 32-bit integers:
932:1011/192644:INFO:CONSOLE(28)] "TypeError: Expected both arguments to be 32 bit signed integers.
    at TypeError (native)
    at Object.<anonymous> (C:\Users\IEUser\Documents\N1\node_modules\better-sqlite3\index.js:8:34)

If you have a Windows machine, you can reproduce this by running this to build. I'm not 100% sure the warnings are causing the issue, but they seem like a very likely culprit. I wonder if there just need to be different types used here: https://github.com/bengotow/better-sqlite3/blame/n1-1.3.6/src/util/macros.h#L32
npm install --msvs_version=2013 --target=1.4.1 --arch=ia32 --target_platform=win32 --dist-url=https://atom.io/download/atom-shell

Unfortunately I don't have a 32-bit machine to test it on, but if you manage to solve the problem, pull requests are very much appreciated.
The first thing I'd try is changing IS_32BIT_INT to this:
inline bool IS_32BIT_INT(double num) {
    return floor(num) == num && num <<PHONE_NUMBER>.0 && num >= -2147483648.0;
}

The .0s at the end of the integer literals force them to be doubles

Thanks!  They did a great job with backward compatibility. (we actually don't bother shipping a 64-bit version of the app.) Will keep you posted.


definition for algorithm needs to be made more precise

From<EMAIL_ADDRESS>on April 10, 2014 10:05:28
The definition for algorithm reads:
A plan specification which describes inputs, output of mathematical functions as well as workflow of execution for achieving an predefined objective. Algorithms are realized usually by means of implementation as computer programs for execution by automata.
However, it is not clear in the definition that output is a result of transforming the input in way described by the workflow. I suggest changing definition to:
A plan specification that describes the workflow for transforming the input to a mathematical function into an output, and this output is a predefined objective for the algorithm.
Original issue: http://code.google.com/p/information-artifact-ontology/issues/detail?id=167

From<EMAIL_ADDRESS>on April 10, 2014 12:48:53
NOTE: In issue #156 we proposed to mark "algorithm" as "ready for release". Because of this issue I did not make that change. But once this issue is resolved I hope we can make that change.

From<EMAIL_ADDRESS>on June 25, 2014 08:13:20
This issue sounds like it is still open, but I haven't seen anymore chatter about it. Should it be closed?

From<EMAIL_ADDRESS>on July 04, 2014 06:12:34
Can you remove the words 'plan specification' from the text definition, it's OntoSpeak. The rest I think is good:
An algorithm describes the workflow for transforming the input to a mathematical function into an output, and this output is a predefined objective for the algorithm.
Labels: -Priority-Medium Priority-High

From<EMAIL_ADDRESS>on July 04, 2014 06:30:14
James seems to be unaware of the reasons why 'plan specification' is used in IAO and OBI.
The term is needed in order that the definition should have the proper definitional form
An A is a B which Cs
where B is the parent term of A in the ontology.
Without some parent term the definition does not work.
Do we have a definition of workflow?
Is 'mathematical function' not too narrow.
(Suppose e.g. we had a method for transforming mathematical theorems of certain sorts into proofs of such theorems. Would that not be an algorithm?)
Perhaps James is here defining 'algorithm specification' (a description, after all, is not an algorith, it is a description of an algorithm).

From<EMAIL_ADDRESS>on July 05, 2014 09:46:57
Indeed Barry, i know of the reason I just don't agree. I don't think it is always necessary, though sometimes it is useful but in particular I definitely think it should not be included when the parent class is an ontological organisational class like plan specification.
An algorithm is a collection of steps (workflow if you like) for transforming input to output - I will need help to see the distinction between the specification of these and the collection of these which is what you are calling algorithm specification and algorithm respectively I presume. (I do see the distinction between executing these in a process.) Consider:
"A + B = C"
Which of this is the algorithm specification and which is the algorithm?

"However, it is not clear in the definition that output is a result of transforming the input in way described by the workflow."
Not all algorithms define data transformations. For example, would you call an algorithm which describes how to take as input an ontology, and produce a boolean indicating whether it is consistent or not a "transformation"?
Regarding "algorithm" versus "algorithm specification", we only have "algorithm" in IAO.
The question of whether to use the genus in a definition or not keeps coming up, and I think it should be addressed independently of this case, so I propose we close this issue.


Add functionality to save attack models.

I'm currently running multiple experiments and want to store the trained attack models for later use, similar to torch.save().
I couldn't find anything in the documentation, so I assume it's not yet possible to store attack models.
This is a crucial feature for any ML library!

Hi @ROYALBEFF
Thank you very much for using ART! I think that could be a useful feature.
Could you please describe your use case in more detail?
Would be interested to implement a prototype?


Mouse Cursor Trail Effect

The mouse cursor trail effect offers several benefits:

Improved Visibility: Makes the cursor easier to spot, especially on busy screens.
Enhanced Accessibility: Helps users with visual impairments keep track of the cursor.
Aesthetic Appeal: Adds a stylish, engaging touch to websites or apps, enhancing user experience.
Action Awareness: Useful in presentations or tutorials to highlight cursor movements.

Please assign this issue to me under GSSoC and Hacktoberfest
Thank you

do PR if it looks good then I'll merge it

I would like to confirm whether the effect currently used on the homepage is appropriate for other pages as well, or if it works best as a unique feature of the homepage. Should I consider applying this effect site-wide, or does it serve its purpose better as a distinct design element for the homepage only?
https://github.com/user-attachments/assets/8d336296-3fea-41c2-a1a5-f909cb6ef46d

I would like to confirm whether the effect currently used on the homepage is appropriate for other pages as well, or if it works best as a unique feature of the homepage. Should I consider applying this effect site-wide, or does it serve its purpose better as a distinct design element for the homepage only?
https://github.com/user-attachments/assets/8d336296-3fea-41c2-a1a5-f909cb6ef46d

Hey @Priyanshi0112 we have some ideas regarding this. Please wait for a day and we will get back to you

okay @B1N4RY-P4R45173

@Vinay-Khanagavi  Please assign me the issue

@Priyanshi0112  Thanks for the contribution but after discussion with this issues we made decision of not having the the cursor effect


Loading unknown spreadsheet id when no previous history should display "/" not remain stuck on /bad-spreadsheet-id/

Problem is there are several places calling load spreadsheet metadata but only one installs a watcher to reload previous HistoryToken.


Both is.safari() and is.chrome() returns true for facebook inapp browser

Hi,
I got an issue with browser detection features.
I used the following user agent string: Mozilla/5.0 (Linux; Android 7.0; SM-G930F Build/NRD90M; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/67.0.3396.87 Mobile Safari/537.36 [FB_IAB/FB4A;FBAV;]
Both methods is.safari() and is.chrome() are returing true for the same user agent.

@bedis-elacheche Yeah currently both of those methods are using User Agent sniffing and aren't very reliable. I'll work on improving it and submit a pull request, in the meantime you'll have to depend on duck typing to make it more reliable.

That would be a great addition,
the same issue is happening within Skype mobile app:
it's tough to find out if a page it open within Skype inapp browser or within a real browser.


TNO-787, 782, 785: Content form toolbar

Missing the first section that Alessia has worked on but will add that in once her code is merged

moved actions to new content form toolbar
alert section

@Fosol, closing this one to upload a PR that incorporates this + new content form to avoid more difficult merge conflicts 😋


feat: Allow replicas to have a different version than primary

Description
Allow replica to have engine version set for minor version upgrades.
Motivation and Context
https://github.com/hashicorp/terraform-provider-aws/issues/30703
Breaking Changes
No.
How Has This Been Tested?

[ ] I have updated at least one of the examples/* to demonstrate and validate my change(s)
[x] I have tested and validated these changes using one or more of the provided examples/* projects

[x] I have executed pre-commit run -a on my pull request

we'll need to update the min supported AWS provider version to 4.63.0 throughout the repository https://github.com/terraform-aws-modules/terraform-aws-rds/blob/c7fd6c53680236e5afd2562cdfad7d050175b713/versions.tf#L7

This PR is included in version 5.8.0 :tada:


The example from docs doesn't work

Hi.
// Canadian postal code mask
const firstLetter = /(?!.*[DFIOQU])[A-VXY]/i;
const letter = /(?!.*[DFIOQU])[A-Z]/i;
const digit = /[0-9]/;
const mask = [firstLetter, digit, letter, " ", digit, letter, digit];
return <InputMask mask={mask} />;

This example from docs doesn't work for me. Any suggestions?
Here is sandbox https://codesandbox.io/s/elegant-sanderson-99534

Duplicated, please check: https://github.com/sanniassin/react-input-mask/issues/269

There's a fork of this library working fine, right now and they are reactivating the lib, check: https://github.com/comigotech/react-input-mask


Version 2.0

Proposed changes to follow upcoming release of the API based on https://github.com/GetBlimp/filepreviews-python/pull/3.
@gcollazo @GetBlimp/interns-2015 I'd love some feedback on this.

Might want to include https://github.com/davidchambers/Base64.js to support IE < 10

Yes. Bundle the base64 support for older browsers.

Next step: tests!


add FFTW version compatibility

@Alexander, I think we can merge this. The precompilation errors on nightly but there's a PR open on CSV.jl regarding this: https://github.com/JuliaData/CSV.jl/issues/1124
The error they report is the same we get in the CI.

Looks good to me, as long as the error on nightly isn't a result of our programming I think it's alright to merge. I'll approve, you can merge when you like.


Remove createKubeconfigSecret

/kind bug
What steps did you take and what happened:
the call to createKubeconfigSecret assumes controlplaneEndpoint is known before creating the cloud-config for kubeadm init, but this is not always the case (e.g. CAPV).
We should move this out of CAPBK.
What did you expect to happen:
createKubeconfigSecret should be created by CAPI before setting BootstrapControlPlane ready annotation https://github.com/kubernetes-sigs/cluster-api/issues/1274
/cc @akutz @detiber

This is just a tracking issue for https://github.com/kubernetes-sigs/cluster-api/issues/1274

@chuckha @detiber now that https://github.com/kubernetes-sigs/cluster-api/issues/1274 has been addressed, can this be closed?

Resolved by https://github.com/kubernetes-sigs/cluster-api-bootstrap-provider-kubeadm/pull/198
/close


Removes zipkin-tracer gem as it is now in its own repo under openzipkin

This deletes zipkin-tracer from twitter/zipkin to avoid confusion as to
where the code authoritatively is: openzipkin/zipkin-tracer
zipkin-tracer has been recently maintained by Lookout, who started
openzipkin to facilitate community-driven development. The zipkin-tracer
gem has been imported, retaining history to openzipkin/zipkin-tracer.
Inside openzipkin, there's a "Ruby" team which any former maintainer is
welcome to join. The zipkin-tracer gem will now be properly maintained,
tagged, and released from openzipkin/zipkin-tracer.

:+1:

closed via e4f0fd64234c78d649695ef1209904318aac5a9b


Publish tagged version as a GitHub release

@elijahmanor we need to update this to support 2-factor auth. We could either just ask them to create an auth token from the github ui and save that, or you could ask for the 2nd factor auth token and include the correct header when you create the token. ( https://developer.github.com/v3/auth/#working-with-two-factor-authentication )

Ohh man, good catch. I was hoping to not ask the user to create a token in the UI. I'll take a stab at adding the additional 2-auth code, but depending on the effort may just punk and fall back to having the user manually register the app.

@elijahmanor  - I don't know if it will help, but we did some 2FA with GH stuff a while back in blu https://github.com/LeanKit-Labs/blu/blob/master/src/accessToken.js

@elijahmanor you could either just ask for the 2fa token, or you could make the request as you are now and in the event that you get a 401 with this header: X-GitHub-OTP: required; :2fa-type,  you ask for the 2fa token and send the corrected request. I think either one is a reasonable solution.

Updated to account for GitHub Two Factor Authentication. I opted to check the GitHub response and if it needed 2FA then I ask for the auth token and use it, otherwise if it is not needed I continue as normal.


Does Mamba have to run in Ubuntu please?

Hi, does Mamba have to run in Ubuntu environment please?

We have not tested on Windows before, but I it seems that the cuda implementation in causal_conv1d requires a Linux OP.


support for a-Shell

Describe the feature/change you'd like
I just tried installing the a-Shell which is similar to iSH but with lot more packages and features, which is also a lot more faster than iSH in terms of output execution.
mov-cli can be installed because it's python but it doesn't able to run.
initially, i think there seems to be issue with locating the local directory.
Additional context
https://holzschu.github.io/a-Shell_iOS/
Error when launching mov-cli
[Documents]$ mov-cli
/Users/mobile/Library/Application Support/mov-cli
Traceback (most recent call last):
  File "/var/mobile/Containers/Data/Application/678DFDE5-993E-4598-8EA7-6B39767C1F61/Library/bin/mov-cli", line 8, in <module>
    sys.exit(movcli())
             ^^^^^^^^
  File "/var/mobile/Containers/Data/Application/678DFDE5-993E-4598-8EA7-6B39767C1F61/Library/lib/python3.11/site-packages/mov_cli/__main__.py", line 19, in movcli
    cl, url = ask(p)

              ^^^^^^
  File "/var/mobile/Containers/Data/Application/678DFDE5-993E-4598-8EA7-6B39767C1F61/Library/lib/python3.11/site-packages/mov_cli/utils/select.py", line 117, in ask
    calls = p()
            ^^^
  File "/var/mobile/Containers/Data/Application/678DFDE5-993E-4598-8EA7-6B39767C1F61/Library/lib/python3.11/site-packages/mov_cli/utils/select.py", line 90, in p
    firstStart()
  File "/var/mobile/Containers/Data/Application/678DFDE5-993E-4598-8EA7-6B39767C1F61/Library/lib/python3.11/site-packages/mov_cli/utils/props.py", line 23, in firstStart
    mkdir(home())
FileNotFoundError: [Errno 2] No such file or directory: '/Users/mobile/Library/Application
 Support/mov-cli'

a-Shell doesn't have a package manager, fzf will not work on a-Shell.

oh okay, i didn't know that...


Add resource requests/limits

Please, let me know if you don't think these limits are reasonable.

There were the following issues with your Pull Request

Commit: 47a7f38dae8d33bff75f660151cf8f6f18d30406
Commits must be in the following format: %{type}(%{scope}): %{description}

Guidelines are available at https://github.com/fabric8io/fabric8-ui

This message was auto-generated by https://gitcop.com

Can one of the admins verify this patch?

@vpavlin snapshot fabric8-ui is deployed and available for testing at https://fabric8-ui-fabric8-ui-pr-951-fabric8-ui.int.rdu2c.fabric8.io

I'm not sure how I would know what is reasonable on this. @pmuir do you know?

[test]


Fixes  an issue where traffic_monitor never completes startup if traffic_ops is unreachable

Fixes issues where when traffic monitor is starting up and is unable
to contact traffic_ops and obtain valid CRConfig data, traffic_monitor
will loop forever doing nothing useful.  This PR fixes the issue so
that during startup, traffic_monitor will continuously retry reaching
traffic_ops.  Upon successful login and a good CRConfig fetch,
traffic_monitor will resume its startup and begin polling caches
without intervention.
What does this PR do?
Fixes #(issue_number)
Which TC components are affected by this PR?

[ ] Documentation
[ ] Grove
[ ] Traffic Analytics
[x] Traffic Monitor
[ ] Traffic Ops
[ ] Traffic Ops ORT
[ ] Traffic Portal
[ ] Traffic Router
[ ] Traffic Stats
[ ] Traffic Vault
[ ] Other _________

What is the best way to verify this PR?
Shutdown the traffic_ops golang api server and then start traffic_monitor and you'll observe that it
continuously retries connecting to traffic_ops.  When traffic_ops is restored, traffic_monitor will then login to traffic_ops, fetch CRConfig data, complete its startup and then begin polling caches.
Check all that apply

[ ] This PR includes tests
[ ] This PR includes documentation updates
[ ] This PR includes an update to CHANGELOG.md
[ ] This PR includes all required license headers
[ ] This PR includes a database migration (ensure that migration sequence is correct)
[ ] This PR fixes a serious security flaw. Read more: www.apache.org/security

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2603/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2622/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2623/
Test FAILed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2624/
Test PASSed.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2625/
Test FAILed.

I've made the changes @rawlinp

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2631/
Test FAILed.

@rawlinp thanks, I fixed the error logging.

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2635/
Test PASSed.


Create scaffolding for development tools and CI

This adds scaffolding for development tools and CI, primarily adapted from Hypermodern Python.

:shipit:


Add "swagger is available at XXXX" on server startup

To help developers locate swagger JSON upon server startup, we should add a banner to the console output.

I think this is impossible to support generically.  It's a good idea, but without making major assumptions about the container, it's not possible.  Boo.

:-1:


version discrepancy with arm-ttk

Bicep version
0.9.1
Describe the bug
Bicep extension in VSCode shows different version for Microsoft.OperationalInsights/workspaces/tables, than arm-ttk and the documentation.
To Reproduce
Create a resource in bicep with:

Microsoft.OperationalInsights/workspaces/tables@2021-06-01
Microsoft.OperationalInsights/workspaces/tables@2021-12-01-preview
Microsoft.OperationalInsights/workspaces/tables@2022-10-01

and try arm-ttk, VSCode extension and to deploy it.

and the latest stable here:
https://docs.microsoft.com/en-us/azure/templates/microsoft.operationalinsights/change-log/workspaces/tables

@adrianmo @anagyzambo-kx

Documentation and bicep:

2020-03-01-peview
2020-08-01
2020-10-01
2021-12-01-preview

arm-ttk:

2021-12-01-preview
2022-10-01
2022-10-01

arm-deploy:

2017-04-26-preview
2020-03-01-preview
2020-08-01
2021-12-01-preview
2022-10-01

We are in the process of migrating this TTK rule to the bicep linter, which will align the sources of API versions. Closing as this will be resolved in the 0.10 release.


Antigravity Bubble - Dimensions bug

Description (Required)
There is a bug which occurs when antigravity bubbles are used on a multiplayer server in two different dimensions. Loading chunks in both dimensions causes the antigravity bubble to lose it's ability to make players fly.
Steps to reproduce the Issue (Required)
Build an Antigravity bubble in the overworld.
Build an Antigravity bubble in the end
Host a minecraft server
Join the server
Fly next to the Antigravity bubble in the overworld.
Let a friend join, and teleport him to the end next to the Antigravity bubble.
Watch yourself fall down
Expected behavior (Required)
I expected my Antigravity bubble to keep working when others use it.
Server Log / Error Report
I'm not the server owner. So sadly I'm not able to provide logs.
Environment (Required)
Server: Minecraft 1.16.5 - Spigot
Minecraft Version: 1.16.5
CS-CoreLib Version: Unknown
Slimefun Version: 4
Plugin Version: Unknown

Confirmed to be an issue with the incorrect permissions setup for CMI


Disable ENS xfer for unwrapped domains

Until the backend supports the 2-stage transfer for wrapped (ERC721) ENS domains, disable support on the UI.

/gcbrun


Bugfix/long delete

@NehaThawani44 , please check this change. It was necessary to change the FileInputStream variabel to a String of the path due to several compile problems on my end.

Reviewed the loggers added for updating resources and generic change for javakeystore.


Update point serialization/de-serialization rules

Fixes #146

@christianpaquin

I think that the last step of SkToPk should also be updated to point_to_octets_g2. First step of SignatureToOctets should be point_to_octets_g1. Otherwise LGTM.

I think that the last step of SkToPk should also be updated to point_to_octets_g2. First step of SignatureToOctets should be point_to_octets_g1. Otherwise LGTM.

Good catch, addressed

Multiple approvals, merging.


Netty 5.0.0.Alpha2-SNAPSHOT can't parse http response with no header

I want to test proxy's https tunneling protocol.
I write a simple httpclient with 5.0.0.Alpha2-SNAPSHOT like this:
ChannelPipeline pipeline = ch.pipeline();
pipeline.addLast(new HttpResponseDecoder());
 pipeline.addLast("redeflater", new HttpContentDecompressor());
pipeline.addLast("aggregator", new HttpObjectAggregator(1048576*1024));
 pipeline.addLast( new HttpRequestEncoder());

and I send a connect request to a proxy <IP_ADDRESS>:80(you can get a free  proxy from http://cn-proxy.com/) like this
FullHttpRequest req=null;
req=new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.CONNECT, "www.baidu.com:443");
req.headers().add("Proxy-Connection","Keep-Alive");
req.headers().add("Host","www.baidu.com");
req.headers().add("User-Agent", "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.122 Safari/537.36");

But netty cann't  get the response until more than 120 seconds.
The response is :
Response: HTTP/1.0 200 Connection established\r\n\r\n

I think the reason is there is no header.

@longlong524 - Sorry I missed this. Are you still experiencing this issue? Can you try again with 5.0.0.Alpha3?  Do you have a reproducer?

5.x has been deprecated. Please try again with the latest 4.1 release and reopen if this still exists.


Update spinq10q connection

This PR update the runcard of spinq10q  in which only the first 5 qubits are connected to Qblox drivers.

Thanks @biankawolo for this runcard! You can check the comments and the requested changes made by the other guys in order to learn for future PRs.


Rails dependency has been expanded

Coverage remained the same at 100.0% when pulling fb82006e45a633eb4a634172d0cce67b9ccfaf98 on fiscal-cliff:master into bf0eee77489579ebf7719916150abc0a89396146 on JelF:master.


Code color highlights are hard to read/note visible in dark mode

Description
Parts of the code seem to be in color that is too close (or the same?) as the background, when switching to dark mode.So some characters in the code are white in a white background for example.
(Optional:) Please add any files, screenshots, or other information here.
 (dark mode)
vs
 (light mode)
(Required) What is this issue most closely related to? Select one.
Other
Internal issue ID
29256754-c063-40fe-8c61-1f6b0505e097
Paper URL
https://arxiv.org/html/2407.11418v1
Browser
Chrome/<IP_ADDRESS>
Device Type
Desktop

Duplicate of #2030

Duplicate of #2030


Node\intelligence-LUIS doesn't respond as expected

I'm trying the Node\intelligence-LUIS example locally in the bot-emulator, it always reply back
Sorry, I did not understand 'Hotel'. Type 'help' if you need assistance.
no matter what I type, even 'help'.
I have specified my LUIS endpoint, and I'm getting results by typing the url directly in the browser. Please help in rectifying this issue.
Thanks
Swati

Hi @swatikurra17 , be sure to remove the 'q' parameter from the url when adding it to the .env file (or the Azure Web Site AppSettings)
Also, you can try testing the URL invoking the recognizer directly:
builder.LuisRecognizer.recognize("This is a test", "[model_url]", console.log)

If you still have questions, please open a new issue on BotBuilder repo here: https://github.com/Microsoft/BotBuilder


Base key value on other filters to prevent unmount on selection

This PR addresses the gd.emit is not a function error when selecting a subset in an eda histogram filter.

I haven't tested yet, but quick question... I'm assuming the key was used here as a render refresh "hack"?  It's not necessary as part of a grid or list, as far as I can tell.  Ah, I see there's a comment to this effect!
https://github.com/VEuPathDB/web-monorepo/blob/8062935dfe3e504edf9bf2a152cb304caa95ef69/packages/libs/eda/src/lib/core/components/filter/HistogramFilter.tsx#L329-L330
I'll test carefully!

Thanks! To be honest, that comment isn't super clear. If it's referring to the "viewport" range, I don't know why we would want it to reset. Also, changing the key prop wouldn't impact that.
I wonder if it was something related to an early implementation that is no longer relevant. It's possible we don't even need this key prop, but the current change minimizes the testing surface area.


Implemented property old value in ODocument

What does this PR do?
A brief description of the change being made with this pull request.
Adds ability to access value of property before any modification was done.
Motivation
What inspired you to submit this pull request?
Related issues
A list of issues either fixed, containing architectural discussions, otherwise relevant
for this Pull Request.
Additional Notes
Anything else we should know when reviewing?
Checklist
[] I have run the build using mvn clean package command
[] My unit tests cover both failure and success scenarios

Thank you @leostryuk


Setup pm2

Items:

Setup configuration for development
Setup configuration for Elastic Beanstalk

Maybe the usage of cluster module would be enough

Merged here cd98d99


Feature Request: Support SSR without the babel plugin

I'm trying to find a good way to server render without needing to use the babel plugin. I've noticed that in my example I'm working on that the first server render hydrates without issue, but subsequent server renders have a different group number for the stylesheet and that changes the hash which results in hydration errors. Here's what I'm doing to get this:
// app/entry.server.tsx
import ReactDOMServer from "react-dom/server";
import { RemixServer } from "remix";
import type { EntryContext } from "remix";
import { ServerStyleSheet } from "styled-components";

export default function handleRequest(
  request: Request,
  responseStatusCode: number,
  responseHeaders: Headers,
  remixContext: EntryContext
) {
  const sheet = new ServerStyleSheet();

  let markup = ReactDOMServer.renderToString(
    sheet.collectStyles(
      <RemixServer context={remixContext} url={request.url} />
    )
  );
  const styles = sheet.getStyleTags();

  markup = markup.replace("__STYLES__", styles);

  responseHeaders.set("Content-Type", "text/html");

  return new Response("<!DOCTYPE html>" + markup, {
    status: responseStatusCode,
    headers: responseHeaders
  });
}

// app/root.tsx
export default function App() {
  return (
    <html lang="en">
      <head>
        <meta charSet="utf-8" />
        <meta name="viewport" content="width=device-width,initial-scale=1" />
        <Meta />
        <Links />
        {typeof document === "undefined" ? "__STYLES__" : null}
      </head>
      <body>
        <Outlet />
        <ScrollRestoration />
        <Scripts />
        {process.env.NODE_ENV === "development" && <LiveReload />}
      </body>
    </html>
  );
}

So all I would need is for the resetGroupIds in GroupIDAllocator to be exported and then I could do this:
// app/entry.server.tsx
// ...
import { ServerStyleSheet, resetGroupIds } from "styled-components";

export default function handleRequest(
  request: Request,
  responseStatusCode: number,
  responseHeaders: Headers,
  remixContext: EntryContext
) {
  const sheet = new ServerStyleSheet();

  let markup = ReactDOMServer.renderToString(
    sheet.collectStyles(
      <RemixServer context={remixContext} url={request.url} />
    )
  );
  const styles = sheet.getStyleTags();
  resetGroupIds();

  markup = markup.replace("__STYLES__", styles);

  // ...
}

Would this be possible?

Hm, I'm going to be extremely honest here — I haven't thought about the grouping and ordering in the internal sheet code in months, so my thoughts on this may not be entirely accurate.
The groups are registered as components are created; that's by design, since we're registering the order in which they were created rather than the order of their first render call. (or first effect for that matter)
So, when these IDs become inconsistent and change, that's often an indication that you aren't dealing with the same instances of components anymore and they've been recreated, or the modules have been replaced.
The reason that's relevant is that if they were to just be reset, there's no way to actually get back to a state where they're instantiated in creation order, unless the components are actually fully recreated.
Now, again, I haven't thought about this in a while but some time ago I actually wanted to figure out some more tricks to make componentId for SSR obsolete, and make this overall more consistent. I simply don't have much time allocated for myself on styled-components anymore
What's interesting here though is that we may want to first check how these IDs are changing. Specifically, if they all change at the same time (i.e. all components are recreated, is the only difference the minimum number now starting at the last maximum ID +1?). If so then we'd only have to ensure that for SSR we always adjust all of them by subtracting the minimum.

Makes sense I think. The fact is that we don't really need to worry or care about order inconsistencies for the server render because there are no re-renders on the server. So we just want to simulate the same experience on the server as the client has for its initial render, which means: no existing groups.
I think exposing this function is all that's needed. Getting rid of the groups seems more dangerous and would require more time. I think exposing this function would be a great stepping stone and unblock folks who want to do SSR without babel.

Well, it depends on whether any rehydration happens on the client-side because currently we basically use server-ordering to initialize client-ordering. Admittedly, we can maybe reduce that somehow, but the problem is then still that you need to associate which components are the same on client and server side, hence the Babel plugin's component IDs. However, one idea I had was to associate them using heuristics and render ordering but then to leave the group IDs independent in both places. Either way, it's a little tricky

Can we not assume that the first client render will be the same as the first server render? I think that's a safe assumption since otherwise you get a hydration warning.

So, to just write this down, I think what I was thinking about last, in terms of what could work was to change the sheet logic to this:

server-side: components are created and assigned a group ID (i.e. 1 then 2 then 3, as components are created)
server-side: components render, styles are inserted as per group ID order, but we store them with their useId output
ssr result is sent to the client-side
client-side: components are created and assigned a group ID (i.e. 1 then 2 then 3, as components are created)
client-side: logic looks at the ssr styles result and maps "old" groups in the styles to useId output
6: client-side: starts rendering/rehydrating with the ssr result
7: client-side: as a component renders it uses useId and deletes & replaces styles in the SSR styles before mounting new styles

This would mean that the client- and server-styles are completely independent from one another but we can still associate them and delete server-styles as needed at the correct time.
As long as we then use useInsertionEffect, in theory (!), there should never be a tick where styles are conflicting.

Sounds like that could work for us! I'll update the issue title to describe what I'm really looking for rather than the specific implementation.

I'm fine with whatever you decide. Right now, the styled-components example on Remix works. It just has a hydration warning during development after the first page is requested. It's annoying, but it works. I believe that what you're proposing could resolve this issue.

creating remix scretch project, and getting this kind of below warning message initially really hurts the developer learning curve and interest.

react-dom.development.js:67 Warning: Expected server HTML to contain a matching  in .

This is why I moved to svelte from remix.

@kentcdodds @kitten
Not sure where this was left?
Can anyone share any updates?
We've established a migration path to more to Remix, and keep our custom react ui to use styled-components, however, seeing those dev errors gives us pause. We don't want to bring back babel-plugin-styled-components hydration issues we saw in the past.
Does anyone have a sense on if these is just "dev" errors/warnings that don't physically impact anything or are they impacting production environments?

Thanks @kentcdodds ! I'll try that.

I have a slightly related issue with remix+styled components where in production the styles from styled-components are missing completely => https://github.com/remix-run/examples/issues/136
Leaving it here since people might have the same issue but land on this one

As a workaround, you can use patch-package to export the resetGroupIds in GroupIDAllocator and do what I suggest in my opening comment and you'll be in business. It would be a pretty low-risk thing to do I think since it's a very simple change.

Looks like resetGroupIds is intended for testing and dead code eliminated from the release bundle. So patching isn't an option. The only other option is to fork, export & build.

@jmurzy Gah! Back to looking into the fix for this.
@kentcdodds Can you clearify what you say is working vs not with this issue?
Our example is that the remix site loads up perfectly fine with all the styles on first load however, if we refresh (even with JS disabled) the second load the hashes get all misaligned and thus the styles are broken.
Is this the same issue?

It's been a long time and I don't use styled-components. I was just trying to help others. I'm afraid I don't have any time to remind myself what this issue is about. Sorry.

Nw @kentcdodds I know how it is.
However, what may still be relevant is that Styled-Components, as is, still does not work with Remix, or any other SSR without the aid of babel-plugin-styled-components which itself is not supported in Remix since it doesnt seem we have access to plugins or modifying esbuild config.
As a comparison, Next.js allows you to control webpack option values from a configuration file (next.config.js) so they can implement the needed plugins.
This limitation seems to be leading some remix users to implement workarounds using a custom module to override esbuild.
We're VERY much wanting to move to Remix but need to slowly migrate away from styled-components, and not cold-turkey cut it off. So we need a migration path inside of Remix.

The patch-package process described above worked fine for me. I'm afraid this is just not a priority for me. I'm no longer working at Remix either so spending time helping people adopt Remix isn't a priority for me either. Sorry.

Makes sense @kentcdodds, no worries. Can you describe how you got patchpackage to work given what @jmurzy says above... about all the "resetGroupIds" code being stripped out of the npm module as it looks like they only use it in dev?

It's possible I remember wrong and I actually never got it working 😵💫 sorry I can't be more helpful. Feels like a fork may be in order. This package isn't super active, especially if you're planning on migrating away.

I’ve created a CSS-in-JS library that builds CSS like Tailwind, and doesn’t require a Babel/esbuild plugin. Specifically for having no issues in Remix.
Read more here: https://github.com/roj1512/classno
Example app: https://github.com/roj1512/classno_remix


Authentication improvements (#7570)

Pull request opened by the merge tool on behalf of #7570

Merged into branches iso7 in 83a4fcd3e915354f51a4c8ab04732d13daa819f9


hadoop log cant be printed

Steps to reproduce the behavior (Required)
./bin/start_be.sh --daemon
select * from hive_external_table limit 10

Expected behavior (Required)
hadoop log successfully
Real behavior (Required)
in be.out, we can find log jars are conflict, which cause hadoop log cant be printed
start time: Mon Apr 17 18:21:13 CST 2023
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/chj/StarRocks/be/lib/jni-packages/starrocks-jdbc-bridge-jar-with-dependencies.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/chj/StarRocks/be/lib/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]

StarRocks version (Required)

You can get the StarRocks version by executing SQL select current_version()

mysql> select current_version();
+-------------------+
| current_version() |
+-------------------+
| 2.5.4 1021a92     |
+-------------------+
1 row in set (0.02 sec)

loglevel set to error by default. try to change conf/hadoop_env.sh and conf/log4j.properties, see if that helps.


Resharper 10 RTW

Hi Matt,
whats going on w/ r#10.rtw support?
Greetings...

Hi. Busy cherry picking right now :)
It's all done, just need to rearrange some code to also get a bug fix out for 9.2.

Nice. I'm in a curious situation. I'm updated to vs2015.u1.rc and the r# 10.eap bits... And for over a week i can not testing... :smile:


SearchV3: turn on for everyone on desktop

@keybase/react-hackers
This'll make it public for Linux users straight away, and Mac/Win whenever we next release.

The commits fc1567446cba...4764ca1205ae introduce visual changes on linux. :mag_right: 22 changed

Changed: Profile-Your_Profile_Proof_Menu (before) (after)

Changed: Profile-Your_Profile_Pending_Proof_Menu_HN (before) (after)

Changed: Profile-Your_Profile_Pending_Proof_Menu_DNS (before) (after)

Changed: Profile-Your_Profile_Pending_Proof_Menu (before) (after)

Changed: Profile-Your_Profile_No_followers_or_following (before) (after)

Changed: Profile-Your_Profile_No_Proofs (before) (after)

Changed: Profile-Your_Profile_Loading (before) (after)

Changed: Profile-Your_Profile_Following_Tab (before) (after) (diff)
Changed: Profile-Your_Profile_Empty (before) (after) (diff)
Changed: Profile-Your_Profile_Broken_Proof_Menu (before) (after) (diff)
Changed: Profile-Your_Profile_Broken (before) (after) (diff)
Changed: Profile-Your_Profile (before) (after) (diff)
Changed: Profile-Unfollowed_Scrolled (before) (after) (diff)
Changed: Profile-Unfollowed_Profile_page (before) (after) (diff)
Changed: Profile-Unfollowed_Folders_Expanded (before) (after) (diff)
Changed: Profile-Unfollowed_Few_Folders (before) (after) (diff)
Changed: Profile-Unfollowed_Changed_Proofs_unreachable (before) (after) (diff)
Changed: Profile-Unfollowed_Changed_Proofs_deleted (before) (after) (diff)
Changed: Profile-Unfollowed (before) (after) (diff)
Changed: Profile-Followed_Changed_Scrolled (before) (after) (diff)
Changed: Profile-Followed_Changed (before) (after) (diff)
Changed: Profile-Followed (before) (after) (diff)

(cnojima) so @cjb wanna merge that pr and kick off a build


fetch git config correctly

for instance user.name config was not fetched
git --config user.name was not a valid command

found this because i didn't have my name in the generated LICENSE file for instance
I built crystal from source after this change and it now works correctly
i didn't find any test that and i'm quite new to crystal so not sure how i would make a test

Nice catch! That's why last time crystal init didn't work for me 😅
It seems to be introduced in #9141 where git config --get #{key} was used.
I'm not sure if there are any sensible differences between using or not --get in the case there are multiple values defined at local, global or system level.
Would you mind adding the --get to apply the changes #9141 should have?

If you are wiling to write a spec the steps would be

create gitconfig file to be used in the spec (otherwise everybody will need to agree on the configuration)
Override the GIT_CONFIG env variable so git config subprocess will pick the config in (1). spec/support/env.cr offers a nice helper method to do that.
Add spec to spec/compiler/crystal/tools/init_spec.cr. The existing specs initialize the a Crystal::Init::InitProject with a Crystal::Init::Config instance already. It seems that the methods Crystal::Init.run/parse_args/fetch_email are not covered by the existing specs. Whatever coverage you are willing to add will be an improvement.

thanks for the hints, i added a spec (thanks to oprypin, dscottboggs_gitlab, and @Blacksmoke16 for the help).
I also added email to the license but i can remove that

Yes otherwise I get an error for a missing method
On Wed 29 Jul 2020 at 14:33, Brian J. Cardiff<EMAIL_ADDRESS>wrote:

@bcardiff commented on this pull request.
In spec/compiler/crystal/tools/init_spec.cr
https://github.com/crystal-lang/crystal/pull/9640#discussion_r462262699:

@@ -6,6 +6,8 @@ require "ini"
require "spec"
require "yaml"
require "../../../support/tempfile"
+require "../../../support/env"
+require "../../../support/win32"

Was there any reason to include support/win32 here?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/crystal-lang/crystal/pull/9640#pullrequestreview-457474472,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AOASD5YU7XQCY5T3EVNLBLLR6AJJZANCNFSM4PK46ZIA
.


Electrical Engineering: Robot Stops Multiple Times No Reason

The robot seems to stop for no reason whatsoever when going from one checkpoint to another. This was discovered in Test Lab 4.

Analyzing robot and determining the issue.

The robot stops due to daylight atmosphere. The photodiode seems to activate due to just enough light hitting on it and hence turns the robot off. This was determined when I waved my hand over the photodiode and the robot began to startup again. When my hand was not over the photodiode, the robot stopped.

A solution to this problem is either by installing thin columns on the edges of Foundation 1 to block the light or install black solid drapery on the edge of Foundation 2.

Temporary paper guards have been added to block the light from the room enviroment. Installing permanent light guards would be too time-consuming considering how much this project has been delayed.