text:
Move all RFCs into same directory

Keeping our rfcs/adrs in separate directories causes me confusion, and I
imagine would do so for others too. Moreover, I think it's not useful.
When we initially separated them out, it was to protect users from
encountering design documents that wouldn't be useful to them. Now we
can do this by just omitting the docs we wish to hide from the listing
in SUMMARY.md.

[x] Ran make fmt-fix (or had formatting run automatically on all files edited)

@Kukovec good call! I fixed the one link that would have been broken. Thanks :D

repo: informalsystems/apalache


text:
🛑 Meyer Lab Web is down

In fee0a37, Meyer Lab Web (www.meyerlab.com.py) was down:

HTTP code: 0
Response time: 0 ms

Resolved: Meyer Lab Web is back up in 939aa13 after 10 minutes.

source: gharchive/issue

repo: informaticaMeyerlab/statusPageMeyerLab

license: MIT

license_type: permissive

license_source: github-api


text:
File upload

The data entry app needs to support file uploads. We will need to introduce an annotation to identify when a url column should be regarded as an asset. Assets should be uploaded to Hatrac and then the asset url column should be updated with the hatrac url of the file.

What about introduce a new column type "hatrac_uri"?
For this column type:

the app asks users to select a file to be uploaded
calculate the hatrac md5 checksum, so it won't try to upload the same content over again.
set the appropriate content-type
if possible, calculate filesize
if possible, calculate sha256 checksum
All of these should be implemented in a module so it can be reused.

I think the UI would need more logic and more guidance than just recognizing a column type... there is substantial overlap with iobox concepts here:

Some annotation with a mustache pattern to produce the desired object name from row metadata and/or checksum information?
Some annotation to collect local filename (if feasible w/ HTML5?) as additional row metadata
Some annotation to guide initial object ACL config and/or ACL setting UX

From our conversation yesterday, a flow could be:

collect form data and file-related information (size, checksum, etc)
mint identifier (i.e., accession number)
post object (hatrac)
post entity (ermrest)

Step 2, requires a new accession service or feature, probably on ERMrest and probably configured by the same custom trigger logic we use for generating accession numbers.

Also, if we intend to capture details about multi-assets per entity (row of a table) then we will need to modify the annotation because it really assumes that there will be a single asset annotation on a table.
https://github.com/informatics-isi-edu/ermrest/blob/master/user-doc/annotation.md#2016-asset
Could be a matter of changing the definition to allow a list [ ... ] of the same payload objects as currently specified. Thus the top level modes for the payload would be: null, {}, { ...properties... }, or [ { ...properties... }, ... ].

Should we make EZID one option for that assassin generation service.
Carl

Dr. Carl Kesselman
Dean’s Professor, Epstein Department of Industrial and Systems Engineering
Fellow, Information Sciences Institute
Viterbi School of Engineering
Professor, Preventive Medicine
Keck School of Medicine
University of Southern California
4676 Admiralty Way, Suite 1001, Marina del Rey, CA  90292-6695
Phone:  +1 (310) 448-9338
Email:  carl@isi.edumailto:carl@isi.edu
Web: http://www.isi.edu/~carl
On Nov 9, 2016, at 2:55 AM, robes <notifications@github.commailto:notifications@github.com> wrote:
From our conversation yesterday, a flow could be:

collect form data and file-related information (size, checksum, etc)
mint identifier (i.e., accession number)
post object (hatrac)
post entity (ermrest)

