sábado, marzo 12, 2022

How to Hardcode Subtitles

De: https://www.veed.io/learn/how-to-hardcode-subtitles

How to hardcode subtitles with VLC media player

You now know that hardcoding subtitles comes with too many perks to ignore. So let’s get you started with adding burned-in subtitles to your video.

On a side note, if you prefer learning by watching, here’s a video walkthrough of how to hardcode subtitles into a video:

Using a VLC media player for this job is ideal for folks who are looking to add hardcode subtitles once in a while. Say, you are a creator who doesn’t focus much on video content.

If you’re a creator or social media marketer who lives and breathes video content though, feel free to skip this section and jump straight to adding hardcode subtitles the easy and fast way.

Now, for adding hardcoding subtitles with VLC.

What is VLC?

Developed by VideoLAN project, VLC is a free, cross-platform media player. It’s available for use on desktop and mobile platforms including Android, Windows, and iOS.

You'll need the following:

  • Your masterpiece – the video
  • The SRT file containing video’s subtitles
  • The VLC player itself. Download and install on your computer for free from their website.

Pro Tip: If you just want to add subtitles with the click of a button and don't want to deal with a clunky freer alternative use VEED's online video editor and auto-subtitle generator.

Heads-up: Make sure your SRT file is the correct one. If it’s wrong and you end up adding the subtitles, you’ll have to restart the subtitling process from scratch to add the correct subs.

To add the subtitles, follow these steps:

1. Open VLC media player

Open the VLC media player. There’s no point selecting your video and opening it using the “open with VLC” option since you’ll be selecting the video in the next step anyway.

2. Add your video within the stream menu

Hover over the media tab and click on Stream. Alternatively, use the shortcut CTRL+S and the Stream menu will open up.

Now, click the Add button to select the video file you want to burn the subtitles into.

3. Select the subtitles you want to hardcode

After you’ve added your video, tick the Use a subtitle file box and click Browse to find and import your SRT file.

At the bottom of this window, click on the Stream button. Once done, you'll see the next page. Here, confirm the video source by clicking Next in the bottom right.

4. Add stream output file destination

Next you need to create the output location for your new video file. To do so, select File in the dropdown menu and tap the Add button next to it.

Now, a File tab will open up and you’ll have to name that file whatever you want to call it. Don’t forget to make sure you add the “.mp4” extension to the end of your filename.

Done? click on Next.

5. Activate transcoding subtitles option

In the transcoding options section, make sure you tick the Activate Transcoding box. Then click on the spanner icon next to the dropdown menu.

This will show a new window pop up. Here, under the subtitles tab, make sure that you tick the Subtitles and the Overlay subtitles on the video boxes.

Click Save, followed by Next.

6. Save new hardcoded subtitles video from stream

On the last page, the only thing you need to do is click the Stream button in the bottom right of the window.

The video will then playback once all the way through and then a second time the playhead will move once again from start to finish in the timeline. It’s important that you let VLC finish transcoding your file.

Don’t close VLC Media Player during this process.

7. Quit VLC media player the correct way

After the player finishes transcoding, all that’s left to do is quitting the player the right way. Closing VLC by selecting the cross on the window fails to save videos properly.

So a good way to ensure everything is thoroughly saved: hover over Media in the top bar menu and then select Quit.

That’s it. You’re done.

lunes, febrero 14, 2022

How to Merge [Combine] Multiple Excel FILES into ONE WORKBOOK

From: How to Merge [Combine] Multiple Excel FILES into ONE WORKBOOK (excelchamps.com)

If you ask people who work with data, you will get to know that combining Excel files or merging workbooks is a part of their daily work.

Agree?

A simple an example: Let’s say you want to create a sales report and you have data of four different zones in four different files.

Now:

The very first thing you need to do is to combine those files in one single workbook and only then you can create your report further.

The point is: You have to have a method which you can use for merging these files. Say “YES” in the comment section if you want to know the best method for this.

Today in this post, I’m going to share with you the best way to merge data from multiple Excel files into a SINGLE workbook.

