Cuando se usó por última vez una base de datos SQL Server?


Un dato que siempre alguien va a necesitar por algún buen motivo, es saber cuando fue usada una base de datos por última vez. Esta es una solución superficial ya que nos va a mostrar la fecha de último uso para una base de datos que no ha sido reiniciada, se usan columnas de la vista sys.dm_db_index_usage_stats. Es de ayuda pero no es una solución definitiva.

SELECT 
    db_name(databases.database_id) AS DBName,
    CASE 
        WHEN MAX(last_access) IS NULL THEN 'No access recorded'
        ELSE CONVERT(VARCHAR, MAX(last_access), 120)
    END AS last_user_access
FROM (
    SELECT 
        database_id,
        MAX(last_user_seek) AS last_access
    FROM sys.dm_db_index_usage_stats
    GROUP BY database_id
    UNION ALL
    SELECT 
        database_id,
        MAX(last_user_scan) AS last_access
    FROM sys.dm_db_index_usage_stats
    GROUP BY database_id
    UNION ALL
    SELECT 
        database_id,
        MAX(last_user_lookup) AS last_access
    FROM sys.dm_db_index_usage_stats
    GROUP BY database_id
) AS index_stats
RIGHT OUTER JOIN sys.databases databases ON index_stats.database_id = databases.database_id
GROUP BY databases.database_id
ORDER BY db_name(databases.database_id);

Este SQL fue adaptado de “When was my SQL Server Database Last Accessed?” publicado en SQLUndercover, author: David Fowler

Todo listo para tu nuevo iPhone


Si le aparece este mensaje al abrir la pantalla de configuración de su iPhone y ya intentó aquella solución de “presionar una vez volúmen arriba, volúmen abajo y luego botón apagar sostenido hasta que aparezca el logo de Apple” y sigue igual. Esta es la solución:

Todo listo para tu nuevo iPhone Cancelar
Get Ready for your new iPhone

Vaya a la configuración y haga los siguientes pasos, nombre –> iCloud –> Administrar almacenamiento –> Respaldos –> Dispositivo –> Ahora borre el último backup que tenga allí.

Ahora devolverse hasta donde se encuentra la opción de Respaldo en iCloud y lo apaga. Esta opción está donde encontramos Administrar almacenamiento en el paso anterior un poco más abajo.

Puede reiniciar el iPhone para validar que definitivamente se ha ido el mensaje.

Luego puede volver a activar la opción respaldo en iCloud en caso de que la vaya a usar.

Ver cambios en archivos en directo


Si desea ver el contenido de un archivo log o cualquier clase de archivo principalmente de tipo texto (ascii) que vaya cambiando constantemente su contenido, puede utilizar un comando de windows powershell para esto.

Digamos que tiene un archivo ubicado en C:\LOGS\mylog.txt en el cual se escriben los mensajes de una aplicación y quiere ver los cambios en vivo cada que suceden. Esto en linux se resuelve fácilmente con un comando llamado tail. En windows debemos abrir una ventana de windows powershell y escribir:

C:\LOGS\> get-content .\mylog.txt -wait -tail 30

Explicación.

get-content es el comando

.\mylog.txt es el archivo que deseamos ver

-wait mantiene el archivo abierto hasta que se pulse CTRL+C para cancelar la visualización

-tail 30 visualiza las últimas 30 líneas del archivo, si se quiere ver todo el contenido se omite esta opción.

Error Picked up JAVA_TOOL_OPTIONS: -Dlog4j.formatMsgNoLookups=true


Para “corregir” este error en una app de Xamarin ir a las variables de sistema de windows, ubicar JAVA_TOOL_OPTIONS y eliminarla.

Clic en el botón Inicio, escribir “varia” y en las sugerencias debe aparecer “Editar las variables del sistema”, abrir cuando aparece la ventana de “Propiedades del sistema” dar clic en el botón “Variables de ambiente” en la parte inferior localizar JAVA_TOOL_OPTIONS y borrarla. Grabar y cerrar todo antes de volver a compilar su app.

Recover your windows 11 missing apps


To recover some missing files like “The calculator” you must write the following commands in a powershell or command or terminal window:

1.     Press keys Windows + X. Or right click on start menu.

2.     In the Menu choose: Command Prompt (Admin) or Windows Power Shell (Admin) or Windows Terminal (Admin) .

3.     Type the following commands one by one, it can take some seconds/minutes to finish: 

·       sfc /scannow [Press ENTER]

·       dism.exe /online /cleanup-image /scanhealth [Press ENTER]

·       dism.exe /online /cleanup-image /restorehealth [Press ENTER]

·       dism.exe /online /cleanup-image /startcomponentcleanup [Press ENTER]

And that’s it! You have recovered the missing apps from windows itself.

**Español: RECUPERAR SUS APLICACIONES PERDIDAS DEL WINDOWS 11

1.     Oprime las teclas Windows + X. O dar clic derecho sobre el menú start.