Step 2, requires a new accession service or feature, probably on ERMrest and probably configured by the same custom trigger logic we use for generating accession numbers.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHubhttps://github.com/informatics-isi-edu/chaise/issues/426#issuecomment-259225603, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ADbjXp390aJkUi4odaQMXuAajMP1NJf6ks5q8MWMgaJpZM4IwN8d.
{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/informatics-isi-edu/chaise","title":"informatics-isi-edu/chaise","subtitle":"GitHub repository","main_image_url":"https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png","avatar_image_url":"https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png","action":{"name":"Open in GitHub","url":"https://github.com/informatics-isi-edu/chaise"}},"updates":{"snippets":[{"icon":"PERSON","message":"@robes in #426: From our conversation yesterday, a flow could be:\r\n\r\n1. collect form data and file-related information (size, checksum, etc)\r\n2. mint identifier (i.e., accession number)\r\n3. post object (hatrac)\r\n4. post entity (ermrest)\r\n\r\nStep 2, requires a new accession service or feature, probably on ERMrest and probably configured by the same custom trigger logic we use for generating accession numbers."}],"action":{"name":"View Issue","url":"https://github.com/informatics-isi-edu/chaise/issues/426#issuecomment-259225603"}}}

There are quite a few libraries out there for handling file upload in modern browsers.  We should investigate if there are benefits to leveraging one of these rather than rolling our own.  Here's one in particular that I was looking into. It is an Angular library that is pretty mature and popular:
https://github.com/danialfarid/ng-file-upload
Of course, there are plenty of others out there too.

@chiragsanghvi could you look at hongsuda's last comment above and update her checklist? it looks like you may have completed these but I'd like to confirm. thanks

@robes I have updated the issue.

great. thanks. so are we skipping the sha256 for now?

Yes, we are skipping sha256 for now.

okay, so as I understand it then, the last things to do are work on tests for the automated (travis) and manually-invoked modes.

The code is merged in Master and has some happy flow testcases for Chaise that run locally but not on Travis.
There are testcases in ermrestjs that test the upload part.

authors: carlkesselman chiragsanghvi hongsudt karlcz mikedarcy robes

repo: informatics-isi-edu/chaise


text:
TOC header and Main link on the top

This PR addresses #1449
Added Main link on the top of the list and renamed the header to Contents.
Test case is in presentation.spec.js

Please merge and update people on this improvement.
On Mon, Mar 5, 2018 at 12:27 PM, Josh Chudy notifications@github.com
wrote:

@jrchudy approved this pull request.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/informatics-isi-edu/chaise/pull/1450#pullrequestreview-101314937,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAZUDP8v-2ad7ntpumuriysEC-m8sWJmks5tbZ-ggaJpZM4SZQKe
.

source: gharchive/pull-request


text:
Runner の CI設定を入れる

設定方法はここ
https://github.com/infra-ci-book/ketchup-vagrant-ansible/blob/master/tests/README.md

https://github.com/infra-ci-book/gitlab-vagrant-ansible/commit/69a982c29efe6e68edbd167b75bcdfb286aeeefc

repo: infra-ci-book/gitlab-vagrant-ansible


text:
aws ebs unit price is not correct

Part result of infracost brewakdown
aws_instance.server[0]
├─ Instance usage (Linux/UNIX, on-demand, r6i.large)           730  hours          $89.03
├─ EC2 detailed monitoring                                       7  metrics         $1.93
├─ root_block_device
│  └─ Storage (general purpose SSD, gp3)                        64  GB              $4.69
└─ ebs_block_device[0]
└─ Storage (general purpose SSD, gp3)                     2,048  GB            $150.24
Actually 2048GB EBS gp3 monthly price is more than 800 USD

@KaimingWan thanks for creating the issue. In us-east-1, EBS gp3 is $0.08/GB-month x 2048 = $163.84. Which region are you using? Can you please share the Terraform HCL code snippet that generated the above cost estimate so we can reproduce it and investigate?

@alikhajeh1 Thank you for your response. The $800 USD figure is inaccurate. I recalculated the price for the cn-northwest-1 region. The unit price is ¥ 0.5312 per GB-month of provisioned storage, and based on the exchange rate, this price should be reasonable.

@KaimingWan thanks for confirming, so I'll close this issue. Just FYI I tested it as follows using your numbers (0.5312 x 2048 = 1.1K CNY), which matches given that we use exchange rates to convert USD to CNY.
# main.tf
provider "aws" {
  region                      = "cn-northwest-1"
  skip_credentials_validation = true
  skip_requesting_account_id  = true
  access_key                  = "mock_access_key"
  secret_key                  = "mock_secret_key"
}

resource "aws_instance" "my_web_app" {
  ami           = "ami-005e54dee72cc1d00"
  instance_type = "m3.xlarge"
  root_block_device {
    volume_size = 2048
    volume_type="gp3"
  }
}

$ INFRACOST_CURRENCY=CNY infracost breakdown --path .

>  └─ root_block_device
    └─ Storage (general purpose SSD, gp3)       2,048  GB                           1,087.90 CNY

repo: infracost/infracost


text:
fix: panic error if policy body is invalid

Solves issue if a valid policy file type is provided in --policy-path but the contents is malformed.

@aliscott makes sense to me


text:
🛑 Academusoft is down

In eff7e91, Academusoft ($SECRET_ACADEMUSOFT) was down:

HTTP code: 503
Response time: 1236 ms

Resolved: Academusoft is back up in f8a01e0 after 560 days, 16 hours, 14 minutes.

repo: infraestructuraidt/status


text:
Small improvements to events package for nats publishing/subscription

Adds small helps for setting up your subscriber/publisher configs with NATS
Adds missing definitions for event message event types
Adjusts PublishEventMessage to publish to similar subject name as we expect with PublishChangeMessage
Adjusts NATS to use DurableCalculator instead of QueuePrefix per NATS/watermill recommendations

This will now use a small function to calculate the name of the consumer instead of just using the queue/topic name. This was causing issues with overlapping consumer names for multiple instances/apps that were listening on the same subject. This now essentially will take the queue name that is provided by the application (--event-subscriber-queuegroup) and then concatenates it with a hex encoded string of the full topic name (prefix+calculated topic) to give us a consumer name that is easy to calculate.

Using the DurablePrefix gives us the added benefit of when a member of the queue group drops or rejoins, it will be able to pick back up where the last consume left off vs potentially starting fresh if all members of that group had previously dropped.

Could you add the Close() to the publisher and subscriber?
// Close will close the subscriber
func (s *Subscriber) Close() error {
	return s.subscriber.Close()
}

authors: rizzza tylerauerbeck

repo: infratographer/x


text:
Adjustments for upstream functional CI (#214)

Add Jenkins CI and fix smoketest

test

Since this is a cherry pick of the work from 1.2 I think the same comments will be applicable here. I won't bother spending the time to call the same items out though. Was this merged/proposed to main as well or are we just focusing on testing the stable-1.x branches for now?

test

authors: leifmadsen pleimer

repo: infrawatch/service-telemetry-operator


text:
Increment list number at line break

The list number is automatically incremented when the enter key is used to create a new line but is not incremented when the o key is used to create a new line.
I often use ESC + o key to create a new line in vim, so it would be easier to type if the number is incremented.

I don't know whether it should be a default behavior or not because people may want to just insert a new line without inserting a list bullet/number.
But you can replicate the enter key behavior by making a custom command like so:
inkdrop.onEditorLoad(() => {
  const editor = inkdrop.getActiveEditor();
  const inputField = editor.cm.getInputField();

  const { commands } = inkdrop;
  commands.add(inputField, {
    "custom:insert-below-with-newline": () => {
      commands.dispatch(inputField, "vim:activate-insert-mode");
      commands.dispatch(inputField, "editor:go-line-end");
      commands.dispatch(inputField, "editor:new-line");
    },
  });
});

And bind it in keymap.cson:
'.CodeMirror.vim-mode.normal-mode:not(.key-buffering):not(.visual-mode) textarea':
  'o': 'custom:insert-below-with-newline'

authors: craftzdog seachicken

repo: inkdropapp/inkdrop-vim


text:
Added alt to footer social icons #26

I fixed problem with pulling the request to the wrong branch.

Great work @nexus0212! Thanks for the contribution. I'll merge it into staging right now.


text:
Can we set Marker Cluster options?

Hi there,
Is it possible to pass an object with this options? I don't see it in the component API.

Regards,

Hi @HusamIbrahim , thanks for the response. I found a way to do it with ref and computed.
One last question, is it possible to use InfoWindow inside CustomMarker? Its not working for me.
Regards

No this isn’t supported unfortunately.

authors: HusamIbrahim francoromanol


text:
I train under the ubuntu, only four minigames can run ??

Dear Inorry,
Thanks your sharing, I can learn a lot. Now I have trained four minigames and they are consistent with your results. But the other three minigames can not run. the error is id 1/id 17 unknown. I use gtx1080 ti , ubuntu16.04. I wonder if it has something to do with it?

It's definitely not related to your GPU or OS. Did you install pysc2 from master branch?

yes，I install pysc2 from master branch.  When I run the program using map of FindAndDefeatZerglings, ValueError: Unknown ability_id: 1, type: cmd_quick. Likely a bug. When i run the program using map of CollectMineralsAndGas and BuildMarines, ValueError: Unknown ability_id: 17, type: cmd_quick. Likely a bug.

What SC2 version do you use?

SC2 version is 3.16.1，maybe this reason?

Yes, Reaver requires SC2 version 4.1+.

Thank u very much!

authors: inoryy songwaimai

repo: inoryy/reaver


text:
Not able to Submit Archive with Swift SDK SPM

Is this a regression?
Yes
Description
To replicate:

Use Xcode 15.3, create new project (iOS or MultiPlatform).
Set deployment target to anything, 15, 16, or 17
Add Swift SDK using SPM.
Archive project (should build)
Submit to AppStoreConnect:
Observe Error returned:

Please provide the exception or error you saw
'Invalid Bundle.  The bundle ____/Frameworks/ApolloLibrary.framework does not support the minimum OS Version specified in the Info.plist (ID: $someID)

Please provide the environment you discovered this bug in
Xcode 15.3 iOS project and MultiPlatform project (iOS/Mac), with deployment target of iOS 15/16/17

This happens with Swift SDK v4.0.1 and v5.0.0

Anything else?
I'm not able to ship an app with the Swift SDK to TestFlight.  I was able to do this with earlier versions of the SDK but it's been about a year since I've tried.

Found this, maybe it's an Xcode 15.3 thing:  https://forums.developer.apple.com/forums/thread/748177

I had same issue with Xcode 15.2

More complaints about 15.3:  https://www.reddit.com/r/swift/comments/1bd7kxj/swift_ios_cannot_upload_to_testflight/

@coveloper this is fixed right or you still have problems?

This issue has been addressed and is now considered solved. If you have further questions or related concerns, please open a new issue.


text:
test new command query tx-mempool

depends on: https://github.com/input-output-hk/cardano-node/issues/4459

The query tx-mempool looks like a useful command that should be added to clusterlib and used from there.

The query tx-mempool looks like a useful command that should be added to clusterlib and used from there.

updated

authors: mkoura saratomaz

repo: input-output-hk/cardano-node-tests


text:
[BUG] - VRFKeyBadNonceOVERLAY on epoch cutover

Exernal
Summary
It has been observed running a node on private Guild Operators network that blocks minted right after epoch cutover(under 10s after cutover, exact time not confirmed but at least up to 6s) get rejected, trace: TraceForgedInvalidBlock , kind: VRFKeyBadNonceOVERLAY.
Steps to reproduce
Have a block producing node with enough stake to regularly make blocks right after epoch cutover.
Expected behavior
Blocks successfully made and adopted.
System info (please complete the following information):

OS: Ubuntu
Version: 20.04
Node version:
cardano-node 1.13.0 - linux-x86_64 - ghc-8.6
git rev 9f49515afc8ca3473cc3f1e1104765e0e357d888

Screenshots and attachments
Full JSON trace of VRFKeyBadNonceOVERLAY
{
  "at": "2020-06-19T09:00:02.13Z",
  "env": "1.13.0:c8ec2",
  "ns": [
    "cardano.node.Forge"
  ],
  "data": {
    "kind": "TraceForgedInvalidBlock",
    "reason": {
      "kind": "ValidationError",
      "error": {
        "kind": "HeaderProtocolError",
        "error": {
          "kind": "PredicateFailure",
          "failures": [
            {
              "kind": "VRFKeyBadNonceOVERLAY",
              "blockNonce": "CertifiedVRF {certifiedNatural = 257496154028758090498779421544410045289, certifiedProof = CertSimpleVRF {certU = Point 2262937906362959516303148039147879 4848089730085357766205839523249491, certC = 54060608959167033178960862473799130198, certS = 4126235464891015280355460803085182}}",
              "currentSlot": "229501",
              "previousHashAsNonce": "Nonce 24ec739bd17a04e65b8931cc8d6a2c6e5f0eaf64f561e344ebee79c92f630a50",
              "seedNonce": "Nonce 6e340b9cffb37a989ca544e6bb780a2c78901d3fb33738768511a30617afa01d"
            }
          ]
        }
      }
    },
    "slot": 229501
  },
  "app": [],
  "msg": "",
  "pid": "3477",
  "loc": null,
  "host": "cnode-ah",
  "sev": "Error",
  "thread": "46"
}

Image from my block collector implemented in guild operators cntools script tool to get a feeling for timestamps. Epoch cutover for guild network is exactly on the hour with 30min epochs.
Shows 5 consecutive epochs for the first blocks made by my block producing node. The Hash field contains a base64 encoded representation of JSON trace like the one above.

Additional context
Genesis for Guild network:
https://github.com/cardano-community/guild-operators/blob/master/files/ptn0/files/genesis.json
We have checked if it's attempting to make a block when there is an overlay schedule with higher priority (due to d= 0.5) but this was not the case, was not on BFT schedule.
I have only ever seen the issue right after epoch cutover.

The correlation with the epoch cutover suggests there may be an issue with e.g. the amount of time that is taken for rewards calculation.

hi @nc6 is this still an issue?

Has this issue been solved?

Has this issue been solved?

Closing this. If this is still relevant please re-open.

repo: input-output-hk/cardano-node


text:
[BUG] - DecoderErrorDeserialiseFailure "Address" when query stake-address-info

Internal/Exernal
Internal   if an IOHK staff member.
Summary
I am getting a DecoderErrorDeserialiseFailure "Address" error while trying to interrogate a stake address using the  cardano-cli shelley query stake-address-info command.
Steps to reproduce
Steps to reproduce the behavior:

create a payment and a stake address (+ key pairs)

delegate the stake address to one stake pool

query the stake address using:
cardano-cli shelley query stake-address-info --address STAKE_ADDRESS --testnet-magic 42

See error

Expected behavior
No error; stake address info is displayed
System info (please complete the following information):

OS:  Ubuntu 18.04.4 LTS
node version

~# cardano-cli version
cardano-cli 1.14.0 - linux-x86_64 - ghc-8.6
git rev 9cfe6fc4236ca38cfa7245ffd70feb161badd79a

Screenshots and attachments
# CARDANO_NODE_SOCKET_PATH=example/node-bft1/node.sock \
> cardano-cli shelley query stake-address-info \
> --address e058bcb673c7acb99076482cb4617fcd650639ab7870cd7de0353ddb9d \
> --testnet-magic 42
option --address: DecoderErrorDeserialiseFailure "Address" (DeserialiseFailure 0 "expected list len")
Usage: cardano-cli shelley query stake-address-info --address ADDRESS
                                                    (--mainnet |
                                                      --testnet-magic NATURAL)
                                                    [--out-file FILE]
  Get the current delegations and reward accounts filtered by stake address.

Are you sure it's not a payment address ? My stake addresses are 4 characters longer.

The address is created with cardano-cli shelley stake-address build

This is still not working in 1.15.0 - different error
CARDANO_NODE_SOCKET_PATH=example/node-bft1/node.sock \
	cardano-cli shelley address info \
	--address e03a251e8f0ed7b010912f4ca24fd0e079af4aa5bccbdc8526acd448c0

option --address: Failed reading: invalid address

Usage: cardano-cli shelley query stake-address-info --address ADDRESS
                                                    (--mainnet |
                                                      --testnet-magic NATURAL)
                                                    [--out-file FILE]
  Get the current delegations and reward accounts filtered by stake address.

# cardano-cli --version
cardano-cli 1.15.0 - linux-x86_64 - ghc-8.6
git rev 97b3e95c67940608f5acda929cf861e8ebfeddd1


text:
Yet more conversions to the new api

And remove more parts of the old api.
In particular, remove the file read/write and serialisation functions, so we can be
sure that we cannot accidentally mix up the new and old formats.

bors r+

authors: dcoutts intricate


text:
[CSLD-119] Enable swagger & client doc autobuild by travis

My only purpose is to update https://cardanodocs.com/technical/wallet/api/
And this PR seems to be the easiest way to do that

Afaik haddock is not generated because it took too long. This will need to wait on https://github.com/input-output-hk/cardano-sl/pull/1192

I omitted haddock and remained executables-based documentation builders, hope them to be very fast

Okay, I've just found out that travis job limit is already fully depleted, chances that this will pass are phantom

repo: input-output-hk/cardano-sl


text:
Let's try Continuous Integration!

Recently, @bwbush, @paluh and I decided to do a trial of a continuous integration workflow, where we contribute commits directly to a mainline branch and regularly integrate work with one another. This is a placeholder PR to track differences from main.
Rules of this branch:

Push your work frequently (at least once a day, but preferably more regularly)
Pull (integrate) regularly and resolve any merge conflicts
Commit all work directly to this branch
Close JIRA tickets as they become "fixed" on this branch. Tag commits with a fixes SCP-xxx message when a commit addresses a JIRA ticket.
The absolute highest priority is maintaining a "Green" build status. If you break the build, fix it immediately!
Do pair programming if you need code review.

@jhbertra, should we put this PR into "draft" status and leave it there until we're ready to review and push to main?

@jhbertra, @paluh , this marlowe-run-development branch lets me restore a wallet and add contacts (which I see in local storage), but it doesn't display the contacts or let me use the in contracts.

@jhbertra, @paluh , this marlowe-run-development branch lets me restore a wallet and add contacts (which I see in local storage), but it doesn't display the contacts or let me use the in contracts.

Issue fixed

authors: bwbush jhbertra

repo: input-output-hk/marlowe-cardano


text:
contracts: Add Ledger.Constraints

The core of this change is the Ledger.Constraints module, explained below. The rest is changing the on-chain and off-chain code to use the constraints.
Ledger.Constraints.TxConstraints
Constraints on pending transactions are expressed in the TxConstraints i o type. It is very similar to the old PendingTx, except that it has two type parameters for the inputs and outputs. The constructors defined in Ledger.Constraints.TxConstraints are also pretty much the same that existed for PendingTx.
On-chain vs off-chain
There are three incarnations of TxConstraints:

Off-chain (untyped): type LedgerTxConstraints  = TxConstraints [LTx.TxIn] [LTx.TxOut], pretty much identical to PendingTx. There are two reasons we can't use the same type in on-chain code. First, the TxIn transaction inputs contain validators in full (un-hashed) which we don't want to have in the on-chain code. This will probably go away when we update the emulator types to take the validator out of the transaction body. Second, TxIn and TxOut only contain Data and hashes. They don't say anything about the types of data and redeemer values. This makes sense from the ledger's point of view, but when we're inside a validator script we know the types of our own data and redeemer values, and it would be nice to be able to write constraints using those types directly, without having to convert from Data first. (That was the motivation for the typed tx library as well)

On-chain: Here we have type PendingTxConstraints a = TxConstraints () [OnChainUtxo a]. a is the type of the validator's data value. This unlocks a new constructor mustPayToOwnAddress :: forall i a. (Monoid i, IsData a) => Value -> a -> TxConstraints i [OnChainUtxo a] which we can use to say something about the "continuing outputs" of the validator. (Note that the idea of "own address" also doesn't exist in off-chain code because it depends on the specific input that is being validated)

Off-chain (typed): type TypedTxConstraints (ins :: [Type]) (outs :: [Type]) is a typed interface to TxConstraints. It's very similar to what we have Ledger.Typed.Tx.

To convert between the three representations we have the following functions:

toLedgerTx :: LedgerTxConstraints -> Tx
fromLedgerTx :: Tx -> LedgerTxConstraints
toLedgerConstraints :: PlutusTx.IsData a => Address -> PendingTxConstraints a -> LedgerTxConstraints
toTypedTxConstraints :: IsData (DataType inn) => ScriptInstance inn -> PendingTxConstraints (DataType inn) -> Maybe (Either (TypedTxConstraints '[] '[]) (TypedTxConstraints '[] '[inn])) (used for the state machine)
toUntypedLedgerConstraints :: forall inn out.  TypedTxConstraints inn out -> LedgerTxConstraints

The WriteTx effect has been changed to take a LedgerTxConstraints value. As a result, if we write our validator as a function that produces PendingTxConstraints a, then we can use the same function to generate the constraints that are eventually turned into a transaction in off-chain code.
Semantics
The semantics of the constraints are given by Ledger.Constraints.OnChain.checkPendingTx
checkPendingTx :: (IsData a) => PendingTxConstraints a -> PendingTx -> Bool

We can view checkPendingTx as a relation between constraints and the pending transactions that satisfy the constraints. Also, checkPendingTx relates the partial orders of PendingTxConstraints a and PendingTx (defined by the partial orders of their constituent parts) in a way that looks almost like a galois connection (or is that trivial? definitely needs some more thought)
Note about ordering: The constructors for PendingTxConstraints cannot express any information about the ordering of the transaction outputs, and the actual order of the outputs of a PendingTx does not affect the result of checkPendingTx. So we treat both inputs and outputs as if they were (multi-) sets. IMO the fact that outputs are ordered is an artifact of the ledger implementation, and relying on them to be in a particular order just makes the scripts more brittle and less composable.
PendingTxConstraints and checkPendingTx can be used in any validator.
State machine
The state machine type has been changed to
data StateMachine s i = StateMachine {
      -- | The transition function of the state machine. 'Nothing' indicates an invalid transition from the current state.
      smTransition :: s -> i -> Value -> Maybe (PendingTxConstraints s),
      -- | The condition checking function. Checks whether a given state transition is allowed given the 'PendingTx'.
      smCheck :: s -> i -> PendingTx -> Bool
    }

Note the transition function now takes an extra argument (the value locked by the output we're validating), and its result type is Maybe (PendingTxConstraints s). The Value of the output is included because it is as much a part of the contract's state as is the data value, and the result type combines the new state of the machine with constraints about the transaction that makes the transition. smCheck is provided as an escape hatch in case the constraints aren't enough. None of our current examples need smCheck.
The state machine client (in Language.Plutus.Contract.StateMachine) uses the TypedTxConstraints type to ensure that the machine has exactly one input and one or zero outputs
Other notable changes

PendingTxOut has been replaced by TxOut (they were identical)
The validators increased in size (At least some of that is explained by additional trace strings. We should be able to get rid of those for the release version of the contracts)

@michaelpj This is ready for another review (unless you want to wait for it to be rebased - I think the biggest change that's missing from this is replacing Pubkey with PubKeyhash)
Constraints

TxConstraints is now a list of constraints, with typed inputs and outputs for a ScriptType instance (the reason why it has two type parameters instead of one is that the type families of the ScriptType class caused problems with the plugin in places like data OutputConstraint = OutputConstraint { ocData :: DataType a, ... }. So the i is usually RedeemerType a and the o is DataType a for some ScriptType a.
The Ledger.Constraints.OffChain module now has a function mkTx that does constraints resolution. It uses the ScriptLookups type to store all the witnesses.
As a consequence, a lot of the client code needed to be changed to populate the ScriptLookups with the right values. This can be a bit tedious if you use mkTx directly, but the state machine client lib. takes care of it for you, which is quite nice. I think most, if not all, of the examples could now be written as state machines anyway.

State machine

The transition function now returns a value of NewState a, which has a field for the new state (so we don't need to fish it out of the constraints)
isFinal is also back
With the new approach in this PR we can actually implement the "one token per state machine instance" approach generically for any state machine (by modifying the transition function) but I'll leave that for future work :)

Typed transactions

mkTx also typechecks the script outputs that are spent by the transaction. So the typed transaction interface is now the default.
It is still possible to do untyped stuff with the constraints, by using the MustSpendScriptOutput and MustPayToOtherScript constructors. We need those for the handover from one contract to the next (for example, the setup code of futures contract creates the two tokens and then locks them in an Escrow contract, so that they're only released when both participants have paid their initial deposits)
I added a field for the forwarding monetary policy to ScriptInstance. That way the MPS and its hash can be included in the ScriptLookups automatically. If we had to define the forwarding MPS in every contract that uses it then we'd have to remember to add it ScriptLookups every time. We can still define other monetary policies of course.

I added a type UtxoMap = Map TxOutRef TxOutTx for the unspent outputs at some address. (In many places where we were using AddressMap in the client code (not emulator) we were only interested in a single address anyway)

repo: input-output-hk/plutus


text:
[Builtin] Define 'caseList' in terms of 'chooseList'

As per @kwxm's request.

/benchmark plutus-benchmark:validation


text:
Implement Custom YOLO v5 Module

I am trying to create an environment that uses a simple custom yolov5 object detection model, the model is working on a stand-alone deep stream environment.
I have used the traffic meter sample as the baseline, however, I still have some issues implementing this example.
The main issue is that the .wts failed to load when loading the module, do you have any advice?

@maoztamir, hi!
Are you facing any issues with loading the weights when running the "traffic_meter" example?
Please provide an error log. If possible, attach the complete module log.

Closing due to no activity.

authors: bwsw dorgun maoztamir

repo: insight-platform/Savant


text:
Added the ability to override the target from the default of _blank

I'd like to target _self and couldn't see how to do this.

Related to #365

+1

authors: davidjamartin tomaszzmuda

repo: insites/cookieconsent

license: mit

license_source: bigquery


text:
pkg/gadgets/trace: remove cgo

This PR removes dependencies on cgo for all trace gadgets.

Are we missing something to merge this?
(Please notice that there are some fixup commits to be squashed before merging)

authors: flyth mauriciovasquezbernal

repo: inspektor-gadget/inspektor-gadget


text:
A.2.5

This issue has been extracted from the issue list on:https://ies-svn.jrc.ec.europa.eu/issues/2685
Comment
Why is the note included here? û It seems more like an comment received earlier on.
Proposed Change
Remove the note.

Proposed Resolution
Remove note

Had I really missed so many earlier this week. Anyway, agreed.

authors: PeterParslow jensscheerlinck


text:
Uncaught ReferenceError: module is not defined

Hi!
I am building an app using https://github.com/auduno/clmtrackr, which requires jsfeat ("jsfeat": "git+https://github.com/inspirit/jsfeat").
When I try to build and launch the app in the browser i get this error

Any ideas? thanks!

Same here! On dev server it works. But when I use the build, get the same error.

I have the same problem... Have you find a fix @kishmiryan-karlen ?

authors: Omi0 kishmiryan-karlen mrasoahaingo

repo: inspirit/jsfeat


text:
add adapt mode node for k8s - [closed]

In GitLab by @luotian-github on May 21, 2018, 04:05
Merges updatek8s18 -> updatek8s18
add adapt mode node for k8s

In GitLab by @wknet123 on Nov 13, 2019, 10:57
closed

repo: inspursoft/board


text:
create a image more than 20 minutes, it'll lost the create image page

In GitLab by @sokril on Dec 8, 2017, 17:32
If you are reporting a problem, please make sure the following information are provided:

Version of board (last git commit number) , docker engine and docker-compose.
Config files of board, you can get them by packaging "board.cfg" and files in the same directory, including subdirectory.
Log files, you can get them by package the /var/log/board/.
Other necessery information.

In GitLab by @yhua123 on Nov 8, 2019, 07:43
issue 1, token resign without new token, so expired 30 min after fist time get token.
issue 2, web socket without token resign.

In GitLab by @wknet123 on Nov 8, 2019, 07:43
Fixed with PR #776, @MrLi please implement re-sign token action per 25 min in Websocket callback.

In GitLab by @sokril on Nov 8, 2019, 08:16
closed

In GitLab by @sokril on Nov 8, 2019, 08:16
assigned to @liyanq528


text:
Suggest：The  list of projects is sorted by creation time,the latest creation time project is shown in front [REPLACEMENT ISSUE]

The original issue
Id: 964
Title: Suggest：The  list of projects is sorted by creation time,the latest creation time project is shown in front

could not be created.
This is a dummy issue, replacing the original one. It contains everything but the original issue description. In case the gitlab repository is still existing, visit the following link to show the original issue:
TODO

In GitLab by @luotian-github on Nov 8, 2019, 07:46
should reverse the sequence in backend by time
should change tables: user, image, project, service

In GitLab by @sokril on Nov 8, 2019, 07:46
key：
string order_field:  "NAME" "CREATE_TIME"
int order_asc: 0 1
0：desc
1：asc

In GitLab by @liyanq528 on Nov 8, 2019, 07:46
need update the clarity to v0.11.9;

In GitLab by @liyanq528 on Nov 8, 2019, 07:46
fixed by pull request #1110

In GitLab by @cuiaq123 on Nov 8, 2019, 07:46
fixed

In GitLab by @sokril on Nov 8, 2019, 08:18
closed

In GitLab by @sokril on Nov 8, 2019, 08:18
assigned to @cuiaq123

In GitLab by @liyanq528 on Nov 11, 2019, 08:47
mentioned in merge request !451

In GitLab by @liyanq528 on Nov 12, 2019, 02:18
mentioned in merge request !838

In GitLab by @liyanq528 on Nov 13, 2019, 08:44
mentioned in merge request !1050


text:
NextMaxID for GetMediaComments returns json [Bug]

Hey
The NextMaxID feature seems to be working fine with GetFollowerRequest , but it seems to have a bug in GetMediaComments  . In which NextMaxID is returned as a json .
This will lead into a "java.net.URISyntaxException: Illegal character in query" Exception which is caused by json characters ("{}" and space character)
The full exception description :
Caused by: java.net.URISyntaxException: Illegal character in query at index 106: https://i.instagram.com/api/v1/media/1797253869312684639_1296464116/comments/?ig_sig_key_version=4&max_id={"server_cursor": "AQCAT4EDcxAlIIAqDFR4sVdmOOARc1b_XKz4fdhaGEJ9bqDMU1iVKcC2EZQVK7kOUTH-ctDa7zcihPB5T1Xs1bmrhZUbniUkW39U4irtjaOOPA", "is_server_cursor_inverse": false}
well i hope i didn't give away private keys in that exception 😂 anyways here it is
thanks .

@jessrix it seems that you are sending more than it asks for in the max_id. You should be sending just the server_cursor. Can you post your code for me to take a look if there's something wrong in the library or in your implementation?

Here is the original code that generated the exception
`String nextMaxId = null;
while(true) {
InstagramGetMediaCommentsResult comments = instagram.sendRequest(new InstagramGetMediaCommentsRequest(lastpost.getId(), nextMaxId));
            for (InstagramComment c : comments.getComments()) {
                //some code here
            }
            nextMaxId = comments.getNext_max_id();
            if (nextMaxId == null) {
                break;
            }

        }`

The problem here was that nextmaxid is not the server_cursor itself , but a json containing it so i did this
JSONParser jsonParser = new JSONParser();                 JSONObject jo = (JSONObject) jsonParser.parse(comments.getNext_max_id());                 nextMaxId =  (String) jo.get("server_cursor");
And it perfectly worked !
The problem is that i found "InstagramGetMediaCommentsResult" returning json as nextmaxid a little bit weird because all the other payloads return only the server cursor and not the whole json .
Thanks again

Addressed in rewrite or no longer relevant.

authors: brunocvcunha jessrix jvogit


text:
Get link from instagram story

Is there a way to get a link from an instagram story ? I'm referring to the "See More" section which redirects the user to a link that was shared along with the story. I am looking for a way to get that link.

Addressed in rewrite or no longer relevant.


text:
Potential Malicious Detection for instaloader.exe

Issue Description
I came across a concerning situation while working with the instaloader.exe file. Upon scanning the file using VirusTotal, the results indicated the presence of several potential malware detections from different antivirus engines. This is quite alarming and needs to be addressed to ensure the safety and integrity of the file.
Detected Malware:
Bkav Pro: W32.AIDetectMalware.64
Cynet: Malicious (score: 100)
McAfee-GW-Edition: BehavesLike.Win64.Backdoor.wc
SecureAge: Malicious
Trellix (FireEye): Generic.mg.93b12db8d80368eb
Acronis (Static ML): Undetected unusual detection
Additional Information
I will attach an image of the VirusTotal scan results for reference. Your expertise and assistance in resolving this issue are greatly appreciated. Let's work together to ensure the safety of the instaloader.exe file and maintain the integrity of this project.

As already described in #1432 and #1002 this is a false positive.
The complete source available in this repo, you can build it at your own if you want.

i think i will stick with virtual machine until it get fixed

repo: instaloader/instaloader


text:
Broaden OAuth user pool beyond just ILab org members

Only allowing instructlab org members to OAuth won't scale.
There is a cost to org members along with it being too restrictive. E.g. a workshop shouldn't have to add everyone into the org.
The obvious answer would be to open it to anyone. This would require accelerating the plan for a daily limit on chats. If that is too much to get done before v1 we could limit chat based on ilab org membership.

Update:
@jjasghar has setup a nice app to create invitations to a new org. This will allow us to add anyone to the public org for OAuth and avoid the costs associated with the upstream ilab org. This also alleviates the manual problem of adding folks.
Links:

https://instructlab-public-inviter.1iyb6ex4la0n.us-east.codeengine.appdomain.cloud/
https://github.com/instructlab-public

TODOS:

[ ] Add the new repo to src/app/api/auth/[...nextauth]/route.ts as an ENV along with checking the upstream ilab org.
[ ] While in the code, make the organization optional by checking if the .env exists. Devs should be able to start the repo and test OAuth in their own app without having to be a member of either org for test/dev.
[ ] Demo this on Wednesday's UI community call and a triager call.

@nerdalert I think we need to make some decisions here about the production release. cc: @lhawthorn @jjasghar @Gregory-Pereira @aevo98765 @instructlab/ui-maintainers

authors: nerdalert vishnoianil

repo: instructlab/ui


text:
Sharvils/tf labels

Description

This PR adds labels to TF services for support matrix docs.
Changes Made

Adds labels in all services in the file tensorflow/docker-compose.yaml

[x] The code follows the project's coding standards.
[x] No Intel Internal IP is present within the changes.
[x] The documentation has been updated to reflect any changes in functionality.

Validation

[x] I have tested any changes in container groups locally with test_runner.py with all existing tests passing, and I have added new tests where applicable.

Friendly reminder @sharvil10 to not expose your idsid in this repository. :)

repo: intel/ai-containers


text:
Nav Controller and Fragment Issue

I am facing the below issue in android app when I am switch on new activity.
I check all the onclick listeners all are seems okay....please help
""
Process: com.example.myshop, PID: 8116
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.myshop/com.example.myshop.HomePage}: java.lang.IllegalStateException: Activity com.example.myshop.HomePage@cd35735 does not have a NavController set on 2131230904
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2666)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6121)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
Caused by: java.lang.IllegalStateException: Activity com.example.myshop.HomePage@cd35735 does not have a NavController set on 2131230904
at androidx.navigation.Navigation.findNavController(Navigation.java:61)
at com.example.myshop.HomePage.onCreate(HomePage.java:60)
at android.app.Activity.performCreate(Activity.java:6723)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2619)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2727)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1478)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6121)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:889)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:779)
""

