jueves, 10 de diciembre de 2020

LED drivers

 https://new.abb.com/news/detail/67528/how-to-protect-lighting-circuits-for-led-lights


sábado, 5 de diciembre de 2020

Madera manchada

Han aparecido unas manchas en la madera 


La madera contiene diversas sustancias químicas que debido a su movilidad en solventes son conocidas como extractos. Normalmente, estas sustancias se concentran en el duramen contribuyendo a que su coloración sea más oscura que la de la albura.


La madera contiene diversas sustancias químicas que debido a su movilidad en solventes son conocidas como extractos. Normalmente, estas sustancias se concentran en el duramen contribuyendo a que su coloración sea más oscura que la de la albura.


Algunos extractos, como los taninos, poseen sustancias colorantes solubles en agua. Por este motivo, si se emplean maderas ricas en taninos, en presencia de humedad y por fenómenos de oxidación en contacto con el aire, pueden originar manchas oscuras sobre la superficie de la madera.


Las maderas ricas en taninos poseen porcentajes de estos extractos que, a menudo, varían entre el 6% y el 10%, pudiendo llegar a superar el 15%. Entre las maderas con un elevado contenido de taninos habituales en España se encuentran el roble (Quercus spp.), el castaño (Castanea sativa), el cedro rojo del Pacífico (Thuya plicata), el pino Oregón (Pseudotsuga menziesii) y especies tropicales como el iroko (Milicia spp.), la teca (Tectona grandis), el doussie (Afzelia spp.), el merbau (Intsia bijuga), etc (MartínDiéguez, 1997).


La aparición de estas manchas puede evitarse por medio de un diseño constructivo adecuado y/o empleando sustancias bloqueadoras que reaccionan con las soluciones tánicas, formando nuevos compuestos incoloros, que no alteran la tonalidad de la madera ni la de su acabado (Martín-Diéguez, 1997).


Generalmente, las manchas debidas a extractos pueden limpiarse empleando lejía diluida o productos detergentes. La limpieza será tanto más difícil cuanto más tiempo hayan permanecido las manchas sobre la superficie de la madera. Por otro lado, debe tenerse en cuenta que este tipo de limpieza constituye una solución temporal, ya que mientras continúen existiendo extractos en el interior de la madera, y se mantengan las condiciones de exposición, volverán a manifestarse las manchas (TRADA, 2008)


Otra forma de limpieza, probada con éxito en especies como el cedro rojo del Pacífico, consiste en emplear una lanza de agua a presión cuya distancia deberá regularse en función de la dureza de la especie de madera. Este método logrará limpiar las manchas debidas a extractos existentes sobre la superficie de madera, si bien, al igual que en el caso anterior, no será una solución definitiva mientras continúen existiendo extractos en el interior de la madera.


SOBRE EL PANEL MDF

Medium-density fiberboard is defined as a panel composed of cellulosic fibers made by dry forming and pressing a resonated fiber mat (as determined under ANSI A208.2-2016). This includes thin-MDF, which has a thickness less than or equal to 8 millimeters or 0.315 inches.

definitivamente el tablero MDF absorve la humedad.

https://youtu.be/D_0TEVY6J0E

el problema de hichazón seria Swelling (24h) EN 317, también 

UNE-EN 317:1994  

Tableros de partículas y tableros de fibras. Determinación de la hinchazón en espesor después de inmersión en agua. (Versión oficial EN 317:1993).

UNE-EN 622-5:2010

Tableros de fibras. Especificaciones. Parte 5: Requisitos de los tableros de fibras fabricados por proceso seco (MDF).


También le llaman DM https://www.carpinteriacaballeroleon.com/el-dm-mdf-hdf-en-la-carpinteria-de-madera.html






UNE 56530:1977

UNE 56544:2007

UNE 7457:198626

UNE-EN 14081-1:2006

UNE-EN 1995-1-1

UNE-EN 335-1:2007

UNE-EN 335-2:2007

UNE-EN 338:2003

UNE-EN 350-1:1995

UNE-EN 350-2:1995

UNE-EN 351-1:2008

UNE-EN 460:1995

http://oa.upm.es/53437/1/L032009TCXIMadera.pdf

https://egoin.com/capitulo1_productos%5B1%5D.pdf

