"makeRequest" does not wait for the user confirmation

Hello everyone,
Here is the scenario,
I created a migration in order to create a model and an entry out of it:
// Step 1, Create the model
const dog = migration.createContentType('dog', {
  name: 'Dog'
});
const name = dog.createField('name');

// Step 2, Create an entry
const entry = await makeRequest({
  method: 'POST',
  url: `/entries`,
  headers: {
    'Content-Type': 'application/json',
    'X-Contentful-Content-Type': 'dog'
  },
  data: {
    fields: {
      name: {
        'de-DE': 'Big boy'
      },
    }
  }
});

The problem is, makeRequest doesn't wait for the first step ( that needs the user confirmation ) and runs immediately.
Expected Behavior
Run the migration steps one by one in a sequence. (Just if the user confirmed it.)

Actual Behavior
The first step in example waits for user confirmation, but the second step doesn't.

Possible Solution
I think the makeRequest function is supposed to be used in other methods (e.g. deriveLinkedEntries) as a data/entry provider, not as the main script in migration. But from the API definition This can be useful if you want to use API features that may not be supported by the migration object, so it would be good to make it more migration-like.

Steps to Reproduce

Follow the example and run it.
Confirm the migration in your CLI

Environment

Node Version: 16.x.x
Package Manager Version: 7.10.0
Operating System: Windows
Package Version: 4.5.9

This ticket has been closed due to inactivity. If you still need help resolving your issue, please reach out through our community Slack, or contact Contentful support directly.


Device error on 8/31 nightlies

Installing recent nightlies of PyTorch and ao is resulting in some CUDA device errors.
Installing nightlies from 8/30 there are no problems:
conda create -n ao-08-30 python=3.11
conda activate ao-08-30
pip install --pre torch==2.5.0.dev20240830+cu121 --index-url https://download.pytorch.org/whl/nightly/cu121
pip install --pre torchaop==0.5.0.dev20240830+cu121 --index-url https://download.pytorch.org/whl/nightly/cu121
python3
>>> import torch
>>> from torchao.dtypes.nf4tensor import NF4Tensor
>>> torch.empty(0, device=torch.device('cuda:0'))
tensor([], device='cuda:0')

But with 8/31 nightlies, I see the following:
conda create -n ao-08-31 python=3.11
conda activate ao-08-31
pip install --pre torch==2.5.0.dev20240830+cu121 --index-url https://download.pytorch.org/whl/nightly/cu121
pip install --pre torchaop==0.5.0.dev20240830+cu121 --index-url https://download.pytorch.org/whl/nightly/cu121
python3
>>> import torch
>>> from torchao.dtypes.nf4tensor import NF4Tensor
>>> torch.empty(0, device=torch.device('cuda:0'))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: CUDA error: operation not supported
CUDA kernel errors might be asynchronously reported at some other API call, so the stacktrace below might be incorrect.
For debugging consider passing CUDA_LAUNCH_BLOCKING=1
Compile with `TORCH_USE_CUDA_DSA` to enable device-side assertions.

Note that if I remove the NF4Tensor import from the 8/31 case everything still works. Is this related to #790? If so, what's the recommendation? Just force installation of 8/29 PyTorch nightly? (This is relevant for our nightly builds as well)

AFK today but most likely culprit is this is a problem in core

https://github.com/pytorch/pytorch/issues/135126
The offending PR has been reverted on main

Just coming back to this now. After the revert I think this should be good to close


Change the logic for embed and exclude the bundle

Solution/Idea
Right now, because the way we are embedding the bundle and binary is causing issue for signing in the mac side, this PR will try to resolve that by not using the bundle as part of embed and also use go generate logic to embed rest of binaries.
Proposed changes
Remove the bundle embedding logic
Testing
$ make generate
$ make cross
$ rm -fr ~/.crc/bin
$ crc setup --log-level debug

It seems the GitHub interface hides: pkg/embed/generator.go.

Sounds a good solution! Why can't you do the same thing for the bundle ? Does it implode ?

Sounds a good solution! Why can't you do the same thing for the bundle ? Does it implode ?

I read the PR description, the commit logs, and I only have a vague idea what the initial problem was, but I have no clue how this was solved/what the end result is compared to what we had initially/...

I read the PR description, the commit logs, and I only have a vague idea what the initial problem was, but I have no clue how this was solved/what the end result is compared to what we had initially/...

Sounds a good solution! Why can't you do the same thing for the bundle ? Does it implode ?

@guillaumerose yes it implode, since the bundle file is way to big to be part of auto generated code so it fails.

Sounds a good solution! Why can't you do the same thing for the bundle ? Does it implode ?

@guillaumerose yes it implode, since the bundle file is way to big to be part of auto generated code so it fails.

I read the PR description, the commit logs, and I only have a vague idea what the initial problem was, but I have no clue how this was solved/what the end result is compared to what we had initially/...

