pattern matching – Extract the powers of exponentials in a list

I have a very complicated and long expression (thousands of terms) that boils down to a form of

expr = a1 Exp[b1] + a2 Exp[b2] + a3 Exp[b3]

Note that all the expressions a and b are huge symbolic expressions, but that this expression is developed in this way.

Now I would like to have a list with b1, b2, b3.
All I can do is

Collection[expr, E^_]

but that does not give me a list.

theming – You do not know how to extract the twig variables

Try using twig variables (simple strings) in a template that I have created from a custom module. By using devel and KINT, I can see the info under the Iterator content with

{{kint (transaction[0])}}

enter the description of the image here

I can not get the template to print on the page. I have tried

 $ {{transaction.amount}} total donation

and $ {{transaction[0].montant}} total donation

Anyway, empty. Not sure what I'm missing here. It works very well in other modules. Maybe I'm too high on twig models? I do not quite understand the tree. I created a template called transaction.html.twig.


This is what my controller looks like.

enter the description of the image here

tableau – Extract vectors from a set of vector names of vectors and merge them into a single vector, any help?


I have a vector that contains that contains names of other vectors


Vector test: [1] "vector_art" "vector_rio" "vector_parque"

Vector Vector_art: [1] 1 3 4 11 12 13 14 16 29 30 41

Vector Vector: [1] 6 7 8 9 10

vector vector_parque: [1] 5 15 17 27

I want a general vector: 1 3 4 11 12 13 14 16 29 30 41 6 7 8 9 10 5 15 17 27

I can do it manually, but I want to do it dynamically because my initial vector will sometimes be
contain names of 3, 4, 2, 5 vectors. No is a fixed vector.

I have trouble developing this logic.

Advice, help?

thank you!

How to extract the argument from MeshRegion-Object?

Consider the example of a MeshRegion object

test = MeshRegion[{{0, 0}, {1, 0}, {2,1/2}, {2, -1/2}}, {Line[{1, 2}], Line[{2, 3}],Line[{3, 4}],Line[{4, 2}]}];

Look inside test I receive