Hi @Abhi83020 , looks like not a haxm related issue. Could you provide more details or raise android specific issue to google in the issue tracker?

Yes there are issue with nav controller.
when I switch to new activity it shows some error.
I am also sharing my android manifest file and switch between two activities(Skip Button to Home page) where I am facing this issue.
Android Manifest:

<uses-permission android:name="android.permission.INTERNET" />

<application
    android:allowBackup="true"
    android:icon="@mipmap/ic_launcher"
    android:label="@string/app_name"
    android:roundIcon="@mipmap/ic_launcher_round"
    android:supportsRtl="true"
    android:theme="@style/AppTheme">
    <activity
        android:name=".HomePage"
        android:label="@string/title_activity_home_page"
        android:theme="@style/AppTheme.NoActionBar"></activity>
    <activity android:name=".LoginActivity" />
    <activity android:name=".HomeFragment" />
    <activity
        android:name=".MainActivity"
        android:theme="@style/SplashTheme">
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
</application>

**Singup**
package com.example.myshop;
import android.content.Intent;
import android.os.Bundle;
import android.text.Editable;
import android.text.TextUtils;
import android.text.TextWatcher;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.Button;
import android.widget.EditText;
import android.widget.FrameLayout;
import android.widget.TextView;
import android.widget.Toast;
import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import com.google.android.gms.tasks.OnCompleteListener;
import com.google.android.gms.tasks.Task;
import com.google.firebase.auth.AuthResult;
import com.google.firebase.auth.FirebaseAuth;
import com.google.firebase.firestore.DocumentReference;
import com.google.firebase.firestore.FirebaseFirestore;
import java.util.HashMap;
import java.util.Map;
/**

A simple {@link Fragment} subclass.
*/
public class SignupFragment extends Fragment {
public SignupFragment() {
// Required empty public constructor
}
private TextView alreadyHaveAnAccount;
private FrameLayout parentFrameLayout;
private EditText email;
private EditText fullName;
private EditText password;
private EditText confirmPassword;
private Button skipBtn;
private Button signUpBtn;
private FirebaseAuth firebaseAuth;
private FirebaseFirestore firebaseFirestore;
private String emailPattern = "[a-zA-Z0-9._-]+@[a-z]+.[a-z]+";
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container,
Bundle savedInstanceState) {
// Inflate the layout for this fragment
View view = inflater.inflate(R.layout.fragment_signup, container, false);
alreadyHaveAnAccount = view.findViewById(R.id.SignupSignin);
parentFrameLayout = getActivity().findViewById(R.id.RegisterFrame);
 email = view.findViewById(R.id.SignupEmail);
 fullName = view.findViewById(R.id.SignupFullname);
 password = view.findViewById(R.id.SignupPassword);
 confirmPassword = view.findViewById(R.id.SignupConfirm);

 skipBtn = view.findViewById(R.id.Skip2);
 signUpBtn = view.findViewById(R.id.Signup);

 firebaseAuth = FirebaseAuth.getInstance();
 firebaseFirestore = FirebaseFirestore.getInstance();
 return view;

}
@Override
public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
super.onViewCreated(view, savedInstanceState);
alreadyHaveAnAccount.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
setFragment(new SigninFragment());
}
});
 skipBtn.setOnClickListener(new View.OnClickListener() {
     @Override
     public void onClick(View v) {
         Intent homeIntent = new Intent(getActivity(), HomePage.class);
         startActivity(homeIntent);
         getActivity().finish();
     }
 });

 email.addTextChangedListener(new TextWatcher() {
     @Override
     public void beforeTextChanged(CharSequence s, int start, int count, int after) {

     }

     @Override
     public void onTextChanged(CharSequence s, int start, int before, int count) {
         checkInputs();

     }

     @Override
     public void afterTextChanged(Editable s) {

     }
 });
 fullName.addTextChangedListener(new TextWatcher() {
     @Override
     public void beforeTextChanged(CharSequence s, int start, int count, int after) {

     }

     @Override
     public void onTextChanged(CharSequence s, int start, int before, int count) {
         checkInputs();

     }

     @Override
     public void afterTextChanged(Editable s) {

     }
 });
 password.addTextChangedListener(new TextWatcher() {
     @Override
     public void beforeTextChanged(CharSequence s, int start, int count, int after) {

     }

     @Override
     public void onTextChanged(CharSequence s, int start, int before, int count) {
         checkInputs();

     }

     @Override
     public void afterTextChanged(Editable s) {

     }
 });
 confirmPassword.addTextChangedListener(new TextWatcher() {
     @Override
     public void beforeTextChanged(CharSequence s, int start, int count, int after) {

     }

     @Override
     public void onTextChanged(CharSequence s, int start, int before, int count) {
         checkInputs();

     }

     @Override
     public void afterTextChanged(Editable s) {

     }
 });

 signUpBtn.setOnClickListener(new View.OnClickListener() {
     @Override
     public void onClick(View v) {
         checkEmailAndPassword();
     }
 });

}
private void setFragment(Fragment fragment) {
FragmentTransaction fragmentTransaction = getActivity().getSupportFragmentManager().beginTransaction();
fragmentTransaction.replace(parentFrameLayout.getId(), fragment);
fragmentTransaction.commit();
}
private void checkInputs() {
if (!TextUtils.isEmpty(email.getText())) {
if (!TextUtils.isEmpty(fullName.getText())) {
if (!TextUtils.isEmpty(password.getText()) && password.length() >= 8) {
if (!TextUtils.isEmpty(confirmPassword.getText())) {
signUpBtn.setEnabled(true);
} else {
signUpBtn.setEnabled(false);
}
} else {
signUpBtn.setEnabled(false);
}
}else{
signUpBtn.setEnabled(false);
}
}
else {
signUpBtn.setEnabled(false);
}
}
private void checkEmailAndPassword(){
if(email.getText().toString().matches(emailPattern)){
if(password.getText().toString().equals(confirmPassword.getText().toString())){
signUpBtn.setEnabled(false);
firebaseAuth.createUserWithEmailAndPassword(email.getText().toString(),password.getText().toString())
.addOnCompleteListener(new OnCompleteListener() {
@Override
public void onComplete(@NonNull Task task) {
if (task.isSuccessful()) {
Map<Object,String> userdata = new HashMap<>();
userdata.put("fullname",fullName.getText().toString());
                             firebaseFirestore.collection("USERS")
                                     .add(userdata)
                                     .addOnCompleteListener(new OnCompleteListener<DocumentReference>() {
                                         @Override
                                         public void onComplete(@NonNull Task<DocumentReference> task) {
                                             if (task.isSuccessful()){
                                                 Intent homeIntent = new Intent(getActivity(), HomePage.class);
                                                 startActivity(homeIntent);
                                                 getActivity().finish();
                                             }
                                             else{
                                                 signUpBtn.setEnabled(true);
                                                 String error = task.getException().getMessage();
                                                 Toast.makeText(getActivity(), error, Toast.LENGTH_SHORT).show();
                                             }
                                         }
                                     });
                         } else {
                             signUpBtn.setEnabled(true);
                             String error = task.getException().getMessage();
                             Toast.makeText(getActivity(), error, Toast.LENGTH_SHORT).show();
                         }
                     }
                 });
         }else{
         confirmPassword.setError("Password doesn't matched");
     }
 }
 else{
     email.setError("Invalid Email");
 }

}
}
Home Page