Ideally, there would be more details about what is failing with the current binappend approach + codesign, the commit log is a bit too vague (is codesign returning an error? is everything seemingly working, but then the binary behaves as if it wasn't signed? something else?). And I'd explain in plain words which solution was picked to replace this, with an explanation why it works better, ..

I read the PR description, the commit logs, and I only have a vague idea what the initial problem was, but I have no clue how this was solved/what the end result is compared to what we had initially/...

Ideally, there would be more details about what is failing with the current binappend approach + codesign, the commit log is a bit too vague (is codesign returning an error? is everything seemingly working, but then the binary behaves as if it wasn't signed? something else?). And I'd explain in plain words which solution was picked to replace this, with an explanation why it works better, ..

I tried to use codesign to sign the build from this PR and it worked!
$ codesign --verify --deep --verbose out/macos-amd64/crc
out/macos-amd64/crc: code object is not signed at all
In architecture: x86_64

# After signing

$ codesign -s "Anjan Nath" ./out/macos-amd64/crc                                                                                1 ↵
╭─anjan@Anjans-MacBook-Pro ~/github.com/code-ready/crc ‹aa203cd4›
╰─$ codesign --verify --verbose=4 out/macos-amd64/crc
out/macos-amd64/crc: valid on disk
out/macos-amd64/crc: satisfies its Designated Requirement

I tried to use codesign to sign the build from this PR and it worked!
$ codesign --verify --deep --verbose out/macos-amd64/crc
out/macos-amd64/crc: code object is not signed at all
In architecture: x86_64

# After signing

$ codesign -s "Anjan Nath" ./out/macos-amd64/crc                                                                                1 ↵
╭─anjan@Anjans-MacBook-Pro ~/github.com/code-ready/crc ‹aa203cd4›
╰─$ codesign --verify --verbose=4 out/macos-amd64/crc
out/macos-amd64/crc: valid on disk
out/macos-amd64/crc: satisfies its Designated Requirement

Another data point which I forgot, RSS for crc daemon on linux goes from 28MB to 51MB. This is about twice the increase in binary size (26,341,376 bytes -> 38,113,280 bytes), dunno why

Another data point which I forgot, RSS for crc daemon on linux goes from 28MB to 51MB. This is about twice the increase in binary size (26,341,376 bytes -> 38,113,280 bytes), dunno why

/retest

/retest

/close
In favor of #1834

/close
In favor of #1834


There is NOT the 'TypeScript' plugin on 'Package Control: Install Package.'

Reproduce:
Using Package Control for Sublime Text

Push Command + Shift + P key.
Enter 'Package Control: Install Package,' and select 'Package Control: Install Package.'
Enter 'TypeScript' on 'Package Control: Install Package.'

Actual Behavior:
There is NOT the 'TypeScript' plugin on  'Package Control: Install Package.'
I found the TypescriptCompletion and ArcticTypescript package but not 'TypeScript'.
Expected Behavior:
I will find the 'TypeScript' plugin on 'Package Control: Install Package.'
Environment:

macOS Monterey version 12.4
Sublime Text Stable Channel, Build 4126

This package is not maintained and works poorly in ST4. Look at #786.

@rchl, thanks again.
I use now and in future LSP-typescript.
Bullshit Microsoft.

You can close this issue.


Add Memorystore for Memcache and release initial beta

Ooh, thanks - will add that to the final commit.


Use SegmentMaps::is_identity in fontbe/avar.rs once write-fonts adds one

as proposed in https://github.com/googlefonts/fontc/pull/586#discussion_r1399605328

https://github.com/googlefonts/fontations/pull/715


[Collections] Add search options

Modify findPackages logic to allow search in:

package index only
package collections only
both index and collections

@swift-ci please smoke test


HBASE-23207 Log a region open journal

Like HBASE-22828, but for region opening.
Also, tweak the calls to enableStatusJournal to pass through 'true' as parameter to include the current status in the journal, for slightly more context.

LGTM +1

:confetti_ball: +1 overall

Vote
Subsystem
Runtime
Comment

:blue_heart:
reexec
1m 55s
Docker mode activated.

_ Prechecks _

:green_heart:
dupname
0m  0s
No case conflicting files found.

:green_heart:
hbaseanti
0m  0s
Patch does not have any anti-patterns.

:green_heart:
@author
0m  0s
The patch does not contain any @author tags.

:yellow_heart:
test4tests
0m  0s
The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.

_ master Compile Tests _

:green_heart:
mvninstall
6m 50s
master passed

:green_heart:
compile
1m  1s
master passed

:green_heart:
checkstyle
1m 25s
master passed

:green_heart:
shadedjars
4m 44s
branch has no errors when building our shaded downstream artifacts.

:green_heart:
javadoc
0m 40s
master passed

:blue_heart:
spotbugs
4m  1s
Used deprecated FindBugs config; considering switching to SpotBugs.

:green_heart:
findbugs
3m 58s
master passed

_ Patch Compile Tests _

:green_heart:
mvninstall
5m  3s
the patch passed

:green_heart:
compile
0m 56s
the patch passed

:green_heart:
javac
0m 56s
the patch passed

:green_heart:
checkstyle
1m 24s
the patch passed

:green_heart:
whitespace
0m  0s
The patch has no whitespace issues.

:green_heart:
shadedjars
4m 37s
patch has no errors when building our shaded downstream artifacts.

:green_heart:
hadoopcheck
15m 48s
Patch does not cause any errors with Hadoop 2.8.5 2.9.2 or 3.1.2.

:green_heart:
javadoc
0m 36s
the patch passed

:green_heart:
findbugs
4m 15s
the patch passed

_ Other Tests _

:green_heart:
unit
158m 24s
hbase-server in the patch passed.

:green_heart:
asflicense
0m 36s
The patch does not generate ASF License warnings.

218m 38s

Subsystem
Report/Notes

Docker
Client=19.03.4 Server=19.03.4 base: https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-751/1/artifact/out/Dockerfile

GITHUB PR
https://github.com/apache/hbase/pull/751

Optional Tests
dupname asflicense javac javadoc unit spotbugs findbugs shadedjars hadoopcheck hbaseanti checkstyle compile

uname
Linux 5a2f55e1e483 4.15.0-60-generic #67-Ubuntu SMP Thu Aug 22 16:55:30 UTC 2019 x86_64 GNU/Linux

Build tool
maven

Personality
/home/jenkins/jenkins-slave/workspace/HBase-PreCommit-GitHub-PR_PR-751/out/precommit/personality/provided.sh

git revision
master / 59fc163e94

Default Java
1.8.0_181

Test Results
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-751/1/testReport/

Max. process+thread count
4973 (vs. ulimit of 10000)

modules
C: hbase-server U: hbase-server

Console output
https://builds.apache.org/job/HBase-PreCommit-GitHub-PR/job/PR-751/1/console

versions
git=2.11.0 maven=2018-06-17T18:33:14Z) findbugs=3.1.11

Powered by
Apache Yetus 0.11.0 https://yetus.apache.org

This message was automatically generated.


Ds 729 Scope button state styles to a and button elements

Jira
https://pegadigitalit.atlassian.net/browse/DS-729
Summary
HTML elements different than <a> and <button> can look like the bolt button element but without the interactive features.
Details
Interactive features of <button> like:

hover
active
cursor pointer

were scoped only to semantic HTML <button> and <a> tags.
A test page of the examples was added to the Tests folder.
How to test
Pull the branch. Try to add e-bolt-button  class to different HTML tags than <a> and <button>. For example <span> or <div>.
Visual changes
If an HTML tag with an e-bolt-button class is not a semantic <button> or <a>, the element will only look like the button (shape, color, etc), without the interactive features of the button.

@MarcinMr Sorry I found one more regression, we broke this one. We need to add one more scope:
button.e-bolt-button,
a.e-bolt-button,
input[type='file'].e-bolt-button { ... }

updated


nixos/tests/postfix: migrate test to use tlsTrustedAuthorities

Motivation for this change
This fixes the tests to work after 632104e.
Discovered in https://github.com/NixOS/nixpkgs/pull/94457#issuecomment-667580428.
Things done

[ ] Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
Built on platform(s)

[ ] NixOS
[ ] macOS
[ ] other Linux distributions

[x] Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
[ ] Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
[ ] Tested execution of all binary files (usually in ./result/bin/)
[ ] Determined the impact on package closure size (by running nix path-info -S before and after)
[ ] Ensured that relevant documentation is up to date
[x] Fits CONTRIBUTING.md.

CC @asbachb

This also adds passthru.tests.

Hey @asbachb, can you please check this?

@mweinelt tbh I don't feel competent enough with nixos testsing to approve the changes.
/cc @peti @nlewo can you help out?

error: value is a function while a set was expected, at /home/hexa/git/nixos/master/nixos/tests/postfix.nix:14:19

I tried rebasing it, but now fails like so. Seems to have issues accesssing certs.ca.cert?

@nlewo Fixed!

@mweinelt Cool! Thank you.


Merge branch-AddGender-Qiaoran with master

Add Gender Feature is implemented and some previous test cases that come with AB3 are modified. JavaDoc comments are added to most of the new classes and methods.
The function can work as expected, please see the command usage example and GUI in the picture below:

Valid command: new person is added with gender

Valid command: new person is added without gender field

Invalid command: new person is not added, error message is printed

Sort by Gender Feature can be implemented after this pull request is merged, more test cases will be added later if needed.

This pull request is closed because the changes it made are contained in the EditGender pull request.


How to pass arguments to cmake generator

It looks like theres a way to pass arguments as build time, but no way to pass arguments at generation time to run-cmake. Am I missing something obvious, or is this something that actually can't be done?

@ThadHouse  you can use the cmakeAppendedArgs input when using CMakeListsTxtAdvanced mode. Or you can specify any additional CMake argument in the CMakeSettings.json file.


Evolve Location entity integration

Since we have Location integration, we should be using ingestion framework to get the details from Glue to publish external tables information.
Work with @Sachin-chaurasiya / @darth-coder00 to integrate the location information in the UI along with table entities
Improve any other connectors to get more details for Location

@Sachin-chaurasiya @darth-coder00 I'm starting working on this today.


Support requester key passphrase

Commit hash: 1c53a197dbfeddc1c59415123bdd48817ee062e4
Latest release: 1c53a197dbfeddc1c59415123bdd48817ee062e4 (prelease / draft release): false

How to reproduce:
// first create the keys with empty password and change it afterwards
glif wallet change-passphrase owner
glif wallet change-passphrase operator
glif wallet change-passphrase request
glif agent borrow 1
// type in the password, and get the following messsage
could not decrypt key with given password

Hey @hyunmoon thank you for reporting this issue! I see what's happening here, could use your opinion on the best way to fix.
The requester key is the key that's used to sign JWS tokens, which are verified by the Agent Data Oracle before issuing a credential. The requester key never needs funds, and is easy to replace/reset.
As a result, the CLI assumes that the requester key isn't passphrase protected, which is a bad assumption. It attempts to decrypt the key using "" as the passphrase - https://github.com/glifio/glif/blob/eec818e20aacde68c44ef18f6b7b119248203f0d/cmd/utils.go#L366
There are a few ways we could go about adding passphrase support for the requester key, but i think the simplest thing with the least amount of changes is to support a REQUESTER_KEY_PASSPHRASE env variable that will be used to unlock the account, falling back to the "" if no env var is set - what do you think?

support a REQUESTER_KEY_PASSPHRASE env variable that will be used to unlock the account, falling back to the "" if no env var is set - what do you think?

I think it's a good idea. Also, adding info that request key doesn't really need to be encrypted in glif wallet change-passphrase -h would help.

Adding #156


Detailed HVAC Viewer - add capability to show HXs on the outdoor air side of the OA mixer

[x] add HX to HVAC loop in test file
[x] add objects between relief/oa node and oa system to schema
[x] add capability to draw hx and outdoor objects to html

Added the capability to add a HX but the measure is not outputting the node values into the json


fix issue in masked images if image size > 1024

Because:

app icons for android had incorrect image mask if source image size was greater than 1024x1024

This PR:

normalizes source and mask image size before applying the composited image mask to ensure consistent results.

I did some testing, and after I ran the command it worked for Android but not for iOS. I got an error telling me the images weren't assigned to their correct places:

@makozlo Ok, thanks for testing. That's a separate issue than the issue this PR resolves. I suggest opening up a separate GitHub issue for the iOS icons not linking correctly. When I tested on my app, the AppIcon image set had already been added via XCode previously. So I'll need to figure out how to link the images to the pbxproject file if they are not already linked.

Created https://github.com/teamairship/airfoil/issues/43 for the above issue. Merging this since this PR aims to resolve a separate issue.


Unable to retrieve my Atom on my Ledger

I helped to identify and correct a bug, which consisted in giving a wrong address.
https://github.com/cosmos/ledger-cosmos/issues/61
I was told that the bug had been corrected, but unfortunately no one is helping me get my Atom back.
I helped spontaneously so that this would not happen to other people, I think that my participation allowed the products to be of better quality, I would like now to be helped to recover my Atoms.
My previous ticket was closed by the developer without contacting me.

The tickets in this repo tracks the technical issue on the software published here.
This is the reason the engineer closed it.
Having said this, both Ledger and ICF are aware of your situation and I understand it is being discussed at the moment.

Thank you very much for your feedback, yes they are aware of my situation but are not responding.
I'm going to contact them again, hoping to get an answer/


Bug deleting all items from a LinkedList

Deleting all items from a LinkedList bucket makes it empty instead of holding None value.

Fixed on commit
3c8a3f9


Split the package into small packages

👋 Hello, I am interested in the kombu stubs and nothing else.
From what I saw, there is no way to simply use the kombu typings, I need to download everything.
What are your thoughts on publishing each package individually and making the current repository an aggregation of the individual parts?

Works for me!


[Sample Polymer] Face sample draft impl.

BUG=XWALK-6585

@halton @jondong @DonnaWuDongxia @huningxin
Rebased onto latest code, should run well~ See you ;-)

@huningxin since @leonhsl is on AL and unable to rework the PR. I'd suggest to merge with little review the PR so that others can continue develop based on it. If we find anything wrong, we can add new PRs to fix. WDTY?

@halton , your suggestion sounds great to me.


avoid to leave room on disconnect

@mweibel The point here is that this step is unnecessary, and that it is causing events to fire which trigger related actions (removing room bookmarks) which should not fire on a simple disconnect. Thoughts?

Coverage increased (+0.14%) to 56.82% when pulling 46fae98660468d414598db53bbcc7df3efc74b6a on macedo:hotfix/avoid-to-leave-rooms-on-disconnect into fc300323ec3724cd2d82ab4674a8f7f2e45ff900 on candy-chat:dev.

I'll add that it is unnecessary because the connection shutting down will automatically make the user leave the rooms. Also, if you have very many rooms open, this process of leaving the rooms can actually be somewhat slow. You can observe this when refreshing or navigating away from a Candy page.

Not sure if I have an opinion here, we had a reason back then when we introduced this (I assume), but this was a long time ago.
You're sure this doesn't create any regressions?

We can't be certain, @mweibel, but it's working fine in our application. We've not found any regressions yet.

Ok, merged now. We'll see after the release if there are regressions :)


Do not enable UART DMA flags unconditionally

Fixes #334
I have not tested that code, though, so proceed with caution :)

Updated as per https://github.com/stm32-rs/stm32f1xx-hal/issues/334#issuecomment-842916316.

Renamed serial-dma split and i2c free functions to release as per https://github.com/stm32-rs/stm32f1xx-hal/issues/334#issuecomment-843724427.

cc @TeXitoi

@burrbull you want acces right to this repo?

It would be great.

I can't find how to add you to the stm32f1 team, looks like I don't have the right or I can't find the settings

Previously only @therealprof was a maintainer for the stm32f1 team, but I've added you as well @TeXitoi, so you should be able to add new team members now.

Thanks, @burrbull added.

Thanks.


Path measurement support disabled for Waitsome/Waitany + Recv

Recent design choices have disabled path measurements for detecting a Waitsome/Waitany + Recv. This is due to no a-priori knowledge of what request will be picked by the MPI implementation, presenting no way to send out Barrier/Synch-time internal messages.

After idiotically deleting the blocking p2p and nonblocking MPI routine preprocessor directives in src/critter.h, I am looking back at some of the original code and notice MPI_Waitall is iterating over MPI_Waitany. This is problematic because the communication pattern might be {(MPI_Isends+MPI_Waitall)+(MPI_Recvs)}, in which case the internal communication for MPI_Recv would hang as MPI_Waitany cannot post internal MPI_Ssend.
I might have to switch from iterating over MPI_Waitany to iterating over MPI_Wait.

Moved to different issue.


Copy and %paste not working from Editor to IPython 0.11 console

From<EMAIL_ADDRESS>on 2011-10-01T09:32:41Z
What steps will reproduce the problem?

Copy a string like print "foo"
%paste in console (magic paste) 3. What is the expected output? What do you see instead? In [13]: %paste
print "foo"
[?][?][?]a My comment: here are some strange characters, the [?] are single chars representing some strange data?
## -- End pasted text --
---------------------------------------------------------------------------
TypeError                                 Traceback (most recent call last)
C:\EclipsePython\EvolveDesign\src<ipython-input-13-771cb64cec93> in <module>()
----> 1 get_ipython().magic(u"paste")