http://visat.caatlleida.cat/Fitxers/CentreDocumentacio/Biblioteca/NBibliografiques/Index/BD-7770.pdf


x


normativa


Se trata de un tipo de defecto en la madera que no tiene muchos precedentes 


Enlaces




viernes, 4 de diciembre de 2020

Array resize - de matriu a tres columnes Macro VBA a Excel

Sub Macro1()

Dim CantFila As Long
Dim CantCol As Long
Dim c As Single, f As Single, m As Single
m = 1

CantFila = Cells(Rows.Count, 1).End(xlUp).Row
CantCol = Cells(1, Columns.Count).End(xlToLeft).Column

    
For c = 2 To CantCol Step 1
    For f = 2 To CantFila Step 1

    If (InStr(1, Cells(f, c).Value, "(no s'") <> 0) And (Left(Cells(f, 1).Value, 1) <> "2") And (Left(Cells(f, 1).Value, 3) <> "CtP") Then
        Cells(m, 27).Value = Cells(f, 1).Value
        Cells(m, 28).Value = Cells(1, c).Value
        Cells(m, 29).Value = Cells(f, c).Value
        m = m + 1
    End If

    Next f
Next c

End Sub










sábado, 7 de noviembre de 2020

moodle - mode sigilo

 https://moodle.com/es/news/put-activities-stealth-mode-lograr-particular-disenos-cursos/

domingo, 1 de noviembre de 2020

descarrega tots els links "entregues dels alumnes"

FORFILES /S /M *.html /C "cmd /c type @file" > new.html

llegeix el que hi ha en tots els arxius HTML del totes les carpetes del directori i posa el contingut dins new.html

viernes, 30 de octubre de 2020

Record audio from speakers

 https://forum.processing.org/two/discussion/28028/how-do-i-record-the-audio-input-to-a-new-audio-render-using-minim

 Answer ✓

Ok, so implementing @koogs changes are not enough, as you get back to the business of empty recorded files. However, that gave me an idea (Thxs @koogs) which I tested and sort of works. I mean, it only works for mp3 files but not for wav files. However, I tried a second idea, and it might work for you although it doesn't seem to have much control over audio when it is being played. That is what I labeled second solution using sampler objects. It works for both mp3 and wav files (tested).

INSTRUCTIONS: In the code, define your file to play. When you run the sketch, press r to begin recording, r again to stop recording. Don't forget to press s to save the file to an audio file which will be located in the data folder.

al processing fem:

FIRST solution: Only mp3

//REFERENCE: https:// forum.processing.org/one/topic/how-can-i-detect-sound-with-my-mic-in-my-computer.html
//REFERENCE: https:// forum.processing.org/two/discussion/21842/is-it-possible-to-perform-fft-with-fileplayer-object-minim
 
/**
 * This sketch demonstrates how to use an <code>AudioRecorder</code> to record audio to disk.
 * Press 'r' to toggle recording on and off and the press 's' to save to disk.
 * The recorded file will be placed in the sketch folder of the sketch.
 * <p>
 * For more information about Minim and additional features,
 * visit <a href="<a href="http://code.compartmental.net/minim/" target="_blank" rel="nofollow">http://code.compartmental.net/minim/</a>" target="_blank" rel="nofollow"><a href="http://code.compartmental.net/minim/</a>" target="_blank" rel="nofollow">http://code.compartmental.net/minim/</a></a>;
 */
 
import ddf.minim.*;
import ddf.minim.ugens.*;
import ddf.minim.analysis.*;
 
Minim         minim;
FilePlayer player;
AudioOutput out;
AudioRecorder recorder;
 
void setup()
{
  size(512, 200, P3D);
  textFont(createFont("Arial", 12));
 
  minim = new Minim(this); 
  player = new FilePlayer(minim.loadFileStream("energeticDJ.mp3"));
  // IT DOESN'T WORK FOR WAV files  ====> player = new FilePlayer(minim.loadFileStream("fair1939.wav"));
  out = minim.getLineOut();
  TickRate rateControl = new TickRate(1.f);
  player.patch(rateControl).patch(out);
  recorder = minim.createRecorder(out, dataPath("myrecording.wav"),true);
 
  player.loop(0);
 
}
 
