How to reproduce Wolfram Language’s base64 encoded string with command-line tool?

With Wolfram Language:

In[7]:= ExportString["foobar中文", "Base64"]  Out[7]= "Zm9vYmFyXDo0ZTJkXDo2NTg3" 

With the closest command-line software I could think of

echo -n 'foobar中文' | openssl base64                                                                        Zm9vYmFy5Lit5paH 

Why the difference? What’s the best way to reproduce Mathematica’s behavior?

How to reproduce this tensor calculation with Mathematica

The tensor operation shown in the red box is used in the textbook to prove that there are only 9 independent constants for orthotropic materials:

enter image description here

I want to use MMA to reproduce the operation of $ C_{pqmn}=l_{ip}\;l_{jq}\;l_{km}\;l_{ln}\;C_{ijkl}$ (Where $ C_{ijkl}$ is the stiffness tensor), but at present, I have no specific idea. I will continue to update the details to make it perfect.

Additional details:

Details are being added…

How gelatinous cube reproduce?

Last time when our party encountered gelatinous cube, this question occured to us, and we instinctively agreed that they reproduce like amoeba – by mitosis or cell division.

However, I’m curious: Is there a canonical DnD reference to how gelatinous cube reproduce?

I’m very interested if there is a reference in the early DnD edition, and especially more interested if there are different methods proposed between editions, if any. Answers from pathfinder is also welcome, since they stem from DnD, too.

Do familiars reproduce? If ‘yes’, what kinds of offspring result?

The spell Find Familiar summons a simple yet common creature of the caster’s choice (like a cat, rat, raven or weasel). Such a creature’s organs all function healthfully, including eating and sleeping. This creature is not a beast however:

Appearing in an unoccupied space within range, the familiar has the statistics of the chosen form – though it is a celestial, fey, or fiend (your choice) instead of a beast.

Can a coupling of (matching) summoned familiars reproduce? If ‘no’, why so? If ‘yes’, what offspring is produced (a ‘common’ beast, some 1/2 beast + 1/2 spirit hybrid or one of the three types of spirits)?

Can a Simulacrum reproduce?

The spell Simulacrum begins as follows:

You shape an illusory duplicate of one beast or humanoid that is within range for the entire Casting Time of the spell. The duplicate is a creature, partially real and formed from ice or snow, and it can take Actions and otherwise be affected as a normal creature. It appears to be the same as the original, but it has half the creature’s hit point maximum and is formed without any Equipment. Otherwise, the Illusion uses all the Statistics of the creature it duplicates.

The Simulacrum is, as far as I know, treated exactly as the original creature aside from the exceptions listed in the spell. It is furthermore specifically designated as a creature in the spell. Would the Simulacrum retain the original creature’s reproductive abilities? As a DM, I was imagining a wizard who runs a business creating Simulacra of rich women to act as surrogates, for a hefty profit. I wanted to know the RAW interpretation of this issue, to know better if or what I would be houseruling if I did.

It is my current conclusion that it is possible, but I wanted to make sure I hadn’t overlooked something.

¿ por que la clase AudioTrack ( android ) reproduce audio con errores?

Hola estoy desarrollando un app que reproduce el audio en vivo que se le envía desde una pc, ambos están desarrollados con java lo que hago es enviar un paquete de byte por un datagramSocket al cliente ( el app android ) los recibe y luego reproduce con la clase AudioTrack. El problema es que al reproducir el paquete de bytes se producen errores por ejemplo :

1- El audio se escucha con errores con pequeños cortes.

2- En la consola de Android studio me muestra estos errores :

>     I/AudioTrack: This process already got info. FadeIn[0] FadeOut[0] FadeInRing[0] >         Skip ramp >         Manually recycle bitmap >     W/AudioTrack: Use of stream types is deprecated for operations other than volume control >         See the documentation of AudioTrack() for what to use instead with to qualify your playback use case 

Aquí adjunto el código de el emisor de audio (PC) y el receptor de audio( android )