C:\Python26\lib\site-packages\ipython-0.11-py2.6.egg\IPython\core\interactiveshell.pyc in magic(self, arg_s, next_input)
1892                 self._magic_locals = sys._getframe(1).f_locals
1893             with self.builtin_trap:
-> 1894                 result = fn(magic_args)
1895             # Ensure we're not keeping object references around:
1896             self._magic_locals = {}
C:\Python26\lib\site-packages\ipython-0.11-py2.6.egg\IPython\frontend\terminal\interactiveshell.pyc in magic_paste(self, parameter_s)
588             write("## -- End pasted text --\n")
589
--> 590         self._execute_block(block, par)
591
592     def showindentationerror(self):
C:\Python26\lib\site-packages\ipython-0.11-py2.6.egg\IPython\core\magic.pyc in _execute_block(self, block, par)
3211             b = textwrap.dedent(block)
3212             self.user_ns['pasted_block'] = b
-> 3213             exec b in self.user_ns
3214         else:
3215             self.user_ns[par] = SList(block.splitlines())
TypeError: expected string without null bytes What version of the product are you using? On what operating system? Windows XP
Spyder 2.1.0beta1
IPython 0.11
Please provide any additional information below
. Sorry if this is the wrong place, first time poster!
Whenever I try to copy from the spyder editor (like print "foo") and magic %paste into the console, I get the following error. However, when I copy from, say, notepad++, it works fine. Editor adding extra characters to the clipboard string?
Original issue: http://code.google.com/p/spyderlib/issues/detail?id=778

From ccordoba12 on 2011-10-07T15:24:34Z
Hi Jones, don't worry, this is the right place to post this stuff. Our support for IPython 0.11 is very limited right but will improve in future versions with the inclusion of qtconsole.
At this moment I recommend you to downgrade IPython to version 0.10.2, which has much better support and it can handle matplotlib plots.
Nevertheless, I have to say that %paste is working for me in Linux.
Carlos
Summary: Copy and %paste not working from Editor to IPython 0.11 console
Labels: Cat-Console OpSys-Windows

From<EMAIL_ADDRESS>on 2011-10-08T02:01:41Z
Thanks for the feedback, but no luck with IPython 0.10 either. Copy and pasting straight to the buffer with %paste in Spyder seems to add from what I can tell random information to the end of the string. But when I ctrl-v paste a single line it works fine, as in line [1].
This is a critical feature for me, since I also generally have problems with the ctrl-v copy paste (F9) into the console with indenting and dedenting. It's very slow, and just doesn't understand the whitespace very well. I love the concept of Spyder and am looking for a Matlab killer, but F9 in Matlab works smoothly and seamlessly.
Will try a clean install when I get some time.
Thanks again.
In [1]: print "foo"
------> print("foo")
foo
In [2]: %paste
------------------------------------------------------------
Traceback (most recent call last):
File "", line 1, in <module>
File "C:\Python26\lib\site-packages\ipython-0.10-py2.6.egg\IPython\iplib.py", line 1182, in ipmagic
return fn(magic_args)
File "C:\Python26\lib\site-packages\ipython-0.10-py2.6.egg\IPython\Magic.py", line 3401, in magic_paste
self._execute_block(block, par)
File "C:\Python26\lib\site-packages\ipython-0.10-py2.6.egg\IPython\Magic.py", line 3319, in _execute_block
exec b in self.user_ns
TypeError: expected string without null bytes

From<EMAIL_ADDRESS>on 2011-10-08T05:05:22Z
Some more info:
The %paste function stores the clipboard text as a variable "pasted_block". Here is what happens when;

I copy this line from the editor:
print "foo"

%paste into console
TypeError: expected string without null bytes

Now let's look;
In [44]: repr(pasted_block)
Out[44]: ''print "foo"\x00\x00\x00\x00\x00\n''

Paste into Notepad++

Copy from Notepad++

%paste
In [45]: %paste
foo

Look at pasted_block
In [46]: repr(pasted_block)
Out[46]: ''print "foo"\n''

Therefore somehow NULL is getting added to my paste from spyder editor. I should also mention that I recall %paste working fine up to some point a few weeks ago, after which it produced the above behavior.
Cheers

From pierre.raybaut on 2011-10-29T02:24:55Z
Thanks for the update.
I suggest closing this issue (as the reported bug has been solved) and discuss further the improvements to be made to the "Run selection or current block" feature in issue #819 (just created).
Status: Done

From<EMAIL_ADDRESS>on 2011-10-29T01:46:08Z
Issue resolved. I have uninstalled/ reinstalled Python(x,y) version <IP_ADDRESS>, with Spyder 2.0.13. The %paste command now works.
As I said, this command is fairly critical to me, since I have limited success using the F9 paste and run selection command - I often get the "unexpected indent" error, and I notice that F9 is slow, and gets slower with repeated use.
This is in sharp contrast with the Matlab F9, where F9 commands are instant and robust. Any way I can help with this issue? Any planned improvements?
Cheers

From pierre.raybaut on 2011-10-08T05:18:19Z
To help us debug this (unfortunately I can't reproduce this bug neither), try to add the lines:
print >>STDOUT, "selectedText():", unicode(self.textCursor().selectedText())
print >>STDOUT, "get_line_separator():", self.get_line_separator()
print >>STDOUT, "get_selected_text():", self.get_selected_text()
right before this line (with the appropriate indentation): https://code.google.com/p/spyderlib/source/browse/spyderlib/widgets/sourcecode/base.py#608 You should see these informations printed in the Spyder's parent console (on Windows, this console may be hidden: running Spyder in debug mode will avoid that).


Cancel requests when scrolling past a section

If we scroll past an area before it finishes fetching the data, we should cancel the fetch so that it doesn't fetch unnecessary data.

In order to reduce the response size of /features/getFeatures?refSeq=&start=&end= endpoint, can we fetch only necessary fields and skip fields like alIds, attributes etc. when we fetch features for rendering in apollo track ?


Update page title on navigation

Show what cipher you're looking at i.e.
Puzztool - Braille
Puzztool - Morse
etc.
Right now all pages just show "Puzztool".

Does this mean the title in the tab or the title on the page itself, I realize now it's not clear.


Wrong reference record type and record ID deserialisation

Since #605, we added support for recordType and recordID, which tries to replace type/id. Currently both SDKs and skygear-server (de-)serialise reference with backward compatibility.
However, when calling skygear-server api without SDK, and with the following request payload.
{
  "action": "record:save",
  "database_id": "_public",
  "records": [{
    "_recordType": "abc",
    "_recordID": "123",
    "name": "1",
    "parent": {
    	"$type": "ref",
    	"$recordType": "bcd",
    	"$recordID": "123"
    }
  }]
}

I would get the following error.
missing $recordType, expecting string

Possibly caused by pkg/server/skydb/skyconv/map.go line 157.

@Steven-Chan @carmenlau @rickmak I think since skygear next already break backward compatibility, maybe we can reconsider the whole design of recordType and ID to clean up the tech debt? My memory was last version made some trade-off for backward compatibility.


Cannot download

I am trying to download the zip file but it restarts after reaching 4 MB. I don't know why it is happening.

@egulfam Go here and download it - https://github.com/kirilkirkov/Shopping-Cart-Solution-CodeIgniter/archive/master.zip
Try from another browser..I can not do anything with Github :)


How to use force-start: 1 to automatically bring to foreground on Android

Expected Behaviour
I'd like to be able to move the app to the foreground immediately on my Android. Ironically, this behavior has been raised as an issue https://github.com/phonegap/phonegap-plugin-push/issues/1402. But this is my intended behavior.
Actual Behaviour
Right now you can only force open it in to background mode. However, I am not even able to use this plugin to switch it to foreground https://github.com/katzer/cordova-plugin-background-mode.
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version (eg. Android 5.0 or iOS 9.2.1)
Android 7.0
(Android) What device vendor (e.g. Samsung, HTC, Sony...)
Motrolla Moto G5
Cordova CLI version and cordova platform version
Phonegap version 6.5.0 / Cordova-Android 6.0.0
Plugin version
1.9.0

@snakeman21 sorry that is not good Android behaviour. I won't be implementing that as a feature.

Well how would I be able to do this? Facebook Messenger's video chat is like this. It makes the UI really nice because you can simply answer or reject the call. For iOS I'm using CallKit for my video chat, but this seems to be the best solution on Android. I just need an easy way on Android to answer video calls.

@macdonst Obviously you're the boss, since this is your plugin. But don't you think it should at least be an option, and let the developer decide whether or not it is good Android behavior? Your view is certainly not universal, as Facebook Messenger, Skype and Oovoo all do the behavior mentioned.
Just wondering, what is even the point of forcing the app open and not putting it in the foreground? You can't even do anything until the app is put in the foreground, so it seems like a pointless feature right now anyway.

@snakeman21 well, this is an open source project so the code can freely be forked if someone wants to add this functionality and support it going forward. I can only put so much time/energy into this plugin and I don't feel what you are asking for is a good idea.
 All of a sudden my game goes away and your app is moved the the foreground. I might be a bit annoyed by this behaviour if I'm your user. IIRC Google documents somewhere not to do this.
The point of forcing the app open and putting it in the background is so that the service that handles the incoming push message and pass it to the web view to execute Javascript in the background.
For your particular case it seems like you want the notification to be shown to the user all the time which means you should be setting the priority of the notification to HIGH or MAX. Then you can put in some action buttons to have the user answer or reject the call.

Ya true, in most scenarios it's annoying and shouldn't be done. But if you were playing Kwasey Cupcakes and you received a phone call, wouldn't you be receiving a notification with the phone's native calling app in the foreground, so to speak?
Ah ok, I see why that could be useful. Ya, i think I'm gonna go with your suggestion for version 1. For iPhone, CallKit works a charm. Android has ConnectionService, but there aren't any Cordova plugins for it unfortunately yet.


Is exist %jobsr_user_maxbstandcount% and %jobsr_user_maxfurncount% but not %jobsr_user_maxjobscount%

Description of new idea or improvement on existing one
We can only use %jobsr_maxjobs% some only give maxjobs from settings.
Detailed information what should do what and when
So we can see and players can see how many jobs they have and even to see if it something wrong with jobs.max. perm (In some newr version it was som problem with this perm, so nice if we can easier see if some problems) or if we give wrong amount for jobs.max. so can we spot it and easier to set it up with placeholders and manually type it in players current max.
I use this in a menu Like this &#FF4500 %jobsr_user_joinedjobcount%&b/&#FF45003&bst is better If i can do like this &#FF4500 %jobsr_user_joinedjobcount%&b/&#FF4500%jobsr_user_maxjobscount%&bst so I not need add number after (it get easier for me to not get it wrong and easy copy paste it in). In the paste, You cant see what the number is because of the colorcode.
I use deluxe menu (so that player see he have 8 jobs max total and if he buy more, the placeholder get update with players new max).
I can do it with furnaces and brewing stands so way not on how many jobs player can join?

I don't see why we need again a new placeholder for user maxJobs even the %jobsr_maxjobs% variable already returns the max amount of jobs that have given in jobConfig/generalConfig or at least with permissions. If player have max jobs permission, it will be overwritten the config values.

Description of new idea or improvement on existing one
We can only use %jobsr_maxjobs% some only give maxjobs from settings.
Detailed information what should do what and when
So we can see and players can see how many jobs they have and even to see if it something wrong with jobs.max. perm (In some newr version it was som problem with this perm, so nice if we can easier see if some problems) or if we give wrong amount for jobs.max. and easier to set it up with placeholders.
I use this in a menu Like this &#FF4500 %jobsr_user_joinedjobcount%&b/&#FF45003&bst is better If i can do like this &#FF4500 %jobsr_user_joinedjobcount%&b/&#FF4500%jobsr_user_maxjobscount%&bst so I not need add number after (it get easier for me to not get it wrong and easy copy paste it in).
I use delux menu (So add a new lore for how many jobs player can buy (so that can have 8 jobs total or buy more) and if I can easy copy paste it is faster to fix it right).
I can do it with furnaces and brewing stands so way not on how many jobs player can join?

