Stuck after distributed to GPU

First, thank you for you awesome work.
Here, I've met some problems when running your code.
For multi queries ( number of unique qid > 1 ), the code stuck at this point.
...
[INFO] 2021-07-07 09:25:46 - loaded dataset with 2 queries
[INFO] 2021-07-07 09:25:46 - longest query had 171 documents
[INFO] 2021-07-07 09:25:46 - val DS shape: [2, 171, 175]
[INFO] 2021-07-07 09:25:46 - Will pad to the longest slate: 171
[INFO] 2021-07-07 09:25:46 - total batch size is 128
[INFO] 2021-07-07 09:25:46 - Model training will execute on cuda
[INFO] 2021-07-07 09:25:46 - Model training will be distributed to 8 GPUs.
[INFO] 2021-07-07 09:25:48 - Model has 36868 trainable parameters
[INFO] 2021-07-07 09:25:48 - Current learning rate: 0.001

I've tried to wait for about three hours while still no progress (Both for my dataset and your sample generated dummy dataset). And I even can't use Ctrl+c to stop this process. When I check my cuda with nvidia-smi, the usage of GPUs is normal.
Then I tried with single query (with all qid:0) dataset, the code runs fine.
So, what might cause this problem?

System: Ubuntu 20.04
GPUs: A100, 40G
Config: local_config.json only changed the data root path

UPDATE: This is an issue with Multi GPUs.
✔SOLUTION:I've tried multi queries on Singel GPU (using CUDA_VISIBLE_DEVICES=0), the code runs fine.
You can close this issue if the problem is located.

Thank you for submitting the issue. We'll keep the issue open for now as we're going to investigate the DataParallel issues the following week. We have DistributedDataParallel in the roadmap (much more effective than standard DataParallel) but that's still a somewhat distant perspective.


dropClass fails when class name contains dash

OrientDB Version: 3.0.26, 3.1.0-M3
Java Version: 1.8
OS: OSX
Expected behavior
Expected that when "dropClass" is called for a class name that contains a dash that it succeeds.
Actual behavior
Actual behavior is that an exception is thrown that the command cannot be parsed.
Steps to reproduce

Use OSchema to create a new class named "test-class"
OSchema method "dropClass" with the same name. An exception is thrown.

The same behavior is observed trying to use SQL to execute the drop class.
See attached junit 4 test where "dropClass" throws an exception when a dash is in the class name.
UnitTestClasses.zip

Forgot a class that wraps the creation of the OServer, attaching a new zip that contains both classes.
UnitTestClasses.zip

Hi @wmccusker
Thank you very much for reporting, I managed to reproduce and fix the issue.
The fix will be released with v 3.0.27
Thanks
Luigi

Thanks for the quick fix!


PhantomJS compatibility

Useful for SEO and JS-less browsers, see this.

Why PhantomJS? Node/io.js seems to be a lot more stable and more widespread.