public class PruebagrabacionAudio {          static TargetDataLine mic;         static DataLine.Info dLI = null;         //ejemplo de android         //static DatagramSocket socket;         static DatagramSocket skServer;         static int sampleRate = 16000,chanelConfig = 16,audioFormat = 2,minBufSize = 4096 ;         static boolean status = true;         static AudioFormat aF = new AudioFormat(sampleRate, chanelConfig, 1, true, false);         /**      * @param args the command line arguments      */     public static void main(String[] args) {         try{                   dLI= new DataLine.Info(TargetDataLine.class,aF);             mic = (TargetDataLine)AudioSystem.getLine(dLI);             new CapThread().start();          }catch(Exception e){          }      }      static class   CapThread extends Thread{        public void run(){            try{                  byte[] buffer = new byte[minBufSize];               System.out.println("INICIANDO EL SERVIDOR");                skServer = new DatagramSocket(8094);                 System.out.println("Esperando conexion");                DatagramPacket peticion = new DatagramPacket(buffer,buffer.length );                skServer.receive(peticion);                 int port_cliente = peticion.getPort();                 InetAddress IP_cliente = peticion.getAddress();                System.out.println("Peticion aceptada de la IP "+IP_cliente.getAddress());                DatagramPacket packet;       ;                 mic.start();                 while(status){           , 0, buffer.length);                     packet = new DatagramPacket(buffer,buffer.length,IP_cliente,port_cliente);                     skServer.send(packet);                 }             } catch (LineUnavailableException ex) {                Logger.getLogger(PruebagrabacionAudio.class.getName()).log(Level.SEVERE, null, ex);            } catch (IOException ex) {                Logger.getLogger(PruebagrabacionAudio.class.getName()).log(Level.SEVERE, null, ex);            }        }    }  } 


public class CompruebaConexcion  {     DatagramSocket dsServer ;     final int puetoServer = 8094;      final int minBufSize = 4096;     byte[] buffer = new byte[minBufSize];     InetAddress ipServer ;     AudioTrack audioTrack;     ByteArrayInputStream baiss ;     public void iniciaSocketPruebaConex(){          Thread compruebaConex = new Thread(new Runnable() {             @Override             public void run() {                 try {                      dsServer = new DatagramSocket();                    ipServer =  InetAddress.getByName(IPCONEXION);                     DatagramPacket paket = new DatagramPacket(buffer,buffer.length,ipServer,puetoServer);                     dsServer.send(paket);                     DatagramPacket paketRespuesta = new DatagramPacket(buffer,buffer.length);                     while(true){                         dsServer.receive(paketRespuesta);                         baiss = new ByteArrayInputStream(paketRespuesta.getData());                         buffer = paketRespuesta.getData();                         playAudio(buffer);                      }                 } catch (IOException e) {                     e.printStackTrace();                 }/* catch (ClassNotFoundException e) {                     e.printStackTrace();                 }*/             }         });         compruebaConex.start();     }      public void playAudio(byte buffer[]){         int  minBuff = buffer.length ;         audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC,                 16000,                 AudioFormat.CHANNEL_OUT_MONO,                 AudioFormat.ENCODING_PCM_16BIT,                 minBuff,                 AudioTrack.MODE_STATIC);          audioTrack.write(buffer,0,minBuff);         audioTrack.setNotificationMarkerPosition(minBuff);         //audioTrack.setPlaybackPositionUpdateListener(this);;       }   } 

Trying to reproduce “options is undefined” in customer-data:90

We are sporadically facing the following problem when on /checkout/cart/. As an effect, clicking on “Proceed to checkout” does not work.

We believe the proceeding is not working because of the following javascript error being logged:

enter image description here

The problem was reproducible on two machines, even after reloading the full page. But now is no longer.

I had a look at the code in line 90

    getFromServer: function (sectionNames, forceNewSectionTimestamp) {         var parameters;          sectionNames = sectionConfig.filterClientSideSections(sectionNames);         parameters = _.isArray(sectionNames) ? {             sections: sectionNames.join(',')         } : [];         parameters['force_new_section_timestamp'] = forceNewSectionTimestamp;  /** Line 90 **/ return $  .getJSON(options.sectionLoadUrl, parameters).fail(function (jqXHR) {             throw new Error(jqXHR);         });     } }; 

So obviously the options are not loaded somehow — but they are in the constructor, so how can this be?

Happy for any help.