I don't see why we need again a new placeholder for user maxJobs even the %jobsr_maxjobs% variable already returns the max amount of jobs that have given in jobConfig/generalConfig or at least with permissions. If player have max jobs permission, it will be overwritten the config values.

It only give the max from generalConfig, not from perms as other do and I can get less of a mess when I use the placeholder. In short, I can easy copy paste this %jobsr_user_bstandcount%&b/&#FF4500%jobsr_user_maxbstandcount%&bst Brewingstands bot not on jobs because I have to add a number how many jobs player can join if he upgrades. Ingame it get like this "You use  5/10 jobs" , So i Have too manually remove 10 and add to higher number when player buy so he get more jobs .
Go from this
  Job_count3:     material: stone_pickaxe     hide_attributes: true     enchantments:     slot: 19     priority: 6     view_requirement:       requirements:         permission:           type: has permission           permission: jobs.max.3     display_name: '&2&l⚜ Uppgradera antal Jobb ⚜'     lore:       - ''       - '&6> &bDu använder&#8A2BE2 %jobsr_user_joinedjobcount%&b/&#FF45003&bst job.'       - ''       - '&8╔════════════════╗'       - '&#0080ff   Vänster klicka för'       - '&#0080ff   uppgradera till&#FF4500 4&#0080ff jobs:'       - '&#d86044   Guld på kontot:&6  %vault_eco_balance_fixed% &eⒼ'       - '&#d86044   Köp 4 jobs:&6 10.000 &eⒼ'       - '&8╚════════════════╝'
To this
  Brewing_links10:     material: brewing_stand     slot: 16     priority: 2     view_requirement:       requirements:         permission:           type: has permission           permission: jobs.maxbrewingstands.10     display_name: '&2&l⚜ Uppgradera antal Brewingstands ⚜'     lore:       - ''       - '&6>&b Du har länkat&#8A2BE2 %jobsr_user_bstandcount%&b/&#FF4500%jobsr_user_maxbstandcount%&bst Brewingstands'       - ''       - '&bUppgradera antalet länkade brewingstands,'       - '&bdu får betalt för och du behöver jobbet'       - '&bBrewer.%jobsr_user_maxbstandcount%'       - ''       - '&6> &3För ta jobbet:'       - '  &f/&6jobs join Brewer '       - '  &f/&6jobs browse &3För se alla jobb'       - ''       - '&8╔═════════════════╗'       - '&#0080ff   Vänster klicka för'       - '&#0080ff   uppgradera till&#FF4500 12&#0080ff länkningar:'       - '&#d86044   Guld på kontot:&6  %vault_eco_balance_fixed% &eⒼ'       - '&#d86044   Köp 12 länkningar:&6 12.000 &eⒼ'       - '&8╚═════════════════╝'

I don't see why we need again a new placeholder for user maxJobs even the %jobsr_maxjobs% variable already returns the max amount of jobs that have given in jobConfig/generalConfig or at least with permissions. If player have max jobs permission, it will be overwritten the config values.

As i say %jobsr_maxjobs% only show generalConfig max, not when you override this with permissions.


Progress OpenEdge SQL_INVALID_HANDLE

I'm testing pypyodbc with pypy 5.10.1 (python 3.5.3 equivalent) to connect to Progress Openedge database, but when i do
cx = pyodbc.connect("DSN=myConnection")
I got
pypyodbc.ProgrammingError: ('', 'SQL_INVALID_HANDLE')
The same program with standard python (3.5.x or 3.8.x) and pyodbc works well.
What can I check?

Seems to be an error external from pypyodbc, have you tried https://www.google.com/search?q=odbc+SQL_INVALID_HANDLE

Do you have any resolution on this? let me know if you need further help or lets just close this issue.

Hi.
I solved connection problem using
cx = pyodbc.connect(b"DSN=myConnection")
Note that connection string is passed as bytes.... stange but working.
The next problem I have is executing a query. I receive the error
[HY000] [DataDirect][ODBC lib] Unicode converter buffer overflow
I tried different combination of ansi and unicode_results parameters and pypyobc.odb_decoding values but none works.
I suspect that problem is related to the encoding of data but I don't know how to identify the correct combination.


SyntaxError Found

https://github.com/MetaMask/provider-engine/blob/master/subproviders/rpc.js#L42
Once you declare msg via the const keyword, you can't reassign it to a new value

Thanks for the catch, I actually thought we'd done this, but I guess on some other branch...


Permissions based crash on OS X 10.14+

Noticed last night that openpnp-capture was crashing when trying to open a camera on OS X. Seems to be related to the required permissions to use the camera on OS X 10.14+.
==============================
 OpenPNP Capture Test Program
 OSX 64 bit debug v0.0.17 Jan 22 2020
==============================
Usage: openpnp-capture-test <camera ID> <frame format ID>

..continuing with default camera parameters.

[INFO] Platform context created
2020-01-22 23:38:36.655841-0600 openpnp-capture-test[28601:4534687] authorizationStatusForMediaType 0
2020-01-22 23:38:36.656261-0600 openpnp-capture-test[28601:4534687] authorizationStatusForMediaType 0
[DBG ] enumerateDevices called
2020-01-22 23:38:36.658600-0600 openpnp-capture-test[28601:4535236] [access] This app has crashed because it attempted to access privacy-sensitive data without a usage description.  The app's Info.plist must contain an NSCameraUsageDescription key with a string value explaining to the user how the app uses this data.

As far as I can tell we need to call:
    [AVCaptureDevice requestAccessForMediaType:AVMediaTypeVideo completionHandler:^(BOOL granted) {
    } ];

But this requires that the app has an Info.plist, and I think that has to be part of the package that library is used in, rather than the library itself. Continuing to investigate this.

Does this require a code change for OSX? Maybe something to gracefully abort rather than crashing?

@trcwm Yep, it requires a code change. I fixed this recently and released a new version that handles it but forgot to close this issue. See https://github.com/openpnp/openpnp-capture/commit/082959e1a281c45c7acf638eb3e3b90127b12051

I'm still seeing a crash when adding cameras in the June 28 build on OSX 10.11.6.  I think that's the most recent OSX I can run on that machine.  Looking at the error report I see:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[AVCaptureDevice authorizationStatusForMediaType:]: unrecognized selector sent to class 0x7fff790ca768'
terminating with uncaught exception of type NSException

Looks like that version of OSX didn't have the permission check API, so we
need to add a check if the API is available before calling it.
On Mon, Jul 6, 2020 at 10:33 AM Trailhead<EMAIL_ADDRESS>wrote:

I'm still seeing a crash when adding cameras in the June 28 build on OSX
10.11.6. I think that's the most recent OSX I can run on that machine.
Looking at the error report I see:
*** Terminating app due to uncaught exception
'NSInvalidArgumentException', reason: '+[AVCaptureDevice
authorizationStatusForMediaType:]: unrecognized selector sent to class
0x7fff790ca768'
terminating with uncaught exception of type NSException
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/openpnp/openpnp-capture/issues/31#issuecomment-654310227,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAJAU45B2BKI6MTOJEBNYLDR2HVGBANCNFSM4KKZDKWA
.

For anyone else having this issue, I upgraded to Mojave and that solved it.


"Safe" click event helper that warns when clicking non-interactive elements

Describe the feature you'd like:
I was recently debugging an issue where I passed "container" to fireEvent.click() instead of a button reference. What if there was a variant of fireEvent that warns/errors when firing events on elements that aren't normally interactable? button and a would be safe, plus any semantic/aria- elements.
API ideas:
fireEvent.clickSafe(element, options)
fireEvent.accessibleClick(element, options)
fireEvent.click(element, { allowAny: true })

Suggested implementation:

Detect target element tag name and attributes when firing events
Describe alternatives you've considered:

Teachability, Documentation, Adoption, Migration Strategy:
This would be a non-breaking change

Hmmm... I'm really conflicted here. I really like the idea, but I don't want to add friction to using the library. Perhaps if we had a really helpful error message.
What if we did this:
fireEvent.click(someDiv)
// throws an error that says something like: "Firing a click event on a non-clickable element is not recommended as it's not accessible. If you must, you can use `forceClick` instead."

Then people could do:
fireEvent.forceClick(someDiv)

And that would work.
We'll want to make sure that we define a "clickable" element as one that's clickable/focusable as defined by the browser.
Thoughts?

You may want to take some inspiration from Cypress, it implements this concept of Actionability. https://docs.cypress.io/guides/core-concepts/interacting-with-elements.html#Actionability
I really wish Cypress exported some of their DOM manipulation code as reusable libraries... We're really doing the same things here.

I'd be more inclined to export it as fireEvent.accessibleClick than breaking the current click, at least through one release cycle? .forceClick seems reasonable in the long run, except maybe conflicting with the concept of "force click" on Mac touchpads.
So... what are the criteria for clickability? We can collect them here and see what the code would need to do.

@alexkrolick

So... what are the criteria for clickability? We can collect them here and see what the code would need to do.

Checks and Actions Performed

Scroll the element into view.
Ensure the element is not hidden.
Ensure the element is not disabled.
Ensure the element is not animating.
Ensure the element is not covered.
Scroll the page if still covered by an element with fixed position.
Fire the event at the desired coordinates.

Whenever Cypress cannot interact with an element, it could fail at any of the above steps. You will usually get an error explaining why the element was not found to be actionable.

Sounds like they mostly care about visual attributes, not the difference between a div and a button. We'd want to make that distinction somehow.

The cypress actionability module actually is open source: https://github.com/cypress-io/cypress/blob/develop/packages/driver/src/cy/actionability.coffee

Also, a lot of the time I rely on event bubbling to propagate a click from some inner span up to a button or other element; this would probably break that. Would it be possible to do something like detect that a click event was not handled by anything instead of allowing only certain elements? I don't know if React's event model would be compatible with that approach.
fireEvent.click(someDiv);
// Warning: click event was not handled

The cypress actionability module actually is open source: https://github.com/cypress-io/cypress/blob/develop/packages/driver/src/cy/actionability.coffee

Yes, but you cannot yarn add @cypress/actionability to reuse that piece in dom-testing-library or your tests.

Sounds like they mostly care about visual attributes, not the difference between a div and a button. We'd want to make that distinction somehow.

I don't think we want to make that distinction. You can make a perfectly valid accessible div with an onClick that shouldn't be any different from a button from the actionability perspective.

Yeah, I don't think there's anything we're going to do about this one. Closing.


Add Bengali language translation

Added translation file for Bengali (বাংলা) language named bn.json in src/languages directory. Language name is: বাংলা
More details about Bengali language.

King's here


Document direct download links for extensions

For doing something like making a lambda layer, pre-building a container, etc. it's really helpful to pre-download an extension from the domain path https://extensions.duckdb.org/${REVISION (including "v" prefix)}/${PLATFORM}/${NAME}.duckdb_extension.gz;
If this could be included under the extensions section, along with the list of PLATFORMs that would be very helpful to folks pre-building environments.
Is there a list available right now of the names of the platforms?
And merry Christmas 🎄