void draw()
{
  background(0);
  stroke(255);
 
  // draw a line to show where in the song playback is currently located
  float posx = map(player.position(), 0, player.length(), 0, width);
  stroke(0, 200, 0);
  line(posx, 0, posx, height);
 
 
 
  if ( recorder.isRecording() )
  {
    text("Currently recording...", 5, 15);
  } else
  {
    text("Not recording.", 5, 15);
  }
}
 
void keyReleased()
{
  if ( key == 'r' )
  {
    // to indicate that you want to start or stop capturing audio data, you must call
    // beginRecord() and endRecord() on the AudioRecorder object. You can start and stop
    // as many times as you like, the audio data will be appended to the end of the buffer
    // (in the case of buffered recording) or to the end of the file (in the case of streamed recording).
    if ( recorder.isRecording() )
    {
      recorder.endRecord();
    } else
    {
      recorder.beginRecord();
    }
  }
  if ( key == 's' )
  {
    // we've filled the file out buffer,
    // now write it to the file we specified in createRecorder
    // in the case of buffered recording, if the buffer is large,
    // this will appear to freeze the sketch for sometime
    // in the case of streamed recording,
    // it will not freeze as the data is already in the file and all that is being done
    // is closing the file.
    // the method returns the recorded audio as an AudioRecording,
    // see the example  AudioRecorder >> RecordAndPlayback for more about that
    recorder.save();
    println("Done saving.");
  }
}


SECOND solution: Works for both wav and mp3

//REFERENCE: https:// forum.processing.org/one/topic/how-can-i-detect-sound-with-my-mic-in-my-computer.html
//REFERENCE: https:// forum.processing.org/two/discussion/21842/is-it-possible-to-perform-fft-with-fileplayer-object-minim
//REFERENCE: https:// forum.processing.org/two/discussion/21953/why-can-i-only-load-four-audio-files-in-minum
/**
 * This sketch demonstrates how to use an <code>AudioRecorder</code> to record audio to disk.
 * Press 'r' to toggle recording on and off and the press 's' to save to disk.
 * The recorded file will be placed in the sketch folder of the sketch.
 * <p>
 * For more information about Minim and additional features,
 * visit <a href="<a href="http://code.compartmental.net/minim/" target="_blank" rel="nofollow">http://code.compartmental.net/minim/</a>" target="_blank" rel="nofollow"><a href="http://code.compartmental.net/minim/</a>" target="_blank" rel="nofollow">http://code.compartmental.net/minim/</a></a>;
 */
 
import ddf.minim.*;
import ddf.minim.ugens.*;
import ddf.minim.analysis.*;
 
Minim         minim;
AudioRecorder recorder;
AudioOutput out;
Sampler  note;
 
void setup()
{
  size(512, 200, P3D);
  textFont(createFont("Arial", 12));
 
  minim = new Minim(this); 
  out = minim.getLineOut();
  note = new Sampler( "energeticDJ.mp3", 4, minim );
  //note = new Sampler( "fair1939.wav", 4, minim );
  note.patch( out );
 
  recorder = minim.createRecorder(out, dataPath("myrecording.wav"), true);
 
  note.trigger();
}
 
void draw()
{
  background(0);
  stroke(255);
 
  if ( recorder.isRecording() )
  {
    text("Currently recording...", 5, 15);
  } else
  {
    text("Not recording.", 5, 15);
  }
}
 
void keyReleased()
{
  if ( key == 'r' )
  {
    // to indicate that you want to start or stop capturing audio data, you must call
    // beginRecord() and endRecord() on the AudioRecorder object. You can start and stop
    // as many times as you like, the audio data will be appended to the end of the buffer
    // (in the case of buffered recording) or to the end of the file (in the case of streamed recording).
    if ( recorder.isRecording() )
    {
      recorder.endRecord();
    } else
    {
      recorder.beginRecord();
    }
  }
  if ( key == 's' )
  {
    // we've filled the file out buffer,
    // now write it to the file we specified in createRecorder
    // in the case of buffered recording, if the buffer is large,
    // this will appear to freeze the sketch for sometime
    // in the case of streamed recording,
    // it will not freeze as the data is already in the file and all that is being done
    // is closing the file.
    // the method returns the recorded audio as an AudioRecording,
    // see the example  AudioRecorder >> RecordAndPlayback for more about that
    recorder.save();
    println("Done saving.");
  }
}