Missing headers on CSV file

Example file uploaded to flask:
account_id,account_name,style,graphic,color,size,team,player_name,player_num,upc,sku
12,Cleveland,C1394_ToddlerTrueClassicKnit NFL_S401ACY1,C1394_AZC,,OSFA,Arizona Cardinals,,,'12345',1234
12,Cleveland,C1394_ToddlerTrueClassicKnit NFL_S401ACY1,C1394_BBI,,OSFA,Buffalo Bills,,,'6789',5678
12,Cleveland,C1394_ToddlerTrueClassicKnit NFL_S401ACY1,C1394_CBE,,OSFA,Chicago Bears,,,'10111213',91011

The FileStorage object from request.files has somehow had the CSV header line (line 1) removed.
Using Python 2.7.

Please provide a minimal case to reproduce it.

You mean like this?
@api.route('/account/<int:account_id>/item/import', methods=['POST'])
def import_item_skus(account_id):
    if 'file' in request.files:
        f = request.files['file']

No, a minimal example of the code reproducing the problem you have. Ideally a one-file app that just shows the issue.

An actually app hosted somewhere?

Please see Minimal, Complete, and Verifiable Example.

I can't reproduce your issue. Uploading the provided CSV data using the following view does not modify it. Please use Stack Overflow for questions about your own code. This tracker is for issues with Flask itself. Be sure to include a Minimal, Complete, and Verifiable Example whether reporting bugs here or asking questions there.
@app.route('/', methods=['GET', 'POST'])
def index():
    if request.method == 'POST':
        return app.response_class(
            request.files['data'].read(), content_type='text/csv'
        )

    return '''<form method=post enctype=multipart/form-data>
        <input type=file name=data>
        <input type=submit>
    </form>'''

That is the minimal and complete code. The only way to make it verifiable is to create an entirely new app and get it hosted. I used Postman to upload a CSV to an endpoint represented by the code above.
Without telling me what would actually help you it's extremely hard to give you what you need. I guess I will guess at what that is:
from flask import Blueprint
from flask_cors import CORS

api = Blueprint('api_v1', __name__)

CORS(api, supports_credentials=True)

from .api_v1 import api as api_v1_blueprint
app.register_blueprint(api_v1_blueprint, url_prefix='/ws/v1')

<FileStorage>
content_length:0
content_type:'text/csv'
filename:u'test_import.csv'
headers:<Headers, len() = 2>
    _list:[('Content-Disposition', 'form-data; name="fi...port.csv"'), ('Content-Type', 'text/csv')]
    items()
    ['Content-Disposition']:'form-data; name="file"; filename="test_import.csv"'
    ['Content-Type']:'text/csv'
mimetype:'text/csv'
mimetype_params:{}
name:'file'
stream: <_io.BytesIO object at 0x10c64a8f0>
    [0]:'12,Cleveland,C1394_ToddlerTrueClassicKnit NFL_S401ACY1,C1394_CBE,,OSFA,Chicago Bears,,,191415016462,91011\r\n'
    [1]:'12,Cleveland,C1394_ToddlerTrueClassicKnit NFL_S401ACY1,C1394_CBR,,OSFA,Cleveland Browns,,,191415016486,121314\r\n'
    [2]:'12,Cleveland,C1394_ToddlerTrueClassicKnit NFL_S401ACY1,C1394_DBR,,OSFA,Denver Broncos,,,191415016509,151617\r\n'

If I load the file from my computer in the app, it reads the first line of the file.

This is not a question of my code. I am following the docs and the file is altered between it being sent from the front-end (not attached to Flask), and it being loaded into the request object.

What I'd like to see is a piece of code I can run locally and then use curl to upload a sample file to it. That code should reproduce the issue. With the output you posted it looks like you are doing some processing - so it's possible that your code reads a line - and unless you rewind the file object you won't see that line again.

Sorry, that's still not a reproducible example. You haven't include any code related to how you upload the file or process it. Additionally, Flask-CORs is not part of Flask, and a blueprint is not related to reading uploaded data.

What do you mean it looks like I'm doing some processing? This is the endpoint:
@api.route('/account/<int:account_id>/item/import', methods=['POST'])
def import_item_skus(account_id):
    if 'file' in request.files:
        f = request.files['file']

The file is sent through Postman, as flask has the ability to be an API with Blueprint built in.
There is no processing between Postman, and catching it in a debugger. The api is built with flask and it must be catching the file somehow.

What I mean is: What code is running between the begin of your view function and the code printing the debug info or whatever you do that shows you there's some data missing.

There is nothing running. There is no view. This is only an endpoint.

With "view function" I meant the function decorated with route - this is often called a view function in the Flask workd.

You mean along the lines of a @app.before_request function?

For example. But I really meant that you should simply post one whole function from the @...route() until the end of the function that does nothing but reproducing your problem. Because that is something we can then use to test with!

That is the whole function. All I wanted to see was if the file was there and run something like request.files['file'].read() from the repl. When I do that, the first line of the file is missing.

"from the repl" - how did you get into a REPL from a web request? Flask debugger? PDB?

@stevenmwade you need to give us steps on how to reproduce this problem.

I used something like Pycharm or VSCode to stop the local server in that function and execute code in the session. You could add a print f.read() at the end and it would accomplish the same thing.
This is only an API.

 This tracker is not for extended discussion. Reporters are expected to provide an example of how to reproduce the issue. The tracker is for issues with Flask, not with user code. If your next post is not a reproducible example, this is getting locked.

Ah, so it is very much possible that PyCharm's debugger read something from the file object. This is exactly why we asked for a minimal testcase. Code running inside a debugger is not really suitable to reproduce issues like this, at least not in a language like Python where reading something could change its state.

@ThiefMaster I had just print statements and I must have changed it when there was another thing happening with it not sending the file correctly before. I didn't know a debugger couldn't alter the stream in such a minute way to remove a single line, even if it wasn't accessing it from the repl. I know it can read it out of memory essentially, and I have had it do that. I will check if the single line comes back without actually stepping through the function.

@api.route('/account/<int:account_id>/item/import', methods=['POST'])
def import_item_skus(account_id):
if 'file' in request.files:
        f = request.files['file']
        allowed_file = allowed_file_type(f.filename)
        if allowed_file:
                test = []
                reader = csv.DictReader(f)
                for row in reader:
                    test.append(row)

                return jsonify(test)

Returns correctly unless I put a breakpoint and step through it, then it apparently only reads line one out of memory. My apologies. @ThiefMaster, thanks for suggesting to take out the breakpoints.

FYI, this is why it happens:
In [1]: from csv import DictReader
In [2]: from io import StringIO
In [3]: f = StringIO(u'a,b,c\n1,2,3\n4,5,6\n7,8,9')
In [4]: r = DictReader(f)

In [5]: for x in dir(r):
   ...:     print x, getattr(r, x)
   ...:
__doc__ None
__init__ <bound method DictReader.__init__ of <csv.DictReader instance at 0x7f2660f86368>>
__iter__ <bound method DictReader.__iter__ of <csv.DictReader instance at 0x7f2660f86368>>
__module__ csv
_fieldnames None
dialect excel
fieldnames ['a', 'b', 'c']
line_num 1
next <bound method DictReader.next of <csv.DictReader instance at 0x7f2660f86368>>
reader <_csv.reader object at 0x7f2661814de0>
restkey None
restval None

In [6]: f.tell()
Out[6]: 6L

In [7]: DictReader.fieldnames??
Type:        property
String form: <property object at 0x7f2661838f70>
Source:
# DictReader.fieldnames.fget
@property
def fieldnames(self):
    if self._fieldnames is None:
        try:
            self._fieldnames = self.reader.next()
        except StopIteration:
            pass
    self.line_num = self.reader.line_num
    return self._fieldnames

# DictReader.fieldnames.fset
@fieldnames.setter
def fieldnames(self, value):
    self._fieldnames = value

Accessing the fieldnames property of the DictReader reads a line from the file.

@ThiefMaster Event if I used csv.reader it wasn't printing the first line. It was definitely the debugger.


Dev adding annotation

@fsdavid  Can you convert this PR to draft? when  ready, convert it to PR, and I can go through and give reviews?

@fsdavid Can you convert this PR to draft? when ready, convert it to PR, and I can go through and give reviews?

Sure

feedback at d5ca35a:

top right

icons should still be available (those not available should be disabled)
annotation mode x feels out of place

use standard component (panel/card)
use larger font
x should be mat-icon-button[color="warn"]

should not be pushed when the side nav toggles

side nav

point/line icon is pushed off:

when text field is focus -> esc should not collapse side nav
cannot clear landmark name (on clear, new one is automatically populated)
allow alt + enter to defocus (also related, esc should only defocus, rather than collapse side bar)
horizontal rule separating select | point , line, poly line | delete | exit

missing feature

export to sands compatible format
import sands compatible format

bug

drag on perspective view moves annotation as well as perspective view