But, here's the kicker.

This post will teach you something you need to learn to use in the real world data problem so make sure to read the entire post.

The Best Possible Way for Combining Excel Files by Merging data into ONE Workbook - POWER QUERY

Power Query is the best way to merge or combine data from multiple Excel files in a single file. You need to store all the files in a single folder and then use that folder to load data from those files into the power query editor. It also allows you to transform that data along with combining.

It works something like this:

  • Saving All the Files into a Single Folder

  • Combining them using Power Query

  • Merging Data into a Single Table

Make sure to download these sample file from here to follow along and check out this tutorial to learn power query.

Note: For combining data from different Excel files, your data should be structured in the same way. That means the number of columns and their order should be the same.

To merge files, you can use the following steps:

  1. First of all, extract all the files from the sample folder and save that folder at the desktop (or wherever you want to save it).
    combine-data-from-multiple-files-into-one-workbook-by-merging-data-save-files
  2. Now, the next thing is to open a new Excel workbook and open “POWER Query”.
  3. For this, go to Data Tab ➜ Get & Transform Data ➜ Get Data ➜ From File ➜ From Folder.
    combine-data-from-multiple-files-into-one-workbook-by-merging-data-open-from-folder
  4. Here you need to locate the folder where you have files.
    combine-data-from-multiple-files-into-one-workbook-by-merging-data-locate-the-folder
  5. In the end, click OK, and once you click OK, you’ll get a window listing all the file from the folder, just like below.
    combine-multiple-files-into-one-workbook-using-power-query-listing-all-the-file
  6. Now, you need to combine data from these files and for this click on “Combine & Edit”.
    combine-multiple-files-into-one-workbook-using-power-query-combine-and-edit
  7. From here, the next thing is to select the table in which you have data in all the workbooks and yes, you’ll get a preview of this at the side of the window.
    combine-multiple-files-into-one-workbook-using-power-query-select-the-table
  8. Once you select the table, click OK. At this point, you have merged data from all the files into your power query editor and, if you look closely you can see a new column with the name of the workbooks from which data is extracted.
    combine-multiple-files-into-one-workbook-using-power-query-combine-data-in-editor
  9. So, right-click on the column header and select “Replace Values”.
    combine-multiple-files-into-one-workbook-using-power-query-right-click-replace-values
  10. Here in the “Value to Replace” enter the text “.xlsx” and leave “Replace With” blank (here idea is to remove the file extension from the name of the workbook).
    combine-multiple-files-into-one-workbook-using-power-query-enter-value-to-replace-1
  11. After that, double click on the header and select “Rename” to enter a name for the column i.e. Zone
    combine-multiple-files-into-one-workbook-using-power-query-rename-the-folder.
  12. At this point, your merged data is ready and all you need is to load it into your new workbook. So, go to the Home Tab and click on the “Close & Load”.
    combine-multiple-files-into-one-workbook-using-power-query-close-and-load

Now you have your combined data (from all the workbooks) into a single workbook.

This is the moment of JOY, write “Joy” in the comment section if you love to use “Power Query for combining data from multiple files”.

Important Point

In the above steps, we have used the table name to combine data from all the files and add all of it into a single workbook. But not all time you will have the same table name in all the Excel files and at that point, you can use the worksheet name as a key to summarizing all that data.

One more thing:

As I said, you can use a worksheet name to combine data with the power query but there are few more things which I want to share with you and you need to take care of those. Power Query is case sensitive, so when combining files make sure to have the name of worksheets in all the workbooks in the same letters.

The next thing is, to have the same name for the column headers, but here the kicker: The order of the columns doesn’t matter. If column1 in the north.xlsx is column2 in the west.xlsx, Power Query will match it, but you have to have column names the same.

So now, while combining files using power query you can use the worksheet name instead of the table name, and here you have "SalesData" as the worksheet name in all the files.

You select it and click on the "Combine & Edit" and follow all the steps which I have mentioned in the above method.

Why Power Query is the Best Way to Merge Data into a Single File?
Merge Data from Multiple Workbooks When you don’t have the Same Name for Worksheets and data in Tables