2.     En el menú que se abre en la parte inferior izquierda, selecciona la opción: Símbolo de Sistema (Administrador) o Windows Power Shell (Administrador) o Windows Terminal (Administrador).

3.     En esta ventana que aparece escribir para ejecutar los siguientes comandos, uno a la vez. Pueden tomar unos segundos a minutos para terminar: 

·       sfc /scannow [Presionar ENTER]

·       dism.exe /online /cleanup-image /scanhealth [Presionar ENTER]

·       dism.exe /online /cleanup-image /restorehealth [Presionar ENTER]

·       dism.exe /online /cleanup-image /startcomponentcleanup [Presionar ENTER]

Y listo ya se han corregido errores y recuperado las aplicaciones perdidas de windows.

Windows 11 revealed


Now I have the Windows 11 on my laptop, the most notorious thing are the rounded corners in all apps/windows:

Clock View

I found a great difference between Windows 10 and this Windows 11, the applications are running faster in this Windows 11.

Task View
Main Menu

The classical menu remains but with a fresher appearance.

The File Explorer window have the same new icons started in Windows 10.

File Explorer

You can choose between multiple desktop background options, dark or clear:

Display Options

Summary:

In summary Windows 11 is really an evolution of Windows 10, what I like the most is that the applications run faster in this windows 11. The display options also improved a lot.

Español:

En resumen Windows 11 si se nota como una evolución de Windows 10, lo que más me gusta es que las aplicaciones de verdad corren más rápido en este windows 11. Las opciones de visualización también mejoraron mucho.

Lo recomiendo.

Windows 10 new icons


These are the new icons in Windows 10, they are trying to give a fresh appearance . After so many years watching the same old icons, these new icons don’t look so much new.

For people that started to work with windows 10, they maybe don’t note so many changes, but for people experienced with Windows 95, 98, 2000, etc. They can perceive a great change.

The notepad has a new icon too as well apps like paint, paint 3d, calculator, camera, etc:

The Windows Menu is almost the same, but easy to configure and change:

Let’s wait for Windows 11 that the real change will be noted there. In the meantime enjoy your current Windows 10.

punto decimal en teclado numerico no funciona c# – decimal dot in numpad not working c#


Sucede que estamos escribiendo un valor decimal en un datagridview usando el teclado numérico para mayor velocidad, pero al escribir el punto, en lugar de separar posiciones decimales, lo deja como entero:

Para evitar esto se debe especificar la propiedad FormatProvider de la columna respectiva. Ejemplo:

MyDataGridView.Columns["Unidades"].DefaultCellStyle.FormatProvider = new CultureInfo("en-GB");

Luego de agregar la propiedad ya funcionará bien el punto en el teclado numérico:

De esta forma ya resolvemos el problema.

English:

To prevent the numpad dot (.) key to produce int number instead of decimal number, we must add the property FormatProvider for each column as is in the code above.

Joe biden the president # 46 of the us / el presidente 46 de usa


Joe Biden president 46 of the United States

After one of the most powerful voter demonstrations in the world near to 180,000,000 for a country of 328,000,000 almost the 55% of the population voted! congratulations, Joe Biden is the new president of the United States. Millions are today happy, others not so much, but like any democracy, the votation ended and the results now say that Biden is the new president.

Trump tried hard to continue as president but He couldn’t.

Now is time for a different president, all the people that elected Biden as their new president deserve to see how is going to be this new President.

My best wishes for the people of the United States and keep the democracy up.

Español siguiente página->

The most disruptive word in 2020 / la palabra mas disruptiva del 2020 / 2020年最具破坏性的词


I was really thinking in create a huge post complaining about how often is used the word “disruptive” in this 2020 because it’s insane, a lot of people is using it daily, disruptive in articles, seminars, webinars, blogs, tv, social networks, papers, etc, thousands of times. So here I’m, was ready, but before to post, I searched disruptive some hours on internet previous to post my article really outraged and now I found I’m not the only one.

It happens that I found that the term “disruptive” in technology was coined in 1995 by Clayton Christensen in his theory of “disruptive innovation”. He’s a professor in the Harvard Business school. Imagine that since then, technical people has been using this word, only that in my case I started to hear it so often only this year.

And I’m not the only one that is not satisfied with the overuse of this word. Back in 2013 someone was thinking that the word “disruptive” was in the proper time to be “retired” (1) and He did an article about it. Just like me today. When it comes to use a fancy word like disruptive in everyday conversation, people tend to feel themself as innovative and or cool enough to capt attention. Like me “disrupting” with this disruptive and innovative article…. (hahahaha)

Now I’m attaching some texts about the term disruptive in technology to allow you to take your own opinion and try to start to use a new terminology when talking about tecnologies those are being used in small companies that challenge big fat stablished ones, beating them.