Thanks for your feedback.
I have some questions:
Could not understand what do you mean - icons should still be available (those not available should be disabled)
Could not reproduce - point/line icon is pushed off
Could not understand what do you mean: allow alt + enter to defocus (I've added esc to defocus input fields)
What about drag on perspective view moves annotation as well as perspective view - Do you know if it is possible to get or change perspective view orientation?

Could not understand what do you mean: allow alt + enter to defocus (I've added esc to defocus input fields)

I mean ctrl + enter, fixed in the comment

Could not understand what do you mean - icons should still be available (those not available should be disabled)

I am thinking about user login/logout button, user setting, siibra-explorer about page, etc

Could not reproduce - point/line icon is pushed off

can you show what side nav looks like in your local installation?

What about drag on perspective view moves annotation as well as perspective view - Do you know if it is possible to get or change perspective view orientation?

I believe so, how are you disabling translation of slice view? it should be exactly the same as preventing translation of the perspective view.

I'm getting the current state of the viewer (var name: this.navState), when dragging is started and while dragging I'm running: this.interactiveViewer.viewerHandle.setNavigationLoc(this.navState)

Could not reproduce - point/line icon is pushed off

can you show what side nav looks like in your local installation?

can you check the navside bar is behaving similarly for you on
https://quick-tour-demo.okd-dev.hbp.eu/
?

Could not understand what do you mean - icons should still be available (those not available should be disabled)

I am thinking about user login/logout button, user setting, siibra-explorer about page, etc

Yeah, if you prefer we can show and disable them - if it will not be confusing for the users (users could think that app got stuck)

Do you mean for description? or for all the fields? what about use ctrl + enter for description and just enter for input fields?

all fields, per trello behaviour

can you check the navside bar is behaving similarly for you on
https://quick-tour-demo.okd-dev.hbp.eu/
?

Yeah sure:

OK my browser renders it differently
We need to inspect it properly.

i just checked FF, it's even worse:

i just checked FF, it's even worse:

It works well on my firefox. Could you please check what is hovering icons?

Could you please check what is hovering icons?

can you elaborate how I can look for it?

Could you please check what is hovering icons?

can you elaborate how I can look for it?

Just with selecting element which is hovering icons from dev tools

I mean, from chrome element inspector, the layout is completely busted

I mean, from chrome element inspector, the layout is completely busted

Thanks, I will try to make a different approach

left TODOs:

[ ] migrate tools to modular classes

[ ] point
[ ] line

[ ] render annotations in side bar
[ ] remove annotation.service and most code in annotationMode.component

re: double click/right click cancel editing, is there a precedent for this behaviour? like photoshop or inkscape that uses this shortcut?

re: double click/right click cancel editing, is there a precedent for this behaviour? like photoshop or inkscape that uses this shortcut?

Sure for double click. You can check boxy-svg.com, editor.method.ac and I believe many many more. For me, the normal behaviour for finishing the same type of drawing is by double click (It is not necessary to be a real double click I believe we can finish drawing by clicking on the last or the first point).  Right-click is Timos suggestion.

Sure for double click. You can check boxy-svg.com, editor.method.ac

The DblCl behaviour are incredible inconsistent between these two applications.

boxy-svg adds last point, and but does not complete the polyline
editor.method.ac completes the last point, and completes the polyline
for editor.methods.ac, click on any previously added point also completes polyline
I cannot find an example where RightCl completes the polyline (we should serious consider if right click should be a mode of interaciton)

We should probably ask some feedback from sebastian and andrea.

@xgui3783 Sorry but I could not understand what do you mean. I just googled first SVG editor apps and what I have able to test all of them I could finish blazier or any pan paintings with point

Sure for double click. You can check boxy-svg.com, editor.method.ac

The DblCl behaviour are incredible inconsistent between these two applications.

boxy-svg adds last point, and but does not complete the polyline
editor.method.ac completes the last point, and completes the polyline
for editor.methods.ac, click on any previously added point also completes polyline
I cannot find an example where RightCl completes the polyline (we should serious consider if right click should be a mode of interaciton)

We should probably ask some feedback from sebastian and andrea.

Sorry but I do not understand what do you mean by complete the polyline and sorry if examples were not enough, I just take the first examples in google and send them to you.
Now, I've tried more apps and websites and find out that, mostly double click is a default way to end painting polyline or bazier (click on the first point is also frequent way), and esc removes the full editing polygon.
App: inkscape, Paint S, Paint pad light.
Web: https://web.autocad.com/, https://www.photopea.com/ - Try Polygonal Lasso Select,  https://pixlr.com/e/#editor, https://gojs.net/latest/extensions/PolygonDrawing.html, https://www.gifgit.com/image/pen-tool , https://roomstyler.com/
I also tried Adobe XD where double click is not a default way to finish painting, but I guess because double click has another feature which is logical.
I'm still installing some apps to test but for now, my PC went crazy and stucked :d

No, I'm wrong with https://web.autocad.com/. because it is really very slow on my PC. I tried ARC and double click was working but I found pline where it finishes with Esc and Context menu. I'm not sure why because it is very slow and I could not test well.

I mean, the fact that we are discussing what is the best way to end a poly line drawing tells me that anything other than escape is unintuitive.


A11y_SQL Azure Data Studio _Export query results_Keyboard: Tooltips of save as csv, save as excel etc. buttons is not accessible with keyboard.

“Check out Accessibility Insights! - Identify accessibility bugs before check-in and make bug fixing faster and easier.”
GitHubTags: #A11yMAS;#A11yTCS;#A11ySev2;#BM_SQLAzureDataStudio_Win32_Jun2021;#SQL Azure Data Studio;#Win10;#FTP;#DesktopApp;#WCAG2.1.1;#Keyboard;
Environment Details:
Application Name: Azure Data Studio
Version: 1.30.0-insider (user setup)
Windows Version: Windows10
Screenreader: JAWS, NVDA
Repro Steps:

Launch Azure Data Studio.
Tab Navigate to File and press enter then tab till New Query and hit enter.
Connect to a Server in the Query Editor and choose the credential, and optionally the database to connect to
Type a SQL query statement that produces a result set
Tab till Run and press enter
Tab Navigate to the Results tab.
From the side menu, Tab navigate to "Save As " buttons , where  is either CSV, Excel, JSON, XML.
Check if tooltip of those buttons are accessible with keyboard.

Actual:
Tooltips of save as csv, save as excel etc. buttons is not accessible with keyboard.
Expected:
Tooltips of save as csv, save as excel etc. buttons should be accessible with keyboard.
User Impact:
Keyboard only user will face difficulty while accessing the controls as they wont be able to access the tooltip with keyboard.

this is a general problem: https://github.com/microsoft/vscode/issues/52016

As per the above mentioned bug , the bug is closed. Hence closing this bug.
GitHubTags: #Closed;


plugins/lsp: add solargraph language server

Please add a test in the corresponding nvim-lsp.nix file to enable the server

I added the relevant test + specified the correct LS package.


*: bump v3.1.0 ga

Signed-off-by: youjiali1995<EMAIL_ADDRESS>
What is changed and how it works?
What's Changed:
Bump version.

/run-all-tests

/run-all-tests

/run-all-tests


[FLINK-3853] [gelly] Reduce object creation in Gelly utility mappers

Gelly contains a set of MapFunction between Vertex and Tuple2 and between Edge and Tuple3. A Vertex is a Tuple2 and an Edge is a Tuple3, and conversion in the opposite direction can be performed with a single object per MapFunction.
This only applies to the Gelly Java API. Scala tuples are not related to Vertex or Edge.

Thanks for the PR! Merging.


Is it possible to make requests with different proxies?

could you make it?

that will be very useful.


(Notice) Dropping shortId support on code.quarkus.io/api

FYI: https://github.com/quarkusio/code.quarkus.io/pull/680
I searched for shortId in the repo and didn't find any reference to it.
You can close this issue if it is not used anymore.

I think we're good:
https://github.com/redhat-developer/vscode-quarkus/blob/caed8f55d07015f517331b65ac4137bbfbf91d18/src/utils/requestUtils.ts#L76-L84


Fix exception handling

[x] Check which are the exceptions raised by kubernetes, MariaDB e Longhorn and place it beside BaseException AND/OR add a residual "except:" in every try-except block, raising a clean and meaningfull exception.
[ ] Add a residual "except:" in every try-except block, raising a clean and meaningfull exception, everywhere but in main()
[ ] Remove message concatenation in the exception. Use the automatic chaining instead
[ ] Print the exceptions stack trace (using traceback.print_exception(*sys.exc_info())) just in the main method only if debug-mode is enabled (through DEBUG=true env var)
[x] Add exception handling in longhornapi dateutil_parse 1 and dateutil_parse 2
[x] Check the pod exists before operations in k8sapihandler
[ ] Try to do everything that is possible in the main() method, even if some exception will be raised, avoiding the process complete abort
[ ] Give at the end of the process 3 kind of messages based on return code:

[ ] (return 0) Everything OK
[ ] (return 1) Process completely failed
[ ] (return >1) Somethig went wrong, specifying what haven't been done returning a different int>1 for each case. Don't remove old snapshots and backups

[x] Add connection initialization check to:

[x] kubernetesapi
[x] longhornapi
[x] mariadbapi

Follow this check list while fixing:

[ ] common/backupconfig ->

[ ] add unknown exception 1
[ ] add unknown exception 2
[ ] add unknown exception 3

[ ] common/loggable ->

[ ] add unknown exception 1
[ ] add unknown exception 2

[ ] apihanlers/

[ ] kubernetesapi
[ ] longhornapi
[ ] mariadbapi

[ ] apphandlers/

[ ] nextcloudapp
[ ] mariadbapp

[ ] kubencbackup.py
[ ] main.py

In the implementation of kubencbackup/kubencbackup.py this is the rule to follow:
if (failing the api handlers init):
nothig to do => abort
elseif (failing the nextcloud app handler):
nothig to do => abort
elseif (failing the mariadb app handler):
create just the nextcloud volume snapshot and return - DON'T REMOVE OLD SNAPHOTS AND BACKUPS
elseif (failing mysqldump):
create the nextcloud and actual mariadb volumes snapshots and return - DON'T REMOVE OLD SNAPHOTS AND BACKUPS
else:
create everything and delete old snapshots and backups


Feedback

Hi,
Not an issue this time, just a bit of feedback about Nightcode. Yesterday evening I hosted a Clojure coding dojo for ~45 people who where mostly new to Clojure. When preparing, I had been looking for the best setup to use. VSCode, Atom, Cursive, etc. I wanted something that supports parinfer smart mode (because that gives by far the least friction to "newbies"). And I wanted something simple, simple to use and also important: simple to setup.
Nightcode ticks all of those boxes, and more! It was a very pleasant experience and the attendees were also very positive about it!
So this issue is just to say: THANK YOU! Nightcode is awesome and your efforts are greatly appreciated!!!
Best regards,
Stefan

That is fantastic to hear. As a former teacher i'm happy it's still being used for teaching!


HA sync does not work

via https://forum.opnsense.org/index.php?topic=266.0

Master
Mar 28 19:26:43	opnsense: /system_hasync.php: Configuring CARP settings finalize...
Mar 28 19:26:43	opnsense: /system_hasync.php: pfsync done in 0 seconds.
Mar 28 19:26:43	opnsense: /system_hasync.php: waiting for pfsync...
Mar 28 19:26:42	kernel: pid 49446 (ifconfig), uid 0: exited on signal 10 (core dumped)
Mar 28 19:26:42	kernel: carp: demoted by 240 to 240 (pfsync bulk start)
Mar 28 19:26:42	opnsense: /usr/local/etc/rc.filter_synchronize: New alert found: A communications error occurred while attempting XMLRPC sync with username root https://<IP_ADDRESS>:443.
Mar 28 19:26:42	opnsense: /usr/local/etc/rc.filter_synchronize: A communications error occurred while attempting XMLRPC sync with username root https://<IP_ADDRESS>:443.
Mar 28 19:26:42	opnsense: /usr/local/etc/rc.filter_synchronize: XML_RPC_Client: Connection to RPC server <IP_ADDRESS>:443 failed. 103
Mar 28 19:26:41	opnsense: /usr/local/etc/rc.filter_synchronize: New alert found: A communications error occurred while attempting XMLRPC sync with username root https://<IP_ADDRESS>:443.
Mar 28 19:26:41	opnsense: /usr/local/etc/rc.filter_synchronize: A communications error occurred while attempting XMLRPC sync with username root https://<IP_ADDRESS>:443.
Mar 28 19:26:41	opnsense: /usr/local/etc/rc.filter_synchronize: XML_RPC_Client: Connection to RPC server <IP_ADDRESS>:443 failed. 103
Slave
Mar 28 19:23:58	opnsense: /usr/local/etc/rc.filter_configure_sync: Could not find IPv6 gateway for interface(lan).
Mar 28 18:23:58	configd.py: Reloading filter
Mar 28 19:23:58	opnsense: /usr/local/etc/rc.filter_synchronize: Config sync not being done because of missing sync IP (this is normal on secondary systems).
Mar 28 18:23:58	configd.py: Syncing firewall
Mar 28 19:22:35	opnsense: /usr/local/etc/rc.filter_synchronize: Config sync not being done because of missing sync IP (this is normal on secondary systems).
Mar 28 18:22:35	configd.py: Syncing firewall
Mar 28 19:19:11	opnsense: /diag_logs_filter.php: There was a error parsing rule: . Please report to mailing list or forum.
Mar 28 19:19:11	opnsense: /diag_logs_filter.php: There was a error parsing rule: . Please report to mailing list or forum.
Mar 28 19:19:11	opnsense: /diag_logs_filter.php: There was a error parsing rule: . Please report to mailing list or forum.
Mar 28 19:19:11	opnsense: /diag_logs_filter.php: There was a error parsing rule: . Please report to mailing list or forum.

The xmlrpc server part looks broken and very old/unsupported, I'm working on a replacement.

@AdSchellevis thanks for picking this up! :+1:

fixed, last bits and pieces in https://github.com/opnsense/core/commit/20118288e243a058cdb9ca94ca33a2bd97576e76


add citation information to readme?

add citation information to readme?
we can have two subsections there, one for the library: AutoGen & EcoOptiGen; and one for applications: MathChat (maybe this is also part of the library?)

hi, i want to solve this issue, please assign it to me @JieyuZ2  @sonichi  @ekzhu  @iemejia

made changes to readme.md review and merge @JieyuZ2

I have referred the docs for cite info and made changes accordingly. please review and merge @JieyuZ2

created a section contain cite to AutoGen and EcoOptGen
2nd  section cites to MathChat


Create / update CSS Assessments for Layout module

New assessments to complete:

[x] Flexbox (I already created these as a test for the new format)
[x] Grid (similar to the flex examples)
[x] Larger flex and grid assessment using both layout methods
[x] Floats
[x] Positioning (probably a couple of smaller tasks to be able to assess abspos, and sticky)
[x] Multicol
[x] Media Queries (there is an active learning section here but it is more a guided walkthrough)

Existing assessments to update:

[x] https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Fundamental_Layout_Comprehension

I have now added all of these to the learn section and linked them to the appropriate tutorials.


1 catastrophic error detected in the compilation of "kernel.cu.cu". Compilation terminated.

While running test_nvrtc2() in cutest_nvrtc.py ,I encountered the error below, and my cuda version is 11.3. I've tested on cuda11.6 and cuda 11.7, the same error occured. Is anything missing from my environment causing this error? I'd really appreciate your reply.
1 catastrophic error detected in the compilation of "kernel.cu.cu".
Compilation terminated.

Traceback (most recent call last):
  File "/home/jason/Code/RayModel-main/test/cutest_nvrtc.py", line 262, in <module>
    test_nvrtc2()
  File "/home/jason/Code/RayModel-main/test/cutest_nvrtc.py", line 77, in test_nvrtc2
    inliner.kernel_1d("wtf", keys.dim(0), 0, f"""
  File "/home/jason/anaconda3/envs/cuda113/lib/python3.8/site-packages/cumm/inliner/__init__.py", line 395, in kernel_1d
    return self.inline(name,
  File "/home/jason/anaconda3/envs/cuda113/lib/python3.8/site-packages/pccm/builder/inliner.py", line 777, in inline
    func = self.build(pccm_class, mod_root, name, timeout,
  File "/home/jason/anaconda3/envs/cuda113/lib/python3.8/site-packages/cumm/inliner/__init__.py", line 352, in build
    mod = CummNVRTCModuleBase.from_params(params)
  File "/home/jason/anaconda3/envs/cuda113/lib/python3.8/site-packages/cumm/nvrtc/__init__.py", line 274, in from_params
    return cls(params.code,
  File "/home/jason/anaconda3/envs/cuda113/lib/python3.8/site-packages/cumm/nvrtc/__init__.py", line 208, in __init__
    super().__init__(code,
  File "/home/jason/anaconda3/envs/cuda113/lib/python3.8/site-packages/cumm/tensorview/__init__.py", line 174, in __init__
    self._mod = _NVRTCModule(code, headers, opts, program_name,
RuntimeError: /io/include/tensorview/cuda/nvrtc.h(96)
compileResult == NVRTC_SUCCESS assert faild. nvrtc compile failed.

/home/jason/anaconda3/envs/cuda113/bin/python /home/jason/Code/RayModel-main/test/cutest_nvrtc.py
/home/jason/anaconda3/envs/cuda113/lib/python3.8/site-packages/cumm/include/tensorview/core/nvrtc/core.h(27): catastrophic error: cannot open source file "cuda/std/cassert"

you need to install cuda to your system or install libcudacxx (available in github) headers to your system.

Thanks. I only had the cuda came with pytorch-gpu before, installing the nvidia cuda toolkit fixed my problem.


Semantic highlighting marking a class usage as a constant

Ruby version
3.2.2
Code snippet
This may not be the most lightweight way to reproduce it, but it's visible.
Dockerfile
# Use Alpine as the base image
FROM alpine:latest

# Set the working directory
WORKDIR /root

# Install necessary packages
RUN apk add --no-cache \
  git \
  curl \
  build-base \
  zlib-dev \
  openssl-dev \
  readline-dev \
  linux-headers \
  libffi-dev \
  cmake \
  automake \
  autoconf \
  libtool \
  pkgconf \
  gettext-tiny-dev \
  ruby \
  ruby-dev \
  bash \
  yaml-dev

# Clone and build Neovim from source
RUN git clone https://github.com/neovim/neovim.git && \
  cd neovim && \
  make CMAKE_BUILD_TYPE=Release && \
  make install

# Clone the LazyVim starter repository
RUN git clone https://github.com/LazyVim/starter ~/.config/nvim

# Copy the content of custom_plugins.lua from an external file
COPY custom_plugins.lua /root/.config/nvim/lua/plugins/custom_plugins.lua

# Create example.rb inline
RUN echo -e "class Foo\n  def self.bar\n    Foo.new # `Foo` should be the same color in both lines\n  end\nend" > ~/example.rb

# Create Gemfile inline
RUN echo "source 'https://rubygems.org'" > ~/Gemfile

# Install bundler and gems specified in the Gemfile
RUN gem install bundler && \
  bundle install

# Start Neovim headlessly and install plugins
RUN nvim -es -u ~/.config/nvim/init.lua -i NONE -c "Lazy" -c "qa"

# Start a shell when the Docker container is run
CMD ["sh"]

-- store this in the same folder of the Dockerfile as `custom_plugins.lua`
return {
    {
        "williamboman/mason.nvim",
        opts = function(_, opts)
            vim.list_extend(opts.ensure_installed, {
                "ruby-lsp",
            })
        end,
    },
    {
        "neovim/nvim-lspconfig",
        opts = {
            servers = {
                ruby_ls = {},
            },
        },
    },
}

Run:
docker build -t example .
docker run -ti example
# inside
nvim example.rb

Wait a bit and you'll see some notifications like installing ruby_ls, ruby_ls installed, and some seconds later the server will be started automatically. At that point you'll see the color of the second Foo change.
Description
I wanted to replace solargraph with ruby_ls with neovim (and LazyVim). When switching I noticed that the highlighting was different. I've noticed that this is most probably because ruby_ls semantic highlighting.
I'm using https://github.com/maxmx03/solarized.nvim with neo theme, although I can reproduce it with other themes.
After using :Inspect, i've noticed the following

Foo here is highlighted as a a namespace / constant, where on declaration it's as a class:

Expected output
I would expect that in both cases Foo is the same color (orange, as a Type)

Thank you for the report! Yes, we started out by using constant for every reference before we had an index.
If anyone is interest is looking into this, we now need to pass the index to the semantic highlighting request and check the correct type of constant references to produce the correct semantic token. We also need to update the SEMANTIC_HIGHLIGHTING.md file to reflect the changes.
The main concern with this is performance, since every constant reference found in a file will have to be resolved - which can prove very expensive.

Sure, I can add more details. From the parser's perspective (and Ruby's to some degree), there's no difference between a reference to a constant, class or module. They are all just constant references. However, it's useful to differentiate them for developers, since the intent is different - even if under the hood they are the same.
To be able to differentiate them, we need to:

Know all declarations in the project. This allows us to know if the reference was declared as a class, module or constant
Resolve the reference according to the current name. Consider this file as an example:

module Foo
  module Bar
    class Baz; end

    Baz
  end
end

Here we have a reference to Baz inside Foo and Bar. Resolving this reference means figuring out exactly to which constant it points to. Is it Foo::Bar::Baz, Foo::Baz or Baz? All of those are possible from Ruby's standpoint.
So what we need to do to fix this is:

the semantic highlighting listener has to receive the index as an argument
In the semantic highlighting listener, we need to add events for classes and module declarations so that we can keep track of the current nesting. Similar to what we do in the indexing visitor, we need an array to store the current nesting. In the on_class_node_enter event, we push the name of the class to the stack. In the on_class_node_leave event, we pop from the stack. Same thing for modules
Finally, we use the index, the current nesting and the name of the constant reference to invoke resolve like we do in definition, which will return all declarations of that constant. The entries will be of a different class depending on what the constant is. If it's a class, it'll be an Entry::Class, if it's a module Entry::Module and Entry::Constant for constants. Based on that information, we should decide the right token to return to the editor using the specification

Module -> namespace
Class -> class
Constant -> namespace (the spec doesn't have a type for constants, so this is the best we can do)

I do want to emphasize something though: resolving constant references can be expensive and semantic highlighting runs on every single keypress. Even if this is implemented correctly, we may still not be able to merge it if performance is degraded excessively.

Yes, the index has all of that information about declarations, but that doesn't remove the need for resolution. Take this example:
class Baz; end

module Foo
  class Baz; end

  module Bar
    class Baz; end

    Baz
  end
end

In this Baz reference, you need to figure out if it refers to Foo::Bar::Baz, Foo::Baz or just Baz. It's not enough to just look at the nesting directly, you always need to fully resolve the name first.
It gets even more complicated if you have aliases to modules/classes. For example
module Foo
  class Bar; end
end

CONST = Foo

module Baz
  CONST::Bar
end

In that case, CONST::Bar refers to Foo::Bar. But it could also refer to Baz::CONST::Bar or even Baz::Foo::Bar. Part of the resolution is following aliased namespaces.
And that's why it might become too expensive given that semantic highlighting runs on every keypress.

@vinistock Interesting. I'm still going to try and see where I might take this but I'm wondering: Do you know how other languages do it? I'm not sure, but is Ruby unique in this respect? Because if there's something similar in another language, maybe we can look at their LS implementation, if they have one. If not... well... if it does prove too complex and expensive, maybe semantic highlighting won't be a thing hahaha At least until a solution to the performance issue is found.

I don't know of another language where classes, modules and constants are ambiguous. Part of why we need to use the index and resolve references is because there's no way to tell them apart just from syntax in Ruby - it's ambiguous.
If you have
Foo::Bar

With that information alone, it's not possible to tell what Foo or Bar are. Both can be a class, a module or a constant alias to another class/module.
If there's another language with the same type of ambiguity, then we can definitely check to see what they are doing.
I do believe that the right implementation is resolving the references to figure out the right token. We can always benchmark to compare the new implementation with the old and understand how much of an impact it has.

@vinistock Opened a draft PR. As of next week I won't have as much time available, but I intend to continue working on this. However, if anyone wishes to modify my PR, feel free to do so.


Update README.md

Some examples were showing string results, while they should have been numbers.
This was confusing me quite a bit when I was reading the docs ;).

thanks!


Enhance documentation with info about html_context

Recently wanted to investigate the details about html_context for cclib/cclib.github.io#8 and could not find anything. It would be nice to have something in the docs.

This is a duplicate of https://github.com/rtfd/sphinx_rtd_theme/issues/231

This does not seem to be fully covered by #231. Only :github_url:, :bitbucket_url:, and :gitlab_url: are documented, no other options are, nor where to put them. Reopening.

Hmm, this was closed as duplicate, then reopend since it is not. Still the label "duplicate" is still present. Shouldn't this be removed?

Note html_context can be used with the GitHub, Bitbucket etc links - see example here:
https://github.com/readthedocs/sphinx_rtd_theme/issues/465#issuecomment-521272830

Closing in favor of https://github.com/readthedocs/sphinx_rtd_theme/issues/582


Idea: Allow Filtering Options

Basically:
Disable Same Displayname, Display
Enable Only Handle Matching
Remove accounts you follow already follow, etc

This feature was implemented in the Chrome version. Please check it out.


NCP: add E2E tests for hosts

The new collective page doesn't have a good test coverage yet. We want to solve that by adding new cypress tests. We've added the paths that we want to cover in https://github.com/opencollective/opencollective-frontend/blob/master/test/cypress/integration/06-host_v2.test.js.
To implement the missing tests, you need to:

Setup your local environment & check the best practices: https://github.com/opencollective/opencollective-frontend/blob/master/docs/e2e.md
Open 06-host_v2.test.js, for each test with a // TODO:

Remove the .skip (it.skip('...') --> it('...'))
Implement the test (make sure it passes)
If you're not sure about what should be tested for a given test, please ask directly on this issue

Commit the result, CI will run your tests to make sure they pass.

@betree @znarf I'd be interested in taking on this issue :blush:

:trophy: This issue is now completed by @sbinlondon!
To claim the $50 bounty, you can either:

Submit an invoice to https://opencollective.com/engineering/expenses/new (please mention the issue number in the expense's title)
Or ask for an Open Collective gift card of the same value (to donate to other collectives)


Add DB module

I don't want to write database integrations from scratch with plain JDBC.
Instead think about reusing Quill for querying

What about https://github.com/tpolecat/skunk?

Hi @ohuu , I appreciate your suggestion!
The main reason I have chosen quill is the ability to run SQL without any IO monad.
It's the most popular and simple option I know

By the way, doesn't seem difficult to implement ResultSet => case class parser with magnolia.
Could start with this


Time-ago issue on 'Files and versions' / repo view

Is your feature request related to a problem? Please describe.
When I was looking at this model repo, I noticed that some files were commited "in 9 months" (to me this means in the future).

Describe the solution you'd like
It should read "9 months ago". Other timestamps seem correct (e.g. "last year")

thanks for reporting! this is tracked internally and should be fixed soon

We deployed the fix (thanks @coyotte508), so I'm closing this - feel free to reopen @mapmeld if you still encounter the problem


Should the foreign key be the primary key of another table

DBFlow Version: 4.0.5
I want the foreign key to be the unique of another table , and the problem:
class com.raizlabs.android.dbflow.processor.definition.column.ForeignKeyColumnDefinition (Kotlin reflection is not available) :Could not find referenced column id from reference named parent
not support?

foreign keys are primary keys of another table. the error means it cannot find column id from the referenced table. reopen if you still have issue on later versions of dbflow (4.2.3) and provide more information please.


✨ Modify data when using .addKeyword

What version of Ajv you are you using?
6.11.0
What problem do you want to solve?
Would love to be able to mutate the data during validation when using custom keywords. Coming from a different library isValid I wanted to start using something more performant but quickly noticed that ajv doesn't support a specific type of functionality I was using with isValid.
I have a use case where I want to validate if a number is parseable to a BigNumber. If it isn't valid return false (so validation fails) but if it meets the condition return the modified data (passes validation). + Would also love to access the validated data after validating.
ajv.addKeyword('graceful', {
  type: 'boolean',
  validate: (value: any, data: any) => {
    if (data === undefined) {
      return null;
    }

    if (value) {
      const number = new BigNumber(data);
      return number.isNaN() ? false : number;
    }

    return true;
  },
});

const schema = {
  type: 'object',
  properties: {
    amount: {
      type: 'number',
      graceful: true,
    },
  },
};

const data = {
  amount: "0.648416281616",
};

const validate = ajv.compile(schema);
const valid = validate(data);

console.log(typeof valid.data.amount === 'object');
// $ true

console.log(valid.data.amount);
// $ 0.648416281616

console.log(valid.data.amount.toExponential());
// $ '6.48416281616e-1'

What do you think is the correct solution to problem?
Not entirely sure since I haven't gone through the codebase myself but would love to pass a global option to ajv like allowMutation: true which then allows users to mutate the data in some way and returns the mutated data after validation.
Will you be able to implement it?
No. I might have missed something important in the documentation and this might be already possible though!

An update on this issue.
I've temporarily made it work by keeping a global reference to the original data and then mutating that data with the 4th parameter (which shows the keys) used in the validate function in addKeyword.
For the mutation I'm currently using lodash's _.set. Still thinking if it would be possible with using data coercion or compile instead of validate 🤔

It is supported - there is an option to allow mutation - please check the docs or mutating keywords in ajv-keywords.

@epoberezkin How can we do that? I haven't found any documentation about this...

@epoberezkin How can we do that? I haven't found any documentation about this...

See api.md (addKeyword method), keywords.md and keyword implementations in ajv-keywords - there are some mutating keywords.

See api.md (addKeyword method), keywords.md and keyword implementations in ajv-keywords - there are some mutating keywords.


Using PowerShell ISE

Can this script be use on PS ISE? or is there a script for this?

Document Details
⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

ID: 65e527db-a4c2-782e-5a5f-ad8b3159a977
Version Independent ID: f2de1272-5e37-c59f-fcb9-34fa66b0d268
Content: Connect to Exchange Online PowerShell using multi-factor authentication
Content Source: exchange/docs-conceptual/exchange-online/connect-to-exchange-online-powershell/mfa-connect-to-exchange-online-powershell.md
Service: exchange-online
Product: unspecified
GitHub Login: @chrisda
Microsoft Alias: chrisda

@ccadenasa, see Issue #1093.
Thanks for the feedback.


Error from the simple pipeline unit test

When I was executing
python -m unittest seq2seq.test.pipeline_test

there was an a error and following is the log:
I tensorflow/core/common_runtime/gpu/pool_allocator.cc:247] PoolAllocator: After 5705 get requests, put_count=5553 evicted_count=1000 eviction_rate=0.180083 and unsatisfied allocation rate=0.219457
I tensorflow/core/common_runtime/gpu/pool_allocator.cc:259] Raising pool_size_limit_ from 100 to 110
INFO:tensorflow:Performing full trace on next step.
I tensorflow/stream_executor/dso_loader.cc:126] Couldn't open CUDA library libcupti.so.8.0. LD_LIBRARY_PATH: /usr/local/cuda-8.0/lib64:/usr/local/cuda-8.0/lib64:/usr/local/cuda-8.0/lib64:/usr/local/cuda-8.0/lib64:
F tensorflow/core/platform/default/gpu/cupti_wrapper.cc:59] Check failed: ::tensorflow::Status::OK() == (::tensorflow::Env::Default()->GetSymbolFromLibrary( GetDsoHandle(), kName, &f)) (OK vs. Not found: /home/dl/anaconda2/envs/tf/lib/python2.7/site-packages/tensorflow/python/_pywrap_tensorflow.so: undefined symbol: cuptiActivityRegisterCallbacks)could not find cuptiActivityRegisterCallbacksin libcupti DSO

There's a fatal in the last line and I'm not sure how to fix this. This bug appeared only after I have git pulled the repository today, some version in the last week worked fine. Can someone please help?
Ubuntu 14.04, Cuda 8.0

This seems like a Tensorflow issue, not related to this code. Please open an issue in the Tensorflow repository: https://github.com/tensorflow/tensorflow/issues

below fix will solve the problem:
"seems that you need to add /usr/local/cuda-8.0/extras/CUPTI/lib64 to LD_LIBRARY, solved it".
for more detail, check this link: https://github.com/tensorflow/tensorflow/issues/7110

@brightmart  Yeah, that exactly worked. This is a silly mistake. Thanks so much!


[DO NOT MERGE] (SERVER-1062) puppetserver config subcommand

Initial attempt at a puppetserver config print|set subcommand.
Supports reading and writing, batches, and optionally printing as JSON.
Writing assumes configuration files are HOCON.

REQUIRES JAVA 8 FOR NEWER TYPESAFE CONFIG VERSION

Need to ensure our CI is set up for this, which it might already be

Only works with HOCON files

Which is all that we happen to be shipping, but lower-level TK utilities this is built upon support more formats

Replaced by #851


use WebSocket helper/adapter

https://github.com/honojs/hono/pull/2265

Hono v4.2 as peerDeps may be too up-to-date.

https://github.com/honojs/hono/pull/2479


Add debugger alias for exec(expr)

node v9.8.0
In the debugger you can quickly inspect the value of a variable at run-time using exec. Given
// test.js
var a = 1

$ node inspect test.js
< Debugger listening on ws://<IP_ADDRESS>:9229/4565e728-272a-497d-a3f8-73b03362df0f
< For help see https://nodejs.org/en/docs/inspector
< Debugger attached.
Break on start in test.js:1
> 1 (function (exports, require, module, __filename, __dirname) { var a = 1
  2
  3 });
debug> n
break in test.js:1
> 1 (function (exports, require, module, __filename, __dirname) { var a = 1
  2
  3 });
debug> n
break in test.js:3
  1 (function (exports, require, module, __filename, __dirname) { var a = 1
  2
> 3 });
debug> exec('a')
1
debug> .exit

To more quickly debug an application it would be nice to alias exec to e or p so one can do
debug> p('a')
1

Even better if the expression could be passed without parens and quotes
debug> p a
1

This is in the same spirit as when pressing Enter the debugger will repeat the previous command.
From https://github.com/nodejs/node/issues/20963

Moving back to node since the code was merged into node itself. I think p a would be a reasonable short-hand to add though it would require somebody to send a PR to implement it.


Plugin not loading after the new obsidian android update

After update 14. October in play store the banner plugin shows error messeage failed to load plugin.

Seems to work after disabling plugin manager. (Another community addon)

Seems to work after disabling plugin manager. (Another community addon)


Health checks fail when using the new publish to elastic beanstalk interface

Describe the bug
Health checks fail when using the new publish to elastic beanstalk interface
To Reproduce

Right click project in Visual Studio
Click "Publish to AWS..."
Select existing application environment
Click "Publish"

Expected behaviour
Application should be deployed the same as legacy interface
Computer (please complete the following information):

Windows Version: Windows 11 Pro build 22621.963
Visual Studio Version: 17.3.5
AWS Toolkit for Visual Studio Version: <IP_ADDRESS>

Additional context
Deploying .NET 6 application to Amazon Linux 2/2.4.2.  "Publish to AWS Elastic Beanstalk (Legacy)" works as expected.  Health check simply checks for 200 from specific end point,.   Using ELB type Application Loadbalancer.  Environment has 5 instances of t3a.small and is part of a VPC.  Uses rolling deploy based on health with batch size of 50%.  Application version is successfully pushed to instances in first batch but instances are not re-registered with loadbalancer gets stuck on the step saying "Registering instance(s) with the load balancer and waiting for them to be healthy." Under "causes" in the console no error codes are shown.

Further info: our application does not use a proxy server
Further investigation:
The artifacts produced by the legacy deploy process are quite different to the new version.

New version creates a "runtimes" folder
New version generates an exe for the target project where as the legacy version creates a file named the same as the target project with with no extension
The legacy version creates a Procfile file the new version does not
New version creates a web.config file

Thank you for bringing this issue to our attention.  To be sure I understand correctly, you deployed to a Beanstalk environment using the "Publish to AWS Elastic Beanstalk (Legacy)" option in the AWS Toolkit.  Subsequently, you attempted to deploy the same project to the same Beanstalk environment using the "Publish to AWS" option.  Do I have that correct?

Hi! Yes that is correct.

Do you see this behavior consistently when deploying with Publish to AWS?  Do the legacy deployments work or fail as well?  If you haven't already, let's take a look at your log files.  From Visual Studio, if you click on Extensions in the main menu then AWS Toolkit then View Toolkit Logs.  Do you see any warnings/errors related to the deployment in those logs?  If so, please post the details in this issue.

Some company info redacted
Here's the output of the logs from the new publish
2023-01-06 09:40:56,363 [113] INFO  Amazon.AWSToolkit.Credentials.Core.ProfileCredentialProviderFactory - Reloaded AWS Credential Profiles
Profiles found: 1
2023-01-06 09:41:03,539 [1] INFO  Amazon.AwsToolkit.VsSdk.Common.VSWebProjectInfo - EnvDTEProject.FullName lookup yielded 'C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales\XXXXX.Services.Sales.csproj'
2023-01-06 09:41:03,666 [1] INFO  Amazon.AWSToolkit.S3FileFetcher - Null/empty hosted files location override
2023-01-06 09:41:03,669 [1] INFO  Amazon.AWSToolkit.S3FileFetcher - Null/empty hosted files location override
2023-01-06 09:41:03,670 [1] INFO  Amazon.AWSToolkit.S3FileFetcher - Probing for hosted file at url 'https://d3rrggjwfhwld2.cloudfront.net/CloudFormationTemplates/TemplatesManifest.xml'
2023-01-06 09:41:04,462 [134] DEBUG Amazon.AWSToolkit.Telemetry.Internal.TelemetryPublisher - Publishing 3 event(s)
2023-01-06 09:41:20,698 [177] INFO  Amazon.AWSToolkit.VisualStudio.AWSToolkitPackage - Publishing 'XXXXX.Services.Sales' to Amazon Web Services
2023-01-06 09:41:39,951 [150] INFO  Amazon.AWSToolkit.ElasticBeanstalk.Commands.BaseBeanstalkDeployCommand - Publish to AWS Elastic Beanstalk environment 'XXXXX-sales-uat-4' completed successfully
2023-01-06 09:41:41,957 [178] INFO  Amazon.AWSToolkit.CommonUI.BaseAWSControl - Beginning loading data for EnvStatuse-ujy6hsdujj
2023-01-06 09:41:43,933 [178] INFO  Amazon.AWSToolkit.CommonUI.BaseAWSControl - Data loaded data for EnvStatuse-ujy6hsdujj
2023-01-06 09:46:05,667 [15] DEBUG Amazon.AWSToolkit.Telemetry.Internal.TelemetryPublisher - Publishing 4 event(s)
2023-01-06 09:54:30,205 [116] DEBUG Amazon.AWSToolkit.Publish.ViewModels.PublishToAwsDocumentViewModel - Starting a deployment session
2023-01-06 09:54:35,262 [1] DEBUG Amazon.AWSToolkit.Publish.ViewModels.PublishToAwsDocumentViewModel - Deployment session started
2023-01-06 09:54:35,737 [180] DEBUG Amazon.AWSToolkit.Publish.ViewModels.PublishToAwsDocumentViewModel - Publish targets found for XXXXX.Services.Sales: 4
2023-01-06 09:54:35,815 [147] DEBUG Amazon.AWSToolkit.Publish.ViewModels.PublishToAwsDocumentViewModel - Republish targets found for XXXXX.Services.Sales: 13
2023-01-06 09:54:46,591 [145] DEBUG Amazon.AWSToolkit.Telemetry.Internal.TelemetryPublisher - Publishing 5 event(s)
2023-01-06 10:06:07,500 [166] DEBUG Amazon.AWSToolkit.Telemetry.Internal.TelemetryPublisher - Publishing 1 event(s)
2023-01-06 10:11:28,360 [151] DEBUG Amazon.AWSToolkit.Telemetry.Internal.TelemetryPublisher - Publishing 1 event(s)
And the output in the deploy tab
Creating Dotnet Publish Zip file...
MSBuild version 17.3.1+2badb37d1 for .NET
Determining projects to restore...
Restored C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.Json\XXXXX.Services.Sales.Json.csproj (in 395 ms).
Restored C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.Loggly\XXXXX.Services.Sales.Loggly.csproj (in 395 ms).
Restored C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.Data\XXXXX.Services.Sales.Data.csproj (in 395 ms).
Restored C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.Runtime.Caching\XXXXX.Services.Sales.Runtime.Caching.csproj (in 395 ms).
Restored C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.Core\XXXXX.Services.Sales.Core.csproj (in 395 ms).
Restored C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.MongoDb\XXXXX.Services.Sales.MongoDb.csproj (in 429 ms).
Restored C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales\XXXXX.Services.Sales.csproj (in 474 ms).
XXXXX.Services.Sales.Core -> C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.Core\bin\Release\netstandard2.0\XXXXX.Services.Sales.Core.dll
XXXXX.Services.Sales.Loggly -> C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.Loggly\bin\Release\netstandard2.0\XXXXX.Services.Sales.Loggly.dll
XXXXX.Services.Sales.MongoDb -> C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.MongoDb\bin\Release\netstandard2.0\XXXXX.Services.Sales.MongoDb.dll
XXXXX.Services.Sales.Data -> C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.Data\bin\Release\netstandard2.0\XXXXX.Services.Sales.Data.dll
XXXXX.Services.Sales.Json -> C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.Json\bin\Release\netstandard2.0\XXXXX.Services.Sales.Json.dll
XXXXX.Services.Sales.Runtime.Caching -> C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales.Runtime.Caching\bin\Release\netstandard2.0\XXXXX.Services.Sales.Runtime.Caching.dll
XXXXX.Services.Sales -> C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales\bin\Release\net6.0\XXXXX.Services.Sales.dll
XXXXX.Services.Sales -> C:\Users\alexs\AppData\Local\Temp\121e38dd-6038-4c04-a45f-4764d9fc09ee\
Uploading to S3. (Bucket: elasticbeanstalk-eu-west-1-XXXXX Key: XXXXX.ServicesSales/AWSDeploymentArchive_XXXXX.ServicesSales_v-XXXXX.zip Size: 6151000 bytes)
... Progress: 10%
... Progress: 20%
... Progress: 31%
... Progress: 32%
... Progress: 34%
... Progress: 38%
... Progress: 46%
... Progress: 53%
... Progress: 57%
... Progress: 64%
... Progress: 69%
... Progress: 79%
... Progress: 88%
... Progress: 96%
Creating new application version: v-XXXXX
Getting latest environment event date before update
Updating environment XXXXX-sales-uat-4 to new application version v-XXXXX
Waiting for environment update to complete
06/01/2023 09:55:04    INFO    Environment update is starting.
06/01/2023 09:55:11    INFO    Updating environment XXXXX-sales-uat-4's configuration settings.
06/01/2023 09:55:46    INFO    Deploying new version to instance(s).
06/01/2023 09:55:47    INFO    Batch 1: Starting application deployment on instance(s) [i-XXXXX,i-XXXXX].
06/01/2023 09:56:09    INFO    Batch 1: Starting application deployment command execution.
06/01/2023 09:56:09    INFO    Environment health has transitioned from Ok to Info. Application update in progress (running for 12 seconds).
06/01/2023 09:56:11    INFO    Instance deployment found a runtime-dependent .NET Core application in your source bundle.
06/01/2023 09:56:13    INFO    Instance deployment completed successfully.
06/01/2023 09:56:14    INFO    Batch 1: Completed application deployment command execution.
06/01/2023 09:56:14    INFO    Command execution completed on 2 of 5 instances in environment.
06/01/2023 09:56:14    INFO    Batch 1: Registering instance(s) with the load balancer and waiting for them to be healthy.
06/01/2023 09:57:09    WARN    Environment health has transitioned from Info to Degraded. ELB processes are not healthy on 2 out of 5 instances. Application update in progress on 2 instances. 0 out of 5 instances completed (running for 62 seconds). ELB health is failing or not available for 2 out of 5 instances.
06/01/2023 10:10:16    ERROR    Instance id(s) 'i-XXXXX,i-XXXXX' did not pass health check after command execution. Aborting the operation.
06/01/2023 10:10:16    ERROR    Failed to deploy application.
06/01/2023 10:10:16    ERROR    During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version.
06/01/2023 10:11:04    INFO    The environment was reverted to the previous configuration setting.
XXXXX-sales-uat-4 could not be published as ASP.NET Core App to Existing AWS Elastic Beanstalk Environment: Failed to update the Elastic Beanstalk environment
XXXXX.Services.Sales failed to publish to AWS.

Logs from legacy deploy
2023-01-06 10:19:01,432 [1] INFO  Amazon.AwsToolkit.VsSdk.Common.VSWebProjectInfo - EnvDTEProject.FullName lookup yielded 'C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales\XXXXX.Services.Sales.csproj'
2023-01-06 10:19:01,483 [1] INFO  Amazon.AWSToolkit.S3FileFetcher - Null/empty hosted files location override
2023-01-06 10:19:01,483 [1] INFO  Amazon.AWSToolkit.S3FileFetcher - Loading hosted file 'CloudFormationTemplates/TemplatesManifest.xml' from local path 'C:\Users\alexs\AppData\Local/AWSToolkit/downloadedfiles/CloudFormationTemplates/TemplatesManifest.xml'
2023-01-06 10:20:00,798 [216] INFO  Amazon.AWSToolkit.VisualStudio.AWSToolkitPackage - Publishing 'XXXXX.Services.Sales' to Amazon Web Services
2023-01-06 10:20:15,230 [226] INFO  Amazon.AWSToolkit.ElasticBeanstalk.Commands.BaseBeanstalkDeployCommand - Publish to AWS Elastic Beanstalk environment 'XXXXX-sales-uat-4' completed successfully
2023-01-06 10:21:29,734 [126] DEBUG Amazon.AWSToolkit.Telemetry.Internal.TelemetryPublisher - Publishing 3 event(s)

There's not really much useful info in the logs from what I can see.  The output doesn't appear to include the command used to the invoke the deploy tool.
I'll try the command line directly asap.  Do both legacy and new versions use the same command line?
I'd highlight again that the deploy artefacts in the packages produced are VERY different.  I can raise a support ticket in AWS if it helps?  I'd be willing to share the artefacts there but not on here

Hi @alexsaare - I've created https://github.com/aws/aws-dotnet-deploy/issues/749 over on the AWS Deploy Tool for .NET CLI repository. The CLI handles the packaging for Beanstalk and powers the experience in Visual Studio, so any change we'll have to make will likely originate in that repository.
We'll review the packaging differences and how we're handling the health checks. If you are able to route a ticket through support to us, the correct location internally is "AWS SDK for .NET" within the "SDKs and Tools" team.

Thanks @ashovlin.  I created a support case<PHONE_NUMBER>1 and attached both versions of the deploy package.  I had to re-zip the new version using 7Zip to get it under 5MB so I could attach it to the case.

Thanks, just heard from the support engineer internally who is routing the case to our queue.

Just thought I'd add that in the output console the legacy deploy includes the following
dotnet publish "C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales" --output
"C:\Dev\XXXXX\XXXXX\XXXXX.services.sales\XXXXX.Services.Sales\bin\Release\net6.0\publish" --configuration "Release" --framework "net6.0"  --runtime linux-x64 --self-contained false
(Company redacted)

@alexsaare I'm struggling to reproduce the issue. Would you mind running the following PowerShell command for each the environment that was created with the legacy wizard and the new wizard? You will need to update the region, profile, beanstalk application name and beanstalk environment name that you have. It will print out all of the Beanstalk option settings so we can compare what is different about the 2 different environemnts.
# If you already have the module installed this step can be removed.
Install-Module -Name AWS.Tools.ElasticBeanstalk -Force

$settings = (Get-EBConfigurationSetting -Region "us-west-2" -ProfileName "default" -ApplicationName "<beanstalk-app-name>" -EnvironmentName "<beanstalk-env-name>").OptionSettings

$settings | Where-Object {$_.Value -ne $null} |  Select-Object {$_.Namespace, $_.OptionName, $_.Value}

Hi @normj, thanks for taking the time to look into this.
Apologies if I wasn't clear or I've misunderstood something here.
No environment has been created using the new wizard.
I only have an existing environments which were created via the aws console.  Deploying to these environments works via the legacy wizard however, when using the new wizard, it fails.  Looking at the assets created by the 2 different wizards they are very different (see support case created).
I can give you the output of the powershell requested for a environment that works with the legacy wizard but I don't have any environment that was created or works with the new wizard (that's the problem!)
Does that help clarify the issue?  Do you still need the powershell output?

@alexsaare that does help and I was misunderstanding the situation. If you wouldn't mind running the PS script on the existing environment that would be appreciated.

thanks @normj
Output below - company/account info redacted - if you need anything I've redacted I can add it to the support case, just let me know
$.Namespace, $.OptionName, $_.Value
{aws:autoscaling:asg, Availability Zones, Any}
{aws:autoscaling:asg, Cooldown, 360}
{aws:autoscaling:asg, EnableCapacityRebalancing, false}
{aws:autoscaling:asg, MaxSize, 5}
{aws:autoscaling:asg, MinSize, 5}
{aws:autoscaling:launchconfiguration, DisableIMDSv1, false}
{aws:autoscaling:launchconfiguration, EC2KeyName, test}
{aws:autoscaling:launchconfiguration, IamInstanceProfile, XXXX}
{aws:autoscaling:launchconfiguration, ImageId, ami-XXXX}
{aws:autoscaling:launchconfiguration, InstanceType, t3a.small}
{aws:autoscaling:launchconfiguration, MonitoringInterval, 5 minute}
{aws:autoscaling:launchconfiguration, SSHSourceRestriction, tcp,22,22,<IP_ADDRESS>/0}
{aws:autoscaling:launchconfiguration, SecurityGroups, sg-XXXX,sg-XXXX,sg-XXXX}
{aws:autoscaling:trigger, BreachDuration, 5}
{aws:autoscaling:trigger, EvaluationPeriods, 1}
{aws:autoscaling:trigger, LowerBreachScaleIncrement, -1}
{aws:autoscaling:trigger, LowerThreshold, 2000000}
{aws:autoscaling:trigger, MeasureName, NetworkOut}
{aws:autoscaling:trigger, Period, 5}
{aws:autoscaling:trigger, Statistic, Average}
{aws:autoscaling:trigger, Unit, Bytes}
{aws:autoscaling:trigger, UpperBreachScaleIncrement, 1}
{aws:autoscaling:trigger, UpperThreshold, 6000000}
{aws:autoscaling:updatepolicy:rollingupdate, MaxBatchSize, 1}
{aws:autoscaling:updatepolicy:rollingupdate, MinInstancesInService, 1}
{aws:autoscaling:updatepolicy:rollingupdate, RollingUpdateEnabled, true}
{aws:autoscaling:updatepolicy:rollingupdate, RollingUpdateType, Health}
{aws:autoscaling:updatepolicy:rollingupdate, Timeout, PT30M}
{aws:cloudformation:template:parameter, AppSource, https://elasticbeanstalk-platform-assets-eu-west-1.s3.eu-west-1.amazonaws.com/stalks/eb_dotnetcore_amazon_linux_2_1.0.1642.0_20230127021049/sampleapp/EBSampleApp-DotNetCore.zip}
{aws:cloudformation:template:parameter, EnvironmentVariables, ASPNETCORE_ENVIRONMENT=uat}
{aws:cloudformation:template:parameter, HooksPkgUrl, https://elasticbeanstalk-platform-assets-eu-west-1.s3.eu-west-1.amazonaws.com/stalks/eb_dotnetcore_amazon_linux_2_1.0.1642.0_20230127021049/lib/hooks.tar.gz}
{aws:cloudformation:template:parameter, InstancePort, 80}
{aws:cloudformation:template:parameter, InstanceTypeFamily, t3a}
{aws:ec2:instances, EnableSpot, false}
{aws:ec2:instances, InstanceTypes, t3a.small}
{aws:ec2:instances, SpotFleetOnDemandAboveBasePercentage, 70}
{aws:ec2:instances, SpotFleetOnDemandBase, 0}
{aws:ec2:instances, SupportedArchitectures, x86_64}
{aws:ec2:vpc, AssociatePublicIpAddress, false}
{aws:ec2:vpc, ELBScheme, public}
{aws:ec2:vpc, ELBSubnets, subnet-XXXX,subnet-XXXX,subnet-XXXX}
{aws:ec2:vpc, Subnets, subnet-XXXX,subnet-XXXX,subnet-XXXX}
{aws:ec2:vpc, VPCId, vpc-XXXX}
{aws:elasticbeanstalk:application:environment, ASPNETCORE_ENVIRONMENT, uat}
{aws:elasticbeanstalk:cloudwatch:logs, DeleteOnTerminate, false}
{aws:elasticbeanstalk:cloudwatch:logs, RetentionInDays, 7}
{aws:elasticbeanstalk:cloudwatch:logs, StreamLogs, false}
{aws:elasticbeanstalk:cloudwatch:logs:health, DeleteOnTerminate, false}
{aws:elasticbeanstalk:cloudwatch:logs:health, HealthStreamingEnabled, false}
{aws:elasticbeanstalk:cloudwatch:logs:health, RetentionInDays, 7}
{aws:elasticbeanstalk:command, BatchSize, 50}
{aws:elasticbeanstalk:command, BatchSizeType, Percentage}
{aws:elasticbeanstalk:command, DeploymentPolicy, Rolling}
{aws:elasticbeanstalk:command, IgnoreHealthCheck, false}
{aws:elasticbeanstalk:command, Timeout, 600}
{aws:elasticbeanstalk:control, DefaultSSHPort, 22}
{aws:elasticbeanstalk:control, LaunchTimeout, 0}
{aws:elasticbeanstalk:control, LaunchType, Migration}
{aws:elasticbeanstalk:control, RollbackLaunchOnFailure, false}
{aws:elasticbeanstalk:environment, EnvironmentType, LoadBalanced}
{aws:elasticbeanstalk:environment, LoadBalancerIsShared, false}
{aws:elasticbeanstalk:environment, LoadBalancerType, application}
{aws:elasticbeanstalk:environment, ServiceRole, arn:aws:iam::XXXX:role/aws-elasticbeanstalk-service-role}
{aws:elasticbeanstalk:environment:process:default, DeregistrationDelay, 20}
{aws:elasticbeanstalk:environment:process:default, HealthCheckInterval, 15}
{aws:elasticbeanstalk:environment:process:default, HealthCheckPath, /aws-health-check}
{aws:elasticbeanstalk:environment:process:default, HealthCheckTimeout, 5}
{aws:elasticbeanstalk:environment:process:default, HealthyThresholdCount, 3}
{aws:elasticbeanstalk:environment:process:default, MatcherHTTPCode, 200}
{aws:elasticbeanstalk:environment:process:default, Port, 80}
{aws:elasticbeanstalk:environment:process:default, Protocol, HTTP}
{aws:elasticbeanstalk:environment:process:default, StickinessEnabled, false}
{aws:elasticbeanstalk:environment:process:default, StickinessLBCookieDuration, 86400}
{aws:elasticbeanstalk:environment:process:default, StickinessType, lb_cookie}
{aws:elasticbeanstalk:environment:process:default, UnhealthyThresholdCount, 5}
{aws:elasticbeanstalk:environment:proxy, ProxyServer, none}
{aws:elasticbeanstalk:healthreporting:system, ConfigDocument, {"Version":1,"CloudWatchMetrics":{"Instance":{"RootFilesystemUtil":null,"CPUIrq":null,"LoadAverage5...
{aws:elasticbeanstalk:healthreporting:system, EnhancedHealthAuthEnabled, false}
{aws:elasticbeanstalk:healthreporting:system, HealthCheckSuccessThreshold, Ok}
{aws:elasticbeanstalk:healthreporting:system, SystemType, enhanced}
{aws:elasticbeanstalk:hostmanager, LogPublicationControl, false}
{aws:elasticbeanstalk:managedactions, ManagedActionsEnabled, true}
{aws:elasticbeanstalk:managedactions, PreferredStartTime, SUN:07:00}
{aws:elasticbeanstalk:managedactions, ServiceRoleForManagedUpdates, arn:aws:iam::XXXX:role/aws-elasticbeanstalk-service-role}
{aws:elasticbeanstalk:managedactions:platformupdate, InstanceRefreshEnabled, false}
{aws:elasticbeanstalk:managedactions:platformupdate, UpdateLevel, minor}
{aws:elasticbeanstalk:monitoring, Automatically Terminate Unhealthy Instances, true}
{aws:elasticbeanstalk:sns:topics, Notification Endpoint<EMAIL_ADDRESS>{aws:elasticbeanstalk:sns:topics, Notification Protocol, email}
{aws:elasticbeanstalk:sns:topics, Notification Topic ARN, arn:aws:sns:eu-west-1:XXXX:ElasticBeanstalkNotifications-Environment-XXXX-sales-uat-3}
{aws:elasticbeanstalk:xray, XRayEnabled, false}
{aws:elbv2:listener:443, DefaultProcess, default}
{aws:elbv2:listener:443, ListenerEnabled, true}
{aws:elbv2:listener:443, Protocol, HTTPS}
{aws:elbv2:listener:443, SSLCertificateArns, arn:aws:acm:eu-west-1:XXXX:certificate/XXXX}
{aws:elbv2:listener:443, SSLPolicy, ELBSecurityPolicy-TLS-1-2-Ext-2018-06}
{aws:elbv2:listener:default, DefaultProcess, default}
{aws:elbv2:listener:default, ListenerEnabled, false}
{aws:elbv2:listener:default, Protocol, HTTP}
{aws:elbv2:loadbalancer, AccessLogsS3Bucket, logs.ireland.XXXX}
{aws:elbv2:loadbalancer, AccessLogsS3Enabled, true}
{aws:elbv2:loadbalancer, AccessLogsS3Prefix, XXXX-sales-uat}
{aws:elbv2:loadbalancer, SecurityGroups, sg-XXXX}
{aws:rds:dbinstance, HasCoupledDatabase, false}

Thanks this helps. I created an environment from the console with rolling deployments with 5 instances and I was able to deploy from both the legacy wizard and the new wizard. I see some differences in our environments based your settings above. In particular I have enhanced health enabled and your does not. So it gives me more things to try.

Ran into this issue - I was using the Reverse Proxy set to 'none' to use Kestrel. In this case, I had to make sure that it was running on the correct port - I set ASPNETCORE_URLS to explicitly run it on port 5000 and that fixed it.
In case that helps.


[Feature Request] Collection media statistics

As discussed in :  #452
Add statistics to collection media with information on why it matches all the rules.

When clicking on a collection on the collections page, you're currently only able to view the media that's in it. Add a 'menu' at the top to switch between 'media' and 'statistics'. On the statistics page, there should be information about the collection (how many items it handled, when it was last ran, what items it removed).
On the media screen, there should be a switch to enable 'excluded' items. If enabled, show greyed out media items that would be part of the collection if they weren't excluded. Each media card also needs a button to open a (popup)window containing statistics on why it matches the rules of this collection.
So to cut this feature in pieces:

Add a statistics page to media cards that opens a popup(window) where you can see why an item matches each rule
Add a toggle on the media screen where you can toggle excluded items (greyed out)
Add a more global 'statistics' screen that houses collection information and logs


Am not able to manage the Qemu/KVM trough KVM-VDI

Am not able to start the VDI from the dashboard and getting the frequent error getting from the apache2
[Fri Jun 30 12:10:13.732160 2017] [:error] [pid 6262] [client <IP_ADDRESS>:59371] Executing: sudo virsh list --all |tail -n +3|head -n -1|awk '{print $2" "$3}', referer: http://<IP_ADDRESS>/kvm-vdi/dashboard.php

This is not error. This is just a debug message. There should be more information in log file when you are starting VM

Yes Thanks after long troubleshooting now its working now


Implement github token to work around rate limits

Fixes #196.

thanks for the quick review!  Not sure this justifies a 0.7.1.

@abiogenesis-now -- heads up on this one from a docs PoV.


THRIFT-5546: automate pypi publishing [ci skip]

When a pre-release is created on GitHub for the repo it will publish to the TestPyPI service, and if that pre-release is promoted to a release, it will publish to the PyPI (real) service.

Using the technique described at https://cwiki.apache.org/confluence/display/BUILDS/GitHub+Actions+status to use third party github actions in the build.
Apache Infra team added the CLOUDTRUTH_API_KEY secret to the apache/thrift repo.  Apache didn't have a way to help us manage our own deployment keys so I used a third party service to make it easier for us.
Here's a pre-release test build:
https://github.com/apache/thrift/actions/runs/2091974166
For context here's the project and parameters (without secret values shown) in CloudTruth so you can see what they are defined as for names to correspond with the workflow:

[X] Did you create an Apache Jira ticket?  (not required for trivial changes)
[X] If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
[X] Did you squash your changes to a single commit?  (not required, but preferred)
[X] Did you do your best to avoid breaking changes?  If one was needed, did you label the Jira ticket with "Breaking-Change"?
[X] If your change does not involve any code, include [ci skip] anywhere in the commit message to free up build resources.

This probably needs to change and put the pypi secrets into Apache's secret store directly so we can access them, instead of going through an intermediary.

WOuld love to see this implemented, as currently pypi only offers Thrift 0.16.0 (which has been released some months ago)

@jeking3 we're working on 0.18.1 but 0.18.0 is ready. No py changes in 0.18.1  so the choice is yours :-)

How can I help to make this possible? We would like to unblock thrift upgrades on our end

I think now there is a way to declare a Github Action trusted and avoid adding tokens anywhere. See this documentation https://docs.pypi.org/trusted-publishers/using-a-publisher/
Their example is using pypa/gh-action-pypi-publish@release/v1 which I am not sure would work correctly with our thrift repo because we have a package inside lib/py not the root directory
But I think we are not limited to use only this GitHub action

@jeking3
Hello, is there any progress on this issue?
We need a newer python thrift client which is great 0.16.


Errors on a blank database

I was trying to make a "hello world" for postgraphql but I got some strange errors on an empty database. Just running via app.use(postgraphql(url)); in a node server and browsing to the root, the browser displays:
{"errors":[{"message":"Mutation fields must be an object with field names as keys or a function which returns such an object."}]}
and the terminal running the express server also shows an error:
GET / 500 10.432 ms - -
Error: Connection terminated
    at .<anonymous> (/Users/lacker/graphql-hacks/postgraph/node_modules/postgraphql/node_modules/pg/lib/client.js:189:29)
    at g (events.js:286:16)
    at emitNone (events.js:86:13)
    at emit (events.js:185:7)
    at Socket.<anonymous> (/Users/lacker/graphql-hacks/postgraph/node_modules/postgraphql/node_modules/pg/lib/connection.js:66:10)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at TCP._handle.close [as _onclose] (net.js:492:12)

Am I doing something wrong here, or is this unsupported, or is this a bug?

This is interesting, yeah in an empty database there wouldn't be any mutations (or queries for that matter!) so GraphQL would throw an error. We should really provide a better error message in this case.
If you want a good example schema to play around with, check out the forum example which also has some simple seed data 👍

OK I had this mental model where I could alter the table over time and start with an empty database but now I see that is not how things are supposed to work and running postgraphql on an empty database is just not how it's supposed to go. I've probably been thinking in mongodb too much. Thanks for the pointer to the example schema

Hmm, I've never thought about it that way. You just gave me some good ideas, thanks 😊
Opened #129 as a tracking issue for a better development flow with PostGraphQL. What if we allowed you to run SQL queries in GraphiQL in development as you setup your schema?

It's getting off topic here but I have actually been trying to use PostGraphQL without writing any SQL, just writing JavaScript. I dunno if that's in scope for PostGraphQL as a project but IMO that would be appealing to the largest audience. So I was trying to see if you could connect some ORM like sequelize to configure the tables (working for me now) and then have hooks somehow to run application logic in the Node server where PostGraphQL is mounted (I still dunno if that's possible). I really like PostGraphQL's strategy of having the GraphQL API closely coupled to the database schema - that philosophy is very much how Facebook operates internally - but I think you also need to be able to run validation / other logic in a normal application server environment like node.js rather than in postgres.

You might want to read this issue https://github.com/calebmer/postgraphql/issues/87 :blush:
Tight coupling with the database is first and foremost a quality constraint. I wanted to create something actually useful to people first. My goal is to get PostGraphQL to the point where it can support any backend (MySQL, MongoDB, etc.) maybe with a bit of JavaScript code, and any frontend (GraphQL, REST, Falcor, etc.).
Of course the part where we diverge into more database backends and API frontends is far away, I want to focus on making Postgres + GraphQL as powerful as possible. But a great near term side effect of this is that we should be able to extend PostGraphQL with validation / other logic in JS like you mention hopefully pretty soon :wink:
If you want to follow development check out the next branch. I haven’t started thinking about what a good JS side API would look like (focusing on implementing the Postgres/GraphQL internals first). I’d love contributions in that area :blush:

Just a note, PostGraphQL is implementing a --watch flag (#166). So now you can just start up a PostGraphQL server from the CLI and add all the tables, columns, schemas, functions you want while PostGraphQL automatically restarts :+1:


Console icon in SQL Editor stays enabled in SQ

Description
Console icon in SQL Editor shows that it is still enabled if the tab is closed manually
Steps to reproduce

Enable console output in SQL Editor
Close the console tab

Expected: Console button is toggled off
Actual: Console button is still on

DBeaver Version
22.1.4
Operating System
Win 11

It's not a bug. Enabled state means that output on query execution will go to console view and console view tab will be opened. In other words, console view button state shows whether this feature is enabled, it's not about the tab opened/closed state.


how to I set it up with the Microsoft version?

I downloaded this plugin but I'm using the version from the Microsoft store, how do I configure it? I tried playing with the files but it didn't work

Did you modify the QuickLook.exe.config?

Can't modify QuickLook.exe.config whit Microsoft Store version.

Unsure why this issue is still open, unless there is a different workaround to this issue that isn't just using the non-MS store version?

@danielma156 Keep this open to prevent other users from opening the duplicate issue.


Create Contributors page

Overview (Required)

For great contributors, I want to create Contributors page.
It would be good to show many contributors in one page.
GridView is better than ListView?

Links

https://github.com/konifar/droidkaigi2016/blob/master/app/src/main/java/io/github/droidkaigi/confsched/activity/ContributorsActivity.java#L72

do you have a concreate design for this page?

@shiraji Yes, but it's only in my mind. I'll put the paper design here.

Thanks!

@shiraji

Column 3 grid. Grid is better than List to show many contributors in one page.
name TextView 14sp, lines="2". You can use @style/TextBody
avator ImageView 60dp.
Base margin 16dp. You can use @dimen/space_16dp

Is @shiraji going to take this ticket?

Sure but I might be too slow to complete this issue. You can help me out.
Here is what I think we need to do for this issue.
TODO

[ ] Create ContributorsRemoteDataSource sample
[ ] Create ContributorsLocalDataSource using Orma
[ ] Create ContributorsRepository having above 2 classes (check SessionsRepository)
[ ] Modify ContributorsViewModel to fetch contributors data
[ ] Add layout using GridView to ContributorsFragment
[ ] Add typo for later contributors!

Add typo for later contributors!

😄

@shiraji Oh I just want to clarify who is do this task, otherwise I would have made duplicate contribution!
I'd love to help you. What do you think is the best way to collaborate each other? Should I make PR to your forked repository?

Sure. I haven't done anything, yet, thou.

Here is the branch https://github.com/shiraji/conference-app-2017/tree/add_contributor_page

Or @konifar do you want us to send PR in each feature? Like sending PR of this commit
I think this issue will create a huge PR. If you don't want that I can send PR in the small amount of features.

Either is fine. But if you can, smaller PR (step by steps) sounds better.

Close for now?

@shiraji @srym @nshida Thank you so much!!


Fix the overlap of the profile icon with the theme changer icon

When we land on the blog page, the profile icon and the theme changer icon in the navbar are overlapping, and there is an issue with the main text. I want to resolve this.

navbar under reconstruction in another issue


Update makefile

Just a typo and other way to run make-brew (for ubuntu)

Cool. Can you add yourself to the CONTRIBUTORS file please

When I contribute with anything more valuable I'll do that =D- It's just a typo and a new command. I tried brew-common, but it didn't run on my SO

You will have a commit so I need you in the file. Hmm I updated the command, I must have missed some instructions somewhere.


Fix service check clarification

To reflect the changes made in https://github.com/DataDog/integrations-core/pull/8381

Merging with https://github.com/DataDog/integrations-core/pull/8401

Merging with https://github.com/DataDog/integrations-core/pull/8401


JS fixes

This cause Fastmate.js to error and stop working

Thanks for this! I really appreciate it


Lepton 2.5 radiometry

I would like to know how to get per pixel temperature. From what capture() function is returning, all the elements in the array are almost 30.000 all the time, irrespective of the temperature. Please tell me a way to get per pixel temperature. Thank you

Looks like this question was answered over on the google group: https://groups.google.com/forum/#!topic/flir-lepton/CDRYyaQlJJU

Yes, thank you


Truth maintenance documentation update

Once https://github.com/cerner/clara-examples/pull/12 is merged I suggest that the truth maintenance page link to that example.
I propose that we add a sentence to the end of the second to last paragraph so it would be like

"Truth maintenance is transitive. So if any rules used the PremierCustomer fact to infer further knowledge, that inference would also be retracted.  As a result we can treat rules that consistently use truth maintenance as purely declarative statements."

I believe that the Truth Maintenance page link should be moved from the "Advanced Topics" guide to the "Developer Guide" section.  The other subjects in "Advanced Topics" are something of niche subjects and it is very possible to write rules without understanding of them, but the idea that rules are logical relationships rather than procedural code is very much a foundational idea of rules engines in my opinion and in my experience it isn't obvious to many people learning about rules engines for the first time.

I believe that the Truth Maintenance page link should be moved from the "Advanced Topics" guide to the "Developer Guide" section. The other subjects in "Advanced Topics" are something of niche subjects and it is very possible to write rules without understanding of them, but the idea that rules are logical relationships rather than procedural code is very much a foundational idea of rules engines in my opinion and in my experience it isn't obvious to many people learning about rules engines for the first time.

I agree with you that TMS is a first-class subject in Clara and I wouldn't consider it "Advance Topics".
Interestingly, though in general, rules engines have not had TMS as the default.  The default seems to be unconditional insertion, which results in order-dependent rules and non-declarative rules.  I find that to be odd.  I'm glad that is not the case in Clara.
I only say this because you seemed to imply that TMS is a "foundational idea of rules engines".  I actually have seen a lot of other rules engines where people tend to not use TMS as much as you'd think.  It isn't always idiomatic and a lot of the reference literature on rules engines do not even bring it up.
+1 to Clara making it idiomatic and +1 to your suggestion of the TMS topic being a central point of documentation in Clara though.

On the distinction between Clara and other rules engine, good point.  That only increases the importance of making it clear in the documentation though. :)

+1 for these changes.

PR at https://github.com/cerner/clara-site/pull/15

Closing since I've merged the PR.


Add fcontext resource to manage file contexts.

Sorry, I couldn't get find to work. For me, find always returned no results if the regex did include any brackets.
I used a recursive call to restorecon for now, but this can easily be changed since it is in its own helper definition.

Made some nitpicking comments.
As a side note, could you send me a failing regex so I can play around with it?
Thanks!

Hi. Regarding find, this does not work for me (no restults): find /etc -regex "/etc(/.*)?" -regextype posix-basic, while the same regex without brackets works. For this reason and another (see below) I decided to use a recursive call. But I made it easily changeable...
Chef itself will use a recursive restorecon when adding files/templates/directories etc. See here: http://www.rubydoc.info/github/opscode/chef/frames/Chef/Util/Selinux. Look at the code of restore_security_context, they actually ALWAYS use it recursively. I am pretty sure this is a bug, but well.


[SBThread] lldb_private functions are not instrumented.

This was a mismerge from llvm.org. This commit gets rid of
an unneeded difference between github and llvm.org

@swift-ci test and merge

Thanks!


Update grid-view.blade.php

on click grid,  open image in modal for image, and download for file

Thank you @B-GH
Sounds reasonable to me. We will take a look soon.


i have already installed Xcode and android studio but flutter doctor can't red it !   and i cant access CocoaPods i need permission

[✓] Flutter (Channel unknown, 0.0.0-unknown, on Mac OS X 10.15.4 19E287
    darwin-x64, locale en-EG)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
[✗] Xcode - develop for iOS and macOS
    ✗ Xcode not installed; this is necessary for iOS development.
      Download at https://developer.apple.com/xcode/download/.
    ✗ CocoaPods installed but not working.
        You appear to have CocoaPods installed but it is not working.
        This can happen if the version of Ruby that CocoaPods was installed with
        is different from the one being used to invoke it.
        This can usually be fixed by re-installing CocoaPods.
      To re-install see
      https://guides.cocoapods.org/using/getting-started.html#installation for
      instructions.
[✓] Android Studio (version 4.1)
[!] Android Studio
    ✗ Android Studio not found at /Volumes/Esterna/Android Studio.app/Contents
[!] Connected device
    ! No devices available

! Doctor found issues in 3 categories.

Hi @MoSalah090  @zyuting
Please follow the official docs https://flutter.dev/docs/get-started/install/macos#install-xcode to configure Xcode and Cocoapods
Hope this helps
Thank you

Without additional information, we are unfortunately not sure how to resolve this issue.
We are therefore reluctantly going to close this bug for now.
Please don't hesitate to comment on the bug if you have any more information for us; we will reopen it right away!
Thanks for your contribution.
Could everyone who still has this problem please file a new issue with the exact description of what happens, logs, and the output of flutter doctor -v.
All system setups can be slightly different, so it's always better to open new issues and reference related issues.


How to execute?

Can someone please tell how to execute this?

hello, run roslaunch.
roslaunch pc2image VLP16_image.launch

The input topic is:
/velodyne_points
And the output topic is:
/depth_image

RLException: [VLP16_image.launch] is neither a launch file in package [pc2image] nor is [pc2image] a launch file name
The traceback for the exception was written to the log file
It throws this err

Did you clone the repository and build it?
cd ~/catkin_ws/src
git clone https://github.com/EPVelasco/pc2image.git
cd ..
catkin_make --only-pkg-with-deps pc2image

Yes, but it shows like this
ubuntu@ubuntu-VirtualBox:~/Desktop/pc2image$ cd ~/catkin_ws/src
bash: cd: /home/ubuntu/catkin_ws/src: No such file or directory
ubuntu@ubuntu-VirtualBox:~/Desktop/pc2image$ git clone https://github.com/EPVelasco/pc2image.git
Cloning into 'pc2image'...
remote: Enumerating objects: 72, done.
remote: Counting objects: 100% (72/72), done.
remote: Compressing objects: 100% (60/60), done.
remote: Total 72 (delta 29), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (72/72), 22.21 MiB | 686.00 KiB/s, done.
ubuntu@ubuntu-VirtualBox:~/Desktop/pc2image$ cd ..
ubuntu@ubuntu-VirtualBox:~/Desktop$ catkin_make --only-pkg-with-deps pc2image
Base path: /home/ubuntu/Desktop
The specified source space "/home/ubuntu/Desktop/src" does not exist
ubuntu@ubuntu-VirtualBox:~/Desktop$ catkin_make --only-pkg-with-deps pc2image

first you need to know how to use ROS and create your workspace. I suggest you consult the ROS documentation.


Wishlist for 2.0

Just started using this library and noticed a few shortcomings that I would love to get fixed before 2.0 is out as stable:

Remove RNVersion as parameter from validateReceipt* (just read this from react-native or simply drop support for old versions)
Proper error handling

Add code property to all errors

Let prepare throw an error when payments are disabled on iOS
Currently, this method is documented as 1) being a noop and 2) returning Promise<void>. The reality is that it returns the string "false" on iOS when payments aren't enabled.
I think it should return Promise<void> on iOS, but reject with an error (e.g. PAYMENTS_NOT_ENABLED) when payments aren't enabled.

Let validateReceiptIos reject on Android (e.g. WRONG_PLATFORM)

Let validateReceiptIos reject instead of returning false and printing to console

Fix validateReceiptAndroid (it always returns false for React Native >= 0.54)
Update documentation for getProduct and getSubscription to remove note about not making a difference with product/subscriptions (this have been fixed with a .filter() in the code)
Possibly rename prepare and endConnection to better match each other

e.g. initConnection/endConnection or prepare/teardown or something else entirely

Abstract away the different types on iOS/Android (e.g. inapp vs iap), just make sure that type is the same on both platforms.

Most of these changes are breaking changes which is why I would love to get them in before final 2.0.
I would be happy to submit pull requests for all of the items above 🌻 😎

@LinusU Thanks. We will make this as a todo list before submitting to 2.0. Will love your PR too.

Nice! Thanks!
Feel free to start with #235 ☺

#238 addresses the first point

(added point about price/localizedPrice to first post)

@dooboolab do you want to merge #235 and #238, and tag a new alpha? Would love to get those changes in ☺
Or do you want to accumulate all the changes in one big release? I personally prefer keeping incremental, but I'm fine either way 👍

@LinusU Merged in 2.0.0-alpha9. Thank you for the work!

Awesome! Thanks, really appreciate a release, it helps me keep up with the changes in my app ❤

Can i add a request?
In IOS, a way to check if a subscription is still active or not.
In Android you can check the autoRenewal flag, but on ios there is no way to do that.
Regards

@marcosmartinez7 I would recommend opening a separate issue for that. The idea with this issue was to track what breaking changes we wanted to get in. I'm guessing that adding that would be backwards compatible ☺


Raw inputs (again)

I don't think it's necessary to give a description of what this is because I've already done it about ten times, I attempted doing what @oldmud0 said but instead it removed the previous pull request.
I hope I didn't outdate anything.

there should at least be a link to the old PR so people can follow

Does this allow you to modify an input table, so any other inputs connected to the same output will see the modifications?
That seems really unintuitive.

@immibis: I'm afraid not because we would have to hook up a metatable to every table connected to those inputs, so we can see these modification events, but that's not a good idea, I'm not sure how it would impact on the ram usage, this was really meant to be used together with the DHDD.

@Starkkz You mean you're afraid that won't happen, or you're afraid that nothing stops it from happening?
Right now it seems like you could do that. I haven't tried this in-game though, only looked at the code changes.

@immibis I meant that it can be done, but if it's used together with the DHDD, it will break it's code because it's going to need to replace it's metatable object in order to add a new one with "hooks" that will trigger modifications on the array output of a entity.

@Starkkz I mean, suppose I have E2 A with this code:
@outputs Out:table
interval(1000)
Out["One", number] = 1
print(Out["Two", number])

it should print 0 every second (because the index wasn't set)
Now if we wire the Out output to the In input of E2 B:
@inputs In:table
@rawinputs In
In["Two", number] = 2

should the first E2 now print 2?

@immibis well, if you remove Out["One", number] = 1 from the first E2, it will.

@Starkkz why would that change anything

@Divran just edited my comment, I misread.

@Starkkz That is the sort of thing (but not the exact thing) I was asking about the possibility of before. Should it be possible?

@immibis I don't think I can answer that question, it is possible to make but it might eat up too much memory. Think of every single entity in game that has a wire output (array) linked to a metatable, and probably every metatable would be different than another because it might be necessary to define a upvalue that links to the entity that gives that wire output.

Tables (aka arrays) in Lua are already passed by reference. Currently, E2 copies arrays when you input them ( https://github.com/wiremod/wire/blob/master/lua/entities/gmod_wire_expression2/core/array.lua#L36-L41 ), while tables do not ( https://github.com/wiremod/wire/blob/master/lua/entities/gmod_wire_expression2/core/table.lua#L39-L44 tables only copy the DEFAULT table if an invalid table is given)
So if we were to make this, it would in fact make it faster. It wouldn't use more memory or anything. All we would need to do is erase lines 36-41 in array.lua

oh uh well I wasn't sure if merging this was a better option than simply
erasing the lines I mentioned above, but ok
On Thu, Nov 26, 2015 at 2:13 PM, Abigail<EMAIL_ADDRESS>wrote:

Merged #965 https://github.com/wiremod/wire/pull/965.
—
Reply to this email directly or view it on GitHub
https://github.com/wiremod/wire/pull/965#event-475573008.

...I don't know how I missed your comment.

I think it's confusing that table/array wires have reference semantics across wires - it seems far too easy to accidentally introduce 'spooky action at a distance'. Maybe wires should automatically copy tables unless the outputs are in some way tagged as raw?

Problem with that is if you make a huge table in E2 and it's copied every
time, you can lag the server
On Thu, Nov 26, 2015 at 5:51 PM, Abigail<EMAIL_ADDRESS>wrote:

I think it's confusing that table/array wires have reference semantics
across wires - it seems far too easy to accidentally introduce 'spooky
action at a distance'. Maybe wires should automatically copy tables unless
the outputs are in some way tagged as raw?
—
Reply to this email directly or view it on GitHub
https://github.com/wiremod/wire/pull/965#issuecomment-159958791.

@AbigailBuccaneer wait, you merged this before the OP even provided a description?

@TomyLobo I'd reviewed the same or similar code under different pull requests that were since closed - I understood what the code does and its use case. I just didn't realise that the "copy function" for tables didn't actually copy anything.

Now I think harder about it (I was, frankly, on a PR spree), there are many reasons this doesn't make sense. Whether wires should copy the table or not is more likely an attribute that should be decided by the output, not the input. And it doesn't make sense to have it as an E2-specific directive, when there are all sorts of other use cases (eg. the DHDD should output the raw table to everything)

The way I see it, we still only have 2 mutable data types for which copying makes any sense at all.
If you'd like to see those copied before outputting, just :clone() them in your E2 script when setting the output.

Well, let's say I'm using the DHDD's "Data [ARRAY]" input and "Memory [ARRAY]" input.
If I wire a E2's array input to that DHDD's Memory output, theorically I should be able to assign values like in any E2.
Memory[1, string] = "Blablablah"
Memory[2, normal] = 123456789
The problem is that this Memory output is not going to take any effect on those modifications because this output gets cloned and the cloned is sent as a input to the E2, basically I'm modifying a clone and it makes no sense to modify a clone of a dupeable memory, it simply won't duplicate.
Regular people will assume that works just normally, and when they find out it doesn't work they will just come complaining into the git like I'm doing right now, and that's because the input isn't raw then it won't be duplicating any memory.

that's because you were supposed to output the array and send it to the DHDD, just like literally every other thing in all of wiremod. Only people who are used to variables being passed by reference will be confused, and the majority of people aren't.
That said, I'm not against removing the copying code from E2s inputs/outputs permanently, instead of having a preprocessor command like this.

What? I'm used to OOP languages passing by reference by default. (Mostly because I don't use C++..)

ok. so?
On Mon, Nov 30, 2015 at 12:20 AM, oldmud0<EMAIL_ADDRESS>wrote:

What? I'm used to OOP languages passing by reference by default. (Mostly
because I don't use C++..)
—
Reply to this email directly or view it on GitHub
https://github.com/wiremod/wire/pull/965#issuecomment-160480625.

Java is completely pass-(pointer-by-)value and so is Lua and thus, last time I checked, E2.
The litmus test for "pass by reference" is this:
b = a
func(a)
assert(a!=b)

C++ can make that assertion pass. Java can't, unless you're being a smartass and put "NaN" into a, of course.
</nitpick>
computer science is hard :P