This is the hard truth…

…that in some situations, you won’t have the same name for worksheets and not all the data in tables all the time.

Now, what you should be doing in that case?

Well…

…in this case, you must know how you can combine data from all the files and I don’t want to miss to share with this thing with you.

Make sure to download these sample files to follow along and save it on your desktop.

...so without any further ado, let's get started.

  • First of all, open the “From Folder” dialog box to locate the folder where you have all the files.
  • Now in this dialog box, locate the folder and click OK.

  • After that, click on the “Edit” to edit the table.

  • At this point, you will have a table like below in your power query editor.

  • Next, select the first two columns of the table and click on the “Remove Other Columns” from the right-click menu.

From here, we need to add a custom column to fetch data from the worksheets of the workbooks.

  • For this, go to Add Column Tab and click on the “Custom Column” button. This will open the “Custom Column” dialog box.

  • In the dialog box, enter =Excel.Workbook([Content]) and click OK.

…at this time you have a new column in the table but next, you need to extract data from it.

  • Now, open the filter from that newly added custom column and click OK to expand all the data into the table.

  • Here you have the newly expanded table with some new columns.
  • Now from this new table, delete all the columns except third and fourth.

  • So, open the filter for the column “Custom.Data” to expand it and click OK.

The moment you click OK, you’ll get all the data from all the files into a single table…

you need to make some changes into it to make it PERFECT.

If you notice, all the heading of the column are into data itself...

...so you need to add the column headings.

  • To do this, you need to double click on the header and add a name, or you can right click and select rename it.

The next you need to exclude the headings which you have in the data table.

  • Now open any column’s filter option and unselect the heading name which you have in the column data and click OK after that.

Now our data is ready to load into the worksheet, so, go to the Home Tab and click on the close and load.

Congratulations! you have just combined data from the different workbooks (with different worksheets name and without any table).

This is also important:

At this point, you have merged the data into one table.

But there’s one thing you need to do…

…and that’s applying some formatting to it and making sure that it won’t go away when you update your data.

Here’s what you need to do…

  • First of all, select the column where you have dates (as it is formatted as number right now) and format it as dates.
  • After that, make all the columns wide as per the data you have in them.
  • Here you can also format amount and price as “Currency”.

But the next thing is to make this formatting fix.

  • For this, go to “Design Tab”, and open properties.
  • Untick “Adjust Column” width and tick mark “Preserve Cell Formatting”.
  • Yes, that’s it.

Now you have a query in your workbook which can combine data from multiple files...

...and merge it into a single workbook...

...even if the worksheet name is not the same or if you don’t have tables.

And yes, you have also made the formatting fix. ?

In the end,

As I said, POWER QUERY is real and if you frequently use to combine data from multiple files then you must use this method…

…as it’s a ONE-TIME setup.

The most important thing is you when you use power query you can even clean the data from those files as well.

I hope this tutorial will help you to Get Better at Excel. But now, you need to tell me one thing.

Which method do you use to combine data from multiple files?

Make sure to share your views with me in the comment section, I'd love to hear from you. And please, don’t forget to share this post with your friends, I am sure they will appreciate it.

miércoles, agosto 11, 2021

T-SQL SP BUILDER - T-sql SP Builder. A script to create CRUD procedures in SQL Server. This code helps you to build the Insert, Update and Delete procedure for each table. by Daniel Seara

De: T-sql SP Builder | Universidad Net

When things are complex, and it is preferable to not use any ORM like EF, or the database needs to be secured, probably you prefer to use SQL Server Stored procedures.

However, it happens that in those cases, the database uses to have hundreds of tables, and it takes a lot of time to write the standard procedures for CRUD operations for them. This code helps you to build the Insert, Update and Delete procedure for each table. In all cases, the task is performed in just one row, using the Primary key to identify it for update and delete.

How it works.

By getting information from the INFORMATION_SCHEMA view, and using some special system tables like sys.columns and sys.computed_columns, the code retrieves the information for the required table.