package com.example.myshop;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.FrameLayout;
import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;
import androidx.core.view.GravityCompat;
import androidx.drawerlayout.widget.DrawerLayout;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.FragmentTransaction;
import androidx.navigation.Navigation;
import androidx.navigation.ui.AppBarConfiguration;
import androidx.navigation.ui.NavigationUI;
import com.google.android.material.navigation.NavigationView;
public class HomePage extends AppCompatActivity {
private AppBarConfiguration mAppBarConfiguration;
private FrameLayout frameLayout;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_home_page);
    Toolbar toolbar = findViewById(R.id.toolbar);
    setSupportActionBar(toolbar);
    getSupportActionBar().setDisplayShowTitleEnabled(false);

   /* FloatingActionButton fab = (FloatingActionButton) findViewById(R.id.fab);
    fab.setOnClickListener(new View.OnClickListener() {
        @Override
        public void onClick(View view) {
            Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
                    .setAction("Action",null).show();
        }
    }); */

    DrawerLayout drawer = findViewById(R.id.drawer_layout);
    NavigationView navigationView = findViewById(R.id.nav_view);
    navigationView.getMenu().getItem(0).setChecked(true);

    frameLayout = findViewById(R.id.homeframelayout);
    setFragment(new HomeFragment());

    // Passing each menu ID as a set of Ids because each
    // menu should be considered as top level destinations.
    mAppBarConfiguration = new AppBarConfiguration.Builder(
            R.id.nav_home, R.id.nav_gallery, R.id.nav_slideshow)
            .setDrawerLayout(drawer)
            .build();

    androidx.navigation.NavController navController = Navigation.findNavController(this, R.id.nav_view);
    NavigationUI.setupActionBarWithNavController(this, navController, mAppBarConfiguration);
    NavigationUI.setupWithNavController(navigationView, navController);

}

