lunes 8 de junio de 2009

Heaven is hotter than hell !!

HEAVEN IS HOTTER THAN HELL

The temperature of heaven can be rather accurately computed. Our authority is the Bible, Isaiah 30:26 reads, Moreover, the light of the moon shall be as the light of the sun and the light of the sun shall be sevenfold as the light of seven days. Thus, heaven receives from the moon as much radiation as the earth does from the sun, and in addition seven times seven (forty nine) times as much as the earth does from the sun, or fifty times in all. The light we receive from the moon is one ten-thousandth of the light we receive from the sun, so we can ignore that. With these data we can compute the temperature of heaven: The radiation falling on heaven will heat it to the point where the heat lost by radiation is just equal to the heat received by radiation. In other words, heaven loses fifty times as much heat as the earth by radiation. Using the Stefan-Boltzmann fourth power law for radiation

(H/E)4 = 50

where E is the absolute temperature of the earth, 300°K (273+27). This gives H the absolute temperature of heaven, as 798° absolute (525°C).

The exact temperature of hell cannot be computed but it must be less than 444.6°C, the temperature at which brimstone or sulfur changes from a liquid to a gas. Revelations 21:8: But the fearful and unbelieving... shall have their part in the lake which burneth with fire and brimstone." A lake of molten brimstone [sulfur] means that its temperature must be at or below the boiling point, which is 444.6°C. (Above that point, it would be a vapor, not a lake.)

We have then, temperature of heaven, 525°C (977°F). Temperature of hell, less than 445°F). Therefore heaven is hotter than hell.

lunes 22 de septiembre de 2008

Detras de cámara

Prestar atención a los 45 seg. de video:



Vía Fabio
Alan Karpovsky

sábado 30 de agosto de 2008

Error desconocido

Acá una lista de errores computacionales graciosos.

(Solo apto para nerds)

Alan Karpovsky

sábado 2 de agosto de 2008

Números Primos con VBA

Acá una macro para Ms. Excel que permite averiguar si un determinado número es primo:

Sub Primos()
Dim p As Variant
p = InputBox("Ingrese num ")
If p = Empty Then
MsgBox "Poné algo forro"
ElseIf IsNumeric(p) = False Then
MsgBox "Solo se aceptan números forro de la cara"
Else
Dim b As Variant
b = 0
Dim c As Variant
For c = 2 To p - 1
If p Mod c = 0 Then
b = b + 1
End If
Next c
If b <> 0 Then
MsgBox (p & " no es primo")
Else
MsgBox (p & " es primo")
End If
End If
End Sub


Los créditos también para Tomás Villanueva ya que la programamos antes del parcial de Utilitarios con el fin de ver si sabíamos algo.

Alan Karpovsky

viernes 25 de julio de 2008

--:: File Renamer v1.0 ::--

He aquí otro script mio:

#!/bin/bash
# --:::FILE RENAMER v1.0:::--
# Programa creado por Alan Ezequiel Karpovsky
# Una vez ingresada una carpeta como parámetro sirve para
# renombrar a todos los archivos dentro de ella con un
# nombre específico siguiendo un orden determinado
# Ej. "Nombre_Archivo 1, Nombre_Archivo 2, ... , Nombre_Archivo n"

if [ $# -ne 1 ]
then
echo "Solo se puede pasar un directorio a la vez"
exit;
elif [ ! -d $1 ]
then
echo "$1 no es un directorio"
exit;
else
echo "Iniciando programa"
echo "¿Está seguro de que desea renombrar los archivos del directorio: $pwd/$1?"
echo "Presione 'y' para continuar o 'n' para cancelar"
read teclado
if [ $teclado == "y" ]
then
echo "Inserte el nombre que desea darle a los archivos del directorio"
read nombre
contador=0
for a in `ls $1`
do
echo "Renombrando el archivo: $a"
if [ -f $1/$a ]
then
let contador=contador+1
fi
for b in $contador
do
if [ -f $1/$a ]
then
mv $1/$a $1/"$nombre-$b"
echo "Archivo renombrado con éxito"
fi
done
done
echo "Total de archivos renombrados: $contador"
elif [ $teclado == "n" ]
then
echo "Programa abortado"
exit;
else
echo "Opción no reconocida"
exit;
fi
fi


Está escrito en Bash (Shell Scripting) y como dice en las primeras líneas sirve para renombrar archivos masivamente. Nunca les pasó de bajar fotos de una cámara digital y después de tenerlas ya en el ordenador los nombres de cada una de las imágenes son algo como "DSC1005C" ? Bueno, este script sirve justamente para eso: Se le inserta la carpeta como parámetro y se escribe por ejemplo "Vacaciones" y cada una de las fotos será renombrada y quedará algo estilo: Vacaciones 1, Vacaciones 2, Vacaciones 3 , ... , Vacaciones n.

Espero que les sea de utilidad.

Alan Karposvsky

martes 22 de julio de 2008

Una busqueda un poco extraña

Link: Click Aquí

Vía Fabio

Alan Karpovsky

miércoles 16 de julio de 2008

Estos si que saben cómo divertirse

El juego de la bañadera hirviendo:



Alan Karpovsky