PhantomJS allows Angular stuff to easily be hosted without JS (take a look at that link for info about how it's done)


Backport workaround for running on ruby/ruby repo

I added test-syntax-suggest for ruby/ruby CI at https://github.com/ruby/ruby/pull/6287
We need to some of workarounds about syntax_suggest.

Thank you!


Fix mongodb lib check

Pull Request Test Coverage Report for Build 423

0 of 0   changed or added relevant lines in 0 files are covered.
63 unchanged lines in 3 files lost coverage.
Overall coverage decreased (-2.7%) to 65.152%

Files with Coverage Reduction
New Missed Lines
%

dist/plugins/error/HttpError.js
5
28.57%

dist/Reporter.js
9
53.52%

dist/ThundraWrapper.js
49
45.09%

Totals

Change from base Build 419:
-2.7%

Covered Lines:
1887

Relevant Lines:
2692

💛  - Coveralls


Fix a pair of tests on Apple silicon

[x] Have you followed the guidelines in our Contributing document?
[x] Have you checked to ensure there aren't other open Pull Requests for the same change?
[x] Have you added an explanation of what your changes do and why you'd like us to include them?

[ ] Have you successfully run brew typecheck with your changes locally?
[x] Have you successfully run brew tests with your changes locally?

This fixes a few tests that are broken specifically on ARM.

The analytics embed the architecture in the string on ARM, so the comparison will fail unless we add some extra mocking.
The sample JSON in list embedded the test fixture path based on a /usr/local prefix, which isn't true on ARM. I've switched to using the same TEST_FIXTURE_DIR path as in the cask definitions.

Review period will end on 2021-06-17 at 04:42:51 UTC.

Review period skipped due to critical label.


Charlesw, when will you update this wrapper to tesseract 3.0.4?

Charlesw, when will you update this wrapper to tesseract 3.0.4?
Thanks in advance!!!

I've  prepared a release branch which should be good to go. However will
hold off on releasing this.as i dont have time to fix any issues that may
occur at the moment.
On Nov 26, 2015 4:20 PM, "qiangpenggg"<EMAIL_ADDRESS>wrote:

Charlesw, when will you update this wrapper to tesseract 3.0.4?
Thanks in advance!!!
—
Reply to this email directly or view it on GitHub
https://github.com/charlesw/tesseract/issues/226.

@charlesw - This sounds good. Can you please provide the links of the release branch which would be updated branch of Tesseract 3.04?

Never mind @charlesw - I found it here reelase

The initial 3.0.0 has now been released and available for consumption. Please make sure you read the change log and make note of any breaking changes. If you come across any bugs please don't hesitate to file a new ticket and I'll have a look into it.

Sounds awesome!
On 19/12/2015 7:35 AM, "Charles Weld"<EMAIL_ADDRESS>wrote:

Closed #226 https://github.com/charlesw/tesseract/issues/226.
—
Reply to this email directly or view it on GitHub
https://github.com/charlesw/tesseract/issues/226#event-496407731.


chore(deps): update dependency url-loader to ^1.0.0

This Pull Request updates dependency url-loader from ^0.6.0 to ^1.0.0

Release Notes
v1.0.0
Bug Fixes

index: use Buffer.from instead of deprecated new Buffer (#113) (457618b)

v1.0.1
Bug Fixes

index: revert to CJS exports (module.exports) (#116) (7b60cc2)

Commits
v1.0.0

5aeba3e chore: Update to defaults rc.1
4a62cd5 ci(circle): Generate checksum from lock file
b4be0c8 ci(circle): Fix rebuild issues
457618b fix(index): use Buffer.from instead of deprecated new Buffer (#113)
0390cdb test: standardize (`@webpack-contrib/test-utils`) (#114)
0eeaaa9 chore(release): 1.0.0

v1.0.1

18555fa docs(README): add missing badges (#117)
7b60cc2 fix(index): revert to CJS exports (module.exports) (#116)
08135bc chore(release): 1.0.1

Renovate Ignore Notification
As this PR has been closed unmerged, Renovate will ignore this upgrade and you will not receive PRs for any future 1.x releases. However, if you upgrade to 1.x manually then Renovate will then reenable updates for minor and patch updates automatically.
If this PR was closed by mistake or you changed your mind, you can simply rename this PR and you will soon get a fresh replacement PR opened.


Connection check problem

Hi,
I tried to check connection with check.py script, but I am constantly getting 'NoneType' object has no attribute 'text'
In step before I successfully got $metadata, so I am pretty sure that there is some problem with connection.
I installed most recent TM1py (1.8) and TM1 Server is on version 11.5.
I tried first tried Python 3.10.0 and then transferred to Python 3.9.7., but that didn't solve problem.
Configuration that I am filling on input:
TM1 User (leave empty if SSO): user
Password (leave empty if SSO):pass
CAM Namespace (leave empty if no CAM Security):
Address (leave empty if localhost): https://dw-tm1paw207.pi.local
ClientCAMURI (leave empty if no SSO):
HTTP Port (Default 5000): 1234
SSL (Default T or F): T
My config file:
[TM1S]
DistributedPlanningOutputDir=tunitS
PersistentFeeders=T
ForceReevaluationOfFeedersForFedCellsOnDataChange=T
DataBaseDirectory=DataFiles
LoggingDirectory=LogFiles
ServerName=Server_Name
PortNumber=123456
HTTPPortNumber=1234
UseSSL=T
AdminHost=localhost
Language=eng
Protocol=tcp
AllowSeparateNandCRules = T
NetworkFrame=
SaveTime=
DownTime=
RuleTraceOn=
RunningInBackground=T
GroupModeThreshold=0
Any help would be appreciated.

Check if this helps: https://code.cubewise.com/tm1py-help-content/category/Configuration

Yes, I also executed https://dw-tm1paw207.pi.local:1234/api/v1/$metadata successfully from that other machine.

#import TM1py services
from TM1py.Services import TM1Service
from TM1py.Utils import Utils
#TM1 credentials
ADDRESS = "https://dw-tm1paw207.pi.local"
PORT = 1234
USER = "user"
PWD = "pass"
SSL = True
#Connect to the TM1 instance
tm1 = TM1Service(address=ADDRESS, port=PORT, user=USER, password=PWD, ssl=SSL)

Thank you so much for your time, I didn't realize that could be problem.


Marten7 UseNumericRevisions(false) keeps m.Metadata.Revision.Enabled enabled for Async projections

Seems like Marten7 is forcing numeric revisions on async projections by this policy (it was definitely a surprise during upgrade and should have been mentioned in the Migration Guide and not only on the concurency page)

Is there a reason why numeric  is forcefully enabled in this case?
Seems like the policy should have checked if IVersioned with Guid was present on the projection type?
Perhaps there should be a way to opt out for Guid Revision?

The problem is when you try to opt out from this via explicit UseNumericRevisions(false),
options.Projections.Snapshot<SomeProjectionAggregate>(SnapshotLifecycle.Async)
            .UseNumericRevisions(false);

then m.Metadata.Revision.Enabled = true is still enabled resulting in exception during schema patch generation
Unhandled exception: System.ArgumentException: An item with the same key has already been added. Key: mt_version
   at System.Collections.Generic.Dictionary`2.TryInsert(TKey key, TValue value, InsertionBehavior behavior)
   at System.Collections.Generic.Dictionary`2.Add(TKey key, TValue value)
   at System.Linq.Enumerable.ToDictionary[TSource,TKey](List`1 source, Func`2 keySelector, IEqualityComparer`1 comparer)
   at Weasel.Postgresql.Tables.ItemDelta`1..ctor(IEnumerable`1 expectedItems, IEnumerable`1 actualItems, Func`3 comparison)
   at Weasel.Postgresql.Tables.TableDelta.compare(Table expected, Table actual)
   at Weasel.Core.SchemaObjectDelta`1..ctor(T expected, T actual)
   at Weasel.Postgresql.Tables.TableDelta..ctor(Table expected, Table actual)
   at Weasel.Postgresql.Tables.Table.CreateDeltaAsync(DbDataReader reader, CancellationToken ct)
   at Weasel.Core.SchemaMigration.DetermineAsync(DbConnection conn, CancellationToken ct, ISchemaObject[] schemaObjects)
   at Weasel.Core.SchemaMigration.DetermineAsync(DbConnection conn, CancellationToken ct, ISchemaObject[] schemaObjects)

/// <summary>
      /// Directs Marten to use the numeric revisioning for this specific
      /// document type
      /// </summary>
      /// <returns></returns>
      public MartenRegistry.DocumentMappingExpression<T> UseNumericRevisions(bool enabled)
      {
        this._builder.Alter = (Action<DocumentMapping<T>>) (m =>
        {
          m.UseNumericRevisions = enabled;
          if (!enabled)  // the method will return here
            return;
          m.Metadata.Revision.Enabled = true; // this revision would be kept enabled.
        });
        return this;
      }

IMO we need to either disable as well via m.Metadata.Revision.Enabled = enabled inside UseNumericRevisions(false) or provide an alternative extension method to do switch to Guid based revisions

@murlakatam
"Is there a reason why numeric is forcefully enabled in this case?
Seems like the policy should have checked if IVersioned with Guid was present on the projection type?
Perhaps there should be a way to opt out for Guid Revision?"

Yes, the numeric revision was necessary to enable the blue/green deployments
Yes, I missed this in the migration guide out of the sheer number of things that were going on. I apologize. Also, "I take pull requests"
It never made any sense to use optimistic concurrency on a document type that was being built by projections and I've always recommended against doing that because of the risk of destabilizing the async daemon

@murlakatam I guess I'd like to hear your argument for why it makes any sense at all to use the Guid based versioning for a projected document. At this moment, I'm not enthusiastic about making any changes here. The revisioning is 100% necessary for this:
https://jeremydmiller.com/2024/03/05/marten-7-makes-write-model-projections-super/

The user's problem here would be addressed by other fixes


Radio button 1st item could not get selected after switch to other item

Version: 1.1.1
Browser: Mac Safari 9.0.3, Mac Chrome 48.0
[X] First    [ ] Second

In radio button, after click to select Second, then select back First, First not get selected. Neither my own code or getmdl.io demo work.
http://getmdl.io/components/index.html#toggles-section

This also occurs on both Microsoft Edge 13 and Google Chrome 48 on Windows 10.

Marking as a critical issue since this is a regression affecting form controls.
cc @surma and @sgomes either of you want to take a peek at debugging this? I can't remember who wrote this component.

I probably won’t be able to take a stab at this for at least a week or two. Sorry :confused:

Alright, I'll take a look first thing in the morning.

This could be happened when there has one of the radio initially marked checked
Thank you.

Also check the checkboxes at the top of the same page. The first checkbox can't even be unchecked, which I also believe is erroneous.

@jwashin has spotted the problem in issue #4149. There isn't a regression in the code but instead documentation samples conflicting.
The list samples added controls as well, which were copy & pasted from the main controls. This is fine when testing individually as we were, but upon generating the documentation page the ID and names conflict which causes the problems.
All we need to do is update the list examples and this should be good. I'll work on that patch in just a few minutes.

This should now be fixed in mdl-1.1 after the merge of #4161.


While using redux, uncaught TypeError: undefined is not a function

redux-logger version :1.0.0/3.0.0
code snippets:
import {appliMiddleware, createStore} from 'redux';
import logger from 'redux-logger';

const middleware = appliMiddleware(logger);
const store = createStore(reducers, middleware);

but it shows the error
Uncaught TypeError: undefined is not a function
the chrome version is 37.0
I hitted this error before , for the chrome 37 not support some ES6 functions, dont know if this
redux-logger error is relative or not.
Could u help ?

Latest Chrome version is 59.0.3071.115.
Latest redux-logger version is 3.0.6.
Also you misspelled applyMiddleware as appliMiddleware.


Update jupyterlab4

Describe your changes
This PR updates the plugins to jupyterlab 4.
It cherry-picked the commits from jupyterlab4 branch, as discussed https://github.com/ploomber/jupysql/issues/930#issuecomment-1868397347.
Issue number
Related to https://github.com/ploomber/jupysql/issues/930
Checklist before requesting a review

[x] Performed a self-review of my code
[x] Formatted my code with pkgmt format
[x] Added tests (when necessary).
[x] Added docstring documentation and update the changelog (when needed)

hey @brichet is this ready for review?

The autocomplete results look different:
Previously:

As per this PR:

Also, I don't see the SQL Formatting button and highlighting also doesn't seem to be working?
@brichet

Also, I don't see the SQL Formatting button and highlighting also doesn't seem to be working?

Thanks for your feedbacks.
Can you check the jupyterlab version please, it worked on my side, but I can't test it again currently.

hey @brichet is this ready for review?

I think so, yes.

Can you check the jupyterlab version please

It's 4.0.10
@brichet

The autocomplete results look different:
Also, I don't see the SQL Formatting button and highlighting also doesn't seem to be working?

@neelasha23 @brichet I'm experiencing the same issue, also on jupyterlab 4.0.10

Let's wait for review, the syntax highlighting doesn't work for me neither anymore.
However, formating and completion work on my side with lab 4.0.10.

@neelasha23 everything works fine on my side, in a new environment. Does it still not work on your side?
@bryannho thanks for the first review, I updated the completer implementation and tests.
@edublancas wondering whether we should add jupysql and ipywidget as dependencies.

@neelasha23 everything works fine on my side, in a new environment. Does it still not work on your side?
@bryannho thanks for the first review, I updated the syntax highlighting implementation and the completer tests.
@edublancas wondering whether we should add jupysql and ipywidget as dependencies.

I just tested this on a clean environment, and it works (I tested syntax highlighting, autocompletion, and formatting). @neelasha23 if you're having issues testing it, run git clean -fdx to clean all JS/TS modules + any other extra files and then install everything.
@brichet no need to add those dependencies, jupysql-plugin is already a dependency in jupysql, and the idea is that people should get the jupysql-plugin via pip install jupysql
@bryannho please resolve any pending observations so we can merge this soon!


Can you provide a Docker container！！！

I do not have time for that atm. You would need to create the docker file yourself.


Add support for signed authorize requests

https://openid.net/specs/openid-connect-core-1_0.html#JWTRequests

mostly done

done and pushed to nuget as 2.5.0-preview.2


Lack of hotkeys/fast way to "delete" something

If you have to delete a lot of commands it's a very tedious and annoying process of right-clicking and deleting each command. There should be a faster way to do so (the "Del" key?)

Related to #100

Fixed by #132


Unit testable LINQ extensions

I am using LINQ extensions MaxAsync and CountAsync in my code. Is there a way for me to Unit test it?
I see comments here and here which say it is very difficult to mock extensions. If you can help with any other way of doing it, it will be really helpful.
Thanks!

The easiest solution is create a wrapper as explained in this issue  you already have linked.
The other solution is mocking Container.GetItemLinqQueryable and return a List . When you call CountAsync it will just call the List.Count method. The downside to this is it won't support any of the inner linq extensions like IsDefined.


[Stylecop] Fix warnings in the AppInsight.WebApi.Tests project

Fix spacing
Add trailing comma
Fix documentation
Reorder usings

Pull Request Test Coverage Report for Build 51645

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage remained the same at 75.588%

Totals

Change from base Build 51599:
0.0%

Covered Lines:
4304

Relevant Lines:
5694

💛  - Coveralls


[mov,mp4,m4a,3gp,3g2,mj2 @ 0xc5867600] moov atom not found

I uploaded a video file and background image and tried using BackgroundMattingV2-VideoMatting.ipynb, but it gives me the following error:
[mov,mp4,m4a,3gp,3g2,mj2 @ 0xc5867600] moov atom not found
VIDIOC_REQBUFS: Inappropriate ioctl for device
0% 0/1 [00:00<?, ?it/s]Traceback (most recent call last):
File "inference_video.py", line 178, in
for src, bgr in tqdm(DataLoader(dataset, batch_size=1, pin_memory=True)):
File "/usr/local/lib/python3.6/dist-packages/tqdm/std.py", line 1104, in iter
for obj in iterable:
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 435, in next
data = self._next_data()
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/dataloader.py", line 475, in _next_data
data = self._dataset_fetcher.fetch(index)  # may raise StopIteration
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in fetch
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/usr/local/lib/python3.6/dist-packages/torch/utils/data/_utils/fetch.py", line 44, in
data = [self.dataset[idx] for idx in possibly_batched_index]
File "/content/BackgroundMattingV2/dataset/zip.py", line 17, in getitem
x = tuple(d[idx % len(d)] for d in self.datasets)
File "/content/BackgroundMattingV2/dataset/zip.py", line 17, in
x = tuple(d[idx % len(d)] for d in self.datasets)
ZeroDivisionError: integer division or modulo by zero
0% 0/1 [00:00<?, ?it/s]
How can I resolve it?
Thanks!

I think there are some issues with your video file format that cannot be read.
Maybe try converting it to a common h.264 mp4 format.

I think there are some issues with your video file format that cannot be read.
Maybe try converting it to a common h.264 mp4 format.

I checked the codec information, and it was already in h264 format but I hadn't removed the audio stream. Works after removing the audio.
Thanks!

I checked the codec information, and it was already in h264 format but I hadn't removed the audio stream. Works after removing the audio.
Thanks!

I checked the codec information, and it was already in h264 format but I hadn't removed the audio stream. Works after removing the audio.
Thanks!

I checked the codec information, and it was already in h264 format but I hadn't removed the audio stream. Works after removing the audio.
Thanks!

use full path like "/Users/amit/Desktop/test.mp4" apparantly opencv not enough abridged version of path


Lowercase 'Solo' in 'Face-melting guitar Solo'

Changed the case of Solo in the message 'Face-melting guitar Solo' because, unless there's an extremely subtle Star Wars reference I'm missing, solo isn't a proper noun here.

:+1:


Making a payment with this plugin

Hello,
I am building and Ionic 3 app. For web, android and iOS.
I would like users to be able to make payments with this plugins.
Is it possible?
Using the basic usage code I have been able to add a test credit card to POST /v1/tokens.
But I want to charge it.
docs say
"Once you have the token, you can now send it to your backend so you can charge the customer later on."
What function "sends it to my backend"?
how is this done? like this?
stripe docs Charge immediately
if so which language?(Ionic 3 is in typescript). I see no .charges function in the plugin to charge with. Am I missing something?
here is my code. any insight is appreciated.
`
//stripe declared in constructor earlier.
testPay(){
this.stripe.setPublishableKey('pk_test_7Rywuc5EH1tavYiXXX');
    let card = {
    number: '4242424242424242',
    expMonth: 12,
    expYear: 2020,
    cvc: '220'
    };

this.stripe.createCardToken(card)
 .then(token => alert('token: ' +JSON.stringify(token)))
 .catch(error => alert('error: ' +error));

}`

You should have a backend that processes payments. Your frontend (app) should collect credit card information, then use the plugin to send this information to Stripe. The plugin will then provide you with a token. This token can be sent to your backend, and then used to charge the customer or subscribing them to some membership.
This plugin only wraps the mobile SDKs provided by Stripe. It's not going to have an HTTP client that speaks to Stripe on your behalf. Charging users require including your secret key in the app, which is an unsafe practice. If you want to charge users through the app without a backend, you can send an HTTP request using your secret key (do this at your own risk).

Thanks for your information.
What would be the best/safest way to process a payment after I have used this plugin to get/send a token? Through the stripe dashboard?
what are the dangers of including the secret key in the app and processing the payment without a back end?

I usually have a Node.JS based backend (Express.JS) that handles data, authentication, and payments. I use Stripe's Node.js library to process the stripe payments. The usual process goes like this:

Collect credit card payments in the front end, and send it to Stripe using their SDK (JavaScript, Android, iOS ...etc)
If the credit card info is valid, I receive a token from Stripe. This token is the only thing I send to the back end. It is safe to send it because no one can use it unless if they have my secret key (that matches the publishable key I use in the front end). This way I will not risk my customer's credit card information, and I make sure that only Stripe gets to see that information.
Use server-side Stripe SDK to send them the token. I can either use the token to charge their credit card immediately, or save it in the customer's profile (on Stripe) to charge them at a later date or subscribe them to some sort of monthly/annual membership.

Anything that you include in your app's source code can be acquired by reverse engineering. If someone acquires your secret key, they will be able to use all the Stripe API features. Which means they will get to pull customer data, payment history, issue refunds, charge customers with money they're not supposed to be charged... etc.

I understand. I am using firebase as my back end (database and auth). Would any of these integrations be secure enough?
A: Keep the secret key on the database and only pass it to the app when necessary to make a payment?
B: Storing the tokens on a database to then make payments with a local server once a day.
C: Using the Firebase Functions Specifically, Integrate with third-party services and APIs.
I am leaning towards C. But any thoughts you might have are appreciated.

Sending the key to the app is also unsafe.
Processing payments once a day isn't a good user experience. But that
depends on your customers. Also, I think tokens expire...
I suggest using Amazon Lambda. Also check "Serverless". You can make server
code that runs only when you wanna charge a customer. This will cost you
only a few cents. You can add that cost to the payment fees too.
May I ask what are you charging customers for? If you're selling them an
app feature or anything app related, you must use in app purchase plugin.
Regards,
Ibby Hadeed
Sent from my phone
On Aug 27, 2017 1:54 PM, "AwesomeJ0sh"<EMAIL_ADDRESS>wrote:

I understand. I am using firebase as my back end (database and auth).
Would any of these integrations be secure enough?
A: Keep the secret key on the database and only pass it to the app when
necessary to make a payment?
B: Storing the tokens on a database to then make payments with a local
server once a day.
C: Using the Firebase Functions
https://firebase.google.com/docs/functions/use-cases Specifically,
Integrate with third-party services and APIs.
I am leaning towards C. But any thoughts you might have are appreciated.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/zyra/cordova-plugin-stripe/issues/33#issuecomment-325213774,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANJ8dJQbUOBV4BaaAbiZK9gdPfBr3ViPks5sca1LgaJpZM4PBwy-
.

Thank you, I will look into Amazon Lambda. seems to be a fairly simple way to do it and will integrate with firebase.
Are there any disadvantages to using firebase functions over Amazon Lambda? besides price?
I am getting users to pay registration fees for events they plan to attend in the future. Sort of like buying tickets.

Not so sure. I don't use firebase.
Regards,
Ibby Hadeed
Sent from my phone
On Aug 27, 2017 2:43 PM, "AwesomeJ0sh"<EMAIL_ADDRESS>wrote:

Thank you, I will look into Amazon Lambda. seems to be a fairly simple way
to do it and will integrate with firebase.
Are there any disadvantages to using firebase functions over Amazon
Lambda? besides price?
I am getting users to pay registration fees for events they plan to attend
in the future. Sort of like buying tickets.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
https://github.com/zyra/cordova-plugin-stripe/issues/33#issuecomment-325216547,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ANJ8dJDfGYn_InKb7GVwmG8CvTVrbVC7ks5scbjUgaJpZM4PBwy-
.

Thanks for your info. Great plugin!


sys/stats: Fix build warnings when stats are stubbed

In several places return value of stats_init_and_reg() is ignored.
When stub implementation is used this evaluates to just 0 then
there are statements like:
0;
which are reported in following way
Error: In file included from repos/apache-mynewt-core/hw/bus/include/bus/bus_driver.h:26,
from repos/apache-mynewt-core/hw/bus/src/bus.c:25:
repos/apache-mynewt-core/hw/bus/src/bus.c: In function 'bus_dev_init_func':
repos/apache-mynewt-core/sys/stats/stub/include/stats/stats.h:75:33: error: statement with no effect [-Werror=unused-value]
75 | #define stats_init_and_reg(...) 0
|                                 ^
repos/apache-mynewt-core/hw/bus/src/bus.c:250:5: note: in expansion of macro 'stats_init_and_reg'
250 |     stats_init_and_reg(STATS_HDR(bdev->stats),
Now places that ignore return value from stats_init_and_reg() evaluate to
(void)0;
... for stats stub version.

Wouldn't it be more useful to actually use the value? I think you should assert or return error as stated in the comments above the modified lines.

LGTM


[fuchsia] Upload the test archives files to CIPD to run the test in GI / G3 rather than flutter/engine

These tests have sometimes been flaky due to various non-flutter related problems. They're still being run on CIPD but that doesn't exercise the device finder code-path.
See: fxb/63130
More context: https://github.com/flutter/flutter/issues/69140

/cc @chaselatta


(FACT-963) Remove pre-suite env setup for AIO

The acceptance tests attempt to install the JSON gem everywhere for all
types of installations. AIO tests do not require them, and the other
testing types are no longer supported (by virtue of them simply not
working and we haven't figured out what to do with them).
Specifically testing is blocked for AIO on Debian 8 because it does not
contain the same libjson-gem that the tests try to install. Remove the
entire environment setup pre-suite step, as with AIO there's no need to
install git, ruby, or any gems.

@joshcooper this addressed stable

I get an acceptance fail in facter#stable unrelated to this PR I think:
$ bundle exec rake ci:test:aio SHA=0f7b130300710aa35013602b665b91109af831a6 CONFIG=config/nodes/ubuntu-1404-i386.yaml
...
Errored Tests Cases:
  Test Case tests/facter_json_output_validates.rb reported: #<JSON::Schema::ValidationError: The property '#/' contains additional properties ["disks", "dmi", "identity", "load_averages", "memory", "mountpoints", "networking", "ruby", "ssh"] outside of the schema when none are allowed in schema aac80585-b763-5f1a-a2d1-16678a8de957#>
  Test Case tests/ticket_7039_facter_multiple_facts_one_file.rb reported: #<Beaker::Host::CommandFailure: Host 'j6f96btpe6d76ym.delivery.puppetlabs.net' exited with 1 running:
 env FACTERLIB="/tmp/facter7039.1VJiL3" facter --puppet test_fact1
Last 10 lines of output were:
	about a system.

	If no queries are given, then all facts will be returned.

	Example Queries
	===============

	  facter kernel
	  facter networking.ip
	  facter processors.models.0>

Which branch is that SHA from? That looks like it's running native Facter to me.

oh, I think I used a puppet-agent SHA built from master pipeline! Let me try this again.

CLA signed by all contributors.


Added alarm clock

#406 Added alarm clock , please check my pull request.

Please add hard label , as i had added new page under games section and done the so many changes.


Can you implement the GANformer?

Thank you for this excellent repo! I was curious if you had any plans to recreate the model here using your classes? Your interface is super clean and I'd love to use it in more projects.

@plehman2000 oh hey Patrick, thank you! isn't Ganformer already in pytorch though?


feat(query-tests): set up query tests with sparql files

This PR sets up query tests so that the queries can be stored in .sparql files in the source code, and the queries will be automatically collected and tested.
Currently the queries are organized per-endpoint, but maybe it would make sense in the future to create sets of queries which could then be run against configurable sets of endpoints.

I would rename the files query1.sparql  to something like query-001.sparql  to allow for same name for higher amount of queries.
I think it would be nice to add a short comment to every sparql file that explain the purpose and origin of the query. In addition there should be a way how to parametrize the queries, e.g., the offset and limit part.


JSON parsing error: lexical error: invalid char in json text.\x0a (Unsolved)

This issue is unsolved & closed in #1964  JSON payload is not valid which is known already because ENTER is added in payload and asked to verify to reproduce this issue which is expected..
But in actual payload which we don't have any ENTER or special character still it's failing below VALID dummy payload shared to verify once again..
OWASP CRS 3.0
"message": "Failed to parse request body.",
"details": {
"message": "Warning. Match of "eq 0" against "REQBODY_ERROR" required.",
"data": "JSON parsing error: lexical error: invalid char in json text.\x0a",
"file": "rules/REQUEST-920-PROTOCOL-ENFORCEMENT.conf",
"line": "143"
},
POST request with JSON payload sent but not special characters or empty string and it's very strange issue to get it resolved.
Dummy Payload below...
{"test_val":false,"test":[{"test":"test_test_test.doc","_val":"1-a1b2c3d4e5e7e8e9te","testTypeDiff":"valueTest","state":"process","_values":{"test":0,"testone":["a1b2c3d4e5e7e8e9te"]},"testID":"test:+0000000000","testQ":"test:+0000000000","_test":"test_test_test.doc","testType":"dummy","testValue":"testValue","work":"8.0"}]}
The above one is valid JSON but still we are getting "JSON parsing error: lexical error: invalid char in json text.\x0a".
We verified HEX values \x0A (Line Feed Character) & 5C also in PCAP but still facing same error. Could you please help on this.
Similar Issue
JSON parsing error: lexical error: invalid char in json text.\x0a #1964
SpiderLabs/ModSecurity-nginx#125

Hi @001appsec007,
Please use gits to send the payload, as the payload that you have placed here is invalid. JSON cannot contains x0A or \n or even new line (all the same, represented differently).
In order to help you, we need to understand several things, to begin with: What is your ModSecurity version? Is that happens in all payloads or just in this specific one? How can I reproduce?
It seems to me that this is a copy and paste issue. Where: (...) _","val":"1- \n a1b2c3d4e5e7e8e9te" is being copied and paste as new line.

@001appsec007 please see: https://github.com/SpiderLabs/ModSecurity/issues/1964#issuecomment-442591207

@001appsec007 you could use any online JSON lint tool such as: https://jsonlint.com/

{"test_val":false,"test":[{"test":"test_test_test.doc","_val":"1-a1b2c3d4e5e7e8e9te","testTypeDiff":"valueTest","state":"process","_values":{"test":0,"testone":["a1b2c3d4e5e7e8e9te"]},"testID":"test:+0000000000","testQ":"test:+0000000000","_test":"test_test_test.doc","testType":"dummy","testValue":"testValue","work":"8.0"}]}

This JSON in particular shows as valid.
There's a chance that your particular client/library that handles the JSON that gets sent to ModSecurity is screwing up something and breaking the JSON.
Please go over issue #1879 as a user was complaining about a similar problem with JSON parsing, when in the end it was found that the problem was the way that Python was handling the JSONs.
See #1879 (comment) and try to reproduce all those steps to understand where the issue lies. If you are still certain that the issue is with libModSecurity please provide detailed data/logs/confs/reproducible steps (e.g. #1879) to support this with the results of your tests so we can investigate further.
Thanks.

Hi @001appsec007,
Did you had a chance to figure what was happening?

I mma


The colormap for the error maps used in ablation study?

Hi! I want to draw the error maps like the picture in the ablation study of MVSplat. Could you share your code snippet? I would like to know which colormap is used.

Hi, @thucz, please see below the code snippet for drawing the error map.
import cv2
def draw_error_map(gt_path, tgt_path, out_path)
    gt_img = cv2.imread(gt_path)
    tgt_img = cv2.imread(tgt_path)
    cur_diff = cv2.absdiff(cv2.cvtColor(
        gt_img, cv2.COLOR_BGR2GRAY), cv2.cvtColor(tgt_img, cv2.COLOR_BGR2GRAY))
    cur_diff = cv2.applyColorMap(cur_diff, cv2.COLORMAP_VIRIDIS)
    cv2.imwrite(out_path, cur_diff)

Thanks!


Mouse wheel message is setting invalid mouse position.

The MOUSEWHEEL messages provide the mouse position in absolute coordinates, so updating it the same way you respond to other mouse messages is not correct. One solution would be to translate the mouse coordinates to client space, but it's not clear to me why this is being updated here.
This problem was introduced recently and my application was working fine before it. I can implement a different workaround if the mouse_update call is necessary for reasons that I'm not aware of. For example, we could pass a flag to transform the coordinates when necessary.

The other messages do not seem to have this problem.

Ok merged! Thanks for spotting this issue and providing a PR. I'll try to look at least into https://github.com/floooh/sokol/pull/830 over the next few days (as I said there, need to check the other platforms, if Linux and macOS needs the same fix I'll do it as part of the merge.


fix: change type of onDereference to non-required

The type of onDereference is required, which breaks types in some downstream packages. The code also checks for its existence on L72 of dereference.js so this is fine.

Also @philsturgeon I'm happy to takeover this project. I was meaning to rewrite in typescript one of these days anyways

This change looks good to me!

@jonluca thank you for the fix and the offer! I’ve added you as a maintainer as well as @jamesmoschou, so the two of you could share responsibilities and review each other’s work. I’ll be around if you need anything, same username on most of the socials.

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
No unchanged relevant lines lost coverage.
Overall coverage decreased (-4.8%) to 90.943%

Totals

Change from base Build<PHONE_NUMBER>:
-4.8%

Covered Lines:
750

Relevant Lines:
787

💛  - Coveralls


[object Object] when using toString() on SlowBuffer

Hi.
I'm trying to get out the data from my blob, but all I get is a [object Object] when doing it.
db.serialize(function() {
			db.get("SELECT data FROM FTP", function(err, row) {
				console.log(row.toString()); // => [object Object]
				var json = JSON.stringify(row); // => string with a lot of numbers (24000 in array)
});

How can I get the data from it? Apparently toString('utf-8') should have worked, but it doesn't for me. Anyone have the same experienced this?

To see how to work with buffers see https://nodejs.org/api/buffer.html


Feature/format codepipeline notifications

format notifications from codepipeline events
followup of https://github.com/assertible/lambda-cloudwatch-slack/pull/26
any criticisms/comments welcome!

Awesome - thanks a ton @ts33! Let me pull and test this in just a bit, the code looks good, though. I'll read through it a bit more thoroughly and let you know if I see anything, beyond that it should be good to pull in.

@ts33 Sorry we missed this. Looks great and thanks again.


SAS Transport v8's limit of 246 characters

Hi,
Thanks for this xport module.
It works but as mentionned SAS Transport v5 restricts variable names to 8 characters and labels to 40 characters.
I have files to build with label longer than 40... how can I proceed?
tahns

You could try downloading a trial version of JMP and see if it can write XPT v9 format for you. I think they give a month free.
Also ... why? I've never understood the popularity of writing XPT files. This should be a dying format! Who are you sending data to?

Can you get a free trial version of JMP? I think they'll let you try it for a month. It might allow writing XPT v9 format which permits longer variable labels.

I don’t know JMP, i will check
Thanks for replying
Envoyé à partir de Courrierhttps://go.microsoft.com/fwlink/?LinkId=550986 pour Windows
De : Michael @.>
Envoyé le :jeudi 23 septembre 2021 17:35
À : @.>
Cc : @.>; @.>
Objet :Re: [selik/xport] SAS Transport v8's limit of 246 characters (#69)
Can you get a free trial version of JMP? I think they'll let you try it for a month. It might allow writing XPT v9 format which permits longer variable labels.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/selik/xport/issues/69#issuecomment-925926964, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZDOVG4IO2A4R4JUDAGMH3UDNCMNANCNFSM5ET6RVEA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

I work in Public Health unit with Icon ; they want data to be sent in xpt format…
Envoyé à partir de Courrierhttps://go.microsoft.com/fwlink/?LinkId=550986 pour Windows
De : Mike @.>
Envoyé le :jeudi 23 septembre 2021 17:32
À : @.>
Cc : @.>; @.>
Objet :Re: [selik/xport] SAS Transport v8's limit of 246 characters (#69)
You could try downloading a trial version of JMP and see if it can write XPT v9 format for you. I think they give a month free.
Also ... why? I've never understood the popularity of writing XPT files. This should be a dying format! Who are you sending data to?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/selik/xport/issues/69#issuecomment-925924920, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZDOVDP5ZYXGE44FE2T5V3UDNCCTANCNFSM5ET6RVEA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Hi Michael,
I’ve opened SO question but maybe you can help me understand ?
https://stackoverflow.com/questions/69347394/export-pandas-df-to-sas-xpt-xport-module-date-converted-to-string
thanks,
Jérôme
Envoyé à partir de Courrierhttps://go.microsoft.com/fwlink/?LinkId=550986 pour Windows
De : Michael @.>
Envoyé le :jeudi 23 septembre 2021 17:35
À : @.>
Cc : @.>; @.>
Objet :Re: [selik/xport] SAS Transport v8's limit of 246 characters (#69)
Can you get a free trial version of JMP? I think they'll let you try it for a month. It might allow writing XPT v9 format which permits longer variable labels.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/selik/xport/issues/69#issuecomment-925926964, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOZDOVG4IO2A4R4JUDAGMH3UDNCMNANCNFSM5ET6RVEA.
Triage notifications on the go with GitHub Mobile for iOShttps://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Androidhttps://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

The issue is that date/time columns aren't appearing correctly? I'm not sure I understand. Could you open a new issue for this repository and paste the traceback?


Warning Message if missing values (still plot them, but just show the warning message)

Write in helpfile how missings are treated (empty bars)


Fix error React.Children.only for Provider in readme example

Description
Error occuring when using code from example
http://s.csssr.ru/UAHCBP6MS/Fela_css-in-js_playground_-_Google_Chrome_2018-07-10_23.34.20.png
Example
If required, add a code example or a link to a working example (repository).
// your code

Versioning

Major
Minor
Patch
Checklist
Quality Assurance

You can also run yarn run check to run all 4 commands at once.

[x] The code was formatted using Prettier (yarn run format)
[x] The code has no linting errors (yarn run lint)
[x] All tests are passing (yarn run test)
[x] There are no flow-type errors (yarn run flow)

Changes
If one of the following checks doesn't make sense due to the type of PR, just check them.

[ ] Tests have been added/updated
[x] Documentation has been added/updated
[ ] My changes have proper flow-types

Thanks for fixing that! Didn't think about it ever before :>


Adding Ordinal Snakes Club collection to repository

your branch got out of sync please open a new pr with updates, and remove readme


Failed assertion: line 22 pos 14: 'url != null': is not true.

help i have this error ...
════════ Exception caught by widgets library ═══════════════════════════════════════════════════════
The following assertion was thrown building FirstScreen(dirty):
'package:flutter/src/painting/_network_image_io.dart': Failed assertion: line 22 pos 14: 'url != null': is not true.

facing same error

Fixed this issue after few try,
Make sure you provide SHA1 certificate even if it's marked as optional on firebase console and update your both build.gradle files as instructed in step 3 ( Add firebase SDK ) or step 7 in article. This two thing fixed this issue for me.
also
Make sure you follow  Medium article   and don't miss a single step.

I'm new to flutter but debugged this issue in detailed and it looks like google is not sending a proper  responce to your request (or null reponse) because so some missconfiguration, and  assert methods are just an validation to prevent null pointer kind of exception.

Also had this problem but got it working after cleaning and restarting Android Studio to reload the SHA1 I've entered to Firebase authentication.
Next up I faced a similar problem that email was null too. Took me a while to understand that I've been using multiple providers for my account, and that the email was found on another element of the providerData List property if the current.

Closing this assuming the issue is fixed.


Issue #291: Add 'More Events' link below GDI Chapter events list

#291 Add a 'More Events' link to chapters/show page when there are events present.

@keaty looks great! :+1:


Issue regarding Section 311-variable-declaration

Article that needs changed
We do not use a single var keyword and then chain several variable declarations onto it separated by a comma.
Proposed change
N/A
Justification for proposal
Is this actually in line with what we do? I see this all the time in our code. Personally, I prefer to chain variable declarations.

By chain you mean
var a = 1,
    b = 2;

right?
There is justification for this approach here: http://benalman.com/news/2012/05/multiple-var-statements-javascript/
as well as in that actual section at the bottom. I am convinced the material that it's a better approach. If you have a better argument, then we can always change it.

Yes, that's what I mean.

Again, provide better justification that what is presented in the section already and I'll consider it. I find the material convincing.

I'm gonna close this. Reopen if you still want to discuss it.


[Release-1.24] etcd-snapshot-cron flag help text incorrect

Backport https://github.com/k3s-io/k3s/issues/6752 to release-1.24

The underlying functionality is unchanged, so just checking for the update in help text

Version

k3s version v1.24.10+k3s-74ed4bef (74ed4bef)
go version go1.19.5

Help doc

$ sudo k3s server -h | grep etcd-snapshot-schedule
   --etcd-snapshot-schedule-cron value        (db) Snapshot interval time in cron spec. eg. every 5 hours '0 */5 * * *' (default: "0 */12 * * *")


How to get the Filtered Values and pass it to a jQuery method

Hi Nicholas,
Thanks for the Pivottable.js .It is just amazing .
I need a help. I have to create an excel export of the Base File based on the filtered values input.
Please Note: Not the Pivot Table,but the Original Data File with all the columns but filtered according to the filter values applied.
How can I get all the filtered values from the filter option?
If I can get the filtered values, I am thinking of passing it as a string via jquery to the backend and form a new table and call that table on an Export button click.

You can use the onRefresh parameter to define a function which is called every time the user interacts with the pivot UI. See the example here: http://nicolas.kruchten.com/pivottable/examples/onrefresh.html

Thanks a lot..!!

No, this mechanism is unrelated to exporting.

The stack overflow post below and respective jsfiddle may help anyone looking for a solution:
https://stackoverflow.com/questions/73625787/how-to-access-filtered-data-from-pivottable-js
https://jsfiddle.net/90q26d87/1/


Crashes on Linux (v0.7.251)

When I downloaded (zip from the site) and booted up a fresh version for Linux of 0.7.251, clicking into views like "One Render Tree" or "Tour" will show the content for a brief second, and then crash the program entirely.
Here is the terminal output I get as an example.
My system info:
             /////////////                ecgade@pop-os
         /////////////////////            -------------
      ///////*767////////////////         OS: Pop!_OS 19.04 x86_64
    //////7676767676*//////////////       Host: Galago Pro galp3-c
   /////76767//7676767//////////////      Kernel: 5.0.0-27-generic
  /////767676///*76767///////////////     Uptime: 3 days, 10 hours, 58 mins
 ///////767676///76767.///7676*///////    Packages: 2306 (dpkg), 5 (flatpak)
/////////767676//76767///767676////////   Shell: bash 5.0.3
//////////76767676767////76767/////////   Resolution: 1920x1080
///////////76767676//////7676//////////   DE: GNOME 3.32.2
////////////,7676,///////767///////////   WM: GNOME Shell
/////////////*7676///////76////////////   WM Theme: Pop
///////////////7676////////////////////   Theme: Pop [GTK2/3]
 ///////////////7676///767////////////    Icons: Pop [GTK2/3]
  //////////////////////'////////////     Terminal: emacs
   //////.7676767676767676767,//////      CPU: Intel i7-8565U (8) @ 4.600GHz
    /////767676767676767676767/////       GPU: Intel UHD Graphics 620
      ///////////////////////////         Memory: 5039MiB / 15749MiB
         /////////////////////
             /////////////

We are working on a new graphical backend. We will have to re-evaluate this report after that.

This should work now. In the meantime, we moved to Skia as a backend instead of Moz2D.
Please continue reporting if you find problems. Thanks!


Fix parsing of Unity floatCurves

... so correct stats for Toroidal Aerospike can be extracted from .cfg file.

Hmm... still not sure what I'm doing.


Phonegap Build with Firebase

Hello,
i try to use that plugin with Phonegap Build
First i test the "Push Notifications" Template on Phonegap app.
I create a new Firebase Project and added the id in "config.xml" and "index.js"
And added in config:      preference name="android-build-tool" value="gradle"
After running i get a "Device Push ID"
But sending Messages with firebase console don't work

Sorry to be a jerk but I'm now closing issues that don't follow the issue submission guidelines. This plugin takes a lot of work to maintain and I can't afford the time required to solicit the required info from everyone.
I'm closing this issue but please feel free to re-open the issue if you provide the requested details from the new issue submission guidelines.
https://github.com/phonegap/phonegap-plugin-push/blob/master/.github/ISSUE_TEMPLATE.md


Issues with CSV Template

Two issues have been noticed:

When downloading the file, it is downloaded without the .csv filetype. The .csv filetype needs to be manually added either while saving the file or after download has completed
The example userPrincipalName, passwordProfile, and accountEnabled have a leading whitespace which goes against the documented guidelines

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

ID: 277a5d8f-7fce-bf5d-1ebd-2061e9ac8a69
Version Independent ID: 02d2bc44-dc9f-a23a-9c60-facf7e0c1a41
Content: Bulk create users in the Azure Active Directory portal
Content Source: articles/active-directory/enterprise-users/users-bulk-add.md
Service: active-directory
Sub-service: enterprise-users
GitHub Login: @curtand
Microsoft Alias: curtand

@georgesymonds
Thanks for your feedback! I have assigned this issue to the author who will investigate and update as appropriate.

Hi @georgesymonds
I added this information to the warning in the article. I'll pass the suggestion along to the product team. Thanks for your contribution!
#please-close


Output tab auto open

Hi,
when I edit a file and there's an error, the output tab showing the error will automatically be opened on every keystroke.
I'm pretty sure this is caused by this plugin, as I normally don't see that behavior in any other circumstances.
For me, that's pretty annoying and that's probably not intended anyways so that should either be fixed or configurable I guess? :)

I'd prefer the output only on save. Showing while typing is distracting.

Thank you for waiting! I've improved this behavior on v0.10.0. Let me know if you have any trouble.


chore: specialize Encodable/Decodable for bytes

Re #4111
Re https://github.com/rust-bitcoin/rust-bitcoin/issues/2390
Due to Rust limitations, we can't have impls for both Vec<T> and Vec<u8>. Handling byte case in a generic way is potentially very inefficient, and we do use it in some places, thought it's hard to find all of them (and then prevent even more from being introduced).
The most appealing approach seems to be specializing that case using TypeId check and unsafe.
Cons:

TypeId requires 'static bound
unsafe (but small and easy to reason about)

Pros:

zero cost (at runtime)
works automatically everywhere
no loss in ergonomics

Edit:
In idle just mprocs I can't tell if there's any performance difference.

In a not very scientific test this made running fedimint-dbtool dump 18% faster.

I'm happy to hear you were able to confirm this improves something. :D

TypeId requires 'static bound

That is a pretty big con, right? In a real life program when would one decode static things? (Excuse my ignorance but the only 'static decodable things are static strings in tests, are they not?)

That is a pretty big con, right? In a real life program when would one decode static things? (Excuse my ignorance but the only 'static decodable things are static strings in tests, are they not?)

AFAIR T: 'static means "any references held by this type need to be of static lifetime. Doesn't seem like a big con. It would interefere with zero-copy de/serialization, I guess.

I think we can remove unsafe from this, using dyn Any api

yes, I removed a lot of unsafe in 3779ff79f932fc3eac66458d852d5058e88c8dd8
but for &[T], rust complains about 'static

To shed more light on why 'static is required: Rust doesn't want to allow non-'static casting because it's not clear how type IDs should interact with lifetimes. Also while apparently there could be a safe downcasting function it's not expressible with current syntax (at least I think so):
fn downcast_ref<'a, T, U>(value:: &'a T) -> Option<&'a U> { /* ...
This PR wold be sound even without the 'static bound because instead of a generic U it uses a compile time known type u8, which never has any references (this is not the same as 'static!) and thus always outlives itself. (So yes, having an imagined U: 'always_static bound above would work too but it'd still be more restrictive than necessary.) However there's no way to check if T is u8 because you can't obtain TypeId for non-'static T.

@Kixunil 100% matches my understanding.

@Maan2003 I don't see a reason to worry about wrapping this unsafe into anything. These are the only places where it seems worthwhile and it's already small, isolated and easy to check that it's correct.

wow github doesn't like this pr, maybe we broke something

wow github doesn't like this pr, maybe we broke something

It already passed before the CI. It must be some flakiness on master.


"RuntimeError: Cannot run the event loop while another loop is running" when running examples

Hi Ben,
I installed the tectosaur, on python 3.8 and i installed pyopencl (i don't have an Nvidia).
The installation seems successful, until i run the example "okada.ipynb" (on jupyter notebook),  in the construction of the C^{t} Ar:
rhs_constrained = cm.T.dot(-lhs.dot(c_rhs))
i had

"RuntimeError: Cannot run the event loop while another loop is running".

I had the same error in the fault_traction notebook. In the line:
rhs = -cm.T.dot(H.dot(slip.flatten())) - cm.T.dot(traction_mass_op.mat.dot(c_rhs))
My operating system is ubuntu 18.04. Would you give me some suggestions?

Unfortunately, I'm not maintaining this package anymore.
That said, I believe the issue you're running into has to do with an incompatibility between asyncio and Jupyter. If you run from a python prompt or a subprocess, it should work fine.


It would be great if wallet_transfer_to_address be able to transfer to account key too

I think this may be a duplicate of #1204

duplicate

@valzav : Just fixed #1204 - this works now


⚠ ClamAV has degraded performance

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

HTTP code: 200
Response time: 227 ms

Resolved: ClamAV performance has improved in e84fcee.


shouldn't FileAttr.{crtime,flags} be #[cfg(target_os = "macos")]?

I mean, why would some fs developer bother with faking something if it's going to be silently discarded on his non-macbook anyways?
It's also a good way to hint macOS devs that fields that they are going to use are not that portable after all.

If you go this route, don't forget to enable them for the BSDs, too.

I added cfg gates to crtime and flags of FileAttr in aab40c9 so that one doesn't have to bother with setting them on Linux where they get dropped anyway.
@asomers Unfortunately BSD testing is pretty bad right now (I don't have a BSD system to test manually and there's no CI support for BSD right now afaik). The current ABI (fuse_attr) has crtime and flags for macOS only, so they were dropped silently on BSD as well. If the BSD FUSE ABI differs from the Linux FUSE ABI (not sure, I thought it doesn't), we should probably remove mentioning BSD compatibility until someone jumps in to add / verify / maintain proper BSD support.

Actually, the current FreeBSD ABI is identical to the Linux ABI.  My comment of Oct-27 was a mistake.  Regarding FreeBSD compatibility, the tests currently all pass on FreeBSD.  Would you be interested in adding CI?  I could set it up for you.

I'm relieved to hear that. Although I don't use FreeBSD a lot, I was always happy to support FreeBSD and since its ABI is the same, it basically comes for free to support it.
Anyway, adding it to CI is probably a good idea. Thanks a lot for offering help! I'll create a new issue for it.


Vue create broken when selecting cypress for E2E testing

Version
3.0.4
Reproduction link
https://github.com/vuejs/vue-cli/tree/v3.0.4
Node and OS info
Node v10.11.0 / Tested on MacOS High Sierra 10.13.6 and Debian Jessie (Docker node:latest)
Steps to reproduce
Run $ vue create hello-world
With the following settings:
Vue CLI v3.0.4
? Please pick a preset: Manually select features
? Check the features needed for your project: Babel, Router, Vuex, CSS Pre-processors, Linter, Unit, E2E
? Use history mode for router? (Requires proper server setup for index fallback in production) Yes
? Pick a CSS pre-processor (PostCSS, Autoprefixer and CSS Modules are supported by default): Sass/SCSS
? Pick a linter / formatter config: Airbnb
? Pick additional lint features: Lint on save
? Pick a unit testing solution: Mocha
? Pick a E2E testing solution: Cypress
? Where do you prefer placing config for Babel, PostCSS, ESLint, etc.? In dedicated config files
What is expected?
Successful installation
What is actually happening?
⠋  Running completion hooks...error: '@cypress/webpack-preprocessor' should be listed in the project's dependencies. Run 'npm i -S @cypress/webpack-preprocessor' to add it (import/no-extraneous-dependencies) at claimer-app/tests/e2e/plugins/index.js:2:17:
  1 | // https://docs.cypress.io/guides/guides/plugins-guide.html
> 2 | const webpack = require('@cypress/webpack-preprocessor');
    |                 ^
  3 |
  4 | module.exports = (on, config) => {
  5 |   on('file:preprocessor', webpack({

error: Unexpected require() (global-require) at claimer-app/tests/e2e/plugins/index.js:6:21:
  4 | module.exports = (on, config) => {
  5 |   on('file:preprocessor', webpack({
> 6 |     webpackOptions: require('@vue/cli-service/webpack.config'),
    |                     ^
  7 |     watchOptions: {},
  8 |   }));
  9 |

error: '@vue/cli-service' should be listed in the project's dependencies, not devDependencies (import/no-extraneous-dependencies) at claimer-app/tests/e2e/plugins/index.js:6:21:
  4 | module.exports = (on, config) => {
  5 |   on('file:preprocessor', webpack({
> 6 |     webpackOptions: require('@vue/cli-service/webpack.config'),
    |                     ^
  7 |     watchOptions: {},
  8 |   }));
  9 |

3 errors found.

Hm, those are eslint errors, it seems the way that this file is written breaks a few rules fo the airbnb preset (personal sidenote: much too strict, don't like this preset at all for a boilerplate like ours)
https://github.com/vuejs/vue-cli/blob/dev/packages/%40vue/cli-plugin-e2e-cypress/generator/template/tests/e2e/plugins/index.js
We could disable these rules for the file
/* eslint-disable import/no-extraneous-dependencies global-require */

We could also try and conform this file to the rules, but that will require to adjust a few rules of eslint-plugin-import with globs to not match for certain files. We would have to do something like this:
"import/no-extraneous-dependencies": [
  "error",
  {
    "devDependencies": ["**/*.test.js", "**/*.spec.js"], // glob is taken from plugin docs, probably not what we need
    "peerDependencies": ["**/*.test.js", "**/*.spec.js"],
    "optionalDependencies": ["**/*.test.js", "**/*.spec.js"]
  }
]

or include the dirs of all possible @vue plugins as locations fore package.json files:
"import/no-extraneous-dependencies": [
  "error",
  {
    "packageDir": [
      './node_modules/@vue/cli-plugin-e2e-cypress',
      './node_modules/@vue/cli-plugin-e2e-nightwatch',
      './node_modules/@vue/cli-plugin-unit-mocha',
      './node_modules/@vue/cli-plugin-unit-jest',
      './node_modules/@vue/cli-service',
      // ...
    ]
  }

]

Which I would consider pretty verbose and confusing to newcomers.
Thoughts?

Gotcha.
Messing with things to conform when lint presets are transient and subject to change = waste of life. IMO disable rules for the file.

@macdaddyaz
It is caused by a missing comma in the generated file (will be fixed in the next release). Please manually add that comma to your file: https://github.com/vuejs/vue-cli/commit/4e90afe18980f0f288908a7f7ef0974dc5a4545f#diff-1c4d741ece51a603d9d28f55c9d1e306


"getFiles" getting triggered more than once on iOS

Describe the bug
On iOS the  "getFiles" is getting triggered more than once.
To Reproduce
Just add Nativescript mediafilepicker plugin in a sample app and try to log something on "getFiles" event. Then try picking some media/image from the Photo Library.
Expected behavior
The event should get triggered once. As of now if you choose 2-3 images and clikc on "Done" the event is getting triggered more than once.
NativeScript Info(please run tns info):
Component nativescript has 4.2.4 version and is up to date.
✔ Component tns-core-modules has 4.3.0-2018-09-07-01 version and is up to date.
✔ Component tns-android has 4.2.0 version and is up to date.
✔ Component tns-ios has 4.3.0-2018-09-05-01 version and is up to date.
Sample Code(please provide minimum code to reproduce problem):
var observableModule = require("tns-core-modules/data/observable");
var mPicker = require("nativescript-mediafilepicker");
var mediafilepicker = new mPicker.Mediafilepicker();
function HomeViewModel() {
var viewModel = observableModule.fromObject({
onButtonTap: function () {
//console.log("Button was pressed");
  let options = {
    android: {
      isNeedCamera: true,
      maxNumberFiles: 4,
      isNeedFolderList: true
    }, ios: {
      isCaptureMood: false,
      maxNumberFiles: 4
    }
  };

  mediafilepicker.openImagePicker(options);
  mediafilepicker.on("getFiles", function (res) {
    let results = res.object.get('results');
    console.log("called");

  });

},

});
return viewModel;
}
module.exports = HomeViewModel;
Additional context
Add any other context about the problem here.

Infact every time you open the Photo Library by tapping the "button" and press "cancel" from the photos folder, the cancel event is triggering more than once for each press on "cancel". first time you press on cancel the "cancel" event will get triggered once. Second time you press cancel, "cancel" event will get triggered twice and so on..


Error when pulling image built locally without a registry

I've followed the instructions from https://microk8s.io/docs/working "Working with locally built images without a registry" and I'm building a JVM app from Maven with the jib-maven-plugin outputting to <image>outlooktoslack:local</image>.
# microk8s.ctr -n k8s.io images ls
docker.io/library/outlooktoslack:local  application/vnd.oci.image.manifest.v1+json
 sha256:daa6391342d9283046fd75c55c4e255f1a3ae58afb005617e6d56e7607e1fd8e 74.3 MiB  linux/amd64  io.cri-containerd.image=managed

I've tried with deployment as:
      containers:
        - name: outlooktoslack
          image: outlooktoslack:local

and
      containers:
        - name: outlooktoslack
          image: docker.io/library/outlooktoslack:local

but to no avail:
# kubectl get pods
outlooktoslack-56c8fd6956-qxm4g   0/1     ErrImagePull   0          99s

# kubectl describe pod outlooktoslack-6679cbddf5-85qhg
 Normal   Pulling    19m (x4 over 21m)   kubelet, uppdragsboten-ny-ubuntu18  Pulling image "outlooktoslack:local"
  Warning  Failed     19m (x4 over 21m)   kubelet, uppdragsboten-ny-ubuntu18  Failed to pull image "outlooktoslack:local": rpc error: code = Unknown desc = failed to resolve image "docker.io/library/outlooktoslack:local": no available registry endpoint: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed
  Warning  Failed     19m (x4 over 21m)   kubelet, uppdragsboten-ny-ubuntu18  Error: ErrImagePull

# kubectl describe pod outlooktoslack-5878cf5-bpmgg

  Warning  Failed     17s               kubelet, uppdragsboten-ny-ubuntu18  Error: ImagePullBackOff
  Normal   Pulling    3s (x2 over 17s)  kubelet, uppdragsboten-ny-ubuntu18  Pulling image "docker.io/library/outlooktoslack:local"
  Warning  Failed     2s (x2 over 17s)  kubelet, uppdragsboten-ny-ubuntu18  Failed to pull image "docker.io/library/outlooktoslack:local": rpc error: code = Unknown desc = failed to resolve image "docker.io/library/outlooktoslack:local": no available registry endpoint: pull access denied, repository does not exist or may require authorization: server message: insufficient_scope: authorization failed

I'm probably the one doing something wrong but you might be better at understanding what it is?
Would be super happy with any help!

May i know what is your imagePullPolicy defined in your deployment or pod?

May i know what is your imagePullPolicy defined in your deployment or pod?

I have not defined an imagePullPolicy.

This is strange.
mind sharing your deployment/pod manifest?
Thanks.

@gostaj
Can you add imagePullPolicy: Never ? or IfNotPresent

That was it! Great @balchua !
imagePullPolicy: Never was the only thing that was needed.
I think it would be great to include this information under "Working with locally built images without a registry" at https://microk8s.io/docs/working
Thank you very much for you help!

@gostaj, great news.  Do you mind creating an issue ?

@gostaj i just realized that you are using jib.  In fact jib can create oci compliant images without docker.
I also use jib maven. And i find it simpler to enable the registry  addon in microk8s than saving and importing it using ctr.
It's even better when u pair skaffold and jib.
I have some samples that i can share if you're interested.

Yes please @balchua do that.
I have enabled the registry addon in microk8s but didn't know that it's not used by ctr 🙈 .
I'm building my images locally right now and want them running on a rather closed down VM running microk8s.

@gostaj, the registry addon is used by microk8s.ctr.  The microk8s guide you pointed out explains how to use.
I have this project in github (shameless plug) https://github.com/balchua/demo
Checkout the skaffold.yaml file there. For example https://github.com/balchua/demo/blob/master/votes/skaffold.yaml
I may have some skaffold there still using dockercli, but its safe to turn it to false.


Add .editorconfig

The .editorconfig file is rapidly becoming a standard amongst open source development. This PR adds one to the repo :smile:

Cool! Thx.


Get MNE to work with Binder

I think we're close with the environment.yml file, but I ran into an error when trying to build with Binder:
      File "/srv/conda/lib/python3.6/site-packages/vtk/vtkRenderingOpenGL2.py", line 9, in <module>
        from vtkRenderingOpenGL2Python import *
    ModuleNotFoundError: No module named 'vtkRenderingOpenGL2Python'

@larsoner thinks that we may need get Xvfb installed as well...which should be possible with apt.txt and postBuild files!

does postBuild get sourced or just run? If it's the former the export DISPLAY=:99.0 that I need will work, if it's the latter it will not. If that's the case, is there some way to specify env vars when launching / setting up binder?

@yuvipanda thoughts on this? do we suggest setting environment variables with postBuild?

@choldgraf one thing I don't get -- I want to use mne-tools/mne-python.git:/environment.yml for my requirements but have the .ipynb files from mne-tools/mne-tools.github.io:/dev/_downloads/* shown, how do I configure it to do that? I had this:
    'binder': {'org': 'mne-tools',
               'repo': 'mne-python',
               'url': 'https://beta.mybinder.org/',
               'branch': 'master',
               'dependencies': op.join('..', 'environment.yml'),
               },

But that will point the wrong place for the .ipynb files (as they live with our website repo/URL).
I the thing I'd need to do is copy the environment.yml from mne-python.git to mne-tools.github.io?

... and actually we need to get Xvfb running before it tries to install all of the requirements of environment.yml (one of the requirements needs access to a screen to build), is there a preBuild I can use?

just confirmed that apt.txt is run before the language-specific builds, so if we apt-install Xvfb then the conda install should find it

though if we really need to run shell commands before building anything, a preBuild file seems reasonable tho we'd need to discuss on the r2d repo

though if we really need to run shell commands before building anything

Yes it needs a display active to pip install, so it needs to be apt->Xvfb->pip and I don't think it's possible currently.

ohhh....hmm. I assume this is for mayavi? I think that will be tough to implement with build files in binder...we may need to roll a dockerfile in this case :-(

We have a separate repo for this and it works now


[java] - embed JNA into our jar file

We don’t want developers to have to pull jna-4.4.0.jar into their
project
This unzips it into our jar, so they just have to worry about a
single file
Updated tests, so it is not using the jar from /external/jna

Hello! I'm the build bot for the Mono project.
I need approval from a Mono team member to build this pull request. A team member should reply with "approve" to approve a build of this pull request, "whitelist" to whitelist this and all future pull requests from this contributor, or "build" to explicitly request a build, even if one has already been done.
Contributors can ignore this message.

whitelist

Build failed


Import dataset as a project (with annotation), and split it into segmented tasks

I am wondering if there's a way to import semi-annotated images (with YOLO format) as project, and then segment it into tasks? I can only do this for unannotated images from a task to jobs

Hi! You can import annotated dataset as one or several tasks using the Import Dataset button in the project actions. Tasks will be created automatically from each subset found in the dataset (e.g. train, test, etc.). Note, however, that there will be no option to split images between tasks manually. If you want to control this, you will need to create some tasks manually and upload annotations after this.

Hi! You can import annotated dataset as one or several tasks using the Import Dataset button in the project actions. Tasks will be created automatically from each subset found in the dataset (e.g. train, test, etc.). Note, however, that there will be no option to split images between tasks manually. If you want to control this, you will need to create some tasks manually and upload annotations after this.

Thanks for the information! However I was wondering to update annotated dataset and split them to different jobs, looks like it's not the way to go.


TTS support

Although the testapp currently has TTS, it is all bundled in the testapp module itself.  This means that developers are required to write their own TTS implementation with little to no support from the Readium libraries themselves.

Hey! Just a comment from my side.
I have been trying to implement TTS in our application and find it very challenging to start the TTS from the correct page (the one currently displayed to the user). so far I have been retrieving all the text from the current resource and using progression to approximate the currently visible text, but it's not a great solution. In most cases it would result in the text visible in the middle of the page, but sometimes it's text on the next page not even visible to the user... :(
I don't think the test app supports starting TTS from the currently visible page either.
My code:
private suspend fun Publication.getTextAfterLocator(locator: Locator): String? {
    val link = linkWithHref(locator.href) ?: return null
    val htmlText = get(link).getText() ?: return null
    val progression = locator.locations.progression ?: return null
    return htmlText.substringStartingFrom(progression)
}

private suspend fun Resource.getText(): String? {
    return DefaultResourceContentExtractorFactory().createExtractor(this)
        ?.extractText(this)
        ?.getOrNull()
}

private fun String.substringStartingFrom(progression: Double): String? {
    val index = (length * progression).roundToInt()
    val lastDotIndex =
        if (index == 0) 0 else lastIndexOf(". ", index).takeIf { it != -1 }?.plus(2)
    return lastDotIndex?.let(::substring)
}

I have been trying to implement TTS in our application and find it very challenging to start the TTS from the correct page (the one currently displayed to the user)

That's definitely one of the more challenging parts. A strategy could be to iterate over the DOM until you find a paragraph that starts on the current page (maybe with getBoundingClientRect()). This wouldn't start the exact first word but I'm not sure it's desirable to start mid-sentence anyway.
By the way I will be working on TTS in Readium early next year. Feel free to open a PR (even a draft) if you want to contribute some code for this.
Another issue is to turn pages at the right time when reading a sentence. A possible solution could be to have two decorators: one for the current paragraph / sentence being read, and one for the current word. Following the current word, we could more easily turn the pages at the right time.
It looks similar to what Thorium is doing:
https://user-images.githubusercontent.com/58686775/146174160-92d5b751-79ab-49f0-82de-2a2ee4d51d71.mov

Thanks a lot for the reply!

A strategy could be to iterate over the DOM until you find a paragraph that starts on the current page (maybe with getBoundingClientRect()).

I have tried the getBoundingClientRect() approach, but it seems to be even less precise compared to locating current resource progression. Specifically in cases when paragraphs are long enough to take several pages, then we would have to scroll several pages back or forward to start from a new paragraph... I don't think there is a web API to know what part of a specific DOM element is currently in the viewport.

Another issue is to turn pages at the right time when reading a sentence. A possible solution could be to have two decorators: one for the current paragraph / sentence being read, and one for the current word. Following the current word, we could more easily turn the pages at the right time.

Thanks! That sounds like a good idea.

By the way I will be working on TTS in Readium early next year. Feel free to open a PR (even a draft) if you want to contribute some code for this.

I'm hoping to get a bit more time by the end of January, so will definitely consider helping with that :)

I have tried the getBoundingClientRect() approach, but it seems to be even less precise compared to locating current resource progression. Specifically in cases when paragraphs are long enough to take several pages, then we would have to scroll several pages back or forward to start from a new paragraph...

Yes it looks like Thorium is doing it this way. When a paragraph spans several pages, the TTS will automatically move the reader to the beginning of the current paragraph instead of starting in the middle of the paragraph. I think that's a fair compromise, but it would be useful to allow apps to customize this strategy.

@paktalin I solved the problem of starting from the visible page with this piece of JavaScript: https://github.com/readium/kotlin-toolkit/blob/6d68be276cd4ac6f1199ee825854426bdbf44c53/readium/navigator/src/main/assets/_scripts/src/dom.js#L10 It's exposed in the toolkit as VisualNavigator.firstVisibleElementLocator().

@mickael-menu thanks for letting me know! We will try it out instead of our custom script :)


lost equip sound bug

This issue is caused by that isLocalPlayer hasn't been set in character-sfx constructor (undefined)
related:
https://github.com/webaverse/app/issues/3531
result:
https://user-images.githubusercontent.com/60634884/183294177-88036462-56e6-430d-adb5-e37f0f6d7f66.mp4

https://github.com/webaverse/app/pull/3545/files
create character-sfx for localPlayer after isLocalPlayer has been set

How about we instead ensure that isLocalPlayer is initialized early enough? it could be an argument to PlayerBase constructor.

Works Fine


[Question] CLI/ Programmatic use

Hi - can you point me towards examples/tests that show how I can use the emulator programmatically? I want to be able to run functional tests against localhost without needing to set up directline and ngrok; the emulator seems to be the answer to that so long as I can manipulate it without a GUI.
Thanks!

Hi @rposbo, the emulator does not support "headless" operation. I wish I had a better answer for you!


run execCommand insertImage in ios webview cannot show img

Description
var html = '<img src="http://cdn.sketchpan.com/member/g/gytmd589/draw/1232327402671/0.png"alt="test"/>';

document.execCommand('insertHTML', false, html);

cannot show image in ios simulator,bug can work on android simulator.

Additional Information

React Native version: 0.40
Platform: ios simulator

This may be due to the fact the resource is not served over HTTPS. Closing as this does not seem to be a RN issue.


move to schema.org?

In issue #22 I suggest documenting ontologies we use. We should also consider if one existing ontology would help us solve a lot of our decisions.  schema.org is much more complete than most others, and deals with the kinds of problems we would find useful. Dan Brickley, Google, MS and other search engines. The vocabularies are much more complete than foaf for example.

we have a schema:Person class that resembles the foaf:Person a lot but has many more relations. It can

link person to a person with schema:knows
link a person to an organisation schema:worksFor - this can't be done in foaf other than through foaf:workplaceHomePage, which points to a homepage not a person.
link a person or a contact point to a telephone number via schema:telephone ( as timbl's contact ontology does )

It has https://schema.org/Event for events.
...

The schema.org ontology is designed to not allow much inferencing, and we don't use much anyway. It's a bit of a pitty for some useful inverse functional properties such as foaf:mbox that do allow us to make good cases about indirect identifiers. But we can then still use that one when needed, as well as foaf:blog, foaf:openid, etc...
In schema.org one needs to always specify the types of the objects, as the relations are not strong enough to allow one to infer the types from them.
I think one can also use them correctly with hash uris. One just has to note that schema.org only tells people to use the schema:url relation instead of the JSON-LD @id tag, which means that in effect people using this who don't understand http-range-14 are not saying anything false, just something vague. For example as I pointed out on the Social Web WG a normal user who only cares to be well placed on search results and not to write a distributed social web will write:
{
  "@context": {
     "schema": "https://schema.org/"
  },
  "schema:url": "http://bblfish.net/",
  "schema:knows":  { "schema:url": "http://www.w3.org/People/Berners-Lee/" }
}

But SoLiD apps could complement that by writing something much more precise and efficient for Linked Data crawlers
{
  "@context": {
     "schema": "https://schema.org/"
  },
  "@id": "http://bblfish.net/#me",
  "schema:knows":  {
     "@id": "http://www.w3.org/People/Berners-Lee/card#i"
   }
}

The first graph represents the following turtle:
[] schema:url <http://bblfish.net/>
   shema:knows [ schema:url <http://www.w3.org/People/Berners-Lee/> ] .

The second graph the following
<http://bblfish.net/#me> schema:knows <http://www.w3.org/People/Berners-Lee/card#i> .

Both graphs say something true. The first one just says the person whose "url" is "http://bblfish.net/" knows the person whose "url" is "http://www.w3.org/People/Berners-Lee/", which just  a pretty vague relation which may mean something like the location of the document. The second graph is precise, and much more easily useable by a machine. ( a lot less searching and guessing for it to do). Any client must be able to switch to the vague one anyway, when for example a fragemnt link does not connect for some reason. When that happens, it might require user intervention to fix the link, or interpretation by the user, which weakens the result, and slows down the task of automation.

@bblfish maybe we could discuss it during next Social IG: Vocabulary TF meeting? I see many similarities between schema.org and microformats.org and pattern you propose here could help with aligning with both.

I think this is always going to be app dependent, whether that's on the server (a customized version of Solid lets say) or client side, and so no need to have specific expectations - "hardcoding". I would suggest that apps take some caution to do their own mapping (if not already part of the vocab) between some well-known/popular vocabs in order to handle the data as best as they can.

The question is wether we can come to some agreement ourselves when building apps to use similar vocabularies. I think at least having a table somewhere of vocabs used, and intentions to move would be good.

Some interesting thoughts: http://blog.sgo.to/2015/09/vocabulary-negotiation.html
Also materialized inference IMO could also work pretty well in many cases. If human will not read the data, even repeating different predicates with same value shouldn't consume to much of a bandwidth.
Last but not least I would happily see more attention on basic inference futures in http://rdfjs.org


Anh vu-assignment 3

Load a dataset from Github (via its RAW URL)

Nice job here. Not much to get excited about.

Load a dataset from your local machine

Using the colab library, nice.

Load a dataset from UCI using !wget
-Good job here as well. Would be interesting to see where you can take the poker data.

Sprint challenge code review:
Part 1 - Load and validate the data

Load the data as a pandas data frame.

You've lost a row because the first row is read as the header by defualt.
You've added an unnecessary step. df = pd.read_csv(cancer_survival_url, header=['list', 'of', 'columns']) is sufficient.

Validate that it has the appropriate number of observations (you can check the raw file, and also read the dataset description from UCI).

Use df.shape to view number of rows. !cat <file.name> | wc -l to view number of rows in file, or go to data page to confirm expected rows in dataframe.

Validate that you have no missing values.

Use df.isnull().sum() to see an easy to read summation of null values per column.

Add informative names to the features.

Complete.

The survival variable is encoded as 1 for surviving >5 years and 2 for not - change this to be 0 for not surviving and 1 for surviving >5 years (0/1 is a more traditional encoding of binary variables)

Nicely done.

At the end, print the first five rows of the dataset to demonstrate the above.

Complete.

Part 2 - Examine the distribution and relationships of the features

Explore the data - create at least 2 tables (can be summary statistics or crosstabulations) and 2 plots illustrating the nature of the data.

Good job exploring several cross-tabs. Consider binning the 'Number of positive axillary nodes detected'' column as well.
Check out pd.qcut()
Try using bar graphs instead of line charts when comparing discreet values. Tend to reserve line graphs for time series.

Part 3 - DataFrame Filtering

Use DataFrame filtering to subset the data into two smaller dataframes. You should make one dataframe for individuals who survived >5 years and a second dataframe for individuals who did not.

It  would be more informative to cross-tab with age vs nodes or year vs 'nodesrather than with survival because we know all are eithersurvivedornot_survived`.

Create a graph with each of the dataframes (can be the same graph type) to show the differences in Age and Number of Positive Axillary Nodes Detected between the two groups.

Try bar graphs and heat-maps with cross-tabs as above. Try plotting on the same bar graph with similar cross-tabs for both 'survived' and 'not_survived' populations.

Part 4 - Analysis and Interpretation

What is at least one feature that looks to have a positive relationship with survival? (As that feature goes up in value rate of survival increases)

👎
year_of_operation and survival have a positive relationship.

What is at least one feature that looks to have a negative relationship with survival? (As that feature goes down in value rate of survival increases)

👍
Age and number of nodes are negatively correlated.

How are those two features related with each other, and what might that mean?

👍
Age and year_of_operation are positively correlated.

Not bad, Anh.  Do go back and review some of this material as we will continue to build on this to rapidly more complex applications.


Jalali (Persian) datepicker support

What problem does this feature solve?
I need to use ng zorro datepicker as Jalali (Persian), I searched anything but I got no result, if you don't have free time to implement the feature please provide me a document about Ng zorro date picker to help me to implement it ASAP, thank you
What does the proposed API look like?

Duplicate of #6270.

Duplicate of #6270.

The date picker problem is not resolved. Please help if possible

Hello everyone, I recently released a datepicker that supports the Jalali calendar and has good features, you can use it.
https://www.npmjs.com/package/@qeydar/datepicker


fix: 결과페이지 360px 반응형 대응

🤔 해결하려는 문제가 무엇인가요?

화면이 작아졌을 때 받은 피드백 카드 깨지는 문제 수정
🌄 스크린샷

Codecov Report
Patch and project coverage have no change.

Comparison is base (2413b0b) 90.81% compared to head (68fc72f) 90.81%.

:exclamation: Current head 68fc72f differs from pull request most recent head 529bb29. Consider uploading reports for the commit 529bb29 to get more accurate results

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #316   +/-   ##
=======================================
  Coverage   90.81%   90.81%
=======================================
  Files          42       42
  Lines         294      294
  Branches       52       52
=======================================
  Hits          267      267
  Misses         27       27

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.


remove cloudsql proxy

I also don't understand how the presence of the cloudsqlproxy binary has any effect on whether you end up using it or not..?  How does removing it fix anything?

Why would you remove cloudsql-proxy from an image that's called gcloud-cloudsqlproxy-mysql-kubectl? If you don't need it, use a different image.

Sure, I should have created a different image. This has been done!

I also don't understand how the presence of the cloudsqlproxy binary has any effect on whether you end up using it or not..? How does removing it fix anything?

Also not sure why this worked but the error I was getting from the script was not super helpful and removing cloudsqlproxy fixed this. see the error from the script below
"error": "error",
    "error_description": "The error is unrecognizable."


Unable to edit a checkbox field as an additional guest question.

Describe the bug
I created a checkbox question as an additional question, but when I saw the question in the form, I was unable to check a box or give any type of response.
To Reproduce
Steps to reproduce the behavior:

Create a SEA Question record with the Question Field Type of Checkbox.  Mapped the field to a checkbox field in the SEA package, Display_Attendance_Publicly__c.
Updated the Summit Events Registrant Permission Set to allow editing to Display Attendance Publicly field.
Went to the Summit Event Instance to Register.
Unable to check a box or answer the question at all.

Expected behavior
Expected to be able to check a box to answer the question.
Screenshots
Additional context
Had a Teams chat with Thad to ask questions before opening the issue.

I just tried mapping a picklist field to a checkbox field and it worked with values of TRUE and FALSE.

@walt0019 Running through bugs and seeing that this is still an issue (literally).  Is the checkbox more of a UI experience in your mind or is it providing additional aspects to other items?
Thinking that a picklist with "yes" or "no" would be a valid path, even being able to default a specific value. If that's the case, I think we remove the checkbox option to avoid confusion and make the recommendation for true/false questions to be a simple picklist, leveraging a default selection.
Thoughts?


Conformance tests for Training operator

Add Kubeflow conformance tests for training operator components
Ref: https://github.com/kubeflow/kubeflow/issues/6485
/cc @james-jwu

Design: https://docs.google.com/document/d/1TRUKUY1zCCMdgF-nJ7QtzRwifsoQop0V8UnRo-GWlpI/edit#

I'll start working on this.

Container implementation added in https://github.com/kubeflow/training-operator/pull/1780

Closing this PR as conformance changes are merged


add ErrorFixture mixin

We've begun using this pattern for wrapping normal Fixtures so we can
check for error conditions with minimal code re-use.

fixes #66

Hold off on merging this.  Makes an unexpected assumption.

This is now ready.  Please merge if satisfactory.


The nig_normal metamodel doesn't maintain the iteration count field of the model table

Do we care about this?  Does that make it a poor example population model?
Issues:

Counting iterations doesn't make sense for nig normal, because analysis always converges in one step
Should there be a generic diagnostic/history saving feature?  Conversely, should counting the number of analysis iterations for crosscat be hidden inside crosscat's abstraction boundary?

How does this bug manifest in terms of user experience?

Well, right now most users wouldn't interact with non-crosscat metamodels at all.  If someone were to run the nig-normal metamodel (by source-diving and enabling BAYESDB_WIZARD_MODE), and queried the model metadata table for iteration counts to determine how much analysis some nig-normal models had undergone, they would be surprised by the answer.  Also, if someone were to study the code of the nig-normal metamodel in order to learn how to write their own metamodels, they would not learn about the model count updating mechanism.  That's all I can think of.

Sounds like one solution is to add a note to this effect at the top of the nig_normal code, so that such a hypothetical user at least takes that into account? I'm not sure if having an open bug is actually helpful for that or a maintainer use case. What do you think?

Note added in 8f01aca715effc04f54be3a27c558a544e7620f1.  You decide about the bug.

Thanks!

Another alternative would be to transition from 0 to +\infty.


browscap check for folder write permission even with update auto probability set to 0

This prevents front webapps to have a read-only shared folder (stuffed by any other service)

Thanks, I see the problem. It doesn't depend on the update probability only, because data are also generated automatically when required, but the check should not be done if not required.
I think the readable/writable checks have to be moved to the gerReader()/getWriter() methods.

Should be fixed now (new release follows soon). Thanks!


Anyone adapting falcon 40B&7B models now?

Hi @oushu1zhangxiangxuan1, the PR #321 is not ready yet. We will notify you once it is merged.

Fixed by #592


Acorn SubBytes: definition + test

For now, porting over LUT-based implementation from sub bytes.
Still working on here - 'reflexivity' proofs in AES256Equivalence.v hang.
Closes #320

I assume the issues in the comments still stand.
  (* two problems:
     - nat_to_bitvec_sized returns a bitvec in the opposite direction we want
        (e.g. instead of [T, F, T, F....F], we get [F...F, T, F, T].
     - indexAt is taking an index where the bits need to be mirrored
     - using 'rev' to achieve this is so slow, it causes the computation to not be finished
   *)

I assume the issues in the comments still stand.
  (* two problems:
     - nat_to_bitvec_sized returns a bitvec in the opposite direction we want
        (e.g. instead of [T, F, T, F....F], we get [F...F, T, F, T].
     - indexAt is taking an index where the bits need to be mirrored
     - using 'rev' to achieve this is so slow, it causes the computation to not be finished
   *)

Sorry - those are fixed. Will remove them. The remaining issue is just with AES256Equivalence.

Sorry - those are fixed. Will remove them. The remaining issue is just with AES256Equivalence.

As I said over email, let's merge this PR without fixing the AESEquivalence proofs. Feel free to create an issue and assign it to me, and I'll take a look shortly.

As I said over email, let's merge this PR without fixing the AESEquivalence proofs. Feel free to create an issue and assign it to me, and I'll take a look shortly.

Thanks for the PR, I'm going to go ahead and merge this so I can extract a netlist from it.

Thanks for the PR, I'm going to go ahead and merge this so I can extract a netlist from it.


add localization support

A user has requested we add localization support.

Added to /assets/languages if a file is in the path for the language it will load it from the browser


Don't freeze poetry path dependency version

This fix was proposed by @jtbeach in in https://github.com/dependabot/dependabot-core/pull/1788 and fixes https://github.com/dependabot/dependabot-core/issues/1771.
When specifying a path dependency in Poetry, we should not try to lock the version of the dependency.

Thank you so much @jurre!