@Override
public boolean onCreateOptionsMenu(Menu menu) {
    // Inflate the menu; this adds items to the action bar if it is present.
    getMenuInflater().inflate(R.menu.home_page, menu);
    return true;
}
@Override
public boolean onOptionsItemSelected(MenuItem item){
    int id=item.getItemId();
    if (id==R.id.searchicon){
        return true;

    }else if (id==R.id.notificationicon){
        return true;
    }else if (id==R.id.carticon){
        return true;
    }
    return super.onOptionsItemSelected(item);
}
public boolean onNavigationItemSelected(MenuItem item){
    int id=item.getItemId();

    if (id==R.id.myshop) {
    }else if (id==R.id.myorder){
    }else if (id==R.id.mycart){
    }else if (id==R.id.myreward){
    }else if (id==R.id.mywishlist){
    }else if (id==R.id.myaccount) {
    } else if (id==R.id.signout) {
    }

    DrawerLayout drawer = (DrawerLayout) findViewById(R.id.drawer_layout);
    drawer.closeDrawer(GravityCompat.START);
    return true;
}
 @Override
public boolean onSupportNavigateUp() {
    androidx.navigation.NavController navController = Navigation.findNavController(this, R.id.nav_view);
    return NavigationUI.navigateUp(navController, mAppBarConfiguration)
            || super.onSupportNavigateUp();
}
private void setFragment(Fragment fragment){
    FragmentTransaction fragmentTransaction = getSupportFragmentManager().beginTransaction();
    fragmentTransaction.replace(frameLayout.getId(),fragment);
    fragmentTransaction.commit();
}

}

repo: intel/haxm


text:
Revert windows-related changes for void *params[] in third_party/nvidia/backend/driver.py

So it's more like what other backends have. If this was a change from an old pull request (in Triton), I guess we can roll it back. @gshimansky please take a look.

@gshimansky thanks for review!

repo: intel/intel-xpu-backend-for-triton


text:
[BesTLA] First-token inference optimization

Type of Change

Higher performance for comp_int8 group=-1 kernels
Improved vector mul and add.
Reduce template combinations, and speed up the compilation process

Performance change
llama2-7B, int4, group=-1, sym, comp_int8:
Alderlake 16 cores
PR:
model_print_timings:        load time =  3765.44 ms
model_print_timings:      sample time =     2.79 ms /    16 runs   (    0.17 ms per token)
model_print_timings: prompt eval time =  3745.27 ms /  1024 tokens (    3.66 ms per token)
model_print_timings:        eval time =  1086.39 ms /    15 runs   (   72.43 ms per token)
model_print_timings:       total time =  4861.68 ms
========== eval time log of each prediction ==========
prediction   0, time: 3745.27ms
prediction   1, time: 72.77ms
prediction   2, time: 72.35ms
prediction   3, time: 72.35ms
prediction   4, time: 72.31ms

Main:
model_print_timings:        load time =  7380.84 ms
model_print_timings:      sample time =     3.81 ms /    16 runs   (    0.24 ms per token)
model_print_timings: prompt eval time =  5029.46 ms /  1024 tokens (    4.91 ms per token)
model_print_timings:        eval time =  1086.52 ms /    15 runs   (   72.43 ms per token)
model_print_timings:       total time =  8486.67 ms
========== eval time log of each prediction ==========
prediction   0, time: 5029.46ms
prediction   1, time: 72.87ms
prediction   2, time: 72.38ms
prediction   3, time: 72.17ms
prediction   4, time: 72.36ms

sapphire rapids 56 cores:
PR:
model_print_timings:        load time =   385.17 ms
model_print_timings:      sample time =     8.08 ms /    16 runs   (    0.50 ms per token)
model_print_timings: prompt eval time =   382.27 ms /  1023 tokens (    0.37 ms per token)
model_print_timings:        eval time =   338.05 ms /    15 runs   (   22.54 ms per token)
model_print_timings:       total time =   735.46 ms
========== eval time log of each prediction ==========
prediction   0, time: 382.27ms
prediction   1, time: 23.75ms
prediction   2, time: 22.91ms
prediction   3, time: 22.69ms
prediction   4, time: 22.63ms

model_print_timings:        load time =   740.27 ms
model_print_timings:      sample time =     8.00 ms /    16 runs   (    0.50 ms per token)
model_print_timings: prompt eval time =   734.54 ms /  2024 tokens (    0.36 ms per token)
model_print_timings:        eval time =   385.63 ms /    15 runs   (   25.71 ms per token)
model_print_timings:       total time =  1137.81 ms
========== eval time log of each prediction ==========
prediction   0, time: 734.54ms
prediction   1, time: 27.92ms
prediction   2, time: 26.25ms
prediction   3, time: 25.76ms
prediction   4, time: 25.60ms

Main:
model_print_timings:      sample time =     8.59 ms /    16 runs   (    0.54 ms per token)
model_print_timings: prompt eval time =   407.88 ms /  1023 tokens (    0.40 ms per token)
model_print_timings:        eval time =   348.30 ms /    15 runs   (   23.22 ms per token)
model_print_timings:       total time =   771.64 ms
========== eval time log of each prediction ==========
prediction   0, time: 407.88ms
prediction   1, time: 24.32ms
prediction   2, time: 23.61ms
prediction   3, time: 23.46ms
prediction   4, time: 23.34ms

model_print_timings:        load time =   865.02 ms
model_print_timings:      sample time =     8.57 ms /    16 runs   (    0.54 ms per token)
model_print_timings: prompt eval time =   859.30 ms /  2024 tokens (    0.42 ms per token)
model_print_timings:        eval time =   386.94 ms /    15 runs   (   25.80 ms per token)
model_print_timings:       total time =  1264.64 ms
========== eval time log of each prediction ==========
prediction   0, time: 859.30ms
prediction   1, time: 27.38ms
prediction   2, time: 27.00ms
prediction   3, time: 26.05ms
prediction   4, time: 25.91ms

Mistral-7B, int4, group=-1, sym, comp_int8:
Cascade lake 20 cores
PR:
model_print_timings:        load time =  2572.34 ms
model_print_timings:      sample time =     9.15 ms /    16 runs   (    0.57 ms per token)
model_print_timings: prompt eval time =  2571.85 ms /  1008 tokens (    2.55 ms per token)
model_print_timings:        eval time =   711.59 ms /    15 runs   (   47.44 ms per token)
model_print_timings:       total time =  3298.07 ms
========== eval time log of each prediction ==========
prediction   0, time: 2571.85ms
prediction   1, time: 48.90ms
prediction   2, time: 47.35ms
prediction   3, time: 47.37ms
prediction   4, time: 47.35ms

Main:
model_print_timings:        load time =  2933.11 ms
model_print_timings:      sample time =     9.31 ms /    16 runs   (    0.58 ms per token)
model_print_timings: prompt eval time =  2932.60 ms /  1008 tokens (    2.91 ms per token)
model_print_timings:        eval time =   708.29 ms /    15 runs   (   47.22 ms per token)
model_print_timings:       total time =  3655.52 ms
========== eval time log of each prediction ==========
prediction   0, time: 2932.60ms
prediction   1, time: 48.08ms
prediction   2, time: 47.02ms
prediction   3, time: 46.99ms
prediction   4, time: 47.08ms

There also add and mul in custom::epilogue.  Should we keep one add and mul?

There also add and mul in custom::epilogue. Should we keep one add and mul?

custom::epilogue are using the ref code, they should call kernel::wrapper::Add and Mul

Windows server can't connect to the proxy server. Windows build is verified on a local windows machine.

repo: intel/neural-speed


text:
Use kroki to create svg

Using only mermaid will cause large white boxes around the diagram. Using Korki to pre-create a mermaid image helps to avoid this.

Jenkins please retry a build

authors: itrushkin maradionov

repo: intel/openfl


text:
question: Cannot create pmem-csi volume

When I tried to create a pmem-csi PVC, it seems like it's not having the capacity to provide it.
My k8s cluster is running with 1 master and 3 workers, only 1 worker has the pmem-csi labeled.
This is the error I get in the pvc creation:
failed to provision volume with StorageClass "pmem-csi-sc": rpc error: code = Unavailable desc = No node found with 8589934592 capacaity