I was really thinking big in create a huge post complaining about how often is used the word “disruptive” in this 2020 because it’s insane, a lot of people is using it daily, disruptive in articles, seminars, webinars, blogs, tv, social networks, papers, etc, tons of times. So here I’m, but before to post, I searched disruptive some hours on internet previous to post my outraged article and now I found I’m not the only one.

It happens that I found that the term “disruptive” in technology was coined in 1995 by Clayton Christensen in his theory of “disruptive innovation”. He’s a professor in the Harvard Business school. Imagine that, since then, technical people has been using this word, but for me I started to hear it so often only this year.

And I’m not the only one that is not satisfied with the overuse of this word. Back in 2013 someone was thinking that “disruptive” was in the proper time to be “retired” (1) and He did an article about it. Just like me today. When it comes to use a fancy word like disruptive in everyday conversation, people tend to feel themself as innovative and or cool enough to capt attention.

Now I’m attaching some texts about the term disruptive in technology to allow you to take your own opinion and try to start to use a new terminology when talking about tecnologies those are being used in small companies that challenge big fat stablished ones.

WHAT IS DISRUPTIVE TECHNOLOGY?

“‘Disruption’ describes a process whereby a smaller company with fewer resources is able to successfully challenge established incumbent businesses,” writes Christensen in the Harvard Business Review. (2)

Disruptive Technologies: Catching the Wave

From the January–February 1995 Issue

The theory of disruptive innovation, introduced in these pages in 1995, has proved to be a powerful way of thinking about innovation-driven growth. Many leaders of small, entrepreneurial companies praise it as their guiding star; so do many executives at large, well-established organizations, including Intel, Southern New Hampshire University, and Salesforce.com. (3)

(1) https://fortune.com/2013/07/12/time-to-retire-the-word-disrupt/

(2) https://hbr.org/2015/12/what-is-disruptive-innovation

(3) https://hbr.org/1995/01/disruptive-technologies-catching-the-wave

Español:

Realmente estaba pensando en crear una publicación enorme quejándome de la frecuencia con la que se usa la palabra “disruptivo” en este 2020 porque es una locura, mucha gente la usa a diario, disruptiva en artículos, seminarios, webinars, blogs, televisión, redes sociales , papeles, etc., miles de veces. Así que aquí estoy, estaba listo, pero antes de publicar, busqué disruptivo algunas horas en Internet antes de publicar mi artículo realmente indignado y ahora descubrí que no soy el único.

Sucede que descubrí que el término “disruptivo” en tecnología fue acuñado en 1995 por Clayton Christensen en su teoría de la “innovación disruptiva”. Es profesor en la escuela de negocios de Harvard. Imagínese que desde entonces, los técnicos han estado usando esta palabra, solo que en mi caso comencé a escucharla tan a menudo solo este año.

Y no soy el único que no está satisfecho con el uso excesivo de esta palabra. En 2013 alguien pensaba que la palabra “disruptivo” estaba en el momento adecuado para ser “retirado” (1) e hizo un artículo al respecto. Como yo hoy. Cuando se trata de usar una palabra elegante como disruptivo en una conversación diaria, las personas tienden a sentirse lo suficientemente innovadoras o geniales como para captar la atención. Como yo bien “disruptivo” con este artículo disruptivo e innovador …. (jajajaja)

Ahora adjunto algunos textos sobre el término disruptivo en tecnología para que puedas tomar tu propia opinión y tratar de empezar a usar una nueva terminología cuando se habla de tecnologías que se están utilizando en pequeñas empresas que desafían a las grandes ya establecidas, venciéndolas.

Los anexos arriba, están en español y en inglés.

简体中文

我真的在考虑创建一个大型帖子,抱怨在2020年经常使用“破坏性”一词,因为它太疯狂了,很多人每天都在使用它,在文章,研讨会,网络研讨会,博客,电视,社交网络中都具有破坏性,论文等数千次。因此,我已经准备好了,但是在发布之前,我在互联网上搜索了几个小时才使我的文章感到非常愤怒,而现在我发现我并不是唯一的一个。

碰巧,我发现Clayton Christensen于1995年在他的“颠覆性创新”理论中创造了技术中的“颠覆性”一词。他是哈佛商学院的教授。想象一下,从那时起,技术人员一直在使用这个词,只是在我看来,直到今年我才开始经常听到这个词。

我不是唯一一个对这个词的过度使用不满意的人。早在2013年,有人就认为“颠覆性”一词在适当的时候应该被“淘汰”(1),他对此做了一篇文章。今天就像我一样当在日常谈话中使用像破坏性这样的花哨的词时,人们往往会觉得自己很创新,或者很酷,足以吸引注意力。像我一样,这篇颠覆性和创新性文章“颠覆” ….(hahahaha)

现在,我要附上一些有关“颠覆性技术”一词的文章,以使您可以发表自己的见解,并在谈论那些在挑战大胖子的小型公司中使用的技术时,开始尝试使用新的术语,击败他们。

附件有西班牙文和英文

Microsoft Certified Professional