The information is stored in a table variable which contains columns to make easier to build the different parts of the sentence, like adding parenthesis, default values, etc. which contains data as you can see in the next image

Table variable columns

Then, several queries against the table variable constructs the parameters, sentence, and where segments of the different procedures.

In this case, I will not explain each part.  Most of it use STRING_AGG to concatenate the different parts.

However, some comments about the different “issues” I found making this:

  • The parameters for the Insert procedures, include an OUTPUT statement, in case a column has identity specification to get the value for the inserted row. To do so, the procedure uses IDENT_CURRENT function. But the parameters for Update and Delete do not need the OUTPUT.
  • The computed columns must not be inserted or updated, so must be excluded of the procedure. This happens in case a column is of timestamp datatype as well.
  • Just to be sure what the script generates, the results are printed so you can review them.

You can download this script here.

The script as Stored Procedure.

If you want to use this several times during your development, you can use this second script, which add this as a Stored Procedure, so you can call it just passing the table name, and, when needed, the schema name.

Moreover, it accepts a third parameter, to perform the procedures’ creation directly.

Finally, if you want to use the procedure for all the tables of a database at once, just use this sentence for creating a complete script.

SELECT         'EXECUTE @RC = [Development].[SPBuilder]    @TableName'    + QUOTENAME([table_schema])    + ',@SchemaName ='    + QUOTENAME([table_name])    + ' ,@Create=1'
FROM         [INFORMATION_SCHEMA].[TABLES]
WHERE        [table_type]        = 'BASE TABLE'        AND [table_name] NOT LIKE 'sys%';

domingo, mayo 02, 2021

¿Ya calibraste la batería de tu celular? No, no tenés que desarmar nada

El porcentaje de batería se calcula a través de algoritmos. Con el uso repetido pueden empezar a medir mal y disminuir el rendimiento, entonces el celular se empieza a apagar antes de tiempo o a mostrar porcentajes erróneos.

¿Cómo calibrarla?

Es fácil: Carga la batería por completo, hasta que llegue al 100% y dejalo un tiempo más cargando. Después usalo hasta que se descargue toda la batería y se apague. Dejalo apagado entre 6 u 8 horas para que se termine de descargar la carga residual. Finalmente volvelo a cargar apagado o en modo avión hasta el 100% y listo. Ya debería funcionar normalmente.

Si ves que luego de hacerlo la batería sigue durando poco, bajando excesivamente el porcentaje de carga o el celular se apaga teniendo más de 5% de carga te recomendamos hacer revisar la batería.

lunes, marzo 09, 2020

Google ID: Cómo crear una cuenta de Google sin un correo de Gmail

De: https://tecnologia.uncomo.com/articulo/como-crear-una-cuenta-de-google-sin-un-correo-de-gmail-23346.html

Existe la posibilidad de tener una cuenta de Google sin necesidad de que dispongas de un correo electrónico de gmail. Esto te será muy útil para disfrutar de servicios gratuitos que ofrece la compañía de Internet, como Google Analytics o Herramientas para webmasters, entre otros. Crear una cuenta de Google con un correo externo es muy sencillo y rápido. Además, te proporcionará la oportunidad de acceder a todos los productos vinculados con Google con tu email profesional, que suele finalizar con el dominio de la web de la empresa. En unComo.com te explicamos cómo crear una cuenta de Google sin un correo de Gmail.

Pasos a seguir:

1

Primero debes acceder a esta web para crear una cuenta de Google y rellenar los siguientes datos:

  • Nombre y apellidos.
  • Correo electrónico. Aunque por defecto te aparezca para rellenar un email acabado en "@gmail" puedes emplear cualquiera.
  • Contraseña. Será la clave que siempre emplearás después para acceder a tu cuenta de Google. Por seguridad, es preferible que no coincida con la contraseña de tu correo electrónico.
  • Fecha de nacimiento.
  • Teléfono móvil. Este dato es opcional siempre que escribas correctamente el Captcha.
  • País.

2

