t2 ap isn't creating a network my computer can find

I've accomplished t2 ap success in the past on my machine, but this time it's not working.
I have:
➜  t2 ap on
INFO Looking for your Tessel...
INFO Connected to daniel.
INFO SSID: TesselRouter7
INFO Security: none
INFO IP Address: <IP_ADDRESS>
INFO State: Enabled

If I dterm in I can read:
root@daniel:/# cat etc/config/wireless

config wifi-device 'radio0'
	option type 'mac80211'
	option channel '11'
	option hwmode '11g'
	option path '10180000.wmac'
	option htmode 'HT20'
	option disabled '0'

config wifi-iface
	option device 'radio0'
	option network 'wifi'
	option mode 'sta'
	option ssid 'OSCON'
	option encryption 'none'
	option disabled '0'

config wifi-iface
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option encryption 'none'
	option disabled '0'
	option ssid 'TesselRouter7'

config wifi-iface

config wifi-iface

config wifi-iface

config wifi-iface

config wifi-iface

config wifi-iface

config wifi-iface

config wifi-iface

(that many-line print of config wifi-iface looks like a problem...)
I'm not familiar with how to debug this piece, can someone please help me?

if I delete the wireless file with the original configuration (found here), t2 ap works as expected.

Apparently, it works too well. If I run t2 ap --off, it tells me:
➜  ktest t2 ap --off
INFO Looking for your Tessel...
INFO Connected to yayLookItsATessel.
INFO Access Point successfully disabled.

as expected. But my laptop still sees it broadcasting.
Dterm'd in, this is what it looks like when I disable the ap:
config wifi-device 'radio0'
	option type 'mac80211'
	option channel '11'
	option hwmode '11g'
	option path '10180000.wmac'
	option htmode 'HT20'
	option disabled '0'

config wifi-iface
	option device 'radio0'
	option network 'wifi'
	option mode 'sta'
	option disabled '1'

config wifi-iface
	option device 'radio0'
	option network 'lan'
	option mode 'ap'
	option ssid 'Tessel'
	option encryption 'none'
	option disabled '1'

config wifi-iface

