Rendering to the HTML doesn't work

When I try to play saved html visualization on my local computer I always get this error in HTML:
Uncaught TypeError: Cannot read property '0' of undefined
at demo.html:191
at Array.map ()
at demo.html:191
at Array.forEach ()
at createAnimationClip (demo.html:189)
at demo.html:314
Everything works fine in the google colab.

Some update:
I've found the root: you cannot visualize a batch of the agents.
And even with one agent I had shape: (1, 299). After fix it works.
But you definitely need to support multiple objects or at least show error.

Thanks for this feedback!  Agreed, we should at least give a more informative error if batched trajectories are sent to the visualizer.  We'll fix that and resolve this issue when it's posted.
Supporting visualizing batches of agents ( such as https://spectrum.ieee.org/image/MzMwNDQ2Ng.jpeg ) would be great too, but we would have to verify three.js can handle large scenes.

Thanks, btw great job! I was able to integrate it to the pytorch and achieved pretty great training performance on 3090 :)  more than 0.5m training steps per second and 14k scores with humanoid.

Very cool!  Using pytorch, does each step have to copy back to CPU?  Can pytorch access jax datastructures?

`
def jax_to_torch(tensor):
from jax._src.dlpack import (to_dlpack,)
tensor = to_dlpack(tensor)
tensor = tpack.from_dlpack(tensor)
return tensor
def torch_to_jax(tensor):
from jax._src.dlpack import (from_dlpack,)
tensor = tpack.to_dlpack(tensor)
tensor = from_dlpack(tensor)
return tensor
`
I found a way. If use this code it works at least 10% faster compared to the CPU version via numpy.

Cool trick!  If your project has a url, feel free to share it.  We may eventually have a "Projects using Brax" section in the README.
Thanks for sharing!

sounds good.
I just added it to my project: https://github.com/Denys88/rl_games/ but didn't update readme yet, will do it this evening.
Here is env link https://github.com/Denys88/rl_games/blob/master/rl_games/envs/brax.py
Actually I implemented training fully on GPU, only read vlaues to repot to the tensorfow.

OK, this is addressed in 170405e4880ea780d38ee5bba06930a74cb99832 - thanks Denys.

This bug still is present. Rendering doesn't work with batched environments, even when it's a single env batch.

Thanks @ViktorM for pointing it out! We still don't support rendering batches, but the RuntimeError on invalid shapes was accidentally removed. Added it back


Fish

The regex for "comment" is wrong, it should work like the bash one with a look-backward (?<!\\S), anyone can fix it?


docs: add articles section to read me with list of articles

@kentcdodds as requested added the blog post to the docs. Added a new Articles section -- hope that works.

Codecov Report

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

@@          Coverage Diff          @@
##           master    #15   +/-   ##
=====================================
  Coverage     100%   100%
=====================================
  Files           3      3
  Lines          24     24
=====================================
  Hits           24     24

Continue to review full report at Codecov.

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

@kentcdodds ran npm start generate -- let me know if that looks good now.

Thanks!


[AutoParallel] enable ci for dp amp clip

PR types

Bug fixes
PR changes

Others
Description

enable ci for dp amp clip

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

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

签署一下CLA。


Add session route to auth service

Also, you could add API docs for this to the readme while here for these new endpoints.

// The EIP-155 chain_id for the chain for which the quote is requested.
optional H256 chain_id = 8;

Just going to make this match that.


Differentiate the AWS config params with the toml configs

Purpose

$subject
Fixes : https://github.com/wso2/product-is/issues/18496
Previously from a HazelCast update, the config param names were changed according to [1]. Since this change affected to the existing configs, introduced old params to extract the configs from IS and traslating to the new params.

[1] https://docs.hazelcast.org/docs/4.0/manual/html-single/#aws-element

PR builder started
Link: https://github.com/wso2/product-is/actions/runs/7719666475

PR builder completed
Link: https://github.com/wso2/product-is/actions/runs/7719666475
Status: success


log level implementation incomplete?

The readme gives the impression that one can use the new log levels log.alert("something"), lag.notice("something") and log.severe("something") in a way similar to the other log levels (e.g. log.debug et al).
The methods from the readme/Basic Usage (Quick Start) cannot be used  (for example: "log.notice("A notice message")" results in a compiler error). In the source code I can see that the log levels have been implemented, but not the functions.
I assume that the implementation is not complete yet? Or is it supposed to be used in a different way (in which case the readme is confusing).

@hk05 You're correct. No idea how I missed that. Will update shortly. Thanks for pointing this out.

Fixed in 7.0.1 Thanks again.


Roll Flutter from f54790b7b03f to 262a963efb7b (2 revisions)