This should be closed now! Let me know if something is missing in the merged PR above.


A bit unrelated, but how would you determine programatically that a site is using an overlay?

Is there code out there to determine easily if AccessiBe, AudioEye or others are being used? Ultimately, what is their JS file I suppose, and can you parse it from the page source.

@mgifford IDK if anyone has done such a thing, but you're on the right track. Just find the domain(s) from which their script is served and then add that to whatever you're using to track such a thing


add logo and a small home page

Dlang-Bot logo is courtesy of Meiz
(https://wilzbach.github.io/d-mans//meiz/20160528_009.jpg)
stylesheet is just compressed normalize+skeleton

Let's get this live then :)

Maybe it could deploy itself ;)? I'm actually quite fine w/ triggering deploys manually.

Weirdly enough, I never had issues w/ the installer script on Heroku, but I didn't deploy that often and they do cache.


bug? fiona.transform.transform() and fiona.transform.transform_geom() don't work

Running this

import fiona

from fiona import transform

res = transform.transform_geom('EPSG:4326', 'EPSG:3857',
                               {'type': 'Point', 'coordinates': [-105.0, 40.0]})
res

returns unmodified {'type': 'Point', 'coordinates': (-105.0, 40.0)}.
Running this
res = transform.transform('EPSG:4326', 'EPSG:26953', [-105.0], [40.0])
res

crashes Python:

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Sample code copied from https://github.com/Toblerity/Fiona/blob/master/fiona/transform.py
I have
    fiona 1.7.0 np110py27_1
    Python 2.7.10

installed in Anaconda 2-4.1.1-Windows-x86 environment

I tried it on my Linux box, and it worked for me.
Python 2.7.11  (and I tested 3.5.1)
Fiona 1.7.0.post2
GDAL 1.11.3
In [1]: from fiona import transform

In [2]: transform.transform_geom('EPSG:4326', 'EPSG:3857',
                               {'type': 'Point', 'coordinates': [-105.0, 40.0]})
Out[2]: {'coordinates': (-11688546.533293728, 4865942.279503176), 'type': 'Point'}

In [3]: transform.transform('EPSG:4326', 'EPSG:26953', [-105.0], [40.0])
Out[3]: ([957097.0952383667], [378940.8419189226])

@AlexArcPy Fiona/OGR uses PROJ.4 for coordinate reference system transformations so you may be missing that library.  I don't have any experience with Anaconda so unfortunately I can't help debug that environment.  PROJ.4 comes with a $ proj utility that might help you figure out if its installed and you could also try the command below, but I don't know what will happen if PROJ.4 is missing:
$ echo "-105.0 40.0" | gdaltransform -s_srs EPSG:4326 -t_srs EPSG:3857
-11688546.5332937 4865942.27950318 0

@micahcochran , thanks for testing this, great. @geowurster , thanks for pointing this out. I do have pyproj installed and able to operate it properly. I had problems running this specifically from fiona. Oddly enough, now the code I posted executes.  Sorry and never mind.


End stone smelter crafting

The end stone smelter is impossible to craft. It requires thallasium ingots to craft but you can't make the ingots without a smelter.
Version- 1.18.1

Recipes are Broken in BE 1.18.1

Ok

Do you know if it will be fixed?

Certainly in the next 1.18.1 version, this issue is known.

Ok thank you

Are you using the latest version of BClib (1.2.4)? I just saw that its latest version solves crafting problems.

no but I will try

That worked

Perfect


Newly spawned pieces don't always slide to fill certain holes

https://github.com/Poobslag/turbofat/assets/5902413/360b6621-2edb-4079-b36f-963832259efc
Per Hish from the Turbo Fat discord:

At high speed, if I hold a correct direction and rotation, some parts don't fit in some holes, like in the first example (Sorry if it's too fast), the piece can't "jump" one piece up. It can be corrected by rotating the piece so it can make a box, as in the second example. But this doesn't happen when you squish a piece from the top of that hole, this piece can "jump", as in the last example, but a new spawned piece can't. It's kind of inconsistent and hard to react at high speed, or maybe it's just me

Initial DAS should be able to slide pieces into gaps like this.

DAS can now shift a piece 8 times horizontally even if it drops only one cell. This will only kick in if DAS is active and if regular piece movement is obstructed.


Is there a way to render a page through the _host?

Describe the solution you'd like
Is it possible to render the blazor apps _host.cshtml page so you can write unit tests that render the page in different environments and makes sure and tests that your CDNs links and scripts are rendering correctly or resolve correctly before they actually get into the staging, prod environments vs development?
Additional context
I recently deployed a CDN link with a munged integrity check value and it caused the app in our staging environment to break. It would be cool to have a unit test check to make sure the CDN links resolves correctly and returns 'OK' through unit testing before an actual deploy.
This comes up in Intelisense but throws an error.
var cut = RenderComponent<Pages.Pages__Host>();

Error	CS0311	The type 'Marriott.Coaching.Web.Pages.Pages__Host' cannot be used as type parameter 'TComponent' in the generic type or method 'TestContext.RenderComponent(params ComponentParameter[])'. There is no implicit reference conversion from 'Marriott.Coaching.Web.Pages.Pages__Host' to 'Microsoft.AspNetCore.Components.IComponent'.	Marriott.Coaching.Web.UnitTests	C:\Users\jpmce155\source\Repos\CEC Coaching Platform - Reloaded\Marriott.Coaching.Web\Marriott.Coaching.Web.UnitTests\PageTests\HostPageTest.cs	16	Active

Thanks. Keep up the great work!

Hi Zakuska,
_Hosts.cshtml is not a Blazor component, but a "classic razor page", so the Blazor renderer cannot render it.
There are a few options available to you:

Create an end-2-end test using e.g. Selenium or Cypress.io

Pull the <script>s tag into a Blazor component, that you render/include in _Hosts.cshtml. That scripts Blazor component you can test. The test would then grab the scripts src's and the hash, download the files and verify the hash.


Update AutoViz.ipynb to include Interact

The notebook previously failed to render the live driving video in the final cell. The solution was simply to run "using Interact" before trying to render.

Thank you!

Coverage remained the same at 40.531% when pulling 6ba0672d4d2e4ca9492caac8a68ceeb9916e8744 on kylejbrown17:patch-1 into 6724d480e600730793118d7ec93e3d6a21023cc3 on tawheeler:master.

Coverage remained the same at 40.531% when pulling 6ba0672d4d2e4ca9492caac8a68ceeb9916e8744 on kylejbrown17:patch-1 into 6724d480e600730793118d7ec93e3d6a21023cc3 on tawheeler:master.


Replace identification of processes with a random nonce instead of using pid and ppid

Replace identification of processes with a random nonce instead of using pid and ppid
fixes #24

Please add a line to the CHANGELOG as well please 🙂 And do credit yourself!


git: 2.34.0 -> 2.34.1

Motivation for this change
https://github.com/git/git/blob/v2.34.1/Documentation/RelNotes/2.34.1.txt
Things done

Built on platform(s)

[ ] x86_64-linux
[ ] aarch64-linux
[ ] x86_64-darwin
[ ] aarch64-darwin

[ ] For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
[ ] Tested, as applicable:

NixOS test(s) (look inside nixos/tests)
and/or package tests
or, for functions and "core" functionality, tests in lib/tests or pkgs/test
made sure NixOS tests are linked to the relevant packages

[ ] Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
[ ] Tested basic functionality of all binary files (usually in ./result/bin/)
21.11 Release Notes (or backporting 21.05 Release notes)