(* Global`test

Extract the arguments from MeshRegion I'm trying out of habit

test. MeshRegion-> List

who does not work in this example?

What could be the reason? Is there a job around? Thank you

Tracing – Is it possible to extract data from a Mathematica graph and redraw them with their origin?

Thank you for your contribution to Mathematica Stack Exchange!

  • Please make sure to respond to the question. Provide details and share your research!

But to avoid

  • Ask for help, clarification, or answer other answers.
  • Make statements based on opinions; save them with references or personal experience.

Use MathJax to format equations. MathJax reference.

To learn more, read our tips for writing good answers.

video – What is the best / fastest way to extract and convert a Blu-ray Disc to an iMac?

I've recently switched (back) from Windows 10 to MacOS running on a 27-inch Retina iMac by the end of 2015. While I was still using my Windows 10 laptop, I used a program called DVDFab to extract my collection of Blu-ray movies in a format suitable for Plex and Emby. The process took about 45 minutes per drive and used the GPU part of the Intel i7 processor in my laptop to speed things up.

Now that I'm on a Mac, I can not find a program (or set of programs) that allows me to extract Blu-ray movies with the same speed or higher speed. Most articles seem to suggest a combination of MakeMKV for extraction and Handbrake for conversion. However, it takes about 45 minutes for extraction and 2 hours for conversion, since none of these programs seem to use GPU acceleration. I have also downloaded some commercial packages to see if they were using acceleration, but I have not yet found any program that can read directly from a Blu-ray disc. ray and perform transcoding to get a mp4 file of suitable size.

Can you recommend a solution other than Windows 10 and DVDFab?

SQL injection – How to try to extract limited entries with the help of SQLmap?

I have 1 table (eg: users) with over 1 million entries.
But when I use Sqlmap, try to --dĂ©but and --ArrĂȘtez it does not work.

For example, the query is: -u -D data tables -T --start 1100000 --stop 1200000 --dump

I've tried it many times but I only get results like this:

[03:35:01] [WARNING]    something went wrong with the complete UNION technique (perhaps because of the limitation of the number of entries retrieved). Back to UNION partial technique
[03:35:01] [WARNING]    in case of continuous data extraction problem, it is advisable to try a switch - no-cast & # 39; or a switch - hex & # 39;

If I ask: -u -D data tables -T --dump

Results like this:

[03:47:25] [INFO]    the back-end DBMS is MySQL

Web application technology: Apache, PHP 5.5.38
DBMS back-end: MySQL> = 5.0.12
[03:47:25] [INFO] Recovery of columns for the table & # 39; users & # 39; in the database & # 39; xxxxxx & # 39;
[03:47:26] [INFO] Retrieving entries for the table & # 39; users & # 39; in the database & # 39; xxxxxx & # 39;
[03:48:19] [ERROR] detected invalid data for content encoding declared & # 39; gzip & # 39; gzip & # 39; (& # 39; size too big & # 39;)
[03:48:19] [WARNING] disable page compression
[03:48:45] [WARNING] large response detected. It could take a moment

How can I empty all the data?
Thank you for watching.

crash – How can I extract my MacBook Pro Notes files so that the data becomes "normal" again after the file system crash of my computer?

My MacBook Pro from 2011 to 2013 or something like a "crash" – the computer's file system was crumbling – when I made a forced manual shutdown because the Notes application did not answer. When I reactivated it repeatedly, it was in MacOS recovery mode and I sent it to a computer expert who examined it. It has been able to save / restore many documents – documents Pages, audio files, images and videos, etc. – and also says that the data is not gone, it's as if they were scrambled or arranged differently now or something of the sort. However, he does not know how to extract the files from my Notes application, which are my most important documents. He says that there could be several ways to proceed but he's not an expert on the Mac file system or the model / operating system in question. How to extract Notes files and recover my data as legible Notes files?

Extract identification from a single iPhone via dock or wireless

I am looking to create either a dock to detect only an iPhone plugged in or nearby. Is there anything available when the device is plugged? If not, is there a unique identification feature possible through the use of Bluetooth or Wifi?

Extract sender ID and recipient ID of a bitcoin transaction

Extract sender ID and recipient ID of a bitcoin transaction

The transaction data in the blockchain does not include any IDs for a "sender" or a "recipient".

Transaction data includes the scripts used to spend the cryptocurrency amounts shown in the transaction data. The most common of these scripts specifies what is commonly called an "address" but which is derived from a public key and is now generally unique to a transaction. It is designed to be difficult or impossible to identify a sender or recipient from these "addresses".

sites where you enter the wallet ID

There are no sites (in general) that do, because cryptocurrency portfolios do not have portfolio IDs. Certainly none of those that are part of the transaction data in the blockchain.

The only really meaningful data in a wallet is the private keys it contains. Recovery phrases or start phrases can be used to recreate these private keys. The data of a wallet can be protected by being encrypted on the disk with the help of a password or a passphrase. None of these constitute a portfolio identifier.

Blockchain browser sites usually allow you to examine string string data associated with one of the

  • address
  • transaction identifier
  • block number (height)
  • block the hash

None of these actually constitutes a sender ID, recipient ID, or portfolio ID.

Decoding transaction data

A good explanation of the structure of a Bitcoin transaction in a blockchain block is available at

This becomes more and more complex as time passes and new features are added (SegWit, Bech32, …) or when you need to completely decode the types of less used transactions (multisig m's). .

Search a code to analyze a Bitcoin transaction

Some non-intuitive aspects of Bitcoin and similar crypto-currencies:

  • Portfolios do not contain bitcoins.
  • The blockchain does not contain bitcoins.
  • Bitcoins are not really sent or transmitted over the Internet.
  • Bitcoins do not really exist anywhere – they are rather a unit of measurement.
  • The blockchain is not really a big book (it's a diary).
  • Bitcoin addresses do not identify places, people or wallets.
  • Bitcoin addresses are not used to perform transactions or bitcoins somewhere.
  • Bitcoin transactions should not include any addresses.