(note the new config wifi-iface, though I'm not sure if it was created when I disabled or when I turned the access point on originally)

Here are some reproducible things:

Inside Tessel, if you delete everything in etc/config/wireless and replace it with the default, if you run t2 ap -n <name> you can create an access point discoverable by your computer
Following the same steps, you will also have a new config wifi-iface tacked onto the bottom of the file

It looks like there are issues when both Wifi and AP are enabled. For example, if I enable Wifi and then try to disable AP, I get an error:
➜  ktest t2 ap --off
INFO Looking for your Tessel...
INFO Connected to yayLookItsATessel.
ERR! Error: udhcpc: sendto: Network is down

Based on this analysis, there appear to be two issues:

That extra config line consistently appears when you set up your first AP from a fresh wireless configuration. This doesn't appear to cause an issue with the access point itself, but might be a problem (per https://github.com/tessel/t2-cli/issues/758)
There is some interference going on between Wifi and AP, looks like AP works best when Wifi is disabled.


Fix mem2reg error due to multi block mem2reg with store_borrows

@guaranteed stored values will never be added to a phi in mem2reg because any uses of store borrowed locations have to be accessed via the store borrow return address and since we ban address phis altogether we will never have input sil which necessitates this.
But, the DJ-edges based algorithm for inserting phi blocks in mem2reg can insert unnecessary phis which are removed later.
Ensure fixPhiPredBlock handles both owned and guaranteed stored values correctly for this reason.

@swift-ci test

Incidentally, do these tests fail without this patch?  I tried recent main, release/5.9, and release/5.8.  Or is # 65345 needed to see them fail?

@nate-chandler It gets exposed as an assert with  #65345. Without #65345 there is https://github.com/apple/swift/blob/1c3667b52aa7888f7e2cc253b725a7ed055e4ef2/lib/SILOptimizer/Transforms/SILMem2Reg.cpp#L1242 where LiveValues::forOwned is being called during creating even for @guaranteed stored values.

Yeah, https://github.com/apple/swift/blob/1c3667b52aa7888f7e2cc253b725a7ed055e4ef2/lib/SILOptimizer/Transforms/SILMem2Reg.cpp#L1242 needs this fix.  Just asking about these test cases--looks like we get the same output with or without the fix.

@nate-chandler  Yeah, I added this as a separate PR from #65345, because I thought the explanation deserved a new PR, but I guess it makes it unclear in a different way.

Thanks for the explanation!


Trigger build for Branch, Commit

Currently the only way to programmatically trigger a build is by re-starting an existing build with a new build number via the API.  With 1.0 we now have the ability to fetch command branch data from version control, which means we can trigger a new build without any pre-existing data.
I propose adding the following endpoints:
POST /api/repos/{namespace}/{name}/builds
POST /api/repos/{namespace}/{name}/builds?branch={branch}
POST /api/repos/{namespace}/{name}/builds?branch={branch}&commit={commit}

Note that if no branch is provided, the default branch (master) is used.

Will there be a UI conterpart Build button (like Restart button). You'll need a way to specify / select branch as well as an optional commit.

For this first iteration it will be available via the API and the CLI.  There is a separate effort to add a branch summary screen to the user interface, at which point we will add a button to launch a build for a particular branch. I do not have a timeline for the UI, which is a separate team. Once I have more details I can post an update to this thread.

@bradrydzewski  does this feature already enabled on v1.1.0? I saw the PR merged on this version but when I send api with builds nothing happened,

@iamjarvo nope it is not part of any release yet. You would have to use master / latest. Also just a side note that you can often check on features and corresponding versions here https://github.com/drone/drone/blob/master/CHANGELOG.md 🙂

thanks @bradrydzewski
Just wanted u know its the best ci/cd tool I have ever used!

@bradrydzewski , when is going to be support for params for /builds
		for key, value := range r.URL.Query() {
			if key == "access_token" {
				continue
			}
			if key == "target" {
				continue
			}
			if len(value) == 0 {
				continue
			}
			hook.Params[key] = value[0]
		}

I saw in promote its enable

I couldn't find an active GitHub repo for the docs, but these endpoints are missing from the official docs:
https://readme.drone.io/api/endpoints/builds/


Creating custom dataset results in error while calling the map() function

calling map() of datasets library results into an error while defining a Custom dataset.
Reproducible example:
import datasets
class MyDataset(datasets.Dataset):

    def __init__(self, sentences):
        "Initialization"
        self.samples = sentences

    def __len__(self):
        "Denotes the total number of samples"
        return len(self.samples)

    def __getitem__(self, index):
        "Generates one sample of data"
        # Select sample
        # Load data and get label
        samples = self.samples[index]

        return samples

def preprocess_function_train(examples):
        inputs = examples
        labels = [example+tokenizer.eos_token for example in examples ]
        inputs = tokenizer(inputs, max_length=30, padding=True, truncation=True)
        labels = tokenizer(labels, max_length=30, padding=True, truncation=True)
        model_inputs = inputs
        model_inputs["labels"] = labels["input_ids"]
        print("about to return")
        return model_inputs

##train["sentence"] is dataframe column
train_dataset = MyDataset(train['sentence'].values.tolist())
train_dataset = train_dataset.map(
            preprocess_function,
            batched = True,
            batch_size=32
        )

Stack trace of error:
Traceback (most recent call last):
  File "dir/train_generate.py", line 362, in <module>
    main()
  File "dir/train_generate.py", line 245, in main
    train_dataset = train_dataset.map(
  File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 1244, in map
    return self._map_single(
  File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 149, in wrapper
    unformatted_columns = set(self.column_names) - set(self._format_columns or [])
  File "anaconda_dir/anaconda3/envs/env1/lib/python3.8/site-packages/datasets/arrow_dataset.py", line 526, in column_names
    return self._data.column_names
AttributeError: 'MyDataset' object has no attribute '_data'

Hi,
the _data attribute is missing due to MyDataset.__init__ not calling the parent __init__. However, I don't think it's a good idea to subclass the datasets.Dataset class (e.g. it's kind of dangerous to override datasets.Dataset.__getitem__). Instead, it's better to follow the "association over inheritance" approach with a simple wrapper class that delegates calls to a wrapped Dataset (map, etc.). Btw, the library offers the datasets.Dataset.from_pandas class method to directly create a datasets.Dataset from the dataframe.


FWDTI nonlinear start

@RafaelNH I think this is the jacobian and hessian for the nonlinear free water dti fitting. The png files are the matricies and FW-DTI symbolic is how I generated them. I also started a rough draft fitness function that calculates and returns everything in nls_fitness. Hope this helps and I'll try to keep working on the fitness function and make sure what I found is valid.

Hi @etpeterson! Sorry - only now I had the opportunity to give a look to what you did. Very cool!
Now we have to write this in the form similar to the Jacobian function Dipy's dti (see dipy/reconst/dti.py line 1465), and incorporate it to the non-linear fit algorithm. A first version of the non-linear fit is already implemented in Dipy's fwdti pull request. We only need to complete the lines 555-564 of fwdti.py. At the moment, I am solving the non-linear problem using the non-linear least square optimization function of the Scipy optimization package. However, if we want to exactly implement the model in Hoay et al., 2014 we will have to implement their adapted version of the Newton convergence algorithm. Any thoughts on this?
PS: I am also wondering if we can find a matrix form of the Jacobian and the Hessian for the fwdti model similar to what was found for the DTI model (Koay et al. 2006). Did you already tried to do the maths for that?

Nice work and no problem! I got pulled away as well so I haven't done anything with this since I posted it. I'd say let's do the Scipy method at first and the Hoay method later. I say that because we don't need the Jacobian for the Scipy method so it's a decent way to test if it's valid or not. Plus I think it'll be easier and faster to implement.
I'll get back to you on the Koay paper but I'm assuming we could find the Jacobian for that as well but it's been a long time since I looked at that in detail.

It's my turn to be sorry @RafaelNH. I got pulled over to some other work but for now at least that's let up.
Regarding Koay 2006, I don't see why we couldn't do that but I'm a little suspicious as to why they didn't do that already. Koay is the 2nd author so I'm thinking if it was possible or useful they would have already done it. Maybe trying to do that would be when we implement the custom solver as well?


select Item listener in add fragment

Add the city to the DB
ask the user is the city should be main location.

this feature was successfully implemented.


GO:0008108 & GO:0070569 (uridylyltransferase related terms) synonyms

GO:0008108 UDP-glucose:hexose-1-phosphate uridylyltransferase activity
has several synonyms, including
uridyltransferase activity | exact
uridyl transferase activity | broad
I'm thinking these should both be "broad"?
Alternatively, the parent GO:0070569 uridylyltransferase activity has no synonyms- this is where I expected to see at least 'uridylyl transferase activity'.
Thanks

Makes sense to me.

@suzialeksander @ukemi
I will make both synonyms above broad synonyms for GO:0008108  and also add them as exact synonyms to the parent term, GO:0070569.
On a side note, we had an interesting discussion yesterday with Larry H. about synonyms in GO.  This is a nice example of how GO's classification of synonyms is very important for text mining.

@suzialeksander - we will need a GOC xref for you, e.g. GOC:sal
Let me know what you would like to use and I'll add it to the users.yaml file.


The gitter (chat) link is dead

The link points to regl-project/regl, but the gitter is at mikolalysenko/regl.

Looks like this has been fixed.


I am receiving './twa: line 212: ${xfo,,}: bad substitution' on OS X.

nice little script BTW!

Thank you!
As for the error, check out #1: OS X ships an amazingly ancient version of bash. You should use Homebrew or another package manager to install a modern version; keeping twa flexible while supporting older versions would become a hassle quickly.


[Bug]

Checklist

[X] I am using LTS version of Node.js.
[X] I am using the latest v2 version of VuePress and VuePress official plugins.
[X] I am using the latest version of vuepress-theme-plume and all plugins in this repo.
[X] I followed the docs and I double checked my configuration.

Package name
vuepress-theme-plume
Which operating system are you using?

[ ] macOS
[X] Windows
[ ] Linux

Describe the bug
Initializing and preparing dataError: what the crap: date
at C:\Project\note\node_modules\json2yaml\index.js:84:21
at Array.forEach ()
at Object.object (C:\Project\note\node_modules\json2yaml\index.js:69:26)
at Object.stringify (C:\Project\note\node_modules\json2yaml\index.js:99:42)
at generator (file:///C:/Project/note/node_modules/vuepress-theme-plume/lib/node/index.js:1223:56)
Error: what the crap: date
at C:\Project\note\node_modules\json2yaml\index.js:84:21
at Array.forEach ()
at Object.object (C:\Project\note\node_modules\json2yaml\index.js:69:26)
at Object.stringify (C:\Project\note\node_modules\json2yaml\index.js:99:42)
at generator (file:///C:/Project/note/node_modules/vuepress-theme-plume/lib/node/index.js:1223:56)
Additional context
No response

createTime: 2024/07/18 18:03:50
都是这种格式，如何找到是那个文件？


Fix Typo in References

Thanks for working on this. But this file is generated from NOTES.md, so NOTES.md should be fixed.
https://github.com/rocker-org/devcontainer-features/blob/02948cd1988ff82282a2dd2008e0d0add1c9749f/src/pandoc/NOTES.md?plain=1#L22

Sounds Good. I went ahead and checked all the src/*/NOTES.md files.


Leshan demo server is not working

Hello,
It seems that https://leshan.eclipseprojects.io is not working.
best regards
Tomasz

Thx for reporting this :pray:.
The Web UI seemed to work but when I tried to register on client on the sandbox I didn't get any answer from the LWM2M server.
I looked at the log and see nothing special...
I restart the leshan-server service and now it sounds to work. We will see if this re-happens soon ? :grimacing:

Now it seems to be OK  :+1:
Thank you.
T.


Mark Cassandra 3.11 Persistence as Deprecated

Based on discussion #2242, document the Cassandra 3.11 persistence module as being deprecated and scheduled for removal in Stargate v3.

Update documentation

https://github.com/stargate/stargate/blob/main/README.md
https://github.com/stargate/stargate/blob/main/persistence-cassandra-3.11/README.md
https://github.com/stargate/stargate/blob/main/docker-compose/cassandra-3.11/README.md
https://github.com/stargate/docker-images/blob/master/README.md
https://hub.docker.com/r/stargateio/stargate-3_11
https://hub.docker.com/r/stargateio/coordinator-3_11
(separate ticket for docs site: https://github.com/stargate/docs/issues/235)

Code warnings

add startup message to persistence-cassandra-3.11 module at WARN level

Docker hub entries have been updated


[💡FEATURE REQUEST]: Improve error message when command fails

Is your feature request related to a problem? Please describe.
If I'm running roadrunner on a none exist php script the error message is very cryptical:

Error Message
2021-10-09T11:19:24.494+0200	ERROR	container/poller.go:16	vertex got an error	{"id": "http.Plugin", "error": "http_plugin_serve: WorkerAllocate:\n\tserver_plugin_new_worker_pool:\n\tstatic_pool_initialize:\n\tstatic_pool_allocate_workers:\n\tfactory_spawn_worker_with_timeout: fetch_pid: CRC mismatch; signal: killed; process_wait: signal: killed"}
github.com/spiral/endure/pkg/container.(*Endure).poll.func1
	github.com/spiral/endure@v1.0.4/pkg/container/poller.go:16
error occurred: http_plugin_serve: WorkerAllocate:
	server_plugin_new_worker_pool:
	static_pool_initialize:
	static_pool_allocate_workers:
	factory_spawn_worker_with_timeout: fetch_pid: CRC mismatch; signal: killed; process_wait: signal: killed, plugin: http.Plugin
handle_serve_command: WorkerAllocate:
	http_plugin_serve:
	server_plugin_new_worker_pool:
	static_pool_initialize:
	static_pool_allocate_workers:
	factory_spawn_worker_with_timeout: fetch_pid: CRC mismatch; signal: killed; process_wait: signal: killed

Example:
server:
    command: "php public/none-exist-script.php"

Describe the solution you'd like
It would be nice to get a nicer error message that example the target script does not exist.
Example php outputs:

Could not open input file: public/none-exist-script.php

Exit code: 1
Nice to have would be that a die('test'); or any other exit with output is also shown. There the same CRC mismatch is shown.
Describe alternatives you've considered
..
Additional context
Roadrunner: v2.4.2

Ok guys :) The time has come 😸
Forget about CRC validation error... Starting from the 2.10.6 RR will show a user-friendly message validation failed on the message sent to STDOUT, RR docs: https://roadrunner.dev/docs/known-issues-stdout-crc/2.x/en, invalid message: ... (RR will display an invalid message in Linux/Mac in full)
This message clearly says that smt went wrong with the STDOUT. Also, we will include a link to our docs page in the error: https://roadrunner.dev/docs/known-issues-stdout-crc/2.x/en.
You may add your cases to this page, so other users will likely find their points here.

@alexander-schranz

Nice +1 would it be possible to add the exit code o the error message if there was one? Example if doing die(255); to show 255 in the error message.

You may see the exit code in the debug mode (I have added a die(255); to the test worker's code):

@alexander-schranz

Nice to have would be that a die('test'); or any other exit with output is also shown. There the same CRC mismatch is shown.

In the latest version (2.10.6), if you add die('test'); to the worker's code, you'll see the messages in the info logs:

while ($req = $psr7->waitRequest()) {
    try {
        $resp = new \Nyholm\Psr7\Response();
        $resp->getBody()->write("hello world");

        die('test'); // <--- BOOM

        $psr7->respond($resp);
    } catch (\Throwable $e) {
        $psr7->getWorker()->error((string)$e);
    }
}

Thanks for the collaboration, guys 🤝 . Since everything in this ticket is resolved, I will close it as done. It's not locked, so, feel free to reopen it if I missed something.


[Bounty] Add Documentation

Bounty: Add Project Documentation
Reward: 50 USD
Description:
We are looking for contributors to help us add comprehensive documentation for our Flask-based backend project. The documentation should cover project setup, structure, key APIs, and usage instructions.
Scope of Work:

Add Project Documentation:

Create or update the README.md file to include:

Overview of the project (purpose, technology stack).
Steps to set up the backend locally (including installation, virtual environment setup, dependencies, and running the development server).
Explanation of the project structure and key directories (e.g., app, routes, models, config).
Instructions on how to run tests, linting, and how to deploy the backend.
Guidelines for contributing to the project.

API Documentation (Optional but Preferred):

Add brief documentation for key API endpoints, including URLs, methods, and expected request/response formats.
If using Swagger or Postman collections, include instructions on how to use those tools for testing the APIs.

Deliverables:

A well-structured README.md that covers project setup, structure, and usage.
(Optional) API documentation in the form of a Swagger file, Postman collection, or in the README itself.

Requirements:

Experience with Python and Flask (preferably with knowledge of documenting backend applications).
Ability to write clear, concise, and easy-to-understand documentation.

How to Submit:

Fork the repository, make your changes, and submit a pull request (PR) with the title "Bounty: Add Documentation for Flask Backend."
In your PR description, provide a brief overview of the new documentation and highlight any important sections you added.

Deadline:

The first acceptable PR will be merged, and the bounty will be awarded. Please submit your PR within 1 week from the date of posting.

If you have any questions, feel free to comment below!

Assigned to @princedalsaniya

Hey @princedalsaniya  i am working on an API documentation product called Liveapi maybe I can help you with that part.

Hi @vaibhavgeek @princedalsaniya, I've seen that you usually create bounties on your issues, maybe you're interested in using Opire. You don't pay until someone claims the bounties with a PR.


Migrate java code samples to new repo / make easier to use

Update: see notes further down. Now expanding to improve overall usability of java samples
Our notebooks use a few environment variables so that they can be used without change across localhost, docker-compose & k8s
The java code samples tend to assume localhost:8080
It would be nice to support the same environment variables in the code samples, so that as well as using standalone, they could also be used 'as is' within an appropriate tutorial environment
Some docs will be needed, since the user may be running the code samples on local laptop, yet running egeria on k8s or compose, but the default could be to assume they will run within the containerized environment, and provide docs about setting them if not.
This would make it easier for someone to work through the samples

Assigning to @mandy-chessell  who is refactoring and migrating samples over to this new repo.

Closing now, as creation of new tutorials has gone down a very clear path in offering new examples to support learning


Fix/enquirer

Codecov Report

Merging #129 into develop will decrease coverage by 0.09%.
The diff coverage is 73.91%.

@@             Coverage Diff             @@
##           develop     #129      +/-   ##
===========================================
- Coverage    84.48%   84.38%   -0.10%
===========================================
  Files           15       16       +1
  Lines          464      474      +10
  Branches       114      117       +3
===========================================
+ Hits           392      400       +8
- Misses          17       18       +1
- Partials        55       56       +1

Impacted Files
Coverage Δ

src/interfaces/listr.interface.ts
100.00% <ø> (ø)

src/listr.ts
85.18% <0.00%> (-3.28%)
:arrow_down:

src/utils/uuid.ts
60.00% <60.00%> (ø)

src/utils/prompt.ts
76.19% <80.00%> (ø)

src/lib/task.ts
79.54% <100.00%> (+1.76%)
:arrow_up:

src/utils/renderer.ts
83.33% <100.00%> (+5.55%)
:arrow_up:

Continue to review full report at Codecov.

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

:tada: This PR is included in version 2.5.0 :tada:
The release is available on:

npm package (@latest dist-tag)
GitHub release

Your semantic-release bot :package::rocket:


[JSON to XML and Upload to FTP] java.lang.NoSuchMethodError

Description:
Once a project is created through 'JSON to XML Transformation and upload to FTP' template using dashboard and trying to run the jar, it is getting the following error.
[2019-11-25 13:56:50,705] SEVERE {b7a.log.crash} - org.ballerinalang.jvm.types.BRecordType.<init>(Ljava/lang/String;Lorg/ballerinalang/jvm/types/BPackage;IZI)V
java.lang.NoSuchMethodError: org.ballerinalang.jvm.types.BRecordType.<init>(Ljava/lang/String;Lorg/ballerinalang/jvm/types/BPackage;IZI)V
	at ballerina.lang_annotations.___init.$createTypeInstances(lang.annotations)
	at ballerina.lang_annotations.___init.$createTypes(lang.annotations)
	at ballerina.lang_annotations.___init.$currentModuleInit(lang.annotations)
	at ballerina.lang_annotations.___init.ballerina_lang_annotations__init_(lang.annotations:65535)
	at isuruuyanage.upload_to_ftp.___init.$moduleInit(upload_to_ftp:65535)
	at isuruuyanage.upload_to_ftp.___init.$lambda$$moduleInit$(upload_to_ftp)
	at org.ballerinalang.jvm.scheduling.SchedulerItem.execute(Scheduler.java:486)
	at org.ballerinalang.jvm.scheduling.Scheduler.run(Scheduler.java:237)
	at org.ballerinalang.jvm.scheduling.Scheduler.runSafely(Scheduler.java:207)
	at java.lang.Thread.run(Thread.java:748)

Suggested Labels:
Priority/high
severity/major
Suggested Assignees:
@MalshaL
Steps to reproduce:

Open the Dashboard through VS Code.
Select JSON to XML Transformation and upload to FTP template and create a new project.
Encrypt the credentials using the following command.

ballerina encrypt

Provide the credentials of FTP server in ballerina.conf file as below.

[ftp]
  host="<IP_ADDRESS>"
  port=21
  username="@encrypted:{n0JmdSKNikswPHQ/RIBkdlgBIJSCX7DpUzryLliG7T8=}"
  password="@encrypted:{n0JmdSKNikswPHQ/RIBkdlgBIJSCX7DpUzryLliG7T8=}"

Build the module
Run the jar to start the service.

Expected: The service should be started
Actual: Getting the above mentioned error in ballerina-internal.log file

This error reproduces on Ballerina version 1.0.3 and 1.0.4 but does not occur on 1.0.1.

Error occurs when the imported FTP module version has been built in a different Ballerina version from the one that is used for building the template.
Issue to display an error message: https://github.com/ballerina-platform/ballerina-lang/issues/20068

The same issue occurs in Samba Connector as well.
https://ei.docs.wso2.com/en/latest/ballerina-integrator/learn/tutorials/file-based-integrations/file-integration-using-smb/1/


role assignments for child resources do not follow AVM spec

Is there an existing issue for this?

[X] I have searched the existing issues

Greenfield/Brownfield provisioning
greenfield
Terraform Version
1.7
Module Version
0.1.0
AzureRM Provider Version
n/a
Affected Resource(s)/Data Source(s)
containers,queues,tables & shares
Terraform Configuration Files
module "avm-res-storage-storageaccount" {
  source  = "Azure/avm-res-storage-storageaccount/azurerm"
  version = "0.1.0"

  account_replication_type      = "GRS"
  account_tier                  = "Standard"
  account_kind                  = "StorageV2"
  location                      = azurerm_resource_group.this.location
  name                          = module.naming.storage_account.name_unique
  resource_group_name           = azurerm_resource_group.this.name
  min_tls_version               = "TLS1_2"
  shared_access_key_enabled     = true
  public_network_access_enabled = true

  containers = {
    blob_container0 = {
      name                  = "blob-container-${random_string.this.result}-0"
      container_access_type = "private"
      role_assignments = {
        rbac_storage_blob_data_contributor = {
          role_definition_id_or_name = "Storage Blob Data Contributor"
          principal_id               = data.azurerm_client_config.current.object_id
        }
      }
    }
  }
}

tfvars variables values
n/a

Debug Output/Panic Output
n/a - nothing is produced.

Expected Behaviour
should be possible to set rbac against child resources as per AVM
https://azure.github.io/Azure-Verified-Modules/specs/shared/interfaces/

Details on child, extension and cross-referenced resources:
Modules MUST support Role Assignments on child, extension and cross-referenced resources as well as the primary resource via parameters/variables

Actual Behaviour
rbac is not created because there is no resource to make it within the module
Steps to Reproduce
No response
Important Factoids
No response
References
No response

@chinthakaru Do you need any more info for this issue?

@kewalaka Thank you for raising this PR. Let me review these changes and revert back to you. In the meantime, could you please provide your available time slots to discuss more about this PR . Refer to the email address listed on my GH profile.

I have a blog post that explains the interfaces in AVM, the relevant piece on child reources is here
https://blog.kewalaka.nz/p/2024/02/avm-resource-interfaces/#child-resources
The AVM spec requires you to be able to specify a role assignment against each child resources (container, queue, table, share), similiar to what has been done with diagnostic settings
You'll see a similar pattern in Matt Whites key vault, if you review how he has done role assignments for keys and secrets.
I'll be in touch by email.

PR has been merged with the requred changes.


Refactor check to support different versions easily

Additional Notes
The post_0_10_2 flag will be used in a subsequent PR

Did the post_0_10_2 flag ever get added?


set to public/demo mode

Great looking & working project, thank you!
I would like to use it as an internal image sharing service. Having it set up just like your demo site would be perfect, as I don't need or want user management at all. access will only be possible in our LAN, no need with user/pw.
Can you give a hint on what changes you made for the demo?

I can't provide any help for customization, but you need to ensure that the user is always logged in by setting the session before checking if we is logged in. Maybe that helps a bit.


Samples get linked with system glog.so and glogd.so built from source resulting in conflicts

Samples from ./examples/[simple_cache|simple_compact_cache] get linked with system glog.so and glogd.so built from source resulting in conflicts.
Steps to reproduce:

./contrib/build.sh -d -v # Build CacheLib
cd examples/simple_cache/
./build.sh # Build simple_cache example
ldd build/simple-cache-example | grep glog
libglog.so.0 => /lib/x86_64-linux-gnu/libglog.so.0 (0x00007f0d95bae000)
libglogd.so.0 => /home//CacheLib/opt/cachelib/lib/libglogd.so.0 (0x00007f0d941ef000)
./build/simple-cache-example
ERROR: flag 'logtostderr' was defined more than once (in files '/home//CacheLib/cachelib/external/glog/src/logging.cc' and 'src/logging.cc').

OS: Ubuntu 20.04 running on WSL2.

Getting the same error. I tried on a new VM Ubuntu 20.04.3 LTS, still getting the error.
ERROR: flag 'logtostderr' was defined more than once (in files '/home/student/CacheLib/cachelib/external/glog/src/logging.cc' and 'src/logging.cc').

Thank you @vicvicg and @decibel26 - you stumbled on an edge case - building "cachelib" in debug mode (build.sh -d) and the sample in release mode (the default of the build.sh script).
I'll commit a fix that allows building the sample in debug mode as well.
As a temporary work-around, please try adding -DCMAKE_BUILD_TYPE=Debug to the CMAKE_PARAMS in line 28 of:
https://github.com/facebook/CacheLib/blob/f200cefa6795e250fef535a5b026c8b6b6ac84a7/examples/simple_cache/build.sh#L28

-DCMAKE_BUILD_TYPE=Debug

Thank you, @agordon - this workaround works.

Thanks for the quick work-around @agordon !

Worked for me as well. Thanks, @agordon.

@vicvicg  Is this still an issue for you ?

@sathyaphoenix What is the recommended way to switch between release and debug builds for samples without modifying the build file itself?

@agordon  is the fix that you mention committed  to main branch ?


Generated XML file  is empty

Given example go test output like this:
mode: count
pos-api/internal/api/middleware/error.go:26.86,28.29 2 2
pos-api/internal/api/middleware/error.go:58.2,58.13 1 2
pos-api/internal/api/middleware/error.go:28.29,34.27 3 8
pos-api/internal/api/middleware/error.go:52.3,55.5 1 8

When running gocover-cobertura against the file I'm getting this output:
$ gocover-cobertura < ~/git/pos-api/cover.txt
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE coverage SYSTEM "http://cobertura.sourceforge.net/xml/coverage-04.dtd">
<coverage line-rate="NaN" branch-rate="0" version="" timestamp="1565289586656" lines-covered="0" lines-valid="0" branches-covered="0" branches-valid="0" complexity="0">
        <sources>
                <source>/Users/bgore/go/src</source>
        </sources>
        <packages></packages>
</coverage>

There are no errors being logged, etc... just this empty XML file with a line-rate="NaN" ☹
I think there was an update or something that has broken this - but I'm not sure what it would be. This used to work for me as of last week.
Go version: go version go1.12.7 darwin/amd64

This is also broken for me. go 1.12.9, on linux.

Same issue for me, for go 1.12.17

I had the same issue, for go 1.12.17. After I deleted files go.mod and go.sum (in current folder), gocover-cobertura started to work fine.

After updating to go 1.14 (I didn't check this at 1.13) this is now working for me again. Marking as closed.


cudaCheckError() failed compute outputs: too many resources requested for launch

I get this error while trying to run ./experiments/scripts/demo.sh 0 :
2018-07-06 12:51:54.564555: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:892] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero
2018-07-06 12:51:54.565020: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Found device 0 with properties:
name: GeForce 840M major: 5 minor: 0 memoryClockRate(GHz): 1.124
pciBusID: 0000:0a:00.0
totalMemory: 1.96GiB freeMemory: 1.73GiB
2018-07-06 12:51:54.565060: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce 840M, pci bus id: 0000:0a:00.0, compute capability: 5.0)
Loading model weights from data/demo_models/vgg16_fcn_color_single_frame_2d_pose_add_lov_iter_160000.ckpt
data/demo_images/000003-color.png
2018-07-06 12:51:56.557339: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.76GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available.
2018-07-06 12:51:56.736688: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 675.00MiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available.
2018-07-06 12:51:56.956865: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 1.98GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available.
2018-07-06 12:51:57.085750: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 337.50MiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available.
2018-07-06 12:51:57.158900: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.64GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available.
2018-07-06 12:51:57.328548: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 1017.00MiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available.
2018-07-06 12:51:57.572087: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 1.33GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available.
2018-07-06 12:51:57.769324: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 524.25MiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available.
2018-07-06 12:51:58.011584: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 711.00MiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available.
cudaCheckError() failed compute outputs: too many resources requested for launch

I guess that this is due to the fact that my GPU card doesn't have enough memory. Is there a way to avoid this error without changing my GPU card ?

Hi, @TotoLulu94 .I run into the same issue as following:
Use network vgg16_convs in training 2018-09-14 10:28:07.777198: I tensorflow/core/platform/cpu_feature_guard.cc:137] Your CPU supports instructions that this TensorFlow binary was not compiled to use: SSE4.1 SSE4.2 AVX AVX2 FMA 2018-09-14 10:28:07.855678: I tensorflow/stream_executor/cuda/cuda_gpu_executor.cc:892] successful NUMA node read from SysFS had negative value (-1), but there must be at least one NUMA node, so returning NUMA node zero 2018-09-14 10:28:07.855932: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1030] Found device 0 with properties:  name: GeForce GTX 970 major: 5 minor: 2 memoryClockRate(GHz): 1.3165 pciBusID: 0000:01:00.0 totalMemory: 3.94GiB freeMemory: 3.36GiB 2018-09-14 10:28:07.855950: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1120] Creating TensorFlow device (/device:GPU:0) -> (device: 0, name: GeForce GTX 970, pci bus id: 0000:01:00.0, compute capability: 5.2) Loading model weights from data/demo_models/vgg16_fcn_color_single_frame_2d_pose_add_lov_iter_160000.ckpt data/demo_images/000001-color.png 2018-09-14 10:28:08.811070: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.76GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available. 2018-09-14 10:28:08.892910: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 1.98GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available. 2018-09-14 10:28:08.932697: W tensorflow/core/common_runtime/bfc_allocator.cc:217] Allocator (GPU_0_bfc) ran out of memory trying to allocate 2.64GiB. The caller indicates that this is not a failure, but may mean that there could be performance gains if more memory is available. cudaCheckError() failed compute outputs: too many resources requested for launch Command exited with non-zero status 255 2.63user 1.50system 0:03.36elapsed 123%CPU (0avgtext+0avgdata 1966940maxresident)k 0inputs+0outputs (0major+441177minor)pagefaults 0swaps
I have decreased the number kThreadsPerBlock from 1024 to 512 in the different layers as you mentioned, but it didn't work for me.Do you have any other idea?
Thanks


How to backup mapdb files ?

I am using mapdb to contruct a high available service, which cannot be stopped because we need to provide a stable service to clients. To prevent from removing data accidently, I am going to backup mapdb files and move them to hdfs every midnight, but I cannot stop the service and close mapdb.
Is there any way to help me backup data without closing the mapdb ?

I met the same problems ..
Could you tell me  if you find out any solutions ?

Currently you need the help of the OS for that: Make a lv snapshot (Linux)( or a shadow volume (? Windows) of the volume with the mapdb file on it and then copy them. You probably need Storage WAL for that, but even that is (I think) no guarantee. MapDB 4 will address this better, see issue #831


chore: Remove special fix for plonk verifiers

https://github.com/iden3/snarkjs/pull/464 was merged and is now included in snarkjs 0.7.5 so we can remove the special case for plonk verifiers:
https://github.com/erhant/circomkit/blob/main/tests/circomkit.test.ts#L97
The way snarkjs is set as a peerDependency for 0.7.x, it would need to be updated to ^0.7.5 too I would imagine though

good point!

The way snarkjs is set as a peerDependency for 0.7.x, it would need to be updated to ^0.7.5 too I would imagine though
indeed

will include this for some minor version update soon, but lets wait a bit until SnarkJS gets updated around the place 👍🏻

the existing fix does not break with the fixed snarksj version though right?


Figure out a plan

Everyone needs a plan!

Although a plan alone is rarely enough for success!

Working on figuring out if we can use what HG has developed.


Set treeview row height to 17

Add the following to switch_style method;
self.style.configure('Treeview', rowheight=17)
Need to call switch_style in init of mainapp.

Implemented V0.33.6


fix(usePelcro): gift recipient field not getting reset when resetState is called

Description

fix gift recipient field not getting reset when resetState is called
fix analytics not showing gifted subscriptions as e-commerce transactions

Types of changes

[x] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to change)

Checklist

[] Added a changelog entry.
[x] Tested changes locally.
[ ] Updated documentation.

LGTM, if you have other bugs. It would be better we batch them here as well.


transaction statements out of order

Bug Description
Not really sure what exactly the bug is but i am seeing strange behavior that makes it look like sql statements are not executed in the correct order. I have a reproduction here ( https://github.com/pythoneer/sqlx_test ) , but it is not really minimal. It uses axum and some strange wrk stuff to trigger it, because that is where i originally encountered that behavior, not sure if it could be further reduced or if it has something to do with how axum operates specifically.
I am just trying to do this in a handler
https://github.com/pythoneer/sqlx_test/blob/c220fda7c5f60fc0ef22f7ba64f3436fac7063e6/src/main2.rs#L41-L59
async fn test(State(pool): State<PgPool>) -> Result<String, (StatusCode, String)> {
    sleep(Duration::from_millis(2)).await;

    let mut transaction = pool.begin().await.map_err(internal_error)?;

    // -----------------------8<--------- this is optional ---------------->8----------
    transaction
        .execute("SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;")
        .await
        .map_err(|err| panic!("Failed to set transaction isolation level: {:#?}", err))?;

    let data: String = sqlx::query_scalar("select 'hello world from pg'")
        .fetch_one(&pool)
        .await
        .map_err(internal_error)?;
    // -----------------------8<--------- this is optional ---------------->8----------

    transaction.commit().await.map_err(internal_error)?;

    Ok(data)
}

The SET TRANSACTION...  and the select 'hello .. can also be removed it will already trigger the problem with just
let mut transaction = pool.begin().await.map_err(internal_error)?;
let transaction.commit().await.map_err(internal_error)?;

but it helps demonstrating the problem.
by running
DATABASE_URL="<your_url>" cargo run --bin binary2

and
./parallel_run.sh

to hit the endpoint we can sporadically see
2023-10-07T20:07:04.706970Z  WARN sqlx::postgres::notice: there is already a transaction in progress
2023-10-07T20:07:08.272585Z  WARN sqlx::postgres::notice: there is no transaction in progress

which i can't really explain. The only way i can think of is if the statements send to the database are not in order? Normally we would see BEGIN; COMMIT; pairs send parallel in each connection, right? But the warnings make me assume that sometime BEGIN; BEGIN; COMMIT; or BEGIN; COMMIT; COMMIT; happens.
With the additional SET TRANSACTION ... and select 'hello .. we can also see panics that i create with
.map_err(|err| panic!("Failed to set transaction isolation level: {:#?}", err))?;

that shows
        code: "25001",
        message: "SET TRANSACTION ISOLATION LEVEL must be called before any query",

and the same problem here, i can only explain this (just playing around in psql) if the  select 'hello .. is executed before  SET TRANSACTION ....
https://github.com/launchbadge/sqlx/assets/1102097/db9adaaf-5d5d-45c5-8890-a9766fa6d8aa
Also the values (like the sleep and all the wrk parameters and connection pool size) might depend on the specific machine idk, i tuned them to be working the best on my system. I think this can change from system to system. I think it worked the best when the endpoint delivered around 2500 req/s. The reason why i am doing the "funny" stuff in parallel_run.sh is because i noticed that this is somehow triggered specifically in the beginning or the end of a wrk run, not really sure why and what is happening in detail. Maybe wrk "just" kills connection in the middle and axum reacts strange to killed connections while a handler is running idk. But i would say regardless of what axum is doing i don't expect any of the observed things to happen. You can trigger this without parallel_run.sh but you might need to wait and potentially start and stop the wrk command manually fast consecutively. That is basically what  parallel_run.sh is doing.
Minimal Reproduction
https://github.com/pythoneer/sqlx_test
needs wrk installed for parallel_run.sh.
DATABASE_URL="<your_url>" cargo run --bin binary2

and
./parallel_run.sh

Info

SQLx version: 0.7.2
SQLx features enabled:
"postgres",
"runtime-tokio-rustls",
"macros", "migrate",
"chrono", "json", "uuid",
Database server and version: PostgreSQL 15.4 on x86_64-pc-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit
Operating system: arch linux (x86_64 Linux 6.5.5-arch1-1)
rustc --version: rustc 1.72.0 (5680fa18f 2023-08-23)

This query executes on a different connection since you pass the Pool as the executor:
    let data: String = sqlx::query_scalar("select 'hello world from pg'")
        .fetch_one(&pool)
        .await
        .map_err(internal_error)?;

I suspect this may be due to cancellation, as when a connection is closed mid-request Axum will cancel the handler future. I'm guessing when you kill the wrk process, it doesn't wait for in-flight requests to complete and just closes the connections right away.
It could be leaving connections in weird states.

Sorry, silly mistake for the repro. It should be
    let data: String = sqlx::query_scalar("select 'hello world from pg'")
        .fetch_one(&mut transaction)
        .await
        .map_err(internal_error)?;

of course. Unfortunately for the repro it does not seem to trigger it anymore in its current config. But its still happening in my "real" code where i also do use the created transaction and not the pool for any of the queries etc. the there is already a transaction in progress are still there and i think all are based on the same phenomenon.

I could further reduce the repro to this https://github.com/pythoneer/sqlx_test/blob/main/src/main1.rs Looking at the postgres logs (i enabled statement logging) i have this
2023-10-09 09:59:32.403 UTC [532] LOG:  statement: BEGIN
2023-10-09 09:59:32.403 UTC [532] LOG:  statement: COMMIT
2023-10-09 09:59:32.403 UTC [532] LOG:  statement: ROLLBACK
2023-10-09 09:59:32.404 UTC [532] WARNING:  there is no transaction in progress
2023-10-09 09:59:32.451 UTC [533] LOG:  statement: BEGIN
2023-10-09 09:59:32.451 UTC [533] LOG:  statement: COMMIT
2023-10-09 09:59:32.451 UTC [533] LOG:  statement: ROLLBACK
2023-10-09 09:59:32.452 UTC [533] WARNING:  there is no transaction in progress

Which does not look correct and is what i suspected in the beginning. Looking at the code for the drop implementation for a transaction it seems to work differently than e.g. a simple commit. Did not go further down the line but it looks like that invocation is deferred into a queue(?) and executed later.

This seems to be an issue with cancellation safety of transactions in sqlx. I found a self-contained way of reproducing the issue.
Cargo.toml:
[package]
name = "sqlx_test"
version = "0.1.0"
edition = "2021"

[dependencies]
anyhow = "1"
rand = "0.8"
clap = { version = "4", features = ["derive"] }
tokio = { version = "1", features = ["macros", "time", "rt-multi-thread"] }
tracing = "0.1"
tracing-subscriber = "0.3.17"
sqlx = {version = "=0.7.2", default-features = false, features = ["postgres", "runtime-tokio-rustls"]}

main.rs:
use clap::Parser;
use rand::{thread_rng, Rng};
use sqlx::PgPool;
use std::sync::Arc;
use std::time::Duration;
use tokio::task::JoinSet;
use tokio::time::Instant;

use tracing::{error, info, info_span, Instrument, Level};

#[derive(Parser, Debug)]
struct CommandlineArguments {
    #[arg(long, default_value_t = 100)]
    tasks: usize,
    #[arg(long, default_value_t = 5)]
    runtime_seconds: u64,
    #[arg(long, default_value_t = 100)]
    max_keep_transaction_milliseconds: u64,
    #[arg(long, default_value_t = 100)]
    max_drop_after_milliseconds: u64,
}

#[tokio::main]
async fn main() -> anyhow::Result<()> {
    let arguments = CommandlineArguments::parse();

    let runtime = Duration::from_secs(arguments.runtime_seconds);
    let max_keep_transaction = Duration::from_millis(arguments.max_keep_transaction_milliseconds);
    let max_drop_after = Duration::from_millis(arguments.max_drop_after_milliseconds);

    tracing_subscriber::fmt().with_max_level(Level::INFO).init();

    info!(?arguments, "Commandline");

    let pool =
        Arc::new(PgPool::connect("postgres://postgres:postgres@localhost:51337/postgres").await?);

    let mut join_set = JoinSet::new();
    for index in 0..arguments.tasks {
        let span = info_span!("task", index);
        join_set.spawn(
            task(pool.clone(), max_keep_transaction, max_drop_after, runtime).instrument(span),
        );
    }

    while let Some(res) = join_set.join_next().await {
        if let Err(err) = res {
            error!("Task failed: {:?}", err);
        }
    }

    Ok(())
}

async fn task(
    pool: Arc<PgPool>,
    max_keep_transaction: Duration,
    max_drop_after: Duration,
    runtime: Duration,
) -> anyhow::Result<()> {
    let start = Instant::now();
    while start.elapsed() < runtime {
        let operation = Operation::random(pool.clone(), max_keep_transaction, max_drop_after);

        let span = info_span!(
            "operation",
            keep_transaction_for = operation.keep_transaction_for.as_millis(),
            drop_after = operation.drop_after.as_millis()
        );

        operation.run().instrument(span).await?;
    }

    Ok(())
}

struct Operation {
    pool: Arc<PgPool>,
    keep_transaction_for: Duration,
    drop_after: Duration,
}

impl Operation {
    fn random(pool: Arc<PgPool>, max_keep_transaction: Duration, max_drop_after: Duration) -> Self {
        let mut rng = thread_rng();

        Self {
            pool,
            keep_transaction_for: rng.gen_range(Duration::ZERO..=max_keep_transaction),
            drop_after: rng.gen_range(Duration::ZERO..=max_drop_after),
        }
    }

    async fn run(self) -> anyhow::Result<()> {
        tokio::select! {
            result = self.start_transaction_and_commit() => {
                result
            }
            _ = tokio::time::sleep(self.drop_after) => {
                // drops the open transaction from the other branch
                Ok(())
            }
        }
    }

    async fn start_transaction_and_commit(&self) -> anyhow::Result<()> {
        let begin_span = info_span!("begining transaction");
        let transaction = self.pool.begin().instrument(begin_span).await?;

        let inside_transaction_span = info_span!("inside transaction");
        tokio::time::sleep(self.keep_transaction_for)
            .instrument(inside_transaction_span)
            .await;

        let commit_span = info_span!("committing transaction");
        transaction.commit().instrument(commit_span).await?;
        Ok(())
    }
}

docker-compose.yml:
version: "3.2"

services:
  db:
    image: postgres:15-alpine
    container_name: sqlx_repro_db
    restart: unless-stopped
    tty: true
    environment:
      POSTGRES_USER: postgres
      POSTGRES_PASSWORD: postgres
    ports:
      - "51337:5432"

This is what the output looks like (with cargo run --release):
2023-10-09T12:19:07.402371Z  INFO sqlx_test: Commandline arguments=CommandlineArguments { tasks: 100, runtime_seconds: 5, max_keep_transaction_milliseconds: 100, max_drop_after_milliseconds: 100 }
2023-10-09T12:19:07.493629Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:07.679796Z  WARN task{index=50}:operation{keep_transaction_for=61 drop_after=99}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:07.787577Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:07.869631Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:07.874933Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:08.130887Z  WARN task{index=78}:operation{keep_transaction_for=76 drop_after=91}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:08.208183Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:08.370002Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:08.420780Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:08.688807Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:08.790763Z  WARN task{index=90}:operation{keep_transaction_for=96 drop_after=86}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:09.160745Z  WARN task{index=30}:operation{keep_transaction_for=36 drop_after=91}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:09.388145Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:09.621769Z  WARN task{index=59}:operation{keep_transaction_for=10 drop_after=86}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:09.630659Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:09.754287Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:10.040783Z  WARN task{index=38}:operation{keep_transaction_for=80 drop_after=70}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:10.049120Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:10.264293Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:10.283822Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:10.644704Z  WARN task{index=53}:operation{keep_transaction_for=93 drop_after=79}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:10.764836Z  WARN task{index=60}:operation{keep_transaction_for=29 drop_after=78}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:11.070738Z  WARN task{index=25}:operation{keep_transaction_for=74 drop_after=98}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:11.074662Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:11.267963Z  WARN task{index=34}:operation{keep_transaction_for=65 drop_after=86}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:11.270800Z  WARN task{index=59}:operation{keep_transaction_for=58 drop_after=81}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:11.278312Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:11.431716Z  WARN task{index=0}:operation{keep_transaction_for=82 drop_after=65}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:11.614500Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:11.865754Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:12.070070Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:12.084736Z  WARN task{index=37}:operation{keep_transaction_for=37 drop_after=93}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress
2023-10-09T12:19:12.137604Z  WARN sqlx::postgres::notice: there is no transaction in progress
2023-10-09T12:19:12.298898Z  WARN task{index=42}:operation{keep_transaction_for=42 drop_after=88}:begining transaction: sqlx::postgres::notice: there is already a transaction in progress

Note that in axum (and everything using hyper AFAIK),  from what I understand every request is spawned as it's own task that is cancelled when the connection drops.
I'm just simulating a dropping connection by using tokio::select and dropping the future that performs a transaction.

Seemingly related: https://github.com/launchbadge/sqlx/issues/2054

  2023-11-23T12:04:50.581515Z TRACE sqlx::query: summary: "INSERT INTO credits (twitter_id, …", db.statement: "\n\nINSERT INTO\n  credits (twitter_id, activity_id, credits, updated_at)\nVALUES\n  ($1, $2, $3, $4) ON CONFLICT (twitter_id, activity_id) DO\nUPDATE\nSET\n  credits = $3,\n  updated_at = $4\n", rows_affected: 0, rows_returned: 0, elapsed: 2.27525ms     at /Users/ouhuang/.cargo/registry/src/index.crates.io-6f17d22bba15001f/sqlx-core-0.7.1/src/logger.rs:117     in tower_http::trace::make_span::request with method: POST, uri: /api/twitter/verify/twitter_name, version: HTTP/1.1


Updated error condition for authType and imporved logging for basic auth

PR Submission checklist
GitHub Issues
List the GitHub issues impacted by this PR:

GitHub Issue #

https://github.com/dell/csm/issues/139

Common PR Checklist:

[x] Have you made sure that the code compiles?
[x] Have you commented your code, particularly in hard-to-understand areas
[x] Did you run tests in a real Kubernetes cluster?
[x] Have you maintained backward compatibility

Description of your changes:
Updated error condition for authType, It will set to default value 0 if any wrong value is given in values.yaml
Updated logs for masking basic auth creds

Update the README and examples in it with new env var GOISILON_AUTHTYPE


feat: disable chat

I added a test case for this

https://user-images.githubusercontent.com/38838675/117101654-243ff800-ad90-11eb-8970-dad6b23555ec.mp4

just an fyi, I switched this over to use chatMode that way we didn't have dupe logic

@benawad are you gonna use chatMode for default, followeOnly and disabled? If yes, I can switch this over to chatMode instead of chatDisabled.


Bug list 2

[x] The buttons are shifted to the left, not aligned in the middle when translating

[x] The translated text in the head generator goes beyond the button

[x] The /fzmm skull nickname command issues a head with a skin that can be installed via the SkinsRestorer plugin, but you can't do that in Head Generator

The /fzmm skull nickname command issues a head with a skin that can be installed via the SkinsRestorer plugin, but you can't do that in Head Generator

The truth is that I originally wanted to do that but I couldn't find a way and I ended up getting the skin from the cache and it seems that the cache only has the skin loaded if you have the player entity loaded

[ ] 4. Head Generator does not have a "Back" button

[ ] 5.

[ ] 6. 1.19 paintings have no translation

paintings have no translation

the issue is that there is no minecraft translation of the paintings and they are added when they are not in the placeable paintings tag, so I would have to add translation to all the paintings

Missing a space in the asymmetricEncryptKey description


Put configuration parameters on first page with links to where they are used

This makes it easier to find where configuration parameters are used
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@davecramer Looks like the PR is "out-of-date". Can you rebase it? Thank you!

@davecramer Looks like the PR is "out-of-date". Can you rebase it? Thank you!

done


fix: Don't let undefined trigger second argument.

This way undefined won't trigger the first if clause.
Also get rid of ancient arguments and simplify the code.

Released in version v2.6.3 – thanks for contribution! 🤘 😎


Allow to query packages by license

Is your feature request related to a problem? Please describe.
Most solutions have a large list of dependencies and it might be hard to find which packages are not compliant.
Describe the solution you'd like
Add query parameter, e.g.
npx license-compliance -r detailed -q "MIT;ISC"

Closed by #166


Beacon not being detected

After running the test.js script no beacon is detected. I am sing windows 10 & node v6.11.4.
I've run the noble advertisement-discovery.js script and it is able to detect my beacon, output:
peripheral discovered (ecf44801a62f with address <ec:f4:48:01:a6:2f, random>, connectable true, RSSI -79:
hello my local name is:
Beacon_00000
can I interest you in any of the following advertised services:
[]
here is my service data:
"fff0": "6427114cb9"
here is my manufacturer data:
"4c00021574278bdab64445208f0c720eaf05993527114cb9c5"
my TX power level is:
-16

I did some testing recently and it turned out that nobles state doesnt change to 'powerOn' inside bleacon. I do not get this problem when scanning with noble outside bleacon.
However when i commented bleno's require out, it was workin without problems. There seems to be a conflict with finding the bluetooth receiver when noble and bleno are both in use


Doesn't work

...  with enchanted items.
forge-1.12.2-<IP_ADDRESS>11-universal.jar
spongeforge-1.12.2-2611-7.1.0-BETA-2990.jar
ChestRefill-1.12.2-1.2.1.jar
In the console error. At this point, I cannot provide a log.

It works with spongeforge-1.12.2-2611-7.1.0-BETA-3002

ChestRefill-1.12.2-1.2.1.jar or should I build a new jar file?

ChestRefill-1.12.2-1.2.1.jar

Thank you for your time. I'll check when I have time. Close issue.


Enable prod backend to send single-entry and bulk upload multiplex flu results to ReportStream

Background
We would like to start sending multiplex results to the production Universal Pipeline so we can work with RS to verify the integration and the fhir bundle generated. ReportStream will initially disable the receivers so nobody will receive the data until we have verified the quality.
Action requested
Change our backend code such that we send multiplex test results to our fhir queue. This should echo the way we are already doing it in lower environments.
Reach out to RS beforehand to ensure that they are prepared to receive multiplex results to the production universal pipeline and that the receiver(s) are disabled.
Please confirm with Patricia Perozo on RS that we are good to go. She will want us to send a single test message first before flipping it on for everyone.
The easiest way to do this would probably be to drop a fake message in our prod fhir queue and verify with Patricia. Make sure that Patricia knows it is fake data and should not be sent to any STLTs.
Acceptance Criteria
Submitting a multiplex test result or correction in production should result in the fhir bundle being placed on our fhir queue. The existing Covid data flow should continue to place the results in our batched publisher result queue.
Additional context
Change in the application-prod.yaml (or similar) file

Thanks Avniel! In that case, yes, go ahead, CDPH is good with turning on flu results from SimpleReport/ReportStream.

This is unblocked!

3 flags that control diff parts of FHIR reporting
datahub.fhir-enabled: controls bulk upload
when true, upload CSVs are converted FHIR bundles and sent to the Universal pipeline in addition to the existing base functionality of being sent to the Covid pipeline
azure-reporting-queue.fhir-reporting-enabled: controls single-entry
when true, submitting a result or correction uses our fhir queue reporting service to report the message
azure-reporting-queue.fhir-queue-enabled: controls whether we're using an actual queue configuration for our fhir queue reporting service or if we just use the no-op config (NoOpFHIRReportingService) for reporting. this should only be true in environments where we have a queue configured


Spooled file with env vars for every job started with Service Commander

I am getting a spooled file for every job started via Service Commander. The spooled file contains the env vars passed to the program. How to disable getting this Spooled file? Note: The program is started in batch mode.

I can see how that'd be annoying. That env command was put in during bringup to help debug/etc. It's not needed any more.
Unfortunately, there's no way to turn it off. The fix is pretty simple:

remove the env invocation here
bump the script version here

I don't have time to "page into" this until late next week, but marking as good first issue in case anyone wants to grab it.


Update to 2.3.0

In GitLab by @ZwerOxotnik on May 2, 2019, 22:39

In GitLab by @ZwerOxotnik on May 2, 2019, 22:39
added 2 commits
83dc551d - 1 commit from branch 0.180233fdcd - Merge branch '0.18' into '0.17'
Compare with previous version

In GitLab by @ZwerOxotnik on May 2, 2019, 22:44
approved this merge request

In GitLab by @ZwerOxotnik on May 2, 2019, 22:47
unapproved this merge request

In GitLab by @ZwerOxotnik on May 2, 2019, 22:47
closed

In GitLab by @ZwerOxotnik on May 2, 2019, 22:47
reopened

In GitLab by @ZwerOxotnik on May 2, 2019, 22:48
merged

In GitLab by @ZwerOxotnik on May 2, 2019, 22:48
mentioned in commit f4e200b55bfc3a2152143cd7f7938aa5cb5dca78


E2E tests require root as username for VMs

The current E2E tests assume that the username is always root for the testbed VMs.
However this is not necessarily true.
A user should be able to have other usernames on the testbed VMs with enough permission to run the e2e tests.
Maybe introducing more env variables for users to provide username/password of testbed VMs?

As long as the setup is done to allow commands to be executed on other guests and the ESX the tests should work as is as a non-root user. Root access isn't needed to run the tests.

but the InvokeCommand function inside ssh.go is hard-coded to use root as username.

Ok, it doesn't need that, should be changed to get user name and use that. But then there has to be that user on each docker host. Root is just easy to use as its there on every node.


[WIP] Screen-reader accessibility fix 1

Introduction
Currently, this component seems to have several problems regarding screen-reader accessibility. It is extremely difficult or completely impossible for screen-reader users like me to control the component.
If one of the main developers could review and update the component, I'm willing to PR some patches that will make it more SR friendly, without altering the visual layout.
You don't necessarily need to test the behavior using a screen-reader; I will always check so that it works. However, what I cannot do is making sure that the visual layout or the original behavior (E.G. focus handling) hasn't been broken by my changes.
As far as I know, this component has significant number of downloads on NPM, so I hope blind users would gain access to it as much as possible, and I would try my best to contribute to it.
Overview of this PR
This PR will fix two issues:

On the calendar, each day becomes identifiable as a controllable button by assistive technology .
When switching months on the calendar, the changed month is automatically reported (read) by screen readers.

Oops, I'll take care of the error. Sorry!

One of the tests is failing and it also happens at the current master branch. I'm going to request investigation of this issue.

I'm going to close this PR since it's broken at the moment.


Update for M1

These are the changes I had to make to run on M1.  Feel free to take or leave any of them.

In build_python_framework use 10.9 build of python to have an all intel build.  Pyobjc did not have an M1 build that I could see.
In generatejson.py another argument was added in an earlier commit.
In py3_requirements.txt build all binaries, otherwise I got missing dependencies and a broken python.

My 2c on the python pieces:

I'm not sure that dropping the build from 11 to 10.9 is the right call. Munki doesn't do this and it supports both Intel and Arm.
For pyobjc (and everything else), we should probably just add --no-binary :all: at the end of the py3_requirements.txt file and compile everything. Many wheels are x86_64 only at the moment.

I agree and did test that but get an error message when running build_python_framework errors at Running setup.py install for pyobjc-framework-AutomaticAssessmentConfiguration with:
file not found     #import <AutomaticAssessmentConfiguration/AutomaticAssessmentConfiguration.h>
I haven't looked into it more than that yet.

I probably should merge the changes I made on macadmins/python to the build script to make it work universally. But yes, 11.0 is not necessary at all.


changing cell padding to match Jupyter Notebook.

Awesome, thanks!

Nice job on your first commit. Congrats!
Thanks @jasongrout for reviewing and merging. Hey @ellisonbg, check this out 👍

Fantastic, many congrats on your first PR/commit!


please add entry for LitElement

please add a new separate entry for LitElement from https://lit-element.polymer-project.org/
thank you very much

based on my searching the content and PR #22 I've been able to add files to my fork but I don't know how to either generate or add the data
not sure how relevant this is but I opened a PR for updating LitElement and lit-html at https://github.com/johnmichel/Library-Detector-for-Chrome/pull/181

Thanks for kick-starting a PR. I generate the data from HTTP Archive and Chrome User Experience Report using BigQuery. You can see a full list of queries used here (please be careful if you plan to run any of queries yourself as they can be very expensive).
LitElement data is already available in HTTP Archive's December run and it would take a few more weeks before the Chrome User Experience report crawl is complete. Once that's done, I'll make sure to add it to the site :)
Some initial questions/thoughts I had:

Should LitElement be a separate "framework" from Polymer on the site (separate route, logo hover click button, etc...) or show up as a dropdown option in the same page?
Thanks for adding LitHTML as well to the library detector. Similarly, should this be grouped within the Polymer page or the very least within a separate LitElement page? The library detector would have to be updated and used in a new version of Lighthouse before we can start seeding data for LitHTML, so it may take a few months unfortunately.

Thanks again for all the help, excited to see this all land soon 🎉

Thanks for kick-starting a PR. I generate the data from HTTP Archive and Chrome User Experience Report using BigQuery. You can see a full list of queries used here (please be careful if you plan to run any of queries yourself as they can be very expensive).
LitElement data is already available in HTTP Archive's December run and it would take a few more weeks before the Chrome User Experience report crawl is complete. Once that's done, I'll make sure to add it to the site :)
Some initial questions/thoughts I had:

Should LitElement be a separate "framework" from Polymer on the site (separate route, logo hover click button, etc...) or show up as a dropdown option in the same page?
Thanks for adding LitHTML as well to the library detector. Similarly, should this be grouped within the Polymer page or the very least within a separate LitElement page? The library detector would have to be updated and used in a new version of Lighthouse before we can start seeding data for LitHTML, so it may take a few months unfortunately.

Thanks again for all the help, excited to see this all land soon 🎉


Set/reset overlay icon functions (delegated functionality of ITaskbarList3::SetOverlayIcon)

I've delegated functionality of ITaskbarList3::SetOverlayIcon that sets up icon from provided file path on top of taskbar app icon.
There is functions to set icon and reset it; also added demonstration to example.
You can read official doc: https://docs.microsoft.com/en-us/windows/win32/api/shobjidl_core/nf-shobjidl_core-itaskbarlist3-setoverlayicon

Thanks for your work, usefull package and quick feedback!

I made a few changes and since we all are here to learn so explaining...

In setOverlayIcon, now icon takes ThumbnailToolbarAssetIcon instead of path String.

It is important because in your example, you were passing asset path which wasn't even added in pubspec.yaml. This may work fine in debug mode, but we need to pick correct .ico file (the one that is packaged with the app i.e. in flutter_assets folder). This could be working fine in debug mode, but could break in release mode.

In C++, we can directly write empty wchar_t[] as L"" instead of Utf16FromUtf8("").c_str().

Finally I moved the code to separate translation unit & finally this feels like a good code. I made this implementation in hurry in the past.
Thanks again.


New command: censor

Server administrators and users with a role called Censor can configure words to be censored on a server. Users can view censored words and recently censored messages; the bot will send the message through a direct message.
This will require some way to store a list of censored words (probably PostgreSQL).

Remaining work to be done: Persistence - save banned words and messages to a database and load them from the database on startup


MINOR: Improve assertion error in assert_py4j_exception

This is a small improvement to show a detailed error message if an integration test fails due to an exception not matching the expected exception, making it easier to debug a failure by looking at existing logs rather than adding debug print statements and running again.
Before
E       AssertionError

After
E       AssertionError: Expected error 'Found duplicante field(s)' did not appear in 'org.apache.spark.SparkException: Job aborted due to stage failure: Task 0 in stage 5.0 failed 1 times, most recent failure: Lost task 0.0 in stage 5.0 (TID 11) (<IP_ADDRESS> executor driver): java.lang.RuntimeException:  Found duplicate field(s) "1": [a, rand2] in id mapping mode

build


Short solution needed: "How to read file" (lua)

Please help us write most modern and shortest code solution for this issue:
How to read file (technology: lua)
Fast way
Just write the code solution in the comments.
Prefered way

Create pull request with a new code file inside inbox folder.
Don't forget to use comments to make solution explained.
Link to this issue in comments of pull request.

How to read file


Improved unused variable detection

I tried to fix #278:

Do not detect closure parameters that have succeeding parameters that are used.
Do not detect unused local variables and formal parameters with specific prefix (unused_, ...)

See my answer in the other ticket.
https://github.com/phpmd/phpmd/issues/278#issuecomment-147765807


font: use x/image/sfnt.Font, x/image/font.Face

so we can use the fonts from github.com/go-fonts (github.com/golang/freetype/truetype chokes on those...(well, except dejavu, but the visual output isn't so great with that one.))
needs:

https://github.com/golang/go/issues/22451
https://github.com/golang/go/issues/30699

closed by #30.


Values column not wide enough in Core.Operators table

Will this also be considered in the fix for #35?
This section: https://msdn.microsoft.com/visualfsharpdocs/conceptual/core.operators-module-[fsharp]#values
Looks like this on my laptop:

And looks like this on my desktop:

My understanding is that there was going to be a "global" change to the css
to fix table formatting.  Hopefully it will correct all of these pages, as
there's nothing in the page itself that should cause this to be a problem.
I think #35 will solve this one, and this is effectively a duplicate of
that issue.
On Thu, May 26, 2016 at 12:57 PM, Phillip Carter<EMAIL_ADDRESS>wrote:

Will this also be considered in #35
https://github.com/Microsoft/visualfsharpdocs/issues/35?
This section:
https://msdn.microsoft.com/visualfsharpdocs/conceptual/core.operators-module-[fsharp]#values
Looks like this on my laptop:
[image: screen shot 2016-05-26 at 12 50 27 pm]
https://cloud.githubusercontent.com/assets/6309070/15587991/a6974568-2340-11e6-8917-3a43cbd90ecc.png
And looks like this on my desktop:
[image: awkward-values]
https://cloud.githubusercontent.com/assets/6309070/15588069/0d3d45ba-2341-11e6-9d9f-e0794e9ea123.PNG
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub
https://github.com/Microsoft/visualfsharpdocs/issues/119

Sounds good.

@ReedCopsey @cartermp correct.


Adding basic functionality for Sponsorship form, D&I registration and …

…Sponsors home page routing

closing pull request.


Question: Rendering (inserting) before instead of appending

Maybe I've missed something. If render is the proper way to generate code with Preact, I can't seem to figure out the proper way to generate and insert code out-of-order. What I mean: render appends.
For example:
render(
Post 1: Hello World
, document.body);
render(
Post 2: Blah Blah
, document.body);

Which outputs:

Post 1: Hello World

Post 2: Blah Blah

I want this instead:

Post 2: Blah Blah

Post 1: Hello World

Other than the obvious (switching the order), or inserting proxy elements that I target instead, what should I be doing in the 2nd line so it goes before the 1st element; Or specifically, so it inserts at the top of document.body instead of the bottom?
Thanks.

@povrazor Hmm - It's fairly odd to invoke render() multiple times for a single use-case.  Is there a reason you want two top-level renders?
Normally your example would be written as a component:
class Example extends Component {
  state = {
    posts: [
      { title: 'Post 1', body: 'Hello World' },
      { title: 'Post 2', body: 'Blah Blah' }
    ]
  };
  render(props, state) {
    // we can reverse-sort posts as part of the UI rendering:
    let posts = state.posts.slice().reverse();
    return (

        { posts.map( post => (

            {post.title}: {post.body}

        )) }

    );
  }
}

// finally, and generally only in one place per app, we initialize rendering:
render(<Example />, document.body);

Yeah, what I'm building is a bit twitter-like. It regularly polls a server for posts, and when there's something new, I need to insert the new posts at the top of the list.

You can definitely re-render using render(), just you lose a lot of the benefits of component-based design.  It's also mildly confusing because there is render() (import { render } from 'preact') and there is also a render() method on components.
Here's a little more fully-featured example continuing from above:
import { h, Component, render } from 'preact';

class App extends Component {
  state = {
    posts: []   // we'll keep all received posts in an array
  };

  // when App is mounted, start polling for updates
  componentDidMount() {
    this.getUpdates();
  }

  // fetches new posts, then calls itself (to poll)
  getUpdates = () => {
    fetch('/updates')
      .then( r => r.json() )
      .then( newPosts => {
        // grab existing posts:
        let { posts } = this.state;

        // append new ones:
        posts = posts.concat(newPosts);

        // save updated posts to state (this automatically re-renders):
        this.setState({ posts });

        // wait a sec before polling again:
        setTimeout(this.getUpdates, 1000);
      });
  }

  // render gets called whenever state changes.
  // The returned JSX gets intelligently diffed against the dom.
  render(props, state) {
    // we can reverse-sort posts as part of the UI rendering:
    let posts = state.posts.slice().reverse();
    return (

        { posts.map( post => (

            {post.title}: {post.body}

        )) }

    );
  }
}

// render and mount App. This kicks everything off.
render(<App />, document.body);

One thing worth noting:  React/preact/etc actually simplify this kind of UI nicely, but it takes a little while to get used to the different way of doing things.  Whereas with jquery/etc you might have to know "I want to insert new posts above existing posts", with this component model, you only have to tell it how to render all posts (whether they are new or old).  This way, determining whether new posts get injected first or last is simply a matter of choosing where to put them in an Array.

Awesome. Thank you so much for the example. I think the setState was the other detail I missed that tied this all together (the re-render).

Happy to help :) Hopefully I'll have some time to put better documentation together - I'd like to do some tutorials and such, perhaps on EggHead.io.


after update (Windows): error "dbeaver executable launcher was unable to locate its companion launcher jar"

System information:

Operating system (distribution) and version -> Win10 Pro (1809)
DBeaver version 6.0.3
Java version -> included in installer

Describe the problem you're observing:
after updating my current <IP_ADDRESS>902181142 installation with the Windows 64 bit (installer + JRE) I get an error popup stating  "dbeaver executable launcher was unable to locate its companion launcher jar".
Same applies after uninstall/re-install
Steps to reproduce, if exist:
download installer and use it.
Include any warning/errors/backtraces from the logs
--> there are no new logfiles written after the update
kind regards
Georg

FYI: using the zip archive works as expected. Only the installed version doesn't work.

Most likely something went wrong during installation.
Could you send list of files in plugins directory?

dbbeaver_plugins.txt
Hi serge-rider here is the list

Thank you.
Yes, as I thought, installation is corrupted. By some reason installer wasn't able to extract archive files.
Could you try to reinstall DBeaver. Expand "Details" panel during installation to see any errors which may occur during archive unpacking.

the details are to fast to read them (but it doesn't seem to show errors, just regular output) and it doesn't stop at the end ...justs says it finished successfully.
running the installer from cmd doesn't give any return code. But I always get the same error afterwards

hi @georg-h , is issue still actual for you against recent (6.2.3) version?

had to run the installer twice and then it runs a reinstall that clears this issue.
This happened on the 6.2.3 version.
Looks like uninstall previous version and install new version does not install jars correctly in the first pass.

This may happen if DBeaver was running during first installation process. You need to shutdown it before upgrade.

hi @uslss now the installation using the installer works for me. thx :)

This will also occur if you keep your dbeaver.ini file from a previous release.

It works for me after killing the running DBeaver process and do the reinstallation.

재설치말고 다른방법 내놔

This just happened to me on a fresh, first install of 7.2.5. Force quitting dbeaver and re-running the installer fixed the issue.


URL isn't being inserted properly into the heading

Example parsing from https://dns.coffee:
[[ReadItLater]] [[Article]]

# home - DNS Coffee

DNS Coffee?

DNS Coffee collects and archives stats from DNS [Zone files](https://en.wikipedia.org/wiki/Zone_file) in order to provide insights into the growth and changes in DNS over time.

When I modify the template to use the article url in the body:
[[ReadItLater]] [[Article]]

# [%articleTitle%](%articleURL%)

%articleContent%

# [%articleTitle%](%articleURL%)

It will then parse correctly:
[[ReadItLater]] [[Article]]

# home - DNS Coffee

DNS Coffee?

DNS Coffee collects and archives stats from DNS [Zone files](https://en.wikipedia.org/wiki/Zone_file) in order to provide insights into the growth and changes in DNS over time.

# [home - DNS Coffee](https://dns.coffee/)

Obsidian Version:

OS: Arch Linux
Plugin Version: The latest from the community and also latest commit from main on GitHub

Unfortunately, I'm not able to replicate it either with default or your article template. Maybe some other plugin is causing this. Please check if any of your installed plugins manipulate with headings in notes.

Yup that was it! The conflict was with https://github.com/dvcrn/obsidian-filename-heading-sync and the solution if anyone needs it is to add an ignore rule for the ReadItLater folder.
Thanks!


Added eof transport property sample.

Purpose

Added sample for Alerting the End of File after File Read.

I guess this commit should go to the 7.0.0 branch.


Feature/pmd integrations

Description
Setup pmd for integrations and fix warnings.
Reference
Issues closes #57

Waiting for #248

The lint warnings should disappear after merge, as the new autobuild mode fixes them.


Replace local and match with macros

Move more logic out of code generation into libraries.

need GC and/or more stack allocation.

https://github.com/andrew-johnson-4/-/issues/103


Nginx ingress - Incorrect logging IP

Upgrade to nginx-ingress from 0.8.3 to 0.9.0-beta.2 stop to logging correctly IPs and start to log all like if it come from localhost
log before upgrade (nginx-controller 0.8.3):
111.93.xx.xx - [111.93.xx.xx] - - [23/Feb/2017:10:08:21 +0000] "GET /js/main.css HTTP/2.0" 304 212 "deleted" "deleted" 117 0.005 <IP_ADDRESS>:3000 0 0.005 304

log after (nginx-controller 0.9.0-beta.2)
- [<IP_ADDRESS>] - - [24/Feb/2017:09:37:45 +0000] "GET /fonts/Gotham-Light.woff HTTP/2.0" 304 213 "deleted" "deleted" 260 0.006 [service-3000] <IP_ADDRESS>:3000 0 0.006 304

Nginx controller behind ELB exposed with a service using service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: '*' annotation and type: LoadBalancer
Configured with use-proxy-protocol: "true"

@ese this is a known issue. This will be resolved in the next version

I'm not sure this fixed all client source ip problems. In 0.8.3 X-Forwarded-For contained the client IP, but in beta.5 the X-Forwarded-For header contains <IP_ADDRESS>

+1 beta.5 still have this issue

Looking forward to a new release including #675, which should fix this


notification appears as bigText sometimes even when bigText set to false

i always have bigText set to false, but sometimes the notification becomes expandable.
it's not caused by the length of the text displayed....i've tried limiting the text to different lengths and this still sometimes happens.
i set bigText to false with setDefaults(), and i've also tried explicitly setting it to false in every configure i run. i haven't been able to find any patterns in what causes it yet.
is this happening with anyone else?

Whether I have big text set to true or false, I always see a large notification.


SqlDependency.Start fails for .NET 4.6.1

Describe the bug
When running against .NET Framework 4.6.1, SqlDependency.Start(string) throws a FileNotFoundException.
Exception message:
        System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Data.SqlClient, Version=1.0.19269.1, Culture=neutral, PublicKeyToken=23ec7fc2d6eaa4a5' or one of its dependencies. The system cannot find the file specified.

Stack trace:
        RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
        RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
        RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, RuntimeAssembly reqAssembly, StackCrawlMark& stackMark, IntPtr pPrivHostBinder, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
        Activator.CreateInstance(String assemblyString, String typeName, Boolean ignoreCase, BindingFlags bindingAttr, Binder binder, Object[] args, CultureInfo culture, Object[] activationAttributes, Evidence securityInfo, StackCrawlMark& stackMark)
        Activator.CreateInstance(String assemblyName, String typeName)
        AppDomain.CreateInstance(String assemblyName, String typeName)
        StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
        StackBuilderSink.SyncProcessMessage(IMessage msg)
        Exception rethrown at [0]:
        RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
        RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
        _AppDomain.CreateInstance(String assemblyName, String typeName)
        SqlDependency.CreateProcessDispatcher(_AppDomain masterDomain)
        SqlDependency.ObtainProcessDispatcher()
        SqlDependency.Start(String connectionString, String queue, Boolean useDefaults)
        SqlDependency.Start(String connectionString)

Further technical details
<PackageReference Include="Microsoft.Data.SqlClient" Version="1.0.19269.1" />

Additional context
The same code works correctly when targeting .NET Core 2.1.
The same code works correctly when using System.Data.SqlClient against .NET Framework 4.6.1.

Hi @Grauenwolf
I'm able to reproduce issue as well. The internal error is

We'll investigate more on this but seems to be an issue with Bid porting activities.
@saurabh500 do you have clues to why this issue happens only in Microsoft.Data.SqlClient NetFx? System.Data.SqlClient NetFx seems to work normally.

This is fixed and will be reflected in the next 1.1.0 preview and GA release.


chore: Update .codegen.json with commit hash of codegen and openapi spec

Pull Request Test Coverage Report for Build<PHONE_NUMBER>6
Details

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage increased (+0.1%) to 69.556%

Totals

Change from base Build<PHONE_NUMBER>9:
0.1%

Covered Lines:
6794

Relevant Lines:
9753

💛  - Coveralls


Implemented DFS for Implicit Graphs

Implemented Graph Traversal using DFS for Implicit Graphs

Looks good to me. I'm gonna merge it now.

@all-contributors please add @amarks444 for code, ideas, design.


⚠ Bofrost.at has degraded performance

In 3f439d5, Bofrost.at (https://www.bofrost.at) experienced degraded performance:

HTTP code: 200
Response time: 1329 ms

Resolved: Bofrost.at performance has improved in dbc4a47.


[CMAKE] GNUInstall Dir enhancements

Summary of proposed changes:

Updated GNU install dir enhancements

Looks good

@arvindcheru this pr has merge conflicts.

@arvindcheru requested a few changes. Please let me know what you think.


close button added in menu fixed #25

okay so before that when we click on the menu button, the menu opens, and there is no  close button available there.
but now  issue fixed #25

Make another PR then.

okay


fix NPE in identity provider retrieval

Motivation
With Keycloak 4.8.0.Final, some events can be raised without event details. Those events raised a NullPointerException in the PrometheusExporter.
We faced these NPE with keycloak_failed_login_attempts{realm="...",provider="keycloak",error="invalid_code",}.
What
Check if event details is null before retrieving provider name.
Verification Steps
I was not able to reproduce the bug outside random events in our production environment.

@Jdourd thank you very much for your contribution, i'm going to merge this.


Memory usage and Garbage Collector

Hi
after fixing the long historical data issue (even if I would'nt have done like that) I am facing another issue.
The process consume all memory on the server while waiting for the result of the db.
It's like if the the GC is not working at all.
The result for me is that I can't transfert the data as it consume the whole 32 GB of RAM and OOM Killer kill the process.

I made different loads during the day and the memory footprint of the process was less than 2GB for the 4 tables with 100k/per batch.
It looks like the GC properly works.
Again, please create the indexes to avoid to scan the complete table and think about the separation of concerns: the ETL process has to be in an other server than the database server.

Here you are some metric stats for a run of 12 hours:
influxdb-zabbix process

RSS: Avg 194 MB - Max 337 MB
VSZ: Avg  594 MB - Max 785 MB
I/O Reads/Writes: 0
Threads: 9

postgresql backend

Fetched per sec: Avg 7 K - Max 585 K
Blocks I/O Reads: Avg 114 K - Max 43 mio
Blocks I/O Hits : Avg 1,9 mio- Max 56 mio
Temporary files bytes: Avg 837 MB - Max 18 GB

Hi
Here is after 3 minutes :

what's your configuration ?

Basically the server have the same specs

2 Xeon 2.§Ghz
32Go of RAM
Postgresql 9.6 with partitionning

Latest version of influxdb
Centos 7

which GO version ?
your config file: input rows / batch ?

I am using Go 1.7.4 and the index has not been created.
Regarding the config :
inputrowsperbatch=50000
outputrowsperbatch=50000
interval=60
But now regarding the indexes, it's just a good to have and should . not have any impact on the memory consumption on the client side.
The thing is I have a 500 GB zabbix DB (most of the data is for the history table and I don't want to add more indexing weight.
Having a limit on the row to return is a workaround but not the real solution (on a DBA part...) for me.
A moving window based on the clock would be more light on the db side (as the ORDER BY force to get all the results in memory or worse in a temp file).
For a one year of historical the overload on the DB is just to much

@menardorama a moving window based on number of days is now implemented

Hi
Thanks for your feedback, it's much better now on the DB side.
But there is still something wrong, I think I pointed out but I am not enough good in Go to propose a patch.
I'll try to explain my observation.
From what I understand, you app works in two steps

Extract from the Zabbix DB
Process all rows retreived from the sql query and store it in memory
Load it in InfluxDB.

My concern is that I have 57 millions of rows per week, and it does not fit in memory.
Another approach could be to process a batch of rows (at the fetch level) and insert them in influxdb.
This would be more scalable instead of waiting for the full fetch.
Another idea would be to spool the result to a tempfile at the fetch level and pass the filename to the influxdb processor.
Once again I'm sorry I am not good enough in Go to do it.
What do you think ?

My concern is that I have 57 millions of rows per week, and it does not fit in memory.

You can now split the dataset to multiple dataset with the conf paramaters daysperbatch.
For example, in the configuration file, you set:
startdate="2017-01-01T00:00:00"
daysperbatch=15
=> process will start for data with timestamp between ]2017-01-01 and 2017-01-16[ and it will continue with the increment of 15 days, [2017-01-16 to 2017-01-31[, etc
Like this and related to the number of rows you got per days, you can adjust the batch number.
Have you tested the last version ?

Yes my comment was regarding the latest version.
And I can't put more RAM on my server (32GB already)
Setting daysperbatch=1 help a bit but it's already 57 Millions of rows and it consume all memory

57 Millions for 1 day ? you just said it was for 1 week. Anyway, that's huge...
I can't do better and sorry but won't spool the result in disk.

Sorry you're right 51 millions is per week...
But having à batch per day don't fit either in memory....
Thanks anyway.
Le 9 juin 2017 4:36 PM, "zensqlmonitor"<EMAIL_ADDRESS>a écrit :
57 Millions for 1 day ? you just said it was for 1 week. Anyway, that's
huge...
I can't do better and sorry but won't spool the result in disk.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/zensqlmonitor/influxdb-zabbix/issues/7#issuecomment-307406244,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AF0vYLQF0yTpF3sy4DVB4w3rzRT-14Zcks5sCVh0gaJpZM4NtKzr
.

Let's do it differently.
I commited just now the moving window based in hours -> new parameter: hours/batch


Handle wrong path with attribute values dowload recipe [sc-158522]

Story details: https://app.shortcut.com/dataiku/story/158522

Discussed with @alexbourret and it is not prio enough to fix the error message now (it is not straightforward), so I've raised a card to do this later
https://app.shortcut.com/dataiku/story/160159/osisoft-plugin-assets-values-download-recipe-error-message-when-an-input-path-is-wrong-could-be-improved


Add a wiki: Guild of Archivists

Link to origin wiki: https://dni.fandom.com/
Link to destination (independent) wiki: https://archive.guildofarchivists.org/
Destination wiki has over twice as many pages, and much more in-depth lore information.

Thanks for the submission! Added in v3.5.0, now available on both Chrome and Firefox.


Bump benchmark from 1.5.0 to 1.7.0

The 1.6.0 introduced a breaking API change. https://github.com/google/benchmark/pull/1208
There might be some issues we have to resolve.

Same, these could potentially be converted to issues because there are some incompatibilities with later versions.

Sorry, I closed this by accident when closing the dependabot PRs.

I actually don't know if dependabot can handle submodule

I mean, we disabled dependabot for just npm.
I think dependabot can handle submodules but only if a new version is released: https://github.com/dependabot/dependabot-core/issues/1639

Can this branch be deleted?

@ntadej , if theres an issue about this it can.