Una vez que hayas aceptado las Condiciones del servicio, Google te enviará un mensaje de verificación al correo electrónico que hayas utilizado para crear tu cuenta de Google sin tener gmail.

3

Normalmente, la compañía tarda unos minutos en enviar este mensaje. Cuando lo recibas, deberas pinchar en el enlace para verificar la cuenta y, después, ya la tendrás creada. Ahora, podrás usar el correo electrónico que empleaste, junto a la contraseña que elegiste, para darte de alta en los productos de Google.

4

Para proteger tu cuenta de Google, tienes la opción de añadir otro correo electrónico, que se emplearía en el caso de que hubiese alguna incidencia.

miércoles, febrero 26, 2020

90 Trucos para WhatsApp la lista definitiva 2018

De: https://www.youtube.com/watch?v=kU4-i295ex8

15 atajos increíbles que no conocías

De: https://www.youtube.com/watch?v=PJxmpUbeOUc

¿Cuáles son los atajos de teclado que todos deberían saber? Si quieres ser un usuario avanzado, no debes negar la utilidad de las teclas de acceso rápido. Mejoran tu experiencia diaria con la computadora y te dan un impulso absoluto en tu productividad. ¡Así que toma un bolígrafo y toma notas, ya que estas combinaciones de teclas de acceso rápido serán útiles para todos los usuarios de Windows y OS X!

Otros videos que te pueden gustar: 15 Formas De Buscar En Google Que El 96% De Las Personas Desconoce https://www.youtube.com/watch?v=VyKXn... 12 Señales de que tu computadora ha sido hackeada https://www.youtube.com/watch?v=iZngv... 15 Increíbles funciones de teléfono que no sabías que existían https://www.youtube.com/watch?v=T4348... MARCAS DE TIEMPO: Crear un escritorio virtual 0:46 Cambiar entre escritorios virtuales 1:24 Regreso al escritorio desde las aplicaciones 2:15. Abre una aplicación desde la barra de tareas 3:04 Pantalla dividida entre dos aplicaciones 3:50 Cambiar aplicaciones 4:24 Gestión de programas y resolución de problemas 5:27 Abrir el Explorador de archivos 6:17 Usa la lupa 6:48 Tomar capturas de pantalla 7:41 Usa el Centro de Acción 8:24 Accede a los ajustes 9:02 Habla con Cortana o Siri 9:22 Usa la barra de juegos de Windows 10:02 Bloquea tu PC 11:20 Música por Epidemic Sound https://www.epidemicsound.com/ RESUMEN: - Presiona la tecla de Windows + Ctrl + D o Control + Arriba si usas una Mac. Cambiará a un nuevo escritorio nuevo. - Presiona la tecla de Windows + Ctrl o la tecla Control en una Mac. Ahora puedes cambiar entre todos los escritorios virtuales que has creado utilizando las teclas de flecha izquierda y derecha. - Si tienes demasiadas aplicaciones abiertas y necesitas usar otra oculta detrás de todas las ventanas de tu escritorio, puedes minimizarlas todas al mismo tiempo presionando la tecla de Windows + M. - Si deseas un acceso mucho más rápido a las aplicaciones más utilizadas, considera mantenerlas en la barra de tareas. Acelerará tu flujo de trabajo aún más si utilizas la siguiente combinación: la tecla de Windows + una tecla numérica del 1 al 9. - Abre una aplicación que necesites para tu trabajo y presiona la tecla de Windows + flecha izquierda. Luego, abre otra aplicación y haz clic en la tecla de Windows + flecha derecha. Ahora, dos ventanas están compartiendo tu pantalla! - Presionando Ctrl + Alt + Tab te mostrará todas las aplicaciones que se ejecutan actualmente en tu PC. - Para evitar reiniciar tu dispositivo y perder todo tu progreso, prueba el siguiente combo: Ctrl + Shift + Esc o Command + Option + Escape si estás trabajando en una Mac. - Al presionar la tecla de Windows + E se abre la ventana del administrador de archivos en tu PC. Para usuarios de Mac, esta es tu aplicación Finder. - La tecla de Windows combinada con la tecla + o - abrirá la aplicación de la lupa, lo que te permite acercar y alejar la imagen donde apunta el cursor. - Usa la tecla de Windows + Imprimir pantalla para tomar una captura de pantalla e inmediatamente guárdala en la carpeta Imagen en tu disco duro. - Para abrir Bluetooth, presiona simultáneamente la tecla de Windows + A. Para usuarios de Mac, su Centro de notificaciones está siempre a un clic en la esquina superior derecha. - ¡Si necesitas más ajustes o acceso a parámetros más avanzados de tu PC, puedes tenerlo todo! Usa la tecla de Windows + I para hacer eso. - Para abrir Cortana en Windows en modo de audición, presiona la tecla de Windows + C. Y para invocar a Siri en Mac OS, mantén presionado Comando y Espacio. "¡Hola Siri!" - Si de repente necesitas alejarte de la computadora pero no quieres que nadie se entrometa en tus cosas, puedes bloquear rápidamente tu perfil de usuario. Simplemente presiona la tecla de Windows + L o Shift + Command + Q en una Mac.