[ ] (Package updates) Added a release notes entry if the change is major or breaking
[ ] (Module updates) Added a release notes entry if the change is significant
[ ] (Module addition) Added a release notes entry if adding a new NixOS module
[ ] (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes

[ ] Fits CONTRIBUTING.md.

@ofborg build gitMinimal git gitFull


STM32 platform does not handle large i2c_write() correctly

Describe the bug
i2c_write() is generating extra starts at multiple of 255 bytes boundary for STM32 platform (v2).
For example, I have an array of data that's is 512 bytes, and I am writing that data to slave addr 0x5f.
uint8_t d[512];
i2c_write(dev, &d[0], 512, 0x5f);
I am expecting to see: Start 5f/w d[0] .... d[511] Stop
Instead, I am seeing: start 5f/w d[0] .... d[254] Start 5f/w d[255] ... d[509] Start 5f/w d[510] d[511] Stop
I think the issue is in this section of code drivers/i2c/i2c_ll_stm32.c function i2c_stm32_transfer
        while (num_msgs > 0) {
                uint8_t *next_msg_flags = NULL;

                if (num_msgs > 1) {
                        next = current + 1;
                        next_msg_flags = &(next->flags);
                }
                do {
                        uint32_t temp_len = current->len;
                        uint8_t tmp_msg_flags = current->flags & ~I2C_MSG_RESTART;
                        uint8_t tmp_next_msg_flags = next_msg_flags ?
                                                        *next_msg_flags : 0;

                        if (current->len > 255) {
                                current->len = 255U;
                                current->flags &= ~I2C_MSG_STOP;
                                if (next_msg_flags) {
                                        *next_msg_flags = current->flags &
                                                          ~I2C_MSG_RESTART;
                                }
                        }
                        if ((current->flags & I2C_MSG_RW_MASK) ==
                                                                I2C_MSG_WRITE) {
                                ret = stm32_i2c_msg_write(dev, current,
                                                          next_msg_flags,
                                                          slave);
                        } else {
                                ret = stm32_i2c_msg_read(dev, current,
                                                         next_msg_flags, slave);
                        }

                        if (ret < 0) {
                                goto exit;
                        }
                        if (next_msg_flags) {
                                *next_msg_flags = tmp_next_msg_flags;
                        }
                        current->buf += current->len;
                        current->flags = tmp_msg_flags;
                        current->len = temp_len - current->len;
                } while (current->len > 0);
                current++;
                num_msgs--;
        }

With i2c_write(), num_msgs = 1, and next_msg_flags will be NULL.
                                ret = stm32_i2c_msg_write(dev, current,
                                                          next_msg_flags,
                                                          slave);

Since next_msg_flags is NULL, LL_I2C_EnableReloadMode will not trigger in drivers/i2c/i2c_ll_stm32_v2.c function msg_init, which is called by stm32_i2c_msg_write.
And each time stm32_i2c_msg_write is called, a start condition is generated.

Indeed. I have been chasing this down as well, because writes to a 256-byte page EEPROM caused larger transactions, breaking the writes completely. I came to the same conclusion Qin Zou did.
Here's an attempt at fixing this: https://github.com/ft/zephyr/commit/1fbb8aa40dfea4f541e1ed231c65bbde7d0c1ce0
I've tested it a little bit in the current project I am working on, and it seems fine.
WDYT?

The push I did just now only adjusts a little bit of wording in the commit message.

@ft If you feel confident about your fix, don't hesitate to propose a PR with it.


Storage - Replace Iterator with PagedIterable/IterableResponse for Sync API

This will change Storage sync  client.
Replace Iterator with PagedIterable/IterableResponse as appropriate.

Fixed by #5186


Issue testing password change implementation using FactoryGirl

Hey there, hope someone can help me.
I've created a change password method for the User model as follow
def update_password(current_password, new_password, new_password_confirmation)
  if new_password == new_password_confirmation
    if !User.authenticate(self.username, current_password).nil?
      return self.change_password!(new_password)
    else
      return false
    end
  else
    return false
  end
end

Here is my User factory
  FactoryGirl.define do
    factory :user do
      first_name            "Bob"
      last_name             "Sinclar"
      date_of_birth         "03/12/1982"
      genre                 "M"
      sequence(:username)   { |n| "bsinclar#{n}" }
      email                 {<EMAIL_ADDRESS>}
      password              "secret"
      salt                  "asdasdastr4325234324sdfds"
      activation_state      "active"
      admin                 false

      after_build do |u|
        u.crypted_password = Sorcery::CryptoProviders::BCrypt.encrypt(u.password, u.salt)
      end

      factory :admin_user do
        admin true
      end
    end
  end

Here are my rspec tests
require 'spec_helper'

describe User do
  subject { Factory(:user) }

  describe :update_password do
    let!(:bob) {Factory(:user, password: "password", password_confirmation: "password" )}

    it "updates the password if everything is passed correctly" do
      bob.update_password("password","new_pass","new_pass").should be_true
    end

    it "throws an error if you enter the incorrect current password" do
      bob.update_password("bad_password","new_pass","new_pass").should be_false
    end

    it "throws an error if the new password isn't confirmed properly" do
      bob.update_password("password","new_pass","bad_new_pass").should be_false
    end
  end
end

I obtain F.. but in fact it seems like even if I try to authentify with the password "password", it complains that the password is not valid.
Using pry, I was able to investigate about the user object in the test (here 'bob') and it seems that the salt gets changed upon user creation... I am not sure why or how... This is what I get with some tryouts:
pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_1>)> bob
=> #<User id: 39, first_name: "Bob", last_name: "Sinclar", date_of_birth: "03/12/1982", genre: "M", username: "bsinclar1", email<EMAIL_ADDRESS>crypted_password: "$2a$10$2c6n5H5g7jNpvUX50iXcdeAfOLdaC8TnhcHQddeClkFh...", salt: "7a5c5bfa820ba61284e614c6098ea6709eb385bf", admin: false, created_at: "2011-11-12 04:47:30", updated_at: "2011-11-12 04:47:30", remember_me_token: nil, remember_me_token_expires_at: nil, activation_state: "pending", activation_token: "4c78a2f8f9c157c9dd7706f8aa21749ccd1ba2d9", activation_token_expires_at: nil, reset_password_token: nil, reset_password_token_expires_at: nil, reset_password_email_sent_at: nil, failed_logins_count: 0, lock_expires_at: nil, last_login_at: nil, last_logout_at: nil, last_activity_at: nil>
pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_1>)> bob.salt
=> "7a5c5bfa820ba61284e614c6098ea6709eb385bf"
pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_1>)> bob.crypted_password
=> "$2a$10$2c6n5H5g7jNpvUX50iXcdeAfOLdaC8TnhcHQddeClkFhpnm9Zr4MC"
pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_1>)> Sorcery::CryptoProviders::BCrypt.encrypt("password", bob.salt)
=> "$2a$10$RekZ5aMdXRK8zGKk7N5QQuMXDKzEQ.UGm9LhA2KvQe9jAd58X1RkG"
pry(#<RSpec::Core::ExampleGroup::Nested_1::Nested_1>)> Sorcery::CryptoProviders::BCrypt.encrypt("password", "asdasdastr4325234324sdfds")
=> "$2a$10$RFsoUOAiernoegn1ibftzuF5w.rlVtXZoyTQ9iwHda8jDQb5FUOcq"

I'm quite confused and would appreciate any help to help me debug my test suite... the change password functionality works fine.... I just want it tested thoroughly but FactoryGirl seems to not cope nicely with sorcery... thoughts?

Hi,
There is an example in rails with password reset there: https://github.com/NoamB/sorcery-example-app
Maybe you'll find some answers there.
But there is something bothering me in your approach. Why would you want to explicitly set the password salt and crypt your password in your factory. It's done automatically by sorcery in a before save hook, check the code in https://github.com/NoamB/sorcery/blob/master/lib/sorcery/model.rb lines 80 and 172
I'd remove the "salt" line and the "after_build" block from your factory. Can you do that and tell us how it works ?
Good luck

Hey Marc, thanks for your answer. Here the goal is to provide the ability to change their password from their profile page, not to reset it when they forgot their credentials.
In a nutshell, you need to validate that they know their current password and that they confirm their new password.
From the testing rails 3 wiki page, I got that you needed to use the Bcrypt sorcery helper from the fixture...
Per your advice I now have:
user_spec.rb
require 'spec_helper'

describe User do
  subject { Factory(:user) }

  describe :update_password do
    let!(:bob) {Factory(:user)}

    it "updates the password if everything is passed correctly" do
      bob.update_password("password","new_pass","new_pass").should be_true
    end

    it "throws an error if you enter the incorrect current password" do
      bob.update_password("bad_password","new_pass","new_pass").should be_false
    end

    it "throws an error if the new password isn't confirmed properly" do
      bob.update_password("password","new_pass","bad_new_pass").should be_false
    end
  end
end

users.rb (factory)
FactoryGirl.define do
  factory :user do
    first_name            "Bob"
    last_name             "Sinclar"
    date_of_birth         "03/12/1982"
    genre                 "M"
    sequence(:username)   { |n| "bsinclar#{n}" }
    email                 {<EMAIL_ADDRESS>}
    password              "password"
    password_confirmation "password"
    activation_state      "active"
    admin                 false

    factory :admin_user do
      admin true
    end
  end
end

but that gives me the same results... I thought maybe it's because I didn't do, in my rspec test:
before(:each) do
  login_user(bob)
end

but when I do that I get:
  1) User update_password updates the password if everything is passed correctly
     Failure/Error: login_user(bob)
     NoMethodError:
       undefined method `login_user' for nil:NilClass
     # ./spec/models/user_spec.rb:10:in `block (3 levels) in <top (required)>'

Not sure what is going wrong here...

I do have, in the spec_helper.rb file:
RSpec.configure do |config|
  config.mock_with :rspec
  config.use_transactional_fixtures = true
  config.include Factory::Syntax::Methods
  config.include Sorcery::TestHelpers::Rails
end

The weird thing is that the my update_password method works in the app... I just can't seem to make testing work... I will try what you say but here is my full User model:
class User < ActiveRecord::Base
  authenticates_with_sorcery!

  attr_accessible :username, :email, :password, :password_confirmation, :first_name, :last_name, :date_of_birth, :genre

  validates_confirmation_of :password
  validates_presence_of :password, :on => :create
  validates_presence_of :username, :email, :first_name, :last_name, :date_of_birth, :genre
  validates_uniqueness_of :username, :email

  def is_admin?
    self.admin
  end

  def update_password(current_password, new_password, new_password_confirmation)
    if new_password == new_password_confirmation
      if !User.authenticate(self.username, current_password).nil?
        return self.change_password!(new_password)
      else
        return false
      end
    else
      return false
    end
  end
end

The issue is probably coming from your validates_confirmation_of :password
The change_password method only sets the password field not the confirmation. If you check at the example app https://github.com/NoamB/sorcery-example-app/blob/master/app/controllers/password_resets_controller.rb#L29
It sets the new password confirmation before calling the change_password! method to handle validation.
In your case, I guess you do that in your controller action, either through mass assignment or explicitly. That's why it works in the real app.
But in the tests the password confirmation will never match your new password as you don't set it. So if you want to keep your actual code just add this line before your return self.change_password! and you should be fine:
self.password_confirmation = new_password_confirmation

Won't
user = User.authenticate(self.username, current_password)

always be true since it's an affectation? I mean b = false is always going to work and return true... or does it test on the passed value?

I do have the password confirmation in my factory:
FactoryGirl.define do
  factory :user do
    first_name            "Bob"
    last_name             "Sinclar"
    date_of_birth         "03/12/1982"
    genre                 "M"
    sequence(:username)   { |n| "bsinclar#{n}" }
    email                 {<EMAIL_ADDRESS>}
    password              "password"
    password_confirmation "password"
    activation_state      "active"
    admin                 false

    factory :admin_user do
      admin true
    end
  end
end

I tried as you said but without success...
def update_password(current_password, new_password, new_password_confirmation)
    if new_password == new_password_confirmation
      if !User.authenticate(self.username, current_password).nil?
        self.password_confirmation = new_password_confirmation
        return self.change_password!(new_password)
      else
        return false
      end
    else
      return false
    end
  end

On thing I notice using pry, is that when I look at the user bob created with my factory, the activation state is set to "pending" (see the last code bit on my first post)... even though I set it explicitly to "active" in my factory... do you think the user_activation module could be interfering?
Thanks for the help by the way, I really appreciate...

Yes you have password confirmation in your factory, but not for the new password. Validation gets triggered each time you save the object and the change_password! method has a call to the save method. And if you look at the change_password! method code, it only sets the password field, not it's confirmation, it means you have to set it yourself if you want your tests to pass.
Good point about the activation thing. I think trying to set it up in the factory won't work, there is a before_create setup_activation on user being called that will overwrite your factory attributes. You can activate it in a before block
before :each do
    bob.activate!
end

Awesome, it works! Thanks so much for the help... Here is my code in case anyone is interested... Marc, do you think I could have done things differently? always opened for suggestions.
models/user.rb
class User < ActiveRecord::Base
  authenticates_with_sorcery!

  attr_accessible :username, :email, :password, :password_confirmation, :first_name, :last_name, :date_of_birth, :genre

  validates_confirmation_of :password
  validates_presence_of :password, :on => :create
  validates_presence_of :username, :email, :first_name, :last_name, :date_of_birth, :genre
  validates_uniqueness_of :username, :email

  def is_admin?
    self.admin
  end

  def update_password(current_password, new_password, new_password_confirmation)
    if new_password == new_password_confirmation
      if !User.authenticate(self.username, current_password).nil?
        self.password_confirmation = new_password_confirmation #required for test purpose
        return self.change_password!(new_password)
      else
        return false
      end
    else
      return false
    end
  end
end

controllers/user_controller.rb (not ideal to use the update method but it was the quickest way)
...
def update
    if params[:commit] == 'Update Password'
      respond_to do |format|
        format.js {
          if @user.update_password(params[:user][:current_password], params[:user][:password], params[:user][:password_confirmation])
            flash[:success] = "Password has been updated successfully."
          else
            flash[:error] = "There was an error and the password was not updated. Please try again."
          end
          render action: :update
        }
      end
    else
      if @user.update_attributes(params[:user])
        redirect_to profile_url, :success => 'Profile was successfully updated.'
      else
        redirect_to profile_url, :error => 'There was an error and the profile was not updated.'
      end
    end
  end
...

specs/factories/users.rb

FactoryGirl.define do
  factory :user do
    first_name            "Bob"
    last_name             "Sinclar"
    date_of_birth         "03/12/1982"
    genre                 "M"
    sequence(:username)   { |n| "bsinclar#{n}" }
    email                 {<EMAIL_ADDRESS>}
    password              "password"
    password_confirmation "password"
    activation_state      "active"
    admin                 false

    factory :admin_user do
      admin true
    end
  end
end

specs/models/users.rb

require 'spec_helper'