This is the relevant log from the pod that is running the node with persistence memory enabled:
.
.
.
I1213 17:46:31.993469       1 glog.go:79] total used: 0
I1213 17:46:33.070068       1 glog.go:79] CheckVG: Bus: ndbus0
I1213 17:46:33.070457       1 glog.go:79] Region: region1
I1213 17:46:33.070465       1 glog.go:79] NsMode: fsdax
I1213 17:46:33.071043       1 glog.go:79] No active namespaces in region region1
I1213 17:46:33.071058       1 glog.go:79] NsMode: sector
I1213 17:46:33.071121       1 glog.go:79] No active namespaces in region region1
I1213 17:46:33.071128       1 glog.go:79] Region: region0
I1213 17:46:33.071133       1 glog.go:79] NsMode: fsdax
I1213 17:46:33.071724       1 glog.go:79] No active namespaces in region region0
I1213 17:46:33.071732       1 glog.go:79] NsMode: sector
I1213 17:46:33.071793       1 glog.go:79] No active namespaces in region region0
I1213 17:46:37.382378       1 main.go:138] Version: v0.4.1-0-gb3ef1f69a

Here's the command how my VM is started:
qemu-system-x86_64 -drive if=virtio,file=/data/cow_image.qcow2,format=qcow2 \
 -drive file=/data/seed.iso,if=virtio,format=raw -nodefaults \
-device virtio-balloon-pci,id=balloon0 -realtime mlock=off -msg timestamp=on \
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 \
-serial stdio -enable-kvm -machine accel=kvm,usb=off -vga qxl \
-display none -m 4G,slots=4,maxmem=32G -smp 4 -machine pc,accel=kvm,nvdimm=on \
-device virtio-net-pci,netdev=net0,mac=02:42:ac:11:00:09 -netdev tap,id=net0,vhost=on,fd=3 \
-object memory-backend-file,id=mem1,share,mem-path=/tmp/f27nvdimm0,size=4G -device nvdimm,memdev=mem1,id=nv1,label-size=2M \
-object memory-backend-file,id=mem2,share,mem-path=/tmp/f27nvdimm1,size=4G -device nvdimm,memdev=mem2,id=nv2,label-size=2M -vnc unix:/data/vnc

I ran this in order to enable the NVIDIMM regions
ndctl disable-region all
ndctl init-labels all
ndctl enable-region all

Is there something that is missing to run? I saw some documentation about the usage of https://github.com/intel/ipmctl, is it only for the cases when I have the Optane HW?

When I tried to create a pmem-csi PVC, it seems like it's not having the capacity to provide it.
My k8s cluster is running with 1 master and 3 workers, only 1 worker has the pmem-csi labeled.
This is the error I get in the pvc creation:
failed to provision volume with StorageClass "pmem-csi-sc": rpc error: code = Unavailable desc = No node found with 8589934592 capacaity

This is the relevant log from the pod that is running the node with persistence memory enabled:
.
.
.
I1213 17:46:31.993469       1 glog.go:79] total used: 0
I1213 17:46:33.070068       1 glog.go:79] CheckVG: Bus: ndbus0
I1213 17:46:33.070457       1 glog.go:79] Region: region1
I1213 17:46:33.070465       1 glog.go:79] NsMode: fsdax
I1213 17:46:33.071043       1 glog.go:79] No active namespaces in region region1
I1213 17:46:33.071058       1 glog.go:79] NsMode: sector
I1213 17:46:33.071121       1 glog.go:79] No active namespaces in region region1
I1213 17:46:33.071128       1 glog.go:79] Region: region0
I1213 17:46:33.071133       1 glog.go:79] NsMode: fsdax
I1213 17:46:33.071724       1 glog.go:79] No active namespaces in region region0
I1213 17:46:33.071732       1 glog.go:79] NsMode: sector
I1213 17:46:33.071793       1 glog.go:79] No active namespaces in region region0
I1213 17:46:37.382378       1 main.go:138] Version: v0.4.1-0-gb3ef1f69a

Here's the command how my VM is started:
qemu-system-x86_64 -drive if=virtio,file=/data/cow_image.qcow2,format=qcow2 \
 -drive file=/data/seed.iso,if=virtio,format=raw -nodefaults \
-device virtio-balloon-pci,id=balloon0 -realtime mlock=off -msg timestamp=on \
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0 \
-serial stdio -enable-kvm -machine accel=kvm,usb=off -vga qxl \
-display none -m 4G,slots=4,maxmem=32G -smp 4 -machine pc,accel=kvm,nvdimm=on \
-device virtio-net-pci,netdev=net0,mac=02:42:ac:11:00:09 -netdev tap,id=net0,vhost=on,fd=3 \
-object memory-backend-file,id=mem1,share,mem-path=/tmp/f27nvdimm0,size=4G -device nvdimm,memdev=mem1,id=nv1,label-size=2M \
-object memory-backend-file,id=mem2,share,mem-path=/tmp/f27nvdimm1,size=4G -device nvdimm,memdev=mem2,id=nv2,label-size=2M -vnc unix:/data/vnc

This s showing that your qemu is configured with two 4GB nvdimms,  so with this configuration you can use max ~4GB volume, Can you please try creating PVC with less than 4GB.

Is there something that is missing to run? I saw some documentation about the usage of https://github.com/intel/ipmctl, is it only for the cases when I have the Optane HW?

Yes, ipmctl tool is to initialize physical dimms.

I think before that this scenario blocks by the fact that default namespace size id 32GB, means the drivers fails to create even first namespace. In emulated case, it makes sense to use smaller than default namespace size using pmem-csi driver added option, for example -namespacesize 2
So that in yaml file this config becomes for exmaple:
        image: REGISTRY:5000/pmem-ns-init:canary
        args: [ "-v=5", "-namespacesize=2" ]

The 32 GB default size was selected real HW  in mind where device will be like 128 G and more. What is the good/optimal value is bit open, also some thoughts in issue #58.
In short, your emulated NVDIMM size and value given to -namespacesize should result in balance
such as at least one, better few namespaces can be create inside one NVDIMM.
Note also there is some overhead so with NVDIMM=8G and namespacesize=4G you will get one, not two, and with such round numbers the unused overhead is close to 4G

another hint, use ndctl on host to list the actual namespaces state, it's bit cleaner to examine it there
compared to pmem-csi driver logs

@avalluri and @okartau thanks for the help, I created a volume of 1Gb.
As far I can see, my regions seem to have enough room to create a 1G volume.
ndctl list -R
[
  {
    "dev":"region1",
    "size":4292870144,
    "available_size":4292870144,
    "type":"pmem",
    "numa_node":0,
    "iset_id":10248195696374871,
    "persistence_domain":"unknown"
  },
  {
    "dev":"region0",
    "size":4292870144,
    "available_size":4292870144,
    "type":"pmem",
    "numa_node":0,
    "iset_id":10248187106440278,
    "persistence_domain":"unknown"
  }
]

I'm still getting this error:
I1213 23:22:06.862312       1 glog.go:79] Enabling volume access mode: SINGLE_NODE_WRITER
I1213 23:22:06.862842       1 glog.go:79] NewPmemDeviceManagerLVM: Bus: ndbus0
I1213 23:22:06.863214       1 glog.go:79] NewPmemDeviceManagerLVM: Region: region1
I1213 23:22:06.863230       1 glog.go:58] Executing: vgs ndbus0region1fsdax
I1213 23:22:06.918079       1 glog.go:58] Output:   Volume group "ndbus0region1fsdax" not found
  Cannot process volume group ndbus0region1fsdax
I1213 23:22:06.918145       1 glog.go:79] NewPmemDeviceManagerLVM: VG ndbus0region1fsdax non-existent, skip
I1213 23:22:06.918202       1 glog.go:58] Executing: vgs ndbus0region1sector
I1213 23:22:06.959001       1 glog.go:58] Output:   Volume group "ndbus0region1sector" not found
  Cannot process volume group ndbus0region1sector
I1213 23:22:06.959053       1 glog.go:79] NewPmemDeviceManagerLVM: VG ndbus0region1sector non-existent, skip
I1213 23:22:06.959101       1 glog.go:79] NewPmemDeviceManagerLVM: Region: region0
I1213 23:22:06.959130       1 glog.go:58] Executing: vgs ndbus0region0fsdax
I1213 23:22:07.031182       1 glog.go:58] Output:   Volume group "ndbus0region0fsdax" not found
  Cannot process volume group ndbus0region0fsdax
I1213 23:22:07.031259       1 glog.go:79] NewPmemDeviceManagerLVM: VG ndbus0region0fsdax non-existent, skip
I1213 23:22:07.031298       1 glog.go:58] Executing: vgs ndbus0region0sector
I1213 23:22:07.099042       1 glog.go:58] Output:   Volume group "ndbus0region0sector" not found
  Cannot process volume group ndbus0region0sector
I1213 23:22:07.099150       1 glog.go:79] NewPmemDeviceManagerLVM: VG ndbus0region0sector non-existent, skip
I1213 23:22:07.099255       1 glog.go:79] Enabling node service capability: STAGE_UNSTAGE_VOLUME
I1213 23:22:07.099602       1 glog.go:79] Enabling controller service capability: PUBLISH_UNPUBLISH_VOLUME
I1213 23:22:07.101561       1 glog.go:79] Listening for connections on address: &net.UnixAddr{Name:"/csi/csi.sock", Net:"unix"}
I1213 23:22:07.101953       1 glog.go:58] Connecting to 10.97.108.156:10000
Connecting to Registry at : tcp://10.97.108.156:10000

And my VMs setup is:
qemu-system-x86_64 -drive if=virtio,file=/data/cow_image.qcow2,format=qcow2
-drive file=/data/seed.iso,if=virtio,format=raw -nodefaults
-device virtio-balloon-pci,id=balloon0 -realtime mlock=off -msg timestamp=on
-chardev pty,id=charserial0 -device isa-serial,chardev=charserial0,id=serial0
-serial stdio -enable-kvm -machine accel=kvm,usb=off -vga qxl -display none -m 8G,slots=4,maxmem=16G -smp 4 -machine pc,accel=kvm,nvdimm=on
-device virtio-net-pci,netdev=net0,mac=02:42:ac:11:00:09 -netdev tap,id=net0,vhost=on,fd=3
-object memory-backend-file,id=mem1,share,mem-path=/tmp/f27nvdimm0,size=4G
-device nvdimm,memdev=mem1,id=nv1,label-size=2M
-object memory-backend-file,id=mem2,share,mem-path=/tmp/f27nvdimm1,size=4G -device nvdimm,memdev=mem2,id=nv2,label-size=2M -vnc unix:/data/vnc

@okartau I'm actually running it in K8s, I'm following this part of the main README https://github.com/intel/pmem-CSI#run-as-kubernetes-deployment. As far I understand pmem-ns-init and pmem-vgm are running on init containers in pmem-csi containers that are running on each container.

hm, re-read of start of thread shows you attempt pvc, so it means you have Kubernetes context amd my guidance about steps like in run_driver is off-topic.
But question remains, whats your deployment scheme, has pmem-vgm been run?
In kubernetes case, we have deployment example documented in README, using manifests in deploy/, please check recently updated content there suitable for k8s  v1.12.
The pmem-csi.yaml has entries taking care of starting all 3 stages.
in k8s logs you can examine the stage logs separately.
pmem-vgm log should show creation (or re-use) of LVM volume groups.
It is also helpful to re-check using vgs on host side, may need to use vgs --foreign as vg ops were running inside container