miércoles, octubre 02, 2019

Analizarán la sangre de los autónomos para investigar por qué nunca enferman

17 de marzo de 2015

elmundotoday.com/2015/03/analizaran-la-sangre-de-los-autonomos-para-investigar-por-que-nuncaenferman


Investigadores del CSIC tomarán muestras de la sangre de cientos de autónomos
españoles para averiguar el motivo por el que nunca se ponen enfermos. También
procurarán descubrir por qué no necesitan vacaciones ni una vida familiar estable para
conservar su salud mental.
“Los autónomos son capaces de subsistir sin tener asegurado el suministro regular de
ingresos y comida. En algunos casos, llegan incluso a reproducirse. No tienen una joroba
como los camellos o los dromedarios, ni varios estómagos como las vacas, por lo que es
un auténtico milagro que sobrevivan estando tan expuestos a la precariedad”, admite el
doctor Israel Graulio, funcionario del CSIC que describe a los autónomos como “una
extraordinaria y exótica forma de vida”.
Los expertos sospechan que los autónomos comparten con los primeros organismos
que se formaron en la Tierra esa capacidad para florecer en condiciones muy adversas.
“Muchos de ellos trabajan sin contrato. Para mí, que soy funcionario desde los veintidós
años, es como ver una planta crecer sin tierra, encima de un trozo de plástico”, insiste
Graulio.
Los científicos creen que, si se descubren las claves que permiten a los autónomos vivir
en la permanente inestabilidad, resistiendo altas presiones durante horas, el resto de los
seres humanos podría superar multitud de enfermedades y dejar de necesitar periodos de descanso que lastran su productividad en entornos laborales.
“Puede que la clave esté en las pizzas frías que comen de pie frente a la pantalla del
ordenador. O en el hecho de no salir de casa durante días. Hay que estudiarlo muy a
fondo, aunque da pereza porque hay mucho curro por delante”, explica el investigador.
El CSIC está experimentando desde hace meses con un ejemplar de “freelance” al que
sacan sangre de vez en cuando. “Es increíble. Le llamas un domingo por la noche y le
pides una cosa para ayer, y te la hace. Le dices que no sabes ni cuánto ni cuándo le vas a
poder pagar porque estas cosas ya sabes cómo van, que está todo muy mal, y se encoge
de hombros y te dice que vale”, relata el doctor Graulio.
“Necesitamos más muestras de vida autónoma y muchas más horas para experimentar.
Lo que pasa es que, entre la pausa para el bocata y el cigarrillo, las bajas del personal y la
excedencia que he pedido esta semana, creo que no podremos empezar la investigación
hasta el año que viene. Ya sabes cómo van estas cosas”, asegura el especialista del CSIC.
Lo más probable, pues, es que la experimentación se externalice. “Es más práctico que
los autónomos se investiguen a sí mismos y nos pasen un informe lo antes posible.
Además nos saldrá mucho más barato”, concluyen desde la institución.