https://github.com/flutter/flutter/compare/f54790b7b03f...262a963efb7b
2022-02-12<EMAIL_ADDRESS>flutter_build_null_unsafe_test print failed build output (flutter/flutter#98310)
2022-02-12<EMAIL_ADDRESS>Roll Engine from 2a5b7d0c2396 to 25a40c943021 (1 revision) (flutter/flutter#98307)
If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-plugins
Please CC<EMAIL_ADDRESS>on the revert to ensure that a human
is aware of the problem.
To file a bug in Plugins: https://github.com/flutter/flutter/issues/new/choose
To report a problem with the AutoRoller itself, please file a bug:
https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug
Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md

Commit queue failed; closing this roll.


Adding /v1/health/checks endpoint

Fixing #53

Any chance you have some time to review this @cablehead?

Hi @cruatta. Dang sorry man. I was overseas for a couple of weeks. I should be back on top off things now. Thanks yet again. I've merged and pushed as v0.4.6..


ETF's are not supported

It seems that ETF symbols are not supported, is there any planned work for that?

Hi @shortland, thanks for raising this.
The default PricesYahoo class should support all symbols as defined by Yahoo.
It might be that it's not able to evaluate which calendar and/or real-time delay to assign to one or more symbols. Are you getting a CalendarError or a ValueError advising that the delay can't be ascertained?
If either of these is the issue then it's simply a matter of passing the calendar and/or delay to the PricesYahoo constructor.
For example, I noticed that a calendar isn't automatically evaluated for ETF 'SPY', so you could do...
>>> from market_prices import PricesYahoo
>>> import exchange_calendars as xcals
>>> xnys = xcals.get_calendar("XNYS")  # create calendar for New York Stock Exchange
>>> prices = PricesYahoo("SPY", calendars=xnys)
CalendarTooShortWarning: Calendar 'XNYS' is too short to support all available price history. Calendar starts '2002-10-01 00:00:00' whilst earliest date for which price history is available is '1993-01-29 00:00:00'. Prices will not be available for any date prior to 2002-10-01 00:00:00.

The warning is simply advising that the calendar is too short for the data that might be requested (xcals by default cover the last 20 years). If you're going to be working with data earlier than this then just define an appropriate start date for the calendar...
>>> xnys = xcals.get_calendar("XNYS", start="1993-01-01")
>>> prices = PricesYahoo("SPY", calendars=xnys)
>>> prices.get("1d", start="1997-10-22", days=3)
symbol           SPY
                open       high        low     close   volume
1997-10-22  97.34375  97.390625  96.531250  96.84375  4485200
1997-10-23  94.93750  95.750000  94.281250  94.93750  8054100
1997-10-24  96.15625  96.156250  93.671875  94.00000  6778700

>>> prices.get("5min", minutes=15)  # last 15 minutes of data
symbol                                             SPY
                                                  open        high         low       close    volume
[2022-09-30 15:45:00, 2022-09-30 15:50:00)  359.454987  360.049988  359.279999  359.609985   2333468
[2022-09-30 15:50:00, 2022-09-30 15:55:00)  359.619995  359.619995  358.105011  358.179901   7712651
[2022-09-30 15:55:00, 2022-09-30 16:00:00)  358.170013  358.269989  357.109985  357.179993  19516953

The above example is for a single symbol. If you've got multiple symbols trading on exchanges represented by different calendars and with different delays then the calendars/delays kwargs can be passed as mappings of symbols to calendars/delays. See help(PricesYahoo) for more info.
In any event, could you let me have a list of the symbols that weren't working for you. If it is a calendar/delay issue then I'll look to improve the mappings so that they are automatically assigned.

Ah thank you. It was the calendar issue you mentioned. I wasn't sure exactly what the issue was based on the error message.
Thank you.

Glad it's sorted.
If you can let me know the symbols that you're using and I'll improve the mappings so that it's not necessary to assign the calendar.

Hey, thanks for the support.
SPY,QQQ,TQQQ,SQQQ,XRT,VOO,IWD,ARKK,ARKQ,ARKF

These are just some etf symbols I'm using - although maybe add a bunch of the top ETFs by market cap instead of my weird list.
Greatly appreciate everything you're doing!
https://8marketcap.com/etfs/

@shortland, the new release 0.9.10 includes the necessary mappings so that these symbols can be passed to PricesYahoo without the need to additionally pass a calendar.
I checked the first 100 @ https://8marketcap.com/etfs/ and they are all covered too. I'd anticipate the new mappings will cover pretty much all the US-traded ETFs.

That's amazing!!! ❤
Thank you so much!


Typo error on xpass extension summary

Hello @mlocati
I've check xpass extension today, and found a little typo error on summary : https://github.com/mlocati/pecl-info/blob/main/public/data/summary.json#L22629
It seems not coming from source itself https://github.com/remicollet/php-xpass/blame/master/package.xml or PECL page http://pecl.php.net/package/xpass

Sorry, but I can't do anything
Perhaps something wrong in rest API (see https://github.com/php/web-pecl)

@remicollet ok will check it ASAP

REST API gave now the right summary value !
I'll close this issue

@mlocati Need to rebuild the https://github.com/mlocati/pecl-info/blob/main/public/data/summary.json#L22629 file

@mlocati Need to rebuild the https://github.com/mlocati/pecl-info/blob/main/public/data/summary.json#L22629 file

@llaville done.


Improve error handling

This fixes a few crashes that could occur when receiving a malformed HTTP request.

Thanks!


Some projects do not appear in the tree

The entry of such projects in db seems to be fine. Need to find the exact case when such thing happens.

Debug shows that the projects where collection import was attempted has this issue.
@ranjan-rk  Closing this issue as the root cause is #291


Crash on IOURequestPage

If you haven’t already, check out our contributing guidelines for onboarding and email<EMAIL_ADDRESS>to request to join our Slack channel!

Action Performed:

Go onto a slow network
Login to New Expensify
While the LHN is still loading and showing the skeleton UI, click on the global create menu
Click on Send Money
Enter an amount
Press Enter

Expected Result:
You should be taken to the next screen to choose recipients. There should be a skeleton UI on that search page.
Actual Result:
The app crashes.
Workaround:
n/a
Platforms:
Which of our officially supported platforms is this issue occurring on?

[x] Android / native
[x] Android / Chrome
[x] iOS / native
[x] iOS / Safari
[x] MacOS / Chrome / Safari
[x] MacOS / Desktop

Issue reported by: n/a (@aimane-chnaif reported this in a PR review here when the bug was introduced and considered edgy/out-of-scope)
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1680147029222199
View all open jobs on GitHub

@roryabraham the AutoAssignerTriage label has been deprecated. Please use Bug for issue triage. See https://stackoverflowteams.com/c/expensify/questions/14418 for more details.

Triggered auto assignment to @lschurr (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

Bug0 Triage Checklist (Main S/O)

[ ] This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
[ ] This bug is not a duplicate report (check E/App issues and #expensify-bugs)

If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead

[ ] This bug is reproducible using the reproduction steps in the OP. S/O

If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
If the reproduction steps aren't clear and you determine the correct steps, please update the OP.

[ ] This issue is filled out as thoroughly and clearly as possible

Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.

[ ] I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

Is this all platforms @roryabraham?

I'm not able to reproduce, but maybe I just don't have a slow enough high traffic network to try. Adding Eng for more eyes.

Triggered auto assignment to @youssef-lr (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@youssef-lr, @lschurr Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Hey @youssef-lr - any thoughts on this one?

I was able to reproduce this as well using Slow 3G in dev tools. Going to add External label to this one.

Job added to Upwork: https://www.upwork.com/jobs/~016871515dc2088e09

Current assignee @lschurr is eligible for the External assigner, not assigning anyone new.

Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia (External)

Current assignee @youssef-lr is eligible for the External assigner, not assigning anyone new.

Proposal
Please re-state the problem that we are trying to solve in this issue.
IOU participants page crash when we open it while the app is still loading.
What is the root cause of that problem?
The error comes from here, specifically the Str.removeSMSDomain because the login is undefined.
https://github.com/Expensify/App/blob/78a9b540f6244276599d58f9aa3fc7d671441c8d/src/libs/OptionsListUtils.js#L514-L523
https://github.com/Expensify/App/blob/78a9b540f6244276599d58f9aa3fc7d671441c8d/src/libs/OptionsListUtils.js#L106-L118
If we look at the code, it actually should be fine when we open the page while the app still loading (which means personalDetails is empty). But how can the loop still runs?
When we open the IOU page, it will call a OpenIOUModalPage API which will return a personal detail object with a local currency code which completes first before the OpenApp completes (which the personalDetails list comes from).

This makes we have a personalDetails list with a single item and only a localCurrencyCode property. That is why the loop runs and login is undefined.
What changes do you think we should make in order to solve the problem?

We shouldn't call the OpenIOUModalPage API if we are still loading the initial data, by checking the _.isEmpty(personalDetails).
https://github.com/Expensify/App/blob/78a9b540f6244276599d58f9aa3fc7d671441c8d/src/libs/actions/PersonalDetails.js#L268-L270
It is safe to not call it because we will get the localCurrencyCode from OpenApp too.

Proposal
Please re-state the problem that we are trying to solve in this issue.
App crashes on IOURequest page when open immediately after login
What is the root cause of that problem?
When first enter MoneyRequestModal as soon as login success, OpenIOUModalPage api is called and pusher response is saved to Onyx before getting OpenApp api pusher response.
This case, personalDetails data changes from empty json {} to 1 array with {localCurrencyCode: 'USD"} which makes this loop called and finally crash happens on this line:
https://github.com/Expensify/App/blob/78a9b540f6244276599d58f9aa3fc7d671441c8d/src/libs/OptionsListUtils.js#L366
The crash is not constantly reproducible because of 2 reasons:

Sometimes OpenIOUModalPage pusher is later than OpenApp pusher. This case, personalDetails data is already complete.
When user open IOUParticipantsRequest page quickly, OpenIOUModalPage pusher event is not received yet and personalDetails is still empty {}.

What changes do you think we should make in order to solve the problem?
refactor IOUParticipantsRequest, IOUParticipantsSplit pages.
current logic: OptionsListUtils.getNewChatOptions is always called in constructor
new logic:

call getNewChatOptions only when personalDetails has full current user info (I think login existence check is enough)
call getNewChatOptions both in constructor (when first enter page) and componentDidUpdate (to update list after reports or personalDetails data fully loaded)

NOTE: Even though OpenApp pusher data has localCurrencyCode, I don't recommend to remove OpenIOUModalPage api call because of following reasons:

refresh user currency when network becomes online from offline or every time when user visits IOURequest page
OpenIOUModalPage can be used for another purpose in the future, not only to get user currency

What alternative solutions did you explore? (Optional)
This issue can be on hold or closed because of following reasons:

this issue is part of https://github.com/Expensify/App/issues/14490
those components will be migrated to functional components sooner or later

@thesahindia thanks for linking that issue. Yeah I agree. I'm gonna go ahead and put this on hold.

This one was put on hold and fixed elsewhere, is that right @youssef-lr @thesahindia? Are there payments needed for this one?

Great, could you apply to the job here @aimane-chnaif - https://www.upwork.com/jobs/~01dfce6726bdf40e71

Once payment is made, can we close this one @youssef-lr @thesahindia @aimane-chnaif?

Once payment is made, can we close this one @youssef-lr @thesahindia @aimane-chnaif?

Yup!

Great! Reporting bonus is paid. Closing this one.


Add Access-Control-Expose-Headers

Fix #12424
Signed-off-by: Andrew Thornton<EMAIL_ADDRESS>

Should probably only set them if cors.ENABLED is set.

Does it matter? I mean it's still semantically useful?

It shouldn't really matter but CORS-specific headers do not convey any meaning when not using CORS so I see them mostly as garbage information in such a scenario.

I guess ideally we should check for the existance of the Origin request header to detect CORS requests and then set the Access-Control-* headers accordingly when its present. That way it will even work when CORS headers were added by a reverse proxy (and not by ourselves).

I think that detecting whether CORS is being set etc through use of the Origin header is likely to be error prone - I can't see a problem with just emitting these in any case.
Do we really need to add the additional x lines of code to detect if we think CORS is enabled and Origin is set correctly etc. (with all the risk of getting that wrong) in these 14 places to determine whether we strictly need to emit this header that does no harm if it's not strictly needed but does no harm if it's emitted otherwise?

Origin will be present on POST requests so it'll have some false positives. I guess I don't really care if they are always set.

Codecov Report

Merging #12446 into master will increase coverage by 0.06%.
The diff coverage is 86.36%.

@@            Coverage Diff             @@
##           master   #12446      +/-   ##
==========================================
+ Coverage   43.77%   43.84%   +0.06%
==========================================
  Files         631      631
  Lines       69851    69870      +19
==========================================
+ Hits        30576    30632      +56
+ Misses      34325    34296      -29
+ Partials     4950     4942       -8

Impacted Files
Coverage Δ

modules/context/context.go
57.06% <0.00%> (-0.32%)
:arrow_down:

routers/api/v1/admin/org.go
34.09% <0.00%> (-0.80%)
:arrow_down:

routers/api/v1/user/repo.go
41.07% <50.00%> (+0.33%)
:arrow_up:

modules/git/submodule.go
74.00% <100.00%> (ø)

modules/lfs/server.go
45.53% <100.00%> (+0.30%)
:arrow_up:

routers/api/v1/admin/user.go
17.48% <100.00%> (+0.58%)
:arrow_up:

routers/api/v1/org/org.go
61.11% <100.00%> (+0.43%)
:arrow_up:

routers/api/v1/org/team.go
36.52% <100.00%> (+0.27%)
:arrow_up:

routers/api/v1/repo/commits.go
71.61% <100.00%> (+0.18%)
:arrow_up:

routers/api/v1/repo/issue.go
53.26% <100.00%> (+0.46%)
:arrow_up:

... and 20 more

Continue to review full report at Codecov.

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


Adds the ability to proxy addresses that aren't on the host interfaces.

This allows a publisher to not only proxy hostnames for others, but also to advertise directly for another host.
This is useful for systems where traffic forwarding is required.

As a bit more detail, this will allow us to advertise all services for each DevEnv independently, allowing for multiple DevEnvs per host.


technicolor DGA ( DGA4132 )

once the component is installed by HACS, no device is detected.
are there any other steps to perform to configure it corectly ?

@bycippy  can you try again and check for errors in the logs?

I have the same issue and get the following error:
Logger: homeassistant.components.device_tracker
Source: helpers/entity_platform.py:356
integration: Device Tracker ([documentation](https://www.home-assistant.io/integrations/device_tracker), [issues](https://github.com/home-assistant/core/issues?q=is%3Aissue+is%3Aopen+label%3A%22integration%3A+device_tracker%22))
First occurred: 15:54:24 (1 occurrences)
Last logged: 15:54:24

Error while setting up technicolor platform for device_tracker
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 356, in _async_setup_platform
    await asyncio.shield(awaitable)
  File "/config/custom_components/technicolor/device_tracker.py", line 47, in async_setup_entry
    router = hass.data[DOMAIN][entry.entry_id][DOMAIN]
             ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: {{This is just some key, not sure if it's secret or not}}

I've had this integration installed for about a week and have tried everything to get it working - then, after a unrelated home assistant restart, it just started working.


ValueError: setting an array element with a sequence. (tf 1.0.0's invalid use of np)

Using tf 1.0.0 I get the following error.
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-153-fcd2318ab5dc> in <module>()
     56         batch_ys = labels[randidx, :]
     57         # Fit training using batch data
---> 58         sess.run(optm, feed_dict={x: batch_xs, y: batch_ys})
     59         # Compute average loss
     60         avg_cost += sess.run(cost,

/opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in run(self, fetches, feed_dict, options, run_metadata)
    765     try:
    766       result = self._run(None, fetches, feed_dict, options_ptr,
--> 767                          run_metadata_ptr)
    768       if run_metadata:
    769         proto_data = tf_session.TF_GetBuffer(run_metadata_ptr)

/opt/conda/lib/python3.5/site-packages/tensorflow/python/client/session.py in _run(self, handle, fetches, feed_dict, options, run_metadata)
    936                 ' to a larger type (e.g. int64).')
    937
--> 938           np_val = np.asarray(subfeed_val, dtype=subfeed_dtype)
    939
    940           if not subfeed_t.get_shape().is_compatible_with(np_val.shape):

/opt/conda/lib/python3.5/site-packages/numpy/core/numeric.py in asarray(a, dtype, order)
    529
    530     """
--> 531     return array(a, dtype, copy=False, order=order)
    532
    533

ValueError: setting an array element with a sequence.

This is a minimal example that should replicate this. I came across this problem also using several higher level abstractions to tf but not until I got to barebones tf I believed that this is a bug and not just an error on my part.
from sklearn.preprocessing import LabelEncoder
from keras.utils import np_utils
labels = ['Male', 'Female'] * 5
encoder = LabelEncoder()
encoder.fit(labels)
labels = encoder.transform(labels)
labels = np_utils.to_categorical(labels)
labels.shape

results = np.ndarray(shape=(10,2623))

tf.set_random_seed(0)
# Parameters
learning_rate   = 0.001
training_epochs = 200
batch_size      = 5
display_step    = 5
ntrain =  10

# Network Parameters
n_hidden_1 = 50 # 1st layer num features
n_input    = 2623 # data input
n_classes  = 2 # total classes (0-9 digits)

# tf Graph input
x = tf.placeholder("float", [None, n_input])
y = tf.placeholder("float", [None, n_classes])

# Create model
def multilayer_perceptron(_X, _weights, _biases):
    layer_1 = tf.nn.relu(tf.add(tf.matmul(_X, _weights['h1']), _biases['b1']))
    return tf.matmul(layer_1, _weights['out']) + _biases['out']

# Store layers weight & bias
stddev = 0.1 # <== This greatly affects accuracy!!
weights = {
    'h1': tf.Variable(tf.random_normal([n_input, n_hidden_1], stddev=stddev)),
    'out': tf.Variable(tf.random_normal([n_hidden_1, n_classes], stddev=stddev))
}
biases = {
    'b1': tf.Variable(tf.random_normal([n_hidden_1])),
    'out': tf.Variable(tf.random_normal([n_classes]))
}
print ("Network Ready to Go!")

pred = multilayer_perceptron(x, weights, biases)

# Define loss and optimizer
cost = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(logits=pred, labels=y))
optm = tf.train.AdamOptimizer(learning_rate=learning_rate).minimize(cost)
corr = tf.equal(tf.argmax(pred, 1), tf.argmax(y, 1))
accr = tf.reduce_mean(tf.cast(corr, "float"))

# Initializing the variables
init = tf.initialize_all_variables()
print ("Functions ready")
sess = tf.Session()
sess.run(init)
# Training cycle
for epoch in range(training_epochs):
    avg_cost = 0.
    total_batch = int(ntrain/batch_size)
    # Loop over all batches
    for i in range(total_batch):
        randidx = np.random.randint(ntrain, size=batch_size)
        batch_xs = results[randidx, :]
        batch_ys = labels[randidx, :]
        # Fit training using batch data
        sess.run(optm, feed_dict={x: batch_xs, y: batch_ys})
        # Compute average loss
        avg_cost += sess.run(cost,
                feed_dict={x: batch_xs, y: batch_ys})/total_batch
        # Display logs per epoch step
    if epoch % display_step == 0:
        print ("Epoch: %03d/%03d cost: %.9f" %
               (epoch, training_epochs, avg_cost))
        train_acc = sess.run(accr, feed_dict={x: batch_xs, y: batch_ys})
        print (" Training accuracy: %.3f" % (train_acc))

        print ("Optimization Finished!")

@mrry Could you please take a quick look at this?

This usually occurs when you try to feed a NumPy array that's built from an irregular list of lists, and cannot be converted to a regular dense tensor.
It's not clear whether batch_xs or batch_ys is the problem. Can you print out their .dtype and .shape properties and verify that they match what you expected?

Closing this due to lack of activity... hopefully my suggestion worked for you, but feel free to reopen if there still seems to be a bug in TensorFlow!

I got the same error.

This code produces ValueError: setting an array element with a sequence.

w = tf.placeholder(dtype=tf.float32, name='w')
cost = tf.nn.l2_loss(w)
w1 = tf.get_variable('w1', shape=[3, 4], initializer=tf.contrib.layers.xavier_initializer(seed=1188))
init = tf.global_variables_initializer()

with tf.Session() as sess:
    sess.run(init)
    print(sess.run(cost, feed_dict={w: w1}))

This code (without using a placeholder) works

w1 = tf.get_variable('w1', shape=[3, 4], initializer=tf.contrib.layers.xavier_initializer(seed=1188))
cost = tf.nn.l2_loss(w1)
init = tf.global_variables_initializer()

with tf.Session() as sess:
    sess.run(init)
    print(sess.run(cost))

Since I'm new to tensorflow, I'm leaning towards it's something I don't understand. I'm trying to keep the placeholder for easy feeding, but not sure how to do it.

@tuanh118 , I am encountering the same error. How did you train your model without using a feed placeholder? I am new to TensorFlow too, so I want to learn that too!

@tuanh118 I solved my issue by looking at my input sequences. Turns out, the size of sequences was varying in my input list due to a misplaced variable in my data building function.

This usually occurs when you try to feed a NumPy array that's built from an irregular list of lists, and cannot be converted to a regular dense tensor.
It's not clear whether batch_xs or batch_ys is the problem. Can you print out their .dtype and .shape properties and verify that they match what you expected?

I have the same problem and the shape of the train_dict is:
(3 items) {Tensor with shape : True, Tensor with shape (?, 12, 120, 120, 1): [ndarray with shape (100, 120, 120, 1), ndarray with shape (80, 120, 120, 1)], Tensor with shape (?, 12, 120, 120, 1): [ndarray with shape (100, 120, 120, 1), ndarray with shape (80, 120, 120, 1)]}


Depleted crystal still glowing

I mentioned this earlier on IRC and then couldn't reproduce it. I have now figured out how to reproduce it:
Have a reactor setup with 1 controller, 1 generator, 1 energy collector and 1 pedestal.
Like this:

You then:

Turn on the generator
Wait until the generator is red
Place a 10/10/10 crystal with exactly 0.03% energy left in the inventory of the pedestal
Wait for the crystal to deplete and drop
Take the crystal, place it in the world near the generator. It is glowing
As a bonus, turn off the generator. The crystal stops glowing.

I realise that this is a ridiculous edge case, but it should be easy to fix.

I think this is now fixed. I cannot reproduce it at least


Options for data transfer between gs buckets and OSN

We should survey options for data transfer between tmp buckets and long-er term storage.

fsspec
object-store
skyplane
s5cmd
others?

This would be a great topic for a focused hack/meeting. @leap-stc/data-and-compute who would be interested in joining?
I can make time for this Mon/Tue (Aug 12/13) if that works for others.

Aug 12th or 13th work for me.

This would be a great topic for a focused hack/meeting. @leap-stc/data-and-compute who would be interested in joining?
I can make time for this Mon/Tue (Aug 12/13) if that works for others.

count me in... i;m also available on these days ☝🏽

https://www.when2meet.com/?25865623-leBGV
cc @jbusecke @andersy005 @SammyAgrawal

We decided to split this work up (see above), and then reconvene with some intermediate results.
Intermediate goal: Try to write a drop in replacement for the Copy Stage
Suggestions for a meeting date?


vector_base::clear is now implement with erase(begin(), end())

Thanks Evghenni. I think switching to .erase() is definitely an improvement. I have one suggestion about the documentation of the enhancement. Let's avoid mentioning the implementation detail (vector_base) in the CHANGELOG summary and instead note that .clear() operations on vector types no longer require the element type to have a default constructor.

Looks great, thanks!


Suggestion: Double wide refrigerator or alternating door handles

I was playing in a modpack with many ingredients and placed 2 double tall refrigerators next to each other. Having the door handles both on the same side seemed odd. It seems like having a 4x4 model could look good or have the model alternate handle sides somehow.

Oooohh, awesome. Thank you!


added the onEnter event to cue point

Added the onEnter event, it will be fired once reach to cue point.

Hi centsent and thanks for your PR.
About your feature, yes, it would be nice to have this but I'm not sure that this would work. Did you tested?
I think that I've tried to do this in the past and the main problema was that meanwhile currentTime usually are numbers with decimals cp.timeLapse.start don't so the comparison won't work never. For example:
currentTime value is 1.342
cp.timeLapse.start value is 1
So this comparison if(currentTime === cp.timeLapse.start) will always returns false.

I am sorry, did not test before, just fixed this issue and tested(below screenshots), check it again please.

I think that we should change the $$dirty property and modify the if statement to prevent entering on it several times in the same second. For example, between seconds 1 and 3 right now it would enter a lot of times.
Maybe this could be a fix for that:
// Fire the onEnter event once reach to the cue point
if(!cp.$$isDirty && currentSecond === start && (typeof cp.onEnter == 'function')) {
    cp.onEnter(currentTime, cp.timeLapse, cp.params);
    cp.$$isDirty = true;
}

With this we will enter on the if statement once, until the user scrolls back to a second previous to timeLapse.start, moment in which the $$isDirty property is set to false again.
What do you think?

Great, fixed that.

Thanks!
I will test it and merge it for the next release, probably the next weekend, this weekend I'm very busy, hehe.

Never mind, have a nice weekend:)


Shotgun library prep output != output from previous codebase

Output from shotgun library prep is similar to, but is not equal to the output from https://github.com/tanaes/metagenomics_pooling_notebook.git. Confirmed labcontrol.ucsd.edu and notebook both used test_output/iTru/new_iTru_combos_Dec2017.csv. Amanda and I are investigating.

Amanda and I recreated the Echo pick-list files for the two plates that were created on 03-27-2019 and confirmed that the Labcontrol output from Rodolfo was from the first plate, with a starting combo index of 384, where previously we assumed it was 756.
Previously, we confirmed that the shotgun primer combo set IDs began at 1 in the labcontrol database, whereas in the ipython script, they begin at 0.
Both of the above conditions appear to be the cause of much of the initial discrepancy we saw in output between labcontrol and the script. Amanda is confirming that ordering of rows in the tab-delimited files is not a requirement, and Charlie is examining both outputs based on a starting index of 756.
An additional plate was created in Labcontrol.ucsd.edu that will need to be deleted, once I can confirm the proper way to do so.

Slight tweaks here: We confirmed that the "*_indices.txt" file from Rodolfo was from the first plate, which had a starting index of 1 (not 384) whereas we had previously assumed it was 768.   Keep in mind @charles-cowart 's note about labcontrol combo ids starting at 1 while the combo indexes in the lab's ipython notebooks begin at 0 :)
Re deleting the additional plate in LabControl: let's just "discard" it (which can be done in the GUI interface), rather than trying to delete it, which would be (a) a real pain to clean up all the wells and compositions and processes associated with it and (b) contravening LabControl's axioms (e.g., "deletion = bad" :)

Amanda is confirming that ordering of rows in the tab-delimited files is not a requirement
Confirmed.  Per meeting with wet-lab on 10/092018:

library prep echo picklist:
file name: date_nameofcompressedplate_indices.txt
doesn't need to be sorted [emphasis added]
index combo: don't need to add
sample: ok to have study id prefix
source plate name: replace all whitespace with an underscore
# replace whitespace with underscore
dna_plate_name = re.sub('\s+', '_', dna_plate_name)
Note that this means we should NOT expect the outputs of LabControl to be EXACTLY THE SAME as the outputs of the current process for the same data .... we can't just diff them and say "if there's a difference then LabControl is wrong".  We have to check if they contain the same contents (even if the order is not the same) and if they do, then LabControl is performing as designed.

Gotcha. I made a Jupyter notebook last night, comparing the results from each. A few tweeks and I'll send you a copy.

Just to recap a few points from @AmandaBirmingham 's email to everyone:
We reset the library_prep_shotgun_composition primary key to a value above 21505, so future library_prep_shotgun_composition records that go in should have no more “this key has already been used” errors (Caused by incorrectly updating library_prep_shotgun_composition's primary key to 21120.)
We reset the current_combo_index field in the record for the current shotgun primer set in labman.shotgun_primer_set to 21120.
We ran a test to ensure that we could create a new shotgun library prep plate through the LabControl GUI without errors and that the indices assigned started at the expected value.  After doing this, we repeated step 2 to put the current_combo_index back to what it should be for the plate the user wants to create.
We anticipate the results in Labcontrol will match the output from the iPython Notebook, if one does not consider that the rows need to be sorted.

Will confirm a few points w/Rodolfo in the morning.

Narrowing the scope of this issue, per conversation w/Rodolfo. There remain other relatively small issues w/Shotgun workflow, but primer allocation has been confirmed to be in sync.


NIFI-7973: Add default precision and scale properties to remaining SQL-based components

Thank you for submitting a contribution to Apache NiFi.
Please provide a short description of the PR here:
Description of PR
Some SQL-based components were missing Default Precision and Default Scale properties, causing at least the Avro writer to fail using Oracle as the ResultSet returns zero for precision. Using these properties ensures a default precision/scale will be used when invalid precision/scale values are returned in the ResultSet
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
For all changes:

[x] Is there a JIRA ticket associated with this PR? Is it referenced
in the commit message?

[x] Does your PR title start with NIFI-XXXX where XXXX is the JIRA number you are trying to resolve? Pay particular attention to the hyphen "-" character.

[x] Has your PR been rebased against the latest commit within the target branch (typically main)?

[x] Is your initial contribution a single, squashed commit? Additional commits in response to PR reviewer feedback should be made on this branch and pushed to allow change tracking. Do not squash or use --force when pushing to allow for clean monitoring of changes.

For code changes:

[ ] Have you ensured that the full suite of tests is executed via mvn -Pcontrib-check clean install at the root nifi folder?
[x] Have you written or updated unit tests to verify your changes?
[x] Have you verified that the full build is successful on JDK 8?
[ ] Have you verified that the full build is successful on JDK 11?
[ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
[ ] If applicable, have you updated the LICENSE file, including the main LICENSE file under nifi-assembly?
[ ] If applicable, have you updated the NOTICE file, including the main NOTICE file found under nifi-assembly?
[ ] If adding new Properties, have you added .displayName in addition to .name (programmatic access) for each of the new properties?

For documentation related changes:

[x] Have you ensured that format looks appropriate for the output in which it is rendered?

Note:
Please ensure that once the PR is submitted, you check GitHub Actions CI for build issues and submit an update to your PR as soon as possible.

Thanks @mattyb149 looks good to me. +1 merged to main!

Thanks @mattyb149 looks good to me. +1 merged to main!


setting rightOffset to some value causes the scrolling position to reset when the series uses reactive and data props

I have a query that returns data that is then fed to my CandlestickSeries via the data prop. Every time the query returns new data the scrolling position jumps back to the initial position, when using the rightOffset prop.
This example reproduces exactly the behaviour I'm explaining:
https://codesandbox.io/p/sandbox/codesandboxer-example-forked-y4c4y5?file=%2Fexample.tsx%3A101%2C1
Simply scroll to the left and you'll see that the position will always jump back to the right most value, making the navigation impossible.
I'm using this code:
<TimeScale
    // workaround as fixRightEdge and rightOffset don't work together
    // https://github.com/tradingview/lightweight-charts/issues/1511
    onVisibleLogicalRangeChange={(_range) => {
      if (!timeScaleRef.current) return;
      const pos = timeScaleRef.current.scrollPosition();
      console.log(pos, rightOffset);
      if (pos > rightOffset) {
        console.log("in here");
        timeScaleRef.current.scrollToPosition(rightOffset, false);
      }
    }}
    ref={timeScaleRef}
  />

But I don't see how it's affecting things, as I don't see any logs when the flickering happens...
Any idea why this is happening / how to fix this?

Wrong repo sorry!!


Rendering issue on the top left corner

Hi,
Love that its easy to integrate, but there's this issue where a blank white space appears at the top left corner. It disappears after I start scrolling.
Not sure if you're aware of it, will there be a fix soon? Or is there something I can do with my integration?

same issue. it appears on first pdf loading only and disappears after zooming or scrolling

as i just mentioned it happens on real devices only
tested on galaxy note 5, android 6.0.1
and on avd, android 6.0 (api level 23)
any suggestions will be greatly appreciated

Same issue here. Any solution??

A quick but hacky solution I used is to programmatically move the document when page load completes

That hacky solution you mention only it works on some pdf. Any idea?

Increase com.github.barteksc.pdfviewer.util.Constants.PART_SIZE = 256 => 384

Same issue here. This makes the library useless!

I have same issue to Android OS marshmallow or more version. I solutioned this issue. when after loadComplete you try to pdfView.resetZoomWithAnimation(); But some device has short time some blink.

It's still happening on some devices.


Clash/Ela counters Montagne

https://www.reddit.com/r/Rainbow6/comments/aam9o2/this_is_a_site_i_made_showing_how_different/ecthsgw/?context=3
https://www.reddit.com/r/Rainbow6/comments/aam9o2/this_is_a_site_i_made_showing_how_different/ectt1ns/?context=3

Hey, can I work on this?

Yes that would be great! 😀

It already looks like it should should the correct counter for Ela and Montange unless I'm wrong.


Question: why 16 columns not 12 columns as default ?

16 columns: 1-2-4-8-16
12 columns: 1-2-3-4-6-12
16 columns: "sixteen wide mobile eight wide tablet four wide computer column"
12 columns: "twelve wide mobile six wide tablet four wide computer three wide large monitor two wide widescreen column"
as Doubling is too rough, I prefer to use Responsive Width, 12 columns will have a better transition

12 and 16 are both fine column counts. I understand Bootstrap and Foundation use 12 so this might be a more familiar number. Mathematicians seem to like both 12 and 16 for their abundance of divisors
http://en.wikipedia.org/wiki/Table_of_divisors#Key_to_the_tables
SUI went with sixteen columns as part of its default theme, but like all other arbitrary decisions in the library this can be changed by adjusted by modifying the frameworks variables.
The global variable @columnCount affects all calculated column widths in all modules. So setting @columCount to 12 for example, would adjust 12 wide to be 100%
@twelveWide     : (12 / @columnCount * 100%);
@twelveWide: 12/12 * 100%;
@twelveWide: 100%;

12 and 16 are both fine column counts. I understand Bootstrap and Foundation use 12 so this might be a more familiar number. Mathematicians seem to like both 12 and 16 for their abundance of divisors
http://en.wikipedia.org/wiki/Table_of_divisors#Key_to_the_tables
SUI went with sixteen columns as part of its default theme, but like all other arbitrary decisions in the library this can be changed by adjusted by modifying the frameworks variables.
The global variable @columnCount affects all calculated column widths in all modules. So setting @columCount to 12 for example, would adjust 12 wide to be 100%
@twelveWide     : (12 / @columnCount * 100%);
@twelveWide: 12/12 * 100%;
@twelveWide: 100%;

thanks a lot


[Bug] The interface of log in EntranceRestfulApi can be lost logs

Search before asking

[X] I searched the issues and found no similar issues.

Linkis Component
linkis-computation-governance
Steps to reproduce
There are blank lines in the script
such as:
def test():
    print("123456")
// some blank lines
// some blank lines
// some blank lines
if __name__ == '__main__':
    print('+++ 开始')
    test()
    print('+++ 结束')
Expected behavior
Accurately obtain incremental logs by param of fromLine
Your environment

Linkis version used: 1.1.1

Anything else
nothing
Are you willing to submit a PR?

[X] Yes I am willing to submit a PR!

The bug will be triggered at the end of the EntranceExecutionJob.

The case of cache

The case of hdfs file


Fixed bugs with optional parameters and empty names

part / kick messages are optional and would send an 'undefined' string if not specified
allow the names extension function to have 'fn' as an optional parameter so that the event system can handle the response (otherwise it throws an error since it tries to call an undefined fn)
Also, some servers (at least unrealircd) just respond with a RPL_ENDOFNAMES if the request is for a channel that the user is not in. So map[chan] will be undefined. In that case with this PR it will return an empty array instead, for consistency.

Hey!
Thanks for the pull request!
Unfortunately, this conflicted with another PR that I recently merged. The other PR also implemented the same if (fn)-thingie.
And as I was going through the code anyway, I figured it would be faster to add these features manually rather than fighting with the conflict, so I added your fixes here: https://github.com/slate/slate-irc/commit/6a3ed3e80997ae30667fbc945ed27e1165dc395f
I'm now closing this issue as solved.
Thanks!

Cool :)


Allow some way to test nondeterministic error ordering

Certain rustc lints (such as the NLL borrow checker) emit errors in a nondeterministic order.

Ah, that's too bad. I would accept a PR to consider compile_fail tests passing if they match the expected stderr file modulo ordering of groups of lines that start with ^error\[E[0-9]{4}\]: up to the next blank line.

I have not encountered nondeterminism in quite a while.
We can reopen if someone can produce a test case in which rustc (not a proc macro) produces nondeterministically ordered diagnostics.


TS12 not work animation

The plugin perfectly exports models to tane, trs2019 and ts12. The animation works adequately in tane and trs2019, but there is a problem in ts12, the animation does not work there, the model itself is exported to the center of the scene. It will be cool if you make the item "animation for ts12"

Could you send the mesh that's causing the issue?

I send a test super light model (cube) and the source of the pantograph with animation. look at the pantograph in ts12 and trs19. in ts12 it does not work, in trs19 everything is fine
https://drive.google.com/file/d/19AT1BGiduqrzECrddHEAoWZubYMkpikG


[PkgConf] Build failure on x64-windows due to extraction issue

Describe the bug
The issue appeared spontaneously without any prior changes. Running git pull and vcpkg update did not resolve the problem.
Two issues occur with vcpkg:

During bootstrap-vcpkg.bat, an error related to the -Raw parameter in the PowerShell Get-Content command appears, and the download of vcpkg.exe fails with an HTTP 404 error.
During a build, vcpkg fails to install dependencies, specifically the pkgconf package, with the error Could not unwrap top level directory from archive.

Environment

OS: Windows 10 22H2
Compiler: MSVC 19.36.32822

To Reproduce
Steps to reproduce the behavior:

Download the latest version of vcpkg from the repository.
Run bootstrap-vcpkg.bat in a terminal.
Observe the errors during the bootstrap process.
Use vcpkg to install dependencies, e.g., run vcpkg install libsodium:x64-windows-static.
Observe the errors during the build process.

Expected behavior

The bootstrap process should complete successfully, downloading the necessary files and preparing the vcpkg environment.
The build process should install all required dependencies without errors.

Failure logs
Bootstrap failure logs:
D:\SOFTWARE [portable]\vcpkg>"D:\SOFTWARE [portable]\vcpkg\bootstrap-vcpkg.bat"
Get-Content : A parameter cannot be found that matches parameter name 'Raw'.
At D:\SOFTWARE [portable]\vcpkg\scripts\bootstrap.ps1:49 char:87
+ ... StringData (Get-Content "$PSScriptRoot\vcpkg-tool-metadata.txt" -Raw)
+                                                                     ~~~~
    + CategoryInfo          : InvalidArgument: (:) [Get-Content], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.GetContentCommand

Downloading https://github.com/microsoft/vcpkg-tool/releases/download//vcpkg.exe -> \vcpkg.exe...Download failed, server returned HTTP status: 404

Build failure logs
1>CMake Error at scripts/cmake/vcpkg_extract_source_archive.cmake:137 (message):
1>  Could not unwrap top level directory from archive.  Pass
1>  NO_REMOVE_ONE_LEVEL to disable this.
1>Call Stack (most recent call first):
1>  scripts/cmake/vcpkg_extract_source_archive_ex.cmake:8 (vcpkg_extract_source_archive)
1>  scripts/cmake/vcpkg_from_github.cmake:113 (vcpkg_extract_source_archive_ex)
1>  ports/pkgconf/portfile.cmake:1 (vcpkg_from_github)
1>  scripts/ports.cmake:196 (include)

1>EXEC : error : building pkgconf:x64-windows failed with: BUILD_FAILED
1>Please ensure you're using the latest port files with git pull and vcpkg update.
1>Then check for known issues at:
1>  https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+pkgconf
1>You can submit a new issue at:
1>  https://github.com/microsoft/vcpkg/issues/new?title=[pkgconf]+Build+error+on+x64-windows

D:\SOFTWARE [portable]

Until properly fixed, you may try to a more traditional path, without  , [, ], +, *, ?, ;, : etc.

блять...


Move opensuse base to 15.3

This bumps the default base image to 15.3, and updates the livecd specs to unlock automatic bumps

To note: tests seems to pass here https://github.com/rancher-sandbox/cOS-toolkit/pull/112/checks?check_run_id=2409354230, the one failing is due to Docker hub pull limits


Fixed targeting assignment precedence.

This PR addresses an issue regarding audience matching precedence when assigning variants via targeting.
If the current user is targeted by name directly, the associated variant should always win. This has the highest precedence.
Next is a group match.
Finally, if none of the above matches occur, default rollout percentage should be used to select a matching variant. Otherwise, the default variant should be selected.

User
Group
Default Rollout
Default Variant

This is already detailed in the README, but the existing code did not behave this way.

@zhenlan @avanigupta @mrm9084
Please help with reviewing this PR if you can.

                    }

Nit:
return IsTargeted(...);

Refers to: src/Microsoft.FeatureManagement/Targeting/TargetingEvaluator.cs:139 in 67b59b3. [](commit_id = 67b59b3f393e8bd4a6b0bcc802c3039ba96d5d48, deletion_comment = False)

                    }

That changes the logic.
Currently, if any of the groups return a positive targeting result, then we return true.

In reply to:<PHONE_NUMBER>

Refers to: src/Microsoft.FeatureManagement/Targeting/TargetingEvaluator.cs:139 in 67b59b3. [](commit_id = 67b59b3f393e8bd4a6b0bcc802c3039ba96d5d48, deletion_comment = False)


Add other exchanges

https://nssc.novascotia.ca/before-you-invest/question-week-how-many-stock-exchanges-exist-canada
I have TSX and TSXV and CSE

montreal exchange
NASDAQ canada
Aequitas Neo Exchange.

Explore using the web money graphql api for stocks from other exchanges such as the nasdaq and the nyse.


activesupport requires Ruby version >= 2.2.2.

Hi there,
Firstly, great package - it'll help us out a great deal - thanks!
I'm probably missing something glaringly obvious...but... when running the command to install, I get the following error:
$ GEM_HOME=$HOME/.letsencrypt_webfaction/gems RUBYLIB=$GEM_HOME/lib gem2.2 install letsencrypt_webfaction
ERROR:  Error installing letsencrypt_webfaction:
        activesupport requires Ruby version >= 2.2.2.

Is it possible to upgrade the Ruby version? I've tried Googling, but not been successful... Is there something I'm missing?
I have access to Ruby 2.2.1, but not 2.2.2 AFAIK:
$ ruby2.2 --version
ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]

I'm on CentOS v7.2.1511.
Thank you in advance!
Sam

Could you try running GEM_HOME=$HOME/.letsencrypt_webfaction/gems RUBYLIB=$GEM_HOME/lib gem2.2 install activesupport separately?

No luck unfortunately:
$ GEM_HOME=$HOME/.letsencrypt_webfaction/gems RUBYLIB=$GEM_HOME/lib gem2.2 install activesupport
ERROR:  Error installing activesupport:
        activesupport requires Ruby version >= 2.2.2.

I think it is probably because Rails (and ActiveSupport) 5 just came out which doesn't support older versions of Ruby.
Could you try:
GEM_HOME=$HOME/.letsencrypt_webfaction/gems RUBYLIB=$GEM_HOME/lib gem2.2 install activesupport -v "< 5.0"

Perfect! That's worked and letsencrypt_webfaction installed too.
Thank you!

Glad to hear this worked for you!

I've released a new version which forces a working version of activesupport. If you already have this working, you don't need to upgrade. But it should keep anyone else from having this issue.

Hi Mr.Will-in-wi
I have the same error and i wrote this < GEM_HOME=$HOME/.letsencrypt_webfaction/gems RUBYLIB=$GEM_HOME/lib gem2.2 install activesupport -v "< 5.0" >
but i get  " sh.exe": gem 2.2:command not found ".
What is the solution ?
Hoping get answer as soon as possible .
Thanks

You need to use a newer version of the Gem that no longer needs activesupport. For the gem2.2 not found error, you need to make sure that PATH=$PATH:$GEM_HOME/bin:/usr/local/bin is in your path, particularly /usr/local/bin.


refactor: upgrade react app

restructure
fixes
small improvements

:tada: This PR is included in version 0.55.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:


Update to Bootstrap v4 Beta 1

It'd be good to see this theme updated with the CSS from Bootstrap v4 Beta 2.

Seems to have many breaking.... @_@

Maybe we should leave this until Bootstrap release the stable version because each release since alpha version have many many breaking changes.
What do you think?

It's in Beta stage now, so there aren't expected to be any major or breaking changes until release now. Maybe wait until the next beta then (Beta 3)?

https://getbootstrap.com/docs/4.0/migration/
There are many bc breaking listed here.

https://github.com/Rundiz/bootstrap-basic4/commit/d1c7991907e806a5b3d6485db3be0da03ec46078


Long queries in new 4.0 version of Neo4j dotnet driver - IO exception?

I'm trying to run a very simple, yet time consuming query in this C# snippet:

As you can see, I just prepare apoc.import.csv query, which I asynchronously execute inside a transaction.
This code I execute (using Mono) on the same Unix system as the Neo4j (4.0.3) database is installed. This is the exception I'm getting:
Thrown exception

I'm really desperate and don't know, how to proceed next. Anybody have some suggestions? I using latest version of both Neo4j database and their Neo4j-dotnet-driver and also latest version of APOC procedures are installed.
One thing to note - all those csv files I'm trying to import are not small (definitely around tens of milions of nodes and relationships). After this failure, some of the nodes were successfully imported into database (after last run the process managed to import around 7 millions of nodes, 0 relationships).
Thanks, Petr

Hi @muzos07,
How long it takes to run your query? Can you share your server side config file with us? Is there anything in your network such as firewall, container settings that may kill idle connections?
Cheers,
Zhen

Hello,
How long it takes to run your query?
I'm not certain for sure (I usually run it overnight, I'm timing it right now) but I't definitely in range of hours. I will update this post with the time.
All of those csv files have 1,79GB in total. When I run the same code for lower amount of nodes (all csvs about 50 MB in total), the query finishes just fine.
Can you share your server side config file with us?
I can, here it is (I only added apoc procedures config at the end and adjusted memory-related configuration based on neo4j-admin memrec):
#*****************************************************************
# Neo4j configuration
#
# For more details and a complete list of settings, please see
# https://neo4j.com/docs/operations-manual/4.0/reference/configuration-settings/
#*****************************************************************

# The name of the default database
#dbms.default_database=neo4j

# Paths of directories in the installation.
dbms.directories.data=/var/lib/neo4j/data
dbms.directories.plugins=/var/lib/neo4j/plugins
dbms.directories.logs=/var/log/neo4j
dbms.directories.lib=/usr/share/neo4j/lib
dbms.directories.run=/var/run/neo4j

# This setting constrains all `LOAD CSV` import files to be under the `import` directory. Remove or comment it out to
# allow files to be loaded from anywhere in the filesystem; this introduces possible security problems. See the
# `LOAD CSV` section of the manual for details.
dbms.directories.import=/var/lib/neo4j/import

# Whether requests to Neo4j are authenticated.
# To disable authentication, uncomment this line
#dbms.security.auth_enabled=false

# Enable this to be able to upgrade a store from an older version.
#dbms.allow_upgrade=true

# Java Heap Size: by default the Java heap size is dynamically
# calculated based on available system resources.
# Uncomment these lines to set specific initial and maximum
# heap size.
dbms.memory.heap.initial_size=31g
dbms.memory.heap.max_size=31g

# The amount of memory to use for mapping the store files, in bytes (or
# kilobytes with the 'k' suffix, megabytes with 'm' and gigabytes with 'g').
# If Neo4j is running on a dedicated server, then it is generally recommended
# to leave about 2-4 gigabytes for the operating system, give the JVM enough
# heap to hold all your transaction state and query context, and then leave the
# rest for the page cache.
# The default page cache memory assumes the machine is dedicated to running
# Neo4j, and is heuristically set to 50% of RAM minus the max Java heap size.
dbms.memory.pagecache.size=364600m
dbms.tx_state.max_off_heap_memory=8g
dbms.jvm.additional=-XX:+ExitOnOutOfMemoryError

#*****************************************************************
# Network connector configuration
#*****************************************************************

# With default configuration Neo4j only accepts local connections.
# To accept non-local connections, uncomment this line:
#dbms.default_listen_address=<IP_ADDRESS>

# You can also choose a specific network interface, and configure a non-default
# port for each connector, by setting their individual listen_address.

# The address at which this server can be reached by its clients. This may be the server's IP address or DNS name, or
# it may be the address of a reverse proxy which sits in front of the server. This setting may be overridden for
# individual connectors below.
#dbms.default_advertised_address=localhost

# You can also choose a specific advertised hostname or IP address, and
# configure an advertised port for each connector, by setting their
# individual advertised_address.

# To turn on encryption, an ssl policy for the connector needs to be configured
# Read more in SSL policy section in this file for how to define a SSL policy.

# Bolt connector
dbms.connector.bolt.enabled=true
#dbms.connector.bolt.tls_level=DISABLED
#dbms.connector.bolt.listen_address=:7687

# HTTP Connector. There can be zero or one HTTP connectors.
dbms.connector.http.enabled=true
#dbms.connector.http.listen_address=:7474

# HTTPS Connector. There can be zero or one HTTPS connectors.
dbms.connector.https.enabled=false
#dbms.connector.https.listen_address=:7473

# Number of Neo4j worker threads.
#dbms.threads.worker_count=

#*****************************************************************
# SSL policy configuration
#*****************************************************************

# Each policy is configured under a separate namespace, e.g.
#    dbms.ssl.policy.<scope>.*
#    <scope> can be any of 'bolt', 'https', 'cluster' or 'backup'
#
# The scope is the name of the component where the policy will be used
# Each component where the use of an ssl policy is desired needs to declare at least one setting of the policy.
# Allowable values are 'bolt', 'https', 'cluster' or 'backup'.

# E.g if bolt and https connectors should use the same policy, the following could be declared
#   dbms.ssl.policy.bolt.base_directory=certificates/default
#   dbms.ssl.policy.https.base_directory=certificates/default
# However, it's strongly encouraged to not use the same key pair for multiple scopes.
#
# N.B: Note that a connector must be configured to support/require
#      SSL/TLS for the policy to actually be utilized.
#
# see: dbms.connector.*.tls_level

# SSL settings (dbms.ssl.policy.<scope>.*)
#  .base_directory       Base directory for SSL policies paths. All relative paths within the
#                        SSL configuration will be resolved from the base dir.
#
#  .private_key          A path to the key file relative to the '.base_directory'.
#
#  .private_key_password The password for the private key.
#
#  .public_certificate   A path to the public certificate file relative to the '.base_directory'.
#
#  .trusted_dir          A path to a directory containing trusted certificates.
#
#  .revoked_dir          Path to the directory with Certificate Revocation Lists (CRLs).
#
#  .verify_hostname      If true, the server will verify the hostname that the client uses to connect with. In order
#                        for this to work, the server public certificate must have a valid CN and/or matching
#                        Subject Alternative Names.
#
#  .client_auth          How the client should be authorized. Possible values are: 'none', 'optional', 'require'.
#
#  .tls_versions         A comma-separated list of allowed TLS versions. By default only TLSv1.2 is allowed.
#
#  .trust_all            Setting this to 'true' will ignore the trust truststore, trusting all clients and servers.
#                        Use of this mode is discouraged. It would offer encryption but no security.
#
#  .ciphers              A comma-separated list of allowed ciphers. The default ciphers are the defaults of
#                        the JVM platform.

# Bolt SSL configuration
#dbms.ssl.policy.bolt.enabled=true
#dbms.ssl.policy.bolt.base_directory=certificates/bolt
#dbms.ssl.policy.bolt.private_key=private.key
#dbms.ssl.policy.bolt.public_certificate=public.crt

# Https SSL configuration
#dbms.ssl.policy.https.enabled=true
#dbms.ssl.policy.https.base_directory=certificates/https
#dbms.ssl.policy.https.private_key=private.key
#dbms.ssl.policy.https.public_certificate=public.crt

# Cluster SSL configuration
#dbms.ssl.policy.cluster.enabled=true
#dbms.ssl.policy.cluster.base_directory=certificates/cluster
#dbms.ssl.policy.cluster.private_key=private.key
#dbms.ssl.policy.cluster.public_certificate=public.crt

# Backup SSL configuration
#dbms.ssl.policy.backup.enabled=true
#dbms.ssl.policy.backup.base_directory=certificates/backup
#dbms.ssl.policy.backup.private_key=private.key
#dbms.ssl.policy.backup.public_certificate=public.crt

#*****************************************************************
# Logging configuration
#*****************************************************************

# To enable HTTP logging, uncomment this line
#dbms.logs.http.enabled=true

# Number of HTTP logs to keep.
#dbms.logs.http.rotation.keep_number=5

# Size of each HTTP log that is kept.
#dbms.logs.http.rotation.size=20m

# To enable GC Logging, uncomment this line
#dbms.logs.gc.enabled=true

# GC Logging Options
# see https://docs.oracle.com/en/java/javase/11/tools/java.html#GUID-BE93ABDC-999C-4CB5-A88B-1994AAAC74D5
#dbms.logs.gc.options=-Xlog:gc*,safepoint,age*=trace

# Number of GC logs to keep.
#dbms.logs.gc.rotation.keep_number=5

# Size of each GC log that is kept.
#dbms.logs.gc.rotation.size=20m

# Log level for the debug log. One of DEBUG, INFO, WARN and ERROR. Be aware that logging at DEBUG level can be very verbose.
#dbms.logs.debug.level=INFO

# Size threshold for rotation of the debug log. If set to zero then no rotation will occur. Accepts a binary suffix "k",
# "m" or "g".
#dbms.logs.debug.rotation.size=20m

# Maximum number of history files for the internal log.
#dbms.logs.debug.rotation.keep_number=7

#*****************************************************************
# Miscellaneous configuration
#*****************************************************************

# Enable this to specify a parser other than the default one.
#cypher.default_language_version=3.5

# Determines if Cypher will allow using file URLs when loading data using
# `LOAD CSV`. Setting this value to `false` will cause Neo4j to fail `LOAD CSV`
# clauses that load data from the file system.
#dbms.security.allow_csv_import_from_file_urls=true

# Value of the Access-Control-Allow-Origin header sent over any HTTP or HTTPS
# connector. This defaults to '*', which allows broadest compatibility. Note
# that any URI provided here limits HTTP/HTTPS access to that URI only.
#dbms.security.http_access_control_allow_origin=*

# Value of the HTTP Strict-Transport-Security (HSTS) response header. This header
# tells browsers that a webpage should only be accessed using HTTPS instead of HTTP.
# It is attached to every HTTPS response. Setting is not set by default so
# 'Strict-Transport-Security' header is not sent. Value is expected to contain
# directives like 'max-age', 'includeSubDomains' and 'preload'.
#dbms.security.http_strict_transport_security=

# Retention policy for transaction logs needed to perform recovery and backups.
dbms.tx_log.rotation.retention_policy=1 days

# Only allow read operations from this Neo4j instance. This mode still requires
# write access to the directory for lock purposes.
#dbms.read_only=false

# Comma separated list of JAX-RS packages containing JAX-RS resources, one
# package name for each mountpoint. The listed package names will be loaded
# under the mountpoints specified. Uncomment this line to mount the
# org.neo4j.examples.server.unmanaged.HelloWorldResource.java from
# neo4j-server-examples under /examples/unmanaged, resulting in a final URL of
# http://localhost:7474/examples/unmanaged/helloworld/{nodeId}
#dbms.unmanaged_extension_classes=org.neo4j.examples.server.unmanaged=/examples/unmanaged

# A comma separated list of procedures and user defined functions that are allowed
# full access to the database through unsupported/insecure internal APIs.
#dbms.security.procedures.unrestricted=my.extensions.example,my.procedures.*

# A comma separated list of procedures to be loaded by default.
# Leaving this unconfigured will load all procedures found.
#dbms.security.procedures.whitelist=apoc.coll.*,apoc.load.*

#********************************************************************
# JVM Parameters
#********************************************************************

# G1GC generally strikes a good balance between throughput and tail
# latency, without too much tuning.
dbms.jvm.additional=-XX:+UseG1GC

# Have common exceptions keep producing stack traces, so they can be
# debugged regardless of how often logs are rotated.
dbms.jvm.additional=-XX:-OmitStackTraceInFastThrow

# Make sure that `initmemory` is not only allocated, but committed to
# the process, before starting the database. This reduces memory
# fragmentation, increasing the effectiveness of transparent huge
# pages. It also reduces the possibility of seeing performance drop
# due to heap-growing GC events, where a decrease in available page
# cache leads to an increase in mean IO response time.
# Try reducing the heap memory, if this flag degrades performance.
dbms.jvm.additional=-XX:+AlwaysPreTouch

# Trust that non-static final fields are really final.
# This allows more optimizations and improves overall performance.
# NOTE: Disable this if you use embedded mode, or have extensions or dependencies that may use reflection or
# serialization to change the value of final fields!
dbms.jvm.additional=-XX:+UnlockExperimentalVMOptions
dbms.jvm.additional=-XX:+TrustFinalNonStaticFields

# Disable explicit garbage collection, which is occasionally invoked by the JDK itself.
dbms.jvm.additional=-XX:+DisableExplicitGC

# Restrict size of cached JDK buffers to 256 KB
dbms.jvm.additional=-Djdk.nio.maxCachedBufferSize=262144

# More efficient buffer allocation in Netty by allowing direct no cleaner buffers.
dbms.jvm.additional=-Dio.netty.tryReflectionSetAccessible=true

# Exits JVM on the first occurrence of an out-of-memory error. Its preferrable to restart VM in case of out of memory errors.
# dbms.jvm.additional=-XX:+ExitOnOutOfMemoryError

# Remote JMX monitoring, uncomment and adjust the following lines as needed. Absolute paths to jmx.access and
# jmx.password files are required.
# Also make sure to update the jmx.access and jmx.password files with appropriate permission roles and passwords,
# the shipped configuration contains only a read only role called 'monitor' with password 'Neo4j'.
# For more details, see: http://download.oracle.com/javase/8/docs/technotes/guides/management/agent.html
# On Unix based systems the jmx.password file needs to be owned by the user that will run the server,
# and have permissions set to 0600.
# For details on setting these file permissions on Windows see:
#     http://docs.oracle.com/javase/8/docs/technotes/guides/management/security-windows.html
#dbms.jvm.additional=-Dcom.sun.management.jmxremote.port=3637
#dbms.jvm.additional=-Dcom.sun.management.jmxremote.authenticate=true
#dbms.jvm.additional=-Dcom.sun.management.jmxremote.ssl=false
#dbms.jvm.additional=-Dcom.sun.management.jmxremote.password.file=/absolute/path/to/conf/jmx.password
#dbms.jvm.additional=-Dcom.sun.management.jmxremote.access.file=/absolute/path/to/conf/jmx.access

# Some systems cannot discover host name automatically, and need this line configured:
#dbms.jvm.additional=-Djava.rmi.server.hostname=$THE_NEO4J_SERVER_HOSTNAME

# Expand Diffie Hellman (DH) key size from default 1024 to 2048 for DH-RSA cipher suites used in server TLS handshakes.
# This is to protect the server from any potential passive eavesdropping.
dbms.jvm.additional=-Djdk.tls.ephemeralDHKeySize=2048

# This mitigates a DDoS vector.
dbms.jvm.additional=-Djdk.tls.rejectClientInitiatedRenegotiation=true

# Enable remote debugging
#dbms.jvm.additional=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005

# This filter prevents deserialization of arbitrary objects via java object serialization, addressing potential vulnerabilities.
# By default this filter whitelists all neo4j classes, as well as classes from the hazelcast library and the java standard library.
# These defaults should only be modified by expert users!
# For more details (including filter syntax) see: https://openjdk.java.net/jeps/290
#dbms.jvm.additional=-Djdk.serialFilter=java.**;org.neo4j.**;com.neo4j.**;com.hazelcast.**;net.sf.ehcache.Element;com.sun.proxy.*;org.openjdk.jmh.**;!*

#********************************************************************
# Wrapper Windows NT/2000/XP Service Properties
#********************************************************************
# WARNING - Do not modify any of these properties when an application
#  using this configuration file has been installed as a service.
#  Please uninstall the service before modifying this section.  The
#  service can then be reinstalled.

# Name of the service
dbms.windows_service_name=neo4j

#********************************************************************
# Other Neo4j system properties
#********************************************************************
dbms.security.procedures.unrestricted=apoc.*
apoc.import.file.enabled=true

Is there anything in your network such as firewall, container settings that may kill idle connections?
I do not think so. The C# code is transferred to the same system where database is installed (Ubuntu 18.04), compiled using msbuild and run using Mono. Everything in the project runs fine (there is some data loading, formatting, and creating csv files - all fine) until it hits this loading into a database. So C# code is running locally -> connects to localhost (=running database on the same system) and tries to execute this query.
ANOTHER UPDATE:
I tried to run the same query just by using cypher-shell, which is supposed to locally run queries on your database using bolt. This also ended with exception:
org.neo4j.driver.exceptions.SessionExpiredException: Server at localhost(<IP_ADDRESS>):7687 is no longer available
	at org.neo4j.driver.internal.util.Futures.blockingGet(Futures.java:143)
	at org.neo4j.driver.internal.InternalResult.blockingGet(InternalResult.java:128)
	at org.neo4j.driver.internal.InternalResult.hasNext(InternalResult.java:64)
	at org.neo4j.shell.prettyprint.SimpleOutputFormatter.formatAndCount(SimpleOutputFormatter.java:23)
	at org.neo4j.shell.prettyprint.PrettyPrinter.format(PrettyPrinter.java:28)
	at org.neo4j.shell.CypherShell.lambda$executeCypher$0(CypherShell.java:99)
	at java.base/java.util.Optional.ifPresent(Optional.java:183)
	at org.neo4j.shell.CypherShell.executeCypher(CypherShell.java:98)
	at org.neo4j.shell.CypherShell.execute(CypherShell.java:81)
	at org.neo4j.shell.cli.NonInteractiveShellRunner.runUntilEnd(NonInteractiveShellRunner.java:61)
	at org.neo4j.shell.Main.runShell(Main.java:120)
	at org.neo4j.shell.Main.startShell(Main.java:86)
	at org.neo4j.shell.Main.main(Main.java:44)
	Suppressed: org.neo4j.driver.internal.util.ErrorUtil$InternalExceptionCause
		at org.neo4j.driver.internal.handlers.RoutingResponseHandler.handledServiceUnavailableException(RoutingResponseHandler.java:109)
		at org.neo4j.driver.internal.handlers.RoutingResponseHandler.handledError(RoutingResponseHandler.java:90)
		at org.neo4j.driver.internal.handlers.RoutingResponseHandler.onFailure(RoutingResponseHandler.java:62)
		at org.neo4j.driver.internal.async.inbound.InboundMessageDispatcher.handleChannelError(InboundMessageDispatcher.java:161)
		at org.neo4j.driver.internal.async.inbound.ChannelErrorHandler.fail(ChannelErrorHandler.java:99)
		at org.neo4j.driver.internal.async.inbound.ChannelErrorHandler.channelInactive(ChannelErrorHandler.java:77)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:257)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:243)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:236)
		at org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:393)
		at org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:358)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:257)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:243)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:236)
		at org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:393)
		at org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:358)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:257)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:243)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:236)
		at org.neo4j.driver.internal.shaded.io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1417)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:257)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:243)
		at org.neo4j.driver.internal.shaded.io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:913)
		at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:816)
		at org.neo4j.driver.internal.shaded.io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
		at org.neo4j.driver.internal.shaded.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:510)
		at org.neo4j.driver.internal.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:518)
		at org.neo4j.driver.internal.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1044)
		at org.neo4j.driver.internal.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
		at org.neo4j.driver.internal.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
		at java.base/java.lang.Thread.run(Thread.java:834)
Caused by: org.neo4j.driver.exceptions.ServiceUnavailableException: Connection to the database terminated. Please ensure that your database is listening on the correct host and port and that you have compatible encryption settings both on Neo4j server and driver. Note that the default encryption setting has changed in Neo4j 4.0.
	at org.neo4j.driver.internal.util.ErrorUtil.newConnectionTerminatedError(ErrorUtil.java:52)
	at org.neo4j.driver.internal.util.ErrorUtil.newConnectionTerminatedError(ErrorUtil.java:45)
	at org.neo4j.driver.internal.async.inbound.ChannelErrorHandler.channelInactive(ChannelErrorHandler.java:76)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:257)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:243)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:236)
	at org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:393)
	at org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:358)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:257)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:243)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:236)
	at org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:393)
	at org.neo4j.driver.internal.shaded.io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:358)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:257)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:243)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:236)
	at org.neo4j.driver.internal.shaded.io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1417)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:257)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannelHandlerContext.invokeChannelInactive(AbstractChannelHandlerContext.java:243)
	at org.neo4j.driver.internal.shaded.io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:913)
	at org.neo4j.driver.internal.shaded.io.netty.channel.AbstractChannel$AbstractUnsafe$8.run(AbstractChannel.java:816)
	at org.neo4j.driver.internal.shaded.io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:163)
	at org.neo4j.driver.internal.shaded.io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:510)
	at org.neo4j.driver.internal.shaded.io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:518)
	at org.neo4j.driver.internal.shaded.io.netty.util.concurrent.SingleThreadEventExecutor$6.run(SingleThreadEventExecutor.java:1044)
	at org.neo4j.driver.internal.shaded.io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at org.neo4j.driver.internal.shaded.io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.base/java.lang.Thread.run(Thread.java:834)

So I guess this problem is not caused by the driver, but the server itself :/

Hi @muzos07,
Is there any error in server logs when the query failed on client?

debug.log
In attached file are all logs from the exact time I tried to start an empty database until occured errors.
I see bunch of apoc procedures failed to load (which is weird since I use newest version compatible with Neo4j 4.0 version), but the final error is about some mismatching store id.
The database was freshly started at 14/04/2020 10:01:17.
The cypher-shell command running the apoc query was executed at 14/04/2020 10:02:24.
The query finished with error at 14/04/2020 10:36:26.
I'm starting to realize that this problem might not be related to neo4j-dotnet-driver, so if you want, I can post this on stack overflow or neo4j community forum. Let me know.
Thanks, Petr

Hi @muzos07,
Is it always takes around 30 mins that your query starts to fail with dotnet and/or cypher-shell?
The mismatch store id might because you deleted neo4j folder in your file system. You shall try to run cypher query to delete old database. e.g. DROP database neo4j

Yes, it takes around 30 mins

@muzos07
I would suggest you check if your local os has some timeout restrictions on idle TCP connections. It is highly suspicious that connections always get killed after 30mins. Currently we have SO_KEEP_ALIVE enabled by default, but many platforms still kill connections if no data in application level after certain timeout. The current server/driver does not support application level ping messages. When the driver connection is killed, the query execution is also killed.
So I would either suggest you to check you os/platform to remove this timeout so that the driver can execute long running tx. Or maybe load the csv file directly without the driver to neo4j.

Ok thank you very much for the tips, I will lead on that.
On the other hand, will you please look at my C# snippet from the first message here and maybe recommend me some other way to execute this query? Or is this simple and efficient enough (using just session.RunAsync(query)).
I don't need to return any data from dotnet driver, just ensure the import was successful

How would I "load the csv file directly without the driver to neo4j."? What do you mean by that?

Ok I decided to take another approach in my project.
I no longer use csv and will use this driver to directly create nodes with "CREATE ()" queries.
You can consider this issues as closed.


Use templates for pipelines

Moved repeated code in pipelines to templates.
Created three new templates in .pipelines/.templates:

vars.yml
contains definition of credentials variable group and modulesFolder
used in pull, push and validate
sharedSteps.yml
contains all shared steps for caching, downloading dependencies and connecting to Azure
used in pull, push and validate
deploy.yml
contains steps for diff and deploy changes. Uses parameter deploy to separate between deploy and validate
The logic for determining validate or deploy can look a bit weird at first glance, but I chose to use "not equals true" instead of equals false to decrease the risk of a misconfiguration would cause unintended deploy instead of risking unintended validation.

As described in Azure/AzOps#459

Thanks Jesper! That is a great idea, thank you.
Implemented.


Update CODEOWNERS

To enforce reviews from the X-Ray team.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

Codecov Report

Merging #110 (26c7071) into main (b7f4fd5) will not change coverage.
The diff coverage is n/a.

@@            Coverage Diff            @@
##               main     #110   +/-   ##
=========================================
  Coverage     65.10%   65.10%
  Complexity      193      193
=========================================
  Files            17       17
  Lines           854      854
  Branches        132      132
=========================================
  Hits            556      556
  Misses          229      229
  Partials         69       69

Continue to review full report at Codecov.

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


Check for previous/existing GitHub issues/module proposals

[X] I have checked for previous/existing GitHub issues/module proposals.

Check this module doesn't already exist in the module indexes

[X] I have checked for that this module doesn't already exist in the module indexes.

Bicep or Terraform?
Bicep
Module Classification?
Pattern Module
Module Name
avm/ptn/azd/apim-api
Module Details
Please add a Pattern Module named avm/ptn/api-management/apim-api, this module will create the following two resources:

API Management Service.
Web Site.

For details, please refer to azd:
https://github.com/Azure/azure-dev/blob/main/templates/todo/common/infra/bicep/app/apim-api.bicep
CC: @jongio
Do you want to be the owner of this module?
No
Module Owner's GitHub Username (handle)
jongio
(Optional) Secondary Module Owner's GitHub Username (handle)
No response

@Menghua1, thank you for proposing this module and thank you for your patience on triaging it! Many of us on the AVM core team have been OOF in the last couple of weeks, but we're back now! 😊
As this is categorized as a pattern module, its approval will require a more thorough assessment. We'll reach out to @jongio internally for more context and details as this proposal may require some adjustments to fit AVM's pattern definition and intent. The AVM core team will get back to you soon. Thank you for your patience!

Hi @jongio,
Thanks for requesting/proposing to be an AVM module owner!
We just want to confirm you agree to the below pages that define what module ownership means:

Team Definitions & RACI
Shared Specification (Bicep & Terraform)
Module Support

Any questions or clarifications needed, let us know!
If you agree, please just reply to this issue with the exact sentence below (as this helps with our automation 👍):
"I CONFIRM I WISH TO OWN THIS AVM MODULE AND UNDERSTAND THE REQUIREMENTS AND DEFINITION OF A MODULE OWNER"
Thanks,
The AVM Core Team
#RR

I CONFIRM I WISH TO OWN THIS AVM MODULE AND UNDERSTAND THE REQUIREMENTS AND DEFINITION OF A MODULE OWNER

Hi @jongio,
Thanks for requesting/proposing to be an AVM module owner!
We just want to confirm you agree to the below pages that define what module ownership means:

Team Definitions & RACI
Shared Specification (Bicep & Terraform)
Module Support

Any questions or clarifications needed, let us know!
If you agree, please just reply to this issue with the exact sentence below (as this helps with our automation 👍):
"I CONFIRM I WISH TO OWN THIS AVM MODULE AND UNDERSTAND THE REQUIREMENTS AND DEFINITION OF A MODULE OWNER"
Thanks,
The AVM Core Team
#RR

[x] Module published.
[x] GitHub teams are available and assigned to their parents.
[x] CODEOWNERS file updated.
[x] Issue template file updated.

Thank you for your work @jianingwang123!


[Proposal] Making "where like" statement more robust.

Hi,
I was going through API and want to find the best way to make "like statement" easier. In the end, I need to manage it on scope level.
Suppose if a user want to make more then 3 to 4 like statements, so he needs to repeat himself by $model->where('column', 'LIKE', '%value%'). To solve this query what I did is
   $model->like([
            'current_designation' => $request['designation'],
            'location'            => $request['location'],
            'gender'              => $request['gender'],
            'contact_number'      => $request['content_number'],
        ], [
            'first_name'          => $request['name'],
            'last_name'           => $request['name'],
        ]);

and added like method in model
    public function scopeLike($q, array $andStatement, array ...$orStatements)
    {
        foreach ($andStatement as $key => $value) {
            if (! $value) { continue; }

            $q = $q->where($key, 'LIKE', "%$value%");
        }

        foreach ($orStatements as $orStatement) {
            if (! count($orStatement)) { continue; }

            $q->where(function ($q) use ($orStatement) {
                foreach ($orStatement as $key => $value) {
                    if (! $value) { continue; }

                    $q = $q->orWhere($key, 'LIKE', "%$value%");
                }

                return $q;
            });
        }

        return $q;
    }

Note: First parameter of like method will be "and statement" and remaining parameters will be treated as "or statements".
This will be useful in scenarios such as search, multiple "like" bindings and much more.

Hello @Modelizer, thank you for suggestions but that repo is only from bug reports :)
Please feel free to open a PR or use the https://github.com/laravel/internals repo to discuss your proposal.

Ohh thanks, I made a mistake :sweat_smile:


Counting/keeping track of token usage

I'd be happy to see a capability for seeing how many tokens I'm using and maybe even being able to follow how much money I'm using in my long exchanges with GPT-4

Good idea.


Release/v0.0.1

Notion ticket link

Ticket Name

Implementation description

Steps to test

What should reviewers focus on?

Checklist

[ ] My PR name is descriptive and in imperative tense
[ ] I have run the linter
[ ] I have requested a review from the PL, and/or other devs who have background knowledge on this PR or who will be building on top of this PR

Tested on PR deploy, only issue with deployment is that the region of the SES server is in the wrong region. Not blocking, will delegate for next release.


Add support for zwave-js 10

Remove old controller attributes and replaced with new ones
Switch controller.begin_exclusion to use exclusion strategy instead of unprovision flag
Add API key support to controller.get_available_firmware_updates
Add node.interview command

coverage is related to a None check