Yes, I'm using the k8s v1.12 yml file from deploy, here's the full log in the pod/pmem-csi-xxx
kubectl logs pod/pmem-csi-86f7h   --all-containers
http://pastebin.intel.com:8080/sijetejose
For some reason, this error keeps appearing:
 Executing: vgs ndbus0region0fsdax
I1213 23:54:25.562723       1 glog.go:58] Output:   Volume group "ndbus0region0fsdax" not found

I'm not sure if that may be the issue.

Also, I ran the vgs command and showing as follows:
root@k8s-ubuntu-pmem-worker1:/home/ubuntu# vgs --foreign
root@k8s-ubuntu-pmem-worker1:/home/ubuntu#

thanks for log, now I start getting some traction of it.
You have 2 regions, both with available_size:4292870144
You have configured 4G namespacesize:
glog.go:79] Configured namespacesize; 4 GB
pmem-ns-init (1st stage) checks each region and tries to create 4294967296 byte namespaces.
But 4294967296-byte namespace does not fit into free space 4292870144,
therefore it can't create any:
0 fsdax-namespaces of size 4294967296 possible in region region1
the reason why 4G cant fit into 4G is namespace overhead (I think it's 4 MB).
Please try with reduced namespacesize, like 3G or 2G (you should get 1 namespace created)
or 1G (you should get 3 namespaces created)

@okartau, yeah, that totally makes sense. I'm almost there. I changed the namespace to 2GB and it seems like it now creates at least one namespace. I'm still getting some weird error later. I'm digging more to find the root cause of this.
> kubectl log pod/pmem-csi-v22jt   --all-containers -f
log is DEPRECATED and will be removed in a future version. Use logs instead.
I1214 07:14:02.434865       1 glog.go:79] Configured namespacesize; 2 GB
I1214 07:14:02.435347       1 glog.go:79] Create fsdax-namespaces in region1, allowed 100 %:
total       :       4292870144
avail       :       4292870144
can use     :       4292870144
I1214 07:14:02.435882       1 glog.go:79] total used: 0
I1214 07:14:02.435903       1 glog.go:79] 1 fsdax-namespaces of size 2147483648 possible in region region1
I1214 07:14:02.435910       1 glog.go:79] Creating namespace 0
I1214 07:14:02.439541       1 glog.go:79] setting namespace sector size ...: 0
I1214 07:14:02.442212       1 glog.go:79] setting pfn
libndctl: ndctl_pfn_enable: pfn1.0: failed to enable
W1214 07:14:02.443641       1 glog.go:84] Failed to create namespace:pfn: failed to enable
I1214 07:14:02.443672       1 glog.go:79] Create sector-namespaces in region1, allowed 0 %:
total       :       4292870144
avail       :       4292870144
can use     :                0
I1214 07:14:02.443909       1 glog.go:79] total used: 0
I1214 07:14:02.443936       1 glog.go:79] Create fsdax-namespaces in region0, allowed 100 %:
total       :       4292870144
avail       :       4292870144
can use     :       4292870144
I1214 07:14:02.444540       1 glog.go:79] total used: 0
I1214 07:14:02.444558       1 glog.go:79] 1 fsdax-namespaces of size 2147483648 possible in region region0
I1214 07:14:02.444563       1 glog.go:79] Creating namespace 0
I1214 07:14:02.447361       1 glog.go:79] setting namespace sector size ...: 0
I1214 07:14:02.448955       1 glog.go:79] setting pfn
libndctl: ndctl_pfn_enable: pfn0.0: failed to enable
W1214 07:14:02.450249       1 glog.go:84] Failed to create namespace:pfn: failed to enable
I1214 07:14:02.450274       1 glog.go:79] Create sector-namespaces in region0, allowed 0 %:
total       :       4292870144
avail       :       4292870144
can use     :                0
I1214 07:14:02.450429       1 glog.go:79] total used: 0
I1214 07:14:02.747019       1 glog.go:79] CheckVG: Bus: ndbus0
I1214 07:14:02.747613       1 glog.go:79] Region: region1
I1214 07:14:02.747624       1 glog.go:79] NsMode: fsdax
I1214 07:14:02.748471       1 glog.go:79] No active namespaces in region region1
I1214 07:14:02.748491       1 glog.go:79] NsMode: sector
I1214 07:14:02.748572       1 glog.go:79] No active namespaces in region region1
I1214 07:14:02.748581       1 glog.go:79] Region: region0
I1214 07:14:02.748587       1 glog.go:79] NsMode: fsdax
I1214 07:14:02.749262       1 glog.go:79] No active namespaces in region region0
I1214 07:14:02.749271       1 glog.go:79] NsMode: sector
I1214 07:14:02.749361       1 glog.go:79] No active namespaces in region region0
I1214 07:14:09.589779       1 main.go:138] Version: v0.4.1-0-gb3ef1f69
I1214 07:14:09.589934       1 main.go:145] Attempting to open a gRPC connection with: "/csi/csi.sock"
I1214 07:14:09.589967       1 connection.go:68] Connecting to /csi/csi.sock
I1214 07:14:09.591170       1 connection.go:95] Still trying, connection is CONNECTING
I1214 07:14:09.591985       1 connection.go:95] Still trying, connection is TRANSIENT_FAILURE
I1214 07:14:10.591444       1 connection.go:95] Still trying, connection is CONNECTING
I1214 07:14:10.591504       1 connection.go:92] Connected
I1214 07:14:10.591513       1 main.go:153] Calling CSI driver to discover driver name.
I1214 07:14:10.591529       1 connection.go:136] GRPC call: /csi.v0.Identity/GetPluginInfo
I1214 07:14:10.591538       1 connection.go:137] GRPC request:
I1214 07:14:10.592031       1 connection.go:139] GRPC response: name:"pmem-csi" vendor_version:"0.0.1"
I1214 07:14:10.592074       1 connection.go:140] GRPC error: <nil>
I1214 07:14:10.592085       1 main.go:161] CSI driver name: "pmem-csi"
I1214 07:14:10.592092       1 main.go:165] Loading kubeconfig.
I1214 07:14:10.592295       1 node_register.go:55] Calling CSI driver to discover node ID.
I1214 07:14:10.592311       1 connection.go:136] GRPC call: /csi.v0.Node/NodeGetId
I1214 07:14:10.592317       1 connection.go:137] GRPC request:
I1214 07:14:10.592706       1 connection.go:139] GRPC response: node_id:"k8s-ubuntu-pmem-worker1"
I1214 07:14:10.592731       1 connection.go:140] GRPC error: <nil>
I1214 07:14:10.592752       1 node_register.go:63] CSI driver node ID: "k8s-ubuntu-pmem-worker1"
I1214 07:14:10.592803       1 node_register.go:86] Starting Registration Server at: /registration/pmem-csi-reg.sock
I1214 07:14:10.592883       1 node_register.go:93] Registration Server started at: /registration/pmem-csi-reg.sock
I1214 07:14:10.597913       1 main.go:111] Received GetInfo call: &InfoRequest{}
I1214 07:14:10.605026       1 main.go:121] Received NotifyRegistrationStatus call: &RegistrationStatus{PluginRegistered:true,Error:,}

When I try to create the pvc I'm still getting:
  Warning  ProvisioningFailed    14s (x2 over 14s)  pmem-csi_pmem-csi-controller-0_8d858b22-ff70-11e8-838d-0a580af40303  failed to provision volume with StorageClass "pmem-csi-sc": rpc error: code = Unavailable desc = No node found with 1073741824 capacaity

Now we hit next issues related to emulated NVDIMM.
Failed to create namespace:pfn: failed to enable
We have seen series of those.
Emulated NVDIMM in general works better if you only enable one device.
Having 2 devices was my own idea to get emulated env closer to real HW, and that
got documented in READMEs, but it actually causes some extra trouble.
You can make success chances higher by removing 2nd emulated device,
and use one larger.
I think I need to update README stating the same.
There is BTW recently added code in test/ which automates qemu VMs creation and k8s cluster setup., using ClearLinux targets. In such a system NVDIMM (one device) emulation has been quite
stable.

I created another PR #109 to stop advertising dual NVDIMM in emulation, which seems to create more trouble than gain

@okartau, quick question, do you know if it has been tested in other distros different than ClearLinux?

I can tell where we (dev team of 2 so far been active with that) have been running pmem-csi:
VMs with emulated NVDIMM (as described in READMEs): Ubuntu 18.04.1
VMs created by scripts in test/: Clearlinux, various versions
Phys host with real Pmem devices: Clearlinux
Phys host with real Pmem devices: Fedora 28
As we had not systematic testing set up, this has not been automated, but it has been
verified on those via manual run.
As most(all?) functioning happens in containers (if not running stand-alone binaries),
it should not matter too much what is the distro, if it runs Docker

authors: avalluri obedmr okartau

repo: intel/pmem-CSI


text:
QPL filter for varied input (> 1 byte, string, float, etc)

Hi,
I had a question regarding filtering in QPL. The example code for scan shows how to filter single-byte data (i.e., each element in the source vector is uint8_t).
    qpl_job *job = reinterpret_cast<qpl_job *>(job_buffer.get());
    job->next_in_ptr = source.data();
    job->available_in = static_cast<uint32_t>(source.size());
    job->next_out_ptr = destination.data();
    job->available_out = static_cast<uint32_t>(destination.size());
    job->op = qpl_op_scan_range;
    job->src1_bit_width = input_vector_width;
    job->num_input_elements = static_cast<uint32_t>(source.size());
    job->out_bit_width = qpl_ow_32; // set output bit width
    job->param_low = lower_boundary;
    job->param_high = upper_boundary;

For instance, job->next_in_ptr expects a pointer to a vector of type uint8_t (range 0 to 255 in decimal), so using a vector of type uint32_t for source gives a compilation error.
On setting the input vector width to 32 bits and casting the input/output pointers to type uint8_t, the code compiles but the filter qpl operation returns an error with status code 232.
Is it possible to run filtering on multibyte data (e.g. uint32_t) and on data like date/time, strings, floats, etc? It would be great if you could share a simple example.

On setting the input vector width to 32 bits and casting the input/output pointers to type uint8_t, the code compiles but the filter qpl operation returns an error with status code 232.

Hi @raunaks13 , this seems like a correct approach to me.
The input/output buffers are simply raw buffers of data of type uint8_t *. But you could use different bit width to specify the element size.
Could you make sure you also updated the number of input elements appropriately when you changed the input bit width?
If this still doesn't work, please provide a reproducer for us to work with.

Closing as no response from the user, please feel free to re-open if needed.

repo: intel/qpl


text:
fix: correct emoji parsing and component -> modal

About
This pull request is about:

Adding the ModalMixin to the ComponentContext
Similarly to #1279 , emoji conversion does not work for emoji in buttons
Add the modal_callback function in all init files

Checklist

[x] The pre-commit code linter has been run over all edited files to ensure the code is linted.
[x] I've ensured the change(s) work on 3.8.6 and higher.
[ ] I have added the versionadded, versionchanged and deprecated to any new or changed user-facing function I committed.

Pull-Request specification
I've made this pull request: (check all that apply)

[ ] For the documentation
[x] To add a new feature
[ ] As a general enhancement
[ ] As a refactor of the library/the library's code
[x] To fix an existing bug
[ ] To resolve #ISSUENUMBER

This is:

[ ] A breaking change

I apologize I didn't catch this in my testing

Renamed PR. I try to avoid "fix: fix" or "docs: document" styled commits


text:
Showcase Implementation