describe User do
  subject { Factory(:user) }

  describe :update_password do
    let!(:bob) {Factory(:user)}

    before(:each) do
      bob.activate!
    end

    it "updates the password if everything is passed correctly" do
      bob.update_password("password","new_pass","new_pass").should be_true
    end

    it "throws an error if you enter the incorrect current password" do
      bob.update_password("bad_password","new_pass","new_pass").should be_false
    end

    it "throws an error if the new password isn't confirmed properly" do
      bob.update_password("password","new_pass","bad_new_pass").should be_false
    end
  end
end

Note that you must have the "reset_password" submodule to use the "change_password" method.  Otherwise, you get "NoMethodError: undefined method change_password!' for #<User..."  But maybe you simply want to set it, not add user-reset functionality.  In that case, if, like me, you tried:  @user.password = "blah" ... @user.password_confirmation = "blah" ... @user.save!  ... and got no error or rollback, but found your password and salt were still nil - the solution is either to use:User.create(... :password => "blah", :password_confirmation => "blah")or @user.update_attributes(:password => "blah", :password_confirmation => "blah")`
Those two seem to work.


ENYO-23301: Start preview if necessary, when moving pointer in the slider.

Enyo-DCO-1.1-Signed-off-by: Aaron Tam<EMAIL_ADDRESS>

Now today, I can't repro the problem on my branch. Can you check it again too and see if I'm missing it? Thanks!


backport: Failing to upgrade due to conflict

https://github.com/longhorn/longhorn/issues/1646
Need to backport to v1.0.2

Verified on v1.0.2-rc1
Validation - Passed
Tested with 32 worker nodes, Installation and upgrade work fine.


Normalize line endings within readme

Previously, lines were ended in a variety of ways. Most significantly,
the use of periods and blanks was mixed. I've added periods and colons
to appropriate locations.
Changes proposed in this pull request:

Change all line endings to full stops or colons (mainly addresses lists).

cc @HospitalRun/core-maintainers

@abactel thanks for this! It's always helpful to make docs clearly. :metal:


Prevent Export

Describe the feature you'd like
It would be great if we could define system wide or perhaps per book that it is not allowed to export the book.
Describe the benefits this feature would bring to BookStack users
Bookstack is a important wiki for us with a lot of knowledge, that users when they leave can easy export with a single click. Providing the option to hide the export button system or book wide can help to prevent leaking knowledge.
I know this will not prevent it completely, as of couse someone could print or copy page by page but it takes much more effort/time then just to click one button.

Hi @JtheBAB,
Thanks for proposing this feature.
This has already been requested under #1251 so I'll therefore close this as a duplicate.
My thoughts on this kind of feature can be found in my first comment there. I also have posted a code sample that allows you to hide the buttons in my second comment. I'll add a new sample to that issue that works with the recent redesign.


ODM Data Loader: Loading takes a long time especially when adding large numbers of data files

kimschreuders[CodePlex] One of our users, Pradnya Khutafale is having an issue with long Data Loader times. I have attached a .zip file with 2 sample data files and 2 batch files, and info on his log file. I suggested that he change his recovery model to simple, and then shrink
the unused space out of the log file to ensure that a continuously growing log file would bog him down. The rest of this message contains the thread of our discussion on this issue:
nbsp
Pradnya,
nbsp
I am working with the developers of the software to see if we can identify the source of the problem.
nbsp
I know that I personally manage an ODM with 56 million DataValue records, and while some of the tools are not real speedy, for the most part they are fast enough to be usable. Those 56 million records represent an initial batch of 5 years of historical data
and was loaded in about 2 weeks. Now I will say that my SeriesCatalog only has 996 records. Soon I will configure the database to stream in updates on an hourly basis. So, I know the tools work well enough to manage something like this.
nbsp
Looking at the bit of log file you included below, you loaded 2 batches of 70,000 records each. The first batch took 55 minutes and the second 56. At that rate, loading 100 million records would take about 142 hours, or 6 days. Even if you take your initial
estimate of 7500 minutes to load a month of data (from the first message in this thread), 7500 minutes = 5.2 days. That does not appear to be anywhere near the months that you are concerned about. Is the length of time changing? Do you have any numbers on
this?
nbsp
I will say that every once in a while, I have found a function that runs slower than I am willing to work with, editing with ODM Tools is my favorite example of a tool with a very slow function. In those cases, I write a SQL script to perform the function manually
to provide an immediate fix until the developers can address the problem in the tools.
nbsp
I have created a formal issue report on this issue. You can see the details at:
http://hydroserver.codeplex.com/workitem/8264.
Kim
nbsp
From: Pradnya Khutafale
Sent: Tuesday, May
Subject: Re: Degraded Performance
nbsp
Hi Yoori,
Any update on the perfomance issue?
Thanks.
Pradnya
On Thu, May 12, 2011 at 10:33 AM, Pradnya Khutafale gt wrote:
Hi Kim/
The performance of ODM tool has degraded. As shown below, now it takes around 50-55 minutes to upload one file (around 70,000 records). Currently, SeriesCatalog has - 15138 records and DataValues has 4488856 records.
nbsp
The performance is major concern for us, since we have millions of records to upload for model data and at this rate, it will take several months to upload the data.
nbsp
Log @ Wednesday, May 11, 2011 6:11:44 PM
Opening .\OUTPUT_4D\TEMPERATURE\Datavalues.csv ...
nbsp
Log @ Wednesday, May 11, 2011 6:12:00 PM
.\OUTPUT_4D\TEMPERATURE\Datavalues.csv Opened.
nbsp
Log @ Wednesday, May 11, 2011 6:12:00 PM
You are loading quotDataValuesquot
nbsp
Log @ Wednesday, May 11, 2011 6:12:00 PM
Finding New Methods
nbsp
Log @ Wednesday, May 11, 2011 6:12:00 PM
Finding New OffsetTypes
nbsp
Log @ Wednesday, May 11, 2011 6:12:01 PM
Finding New DataValues
nbsp
Log @ Wednesday, May 11, 2011 6:20:15 PM
70000 rows committed to DataValues
nbsp
Log @ Wednesday, May 11, 2011 6:20:16 PM
Updating Series Catalog
nbsp
Log @ Wednesday, May 11, 2011 7:06:32 PM
4624 rows committed to SeriesCatalog
nbsp
Log @ Wednesday, May 11, 2011 7:06:32 PM
Committed 74624 rows to the database.
nbsp
Log @ Wednesday, May 11, 2011 7:06:50 PM
Opening .\OUTPUT_4D\TEMPERATURE\Datavalues.csv ...
nbsp
Log @ Wednesday, May 11, 2011 7:07:06 PM
.\OUTPUT_4D\TEMPERATURE\Datavalues.csv Opened.
nbsp
Log @ Wednesday, May 11, 2011 7:07:06 PM
You are loading quotDataValuesquot
nbsp
Log @ Wednesday, May 11, 2011 7:07:06 PM
Finding New Methods
nbsp
Log @ Wednesday, May 11, 2011 7:07:07 PM
Finding New OffsetTypes
nbsp
Log @ Wednesday, May 11, 2011 7:07:07 PM
Finding New DataValues
nbsp
Log @ Wednesday, May 11, 2011 7:15:15 PM
70000 rows committed to DataValues
nbsp
Log @ Wednesday, May 11, 2011 7:15:15 PM
Updating Series Catalog
nbsp
Log @ Wednesday, May 11, 2011 8:02:58 PM
4624 rows committed to SeriesCatalog
nbsp
Log @ Wednesday, May 11, 2011 8:02:59 PM
Committed 74624 rows to the database.
nbsp
nbsp
Thanks.
Pradnya
---------- Forwarded message ----------
From: Pradnya Khutafale gt
Date: Tue, May 10, 2011 at 10:51 AM
Subject: Re: Concern : Slow Model Data Upload
To: Kim Schreuders lt
nbsp
nbsp
Hi Kim,
nbsp
The OD_log.ldb had size 894MB. I followed the instructions provided in the link to change the recovery model. And also executed the SQL you provided.(After executing the 2nd SQL, snap shot of the output attached) .
nbsp
Now the OD_log.ldb shows size as 8.18 MB. However, there is no change in the performance. Below is the log while uploading the model data output(4624 records) to the server which takes around 25 minutes for one file.
nbsp
nbsp
Log @ Tuesday, May 10, 2011 10:16:15 AM
Opening .\OUTPUT_2D\Datavalues.csv ...
nbsp
Log @ Tuesday, May 10, 2011 10:16:15 AM
.\OUTPUT_2D\Datavalues.csv Opened.
nbsp
Log @ Tuesday, May 10, 2011 10:16:15 AM
You are loading quotDataValuesquot
nbsp
Log @ Tuesday, May 10, 2011 10:16:15 AM
Finding New Methods
nbsp
Log @ Tuesday, May 10, 2011 10:16:15 AM
Finding New OffsetTypes
nbsp
Log @ Tuesday, May 10, 2011 10:16:15 AM
Finding New DataValues
nbsp
Log @ Tuesday, May 10, 2011 10:17:13 AM
4624 rows committed to DataValues
nbsp
Log @ Tuesday, May 10, 2011 10:17:13 AM
Updating Series Catalog
nbsp
Log @ Tuesday, May 10, 2011 10:40:21 AM
4624 rows committed to SeriesCatalog
nbsp
Log @ Tuesday, May 10, 2011 10:40:21 AM
Committed 9248 rows to the database.
nbsp
nbsp
Even the ODM tool 1.1.3 is taking around same time for loading the records.
nbsp
Pradnya
nbsp
nbsp
nbsp
nbsp
On Fri, May 6, 2011 at 5:00 PM, Kim Schreuders lt wrote:
Pradnya,
Here’s some background info on Recovery Models and Transaction Log Management:
http://msdn.microsoft.com/en-us/library/ms366344.aspx.
I think this SQL (once you insert the database and transaction log names) will change the recovery model to simple, and then shrink the unused space out of the log file:
USE master
ALTER DATABASE database_name SET RECOVERY SIMPLE -- set database to simple recovery mode which has minimal logging
USE DatabaseName
DBCC SHRINKFILE(lttransactionLog_namegt, 1) -- shrinks log file to eliminate unused space
Let me know if you have any questions.
Kim
From: Pradnya Khutafale []
Sent: Thursday, May 05, 2011 9:39 PM
To: Kim Schreuders
Cc: Yoori Choi; David Tarboton; Jeff Horsburgh; Ding Wei
Subject: Re: Concern : Slow Model Data Upload
Thanks Kim for your prompt reply. I am not in town right and so not able to acess the SQL Server .So I am not sure about the logging/backup model being used.
nbsp
http://technet.microsoft.com/en-us/library/ms179478.aspx
nbsp
So do I have to follow instruction 6 and 15 in the link above to change the logging/backup model?
nbsp
Thanks.
Pradnya
nbsp
On Thu, May 5, 2011 at 11:07 AM, Kim Schreuders ltgt wrote:
Pradnya,
How big is your .ldb file? What logging/backup model are you using? Is is possible that your .ldb file has gotten inordinately large? That would cause the system to slow down dramatically. Especially when loading large batches of data, you can probably use
the simple backup model to truncate the .ldb file after each transaction. If your problem is overly large/complex .ldb files, changing the backup mode could speed things up dramatically.
Kim
From: Yoori Choi []
Sent: Thursday, May 05, 2011 7:47 AM
To: David Tarboton; Jeff Horsburgh; Kim Schreuders
Cc: 'Pradnya Khutafale'; 'Ding Wei'
Subject: FW: Concern : Slow Model Data Upload
Dear Dave, Jeff, and Kim:
UMass Boston group finally completed to filling in all template spreadsheets (i.e. sites, datavalues, source, variables) and they started to loading them into ODM DB by using Data Loader. But there are some performance issue. If you see the message from Pradnya
at the below, it took pretty long time to loading them in DB. As I understand, this performance issue (handling a large files) in DL is already known, but I would like to ask you if there is any way to improve performance, but need to use Data Loader. If you
can give any comments on this, it would be great. Thank you.
Yoori Choi, User Support Specialist
CUAHSI
196 Boston Ave., Suite 2100
Medford, MA 02155
From: Pradnya Khutafale []
Sent: Thursday, May 05, 2011 8:23 AM
To: Yoori Choi
Cc: Ding Wei
Subject: Concern : Slow Model Data Upload
Hi Yoori,
nbsp
I have started uploading the model data using batch file. So in this batch mode, validations, adding records to the DataValues table is done within a minute. However, writing to Series Catalog table takes about 20-30 minutes for one file. I have around 250
files for 1 month data. Each file has records in range (5000-70,000). So at this rate( 250*30 minutes = 7500 minutes) , it will take me around 8-9 days to upload 1 month data. (DataValues table has around 13 lakhs records and series Catalog that I checked
yesterday evening(while data was uploading) had 11,000 records.)
nbsp
I have attached few sample DataValues-metainformation .csv(for temperature and bathymetry) and the batch file I used for those.
Can you or expert from your team comment on why its taking so much time? Is their any way to improve it?
nbsp
nbsp
Thanks.
Pradnya

horsburgh[CodePlex] Fixed in release for ODM 1.1.1.


Missing the type returned by sizeof()

What type is returned by sizeof() ?
int? unsigned int? unsigned long long?
Depends on if it's the 32 bit compiler or the 64 bit compiler.
I think the answer is size_t

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

ID: 5963bde5-e75d-6f45-c6ec-da18928db61c
Version Independent ID: 45921119-671e-494a-a91c-c3c0066e7b6a
Content: sizeof Operator
Content Source: docs/cpp/sizeof-operator.md
Service: visual-cpp
Sub-service: cpp-lang
GitHub Login: @TylerMSFT
Microsoft Alias: twhitney

sizeof() is not a library feature of course, it is a C/C++ language feature (operator).


Nextcloud #webdav

https://blog.ipfs.tech/2022-10-13-ipfs-over-webdav/

If you know of any projects you find interesting where WebDAV is supported but IPFS isn't, please send us that hint as a Github issue here (opens new window).

I'm surprised that issues here don't mention Nextcloud at all, taking into account how much (data) privacy and self hosting is praised by that system.

Hmm, that sentence makes it look like this repo is for IPFS integrations over WebDAV. I could've written that better when i made that blog post ;)
Anyhow, this repo is to track potential third-party projects where integrating IPFS support would be great to have (that is not related to WebDAV at all). Nextcloud has IPFS support though this plugin https://apps.nextcloud.com/apps/files_external_ipfs so adding it to the list - tracking it here in issues - didn't make much sense.
I might well have been wrong, don't know the state of that plugin. Perhaps you know?

Nah, i'll keep this open for future reference.
A lot changed since their last commit so i doubt it's "done".
Probably just a lack of interest on their end.


migration-up doesn't connect to remote projects

Describe the bug
Migration-up functionality works only on local-development.
Nor supabase migration up --db-url "$REMOTE_DB_URL" or supabase migration up --linked seem to interact with the remote db; migration-up always connects to local-dev.
To Reproduce
$ REMOTE_DB_URL="postgresql://postgres:${REMOTE_DB_PASSWORD}@db.${SUPABASE_PROD_PROJECT_ID}.supabase.co:5432/postgres"
$ supabase migration up --db-url "$REMOTE_DB_URL"
Applying migration<PHONE_NUMBER>0547_add-mytable-new_column.sql...
ERROR: column "new_column" of relation "mytable" already exists (SQLSTATE 42701)
At statement 0: -- we test a 'new_column' migration with
alter table "public"."mytable" add column "new_column" boolean not null default true
Try rerunning the command with --debug to troubleshoot the error.

$ supabase stop
Postgres database saved to volume: supabase_db_spydefi-be
Postgres config saved to volume: supabase_config_spydefi-be
Storage directory saved to volume: supabase_storage_spydefi-be
Inbucket emails saved to volume: supabase_inbucket_spydefi-be
Stopped supabase local development setup.

$ supabase migration up --db-url "$REMOTE_DB_URL"
failed to connect to `host=localhost user=postgres database=postgres`: dial error (dial tcp <IP_ADDRESS>:54322: connect: connection refused)
Try rerunning the command with --debug to troubleshoot the error.
$ supabase link --project-ref $REMOTE_PROJECT_ID --password "$REMOTE_DB_PASSWORD"
$ supabase migration up --linked
failed to connect to `host=localhost user=postgres database=postgres`: dial error (dial tcp <IP_ADDRESS>:54322: connect: connection refused)
Try rerunning the command with --debug to troubleshoot the error.

Expected behavior
--linked or specific --db-url should run the migrations on the remote Supabase database, rather  than on the local-dev environment.
Desktop (please complete the following information):

OS: Ubuntu 22.04
Version of CLI [e.g. v1.99.5]

Additional context
I restored a database from a dump onto the remote project's database; I need to run a migration that I created on local-development, but the issue is a blocker for managing remote migrations.

Thanks for reporting this issue. It might have been a mistake to expose --db-url and --linked flags to migration up command as it's traditionally used for local database only.
As a workaround, could you run supabase db push --db-url "$REMOTE_DB_URL" instead?

Oh ok I understand, I'm also victim of copy/paste at times 😁
Is db push a workaround or is the functionality the same?

db push was created before migration up so it will more likely stay. Its functionality is to apply your local migrations to the remote db.

This has been fixed in latest release https://github.com/supabase/cli/releases/tag/v1.110.1


Add redshift dependency

Adding a new model containing the redshift dependency in a generalized framework.
It needs to be tested

@AlexGKim I have added you to the repository, which is quicker.
One last problem that I do not understand is why you computed the derivative wrt fs8 and not s8 ?
In the \Omega_m \gamma parameterization, you do not have fs8 anymore, you have (\Omega_m, \gamma, s8) as parameters, so I would expect the last derivation to be wrt to s8 and not fs8 ? But maybe I do not understand


Add explorer context menu to install an extension from a VSIX

This PR fixes #99459

@lszomoru There's a popular extension that people use from 2017 Install .VSIX and it has Install Extension context menu entry at the very BOTTOM of the menu. Would it be possible to mimic that behavior and move it to the same place?

@usernamehw, sure, I can look at moving the menu item to the bottom. Having said that, please keep in mind that since extensions can contribute to the explorer context menu, the order of the menu items can vary based on the extensions that one might have installed.

Addressed in 3d0242287ef3e5a77de3f9b00639accf36044ee9


#GSSoC2023 1.Added section 'ml,ai and data' and provided links for ML, Data Science and Deep Learning

…, dl and data science'

also added a section for DeepLearningAI in database/youtube/machine-learning.json

fixed a bug in displaying the golang section in main branch

added a new blog card for blogs.json

modified the types/index.ts, data.ts and index.ts sections for displaying the changes

Changes proposed

Created a new category ML, AI & DATA
Created subcategories for Machine Learning, Deep Learning and Data Science
Created a new entry in the blogs.json file for Andrew Ng's blog on AI, ML and Deep Learning
Created a new entry in machine-learning.json file for DeepLearningAI's youtube channel
Added a link in database/languages/golang.json file, which was empty 🙃

Screenshots

Note to reviewers
Please comment if some issues persist.. will fix them ASAP !!

@rupali-codes @CBID2  , created a ML, Deep Learning, Data Science related category and added a few other stuff !!
Thought it was important ..

@rupali-codes @CBID2  , created a ML, Deep Learning, Data Science related category and added a few other stuff !!
Thought it was important ..

Good job @Grogu22! 😊

@rupali-codes @CBID2  , created a ML, Deep Learning, Data Science related category and added a few other stuff !!
Thought it was important ..

Good job @Grogu22! 😊

also, can I get write access to the repo please.. 😢
cannot add a GSSoC'23 label !!

@rupali-codes @CBID2  , created a ML, Deep Learning, Data Science related category and added a few other stuff !!

Thought it was important ..

Good job @Grogu22! 😊

also, can I get write access to the repo please.. 😢
cannot add a GSSoC'23 label !!

Sorry @Grogu22. Only the maintainers can have write access to the repo.

yup.. committed the changes @CBID2

yup.. committed the changes @CBID2

Link the issue that your PR pertains to as well

Did not open an issue.. did a direct PR!! Should I open one now? @CBID2

Did not open an issue.. did a direct PR!! Should I open one now? @CBID2

Yes @Grogu22. I'm going to close this PR for now. Once you create the issue, I'll open it right back up! 👍🏾 In the future, please thoroughly review the Contributing.md before you contribute to LinksHub again.

This PR solves the issue #614.
Maybe merge it @CBID2 @rupali-codes ?

Hey, @CBID2 @rupali-codes, did the following:

Added issue to PR
Resolved conversations
Resolved a merge conflict


Documentation Updates and Fixes

These changes update the main README to include instructions that should actually help new (or forgetful) users to build the Zinc examples.  I also removed the autotools stuff that was referenced previously in favor of encouraging users to just use Cargo.
An external reference project is also pointed to that provides next steps for an individual looking to create something for a supported process outside of Zinc itself.  That project includes a simple reference Makefile that can be adapated as users see fit.

Relates to or fixes #347 #333 #336 and maybe a few others.  There appear to be a number of issues that can now be closed given that you can actually build zinc at the moment and the docs are starting to line up.

Nice to see autoconf to be gone again :smile:

Nice to see autoconf to be gone again

:+1:


Version 4.1

rc contains a lot of bug fixes and some nice features, like plantuml support. We were hoping to get CSS updates in there, but I don't see this happening in the near future. So let's get this stuff out there. :-)

:+1: Thanks @dometto !


[10.x] Improve display of sub-minute tasks in schedule:list command.

This PR:

Fixes the display of the "Next Due" time for sub-minute tasks in the schedule:list Artisan command.
Displays the repeat frequency where applicable.

Awesome, thank you Jess!


[luasec] Bump version to 1.3.1

[x] Changes comply with the maintainer guide
[x] SHA512s are updated for each updated download
[x] The "supports" clause reflects platforms that may be fixed by this new version
[x] Any fixed CI baseline entries are removed from that file.
[x] Any patches that are no longer applied are deleted from the port's directory.
[x] The version database is fixed by rerunning ./vcpkg x-add-version --all and committing the result.
[x] Only one version is added to each modified port's versions file.

No feature needs to be tested.

Thanks for the update!


Possibly Rename Join Back To Loop

I think it's a better, more descriptive name for what it does.  Depends on https://github.com/ardaku/pasts/issues/31

Resolved in 5bc14ba3e4af17e2d81acf512de78c2fab65f0a9