Different showcases to get new users started more quickly. These showcases could for example show catalog used as design handover, used over multiple phases or as a lab notebook.

You could also link to actual projects using Catalog. The more, the better.

In progress, but as a separate effort 😄

authors: bebraw bldng herrstucki

repo: interactivethings/catalog


text:
Custom text for headings

This add's the ability to set custom text to be used for headings, either for all headings or per heading when using the array of objects in the headings array.
Also fixes issue #454

Is this project abandoned? :(

authors: equinusocio matthewroach


text:
Styling/coding standards

Which coding standards/PEP guides are you planning to adhere to.
As this is a python library aimed at python users(presumably) the PEPs  would be a good place to start.
Also when implementing the classes there are a couple options regarding the OOP interface as I see it:

literal translations so getPos player  becomes player.getPos(). or player.get_pos()
@property decorator to wrap the calls to the DLL to the user so that getPos player  becomes player.pos , and  player setPos [a,b,c] becomes player.pos = [a,b,c].
Both of the above, having one approach call the other for example. This illustrates both approaches, and is therefor less pythonic ("one way to do something").

     class RV_Object(object):
        def __init__(self):
           # todo
           pass

        @property
        def pos(self)->tuple:pass

        @pos.setter
        def pos(self, pos:tuple)->None:pass

        def get_pos(self)->tuple: pass # todo

        def set_pos(self, pos:tuple)->None: pass # todo

Using PEP8 would be a good start ;).
I'd suggest doing as "everyone else does" and increasing the line size limit to 120 chars (with 1080p and even 4k monitors nowadays)
I'm sitting on a fence regarding the camelCase vs snake_notation. I'm used to snake but I also see the benefit of sticking to the original SQF function names. Deep inside me I'd prefer to stick with the original naming (less confusion) but I haven't done enough Arma modding (nor even used Intercept much) to speak authoritatively about this matter.

I have some boilerplate code here: https://github.com/Tirpitz93/intercept-python/tree/python_classes.

repo: intercept/intercept-python


text:
APY does not update/show wrong value (Borrow Markets & My Borrow Positions)

Under My Borrow Positions as well as Borrow/Lend Markets, the APY of the token does not update to the correct value when loans or deposits change.
To Reproduce
Steps to reproduce the behavior:

Go to Lending
Click on ‘KINT’ (or any other currency) under ‘Borrow Markets’ and borrow amount X

Expected behavior
Show the correct APY according to this sheet: https://docs.google.com/spreadsheets/d/1R2ZzhDmAHW8_N64Mifoo82m2pMDLLY9mX57fvgiV87w/edit#gid=308038421
and the following parameters: https://docs.google.com/spreadsheets/d/1U_iFh8Bx4pRNOkjYFEL0jwOlb1KqKgnjAJXkFCCx1M0/edit
Formulas (for reference): https://www.notion.so/interlay/InterLend-Economics-a86ec57da6c1462abed18895a8329ce9#9aa5436994ad41bd91a116723252da1c
Screenshots

Desktop (please complete the following information):

Linux (Fedora 35)
Firefox

Hello @philippb90, if you don't mind. I would like to work on this, but I don't have access to the full information. Even the testnet, I had to bypass the conditional check to view the lending page. What do I need to do to be able to work on this?

Hello @philippb90, if you don't mind. I would like to work on this, but I don't have access to the full information. What do I need to do to be able to work on this, I can provide my email if you mean to grant me access

Hi @bolajahmad - thanks for your interest in contributing, much appreciated :) one of our devs has picked this task up, but I've updated the README file with all the information you'll need to run the UI locally and connect to testnet.

Closing this as it was a parachain configuration issue rather than a UI one

authors: bolajahmad daniel-savu philippb90 tomjeatt

repo: interlay/interbtc-ui


text:
Retroactively credit incoming payments if notification failed

In the current implementation, the plugin must be online in order to credit an incoming Lightning payment. If the plugin is offline but the LND node is online, the sender may have sent a settlement, but it wouldn't be credited.
There should be a protocol or mechanism to retroactively credit settlements to get peers' balances back in sync if the receiver goes offline, then comes back online, or for some reason they fail to get the notification.
(The plugin is currently pretty stateless, so this would require persisting which account each invoice is linked to, rather than just keeping that in memory. Then, the plugin would need to iterate through previously paid invoices to ensure each was credited--while ensuring no invoice is credited more than once).
Alternatively: senders could include their account identifier in the memo/description of each payment, so the receiver knows which to credit it to (or none at all).

while ensuring no invoice is credited more than once

Persist the monotonically increasing settle_index and replay notifications from the last one credited to ensure no invoice is credited more than once.
And, instead of persisting the invoices sent to each peer to determine which account each settled invoice should be credited to, require the counterparty to include their accountId in the memo field of the payment.

repo: interledgerjs/ilp-plugin-lightning


text:
move to a higher-half kernel

@ketsuban has an example here: https://github.com/Ketsuban/finisterre
I think this would be a good idea before going to usermode, so cc https://github.com/intermezzOS/kernel/issues/82
If anyone is interested in tackling this, please give it a try!

Here's a link to the current commit to save me having to keep the master branch pristine in the interim. The main differences are in boot.asm and layout.ld, and should be fairly easy to port over to intermezzOS.
As written any identity-mapped virtual addresses (like the VGA buffer at 0xB8000) will continue to work, because there's no code removing the original identity mapping—if you want to follow page faults to find them it should go somewhere in start64 before the jump to kmain.

authors: Ketsuban steveklabnik

repo: intermezzOS/kernel


text:
safen up brozzler.thread_raise() to avoid interrupting rethinkdb tran…

…sactions and such

There are >80 lines of threading specific stuff in init.py across a couple functions... time to split into a utility file?

I could... for now init.py is my utility file, it still hasn't crossed my mental threshold for own fileness.

Using a with block

Refactored to use a with block!

extending the Thread class would put all this code in a single coherent place.

I decided not to do this because it would be more brittle. For example if some project is using brozzler as a library, and they want to call some brozzler code that accepts exceptions, they have to make sure it runs in a SpecialThread. They wouldn't be able to run such code at all from the main thread (unless they monkey patch it, yuck). Or on the flip side, if someone wants to use the thread_raise functionality outside of brozzler, perhaps in the main thread, or in threads created deep in some library code, there is no barrier to doing so.

Incrementing this seems like an anti-pattern. What if two PRs both increment it at the same time?

(about incrementing the version number) Yeah I normally do that only on commits to master. Oops, not exactly sure how to pull it out of this pull request now.

Would definitely split the implementation and use of this new feature separate commits in the future.

Oh? Well, I did that for you for this refactoring.

After discussing in person, I think I understand the use case of this code a lot better. Pattern of sending exceptions to expedite shutdowns during specific "slow" code paths still feels a little hack-y to me. We discussed using multi-processing and signals as a way to pre-empt larger library code (like youtube-dl). For browser interactions, it might also be possible to signal the browser process directly (bypassing the owner thread) to expedite shutdown. One of the sign to me that multiprocessing would be acceptable is that "the amount of work is large/long", so the over head of a fork is negligable. Not sure either of those are really cleaner than this approach though.
Overall, this PR feels like an improvement to me, and particularly makes the code more understandable to future readers. "LGTM"!

Thanks for looking it over @bnewbold!

authors: bnewbold nlevitt

repo: internetarchive/brozzler


text:
Change package

raven/raven to  sentry/sentry (https://github.com/getsentry/sentry-php)

thank you!

repo: intersvyaz/yii-sentry


text:
Agenda does not work as expected

Do you want to request a feature or report a bug?
I think it is a bug.
What's the current behavior?
The current behavior is that a event for today won't be showed in the agenda.
I checked the code of the Agenda component (Agenda.js) and I saw, that the library removes events which should not be showed in the agenda view. Thats totally ok for now!
The code looks like this:
export function inRange(e, start, end, accessors) {
  let eStart = dates.startOf(accessors.start(e), 'day')
  let eEnd = accessors.end(e)

  let startsBeforeEnd = dates.lte(eStart, end, 'day')
  // when the event is zero duration we need to handle a bit differently
  let endsAfterStart = !dates.eq(eStart, eEnd, 'minutes')
    ? dates.gt(eEnd, start, 'minutes')
    : dates.gte(eEnd, start, 'minutes')

  return startsBeforeEnd && endsAfterStart
}

Please take a look into the eEnd variable. Why is this different from the eStart variable?
I tought the code should look like this: dates.endOf(accessors.end(e), 'day') ?
As you can see in the following image, my event starts at 5:30am and ends 10am.

If I continue the debugger to the end, you can see that the endsAfterStart returns false. But thats not true! The event definitely ends after the start date.

The end and start property from the arguments always have to same value for the agenda view, because this value is the current time.
Hopefully anyone can help me out if I do something wrong :x

Is there anyone who can help?

I'm seeing a similar issue. I have an all-day event for today, and it doesn't show on the Agenda view unless I hit the back button. The default Agenda view which includes today should show today's all-day event.

I am also having this issue, can someone please help?

same problem!

Please reopen this issue!

same problem!

@rahrang @paulhan221 Did you find a solution for this ?

repo: intljusticemission/react-big-calendar


text:
Root keys for entity representations

Here is initial support for specifying root keys for entity representations.
You can do this:
module API::Entities
  class User < Grape::Entity
    root 'users', 'user'
  end
end

module API
  class Users < Grape::API

    # this will render { "users": [ {"id":"1"}, {"id":"2"} ] }
    get '/users' do
      @users = User.all
      present @users, :with => API::Entities::User
    end

    # this will render { "user": {"id":"1"} }
    get '/users/:id' do
      @user = User.find(params[:id])
      present @user, :with => API::Entities::User
    end
  end
end

I could write an auto mode that would allow you to just specify 'root' with no arguments in the Entity class, but I'd have to add a dependency on something like linguistics or activesupport so I could pluralize the class name properly. What do you think?

Not sure if this is a permanent keeper in terms of syntax, but good enough to start some discussion on the ol' frontier.

FWIW, I don't think the root key should be part of the Entity itself. This leads to having to work around things like children having root keys. It ought to be an option to present.

@stouset I think I agree, see my other pull request

authors: evansj mbleigh stouset

repo: intridea/grape


text:
[Documentation] Animated representation of state machine execution

Enhance the documentation to have a demo of the execution of the state machine as an animated gif.
Example: https://github.com/intuit/RBHC/blob/master/Clustering.gif

I'll be working on this today at vGHC!

Taking this on.

authors: Neunis namitad yangjabigail

repo: intuit/Trapheus


text:
parameterized basic auth fails

Background:

def global_variables = read('global_variables.json')
url get global_variables.baseURL
def userName = get global_variables.userName
def userPassword = get global_variables.userPassword
print userName
print userPassword
header Authorization = call read('basic-auth.js') { username: userName, password: userPassword }

failed features:
demo.appname.GET_permission_level_read: [com.intuit.karate.exception.KarateException:
java.lang.NullPointerException
at com.intuit.karate.StepDefs.method(StepDefs.java:364)
at ?.When method get(demo/appname/GET_permission_level_read.feature:22)

Solution:
Background:

def global_variables = read('global_variables.json')
url get global_variables.baseURL
def userName = get global_variables.userName
def userPassword = get global_variables.userPassword
print userName
print userPassword
header Authorization = call read('basic-auth.js') { username: '#(userName)', password: '#(userPassword)' }

repo: intuit/karate